diff --git a/.clabot b/.clabot new file mode 100644 index 00000000..4f44bbb5 --- /dev/null +++ b/.clabot @@ -0,0 +1,4 @@ +{ + "contributors": ["eyurtsev", "hwchase17", "nfcampos", "efriis", "jacoblee93", "dqbd", "kreneskyp", "adarsh-jha-dev", "harris", "baskaryan", "hinthornw", "bracesproul", "jakerachleff"], + "message": "Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have the username {{usersWithoutCLA}} on file. In order for us to review and merge your code, please complete the Individual Contributor License Agreement here https://forms.gle/Ljhqvt9Gdi1N385W6 .\n\nThis process is done manually on our side, so after signing the form one of the maintainers will add you to the contributors list.\n\nFor more details about why we have a CLA and other contribution guidelines please see: https://github.com/langchain-ai/langserve/blob/main/CONTRIBUTING.md." +} diff --git a/.github/workflows/_pydantic_compatibility.yml b/.github/workflows/_pydantic_compatibility.yml index 94d362f3..97f0c744 100644 --- a/.github/workflows/_pydantic_compatibility.yml +++ b/.github/workflows/_pydantic_compatibility.yml @@ -13,6 +13,7 @@ env: jobs: build: + timeout-minutes: 5 defaults: run: working-directory: ${{ inputs.working-directory }} diff --git a/.github/workflows/langserve_ci.yml b/.github/workflows/langserve_ci.yml index 335a37ac..080e83cf 100644 --- a/.github/workflows/langserve_ci.yml +++ b/.github/workflows/langserve_ci.yml @@ -39,7 +39,14 @@ jobs: working-directory: . secrets: inherit + pydantic-compatibility: + uses: + ./.github/workflows/_pydantic_compatibility.yml + with: + working-directory: . + secrets: inherit test: + timeout-minutes: 5 runs-on: ubuntu-latest defaults: run: @@ -51,7 +58,7 @@ jobs: - "3.9" - "3.10" - "3.11" - name: Python ${{ matrix.python-version }} extended tests + name: Python ${{ matrix.python-version }} tests steps: - uses: actions/checkout@v3 diff --git a/Makefile b/Makefile index 8c0f44a4..2818d5b9 100644 --- a/Makefile +++ b/Makefile @@ -33,10 +33,10 @@ lint_diff format_diff: PYTHON_FILES=$(shell git diff --relative=. --name-only -- lint lint_diff: poetry run ruff . - poetry run black $(PYTHON_FILES) --check + poetry run ruff format $(PYTHON_FILES) --check format format_diff: - poetry run black $(PYTHON_FILES) + poetry run ruff format $(PYTHON_FILES) poetry run ruff --select I --fix $(PYTHON_FILES) spell_check: diff --git a/README.md b/README.md index 93bea4d8..56591e5f 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,10 @@ # GigaServe 🦜️🏓 = LangServe + GigaChat +[![Release Notes](https://img.shields.io/github/release/langchain-ai/langserve)](https://github.com/langchain-ai/langserve/releases) +[![Downloads](https://static.pepy.tech/badge/langserve/month)](https://pepy.tech/project/langserve) +[![Open Issues](https://img.shields.io/github/issues-raw/langchain-ai/langserve)](https://github.com/langchain-ai/langserve/issues) +[![](https://dcbadge.vercel.app/api/server/6adMQxSpJS?compact=true&style=flat)](https://discord.com/channels/1038097195422978059/1170024642245832774) + 🚩 We will be releasing a hosted version of LangServe for one-click deployments of LangChain applications. [Sign up here](https://airtable.com/app0hN6sd93QcKubv/shrAjst60xXa6quV2) to get on the waitlist. ## Overview @@ -26,7 +31,7 @@ A javascript client is available in [LangChainJS](https://js.langchain.com/docs/ ### Limitations - Client callbacks are not yet supported for events that originate on the server -- Does not work with [pydantic v2 yet](https://github.com/tiangolo/fastapi/issues/10360) +- OpenAPI docs will not be generated when using Pydantic V2. Fast API does not support [mixing pydantic v1 and v2 namespaces](https://github.com/tiangolo/fastapi/issues/10360). See section below for more details. ## Hosted LangServe @@ -38,10 +43,10 @@ We will be releasing a hosted version of LangServe for one-click deployments of ## LangChain CLI 🛠️ -Use the `LangChain` CLI to bootstrap a `LangServe` project quickly. +Use the `GigaChain` CLI to bootstrap a `GigaChain` project quickly. -To use the langchain CLI make sure that you have a recent version of `gigachain-cli` -installed. You can install it with `pip install -U "gigachain-cli[serve]"`. +To use the gigachain CLI make sure that you have a recent version of `gigachain-cli` +installed. You can install it with `pip install -U gigachain-cli`. ```sh langchain app new ../path/to/directory @@ -257,6 +262,15 @@ You can deploy to GCP Cloud Run using the following command: gcloud run deploy [your-service-name] --source . --port 8001 --allow-unauthenticated --region us-central1 --set-env-vars=OPENAI_API_KEY=your_key ``` +## Pydantic + +LangServe provides support for Pydantic 2 with some limitations. + +1. OpenAPI docs will not be generated for invoke/batch/stream/stream_log when using Pydantic V2. Fast API does not support [mixing pydantic v1 and v2 namespaces]. +2. LangChain uses the v1 namespace in Pydantic v2. Please read the [following guidelines to ensure compatibility with LangChain](https://github.com/langchain-ai/langchain/discussions/9337) + +Except for these limitations, we expect the API endpoints, the playground and any other features to work as expected. + ## Advanced ### Files @@ -381,7 +395,10 @@ that are uploaded as base64 encoded strings. Here's the full [example](https://g Snippet: ```python -from pydantic import Field +try: + from pydantic.v1 import Field +except ImportError: + from pydantic import Field from langserve import CustomUserType diff --git a/examples/agent/server.py b/examples/agent/server.py index 88b38b2a..6dca64d2 100755 --- a/examples/agent/server.py +++ b/examples/agent/server.py @@ -7,9 +7,9 @@ from langchain.chat_models import ChatOpenAI from langchain.embeddings import OpenAIEmbeddings from langchain.prompts import ChatPromptTemplate, MessagesPlaceholder +from langchain.pydantic_v1 import BaseModel from langchain.tools.render import format_tool_to_openai_function from langchain.vectorstores import FAISS -from pydantic import BaseModel from langserve import add_routes diff --git a/examples/configurable_chain/client.ipynb b/examples/configurable_chain/client.ipynb index e7003a68..5a7b9412 100644 --- a/examples/configurable_chain/client.ipynb +++ b/examples/configurable_chain/client.ipynb @@ -18,28 +18,16 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "metadata": { "tags": [] }, - "outputs": [ - { - "data": { - "text/plain": [ - "{'output': \"Why don't scientists trust atoms who play sports?\\n\\nBecause they make up everything!\",\n", - " 'callback_events': []}" - ] - }, - "execution_count": 1, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "import requests\n", "\n", "inputs = {\"input\": {\"topic\": \"sports\"}}\n", - "response = requests.post(\"http://localhost:8000/invoke\", json=inputs)\n", + "response = requests.post(\"http://localhost:8000/configurable_temp/invoke\", json=inputs)\n", "\n", "response.json()" ] @@ -61,7 +49,7 @@ "source": [ "from langserve import RemoteRunnable\n", "\n", - "remote_runnable = RemoteRunnable(\"http://localhost:8000/\")" + "remote_runnable = RemoteRunnable(\"http://localhost:8000/configurable_temp\")" ] }, { @@ -177,6 +165,104 @@ " },\n", ")" ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Configurability Based on Request Properties\n", + "\n", + "If you want to change your chain invocation based on your request's properties,\n", + "you can do so with `add_routes`'s `per_req_config_modifier` method as follows:\n", + "\n", + "```python \n", + "\n", + "# Add another example route where you can configure the model based\n", + "# on properties of the request. This is useful for passing in API\n", + "# keys from request headers (WITH CAUTION) or using other properties\n", + "# of the request to configure the model.\n", + "def fetch_api_key_from_header(config: Dict[str, Any], req: Request) -> Dict[str, Any]:\n", + " if \"x-api-key\" in req.headers:\n", + " config[\"configurable\"][\"openai_api_key\"] = req.headers[\"x-api-key\"]\n", + " return config\n", + "\n", + "dynamic_auth_model = ChatOpenAI(openai_api_key='placeholder').configurable_fields(\n", + " openai_api_key=ConfigurableField(\n", + " id=\"openai_api_key\",\n", + " name=\"OpenAI API Key\",\n", + " description=(\n", + " \"API Key for OpenAI interactions\"\n", + " ),\n", + " ),\n", + ")\n", + "\n", + "dynamic_auth_chain = dynamic_auth_model | StrOutputParser()\n", + "\n", + "add_routes(\n", + " app, \n", + " dynamic_auth_chain, \n", + " path=\"/auth_from_header\",\n", + " config_keys=[\"configurable\"], \n", + " per_req_config_modifier=fetch_api_key_from_header\n", + ")\n", + "```" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Now, we can see that our request to the model will only work if we have a specific request\n", + "header set:" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "# The model will fail with an auth error\n", + "unauthenticated_response = requests.post(\n", + " \"http://localhost:8000/auth_from_header/invoke\", json={\"input\": \"hello\"}\n", + ")\n", + "unauthenticated_response.json()" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Now, ensure that you have run the following locally on your shell\n", + "```bash\n", + "export TEST_API_KEY=\n", + "```" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "# The model will succeed as long as the above shell script is run previously\n", + "import os\n", + "\n", + "test_key = os.environ[\"TEST_API_KEY\"]\n", + "authenticated_response = requests.post(\n", + " \"http://localhost:8000/auth_from_header/invoke\",\n", + " json={\"input\": \"hello\"},\n", + " headers={\"x-api-key\": test_key},\n", + ")\n", + "authenticated_response.json()" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] } ], "metadata": { @@ -195,7 +281,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.6" + "version": "3.9.18" } }, "nbformat": 4, diff --git a/examples/configurable_chain/server.py b/examples/configurable_chain/server.py index 9491eb15..89d0516b 100755 --- a/examples/configurable_chain/server.py +++ b/examples/configurable_chain/server.py @@ -6,7 +6,9 @@ 1) Configurable Fields: Use this to specify values for a given initialization parameter 2) Configurable Alternatives: Use this to specify complete alternative runnables """ -from fastapi import FastAPI +from typing import Any, Dict + +from fastapi import FastAPI, HTTPException, Request from fastapi.middleware.cors import CORSMiddleware from langchain.chat_models import ChatOpenAI from langchain.prompts import PromptTemplate @@ -15,6 +17,25 @@ from langserve import add_routes +app = FastAPI( + title="LangChain Server", + version="1.0", + description="Spin up a simple api server using Langchain's Runnable interfaces", +) + +# Set all CORS enabled origins +app.add_middleware( + CORSMiddleware, + allow_origins=["*"], + allow_credentials=True, + allow_methods=["*"], + allow_headers=["*"], + expose_headers=["*"], +) + +############################################################################### +# EXAMPLE 1: Configure fields based on RunnableConfig # +############################################################################### model = ChatOpenAI(temperature=0.5).configurable_alternatives( ConfigurableField( id="llm", @@ -38,26 +59,46 @@ ) chain = prompt | model | StrOutputParser() -app = FastAPI( - title="GigaChain Server", - version="1.0", - description="Spin up a simple api server using Langchain's Runnable interfaces", -) +# Add routes requires you to specify which config keys are accepted +# specifically, you must accept `configurable` as a config key. +add_routes(app, chain, path="/configurable_temp", config_keys=["configurable"]) -# Set all CORS enabled origins -app.add_middleware( - CORSMiddleware, - allow_origins=["*"], - allow_credentials=True, - allow_methods=["*"], - allow_headers=["*"], - expose_headers=["*"], + +############################################################################### +# EXAMPLE 2: Configure fields based on Request metadata # +############################################################################### + + +# Add another example route where you can configure the model based +# on properties of the request. This is useful for passing in API +# keys from request headers (WITH CAUTION) or using other properties +# of the request to configure the model. +def fetch_api_key_from_header(config: Dict[str, Any], req: Request) -> Dict[str, Any]: + if "x-api-key" in req.headers: + config["configurable"]["openai_api_key"] = req.headers["x-api-key"] + else: + raise HTTPException(401, "No API key provided") + + return config + + +dynamic_auth_model = ChatOpenAI(openai_api_key="placeholder").configurable_fields( + openai_api_key=ConfigurableField( + id="openai_api_key", + name="OpenAI API Key", + description=("API Key for OpenAI interactions"), + ), ) +dynamic_auth_chain = dynamic_auth_model | StrOutputParser() -# Add routes requires you to specify which config keys are accepted -# specifically, you must accept `configurable` as a config key. -add_routes(app, chain, config_keys=["configurable"]) +add_routes( + app, + dynamic_auth_chain, + path="/auth_from_header", + config_keys=["configurable"], + per_req_config_modifier=fetch_api_key_from_header, +) if __name__ == "__main__": import uvicorn diff --git a/examples/conversational_retrieval_chain/server.py b/examples/conversational_retrieval_chain/server.py index f72593b0..dc14707e 100755 --- a/examples/conversational_retrieval_chain/server.py +++ b/examples/conversational_retrieval_chain/server.py @@ -6,8 +6,8 @@ from langchain.chains import ConversationalRetrievalChain from langchain.chat_models import ChatOpenAI from langchain.embeddings import OpenAIEmbeddings +from langchain.pydantic_v1 import BaseModel, Field from langchain.vectorstores import FAISS -from pydantic import BaseModel, Field from langserve import add_routes diff --git a/examples/file_processing/server.py b/examples/file_processing/server.py index 5e2b9856..17eeb34c 100755 --- a/examples/file_processing/server.py +++ b/examples/file_processing/server.py @@ -17,8 +17,8 @@ from fastapi import FastAPI from langchain.document_loaders.blob_loaders import Blob from langchain.document_loaders.parsers.pdf import PDFMinerParser +from langchain.pydantic_v1 import Field from langchain.schema.runnable import RunnableLambda -from pydantic import Field from langserve import CustomUserType, add_routes diff --git a/examples/widgets/server.py b/examples/widgets/server.py index cef6ab7b..2508b9db 100755 --- a/examples/widgets/server.py +++ b/examples/widgets/server.py @@ -1,14 +1,20 @@ #!/usr/bin/env python """Endpoint shows off available playground widgets.""" import base64 +from json import dumps from typing import Any, Dict, List, Tuple from fastapi import FastAPI from fastapi.middleware.cors import CORSMiddleware from langchain.document_loaders.blob_loaders import Blob from langchain.document_loaders.parsers.pdf import PDFMinerParser +from langchain.pydantic_v1 import BaseModel, Field +from langchain.schema.messages import ( + AIMessage, + BaseMessage, + FunctionMessage, +) from langchain.schema.runnable import RunnableLambda -from pydantic import BaseModel, Field from langserve.server import add_routes @@ -39,6 +45,14 @@ class ChatHistory(BaseModel): question: str +class ChatHistoryMessage(BaseModel): + chat_history: List[BaseMessage] = Field( + ..., + extra={"widget": {"type": "chat", "input": "location", "output": "output"}}, + ) + location: str + + class FileProcessingRequest(BaseModel): file: bytes = Field(..., extra={"widget": {"type": "base64file"}}) num_chars: int = 100 @@ -52,6 +66,23 @@ def chat_with_bot(input: Dict[str, Any]) -> Dict[str, Any]: } +def chat_message_bot(input: Dict[str, Any]) -> List[BaseMessage]: + """Bot that repeats the question twice.""" + return [ + AIMessage( + content="", + additional_kwargs={ + "function_call": { + "name": "get_weather", + "arguments": dumps({"location": input["location"]}), + } + }, + ), + FunctionMessage(name="get_weather", content='{"value": 32}'), + AIMessage(content=f"Weather in {input['location']}: 32"), + ] + + def process_file(input: Dict[str, Any]) -> str: """Extract the text from the first page of the PDF.""" content = base64.decodebytes(input["file"]) @@ -75,6 +106,13 @@ def process_file(input: Dict[str, Any]) -> str: path="/pdf", ) +add_routes( + app, + RunnableLambda(chat_message_bot).with_types(input_type=ChatHistoryMessage), + config_keys=["configurable"], + path="/chat_message", +) + if __name__ == "__main__": import uvicorn diff --git a/langserve/client.py b/langserve/client.py index 97e59fda..209bdc41 100644 --- a/langserve/client.py +++ b/langserve/client.py @@ -35,7 +35,7 @@ get_async_callback_manager_for_config, get_callback_manager_for_config, ) -from langchain.schema.runnable.utils import Input, Output +from langchain.schema.runnable.utils import AddableDict, Input, Output from langserve.callbacks import CallbackEventDict, ahandle_callbacks, handle_callbacks from langserve.serialization import ( @@ -453,6 +453,7 @@ def stream( callback_manager = get_callback_manager_for_config(config) final_output: Optional[Output] = None + final_output_supported = True run_manager = callback_manager.on_chain_start( dumpd(self), @@ -481,12 +482,31 @@ def stream( for sse in event_source.iter_sse(): if sse.event == "data": chunk = self._lc_serializer.loads(sse.data) + if isinstance(chunk, dict): + # Any dict returned from streaming end point + # is assumed to follow additive semantics + # and will be converted to an AddableDict + # automatically + chunk = AddableDict(chunk) yield chunk - if final_output: - final_output += chunk - else: - final_output = chunk + if final_output_supported: + # here we attempt to aggregate the final output + # from the stream. + # the final output is used for the final callback + # event (`on_chain_end`) + # Aggregating the final output is only supported + # if the output is additive (e.g., string or + # AddableDict, etc.) + # We attempt to aggregate it on best effort basis. + if final_output is None: + final_output = chunk + else: + try: + final_output = final_output + chunk + except TypeError: + final_output = None + final_output_supported = False elif sse.event == "error": # This can only be a server side error _raise_exception_from_data( @@ -516,6 +536,7 @@ async def astream( callback_manager = get_async_callback_manager_for_config(config) final_output: Optional[Output] = None + final_output_supported = True run_manager = await callback_manager.on_chain_start( dumpd(self), @@ -541,12 +562,31 @@ async def astream( async for sse in event_source.aiter_sse(): if sse.event == "data": chunk = self._lc_serializer.loads(sse.data) + if isinstance(chunk, dict): + # Any dict returned from streaming end point + # is assumed to follow additive semantics + # and will be converted to an AddableDict + # automatically + chunk = AddableDict(chunk) yield chunk - if final_output: - final_output += chunk - else: - final_output = chunk + if final_output_supported: + # here we attempt to aggregate the final output + # from the stream. + # the final output is used for the final callback + # event (`on_chain_end`) + # Aggregating the final output is only supported + # if the output is additive (e.g., string or + # AddableDict, etc.) + # We attempt to aggregate it on best effort basis. + if final_output is None: + final_output = chunk + else: + try: + final_output = final_output + chunk + except TypeError: + final_output = None + final_output_supported = False elif sse.event == "error": # This can only be a server side error diff --git a/langserve/packages.py b/langserve/packages.py deleted file mode 100644 index bb549436..00000000 --- a/langserve/packages.py +++ /dev/null @@ -1,104 +0,0 @@ -import importlib -import logging -from pathlib import Path -from typing import Generator, TypedDict, Union - -from fastapi import APIRouter, FastAPI -from tomli import load - -from langserve.server import add_routes - - -class LangServeExport(TypedDict): - """ - Fields from pyproject.toml that are relevant to LangServe - - Attributes: - module: The module to import from, tool.langserve.export_module - attr: The attribute to import from the module, tool.langserve.export_attr - package_name: The name of the package, tool.poetry.name - """ - - module: str - attr: str - package_name: str - - -def get_langserve_export(filepath: Path) -> LangServeExport: - with open(filepath, "rb") as f: - data = load(f) - try: - module = data["tool"]["gigaserve"]["export_module"] - attr = data["tool"]["gigaserve"]["export_attr"] - package_name = data["tool"]["poetry"]["name"] - except KeyError as e: - raise KeyError("Invalid LangServe PyProject.toml") from e - return LangServeExport(module=module, attr=attr, package_name=package_name) - - -EXCLUDE_PATHS = set(["__pycache__", ".venv", ".git", ".github"]) - - -def _include_path(path: Path) -> bool: - """ - Skip paths that are in EXCLUDE_PATHS or start with an underscore. - """ - for part in path.parts: - if part in EXCLUDE_PATHS: - return False - if part.startswith("_"): - return False - return True - - -def list_packages(path: str = "../packages") -> Generator[Path, None, None]: - """ - Yields Path objects for each folder that contains a pyproject.toml file within a - path. Use this to find packages to add to the server. - - See `add_package_routes` below for an example of how to use this. - """ - # traverse path for routes to host (any directory holding a pyproject.toml file) - package_root = Path(path) - for pyproject_path in package_root.glob("**/pyproject.toml"): - if not _include_path(pyproject_path): - continue - yield pyproject_path.parent - - -def add_package_route( - app: Union[FastAPI, APIRouter], package_path: Path, mount_path: str -) -> None: - try: - pyproject_path = package_path / "pyproject.toml" - - # get langserve export - package = get_langserve_export(pyproject_path) - package_name = package["package_name"] - # import module - mod = importlib.import_module(package["module"]) - except KeyError: - logging.warning( - f"Skipping {package_path} because it is not a valid LangServe " - "package (see pyproject.toml)" - ) - return - except ImportError as e: - logging.warning(f"Error: {e}") - logging.warning(f"Try fixing with `poetry add --editable {package_path}`") - logging.warning( - "To remove packages, use `poe` instead of `poetry`: " - f"`poe remove {package_name}`" - ) - return - # get attr - chain = getattr(mod, package["attr"]) - add_routes(app, chain, path=mount_path) - - -def add_package_routes(app: Union[FastAPI, APIRouter], path: str = "packages") -> None: - # traverse path for routes to host (any directory holding a pyproject.toml file) - for package_path in list_packages(path): - mount_path_relative = package_path.relative_to(Path(path)) - mount_path = f"/{mount_path_relative}" - add_package_route(app, package_path, mount_path) diff --git a/langserve/playground.py b/langserve/playground.py index 8659e874..66ca639c 100644 --- a/langserve/playground.py +++ b/langserve/playground.py @@ -7,10 +7,7 @@ from fastapi.responses import Response from langchain.schema.runnable import Runnable -try: - from pydantic.v1 import BaseModel -except ImportError: - from pydantic import BaseModel +from langserve.pydantic_v1 import BaseModel class PlaygroundTemplate(Template): @@ -41,7 +38,7 @@ async def serve_playground( return Response("Not Found", status_code=404) try: - with open(local_file_path) as f: + with open(local_file_path, encoding="utf-8") as f: mime_type = mimetypes.guess_type(local_file_path)[0] if mime_type in ("text/html", "text/css", "application/javascript"): response = PlaygroundTemplate(f.read()).substitute( diff --git a/langserve/playground/dist/assets/index-244b2b9b.css b/langserve/playground/dist/assets/index-244b2b9b.css deleted file mode 100644 index e63c9993..00000000 --- a/langserve/playground/dist/assets/index-244b2b9b.css +++ /dev/null @@ -1 +0,0 @@ -*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}input,textarea,select{background:transparent}input:focus,textarea:focus,select:focus{box-shadow:none;outline:none}:root{--popover: 0 0% 100%;--background: 0 0% 100%;--divider-500: 210 40% 96.1%;--divider-700: 214.3 31.8% 91.4%;--ls-blue: 211.5 91.8% 61.8%;--ls-black: 222.2 47.4% 11.2%;--ls-gray-100: 215.4 16.3% 46.9%;--ls-gray-200: 212.7 26.8% 83.9%;--ls-gray-300: 214.3 31.8% 91.4%;--ls-gray-400: 210 40% 96.1%}@media (prefers-color-scheme: dark){:root{--popover: 240 11.6% 8.4%;--background: 240 11.6% 8.4%;--divider-500: 217.2 32.6% 17.5%;--divider-700: 215.3 25% 26.7%;--ls-blue: 211.5 91.8% 61.8%;--ls-black: 0 0% 100%;--ls-gray-100: 215 20.2% 65.1%;--ls-gray-200: 215.4 16.3% 46.9%;--ls-gray-300: 215.3 25% 26.7%;--ls-gray-400: 217.2 32.6% 17.5%}}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.\!visible{visibility:visible!important}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.bottom-0{bottom:0}.bottom-full{bottom:100%}.left-0{left:0}.right-0{right:0}.col-\[1\]{grid-column:1}.row-\[1\]{grid-row:1}.m-0{margin:0}.-mx-4{margin-left:-1rem;margin-right:-1rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-ml-1{margin-left:-.25rem}.-mr-1{margin-right:-.25rem}.mb-1{margin-bottom:.25rem}.ml-1{margin-left:.25rem}.mt-1{margin-top:.25rem}.mt-24{margin-top:6rem}.flex{display:flex}.grid{display:grid}.h-10{height:2.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.min-h-\[100dvh\]{min-height:100dvh}.w-10{width:2.5rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-full{width:100%}.min-w-0{min-width:0px}.min-w-\[100px\]{min-width:100px}.max-w-\[800px\]{max-width:800px}.max-w-\[calc\(800px-2rem\)\]{max-width:calc(800px - 2rem)}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.list-disc{list-style-type:disc}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-\[1fr\,auto\]{grid-template-columns:1fr auto}.grid-cols-\[auto\,1fr\,auto\]{grid-template-columns:auto 1fr auto}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-solid>:not([hidden])~:not([hidden]){border-style:solid}.divide-divider-700>:not([hidden])~:not([hidden]){border-color:hsl(var(--divider-700))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-b-xl{border-bottom-right-radius:.75rem;border-bottom-left-radius:.75rem}.rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.border{border-width:1px}.border-none{border-style:none}.border-divider-500{border-color:hsl(var(--divider-500))}.border-divider-700{border-color:hsl(var(--divider-700))}.border-transparent{border-color:transparent}.border-b-background{border-bottom-color:hsl(var(--background))}.bg-background{background-color:hsl(var(--background))}.bg-black\/40{background-color:#0006}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-ls-gray-400{background-color:hsl(var(--ls-gray-400))}.bg-red-500\/10{background-color:#ef44441a}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-\[\#F9FAFB\]{--tw-gradient-from: #F9FAFB var(--tw-gradient-from-position);--tw-gradient-to: rgb(249 250 251 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-black\/5{--tw-gradient-from: rgb(0 0 0 / .05) var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-\[\#EFF8FF\]{--tw-gradient-to: #EFF8FF var(--tw-gradient-to-position)}.to-black\/0{--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position)}.fill-ls-blue{fill:#4499f7}.p-0{padding:0}.p-1{padding:.25rem}.p-3{padding:.75rem}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pl-5{padding-left:1.25rem}.pt-0{padding-top:0}.pt-3{padding-top:.75rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.text-ls-black{color:hsl(var(--ls-black))}.text-ls-gray-100{color:hsl(var(--ls-gray-100))}.text-red-700{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity))}.text-transparent{color:transparent}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.caret-black{caret-color:#000}.opacity-0{opacity:0}.opacity-20{opacity:.2}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.control{position:relative;display:flex;flex-direction:column;gap:.25rem;border-radius:.5rem;border-width:1px;border-color:hsl(var(--divider-700));background-color:hsl(var(--background));padding:.75rem;outline-color:#4499f733;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.control:focus-within{--tw-border-opacity: 1;border-color:hsl(211.5 91.8% 61.8% / var(--tw-border-opacity));outline-style:solid;outline-width:4px;outline-color:#4499f733}.control>label,.control h6{font-size:.75rem;line-height:1rem;font-weight:600;text-transform:uppercase;color:hsl(var(--ls-gray-100))}.control div .MuiGrid-item{padding-top:0}.control>select{margin-left:-.25rem}.control>.input-description,.control>.validation{position:absolute;right:.75rem;top:.75rem;font-size:.75rem;line-height:1rem}.group-layout{display:flex;flex-direction:column;gap:1rem;border-radius:.5rem;border-width:1px;border-color:hsl(var(--divider-700));background-color:hsl(var(--background));padding:1rem}.no-scrollbar{scrollbar-width:none}.no-scrollbar::-webkit-scrollbar{display:none}.vertical-layout{display:flex;flex-direction:column;gap:1rem}.after\:\!bg-background:after{content:var(--tw-content);background-color:hsl(var(--background))!important}.first-of-type\:pt-0:first-of-type{padding-top:0}.empty\:hidden:empty{display:none}.hover\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.hover\:bg-divider-500\/50:hover{background-color:hsl(var(--divider-500) / .5)}.active\:bg-blue-700:active{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.active\:bg-divider-500:active{background-color:hsl(var(--divider-500))}.disabled\:opacity-50:disabled{opacity:.5}.group:focus-within .group-focus-within\:opacity-100{opacity:1}.group:hover .group-hover\:opacity-100{opacity:1}@media (prefers-color-scheme: dark){.dark\:bg-\[\#111111\]{--tw-bg-opacity: 1;background-color:rgb(17 17 17 / var(--tw-bg-opacity))}.dark\:bg-\[\#2C2C2E\]{--tw-bg-opacity: 1;background-color:rgb(44 44 46 / var(--tw-bg-opacity))}.dark\:from-\[\#0C111C\]{--tw-gradient-from: #0C111C var(--tw-gradient-from-position);--tw-gradient-to: rgb(12 17 28 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:to-\[\#0C111C\]{--tw-gradient-to: #0C111C var(--tw-gradient-to-position)}.dark\:text-red-300{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity))}.dark\:caret-slate-200{caret-color:#e2e8f0}}@media (min-width: 768px){.md\:static{position:static}.md\:hidden{display:none}.md\:bg-transparent{background-color:transparent}}.\[\&\:has\(\.content\>\.vertical-layout\:first-child\:last-child\:empty\)\]\:hidden:has(.content>.vertical-layout:first-child:last-child:empty){display:none} diff --git a/langserve/playground/dist/assets/index-7c3e1e1d.js b/langserve/playground/dist/assets/index-7c3e1e1d.js new file mode 100644 index 00000000..6b4cf24e --- /dev/null +++ b/langserve/playground/dist/assets/index-7c3e1e1d.js @@ -0,0 +1,247 @@ +var f7=Object.defineProperty;var p7=(e,t,n)=>t in e?f7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ud=(e,t,n)=>(p7(e,typeof t!="symbol"?t+"":t,n),n);function h7(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 a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();var yo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function m7(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 XM={exports:{}},Gg={},QM={exports:{}},an={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Lp=Symbol.for("react.element"),v7=Symbol.for("react.portal"),g7=Symbol.for("react.fragment"),y7=Symbol.for("react.strict_mode"),b7=Symbol.for("react.profiler"),x7=Symbol.for("react.provider"),w7=Symbol.for("react.context"),C7=Symbol.for("react.forward_ref"),$7=Symbol.for("react.suspense"),S7=Symbol.for("react.memo"),_7=Symbol.for("react.lazy"),iT=Symbol.iterator;function E7(e){return e===null||typeof e!="object"?null:(e=iT&&e[iT]||e["@@iterator"],typeof e=="function"?e:null)}var eI={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},tI=Object.assign,nI={};function Qu(e,t,n){this.props=e,this.context=t,this.refs=nI,this.updater=n||eI}Qu.prototype.isReactComponent={};Qu.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Qu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function rI(){}rI.prototype=Qu.prototype;function FC(e,t,n){this.props=e,this.context=t,this.refs=nI,this.updater=n||eI}var zC=FC.prototype=new rI;zC.constructor=FC;tI(zC,Qu.prototype);zC.isPureReactComponent=!0;var sT=Array.isArray,oI=Object.prototype.hasOwnProperty,BC={current:null},aI={key:!0,ref:!0,__self:!0,__source:!0};function iI(e,t,n){var r,o={},a=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(a=""+t.key),t)oI.call(t,r)&&!aI.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1>>1,K=H[L];if(0>>1;Lo(N,X))Vo(Z,N)?(H[L]=Z,H[V]=X,L=V):(H[L]=N,H[D]=X,L=D);else if(Vo(Z,X))H[L]=Z,H[V]=X,L=V;else break e}}return J}function o(H,J){var X=H.sortIndex-J.sortIndex;return X!==0?X:H.id-J.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var l=[],c=[],u=1,f=null,p=3,m=!1,b=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(H){for(var J=n(c);J!==null;){if(J.callback===null)r(c);else if(J.startTime<=H)r(c),J.sortIndex=J.expirationTime,t(l,J);else break;J=n(c)}}function C(H){if(v=!1,w(H),!b)if(n(l)!==null)b=!0,Y(_);else{var J=n(c);J!==null&&Q(C,J.startTime-H)}}function _(H,J){b=!1,v&&(v=!1,g(k),k=-1),m=!0;var X=p;try{for(w(J),f=n(l);f!==null&&(!(f.expirationTime>J)||H&&!F());){var L=f.callback;if(typeof L=="function"){f.callback=null,p=f.priorityLevel;var K=L(f.expirationTime<=J);J=e.unstable_now(),typeof K=="function"?f.callback=K:f===n(l)&&r(l),w(J)}else r(l);f=n(l)}if(f!==null)var q=!0;else{var D=n(c);D!==null&&Q(C,D.startTime-J),q=!1}return q}finally{f=null,p=X,m=!1}}var $=!1,E=null,k=-1,I=5,R=-1;function F(){return!(e.unstable_now()-RH||125L?(H.sortIndex=X,t(c,H),n(l)===null&&H===n(c)&&(v?(g(k),k=-1):v=!0,Q(C,X-L))):(H.sortIndex=K,t(l,H),b||m||(b=!0,Y(_))),H},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(H){var J=p;return function(){var X=p;p=J;try{return H.apply(this,arguments)}finally{p=X}}}})(uI);cI.exports=uI;var j7=cI.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var dI=S,qo=j7;function at(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wx=Object.prototype.hasOwnProperty,L7=/^[: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]*$/,cT={},uT={};function F7(e){return Wx.call(uT,e)?!0:Wx.call(cT,e)?!1:L7.test(e)?uT[e]=!0:(cT[e]=!0,!1)}function z7(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 B7(e,t,n,r){if(t===null||typeof t>"u"||z7(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 io(e,t,n,r,o,a,i){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=a,this.removeEmptyString=i}var Nr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Nr[e]=new io(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Nr[t]=new io(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Nr[e]=new io(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Nr[e]=new io(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){Nr[e]=new io(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Nr[e]=new io(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Nr[e]=new io(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Nr[e]=new io(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Nr[e]=new io(e,5,!1,e.toLowerCase(),null,!1,!1)});var UC=/[\-:]([a-z])/g;function WC(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(UC,WC);Nr[t]=new io(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(UC,WC);Nr[t]=new io(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(UC,WC);Nr[t]=new io(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Nr[e]=new io(e,1,!1,e.toLowerCase(),null,!1,!1)});Nr.xlinkHref=new io("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Nr[e]=new io(e,1,!1,e.toLowerCase(),null,!0,!0)});function HC(e,t,n,r){var o=Nr.hasOwnProperty(t)?Nr[t]:null;(o!==null?o.type!==0:r||!(2s||o[i]!==a[s]){var l=` +`+o[i].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=i&&0<=s);break}}}finally{rb=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?yf(e):""}function V7(e){switch(e.tag){case 5:return yf(e.type);case 16:return yf("Lazy");case 13:return yf("Suspense");case 19:return yf("SuspenseList");case 0:case 2:case 15:return e=ob(e.type,!1),e;case 11:return e=ob(e.type.render,!1),e;case 1:return e=ob(e.type,!0),e;default:return""}}function Yx(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 ou:return"Fragment";case ru:return"Portal";case Hx:return"Profiler";case GC:return"StrictMode";case Gx:return"Suspense";case qx:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case hI:return(e.displayName||"Context")+".Consumer";case pI:return(e._context.displayName||"Context")+".Provider";case qC:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case YC:return t=e.displayName||null,t!==null?t:Yx(e.type)||"Memo";case Ts:t=e._payload,e=e._init;try{return Yx(e(t))}catch{}}return null}function U7(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 Yx(t);case 8:return t===GC?"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 Ks(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function vI(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function W7(e){var t=vI(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,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function vm(e){e._valueTracker||(e._valueTracker=W7(e))}function gI(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=vI(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function zv(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 Kx(e,t){var n=t.checked;return Yn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function fT(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ks(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 yI(e,t){t=t.checked,t!=null&&HC(e,"checked",t,!1)}function Jx(e,t){yI(e,t);var n=Ks(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")?Zx(e,t.type,n):t.hasOwnProperty("defaultValue")&&Zx(e,t.type,Ks(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function pT(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 Zx(e,t,n){(t!=="number"||zv(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var bf=Array.isArray;function bu(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=gm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function np(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var kf={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},H7=["Webkit","ms","Moz","O"];Object.keys(kf).forEach(function(e){H7.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),kf[t]=kf[e]})});function CI(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||kf.hasOwnProperty(e)&&kf[e]?(""+t).trim():t+"px"}function $I(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=CI(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var G7=Yn({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 ew(e,t){if(t){if(G7[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(at(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(at(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(at(61))}if(t.style!=null&&typeof t.style!="object")throw Error(at(62))}}function tw(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 nw=null;function KC(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rw=null,xu=null,wu=null;function vT(e){if(e=Bp(e)){if(typeof rw!="function")throw Error(at(280));var t=e.stateNode;t&&(t=Zg(t),rw(e.stateNode,e.type,t))}}function SI(e){xu?wu?wu.push(e):wu=[e]:xu=e}function _I(){if(xu){var e=xu,t=wu;if(wu=xu=null,vT(e),t)for(e=0;e>>=0,e===0?32:31-(rz(e)/oz|0)|0}var ym=64,bm=4194304;function xf(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 Wv(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~o;s!==0?r=xf(s):(a&=i,a!==0&&(r=xf(a)))}else i=n&~o,i!==0?r=xf(i):a!==0&&(r=xf(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,a=t&-t,o>=a||o===16&&(a&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 Fp(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Va(t),e[t]=n}function lz(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=Rf),_T=String.fromCharCode(32),ET=!1;function HI(e,t){switch(e){case"keyup":return Nz.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function GI(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var au=!1;function Lz(e,t){switch(e){case"compositionend":return GI(t);case"keypress":return t.which!==32?null:(ET=!0,_T);case"textInput":return e=t.data,e===_T&&ET?null:e;default:return null}}function Fz(e,t){if(au)return e==="compositionend"||!r$&&HI(e,t)?(e=UI(),pv=e$=Ms=null,au=!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=OT(n)}}function JI(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?JI(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ZI(){for(var e=window,t=zv();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=zv(e.document)}return t}function o$(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 Yz(e){var t=ZI(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&JI(n.ownerDocument.documentElement,n)){if(r!==null&&o$(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,a=Math.min(r.start,o);r=r.end===void 0?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=RT(n,a);var i=RT(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.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,iu=null,cw=null,Mf=null,uw=!1;function DT(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;uw||iu==null||iu!==zv(r)||(r=iu,"selectionStart"in r&&o$(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}),Mf&&lp(Mf,r)||(Mf=r,r=qv(cw,"onSelect"),0cu||(e.current=vw[cu],vw[cu]=null,cu--)}function Rn(e,t){cu++,vw[cu]=e.current,e.current=t}var Js={},Gr=tl(Js),xo=tl(!1),Wl=Js;function Iu(e,t){var n=e.type.contextTypes;if(!n)return Js;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in n)o[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function wo(e){return e=e.childContextTypes,e!=null}function Kv(){jn(xo),jn(Gr)}function FT(e,t,n){if(Gr.current!==Js)throw Error(at(168));Rn(Gr,t),Rn(xo,n)}function iA(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(at(108,U7(e)||"Unknown",o));return Yn({},n,r)}function Jv(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Js,Wl=Gr.current,Rn(Gr,e),Rn(xo,xo.current),!0}function zT(e,t,n){var r=e.stateNode;if(!r)throw Error(at(169));n?(e=iA(e,t,Wl),r.__reactInternalMemoizedMergedChildContext=e,jn(xo),jn(Gr),Rn(Gr,e)):jn(xo),Rn(xo,n)}var Vi=null,Xg=!1,yb=!1;function sA(e){Vi===null?Vi=[e]:Vi.push(e)}function iB(e){Xg=!0,sA(e)}function nl(){if(!yb&&Vi!==null){yb=!0;var e=0,t=wn;try{var n=Vi;for(wn=1;e>=i,o-=i,Wi=1<<32-Va(t)+o|n<k?(I=E,E=null):I=E.sibling;var R=p(g,E,w[k],C);if(R===null){E===null&&(E=I);break}e&&E&&R.alternate===null&&t(g,E),y=a(R,y,k),$===null?_=R:$.sibling=R,$=R,E=I}if(k===w.length)return n(g,E),Fn&&_l(g,k),_;if(E===null){for(;kk?(I=E,E=null):I=E.sibling;var F=p(g,E,R.value,C);if(F===null){E===null&&(E=I);break}e&&E&&F.alternate===null&&t(g,E),y=a(F,y,k),$===null?_=F:$.sibling=F,$=F,E=I}if(R.done)return n(g,E),Fn&&_l(g,k),_;if(E===null){for(;!R.done;k++,R=w.next())R=f(g,R.value,C),R!==null&&(y=a(R,y,k),$===null?_=R:$.sibling=R,$=R);return Fn&&_l(g,k),_}for(E=r(g,E);!R.done;k++,R=w.next())R=m(E,g,k,R.value,C),R!==null&&(e&&R.alternate!==null&&E.delete(R.key===null?k:R.key),y=a(R,y,k),$===null?_=R:$.sibling=R,$=R);return e&&E.forEach(function(U){return t(g,U)}),Fn&&_l(g,k),_}function x(g,y,w,C){if(typeof w=="object"&&w!==null&&w.type===ou&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case mm:e:{for(var _=w.key,$=y;$!==null;){if($.key===_){if(_=w.type,_===ou){if($.tag===7){n(g,$.sibling),y=o($,w.props.children),y.return=g,g=y;break e}}else if($.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Ts&&qT(_)===$.type){n(g,$.sibling),y=o($,w.props),y.ref=Kd(g,$,w),y.return=g,g=y;break e}n(g,$);break}else t(g,$);$=$.sibling}w.type===ou?(y=zl(w.props.children,g.mode,C,w.key),y.return=g,g=y):(C=wv(w.type,w.key,w.props,null,g.mode,C),C.ref=Kd(g,y,w),C.return=g,g=C)}return i(g);case ru:e:{for($=w.key;y!==null;){if(y.key===$)if(y.tag===4&&y.stateNode.containerInfo===w.containerInfo&&y.stateNode.implementation===w.implementation){n(g,y.sibling),y=o(y,w.children||[]),y.return=g,g=y;break e}else{n(g,y);break}else t(g,y);y=y.sibling}y=Eb(w,g.mode,C),y.return=g,g=y}return i(g);case Ts:return $=w._init,x(g,y,$(w._payload),C)}if(bf(w))return b(g,y,w,C);if(Wd(w))return v(g,y,w,C);Em(g,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,y!==null&&y.tag===6?(n(g,y.sibling),y=o(y,w),y.return=g,g=y):(n(g,y),y=_b(w,g.mode,C),y.return=g,g=y),i(g)):n(g,y)}return x}var Nu=mA(!0),vA=mA(!1),Vp={},vi=tl(Vp),fp=tl(Vp),pp=tl(Vp);function Nl(e){if(e===Vp)throw Error(at(174));return e}function p$(e,t){switch(Rn(pp,t),Rn(fp,e),Rn(vi,Vp),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Qx(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Qx(t,e)}jn(vi),Rn(vi,t)}function ju(){jn(vi),jn(fp),jn(pp)}function gA(e){Nl(pp.current);var t=Nl(vi.current),n=Qx(t,e.type);t!==n&&(Rn(fp,e),Rn(vi,n))}function h$(e){fp.current===e&&(jn(vi),jn(fp))}var Gn=tl(0);function ng(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var bb=[];function m$(){for(var e=0;en?n:4,e(!0);var r=xb.transition;xb.transition={};try{e(!1),t()}finally{wn=n,xb.transition=r}}function MA(){return ba().memoizedState}function uB(e,t,n){var r=Hs(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},IA(e))AA(t,n);else if(n=dA(e,t,n,r),n!==null){var o=ro();Ua(n,e,r,o),NA(n,t,r)}}function dB(e,t,n){var r=Hs(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(IA(e))AA(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,s=a(i,n);if(o.hasEagerState=!0,o.eagerState=s,Ha(s,i)){var l=t.interleaved;l===null?(o.next=o,d$(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=dA(e,t,o,r),n!==null&&(o=ro(),Ua(n,e,r,o),NA(n,t,r))}}function IA(e){var t=e.alternate;return e===qn||t!==null&&t===qn}function AA(e,t){If=rg=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function NA(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ZC(e,n)}}var og={readContext:ya,useCallback:Fr,useContext:Fr,useEffect:Fr,useImperativeHandle:Fr,useInsertionEffect:Fr,useLayoutEffect:Fr,useMemo:Fr,useReducer:Fr,useRef:Fr,useState:Fr,useDebugValue:Fr,useDeferredValue:Fr,useTransition:Fr,useMutableSource:Fr,useSyncExternalStore:Fr,useId:Fr,unstable_isNewReconciler:!1},fB={readContext:ya,useCallback:function(e,t){return ai().memoizedState=[e,t===void 0?null:t],e},useContext:ya,useEffect:KT,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,gv(4194308,4,TA.bind(null,t,e),n)},useLayoutEffect:function(e,t){return gv(4194308,4,e,t)},useInsertionEffect:function(e,t){return gv(4,2,e,t)},useMemo:function(e,t){var n=ai();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ai();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=uB.bind(null,qn,e),[r.memoizedState,e]},useRef:function(e){var t=ai();return e={current:e},t.memoizedState=e},useState:YT,useDebugValue:x$,useDeferredValue:function(e){return ai().memoizedState=e},useTransition:function(){var e=YT(!1),t=e[0];return e=cB.bind(null,e[1]),ai().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=qn,o=ai();if(Fn){if(n===void 0)throw Error(at(407));n=n()}else{if(n=t(),Tr===null)throw Error(at(349));Gl&30||xA(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,KT(CA.bind(null,r,a,e),[e]),r.flags|=2048,vp(9,wA.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ai(),t=Tr.identifierPrefix;if(Fn){var n=Hi,r=Wi;n=(r&~(1<<32-Va(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=hp++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[ci]=t,e[dp]=r,HA(e,t,!1,!1),t.stateNode=e;e:{switch(i=tw(n,r),n){case"dialog":In("cancel",e),In("close",e),o=r;break;case"iframe":case"object":case"embed":In("load",e),o=r;break;case"video":case"audio":for(o=0;oFu&&(t.flags|=128,r=!0,Jd(a,!1),t.lanes=4194304)}else{if(!r)if(e=ng(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Jd(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!Fn)return zr(t),null}else 2*sr()-a.renderingStartTime>Fu&&n!==1073741824&&(t.flags|=128,r=!0,Jd(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(n=a.last,n!==null?n.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=sr(),t.sibling=null,n=Gn.current,Rn(Gn,r?n&1|2:n&1),t):(zr(t),null);case 22:case 23:return E$(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?jo&1073741824&&(zr(t),t.subtreeFlags&6&&(t.flags|=8192)):zr(t),null;case 24:return null;case 25:return null}throw Error(at(156,t.tag))}function xB(e,t){switch(i$(t),t.tag){case 1:return wo(t.type)&&Kv(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ju(),jn(xo),jn(Gr),m$(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return h$(t),null;case 13:if(jn(Gn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(at(340));Au()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return jn(Gn),null;case 4:return ju(),null;case 10:return u$(t.type._context),null;case 22:case 23:return E$(),null;case 24:return null;default:return null}}var Tm=!1,Wr=!1,wB=typeof WeakSet=="function"?WeakSet:Set,bt=null;function pu(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){er(e,t,r)}else n.current=null}function Tw(e,t,n){try{n()}catch(r){er(e,t,r)}}var ok=!1;function CB(e,t){if(dw=Hv,e=ZI(),o$(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,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var i=0,s=-1,l=-1,c=0,u=0,f=e,p=null;t:for(;;){for(var m;f!==n||o!==0&&f.nodeType!==3||(s=i+o),f!==a||r!==0&&f.nodeType!==3||(l=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break t;if(p===n&&++c===o&&(s=i),p===a&&++u===r&&(l=i),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(fw={focusedElem:e,selectionRange:n},Hv=!1,bt=t;bt!==null;)if(t=bt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,bt=e;else for(;bt!==null;){t=bt;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var v=b.memoizedProps,x=b.memoizedState,g=t.stateNode,y=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:Ma(t.type,v),x);g.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(at(163))}}catch(C){er(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,bt=e;break}bt=t.return}return b=ok,ok=!1,b}function Af(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 a=o.destroy;o.destroy=void 0,a!==void 0&&Tw(t,n,a)}o=o.next}while(o!==r)}}function ty(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 kw(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 YA(e){var t=e.alternate;t!==null&&(e.alternate=null,YA(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ci],delete t[dp],delete t[mw],delete t[oB],delete t[aB])),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 KA(e){return e.tag===5||e.tag===3||e.tag===4}function ak(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||KA(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 Ow(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=Yv));else if(r!==4&&(e=e.child,e!==null))for(Ow(e,t,n),e=e.sibling;e!==null;)Ow(e,t,n),e=e.sibling}function Rw(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(Rw(e,t,n),e=e.sibling;e!==null;)Rw(e,t,n),e=e.sibling}var Dr=null,Ia=!1;function xs(e,t,n){for(n=n.child;n!==null;)JA(e,t,n),n=n.sibling}function JA(e,t,n){if(mi&&typeof mi.onCommitFiberUnmount=="function")try{mi.onCommitFiberUnmount(qg,n)}catch{}switch(n.tag){case 5:Wr||pu(n,t);case 6:var r=Dr,o=Ia;Dr=null,xs(e,t,n),Dr=r,Ia=o,Dr!==null&&(Ia?(e=Dr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Dr.removeChild(n.stateNode));break;case 18:Dr!==null&&(Ia?(e=Dr,n=n.stateNode,e.nodeType===8?gb(e.parentNode,n):e.nodeType===1&&gb(e,n),ip(e)):gb(Dr,n.stateNode));break;case 4:r=Dr,o=Ia,Dr=n.stateNode.containerInfo,Ia=!0,xs(e,t,n),Dr=r,Ia=o;break;case 0:case 11:case 14:case 15:if(!Wr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,i!==void 0&&(a&2||a&4)&&Tw(n,t,i),o=o.next}while(o!==r)}xs(e,t,n);break;case 1:if(!Wr&&(pu(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){er(n,t,s)}xs(e,t,n);break;case 21:xs(e,t,n);break;case 22:n.mode&1?(Wr=(r=Wr)||n.memoizedState!==null,xs(e,t,n),Wr=r):xs(e,t,n);break;default:xs(e,t,n)}}function ik(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new wB),t.forEach(function(r){var o=RB.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function ka(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~a}if(r=o,r=sr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*SB(r/1960))-r,10e?16:e,Is===null)var r=!1;else{if(e=Is,Is=null,sg=0,un&6)throw Error(at(331));var o=un;for(un|=4,bt=e.current;bt!==null;){var a=bt,i=a.child;if(bt.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lsr()-S$?Fl(e,0):$$|=n),Co(e,t)}function o3(e,t){t===0&&(e.mode&1?(t=bm,bm<<=1,!(bm&130023424)&&(bm=4194304)):t=1);var n=ro();e=Xi(e,t),e!==null&&(Fp(e,t,n),Co(e,n))}function OB(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),o3(e,n)}function RB(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(at(314))}r!==null&&r.delete(t),o3(e,n)}var a3;a3=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||xo.current)bo=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return bo=!1,yB(e,t,n);bo=!!(e.flags&131072)}else bo=!1,Fn&&t.flags&1048576&&lA(t,Xv,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;yv(e,t),e=t.pendingProps;var o=Iu(t,Gr.current);$u(t,n),o=g$(null,t,r,e,o,n);var a=y$();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,wo(r)?(a=!0,Jv(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,f$(t),o.updater=Qg,t.stateNode=o,o._reactInternals=t,ww(t,r,e,n),t=Sw(null,t,r,!0,a,n)):(t.tag=0,Fn&&a&&a$(t),to(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(yv(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=MB(r),e=Ma(r,e),o){case 0:t=$w(null,t,r,e,n);break e;case 1:t=tk(null,t,r,e,n);break e;case 11:t=QT(null,t,r,e,n);break e;case 14:t=ek(null,t,r,Ma(r.type,e),n);break e}throw Error(at(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ma(r,o),$w(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ma(r,o),tk(e,t,r,o,n);case 3:e:{if(VA(t),e===null)throw Error(at(387));r=t.pendingProps,a=t.memoizedState,o=a.element,fA(e,t),tg(t,r,null,n);var i=t.memoizedState;if(r=i.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=Lu(Error(at(423)),t),t=nk(e,t,r,n,o);break e}else if(r!==o){o=Lu(Error(at(424)),t),t=nk(e,t,r,n,o);break e}else for(Vo=Vs(t.stateNode.containerInfo.firstChild),Ho=t,Fn=!0,Aa=null,n=vA(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Au(),r===o){t=Qi(e,t,n);break e}to(e,t,r,n)}t=t.child}return t;case 5:return gA(t),e===null&&yw(t),r=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,pw(r,o)?i=null:a!==null&&pw(r,a)&&(t.flags|=32),BA(e,t),to(e,t,i,n),t.child;case 6:return e===null&&yw(t),null;case 13:return UA(e,t,n);case 4:return p$(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Nu(t,null,r,n):to(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ma(r,o),QT(e,t,r,o,n);case 7:return to(e,t,t.pendingProps,n),t.child;case 8:return to(e,t,t.pendingProps.children,n),t.child;case 12:return to(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,Rn(Qv,r._currentValue),r._currentValue=i,a!==null)if(Ha(a.value,i)){if(a.children===o.children&&!xo.current){t=Qi(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){i=a.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=Gi(-1,n&-n),l.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),bw(a.return,n,t),s.lanes|=n;break}l=l.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(at(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),bw(i,n,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}to(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,$u(t,n),o=ya(o),r=r(o),t.flags|=1,to(e,t,r,n),t.child;case 14:return r=t.type,o=Ma(r,t.pendingProps),o=Ma(r.type,o),ek(e,t,r,o,n);case 15:return FA(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ma(r,o),yv(e,t),t.tag=1,wo(r)?(e=!0,Jv(t)):e=!1,$u(t,n),hA(t,r,o),ww(t,r,o,n),Sw(null,t,r,!0,e,n);case 19:return WA(e,t,n);case 22:return zA(e,t,n)}throw Error(at(156,t.tag))};function i3(e,t){return DI(e,t)}function DB(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 ha(e,t,n,r){return new DB(e,t,n,r)}function T$(e){return e=e.prototype,!(!e||!e.isReactComponent)}function MB(e){if(typeof e=="function")return T$(e)?1:0;if(e!=null){if(e=e.$$typeof,e===qC)return 11;if(e===YC)return 14}return 2}function Gs(e,t){var n=e.alternate;return n===null?(n=ha(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 wv(e,t,n,r,o,a){var i=2;if(r=e,typeof e=="function")T$(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case ou:return zl(n.children,o,a,t);case GC:i=8,o|=8;break;case Hx:return e=ha(12,n,t,o|2),e.elementType=Hx,e.lanes=a,e;case Gx:return e=ha(13,n,t,o),e.elementType=Gx,e.lanes=a,e;case qx:return e=ha(19,n,t,o),e.elementType=qx,e.lanes=a,e;case mI:return ry(n,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case pI:i=10;break e;case hI:i=9;break e;case qC:i=11;break e;case YC:i=14;break e;case Ts:i=16,r=null;break e}throw Error(at(130,e==null?e:typeof e,""))}return t=ha(i,n,t,o),t.elementType=e,t.type=r,t.lanes=a,t}function zl(e,t,n,r){return e=ha(7,e,r,t),e.lanes=n,e}function ry(e,t,n,r){return e=ha(22,e,r,t),e.elementType=mI,e.lanes=n,e.stateNode={isHidden:!1},e}function _b(e,t,n){return e=ha(6,e,null,t),e.lanes=n,e}function Eb(e,t,n){return t=ha(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function IB(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=ib(0),this.expirationTimes=ib(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ib(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function k$(e,t,n,r,o,a,i,s,l){return e=new IB(e,t,n,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=ha(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},f$(a),e}function AB(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u3)}catch(e){console.error(e)}}u3(),lI.exports=Jo;var nd=lI.exports;const Cf=Bt(nd);var hk=nd;Ux.createRoot=hk.createRoot,Ux.hydrateRoot=hk.hydrateRoot;const ug=e=>typeof e=="object"&&e!==null&&e.toString()==={}.toString(),ly=e=>JSON.parse(JSON.stringify(e)),M$=(e,t)=>{e=ly(e);for(const n in t)if(t.hasOwnProperty(n)){const r=t[n],o=e[n];ug(r)&&ug(o)?e[n]=M$(o,r):e[n]=r}return e},d3=function(e,t){const n=e.replace(/^#\/definitions\//,"").split("/"),r=function(a,i){const s=a.shift();return s?i[s]?a.length?r(a,i[s]):i[s]:{}:{}},o=r(n,t);return ug(o)?ly(o):o},zB=function(e,t){const n=e.length;let r=-1,o={};for(;++r{if(typeof e.default<"u")return e.default;if(typeof e.allOf<"u"){const n=zB(e.allOf,t);return Zc(n,t)}else if(typeof e.$ref<"u"){const n=d3(e.$ref,t);return Zc(n,t)}else if(e.type==="object"){if(!e.properties)return{};for(const n in e.properties)e.properties.hasOwnProperty(n)&&(e.properties[n]=Zc(e.properties[n],t),typeof e.properties[n]>"u"&&delete e.properties[n]);return e.properties}else if(e.type==="array"){if(!e.items)return[];const n=e.minItems||0;if(e.items.constructor===Array){const o=e.items.map(a=>Zc(a,t));for(let a=o.length-1;a>=0&&!(typeof o[a]<"u");a--)a+1>n&&o.pop();return o.every(a=>typeof a>"u")?void 0:o}const r=Zc(e.items,t);if(typeof r>"u")return[];{const o=[];for(let a=0;a"u"?t=e.definitions||{}:ug(e.definitions)&&(t=M$(t,e.definitions)),Zc(ly(e),t)}var BB=typeof yo=="object"&&yo&&yo.Object===Object&&yo,f3=BB,VB=f3,UB=typeof self=="object"&&self&&self.Object===Object&&self,WB=VB||UB||Function("return this")(),so=WB,HB=so,GB=HB.Symbol,rd=GB,mk=rd,p3=Object.prototype,qB=p3.hasOwnProperty,YB=p3.toString,Xd=mk?mk.toStringTag:void 0;function KB(e){var t=qB.call(e,Xd),n=e[Xd];try{e[Xd]=void 0;var r=!0}catch{}var o=YB.call(e);return r&&(t?e[Xd]=n:delete e[Xd]),o}var JB=KB,ZB=Object.prototype,XB=ZB.toString;function QB(e){return XB.call(e)}var eV=QB,vk=rd,tV=JB,nV=eV,rV="[object Null]",oV="[object Undefined]",gk=vk?vk.toStringTag:void 0;function aV(e){return e==null?e===void 0?oV:rV:gk&&gk in Object(e)?tV(e):nV(e)}var rl=aV;function iV(e){return e!=null&&typeof e=="object"}var Xo=iV,sV=rl,lV=Xo,cV="[object Symbol]";function uV(e){return typeof e=="symbol"||lV(e)&&sV(e)==cV}var od=uV,dV=od;function fV(e,t,n){for(var r=-1,o=e.length;++rt}var mV=hV;function vV(){this.__data__=[],this.size=0}var gV=vV;function yV(e,t){return e===t||e!==e&&t!==t}var Up=yV,bV=Up;function xV(e,t){for(var n=e.length;n--;)if(bV(e[n][0],t))return n;return-1}var cy=xV,wV=cy,CV=Array.prototype,$V=CV.splice;function SV(e){var t=this.__data__,n=wV(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():$V.call(t,n,1),--this.size,!0}var _V=SV,EV=cy;function PV(e){var t=this.__data__,n=EV(t,e);return n<0?void 0:t[n][1]}var TV=PV,kV=cy;function OV(e){return kV(this.__data__,e)>-1}var RV=OV,DV=cy;function MV(e,t){var n=this.__data__,r=DV(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var IV=MV,AV=gV,NV=_V,jV=TV,LV=RV,FV=IV;function ad(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ts))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var f=-1,p=!0,m=n&oH?new eH:void 0;for(a.set(e,t),a.set(t,e);++f-1&&e%1==0&&e-1&&e%1==0&&e<=nG}var F$=rG,oG=rl,aG=F$,iG=Xo,sG="[object Arguments]",lG="[object Array]",cG="[object Boolean]",uG="[object Date]",dG="[object Error]",fG="[object Function]",pG="[object Map]",hG="[object Number]",mG="[object Object]",vG="[object RegExp]",gG="[object Set]",yG="[object String]",bG="[object WeakMap]",xG="[object ArrayBuffer]",wG="[object DataView]",CG="[object Float32Array]",$G="[object Float64Array]",SG="[object Int8Array]",_G="[object Int16Array]",EG="[object Int32Array]",PG="[object Uint8Array]",TG="[object Uint8ClampedArray]",kG="[object Uint16Array]",OG="[object Uint32Array]",An={};An[CG]=An[$G]=An[SG]=An[_G]=An[EG]=An[PG]=An[TG]=An[kG]=An[OG]=!0;An[sG]=An[lG]=An[xG]=An[cG]=An[wG]=An[uG]=An[dG]=An[fG]=An[pG]=An[hG]=An[mG]=An[vG]=An[gG]=An[yG]=An[bG]=!1;function RG(e){return iG(e)&&aG(e.length)&&!!An[oG(e)]}var DG=RG;function MG(e){return function(t){return e(t)}}var z$=MG,pg={exports:{}};pg.exports;(function(e,t){var n=f3,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a&&n.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s})(pg,pg.exports);var B$=pg.exports,IG=DG,AG=z$,Pk=B$,Tk=Pk&&Pk.isTypedArray,NG=Tk?AG(Tk):IG,hy=NG,Ob,kk;function _3(){if(kk)return Ob;kk=1;var e=BH(),t=Hp,n=lr,r=Gp,o=qp,a=hy,i=Object.prototype,s=i.hasOwnProperty;function l(c,u){var f=n(c),p=!f&&t(c),m=!f&&!p&&r(c),b=!f&&!p&&!m&&a(c),v=f||p||m||b,x=v?e(c.length,String):[],g=x.length;for(var y in c)(u||s.call(c,y))&&!(v&&(y=="length"||m&&(y=="offset"||y=="parent")||b&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||o(y,g)))&&x.push(y);return x}return Ob=l,Ob}var jG=Object.prototype;function LG(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||jG;return e===n}var my=LG;function FG(e,t){return function(n){return e(t(n))}}var E3=FG,zG=E3,BG=zG(Object.keys,Object),VG=BG,UG=my,WG=VG,HG=Object.prototype,GG=HG.hasOwnProperty;function qG(e){if(!UG(e))return WG(e);var t=[];for(var n in Object(e))GG.call(e,n)&&n!="constructor"&&t.push(n);return t}var V$=qG,YG=Wp,KG=F$;function JG(e){return e!=null&&KG(e.length)&&!YG(e)}var os=JG,Rb,Ok;function _i(){if(Ok)return Rb;Ok=1;var e=_3(),t=V$,n=os;function r(o){return n(o)?e(o):t(o)}return Rb=r,Rb}var ZG=w3,XG=L$,QG=_i();function eq(e){return ZG(e,QG,XG)}var P3=eq,Rk=P3,tq=1,nq=Object.prototype,rq=nq.hasOwnProperty;function oq(e,t,n,r,o,a){var i=n&tq,s=Rk(e),l=s.length,c=Rk(t),u=c.length;if(l!=u&&!i)return!1;for(var f=l;f--;){var p=s[f];if(!(i?p in t:rq.call(t,p)))return!1}var m=a.get(e),b=a.get(t);if(m&&b)return m==t&&b==e;var v=!0;a.set(e,t),a.set(t,e);for(var x=i;++fo?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r=r?e:KJ(e,t,n)}var ZJ=JJ,XJ="\\ud800-\\udfff",QJ="\\u0300-\\u036f",eZ="\\ufe20-\\ufe2f",tZ="\\u20d0-\\u20ff",nZ=QJ+eZ+tZ,rZ="\\ufe0e\\ufe0f",oZ="\\u200d",aZ=RegExp("["+oZ+XJ+nZ+rZ+"]");function iZ(e){return aZ.test(e)}var t4=iZ;function sZ(e){return e.split("")}var lZ=sZ,n4="\\ud800-\\udfff",cZ="\\u0300-\\u036f",uZ="\\ufe20-\\ufe2f",dZ="\\u20d0-\\u20ff",fZ=cZ+uZ+dZ,pZ="\\ufe0e\\ufe0f",hZ="["+n4+"]",Bw="["+fZ+"]",Vw="\\ud83c[\\udffb-\\udfff]",mZ="(?:"+Bw+"|"+Vw+")",r4="[^"+n4+"]",o4="(?:\\ud83c[\\udde6-\\uddff]){2}",a4="[\\ud800-\\udbff][\\udc00-\\udfff]",vZ="\\u200d",i4=mZ+"?",s4="["+pZ+"]?",gZ="(?:"+vZ+"(?:"+[r4,o4,a4].join("|")+")"+s4+i4+")*",yZ=s4+i4+gZ,bZ="(?:"+[r4+Bw+"?",Bw,o4,a4,hZ].join("|")+")",xZ=RegExp(Vw+"(?="+Vw+")|"+bZ+yZ,"g");function wZ(e){return e.match(xZ)||[]}var CZ=wZ,$Z=lZ,SZ=t4,_Z=CZ;function EZ(e){return SZ(e)?_Z(e):$Z(e)}var PZ=EZ,TZ=ZJ,kZ=t4,OZ=PZ,RZ=dd;function DZ(e){return function(t){t=RZ(t);var n=kZ(t)?OZ(t):void 0,r=n?n[0]:t.charAt(0),o=n?TZ(n,1).join(""):t.slice(1);return r[e]()+o}}var MZ=DZ,IZ=MZ,AZ=IZ("toUpperCase"),NZ=AZ,jZ=qJ,LZ=NZ,FZ=jZ(function(e,t,n){return e+(n?" ":"")+LZ(t)}),l4=FZ;const yy=Bt(l4);var zZ=_i();const BZ=Bt(zZ);var VZ=ic,UZ=function(){try{var e=VZ(Object,"defineProperty");return e({},"",{}),e}catch{}}(),c4=UZ,Zk=c4;function WZ(e,t,n){t=="__proto__"&&Zk?Zk(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var q$=WZ,HZ=q$,GZ=Up;function qZ(e,t,n){(n!==void 0&&!GZ(e[t],n)||n===void 0&&!(t in e))&&HZ(e,t,n)}var u4=qZ;function YZ(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),s=i.length;s--;){var l=i[e?s:++o];if(n(a[l],l,a)===!1)break}return t}}var KZ=YZ,JZ=KZ,ZZ=JZ(),d4=ZZ,hg={exports:{}};hg.exports;(function(e,t){var n=so,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a?n.Buffer:void 0,s=i?i.allocUnsafe:void 0;function l(c,u){if(u)return c.slice();var f=c.length,p=s?s(f):new c.constructor(f);return c.copy(p),p}e.exports=l})(hg,hg.exports);var f4=hg.exports,Xk=y3;function XZ(e){var t=new e.constructor(e.byteLength);return new Xk(t).set(new Xk(e)),t}var Y$=XZ,QZ=Y$;function eX(e,t){var n=t?QZ(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var p4=eX;function tX(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n0){if(++t>=SQ)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var x4=PQ,TQ=$Q,kQ=x4,OQ=kQ(TQ),Q$=OQ,RQ=vy,DQ=b4,MQ=Q$;function IQ(e,t){return MQ(DQ(e,t,RQ),e+"")}var w4=IQ,AQ=Up,NQ=os,jQ=qp,LQ=Qo;function FQ(e,t,n){if(!LQ(n))return!1;var r=typeof t;return(r=="number"?NQ(n)&&jQ(t,n.length):r=="string"&&t in n)?AQ(n[t],e):!1}var C4=FQ,zQ=w4,BQ=C4;function VQ(e){return zQ(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,i=o>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,i&&BQ(n[0],n[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++r2?Z-2:1,le&&le<=Z?re:Ib(re,Z)):re}},mixin:function(N){return function(V){var Z=this;if(!C(Z))return N(Z,Object(V));var re=[];return g($(V),function(le){C(V[le])&&re.push([le,Z.prototype[le]])}),N(Z,Object(V)),g(re,function(le){var xe=le[1];C(xe)?Z.prototype[le[0]]=xe:delete Z.prototype[le[0]]}),Z}},nthArg:function(N){return function(V){var Z=V<0?1:k(V)+1;return x(N(V),Z)}},rearg:function(N){return function(V,Z){var re=Z?Z.length:0;return x(N(V,Z),re)}},runInContext:function(N){return function(V){return Uw(e,N(V),r)}}};function U(N,V){if(i.cap){var Z=yr.iterateeRearg[N];if(Z)return X(V,Z);var re=!o&&yr.iterateeAry[N];if(re)return J(V,re)}return V}function G(N,V,Z){return l||i.curry&&Z>1?x(V,Z):V}function B(N,V,Z){if(i.fixed&&(c||!yr.skipFixed[N])){var re=yr.methodSpread[N],le=re&&re.start;return le===void 0?m(V,Z):Sne(V,le)}return V}function z(N,V,Z){return i.rearg&&Z>1&&(u||!yr.skipRearg[N])?E(V,yr.methodRearg[N]||yr.aryRearg[Z]):V}function Y(N,V){V=I(V);for(var Z=-1,re=V.length,le=re-1,xe=v(Object(N)),fe=xe;fe!=null&&++Z1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Qne,`{ +/* [wrapped with `+t+`] */ +`)}var tre=ere;function nre(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a-1}var z4=fre,pre=eS,hre=z4,mre=1,vre=2,gre=8,yre=16,bre=32,xre=64,wre=128,Cre=256,$re=512,Sre=[["ary",wre],["bind",mre],["bindKey",vre],["curry",gre],["curryRight",yre],["flip",$re],["partial",bre],["partialRight",xre],["rearg",Cre]];function _re(e,t){return pre(Sre,function(n){var r="_."+n[0];t&n[1]&&!hre(e,r)&&e.push(r)}),e.sort()}var Ere=_re,Pre=Xne,Tre=tre,kre=Q$,Ore=Ere;function Rre(e,t,n){var r=t+"";return kre(e,Tre(r,Ore(Pre(r),n)))}var B4=Rre,Dre=N4(),Mre=j4,Ire=B4,Are=1,Nre=2,jre=4,Lre=8,TO=32,kO=64;function Fre(e,t,n,r,o,a,i,s,l,c){var u=t&Lre,f=u?i:void 0,p=u?void 0:i,m=u?a:void 0,b=u?void 0:a;t|=u?TO:kO,t&=~(u?kO:TO),t&jre||(t&=~(Are|Nre));var v=[e,t,o,m,f,b,p,s,l,c],x=n.apply(void 0,v);return Dre(e)&&Mre(x,v),x.placeholder=r,Ire(x,e,t)}var V4=Fre;function zre(e){var t=e;return t.placeholder}var U4=zre,Bre=Kp,Vre=qp,Ure=Math.min;function Wre(e,t){for(var n=e.length,r=Ure(t.length,n),o=Bre(e);r--;){var a=t[r];e[r]=Vre(a,n)?o[a]:void 0}return e}var Hre=Wre,OO="__lodash_placeholder__";function Gre(e,t){for(var n=-1,r=e.length,o=0,a=[];++n1&&y.reverse(),u&&l0&&n(s)?t>1?Y4(s,t-1,n,r,o):Lae(o,s):r||(o[o.length]=s)}return o}var K4=Y4,zae=K4;function Bae(e){var t=e==null?0:e.length;return t?zae(e,1):[]}var Vae=Bae,Uae=Vae,Wae=b4,Hae=Q$;function Gae(e){return Hae(Wae(e,void 0,Uae),e+"")}var lS=Gae,qae=iS,Yae=lS,Kae=256,Jae=Yae(function(e,t){return qae(e,Kae,void 0,void 0,void 0,t)}),Zae=Jae,Xae=ud,Qae=Kp,eie=lr,tie=od,nie=A3,rie=lc,oie=dd;function aie(e){return eie(e)?Xae(e,rie):tie(e)?[e]:Qae(nie(oie(e)))}var iie=aie,sie={ary:cae,assign:$4,clone:pae,curry:vae,forEach:eS,isArray:lr,isError:$ae,isFunction:Wp,isWeakMap:Tae,iteratee:Mae,keys:V$,rearg:Zae,toInteger:Zp,toPath:iie},lie=_ne,cie=sie;function uie(e,t,n){return lie(cie,e,t,n)}var pd=uie,Jb,HO;function die(){if(HO)return Jb;HO=1;var e=Z$,t=Yp,n=qp,r=Qo,o=lc;function a(i,s,l,c){if(!r(i))return i;s=t(s,i);for(var u=-1,f=s.length,p=f-1,m=i;m!=null&&++u=t?e:t)),e}var Jie=Kie,Zie=Jie,Xie=j3,Qie=Zp,ese=dd;function tse(e,t,n){e=ese(e),t=Xie(t);var r=e.length;n=n===void 0?r:Zie(Qie(n),0,r);var o=n;return n-=t.length,n>=0&&e.slice(n,o)==t}var nse=tse;const rse=Bt(nse);function ose(e,t,n,r,o){return o(e,function(a,i,s){n=r?(r=!1,a):t(n,a,i,s)}),n}var ase=ose,ise=z3,sse=cS,lse=cc,cse=ase,use=lr;function dse(e,t,n){var r=use(e)?ise:cse,o=arguments.length<3;return r(e,lse(t),n,o,sse)}var fse=dse;const Ww=Bt(fse);var pse=ud;function hse(e,t){return pse(t,function(n){return[n,e[n]]})}var mse=hse;function vse(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=[r,r]}),n}var gse=vse,yse=mse,bse=sc,xse=b3,wse=gse,Cse="[object Map]",$se="[object Set]";function Sse(e){return function(t){var n=bse(t);return n==Cse?xse(t):n==$se?wse(t):yse(t,e(t))}}var _se=Sse,Ese=_se,Pse=_i(),Tse=Ese(Pse),kse=Tse;const Ose=Bt(kse);var Rse=rl,Dse=lr,Mse=Xo,Ise="[object String]";function Ase(e){return typeof e=="string"||!Dse(e)&&Mse(e)&&Rse(e)==Ise}var Nse=Ase,jse=ud;function Lse(e,t){return jse(t,function(n){return e[n]})}var Fse=Lse,zse=Fse,Bse=_i();function Vse(e){return e==null?[]:zse(e,Bse(e))}var Use=Vse,Wse=F4,Hse=os,Gse=Nse,qse=Zp,Yse=Use,Kse=Math.max;function Jse(e,t,n,r){e=Hse(e)?e:Yse(e),n=n&&!r?qse(n):0;var o=e.length;return n<0&&(n=Kse(o+n,0)),Gse(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Wse(e,t,n)>-1}var Zse=Jse;const eN=Bt(Zse);var Xse=cc,Qse=os,ele=_i();function tle(e){return function(t,n,r){var o=Object(t);if(!Qse(t)){var a=Xse(n);t=ele(t),n=function(s){return a(o[s],s,o)}}var i=e(t,n,r);return i>-1?o[a?t[i]:i]:void 0}}var nle=tle,rle=L4,ole=cc,ale=Zp,ile=Math.max;function sle(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=n==null?0:ale(n);return o<0&&(o=ile(r+o,0)),rle(e,ole(t),o)}var lle=sle,cle=nle,ule=lle,dle=cle(ule),fle=dle;const uS=Bt(fle);var ple=Math.ceil,hle=Math.max;function mle(e,t,n,r){for(var o=-1,a=hle(ple((t-e)/(n||1)),0),i=Array(a);a--;)i[r?a:++o]=e,e+=n;return i}var vle=mle,gle=vle,yle=C4,Xb=q4;function ble(e){return function(t,n,r){return r&&typeof r!="number"&&yle(t,n,r)&&(n=r=void 0),t=Xb(t),n===void 0?(n=t,t=0):n=Xb(n),r=r===void 0?t1)return!1;const y=this._items[0];return y===""||y==='""'}get str(){var y;return(y=this._str)!==null&&y!==void 0?y:this._str=this._items.reduce((w,C)=>`${w}${C}`,"")}get names(){var y;return(y=this._names)!==null&&y!==void 0?y:this._names=this._items.reduce((w,C)=>(C instanceof n&&(w[C.str]=(w[C.str]||0)+1),w),{})}}e._Code=r,e.nil=new r("");function o(g,...y){const w=[g[0]];let C=0;for(;C{if(f.scopePath===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return(0,t._)`${c}${f.scopePath}`})}scopeCode(c=this._values,u,f){return this._reduceValues(c,p=>{if(p.value===void 0)throw new Error(`CodeGen: name "${p}" has no value`);return p.value.code},u,f)}_reduceValues(c,u,f={},p){let m=t.nil;for(const b in c){const v=c[b];if(!v)continue;const x=f[b]=f[b]||new Map;v.forEach(g=>{if(x.has(g))return;x.set(g,r.Started);let y=u(g);if(y){const w=this.opts.es5?e.varKinds.var:e.varKinds.const;m=(0,t._)`${m}${w} ${g} = ${y};${this.opts._n}`}else if(y=p==null?void 0:p(g))m=(0,t._)`${m}${y}${this.opts._n}`;else throw new n(g);x.set(g,r.Completed)})}return m}}e.ValueScope=s})(Gw);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=yp,n=Gw;var r=yp;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}});var o=Gw;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class a{optimizeNodes(){return this}optimizeNames(D,N){return this}}class i extends a{constructor(D,N,V){super(),this.varKind=D,this.name=N,this.rhs=V}render({es5:D,_n:N}){const V=D?n.varKinds.var:this.varKind,Z=this.rhs===void 0?"":` = ${this.rhs}`;return`${V} ${this.name}${Z};`+N}optimizeNames(D,N){if(D[this.name.str])return this.rhs&&(this.rhs=B(this.rhs,D,N)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends a{constructor(D,N,V){super(),this.lhs=D,this.rhs=N,this.sideEffects=V}render({_n:D}){return`${this.lhs} = ${this.rhs};`+D}optimizeNames(D,N){if(!(this.lhs instanceof t.Name&&!D[this.lhs.str]&&!this.sideEffects))return this.rhs=B(this.rhs,D,N),this}get names(){const D=this.lhs instanceof t.Name?{}:{...this.lhs.names};return G(D,this.rhs)}}class l extends s{constructor(D,N,V,Z){super(D,V,Z),this.op=N}render({_n:D}){return`${this.lhs} ${this.op}= ${this.rhs};`+D}}class c extends a{constructor(D){super(),this.label=D,this.names={}}render({_n:D}){return`${this.label}:`+D}}class u extends a{constructor(D){super(),this.label=D,this.names={}}render({_n:D}){return`break${this.label?` ${this.label}`:""};`+D}}class f extends a{constructor(D){super(),this.error=D}render({_n:D}){return`throw ${this.error};`+D}get names(){return this.error.names}}class p extends a{constructor(D){super(),this.code=D}render({_n:D}){return`${this.code};`+D}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(D,N){return this.code=B(this.code,D,N),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class m extends a{constructor(D=[]){super(),this.nodes=D}render(D){return this.nodes.reduce((N,V)=>N+V.render(D),"")}optimizeNodes(){const{nodes:D}=this;let N=D.length;for(;N--;){const V=D[N].optimizeNodes();Array.isArray(V)?D.splice(N,1,...V):V?D[N]=V:D.splice(N,1)}return D.length>0?this:void 0}optimizeNames(D,N){const{nodes:V}=this;let Z=V.length;for(;Z--;){const re=V[Z];re.optimizeNames(D,N)||(z(D,re.names),V.splice(Z,1))}return V.length>0?this:void 0}get names(){return this.nodes.reduce((D,N)=>U(D,N.names),{})}}class b extends m{render(D){return"{"+D._n+super.render(D)+"}"+D._n}}class v extends m{}class x extends b{}x.kind="else";class g extends b{constructor(D,N){super(N),this.condition=D}render(D){let N=`if(${this.condition})`+super.render(D);return this.else&&(N+="else "+this.else.render(D)),N}optimizeNodes(){super.optimizeNodes();const D=this.condition;if(D===!0)return this.nodes;let N=this.else;if(N){const V=N.optimizeNodes();N=this.else=Array.isArray(V)?new x(V):V}if(N)return D===!1?N instanceof g?N:N.nodes:this.nodes.length?this:new g(Y(D),N instanceof g?[N]:N.nodes);if(!(D===!1||!this.nodes.length))return this}optimizeNames(D,N){var V;if(this.else=(V=this.else)===null||V===void 0?void 0:V.optimizeNames(D,N),!!(super.optimizeNames(D,N)||this.else))return this.condition=B(this.condition,D,N),this}get names(){const D=super.names;return G(D,this.condition),this.else&&U(D,this.else.names),D}}g.kind="if";class y extends b{}y.kind="for";class w extends y{constructor(D){super(),this.iteration=D}render(D){return`for(${this.iteration})`+super.render(D)}optimizeNames(D,N){if(super.optimizeNames(D,N))return this.iteration=B(this.iteration,D,N),this}get names(){return U(super.names,this.iteration.names)}}class C extends y{constructor(D,N,V,Z){super(),this.varKind=D,this.name=N,this.from=V,this.to=Z}render(D){const N=D.es5?n.varKinds.var:this.varKind,{name:V,from:Z,to:re}=this;return`for(${N} ${V}=${Z}; ${V}<${re}; ${V}++)`+super.render(D)}get names(){const D=G(super.names,this.from);return G(D,this.to)}}class _ extends y{constructor(D,N,V,Z){super(),this.loop=D,this.varKind=N,this.name=V,this.iterable=Z}render(D){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(D)}optimizeNames(D,N){if(super.optimizeNames(D,N))return this.iterable=B(this.iterable,D,N),this}get names(){return U(super.names,this.iterable.names)}}class $ extends b{constructor(D,N,V){super(),this.name=D,this.args=N,this.async=V}render(D){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(D)}}$.kind="func";class E extends m{render(D){return"return "+super.render(D)}}E.kind="return";class k extends b{render(D){let N="try"+super.render(D);return this.catch&&(N+=this.catch.render(D)),this.finally&&(N+=this.finally.render(D)),N}optimizeNodes(){var D,N;return super.optimizeNodes(),(D=this.catch)===null||D===void 0||D.optimizeNodes(),(N=this.finally)===null||N===void 0||N.optimizeNodes(),this}optimizeNames(D,N){var V,Z;return super.optimizeNames(D,N),(V=this.catch)===null||V===void 0||V.optimizeNames(D,N),(Z=this.finally)===null||Z===void 0||Z.optimizeNames(D,N),this}get names(){const D=super.names;return this.catch&&U(D,this.catch.names),this.finally&&U(D,this.finally.names),D}}class I extends b{constructor(D){super(),this.error=D}render(D){return`catch(${this.error})`+super.render(D)}}I.kind="catch";class R extends b{render(D){return"finally"+super.render(D)}}R.kind="finally";class F{constructor(D,N={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...N,_n:N.lines?` +`:""},this._extScope=D,this._scope=new n.Scope({parent:D}),this._nodes=[new v]}toString(){return this._root.render(this.opts)}name(D){return this._scope.name(D)}scopeName(D){return this._extScope.name(D)}scopeValue(D,N){const V=this._extScope.value(D,N);return(this._values[V.prefix]||(this._values[V.prefix]=new Set)).add(V),V}getScopeValue(D,N){return this._extScope.getValue(D,N)}scopeRefs(D){return this._extScope.scopeRefs(D,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(D,N,V,Z){const re=this._scope.toName(N);return V!==void 0&&Z&&(this._constants[re.str]=V),this._leafNode(new i(D,re,V)),re}const(D,N,V){return this._def(n.varKinds.const,D,N,V)}let(D,N,V){return this._def(n.varKinds.let,D,N,V)}var(D,N,V){return this._def(n.varKinds.var,D,N,V)}assign(D,N,V){return this._leafNode(new s(D,N,V))}add(D,N){return this._leafNode(new l(D,e.operators.ADD,N))}code(D){return typeof D=="function"?D():D!==t.nil&&this._leafNode(new p(D)),this}object(...D){const N=["{"];for(const[V,Z]of D)N.length>1&&N.push(","),N.push(V),(V!==Z||this.opts.es5)&&(N.push(":"),(0,t.addCodeArg)(N,Z));return N.push("}"),new t._Code(N)}if(D,N,V){if(this._blockNode(new g(D)),N&&V)this.code(N).else().code(V).endIf();else if(N)this.code(N).endIf();else if(V)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(D){return this._elseNode(new g(D))}else(){return this._elseNode(new x)}endIf(){return this._endBlockNode(g,x)}_for(D,N){return this._blockNode(D),N&&this.code(N).endFor(),this}for(D,N){return this._for(new w(D),N)}forRange(D,N,V,Z,re=this.opts.es5?n.varKinds.var:n.varKinds.let){const le=this._scope.toName(D);return this._for(new C(re,le,N,V),()=>Z(le))}forOf(D,N,V,Z=n.varKinds.const){const re=this._scope.toName(D);if(this.opts.es5){const le=N instanceof t.Name?N:this.var("_arr",N);return this.forRange("_i",0,(0,t._)`${le}.length`,xe=>{this.var(re,(0,t._)`${le}[${xe}]`),V(re)})}return this._for(new _("of",Z,re,N),()=>V(re))}forIn(D,N,V,Z=this.opts.es5?n.varKinds.var:n.varKinds.const){if(this.opts.ownProperties)return this.forOf(D,(0,t._)`Object.keys(${N})`,V);const re=this._scope.toName(D);return this._for(new _("in",Z,re,N),()=>V(re))}endFor(){return this._endBlockNode(y)}label(D){return this._leafNode(new c(D))}break(D){return this._leafNode(new u(D))}return(D){const N=new E;if(this._blockNode(N),this.code(D),N.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(E)}try(D,N,V){if(!N&&!V)throw new Error('CodeGen: "try" without "catch" and "finally"');const Z=new k;if(this._blockNode(Z),this.code(D),N){const re=this.name("e");this._currNode=Z.catch=new I(re),N(re)}return V&&(this._currNode=Z.finally=new R,this.code(V)),this._endBlockNode(I,R)}throw(D){return this._leafNode(new f(D))}block(D,N){return this._blockStarts.push(this._nodes.length),D&&this.code(D).endBlock(N),this}endBlock(D){const N=this._blockStarts.pop();if(N===void 0)throw new Error("CodeGen: not in self-balancing block");const V=this._nodes.length-N;if(V<0||D!==void 0&&V!==D)throw new Error(`CodeGen: wrong number of nodes: ${V} vs ${D} expected`);return this._nodes.length=N,this}func(D,N=t.nil,V,Z){return this._blockNode(new $(D,N,V)),Z&&this.code(Z).endFunc(),this}endFunc(){return this._endBlockNode($)}optimize(D=1){for(;D-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(D){return this._currNode.nodes.push(D),this}_blockNode(D){this._currNode.nodes.push(D),this._nodes.push(D)}_endBlockNode(D,N){const V=this._currNode;if(V instanceof D||N&&V instanceof N)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${N?`${D.kind}/${N.kind}`:D.kind}"`)}_elseNode(D){const N=this._currNode;if(!(N instanceof g))throw new Error('CodeGen: "else" without "if"');return this._currNode=N.else=D,this}get _root(){return this._nodes[0]}get _currNode(){const D=this._nodes;return D[D.length-1]}set _currNode(D){const N=this._nodes;N[N.length-1]=D}}e.CodeGen=F;function U(q,D){for(const N in D)q[N]=(q[N]||0)+(D[N]||0);return q}function G(q,D){return D instanceof t._CodeOrName?U(q,D.names):q}function B(q,D,N){if(q instanceof t.Name)return V(q);if(!Z(q))return q;return new t._Code(q._items.reduce((re,le)=>(le instanceof t.Name&&(le=V(le)),le instanceof t._Code?re.push(...le._items):re.push(le),re),[]));function V(re){const le=N[re.str];return le===void 0||D[re.str]!==1?re:(delete D[re.str],le)}function Z(re){return re instanceof t._Code&&re._items.some(le=>le instanceof t.Name&&D[le.str]===1&&N[le.str]!==void 0)}}function z(q,D){for(const N in D)q[N]=(q[N]||0)-(D[N]||0)}function Y(q){return typeof q=="boolean"||typeof q=="number"||q===null?!q:(0,t._)`!${K(q)}`}e.not=Y;const Q=L(e.operators.AND);function H(...q){return q.reduce(Q)}e.and=H;const J=L(e.operators.OR);function X(...q){return q.reduce(J)}e.or=X;function L(q){return(D,N)=>D===t.nil?N:N===t.nil?D:(0,t._)`${K(D)} ${q} ${K(N)}`}function K(q){return q instanceof t.Name?q:(0,t._)`(${q})`}})(Jt);var dn={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;const t=Jt,n=yp;function r($){const E={};for(const k of $)E[k]=!0;return E}e.toHash=r;function o($,E){return typeof E=="boolean"?E:Object.keys(E).length===0?!0:(a($,E),!i(E,$.self.RULES.all))}e.alwaysValidSchema=o;function a($,E=$.schema){const{opts:k,self:I}=$;if(!k.strictSchema||typeof E=="boolean")return;const R=I.RULES.keywords;for(const F in E)R[F]||_($,`unknown keyword: "${F}"`)}e.checkUnknownRules=a;function i($,E){if(typeof $=="boolean")return!$;for(const k in $)if(E[k])return!0;return!1}e.schemaHasRules=i;function s($,E){if(typeof $=="boolean")return!$;for(const k in $)if(k!=="$ref"&&E.all[k])return!0;return!1}e.schemaHasRulesButRef=s;function l({topSchemaRef:$,schemaPath:E},k,I,R){if(!R){if(typeof k=="number"||typeof k=="boolean")return k;if(typeof k=="string")return(0,t._)`${k}`}return(0,t._)`${$}${E}${(0,t.getProperty)(I)}`}e.schemaRefOrVal=l;function c($){return p(decodeURIComponent($))}e.unescapeFragment=c;function u($){return encodeURIComponent(f($))}e.escapeFragment=u;function f($){return typeof $=="number"?`${$}`:$.replace(/~/g,"~0").replace(/\//g,"~1")}e.escapeJsonPointer=f;function p($){return $.replace(/~1/g,"/").replace(/~0/g,"~")}e.unescapeJsonPointer=p;function m($,E){if(Array.isArray($))for(const k of $)E(k);else E($)}e.eachItem=m;function b({mergeNames:$,mergeToName:E,mergeValues:k,resultToName:I}){return(R,F,U,G)=>{const B=U===void 0?F:U instanceof t.Name?(F instanceof t.Name?$(R,F,U):E(R,F,U),U):F instanceof t.Name?(E(R,U,F),F):k(F,U);return G===t.Name&&!(B instanceof t.Name)?I(R,B):B}}e.mergeEvaluated={props:b({mergeNames:($,E,k)=>$.if((0,t._)`${k} !== true && ${E} !== undefined`,()=>{$.if((0,t._)`${E} === true`,()=>$.assign(k,!0),()=>$.assign(k,(0,t._)`${k} || {}`).code((0,t._)`Object.assign(${k}, ${E})`))}),mergeToName:($,E,k)=>$.if((0,t._)`${k} !== true`,()=>{E===!0?$.assign(k,!0):($.assign(k,(0,t._)`${k} || {}`),x($,k,E))}),mergeValues:($,E)=>$===!0?!0:{...$,...E},resultToName:v}),items:b({mergeNames:($,E,k)=>$.if((0,t._)`${k} !== true && ${E} !== undefined`,()=>$.assign(k,(0,t._)`${E} === true ? true : ${k} > ${E} ? ${k} : ${E}`)),mergeToName:($,E,k)=>$.if((0,t._)`${k} !== true`,()=>$.assign(k,E===!0?!0:(0,t._)`${k} > ${E} ? ${k} : ${E}`)),mergeValues:($,E)=>$===!0?!0:Math.max($,E),resultToName:($,E)=>$.var("items",E)})};function v($,E){if(E===!0)return $.var("props",!0);const k=$.var("props",(0,t._)`{}`);return E!==void 0&&x($,k,E),k}e.evaluatedPropsToName=v;function x($,E,k){Object.keys(k).forEach(I=>$.assign((0,t._)`${E}${(0,t.getProperty)(I)}`,!0))}e.setEvaluated=x;const g={};function y($,E){return $.scopeValue("func",{ref:E,code:g[E.code]||(g[E.code]=new n._Code(E.code))})}e.useFunc=y;var w;(function($){$[$.Num=0]="Num",$[$.Str=1]="Str"})(w=e.Type||(e.Type={}));function C($,E,k){if($ instanceof t.Name){const I=E===w.Num;return k?I?(0,t._)`"[" + ${$} + "]"`:(0,t._)`"['" + ${$} + "']"`:I?(0,t._)`"/" + ${$}`:(0,t._)`"/" + ${$}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return k?(0,t.getProperty)($).toString():"/"+f($)}e.getErrorPath=C;function _($,E,k=$.opts.strictSchema){if(k){if(E=`strict mode: ${E}`,k===!0)throw new Error(E);$.self.logger.warn(E)}}e.checkStrictMode=_})(dn);var Ei={};Object.defineProperty(Ei,"__esModule",{value:!0});const Br=Jt,Mle={data:new Br.Name("data"),valCxt:new Br.Name("valCxt"),instancePath:new Br.Name("instancePath"),parentData:new Br.Name("parentData"),parentDataProperty:new Br.Name("parentDataProperty"),rootData:new Br.Name("rootData"),dynamicAnchors:new Br.Name("dynamicAnchors"),vErrors:new Br.Name("vErrors"),errors:new Br.Name("errors"),this:new Br.Name("this"),self:new Br.Name("self"),scope:new Br.Name("scope"),json:new Br.Name("json"),jsonPos:new Br.Name("jsonPos"),jsonLen:new Br.Name("jsonLen"),jsonPart:new Br.Name("jsonPart")};Ei.default=Mle;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=Jt,n=dn,r=Ei;e.keywordError={message:({keyword:x})=>(0,t.str)`must pass "${x}" keyword validation`},e.keyword$DataError={message:({keyword:x,schemaType:g})=>g?(0,t.str)`"${x}" keyword must be ${g} ($data)`:(0,t.str)`"${x}" keyword is invalid ($data)`};function o(x,g=e.keywordError,y,w){const{it:C}=x,{gen:_,compositeRule:$,allErrors:E}=C,k=f(x,g,y);w??($||E)?l(_,k):c(C,(0,t._)`[${k}]`)}e.reportError=o;function a(x,g=e.keywordError,y){const{it:w}=x,{gen:C,compositeRule:_,allErrors:$}=w,E=f(x,g,y);l(C,E),_||$||c(w,r.default.vErrors)}e.reportExtraError=a;function i(x,g){x.assign(r.default.errors,g),x.if((0,t._)`${r.default.vErrors} !== null`,()=>x.if(g,()=>x.assign((0,t._)`${r.default.vErrors}.length`,g),()=>x.assign(r.default.vErrors,null)))}e.resetErrorsCount=i;function s({gen:x,keyword:g,schemaValue:y,data:w,errsCount:C,it:_}){if(C===void 0)throw new Error("ajv implementation error");const $=x.name("err");x.forRange("i",C,r.default.errors,E=>{x.const($,(0,t._)`${r.default.vErrors}[${E}]`),x.if((0,t._)`${$}.instancePath === undefined`,()=>x.assign((0,t._)`${$}.instancePath`,(0,t.strConcat)(r.default.instancePath,_.errorPath))),x.assign((0,t._)`${$}.schemaPath`,(0,t.str)`${_.errSchemaPath}/${g}`),_.opts.verbose&&(x.assign((0,t._)`${$}.schema`,y),x.assign((0,t._)`${$}.data`,w))})}e.extendErrors=s;function l(x,g){const y=x.const("err",g);x.if((0,t._)`${r.default.vErrors} === null`,()=>x.assign(r.default.vErrors,(0,t._)`[${y}]`),(0,t._)`${r.default.vErrors}.push(${y})`),x.code((0,t._)`${r.default.errors}++`)}function c(x,g){const{gen:y,validateName:w,schemaEnv:C}=x;C.$async?y.throw((0,t._)`new ${x.ValidationError}(${g})`):(y.assign((0,t._)`${w}.errors`,g),y.return(!1))}const u={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function f(x,g,y){const{createErrors:w}=x.it;return w===!1?(0,t._)`{}`:p(x,g,y)}function p(x,g,y={}){const{gen:w,it:C}=x,_=[m(C,y),b(x,y)];return v(x,g,_),w.object(..._)}function m({errorPath:x},{instancePath:g}){const y=g?(0,t.str)`${x}${(0,n.getErrorPath)(g,n.Type.Str)}`:x;return[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,y)]}function b({keyword:x,it:{errSchemaPath:g}},{schemaPath:y,parentSchema:w}){let C=w?g:(0,t.str)`${g}/${x}`;return y&&(C=(0,t.str)`${C}${(0,n.getErrorPath)(y,n.Type.Str)}`),[u.schemaPath,C]}function v(x,{params:g,message:y},w){const{keyword:C,data:_,schemaValue:$,it:E}=x,{opts:k,propertyName:I,topSchemaRef:R,schemaPath:F}=E;w.push([u.keyword,C],[u.params,typeof g=="function"?g(x):g||(0,t._)`{}`]),k.messages&&w.push([u.message,typeof y=="function"?y(x):y]),k.verbose&&w.push([u.schema,$],[u.parentSchema,(0,t._)`${R}${F}`],[r.default.data,_]),I&&w.push([u.propertyName,I])}})(Xp);Object.defineProperty(zu,"__esModule",{value:!0});zu.boolOrEmptySchema=zu.topBoolOrEmptySchema=void 0;const Ile=Xp,Ale=Jt,Nle=Ei,jle={message:"boolean schema is false"};function Lle(e){const{gen:t,schema:n,validateName:r}=e;n===!1?nN(e,!1):typeof n=="object"&&n.$async===!0?t.return(Nle.default.data):(t.assign((0,Ale._)`${r}.errors`,null),t.return(!0))}zu.topBoolOrEmptySchema=Lle;function Fle(e,t){const{gen:n,schema:r}=e;r===!1?(n.var(t,!1),nN(e)):n.var(t,!0)}zu.boolOrEmptySchema=Fle;function nN(e,t){const{gen:n,data:r}=e,o={gen:n,keyword:"false schema",data:r,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,Ile.reportError)(o,jle,void 0,t)}var Qp={},Kl={};Object.defineProperty(Kl,"__esModule",{value:!0});Kl.getRules=Kl.isJSONType=void 0;const zle=["string","number","integer","boolean","null","object","array"],Ble=new Set(zle);function Vle(e){return typeof e=="string"&&Ble.has(e)}Kl.isJSONType=Vle;function Ule(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}Kl.getRules=Ule;var qi={};Object.defineProperty(qi,"__esModule",{value:!0});qi.shouldUseRule=qi.shouldUseGroup=qi.schemaHasRulesForType=void 0;function Wle({schema:e,self:t},n){const r=t.RULES.types[n];return r&&r!==!0&&rN(e,r)}qi.schemaHasRulesForType=Wle;function rN(e,t){return t.rules.some(n=>oN(e,n))}qi.shouldUseGroup=rN;function oN(e,t){var n;return e[t.keyword]!==void 0||((n=t.definition.implements)===null||n===void 0?void 0:n.some(r=>e[r]!==void 0))}qi.shouldUseRule=oN;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;const t=Kl,n=qi,r=Xp,o=Jt,a=dn;var i;(function(w){w[w.Correct=0]="Correct",w[w.Wrong=1]="Wrong"})(i=e.DataType||(e.DataType={}));function s(w){const C=l(w.type);if(C.includes("null")){if(w.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!C.length&&w.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');w.nullable===!0&&C.push("null")}return C}e.getSchemaTypes=s;function l(w){const C=Array.isArray(w)?w:w?[w]:[];if(C.every(t.isJSONType))return C;throw new Error("type must be JSONType or JSONType[]: "+C.join(","))}e.getJSONTypes=l;function c(w,C){const{gen:_,data:$,opts:E}=w,k=f(C,E.coerceTypes),I=C.length>0&&!(k.length===0&&C.length===1&&(0,n.schemaHasRulesForType)(w,C[0]));if(I){const R=v(C,$,E.strictNumbers,i.Wrong);_.if(R,()=>{k.length?p(w,C,k):g(w)})}return I}e.coerceAndCheckDataType=c;const u=new Set(["string","number","integer","boolean","null"]);function f(w,C){return C?w.filter(_=>u.has(_)||C==="array"&&_==="array"):[]}function p(w,C,_){const{gen:$,data:E,opts:k}=w,I=$.let("dataType",(0,o._)`typeof ${E}`),R=$.let("coerced",(0,o._)`undefined`);k.coerceTypes==="array"&&$.if((0,o._)`${I} == 'object' && Array.isArray(${E}) && ${E}.length == 1`,()=>$.assign(E,(0,o._)`${E}[0]`).assign(I,(0,o._)`typeof ${E}`).if(v(C,E,k.strictNumbers),()=>$.assign(R,E))),$.if((0,o._)`${R} !== undefined`);for(const U of _)(u.has(U)||U==="array"&&k.coerceTypes==="array")&&F(U);$.else(),g(w),$.endIf(),$.if((0,o._)`${R} !== undefined`,()=>{$.assign(E,R),m(w,R)});function F(U){switch(U){case"string":$.elseIf((0,o._)`${I} == "number" || ${I} == "boolean"`).assign(R,(0,o._)`"" + ${E}`).elseIf((0,o._)`${E} === null`).assign(R,(0,o._)`""`);return;case"number":$.elseIf((0,o._)`${I} == "boolean" || ${E} === null + || (${I} == "string" && ${E} && ${E} == +${E})`).assign(R,(0,o._)`+${E}`);return;case"integer":$.elseIf((0,o._)`${I} === "boolean" || ${E} === null + || (${I} === "string" && ${E} && ${E} == +${E} && !(${E} % 1))`).assign(R,(0,o._)`+${E}`);return;case"boolean":$.elseIf((0,o._)`${E} === "false" || ${E} === 0 || ${E} === null`).assign(R,!1).elseIf((0,o._)`${E} === "true" || ${E} === 1`).assign(R,!0);return;case"null":$.elseIf((0,o._)`${E} === "" || ${E} === 0 || ${E} === false`),$.assign(R,null);return;case"array":$.elseIf((0,o._)`${I} === "string" || ${I} === "number" + || ${I} === "boolean" || ${E} === null`).assign(R,(0,o._)`[${E}]`)}}}function m({gen:w,parentData:C,parentDataProperty:_},$){w.if((0,o._)`${C} !== undefined`,()=>w.assign((0,o._)`${C}[${_}]`,$))}function b(w,C,_,$=i.Correct){const E=$===i.Correct?o.operators.EQ:o.operators.NEQ;let k;switch(w){case"null":return(0,o._)`${C} ${E} null`;case"array":k=(0,o._)`Array.isArray(${C})`;break;case"object":k=(0,o._)`${C} && typeof ${C} == "object" && !Array.isArray(${C})`;break;case"integer":k=I((0,o._)`!(${C} % 1) && !isNaN(${C})`);break;case"number":k=I();break;default:return(0,o._)`typeof ${C} ${E} ${w}`}return $===i.Correct?k:(0,o.not)(k);function I(R=o.nil){return(0,o.and)((0,o._)`typeof ${C} == "number"`,R,_?(0,o._)`isFinite(${C})`:o.nil)}}e.checkDataType=b;function v(w,C,_,$){if(w.length===1)return b(w[0],C,_,$);let E;const k=(0,a.toHash)(w);if(k.array&&k.object){const I=(0,o._)`typeof ${C} != "object"`;E=k.null?I:(0,o._)`!${C} || ${I}`,delete k.null,delete k.array,delete k.object}else E=o.nil;k.number&&delete k.integer;for(const I in k)E=(0,o.and)(E,b(I,C,_,$));return E}e.checkDataTypes=v;const x={message:({schema:w})=>`must be ${w}`,params:({schema:w,schemaValue:C})=>typeof w=="string"?(0,o._)`{type: ${w}}`:(0,o._)`{type: ${C}}`};function g(w){const C=y(w);(0,r.reportError)(C,x)}e.reportTypeError=g;function y(w){const{gen:C,data:_,schema:$}=w,E=(0,a.schemaRefOrVal)(w,$,"type");return{gen:C,keyword:"type",data:_,schema:$.type,schemaCode:E,schemaValue:E,parentSchema:$,params:{},it:w}}})(Qp);var Cy={};Object.defineProperty(Cy,"__esModule",{value:!0});Cy.assignDefaults=void 0;const jc=Jt,Hle=dn;function Gle(e,t){const{properties:n,items:r}=e.schema;if(t==="object"&&n)for(const o in n)qO(e,o,n[o].default);else t==="array"&&Array.isArray(r)&&r.forEach((o,a)=>qO(e,a,o.default))}Cy.assignDefaults=Gle;function qO(e,t,n){const{gen:r,compositeRule:o,data:a,opts:i}=e;if(n===void 0)return;const s=(0,jc._)`${a}${(0,jc.getProperty)(t)}`;if(o){(0,Hle.checkStrictMode)(e,`default is ignored for: ${s}`);return}let l=(0,jc._)`${s} === undefined`;i.useDefaults==="empty"&&(l=(0,jc._)`${l} || ${s} === null || ${s} === ""`),r.if(l,(0,jc._)`${s} = ${(0,jc.stringify)(n)}`)}var hi={},Qt={};Object.defineProperty(Qt,"__esModule",{value:!0});Qt.validateUnion=Qt.validateArray=Qt.usePattern=Qt.callValidateCode=Qt.schemaProperties=Qt.allSchemaProperties=Qt.noPropertyInData=Qt.propertyInData=Qt.isOwnProperty=Qt.hasPropFunc=Qt.reportMissingProp=Qt.checkMissingProp=Qt.checkReportMissingProp=void 0;const Nn=Jt,dS=dn,ws=Ei,qle=dn;function Yle(e,t){const{gen:n,data:r,it:o}=e;n.if(pS(n,r,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Nn._)`${t}`},!0),e.error()})}Qt.checkReportMissingProp=Yle;function Kle({gen:e,data:t,it:{opts:n}},r,o){return(0,Nn.or)(...r.map(a=>(0,Nn.and)(pS(e,t,a,n.ownProperties),(0,Nn._)`${o} = ${a}`)))}Qt.checkMissingProp=Kle;function Jle(e,t){e.setParams({missingProperty:t},!0),e.error()}Qt.reportMissingProp=Jle;function aN(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Nn._)`Object.prototype.hasOwnProperty`})}Qt.hasPropFunc=aN;function fS(e,t,n){return(0,Nn._)`${aN(e)}.call(${t}, ${n})`}Qt.isOwnProperty=fS;function Zle(e,t,n,r){const o=(0,Nn._)`${t}${(0,Nn.getProperty)(n)} !== undefined`;return r?(0,Nn._)`${o} && ${fS(e,t,n)}`:o}Qt.propertyInData=Zle;function pS(e,t,n,r){const o=(0,Nn._)`${t}${(0,Nn.getProperty)(n)} === undefined`;return r?(0,Nn.or)(o,(0,Nn.not)(fS(e,t,n))):o}Qt.noPropertyInData=pS;function iN(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Qt.allSchemaProperties=iN;function Xle(e,t){return iN(t).filter(n=>!(0,dS.alwaysValidSchema)(e,t[n]))}Qt.schemaProperties=Xle;function Qle({schemaCode:e,data:t,it:{gen:n,topSchemaRef:r,schemaPath:o,errorPath:a},it:i},s,l,c){const u=c?(0,Nn._)`${e}, ${t}, ${r}${o}`:t,f=[[ws.default.instancePath,(0,Nn.strConcat)(ws.default.instancePath,a)],[ws.default.parentData,i.parentData],[ws.default.parentDataProperty,i.parentDataProperty],[ws.default.rootData,ws.default.rootData]];i.opts.dynamicRef&&f.push([ws.default.dynamicAnchors,ws.default.dynamicAnchors]);const p=(0,Nn._)`${u}, ${n.object(...f)}`;return l!==Nn.nil?(0,Nn._)`${s}.call(${l}, ${p})`:(0,Nn._)`${s}(${p})`}Qt.callValidateCode=Qle;const ece=(0,Nn._)`new RegExp`;function tce({gen:e,it:{opts:t}},n){const r=t.unicodeRegExp?"u":"",{regExp:o}=t.code,a=o(n,r);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:(0,Nn._)`${o.code==="new RegExp"?ece:(0,qle.useFunc)(e,o)}(${n}, ${r})`})}Qt.usePattern=tce;function nce(e){const{gen:t,data:n,keyword:r,it:o}=e,a=t.name("valid");if(o.allErrors){const s=t.let("valid",!0);return i(()=>t.assign(s,!1)),s}return t.var(a,!0),i(()=>t.break()),a;function i(s){const l=t.const("len",(0,Nn._)`${n}.length`);t.forRange("i",0,l,c=>{e.subschema({keyword:r,dataProp:c,dataPropType:dS.Type.Num},a),t.if((0,Nn.not)(a),s)})}}Qt.validateArray=nce;function rce(e){const{gen:t,schema:n,keyword:r,it:o}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some(l=>(0,dS.alwaysValidSchema)(o,l))&&!o.opts.unevaluated)return;const i=t.let("valid",!1),s=t.name("_valid");t.block(()=>n.forEach((l,c)=>{const u=e.subschema({keyword:r,schemaProp:c,compositeRule:!0},s);t.assign(i,(0,Nn._)`${i} || ${s}`),e.mergeValidEvaluated(u,s)||t.if((0,Nn.not)(i))})),e.result(i,()=>e.reset(),()=>e.error(!0))}Qt.validateUnion=rce;Object.defineProperty(hi,"__esModule",{value:!0});hi.validateKeywordUsage=hi.validSchemaType=hi.funcKeywordCode=hi.macroKeywordCode=void 0;const no=Jt,Rl=Ei,oce=Qt,ace=Xp;function ice(e,t){const{gen:n,keyword:r,schema:o,parentSchema:a,it:i}=e,s=t.macro.call(i.self,o,a,i),l=sN(n,r,s);i.opts.validateSchema!==!1&&i.self.validateSchema(s,!0);const c=n.name("valid");e.subschema({schema:s,schemaPath:no.nil,errSchemaPath:`${i.errSchemaPath}/${r}`,topSchemaRef:l,compositeRule:!0},c),e.pass(c,()=>e.error(!0))}hi.macroKeywordCode=ice;function sce(e,t){var n;const{gen:r,keyword:o,schema:a,parentSchema:i,$data:s,it:l}=e;cce(l,t);const c=!s&&t.compile?t.compile.call(l.self,a,i,l):t.validate,u=sN(r,o,c),f=r.let("valid");e.block$data(f,p),e.ok((n=t.valid)!==null&&n!==void 0?n:f);function p(){if(t.errors===!1)v(),t.modifying&&YO(e),x(()=>e.error());else{const g=t.async?m():b();t.modifying&&YO(e),x(()=>lce(e,g))}}function m(){const g=r.let("ruleErrs",null);return r.try(()=>v((0,no._)`await `),y=>r.assign(f,!1).if((0,no._)`${y} instanceof ${l.ValidationError}`,()=>r.assign(g,(0,no._)`${y}.errors`),()=>r.throw(y))),g}function b(){const g=(0,no._)`${u}.errors`;return r.assign(g,null),v(no.nil),g}function v(g=t.async?(0,no._)`await `:no.nil){const y=l.opts.passContext?Rl.default.this:Rl.default.self,w=!("compile"in t&&!s||t.schema===!1);r.assign(f,(0,no._)`${g}${(0,oce.callValidateCode)(e,u,y,w)}`,t.modifying)}function x(g){var y;r.if((0,no.not)((y=t.valid)!==null&&y!==void 0?y:f),g)}}hi.funcKeywordCode=sce;function YO(e){const{gen:t,data:n,it:r}=e;t.if(r.parentData,()=>t.assign(n,(0,no._)`${r.parentData}[${r.parentDataProperty}]`))}function lce(e,t){const{gen:n}=e;n.if((0,no._)`Array.isArray(${t})`,()=>{n.assign(Rl.default.vErrors,(0,no._)`${Rl.default.vErrors} === null ? ${t} : ${Rl.default.vErrors}.concat(${t})`).assign(Rl.default.errors,(0,no._)`${Rl.default.vErrors}.length`),(0,ace.extendErrors)(e)},()=>e.error())}function cce({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function sN(e,t,n){if(n===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof n=="function"?{ref:n}:{ref:n,code:(0,no.stringify)(n)})}function uce(e,t,n=!1){return!t.length||t.some(r=>r==="array"?Array.isArray(e):r==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==r||n&&typeof e>"u")}hi.validSchemaType=uce;function dce({schema:e,opts:t,self:n,errSchemaPath:r},o,a){if(Array.isArray(o.keyword)?!o.keyword.includes(a):o.keyword!==a)throw new Error("ajv implementation error");const i=o.dependencies;if(i!=null&&i.some(s=>!Object.prototype.hasOwnProperty.call(e,s)))throw new Error(`parent schema must have dependencies of ${a}: ${i.join(",")}`);if(o.validateSchema&&!o.validateSchema(e[a])){const l=`keyword "${a}" value is invalid at path "${r}": `+n.errorsText(o.validateSchema.errors);if(t.validateSchema==="log")n.logger.error(l);else throw new Error(l)}}hi.validateKeywordUsage=dce;var qs={};Object.defineProperty(qs,"__esModule",{value:!0});qs.extendSubschemaMode=qs.extendSubschemaData=qs.getSubschema=void 0;const ui=Jt,lN=dn;function fce(e,{keyword:t,schemaProp:n,schema:r,schemaPath:o,errSchemaPath:a,topSchemaRef:i}){if(t!==void 0&&r!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){const s=e.schema[t];return n===void 0?{schema:s,schemaPath:(0,ui._)`${e.schemaPath}${(0,ui.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:s[n],schemaPath:(0,ui._)`${e.schemaPath}${(0,ui.getProperty)(t)}${(0,ui.getProperty)(n)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,lN.escapeFragment)(n)}`}}if(r!==void 0){if(o===void 0||a===void 0||i===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:r,schemaPath:o,topSchemaRef:i,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')}qs.getSubschema=fce;function pce(e,t,{dataProp:n,dataPropType:r,data:o,dataTypes:a,propertyName:i}){if(o!==void 0&&n!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:s}=t;if(n!==void 0){const{errorPath:c,dataPathArr:u,opts:f}=t,p=s.let("data",(0,ui._)`${t.data}${(0,ui.getProperty)(n)}`,!0);l(p),e.errorPath=(0,ui.str)`${c}${(0,lN.getErrorPath)(n,r,f.jsPropertySyntax)}`,e.parentDataProperty=(0,ui._)`${n}`,e.dataPathArr=[...u,e.parentDataProperty]}if(o!==void 0){const c=o instanceof ui.Name?o:s.let("data",o,!0);l(c),i!==void 0&&(e.propertyName=i)}a&&(e.dataTypes=a);function l(c){e.data=c,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,c]}}qs.extendSubschemaData=pce;function hce(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:o,allErrors:a}){r!==void 0&&(e.compositeRule=r),o!==void 0&&(e.createErrors=o),a!==void 0&&(e.allErrors=a),e.jtdDiscriminator=t,e.jtdMetadata=n}qs.extendSubschemaMode=hce;var Ir={},cN=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,o,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(o=r;o--!==0;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[o]))return!1;for(o=r;o--!==0;){var i=a[o];if(!e(t[i],n[i]))return!1}return!0}return t!==t&&n!==n},uN={exports:{}},As=uN.exports=function(e,t,n){typeof t=="function"&&(n=t,t={}),n=t.cb||n;var r=typeof n=="function"?n:n.pre||function(){},o=n.post||function(){};$v(t,r,o,e,"",e)};As.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};As.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};As.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};As.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function $v(e,t,n,r,o,a,i,s,l,c){if(r&&typeof r=="object"&&!Array.isArray(r)){t(r,o,a,i,s,l,c);for(var u in r){var f=r[u];if(Array.isArray(f)){if(u in As.arrayKeywords)for(var p=0;pt+=dN(r)),t===1/0))return 1/0}return t}function fN(e,t="",n){n!==!1&&(t=_u(t));const r=e.parse(t);return pN(e,r)}Ir.getFullPath=fN;function pN(e,t){return e.serialize(t).split("#")[0]+"#"}Ir._getFullPath=pN;const $ce=/#\/?$/;function _u(e){return e?e.replace($ce,""):""}Ir.normalizeId=_u;function Sce(e,t,n){return n=_u(n),e.resolve(t,n)}Ir.resolveUrl=Sce;const _ce=/^[a-z_][-a-z0-9._]*$/i;function Ece(e,t){if(typeof e=="boolean")return{};const{schemaId:n,uriResolver:r}=this.opts,o=_u(e[n]||t),a={"":o},i=fN(r,o,!1),s={},l=new Set;return bce(e,{allKeys:!0},(f,p,m,b)=>{if(b===void 0)return;const v=i+p;let x=a[b];typeof f[n]=="string"&&(x=g.call(this,f[n])),y.call(this,f.$anchor),y.call(this,f.$dynamicAnchor),a[p]=x;function g(w){const C=this.opts.uriResolver.resolve;if(w=_u(x?C(x,w):w),l.has(w))throw u(w);l.add(w);let _=this.refs[w];return typeof _=="string"&&(_=this.refs[_]),typeof _=="object"?c(f,_.schema,w):w!==_u(v)&&(w[0]==="#"?(c(f,s[w],w),s[w]=f):this.refs[w]=v),w}function y(w){if(typeof w=="string"){if(!_ce.test(w))throw new Error(`invalid anchor "${w}"`);g.call(this,`#${w}`)}}}),s;function c(f,p,m){if(p!==void 0&&!yce(f,p))throw u(m)}function u(f){return new Error(`reference "${f}" resolves to more than one schema`)}}Ir.getSchemaRefs=Ece;Object.defineProperty(Wa,"__esModule",{value:!0});Wa.getData=Wa.KeywordCxt=Wa.validateFunctionCode=void 0;const hN=zu,KO=Qp,hS=qi,vg=Qp,Pce=Cy,Lf=hi,Qb=qs,St=Jt,Lt=Ei,Tce=Ir,Yi=dn,ef=Xp;function kce(e){if(gN(e)&&(yN(e),vN(e))){Dce(e);return}mN(e,()=>(0,hN.topBoolOrEmptySchema)(e))}Wa.validateFunctionCode=kce;function mN({gen:e,validateName:t,schema:n,schemaEnv:r,opts:o},a){o.code.es5?e.func(t,(0,St._)`${Lt.default.data}, ${Lt.default.valCxt}`,r.$async,()=>{e.code((0,St._)`"use strict"; ${JO(n,o)}`),Rce(e,o),e.code(a)}):e.func(t,(0,St._)`${Lt.default.data}, ${Oce(o)}`,r.$async,()=>e.code(JO(n,o)).code(a))}function Oce(e){return(0,St._)`{${Lt.default.instancePath}="", ${Lt.default.parentData}, ${Lt.default.parentDataProperty}, ${Lt.default.rootData}=${Lt.default.data}${e.dynamicRef?(0,St._)`, ${Lt.default.dynamicAnchors}={}`:St.nil}}={}`}function Rce(e,t){e.if(Lt.default.valCxt,()=>{e.var(Lt.default.instancePath,(0,St._)`${Lt.default.valCxt}.${Lt.default.instancePath}`),e.var(Lt.default.parentData,(0,St._)`${Lt.default.valCxt}.${Lt.default.parentData}`),e.var(Lt.default.parentDataProperty,(0,St._)`${Lt.default.valCxt}.${Lt.default.parentDataProperty}`),e.var(Lt.default.rootData,(0,St._)`${Lt.default.valCxt}.${Lt.default.rootData}`),t.dynamicRef&&e.var(Lt.default.dynamicAnchors,(0,St._)`${Lt.default.valCxt}.${Lt.default.dynamicAnchors}`)},()=>{e.var(Lt.default.instancePath,(0,St._)`""`),e.var(Lt.default.parentData,(0,St._)`undefined`),e.var(Lt.default.parentDataProperty,(0,St._)`undefined`),e.var(Lt.default.rootData,Lt.default.data),t.dynamicRef&&e.var(Lt.default.dynamicAnchors,(0,St._)`{}`)})}function Dce(e){const{schema:t,opts:n,gen:r}=e;mN(e,()=>{n.$comment&&t.$comment&&xN(e),jce(e),r.let(Lt.default.vErrors,null),r.let(Lt.default.errors,0),n.unevaluated&&Mce(e),bN(e),zce(e)})}function Mce(e){const{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",(0,St._)`${n}.evaluated`),t.if((0,St._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,St._)`${e.evaluated}.props`,(0,St._)`undefined`)),t.if((0,St._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,St._)`${e.evaluated}.items`,(0,St._)`undefined`))}function JO(e,t){const n=typeof e=="object"&&e[t.schemaId];return n&&(t.code.source||t.code.process)?(0,St._)`/*# sourceURL=${n} */`:St.nil}function Ice(e,t){if(gN(e)&&(yN(e),vN(e))){Ace(e,t);return}(0,hN.boolOrEmptySchema)(e,t)}function vN({schema:e,self:t}){if(typeof e=="boolean")return!e;for(const n in e)if(t.RULES.all[n])return!0;return!1}function gN(e){return typeof e.schema!="boolean"}function Ace(e,t){const{schema:n,gen:r,opts:o}=e;o.$comment&&n.$comment&&xN(e),Lce(e),Fce(e);const a=r.const("_errs",Lt.default.errors);bN(e,a),r.var(t,(0,St._)`${a} === ${Lt.default.errors}`)}function yN(e){(0,Yi.checkUnknownRules)(e),Nce(e)}function bN(e,t){if(e.opts.jtd)return ZO(e,[],!1,t);const n=(0,KO.getSchemaTypes)(e.schema),r=(0,KO.coerceAndCheckDataType)(e,n);ZO(e,n,!r,t)}function Nce(e){const{schema:t,errSchemaPath:n,opts:r,self:o}=e;t.$ref&&r.ignoreKeywordsWithRef&&(0,Yi.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}function jce(e){const{schema:t,opts:n}=e;t.default!==void 0&&n.useDefaults&&n.strictSchema&&(0,Yi.checkStrictMode)(e,"default is ignored in the schema root")}function Lce(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,Tce.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function Fce(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function xN({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:o}){const a=n.$comment;if(o.$comment===!0)e.code((0,St._)`${Lt.default.self}.logger.log(${a})`);else if(typeof o.$comment=="function"){const i=(0,St.str)`${r}/$comment`,s=e.scopeValue("root",{ref:t.root});e.code((0,St._)`${Lt.default.self}.opts.$comment(${a}, ${i}, ${s}.schema)`)}}function zce(e){const{gen:t,schemaEnv:n,validateName:r,ValidationError:o,opts:a}=e;n.$async?t.if((0,St._)`${Lt.default.errors} === 0`,()=>t.return(Lt.default.data),()=>t.throw((0,St._)`new ${o}(${Lt.default.vErrors})`)):(t.assign((0,St._)`${r}.errors`,Lt.default.vErrors),a.unevaluated&&Bce(e),t.return((0,St._)`${Lt.default.errors} === 0`))}function Bce({gen:e,evaluated:t,props:n,items:r}){n instanceof St.Name&&e.assign((0,St._)`${t}.props`,n),r instanceof St.Name&&e.assign((0,St._)`${t}.items`,r)}function ZO(e,t,n,r){const{gen:o,schema:a,data:i,allErrors:s,opts:l,self:c}=e,{RULES:u}=c;if(a.$ref&&(l.ignoreKeywordsWithRef||!(0,Yi.schemaHasRulesButRef)(a,u))){o.block(()=>$N(e,"$ref",u.all.$ref.definition));return}l.jtd||Vce(e,t),o.block(()=>{for(const p of u.rules)f(p);f(u.post)});function f(p){(0,hS.shouldUseGroup)(a,p)&&(p.type?(o.if((0,vg.checkDataType)(p.type,i,l.strictNumbers)),XO(e,p),t.length===1&&t[0]===p.type&&n&&(o.else(),(0,vg.reportTypeError)(e)),o.endIf()):XO(e,p),s||o.if((0,St._)`${Lt.default.errors} === ${r||0}`))}}function XO(e,t){const{gen:n,schema:r,opts:{useDefaults:o}}=e;o&&(0,Pce.assignDefaults)(e,t.type),n.block(()=>{for(const a of t.rules)(0,hS.shouldUseRule)(r,a)&&$N(e,a.keyword,a.definition,t.type)})}function Vce(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(Uce(e,t),e.opts.allowUnionTypes||Wce(e,t),Hce(e,e.dataTypes))}function Uce(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(n=>{wN(e.dataTypes,n)||mS(e,`type "${n}" not allowed by context "${e.dataTypes.join(",")}"`)}),qce(e,t)}}function Wce(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&mS(e,"use allowUnionTypes to allow union type keyword")}function Hce(e,t){const n=e.self.RULES.all;for(const r in n){const o=n[r];if(typeof o=="object"&&(0,hS.shouldUseRule)(e.schema,o)){const{type:a}=o.definition;a.length&&!a.some(i=>Gce(t,i))&&mS(e,`missing type "${a.join(",")}" for keyword "${r}"`)}}}function Gce(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function wN(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function qce(e,t){const n=[];for(const r of e.dataTypes)wN(t,r)?n.push(r):t.includes("integer")&&r==="number"&&n.push("integer");e.dataTypes=n}function mS(e,t){const n=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${n}" (strictTypes)`,(0,Yi.checkStrictMode)(e,t,e.opts.strictTypes)}class CN{constructor(t,n,r){if((0,Lf.validateKeywordUsage)(t,n,r),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=r,this.data=t.data,this.schema=t.schema[r],this.$data=n.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Yi.schemaRefOrVal)(t,this.schema,r,this.$data),this.schemaType=n.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=n,this.$data)this.schemaCode=t.gen.const("vSchema",SN(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Lf.validSchemaType)(this.schema,n.schemaType,n.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(n.schemaType)}`);("code"in n?n.trackErrors:n.errors!==!1)&&(this.errsCount=t.gen.const("_errs",Lt.default.errors))}result(t,n,r){this.failResult((0,St.not)(t),n,r)}failResult(t,n,r){this.gen.if(t),r?r():this.error(),n?(this.gen.else(),n(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,n){this.failResult((0,St.not)(t),void 0,n)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);const{schemaCode:n}=this;this.fail((0,St._)`${n} !== undefined && (${(0,St.or)(this.invalid$data(),t)})`)}error(t,n,r){if(n){this.setParams(n),this._error(t,r),this.setParams({});return}this._error(t,r)}_error(t,n){(t?ef.reportExtraError:ef.reportError)(this,this.def.error,n)}$dataError(){(0,ef.reportError)(this,this.def.$dataError||ef.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,ef.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,n){n?Object.assign(this.params,t):this.params=t}block$data(t,n,r=St.nil){this.gen.block(()=>{this.check$data(t,r),n()})}check$data(t=St.nil,n=St.nil){if(!this.$data)return;const{gen:r,schemaCode:o,schemaType:a,def:i}=this;r.if((0,St.or)((0,St._)`${o} === undefined`,n)),t!==St.nil&&r.assign(t,!0),(a.length||i.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),t!==St.nil&&r.assign(t,!1)),r.else()}invalid$data(){const{gen:t,schemaCode:n,schemaType:r,def:o,it:a}=this;return(0,St.or)(i(),s());function i(){if(r.length){if(!(n instanceof St.Name))throw new Error("ajv implementation error");const l=Array.isArray(r)?r:[r];return(0,St._)`${(0,vg.checkDataTypes)(l,n,a.opts.strictNumbers,vg.DataType.Wrong)}`}return St.nil}function s(){if(o.validateSchema){const l=t.scopeValue("validate$data",{ref:o.validateSchema});return(0,St._)`!${l}(${n})`}return St.nil}}subschema(t,n){const r=(0,Qb.getSubschema)(this.it,t);(0,Qb.extendSubschemaData)(r,this.it,t),(0,Qb.extendSubschemaMode)(r,t);const o={...this.it,...r,items:void 0,props:void 0};return Ice(o,n),o}mergeEvaluated(t,n){const{it:r,gen:o}=this;r.opts.unevaluated&&(r.props!==!0&&t.props!==void 0&&(r.props=Yi.mergeEvaluated.props(o,t.props,r.props,n)),r.items!==!0&&t.items!==void 0&&(r.items=Yi.mergeEvaluated.items(o,t.items,r.items,n)))}mergeValidEvaluated(t,n){const{it:r,gen:o}=this;if(r.opts.unevaluated&&(r.props!==!0||r.items!==!0))return o.if(n,()=>this.mergeEvaluated(t,St.Name)),!0}}Wa.KeywordCxt=CN;function $N(e,t,n,r){const o=new CN(e,n,t);"code"in n?n.code(o,r):o.$data&&n.validate?(0,Lf.funcKeywordCode)(o,n):"macro"in n?(0,Lf.macroKeywordCode)(o,n):(n.compile||n.validate)&&(0,Lf.funcKeywordCode)(o,n)}const Yce=/^\/(?:[^~]|~0|~1)*$/,Kce=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function SN(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let o,a;if(e==="")return Lt.default.rootData;if(e[0]==="/"){if(!Yce.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,a=Lt.default.rootData}else{const c=Kce.exec(e);if(!c)throw new Error(`Invalid JSON-pointer: ${e}`);const u=+c[1];if(o=c[2],o==="#"){if(u>=t)throw new Error(l("property/index",u));return r[t-u]}if(u>t)throw new Error(l("data",u));if(a=n[t-u],!o)return a}let i=a;const s=o.split("/");for(const c of s)c&&(a=(0,St._)`${a}${(0,St.getProperty)((0,Yi.unescapeJsonPointer)(c))}`,i=(0,St._)`${i} && ${a}`);return i;function l(c,u){return`Cannot access ${c} ${u} levels up, current level is ${t}`}}Wa.getData=SN;var eh={};Object.defineProperty(eh,"__esModule",{value:!0});class Jce extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}eh.default=Jce;var th={};Object.defineProperty(th,"__esModule",{value:!0});const ex=Ir;class Zce extends Error{constructor(t,n,r,o){super(o||`can't resolve reference ${r} from id ${n}`),this.missingRef=(0,ex.resolveUrl)(t,n,r),this.missingSchema=(0,ex.normalizeId)((0,ex.getFullPath)(t,this.missingRef))}}th.default=Zce;var go={};Object.defineProperty(go,"__esModule",{value:!0});go.resolveSchema=go.getCompilingSchema=go.resolveRef=go.compileSchema=go.SchemaEnv=void 0;const Oa=Jt,Xce=eh,xl=Ei,ja=Ir,QO=dn,Qce=Wa;class $y{constructor(t){var n;this.refs={},this.dynamicAnchors={};let r;typeof t.schema=="object"&&(r=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(n=t.baseId)!==null&&n!==void 0?n:(0,ja.normalizeId)(r==null?void 0:r[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=r==null?void 0:r.$async,this.refs={}}}go.SchemaEnv=$y;function vS(e){const t=_N.call(this,e);if(t)return t;const n=(0,ja.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:r,lines:o}=this.opts.code,{ownProperties:a}=this.opts,i=new Oa.CodeGen(this.scope,{es5:r,lines:o,ownProperties:a});let s;e.$async&&(s=i.scopeValue("Error",{ref:Xce.default,code:(0,Oa._)`require("ajv/dist/runtime/validation_error").default`}));const l=i.scopeName("validate");e.validateName=l;const c={gen:i,allErrors:this.opts.allErrors,data:xl.default.data,parentData:xl.default.parentData,parentDataProperty:xl.default.parentDataProperty,dataNames:[xl.default.data],dataPathArr:[Oa.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Oa.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:Oa.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Oa._)`""`,opts:this.opts,self:this};let u;try{this._compilations.add(e),(0,Qce.validateFunctionCode)(c),i.optimize(this.opts.code.optimize);const f=i.toString();u=`${i.scopeRefs(xl.default.scope)}return ${f}`,this.opts.code.process&&(u=this.opts.code.process(u,e));const m=new Function(`${xl.default.self}`,`${xl.default.scope}`,u)(this,this.scope.get());if(this.scope.value(l,{ref:m}),m.errors=null,m.schema=e.schema,m.schemaEnv=e,e.$async&&(m.$async=!0),this.opts.code.source===!0&&(m.source={validateName:l,validateCode:f,scopeValues:i._values}),this.opts.unevaluated){const{props:b,items:v}=c;m.evaluated={props:b instanceof Oa.Name?void 0:b,items:v instanceof Oa.Name?void 0:v,dynamicProps:b instanceof Oa.Name,dynamicItems:v instanceof Oa.Name},m.source&&(m.source.evaluated=(0,Oa.stringify)(m.evaluated))}return e.validate=m,e}catch(f){throw delete e.validate,delete e.validateName,u&&this.logger.error("Error compiling schema, function code:",u),f}finally{this._compilations.delete(e)}}go.compileSchema=vS;function eue(e,t,n){var r;n=(0,ja.resolveUrl)(this.opts.uriResolver,t,n);const o=e.refs[n];if(o)return o;let a=rue.call(this,e,n);if(a===void 0){const i=(r=e.localRefs)===null||r===void 0?void 0:r[n],{schemaId:s}=this.opts;i&&(a=new $y({schema:i,schemaId:s,root:e,baseId:t}))}if(a!==void 0)return e.refs[n]=tue.call(this,a)}go.resolveRef=eue;function tue(e){return(0,ja.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:vS.call(this,e)}function _N(e){for(const t of this._compilations)if(nue(t,e))return t}go.getCompilingSchema=_N;function nue(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function rue(e,t){let n;for(;typeof(n=this.refs[t])=="string";)t=n;return n||this.schemas[t]||Sy.call(this,e,t)}function Sy(e,t){const n=this.opts.uriResolver.parse(t),r=(0,ja._getFullPath)(this.opts.uriResolver,n);let o=(0,ja.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===o)return tx.call(this,n,e);const a=(0,ja.normalizeId)(r),i=this.refs[a]||this.schemas[a];if(typeof i=="string"){const s=Sy.call(this,e,i);return typeof(s==null?void 0:s.schema)!="object"?void 0:tx.call(this,n,s)}if(typeof(i==null?void 0:i.schema)=="object"){if(i.validate||vS.call(this,i),a===(0,ja.normalizeId)(t)){const{schema:s}=i,{schemaId:l}=this.opts,c=s[l];return c&&(o=(0,ja.resolveUrl)(this.opts.uriResolver,o,c)),new $y({schema:s,schemaId:l,root:e,baseId:o})}return tx.call(this,n,i)}}go.resolveSchema=Sy;const oue=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function tx(e,{baseId:t,schema:n,root:r}){var o;if(((o=e.fragment)===null||o===void 0?void 0:o[0])!=="/")return;for(const s of e.fragment.slice(1).split("/")){if(typeof n=="boolean")return;const l=n[(0,QO.unescapeFragment)(s)];if(l===void 0)return;n=l;const c=typeof n=="object"&&n[this.opts.schemaId];!oue.has(s)&&c&&(t=(0,ja.resolveUrl)(this.opts.uriResolver,t,c))}let a;if(typeof n!="boolean"&&n.$ref&&!(0,QO.schemaHasRulesButRef)(n,this.RULES)){const s=(0,ja.resolveUrl)(this.opts.uriResolver,t,n.$ref);a=Sy.call(this,r,s)}const{schemaId:i}=this.opts;if(a=a||new $y({schema:n,schemaId:i,root:r,baseId:t}),a.schema!==a.root.schema)return a}const aue="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",iue="Meta-schema for $data reference (JSON AnySchema extension proposal)",sue="object",lue=["$data"],cue={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},uue=!1,due={$id:aue,description:iue,type:sue,required:lue,properties:cue,additionalProperties:uue};var gS={},Yw={exports:{}};/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */(function(e,t){(function(n,r){r(t)})(yo,function(n){function r(){for(var se=arguments.length,oe=Array(se),ue=0;ue1){oe[0]=oe[0].slice(0,-1);for(var ke=oe.length-1,Ee=1;Ee= 0x80 (not a basic code point)","invalid-input":"Invalid input"},F=v-x,U=Math.floor,G=String.fromCharCode;function B(se){throw new RangeError(R[se])}function z(se,oe){for(var ue=[],ke=se.length;ke--;)ue[ke]=oe(se[ke]);return ue}function Y(se,oe){var ue=se.split("@"),ke="";ue.length>1&&(ke=ue[0]+"@",se=ue[1]),se=se.replace(I,".");var Ee=se.split("."),pt=z(Ee,oe).join(".");return ke+pt}function Q(se){for(var oe=[],ue=0,ke=se.length;ue=55296&&Ee<=56319&&ue>1,oe+=U(oe/ue);oe>F*g>>1;Ee+=v)oe=U(oe/F);return U(Ee+(F+1)*oe/(oe+y))},K=function(oe){var ue=[],ke=oe.length,Ee=0,pt=_,me=C,pe=oe.lastIndexOf($);pe<0&&(pe=0);for(var De=0;De=128&&B("not-basic"),ue.push(oe.charCodeAt(De));for(var nt=pe>0?pe+1:0;nt=ke&&B("invalid-input");var ut=J(oe.charCodeAt(nt++));(ut>=v||ut>U((b-Ee)/xt))&&B("overflow"),Ee+=ut*xt;var yt=Nt<=me?x:Nt>=me+g?g:Nt-me;if(utU(b/Wt)&&B("overflow"),xt*=Wt}var En=ue.length+1;me=L(Ee-lt,En,lt==0),U(Ee/En)>b-pt&&B("overflow"),pt+=U(Ee/En),Ee%=En,ue.splice(Ee++,0,pt)}return String.fromCodePoint.apply(String,ue)},q=function(oe){var ue=[];oe=Q(oe);var ke=oe.length,Ee=_,pt=0,me=C,pe=!0,De=!1,nt=void 0;try{for(var lt=oe[Symbol.iterator](),xt;!(pe=(xt=lt.next()).done);pe=!0){var Nt=xt.value;Nt<128&&ue.push(G(Nt))}}catch(co){De=!0,nt=co}finally{try{!pe&<.return&<.return()}finally{if(De)throw nt}}var ut=ue.length,yt=ut;for(ut&&ue.push($);yt=Ee&&ZaU((b-pt)/Kr)&&B("overflow"),pt+=(Wt-Ee)*Kr,Ee=Wt;var Do=!0,Xa=!1,Un=void 0;try{for(var dl=oe[Symbol.iterator](),Jr;!(Do=(Jr=dl.next()).done);Do=!0){var $h=Jr.value;if($hb&&B("overflow"),$h==Ee){for(var fl=pt,Mo=v;;Mo+=v){var Oi=Mo<=me?x:Mo>=me+g?g:Mo-me;if(fl>6|192).toString(16).toUpperCase()+"%"+(oe&63|128).toString(16).toUpperCase():ue="%"+(oe>>12|224).toString(16).toUpperCase()+"%"+(oe>>6&63|128).toString(16).toUpperCase()+"%"+(oe&63|128).toString(16).toUpperCase(),ue}function le(se){for(var oe="",ue=0,ke=se.length;ue=194&&Ee<224){if(ke-ue>=6){var pt=parseInt(se.substr(ue+4,2),16);oe+=String.fromCharCode((Ee&31)<<6|pt&63)}else oe+=se.substr(ue,6);ue+=6}else if(Ee>=224){if(ke-ue>=9){var me=parseInt(se.substr(ue+4,2),16),pe=parseInt(se.substr(ue+7,2),16);oe+=String.fromCharCode((Ee&15)<<12|(me&63)<<6|pe&63)}else oe+=se.substr(ue,9);ue+=9}else oe+=se.substr(ue,3),ue+=3}return oe}function xe(se,oe){function ue(ke){var Ee=le(ke);return Ee.match(oe.UNRESERVED)?Ee:ke}return se.scheme&&(se.scheme=String(se.scheme).replace(oe.PCT_ENCODED,ue).toLowerCase().replace(oe.NOT_SCHEME,"")),se.userinfo!==void 0&&(se.userinfo=String(se.userinfo).replace(oe.PCT_ENCODED,ue).replace(oe.NOT_USERINFO,re).replace(oe.PCT_ENCODED,i)),se.host!==void 0&&(se.host=String(se.host).replace(oe.PCT_ENCODED,ue).toLowerCase().replace(oe.NOT_HOST,re).replace(oe.PCT_ENCODED,i)),se.path!==void 0&&(se.path=String(se.path).replace(oe.PCT_ENCODED,ue).replace(se.scheme?oe.NOT_PATH:oe.NOT_PATH_NOSCHEME,re).replace(oe.PCT_ENCODED,i)),se.query!==void 0&&(se.query=String(se.query).replace(oe.PCT_ENCODED,ue).replace(oe.NOT_QUERY,re).replace(oe.PCT_ENCODED,i)),se.fragment!==void 0&&(se.fragment=String(se.fragment).replace(oe.PCT_ENCODED,ue).replace(oe.NOT_FRAGMENT,re).replace(oe.PCT_ENCODED,i)),se}function fe(se){return se.replace(/^0*(.*)/,"$1")||"0"}function ge(se,oe){var ue=se.match(oe.IPV4ADDRESS)||[],ke=p(ue,2),Ee=ke[1];return Ee?Ee.split(".").map(fe).join("."):se}function he(se,oe){var ue=se.match(oe.IPV6ADDRESS)||[],ke=p(ue,3),Ee=ke[1],pt=ke[2];if(Ee){for(var me=Ee.toLowerCase().split("::").reverse(),pe=p(me,2),De=pe[0],nt=pe[1],lt=nt?nt.split(":").map(fe):[],xt=De.split(":").map(fe),Nt=oe.IPV4ADDRESS.test(xt[xt.length-1]),ut=Nt?7:8,yt=xt.length-ut,Wt=Array(ut),En=0;En1){var ki=Wt.slice(0,Vn.index),Za=Wt.slice(Vn.index+Vn.length);Ro=ki.join(":")+"::"+Za.join(":")}else Ro=Wt.join(":");return pt&&(Ro+="%"+pt),Ro}else return se}var _e=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,ve="".match(/(){0}/)[1]===void 0;function Be(se){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ue={},ke=oe.iri!==!1?f:u;oe.reference==="suffix"&&(se=(oe.scheme?oe.scheme+":":"")+"//"+se);var Ee=se.match(_e);if(Ee){ve?(ue.scheme=Ee[1],ue.userinfo=Ee[3],ue.host=Ee[4],ue.port=parseInt(Ee[5],10),ue.path=Ee[6]||"",ue.query=Ee[7],ue.fragment=Ee[8],isNaN(ue.port)&&(ue.port=Ee[5])):(ue.scheme=Ee[1]||void 0,ue.userinfo=se.indexOf("@")!==-1?Ee[3]:void 0,ue.host=se.indexOf("//")!==-1?Ee[4]:void 0,ue.port=parseInt(Ee[5],10),ue.path=Ee[6]||"",ue.query=se.indexOf("?")!==-1?Ee[7]:void 0,ue.fragment=se.indexOf("#")!==-1?Ee[8]:void 0,isNaN(ue.port)&&(ue.port=se.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Ee[4]:void 0)),ue.host&&(ue.host=he(ge(ue.host,ke),ke)),ue.scheme===void 0&&ue.userinfo===void 0&&ue.host===void 0&&ue.port===void 0&&!ue.path&&ue.query===void 0?ue.reference="same-document":ue.scheme===void 0?ue.reference="relative":ue.fragment===void 0?ue.reference="absolute":ue.reference="uri",oe.reference&&oe.reference!=="suffix"&&oe.reference!==ue.reference&&(ue.error=ue.error||"URI is not a "+oe.reference+" reference.");var pt=Z[(oe.scheme||ue.scheme||"").toLowerCase()];if(!oe.unicodeSupport&&(!pt||!pt.unicodeSupport)){if(ue.host&&(oe.domainHost||pt&&pt.domainHost))try{ue.host=V.toASCII(ue.host.replace(ke.PCT_ENCODED,le).toLowerCase())}catch(me){ue.error=ue.error||"Host's domain name can not be converted to ASCII via punycode: "+me}xe(ue,u)}else xe(ue,ke);pt&&pt.parse&&pt.parse(ue,oe)}else ue.error=ue.error||"URI can not be parsed.";return ue}function Ue(se,oe){var ue=oe.iri!==!1?f:u,ke=[];return se.userinfo!==void 0&&(ke.push(se.userinfo),ke.push("@")),se.host!==void 0&&ke.push(he(ge(String(se.host),ue),ue).replace(ue.IPV6ADDRESS,function(Ee,pt,me){return"["+pt+(me?"%25"+me:"")+"]"})),(typeof se.port=="number"||typeof se.port=="string")&&(ke.push(":"),ke.push(String(se.port))),ke.length?ke.join(""):void 0}var ze=/^\.\.?\//,He=/^\/\.(\/|$)/,be=/^\/\.\.(\/|$)/,we=/^\/?(?:.|\n)*?(?=\/|$)/;function Ce(se){for(var oe=[];se.length;)if(se.match(ze))se=se.replace(ze,"");else if(se.match(He))se=se.replace(He,"/");else if(se.match(be))se=se.replace(be,"/"),oe.pop();else if(se==="."||se==="..")se="";else{var ue=se.match(we);if(ue){var ke=ue[0];se=se.slice(ke.length),oe.push(ke)}else throw new Error("Unexpected dot segment condition")}return oe.join("")}function qe(se){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ue=oe.iri?f:u,ke=[],Ee=Z[(oe.scheme||se.scheme||"").toLowerCase()];if(Ee&&Ee.serialize&&Ee.serialize(se,oe),se.host&&!ue.IPV6ADDRESS.test(se.host)){if(oe.domainHost||Ee&&Ee.domainHost)try{se.host=oe.iri?V.toUnicode(se.host):V.toASCII(se.host.replace(ue.PCT_ENCODED,le).toLowerCase())}catch(pe){se.error=se.error||"Host's domain name can not be converted to "+(oe.iri?"Unicode":"ASCII")+" via punycode: "+pe}}xe(se,ue),oe.reference!=="suffix"&&se.scheme&&(ke.push(se.scheme),ke.push(":"));var pt=Ue(se,oe);if(pt!==void 0&&(oe.reference!=="suffix"&&ke.push("//"),ke.push(pt),se.path&&se.path.charAt(0)!=="/"&&ke.push("/")),se.path!==void 0){var me=se.path;!oe.absolutePath&&(!Ee||!Ee.absolutePath)&&(me=Ce(me)),pt===void 0&&(me=me.replace(/^\/\//,"/%2F")),ke.push(me)}return se.query!==void 0&&(ke.push("?"),ke.push(se.query)),se.fragment!==void 0&&(ke.push("#"),ke.push(se.fragment)),ke.join("")}function rt(se,oe){var ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ke=arguments[3],Ee={};return ke||(se=Be(qe(se,ue),ue),oe=Be(qe(oe,ue),ue)),ue=ue||{},!ue.tolerant&&oe.scheme?(Ee.scheme=oe.scheme,Ee.userinfo=oe.userinfo,Ee.host=oe.host,Ee.port=oe.port,Ee.path=Ce(oe.path||""),Ee.query=oe.query):(oe.userinfo!==void 0||oe.host!==void 0||oe.port!==void 0?(Ee.userinfo=oe.userinfo,Ee.host=oe.host,Ee.port=oe.port,Ee.path=Ce(oe.path||""),Ee.query=oe.query):(oe.path?(oe.path.charAt(0)==="/"?Ee.path=Ce(oe.path):((se.userinfo!==void 0||se.host!==void 0||se.port!==void 0)&&!se.path?Ee.path="/"+oe.path:se.path?Ee.path=se.path.slice(0,se.path.lastIndexOf("/")+1)+oe.path:Ee.path=oe.path,Ee.path=Ce(Ee.path)),Ee.query=oe.query):(Ee.path=se.path,oe.query!==void 0?Ee.query=oe.query:Ee.query=se.query),Ee.userinfo=se.userinfo,Ee.host=se.host,Ee.port=se.port),Ee.scheme=se.scheme),Ee.fragment=oe.fragment,Ee}function Ae(se,oe,ue){var ke=l({scheme:"null"},ue);return qe(rt(Be(se,ke),Be(oe,ke),ke,!0),ke)}function Le(se,oe){return typeof se=="string"?se=qe(Be(se,oe),oe):a(se)==="object"&&(se=Be(qe(se,oe),oe)),se}function Fe(se,oe,ue){return typeof se=="string"?se=qe(Be(se,ue),ue):a(se)==="object"&&(se=qe(se,ue)),typeof oe=="string"?oe=qe(Be(oe,ue),ue):a(oe)==="object"&&(oe=qe(oe,ue)),se===oe}function Pe(se,oe){return se&&se.toString().replace(!oe||!oe.iri?u.ESCAPE:f.ESCAPE,re)}function Te(se,oe){return se&&se.toString().replace(!oe||!oe.iri?u.PCT_ENCODED:f.PCT_ENCODED,le)}var it={scheme:"http",domainHost:!0,parse:function(oe,ue){return oe.host||(oe.error=oe.error||"HTTP URIs must have a host."),oe},serialize:function(oe,ue){var ke=String(oe.scheme).toLowerCase()==="https";return(oe.port===(ke?443:80)||oe.port==="")&&(oe.port=void 0),oe.path||(oe.path="/"),oe}},ct={scheme:"https",domainHost:it.domainHost,parse:it.parse,serialize:it.serialize};function gt(se){return typeof se.secure=="boolean"?se.secure:String(se.scheme).toLowerCase()==="wss"}var Ne={scheme:"ws",domainHost:!0,parse:function(oe,ue){var ke=oe;return ke.secure=gt(ke),ke.resourceName=(ke.path||"/")+(ke.query?"?"+ke.query:""),ke.path=void 0,ke.query=void 0,ke},serialize:function(oe,ue){if((oe.port===(gt(oe)?443:80)||oe.port==="")&&(oe.port=void 0),typeof oe.secure=="boolean"&&(oe.scheme=oe.secure?"wss":"ws",oe.secure=void 0),oe.resourceName){var ke=oe.resourceName.split("?"),Ee=p(ke,2),pt=Ee[0],me=Ee[1];oe.path=pt&&pt!=="/"?pt:void 0,oe.query=me,oe.resourceName=void 0}return oe.fragment=void 0,oe}},ne={scheme:"wss",domainHost:Ne.domainHost,parse:Ne.parse,serialize:Ne.serialize},te={},ie="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",$e="[0-9A-Fa-f]",Se=o(o("%[EFef]"+$e+"%"+$e+$e+"%"+$e+$e)+"|"+o("%[89A-Fa-f]"+$e+"%"+$e+$e)+"|"+o("%"+$e+$e)),Ze="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",tt="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",ft=r(tt,'[\\"\\\\]'),_t="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",vt=new RegExp(ie,"g"),dt=new RegExp(Se,"g"),Et=new RegExp(r("[^]",Ze,"[\\.]",'[\\"]',ft),"g"),Yt=new RegExp(r("[^]",ie,_t),"g"),kt=Yt;function ln(se){var oe=le(se);return oe.match(vt)?oe:se}var Vt={scheme:"mailto",parse:function(oe,ue){var ke=oe,Ee=ke.to=ke.path?ke.path.split(","):[];if(ke.path=void 0,ke.query){for(var pt=!1,me={},pe=ke.query.split("&"),De=0,nt=pe.length;Denew RegExp(X,L);m.code="new RegExp";const b=["removeAdditional","useDefaults","coerceTypes"],v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),x={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},g={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},y=200;function w(X){var L,K,q,D,N,V,Z,re,le,xe,fe,ge,he,_e,ve,Be,Ue,ze,He,be,we,Ce,qe,rt,Ae;const Le=X.strict,Fe=(L=X.code)===null||L===void 0?void 0:L.optimize,Pe=Fe===!0||Fe===void 0?1:Fe||0,Te=(q=(K=X.code)===null||K===void 0?void 0:K.regExp)!==null&&q!==void 0?q:m,it=(D=X.uriResolver)!==null&&D!==void 0?D:p.default;return{strictSchema:(V=(N=X.strictSchema)!==null&&N!==void 0?N:Le)!==null&&V!==void 0?V:!0,strictNumbers:(re=(Z=X.strictNumbers)!==null&&Z!==void 0?Z:Le)!==null&&re!==void 0?re:!0,strictTypes:(xe=(le=X.strictTypes)!==null&&le!==void 0?le:Le)!==null&&xe!==void 0?xe:"log",strictTuples:(ge=(fe=X.strictTuples)!==null&&fe!==void 0?fe:Le)!==null&&ge!==void 0?ge:"log",strictRequired:(_e=(he=X.strictRequired)!==null&&he!==void 0?he:Le)!==null&&_e!==void 0?_e:!1,code:X.code?{...X.code,optimize:Pe,regExp:Te}:{optimize:Pe,regExp:Te},loopRequired:(ve=X.loopRequired)!==null&&ve!==void 0?ve:y,loopEnum:(Be=X.loopEnum)!==null&&Be!==void 0?Be:y,meta:(Ue=X.meta)!==null&&Ue!==void 0?Ue:!0,messages:(ze=X.messages)!==null&&ze!==void 0?ze:!0,inlineRefs:(He=X.inlineRefs)!==null&&He!==void 0?He:!0,schemaId:(be=X.schemaId)!==null&&be!==void 0?be:"$id",addUsedSchema:(we=X.addUsedSchema)!==null&&we!==void 0?we:!0,validateSchema:(Ce=X.validateSchema)!==null&&Ce!==void 0?Ce:!0,validateFormats:(qe=X.validateFormats)!==null&&qe!==void 0?qe:!0,unicodeRegExp:(rt=X.unicodeRegExp)!==null&&rt!==void 0?rt:!0,int32range:(Ae=X.int32range)!==null&&Ae!==void 0?Ae:!0,uriResolver:it}}class C{constructor(L={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,L=this.opts={...L,...w(L)};const{es5:K,lines:q}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:v,es5:K,lines:q}),this.logger=U(L.logger);const D=L.validateFormats;L.validateFormats=!1,this.RULES=(0,a.getRules)(),_.call(this,x,L,"NOT SUPPORTED"),_.call(this,g,L,"DEPRECATED","warn"),this._metaOpts=R.call(this),L.formats&&k.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),L.keywords&&I.call(this,L.keywords),typeof L.meta=="object"&&this.addMetaSchema(L.meta),E.call(this),L.validateFormats=D}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:L,meta:K,schemaId:q}=this.opts;let D=f;q==="id"&&(D={...f},D.id=D.$id,delete D.$id),K&&L&&this.addMetaSchema(D,D[q],!1)}defaultMeta(){const{meta:L,schemaId:K}=this.opts;return this.opts.defaultMeta=typeof L=="object"?L[K]||L:void 0}validate(L,K){let q;if(typeof L=="string"){if(q=this.getSchema(L),!q)throw new Error(`no schema with key or ref "${L}"`)}else q=this.compile(L);const D=q(K);return"$async"in q||(this.errors=q.errors),D}compile(L,K){const q=this._addSchema(L,K);return q.validate||this._compileSchemaEnv(q)}compileAsync(L,K){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:q}=this.opts;return D.call(this,L,K);async function D(xe,fe){await N.call(this,xe.$schema);const ge=this._addSchema(xe,fe);return ge.validate||V.call(this,ge)}async function N(xe){xe&&!this.getSchema(xe)&&await D.call(this,{$ref:xe},!0)}async function V(xe){try{return this._compileSchemaEnv(xe)}catch(fe){if(!(fe instanceof o.default))throw fe;return Z.call(this,fe),await re.call(this,fe.missingSchema),V.call(this,xe)}}function Z({missingSchema:xe,missingRef:fe}){if(this.refs[xe])throw new Error(`AnySchema ${xe} is loaded but ${fe} cannot be resolved`)}async function re(xe){const fe=await le.call(this,xe);this.refs[xe]||await N.call(this,fe.$schema),this.refs[xe]||this.addSchema(fe,xe,K)}async function le(xe){const fe=this._loading[xe];if(fe)return fe;try{return await(this._loading[xe]=q(xe))}finally{delete this._loading[xe]}}}addSchema(L,K,q,D=this.opts.validateSchema){if(Array.isArray(L)){for(const V of L)this.addSchema(V,void 0,q,D);return this}let N;if(typeof L=="object"){const{schemaId:V}=this.opts;if(N=L[V],N!==void 0&&typeof N!="string")throw new Error(`schema ${V} must be string`)}return K=(0,l.normalizeId)(K||N),this._checkUnique(K),this.schemas[K]=this._addSchema(L,q,K,D,!0),this}addMetaSchema(L,K,q=this.opts.validateSchema){return this.addSchema(L,K,!0,q),this}validateSchema(L,K){if(typeof L=="boolean")return!0;let q;if(q=L.$schema,q!==void 0&&typeof q!="string")throw new Error("$schema must be a string");if(q=q||this.opts.defaultMeta||this.defaultMeta(),!q)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const D=this.validate(q,L);if(!D&&K){const N="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(N);else throw new Error(N)}return D}getSchema(L){let K;for(;typeof(K=$.call(this,L))=="string";)L=K;if(K===void 0){const{schemaId:q}=this.opts,D=new i.SchemaEnv({schema:{},schemaId:q});if(K=i.resolveSchema.call(this,D,L),!K)return;this.refs[L]=K}return K.validate||this._compileSchemaEnv(K)}removeSchema(L){if(L instanceof RegExp)return this._removeAllSchemas(this.schemas,L),this._removeAllSchemas(this.refs,L),this;switch(typeof L){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const K=$.call(this,L);return typeof K=="object"&&this._cache.delete(K.schema),delete this.schemas[L],delete this.refs[L],this}case"object":{const K=L;this._cache.delete(K);let q=L[this.opts.schemaId];return q&&(q=(0,l.normalizeId)(q),delete this.schemas[q],delete this.refs[q]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(L){for(const K of L)this.addKeyword(K);return this}addKeyword(L,K){let q;if(typeof L=="string")q=L,typeof K=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),K.keyword=q);else if(typeof L=="object"&&K===void 0){if(K=L,q=K.keyword,Array.isArray(q)&&!q.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(B.call(this,q,K),!K)return(0,u.eachItem)(q,N=>z.call(this,N)),this;Q.call(this,K);const D={...K,type:(0,c.getJSONTypes)(K.type),schemaType:(0,c.getJSONTypes)(K.schemaType)};return(0,u.eachItem)(q,D.type.length===0?N=>z.call(this,N,D):N=>D.type.forEach(V=>z.call(this,N,D,V))),this}getKeyword(L){const K=this.RULES.all[L];return typeof K=="object"?K.definition:!!K}removeKeyword(L){const{RULES:K}=this;delete K.keywords[L],delete K.all[L];for(const q of K.rules){const D=q.rules.findIndex(N=>N.keyword===L);D>=0&&q.rules.splice(D,1)}return this}addFormat(L,K){return typeof K=="string"&&(K=new RegExp(K)),this.formats[L]=K,this}errorsText(L=this.errors,{separator:K=", ",dataVar:q="data"}={}){return!L||L.length===0?"No errors":L.map(D=>`${q}${D.instancePath} ${D.message}`).reduce((D,N)=>D+K+N)}$dataMetaSchema(L,K){const q=this.RULES.all;L=JSON.parse(JSON.stringify(L));for(const D of K){const N=D.split("/").slice(1);let V=L;for(const Z of N)V=V[Z];for(const Z in q){const re=q[Z];if(typeof re!="object")continue;const{$data:le}=re.definition,xe=V[Z];le&&xe&&(V[Z]=J(xe))}}return L}_removeAllSchemas(L,K){for(const q in L){const D=L[q];(!K||K.test(q))&&(typeof D=="string"?delete L[q]:D&&!D.meta&&(this._cache.delete(D.schema),delete L[q]))}}_addSchema(L,K,q,D=this.opts.validateSchema,N=this.opts.addUsedSchema){let V;const{schemaId:Z}=this.opts;if(typeof L=="object")V=L[Z];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof L!="boolean")throw new Error("schema must be object or boolean")}let re=this._cache.get(L);if(re!==void 0)return re;q=(0,l.normalizeId)(V||q);const le=l.getSchemaRefs.call(this,L,q);return re=new i.SchemaEnv({schema:L,schemaId:Z,meta:K,baseId:q,localRefs:le}),this._cache.set(re.schema,re),N&&!q.startsWith("#")&&(q&&this._checkUnique(q),this.refs[q]=re),D&&this.validateSchema(L,!0),re}_checkUnique(L){if(this.schemas[L]||this.refs[L])throw new Error(`schema with key or id "${L}" already exists`)}_compileSchemaEnv(L){if(L.meta?this._compileMetaSchema(L):i.compileSchema.call(this,L),!L.validate)throw new Error("ajv implementation error");return L.validate}_compileMetaSchema(L){const K=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,L)}finally{this.opts=K}}}e.default=C,C.ValidationError=r.default,C.MissingRefError=o.default;function _(X,L,K,q="error"){for(const D in X){const N=D;N in L&&this.logger[q](`${K}: option ${D}. ${X[N]}`)}}function $(X){return X=(0,l.normalizeId)(X),this.schemas[X]||this.refs[X]}function E(){const X=this.opts.schemas;if(X)if(Array.isArray(X))this.addSchema(X);else for(const L in X)this.addSchema(X[L],L)}function k(){for(const X in this.opts.formats){const L=this.opts.formats[X];L&&this.addFormat(X,L)}}function I(X){if(Array.isArray(X)){this.addVocabulary(X);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const L in X){const K=X[L];K.keyword||(K.keyword=L),this.addKeyword(K)}}function R(){const X={...this.opts};for(const L of b)delete X[L];return X}const F={log(){},warn(){},error(){}};function U(X){if(X===!1)return F;if(X===void 0)return console;if(X.log&&X.warn&&X.error)return X;throw new Error("logger must implement log, warn and error methods")}const G=/^[a-z_$][a-z0-9_$:-]*$/i;function B(X,L){const{RULES:K}=this;if((0,u.eachItem)(X,q=>{if(K.keywords[q])throw new Error(`Keyword ${q} is already defined`);if(!G.test(q))throw new Error(`Keyword ${q} has invalid name`)}),!!L&&L.$data&&!("code"in L||"validate"in L))throw new Error('$data keyword must have "code" or "validate" function')}function z(X,L,K){var q;const D=L==null?void 0:L.post;if(K&&D)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:N}=this;let V=D?N.post:N.rules.find(({type:re})=>re===K);if(V||(V={type:K,rules:[]},N.rules.push(V)),N.keywords[X]=!0,!L)return;const Z={keyword:X,definition:{...L,type:(0,c.getJSONTypes)(L.type),schemaType:(0,c.getJSONTypes)(L.schemaType)}};L.before?Y.call(this,V,Z,L.before):V.rules.push(Z),N.all[X]=Z,(q=L.implements)===null||q===void 0||q.forEach(re=>this.addKeyword(re))}function Y(X,L,K){const q=X.rules.findIndex(D=>D.keyword===K);q>=0?X.rules.splice(q,0,L):(X.rules.push(L),this.logger.warn(`rule ${K} is not defined`))}function Q(X){let{metaSchema:L}=X;L!==void 0&&(X.$data&&this.opts.$data&&(L=J(L)),X.validateSchema=this.compile(L,!0))}const H={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function J(X){return{anyOf:[X,H]}}})(tN);var yS={},bS={},xS={};Object.defineProperty(xS,"__esModule",{value:!0});const pue={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};xS.default=pue;var Jl={};Object.defineProperty(Jl,"__esModule",{value:!0});Jl.callRef=Jl.getValidate=void 0;const hue=th,eR=Qt,mo=Jt,Lc=Ei,tR=go,Mm=dn,mue={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:n,it:r}=e,{baseId:o,schemaEnv:a,validateName:i,opts:s,self:l}=r,{root:c}=a;if((n==="#"||n==="#/")&&o===c.baseId)return f();const u=tR.resolveRef.call(l,c,o,n);if(u===void 0)throw new hue.default(r.opts.uriResolver,o,n);if(u instanceof tR.SchemaEnv)return p(u);return m(u);function f(){if(a===c)return Sv(e,i,a,a.$async);const b=t.scopeValue("root",{ref:c});return Sv(e,(0,mo._)`${b}.validate`,c,c.$async)}function p(b){const v=PN(e,b);Sv(e,v,b,b.$async)}function m(b){const v=t.scopeValue("schema",s.code.source===!0?{ref:b,code:(0,mo.stringify)(b)}:{ref:b}),x=t.name("valid"),g=e.subschema({schema:b,dataTypes:[],schemaPath:mo.nil,topSchemaRef:v,errSchemaPath:n},x);e.mergeEvaluated(g),e.ok(x)}}};function PN(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):(0,mo._)`${n.scopeValue("wrapper",{ref:t})}.validate`}Jl.getValidate=PN;function Sv(e,t,n,r){const{gen:o,it:a}=e,{allErrors:i,schemaEnv:s,opts:l}=a,c=l.passContext?Lc.default.this:mo.nil;r?u():f();function u(){if(!s.$async)throw new Error("async schema referenced by sync schema");const b=o.let("valid");o.try(()=>{o.code((0,mo._)`await ${(0,eR.callValidateCode)(e,t,c)}`),m(t),i||o.assign(b,!0)},v=>{o.if((0,mo._)`!(${v} instanceof ${a.ValidationError})`,()=>o.throw(v)),p(v),i||o.assign(b,!1)}),e.ok(b)}function f(){e.result((0,eR.callValidateCode)(e,t,c),()=>m(t),()=>p(t))}function p(b){const v=(0,mo._)`${b}.errors`;o.assign(Lc.default.vErrors,(0,mo._)`${Lc.default.vErrors} === null ? ${v} : ${Lc.default.vErrors}.concat(${v})`),o.assign(Lc.default.errors,(0,mo._)`${Lc.default.vErrors}.length`)}function m(b){var v;if(!a.opts.unevaluated)return;const x=(v=n==null?void 0:n.validate)===null||v===void 0?void 0:v.evaluated;if(a.props!==!0)if(x&&!x.dynamicProps)x.props!==void 0&&(a.props=Mm.mergeEvaluated.props(o,x.props,a.props));else{const g=o.var("props",(0,mo._)`${b}.evaluated.props`);a.props=Mm.mergeEvaluated.props(o,g,a.props,mo.Name)}if(a.items!==!0)if(x&&!x.dynamicItems)x.items!==void 0&&(a.items=Mm.mergeEvaluated.items(o,x.items,a.items));else{const g=o.var("items",(0,mo._)`${b}.evaluated.items`);a.items=Mm.mergeEvaluated.items(o,g,a.items,mo.Name)}}}Jl.callRef=Sv;Jl.default=mue;Object.defineProperty(bS,"__esModule",{value:!0});const vue=xS,gue=Jl,yue=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",vue.default,gue.default];bS.default=yue;var wS={},CS={};Object.defineProperty(CS,"__esModule",{value:!0});const gg=Jt,Cs=gg.operators,yg={maximum:{okStr:"<=",ok:Cs.LTE,fail:Cs.GT},minimum:{okStr:">=",ok:Cs.GTE,fail:Cs.LT},exclusiveMaximum:{okStr:"<",ok:Cs.LT,fail:Cs.GTE},exclusiveMinimum:{okStr:">",ok:Cs.GT,fail:Cs.LTE}},bue={message:({keyword:e,schemaCode:t})=>(0,gg.str)`must be ${yg[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,gg._)`{comparison: ${yg[e].okStr}, limit: ${t}}`},xue={keyword:Object.keys(yg),type:"number",schemaType:"number",$data:!0,error:bue,code(e){const{keyword:t,data:n,schemaCode:r}=e;e.fail$data((0,gg._)`${n} ${yg[t].fail} ${r} || isNaN(${n})`)}};CS.default=xue;var $S={};Object.defineProperty($S,"__esModule",{value:!0});const Ff=Jt,wue={message:({schemaCode:e})=>(0,Ff.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Ff._)`{multipleOf: ${e}}`},Cue={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:wue,code(e){const{gen:t,data:n,schemaCode:r,it:o}=e,a=o.opts.multipleOfPrecision,i=t.let("res"),s=a?(0,Ff._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:(0,Ff._)`${i} !== parseInt(${i})`;e.fail$data((0,Ff._)`(${r} === 0 || (${i} = ${n}/${r}, ${s}))`)}};$S.default=Cue;var SS={},_S={};Object.defineProperty(_S,"__esModule",{value:!0});function TN(e){const t=e.length;let n=0,r=0,o;for(;r=55296&&o<=56319&&r(0,Dl._)`{limit: ${e}}`},Eue={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:_ue,code(e){const{keyword:t,data:n,schemaCode:r,it:o}=e,a=t==="maxLength"?Dl.operators.GT:Dl.operators.LT,i=o.opts.unicode===!1?(0,Dl._)`${n}.length`:(0,Dl._)`${(0,$ue.useFunc)(e.gen,Sue.default)}(${n})`;e.fail$data((0,Dl._)`${i} ${a} ${r}`)}};SS.default=Eue;var ES={};Object.defineProperty(ES,"__esModule",{value:!0});const Pue=Qt,bg=Jt,Tue={message:({schemaCode:e})=>(0,bg.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,bg._)`{pattern: ${e}}`},kue={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:Tue,code(e){const{data:t,$data:n,schema:r,schemaCode:o,it:a}=e,i=a.opts.unicodeRegExp?"u":"",s=n?(0,bg._)`(new RegExp(${o}, ${i}))`:(0,Pue.usePattern)(e,r);e.fail$data((0,bg._)`!${s}.test(${t})`)}};ES.default=kue;var PS={};Object.defineProperty(PS,"__esModule",{value:!0});const zf=Jt,Oue={message({keyword:e,schemaCode:t}){const n=e==="maxProperties"?"more":"fewer";return(0,zf.str)`must NOT have ${n} than ${t} properties`},params:({schemaCode:e})=>(0,zf._)`{limit: ${e}}`},Rue={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Oue,code(e){const{keyword:t,data:n,schemaCode:r}=e,o=t==="maxProperties"?zf.operators.GT:zf.operators.LT;e.fail$data((0,zf._)`Object.keys(${n}).length ${o} ${r}`)}};PS.default=Rue;var TS={};Object.defineProperty(TS,"__esModule",{value:!0});const tf=Qt,Bf=Jt,Due=dn,Mue={message:({params:{missingProperty:e}})=>(0,Bf.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Bf._)`{missingProperty: ${e}}`},Iue={keyword:"required",type:"object",schemaType:"array",$data:!0,error:Mue,code(e){const{gen:t,schema:n,schemaCode:r,data:o,$data:a,it:i}=e,{opts:s}=i;if(!a&&n.length===0)return;const l=n.length>=s.loopRequired;if(i.allErrors?c():u(),s.strictRequired){const m=e.parentSchema.properties,{definedProperties:b}=e.it;for(const v of n)if((m==null?void 0:m[v])===void 0&&!b.has(v)){const x=i.schemaEnv.baseId+i.errSchemaPath,g=`required property "${v}" is not defined at "${x}" (strictRequired)`;(0,Due.checkStrictMode)(i,g,i.opts.strictRequired)}}function c(){if(l||a)e.block$data(Bf.nil,f);else for(const m of n)(0,tf.checkReportMissingProp)(e,m)}function u(){const m=t.let("missing");if(l||a){const b=t.let("valid",!0);e.block$data(b,()=>p(m,b)),e.ok(b)}else t.if((0,tf.checkMissingProp)(e,n,m)),(0,tf.reportMissingProp)(e,m),t.else()}function f(){t.forOf("prop",r,m=>{e.setParams({missingProperty:m}),t.if((0,tf.noPropertyInData)(t,o,m,s.ownProperties),()=>e.error())})}function p(m,b){e.setParams({missingProperty:m}),t.forOf(m,r,()=>{t.assign(b,(0,tf.propertyInData)(t,o,m,s.ownProperties)),t.if((0,Bf.not)(b),()=>{e.error(),t.break()})},Bf.nil)}}};TS.default=Iue;var kS={};Object.defineProperty(kS,"__esModule",{value:!0});const Vf=Jt,Aue={message({keyword:e,schemaCode:t}){const n=e==="maxItems"?"more":"fewer";return(0,Vf.str)`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>(0,Vf._)`{limit: ${e}}`},Nue={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Aue,code(e){const{keyword:t,data:n,schemaCode:r}=e,o=t==="maxItems"?Vf.operators.GT:Vf.operators.LT;e.fail$data((0,Vf._)`${n}.length ${o} ${r}`)}};kS.default=Nue;var OS={},nh={};Object.defineProperty(nh,"__esModule",{value:!0});const kN=cN;kN.code='require("ajv/dist/runtime/equal").default';nh.default=kN;Object.defineProperty(OS,"__esModule",{value:!0});const nx=Qp,Rr=Jt,jue=dn,Lue=nh,Fue={message:({params:{i:e,j:t}})=>(0,Rr.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Rr._)`{i: ${e}, j: ${t}}`},zue={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Fue,code(e){const{gen:t,data:n,$data:r,schema:o,parentSchema:a,schemaCode:i,it:s}=e;if(!r&&!o)return;const l=t.let("valid"),c=a.items?(0,nx.getSchemaTypes)(a.items):[];e.block$data(l,u,(0,Rr._)`${i} === false`),e.ok(l);function u(){const b=t.let("i",(0,Rr._)`${n}.length`),v=t.let("j");e.setParams({i:b,j:v}),t.assign(l,!0),t.if((0,Rr._)`${b} > 1`,()=>(f()?p:m)(b,v))}function f(){return c.length>0&&!c.some(b=>b==="object"||b==="array")}function p(b,v){const x=t.name("item"),g=(0,nx.checkDataTypes)(c,x,s.opts.strictNumbers,nx.DataType.Wrong),y=t.const("indices",(0,Rr._)`{}`);t.for((0,Rr._)`;${b}--;`,()=>{t.let(x,(0,Rr._)`${n}[${b}]`),t.if(g,(0,Rr._)`continue`),c.length>1&&t.if((0,Rr._)`typeof ${x} == "string"`,(0,Rr._)`${x} += "_"`),t.if((0,Rr._)`typeof ${y}[${x}] == "number"`,()=>{t.assign(v,(0,Rr._)`${y}[${x}]`),e.error(),t.assign(l,!1).break()}).code((0,Rr._)`${y}[${x}] = ${b}`)})}function m(b,v){const x=(0,jue.useFunc)(t,Lue.default),g=t.name("outer");t.label(g).for((0,Rr._)`;${b}--;`,()=>t.for((0,Rr._)`${v} = ${b}; ${v}--;`,()=>t.if((0,Rr._)`${x}(${n}[${b}], ${n}[${v}])`,()=>{e.error(),t.assign(l,!1).break(g)})))}}};OS.default=zue;var RS={};Object.defineProperty(RS,"__esModule",{value:!0});const Kw=Jt,Bue=dn,Vue=nh,Uue={message:"must be equal to constant",params:({schemaCode:e})=>(0,Kw._)`{allowedValue: ${e}}`},Wue={keyword:"const",$data:!0,error:Uue,code(e){const{gen:t,data:n,$data:r,schemaCode:o,schema:a}=e;r||a&&typeof a=="object"?e.fail$data((0,Kw._)`!${(0,Bue.useFunc)(t,Vue.default)}(${n}, ${o})`):e.fail((0,Kw._)`${a} !== ${n}`)}};RS.default=Wue;var DS={};Object.defineProperty(DS,"__esModule",{value:!0});const $f=Jt,Hue=dn,Gue=nh,que={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,$f._)`{allowedValues: ${e}}`},Yue={keyword:"enum",schemaType:"array",$data:!0,error:que,code(e){const{gen:t,data:n,$data:r,schema:o,schemaCode:a,it:i}=e;if(!r&&o.length===0)throw new Error("enum must have non-empty array");const s=o.length>=i.opts.loopEnum;let l;const c=()=>l??(l=(0,Hue.useFunc)(t,Gue.default));let u;if(s||r)u=t.let("valid"),e.block$data(u,f);else{if(!Array.isArray(o))throw new Error("ajv implementation error");const m=t.const("vSchema",a);u=(0,$f.or)(...o.map((b,v)=>p(m,v)))}e.pass(u);function f(){t.assign(u,!1),t.forOf("v",a,m=>t.if((0,$f._)`${c()}(${n}, ${m})`,()=>t.assign(u,!0).break()))}function p(m,b){const v=o[b];return typeof v=="object"&&v!==null?(0,$f._)`${c()}(${n}, ${m}[${b}])`:(0,$f._)`${n} === ${v}`}}};DS.default=Yue;Object.defineProperty(wS,"__esModule",{value:!0});const Kue=CS,Jue=$S,Zue=SS,Xue=ES,Que=PS,ede=TS,tde=kS,nde=OS,rde=RS,ode=DS,ade=[Kue.default,Jue.default,Zue.default,Xue.default,Que.default,ede.default,tde.default,nde.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},rde.default,ode.default];wS.default=ade;var MS={},md={};Object.defineProperty(md,"__esModule",{value:!0});md.validateAdditionalItems=void 0;const Ml=Jt,Jw=dn,ide={message:({params:{len:e}})=>(0,Ml.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Ml._)`{limit: ${e}}`},sde={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:ide,code(e){const{parentSchema:t,it:n}=e,{items:r}=t;if(!Array.isArray(r)){(0,Jw.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas');return}ON(e,r)}};function ON(e,t){const{gen:n,schema:r,data:o,keyword:a,it:i}=e;i.items=!0;const s=n.const("len",(0,Ml._)`${o}.length`);if(r===!1)e.setParams({len:t.length}),e.pass((0,Ml._)`${s} <= ${t.length}`);else if(typeof r=="object"&&!(0,Jw.alwaysValidSchema)(i,r)){const c=n.var("valid",(0,Ml._)`${s} <= ${t.length}`);n.if((0,Ml.not)(c),()=>l(c)),e.ok(c)}function l(c){n.forRange("i",t.length,s,u=>{e.subschema({keyword:a,dataProp:u,dataPropType:Jw.Type.Num},c),i.allErrors||n.if((0,Ml.not)(c),()=>n.break())})}}md.validateAdditionalItems=ON;md.default=sde;var IS={},vd={};Object.defineProperty(vd,"__esModule",{value:!0});vd.validateTuple=void 0;const nR=Jt,_v=dn,lde=Qt,cde={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return RN(e,"additionalItems",t);n.items=!0,!(0,_v.alwaysValidSchema)(n,t)&&e.ok((0,lde.validateArray)(e))}};function RN(e,t,n=e.schema){const{gen:r,parentSchema:o,data:a,keyword:i,it:s}=e;u(o),s.opts.unevaluated&&n.length&&s.items!==!0&&(s.items=_v.mergeEvaluated.items(r,n.length,s.items));const l=r.name("valid"),c=r.const("len",(0,nR._)`${a}.length`);n.forEach((f,p)=>{(0,_v.alwaysValidSchema)(s,f)||(r.if((0,nR._)`${c} > ${p}`,()=>e.subschema({keyword:i,schemaProp:p,dataProp:p},l)),e.ok(l))});function u(f){const{opts:p,errSchemaPath:m}=s,b=n.length,v=b===f.minItems&&(b===f.maxItems||f[t]===!1);if(p.strictTuples&&!v){const x=`"${i}" is ${b}-tuple, but minItems or maxItems/${t} are not specified or different at path "${m}"`;(0,_v.checkStrictMode)(s,x,p.strictTuples)}}}vd.validateTuple=RN;vd.default=cde;Object.defineProperty(IS,"__esModule",{value:!0});const ude=vd,dde={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,ude.validateTuple)(e,"items")};IS.default=dde;var AS={};Object.defineProperty(AS,"__esModule",{value:!0});const rR=Jt,fde=dn,pde=Qt,hde=md,mde={message:({params:{len:e}})=>(0,rR.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,rR._)`{limit: ${e}}`},vde={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:mde,code(e){const{schema:t,parentSchema:n,it:r}=e,{prefixItems:o}=n;r.items=!0,!(0,fde.alwaysValidSchema)(r,t)&&(o?(0,hde.validateAdditionalItems)(e,o):e.ok((0,pde.validateArray)(e)))}};AS.default=vde;var NS={};Object.defineProperty(NS,"__esModule",{value:!0});const ua=Jt,Im=dn,gde={message:({params:{min:e,max:t}})=>t===void 0?(0,ua.str)`must contain at least ${e} valid item(s)`:(0,ua.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,ua._)`{minContains: ${e}}`:(0,ua._)`{minContains: ${e}, maxContains: ${t}}`},yde={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:gde,code(e){const{gen:t,schema:n,parentSchema:r,data:o,it:a}=e;let i,s;const{minContains:l,maxContains:c}=r;a.opts.next?(i=l===void 0?1:l,s=c):i=1;const u=t.const("len",(0,ua._)`${o}.length`);if(e.setParams({min:i,max:s}),s===void 0&&i===0){(0,Im.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(s!==void 0&&i>s){(0,Im.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Im.alwaysValidSchema)(a,n)){let v=(0,ua._)`${u} >= ${i}`;s!==void 0&&(v=(0,ua._)`${v} && ${u} <= ${s}`),e.pass(v);return}a.items=!0;const f=t.name("valid");s===void 0&&i===1?m(f,()=>t.if(f,()=>t.break())):i===0?(t.let(f,!0),s!==void 0&&t.if((0,ua._)`${o}.length > 0`,p)):(t.let(f,!1),p()),e.result(f,()=>e.reset());function p(){const v=t.name("_valid"),x=t.let("count",0);m(v,()=>t.if(v,()=>b(x)))}function m(v,x){t.forRange("i",0,u,g=>{e.subschema({keyword:"contains",dataProp:g,dataPropType:Im.Type.Num,compositeRule:!0},v),x()})}function b(v){t.code((0,ua._)`${v}++`),s===void 0?t.if((0,ua._)`${v} >= ${i}`,()=>t.assign(f,!0).break()):(t.if((0,ua._)`${v} > ${s}`,()=>t.assign(f,!1).break()),i===1?t.assign(f,!0):t.if((0,ua._)`${v} >= ${i}`,()=>t.assign(f,!0)))}}};NS.default=yde;var DN={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Jt,n=dn,r=Qt;e.error={message:({params:{property:l,depsCount:c,deps:u}})=>{const f=c===1?"property":"properties";return(0,t.str)`must have ${f} ${u} when property ${l} is present`},params:({params:{property:l,depsCount:c,deps:u,missingProperty:f}})=>(0,t._)`{property: ${l}, + missingProperty: ${f}, + depsCount: ${c}, + deps: ${u}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(l){const[c,u]=a(l);i(l,c),s(l,u)}};function a({schema:l}){const c={},u={};for(const f in l){if(f==="__proto__")continue;const p=Array.isArray(l[f])?c:u;p[f]=l[f]}return[c,u]}function i(l,c=l.schema){const{gen:u,data:f,it:p}=l;if(Object.keys(c).length===0)return;const m=u.let("missing");for(const b in c){const v=c[b];if(v.length===0)continue;const x=(0,r.propertyInData)(u,f,b,p.opts.ownProperties);l.setParams({property:b,depsCount:v.length,deps:v.join(", ")}),p.allErrors?u.if(x,()=>{for(const g of v)(0,r.checkReportMissingProp)(l,g)}):(u.if((0,t._)`${x} && (${(0,r.checkMissingProp)(l,v,m)})`),(0,r.reportMissingProp)(l,m),u.else())}}e.validatePropertyDeps=i;function s(l,c=l.schema){const{gen:u,data:f,keyword:p,it:m}=l,b=u.name("valid");for(const v in c)(0,n.alwaysValidSchema)(m,c[v])||(u.if((0,r.propertyInData)(u,f,v,m.opts.ownProperties),()=>{const x=l.subschema({keyword:p,schemaProp:v},b);l.mergeValidEvaluated(x,b)},()=>u.var(b,!0)),l.ok(b))}e.validateSchemaDeps=s,e.default=o})(DN);var jS={};Object.defineProperty(jS,"__esModule",{value:!0});const MN=Jt,bde=dn,xde={message:"property name must be valid",params:({params:e})=>(0,MN._)`{propertyName: ${e.propertyName}}`},wde={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:xde,code(e){const{gen:t,schema:n,data:r,it:o}=e;if((0,bde.alwaysValidSchema)(o,n))return;const a=t.name("valid");t.forIn("key",r,i=>{e.setParams({propertyName:i}),e.subschema({keyword:"propertyNames",data:i,dataTypes:["string"],propertyName:i,compositeRule:!0},a),t.if((0,MN.not)(a),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(a)}};jS.default=wde;var _y={};Object.defineProperty(_y,"__esModule",{value:!0});const Am=Qt,Da=Jt,Cde=Ei,Nm=dn,$de={message:"must NOT have additional properties",params:({params:e})=>(0,Da._)`{additionalProperty: ${e.additionalProperty}}`},Sde={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:$de,code(e){const{gen:t,schema:n,parentSchema:r,data:o,errsCount:a,it:i}=e;if(!a)throw new Error("ajv implementation error");const{allErrors:s,opts:l}=i;if(i.props=!0,l.removeAdditional!=="all"&&(0,Nm.alwaysValidSchema)(i,n))return;const c=(0,Am.allSchemaProperties)(r.properties),u=(0,Am.allSchemaProperties)(r.patternProperties);f(),e.ok((0,Da._)`${a} === ${Cde.default.errors}`);function f(){t.forIn("key",o,x=>{!c.length&&!u.length?b(x):t.if(p(x),()=>b(x))})}function p(x){let g;if(c.length>8){const y=(0,Nm.schemaRefOrVal)(i,r.properties,"properties");g=(0,Am.isOwnProperty)(t,y,x)}else c.length?g=(0,Da.or)(...c.map(y=>(0,Da._)`${x} === ${y}`)):g=Da.nil;return u.length&&(g=(0,Da.or)(g,...u.map(y=>(0,Da._)`${(0,Am.usePattern)(e,y)}.test(${x})`))),(0,Da.not)(g)}function m(x){t.code((0,Da._)`delete ${o}[${x}]`)}function b(x){if(l.removeAdditional==="all"||l.removeAdditional&&n===!1){m(x);return}if(n===!1){e.setParams({additionalProperty:x}),e.error(),s||t.break();return}if(typeof n=="object"&&!(0,Nm.alwaysValidSchema)(i,n)){const g=t.name("valid");l.removeAdditional==="failing"?(v(x,g,!1),t.if((0,Da.not)(g),()=>{e.reset(),m(x)})):(v(x,g),s||t.if((0,Da.not)(g),()=>t.break()))}}function v(x,g,y){const w={keyword:"additionalProperties",dataProp:x,dataPropType:Nm.Type.Str};y===!1&&Object.assign(w,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(w,g)}}};_y.default=Sde;var LS={};Object.defineProperty(LS,"__esModule",{value:!0});const _de=Wa,oR=Qt,rx=dn,aR=_y,Ede={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,parentSchema:r,data:o,it:a}=e;a.opts.removeAdditional==="all"&&r.additionalProperties===void 0&&aR.default.code(new _de.KeywordCxt(a,aR.default,"additionalProperties"));const i=(0,oR.allSchemaProperties)(n);for(const f of i)a.definedProperties.add(f);a.opts.unevaluated&&i.length&&a.props!==!0&&(a.props=rx.mergeEvaluated.props(t,(0,rx.toHash)(i),a.props));const s=i.filter(f=>!(0,rx.alwaysValidSchema)(a,n[f]));if(s.length===0)return;const l=t.name("valid");for(const f of s)c(f)?u(f):(t.if((0,oR.propertyInData)(t,o,f,a.opts.ownProperties)),u(f),a.allErrors||t.else().var(l,!0),t.endIf()),e.it.definedProperties.add(f),e.ok(l);function c(f){return a.opts.useDefaults&&!a.compositeRule&&n[f].default!==void 0}function u(f){e.subschema({keyword:"properties",schemaProp:f,dataProp:f},l)}}};LS.default=Ede;var FS={};Object.defineProperty(FS,"__esModule",{value:!0});const iR=Qt,jm=Jt,sR=dn,lR=dn,Pde={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,data:r,parentSchema:o,it:a}=e,{opts:i}=a,s=(0,iR.allSchemaProperties)(n),l=s.filter(v=>(0,sR.alwaysValidSchema)(a,n[v]));if(s.length===0||l.length===s.length&&(!a.opts.unevaluated||a.props===!0))return;const c=i.strictSchema&&!i.allowMatchingProperties&&o.properties,u=t.name("valid");a.props!==!0&&!(a.props instanceof jm.Name)&&(a.props=(0,lR.evaluatedPropsToName)(t,a.props));const{props:f}=a;p();function p(){for(const v of s)c&&m(v),a.allErrors?b(v):(t.var(u,!0),b(v),t.if(u))}function m(v){for(const x in c)new RegExp(v).test(x)&&(0,sR.checkStrictMode)(a,`property ${x} matches pattern ${v} (use allowMatchingProperties)`)}function b(v){t.forIn("key",r,x=>{t.if((0,jm._)`${(0,iR.usePattern)(e,v)}.test(${x})`,()=>{const g=l.includes(v);g||e.subschema({keyword:"patternProperties",schemaProp:v,dataProp:x,dataPropType:lR.Type.Str},u),a.opts.unevaluated&&f!==!0?t.assign((0,jm._)`${f}[${x}]`,!0):!g&&!a.allErrors&&t.if((0,jm.not)(u),()=>t.break())})})}}};FS.default=Pde;var zS={};Object.defineProperty(zS,"__esModule",{value:!0});const Tde=dn,kde={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:r}=e;if((0,Tde.alwaysValidSchema)(r,n)){e.fail();return}const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};zS.default=kde;var BS={};Object.defineProperty(BS,"__esModule",{value:!0});const Ode=Qt,Rde={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Ode.validateUnion,error:{message:"must match a schema in anyOf"}};BS.default=Rde;var VS={};Object.defineProperty(VS,"__esModule",{value:!0});const Ev=Jt,Dde=dn,Mde={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Ev._)`{passingSchemas: ${e.passing}}`},Ide={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:Mde,code(e){const{gen:t,schema:n,parentSchema:r,it:o}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(o.opts.discriminator&&r.discriminator)return;const a=n,i=t.let("valid",!1),s=t.let("passing",null),l=t.name("_valid");e.setParams({passing:s}),t.block(c),e.result(i,()=>e.reset(),()=>e.error(!0));function c(){a.forEach((u,f)=>{let p;(0,Dde.alwaysValidSchema)(o,u)?t.var(l,!0):p=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},l),f>0&&t.if((0,Ev._)`${l} && ${i}`).assign(i,!1).assign(s,(0,Ev._)`[${s}, ${f}]`).else(),t.if(l,()=>{t.assign(i,!0),t.assign(s,f),p&&e.mergeEvaluated(p,Ev.Name)})})}}};VS.default=Ide;var US={};Object.defineProperty(US,"__esModule",{value:!0});const Ade=dn,Nde={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:n,it:r}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");const o=t.name("valid");n.forEach((a,i)=>{if((0,Ade.alwaysValidSchema)(r,a))return;const s=e.subschema({keyword:"allOf",schemaProp:i},o);e.ok(o),e.mergeEvaluated(s)})}};US.default=Nde;var WS={};Object.defineProperty(WS,"__esModule",{value:!0});const xg=Jt,IN=dn,jde={message:({params:e})=>(0,xg.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,xg._)`{failingKeyword: ${e.ifClause}}`},Lde={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:jde,code(e){const{gen:t,parentSchema:n,it:r}=e;n.then===void 0&&n.else===void 0&&(0,IN.checkStrictMode)(r,'"if" without "then" and "else" is ignored');const o=cR(r,"then"),a=cR(r,"else");if(!o&&!a)return;const i=t.let("valid",!0),s=t.name("_valid");if(l(),e.reset(),o&&a){const u=t.let("ifClause");e.setParams({ifClause:u}),t.if(s,c("then",u),c("else",u))}else o?t.if(s,c("then")):t.if((0,xg.not)(s),c("else"));e.pass(i,()=>e.error(!0));function l(){const u=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},s);e.mergeEvaluated(u)}function c(u,f){return()=>{const p=e.subschema({keyword:u},s);t.assign(i,s),e.mergeValidEvaluated(p,i),f?t.assign(f,(0,xg._)`${u}`):e.setParams({ifClause:u})}}}};function cR(e,t){const n=e.schema[t];return n!==void 0&&!(0,IN.alwaysValidSchema)(e,n)}WS.default=Lde;var HS={};Object.defineProperty(HS,"__esModule",{value:!0});const Fde=dn,zde={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){t.if===void 0&&(0,Fde.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};HS.default=zde;Object.defineProperty(MS,"__esModule",{value:!0});const Bde=md,Vde=IS,Ude=vd,Wde=AS,Hde=NS,Gde=DN,qde=jS,Yde=_y,Kde=LS,Jde=FS,Zde=zS,Xde=BS,Qde=VS,efe=US,tfe=WS,nfe=HS;function rfe(e=!1){const t=[Zde.default,Xde.default,Qde.default,efe.default,tfe.default,nfe.default,qde.default,Yde.default,Gde.default,Kde.default,Jde.default];return e?t.push(Vde.default,Wde.default):t.push(Bde.default,Ude.default),t.push(Hde.default),t}MS.default=rfe;var GS={},qS={};Object.defineProperty(qS,"__esModule",{value:!0});const ar=Jt,ofe={message:({schemaCode:e})=>(0,ar.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,ar._)`{format: ${e}}`},afe={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:ofe,code(e,t){const{gen:n,data:r,$data:o,schema:a,schemaCode:i,it:s}=e,{opts:l,errSchemaPath:c,schemaEnv:u,self:f}=s;if(!l.validateFormats)return;o?p():m();function p(){const b=n.scopeValue("formats",{ref:f.formats,code:l.code.formats}),v=n.const("fDef",(0,ar._)`${b}[${i}]`),x=n.let("fType"),g=n.let("format");n.if((0,ar._)`typeof ${v} == "object" && !(${v} instanceof RegExp)`,()=>n.assign(x,(0,ar._)`${v}.type || "string"`).assign(g,(0,ar._)`${v}.validate`),()=>n.assign(x,(0,ar._)`"string"`).assign(g,v)),e.fail$data((0,ar.or)(y(),w()));function y(){return l.strictSchema===!1?ar.nil:(0,ar._)`${i} && !${g}`}function w(){const C=u.$async?(0,ar._)`(${v}.async ? await ${g}(${r}) : ${g}(${r}))`:(0,ar._)`${g}(${r})`,_=(0,ar._)`(typeof ${g} == "function" ? ${C} : ${g}.test(${r}))`;return(0,ar._)`${g} && ${g} !== true && ${x} === ${t} && !${_}`}}function m(){const b=f.formats[a];if(!b){y();return}if(b===!0)return;const[v,x,g]=w(b);v===t&&e.pass(C());function y(){if(l.strictSchema===!1){f.logger.warn(_());return}throw new Error(_());function _(){return`unknown format "${a}" ignored in schema at path "${c}"`}}function w(_){const $=_ instanceof RegExp?(0,ar.regexpCode)(_):l.code.formats?(0,ar._)`${l.code.formats}${(0,ar.getProperty)(a)}`:void 0,E=n.scopeValue("formats",{key:a,ref:_,code:$});return typeof _=="object"&&!(_ instanceof RegExp)?[_.type||"string",_.validate,(0,ar._)`${E}.validate`]:["string",_,E]}function C(){if(typeof b=="object"&&!(b instanceof RegExp)&&b.async){if(!u.$async)throw new Error("async format in sync schema");return(0,ar._)`await ${g}(${r})`}return typeof x=="function"?(0,ar._)`${g}(${r})`:(0,ar._)`${g}.test(${r})`}}}};qS.default=afe;Object.defineProperty(GS,"__esModule",{value:!0});const ife=qS,sfe=[ife.default];GS.default=sfe;var Bu={};Object.defineProperty(Bu,"__esModule",{value:!0});Bu.contentVocabulary=Bu.metadataVocabulary=void 0;Bu.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Bu.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(yS,"__esModule",{value:!0});const lfe=bS,cfe=wS,ufe=MS,dfe=GS,uR=Bu,ffe=[lfe.default,cfe.default,(0,ufe.default)(),dfe.default,uR.metadataVocabulary,uR.contentVocabulary];yS.default=ffe;var YS={},AN={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,function(t){t.Tag="tag",t.Mapping="mapping"}(e.DiscrError||(e.DiscrError={}))})(AN);Object.defineProperty(YS,"__esModule",{value:!0});const Qc=Jt,Zw=AN,dR=go,pfe=dn,hfe={message:({params:{discrError:e,tagName:t}})=>e===Zw.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>(0,Qc._)`{error: ${e}, tag: ${n}, tagValue: ${t}}`},mfe={keyword:"discriminator",type:"object",schemaType:"object",error:hfe,code(e){const{gen:t,data:n,schema:r,parentSchema:o,it:a}=e,{oneOf:i}=o;if(!a.opts.discriminator)throw new Error("discriminator: requires discriminator option");const s=r.propertyName;if(typeof s!="string")throw new Error("discriminator: requires propertyName");if(r.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");const l=t.let("valid",!1),c=t.const("tag",(0,Qc._)`${n}${(0,Qc.getProperty)(s)}`);t.if((0,Qc._)`typeof ${c} == "string"`,()=>u(),()=>e.error(!1,{discrError:Zw.DiscrError.Tag,tag:c,tagName:s})),e.ok(l);function u(){const m=p();t.if(!1);for(const b in m)t.elseIf((0,Qc._)`${c} === ${b}`),t.assign(l,f(m[b]));t.else(),e.error(!1,{discrError:Zw.DiscrError.Mapping,tag:c,tagName:s}),t.endIf()}function f(m){const b=t.name("valid"),v=e.subschema({keyword:"oneOf",schemaProp:m},b);return e.mergeEvaluated(v,Qc.Name),b}function p(){var m;const b={},v=g(o);let x=!0;for(let C=0;Cthis.addVocabulary(b)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const b=this.opts.$data?this.$dataMetaSchema(a,i):a;this.addMetaSchema(b,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}e.exports=t=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var c=Wa;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var u=Jt;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var f=eh;Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var p=th;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return p.default}})})(Hw,Hw.exports);var NN=Hw.exports;const $fe=Bt(NN);var Xw={exports:{}},jN={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(I,R){return{validate:I,compare:R}}e.fullFormats={date:t(a,i),time:t(l,c),"date-time":t(f,p),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:v,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:k,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:g,int32:{type:"number",validate:C},int64:{type:"number",validate:_},float:{type:"number",validate:$},double:{type:"number",validate:$},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,i),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,c),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,p),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function n(I){return I%4===0&&(I%100!==0||I%400===0)}const r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31];function a(I){const R=r.exec(I);if(!R)return!1;const F=+R[1],U=+R[2],G=+R[3];return U>=1&&U<=12&&G>=1&&G<=(U===2&&n(F)?29:o[U])}function i(I,R){if(I&&R)return I>R?1:IR?1:I=y}function _(I){return Number.isInteger(I)}function $(){return!0}const E=/[^\\]\\Z/;function k(I){if(E.test(I))return!1;try{return new RegExp(I),!0}catch{return!1}}})(jN);var LN={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=NN,n=Jt,r=n.operators,o={formatMaximum:{okStr:"<=",ok:r.LTE,fail:r.GT},formatMinimum:{okStr:">=",ok:r.GTE,fail:r.LT},formatExclusiveMaximum:{okStr:"<",ok:r.LT,fail:r.GTE},formatExclusiveMinimum:{okStr:">",ok:r.GT,fail:r.LTE}},a={message:({keyword:s,schemaCode:l})=>n.str`should be ${o[s].okStr} ${l}`,params:({keyword:s,schemaCode:l})=>n._`{comparison: ${o[s].okStr}, limit: ${l}}`};e.formatLimitDefinition={keyword:Object.keys(o),type:"string",schemaType:"string",$data:!0,error:a,code(s){const{gen:l,data:c,schemaCode:u,keyword:f,it:p}=s,{opts:m,self:b}=p;if(!m.validateFormats)return;const v=new t.KeywordCxt(p,b.RULES.all.format.definition,"format");v.$data?x():g();function x(){const w=l.scopeValue("formats",{ref:b.formats,code:m.code.formats}),C=l.const("fmt",n._`${w}[${v.schemaCode}]`);s.fail$data(n.or(n._`typeof ${C} != "object"`,n._`${C} instanceof RegExp`,n._`typeof ${C}.compare != "function"`,y(C)))}function g(){const w=v.schema,C=b.formats[w];if(!C||C===!0)return;if(typeof C!="object"||C instanceof RegExp||typeof C.compare!="function")throw new Error(`"${f}": format "${w}" does not define "compare" function`);const _=l.scopeValue("formats",{key:w,ref:C,code:m.code.formats?n._`${m.code.formats}${n.getProperty(w)}`:void 0});s.fail$data(y(_))}function y(w){return n._`${w}.compare(${c}, ${u}) ${o[f].fail} 0`}},dependencies:["format"]};const i=s=>(s.addKeyword(e.formatLimitDefinition),s);e.default=i})(LN);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=jN,r=LN,o=Jt,a=new o.Name("fullFormats"),i=new o.Name("fastFormats"),s=(c,u={keywords:!0})=>{if(Array.isArray(u))return l(c,u,n.fullFormats,a),c;const[f,p]=u.mode==="fast"?[n.fastFormats,i]:[n.fullFormats,a],m=u.formats||n.formatNames;return l(c,m,f,p),u.keywords&&r.default(c),c};s.get=(c,u="full")=>{const p=(u==="fast"?n.fastFormats:n.fullFormats)[c];if(!p)throw new Error(`Unknown format "${c}"`);return p};function l(c,u,f,p){var m,b;(m=(b=c.opts.code).formats)!==null&&m!==void 0||(b.formats=o._`require("ajv-formats/dist/formats").${p}`);for(const v of u)c.addFormat(v,f[v])}e.exports=t=s,Object.defineProperty(t,"__esModule",{value:!0}),t.default=s})(Xw,Xw.exports);var Sfe=Xw.exports;const _fe=Bt(Sfe),Pv="additionalProperties",Tv="required",Efe=(e,t)=>{const n={};return e.filter(r=>{const o=t(r);return Object.prototype.hasOwnProperty.call(n,o)?!1:(n[o]=!0,!0)})};class Pfe{constructor(t){this.findOption=t,this.schemaObject=n=>{const r=this.properties(n),o={type:"object",properties:r,additionalProperties:this.findOption(r)(Pv)},a=this.findOption(r)(Tv);return a.length>0&&(o.required=a),o},this.properties=n=>{const r={};return Object.keys(n).reduce((o,a)=>(o[a]=this.property(n[a]),o),r)},this.property=n=>{switch(typeof n){case"string":return{type:"string"};case"boolean":return{type:"boolean"};case"number":return Number.isInteger(n)?{type:"integer"}:{type:"number"};case"object":return n==null?{type:"null"}:this.schemaObjectOrArray(n);default:return{}}},this.schemaObjectOrArray=n=>n instanceof Array?this.schemaArray(n):this.schemaObject(n),this.schemaArray=n=>{if(n.length>0){const r=n.map(this.property),o=Efe(r,a=>JSON.stringify(a));return o.length===1?{type:"array",items:o[0]}:{type:"array",items:{oneOf:o}}}else return{type:"array",items:{}}}}}const FN=(e,t={})=>{const n=o=>a=>{switch(a){case Pv:return Object.prototype.hasOwnProperty.call(t,Pv)?t[Pv]:!0;case Tv:return Object.prototype.hasOwnProperty.call(t,Tv)?t[Tv](o):Object.keys(o);default:return}};return new Pfe(n).schemaObject(e)};var wi;(function(e){e.HIDE="HIDE",e.SHOW="SHOW",e.ENABLE="ENABLE",e.DISABLE="DISABLE"})(wi||(wi={}));const zN=e=>typeof e=="object"&&e!==null&&typeof e.i18n=="string",Tfe=e=>e.type==="Group",BN=e=>e.elements!==void 0,kfe=e=>!!e&&typeof e=="object",Ofe=e=>kfe(e)&&typeof e.scope=="string",Rfe=e=>!!e&&typeof e=="object",VN=(e,t,n)=>{const r=t+n;if(r<0||r>=e.length)return;const o=[t,r].sort((a,i)=>a-i);e.splice(o[0],2,e[o[1]],e[o[0]])},UN=(e,t)=>{VN(e,t,-1)},WN=(e,t)=>{VN(e,t,1)},Dfe={restrict:!1,trim:!1,showUnfocusedDescription:!1,hideRequiredAsterisk:!1},fR=(e={})=>tn({},Dfe,e),pR=(e=fR(),t)=>{switch(t.type){case x_:return fR(t.config);default:return e}},zi=(e,t)=>e===void 0?[]:e(t)?[]:e.errors,Mfe={data:{},schema:{},uischema:void 0,errors:[],validator:void 0,ajv:void 0,validationMode:"ValidateAndShow",additionalErrors:[]},Qw=(e,t)=>((Object.prototype.hasOwnProperty.call(t,"id")||Object.prototype.hasOwnProperty.call(t,"$id"))&&e.removeSchema(t),e),hR=(e,t)=>{if(t){if(Ife(t.options))return t.options.ajv;if(t.options!==void 0&&rU(t.options.compile))return t.options}return e.ajv?t!=null&&t.schema?Qw(e.ajv,t.schema):e.ajv:zpe()},Ife=e=>e?e.ajv!==void 0:!1,mR=(e,t)=>t&&Afe(t.options)?t.options.validationMode:e.validationMode,Afe=e=>e?e.validationMode!==void 0:!1,Nfe=e=>e?e.additionalErrors!==void 0:!1,vR=(e,t)=>t&&Nfe(t.options)?t.options.additionalErrors:e.additionalErrors,gR=(e=Mfe,t)=>{switch(t.type){case m_:{const n=hR(e,t),r=mR(e,t),o=r==="NoValidation"?void 0:n.compile(t.schema),a=zi(o,t.data),i=vR(e,t);return{...e,data:t.data,schema:t.schema,uischema:t.uischema,additionalErrors:i,errors:a,validator:o,ajv:n,validationMode:r}}case v_:{const n=hR(e,t),r=mR(e,t);let o=e.validator,a=e.errors;e.schema!==t.schema||e.validationMode!==r||e.ajv!==n?(o=r==="NoValidation"?void 0:n.compile(t.schema),a=zi(o,t.data)):e.data!==t.data&&(a=zi(o,t.data));const i=vR(e,t);return e.data!==t.data||e.schema!==t.schema||e.uischema!==t.uischema||e.ajv!==n||e.errors!==a||e.validator!==o||e.validationMode!==r||e.additionalErrors!==i?{...e,data:t.data,schema:t.schema,uischema:t.uischema,ajv:n,errors:X4(a,e.errors)?e.errors:a,validator:o,validationMode:r,additionalErrors:i}:e}case g_:{const n=t.ajv,r=e.validationMode==="NoValidation"?void 0:n.compile(e.schema),o=zi(r,e.data);return{...e,validator:r,errors:o}}case w_:{const r=t.schema&&e.ajv&&e.validationMode!=="NoValidation"?Qw(e.ajv,t.schema).compile(t.schema):e.validator,o=zi(r,e.data);return{...e,validator:r,schema:t.schema,errors:o}}case C_:return{...e,uischema:t.uischema};case y_:{if(t.path===void 0||t.path===null)return e;if(t.path===""){const n=t.updater(pO(e.data)),r=zi(e.validator,n);return{...e,data:n,errors:r}}else{const n=dr(e.data,t.path),r=t.updater(pO(n)),o=mie(t.path,r,e.data===void 0?{}:e.data),a=zi(e.validator,o);return{...e,data:o,errors:a}}}case b_:return{...e,errors:t.errors};case $_:{if(e.validationMode===t.validationMode)return e;if(t.validationMode==="NoValidation"){const n=zi(void 0,e.data);return{...e,errors:n,validationMode:t.validationMode}}if(e.validationMode==="NoValidation"){const n=Qw(e.ajv,e.schema).compile(e.schema),r=zi(n,e.data);return{...e,validator:n,errors:r,validationMode:t.validationMode}}return{...e,validationMode:t.validationMode}}default:return e}},jfe=e=>dr(e,"data"),Lfe=e=>dr(e,"schema"),Ffe=e=>dr(e,"uischema"),zfe=e=>dr(e,"ajv"),Bfe=e=>{switch(e.keyword){case"required":case"dependencies":return e.params.missingProperty;case"additionalProperties":return e.params.additionalProperty;default:return}},wg=e=>{let t=e.dataPath||e.instancePath||"";t=t.replace(/\//g,".");const n=Bfe(e);return n!==void 0&&!t.endsWith(n)&&(t=`${t}.${n}`),t=t.replace(/^./,""),t=Ty(t),t},KS=(e,t,n)=>r=>{const o=mg(r,a=>a.keyword==="oneOf"||a.keyword==="anyOf").map(a=>wg(a));return mg(r,a=>{if(Ufe.indexOf(a.keyword)!==-1&&!Sg(a.parentSchema))return!1;const i=wg(a);let s=n(i);const l=a.parentSchema;return s&&!Vfe(l)&&!Sg(l)&&o.findIndex(c=>e.startsWith(c))!==-1&&(s=s&&X4(l,t)),s})},Vfe=e=>(e==null?void 0:e.type)==="object"||!!(e!=null&&e.properties),Ufe=["additionalProperties","allOf","anyOf","oneOf"],HN=(e,t,n)=>r=>{const o=r.errors??[],a=r.additionalErrors??[];return KS(e,t,n)(r.validationMode==="ValidateAndHide"?a:[...o,...a])},Wfe=(e,t)=>HN(e,t,n=>n===e),Hfe=(e,t)=>HN(e,t,n=>n.startsWith(e+".")),JS=(e,t)=>zN(t)?t.i18n:(e==null?void 0:e.i18n)??void 0,Gfe=e=>(e==null?void 0:e.split(".").filter(t=>!/^\d+$/.test(t)).join("."))||"root",Ci=(e,t,n)=>JS(e,t)??Gfe(n),Cg=(e,t,n,r)=>`${Ci(e,t,n)}.${r}`,qfe=(e,t)=>`${e}.${t}`,ZS=(e,t)=>t,XS=(e,t,n)=>{var s;const r=Cg(e.parentSchema,n,wg(e),`error.${e.keyword}`),o=t(r,void 0,{error:e});if(o!==void 0)return o;const a=t(`error.${e.keyword}`,void 0,{error:e});if(a!==void 0)return a;const i=t(e.message,void 0,{error:e});return i!==void 0?i:e.keyword==="required"&&((s=e.message)!=null&&s.startsWith("must have required property"))?t("is a required property","is a required property",{error:e}):e.message},QS=(e,t,n,r,o,a)=>{if(e.length>0&&n){const i=Cg(r,o,a,"error.custom"),s=n(i,void 0,{schema:r,uischema:o,path:a,errors:e});if(s!==void 0)return s}return u_(e.map(i=>t(i,n,o)))},Ey=(e,t)=>{if(e.label===!1||(e.label===void 0||e.label===null||e.label===!0)&&!zN(e))return;const n=typeof e.label=="string"?e.label:JSON.stringify(e.label),r=JS(void 0,e),o=typeof r=="string"?`${r}.label`:n;return t(o,n,{uischema:e})},GN=(e,t,n,r)=>{const o={};return t.forEach(a=>{const i=qfe(n,a.key);o[a.key]=e(i,a.default(r))}),o};var Ur;(function(e){e.addTooltip="addTooltip",e.addAriaLabel="addAriaLabel",e.removeTooltip="removeTooltip",e.upAriaLabel="upAriaLabel",e.downAriaLabel="downAriaLabel",e.noSelection="noSelection",e.removeAriaLabel="removeAriaLabel",e.noDataMessage="noDataMessage",e.deleteDialogTitle="deleteDialogTitle",e.deleteDialogMessage="deleteDialogMessage",e.deleteDialogAccept="deleteDialogAccept",e.deleteDialogDecline="deleteDialogDecline",e.up="up",e.down="down"})(Ur||(Ur={}));const qN=[{key:Ur.addTooltip,default:e=>e?`Add to ${e}`:"Add"},{key:Ur.addAriaLabel,default:e=>e?`Add to ${e} button`:"Add button"},{key:Ur.removeTooltip,default:()=>"Delete"},{key:Ur.removeAriaLabel,default:()=>"Delete button"},{key:Ur.upAriaLabel,default:()=>"Move item up"},{key:Ur.up,default:()=>"Up"},{key:Ur.down,default:()=>"Down"},{key:Ur.downAriaLabel,default:()=>"Move item down"},{key:Ur.noDataMessage,default:()=>"No data"},{key:Ur.noSelection,default:()=>"No selection"},{key:Ur.deleteDialogTitle,default:()=>"Confirm Deletion"},{key:Ur.deleteDialogMessage,default:()=>"Are you sure you want to delete the selected entry?"},{key:Ur.deleteDialogAccept,default:()=>"Yes"},{key:Ur.deleteDialogDecline,default:()=>"No"}],mu={locale:"en",translate:ZS,translateError:XS},yR=(e=mu,t)=>{switch(t.type){case E_:{const n=t.locale??mu.locale,r=t.translator??mu.translate,o=t.errorTranslator??mu.translateError;return n!==e.locale||r!==e.translate||o!==e.translateError?{...e,locale:n,translate:r,translateError:o}:e}case __:return{...e,translate:t.translator??ZS,translateError:t.errorTranslator??XS};case S_:return{...e,locale:t.locale??navigator.languages[0]};default:return e}},Yfe=e=>e===void 0?ZS:e.translate,Kfe=e=>e===void 0?XS:e.translateError,Vu=-1,Ga=e=>!Mt(e)&&e.scope!==void 0,qr=e=>(t,n,r)=>{if(Mt(t)||!Ga(t)||Mt(n))return!1;const o=t.scope;if(Mt(o))return!1;let a=n;return Zs(n,"object")&&(a=wa(n,o,r==null?void 0:r.rootSchema)),a===void 0?!1:e(a,r==null?void 0:r.rootSchema)},e_=(e,t)=>(n,r,o)=>{if(Mt(n)||!Ga(n))return!1;const a=n.scope;let i=r;return Zs(r,"object")&&(i=wa(r,a,o==null?void 0:o.rootSchema)),i=dr(i,e),i===void 0?!1:t(i,o==null?void 0:o.rootSchema)},qa=e=>qr(t=>!Mt(t)&&Zs(t,e)),Py=e=>qr(t=>!Mt(t)&&t.format===e&&Zs(t,"string")),Sn=e=>t=>!Mt(t)&&t.type===e,as=(e,t)=>n=>{if(Mt(n))return!1;const r=n.options;return!Mt(r)&&r[e]===t},Jfe=e=>t=>Mt(e)||!Ga(t)?!1:rse(t.scope,e),Zfe=e=>t=>{if(Mt(e)||!Ga(t))return!1;const n=t.scope;return!Mt(n)&&Lie(n.split("/"))===e},Cn=(...e)=>(t,n,r)=>e.reduce((o,a)=>o&&a(t,n,r),!0),dc=(...e)=>(t,n,r)=>e.reduce((o,a)=>o||a(t,n,r),!1),mn=(e,t)=>(n,r,o)=>t(n,r,o)?e:Vu,Xfe=(e,t)=>(n,r,o)=>{const a=t(n,r,o);return a===Vu?Vu:a+e},YN=Cn(Sn("Control"),qa("boolean")),Qfe=Cn(Sn("Control"),qa("object")),KN=Cn(Sn("Control"),qr(e=>Object.prototype.hasOwnProperty.call(e,"allOf"))),JN=Cn(Sn("Control"),qr(e=>Object.prototype.hasOwnProperty.call(e,"anyOf"))),ZN=Cn(Sn("Control"),qr(e=>Object.prototype.hasOwnProperty.call(e,"oneOf"))),t_=Cn(Sn("Control"),dc(qr(e=>Object.prototype.hasOwnProperty.call(e,"enum")),qr(e=>Object.prototype.hasOwnProperty.call(e,"const")))),XN=Cn(Sn("Control"),qr(e=>Sg(e))),QN=Cn(Sn("Control"),qa("integer")),e5=Cn(Sn("Control"),qa("number")),t5=Cn(Sn("Control"),qa("string")),n5=Cn(Sn("Control"),as("multi",!0)),r5=Cn(Sn("Control"),dc(Py("date"),as("format","date"))),o5=Cn(Sn("Control"),dc(Py("time"),as("format","time"))),a5=Cn(Sn("Control"),dc(Py("date-time"),as("format","date-time"))),i5=Cn(qr((e,t)=>Zs(e,"array")&&!Array.isArray(wa(e,"items",t))),e_("items",(e,t)=>{const n=e.$ref?wa(t,e.$ref,t):e;return Zs(n,"object")})),n_=Cn(Sn("Control"),i5),Sf=(e,t,n)=>{if(x3(e))return Ww(e,(r,o)=>r||Sf(o,t,n),!1);if(t(e))return!0;if(e.$ref){const r=wa(n,e.$ref,n);if(r&&!r.$ref)return Sf(r,t,n)}return e.items?Sf(e.items,t,n):e.properties?Ww(Ose(e.properties),(r,[o,a])=>r||Sf(a,t,n),!1):!1},r_=(e,t,n)=>{if(!Sn("Control")(e,t,n))return!1;const r=e.scope,o=wa(t,r,(n==null?void 0:n.rootSchema)??t);let a=0;if(o!==void 0&&o.items!==void 0){if(Sf(o.items,i=>i===t||i.$ref!==void 0?!1:!!(i.anyOf||i.allOf||i.oneOf&&!Sg(i)||Zs(i,"object")&&(a++,a===2)||Zs(i,"array")),n==null?void 0:n.rootSchema))return!0;if(e.options&&e.options.detail){if(typeof e.options.detail=="string")return e.options.detail.toUpperCase()!=="DEFAULT";if(typeof e.options.detail=="object"&&e.options.detail.type)return!0}}return!1},epe=n_,s5=Cn(Sn("Control"),qr((e,t)=>Uu(e).length!==0&&!Array.isArray(wa(e,"items",t))),e_("items",(e,t)=>{const n=e.$ref?wa(t,e.$ref,t):e,r=Uu(n);return r.length===1&&eN(["integer","number","boolean","string"],r[0])})),l5=Cn(Sn("Control"),dc(qa("number"),qa("integer")),qr(e=>Object.prototype.hasOwnProperty.call(e,"maximum")&&Object.prototype.hasOwnProperty.call(e,"minimum")&&Object.prototype.hasOwnProperty.call(e,"default")),as("slider",!0)),tpe=Cn(Sn("Control"),qa("integer"),as("format",!0)),c5=e=>e.type==="Categorization",u5=e=>e.type==="Category",o_=e=>Mt(e.elements)?!1:e.elements.map(t=>c5(t)?o_(t):u5(t)).reduce((t,n)=>t&&n,!0),npe=e=>o_(e),rpe=e=>(t,n,r)=>!e(t,n,r);var ope=Object.freeze({__proto__:null,NOT_APPLICABLE:Vu,isControl:Ga,schemaMatches:qr,schemaSubPathMatches:e_,schemaTypeIs:qa,formatIs:Py,uiTypeIs:Sn,optionIs:as,scopeEndsWith:Jfe,scopeEndIs:Zfe,and:Cn,or:dc,rankWith:mn,withIncreasedRank:Xfe,isBooleanControl:YN,isObjectControl:Qfe,isAllOfControl:KN,isAnyOfControl:JN,isOneOfControl:ZN,isEnumControl:t_,isOneOfEnumControl:XN,isIntegerControl:QN,isNumberControl:e5,isStringControl:t5,isMultiLineControl:n5,isDateControl:r5,isTimeControl:o5,isDateTimeControl:a5,isObjectArray:i5,isObjectArrayControl:n_,isObjectArrayWithNesting:r_,isArrayObjectControl:epe,isPrimitiveArrayControl:s5,isRangeControl:l5,isNumberFormatControl:tpe,isCategorization:c5,isCategory:u5,hasCategory:o_,categorizationHasCategory:npe,not:rpe});const d5=e=>(t,n,r)=>{const o=gy(e,a=>a.tester(t,n,r));if(o!==void 0&&o.tester(t,n,r)!==Vu)return o.uischema},rh=(e,t,n,r,o="VerticalLayout",a,i)=>{if(a&&a.options&&a.options.detail){if(typeof a.options.detail=="string"){if(a.options.detail.toUpperCase()==="GENERATE")return typeof o=="function"?o():Ql.uiSchema(t,o)}else if(typeof a.options.detail=="object"&&a.options.detail.type&&typeof a.options.detail.type=="string")return a.options.detail}const s=d5(e)(t,n,r);return s===void 0?typeof o=="function"?o():Ql.uiSchema(t,o,"#",i):s},f5=(e,t)=>n=>Wfe(e,t)(n.jsonforms.core),p5=(e,t)=>n=>Hfe(e,t)(n.jsonforms.core),Zl=e=>e.jsonforms.config,xa=()=>e=>Yfe(dr(e,"jsonforms.i18n")),a_=()=>e=>Kfe(dr(e,"jsonforms.i18n")),oh=e=>jfe(dr(e,"jsonforms.core")),$g=e=>Lfe(dr(e,"jsonforms.core")),ape=e=>Ffe(dr(e,"jsonforms.core")),gd=e=>zfe(dr(e,"jsonforms.core")),i_=e=>dr(e,"jsonforms.renderers"),s_=e=>dr(e,"jsonforms.cells"),ipe=e=>dr(e,"jsonforms.uischemas"),fc=(e,t)=>{let n=e;return!Mt(e)&&!Mt(t)&&!t.startsWith("[")&&(n=e+"."),Mt(n)?t:Mt(t)?n:`${n}${t}`},h5=e=>{const r=e.replace(/(anyOf|allOf|oneOf)\/[\d]\//g,"").replace(/(then|else)\//g,"").split("/").map(Ty),a=r[0]==="#"||r[0]===""?2:1;return hd(a,r.length,2).map(i=>r[i])},m5=(e,t)=>{if(!Ofe(e))return t??"";const n=h5(e.scope);return Mt(n)?t??"":fc(t,n.join("."))},Xl=e=>e==null?void 0:e.replace(/~/g,"~0").replace(/\//g,"~1"),Ty=e=>e==null?void 0:e.replace(/~1/g,"/").replace(/~0/,"~"),eC=(e,t)=>Mt(t)?e:t.split(".").reduce((r,o)=>{if(!(!r||!Object.prototype.hasOwnProperty.call(r,o)))return r[o]},e),spe=e=>e==="#"||e===void 0||e==="",wa=(e,t,n)=>{const r=t==null?void 0:t.split("/").map(Ty);return kv(e,r,n)},kv=(e,t,n)=>{if(Mt(e))return;if(e.$ref&&(e=wa(n,e.$ref,n)),!t||t.length===0)return e;const[r,...o]=t;if(spe(r))return kv(e,o,n);const a=dr(e,r),i=kv(a,o,n);if(i)return i;if(r==="properties"||r==="items"){let s;const l=[].concat(e.oneOf??[],e.allOf??[],e.anyOf??[],e.then??[],e.else??[]);for(const c of l)if(s=kv(c,[r,...o],n),s)break;return s}},lpe=e=>e.type==="OR",cpe=e=>e.type==="AND",upe=e=>e.type==="LEAF",dpe=e=>Dle(e,"schema"),bR=(e,t)=>m5(e,t),tC=(e,t,n,r)=>{if(cpe(t))return t.conditions.reduce((o,a)=>o&&tC(e,a,n,r),!0);if(lpe(t))return t.conditions.reduce((o,a)=>o||tC(e,a,n,r),!1);if(upe(t))return eC(e,bR(t,n))===t.expectedValue;if(dpe(t)){const o=eC(e,bR(t,n));return r.validate(t.schema,o)}else return!0},v5=(e,t,n,r)=>{const o=e.rule.condition;return tC(t,o,n,r)},fpe=(e,t,n=void 0,r)=>{const o=v5(e,t,n,r);switch(e.rule.effect){case wi.HIDE:return!o;case wi.SHOW:return o;default:return!0}},ppe=(e,t,n=void 0,r)=>{const o=v5(e,t,n,r);switch(e.rule.effect){case wi.DISABLE:return!o;case wi.ENABLE:return o;default:return!0}},l_=e=>!!(e.rule&&(e.rule.effect===wi.SHOW||e.rule.effect===wi.HIDE)),hpe=e=>!!(e.rule&&(e.rule.effect===wi.ENABLE||e.rule.effect===wi.DISABLE)),yd=(e,t,n=void 0,r)=>e.rule?fpe(e,t,n,r):!0,mpe=(e,t,n=void 0,r)=>e.rule?ppe(e,t,n,r):!0,c_=(e,t,n,r,o,a)=>{var i,s,l;return(i=e==null?void 0:e.jsonforms)!=null&&i.readonly?!1:n&&hpe(n)?mpe(n,o,t==null?void 0:t.path,gd(e)):typeof((s=n==null?void 0:n.options)==null?void 0:s.readonly)=="boolean"?!n.options.readonly:typeof((l=n==null?void 0:n.options)==null?void 0:l.readOnly)=="boolean"?!n.options.readOnly:typeof(a==null?void 0:a.readonly)=="boolean"?!a.readonly:typeof(a==null?void 0:a.readOnly)=="boolean"?!a.readOnly:(r==null?void 0:r.readOnly)===!0?!1:typeof(t==null?void 0:t.enabled)=="boolean"?t.enabled:!0},g5=e=>e.replace("#","root").replace(new RegExp("/","g"),"_"),u_=e=>e==null?"":e.join(` +`),Zs=(e,t)=>eN(Uu(e),t),Uu=e=>{if(Mt(e))return[];if(!Mt(e.type)&&typeof e.type=="string")return[e.type];if(x3(e.type))return e.type;if(!Mt(e.properties)||!Mt(e.additionalProperties))return["object"];if(!Mt(e.items))return["array"];if(!Mt(e.allOf)){const t=uS(e.allOf,n=>Uu(n).length!==0);if(t)return Uu(t)}return[]},_o={schema:wa,data:eC},vpe=e=>h5(e.scope).join("."),ir={compose:fc,fromScoped:vpe},ox=(e,t)=>{if(t&&typeof t.title=="string")return t.title;if(typeof e.scope=="string"){const n=e.scope,r=Ty(n.substr(n.lastIndexOf("/")+1));return yy(r)}return""},y5=(e,t)=>{const n=e.label;if(typeof n=="boolean")return Lm(ox(e,t),n);if(typeof n=="string")return Lm(n,!0);if(typeof n=="object"){const r=typeof n.text=="string"?n.text:ox(e,t),o=typeof n.show=="boolean"?n.show:!0;return Lm(r,o)}return Lm(ox(e,t),!0)},Lm=(e,t)=>({text:e,show:t}),gpe=(e,t,n)=>{const r=t.split("/"),o=r[r.length-1],i=r.slice(0,r.length-2).join("/"),s=_o.schema(e,i,n);return s!==void 0&&s.required!==void 0&&s.required.indexOf(o)!==-1},ky=(e,t,n)=>`${e??""}${t&&!n?"*":""}`,Oy=(e,t)=>e&&!t,es=e=>{switch(e.type){case"string":return e.format==="date-time"||e.format==="date"||e.format==="time"?new Date:"";case"integer":case"number":return 0;case"boolean":return!1;case"array":return[];case"null":return null;default:return{}}},Eo=(e,t,n,r)=>t===void 0||t!==void 0&&!e||!r&&!n,bp=(e,t,n)=>{let r=typeof e=="string"?e:JSON.stringify(e);return t&&(n?r=t(`${n}.${r}`,r):r=t(r,r)),{label:r,value:e}},d_=(e,t,n)=>{let r=e.title??(typeof e.const=="string"?e.const:JSON.stringify(e.const));return t&&(e.i18n?r=t(e.i18n,r):n?r=t(`${n}.${r}`,r):r=t(r,r)),{label:r,value:e.const}},bd=(e,t)=>{const{uischema:n}=t,r=oh(e),o=m5(n,t.path),a=t.visible===void 0||l_(n)?yd(n,r,t.path,gd(e)):t.visible,i=n,s=t.id,l=$g(e),c=i.scope!==void 0&&gpe(t.schema,i.scope,l),u=_o.schema(t.schema||l,i.scope,l),f=f5(o,u)(e),p=u!==void 0?u.description:"",m=_o.data(r,o),b=y5(n,u),v=b.show?b.text:"",x=Zl(e),g=c_(e,t,n,u||l,r,x),y=u??l,w=xa()(e),C=a_()(e),_=Ci(y,n,o),$=w(Cg(y,n,o,"label"),v,{schema:y,uischema:n,path:o,errors:f}),E=w(Cg(y,n,o,"description"),p,{schema:y,uischema:n,path:o,errors:f}),k=QS(f,C,w,y,n,o);return{data:m,description:E,errors:k,label:$,visible:a,enabled:g,id:s,path:o,required:c,uischema:n,schema:y,config:Zl(e),cells:t.cells||e.jsonforms.cells,rootSchema:l,i18nKeyPrefix:_}},ype=e=>({handleChange(t,n){e(Fa(t,()=>n))}}),bpe=(e,t)=>{var o;const n=bd(e,t),r=t.options||((o=n.schema.enum)==null?void 0:o.map(a=>bp(a,xa()(e),Ci(n.schema,n.uischema,n.path))))||n.schema.const&&[bp(n.schema.const,xa()(e),Ci(n.schema,n.uischema,n.path))];return{...n,options:r}},xpe=(e,t)=>{var o;const n=bd(e,t),r=t.options||((o=n.schema.oneOf)==null?void 0:o.map(a=>d_(a,xa()(e),Ci(n.schema,n.uischema,n.path))));return{...n,options:r}},wpe=(e,t)=>{var a;const n=bd(e,t),r=n.schema.items,o=t.options||(r==null?void 0:r.oneOf)&&r.oneOf.map(i=>{var s;return d_(i,(s=e.jsonforms.i18n)==null?void 0:s.translate,Ci(n.schema,n.uischema,n.path))})||((a=r==null?void 0:r.enum)==null?void 0:a.map(i=>{var s;return bp(i,(s=e.jsonforms.i18n)==null?void 0:s.translate,Ci(n.schema,n.uischema,n.path))}));return{...n,options:o}},Cpe=(e,t)=>{const{schema:n,path:r,index:o}=t,a=n.properties?uS(Object.keys(n.properties),c=>{const u=n.properties[c];return u.type==="string"||u.type==="number"||u.type==="integer"}):void 0,i=fc(r,`${o}`),s=_o.data(oh(e),i),l=a?s[a]:"";return{...t,childLabel:l}},f_=(e,t)=>{const{...n}=bd(e,t);return{...n,uischemas:e.jsonforms.uischemas}},$pe=(e,t)=>{const{path:n,schema:r,uischema:o,i18nKeyPrefix:a,label:i,...s}=f_(e,t),l=_o.schema(r,"items",s.rootSchema),c=p5(n,l)(e),u=xa()(e);return{...s,label:i,path:n,uischema:o,schema:l,childErrors:c,renderers:t.renderers||i_(e),cells:t.cells||s_(e),translations:GN(u,qN,a,i)}},Spe=e=>({addItem:(t,n)=>()=>{e(Fa(t,r=>r==null?[n]:(r.push(n),r)))},removeItems:(t,n)=>()=>{e(Fa(t,r=>(n.sort().reverse().forEach(o=>r.splice(o,1)),r)))},moveUp:(t,n)=>()=>{e(Fa(t,r=>(UN(r,n),r)))},moveDown:(t,n)=>()=>{e(Fa(t,r=>(WN(r,n),r)))}}),_pe=e=>({addItem:(t,n)=>{e(Fa(t,r=>r==null?[n]:(r.push(n),r)))},removeItem:(t,n)=>{e(Fa(t,r=>{const o=r.indexOf(n);return r.splice(o,1),r}))}}),b5={visible:!0,enabled:!0,path:"",direction:"column"},Epe=e=>e.type==="HorizontalLayout"?"row":e.type==="VerticalLayout"?"column":b5.direction,Ppe=(e,t)=>{const n=oh(e),{uischema:r}=t,o=t.visible===void 0||l_(r)?yd(t.uischema,n,t.path,gd(e)):t.visible,a=_o.data(n,t.path),i=Zl(e),s=c_(e,t,r,void 0,n,i),l=xa()(e),c=Rfe(r)?Ey(r,l):void 0;return{...b5,renderers:t.renderers||i_(e),cells:t.cells||s_(e),visible:o,enabled:s,path:t.path,data:a,uischema:t.uischema,schema:t.schema,direction:t.direction??Epe(r),config:i,label:c}},Tpe=(e,t)=>({renderers:t.renderers||dr(e.jsonforms,"renderers"),cells:t.cells||dr(e.jsonforms,"cells"),schema:t.schema||$g(e),rootSchema:$g(e),uischema:t.uischema||ape(e),path:t.path,enabled:t.enabled,config:Zl(e)}),p_=(e,t,n)=>{var f;const{data:r,schema:o,rootSchema:a,...i}=bd(e,t),s=e.jsonforms.core.ajv,l=["required","additionalProperties","type","enum","const"],c=p=>!p||p.length===0||!p.find(m=>l.indexOf(m.keyword)!==-1);let u;for(let p=0;p<((f=o[n])==null?void 0:f.length);p++)try{let m=o[n][p];m.$ref&&(m=_o.schema(a,m.$ref,a));const b=s.compile(m);if(b(r),c(b.errors)){u=p;break}}catch{console.debug("Combinator subschema is not self contained, can't hand it over to AJV")}return{data:r,schema:o,rootSchema:a,...i,indexOfFittingSchema:u,uischemas:ipe(e)}},kpe=(e,t)=>p_(e,t,"allOf"),Ope=(e,t)=>p_(e,t,"anyOf"),Rpe=(e,t)=>p_(e,t,"oneOf"),Dpe=(e,t)=>{const{path:n,schema:r,uischema:o,errors:a,i18nKeyPrefix:i,label:s,...l}=f_(e,t),c=_o.schema(r,"items",l.rootSchema),u=xa()(e),f=QS(p5(n,c)(e),a_()(e),u,void 0,void 0,void 0),p=a+(a.length>0&&f.length>0?` +`:"")+f;return{...l,label:s,path:n,uischema:o,schema:c,data:l.data?l.data.length:0,errors:p,minItems:r.minItems,translations:GN(u,qN,i,s)}},Mpe=(e,t)=>{const{uischema:n}=t,r=t.visible===void 0||l_(n)?yd(t.uischema,oh(e),t.path,gd(e)):t.visible,o=n.text,a=xa()(e),i=JS(void 0,n),s=i?`${i}.text`:o??"";return{text:a(s,o,{uischema:n}),visible:r,config:Zl(e),renderers:t.renderers||i_(e),cells:t.cells||s_(e)}},Ry=(e,t)=>{const{id:n,schema:r,path:o,uischema:a,renderers:i,cells:s}=t,l=oh(e),c=t.visible!==void 0?t.visible:yd(a,l,void 0,gd(e)),u=$g(e),f=Zl(e);let p;e.jsonforms.readonly===!0?p=!1:typeof t.enabled=="boolean"?p=t.enabled:p=c_(e,t,a,r||u,l,f);const m=xa()(e),b=a_()(e),v=QS(f5(o,r)(e),b,m,r,a,o),x=Mt(v);return{data:_o.data(l,o),visible:c,enabled:p,id:n,path:o,errors:v,isValid:x,schema:r,uischema:a,config:Zl(e),rootSchema:u,renderers:i,cells:s}},Ipe=(e,t)=>{const n=Ry(e,t),{renderers:r,cells:o,...a}=t;return{...n,...a,cells:o||e.jsonforms.cells||[]}},Ape=(e,t)=>{var o;const n=Ry(e,t),r=t.options||((o=n.schema.enum)==null?void 0:o.map(a=>bp(a,xa()(e),Ci(n.schema,n.uischema,n.path))))||n.schema.const&&[bp(n.schema.const,xa()(e),Ci(n.schema,n.uischema,n.path))];return{...n,options:r}},Npe=(e,t)=>{var o;const n=Ry(e,t),r=t.options||((o=n.schema.oneOf)==null?void 0:o.map(a=>d_(a,xa()(e),Ci(n.schema,n.uischema,n.path))));return{...n,options:r}},jpe=(e,t,n)=>e.title?e.title:n+"-"+t,Dy=(e,t,n,r,o,a)=>e.map((i,s)=>{const l=i.$ref?_o.schema(t,i.$ref,t):i;return{schema:l,uischema:rh(a,l,r.scope,o,void 0,r,t),label:jpe(i,s,n)}}),h_=new Set,x5=(e,t)=>t<=1?e:e+t.toString(),Lpe=(e,t)=>{const n=x5(e,t);return!h_.has(n)},w5=e=>{e===void 0&&(e="undefined");let t=0;for(;!Lpe(e,t);)t++;const n=x5(e,t);return h_.add(n),n},C5=e=>h_.delete(e),Fpe=e=>{if(e.properties)return uS(Object.keys(e.properties),t=>{const n=e.properties[t];return n.type==="string"||n.type==="number"||n.type==="integer"})},Sg=e=>!!e&&Object.prototype.hasOwnProperty.call(e,"oneOf")&&e.oneOf&&e.oneOf.every(t=>t.const!==void 0),zpe=e=>{const t=new $fe({allErrors:!0,verbose:!0,strict:!1,...e});return _fe(t),t},$5=e=>({type:e,elements:[]}),Ov=e=>({type:"Control",scope:e}),Bpe=(e,t)=>{if(!Mt(e)&&!BN(e)){const n=$5(t);return n.elements.push(e),n}return e},Vpe=(e,t)=>{if(!Mt(t)){const n=yy(t);if(Tfe(e))e.label=n;else{const r={type:"Label",text:n};e.elements.push(r)}}},Upe=e=>!Mt(e)&&(!Mt(e.oneOf)||!Mt(e.anyOf)||!Mt(e.allOf)),nC=(e,t,n,r,o,a)=>{if(!Mt(e)&&e.$ref!==void 0)return nC(wa(a,e.$ref,a),t,n,r,o,a);if(Upe(e)){const s=Ov(n);return t.push(s),s}const i=Uu(e);if(i.length===0)return null;if(i.length>1){const s=Ov(n);return t.push(s),s}if(n==="#"&&i[0]==="object"){const s=$5(o);if(t.push(s),e.properties&&BZ(e.properties).length>1&&Vpe(s,r),!Mt(e.properties)){const l=n+"/properties";Object.keys(e.properties).map(c=>{let u=e.properties[c];const f=`${l}/${Xl(c)}`;u.$ref!==void 0&&(u=wa(a,u.$ref,a)),nC(u,s.elements,f,c,o,a)})}return s}switch(i[0]){case"object":case"array":case"string":case"number":case"integer":case"boolean":{const s=Ov(n);return t.push(s),s}default:throw new Error("Unknown type: "+JSON.stringify(e))}},S5=(e,t="VerticalLayout",n="#",r=e)=>Bpe(nC(e,[],n,"",t,r),t),Ql={jsonSchema:FN,uiSchema:S5,controlElement:Ov},m_="jsonforms/INIT",v_="jsonforms/UPDATE_CORE",g_="jsonforms/SET_AJV",y_="jsonforms/UPDATE",b_="jsonforms/UPDATE_ERRORS",Wpe="jsonforms/VALIDATE",_5="jsonforms/ADD_RENDERER",E5="jsonforms/REMOVE_RENDERER",P5="jsonforms/ADD_CELL",T5="jsonforms/REMOVE_CELL",x_="jsonforms/SET_CONFIG",k5="jsonforms/ADD_UI_SCHEMA",O5="jsonforms/REMOVE_UI_SCHEMA",w_="jsonforms/SET_SCHEMA",C_="jsonforms/SET_UISCHEMA",$_="jsonforms/SET_VALIDATION_MODE",S_="jsonforms/SET_LOCALE",__="jsonforms/SET_TRANSLATOR",E_="jsonforms/UPDATE_I18N",R5="jsonforms/ADD_DEFAULT_DATA",D5="jsonforms/REMOVE_DEFAULT_DATA",Hpe=(e,t=FN(e),n,r)=>({type:m_,data:e,schema:t,uischema:typeof n=="object"?n:S5(t),options:r}),Gpe=(e,t,n,r)=>({type:v_,data:e,schema:t,uischema:n,options:r}),qpe=(e,t)=>({type:R5,schemaPath:e,data:t}),Ype=e=>({type:D5,schemaPath:e}),Kpe=e=>({type:g_,ajv:e}),Fa=(e,t)=>({type:y_,path:e,updater:t}),Jpe=e=>({type:b_,errors:e}),Zpe=(e,t)=>({type:_5,tester:e,renderer:t}),Xpe=(e,t)=>({type:P5,tester:e,cell:t}),Qpe=(e,t)=>({type:T5,tester:e,cell:t}),ehe=(e,t)=>({type:E5,tester:e,renderer:t}),the=e=>({type:x_,config:e}),nhe=e=>({type:$_,validationMode:e}),rhe=(e,t)=>({type:k5,tester:e,uischema:t}),ohe=e=>({type:O5,tester:e}),ahe=e=>({type:S_,locale:e}),ihe=e=>({type:w_,schema:e}),she=(e,t)=>({type:__,translator:e,errorTranslator:t}),lhe=(e,t,n)=>({type:E_,locale:e,translator:t,errorTranslator:n}),che=e=>({type:C_,uischema:e});var Fc=Object.freeze({__proto__:null,INIT:m_,UPDATE_CORE:v_,SET_AJV:g_,UPDATE_DATA:y_,UPDATE_ERRORS:b_,VALIDATE:Wpe,ADD_RENDERER:_5,REMOVE_RENDERER:E5,ADD_CELL:P5,REMOVE_CELL:T5,SET_CONFIG:x_,ADD_UI_SCHEMA:k5,REMOVE_UI_SCHEMA:O5,SET_SCHEMA:w_,SET_UISCHEMA:C_,SET_VALIDATION_MODE:$_,SET_LOCALE:S_,SET_TRANSLATOR:__,UPDATE_I18N:E_,ADD_DEFAULT_DATA:R5,REMOVE_DEFAULT_DATA:D5,init:Hpe,updateCore:Gpe,registerDefaultData:qpe,unregisterDefaultData:Ype,setAjv:Kpe,update:Fa,updateErrors:Jpe,registerRenderer:Zpe,registerCell:Xpe,unregisterCell:Qpe,unregisterRenderer:ehe,setConfig:the,setValidationMode:nhe,registerUISchema:rhe,unregisterUISchema:ohe,setLocale:ahe,setSchema:ihe,setTranslator:she,updateI18n:lhe,setUISchema:che});const _g={createLabelDescriptionFrom:y5,convertToValidClassName:g5};var uhe=so,dhe=function(){return uhe.Date.now()},fhe=dhe,phe=Qo,ax=fhe,xR=G4,hhe="Expected a function",mhe=Math.max,vhe=Math.min;function ghe(e,t,n){var r,o,a,i,s,l,c=0,u=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError(hhe);t=xR(t)||0,phe(n)&&(u=!!n.leading,f="maxWait"in n,a=f?mhe(xR(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p);function m($){var E=r,k=o;return r=o=void 0,c=$,i=e.apply(k,E),i}function b($){return c=$,s=setTimeout(g,t),u?m($):i}function v($){var E=$-l,k=$-c,I=t-E;return f?vhe(I,a-k):I}function x($){var E=$-l,k=$-c;return l===void 0||E>=t||E<0||f&&k>=a}function g(){var $=ax();if(x($))return y($);s=setTimeout(g,v($))}function y($){return s=void 0,p&&r?m($):(r=o=void 0,i)}function w(){s!==void 0&&clearTimeout(s),c=0,r=l=o=s=void 0}function C(){return s===void 0?i:y(ax())}function _(){var $=ax(),E=x($);if(r=arguments,o=this,l=$,E){if(s===void 0)return b(l);if(f)return clearTimeout(s),s=setTimeout(g,t),m(l)}return s===void 0&&(s=setTimeout(g,t)),i}return _.cancel=w,_.flush=C,_}var yhe=ghe;const M5=Bt(yhe);class I5 extends M.Component{constructor(t){super(t)}}class A5 extends I5{constructor(t){super(t),this.handleChange=n=>{this.setState({value:n}),this.updateData(n)},this.onFocus=()=>{this.setState({isFocused:!0})},this.onBlur=()=>{this.setState({isFocused:!1})},this.updateData=n=>{this.props.handleChange(this.props.path,n)},this.state={value:t.data?t.data:"",isFocused:!1}}}class N5 extends S.Component{render(){return M.createElement("div",{style:{color:"red"}},"No applicable ",this.props.type," found.")}}const bhe={data:{},schema:{},uischema:void 0,errors:[],additionalErrors:[],validator:void 0,ajv:void 0},j5=M.createContext({core:bhe,renderers:[]}),xhe=(e,t)=>{const n=S.useRef(!0);S.useEffect(()=>{if(n.current){n.current=!1;return}e()},t)},whe=({children:e,initState:t,onChange:n})=>{var y,w,C;const{data:r,schema:o,uischema:a,ajv:i,validationMode:s,additionalErrors:l}=t.core,[c,u]=S.useReducer(gR,void 0,()=>gR(t.core,Fc.init(r,o,a,{ajv:i,validationMode:s,additionalErrors:l})));S.useEffect(()=>{u(Fc.updateCore(r,o,a,{ajv:i,validationMode:s,additionalErrors:l}))},[r,o,a,i,s,l]);const[f,p]=S.useReducer(pR,void 0,()=>pR(void 0,Fc.setConfig(t.config)));xhe(()=>{p(Fc.setConfig(t.config))},[t.config]);const[m,b]=S.useReducer(yR,void 0,()=>{var _,$,E;return yR(t.i18n,Fc.updateI18n((_=t.i18n)==null?void 0:_.locale,($=t.i18n)==null?void 0:$.translate,(E=t.i18n)==null?void 0:E.translateError))});S.useEffect(()=>{var _,$,E;b(Fc.updateI18n((_=t.i18n)==null?void 0:_.locale,($=t.i18n)==null?void 0:$.translate,(E=t.i18n)==null?void 0:E.translateError))},[(y=t.i18n)==null?void 0:y.locale,(w=t.i18n)==null?void 0:w.translate,(C=t.i18n)==null?void 0:C.translateError]);const v=S.useMemo(()=>({core:c,renderers:t.renderers,cells:t.cells,config:f,uischemas:t.uischemas,readonly:t.readonly,i18n:m,dispatch:u}),[c,t.renderers,t.cells,f,t.uischemas,t.readonly,m]),x=S.useRef(n);S.useEffect(()=>{x.current=n},[n]);const g=S.useCallback(M5((..._)=>{var $;return($=x.current)==null?void 0:$.call(x,..._)},10),[]);return S.useEffect(()=>{g({data:c.data,errors:c.errors})},[c.data,c.errors]),M.createElement(j5.Provider,{value:v},e)},pc=()=>S.useContext(j5),Che=(e,t)=>Dpe({jsonforms:{...e}},t),$he=(e,t)=>$pe({jsonforms:{...e}},t),She=(e,t)=>Ppe({jsonforms:{...e}},t),_he=(e,t)=>bd({jsonforms:{...e}},t),Ehe=(e,t)=>{var o;const n=bpe({jsonforms:{...e}},t),r=S.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},Phe=(e,t)=>{var o;const n=xpe({jsonforms:{...e}},t),r=S.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},The=(e,t)=>{var o;const n=wpe({jsonforms:{...e}},t),r=S.useMemo(()=>n.options,[n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},khe=(e,t)=>f_({jsonforms:{...e}},t),Ohe=(e,t)=>({...kpe({jsonforms:{...e}},t)}),Oo=e=>S.useMemo(()=>ype(e),[e]),Rhe=(e,t)=>{const n=Ope({jsonforms:{...e}},t),r=Oo(e.dispatch);return{...n,...r}},Dhe=(e,t)=>{const n=Rpe({jsonforms:{...e}},t),r=Oo(e.dispatch);return{...n,...r}},Mhe=(e,t)=>Tpe({jsonforms:{...e}},t),L5=e=>({...Oo(e),...S.useMemo(()=>Spe(e),[e])}),Ihe=(e,t)=>Cpe({jsonforms:{...e}},t),Ahe=(e,t)=>Ry({jsonforms:{...e}},t),Nhe=(e,t)=>{var o;const n=Ape({jsonforms:{...e}},t),r=S.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},jhe=(e,t)=>{var o;const n=Npe({jsonforms:{...e}},t),r=S.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},Lhe=(e,t)=>Ipe({jsonforms:{...e}},t),Fhe=e=>({...Oo(e),...S.useMemo(()=>_pe(e),[e])}),zhe=(e,t)=>Mpe({jsonforms:{...e}},t),Sr=e=>function(n){const r=pc();return M.createElement(e,{ctx:r,props:n})},Bhe=e=>function({ctx:n,props:r}){const o=Mhe(n,r);return M.createElement(e,Object.assign({},r,o))},Vhe=e=>function({ctx:n,props:r}){const o=_he(n,r),a=Oo(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},Uhe=e=>function({ctx:n,props:r}){const o=She(n,r);return M.createElement(e,Object.assign({},r,o))},Whe=e=>function({ctx:n,props:r}){const o=Dhe(n,r),a=Oo(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},Hhe=e=>function({ctx:n,props:r}){const o=Rhe(n,r),a=Oo(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},Ghe=e=>function({ctx:n,props:r}){const o=Ohe(n,r),a=Oo(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},qhe=e=>function({ctx:n,props:r}){const o=khe(n,r);return M.createElement(e,Object.assign({},r,o))},Yhe=e=>function({ctx:n,props:r}){const o=Che(n,r),a=L5(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},Khe=e=>function({ctx:n,props:r}){const o=$he(n,r),a=L5(n.dispatch);return M.createElement(e,Object.assign({},r,o,a))},Jhe=e=>function({ctx:n,props:r}){const o=Ihe(n,r);return M.createElement(e,Object.assign({},r,o))},Zhe=e=>function({ctx:n,props:r}){const o=Ahe(n,r),a=Oo(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},Xhe=e=>function({ctx:n,props:r}){const o=Lhe(n,r),a=Oo(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},Qhe=e=>function({ctx:n,props:r}){const o=Nhe(n,r),a=Oo(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},eme=e=>function({ctx:n,props:r}){const o=Ehe(n,r),a=Oo(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},tme=e=>function({ctx:n,props:r}){const o=jhe(n,r),a=Oo(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},nme=e=>function({ctx:n,props:r}){const o=Phe(n,r),a=Oo(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},rme=e=>function({ctx:n,props:r}){const o=The(n,r),a=Fhe(n.dispatch);return M.createElement(e,Object.assign({},r,a,o))},ome=e=>function({ctx:n,props:r}){const o=zhe(n,r);return M.createElement(e,Object.assign({},r,o))},F5=(e,t=!0)=>Sr(Bhe(t?M.memo(e):e)),lo=(e,t=!0)=>Sr(Vhe(t?M.memo(e):e)),is=(e,t=!0)=>Sr(Uhe(t?M.memo(e):e)),ame=(e,t=!0)=>Sr(Whe(t?M.memo(e):e)),z5=(e,t=!0)=>Sr(Hhe(t?M.memo(e):e)),ime=(e,t=!0)=>Sr(Ghe(t?M.memo(e):e)),sme=(e,t=!0)=>Sr(qhe(t?M.memo(e):e)),My=(e,t=!0)=>Sr(Yhe(t?M.memo(e):e)),B5=(e,t=!0)=>Sr(Khe(t?M.memo(e):e)),lme=(e,t=!0)=>Sr(Jhe(t?M.memo(e):e)),pr=(e,t=!0)=>Sr(Zhe(t?M.memo(e):e)),cme=(e,t=!0)=>Sr(Xhe(t?M.memo(e):e)),V5=(e,t=!0)=>Sr(Qhe(t?M.memo(e):e)),P_=(e,t=!0)=>Sr(eme(t?M.memo(e):e)),ume=(e,t=!0)=>Sr(tme(t?M.memo(e):e)),T_=(e,t=!0)=>Sr(nme(t?M.memo(e):e)),dme=(e,t=!0)=>Sr(rme(t?M.memo(e):e)),U5=(e,t=!0)=>Sr(ome(t?M.memo(e):e)),ol=e=>function(n){var i,s;const r=pc(),o=((i=r.i18n)==null?void 0:i.locale)??mu.locale,a=((s=r.i18n)==null?void 0:s.translate)??mu.translate;return M.createElement(e,Object.assign({},n,{locale:o,t:a}))};class W5 extends M.Component{constructor(t){super(t),this.state={id:Ga(t.uischema)?w5(t.uischema.scope):void 0}}componentWillUnmount(){Ga(this.props.uischema)&&C5(this.state.id)}render(){const{schema:t,rootSchema:n,uischema:r,path:o,enabled:a,renderers:i,cells:s,config:l}=this.props;return M.createElement(fme,{uischema:r,schema:t,rootSchema:n,path:o,enabled:a,renderers:i,cells:s,id:this.state.id,config:l})}}const fme=M.memo(function(t){const n=S.useMemo(()=>({rootSchema:t.rootSchema,config:t.config}),[t.rootSchema,t.config]),r=S.useMemo(()=>gy(t.renderers,o=>o.tester(t.uischema,t.schema,n)),[t.renderers,t.uischema,t.schema,n]);if(r===void 0||r.tester(t.uischema,t.schema,n)===-1)return M.createElement(N5,{type:"renderer"});{const o=r.renderer;return M.createElement(o,{uischema:t.uischema,schema:t.schema,path:t.path,enabled:t.enabled,renderers:t.renderers,cells:t.cells,id:t.id})}});class pme extends W5{constructor(t){super(t)}}const Po=F5(W5);F5(pme);const wR=e=>{const{ajv:t,data:n,schema:r,uischema:o,renderers:a,cells:i,onChange:s,config:l,uischemas:c,readonly:u,validationMode:f,i18n:p,additionalErrors:m}=e,b=S.useMemo(()=>r!==void 0?r:Ql.jsonSchema(n),[r,n]),v=S.useMemo(()=>typeof o=="object"?o:Ql.uiSchema(b),[o,b]);return M.createElement(whe,{initState:{core:{ajv:t,data:n,schema:b,uischema:v,validationMode:f,additionalErrors:m},config:l,uischemas:c,renderers:a,cells:i,readonly:u,i18n:p},onChange:s},M.createElement(Po,null))},hme=({uischema:e,schema:t,rootSchema:n,path:r,cells:o,id:a,enabled:i,renderers:s,config:l})=>{const c=S.useMemo(()=>({rootSchema:n,config:l}),[n,l]),u=S.useMemo(()=>gy(o,f=>f.tester(e,t,c)),[o,e,t,c]);if(u===void 0||u.tester(e,t,c)===-1)return M.createElement(N5,{type:"cell"});{const f=u.cell;return M.createElement(f,{uischema:e,schema:t,enabled:i,path:r,id:a,renderers:s,cells:o})}},ec=cme(hme),mme={black:"#000",white:"#fff"},xp=mme,vme={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"},zc=vme,gme={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"},Bc=gme,yme={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"},Vc=yme,bme={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"},Uc=bme,xme={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"},Wc=xme,wme={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"},nf=wme,Cme={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"},$me=Cme;function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;t{t[n]=H5(e[n])}),t}function Hr(e,t,n={clone:!0}){const r=n.clone?T({},e):e;return Ui(e)&&Ui(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Ui(t[o])&&o in e&&Ui(e[o])?r[o]=Hr(e[o],t[o],n):n.clone?r[o]=Ui(t[o])?H5(t[o]):t[o]:r[o]=t[o])}),r}var G5={exports:{}},Sme="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",_me=Sme,Eme=_me;function q5(){}function Y5(){}Y5.resetWarningCache=q5;var Pme=function(){function e(r,o,a,i,s,l){if(l!==Eme){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Y5,resetWarningCache:q5};return n.PropTypes=n,n};G5.exports=Pme();var Tme=G5.exports;const j=Bt(Tme);function Xs(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;nn==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function ah(e,t=166){let n;function r(...o){const a=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function Ome(e,t){return()=>null}function Eu(e,t){var n,r;return S.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function zn(e){return e&&e.ownerDocument||document}function $i(e){return zn(e).defaultView||window}function Rme(e,t){return()=>null}function wp(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Dme=typeof window<"u"?S.useLayoutEffect:S.useEffect,Kn=Dme;let CR=0;function Mme(e){const[t,n]=S.useState(e),r=e||t;return S.useEffect(()=>{t==null&&(CR+=1,n(`mui-${CR}`))},[t]),r}const $R=ep["useId".toString()];function Ya(e){if($R!==void 0){const t=$R();return e??t}return Mme(e)}function Ime(e,t,n,r,o){return null}function Cr({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=S.useRef(e!==void 0),[a,i]=S.useState(t),s=o?e:a,l=S.useCallback(c=>{o||i(c)},[]);return[s,l]}function mt(e){const t=S.useRef(e);return Kn(()=>{t.current=e}),S.useCallback((...n)=>(0,t.current)(...n),[])}function sn(...e){return S.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{wp(n,t)})},e)}let Iy=!0,rC=!1,SR;const Ame={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 Nme(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Ame[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function jme(e){e.metaKey||e.altKey||e.ctrlKey||(Iy=!0)}function ix(){Iy=!1}function Lme(){this.visibilityState==="hidden"&&rC&&(Iy=!0)}function Fme(e){e.addEventListener("keydown",jme,!0),e.addEventListener("mousedown",ix,!0),e.addEventListener("pointerdown",ix,!0),e.addEventListener("touchstart",ix,!0),e.addEventListener("visibilitychange",Lme,!0)}function zme(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Iy||Nme(t)}function Ay(){const e=S.useCallback(o=>{o!=null&&Fme(o.ownerDocument)},[]),t=S.useRef(!1);function n(){return t.current?(rC=!0,window.clearTimeout(SR),SR=window.setTimeout(()=>{rC=!1},100),t.current=!1,!0):!1}function r(o){return zme(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function K5(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Hc;function J5(){if(Hc)return Hc;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Hc="reverse",e.scrollLeft>0?Hc="default":(e.scrollLeft=1,e.scrollLeft===0&&(Hc="negative")),document.body.removeChild(e),Hc}function Bme(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(J5()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const Vme=e=>{const t=S.useRef({});return S.useEffect(()=>{t.current=e}),t.current},k_=Vme,Ume={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},Wme=Ume;function O_(e,t){const n=T({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=T({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},a=t[r];n[r]={},!a||!Object.keys(a)?n[r]=o:!o||!Object.keys(o)?n[r]=a:(n[r]=T({},a),Object.keys(o).forEach(i=>{n[r][i]=O_(o[i],a[i])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Xe(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((a,i)=>{if(i){const s=t(i);s!==""&&a.push(s),n&&n[i]&&a.push(n[i])}return a},[]).join(" ")}),r}const _R=e=>e,Hme=()=>{let e=_R;return{configure(t){e=t},generate(t){return e(t)},reset(){e=_R}}},Gme=Hme(),Z5=Gme,qme={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function et(e,t,n="Mui"){const r=qme[t];return r?`${n}-${r}`:`${Z5.generate(e)}-${t}`}function Qe(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=et(e,o,n)}),r}const Ny="$$material";function Oe(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a=0)&&(n[o]=e[o]);return n}function X5(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Yme=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Kme=X5(function(e){return Yme.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Jme(e){if(e.sheet)return e.sheet;for(var t=0;t0?Mr(wd,--To):0,Wu--,cr===10&&(Wu=1,Ly--),cr}function Go(){return cr=To2||$p(cr)>3?"":" "}function cve(e,t){for(;--t&&Go()&&!(cr<48||cr>102||cr>57&&cr<65||cr>70&&cr<97););return ih(e,Rv()+(t<6&&gi()==32&&Go()==32))}function aC(e){for(;Go();)switch(cr){case e:return To;case 34:case 39:e!==34&&e!==39&&aC(cr);break;case 40:e===41&&aC(e);break;case 92:Go();break}return To}function uve(e,t){for(;Go()&&e+cr!==47+10;)if(e+cr===42+42&&gi()===47)break;return"/*"+ih(t,To-1)+"*"+jy(e===47?e:Go())}function dve(e){for(;!$p(gi());)Go();return ih(e,To)}function fve(e){return oj(Mv("",null,null,null,[""],e=rj(e),0,[0],e))}function Mv(e,t,n,r,o,a,i,s,l){for(var c=0,u=0,f=i,p=0,m=0,b=0,v=1,x=1,g=1,y=0,w="",C=o,_=a,$=r,E=w;x;)switch(b=y,y=Go()){case 40:if(b!=108&&Mr(E,f-1)==58){oC(E+=hn(Dv(y),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:E+=Dv(y);break;case 9:case 10:case 13:case 32:E+=lve(b);break;case 92:E+=cve(Rv()-1,7);continue;case 47:switch(gi()){case 42:case 47:Fm(pve(uve(Go(),Rv()),t,n),l);break;default:E+="/"}break;case 123*v:s[c++]=si(E)*g;case 125*v:case 59:case 0:switch(y){case 0:case 125:x=0;case 59+u:g==-1&&(E=hn(E,/\f/g,"")),m>0&&si(E)-f&&Fm(m>32?PR(E+";",r,n,f-1):PR(hn(E," ","")+";",r,n,f-2),l);break;case 59:E+=";";default:if(Fm($=ER(E,t,n,c,u,o,s,w,C=[],_=[],f),a),y===123)if(u===0)Mv(E,t,$,$,C,a,f,s,_);else switch(p===99&&Mr(E,3)===110?100:p){case 100:case 108:case 109:case 115:Mv(e,$,$,r&&Fm(ER(e,$,$,0,0,o,s,w,o,C=[],f),_),o,_,f,s,r?C:_);break;default:Mv(E,$,$,$,[""],_,0,s,_)}}c=u=m=0,v=g=1,w=E="",f=i;break;case 58:f=1+si(E),m=b;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&sve()==125)continue}switch(E+=jy(y),y*v){case 38:g=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(si(E)-1)*g,g=1;break;case 64:gi()===45&&(E+=Dv(Go())),p=gi(),u=f=si(w=E+=dve(Rv())),y++;break;case 45:b===45&&si(E)==2&&(v=0)}}return a}function ER(e,t,n,r,o,a,i,s,l,c,u){for(var f=o-1,p=o===0?a:[""],m=M_(p),b=0,v=0,x=0;b0?p[g]+" "+y:hn(y,/&\f/g,p[g])))&&(l[x++]=w);return Fy(e,t,n,o===0?R_:s,l,c,u)}function pve(e,t,n){return Fy(e,t,n,Q5,jy(ive()),Cp(e,2,-2),0)}function PR(e,t,n,r){return Fy(e,t,n,D_,Cp(e,0,r),Cp(e,r+1,-1),r)}function Pu(e,t){for(var n="",r=M_(e),o=0;o6)switch(Mr(e,t+1)){case 109:if(Mr(e,t+4)!==45)break;case 102:return hn(e,/(.+:)(.+)-([^]+)/,"$1"+pn+"$2-$3$1"+Pg+(Mr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~oC(e,"stretch")?aj(hn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Mr(e,t+1)!==115)break;case 6444:switch(Mr(e,si(e)-3-(~oC(e,"!important")&&10))){case 107:return hn(e,":",":"+pn)+e;case 101:return hn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+pn+(Mr(e,14)===45?"inline-":"")+"box$3$1"+pn+"$2$3$1"+Vr+"$2box$3")+e}break;case 5936:switch(Mr(e,t+11)){case 114:return pn+e+Vr+hn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return pn+e+Vr+hn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return pn+e+Vr+hn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return pn+e+Vr+e+e}return e}var Cve=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case D_:t.return=aj(t.value,t.length);break;case ej:return Pu([rf(t,{value:hn(t.value,"@","@"+pn)})],o);case R_:if(t.length)return ave(t.props,function(a){switch(ove(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Pu([rf(t,{props:[hn(a,/:(read-\w+)/,":"+Pg+"$1")]})],o);case"::placeholder":return Pu([rf(t,{props:[hn(a,/:(plac\w+)/,":"+pn+"input-$1")]}),rf(t,{props:[hn(a,/:(plac\w+)/,":"+Pg+"$1")]}),rf(t,{props:[hn(a,/:(plac\w+)/,Vr+"input-$1")]})],o)}return""})}},$ve=[Cve],Sve=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(v){var x=v.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||$ve,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var x=v.getAttribute("data-emotion").split(" "),g=1;g=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 Nve={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},jve=/[A-Z]|^ms/g,Lve=/_EMO_([^_]+?)_([^]*?)_EMO_/g,fj=function(t){return t.charCodeAt(1)===45},kR=function(t){return t!=null&&typeof t!="boolean"},sx=X5(function(e){return fj(e)?e:e.replace(jve,"-$&").toLowerCase()}),OR=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Lve,function(r,o,a){return li={name:o,styles:a,next:li},o})}return Nve[t]!==1&&!fj(t)&&typeof n=="number"&&n!==0?n+"px":n};function Sp(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 li={name:n.name,styles:n.styles,next:li},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)li={name:r.name,styles:r.styles,next:li},r=r.next;var o=n.styles+";";return o}return Fve(e,t,n)}case"function":{if(e!==void 0){var a=li,i=n(e);return li=a,Sp(e,t,i)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function Fve(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?Wve:Hve},IR=function(t,n,r){var o;if(n){var a=n.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},Gve=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return uj(n,r,o),Bve(function(){return dj(n,r,o)}),null},qve=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,a,i;n!==void 0&&(a=n.label,i=n.target);var s=IR(t,n,r),l=s||MR(o),c=!l("as");return function(){var u=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else{f.push(u[0][0]);for(var p=u.length,m=1;mt(Kve(o)?n:o):t;return O.jsx(Vve,{styles:r})}/** + * @mui/styled-engine v5.14.14 + * + * @license MIT + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */function Zve(e,t){return iC(e,t)}const Xve=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Qve=["values","unit","step"],ege=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)=>T({},n,{[r.key]:r.val}),{})};function tge(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Oe(e,Qve),a=ege(t),i=Object.keys(a);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function c(p,m){const b=i.indexOf(m);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(b!==-1&&typeof t[i[b]]=="number"?t[i[b]]:m)-r/100}${n})`}function u(p){return i.indexOf(p)+1`@media (min-width:${z_[e]}px)`};function ko(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||AR;return t.reduce((i,s,l)=>(i[a.up(a.keys[l])]=n(t[l]),i),{})}if(typeof t=="object"){const a=r.breakpoints||AR;return Object.keys(t).reduce((i,s)=>{if(Object.keys(a.values||z_).indexOf(s)!==-1){const l=a.up(s);i[l]=n(t[s],s)}else{const l=s;i[l]=t[l]}return i},{})}return n(t)}function vj(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const a=e.up(o);return r[a]={},r},{}))||{}}function gj(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function oge(e,...t){const n=vj(e),r=[n,...t].reduce((o,a)=>Hr(o,a),{});return gj(Object.keys(n),r)}function age(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,a)=>{a{e[o]!=null&&(n[o]=!0)}),n}function Bl({values:e,breakpoints:t,base:n}){const r=n||age(e,t),o=Object.keys(r);if(o.length===0)return e;let a;return o.reduce((i,s,l)=>(Array.isArray(e)?(i[s]=e[l]!=null?e[l]:e[a],a=l):typeof e=="object"?(i[s]=e[s]!=null?e[s]:e[a],a=s):i[s]=e,i),{})}function Jy(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Tg(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Jy(e,n)||r,t&&(o=t(o,r,e)),o}function yn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=i=>{if(i[t]==null)return null;const s=i[t],l=i.theme,c=Jy(l,r)||{};return ko(i,s,f=>{let p=Tg(c,o,f);return f===p&&typeof f=="string"&&(p=Tg(c,o,`${t}${f==="default"?"":je(f)}`,f)),n===!1?p:{[n]:p}})};return a.propTypes={},a.filterProps=[t],a}function ige(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const sge={m:"margin",p:"padding"},lge={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},NR={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},cge=ige(e=>{if(e.length>2)if(NR[e])e=NR[e];else return[e];const[t,n]=e.split(""),r=sge[t],o=lge[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),B_=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],V_=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...B_,...V_];function sh(e,t,n,r){var o;const a=(o=Jy(e,t,!1))!=null?o:n;return typeof a=="number"?i=>typeof i=="string"?i:a*i:Array.isArray(a)?i=>typeof i=="string"?i:a[i]:typeof a=="function"?a:()=>{}}function U_(e){return sh(e,"spacing",8)}function tc(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 uge(e,t){return n=>e.reduce((r,o)=>(r[o]=tc(t,n),r),{})}function dge(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=cge(n),a=uge(o,r),i=e[n];return ko(e,i,a)}function yj(e,t){const n=U_(e.theme);return Object.keys(e).map(r=>dge(e,t,r,n)).reduce(Uf,{})}function Zn(e){return yj(e,B_)}Zn.propTypes={};Zn.filterProps=B_;function Xn(e){return yj(e,V_)}Xn.propTypes={};Xn.filterProps=V_;function fge(e=8){if(e.mui)return e;const t=U_({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" ");return n.mui=!0,n}function Zy(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(a=>{r[a]=o}),r),{}),n=r=>Object.keys(r).reduce((o,a)=>t[a]?Uf(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function di(e){return typeof e!="number"?e:`${e}px solid`}const pge=yn({prop:"border",themeKey:"borders",transform:di}),hge=yn({prop:"borderTop",themeKey:"borders",transform:di}),mge=yn({prop:"borderRight",themeKey:"borders",transform:di}),vge=yn({prop:"borderBottom",themeKey:"borders",transform:di}),gge=yn({prop:"borderLeft",themeKey:"borders",transform:di}),yge=yn({prop:"borderColor",themeKey:"palette"}),bge=yn({prop:"borderTopColor",themeKey:"palette"}),xge=yn({prop:"borderRightColor",themeKey:"palette"}),wge=yn({prop:"borderBottomColor",themeKey:"palette"}),Cge=yn({prop:"borderLeftColor",themeKey:"palette"}),Xy=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=sh(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:tc(t,r)});return ko(e,e.borderRadius,n)}return null};Xy.propTypes={};Xy.filterProps=["borderRadius"];Zy(pge,hge,mge,vge,gge,yge,bge,xge,wge,Cge,Xy);const Qy=e=>{if(e.gap!==void 0&&e.gap!==null){const t=sh(e.theme,"spacing",8),n=r=>({gap:tc(t,r)});return ko(e,e.gap,n)}return null};Qy.propTypes={};Qy.filterProps=["gap"];const e0=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=sh(e.theme,"spacing",8),n=r=>({columnGap:tc(t,r)});return ko(e,e.columnGap,n)}return null};e0.propTypes={};e0.filterProps=["columnGap"];const t0=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=sh(e.theme,"spacing",8),n=r=>({rowGap:tc(t,r)});return ko(e,e.rowGap,n)}return null};t0.propTypes={};t0.filterProps=["rowGap"];const $ge=yn({prop:"gridColumn"}),Sge=yn({prop:"gridRow"}),_ge=yn({prop:"gridAutoFlow"}),Ege=yn({prop:"gridAutoColumns"}),Pge=yn({prop:"gridAutoRows"}),Tge=yn({prop:"gridTemplateColumns"}),kge=yn({prop:"gridTemplateRows"}),Oge=yn({prop:"gridTemplateAreas"}),Rge=yn({prop:"gridArea"});Zy(Qy,e0,t0,$ge,Sge,_ge,Ege,Pge,Tge,kge,Oge,Rge);function Tu(e,t){return t==="grey"?t:e}const Dge=yn({prop:"color",themeKey:"palette",transform:Tu}),Mge=yn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Tu}),Ige=yn({prop:"backgroundColor",themeKey:"palette",transform:Tu});Zy(Dge,Mge,Ige);function Bo(e){return e<=1&&e!==0?`${e*100}%`:e}const Age=yn({prop:"width",transform:Bo}),W_=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const a=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||z_[n];return a?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:Bo(n)}};return ko(e,e.maxWidth,t)}return null};W_.filterProps=["maxWidth"];const Nge=yn({prop:"minWidth",transform:Bo}),jge=yn({prop:"height",transform:Bo}),Lge=yn({prop:"maxHeight",transform:Bo}),Fge=yn({prop:"minHeight",transform:Bo});yn({prop:"size",cssProperty:"width",transform:Bo});yn({prop:"size",cssProperty:"height",transform:Bo});const zge=yn({prop:"boxSizing"});Zy(Age,W_,Nge,jge,Lge,Fge,zge);const Bge={border:{themeKey:"borders",transform:di},borderTop:{themeKey:"borders",transform:di},borderRight:{themeKey:"borders",transform:di},borderBottom:{themeKey:"borders",transform:di},borderLeft:{themeKey:"borders",transform:di},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Xy},color:{themeKey:"palette",transform:Tu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Tu},backgroundColor:{themeKey:"palette",transform:Tu},p:{style:Xn},pt:{style:Xn},pr:{style:Xn},pb:{style:Xn},pl:{style:Xn},px:{style:Xn},py:{style:Xn},padding:{style:Xn},paddingTop:{style:Xn},paddingRight:{style:Xn},paddingBottom:{style:Xn},paddingLeft:{style:Xn},paddingX:{style:Xn},paddingY:{style:Xn},paddingInline:{style:Xn},paddingInlineStart:{style:Xn},paddingInlineEnd:{style:Xn},paddingBlock:{style:Xn},paddingBlockStart:{style:Xn},paddingBlockEnd:{style:Xn},m:{style:Zn},mt:{style:Zn},mr:{style:Zn},mb:{style:Zn},ml:{style:Zn},mx:{style:Zn},my:{style:Zn},margin:{style:Zn},marginTop:{style:Zn},marginRight:{style:Zn},marginBottom:{style:Zn},marginLeft:{style:Zn},marginX:{style:Zn},marginY:{style:Zn},marginInline:{style:Zn},marginInlineStart:{style:Zn},marginInlineEnd:{style:Zn},marginBlock:{style:Zn},marginBlockStart:{style:Zn},marginBlockEnd:{style:Zn},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:Qy},rowGap:{style:t0},columnGap:{style:e0},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Bo},maxWidth:{style:W_},minWidth:{transform:Bo},height:{transform:Bo},maxHeight:{transform:Bo},minHeight:{transform:Bo},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},n0=Bge;function Vge(...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 Uge(e,t){return typeof e=="function"?e(t):e}function Wge(){function e(n,r,o,a){const i={[n]:r,theme:o},s=a[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:f}=s;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const p=Jy(o,c)||{};return f?f(i):ko(i,r,b=>{let v=Tg(p,u,b);return b===v&&typeof b=="string"&&(v=Tg(p,u,`${n}${b==="default"?"":je(b)}`,b)),l===!1?v:{[l]:v}})}function t(n){var r;const{sx:o,theme:a={}}=n||{};if(!o)return null;const i=(r=a.unstable_sxConfig)!=null?r:n0;function s(l){let c=l;if(typeof l=="function")c=l(a);else if(typeof l!="object")return l;if(!c)return null;const u=vj(a.breakpoints),f=Object.keys(u);let p=u;return Object.keys(c).forEach(m=>{const b=Uge(c[m],a);if(b!=null)if(typeof b=="object")if(i[m])p=Uf(p,e(m,b,a,i));else{const v=ko({theme:a},b,x=>({[m]:x}));Vge(v,b)?p[m]=t({sx:b,theme:a}):p=Uf(p,v)}else p=Uf(p,e(m,b,a,i))}),gj(f,p)}return Array.isArray(o)?o.map(s):s(o)}return t}const bj=Wge();bj.filterProps=["sx"];const H_=bj,Hge=["breakpoints","palette","spacing","shape"];function r0(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={}}=e,i=Oe(e,Hge),s=tge(n),l=fge(o);let c=Hr({breakpoints:s,direction:"ltr",components:{},palette:T({mode:"light"},r),spacing:l,shape:T({},rge,a)},i);return c=t.reduce((u,f)=>Hr(u,f),c),c.unstable_sxConfig=T({},n0,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(f){return H_({sx:f,theme:this})},c}function Gge(e){return Object.keys(e).length===0}function G_(e=null){const t=S.useContext(L_);return!t||Gge(t)?e:t}const qge=r0();function lh(e=qge){return G_(e)}function Yge({styles:e,themeId:t,defaultTheme:n={}}){const r=lh(n),o=typeof e=="function"?e(t&&r[t]||r):e;return O.jsx(Jve,{styles:o})}const Kge=["sx"],Jge=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:n0;return Object.keys(e).forEach(a=>{o[a]?r.systemProps[a]=e[a]:r.otherProps[a]=e[a]}),r};function q_(e){const{sx:t}=e,n=Oe(e,Kge),{systemProps:r,otherProps:o}=Jge(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...i)=>{const s=t(...i);return Ui(s)?T({},r,s):r}:a=T({},r,t),T({},o,{sx:a})}function xj(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t{o==="color"?r+=jR(r)?e[o]:je(e[o]):r+=`${jR(r)?o:je(o)}${je(e[o].toString())}`}),r}const Xge=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Qge(e){return Object.keys(e).length===0}function eye(e){return typeof e=="string"&&e.charCodeAt(0)>96}const tye=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,kg=e=>{const t={};return e&&e.forEach(n=>{const r=wj(n.props);t[r]=n.style}),t},nye=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),kg(n)},Og=(e,t,n)=>{const{ownerState:r={}}=e,o=[];return n&&n.forEach(a=>{let i=!0;Object.keys(a.props).forEach(s=>{r[s]!==a.props[s]&&e[s]!==a.props[s]&&(i=!1)}),i&&o.push(t[wj(a.props)])}),o},rye=(e,t,n,r)=>{var o;const a=n==null||(o=n.components)==null||(o=o[r])==null?void 0:o.variants;return Og(e,t,a)};function Wf(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const oye=r0(),aye=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Iv({defaultTheme:e,theme:t,themeId:n}){return Qge(t)?e:t[n]||t}function iye(e){return e?(t,n)=>n[e]:null}const LR=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const o=e(T({},t,{theme:Iv(T({},t,{defaultTheme:n,themeId:r}))}));let a;if(o&&o.variants&&(a=o.variants,delete o.variants),a){const i=Og(t,kg(a),a);return[o,...i]}return o};function Cj(e={}){const{themeId:t,defaultTheme:n=oye,rootShouldForwardProp:r=Wf,slotShouldForwardProp:o=Wf}=e,a=i=>H_(T({},i,{theme:Iv(T({},i,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{Xve(i,C=>C.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:f,overridesResolver:p=iye(aye(c))}=s,m=Oe(s,Xge),b=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,v=f||!1;let x,g=Wf;c==="Root"||c==="root"?g=r:c?g=o:eye(i)&&(g=void 0);const y=Zve(i,T({shouldForwardProp:g,label:x},m)),w=(C,..._)=>{const $=_?_.map(R=>{if(typeof R=="function"&&R.__emotion_real!==R)return F=>LR({styledArg:R,props:F,defaultTheme:n,themeId:t});if(Ui(R)){let F=R,U;return R&&R.variants&&(U=R.variants,delete F.variants,F=G=>{let B=R;return Og(G,kg(U),U).forEach(Y=>{B=Hr(B,Y)}),B}),F}return R}):[];let E=C;if(Ui(C)){let R;C&&C.variants&&(R=C.variants,delete E.variants,E=F=>{let U=C;return Og(F,kg(R),R).forEach(B=>{U=Hr(U,B)}),U})}else typeof C=="function"&&C.__emotion_real!==C&&(E=R=>LR({styledArg:C,props:R,defaultTheme:n,themeId:t}));l&&p&&$.push(R=>{const F=Iv(T({},R,{defaultTheme:n,themeId:t})),U=tye(l,F);if(U){const G={};return Object.entries(U).forEach(([B,z])=>{G[B]=typeof z=="function"?z(T({},R,{theme:F})):z}),p(R,G)}return null}),l&&!b&&$.push(R=>{const F=Iv(T({},R,{defaultTheme:n,themeId:t}));return rye(R,nye(l,F),F,l)}),v||$.push(a);const k=$.length-_.length;if(Array.isArray(C)&&k>0){const R=new Array(k).fill("");E=[...C,...R],E.raw=[...C.raw,...R]}const I=y(E,...$);return i.muiName&&(I.muiName=i.muiName),I};return y.withConfig&&(w.withConfig=y.withConfig),w}}const sye=Cj(),lye=sye;function Y_(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:O_(t.components[n].defaultProps,r)}function $j({props:e,name:t,defaultTheme:n,themeId:r}){let o=lh(n);return r&&(o=o[r]||o),Y_({theme:o,name:t,props:e})}function K_(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function cye(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 nc(e){if(e.type)return e;if(e.charAt(0)==="#")return nc(cye(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Xs(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(Xs(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}function o0(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,a)=>a<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 uye(e){e=nc(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),i=(c,u=(c+n/30)%12)=>o-a*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),o0({type:s,values:l})}function FR(e){e=nc(e);let t=e.type==="hsl"||e.type==="hsla"?nc(uye(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 dye(e,t){const n=FR(e),r=FR(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Tt(e,t){return e=nc(e),t=K_(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,o0(e)}function a0(e,t){if(e=nc(e),t=K_(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 o0(e)}function i0(e,t){if(e=nc(e),t=K_(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 o0(e)}const fye=["component","direction","spacing","divider","children","className","useFlexGap"],pye=r0(),hye=lye("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function mye(e){return $j({props:e,name:"MuiStack",defaultTheme:pye})}function vye(e,t){const n=S.Children.toArray(e).filter(Boolean);return n.reduce((r,o,a)=>(r.push(o),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],yye=({ownerState:e,theme:t})=>{let n=T({display:"flex",flexDirection:"column"},ko({theme:t},Bl({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=U_(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),a=Bl({values:e.direction,base:o}),i=Bl({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((l,c,u)=>{if(!a[l]){const p=c>0?a[u[c-1]]:"column";a[l]=p}}),n=Hr(n,ko({theme:t},i,(l,c)=>e.useFlexGap?{gap:tc(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${gye(c?a[c]:e.direction)}`]:tc(r,l)}}))}return n=oge(t.breakpoints,n),n};function bye(e={}){const{createStyledComponent:t=hye,useThemeProps:n=mye,componentName:r="MuiStack"}=e,o=()=>Xe({root:["root"]},l=>et(r,l),{}),a=t(yye);return S.forwardRef(function(l,c){const u=n(l),f=q_(u),{component:p="div",direction:m="column",spacing:b=0,divider:v,children:x,className:g,useFlexGap:y=!1}=f,w=Oe(f,fye),C={direction:m,spacing:b,useFlexGap:y},_=o();return O.jsx(a,T({as:p,ownerState:C,ref:c,className:Ie(_.root,g)},w,{children:v?vye(x,v):x}))})}function xye(e,t){return T({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const wye=["mode","contrastThreshold","tonalOffset"],zR={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:xp.white,default:xp.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}},lx={text:{primary:xp.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:xp.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 BR(e,t,n,r){const o=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=i0(e.main,o):t==="dark"&&(e.dark=a0(e.main,a)))}function Cye(e="light"){return e==="dark"?{main:Vc[200],light:Vc[50],dark:Vc[400]}:{main:Vc[700],light:Vc[400],dark:Vc[800]}}function $ye(e="light"){return e==="dark"?{main:Bc[200],light:Bc[50],dark:Bc[400]}:{main:Bc[500],light:Bc[300],dark:Bc[700]}}function Sye(e="light"){return e==="dark"?{main:zc[500],light:zc[300],dark:zc[700]}:{main:zc[700],light:zc[400],dark:zc[800]}}function _ye(e="light"){return e==="dark"?{main:Uc[400],light:Uc[300],dark:Uc[700]}:{main:Uc[700],light:Uc[500],dark:Uc[900]}}function Eye(e="light"){return e==="dark"?{main:Wc[400],light:Wc[300],dark:Wc[700]}:{main:Wc[800],light:Wc[500],dark:Wc[900]}}function Pye(e="light"){return e==="dark"?{main:nf[400],light:nf[300],dark:nf[700]}:{main:"#ed6c02",light:nf[500],dark:nf[900]}}function Tye(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Oe(e,wye),a=e.primary||Cye(t),i=e.secondary||$ye(t),s=e.error||Sye(t),l=e.info||_ye(t),c=e.success||Eye(t),u=e.warning||Pye(t);function f(v){return dye(v,lx.text.primary)>=n?lx.text.primary:zR.text.primary}const p=({color:v,name:x,mainShade:g=500,lightShade:y=300,darkShade:w=700})=>{if(v=T({},v),!v.main&&v[g]&&(v.main=v[g]),!v.hasOwnProperty("main"))throw new Error(Xs(11,x?` (${x})`:"",g));if(typeof v.main!="string")throw new Error(Xs(12,x?` (${x})`:"",JSON.stringify(v.main)));return BR(v,"light",y,r),BR(v,"dark",w,r),v.contrastText||(v.contrastText=f(v.main)),v},m={dark:lx,light:zR};return Hr(T({common:T({},xp),mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:$me,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r},m[t]),o)}const kye=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Oye(e){return Math.round(e*1e5)/1e5}const VR={textTransform:"uppercase"},UR='"Roboto", "Helvetica", "Arial", sans-serif';function Rye(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=UR,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:f}=n,p=Oe(n,kye),m=o/14,b=f||(g=>`${g/c*m}rem`),v=(g,y,w,C,_)=>T({fontFamily:r,fontWeight:g,fontSize:b(y),lineHeight:w},r===UR?{letterSpacing:`${Oye(C/y)}em`}:{},_,u),x={h1:v(a,96,1.167,-1.5),h2:v(a,60,1.2,-.5),h3:v(i,48,1.167,0),h4:v(i,34,1.235,.25),h5:v(i,24,1.334,0),h6:v(s,20,1.6,.15),subtitle1:v(i,16,1.75,.15),subtitle2:v(s,14,1.57,.1),body1:v(i,16,1.5,.15),body2:v(i,14,1.43,.15),button:v(s,14,1.75,.4,VR),caption:v(i,12,1.66,.4),overline:v(i,12,2.66,1,VR),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Hr(T({htmlFontSize:c,pxToRem:b,fontFamily:r,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:l},x),p,{clone:!1})}const Dye=.2,Mye=.14,Iye=.12;function Ln(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Dye})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Mye})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Iye})`].join(",")}const Aye=["none",Ln(0,2,1,-1,0,1,1,0,0,1,3,0),Ln(0,3,1,-2,0,2,2,0,0,1,5,0),Ln(0,3,3,-2,0,3,4,0,0,1,8,0),Ln(0,2,4,-1,0,4,5,0,0,1,10,0),Ln(0,3,5,-1,0,5,8,0,0,1,14,0),Ln(0,3,5,-1,0,6,10,0,0,1,18,0),Ln(0,4,5,-2,0,7,10,1,0,2,16,1),Ln(0,5,5,-3,0,8,10,1,0,3,14,2),Ln(0,5,6,-3,0,9,12,1,0,3,16,2),Ln(0,6,6,-3,0,10,14,1,0,4,18,3),Ln(0,6,7,-4,0,11,15,1,0,4,20,3),Ln(0,7,8,-4,0,12,17,2,0,5,22,4),Ln(0,7,8,-4,0,13,19,2,0,5,24,4),Ln(0,7,9,-4,0,14,21,2,0,5,26,4),Ln(0,8,9,-5,0,15,22,2,0,6,28,5),Ln(0,8,10,-5,0,16,24,2,0,6,30,5),Ln(0,8,11,-5,0,17,26,2,0,6,32,5),Ln(0,9,11,-5,0,18,28,2,0,7,34,6),Ln(0,9,12,-6,0,19,29,2,0,7,36,6),Ln(0,10,13,-6,0,20,31,3,0,8,38,7),Ln(0,10,13,-6,0,21,33,3,0,8,40,7),Ln(0,10,14,-6,0,22,35,3,0,8,42,7),Ln(0,11,14,-7,0,23,36,3,0,9,44,8),Ln(0,11,15,-7,0,24,38,3,0,9,46,8)],Nye=Aye,jye=["duration","easing","delay"],Lye={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)"},Sj={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function WR(e){return`${Math.round(e)}ms`}function Fye(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function zye(e){const t=T({},Lye,e.easing),n=T({},Sj,e.duration);return T({getAutoHeightDuration:Fye,create:(o=["all"],a={})=>{const{duration:i=n.standard,easing:s=t.easeInOut,delay:l=0}=a;return Oe(a,jye),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof i=="string"?i:WR(i)} ${s} ${typeof l=="string"?l:WR(l)}`).join(",")}},e,{easing:t,duration:n})}const Bye={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Vye=Bye,Uye=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Wye(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:a={}}=e,i=Oe(e,Uye);if(e.vars)throw new Error(Xs(18));const s=Tye(r),l=r0(e);let c=Hr(l,{mixins:xye(l.breakpoints,n),palette:s,shadows:Nye.slice(),typography:Rye(s,a),transitions:zye(o),zIndex:T({},Vye)});return c=Hr(c,i),c=t.reduce((u,f)=>Hr(u,f),c),c.unstable_sxConfig=T({},n0,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(f){return H_({sx:f,theme:this})},c}const Hye=Wye(),s0=Hye;function nr(){const e=lh(s0);return e[Ny]||e}function Ke({props:e,name:t}){return $j({props:e,name:t,defaultTheme:s0,themeId:Ny})}const ta=e=>Wf(e)&&e!=="classes",J_=Wf,Gye=Cj({themeId:Ny,defaultTheme:s0,rootShouldForwardProp:ta}),de=Gye,qye=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},HR=qye;function Yye(e){return et("MuiSvgIcon",e)}Qe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Kye=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Jye=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${je(t)}`,`fontSize${je(n)}`]};return Xe(o,Yye,r)},Zye=de("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${je(n.color)}`],t[`fontSize${je(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,a,i,s,l,c,u,f,p,m,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(i=a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.active,disabled:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.disabled,inherit:void 0}[t.color]}}),_j=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:f,viewBox:p="0 0 24 24"}=r,m=Oe(r,Kye),b=S.isValidElement(o)&&o.type==="svg",v=T({},r,{color:i,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:b}),x={};u||(x.viewBox=p);const g=Jye(v);return O.jsxs(Zye,T({as:s,className:Ie(g.root,a),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},x,m,b&&o.props,{ownerState:v,children:[b?o.props.children:o,f?O.jsx("title",{children:f}):null]}))});_j.muiName="SvgIcon";const sC=_j;function rr(e,t){function n(r,o){return O.jsx(sC,T({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=sC.muiName,S.memo(S.forwardRef(n))}const Xye={configure:e=>{Z5.configure(e)}},Qye=Object.freeze(Object.defineProperty({__proto__:null,capitalize:je,createChainedFunction:Eg,createSvgIcon:rr,debounce:ah,deprecatedPropType:Ome,isMuiElement:Eu,ownerDocument:zn,ownerWindow:$i,requirePropFactory:Rme,setRef:wp,unstable_ClassNameGenerator:Xye,unstable_useEnhancedEffect:Kn,unstable_useId:Ya,unsupportedProp:Ime,useControlled:Cr,useEventCallback:mt,useForkRef:sn,useIsFocusVisible:Ay},Symbol.toStringTag,{value:"Module"}));var _n={};/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Z_=Symbol.for("react.element"),X_=Symbol.for("react.portal"),l0=Symbol.for("react.fragment"),c0=Symbol.for("react.strict_mode"),u0=Symbol.for("react.profiler"),d0=Symbol.for("react.provider"),f0=Symbol.for("react.context"),e0e=Symbol.for("react.server_context"),p0=Symbol.for("react.forward_ref"),h0=Symbol.for("react.suspense"),m0=Symbol.for("react.suspense_list"),v0=Symbol.for("react.memo"),g0=Symbol.for("react.lazy"),t0e=Symbol.for("react.offscreen"),Ej;Ej=Symbol.for("react.module.reference");function _a(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Z_:switch(e=e.type,e){case l0:case u0:case c0:case h0:case m0:return e;default:switch(e=e&&e.$$typeof,e){case e0e:case f0:case p0:case g0:case v0:case d0:return e;default:return t}}case X_:return t}}}_n.ContextConsumer=f0;_n.ContextProvider=d0;_n.Element=Z_;_n.ForwardRef=p0;_n.Fragment=l0;_n.Lazy=g0;_n.Memo=v0;_n.Portal=X_;_n.Profiler=u0;_n.StrictMode=c0;_n.Suspense=h0;_n.SuspenseList=m0;_n.isAsyncMode=function(){return!1};_n.isConcurrentMode=function(){return!1};_n.isContextConsumer=function(e){return _a(e)===f0};_n.isContextProvider=function(e){return _a(e)===d0};_n.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Z_};_n.isForwardRef=function(e){return _a(e)===p0};_n.isFragment=function(e){return _a(e)===l0};_n.isLazy=function(e){return _a(e)===g0};_n.isMemo=function(e){return _a(e)===v0};_n.isPortal=function(e){return _a(e)===X_};_n.isProfiler=function(e){return _a(e)===u0};_n.isStrictMode=function(e){return _a(e)===c0};_n.isSuspense=function(e){return _a(e)===h0};_n.isSuspenseList=function(e){return _a(e)===m0};_n.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===l0||e===u0||e===c0||e===h0||e===m0||e===t0e||typeof e=="object"&&e!==null&&(e.$$typeof===g0||e.$$typeof===v0||e.$$typeof===d0||e.$$typeof===f0||e.$$typeof===p0||e.$$typeof===Ej||e.getModuleId!==void 0)};_n.typeOf=_a;function lC(e,t){return lC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},lC(e,t)}function Q_(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,lC(e,t)}function n0e(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function r0e(e,t){e.classList?e.classList.add(t):n0e(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function GR(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function o0e(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=GR(e.className,t):e.setAttribute("class",GR(e.className&&e.className.baseVal||"",t))}const qR={disabled:!1},Rg=M.createContext(null);var Pj=function(t){return t.scrollTop},_f="unmounted",Tl="exited",kl="entering",eu="entered",cC="exiting",ss=function(e){Q_(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var i=o,s=i&&!i.isMounting?r.enter:r.appear,l;return a.appearStatus=null,r.in?s?(l=Tl,a.appearStatus=kl):l=eu:r.unmountOnExit||r.mountOnEnter?l=_f:l=Tl,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===_f?{status:Tl}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var a=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==kl&&i!==eu&&(a=kl):(i===kl||i===eu)&&(a=cC)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,a,i,s;return a=i=s=o,o!=null&&typeof o!="number"&&(a=o.exit,i=o.enter,s=o.appear!==void 0?o.appear:i),{exit:a,enter:i,appear:s}},n.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===kl){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:Cf.findDOMNode(this);i&&Pj(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Tl&&this.setState({status:_f})},n.performEnter=function(o){var a=this,i=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[Cf.findDOMNode(this),s],c=l[0],u=l[1],f=this.getTimeouts(),p=s?f.appear:f.enter;if(!o&&!i||qR.disabled){this.safeSetState({status:eu},function(){a.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:kl},function(){a.props.onEntering(c,u),a.onTransitionEnd(p,function(){a.safeSetState({status:eu},function(){a.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,a=this.props.exit,i=this.getTimeouts(),s=this.props.nodeRef?void 0:Cf.findDOMNode(this);if(!a||qR.disabled){this.safeSetState({status:Tl},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:cC},function(){o.props.onExiting(s),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:Tl},function(){o.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},n.setNextCallback=function(o){var a=this,i=!0;return this.nextCallback=function(s){i&&(i=!1,a.nextCallback=null,o(s))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(o,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:Cf.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!i||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===_f)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var s=Oe(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return M.createElement(Rg.Provider,{value:null},typeof i=="function"?i(o,s):M.cloneElement(M.Children.only(i),s))},t}(M.Component);ss.contextType=Rg;ss.propTypes={};function Gc(){}ss.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Gc,onEntering:Gc,onEntered:Gc,onExit:Gc,onExiting:Gc,onExited:Gc};ss.UNMOUNTED=_f;ss.EXITED=Tl;ss.ENTERING=kl;ss.ENTERED=eu;ss.EXITING=cC;const y0=ss;var a0e=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return r0e(t,r)})},cx=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return o0e(t,r)})},e2=function(e){Q_(t,e);function t(){for(var r,o=arguments.length,a=new Array(o),i=0;ie.scrollTop;function Hu(e,t){var n,r;const{timeout:o,easing:a,style:i={}}=e;return{duration:(n=i.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=i.transitionTimingFunction)!=null?r:typeof a=="object"?a[t.mode]:a,delay:i.transitionDelay}}function p0e(e){return et("MuiCollapse",e)}Qe("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const h0e=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],m0e=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Xe(r,p0e,n)},v0e=de("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>T({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&T({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),g0e=de("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>T({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),y0e=de("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>T({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),kj=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiCollapse"}),{addEndListener:o,children:a,className:i,collapsedSize:s="0px",component:l,easing:c,in:u,onEnter:f,onEntered:p,onEntering:m,onExit:b,onExited:v,onExiting:x,orientation:g="vertical",style:y,timeout:w=Sj.standard,TransitionComponent:C=y0}=r,_=Oe(r,h0e),$=T({},r,{orientation:g,collapsedSize:s}),E=m0e($),k=nr(),I=S.useRef(),R=S.useRef(null),F=S.useRef(),U=typeof s=="number"?`${s}px`:s,G=g==="horizontal",B=G?"width":"height";S.useEffect(()=>()=>{clearTimeout(I.current)},[]);const z=S.useRef(null),Y=sn(n,z),Q=V=>Z=>{if(V){const re=z.current;Z===void 0?V(re):V(re,Z)}},H=()=>R.current?R.current[G?"clientWidth":"clientHeight"]:0,J=Q((V,Z)=>{R.current&&G&&(R.current.style.position="absolute"),V.style[B]=U,f&&f(V,Z)}),X=Q((V,Z)=>{const re=H();R.current&&G&&(R.current.style.position="");const{duration:le,easing:xe}=Hu({style:y,timeout:w,easing:c},{mode:"enter"});if(w==="auto"){const fe=k.transitions.getAutoHeightDuration(re);V.style.transitionDuration=`${fe}ms`,F.current=fe}else V.style.transitionDuration=typeof le=="string"?le:`${le}ms`;V.style[B]=`${re}px`,V.style.transitionTimingFunction=xe,m&&m(V,Z)}),L=Q((V,Z)=>{V.style[B]="auto",p&&p(V,Z)}),K=Q(V=>{V.style[B]=`${H()}px`,b&&b(V)}),q=Q(v),D=Q(V=>{const Z=H(),{duration:re,easing:le}=Hu({style:y,timeout:w,easing:c},{mode:"exit"});if(w==="auto"){const xe=k.transitions.getAutoHeightDuration(Z);V.style.transitionDuration=`${xe}ms`,F.current=xe}else V.style.transitionDuration=typeof re=="string"?re:`${re}ms`;V.style[B]=U,V.style.transitionTimingFunction=le,x&&x(V)}),N=V=>{w==="auto"&&(I.current=setTimeout(V,F.current||0)),o&&o(z.current,V)};return O.jsx(C,T({in:u,onEnter:J,onEntered:L,onEntering:X,onExit:K,onExited:q,onExiting:D,addEndListener:N,nodeRef:z,timeout:w==="auto"?null:w},_,{children:(V,Z)=>O.jsx(v0e,T({as:l,className:Ie(E.root,i,{entered:E.entered,exited:!u&&U==="0px"&&E.hidden}[V]),style:T({[G?"minWidth":"minHeight"]:U},y),ownerState:T({},$,{state:V}),ref:Y},Z,{children:O.jsx(g0e,{ownerState:T({},$,{state:V}),className:E.wrapper,ref:R,children:O.jsx(y0e,{ownerState:T({},$,{state:V}),className:E.wrapperInner,children:a})})}))}))});kj.muiSupportAuto=!0;const b0e=kj;function x0e(e){return et("MuiPaper",e)}Qe("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const w0e=["className","component","elevation","square","variant"],C0e=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Xe(a,x0e,o)},$0e=de("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return T({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&T({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Tt("#fff",HR(t.elevation))}, ${Tt("#fff",HR(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),S0e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiPaper"}),{className:o,component:a="div",elevation:i=1,square:s=!1,variant:l="elevation"}=r,c=Oe(r,w0e),u=T({},r,{component:a,elevation:i,square:s,variant:l}),f=C0e(u);return O.jsx($0e,T({as:a,ownerState:u,className:Ie(f.root,o),ref:n},c))}),ls=S0e,_0e=S.createContext({}),Oj=_0e;function E0e(e){return et("MuiAccordion",e)}const P0e=Qe("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),zm=P0e,T0e=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],k0e=e=>{const{classes:t,square:n,expanded:r,disabled:o,disableGutters:a}=e;return Xe({root:["root",!n&&"rounded",r&&"expanded",o&&"disabled",!a&&"gutters"],region:["region"]},E0e,t)},O0e=de(ls,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${zm.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&:before":{display:"none"}},[`&.${zm.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${zm.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e,ownerState:t})=>T({},!t.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!t.disableGutters&&{[`&.${zm.expanded}`]:{margin:"16px 0"}})),R0e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiAccordion"}),{children:o,className:a,defaultExpanded:i=!1,disabled:s=!1,disableGutters:l=!1,expanded:c,onChange:u,square:f=!1,TransitionComponent:p=b0e,TransitionProps:m}=r,b=Oe(r,T0e),[v,x]=Cr({controlled:c,default:i,name:"Accordion",state:"expanded"}),g=S.useCallback(E=>{x(!v),u&&u(E,!v)},[v,u,x]),[y,...w]=S.Children.toArray(o),C=S.useMemo(()=>({expanded:v,disabled:s,disableGutters:l,toggle:g}),[v,s,l,g]),_=T({},r,{square:f,disabled:s,disableGutters:l,expanded:v}),$=k0e(_);return O.jsxs(O0e,T({className:Ie($.root,a),ref:n,ownerState:_,square:f},b,{children:[O.jsx(Oj.Provider,{value:C,children:y}),O.jsx(p,T({in:v,timeout:"auto"},m,{children:O.jsx("div",{"aria-labelledby":y.props.id,id:y.props["aria-controls"],role:"region",className:$.region,children:w})}))]}))}),D0e=R0e;function M0e(e){return et("MuiAccordionDetails",e)}Qe("MuiAccordionDetails",["root"]);const I0e=["className"],A0e=e=>{const{classes:t}=e;return Xe({root:["root"]},M0e,t)},N0e=de("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),j0e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiAccordionDetails"}),{className:o}=r,a=Oe(r,I0e),i=r,s=A0e(i);return O.jsx(N0e,T({className:Ie(s.root,o),ref:n,ownerState:i},a))}),L0e=j0e;function F0e(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:i,in:s,onExited:l,timeout:c}=e,[u,f]=S.useState(!1),p=Ie(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),m={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},b=Ie(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&f(!0),S.useEffect(()=>{if(!s&&l!=null){const v=setTimeout(l,c);return()=>{clearTimeout(v)}}},[l,s,c]),O.jsx("span",{className:p,style:m,children:O.jsx("span",{className:b})})}const z0e=Qe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),da=z0e,B0e=["center","classes","className"];let b0=e=>e,YR,KR,JR,ZR;const uC=550,V0e=80,U0e=F_(YR||(YR=b0` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),W0e=F_(KR||(KR=b0` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),H0e=F_(JR||(JR=b0` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),G0e=de("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),q0e=de(F0e,{name:"MuiTouchRipple",slot:"Ripple"})(ZR||(ZR=b0` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),da.rippleVisible,U0e,uC,({theme:e})=>e.transitions.easing.easeInOut,da.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,da.child,da.childLeaving,W0e,uC,({theme:e})=>e.transitions.easing.easeInOut,da.childPulsate,H0e,({theme:e})=>e.transitions.easing.easeInOut),Y0e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i}=r,s=Oe(r,B0e),[l,c]=S.useState([]),u=S.useRef(0),f=S.useRef(null);S.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const p=S.useRef(!1),m=S.useRef(0),b=S.useRef(null),v=S.useRef(null);S.useEffect(()=>()=>{m.current&&clearTimeout(m.current)},[]);const x=S.useCallback(C=>{const{pulsate:_,rippleX:$,rippleY:E,rippleSize:k,cb:I}=C;c(R=>[...R,O.jsx(q0e,{classes:{ripple:Ie(a.ripple,da.ripple),rippleVisible:Ie(a.rippleVisible,da.rippleVisible),ripplePulsate:Ie(a.ripplePulsate,da.ripplePulsate),child:Ie(a.child,da.child),childLeaving:Ie(a.childLeaving,da.childLeaving),childPulsate:Ie(a.childPulsate,da.childPulsate)},timeout:uC,pulsate:_,rippleX:$,rippleY:E,rippleSize:k},u.current)]),u.current+=1,f.current=I},[a]),g=S.useCallback((C={},_={},$=()=>{})=>{const{pulsate:E=!1,center:k=o||_.pulsate,fakeElement:I=!1}=_;if((C==null?void 0:C.type)==="mousedown"&&p.current){p.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(p.current=!0);const R=I?null:v.current,F=R?R.getBoundingClientRect():{width:0,height:0,left:0,top:0};let U,G,B;if(k||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)U=Math.round(F.width/2),G=Math.round(F.height/2);else{const{clientX:z,clientY:Y}=C.touches&&C.touches.length>0?C.touches[0]:C;U=Math.round(z-F.left),G=Math.round(Y-F.top)}if(k)B=Math.sqrt((2*F.width**2+F.height**2)/3),B%2===0&&(B+=1);else{const z=Math.max(Math.abs((R?R.clientWidth:0)-U),U)*2+2,Y=Math.max(Math.abs((R?R.clientHeight:0)-G),G)*2+2;B=Math.sqrt(z**2+Y**2)}C!=null&&C.touches?b.current===null&&(b.current=()=>{x({pulsate:E,rippleX:U,rippleY:G,rippleSize:B,cb:$})},m.current=setTimeout(()=>{b.current&&(b.current(),b.current=null)},V0e)):x({pulsate:E,rippleX:U,rippleY:G,rippleSize:B,cb:$})},[o,x]),y=S.useCallback(()=>{g({},{pulsate:!0})},[g]),w=S.useCallback((C,_)=>{if(clearTimeout(m.current),(C==null?void 0:C.type)==="touchend"&&b.current){b.current(),b.current=null,m.current=setTimeout(()=>{w(C,_)});return}b.current=null,c($=>$.length>0?$.slice(1):$),f.current=_},[]);return S.useImperativeHandle(n,()=>({pulsate:y,start:g,stop:w}),[y,g,w]),O.jsx(G0e,T({className:Ie(da.root,a.root,i),ref:v},s,{children:O.jsx(r2,{component:null,exit:!0,children:l})}))}),K0e=Y0e;function J0e(e){return et("MuiButtonBase",e)}const Z0e=Qe("MuiButtonBase",["root","disabled","focusVisible"]),X0e=Z0e,Q0e=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],e1e=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Xe({root:["root",t&&"disabled",n&&"focusVisible"]},J0e,o);return n&&r&&(i.root+=` ${r}`),i},t1e=de("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${X0e.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),n1e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:m="a",onBlur:b,onClick:v,onContextMenu:x,onDragLeave:g,onFocus:y,onFocusVisible:w,onKeyDown:C,onKeyUp:_,onMouseDown:$,onMouseLeave:E,onMouseUp:k,onTouchEnd:I,onTouchMove:R,onTouchStart:F,tabIndex:U=0,TouchRippleProps:G,touchRippleRef:B,type:z}=r,Y=Oe(r,Q0e),Q=S.useRef(null),H=S.useRef(null),J=sn(H,B),{isFocusVisibleRef:X,onFocus:L,onBlur:K,ref:q}=Ay(),[D,N]=S.useState(!1);c&&D&&N(!1),S.useImperativeHandle(o,()=>({focusVisible:()=>{N(!0),Q.current.focus()}}),[]);const[V,Z]=S.useState(!1);S.useEffect(()=>{Z(!0)},[]);const re=V&&!u&&!c;S.useEffect(()=>{D&&p&&!u&&V&&H.current.pulsate()},[u,p,D,V]);function le(Te,it,ct=f){return mt(gt=>(it&&it(gt),!ct&&H.current&&H.current[Te](gt),!0))}const xe=le("start",$),fe=le("stop",x),ge=le("stop",g),he=le("stop",k),_e=le("stop",Te=>{D&&Te.preventDefault(),E&&E(Te)}),ve=le("start",F),Be=le("stop",I),Ue=le("stop",R),ze=le("stop",Te=>{K(Te),X.current===!1&&N(!1),b&&b(Te)},!1),He=mt(Te=>{Q.current||(Q.current=Te.currentTarget),L(Te),X.current===!0&&(N(!0),w&&w(Te)),y&&y(Te)}),be=()=>{const Te=Q.current;return l&&l!=="button"&&!(Te.tagName==="A"&&Te.href)},we=S.useRef(!1),Ce=mt(Te=>{p&&!we.current&&D&&H.current&&Te.key===" "&&(we.current=!0,H.current.stop(Te,()=>{H.current.start(Te)})),Te.target===Te.currentTarget&&be()&&Te.key===" "&&Te.preventDefault(),C&&C(Te),Te.target===Te.currentTarget&&be()&&Te.key==="Enter"&&!c&&(Te.preventDefault(),v&&v(Te))}),qe=mt(Te=>{p&&Te.key===" "&&H.current&&D&&!Te.defaultPrevented&&(we.current=!1,H.current.stop(Te,()=>{H.current.pulsate(Te)})),_&&_(Te),v&&Te.target===Te.currentTarget&&be()&&Te.key===" "&&!Te.defaultPrevented&&v(Te)});let rt=l;rt==="button"&&(Y.href||Y.to)&&(rt=m);const Ae={};rt==="button"?(Ae.type=z===void 0?"button":z,Ae.disabled=c):(!Y.href&&!Y.to&&(Ae.role="button"),c&&(Ae["aria-disabled"]=c));const Le=sn(n,q,Q),Fe=T({},r,{centerRipple:a,component:l,disabled:c,disableRipple:u,disableTouchRipple:f,focusRipple:p,tabIndex:U,focusVisible:D}),Pe=e1e(Fe);return O.jsxs(t1e,T({as:rt,className:Ie(Pe.root,s),ownerState:Fe,onBlur:ze,onClick:v,onContextMenu:fe,onFocus:He,onKeyDown:Ce,onKeyUp:qe,onMouseDown:xe,onMouseLeave:_e,onMouseUp:he,onDragLeave:ge,onTouchEnd:Be,onTouchMove:Ue,onTouchStart:ve,ref:Le,tabIndex:c?-1:U,type:z},Ae,Y,{children:[i,re?O.jsx(K0e,T({ref:J,center:a},G)):null]}))}),Ca=n1e;function r1e(e){return et("MuiAccordionSummary",e)}const o1e=Qe("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),vu=o1e,a1e=["children","className","expandIcon","focusVisibleClassName","onClick"],i1e=e=>{const{classes:t,expanded:n,disabled:r,disableGutters:o}=e;return Xe({root:["root",n&&"expanded",r&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},r1e,t)},s1e=de(Ca,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const n={duration:e.transitions.duration.shortest};return T({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],n),[`&.${vu.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${vu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${vu.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${vu.expanded}`]:{minHeight:64}})}),l1e=de("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>T({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${vu.expanded}`]:{margin:"20px 0"}})),c1e=de("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${vu.expanded}`]:{transform:"rotate(180deg)"}})),u1e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiAccordionSummary"}),{children:o,className:a,expandIcon:i,focusVisibleClassName:s,onClick:l}=r,c=Oe(r,a1e),{disabled:u=!1,disableGutters:f,expanded:p,toggle:m}=S.useContext(Oj),b=g=>{m&&m(g),l&&l(g)},v=T({},r,{expanded:p,disabled:u,disableGutters:f}),x=i1e(v);return O.jsxs(s1e,T({focusRipple:!1,disableRipple:!0,disabled:u,component:"div","aria-expanded":p,className:Ie(x.root,a),focusVisibleClassName:Ie(x.focusVisible,s),onClick:b,ref:n,ownerState:v},c,{children:[O.jsx(l1e,{className:x.content,ownerState:v,children:o}),i&&O.jsx(c1e,{className:x.expandIconWrapper,ownerState:v,children:i})]}))}),d1e=u1e;function f1e(e){return et("MuiIconButton",e)}const p1e=Qe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),h1e=p1e,m1e=["edge","children","className","color","disabled","disableFocusRipple","size"],v1e=e=>{const{classes:t,disabled:n,color:r,edge:o,size:a}=e,i={root:["root",n&&"disabled",r!=="default"&&`color${je(r)}`,o&&`edge${je(o)}`,`size${je(a)}`]};return Xe(i,f1e,t)},g1e=de(Ca,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${je(n.color)}`],n.edge&&t[`edge${je(n.edge)}`],t[`size${je(n.size)}`]]}})(({theme:e,ownerState:t})=>T({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return T({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&T({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":T({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${h1e.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),y1e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:i,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium"}=r,f=Oe(r,m1e),p=T({},r,{edge:o,color:s,disabled:l,disableFocusRipple:c,size:u}),m=v1e(p);return O.jsx(g1e,T({className:Ie(m.root,i),centerRipple:!0,focusRipple:!c,disabled:l,ref:n,ownerState:p},f,{children:a}))}),tr=y1e,b1e=rr(O.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function x1e(e){return et("MuiTypography",e)}Qe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const w1e=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],C1e=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e,s={root:["root",a,e.align!=="inherit"&&`align${je(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Xe(s,x1e,i)},$1e=de("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${je(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>T({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),XR={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},S1e={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},_1e=e=>S1e[e]||e,E1e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTypography"}),o=_1e(r.color),a=q_(T({},r,{color:o})),{align:i="inherit",className:s,component:l,gutterBottom:c=!1,noWrap:u=!1,paragraph:f=!1,variant:p="body1",variantMapping:m=XR}=a,b=Oe(a,w1e),v=T({},a,{align:i,color:o,className:s,component:l,gutterBottom:c,noWrap:u,paragraph:f,variant:p,variantMapping:m}),x=l||(f?"p":m[p]||XR[p])||"span",g=C1e(v);return O.jsx($1e,T({as:x,ref:n,ownerState:v,className:Ie(g.root,s)},b))}),gn=E1e;function P1e(e){return et("MuiAppBar",e)}Qe("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const T1e=["className","color","enableColorOnDark","position"],k1e=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${je(t)}`,`position${je(n)}`]};return Xe(o,P1e,r)},Bm=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,O1e=de(ls,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${je(n.position)}`],t[`color${je(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return T({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&T({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&T({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&T({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Bm(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Bm(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:Bm(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Bm(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),R1e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiAppBar"}),{className:o,color:a="primary",enableColorOnDark:i=!1,position:s="fixed"}=r,l=Oe(r,T1e),c=T({},r,{color:a,position:s,enableColorOnDark:i}),u=k1e(c);return O.jsx(O1e,T({square:!0,component:"header",ownerState:c,elevation:4,className:Ie(u.root,o,s==="fixed"&&"mui-fixed"),ref:n},l))}),D1e=R1e;function yi(e){return typeof e=="string"}function Ef(e,t,n){return e===void 0||yi(e)?t:T({},t,{ownerState:T({},t.ownerState,n)})}function M1e(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const I1e={disableDefaultClasses:!1},A1e=S.createContext(I1e);function N1e(e){const{disableDefaultClasses:t}=S.useContext(A1e);return n=>t?"":e(n)}function Hf(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 al(e,t,n){return typeof e=="function"?e(t,n):e}function QR(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 j1e(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const m=Ie(o==null?void 0:o.className,r==null?void 0:r.className,a,n==null?void 0:n.className),b=T({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),v=T({},n,o,r);return m.length>0&&(v.className=m),Object.keys(b).length>0&&(v.style=b),{props:v,internalRef:void 0}}const i=Hf(T({},o,r)),s=QR(r),l=QR(o),c=t(i),u=Ie(c==null?void 0:c.className,n==null?void 0:n.className,a,o==null?void 0:o.className,r==null?void 0:r.className),f=T({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),p=T({},c,n,l,s);return u.length>0&&(p.className=u),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:c.ref}}const L1e=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function zt(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=Oe(e,L1e),s=a?{}:al(r,o),{props:l,internalRef:c}=j1e(T({},i,{externalSlotProps:s})),u=sn(c,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return Ef(n,T({},l,{ref:u}),o)}function F1e(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,a=k_({badgeContent:t,max:r});let i=n;n===!1&&t===0&&!o&&(i=!0);const{badgeContent:s,max:l=r}=i?a:e,c=s&&Number(s)>l?`${l}+`:s;return{badgeContent:s,invisible:i,max:l,displayValue:c}}const z1e=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function B1e(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function V1e(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function U1e(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||V1e(e))}function W1e(e){const t=[],n=[];return Array.from(e.querySelectorAll(z1e)).forEach((r,o)=>{const a=B1e(r);a===-1||!U1e(r)||(a===0?t.push(r):n.push({documentOrder:o,tabIndex:a,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function H1e(){return!0}function Rj(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=W1e,isEnabled:i=H1e,open:s}=e,l=S.useRef(!1),c=S.useRef(null),u=S.useRef(null),f=S.useRef(null),p=S.useRef(null),m=S.useRef(!1),b=S.useRef(null),v=sn(t.ref,b),x=S.useRef(null);S.useEffect(()=>{!s||!b.current||(m.current=!n)},[n,s]),S.useEffect(()=>{if(!s||!b.current)return;const w=zn(b.current);return b.current.contains(w.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),m.current&&b.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),S.useEffect(()=>{if(!s||!b.current)return;const w=zn(b.current),C=E=>{x.current=E,!(r||!i()||E.key!=="Tab")&&w.activeElement===b.current&&E.shiftKey&&(l.current=!0,u.current&&u.current.focus())},_=()=>{const E=b.current;if(E===null)return;if(!w.hasFocus()||!i()||l.current){l.current=!1;return}if(E.contains(w.activeElement)||r&&w.activeElement!==c.current&&w.activeElement!==u.current)return;if(w.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!m.current)return;let k=[];if((w.activeElement===c.current||w.activeElement===u.current)&&(k=a(b.current)),k.length>0){var I,R;const F=!!((I=x.current)!=null&&I.shiftKey&&((R=x.current)==null?void 0:R.key)==="Tab"),U=k[0],G=k[k.length-1];typeof U!="string"&&typeof G!="string"&&(F?G.focus():U.focus())}else E.focus()};w.addEventListener("focusin",_),w.addEventListener("keydown",C,!0);const $=setInterval(()=>{w.activeElement&&w.activeElement.tagName==="BODY"&&_()},50);return()=>{clearInterval($),w.removeEventListener("focusin",_),w.removeEventListener("keydown",C,!0)}},[n,r,o,i,s,a]);const g=w=>{f.current===null&&(f.current=w.relatedTarget),m.current=!0,p.current=w.target;const C=t.props.onFocus;C&&C(w)},y=w=>{f.current===null&&(f.current=w.relatedTarget),m.current=!0};return O.jsxs(S.Fragment,{children:[O.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),S.cloneElement(t,{ref:v,onFocus:g}),O.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelEnd"})]})}var $o="top",$a="bottom",Sa="right",So="left",o2="auto",ch=[$o,$a,Sa,So],Gu="start",_p="end",G1e="clippingParents",Dj="viewport",of="popper",q1e="reference",eD=ch.reduce(function(e,t){return e.concat([t+"-"+Gu,t+"-"+_p])},[]),Mj=[].concat(ch,[o2]).reduce(function(e,t){return e.concat([t,t+"-"+Gu,t+"-"+_p])},[]),Y1e="beforeRead",K1e="read",J1e="afterRead",Z1e="beforeMain",X1e="main",Q1e="afterMain",ebe="beforeWrite",tbe="write",nbe="afterWrite",rbe=[Y1e,K1e,J1e,Z1e,X1e,Q1e,ebe,tbe,nbe];function Si(e){return e?(e.nodeName||"").toLowerCase():null}function Yo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function rc(e){var t=Yo(e).Element;return e instanceof t||e instanceof Element}function va(e){var t=Yo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function a2(e){if(typeof ShadowRoot>"u")return!1;var t=Yo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function obe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},a=t.elements[n];!va(a)||!Si(a)||(Object.assign(a.style,r),Object.keys(o).forEach(function(i){var s=o[i];s===!1?a.removeAttribute(i):a.setAttribute(i,s===!0?"":s)}))})}function abe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],a=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=i.reduce(function(l,c){return l[c]="",l},{});!va(o)||!Si(o)||(Object.assign(o.style,s),Object.keys(a).forEach(function(l){o.removeAttribute(l)}))})}}const ibe={name:"applyStyles",enabled:!0,phase:"write",fn:obe,effect:abe,requires:["computeStyles"]};function bi(e){return e.split("-")[0]}var Vl=Math.max,Dg=Math.min,qu=Math.round;function dC(){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 Ij(){return!/^((?!chrome|android).)*safari/i.test(dC())}function Yu(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&va(e)&&(o=e.offsetWidth>0&&qu(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&qu(r.height)/e.offsetHeight||1);var i=rc(e)?Yo(e):window,s=i.visualViewport,l=!Ij()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/o,u=(r.top+(l&&s?s.offsetTop:0))/a,f=r.width/o,p=r.height/a;return{width:f,height:p,top:u,right:c+f,bottom:u+p,left:c,x:c,y:u}}function i2(e){var t=Yu(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 Aj(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&a2(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ts(e){return Yo(e).getComputedStyle(e)}function sbe(e){return["table","td","th"].indexOf(Si(e))>=0}function il(e){return((rc(e)?e.ownerDocument:e.document)||window.document).documentElement}function x0(e){return Si(e)==="html"?e:e.assignedSlot||e.parentNode||(a2(e)?e.host:null)||il(e)}function tD(e){return!va(e)||ts(e).position==="fixed"?null:e.offsetParent}function lbe(e){var t=/firefox/i.test(dC()),n=/Trident/i.test(dC());if(n&&va(e)){var r=ts(e);if(r.position==="fixed")return null}var o=x0(e);for(a2(o)&&(o=o.host);va(o)&&["html","body"].indexOf(Si(o))<0;){var a=ts(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function uh(e){for(var t=Yo(e),n=tD(e);n&&sbe(n)&&ts(n).position==="static";)n=tD(n);return n&&(Si(n)==="html"||Si(n)==="body"&&ts(n).position==="static")?t:n||lbe(e)||t}function s2(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Gf(e,t,n){return Vl(e,Dg(t,n))}function cbe(e,t,n){var r=Gf(e,t,n);return r>n?n:r}function Nj(){return{top:0,right:0,bottom:0,left:0}}function jj(e){return Object.assign({},Nj(),e)}function Lj(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var ube=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,jj(typeof t!="number"?t:Lj(t,ch))};function dbe(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,s=bi(n.placement),l=s2(s),c=[So,Sa].indexOf(s)>=0,u=c?"height":"width";if(!(!a||!i)){var f=ube(o.padding,n),p=i2(a),m=l==="y"?$o:So,b=l==="y"?$a:Sa,v=n.rects.reference[u]+n.rects.reference[l]-i[l]-n.rects.popper[u],x=i[l]-n.rects.reference[l],g=uh(a),y=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,w=v/2-x/2,C=f[m],_=y-p[u]-f[b],$=y/2-p[u]/2+w,E=Gf(C,$,_),k=l;n.modifiersData[r]=(t={},t[k]=E,t.centerOffset=E-$,t)}}function fbe(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)||Aj(t.elements.popper,o)&&(t.elements.arrow=o))}const pbe={name:"arrow",enabled:!0,phase:"main",fn:dbe,effect:fbe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ku(e){return e.split("-")[1]}var hbe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mbe(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:qu(n*o)/o||0,y:qu(r*o)/o||0}}function nD(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,p=i.x,m=p===void 0?0:p,b=i.y,v=b===void 0?0:b,x=typeof u=="function"?u({x:m,y:v}):{x:m,y:v};m=x.x,v=x.y;var g=i.hasOwnProperty("x"),y=i.hasOwnProperty("y"),w=So,C=$o,_=window;if(c){var $=uh(n),E="clientHeight",k="clientWidth";if($===Yo(n)&&($=il(n),ts($).position!=="static"&&s==="absolute"&&(E="scrollHeight",k="scrollWidth")),$=$,o===$o||(o===So||o===Sa)&&a===_p){C=$a;var I=f&&$===_&&_.visualViewport?_.visualViewport.height:$[E];v-=I-r.height,v*=l?1:-1}if(o===So||(o===$o||o===$a)&&a===_p){w=Sa;var R=f&&$===_&&_.visualViewport?_.visualViewport.width:$[k];m-=R-r.width,m*=l?1:-1}}var F=Object.assign({position:s},c&&hbe),U=u===!0?mbe({x:m,y:v},Yo(n)):{x:m,y:v};if(m=U.x,v=U.y,l){var G;return Object.assign({},F,(G={},G[C]=y?"0":"",G[w]=g?"0":"",G.transform=(_.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",G))}return Object.assign({},F,(t={},t[C]=y?v+"px":"",t[w]=g?m+"px":"",t.transform="",t))}function vbe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,a=n.adaptive,i=a===void 0?!0:a,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:bi(t.placement),variation:Ku(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,nD(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,nD(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const gbe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:vbe,data:{}};var Vm={passive:!0};function ybe(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=o===void 0?!0:o,i=r.resize,s=i===void 0?!0:i,l=Yo(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(u){u.addEventListener("scroll",n.update,Vm)}),s&&l.addEventListener("resize",n.update,Vm),function(){a&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Vm)}),s&&l.removeEventListener("resize",n.update,Vm)}}const bbe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ybe,data:{}};var xbe={left:"right",right:"left",bottom:"top",top:"bottom"};function Av(e){return e.replace(/left|right|bottom|top/g,function(t){return xbe[t]})}var wbe={start:"end",end:"start"};function rD(e){return e.replace(/start|end/g,function(t){return wbe[t]})}function l2(e){var t=Yo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function c2(e){return Yu(il(e)).left+l2(e).scrollLeft}function Cbe(e,t){var n=Yo(e),r=il(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;var c=Ij();(c||!c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s+c2(e),y:l}}function $be(e){var t,n=il(e),r=l2(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Vl(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Vl(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+c2(e),l=-r.scrollTop;return ts(o||n).direction==="rtl"&&(s+=Vl(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}function u2(e){var t=ts(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Fj(e){return["html","body","#document"].indexOf(Si(e))>=0?e.ownerDocument.body:va(e)&&u2(e)?e:Fj(x0(e))}function qf(e,t){var n;t===void 0&&(t=[]);var r=Fj(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=Yo(r),i=o?[a].concat(a.visualViewport||[],u2(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(qf(x0(i)))}function fC(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Sbe(e,t){var n=Yu(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 oD(e,t,n){return t===Dj?fC(Cbe(e,n)):rc(t)?Sbe(t,n):fC($be(il(e)))}function _be(e){var t=qf(x0(e)),n=["absolute","fixed"].indexOf(ts(e).position)>=0,r=n&&va(e)?uh(e):e;return rc(r)?t.filter(function(o){return rc(o)&&Aj(o,r)&&Si(o)!=="body"}):[]}function Ebe(e,t,n,r){var o=t==="clippingParents"?_be(e):[].concat(t),a=[].concat(o,[n]),i=a[0],s=a.reduce(function(l,c){var u=oD(e,c,r);return l.top=Vl(u.top,l.top),l.right=Dg(u.right,l.right),l.bottom=Dg(u.bottom,l.bottom),l.left=Vl(u.left,l.left),l},oD(e,i,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function zj(e){var t=e.reference,n=e.element,r=e.placement,o=r?bi(r):null,a=r?Ku(r):null,i=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case $o:l={x:i,y:t.y-n.height};break;case $a:l={x:i,y:t.y+t.height};break;case Sa:l={x:t.x+t.width,y:s};break;case So:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=o?s2(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(a){case Gu:l[c]=l[c]-(t[u]/2-n[u]/2);break;case _p:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Ep(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,a=n.strategy,i=a===void 0?e.strategy:a,s=n.boundary,l=s===void 0?G1e:s,c=n.rootBoundary,u=c===void 0?Dj:c,f=n.elementContext,p=f===void 0?of:f,m=n.altBoundary,b=m===void 0?!1:m,v=n.padding,x=v===void 0?0:v,g=jj(typeof x!="number"?x:Lj(x,ch)),y=p===of?q1e:of,w=e.rects.popper,C=e.elements[b?y:p],_=Ebe(rc(C)?C:C.contextElement||il(e.elements.popper),l,u,i),$=Yu(e.elements.reference),E=zj({reference:$,element:w,strategy:"absolute",placement:o}),k=fC(Object.assign({},w,E)),I=p===of?k:$,R={top:_.top-I.top+g.top,bottom:I.bottom-_.bottom+g.bottom,left:_.left-I.left+g.left,right:I.right-_.right+g.right},F=e.modifiersData.offset;if(p===of&&F){var U=F[o];Object.keys(R).forEach(function(G){var B=[Sa,$a].indexOf(G)>=0?1:-1,z=[$o,$a].indexOf(G)>=0?"y":"x";R[G]+=U[z]*B})}return R}function Pbe(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Mj:l,u=Ku(r),f=u?s?eD:eD.filter(function(b){return Ku(b)===u}):ch,p=f.filter(function(b){return c.indexOf(b)>=0});p.length===0&&(p=f);var m=p.reduce(function(b,v){return b[v]=Ep(e,{placement:v,boundary:o,rootBoundary:a,padding:i})[bi(v)],b},{});return Object.keys(m).sort(function(b,v){return m[b]-m[v]})}function Tbe(e){if(bi(e)===o2)return[];var t=Av(e);return[rD(e),t,rD(t)]}function kbe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=o===void 0?!0:o,i=n.altAxis,s=i===void 0?!0:i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,b=m===void 0?!0:m,v=n.allowedAutoPlacements,x=t.options.placement,g=bi(x),y=g===x,w=l||(y||!b?[Av(x)]:Tbe(x)),C=[x].concat(w).reduce(function(D,N){return D.concat(bi(N)===o2?Pbe(t,{placement:N,boundary:u,rootBoundary:f,padding:c,flipVariations:b,allowedAutoPlacements:v}):N)},[]),_=t.rects.reference,$=t.rects.popper,E=new Map,k=!0,I=C[0],R=0;R=0,z=B?"width":"height",Y=Ep(t,{placement:F,boundary:u,rootBoundary:f,altBoundary:p,padding:c}),Q=B?G?Sa:So:G?$a:$o;_[z]>$[z]&&(Q=Av(Q));var H=Av(Q),J=[];if(a&&J.push(Y[U]<=0),s&&J.push(Y[Q]<=0,Y[H]<=0),J.every(function(D){return D})){I=F,k=!1;break}E.set(F,J)}if(k)for(var X=b?3:1,L=function(N){var V=C.find(function(Z){var re=E.get(Z);if(re)return re.slice(0,N).every(function(le){return le})});if(V)return I=V,"break"},K=X;K>0;K--){var q=L(K);if(q==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const Obe={name:"flip",enabled:!0,phase:"main",fn:kbe,requiresIfExists:["offset"],data:{_skip:!1}};function aD(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 iD(e){return[$o,Sa,$a,So].some(function(t){return e[t]>=0})}function Rbe(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Ep(t,{elementContext:"reference"}),s=Ep(t,{altBoundary:!0}),l=aD(i,r),c=aD(s,o,a),u=iD(l),f=iD(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const Dbe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Rbe};function Mbe(e,t,n){var r=bi(e),o=[So,$o].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[So,Sa].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}function Ibe(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,i=Mj.reduce(function(u,f){return u[f]=Mbe(f,t.rects,a),u},{}),s=i[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}const Abe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ibe};function Nbe(e){var t=e.state,n=e.name;t.modifiersData[n]=zj({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const jbe={name:"popperOffsets",enabled:!0,phase:"read",fn:Nbe,data:{}};function Lbe(e){return e==="x"?"y":"x"}function Fbe(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=o===void 0?!0:o,i=n.altAxis,s=i===void 0?!1:i,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,p=n.tether,m=p===void 0?!0:p,b=n.tetherOffset,v=b===void 0?0:b,x=Ep(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),g=bi(t.placement),y=Ku(t.placement),w=!y,C=s2(g),_=Lbe(C),$=t.modifiersData.popperOffsets,E=t.rects.reference,k=t.rects.popper,I=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,R=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if($){if(a){var G,B=C==="y"?$o:So,z=C==="y"?$a:Sa,Y=C==="y"?"height":"width",Q=$[C],H=Q+x[B],J=Q-x[z],X=m?-k[Y]/2:0,L=y===Gu?E[Y]:k[Y],K=y===Gu?-k[Y]:-E[Y],q=t.elements.arrow,D=m&&q?i2(q):{width:0,height:0},N=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Nj(),V=N[B],Z=N[z],re=Gf(0,E[Y],D[Y]),le=w?E[Y]/2-X-re-V-R.mainAxis:L-re-V-R.mainAxis,xe=w?-E[Y]/2+X+re+Z+R.mainAxis:K+re+Z+R.mainAxis,fe=t.elements.arrow&&uh(t.elements.arrow),ge=fe?C==="y"?fe.clientTop||0:fe.clientLeft||0:0,he=(G=F==null?void 0:F[C])!=null?G:0,_e=Q+le-he-ge,ve=Q+xe-he,Be=Gf(m?Dg(H,_e):H,Q,m?Vl(J,ve):J);$[C]=Be,U[C]=Be-Q}if(s){var Ue,ze=C==="x"?$o:So,He=C==="x"?$a:Sa,be=$[_],we=_==="y"?"height":"width",Ce=be+x[ze],qe=be-x[He],rt=[$o,So].indexOf(g)!==-1,Ae=(Ue=F==null?void 0:F[_])!=null?Ue:0,Le=rt?Ce:be-E[we]-k[we]-Ae+R.altAxis,Fe=rt?be+E[we]+k[we]-Ae-R.altAxis:qe,Pe=m&&rt?cbe(Le,be,Fe):Gf(m?Le:Ce,be,m?Fe:qe);$[_]=Pe,U[_]=Pe-be}t.modifiersData[r]=U}}const zbe={name:"preventOverflow",enabled:!0,phase:"main",fn:Fbe,requiresIfExists:["offset"]};function Bbe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Vbe(e){return e===Yo(e)||!va(e)?l2(e):Bbe(e)}function Ube(e){var t=e.getBoundingClientRect(),n=qu(t.width)/e.offsetWidth||1,r=qu(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Wbe(e,t,n){n===void 0&&(n=!1);var r=va(t),o=va(t)&&Ube(t),a=il(t),i=Yu(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Si(t)!=="body"||u2(a))&&(s=Vbe(t)),va(t)?(l=Yu(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=c2(a))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function Hbe(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function o(a){n.add(a.name);var i=[].concat(a.requires||[],a.requiresIfExists||[]);i.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),r}function Gbe(e){var t=Hbe(e);return rbe.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function qbe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Ybe(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 sD={placement:"bottom",modifiers:[],strategy:"absolute"};function lD(){for(var e=arguments.length,t=new Array(e),n=0;n{a||s(Xbe(o)||document.body)},[o,a]),Kn(()=>{if(i&&!a)return wp(n,i),()=>{wp(n,null)}},[n,i,a]),a){if(S.isValidElement(r)){const c={ref:l};return S.cloneElement(r,c)}return O.jsx(S.Fragment,{children:r})}return O.jsx(S.Fragment,{children:i&&nd.createPortal(r,i)})});function Qbe(e){return et("MuiPopper",e)}Qe("MuiPopper",["root"]);const exe=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],txe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function nxe(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function pC(e){return typeof e=="function"?e():e}function rxe(e){return e.nodeType!==void 0}const oxe=()=>Xe({root:["root"]},N1e(Qbe)),axe={},ixe=S.forwardRef(function(t,n){var r;const{anchorEl:o,children:a,direction:i,disablePortal:s,modifiers:l,open:c,placement:u,popperOptions:f,popperRef:p,slotProps:m={},slots:b={},TransitionProps:v}=t,x=Oe(t,exe),g=S.useRef(null),y=sn(g,n),w=S.useRef(null),C=sn(w,p),_=S.useRef(C);Kn(()=>{_.current=C},[C]),S.useImperativeHandle(p,()=>w.current,[]);const $=nxe(u,i),[E,k]=S.useState($),[I,R]=S.useState(pC(o));S.useEffect(()=>{w.current&&w.current.forceUpdate()}),S.useEffect(()=>{o&&R(pC(o))},[o]),Kn(()=>{if(!I||!c)return;const z=H=>{k(H.placement)};let Y=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:H})=>{z(H)}}];l!=null&&(Y=Y.concat(l)),f&&f.modifiers!=null&&(Y=Y.concat(f.modifiers));const Q=Zbe(I,g.current,T({placement:$},f,{modifiers:Y}));return _.current(Q),()=>{Q.destroy(),_.current(null)}},[I,s,l,c,f,$]);const F={placement:E};v!==null&&(F.TransitionProps=v);const U=oxe(),G=(r=b.root)!=null?r:"div",B=zt({elementType:G,externalSlotProps:m.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:y},ownerState:t,className:U.root});return O.jsx(G,T({},B,{children:typeof a=="function"?a(F):a}))}),sxe=S.forwardRef(function(t,n){const{anchorEl:r,children:o,container:a,direction:i="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:f="bottom",popperOptions:p=axe,popperRef:m,style:b,transition:v=!1,slotProps:x={},slots:g={}}=t,y=Oe(t,txe),[w,C]=S.useState(!0),_=()=>{C(!1)},$=()=>{C(!0)};if(!l&&!u&&(!v||w))return null;let E;if(a)E=a;else if(r){const R=pC(r);E=R&&rxe(R)?zn(R).body:zn(null).body}const k=!u&&l&&(!v||w)?"none":void 0,I=v?{in:u,onEnter:_,onExited:$}:void 0;return O.jsx(Bj,{disablePortal:s,container:E,children:O.jsx(ixe,T({anchorEl:r,direction:i,disablePortal:s,modifiers:c,ref:n,open:v?!w:u,placement:f,popperOptions:p,popperRef:m,slotProps:x,slots:g},y,{style:T({position:"fixed",top:0,left:0,display:k},b),TransitionProps:I,children:o}))})});function lxe(e){const t=zn(e);return t.body===e?$i(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Yf(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function cD(e){return parseInt($i(e).getComputedStyle(e).paddingRight,10)||0}function cxe(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function uD(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,i=>{const s=a.indexOf(i)===-1,l=!cxe(i);s&&l&&Yf(i,o)})}function ux(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function uxe(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(lxe(r)){const i=K5(zn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${cD(r)+i}px`;const s=zn(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${cD(l)+i}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=zn(r).body;else{const i=r.parentElement,s=$i(r);a=(i==null?void 0:i.nodeName)==="HTML"&&s.getComputedStyle(i).overflowY==="scroll"?i:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:i,property:s})=>{a?i.style.setProperty(s,a):i.style.removeProperty(s)})}}function dxe(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class fxe{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Yf(t.modalRef,!1);const o=dxe(n);uD(n,t.mount,t.modalRef,o,!0);const a=ux(this.containers,i=>i.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=ux(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=uxe(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=ux(this.containers,i=>i.modals.indexOf(t)!==-1),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&Yf(t.modalRef,n),uD(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=a.modals[a.modals.length-1];i.modalRef&&Yf(i.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function pxe(e){return typeof e=="function"?e():e}function hxe(e){return e?e.props.hasOwnProperty("in"):!1}const mxe=new fxe;function vxe(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=mxe,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:f}=e,p=S.useRef({}),m=S.useRef(null),b=S.useRef(null),v=sn(b,f),[x,g]=S.useState(!u),y=hxe(l);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const C=()=>zn(m.current),_=()=>(p.current.modalRef=b.current,p.current.mount=m.current,p.current),$=()=>{o.mount(_(),{disableScrollLock:r}),b.current&&(b.current.scrollTop=0)},E=mt(()=>{const Y=pxe(t)||C().body;o.add(_(),Y),b.current&&$()}),k=S.useCallback(()=>o.isTopModal(_()),[o]),I=mt(Y=>{m.current=Y,Y&&(u&&k()?$():b.current&&Yf(b.current,w))}),R=S.useCallback(()=>{o.remove(_(),w)},[w,o]);S.useEffect(()=>()=>{R()},[R]),S.useEffect(()=>{u?E():(!y||!a)&&R()},[u,R,y,a,E]);const F=Y=>Q=>{var H;(H=Y.onKeyDown)==null||H.call(Y,Q),!(Q.key!=="Escape"||!k())&&(n||(Q.stopPropagation(),c&&c(Q,"escapeKeyDown")))},U=Y=>Q=>{var H;(H=Y.onClick)==null||H.call(Y,Q),Q.target===Q.currentTarget&&c&&c(Q,"backdropClick")};return{getRootProps:(Y={})=>{const Q=Hf(e);delete Q.onTransitionEnter,delete Q.onTransitionExited;const H=T({},Q,Y);return T({role:"presentation"},H,{onKeyDown:F(H),ref:v})},getBackdropProps:(Y={})=>{const Q=Y;return T({"aria-hidden":!0},Q,{onClick:U(Q),open:u})},getTransitionProps:()=>{const Y=()=>{g(!1),i&&i()},Q=()=>{g(!0),s&&s(),a&&R()};return{onEnter:Eg(Y,l==null?void 0:l.props.onEnter),onExited:Eg(Q,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:I,isTopModal:k,exited:x,hasTransition:y}}const gxe=2;function Vj(e,t){return e-t}function af(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function dD(e,t){var n;const{index:r}=(n=e.reduce((o,a,i)=>{const s=Math.abs(t-a);return o===null||s({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}%`})}},Cxe=e=>e;let Gm;function dx(){return Gm===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Gm=CSS.supports("touch-action","none"):Gm=!0),Gm}function $xe(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:a=!1,marks:i=!1,max:s=100,min:l=0,name:c,onChange:u,onChangeCommitted:f,orientation:p="horizontal",rootRef:m,scale:b=Cxe,step:v=1,tabIndex:x,value:g}=e,y=S.useRef(),[w,C]=S.useState(-1),[_,$]=S.useState(-1),[E,k]=S.useState(!1),I=S.useRef(0),[R,F]=Cr({controlled:g,default:n??l,name:"Slider"}),U=u&&((Ae,Le,Fe)=>{const Pe=Ae.nativeEvent||Ae,Te=new Pe.constructor(Pe.type,Pe);Object.defineProperty(Te,"target",{writable:!0,value:{value:Le,name:c}}),u(Te,Le,Fe)}),G=Array.isArray(R);let B=G?R.slice().sort(Vj):[R];B=B.map(Ae=>af(Ae,l,s));const z=i===!0&&v!==null?[...Array(Math.floor((s-l)/v)+1)].map((Ae,Le)=>({value:l+v*Le})):i||[],Y=z.map(Ae=>Ae.value),{isFocusVisibleRef:Q,onBlur:H,onFocus:J,ref:X}=Ay(),[L,K]=S.useState(-1),q=S.useRef(),D=sn(X,q),N=sn(m,D),V=Ae=>Le=>{var Fe;const Pe=Number(Le.currentTarget.getAttribute("data-index"));J(Le),Q.current===!0&&K(Pe),$(Pe),Ae==null||(Fe=Ae.onFocus)==null||Fe.call(Ae,Le)},Z=Ae=>Le=>{var Fe;H(Le),Q.current===!1&&K(-1),$(-1),Ae==null||(Fe=Ae.onBlur)==null||Fe.call(Ae,Le)};Kn(()=>{if(r&&q.current.contains(document.activeElement)){var Ae;(Ae=document.activeElement)==null||Ae.blur()}},[r]),r&&w!==-1&&C(-1),r&&L!==-1&&K(-1);const re=Ae=>Le=>{var Fe;(Fe=Ae.onChange)==null||Fe.call(Ae,Le);const Pe=Number(Le.currentTarget.getAttribute("data-index")),Te=B[Pe],it=Y.indexOf(Te);let ct=Le.target.valueAsNumber;if(z&&v==null){const gt=Y[Y.length-1];ct>gt?ct=gt:ct{const{current:Fe}=q,{width:Pe,height:Te,bottom:it,left:ct}=Fe.getBoundingClientRect();let gt;xe.indexOf("vertical")===0?gt=(it-Ae.y)/Te:gt=(Ae.x-ct)/Pe,xe.indexOf("-reverse")!==-1&&(gt=1-gt);let Ne;if(Ne=yxe(gt,l,s),v)Ne=xxe(Ne,v,l);else{const te=dD(Y,Ne);Ne=Y[te]}Ne=af(Ne,l,s);let ne=0;if(G){Le?ne=le.current:ne=dD(B,Ne),o&&(Ne=af(Ne,B[ne-1]||-1/0,B[ne+1]||1/0));const te=Ne;Ne=fD({values:B,newValue:Ne,index:ne}),o&&Le||(ne=Ne.indexOf(te),le.current=ne)}return{newValue:Ne,activeIndex:ne}},ge=mt(Ae=>{const Le=Um(Ae,y);if(!Le)return;if(I.current+=1,Ae.type==="mousemove"&&Ae.buttons===0){he(Ae);return}const{newValue:Fe,activeIndex:Pe}=fe({finger:Le,move:!0});Wm({sliderRef:q,activeIndex:Pe,setActive:C}),F(Fe),!E&&I.current>gxe&&k(!0),U&&!Hm(Fe,R)&&U(Ae,Fe,Pe)}),he=mt(Ae=>{const Le=Um(Ae,y);if(k(!1),!Le)return;const{newValue:Fe}=fe({finger:Le,move:!0});C(-1),Ae.type==="touchend"&&$(-1),f&&f(Ae,Fe),y.current=void 0,ve()}),_e=mt(Ae=>{if(r)return;dx()||Ae.preventDefault();const Le=Ae.changedTouches[0];Le!=null&&(y.current=Le.identifier);const Fe=Um(Ae,y);if(Fe!==!1){const{newValue:Te,activeIndex:it}=fe({finger:Fe});Wm({sliderRef:q,activeIndex:it,setActive:C}),F(Te),U&&!Hm(Te,R)&&U(Ae,Te,it)}I.current=0;const Pe=zn(q.current);Pe.addEventListener("touchmove",ge),Pe.addEventListener("touchend",he)}),ve=S.useCallback(()=>{const Ae=zn(q.current);Ae.removeEventListener("mousemove",ge),Ae.removeEventListener("mouseup",he),Ae.removeEventListener("touchmove",ge),Ae.removeEventListener("touchend",he)},[he,ge]);S.useEffect(()=>{const{current:Ae}=q;return Ae.addEventListener("touchstart",_e,{passive:dx()}),()=>{Ae.removeEventListener("touchstart",_e,{passive:dx()}),ve()}},[ve,_e]),S.useEffect(()=>{r&&ve()},[r,ve]);const Be=Ae=>Le=>{var Fe;if((Fe=Ae.onMouseDown)==null||Fe.call(Ae,Le),r||Le.defaultPrevented||Le.button!==0)return;Le.preventDefault();const Pe=Um(Le,y);if(Pe!==!1){const{newValue:it,activeIndex:ct}=fe({finger:Pe});Wm({sliderRef:q,activeIndex:ct,setActive:C}),F(it),U&&!Hm(it,R)&&U(Le,it,ct)}I.current=0;const Te=zn(q.current);Te.addEventListener("mousemove",ge),Te.addEventListener("mouseup",he)},Ue=Mg(G?B[0]:l,l,s),ze=Mg(B[B.length-1],l,s)-Ue,He=(Ae={})=>{const Le=Hf(Ae),Fe={onMouseDown:Be(Le||{})},Pe=T({},Le,Fe);return T({},Ae,{ref:N},Pe)},be=Ae=>Le=>{var Fe;(Fe=Ae.onMouseOver)==null||Fe.call(Ae,Le);const Pe=Number(Le.currentTarget.getAttribute("data-index"));$(Pe)},we=Ae=>Le=>{var Fe;(Fe=Ae.onMouseLeave)==null||Fe.call(Ae,Le),$(-1)};return{active:w,axis:xe,axisProps:wxe,dragging:E,focusedThumbIndex:L,getHiddenInputProps:(Ae={})=>{var Le;const Fe=Hf(Ae),Pe={onChange:re(Fe||{}),onFocus:V(Fe||{}),onBlur:Z(Fe||{})},Te=T({},Fe,Pe);return T({tabIndex:x,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":b(s),"aria-valuemin":b(l),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(Le=e.step)!=null?Le:void 0,disabled:r},Ae,Te,{style:T({},Wme,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:He,getThumbProps:(Ae={})=>{const Le=Hf(Ae),Fe={onMouseOver:be(Le||{}),onMouseLeave:we(Le||{})};return T({},Ae,Le,Fe)},marks:z,open:_,range:G,rootRef:N,trackLeap:ze,trackOffset:Ue,values:B,getThumbStyle:Ae=>({pointerEvents:w!==-1&&w!==Ae?"none":void 0})}}const Sxe=["onChange","maxRows","minRows","style","value"];function qm(e){return parseInt(e,10)||0}const _xe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function pD(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const Exe=S.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:a=1,style:i,value:s}=t,l=Oe(t,Sxe),{current:c}=S.useRef(s!=null),u=S.useRef(null),f=sn(n,u),p=S.useRef(null),m=S.useRef(0),[b,v]=S.useState({outerHeightStyle:0}),x=S.useCallback(()=>{const C=u.current,$=$i(C).getComputedStyle(C);if($.width==="0px")return{outerHeightStyle:0};const E=p.current;E.style.width=$.width,E.value=C.value||t.placeholder||"x",E.value.slice(-1)===` +`&&(E.value+=" ");const k=$.boxSizing,I=qm($.paddingBottom)+qm($.paddingTop),R=qm($.borderBottomWidth)+qm($.borderTopWidth),F=E.scrollHeight;E.value="x";const U=E.scrollHeight;let G=F;a&&(G=Math.max(Number(a)*U,G)),o&&(G=Math.min(Number(o)*U,G)),G=Math.max(G,U);const B=G+(k==="border-box"?I+R:0),z=Math.abs(G-F)<=1;return{outerHeightStyle:B,overflow:z}},[o,a,t.placeholder]),g=(C,_)=>{const{outerHeightStyle:$,overflow:E}=_;return m.current<20&&($>0&&Math.abs((C.outerHeightStyle||0)-$)>1||C.overflow!==E)?(m.current+=1,{overflow:E,outerHeightStyle:$}):C},y=S.useCallback(()=>{const C=x();pD(C)||v(_=>g(_,C))},[x]);Kn(()=>{const C=()=>{const F=x();pD(F)||nd.flushSync(()=>{v(U=>g(U,F))})},_=()=>{m.current=0,C()};let $;const E=ah(_),k=u.current,I=$i(k);I.addEventListener("resize",E);let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(_),R.observe(k)),()=>{E.clear(),cancelAnimationFrame($),I.removeEventListener("resize",E),R&&R.disconnect()}},[x]),Kn(()=>{y()}),S.useEffect(()=>{m.current=0},[s]);const w=C=>{m.current=0,c||y(),r&&r(C)};return O.jsxs(S.Fragment,{children:[O.jsx("textarea",T({value:s,onChange:w,ref:f,rows:a,style:T({height:b.outerHeightStyle,overflow:b.overflow?"hidden":void 0},i)},l)),O.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:T({},_xe.shadow,i,{paddingTop:0,paddingBottom:0})})]})});function hD(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Pxe(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:a,trim:i=!1}=e;return(s,{inputValue:l,getOptionLabel:c})=>{let u=i?l.trim():l;n&&(u=u.toLowerCase()),t&&(u=hD(u));const f=u?s.filter(p=>{let m=(a||c)(p);return n&&(m=m.toLowerCase()),t&&(m=hD(m)),o==="start"?m.indexOf(u)===0:m.indexOf(u)>-1}):s;return typeof r=="number"?f.slice(0,r):f}}function fx(e,t){for(let n=0;n{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function Oxe(e){const{unstable_isActiveElementInListbox:t=kxe,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:i=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:l=!1,componentName:c="useAutocomplete",defaultValue:u=e.multiple?[]:null,disableClearable:f=!1,disableCloseOnSelect:p=!1,disabled:m,disabledItemsFocusable:b=!1,disableListWrap:v=!1,filterOptions:x=Txe,filterSelectedOptions:g=!1,freeSolo:y=!1,getOptionDisabled:w,getOptionLabel:C=me=>{var pe;return(pe=me.label)!=null?pe:me},groupBy:_,handleHomeEndKeys:$=!e.freeSolo,id:E,includeInputInList:k=!1,inputValue:I,isOptionEqualToValue:R=(me,pe)=>me===pe,multiple:F=!1,onChange:U,onClose:G,onHighlightChange:B,onInputChange:z,onOpen:Y,open:Q,openOnFocus:H=!1,options:J,readOnly:X=!1,selectOnFocus:L=!e.freeSolo,value:K}=e,q=Ya(E);let D=C;D=me=>{const pe=C(me);return typeof pe!="string"?String(pe):pe};const N=S.useRef(!1),V=S.useRef(!0),Z=S.useRef(null),re=S.useRef(null),[le,xe]=S.useState(null),[fe,ge]=S.useState(-1),he=o?0:-1,_e=S.useRef(he),[ve,Be]=Cr({controlled:K,default:u,name:c}),[Ue,ze]=Cr({controlled:I,default:"",name:c,state:"inputValue"}),[He,be]=S.useState(!1),we=S.useCallback((me,pe)=>{if(!(F?ve.length!(g&&(F?ve:[ve]).some(pe=>pe!==null&&R(me,pe)))),{inputValue:Le&&rt?"":Ue,getOptionLabel:D}):[],Te=k_({filteredOptions:Pe,value:ve,inputValue:Ue});S.useEffect(()=>{const me=ve!==Te.value;He&&!me||y&&!me||we(null,ve)},[ve,we,He,Te.value,y]);const it=Ce&&Pe.length>0&&!X,ct=mt(me=>{me===-1?Z.current.focus():le.querySelector(`[data-tag-index="${me}"]`).focus()});S.useEffect(()=>{F&&fe>ve.length-1&&(ge(-1),ct(-1))},[ve,F,fe,ct]);function gt(me,pe){if(!re.current||me===-1)return-1;let De=me;for(;;){if(pe==="next"&&De===Pe.length||pe==="previous"&&De===-1)return-1;const nt=re.current.querySelector(`[data-option-index="${De}"]`),lt=b?!1:!nt||nt.disabled||nt.getAttribute("aria-disabled")==="true";if(nt&&!nt.hasAttribute("tabindex")||lt)De+=pe==="next"?1:-1;else return De}}const Ne=mt(({event:me,index:pe,reason:De="auto"})=>{if(_e.current=pe,pe===-1?Z.current.removeAttribute("aria-activedescendant"):Z.current.setAttribute("aria-activedescendant",`${q}-option-${pe}`),B&&B(me,pe===-1?null:Pe[pe],De),!re.current)return;const nt=re.current.querySelector(`[role="option"].${n}-focused`);nt&&(nt.classList.remove(`${n}-focused`),nt.classList.remove(`${n}-focusVisible`));let lt=re.current;if(re.current.getAttribute("role")!=="listbox"&&(lt=re.current.parentElement.querySelector('[role="listbox"]')),!lt)return;if(pe===-1){lt.scrollTop=0;return}const xt=re.current.querySelector(`[data-option-index="${pe}"]`);if(xt&&(xt.classList.add(`${n}-focused`),De==="keyboard"&&xt.classList.add(`${n}-focusVisible`),lt.scrollHeight>lt.clientHeight&&De!=="mouse"&&De!=="touch")){const Nt=xt,ut=lt.clientHeight+lt.scrollTop,yt=Nt.offsetTop+Nt.offsetHeight;yt>ut?lt.scrollTop=yt-lt.clientHeight:Nt.offsetTop-Nt.offsetHeight*(_?1.3:0){if(!Fe)return;const xt=gt((()=>{const Nt=Pe.length-1;if(pe==="reset")return he;if(pe==="start")return 0;if(pe==="end")return Nt;const ut=_e.current+pe;return ut<0?ut===-1&&k?-1:v&&_e.current!==-1||Math.abs(pe)>1?0:Nt:ut>Nt?ut===Nt+1&&k?-1:v||Math.abs(pe)>1?Nt:0:ut})(),De);if(Ne({index:xt,reason:nt,event:me}),r&&pe!=="reset")if(xt===-1)Z.current.value=Ue;else{const Nt=D(Pe[xt]);Z.current.value=Nt,Nt.toLowerCase().indexOf(Ue.toLowerCase())===0&&Ue.length>0&&Z.current.setSelectionRange(Ue.length,Nt.length)}}),te=()=>{const me=(pe,De)=>{const nt=pe?D(pe):"",lt=De?D(De):"";return nt===lt};if(_e.current!==-1&&Te.filteredOptions&&Te.filteredOptions.length!==Pe.length&&Te.inputValue===Ue&&(F?ve.length===Te.value.length&&Te.value.every((pe,De)=>D(ve[De])===D(pe)):me(Te.value,ve))){const pe=Te.filteredOptions[_e.current];if(pe&&Pe.some(nt=>D(nt)===D(pe)))return!0}return!1},ie=S.useCallback(()=>{if(!Fe||te())return;const me=F?ve[0]:ve;if(Pe.length===0||me==null){ne({diff:"reset"});return}if(re.current){if(me!=null){const pe=Pe[_e.current];if(F&&pe&&fx(ve,nt=>R(pe,nt))!==-1)return;const De=fx(Pe,nt=>R(nt,me));De===-1?ne({diff:"reset"}):Ne({index:De});return}if(_e.current>=Pe.length-1){Ne({index:Pe.length-1});return}Ne({index:_e.current})}},[Pe.length,F?!1:ve,g,ne,Ne,Fe,Ue,F]),$e=mt(me=>{wp(re,me),me&&ie()});S.useEffect(()=>{ie()},[ie]);const Se=me=>{Ce||(qe(!0),Ae(!0),Y&&Y(me))},Ze=(me,pe)=>{Ce&&(qe(!1),G&&G(me,pe))},tt=(me,pe,De,nt)=>{if(F){if(ve.length===pe.length&&ve.every((lt,xt)=>lt===pe[xt]))return}else if(ve===pe)return;U&&U(me,pe,De,nt),Be(pe)},ft=S.useRef(!1),_t=(me,pe,De="selectOption",nt="options")=>{let lt=De,xt=pe;if(F){xt=Array.isArray(ve)?ve.slice():[];const Nt=fx(xt,ut=>R(pe,ut));Nt===-1?xt.push(pe):nt!=="freeSolo"&&(xt.splice(Nt,1),lt="removeOption")}we(me,xt),tt(me,xt,lt,{option:pe}),!p&&(!me||!me.ctrlKey&&!me.metaKey)&&Ze(me,lt),(i===!0||i==="touch"&&ft.current||i==="mouse"&&!ft.current)&&Z.current.blur()};function vt(me,pe){if(me===-1)return-1;let De=me;for(;;){if(pe==="next"&&De===ve.length||pe==="previous"&&De===-1)return-1;const nt=le.querySelector(`[data-tag-index="${De}"]`);if(!nt||!nt.hasAttribute("tabindex")||nt.disabled||nt.getAttribute("aria-disabled")==="true")De+=pe==="next"?1:-1;else return De}}const dt=(me,pe)=>{if(!F)return;Ue===""&&Ze(me,"toggleInput");let De=fe;fe===-1?Ue===""&&pe==="previous"&&(De=ve.length-1):(De+=pe==="next"?1:-1,De<0&&(De=0),De===ve.length&&(De=-1)),De=vt(De,pe),ge(De),ct(De)},Et=me=>{N.current=!0,ze(""),z&&z(me,"","clear"),tt(me,F?[]:null,"clear")},Yt=me=>pe=>{if(me.onKeyDown&&me.onKeyDown(pe),!pe.defaultMuiPrevented&&(fe!==-1&&["ArrowLeft","ArrowRight"].indexOf(pe.key)===-1&&(ge(-1),ct(-1)),pe.which!==229))switch(pe.key){case"Home":Fe&&$&&(pe.preventDefault(),ne({diff:"start",direction:"next",reason:"keyboard",event:pe}));break;case"End":Fe&&$&&(pe.preventDefault(),ne({diff:"end",direction:"previous",reason:"keyboard",event:pe}));break;case"PageUp":pe.preventDefault(),ne({diff:-mD,direction:"previous",reason:"keyboard",event:pe}),Se(pe);break;case"PageDown":pe.preventDefault(),ne({diff:mD,direction:"next",reason:"keyboard",event:pe}),Se(pe);break;case"ArrowDown":pe.preventDefault(),ne({diff:1,direction:"next",reason:"keyboard",event:pe}),Se(pe);break;case"ArrowUp":pe.preventDefault(),ne({diff:-1,direction:"previous",reason:"keyboard",event:pe}),Se(pe);break;case"ArrowLeft":dt(pe,"previous");break;case"ArrowRight":dt(pe,"next");break;case"Enter":if(_e.current!==-1&&Fe){const De=Pe[_e.current],nt=w?w(De):!1;if(pe.preventDefault(),nt)return;_t(pe,De,"selectOption"),r&&Z.current.setSelectionRange(Z.current.value.length,Z.current.value.length)}else y&&Ue!==""&&Le===!1&&(F&&pe.preventDefault(),_t(pe,Ue,"createOption","freeSolo"));break;case"Escape":Fe?(pe.preventDefault(),pe.stopPropagation(),Ze(pe,"escape")):l&&(Ue!==""||F&&ve.length>0)&&(pe.preventDefault(),pe.stopPropagation(),Et(pe));break;case"Backspace":if(F&&!X&&Ue===""&&ve.length>0){const De=fe===-1?ve.length-1:fe,nt=ve.slice();nt.splice(De,1),tt(pe,nt,"removeOption",{option:ve[De]})}break;case"Delete":if(F&&!X&&Ue===""&&ve.length>0&&fe!==-1){const De=fe,nt=ve.slice();nt.splice(De,1),tt(pe,nt,"removeOption",{option:ve[De]})}break}},kt=me=>{be(!0),H&&!N.current&&Se(me)},ln=me=>{if(t(re)){Z.current.focus();return}be(!1),V.current=!0,N.current=!1,a&&_e.current!==-1&&Fe?_t(me,Pe[_e.current],"blur"):a&&y&&Ue!==""?_t(me,Ue,"blur","freeSolo"):s&&we(me,ve),Ze(me,"blur")},Vt=me=>{const pe=me.target.value;Ue!==pe&&(ze(pe),Ae(!1),z&&z(me,pe,"input")),pe===""?!f&&!F&&tt(me,null,"clear"):Se(me)},Ut=me=>{const pe=Number(me.currentTarget.getAttribute("data-option-index"));_e.current!==pe&&Ne({event:me,index:pe,reason:"mouse"})},Kt=me=>{Ne({event:me,index:Number(me.currentTarget.getAttribute("data-option-index")),reason:"touch"}),ft.current=!0},bn=me=>{const pe=Number(me.currentTarget.getAttribute("data-option-index"));_t(me,Pe[pe],"selectOption"),ft.current=!1},Bn=me=>pe=>{const De=ve.slice();De.splice(me,1),tt(pe,De,"removeOption",{option:ve[me]})},se=me=>{Ce?Ze(me,"toggleInput"):Se(me)},oe=me=>{me.currentTarget.contains(me.target)&&me.target.getAttribute("id")!==q&&me.preventDefault()},ue=me=>{me.currentTarget.contains(me.target)&&(Z.current.focus(),L&&V.current&&Z.current.selectionEnd-Z.current.selectionStart===0&&Z.current.select(),V.current=!1)},ke=me=>{!m&&(Ue===""||!Ce)&&se(me)};let Ee=y&&Ue.length>0;Ee=Ee||(F?ve.length>0:ve!==null);let pt=Pe;return _&&(pt=Pe.reduce((me,pe,De)=>{const nt=_(pe);return me.length>0&&me[me.length-1].group===nt?me[me.length-1].options.push(pe):me.push({key:De,index:De,group:nt,options:[pe]}),me},[])),m&&He&&ln(),{getRootProps:(me={})=>T({"aria-owns":it?`${q}-listbox`:null},me,{onKeyDown:Yt(me),onMouseDown:oe,onClick:ue}),getInputLabelProps:()=>({id:`${q}-label`,htmlFor:q}),getInputProps:()=>({id:q,value:Ue,onBlur:ln,onFocus:kt,onChange:Vt,onMouseDown:ke,"aria-activedescendant":Fe?"":null,"aria-autocomplete":r?"both":"list","aria-controls":it?`${q}-listbox`:void 0,"aria-expanded":it,autoComplete:"off",ref:Z,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:m}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Et}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:se}),getTagProps:({index:me})=>T({key:me,"data-tag-index":me,tabIndex:-1},!X&&{onDelete:Bn(me)}),getListboxProps:()=>({role:"listbox",id:`${q}-listbox`,"aria-labelledby":`${q}-label`,ref:$e,onMouseDown:me=>{me.preventDefault()}}),getOptionProps:({index:me,option:pe})=>{const De=(F?ve:[ve]).some(lt=>lt!=null&&R(pe,lt)),nt=w?w(pe):!1;return{key:D(pe),tabIndex:-1,role:"option",id:`${q}-option-${me}`,onMouseMove:Ut,onClick:bn,onTouchStart:Kt,"data-option-index":me,"aria-disabled":nt,"aria-selected":De}},id:q,inputValue:Ue,value:ve,dirty:Ee,expanded:Fe&&le,popupOpen:Fe,focused:He||fe!==-1,anchorEl:le,setAnchorEl:xe,focusedTag:fe,groupedOptions:pt}}const Rxe=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Dxe=de(sxe,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Mxe=S.forwardRef(function(t,n){var r;const o=G_(),a=Ke({props:t,name:"MuiPopper"}),{anchorEl:i,component:s,components:l,componentsProps:c,container:u,disablePortal:f,keepMounted:p,modifiers:m,open:b,placement:v,popperOptions:x,popperRef:g,transition:y,slots:w,slotProps:C}=a,_=Oe(a,Rxe),$=(r=w==null?void 0:w.root)!=null?r:l==null?void 0:l.Root,E=T({anchorEl:i,container:u,disablePortal:f,keepMounted:p,modifiers:m,open:b,placement:v,popperOptions:x,popperRef:g,transition:y},_);return O.jsx(Dxe,T({as:s,direction:o==null?void 0:o.direction,slots:{root:$},slotProps:C??c},E,{ref:n}))}),dh=Mxe;function Ixe(e){return et("MuiListSubheader",e)}Qe("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Axe=["className","color","component","disableGutters","disableSticky","inset"],Nxe=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:a}=e,i={root:["root",n!=="default"&&`color${je(n)}`,!r&&"gutters",o&&"inset",!a&&"sticky"]};return Xe(i,Ixe,t)},jxe=de("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${je(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>T({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),Uj=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListSubheader"}),{className:o,color:a="default",component:i="li",disableGutters:s=!1,disableSticky:l=!1,inset:c=!1}=r,u=Oe(r,Axe),f=T({},r,{color:a,component:i,disableGutters:s,disableSticky:l,inset:c}),p=Nxe(f);return O.jsx(jxe,T({as:i,className:Ie(p.root,o),ref:n,ownerState:f},u))});Uj.muiSkipListHighlight=!0;const Lxe=Uj,Fxe=rr(O.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function zxe(e){return et("MuiChip",e)}const Bxe=Qe("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),fn=Bxe,Vxe=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],Uxe=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:a,onDelete:i,clickable:s,variant:l}=e,c={root:["root",l,n&&"disabled",`size${je(r)}`,`color${je(o)}`,s&&"clickable",s&&`clickableColor${je(o)}`,i&&"deletable",i&&`deletableColor${je(o)}`,`${l}${je(o)}`],label:["label",`label${je(r)}`],avatar:["avatar",`avatar${je(r)}`,`avatarColor${je(o)}`],icon:["icon",`icon${je(r)}`,`iconColor${je(a)}`],deleteIcon:["deleteIcon",`deleteIcon${je(r)}`,`deleteIconColor${je(o)}`,`deleteIcon${je(l)}Color${je(o)}`]};return Xe(c,zxe,t)},Wxe=de("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:a,onDelete:i,size:s,variant:l}=n;return[{[`& .${fn.avatar}`]:t.avatar},{[`& .${fn.avatar}`]:t[`avatar${je(s)}`]},{[`& .${fn.avatar}`]:t[`avatarColor${je(r)}`]},{[`& .${fn.icon}`]:t.icon},{[`& .${fn.icon}`]:t[`icon${je(s)}`]},{[`& .${fn.icon}`]:t[`iconColor${je(o)}`]},{[`& .${fn.deleteIcon}`]:t.deleteIcon},{[`& .${fn.deleteIcon}`]:t[`deleteIcon${je(s)}`]},{[`& .${fn.deleteIcon}`]:t[`deleteIconColor${je(r)}`]},{[`& .${fn.deleteIcon}`]:t[`deleteIcon${je(l)}Color${je(r)}`]},t.root,t[`size${je(s)}`],t[`color${je(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${je(r)})`],i&&t.deletable,i&&r!=="default"&&t[`deletableColor${je(r)}`],t[l],t[`${l}${je(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return T({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${fn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${fn.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${fn.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${fn.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${fn.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${fn.icon}`]:T({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&T({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${fn.deleteIcon}`]:T({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Tt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Tt(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Tt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>T({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>T({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${fn.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${fn.avatar}`]:{marginLeft:4},[`& .${fn.avatarSmall}`]:{marginLeft:2},[`& .${fn.icon}`]:{marginLeft:4},[`& .${fn.iconSmall}`]:{marginLeft:2},[`& .${fn.deleteIcon}`]:{marginRight:5},[`& .${fn.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Tt(e.palette[t.color].main,.7)}`,[`&.${fn.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${fn.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Tt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),Hxe=de("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${je(r)}`]]}})(({ownerState:e})=>T({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function vD(e){return e.key==="Backspace"||e.key==="Delete"}const Gxe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiChip"}),{avatar:o,className:a,clickable:i,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:f,label:p,onClick:m,onDelete:b,onKeyDown:v,onKeyUp:x,size:g="medium",variant:y="filled",tabIndex:w,skipFocusWhenDisabled:C=!1}=r,_=Oe(r,Vxe),$=S.useRef(null),E=sn($,n),k=J=>{J.stopPropagation(),b&&b(J)},I=J=>{J.currentTarget===J.target&&vD(J)&&J.preventDefault(),v&&v(J)},R=J=>{J.currentTarget===J.target&&(b&&vD(J)?b(J):J.key==="Escape"&&$.current&&$.current.blur()),x&&x(J)},F=i!==!1&&m?!0:i,U=F||b?Ca:l||"div",G=T({},r,{component:U,disabled:u,size:g,color:s,iconColor:S.isValidElement(f)&&f.props.color||s,onDelete:!!b,clickable:F,variant:y}),B=Uxe(G),z=U===Ca?T({component:l||"div",focusVisibleClassName:B.focusVisible},b&&{disableRipple:!0}):{};let Y=null;b&&(Y=c&&S.isValidElement(c)?S.cloneElement(c,{className:Ie(c.props.className,B.deleteIcon),onClick:k}):O.jsx(Fxe,{className:Ie(B.deleteIcon),onClick:k}));let Q=null;o&&S.isValidElement(o)&&(Q=S.cloneElement(o,{className:Ie(B.avatar,o.props.className)}));let H=null;return f&&S.isValidElement(f)&&(H=S.cloneElement(f,{className:Ie(B.icon,f.props.className)})),O.jsxs(Wxe,T({as:U,className:Ie(B.root,a),disabled:F&&u?!0:void 0,onClick:m,onKeyDown:I,onKeyUp:R,ref:E,tabIndex:C&&u?-1:w,ownerState:G},z,_,{children:[Q||H,O.jsx(Hxe,{className:Ie(B.label),ownerState:G,children:p}),Y]}))}),Wj=Gxe;function sl({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const qxe=S.createContext(void 0),w0=qxe;function Pi(){return S.useContext(w0)}function Yxe(e){return O.jsx(Yge,T({},e,{defaultTheme:s0,themeId:Ny}))}function gD(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Ig(e,t=!1){return e&&(gD(e.value)&&e.value!==""||t&&gD(e.defaultValue)&&e.defaultValue!=="")}function Kxe(e){return e.startAdornment}function Jxe(e){return et("MuiInputBase",e)}const Zxe=Qe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Fo=Zxe,Xxe=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],C0=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${je(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},$0=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Qxe=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:i,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:f,size:p,startAdornment:m,type:b}=e,v={root:["root",`color${je(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",s&&"formControl",p&&p!=="medium"&&`size${je(p)}`,u&&"multiline",m&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",u&&"inputMultiline",p==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",m&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return Xe(v,Jxe,t)},S0=de("div",{name:"MuiInputBase",slot:"Root",overridesResolver:C0})(({theme:e,ownerState:t})=>T({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Fo.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&T({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),_0=de("input",{name:"MuiInputBase",slot:"Input",overridesResolver:$0})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=T({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return T({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Fo.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${Fo.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),ewe=O.jsx(Yxe,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),twe=S.forwardRef(function(t,n){var r;const o=Ke({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:i,autoFocus:s,className:l,components:c={},componentsProps:u={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:m,endAdornment:b,fullWidth:v=!1,id:x,inputComponent:g="input",inputProps:y={},inputRef:w,maxRows:C,minRows:_,multiline:$=!1,name:E,onBlur:k,onChange:I,onClick:R,onFocus:F,onKeyDown:U,onKeyUp:G,placeholder:B,readOnly:z,renderSuffix:Y,rows:Q,slotProps:H={},slots:J={},startAdornment:X,type:L="text",value:K}=o,q=Oe(o,Xxe),D=y.value!=null?y.value:K,{current:N}=S.useRef(D!=null),V=S.useRef(),Z=S.useCallback(Pe=>{},[]),re=sn(V,w,y.ref,Z),[le,xe]=S.useState(!1),fe=Pi(),ge=sl({props:o,muiFormControl:fe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ge.focused=fe?fe.focused:le,S.useEffect(()=>{!fe&&p&&le&&(xe(!1),k&&k())},[fe,p,le,k]);const he=fe&&fe.onFilled,_e=fe&&fe.onEmpty,ve=S.useCallback(Pe=>{Ig(Pe)?he&&he():_e&&_e()},[he,_e]);Kn(()=>{N&&ve({value:D})},[D,ve,N]);const Be=Pe=>{if(ge.disabled){Pe.stopPropagation();return}F&&F(Pe),y.onFocus&&y.onFocus(Pe),fe&&fe.onFocus?fe.onFocus(Pe):xe(!0)},Ue=Pe=>{k&&k(Pe),y.onBlur&&y.onBlur(Pe),fe&&fe.onBlur?fe.onBlur(Pe):xe(!1)},ze=(Pe,...Te)=>{if(!N){const it=Pe.target||V.current;if(it==null)throw new Error(Xs(1));ve({value:it.value})}y.onChange&&y.onChange(Pe,...Te),I&&I(Pe,...Te)};S.useEffect(()=>{ve(V.current)},[]);const He=Pe=>{V.current&&Pe.currentTarget===Pe.target&&V.current.focus(),R&&R(Pe)};let be=g,we=y;$&&be==="input"&&(Q?we=T({type:void 0,minRows:Q,maxRows:Q},we):we=T({type:void 0,maxRows:C,minRows:_},we),be=Exe);const Ce=Pe=>{ve(Pe.animationName==="mui-auto-fill-cancel"?V.current:{value:"x"})};S.useEffect(()=>{fe&&fe.setAdornedStart(!!X)},[fe,X]);const qe=T({},o,{color:ge.color||"primary",disabled:ge.disabled,endAdornment:b,error:ge.error,focused:ge.focused,formControl:fe,fullWidth:v,hiddenLabel:ge.hiddenLabel,multiline:$,size:ge.size,startAdornment:X,type:L}),rt=Qxe(qe),Ae=J.root||c.Root||S0,Le=H.root||u.root||{},Fe=J.input||c.Input||_0;return we=T({},we,(r=H.input)!=null?r:u.input),O.jsxs(S.Fragment,{children:[!m&&ewe,O.jsxs(Ae,T({},Le,!yi(Ae)&&{ownerState:T({},qe,Le.ownerState)},{ref:n,onClick:He},q,{className:Ie(rt.root,Le.className,l,z&&"MuiInputBase-readOnly"),children:[X,O.jsx(w0.Provider,{value:null,children:O.jsx(Fe,T({ownerState:qe,"aria-invalid":ge.error,"aria-describedby":a,autoComplete:i,autoFocus:s,defaultValue:f,disabled:ge.disabled,id:x,onAnimationStart:Ce,name:E,placeholder:B,readOnly:z,required:ge.required,rows:Q,value:D,onKeyDown:U,onKeyUp:G,type:L},we,!yi(Fe)&&{as:be,ownerState:T({},qe,we.ownerState)},{ref:re,className:Ie(rt.input,we.className,z&&"MuiInputBase-readOnly"),onBlur:Ue,onChange:ze,onFocus:Be}))}),b,Y?Y(T({},ge,{startAdornment:X})):null]}))]})}),d2=twe;function nwe(e){return et("MuiInput",e)}const rwe=T({},Fo,Qe("MuiInput",["root","underline","input"])),Ds=rwe;function owe(e){return et("MuiOutlinedInput",e)}const awe=T({},Fo,Qe("MuiOutlinedInput",["root","notchedOutline","input"])),ii=awe;function iwe(e){return et("MuiFilledInput",e)}const swe=T({},Fo,Qe("MuiFilledInput",["root","underline","input"])),zo=swe,Hj=rr(O.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function lwe(e){return et("MuiAutocomplete",e)}const cwe=Qe("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),nn=cwe;var yD,bD;const uwe=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],dwe=["ref"],fwe=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:a,hasClearIcon:i,hasPopupIcon:s,inputFocused:l,popupOpen:c,size:u}=e,f={root:["root",r&&"expanded",o&&"focused",a&&"fullWidth",i&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${je(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Xe(f,lwe,t)},pwe=de("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:a,inputFocused:i,size:s}=n;return[{[`& .${nn.tag}`]:t.tag},{[`& .${nn.tag}`]:t[`tagSize${je(s)}`]},{[`& .${nn.inputRoot}`]:t.inputRoot},{[`& .${nn.input}`]:t.input},{[`& .${nn.input}`]:i&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,o&&t.hasClearIcon]}})(({ownerState:e})=>T({[`&.${nn.focused} .${nn.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${nn.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${nn.tag}`]:T({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${nn.inputRoot}`]:{flexWrap:"wrap",[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4},[`& .${nn.input}`]:{width:0,minWidth:30}},[`& .${Ds.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Ds.root}.${Fo.sizeSmall}`]:{[`& .${Ds.input}`]:{padding:"2px 4px 3px 0"}},[`& .${ii.root}`]:{padding:9,[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${nn.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${nn.endAdornment}`]:{right:9}},[`& .${ii.root}.${Fo.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${nn.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${zo.root}`]:{paddingTop:19,paddingLeft:8,[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${zo.input}`]:{padding:"7px 4px"},[`& .${nn.endAdornment}`]:{right:9}},[`& .${zo.root}.${Fo.sizeSmall}`]:{paddingBottom:1,[`& .${zo.input}`]:{padding:"2.5px 4px"}},[`& .${Fo.hiddenLabel}`]:{paddingTop:8},[`& .${zo.root}.${Fo.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${nn.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${zo.root}.${Fo.hiddenLabel}.${Fo.sizeSmall}`]:{[`& .${nn.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${nn.input}`]:T({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),hwe=de("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),mwe=de(tr,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),vwe=de(tr,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>T({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>T({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),gwe=de(dh,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${nn.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>T({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),ywe=de(ls,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>T({},e.typography.body1,{overflow:"auto"})),bwe=de("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),xwe=de("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),wwe=de("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${nn.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${nn.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${nn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${nn.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${nn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),Cwe=de(Lxe,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),$we=de("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${nn.option}`]:{paddingLeft:24}}),Swe=S.forwardRef(function(t,n){var r,o,a,i;const s=Ke({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:c=!1,autoSelect:u=!1,blurOnSelect:f=!1,ChipProps:p,className:m,clearIcon:b=yD||(yD=O.jsx(b1e,{fontSize:"small"})),clearOnBlur:v=!s.freeSolo,clearOnEscape:x=!1,clearText:g="Clear",closeText:y="Close",componentsProps:w={},defaultValue:C=s.multiple?[]:null,disableClearable:_=!1,disableCloseOnSelect:$=!1,disabled:E=!1,disabledItemsFocusable:k=!1,disableListWrap:I=!1,disablePortal:R=!1,filterSelectedOptions:F=!1,forcePopupIcon:U="auto",freeSolo:G=!1,fullWidth:B=!1,getLimitTagsText:z=De=>`+${De}`,getOptionLabel:Y,groupBy:Q,handleHomeEndKeys:H=!s.freeSolo,includeInputInList:J=!1,limitTags:X=-1,ListboxComponent:L="ul",ListboxProps:K,loading:q=!1,loadingText:D="Loading…",multiple:N=!1,noOptionsText:V="No options",openOnFocus:Z=!1,openText:re="Open",PaperComponent:le=ls,PopperComponent:xe=dh,popupIcon:fe=bD||(bD=O.jsx(Hj,{})),readOnly:ge=!1,renderGroup:he,renderInput:_e,renderOption:ve,renderTags:Be,selectOnFocus:Ue=!s.freeSolo,size:ze="medium",slotProps:He={}}=s,be=Oe(s,uwe),{getRootProps:we,getInputProps:Ce,getInputLabelProps:qe,getPopupIndicatorProps:rt,getClearProps:Ae,getTagProps:Le,getListboxProps:Fe,getOptionProps:Pe,value:Te,dirty:it,expanded:ct,id:gt,popupOpen:Ne,focused:ne,focusedTag:te,anchorEl:ie,setAnchorEl:$e,inputValue:Se,groupedOptions:Ze}=Oxe(T({},s,{componentName:"Autocomplete"})),tt=!_&&!E&&it&&!ge,ft=(!G||U===!0)&&U!==!1,{onMouseDown:_t}=Ce(),{ref:vt}=K??{},dt=Fe(),{ref:Et}=dt,Yt=Oe(dt,dwe),kt=sn(Et,vt),Vt=Y||(De=>{var nt;return(nt=De.label)!=null?nt:De}),Ut=T({},s,{disablePortal:R,expanded:ct,focused:ne,fullWidth:B,getOptionLabel:Vt,hasClearIcon:tt,hasPopupIcon:ft,inputFocused:te===-1,popupOpen:Ne,size:ze}),Kt=fwe(Ut);let bn;if(N&&Te.length>0){const De=nt=>T({className:Kt.tag,disabled:E},Le(nt));Be?bn=Be(Te,De,Ut):bn=Te.map((nt,lt)=>O.jsx(Wj,T({label:Vt(nt),size:ze},De({index:lt}),p)))}if(X>-1&&Array.isArray(bn)){const De=bn.length-X;!ne&&De>0&&(bn=bn.splice(0,X),bn.push(O.jsx("span",{className:Kt.tag,children:z(De)},bn.length)))}const se=he||(De=>O.jsxs("li",{children:[O.jsx(Cwe,{className:Kt.groupLabel,ownerState:Ut,component:"div",children:De.group}),O.jsx($we,{className:Kt.groupUl,ownerState:Ut,children:De.children})]},De.key)),ue=ve||((De,nt)=>O.jsx("li",T({},De,{children:Vt(nt)}))),ke=(De,nt)=>{const lt=Pe({option:De,index:nt});return ue(T({},lt,{className:Kt.option}),De,{selected:lt["aria-selected"],index:nt,inputValue:Se},Ut)},Ee=(r=He.clearIndicator)!=null?r:w.clearIndicator,pt=(o=He.paper)!=null?o:w.paper,me=(a=He.popper)!=null?a:w.popper,pe=(i=He.popupIndicator)!=null?i:w.popupIndicator;return O.jsxs(S.Fragment,{children:[O.jsx(pwe,T({ref:n,className:Ie(Kt.root,m),ownerState:Ut},we(be),{children:_e({id:gt,disabled:E,fullWidth:!0,size:ze==="small"?"small":void 0,InputLabelProps:qe(),InputProps:T({ref:$e,className:Kt.inputRoot,startAdornment:bn,onClick:De=>{De.target===De.currentTarget&&_t(De)}},(tt||ft)&&{endAdornment:O.jsxs(hwe,{className:Kt.endAdornment,ownerState:Ut,children:[tt?O.jsx(mwe,T({},Ae(),{"aria-label":g,title:g,ownerState:Ut},Ee,{className:Ie(Kt.clearIndicator,Ee==null?void 0:Ee.className),children:b})):null,ft?O.jsx(vwe,T({},rt(),{disabled:E,"aria-label":Ne?y:re,title:Ne?y:re,ownerState:Ut},pe,{className:Ie(Kt.popupIndicator,pe==null?void 0:pe.className),children:fe})):null]})}),inputProps:T({className:Kt.input,disabled:E,readOnly:ge},Ce())})})),ie?O.jsx(gwe,T({as:xe,disablePortal:R,style:{width:ie?ie.clientWidth:null},ownerState:Ut,role:"presentation",anchorEl:ie,open:Ne},me,{className:Ie(Kt.popper,me==null?void 0:me.className),children:O.jsxs(ywe,T({ownerState:Ut,as:le},pt,{className:Ie(Kt.paper,pt==null?void 0:pt.className),children:[q&&Ze.length===0?O.jsx(bwe,{className:Kt.loading,ownerState:Ut,children:D}):null,Ze.length===0&&!G&&!q?O.jsx(xwe,{className:Kt.noOptions,ownerState:Ut,role:"presentation",onMouseDown:De=>{De.preventDefault()},children:V}):null,Ze.length>0?O.jsx(wwe,T({as:L,className:Kt.listbox,ownerState:Ut},Yt,K,{ref:kt,children:Ze.map((De,nt)=>Q?se({key:De.key,group:De.group,children:De.options.map((lt,xt)=>ke(lt,De.index+xt))}):ke(De,nt))})):null]}))})):null]})}),_we=Swe,Ewe=rr(O.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function Pwe(e){return et("MuiAvatar",e)}Qe("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const Twe=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],kwe=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Xe({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},Pwe,t)},Owe=de("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e,ownerState:t})=>T({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.variant==="square"&&{borderRadius:0},t.colorDefault&&T({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600]}))),Rwe=de("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Dwe=de(Ewe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function Mwe({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,a]=S.useState(!1);return S.useEffect(()=>{if(!n&&!r)return;a(!1);let i=!0;const s=new Image;return s.onload=()=>{i&&a("loaded")},s.onerror=()=>{i&&a("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=n,r&&(s.srcset=r),()=>{i=!1}},[e,t,n,r]),o}const Iwe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiAvatar"}),{alt:o,children:a,className:i,component:s="div",imgProps:l,sizes:c,src:u,srcSet:f,variant:p="circular"}=r,m=Oe(r,Twe);let b=null;const v=Mwe(T({},l,{src:u,srcSet:f})),x=u||f,g=x&&v!=="error",y=T({},r,{colorDefault:!g,component:s,variant:p}),w=kwe(y);return g?b=O.jsx(Rwe,T({alt:o,srcSet:f,src:u,sizes:c,ownerState:y,className:w.img},l)):a!=null?b=a:x&&o?b=o[0]:b=O.jsx(Dwe,{ownerState:y,className:w.fallback}),O.jsx(Owe,T({as:s,ownerState:y,className:Ie(w.root,i),ref:n},m,{children:b}))}),Gj=Iwe,Awe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Nwe={entering:{opacity:1},entered:{opacity:1}},jwe=S.forwardRef(function(t,n){const r=nr(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:s,easing:l,in:c,onEnter:u,onEntered:f,onEntering:p,onExit:m,onExited:b,onExiting:v,style:x,timeout:g=o,TransitionComponent:y=y0}=t,w=Oe(t,Awe),C=S.useRef(null),_=sn(C,s.ref,n),$=B=>z=>{if(B){const Y=C.current;z===void 0?B(Y):B(Y,z)}},E=$(p),k=$((B,z)=>{Tj(B);const Y=Hu({style:x,timeout:g,easing:l},{mode:"enter"});B.style.webkitTransition=r.transitions.create("opacity",Y),B.style.transition=r.transitions.create("opacity",Y),u&&u(B,z)}),I=$(f),R=$(v),F=$(B=>{const z=Hu({style:x,timeout:g,easing:l},{mode:"exit"});B.style.webkitTransition=r.transitions.create("opacity",z),B.style.transition=r.transitions.create("opacity",z),m&&m(B)}),U=$(b),G=B=>{a&&a(C.current,B)};return O.jsx(y,T({appear:i,in:c,nodeRef:C,onEnter:k,onEntered:I,onEntering:E,onExit:F,onExited:U,onExiting:R,addEndListener:G,timeout:g},w,{children:(B,z)=>S.cloneElement(s,T({style:T({opacity:0,visibility:B==="exited"&&!c?"hidden":void 0},Nwe[B],x,s.props.style),ref:_},z))}))}),Cd=jwe;function Lwe(e){return et("MuiBackdrop",e)}Qe("MuiBackdrop",["root","invisible"]);const Fwe=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],zwe=e=>{const{classes:t,invisible:n}=e;return Xe({root:["root",n&&"invisible"]},Lwe,t)},Bwe=de("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>T({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Vwe=S.forwardRef(function(t,n){var r,o,a;const i=Ke({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:c="div",components:u={},componentsProps:f={},invisible:p=!1,open:m,slotProps:b={},slots:v={},TransitionComponent:x=Cd,transitionDuration:g}=i,y=Oe(i,Fwe),w=T({},i,{component:c,invisible:p}),C=zwe(w),_=(r=b.root)!=null?r:f.root;return O.jsx(x,T({in:m,timeout:g},y,{children:O.jsx(Bwe,T({"aria-hidden":!0},_,{as:(o=(a=v.root)!=null?a:u.Root)!=null?o:c,className:Ie(C.root,l,_==null?void 0:_.className),ownerState:T({},w,_==null?void 0:_.ownerState),classes:C,ref:n,children:s}))}))}),qj=Vwe;function Uwe(e){return et("MuiBadge",e)}const Wwe=Qe("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),$s=Wwe,Hwe=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],px=10,hx=4,Gwe=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:a,classes:i={}}=e,s={root:["root"],badge:["badge",a,r&&"invisible",`anchorOrigin${je(n.vertical)}${je(n.horizontal)}`,`anchorOrigin${je(n.vertical)}${je(n.horizontal)}${je(o)}`,`overlap${je(o)}`,t!=="default"&&`color${je(t)}`]};return Xe(s,Uwe,i)},qwe=de("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Ywe=de("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${je(n.anchorOrigin.vertical)}${je(n.anchorOrigin.horizontal)}${je(n.overlap)}`],n.color!=="default"&&t[`color${je(n.color)}`],n.invisible&&t.invisible]}})(({theme:e,ownerState:t})=>T({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:px*2,lineHeight:1,padding:"0 6px",height:px*2,borderRadius:px,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.variant==="dot"&&{borderRadius:hx,height:hx*2,minWidth:hx*2,padding:0},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${$s.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${$s.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${$s.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${$s.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${$s.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${$s.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${$s.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${$s.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})})),Kwe=S.forwardRef(function(t,n){var r,o,a,i,s,l;const c=Ke({props:t,name:"MuiBadge"}),{anchorOrigin:u={vertical:"top",horizontal:"right"},className:f,component:p,components:m={},componentsProps:b={},children:v,overlap:x="rectangular",color:g="default",invisible:y=!1,max:w=99,badgeContent:C,slots:_,slotProps:$,showZero:E=!1,variant:k="standard"}=c,I=Oe(c,Hwe),{badgeContent:R,invisible:F,max:U,displayValue:G}=F1e({max:w,invisible:y,badgeContent:C,showZero:E}),B=k_({anchorOrigin:u,color:g,overlap:x,variant:k,badgeContent:C}),z=F||R==null&&k!=="dot",{color:Y=g,overlap:Q=x,anchorOrigin:H=u,variant:J=k}=z?B:c,X=J!=="dot"?G:void 0,L=T({},c,{badgeContent:R,invisible:z,max:U,displayValue:X,showZero:E,anchorOrigin:H,color:Y,overlap:Q,variant:J}),K=Gwe(L),q=(r=(o=_==null?void 0:_.root)!=null?o:m.Root)!=null?r:qwe,D=(a=(i=_==null?void 0:_.badge)!=null?i:m.Badge)!=null?a:Ywe,N=(s=$==null?void 0:$.root)!=null?s:b.root,V=(l=$==null?void 0:$.badge)!=null?l:b.badge,Z=zt({elementType:q,externalSlotProps:N,externalForwardedProps:I,additionalProps:{ref:n,as:p},ownerState:L,className:Ie(N==null?void 0:N.className,K.root,f)}),re=zt({elementType:D,externalSlotProps:V,ownerState:L,className:Ie(K.badge,V==null?void 0:V.className)});return O.jsxs(q,T({},Z,{children:[v,O.jsx(D,T({},re,{children:X}))]}))}),Yj=Kwe;function Jwe(e){return et("MuiButton",e)}const Zwe=Qe("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Ym=Zwe,Xwe=S.createContext({}),Qwe=Xwe,eCe=S.createContext(void 0),tCe=eCe,nCe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],rCe=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,classes:i}=e,s={root:["root",a,`${a}${je(t)}`,`size${je(o)}`,`${a}Size${je(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${je(o)}`],endIcon:["endIcon",`iconSize${je(o)}`]},l=Xe(s,Jwe,i);return T({},i,l)},Kj=e=>T({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),oCe=de(Ca,{shouldForwardProp:e=>ta(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${je(n.color)}`],t[`size${je(n.size)}`],t[`${n.variant}Size${je(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return T({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":T({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Ym.focusVisible}`]:T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Ym.disabled}`]:T({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Tt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Ym.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ym.disabled}`]:{boxShadow:"none"}}),aCe=de("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${je(n.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Kj(e))),iCe=de("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${je(n.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Kj(e))),sCe=S.forwardRef(function(t,n){const r=S.useContext(Qwe),o=S.useContext(tCe),a=O_(r,t),i=Ke({props:a,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:m=!1,endIcon:b,focusVisibleClassName:v,fullWidth:x=!1,size:g="medium",startIcon:y,type:w,variant:C="text"}=i,_=Oe(i,nCe),$=T({},i,{color:l,component:c,disabled:f,disableElevation:p,disableFocusRipple:m,fullWidth:x,size:g,type:w,variant:C}),E=rCe($),k=y&&O.jsx(aCe,{className:E.startIcon,ownerState:$,children:y}),I=b&&O.jsx(iCe,{className:E.endIcon,ownerState:$,children:b}),R=o||"";return O.jsxs(oCe,T({ownerState:$,className:Ie(r.className,E.root,u,R),component:c,disabled:f,focusRipple:!m,focusVisibleClassName:Ie(E.focusVisible,v),ref:n,type:w},_,{classes:E,children:[k,s,I]}))}),Uo=sCe;function lCe(e){return et("MuiCard",e)}Qe("MuiCard",["root"]);const cCe=["className","raised"],uCe=e=>{const{classes:t}=e;return Xe({root:["root"]},lCe,t)},dCe=de(ls,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),fCe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiCard"}),{className:o,raised:a=!1}=r,i=Oe(r,cCe),s=T({},r,{raised:a}),l=uCe(s);return O.jsx(dCe,T({className:Ie(l.root,o),elevation:a?8:void 0,ref:n,ownerState:s},i))}),pCe=fCe;function hCe(e){return et("MuiCardContent",e)}Qe("MuiCardContent",["root"]);const mCe=["className","component"],vCe=e=>{const{classes:t}=e;return Xe({root:["root"]},hCe,t)},gCe=de("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),yCe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiCardContent"}),{className:o,component:a="div"}=r,i=Oe(r,mCe),s=T({},r,{component:a}),l=vCe(s);return O.jsx(gCe,T({as:a,className:Ie(l.root,o),ownerState:s,ref:n},i))}),bCe=yCe;function xCe(e){return et("MuiCardHeader",e)}const wCe=Qe("MuiCardHeader",["root","avatar","action","content","title","subheader"]),xD=wCe,CCe=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],$Ce=e=>{const{classes:t}=e;return Xe({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},xCe,t)},SCe=de("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>T({[`& .${xD.title}`]:t.title,[`& .${xD.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),_Ce=de("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),ECe=de("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),PCe=de("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),TCe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiCardHeader"}),{action:o,avatar:a,className:i,component:s="div",disableTypography:l=!1,subheader:c,subheaderTypographyProps:u,title:f,titleTypographyProps:p}=r,m=Oe(r,CCe),b=T({},r,{component:s,disableTypography:l}),v=$Ce(b);let x=f;x!=null&&x.type!==gn&&!l&&(x=O.jsx(gn,T({variant:a?"body2":"h5",className:v.title,component:"span",display:"block"},p,{children:x})));let g=c;return g!=null&&g.type!==gn&&!l&&(g=O.jsx(gn,T({variant:a?"body2":"body1",className:v.subheader,color:"text.secondary",component:"span",display:"block"},u,{children:g}))),O.jsxs(SCe,T({className:Ie(v.root,i),as:s,ref:n,ownerState:b},m,{children:[a&&O.jsx(_Ce,{className:v.avatar,ownerState:b,children:a}),O.jsxs(PCe,{className:v.content,ownerState:b,children:[x,g]}),o&&O.jsx(ECe,{className:v.action,ownerState:b,children:o})]}))}),kCe=TCe;function OCe(e){return et("PrivateSwitchBase",e)}Qe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const RCe=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],DCe=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,a={root:["root",n&&"checked",r&&"disabled",o&&`edge${je(o)}`],input:["input"]};return Xe(a,OCe,t)},MCe=de(Ca)(({ownerState:e})=>T({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),ICe=de("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),ACe=S.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:a,className:i,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:f,id:p,inputProps:m,inputRef:b,name:v,onBlur:x,onChange:g,onFocus:y,readOnly:w,required:C=!1,tabIndex:_,type:$,value:E}=t,k=Oe(t,RCe),[I,R]=Cr({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),F=Pi(),U=J=>{y&&y(J),F&&F.onFocus&&F.onFocus(J)},G=J=>{x&&x(J),F&&F.onBlur&&F.onBlur(J)},B=J=>{if(J.nativeEvent.defaultPrevented)return;const X=J.target.checked;R(X),g&&g(J,X)};let z=l;F&&typeof z>"u"&&(z=F.disabled);const Y=$==="checkbox"||$==="radio",Q=T({},t,{checked:I,disabled:z,disableFocusRipple:c,edge:u}),H=DCe(Q);return O.jsxs(MCe,T({component:"span",className:Ie(H.root,i),centerRipple:!0,focusRipple:!c,disabled:z,tabIndex:null,role:void 0,onFocus:U,onBlur:G,ownerState:Q,ref:n},k,{children:[O.jsx(ICe,T({autoFocus:r,checked:o,defaultChecked:s,className:H.input,disabled:z,id:Y?p:void 0,name:v,onChange:B,readOnly:w,ref:b,required:C,ownerState:Q,tabIndex:_,type:$},$==="checkbox"&&E===void 0?{}:{value:E},m)),I?a:f]}))}),f2=ACe,NCe=rr(O.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),jCe=rr(O.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),LCe=rr(O.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function FCe(e){return et("MuiCheckbox",e)}const zCe=Qe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),mx=zCe,BCe=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],VCe=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,a={root:["root",n&&"indeterminate",`color${je(r)}`,`size${je(o)}`]},i=Xe(a,FCe,t);return T({},t,i)},UCe=de(f2,{shouldForwardProp:e=>ta(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,n.color!=="default"&&t[`color${je(n.color)}`]]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${mx.checked}, &.${mx.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${mx.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),WCe=O.jsx(jCe,{}),HCe=O.jsx(NCe,{}),GCe=O.jsx(LCe,{}),qCe=S.forwardRef(function(t,n){var r,o;const a=Ke({props:t,name:"MuiCheckbox"}),{checkedIcon:i=WCe,color:s="primary",icon:l=HCe,indeterminate:c=!1,indeterminateIcon:u=GCe,inputProps:f,size:p="medium",className:m}=a,b=Oe(a,BCe),v=c?u:l,x=c?u:i,g=T({},a,{color:s,indeterminate:c,size:p}),y=VCe(g);return O.jsx(UCe,T({type:"checkbox",inputProps:T({"data-indeterminate":c},f),icon:S.cloneElement(v,{fontSize:(r=v.props.fontSize)!=null?r:p}),checkedIcon:S.cloneElement(x,{fontSize:(o=x.props.fontSize)!=null?o:p}),ownerState:g,ref:n,className:Ie(y.root,m)},b,{classes:y}))}),YCe=qCe;function KCe(e){return et("MuiModal",e)}Qe("MuiModal",["root","hidden","backdrop"]);const JCe=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],ZCe=e=>{const{open:t,exited:n,classes:r}=e;return Xe({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},KCe,r)},XCe=de("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>T({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),QCe=de(qj,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),e$e=S.forwardRef(function(t,n){var r,o,a,i,s,l;const c=Ke({name:"MuiModal",props:t}),{BackdropComponent:u=QCe,BackdropProps:f,className:p,closeAfterTransition:m=!1,children:b,container:v,component:x,components:g={},componentsProps:y={},disableAutoFocus:w=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:_=!1,disablePortal:$=!1,disableRestoreFocus:E=!1,disableScrollLock:k=!1,hideBackdrop:I=!1,keepMounted:R=!1,onBackdropClick:F,open:U,slotProps:G,slots:B}=c,z=Oe(c,JCe),Y=T({},c,{closeAfterTransition:m,disableAutoFocus:w,disableEnforceFocus:C,disableEscapeKeyDown:_,disablePortal:$,disableRestoreFocus:E,disableScrollLock:k,hideBackdrop:I,keepMounted:R}),{getRootProps:Q,getBackdropProps:H,getTransitionProps:J,portalRef:X,isTopModal:L,exited:K,hasTransition:q}=vxe(T({},Y,{rootRef:n})),D=T({},Y,{exited:K}),N=ZCe(D),V={};if(b.props.tabIndex===void 0&&(V.tabIndex="-1"),q){const{onEnter:he,onExited:_e}=J();V.onEnter=he,V.onExited=_e}const Z=(r=(o=B==null?void 0:B.root)!=null?o:g.Root)!=null?r:XCe,re=(a=(i=B==null?void 0:B.backdrop)!=null?i:g.Backdrop)!=null?a:u,le=(s=G==null?void 0:G.root)!=null?s:y.root,xe=(l=G==null?void 0:G.backdrop)!=null?l:y.backdrop,fe=zt({elementType:Z,externalSlotProps:le,externalForwardedProps:z,getSlotProps:Q,additionalProps:{ref:n,as:x},ownerState:D,className:Ie(p,le==null?void 0:le.className,N==null?void 0:N.root,!D.open&&D.exited&&(N==null?void 0:N.hidden))}),ge=zt({elementType:re,externalSlotProps:xe,additionalProps:f,getSlotProps:he=>H(T({},he,{onClick:_e=>{F&&F(_e),he!=null&&he.onClick&&he.onClick(_e)}})),className:Ie(xe==null?void 0:xe.className,f==null?void 0:f.className,N==null?void 0:N.backdrop),ownerState:D});return!R&&!U&&(!q||K)?null:O.jsx(Bj,{ref:X,container:v,disablePortal:$,children:O.jsxs(Z,T({},fe,{children:[!I&&u?O.jsx(re,T({},ge)):null,O.jsx(Rj,{disableEnforceFocus:C,disableAutoFocus:w,disableRestoreFocus:E,isEnabled:L,open:U,children:S.cloneElement(b,V)})]}))})}),Jj=e$e;function t$e(e){return et("MuiDialog",e)}const n$e=Qe("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Kf=n$e,r$e=S.createContext({}),Zj=r$e,o$e=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],a$e=de(qj,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),i$e=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:a}=e,i={root:["root"],container:["container",`scroll${je(n)}`],paper:["paper",`paperScroll${je(n)}`,`paperWidth${je(String(r))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return Xe(i,t$e,t)},s$e=de(Jj,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),l$e=de("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${je(n.scroll)}`]]}})(({ownerState:e})=>T({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),c$e=de(ls,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${je(n.scroll)}`],t[`paperWidth${je(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>T({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Kf.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${Kf.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Kf.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),u$e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialog"}),o=nr(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":s,BackdropComponent:l,BackdropProps:c,children:u,className:f,disableEscapeKeyDown:p=!1,fullScreen:m=!1,fullWidth:b=!1,maxWidth:v="sm",onBackdropClick:x,onClose:g,open:y,PaperComponent:w=ls,PaperProps:C={},scroll:_="paper",TransitionComponent:$=Cd,transitionDuration:E=a,TransitionProps:k}=r,I=Oe(r,o$e),R=T({},r,{disableEscapeKeyDown:p,fullScreen:m,fullWidth:b,maxWidth:v,scroll:_}),F=i$e(R),U=S.useRef(),G=Q=>{U.current=Q.target===Q.currentTarget},B=Q=>{U.current&&(U.current=null,x&&x(Q),g&&g(Q,"backdropClick"))},z=Ya(s),Y=S.useMemo(()=>({titleId:z}),[z]);return O.jsx(s$e,T({className:Ie(F.root,f),closeAfterTransition:!0,components:{Backdrop:a$e},componentsProps:{backdrop:T({transitionDuration:E,as:l},c)},disableEscapeKeyDown:p,onClose:g,open:y,ref:n,onClick:B,ownerState:R},I,{children:O.jsx($,T({appear:!0,in:y,timeout:E,role:"presentation"},k,{children:O.jsx(l$e,{className:Ie(F.container),onMouseDown:G,ownerState:R,children:O.jsx(c$e,T({as:w,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":z},C,{className:Ie(F.paper,C.className),ownerState:R,children:O.jsx(Zj.Provider,{value:Y,children:u})}))})}))}))}),E0=u$e;function d$e(e){return et("MuiDialogActions",e)}Qe("MuiDialogActions",["root","spacing"]);const f$e=["className","disableSpacing"],p$e=e=>{const{classes:t,disableSpacing:n}=e;return Xe({root:["root",!n&&"spacing"]},d$e,t)},h$e=de("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>T({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),m$e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1}=r,i=Oe(r,f$e),s=T({},r,{disableSpacing:a}),l=p$e(s);return O.jsx(h$e,T({className:Ie(l.root,o),ownerState:s,ref:n},i))}),P0=m$e;function v$e(e){return et("MuiDialogContent",e)}Qe("MuiDialogContent",["root","dividers"]);function g$e(e){return et("MuiDialogTitle",e)}const y$e=Qe("MuiDialogTitle",["root"]),b$e=y$e,x$e=["className","dividers"],w$e=e=>{const{classes:t,dividers:n}=e;return Xe({root:["root",n&&"dividers"]},v$e,t)},C$e=de("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>T({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${b$e.root} + &`]:{paddingTop:0}})),$$e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1}=r,i=Oe(r,x$e),s=T({},r,{dividers:a}),l=w$e(s);return O.jsx(C$e,T({className:Ie(l.root,o),ownerState:s,ref:n},i))}),T0=$$e;function S$e(e){return et("MuiDialogContentText",e)}Qe("MuiDialogContentText",["root"]);const _$e=["children","className"],E$e=e=>{const{classes:t}=e,r=Xe({root:["root"]},S$e,t);return T({},t,r)},P$e=de(gn,{shouldForwardProp:e=>ta(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),T$e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogContentText"}),{className:o}=r,a=Oe(r,_$e),i=E$e(a);return O.jsx(P$e,T({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:a,className:Ie(i.root,o)},r,{classes:i}))}),p2=T$e,k$e=["className","id"],O$e=e=>{const{classes:t}=e;return Xe({root:["root"]},g$e,t)},R$e=de(gn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),D$e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogTitle"}),{className:o,id:a}=r,i=Oe(r,k$e),s=r,l=O$e(s),{titleId:c=a}=S.useContext(Zj);return O.jsx(R$e,T({component:"h2",className:Ie(l.root,o),ownerState:s,ref:n,variant:"h6",id:a??c},i))}),h2=D$e;function M$e(e){return et("MuiDivider",e)}const I$e=Qe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),wD=I$e,A$e=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],N$e=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:a,orientation:i,textAlign:s,variant:l}=e;return Xe({root:["root",t&&"absolute",l,a&&"light",i==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&i==="vertical"&&"withChildrenVertical",s==="right"&&i!=="vertical"&&"textAlignRight",s==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},M$e,r)},j$e=de("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>T({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Tt(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>T({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>T({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>T({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>T({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),L$e=de("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>T({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),Xj=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDivider"}),{absolute:o=!1,children:a,className:i,component:s=a?"div":"hr",flexItem:l=!1,light:c=!1,orientation:u="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:p="center",variant:m="fullWidth"}=r,b=Oe(r,A$e),v=T({},r,{absolute:o,component:s,flexItem:l,light:c,orientation:u,role:f,textAlign:p,variant:m}),x=N$e(v);return O.jsx(j$e,T({as:s,className:Ie(x.root,i),role:f,ref:n,ownerState:v},b,{children:a?O.jsx(L$e,{className:x.wrapper,ownerState:v,children:a}):null}))});Xj.muiSkipListHighlight=!0;const CD=Xj,F$e=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],z$e=e=>{const{classes:t,disableUnderline:n}=e,o=Xe({root:["root",!n&&"underline"],input:["input"]},iwe,t);return T({},t,o)},B$e=de(S0,{shouldForwardProp:e=>ta(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...C0(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return T({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${zo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${zo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${zo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${zo.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${zo.disabled}, .${zo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${zo.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&T({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),V$e=de(_0,{name:"MuiFilledInput",slot:"Input",overridesResolver:$0})(({theme:e,ownerState:t})=>T({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),Qj=S.forwardRef(function(t,n){var r,o,a,i;const s=Ke({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:f="input",multiline:p=!1,slotProps:m,slots:b={},type:v="text"}=s,x=Oe(s,F$e),g=T({},s,{fullWidth:u,inputComponent:f,multiline:p,type:v}),y=z$e(s),w={root:{ownerState:g},input:{ownerState:g}},C=m??c?Hr(m??c,w):w,_=(r=(o=b.root)!=null?o:l.Root)!=null?r:B$e,$=(a=(i=b.input)!=null?i:l.Input)!=null?a:V$e;return O.jsx(d2,T({slots:{root:_,input:$},componentsProps:C,fullWidth:u,inputComponent:f,multiline:p,ref:n,type:v},x,{classes:y}))});Qj.muiName="Input";const e6=Qj;function U$e(e){return et("MuiFormControl",e)}Qe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const W$e=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],H$e=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${je(n)}`,r&&"fullWidth"]};return Xe(o,U$e,t)},G$e=de("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,t[`margin${je(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>T({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),q$e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiFormControl"}),{children:o,className:a,color:i="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:f=!1,hiddenLabel:p=!1,margin:m="none",required:b=!1,size:v="medium",variant:x="outlined"}=r,g=Oe(r,W$e),y=T({},r,{color:i,component:s,disabled:l,error:c,fullWidth:f,hiddenLabel:p,margin:m,required:b,size:v,variant:x}),w=H$e(y),[C,_]=S.useState(()=>{let G=!1;return o&&S.Children.forEach(o,B=>{if(!Eu(B,["Input","Select"]))return;const z=Eu(B,["Select"])?B.props.input:B;z&&Kxe(z.props)&&(G=!0)}),G}),[$,E]=S.useState(()=>{let G=!1;return o&&S.Children.forEach(o,B=>{Eu(B,["Input","Select"])&&(Ig(B.props,!0)||Ig(B.props.inputProps,!0))&&(G=!0)}),G}),[k,I]=S.useState(!1);l&&k&&I(!1);const R=u!==void 0&&!l?u:k;let F;const U=S.useMemo(()=>({adornedStart:C,setAdornedStart:_,color:i,disabled:l,error:c,filled:$,focused:R,fullWidth:f,hiddenLabel:p,size:v,onBlur:()=>{I(!1)},onEmpty:()=>{E(!1)},onFilled:()=>{E(!0)},onFocus:()=>{I(!0)},registerEffect:F,required:b,variant:x}),[C,i,l,c,$,R,f,p,F,b,v,x]);return O.jsx(w0.Provider,{value:U,children:O.jsx(G$e,T({as:s,ownerState:y,className:Ie(w.root,a),ref:n},g,{children:o}))})}),fh=q$e,Y$e=bye({createStyledComponent:de("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ke({props:e,name:"MuiStack"})}),K$e=Y$e;function J$e(e){return et("MuiFormControlLabel",e)}const Z$e=Qe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Pf=Z$e,X$e=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Q$e=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:a}=e,i={root:["root",n&&"disabled",`labelPlacement${je(r)}`,o&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Xe(i,J$e,t)},eSe=de("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Pf.label}`]:t.label},t.root,t[`labelPlacement${je(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>T({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Pf.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Pf.label}`]:{[`&.${Pf.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),tSe=de("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Pf.error}`]:{color:(e.vars||e).palette.error.main}})),nSe=S.forwardRef(function(t,n){var r,o;const a=Ke({props:t,name:"MuiFormControlLabel"}),{className:i,componentsProps:s={},control:l,disabled:c,disableTypography:u,label:f,labelPlacement:p="end",required:m,slotProps:b={}}=a,v=Oe(a,X$e),x=Pi(),g=(r=c??l.props.disabled)!=null?r:x==null?void 0:x.disabled,y=m??l.props.required,w={disabled:g,required:y};["checked","name","onChange","value","inputRef"].forEach(I=>{typeof l.props[I]>"u"&&typeof a[I]<"u"&&(w[I]=a[I])});const C=sl({props:a,muiFormControl:x,states:["error"]}),_=T({},a,{disabled:g,labelPlacement:p,required:y,error:C.error}),$=Q$e(_),E=(o=b.typography)!=null?o:s.typography;let k=f;return k!=null&&k.type!==gn&&!u&&(k=O.jsx(gn,T({component:"span"},E,{className:Ie($.label,E==null?void 0:E.className),children:k}))),O.jsxs(eSe,T({className:Ie($.root,i),ownerState:_,ref:n},v,{children:[S.cloneElement(l,w),y?O.jsxs(K$e,{direction:"row",alignItems:"center",children:[k,O.jsxs(tSe,{ownerState:_,"aria-hidden":!0,className:$.asterisk,children:[" ","*"]})]}):k]}))}),k0=nSe;function rSe(e){return et("MuiFormGroup",e)}Qe("MuiFormGroup",["root","row","error"]);const oSe=["className","row"],aSe=e=>{const{classes:t,row:n,error:r}=e;return Xe({root:["root",n&&"row",r&&"error"]},rSe,t)},iSe=de("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>T({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),sSe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiFormGroup"}),{className:o,row:a=!1}=r,i=Oe(r,oSe),s=Pi(),l=sl({props:r,muiFormControl:s,states:["error"]}),c=T({},r,{row:a,error:l.error}),u=aSe(c);return O.jsx(iSe,T({className:Ie(u.root,o),ownerState:c,ref:n},i))}),t6=sSe;function lSe(e){return et("MuiFormHelperText",e)}const cSe=Qe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),$D=cSe;var SD;const uSe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],dSe=e=>{const{classes:t,contained:n,size:r,disabled:o,error:a,filled:i,focused:s,required:l}=e,c={root:["root",o&&"disabled",a&&"error",r&&`size${je(r)}`,n&&"contained",s&&"focused",i&&"filled",l&&"required"]};return Xe(c,lSe,t)},fSe=de("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${je(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${$D.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${$D.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),pSe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiFormHelperText"}),{children:o,className:a,component:i="p"}=r,s=Oe(r,uSe),l=Pi(),c=sl({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),u=T({},r,{component:i,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=dSe(u);return O.jsx(fSe,T({as:i,ownerState:u,className:Ie(f.root,a),ref:n},s,{children:o===" "?SD||(SD=O.jsx("span",{className:"notranslate",children:"​"})):o}))}),fr=pSe;function hSe(e){return et("MuiFormLabel",e)}const mSe=Qe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Jf=mSe,vSe=["children","className","color","component","disabled","error","filled","focused","required"],gSe=e=>{const{classes:t,color:n,focused:r,disabled:o,error:a,filled:i,required:s}=e,l={root:["root",`color${je(n)}`,o&&"disabled",a&&"error",i&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return Xe(l,hSe,t)},ySe=de("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Jf.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Jf.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Jf.error}`]:{color:(e.vars||e).palette.error.main}})),bSe=de("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Jf.error}`]:{color:(e.vars||e).palette.error.main}})),xSe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiFormLabel"}),{children:o,className:a,component:i="label"}=r,s=Oe(r,vSe),l=Pi(),c=sl({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),u=T({},r,{color:c.color||"primary",component:i,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=gSe(u);return O.jsxs(ySe,T({as:i,ownerState:u,className:Ie(f.root,a),ref:n},s,{children:[o,c.required&&O.jsxs(bSe,{ownerState:u,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),m2=xSe,wSe=S.createContext(),_D=wSe;function CSe(e){return et("MuiGrid",e)}const $Se=[0,1,2,3,4,5,6,7,8,9,10],SSe=["column-reverse","column","row-reverse","row"],_Se=["nowrap","wrap-reverse","wrap"],sf=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Pp=Qe("MuiGrid",["root","container","item","zeroMinWidth",...$Se.map(e=>`spacing-xs-${e}`),...SSe.map(e=>`direction-xs-${e}`),..._Se.map(e=>`wrap-xs-${e}`),...sf.map(e=>`grid-xs-${e}`),...sf.map(e=>`grid-sm-${e}`),...sf.map(e=>`grid-md-${e}`),...sf.map(e=>`grid-lg-${e}`),...sf.map(e=>`grid-xl-${e}`)]),ESe=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function ku(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function PSe({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let a={};if(t[o]&&(n=t[o]),!n)return r;if(n===!0)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=Bl({values:t.columns,breakpoints:e.breakpoints.values}),s=typeof i=="object"?i[o]:i;if(s==null)return r;const l=`${Math.round(n/s*1e8)/1e6}%`;let c={};if(t.container&&t.item&&t.columnSpacing!==0){const u=e.spacing(t.columnSpacing);if(u!=="0px"){const f=`calc(${l} + ${ku(u)})`;c={flexBasis:f,maxWidth:f}}}a=T({flexBasis:l,flexGrow:0,maxWidth:l},c)}return e.breakpoints.values[o]===0?Object.assign(r,a):r[e.breakpoints.up(o)]=a,r},{})}function TSe({theme:e,ownerState:t}){const n=Bl({values:t.direction,breakpoints:e.breakpoints.values});return ko({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${Pp.item}`]={maxWidth:"none"}),o})}function n6({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(o=>{n===""&&t[o]!==0&&(n=o)});const r=Object.keys(e).sort((o,a)=>e[o]-e[a]);return r.slice(0,r.indexOf(n))}function kSe({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const a=Bl({values:r,breakpoints:e.breakpoints.values});let i;typeof a=="object"&&(i=n6({breakpoints:e.breakpoints.values,values:a})),o=ko({theme:e},a,(s,l)=>{var c;const u=e.spacing(s);return u!=="0px"?{marginTop:`-${ku(u)}`,[`& > .${Pp.item}`]:{paddingTop:ku(u)}}:(c=i)!=null&&c.includes(l)?{}:{marginTop:0,[`& > .${Pp.item}`]:{paddingTop:0}}})}return o}function OSe({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const a=Bl({values:r,breakpoints:e.breakpoints.values});let i;typeof a=="object"&&(i=n6({breakpoints:e.breakpoints.values,values:a})),o=ko({theme:e},a,(s,l)=>{var c;const u=e.spacing(s);return u!=="0px"?{width:`calc(100% + ${ku(u)})`,marginLeft:`-${ku(u)}`,[`& > .${Pp.item}`]:{paddingLeft:ku(u)}}:(c=i)!=null&&c.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${Pp.item}`]:{paddingLeft:0}}})}return o}function RSe(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(o=>{const a=e[o];Number(a)>0&&r.push(n[`spacing-${o}-${String(a)}`])}),r}const DSe=de("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:a,spacing:i,wrap:s,zeroMinWidth:l,breakpoints:c}=n;let u=[];r&&(u=RSe(i,c,t));const f=[];return c.forEach(p=>{const m=n[p];m&&f.push(t[`grid-${p}-${String(m)}`])}),[t.root,r&&t.container,a&&t.item,l&&t.zeroMinWidth,...u,o!=="row"&&t[`direction-xs-${String(o)}`],s!=="wrap"&&t[`wrap-xs-${String(s)}`],...f]}})(({ownerState:e})=>T({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),TSe,kSe,OSe,PSe);function MSe(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const o=e[r];if(Number(o)>0){const a=`spacing-${r}-${String(o)}`;n.push(a)}}),n}const ISe=e=>{const{classes:t,container:n,direction:r,item:o,spacing:a,wrap:i,zeroMinWidth:s,breakpoints:l}=e;let c=[];n&&(c=MSe(a,l));const u=[];l.forEach(p=>{const m=e[p];m&&u.push(`grid-${p}-${String(m)}`)});const f={root:["root",n&&"container",o&&"item",s&&"zeroMinWidth",...c,r!=="row"&&`direction-xs-${String(r)}`,i!=="wrap"&&`wrap-xs-${String(i)}`,...u]};return Xe(f,CSe,t)},ASe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiGrid"}),{breakpoints:o}=nr(),a=q_(r),{className:i,columns:s,columnSpacing:l,component:c="div",container:u=!1,direction:f="row",item:p=!1,rowSpacing:m,spacing:b=0,wrap:v="wrap",zeroMinWidth:x=!1}=a,g=Oe(a,ESe),y=m||b,w=l||b,C=S.useContext(_D),_=u?s||12:C,$={},E=T({},g);o.keys.forEach(R=>{g[R]!=null&&($[R]=g[R],delete E[R])});const k=T({},a,{columns:_,container:u,direction:f,item:p,rowSpacing:y,columnSpacing:w,wrap:v,zeroMinWidth:x,spacing:b},$,{breakpoints:o.keys}),I=ISe(k);return O.jsx(_D.Provider,{value:_,children:O.jsx(DSe,T({ownerState:k,className:Ie(I.root,i),as:c,ref:n},E))})}),en=ASe,NSe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function hC(e){return`scale(${e}, ${e**2})`}const jSe={entering:{opacity:1,transform:hC(1)},entered:{opacity:1,transform:"none"}},vx=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),r6=S.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:a,easing:i,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:f,onExited:p,onExiting:m,style:b,timeout:v="auto",TransitionComponent:x=y0}=t,g=Oe(t,NSe),y=S.useRef(),w=S.useRef(),C=nr(),_=S.useRef(null),$=sn(_,a.ref,n),E=z=>Y=>{if(z){const Q=_.current;Y===void 0?z(Q):z(Q,Y)}},k=E(u),I=E((z,Y)=>{Tj(z);const{duration:Q,delay:H,easing:J}=Hu({style:b,timeout:v,easing:i},{mode:"enter"});let X;v==="auto"?(X=C.transitions.getAutoHeightDuration(z.clientHeight),w.current=X):X=Q,z.style.transition=[C.transitions.create("opacity",{duration:X,delay:H}),C.transitions.create("transform",{duration:vx?X:X*.666,delay:H,easing:J})].join(","),l&&l(z,Y)}),R=E(c),F=E(m),U=E(z=>{const{duration:Y,delay:Q,easing:H}=Hu({style:b,timeout:v,easing:i},{mode:"exit"});let J;v==="auto"?(J=C.transitions.getAutoHeightDuration(z.clientHeight),w.current=J):J=Y,z.style.transition=[C.transitions.create("opacity",{duration:J,delay:Q}),C.transitions.create("transform",{duration:vx?J:J*.666,delay:vx?Q:Q||J*.333,easing:H})].join(","),z.style.opacity=0,z.style.transform=hC(.75),f&&f(z)}),G=E(p),B=z=>{v==="auto"&&(y.current=setTimeout(z,w.current||0)),r&&r(_.current,z)};return S.useEffect(()=>()=>{clearTimeout(y.current)},[]),O.jsx(x,T({appear:o,in:s,nodeRef:_,onEnter:I,onEntered:R,onEntering:k,onExit:U,onExited:G,onExiting:F,addEndListener:B,timeout:v==="auto"?null:v},g,{children:(z,Y)=>S.cloneElement(a,T({style:T({opacity:0,transform:hC(.75),visibility:z==="exited"&&!s?"hidden":void 0},jSe[z],b,a.props.style),ref:$},Y))}))});r6.muiSupportAuto=!0;const Ag=r6;function LSe(e,t,n,r,o){const[a,i]=S.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return Kn(()=>{let s=!0;if(!n)return;const l=n(e),c=()=>{s&&i(l.matches)};return c(),l.addListener(c),()=>{s=!1,l.removeListener(c)}},[e,n]),a}const o6=ep["useSyncExternalStore"];function FSe(e,t,n,r,o){const a=S.useCallback(()=>t,[t]),i=S.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return a},[a,e,r,o,n]),[s,l]=S.useMemo(()=>{if(n===null)return[a,()=>()=>{}];const u=n(e);return[()=>u.matches,f=>(u.addListener(f),()=>{u.removeListener(f)})]},[a,n,e]);return o6(l,s,i)}function ph(e,t={}){const n=G_(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:a=r?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:s=!1}=Y_({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(o6!==void 0?FSe:LSe)(l,o,a,i,s)}const zSe=["initialWidth","width"],Ns=["xs","sm","md","lg","xl"],BSe=(e,t,n=!0)=>n?Ns.indexOf(e)<=Ns.indexOf(t):Ns.indexOf(e)n?Ns.indexOf(t)<=Ns.indexOf(e):Ns.indexOf(t)t=>{const{withTheme:n=!1,noSSR:r=!1,initialWidth:o}=e;function a(i){const s=nr(),l=i.theme||s,c=Y_({theme:l,name:"MuiWithWidth",props:i}),{initialWidth:u,width:f}=c,p=Oe(c,zSe),[m,b]=S.useState(!1);Kn(()=>{b(!0)},[]);const x=l.breakpoints.keys.slice().reverse().reduce((y,w)=>{const C=ph(l.breakpoints.up(w));return!y&&C?w:y},null),g=T({width:f||(m||r?x:void 0)||u||o},n?{theme:l}:{},p);return g.width===void 0?null:O.jsx(t,T({},g))}return a},WSe=USe;function HSe(e){const{children:t,only:n,width:r}=e,o=nr();let a=!0;if(n)if(Array.isArray(n))for(let i=0;i{const{classes:t,breakpoints:n}=e,r={root:["root",...n.map(({breakpoint:o,dir:a})=>a==="only"?`${a}${je(o)}`:`${o}${je(a)}`)]};return Xe(r,qSe,t)},JSe=de("div",{name:"PrivateHiddenCss",slot:"Root"})(({theme:e,ownerState:t})=>{const n={display:"none"};return T({},t.breakpoints.map(({breakpoint:r,dir:o})=>o==="only"?{[e.breakpoints.only(r)]:n}:o==="up"?{[e.breakpoints.up(r)]:n}:{[e.breakpoints.down(r)]:n}).reduce((r,o)=>(Object.keys(o).forEach(a=>{r[a]=o[a]}),r),{}))});function ZSe(e){const{children:t,className:n,only:r}=e,o=Oe(e,YSe),a=nr(),i=[];for(let c=0;c{i.push({breakpoint:u,dir:"only"})});const s=T({},e,{breakpoints:i}),l=KSe(s);return O.jsx(JSe,{className:Ie(l.root,n),ownerState:s,children:t})}const XSe=["implementation","lgDown","lgUp","mdDown","mdUp","smDown","smUp","xlDown","xlUp","xsDown","xsUp"];function Pn(e){const{implementation:t="js",lgDown:n=!1,lgUp:r=!1,mdDown:o=!1,mdUp:a=!1,smDown:i=!1,smUp:s=!1,xlDown:l=!1,xlUp:c=!1,xsDown:u=!1,xsUp:f=!1}=e,p=Oe(e,XSe);return t==="js"?O.jsx(GSe,T({lgDown:n,lgUp:r,mdDown:o,mdUp:a,smDown:i,smUp:s,xlDown:l,xlUp:c,xsDown:u,xsUp:f},p)):O.jsx(ZSe,T({lgDown:n,lgUp:r,mdDown:o,mdUp:a,smDown:i,smUp:s,xlDown:l,xlUp:c,xsDown:u,xsUp:f},p))}const QSe=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],e_e=e=>{const{classes:t,disableUnderline:n}=e,o=Xe({root:["root",!n&&"underline"],input:["input"]},nwe,t);return T({},t,o)},t_e=de(S0,{shouldForwardProp:e=>ta(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...C0(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),T({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ds.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ds.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ds.disabled}, .${Ds.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Ds.disabled}:before`]:{borderBottomStyle:"dotted"}})}),n_e=de(_0,{name:"MuiInput",slot:"Input",overridesResolver:$0})({}),a6=S.forwardRef(function(t,n){var r,o,a,i;const s=Ke({props:t,name:"MuiInput"}),{disableUnderline:l,components:c={},componentsProps:u,fullWidth:f=!1,inputComponent:p="input",multiline:m=!1,slotProps:b,slots:v={},type:x="text"}=s,g=Oe(s,QSe),y=e_e(s),C={root:{ownerState:{disableUnderline:l}}},_=b??u?Hr(b??u,C):C,$=(r=(o=v.root)!=null?o:c.Root)!=null?r:t_e,E=(a=(i=v.input)!=null?i:c.Input)!=null?a:n_e;return O.jsx(d2,T({slots:{root:$,input:E},slotProps:_,fullWidth:f,inputComponent:p,multiline:m,ref:n,type:x},g,{classes:y}))});a6.muiName="Input";const cs=a6;function r_e(e){return et("MuiInputAdornment",e)}const o_e=Qe("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),ED=o_e;var PD;const a_e=["children","className","component","disablePointerEvents","disableTypography","position","variant"],i_e=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${je(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},s_e=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:a,variant:i}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${je(o)}`,i,r&&"hiddenLabel",a&&`size${je(a)}`]};return Xe(s,r_e,t)},l_e=de("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:i_e})(({theme:e,ownerState:t})=>T({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${ED.positionStart}&:not(.${ED.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),c_e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiInputAdornment"}),{children:o,className:a,component:i="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u}=r,f=Oe(r,a_e),p=Pi()||{};let m=u;u&&p.variant,p&&!m&&(m=p.variant);const b=T({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:c,variant:m}),v=s_e(b);return O.jsx(w0.Provider,{value:null,children:O.jsx(l_e,T({as:i,ownerState:b,className:Ie(v.root,a),ref:n},f,{children:typeof o=="string"&&!l?O.jsx(gn,{color:"text.secondary",children:o}):O.jsxs(S.Fragment,{children:[c==="start"?PD||(PD=O.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})}),v2=c_e;function u_e(e){return et("MuiInputLabel",e)}Qe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const d_e=["disableAnimation","margin","shrink","variant","className"],f_e=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:a,variant:i,required:s}=e,l={root:["root",n&&"formControl",!a&&"animated",o&&"shrink",r&&r!=="normal"&&`size${je(r)}`,i],asterisk:[s&&"asterisk"]},c=Xe(l,u_e,t);return T({},t,c)},p_e=de(m2,{shouldForwardProp:e=>ta(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Jf.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})(({theme:e,ownerState:t})=>T({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&T({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&T({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&T({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),h_e=S.forwardRef(function(t,n){const r=Ke({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:a,className:i}=r,s=Oe(r,d_e),l=Pi();let c=a;typeof c>"u"&&l&&(c=l.filled||l.focused||l.adornedStart);const u=sl({props:r,muiFormControl:l,states:["size","variant","required"]}),f=T({},r,{disableAnimation:o,formControl:l,shrink:c,size:u.size,variant:u.variant,required:u.required}),p=f_e(f);return O.jsx(p_e,T({"data-shrink":c,ownerState:f,ref:n,className:Ie(p.root,i)},s,{classes:p}))}),i6=h_e,m_e=S.createContext({}),Ki=m_e;function v_e(e){return et("MuiList",e)}Qe("MuiList",["root","padding","dense","subheader"]);const g_e=["children","className","component","dense","disablePadding","subheader"],y_e=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Xe({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},v_e,t)},b_e=de("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>T({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),x_e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiList"}),{children:o,className:a,component:i="ul",dense:s=!1,disablePadding:l=!1,subheader:c}=r,u=Oe(r,g_e),f=S.useMemo(()=>({dense:s}),[s]),p=T({},r,{component:i,dense:s,disablePadding:l}),m=y_e(p);return O.jsx(Ki.Provider,{value:f,children:O.jsxs(b_e,T({as:i,className:Ie(m.root,a),ref:n,ownerState:p},u,{children:[c,o]}))})}),g2=x_e;function w_e(e){return et("MuiListItem",e)}const C_e=Qe("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),tu=C_e,$_e=Qe("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),S_e=$_e;function __e(e){return et("MuiListItemSecondaryAction",e)}Qe("MuiListItemSecondaryAction",["root","disableGutters"]);const E_e=["className"],P_e=e=>{const{disableGutters:t,classes:n}=e;return Xe({root:["root",t&&"disableGutters"]},__e,n)},T_e=de("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>T({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),s6=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,a=Oe(r,E_e),i=S.useContext(Ki),s=T({},r,{disableGutters:i.disableGutters}),l=P_e(s);return O.jsx(T_e,T({className:Ie(l.root,o),ownerState:s,ref:n},a))});s6.muiName="ListItemSecondaryAction";const l6=s6,k_e=["className"],O_e=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],R_e=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},D_e=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:a,disableGutters:i,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=e;return Xe({root:["root",o&&"dense",!i&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},w_e,r)},M_e=de("div",{name:"MuiListItem",slot:"Root",overridesResolver:R_e})(({theme:e,ownerState:t})=>T({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&T({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${S_e.root}`]:{paddingRight:48}},{[`&.${tu.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${tu.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${tu.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${tu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${tu.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),I_e=de("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),A_e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:a=!1,button:i=!1,children:s,className:l,component:c,components:u={},componentsProps:f={},ContainerComponent:p="li",ContainerProps:{className:m}={},dense:b=!1,disabled:v=!1,disableGutters:x=!1,disablePadding:g=!1,divider:y=!1,focusVisibleClassName:w,secondaryAction:C,selected:_=!1,slotProps:$={},slots:E={}}=r,k=Oe(r.ContainerProps,k_e),I=Oe(r,O_e),R=S.useContext(Ki),F=S.useMemo(()=>({dense:b||R.dense||!1,alignItems:o,disableGutters:x}),[o,R.dense,b,x]),U=S.useRef(null);Kn(()=>{a&&U.current&&U.current.focus()},[a]);const G=S.Children.toArray(s),B=G.length&&Eu(G[G.length-1],["ListItemSecondaryAction"]),z=T({},r,{alignItems:o,autoFocus:a,button:i,dense:F.dense,disabled:v,disableGutters:x,disablePadding:g,divider:y,hasSecondaryAction:B,selected:_}),Y=D_e(z),Q=sn(U,n),H=E.root||u.Root||M_e,J=$.root||f.root||{},X=T({className:Ie(Y.root,J.className,l),disabled:v},I);let L=c||"li";return i&&(X.component=c||"div",X.focusVisibleClassName=Ie(tu.focusVisible,w),L=Ca),B?(L=!X.component&&!c?"div":L,p==="li"&&(L==="li"?L="div":X.component==="li"&&(X.component="div")),O.jsx(Ki.Provider,{value:F,children:O.jsxs(I_e,T({as:p,className:Ie(Y.container,m),ref:Q,ownerState:z},k,{children:[O.jsx(H,T({},J,!yi(H)&&{as:L,ownerState:T({},z,J.ownerState)},X,{children:G})),G.pop()]}))})):O.jsx(Ki.Provider,{value:F,children:O.jsxs(H,T({},J,{as:L,ref:Q},!yi(H)&&{ownerState:T({},z,J.ownerState)},X,{children:[G,C&&O.jsx(l6,{children:C})]}))})}),c6=A_e;function N_e(e){return et("MuiListItemAvatar",e)}Qe("MuiListItemAvatar",["root","alignItemsFlexStart"]);const j_e=["className"],L_e=e=>{const{alignItems:t,classes:n}=e;return Xe({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},N_e,n)},F_e=de("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>T({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),z_e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemAvatar"}),{className:o}=r,a=Oe(r,j_e),i=S.useContext(Ki),s=T({},r,{alignItems:i.alignItems}),l=L_e(s);return O.jsx(F_e,T({className:Ie(l.root,o),ownerState:s,ref:n},a))}),B_e=z_e,V_e=Qe("MuiListItemIcon",["root","alignItemsFlexStart"]),TD=V_e;function U_e(e){return et("MuiListItemText",e)}const W_e=Qe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Ng=W_e,H_e=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],G_e=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:a}=e;return Xe({root:["root",n&&"inset",a&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},U_e,t)},q_e=de("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ng.primary}`]:t.primary},{[`& .${Ng.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>T({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Y_e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemText"}),{children:o,className:a,disableTypography:i=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:f}=r,p=Oe(r,H_e),{dense:m}=S.useContext(Ki);let b=l??o,v=u;const x=T({},r,{disableTypography:i,inset:s,primary:!!b,secondary:!!v,dense:m}),g=G_e(x);return b!=null&&b.type!==gn&&!i&&(b=O.jsx(gn,T({variant:m?"body2":"body1",className:g.primary,component:c!=null&&c.variant?void 0:"span",display:"block"},c,{children:b}))),v!=null&&v.type!==gn&&!i&&(v=O.jsx(gn,T({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},f,{children:v}))),O.jsxs(q_e,T({className:Ie(g.root,a),ownerState:x,ref:n},p,{children:[b,v]}))}),K_e=Y_e,J_e=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function gx(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function kD(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function u6(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function lf(e,t,n,r,o,a){let i=!1,s=o(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!u6(s,a)||l)s=o(e,s,n);else return s.focus(),!0}return!1}const Z_e=S.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:a=!1,children:i,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:f="selectedMenu"}=t,p=Oe(t,J_e),m=S.useRef(null),b=S.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Kn(()=>{o&&m.current.focus()},[o]),S.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(w,C)=>{const _=!m.current.style.width;if(w.clientHeight{const C=m.current,_=w.key,$=zn(C).activeElement;if(_==="ArrowDown")w.preventDefault(),lf(C,$,c,l,gx);else if(_==="ArrowUp")w.preventDefault(),lf(C,$,c,l,kD);else if(_==="Home")w.preventDefault(),lf(C,null,c,l,gx);else if(_==="End")w.preventDefault(),lf(C,null,c,l,kD);else if(_.length===1){const E=b.current,k=_.toLowerCase(),I=performance.now();E.keys.length>0&&(I-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&k!==E.keys[0]&&(E.repeating=!1)),E.lastTime=I,E.keys.push(k);const R=$&&!E.repeating&&u6($,E);E.previousKeyMatched&&(R||lf(C,$,!1,l,gx,E))?w.preventDefault():E.previousKeyMatched=!1}u&&u(w)},x=sn(m,n);let g=-1;S.Children.forEach(i,(w,C)=>{if(!S.isValidElement(w)){g===C&&(g+=1,g>=i.length&&(g=-1));return}w.props.disabled||(f==="selectedMenu"&&w.props.selected||g===-1)&&(g=C),g===C&&(w.props.disabled||w.props.muiSkipListHighlight||w.type.muiSkipListHighlight)&&(g+=1,g>=i.length&&(g=-1))});const y=S.Children.map(i,(w,C)=>{if(C===g){const _={};return a&&(_.autoFocus=!0),w.props.tabIndex===void 0&&f==="selectedMenu"&&(_.tabIndex=0),S.cloneElement(w,_)}return w});return O.jsx(g2,T({role:"menu",ref:x,className:s,onKeyDown:v,tabIndex:o?0:-1},p,{children:y}))}),y2=Z_e;function X_e(e){return et("MuiPopover",e)}Qe("MuiPopover",["root","paper"]);const Q_e=["onEntering"],e2e=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],t2e=["slotProps"];function OD(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function RD(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function DD(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function yx(e){return typeof e=="function"?e():e}const n2e=e=>{const{classes:t}=e;return Xe({root:["root"],paper:["paper"]},X_e,t)},r2e=de(Jj,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),d6=de(ls,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),o2e=S.forwardRef(function(t,n){var r,o,a;const i=Ke({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:f="anchorEl",children:p,className:m,container:b,elevation:v=8,marginThreshold:x=16,open:g,PaperProps:y={},slots:w,slotProps:C,transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:$=Ag,transitionDuration:E="auto",TransitionProps:{onEntering:k}={},disableScrollLock:I=!1}=i,R=Oe(i.TransitionProps,Q_e),F=Oe(i,e2e),U=(r=C==null?void 0:C.paper)!=null?r:y,G=S.useRef(),B=sn(G,U.ref),z=T({},i,{anchorOrigin:c,anchorReference:f,elevation:v,marginThreshold:x,externalPaperSlotProps:U,transformOrigin:_,TransitionComponent:$,transitionDuration:E,TransitionProps:R}),Y=n2e(z),Q=S.useCallback(()=>{if(f==="anchorPosition")return u;const he=yx(l),ve=(he&&he.nodeType===1?he:zn(G.current).body).getBoundingClientRect();return{top:ve.top+OD(ve,c.vertical),left:ve.left+RD(ve,c.horizontal)}},[l,c.horizontal,c.vertical,u,f]),H=S.useCallback(he=>({vertical:OD(he,_.vertical),horizontal:RD(he,_.horizontal)}),[_.horizontal,_.vertical]),J=S.useCallback(he=>{const _e={width:he.offsetWidth,height:he.offsetHeight},ve=H(_e);if(f==="none")return{top:null,left:null,transformOrigin:DD(ve)};const Be=Q();let Ue=Be.top-ve.vertical,ze=Be.left-ve.horizontal;const He=Ue+_e.height,be=ze+_e.width,we=$i(yx(l)),Ce=we.innerHeight-x,qe=we.innerWidth-x;if(x!==null&&UeCe){const rt=He-Ce;Ue-=rt,ve.vertical+=rt}if(x!==null&&zeqe){const rt=be-qe;ze-=rt,ve.horizontal+=rt}return{top:`${Math.round(Ue)}px`,left:`${Math.round(ze)}px`,transformOrigin:DD(ve)}},[l,f,Q,H,x]),[X,L]=S.useState(g),K=S.useCallback(()=>{const he=G.current;if(!he)return;const _e=J(he);_e.top!==null&&(he.style.top=_e.top),_e.left!==null&&(he.style.left=_e.left),he.style.transformOrigin=_e.transformOrigin,L(!0)},[J]);S.useEffect(()=>(I&&window.addEventListener("scroll",K),()=>window.removeEventListener("scroll",K)),[l,I,K]);const q=(he,_e)=>{k&&k(he,_e),K()},D=()=>{L(!1)};S.useEffect(()=>{g&&K()}),S.useImperativeHandle(s,()=>g?{updatePosition:()=>{K()}}:null,[g,K]),S.useEffect(()=>{if(!g)return;const he=ah(()=>{K()}),_e=$i(l);return _e.addEventListener("resize",he),()=>{he.clear(),_e.removeEventListener("resize",he)}},[l,g,K]);let N=E;E==="auto"&&!$.muiSupportAuto&&(N=void 0);const V=b||(l?zn(yx(l)).body:void 0),Z=(o=w==null?void 0:w.root)!=null?o:r2e,re=(a=w==null?void 0:w.paper)!=null?a:d6,le=zt({elementType:re,externalSlotProps:T({},U,{style:X?U.style:T({},U.style,{opacity:0})}),additionalProps:{elevation:v,ref:B},ownerState:z,className:Ie(Y.paper,U==null?void 0:U.className)}),xe=zt({elementType:Z,externalSlotProps:(C==null?void 0:C.root)||{},externalForwardedProps:F,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:V,open:g},ownerState:z,className:Ie(Y.root,m)}),{slotProps:fe}=xe,ge=Oe(xe,t2e);return O.jsx(Z,T({},ge,!yi(Z)&&{slotProps:fe,disableScrollLock:I},{children:O.jsx($,T({appear:!0,in:g,onEntering:q,onExited:D,timeout:N},R,{children:O.jsx(re,T({},le,{children:p}))}))}))}),a2e=o2e;function i2e(e){return et("MuiMenu",e)}Qe("MuiMenu",["root","paper","list"]);const s2e=["onEntering"],l2e=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],c2e={vertical:"top",horizontal:"right"},u2e={vertical:"top",horizontal:"left"},d2e=e=>{const{classes:t}=e;return Xe({root:["root"],paper:["paper"],list:["list"]},i2e,t)},f2e=de(a2e,{shouldForwardProp:e=>ta(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),p2e=de(d6,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),h2e=de(y2,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),m2e=S.forwardRef(function(t,n){var r,o;const a=Ke({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:f,open:p,PaperProps:m={},PopoverClasses:b,transitionDuration:v="auto",TransitionProps:{onEntering:x}={},variant:g="selectedMenu",slots:y={},slotProps:w={}}=a,C=Oe(a.TransitionProps,s2e),_=Oe(a,l2e),$=nr(),E=$.direction==="rtl",k=T({},a,{autoFocus:i,disableAutoFocusItem:c,MenuListProps:u,onEntering:x,PaperProps:m,transitionDuration:v,TransitionProps:C,variant:g}),I=d2e(k),R=i&&!c&&p,F=S.useRef(null),U=(J,X)=>{F.current&&F.current.adjustStyleForScrollbar(J,$),x&&x(J,X)},G=J=>{J.key==="Tab"&&(J.preventDefault(),f&&f(J,"tabKeyDown"))};let B=-1;S.Children.map(s,(J,X)=>{S.isValidElement(J)&&(J.props.disabled||(g==="selectedMenu"&&J.props.selected||B===-1)&&(B=X))});const z=(r=y.paper)!=null?r:p2e,Y=(o=w.paper)!=null?o:m,Q=zt({elementType:y.root,externalSlotProps:w.root,ownerState:k,className:[I.root,l]}),H=zt({elementType:z,externalSlotProps:Y,ownerState:k,className:I.paper});return O.jsx(f2e,T({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?c2e:u2e,slots:{paper:z,root:y.root},slotProps:{root:Q,paper:H},open:p,ref:n,transitionDuration:v,TransitionProps:T({onEntering:U},C),ownerState:k},_,{classes:b,children:O.jsx(h2e,T({onKeyDown:G,actions:F,autoFocus:i&&(B===-1||c),autoFocusItem:R,variant:g},u,{className:Ie(I.list,u.className),children:s}))}))}),v2e=m2e;function g2e(e){return et("MuiMenuItem",e)}const y2e=Qe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),cf=y2e,b2e=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],x2e=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},w2e=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:i}=e,l=Xe({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},g2e,i);return T({},i,l)},C2e=de(Ca,{shouldForwardProp:e=>ta(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:x2e})(({theme:e,ownerState:t})=>T({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${cf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${cf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${cf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${cf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${cf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${wD.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${wD.inset}`]:{marginLeft:52},[`& .${Ng.root}`]:{marginTop:0,marginBottom:0},[`& .${Ng.inset}`]:{paddingLeft:36},[`& .${TD.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&T({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${TD.root} svg`]:{fontSize:"1.25rem"}}))),$2e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:f,className:p}=r,m=Oe(r,b2e),b=S.useContext(Ki),v=S.useMemo(()=>({dense:i||b.dense||!1,disableGutters:l}),[b.dense,i,l]),x=S.useRef(null);Kn(()=>{o&&x.current&&x.current.focus()},[o]);const g=T({},r,{dense:v.dense,divider:s,disableGutters:l}),y=w2e(r),w=sn(x,n);let C;return r.disabled||(C=f!==void 0?f:-1),O.jsx(Ki.Provider,{value:v,children:O.jsx(C2e,T({ref:w,role:u,tabIndex:C,component:a,focusVisibleClassName:Ie(y.focusVisible,c),className:Ie(y.root,p)},m,{ownerState:g,classes:y}))})}),jg=$2e;function S2e(e){return et("MuiNativeSelect",e)}const _2e=Qe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),b2=_2e,E2e=["className","disabled","error","IconComponent","inputRef","variant"],P2e=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e,s={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${je(n)}`,a&&"iconOpen",r&&"disabled"]};return Xe(s,S2e,t)},f6=({ownerState:e,theme:t})=>T({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":T({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${b2.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),T2e=de("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ta,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${b2.multiple}`]:t.multiple}]}})(f6),p6=({ownerState:e,theme:t})=>T({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${b2.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),k2e=de("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${je(n.variant)}`],n.open&&t.iconOpen]}})(p6),O2e=S.forwardRef(function(t,n){const{className:r,disabled:o,error:a,IconComponent:i,inputRef:s,variant:l="standard"}=t,c=Oe(t,E2e),u=T({},t,{disabled:o,variant:l,error:a}),f=P2e(u);return O.jsxs(S.Fragment,{children:[O.jsx(T2e,T({ownerState:u,className:Ie(f.select,r),disabled:o,ref:s||n},c)),t.multiple?null:O.jsx(k2e,{as:i,ownerState:u,className:f.icon})]})}),R2e=O2e;var MD;const D2e=["children","classes","className","label","notched"],M2e=de("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),I2e=de("legend")(({ownerState:e,theme:t})=>T({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&T({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function A2e(e){const{className:t,label:n,notched:r}=e,o=Oe(e,D2e),a=n!=null&&n!=="",i=T({},e,{notched:r,withLabel:a});return O.jsx(M2e,T({"aria-hidden":!0,className:t,ownerState:i},o,{children:O.jsx(I2e,{ownerState:i,children:a?O.jsx("span",{children:n}):MD||(MD=O.jsx("span",{className:"notranslate",children:"​"}))})}))}const N2e=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],j2e=e=>{const{classes:t}=e,r=Xe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},owe,t);return T({},t,r)},L2e=de(S0,{shouldForwardProp:e=>ta(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:C0})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return T({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ii.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ii.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${ii.focused} .${ii.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ii.error} .${ii.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ii.disabled} .${ii.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&T({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),F2e=de(A2e,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),z2e=de(_0,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:$0})(({theme:e,ownerState:t})=>T({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),h6=S.forwardRef(function(t,n){var r,o,a,i,s;const l=Ke({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:f="input",label:p,multiline:m=!1,notched:b,slots:v={},type:x="text"}=l,g=Oe(l,N2e),y=j2e(l),w=Pi(),C=sl({props:l,muiFormControl:w,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=T({},l,{color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:w,fullWidth:u,hiddenLabel:C.hiddenLabel,multiline:m,size:C.size,type:x}),$=(r=(o=v.root)!=null?o:c.Root)!=null?r:L2e,E=(a=(i=v.input)!=null?i:c.Input)!=null?a:z2e;return O.jsx(d2,T({slots:{root:$,input:E},renderSuffix:k=>O.jsx(F2e,{ownerState:_,className:y.notchedOutline,label:p!=null&&p!==""&&C.required?s||(s=O.jsxs(S.Fragment,{children:[p," ","*"]})):p,notched:typeof b<"u"?b:!!(k.startAdornment||k.filled||k.focused)}),fullWidth:u,inputComponent:f,multiline:m,ref:n,type:x},g,{classes:T({},y,{notchedOutline:null})}))});h6.muiName="Input";const m6=h6,B2e=rr(O.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),V2e=rr(O.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),U2e=de("span")({position:"relative",display:"flex"}),W2e=de(B2e)({transform:"scale(1)"}),H2e=de(V2e)(({theme:e,ownerState:t})=>T({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));function v6(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=T({},e,{checked:t});return O.jsxs(U2e,{className:n.root,ownerState:o,children:[O.jsx(W2e,{fontSize:r,className:n.background,ownerState:o}),O.jsx(H2e,{fontSize:r,className:n.dot,ownerState:o})]})}const G2e=S.createContext(void 0),g6=G2e;function q2e(){return S.useContext(g6)}function Y2e(e){return et("MuiRadio",e)}const K2e=Qe("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),ID=K2e,J2e=["checked","checkedIcon","color","icon","name","onChange","size","className"],Z2e=e=>{const{classes:t,color:n,size:r}=e,o={root:["root",`color${je(n)}`,r!=="medium"&&`size${je(r)}`]};return T({},t,Xe(o,Y2e,t))},X2e=de(f2,{shouldForwardProp:e=>ta(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${je(n.color)}`]]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${ID.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${ID.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function Q2e(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const AD=O.jsx(v6,{checked:!0}),ND=O.jsx(v6,{}),eEe=S.forwardRef(function(t,n){var r,o;const a=Ke({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:s=AD,color:l="primary",icon:c=ND,name:u,onChange:f,size:p="medium",className:m}=a,b=Oe(a,J2e),v=T({},a,{color:l,size:p}),x=Z2e(v),g=q2e();let y=i;const w=Eg(f,g&&g.onChange);let C=u;return g&&(typeof y>"u"&&(y=Q2e(g.value,a.value)),typeof C>"u"&&(C=g.name)),O.jsx(X2e,T({type:"radio",icon:S.cloneElement(c,{fontSize:(r=ND.props.fontSize)!=null?r:p}),checkedIcon:S.cloneElement(s,{fontSize:(o=AD.props.fontSize)!=null?o:p}),ownerState:v,classes:x,name:C,checked:y,onChange:w,ref:n,className:Ie(x.root,m)},b))}),tEe=eEe,nEe=["actions","children","defaultValue","name","onChange","value"],rEe=S.forwardRef(function(t,n){const{actions:r,children:o,defaultValue:a,name:i,onChange:s,value:l}=t,c=Oe(t,nEe),u=S.useRef(null),[f,p]=Cr({controlled:l,default:a,name:"RadioGroup"});S.useImperativeHandle(r,()=>({focus:()=>{let x=u.current.querySelector("input:not(:disabled):checked");x||(x=u.current.querySelector("input:not(:disabled)")),x&&x.focus()}}),[]);const m=sn(n,u),b=Ya(i),v=S.useMemo(()=>({name:b,onChange(x){p(x.target.value),s&&s(x,x.target.value)},value:f}),[b,s,p,f]);return O.jsx(g6.Provider,{value:v,children:O.jsx(t6,T({role:"radiogroup",ref:m},c,{children:o}))})}),oEe=rEe;function aEe(e){return et("MuiSelect",e)}const iEe=Qe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),uf=iEe;var jD;const sEe=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],lEe=de("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${uf.select}`]:t.select},{[`&.${uf.select}`]:t[n.variant]},{[`&.${uf.error}`]:t.error},{[`&.${uf.multiple}`]:t.multiple}]}})(f6,{[`&.${uf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),cEe=de("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${je(n.variant)}`],n.open&&t.iconOpen]}})(p6),uEe=de("input",{shouldForwardProp:e=>J_(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function LD(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function dEe(e){return e==null||typeof e=="string"&&!e.trim()}const fEe=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e,s={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${je(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Xe(s,aEe,t)},pEe=S.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":a,autoFocus:i,autoWidth:s,children:l,className:c,defaultOpen:u,defaultValue:f,disabled:p,displayEmpty:m,error:b=!1,IconComponent:v,inputRef:x,labelId:g,MenuProps:y={},multiple:w,name:C,onBlur:_,onChange:$,onClose:E,onFocus:k,onOpen:I,open:R,readOnly:F,renderValue:U,SelectDisplayProps:G={},tabIndex:B,value:z,variant:Y="standard"}=t,Q=Oe(t,sEe),[H,J]=Cr({controlled:z,default:f,name:"Select"}),[X,L]=Cr({controlled:R,default:u,name:"Select"}),K=S.useRef(null),q=S.useRef(null),[D,N]=S.useState(null),{current:V}=S.useRef(R!=null),[Z,re]=S.useState(),le=sn(n,x),xe=S.useCallback(Ne=>{q.current=Ne,Ne&&N(Ne)},[]),fe=D==null?void 0:D.parentNode;S.useImperativeHandle(le,()=>({focus:()=>{q.current.focus()},node:K.current,value:H}),[H]),S.useEffect(()=>{u&&X&&D&&!V&&(re(s?null:fe.clientWidth),q.current.focus())},[D,s]),S.useEffect(()=>{i&&q.current.focus()},[i]),S.useEffect(()=>{if(!g)return;const Ne=zn(q.current).getElementById(g);if(Ne){const ne=()=>{getSelection().isCollapsed&&q.current.focus()};return Ne.addEventListener("click",ne),()=>{Ne.removeEventListener("click",ne)}}},[g]);const ge=(Ne,ne)=>{Ne?I&&I(ne):E&&E(ne),V||(re(s?null:fe.clientWidth),L(Ne))},he=Ne=>{Ne.button===0&&(Ne.preventDefault(),q.current.focus(),ge(!0,Ne))},_e=Ne=>{ge(!1,Ne)},ve=S.Children.toArray(l),Be=Ne=>{const ne=ve.find(te=>te.props.value===Ne.target.value);ne!==void 0&&(J(ne.props.value),$&&$(Ne,ne))},Ue=Ne=>ne=>{let te;if(ne.currentTarget.hasAttribute("tabindex")){if(w){te=Array.isArray(H)?H.slice():[];const ie=H.indexOf(Ne.props.value);ie===-1?te.push(Ne.props.value):te.splice(ie,1)}else te=Ne.props.value;if(Ne.props.onClick&&Ne.props.onClick(ne),H!==te&&(J(te),$)){const ie=ne.nativeEvent||ne,$e=new ie.constructor(ie.type,ie);Object.defineProperty($e,"target",{writable:!0,value:{value:te,name:C}}),$($e,Ne)}w||ge(!1,ne)}},ze=Ne=>{F||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Ne.key)!==-1&&(Ne.preventDefault(),ge(!0,Ne))},He=D!==null&&X,be=Ne=>{!He&&_&&(Object.defineProperty(Ne,"target",{writable:!0,value:{value:H,name:C}}),_(Ne))};delete Q["aria-invalid"];let we,Ce;const qe=[];let rt=!1;(Ig({value:H})||m)&&(U?we=U(H):rt=!0);const Ae=ve.map(Ne=>{if(!S.isValidElement(Ne))return null;let ne;if(w){if(!Array.isArray(H))throw new Error(Xs(2));ne=H.some(te=>LD(te,Ne.props.value)),ne&&rt&&qe.push(Ne.props.children)}else ne=LD(H,Ne.props.value),ne&&rt&&(Ce=Ne.props.children);return S.cloneElement(Ne,{"aria-selected":ne?"true":"false",onClick:Ue(Ne),onKeyUp:te=>{te.key===" "&&te.preventDefault(),Ne.props.onKeyUp&&Ne.props.onKeyUp(te)},role:"option",selected:ne,value:void 0,"data-value":Ne.props.value})});rt&&(w?qe.length===0?we=null:we=qe.reduce((Ne,ne,te)=>(Ne.push(ne),te{const{classes:t}=e;return t},x2={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ta(e)&&e!=="variant",slot:"Root"},yEe=de(cs,x2)(""),bEe=de(m6,x2)(""),xEe=de(e6,x2)(""),y6=S.forwardRef(function(t,n){const r=Ke({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:i={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=Hj,id:f,input:p,inputProps:m,label:b,labelId:v,MenuProps:x,multiple:g=!1,native:y=!1,onClose:w,onOpen:C,open:_,renderValue:$,SelectDisplayProps:E,variant:k="outlined"}=r,I=Oe(r,mEe),R=y?R2e:hEe,F=Pi(),U=sl({props:r,muiFormControl:F,states:["variant","error"]}),G=U.variant||k,B=T({},r,{variant:G,classes:i}),z=gEe(B),Y=Oe(z,vEe),Q=p||{standard:O.jsx(yEe,{ownerState:B}),outlined:O.jsx(bEe,{label:b,ownerState:B}),filled:O.jsx(xEe,{ownerState:B})}[G],H=sn(n,Q.ref);return O.jsx(S.Fragment,{children:S.cloneElement(Q,T({inputComponent:R,inputProps:T({children:a,error:U.error,IconComponent:u,variant:G,type:void 0,multiple:g},y?{id:f}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:v,MenuProps:x,onClose:w,onOpen:C,open:_,renderValue:$,SelectDisplayProps:T({id:f},E)},m,{classes:m?Hr(Y,m.classes):Y},p?p.props.inputProps:{})},g&&y&&G==="outlined"?{notched:!0}:{},{ref:H,className:Ie(Q.props.className,s,z.root)},!p&&{variant:G},I))})});y6.muiName="Select";const b6=y6,wEe=e=>!e||!yi(e),CEe=wEe;function $Ee(e){return et("MuiSlider",e)}const SEe=Qe("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"]),za=SEe,_Ee=e=>{const{open:t}=e;return{offset:Ie(t&&za.valueLabelOpen),circle:za.valueLabelCircle,label:za.valueLabelLabel}};function EEe(e){const{children:t,className:n,value:r}=e,o=_Ee(e);return t?S.cloneElement(t,{className:Ie(t.props.className)},O.jsxs(S.Fragment,{children:[t.props.children,O.jsx("span",{className:Ie(o.offset,n),"aria-hidden":!0,children:O.jsx("span",{className:o.circle,children:O.jsx("span",{className:o.label,children:r})})})]})):null}const PEe=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function FD(e){return e}const TEe=de("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${je(n.color)}`],n.size!=="medium"&&t[`size${je(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>T({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&T({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&T({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${za.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${za.dragging}`]:{[`& .${za.thumb}, & .${za.track}`]:{transition:"none"}}})),kEe=de("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>T({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),OEe=de("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?i0(e.palette[t.color].main,.62):a0(e.palette[t.color].main,.5);return T({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})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),REe=de("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${je(n.color)}`],n.size!=="medium"&&t[`thumbSize${je(n.size)}`]]}})(({theme:e,ownerState:t})=>T({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})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":T({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${za.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Tt(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${za.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Tt(e.palette[t.color].main,.16)}`},[`&.${za.disabled}`]:{"&:hover":{boxShadow:"none"}}})),DEe=de(EEe,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>T({[`&.${za.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,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"},t.orientation==="horizontal"&&{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%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"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%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),MEe=de("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>J_(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>T({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),IEe=de("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>J_(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>T({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),AEe=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:a,classes:i,color:s,size:l}=e,c={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",s&&`color${je(s)}`,l&&`size${je(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${je(l)}`,s&&`thumbColor${je(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Xe(c,$Ee,i)},NEe=({children:e})=>e,jEe=S.forwardRef(function(t,n){var r,o,a,i,s,l,c,u,f,p,m,b,v,x,g,y,w,C,_,$,E,k,I,R;const F=Ke({props:t,name:"MuiSlider"}),G=nr().direction==="rtl",{"aria-label":B,"aria-valuetext":z,"aria-labelledby":Y,component:Q="span",components:H={},componentsProps:J={},color:X="primary",classes:L,className:K,disableSwap:q=!1,disabled:D=!1,getAriaLabel:N,getAriaValueText:V,marks:Z=!1,max:re=100,min:le=0,orientation:xe="horizontal",size:fe="medium",step:ge=1,scale:he=FD,slotProps:_e,slots:ve,track:Be="normal",valueLabelDisplay:Ue="off",valueLabelFormat:ze=FD}=F,He=Oe(F,PEe),be=T({},F,{isRtl:G,max:re,min:le,classes:L,disabled:D,disableSwap:q,orientation:xe,marks:Z,color:X,size:fe,step:ge,scale:he,track:Be,valueLabelDisplay:Ue,valueLabelFormat:ze}),{axisProps:we,getRootProps:Ce,getHiddenInputProps:qe,getThumbProps:rt,open:Ae,active:Le,axis:Fe,focusedThumbIndex:Pe,range:Te,dragging:it,marks:ct,values:gt,trackOffset:Ne,trackLeap:ne,getThumbStyle:te}=$xe(T({},be,{rootRef:n}));be.marked=ct.length>0&&ct.some(pe=>pe.label),be.dragging=it,be.focusedThumbIndex=Pe;const ie=AEe(be),$e=(r=(o=ve==null?void 0:ve.root)!=null?o:H.Root)!=null?r:TEe,Se=(a=(i=ve==null?void 0:ve.rail)!=null?i:H.Rail)!=null?a:kEe,Ze=(s=(l=ve==null?void 0:ve.track)!=null?l:H.Track)!=null?s:OEe,tt=(c=(u=ve==null?void 0:ve.thumb)!=null?u:H.Thumb)!=null?c:REe,ft=(f=(p=ve==null?void 0:ve.valueLabel)!=null?p:H.ValueLabel)!=null?f:DEe,_t=(m=(b=ve==null?void 0:ve.mark)!=null?b:H.Mark)!=null?m:MEe,vt=(v=(x=ve==null?void 0:ve.markLabel)!=null?x:H.MarkLabel)!=null?v:IEe,dt=(g=(y=ve==null?void 0:ve.input)!=null?y:H.Input)!=null?g:"input",Et=(w=_e==null?void 0:_e.root)!=null?w:J.root,Yt=(C=_e==null?void 0:_e.rail)!=null?C:J.rail,kt=(_=_e==null?void 0:_e.track)!=null?_:J.track,ln=($=_e==null?void 0:_e.thumb)!=null?$:J.thumb,Vt=(E=_e==null?void 0:_e.valueLabel)!=null?E:J.valueLabel,Ut=(k=_e==null?void 0:_e.mark)!=null?k:J.mark,Kt=(I=_e==null?void 0:_e.markLabel)!=null?I:J.markLabel,bn=(R=_e==null?void 0:_e.input)!=null?R:J.input,Bn=zt({elementType:$e,getSlotProps:Ce,externalSlotProps:Et,externalForwardedProps:He,additionalProps:T({},CEe($e)&&{as:Q}),ownerState:T({},be,Et==null?void 0:Et.ownerState),className:[ie.root,K]}),se=zt({elementType:Se,externalSlotProps:Yt,ownerState:be,className:ie.rail}),oe=zt({elementType:Ze,externalSlotProps:kt,additionalProps:{style:T({},we[Fe].offset(Ne),we[Fe].leap(ne))},ownerState:T({},be,kt==null?void 0:kt.ownerState),className:ie.track}),ue=zt({elementType:tt,getSlotProps:rt,externalSlotProps:ln,ownerState:T({},be,ln==null?void 0:ln.ownerState),className:ie.thumb}),ke=zt({elementType:ft,externalSlotProps:Vt,ownerState:T({},be,Vt==null?void 0:Vt.ownerState),className:ie.valueLabel}),Ee=zt({elementType:_t,externalSlotProps:Ut,ownerState:be,className:ie.mark}),pt=zt({elementType:vt,externalSlotProps:Kt,ownerState:be,className:ie.markLabel}),me=zt({elementType:dt,getSlotProps:qe,externalSlotProps:bn,ownerState:be});return O.jsxs($e,T({},Bn,{children:[O.jsx(Se,T({},se)),O.jsx(Ze,T({},oe)),ct.filter(pe=>pe.value>=le&&pe.value<=re).map((pe,De)=>{const nt=Mg(pe.value,le,re),lt=we[Fe].offset(nt);let xt;return Be===!1?xt=gt.indexOf(pe.value)!==-1:xt=Be==="normal"&&(Te?pe.value>=gt[0]&&pe.value<=gt[gt.length-1]:pe.value<=gt[0])||Be==="inverted"&&(Te?pe.value<=gt[0]||pe.value>=gt[gt.length-1]:pe.value>=gt[0]),O.jsxs(S.Fragment,{children:[O.jsx(_t,T({"data-index":De},Ee,!yi(_t)&&{markActive:xt},{style:T({},lt,Ee.style),className:Ie(Ee.className,xt&&ie.markActive)})),pe.label!=null?O.jsx(vt,T({"aria-hidden":!0,"data-index":De},pt,!yi(vt)&&{markLabelActive:xt},{style:T({},lt,pt.style),className:Ie(ie.markLabel,pt.className,xt&&ie.markLabelActive),children:pe.label})):null]},De)}),gt.map((pe,De)=>{const nt=Mg(pe,le,re),lt=we[Fe].offset(nt),xt=Ue==="off"?NEe:ft;return O.jsx(xt,T({},!yi(xt)&&{valueLabelFormat:ze,valueLabelDisplay:Ue,value:typeof ze=="function"?ze(he(pe),De):ze,index:De,open:Ae===De||Le===De||Ue==="on",disabled:D},ke,{children:O.jsx(tt,T({"data-index":De},ue,{className:Ie(ie.thumb,ue.className,Le===De&&ie.active,Pe===De&&ie.focusVisible),style:T({},lt,te(De),ue.style),children:O.jsx(dt,T({"data-index":De,"aria-label":N?N(De):B,"aria-valuenow":he(pe),"aria-labelledby":Y,"aria-valuetext":V?V(he(pe),De):z,value:gt[De]},me))}))}),De)})]}))}),LEe=jEe;function FEe(e){return et("MuiTooltip",e)}const zEe=Qe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),js=zEe,BEe=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function VEe(e){return Math.round(e*1e5)/1e5}const UEe=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e,i={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${je(a.split("-")[0])}`],arrow:["arrow"]};return Xe(i,FEe,t)},WEe=de(dh,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>T({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${js.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${js.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${js.arrow}`]:T({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${js.arrow}`]:T({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),HEe=de("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${je(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>T({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Tt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${VEe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${js.popper}[data-popper-placement*="left"] &`]:T({transformOrigin:"right center"},t.isRtl?T({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):T({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${js.popper}[data-popper-placement*="right"] &`]:T({transformOrigin:"left center"},t.isRtl?T({marginRight:"14px"},t.touch&&{marginRight:"24px"}):T({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${js.popper}[data-popper-placement*="top"] &`]:T({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${js.popper}[data-popper-placement*="bottom"] &`]:T({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),GEe=de("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Tt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Km=!1,bx=null,df={x:0,y:0};function Jm(e,t){return n=>{t&&t(n),e(n)}}const qEe=S.forwardRef(function(t,n){var r,o,a,i,s,l,c,u,f,p,m,b,v,x,g,y,w,C,_;const $=Ke({props:t,name:"MuiTooltip"}),{arrow:E=!1,children:k,components:I={},componentsProps:R={},describeChild:F=!1,disableFocusListener:U=!1,disableHoverListener:G=!1,disableInteractive:B=!1,disableTouchListener:z=!1,enterDelay:Y=100,enterNextDelay:Q=0,enterTouchDelay:H=700,followCursor:J=!1,id:X,leaveDelay:L=0,leaveTouchDelay:K=1500,onClose:q,onOpen:D,open:N,placement:V="bottom",PopperComponent:Z,PopperProps:re={},slotProps:le={},slots:xe={},title:fe,TransitionComponent:ge=Ag,TransitionProps:he}=$,_e=Oe($,BEe),ve=S.isValidElement(k)?k:O.jsx("span",{children:k}),Be=nr(),Ue=Be.direction==="rtl",[ze,He]=S.useState(),[be,we]=S.useState(null),Ce=S.useRef(!1),qe=B||J,rt=S.useRef(),Ae=S.useRef(),Le=S.useRef(),Fe=S.useRef(),[Pe,Te]=Cr({controlled:N,default:!1,name:"Tooltip",state:"open"});let it=Pe;const ct=Ya(X),gt=S.useRef(),Ne=S.useCallback(()=>{gt.current!==void 0&&(document.body.style.WebkitUserSelect=gt.current,gt.current=void 0),clearTimeout(Fe.current)},[]);S.useEffect(()=>()=>{clearTimeout(rt.current),clearTimeout(Ae.current),clearTimeout(Le.current),Ne()},[Ne]);const ne=yt=>{clearTimeout(bx),Km=!0,Te(!0),D&&!it&&D(yt)},te=mt(yt=>{clearTimeout(bx),bx=setTimeout(()=>{Km=!1},800+L),Te(!1),q&&it&&q(yt),clearTimeout(rt.current),rt.current=setTimeout(()=>{Ce.current=!1},Be.transitions.duration.shortest)}),ie=yt=>{Ce.current&&yt.type!=="touchstart"||(ze&&ze.removeAttribute("title"),clearTimeout(Ae.current),clearTimeout(Le.current),Y||Km&&Q?Ae.current=setTimeout(()=>{ne(yt)},Km?Q:Y):ne(yt))},$e=yt=>{clearTimeout(Ae.current),clearTimeout(Le.current),Le.current=setTimeout(()=>{te(yt)},L)},{isFocusVisibleRef:Se,onBlur:Ze,onFocus:tt,ref:ft}=Ay(),[,_t]=S.useState(!1),vt=yt=>{Ze(yt),Se.current===!1&&(_t(!1),$e(yt))},dt=yt=>{ze||He(yt.currentTarget),tt(yt),Se.current===!0&&(_t(!0),ie(yt))},Et=yt=>{Ce.current=!0;const Wt=ve.props;Wt.onTouchStart&&Wt.onTouchStart(yt)},Yt=ie,kt=$e,ln=yt=>{Et(yt),clearTimeout(Le.current),clearTimeout(rt.current),Ne(),gt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Fe.current=setTimeout(()=>{document.body.style.WebkitUserSelect=gt.current,ie(yt)},H)},Vt=yt=>{ve.props.onTouchEnd&&ve.props.onTouchEnd(yt),Ne(),clearTimeout(Le.current),Le.current=setTimeout(()=>{te(yt)},K)};S.useEffect(()=>{if(!it)return;function yt(Wt){(Wt.key==="Escape"||Wt.key==="Esc")&&te(Wt)}return document.addEventListener("keydown",yt),()=>{document.removeEventListener("keydown",yt)}},[te,it]);const Ut=sn(ve.ref,ft,He,n);!fe&&fe!==0&&(it=!1);const Kt=S.useRef(),bn=yt=>{const Wt=ve.props;Wt.onMouseMove&&Wt.onMouseMove(yt),df={x:yt.clientX,y:yt.clientY},Kt.current&&Kt.current.update()},Bn={},se=typeof fe=="string";F?(Bn.title=!it&&se&&!G?fe:null,Bn["aria-describedby"]=it?ct:null):(Bn["aria-label"]=se?fe:null,Bn["aria-labelledby"]=it&&!se?ct:null);const oe=T({},Bn,_e,ve.props,{className:Ie(_e.className,ve.props.className),onTouchStart:Et,ref:Ut},J?{onMouseMove:bn}:{}),ue={};z||(oe.onTouchStart=ln,oe.onTouchEnd=Vt),G||(oe.onMouseOver=Jm(Yt,oe.onMouseOver),oe.onMouseLeave=Jm(kt,oe.onMouseLeave),qe||(ue.onMouseOver=Yt,ue.onMouseLeave=kt)),U||(oe.onFocus=Jm(dt,oe.onFocus),oe.onBlur=Jm(vt,oe.onBlur),qe||(ue.onFocus=dt,ue.onBlur=vt));const ke=S.useMemo(()=>{var yt;let Wt=[{name:"arrow",enabled:!!be,options:{element:be,padding:4}}];return(yt=re.popperOptions)!=null&&yt.modifiers&&(Wt=Wt.concat(re.popperOptions.modifiers)),T({},re.popperOptions,{modifiers:Wt})},[be,re]),Ee=T({},$,{isRtl:Ue,arrow:E,disableInteractive:qe,placement:V,PopperComponentProp:Z,touch:Ce.current}),pt=UEe(Ee),me=(r=(o=xe.popper)!=null?o:I.Popper)!=null?r:WEe,pe=(a=(i=(s=xe.transition)!=null?s:I.Transition)!=null?i:ge)!=null?a:Ag,De=(l=(c=xe.tooltip)!=null?c:I.Tooltip)!=null?l:HEe,nt=(u=(f=xe.arrow)!=null?f:I.Arrow)!=null?u:GEe,lt=Ef(me,T({},re,(p=le.popper)!=null?p:R.popper,{className:Ie(pt.popper,re==null?void 0:re.className,(m=(b=le.popper)!=null?b:R.popper)==null?void 0:m.className)}),Ee),xt=Ef(pe,T({},he,(v=le.transition)!=null?v:R.transition),Ee),Nt=Ef(De,T({},(x=le.tooltip)!=null?x:R.tooltip,{className:Ie(pt.tooltip,(g=(y=le.tooltip)!=null?y:R.tooltip)==null?void 0:g.className)}),Ee),ut=Ef(nt,T({},(w=le.arrow)!=null?w:R.arrow,{className:Ie(pt.arrow,(C=(_=le.arrow)!=null?_:R.arrow)==null?void 0:C.className)}),Ee);return O.jsxs(S.Fragment,{children:[S.cloneElement(ve,oe),O.jsx(me,T({as:Z??dh,placement:V,anchorEl:J?{getBoundingClientRect:()=>({top:df.y,left:df.x,right:df.x,bottom:df.y,width:0,height:0})}:ze,popperRef:Kt,open:ze?it:!1,id:ct,transition:!0},ue,lt,{popperOptions:ke,children:({TransitionProps:yt})=>O.jsx(pe,T({timeout:Be.transitions.duration.shorter},yt,xt,{children:O.jsxs(De,T({},Nt,{children:[fe,E?O.jsx(nt,T({},ut,{ref:we})):null]}))}))}))]})}),hc=qEe,YEe=S.createContext({}),hh=YEe,KEe=S.createContext({}),O0=KEe;function JEe(e){return et("MuiStep",e)}Qe("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const ZEe=["active","children","className","component","completed","disabled","expanded","index","last"],XEe=e=>{const{classes:t,orientation:n,alternativeLabel:r,completed:o}=e;return Xe({root:["root",n,r&&"alternativeLabel",o&&"completed"]},JEe,t)},QEe=de("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})(({ownerState:e})=>T({},e.orientation==="horizontal"&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"})),ePe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiStep"}),{active:o,children:a,className:i,component:s="div",completed:l,disabled:c,expanded:u=!1,index:f,last:p}=r,m=Oe(r,ZEe),{activeStep:b,connector:v,alternativeLabel:x,orientation:g,nonLinear:y}=S.useContext(hh);let[w=!1,C=!1,_=!1]=[o,l,c];b===f?w=o!==void 0?o:!0:!y&&b>f?C=l!==void 0?l:!0:!y&&b({index:f,last:p,expanded:u,icon:f+1,active:w,completed:C,disabled:_}),[f,p,u,w,C,_]),E=T({},r,{active:w,orientation:g,alternativeLabel:x,completed:C,disabled:_,expanded:u,component:s}),k=XEe(E),I=O.jsxs(QEe,T({as:s,className:Ie(k.root,i),ref:n,ownerState:E},m,{children:[v&&x&&f!==0?v:null,a]}));return O.jsx(O0.Provider,{value:$,children:v&&!x&&f!==0?O.jsxs(S.Fragment,{children:[v,I]}):I})}),tPe=ePe,nPe=rr(O.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),rPe=rr(O.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function oPe(e){return et("MuiStepIcon",e)}const aPe=Qe("MuiStepIcon",["root","active","completed","error","text"]),xx=aPe;var zD;const iPe=["active","className","completed","error","icon"],sPe=e=>{const{classes:t,active:n,completed:r,error:o}=e;return Xe({root:["root",n&&"active",r&&"completed",o&&"error"],text:["text"]},oPe,t)},wx=de(sC,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${xx.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${xx.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${xx.error}`]:{color:(e.vars||e).palette.error.main}})),lPe=de("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily})),cPe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiStepIcon"}),{active:o=!1,className:a,completed:i=!1,error:s=!1,icon:l}=r,c=Oe(r,iPe),u=T({},r,{active:o,completed:i,error:s}),f=sPe(u);if(typeof l=="number"||typeof l=="string"){const p=Ie(a,f.root);return s?O.jsx(wx,T({as:rPe,className:p,ref:n,ownerState:u},c)):i?O.jsx(wx,T({as:nPe,className:p,ref:n,ownerState:u},c)):O.jsxs(wx,T({className:p,ref:n,ownerState:u},c,{children:[zD||(zD=O.jsx("circle",{cx:"12",cy:"12",r:"12"})),O.jsx(lPe,{className:f.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:u,children:l})]}))}return l}),uPe=cPe;function dPe(e){return et("MuiStepLabel",e)}const fPe=Qe("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),Ls=fPe,pPe=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],hPe=e=>{const{classes:t,orientation:n,active:r,completed:o,error:a,disabled:i,alternativeLabel:s}=e;return Xe({root:["root",n,a&&"error",i&&"disabled",s&&"alternativeLabel"],label:["label",r&&"active",o&&"completed",a&&"error",i&&"disabled",s&&"alternativeLabel"],iconContainer:["iconContainer",r&&"active",o&&"completed",a&&"error",i&&"disabled",s&&"alternativeLabel"],labelContainer:["labelContainer",s&&"alternativeLabel"]},dPe,t)},mPe=de("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation]]}})(({ownerState:e})=>T({display:"flex",alignItems:"center",[`&.${Ls.alternativeLabel}`]:{flexDirection:"column"},[`&.${Ls.disabled}`]:{cursor:"default"}},e.orientation==="vertical"&&{textAlign:"left",padding:"8px 0"})),vPe=de("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>T({},e.typography.body2,{display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${Ls.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${Ls.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${Ls.alternativeLabel}`]:{marginTop:16},[`&.${Ls.error}`]:{color:(e.vars||e).palette.error.main}})),gPe=de("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})(()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${Ls.alternativeLabel}`]:{paddingRight:0}})),yPe=de("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${Ls.alternativeLabel}`]:{textAlign:"center"}})),x6=S.forwardRef(function(t,n){var r;const o=Ke({props:t,name:"MuiStepLabel"}),{children:a,className:i,componentsProps:s={},error:l=!1,icon:c,optional:u,slotProps:f={},StepIconComponent:p,StepIconProps:m}=o,b=Oe(o,pPe),{alternativeLabel:v,orientation:x}=S.useContext(hh),{active:g,disabled:y,completed:w,icon:C}=S.useContext(O0),_=c||C;let $=p;_&&!$&&($=uPe);const E=T({},o,{active:g,alternativeLabel:v,completed:w,disabled:y,error:l,orientation:x}),k=hPe(E),I=(r=f.label)!=null?r:s.label;return O.jsxs(mPe,T({className:Ie(k.root,i),ref:n,ownerState:E},b,{children:[_||$?O.jsx(gPe,{className:k.iconContainer,ownerState:E,children:O.jsx($,T({completed:w,active:g,error:l,icon:_},m))}):null,O.jsxs(yPe,{className:k.labelContainer,ownerState:E,children:[a?O.jsx(vPe,T({ownerState:E},I,{className:Ie(k.label,I==null?void 0:I.className),children:a})):null,u]})]}))});x6.muiName="StepLabel";const bPe=x6;function xPe(e){return et("MuiStepButton",e)}const wPe=Qe("MuiStepButton",["root","horizontal","vertical","touchRipple"]),BD=wPe,CPe=["children","className","icon","optional"],$Pe=e=>{const{classes:t,orientation:n}=e;return Xe({root:["root",n],touchRipple:["touchRipple"]},xPe,t)},SPe=de(Ca,{name:"MuiStepButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${BD.touchRipple}`]:t.touchRipple},t.root,t[n.orientation]]}})(({ownerState:e})=>T({width:"100%",padding:"24px 16px",margin:"-24px -16px",boxSizing:"content-box"},e.orientation==="vertical"&&{justifyContent:"flex-start",padding:"8px",margin:"-8px"},{[`& .${BD.touchRipple}`]:{color:"rgba(0, 0, 0, 0.3)"}})),_Pe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiStepButton"}),{children:o,className:a,icon:i,optional:s}=r,l=Oe(r,CPe),{disabled:c,active:u}=S.useContext(O0),{orientation:f}=S.useContext(hh),p=T({},r,{orientation:f}),m=$Pe(p),b={icon:i,optional:s},v=Eu(o,["StepLabel"])?S.cloneElement(o,b):O.jsx(bPe,T({},b,{children:o}));return O.jsx(SPe,T({focusRipple:!0,disabled:c,TouchRippleProps:{className:m.touchRipple},className:Ie(m.root,a),ref:n,ownerState:p,"aria-current":u?"step":void 0},l,{children:v}))}),EPe=_Pe;function PPe(e){return et("MuiStepConnector",e)}Qe("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const TPe=["className"],kPe=e=>{const{classes:t,orientation:n,alternativeLabel:r,active:o,completed:a,disabled:i}=e,s={root:["root",n,r&&"alternativeLabel",o&&"active",a&&"completed",i&&"disabled"],line:["line",`line${je(n)}`]};return Xe(s,PPe,t)},OPe=de("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})(({ownerState:e})=>T({flex:"1 1 auto"},e.orientation==="vertical"&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:8+4,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})),RPe=de("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.line,t[`line${je(n.orientation)}`]]}})(({ownerState:e,theme:t})=>{const n=t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[600];return T({display:"block",borderColor:t.vars?t.vars.palette.StepConnector.border:n},e.orientation==="horizontal"&&{borderTopStyle:"solid",borderTopWidth:1},e.orientation==="vertical"&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})}),DPe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiStepConnector"}),{className:o}=r,a=Oe(r,TPe),{alternativeLabel:i,orientation:s="horizontal"}=S.useContext(hh),{active:l,disabled:c,completed:u}=S.useContext(O0),f=T({},r,{alternativeLabel:i,orientation:s,active:l,completed:u,disabled:c}),p=kPe(f);return O.jsx(OPe,T({className:Ie(p.root,o),ref:n,ownerState:f},a,{children:O.jsx(RPe,{className:p.line,ownerState:f})}))}),MPe=DPe;function IPe(e){return et("MuiStepper",e)}Qe("MuiStepper",["root","horizontal","vertical","alternativeLabel"]);const APe=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],NPe=e=>{const{orientation:t,alternativeLabel:n,classes:r}=e;return Xe({root:["root",t,n&&"alternativeLabel"]},IPe,r)},jPe=de("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel]}})(({ownerState:e})=>T({display:"flex"},e.orientation==="horizontal"&&{flexDirection:"row",alignItems:"center"},e.orientation==="vertical"&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"})),LPe=O.jsx(MPe,{}),FPe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiStepper"}),{activeStep:o=0,alternativeLabel:a=!1,children:i,className:s,component:l="div",connector:c=LPe,nonLinear:u=!1,orientation:f="horizontal"}=r,p=Oe(r,APe),m=T({},r,{alternativeLabel:a,orientation:f,component:l}),b=NPe(m),v=S.Children.toArray(i).filter(Boolean),x=v.map((y,w)=>S.cloneElement(y,T({index:w,last:w+1===v.length},y.props))),g=S.useMemo(()=>({activeStep:o,alternativeLabel:a,connector:c,nonLinear:u,orientation:f}),[o,a,c,u,f]);return O.jsx(hh.Provider,{value:g,children:O.jsx(jPe,T({as:l,ownerState:m,className:Ie(b.root,s),ref:n},p,{children:x}))})}),zPe=FPe;function BPe(e){return et("MuiSwitch",e)}const VPe=Qe("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),eo=VPe,UPe=["className","color","edge","size","sx"],WPe=e=>{const{classes:t,edge:n,size:r,color:o,checked:a,disabled:i}=e,s={root:["root",n&&`edge${je(n)}`,`size${je(r)}`],switchBase:["switchBase",`color${je(o)}`,a&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Xe(s,BPe,t);return T({},t,l)},HPe=de("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${je(n.edge)}`],t[`size${je(n.size)}`]]}})(({ownerState:e})=>T({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${eo.thumb}`]:{width:16,height:16},[`& .${eo.switchBase}`]:{padding:4,[`&.${eo.checked}`]:{transform:"translateX(16px)"}}})),GPe=de(f2,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${eo.input}`]:t.input},n.color!=="default"&&t[`color${je(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${eo.checked}`]:{transform:"translateX(20px)"},[`&.${eo.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${eo.checked} + .${eo.track}`]:{opacity:.5},[`&.${eo.disabled} + .${eo.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${eo.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>T({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${eo.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${eo.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?i0(e.palette[t.color].main,.62):a0(e.palette[t.color].main,.55)}`}},[`&.${eo.checked} + .${eo.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),qPe=de("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),YPe=de("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),KPe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiSwitch"}),{className:o,color:a="primary",edge:i=!1,size:s="medium",sx:l}=r,c=Oe(r,UPe),u=T({},r,{color:a,edge:i,size:s}),f=WPe(u),p=O.jsx(YPe,{className:f.thumb,ownerState:u});return O.jsxs(HPe,{className:Ie(f.root,o),sx:l,ownerState:u,children:[O.jsx(GPe,T({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:u},c,{classes:T({},f,{root:f.switchBase})})),O.jsx(qPe,{className:f.track,ownerState:u})]})}),JPe=KPe;function ZPe(e){return et("MuiTab",e)}const XPe=Qe("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),wl=XPe,QPe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],eTe=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:a,label:i,selected:s,disabled:l}=e,c={root:["root",a&&i&&"labelIcon",`textColor${je(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Xe(c,ZPe,t)},tTe=de(Ca,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${je(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>T({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${wl.iconWrapper}`]:T({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${wl.selected}`]:{opacity:1},[`&.${wl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${wl.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${wl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${wl.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${wl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),nTe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:i=!1,fullWidth:s,icon:l,iconPosition:c="top",indicator:u,label:f,onChange:p,onClick:m,onFocus:b,selected:v,selectionFollowsFocus:x,textColor:g="inherit",value:y,wrapped:w=!1}=r,C=Oe(r,QPe),_=T({},r,{disabled:a,disableFocusRipple:i,selected:v,icon:!!l,iconPosition:c,label:!!f,fullWidth:s,textColor:g,wrapped:w}),$=eTe(_),E=l&&f&&S.isValidElement(l)?S.cloneElement(l,{className:Ie($.iconWrapper,l.props.className)}):l,k=R=>{!v&&p&&p(R,y),m&&m(R)},I=R=>{x&&!v&&p&&p(R,y),b&&b(R)};return O.jsxs(tTe,T({focusRipple:!i,className:Ie($.root,o),ref:n,role:"tab","aria-selected":v,disabled:a,onClick:k,onFocus:I,ownerState:_,tabIndex:v?0:-1},C,{children:[c==="top"||c==="start"?O.jsxs(S.Fragment,{children:[E,f]}):O.jsxs(S.Fragment,{children:[f,E]}),u]}))}),Tp=nTe,rTe=S.createContext(),w6=rTe;function oTe(e){return et("MuiTable",e)}Qe("MuiTable",["root","stickyHeader"]);const aTe=["className","component","padding","size","stickyHeader"],iTe=e=>{const{classes:t,stickyHeader:n}=e;return Xe({root:["root",n&&"stickyHeader"]},oTe,t)},sTe=de("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>T({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":T({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),VD="table",lTe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTable"}),{className:o,component:a=VD,padding:i="normal",size:s="medium",stickyHeader:l=!1}=r,c=Oe(r,aTe),u=T({},r,{component:a,padding:i,size:s,stickyHeader:l}),f=iTe(u),p=S.useMemo(()=>({padding:i,size:s,stickyHeader:l}),[i,s,l]);return O.jsx(w6.Provider,{value:p,children:O.jsx(sTe,T({as:a,role:a===VD?null:"table",ref:n,className:Ie(f.root,o),ownerState:u},c))})}),C6=lTe,cTe=S.createContext(),R0=cTe;function uTe(e){return et("MuiTableBody",e)}Qe("MuiTableBody",["root"]);const dTe=["className","component"],fTe=e=>{const{classes:t}=e;return Xe({root:["root"]},uTe,t)},pTe=de("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),hTe={variant:"body"},UD="tbody",mTe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableBody"}),{className:o,component:a=UD}=r,i=Oe(r,dTe),s=T({},r,{component:a}),l=fTe(s);return O.jsx(R0.Provider,{value:hTe,children:O.jsx(pTe,T({className:Ie(l.root,o),as:a,ref:n,role:a===UD?null:"rowgroup",ownerState:s},i))})}),$6=mTe;function vTe(e){return et("MuiTableCell",e)}const gTe=Qe("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),yTe=gTe,bTe=["align","className","component","padding","scope","size","sortDirection","variant"],xTe=e=>{const{classes:t,variant:n,align:r,padding:o,size:a,stickyHeader:i}=e,s={root:["root",n,i&&"stickyHeader",r!=="inherit"&&`align${je(r)}`,o!=="normal"&&`padding${je(o)}`,`size${je(a)}`]};return Xe(s,vTe,t)},wTe=de("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${je(n.size)}`],n.padding!=="normal"&&t[`padding${je(n.padding)}`],n.align!=="inherit"&&t[`align${je(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>T({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?i0(Tt(e.palette.divider,1),.88):a0(Tt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${yTe.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),CTe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableCell"}),{align:o="inherit",className:a,component:i,padding:s,scope:l,size:c,sortDirection:u,variant:f}=r,p=Oe(r,bTe),m=S.useContext(w6),b=S.useContext(R0),v=b&&b.variant==="head";let x;i?x=i:x=v?"th":"td";let g=l;x==="td"?g=void 0:!g&&v&&(g="col");const y=f||b&&b.variant,w=T({},r,{align:o,component:x,padding:s||(m&&m.padding?m.padding:"normal"),size:c||(m&&m.size?m.size:"medium"),sortDirection:u,stickyHeader:y==="head"&&m&&m.stickyHeader,variant:y}),C=xTe(w);let _=null;return u&&(_=u==="asc"?"ascending":"descending"),O.jsx(wTe,T({as:x,ref:n,className:Ie(C.root,a),"aria-sort":_,scope:g,ownerState:w},p))}),$d=CTe;function $Te(e){return et("MuiTableHead",e)}Qe("MuiTableHead",["root"]);const STe=["className","component"],_Te=e=>{const{classes:t}=e;return Xe({root:["root"]},$Te,t)},ETe=de("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),PTe={variant:"head"},WD="thead",TTe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableHead"}),{className:o,component:a=WD}=r,i=Oe(r,STe),s=T({},r,{component:a}),l=_Te(s);return O.jsx(R0.Provider,{value:PTe,children:O.jsx(ETe,T({as:a,className:Ie(l.root,o),ref:n,role:a===WD?null:"rowgroup",ownerState:s},i))})}),S6=TTe;function kTe(e){return et("MuiToolbar",e)}Qe("MuiToolbar",["root","gutters","regular","dense"]);const OTe=["className","component","disableGutters","variant"],RTe=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Xe({root:["root",!n&&"gutters",r]},kTe,t)},DTe=de("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>T({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),MTe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiToolbar"}),{className:o,component:a="div",disableGutters:i=!1,variant:s="regular"}=r,l=Oe(r,OTe),c=T({},r,{component:a,disableGutters:i,variant:s}),u=RTe(c);return O.jsx(DTe,T({as:a,className:Ie(u.root,o),ref:n,ownerState:c},l))}),ITe=MTe,ATe=rr(O.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),NTe=rr(O.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function jTe(e){return et("MuiTableRow",e)}const LTe=Qe("MuiTableRow",["root","selected","hover","head","footer"]),HD=LTe,FTe=["className","component","hover","selected"],zTe=e=>{const{classes:t,selected:n,hover:r,head:o,footer:a}=e;return Xe({root:["root",n&&"selected",r&&"hover",o&&"head",a&&"footer"]},jTe,t)},BTe=de("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${HD.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${HD.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),GD="tr",VTe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableRow"}),{className:o,component:a=GD,hover:i=!1,selected:s=!1}=r,l=Oe(r,FTe),c=S.useContext(R0),u=T({},r,{component:a,hover:i,selected:s,head:c&&c.variant==="head",footer:c&&c.variant==="footer"}),f=zTe(u);return O.jsx(BTe,T({as:a,ref:n,className:Ie(f.root,o),role:a===GD?null:"row",ownerState:u},l))}),ll=VTe;function UTe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function WTe(e,t,n,r={},o=()=>{}){const{ease:a=UTe,duration:i=300}=r;let s=null;const l=t[e];let c=!1;const u=()=>{c=!0},f=p=>{if(c){o(new Error("Animation cancelled"));return}s===null&&(s=p);const m=Math.min(1,(p-s)/i);if(t[e]=a(m)*(n-l)+l,m>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(f)};return l===n?(o(new Error("Element already at target position")),u):(requestAnimationFrame(f),u)}const HTe=["onChange"],GTe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function qTe(e){const{onChange:t}=e,n=Oe(e,HTe),r=S.useRef(),o=S.useRef(null),a=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Kn(()=>{const i=ah(()=>{const l=r.current;a(),l!==r.current&&t(r.current)}),s=$i(o.current);return s.addEventListener("resize",i),()=>{i.clear(),s.removeEventListener("resize",i)}},[t]),S.useEffect(()=>{a(),t(r.current)},[t]),O.jsx("div",T({style:GTe,ref:o},n))}function YTe(e){return et("MuiTabScrollButton",e)}const KTe=Qe("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),JTe=KTe,ZTe=["className","slots","slotProps","direction","orientation","disabled"],XTe=e=>{const{classes:t,orientation:n,disabled:r}=e;return Xe({root:["root",n,r&&"disabled"]},YTe,t)},QTe=de(Ca,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>T({width:40,flexShrink:0,opacity:.8,[`&.${JTe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),eke=S.forwardRef(function(t,n){var r,o;const a=Ke({props:t,name:"MuiTabScrollButton"}),{className:i,slots:s={},slotProps:l={},direction:c}=a,u=Oe(a,ZTe),p=nr().direction==="rtl",m=T({isRtl:p},a),b=XTe(m),v=(r=s.StartScrollButtonIcon)!=null?r:ATe,x=(o=s.EndScrollButtonIcon)!=null?o:NTe,g=zt({elementType:v,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),y=zt({elementType:x,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return O.jsx(QTe,T({component:"div",className:Ie(b.root,i),ref:n,role:null,ownerState:m,tabIndex:null},u,{children:c==="left"?O.jsx(v,T({},g)):O.jsx(x,T({},y))}))}),tke=eke;function nke(e){return et("MuiTabs",e)}const rke=Qe("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Nv=rke,oke=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],qD=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,YD=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Zm=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const a=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||a)o=n(e,o);else{o.focus();return}}},ake=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:a,centered:i,scrollButtonsHideMobile:s,classes:l}=e;return Xe({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},nke,l)},ike=de("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Nv.scrollButtons}`]:t.scrollButtons},{[`& .${Nv.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>T({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Nv.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),ske=de("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>T({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),lke=de("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>T({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),cke=de("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>T({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),uke=de(qTe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),KD={},dke=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTabs"}),o=nr(),a=o.direction==="rtl",{"aria-label":i,"aria-labelledby":s,action:l,centered:c=!1,children:u,className:f,component:p="div",allowScrollButtonsMobile:m=!1,indicatorColor:b="primary",onChange:v,orientation:x="horizontal",ScrollButtonComponent:g=tke,scrollButtons:y="auto",selectionFollowsFocus:w,slots:C={},slotProps:_={},TabIndicatorProps:$={},TabScrollButtonProps:E={},textColor:k="primary",value:I,variant:R="standard",visibleScrollbar:F=!1}=r,U=Oe(r,oke),G=R==="scrollable",B=x==="vertical",z=B?"scrollTop":"scrollLeft",Y=B?"top":"left",Q=B?"bottom":"right",H=B?"clientHeight":"clientWidth",J=B?"height":"width",X=T({},r,{component:p,allowScrollButtonsMobile:m,indicatorColor:b,orientation:x,vertical:B,scrollButtons:y,textColor:k,variant:R,visibleScrollbar:F,fixed:!G,hideScrollbar:G&&!F,scrollableX:G&&!B,scrollableY:G&&B,centered:c&&!G,scrollButtonsHideMobile:!m}),L=ake(X),K=zt({elementType:C.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:X}),q=zt({elementType:C.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:X}),[D,N]=S.useState(!1),[V,Z]=S.useState(KD),[re,le]=S.useState(!1),[xe,fe]=S.useState(!1),[ge,he]=S.useState(!1),[_e,ve]=S.useState({overflow:"hidden",scrollbarWidth:0}),Be=new Map,Ue=S.useRef(null),ze=S.useRef(null),He=()=>{const te=Ue.current;let ie;if(te){const Se=te.getBoundingClientRect();ie={clientWidth:te.clientWidth,scrollLeft:te.scrollLeft,scrollTop:te.scrollTop,scrollLeftNormalized:Bme(te,o.direction),scrollWidth:te.scrollWidth,top:Se.top,bottom:Se.bottom,left:Se.left,right:Se.right}}let $e;if(te&&I!==!1){const Se=ze.current.children;if(Se.length>0){const Ze=Se[Be.get(I)];$e=Ze?Ze.getBoundingClientRect():null}}return{tabsMeta:ie,tabMeta:$e}},be=mt(()=>{const{tabsMeta:te,tabMeta:ie}=He();let $e=0,Se;if(B)Se="top",ie&&te&&($e=ie.top-te.top+te.scrollTop);else if(Se=a?"right":"left",ie&&te){const tt=a?te.scrollLeftNormalized+te.clientWidth-te.scrollWidth:te.scrollLeft;$e=(a?-1:1)*(ie[Se]-te[Se]+tt)}const Ze={[Se]:$e,[J]:ie?ie[J]:0};if(isNaN(V[Se])||isNaN(V[J]))Z(Ze);else{const tt=Math.abs(V[Se]-Ze[Se]),ft=Math.abs(V[J]-Ze[J]);(tt>=1||ft>=1)&&Z(Ze)}}),we=(te,{animation:ie=!0}={})=>{ie?WTe(z,Ue.current,te,{duration:o.transitions.duration.standard}):Ue.current[z]=te},Ce=te=>{let ie=Ue.current[z];B?ie+=te:(ie+=te*(a?-1:1),ie*=a&&J5()==="reverse"?-1:1),we(ie)},qe=()=>{const te=Ue.current[H];let ie=0;const $e=Array.from(ze.current.children);for(let Se=0;Se<$e.length;Se+=1){const Ze=$e[Se];if(ie+Ze[H]>te){Se===0&&(ie=te);break}ie+=Ze[H]}return ie},rt=()=>{Ce(-1*qe())},Ae=()=>{Ce(qe())},Le=S.useCallback(te=>{ve({overflow:null,scrollbarWidth:te})},[]),Fe=()=>{const te={};te.scrollbarSizeListener=G?O.jsx(uke,{onChange:Le,className:Ie(L.scrollableX,L.hideScrollbar)}):null;const $e=G&&(y==="auto"&&(re||xe)||y===!0);return te.scrollButtonStart=$e?O.jsx(g,T({slots:{StartScrollButtonIcon:C.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:K},orientation:x,direction:a?"right":"left",onClick:rt,disabled:!re},E,{className:Ie(L.scrollButtons,E.className)})):null,te.scrollButtonEnd=$e?O.jsx(g,T({slots:{EndScrollButtonIcon:C.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:q},orientation:x,direction:a?"left":"right",onClick:Ae,disabled:!xe},E,{className:Ie(L.scrollButtons,E.className)})):null,te},Pe=mt(te=>{const{tabsMeta:ie,tabMeta:$e}=He();if(!(!$e||!ie)){if($e[Y]ie[Q]){const Se=ie[z]+($e[Q]-ie[Q]);we(Se,{animation:te})}}}),Te=mt(()=>{G&&y!==!1&&he(!ge)});S.useEffect(()=>{const te=ah(()=>{Ue.current&&be()});let ie;const $e=tt=>{tt.forEach(ft=>{ft.removedNodes.forEach(_t=>{var vt;(vt=ie)==null||vt.unobserve(_t)}),ft.addedNodes.forEach(_t=>{var vt;(vt=ie)==null||vt.observe(_t)})}),te(),Te()},Se=$i(Ue.current);Se.addEventListener("resize",te);let Ze;return typeof ResizeObserver<"u"&&(ie=new ResizeObserver(te),Array.from(ze.current.children).forEach(tt=>{ie.observe(tt)})),typeof MutationObserver<"u"&&(Ze=new MutationObserver($e),Ze.observe(ze.current,{childList:!0})),()=>{var tt,ft;te.clear(),Se.removeEventListener("resize",te),(tt=Ze)==null||tt.disconnect(),(ft=ie)==null||ft.disconnect()}},[be,Te]),S.useEffect(()=>{const te=Array.from(ze.current.children),ie=te.length;if(typeof IntersectionObserver<"u"&&ie>0&&G&&y!==!1){const $e=te[0],Se=te[ie-1],Ze={root:Ue.current,threshold:.99},tt=dt=>{le(!dt[0].isIntersecting)},ft=new IntersectionObserver(tt,Ze);ft.observe($e);const _t=dt=>{fe(!dt[0].isIntersecting)},vt=new IntersectionObserver(_t,Ze);return vt.observe(Se),()=>{ft.disconnect(),vt.disconnect()}}},[G,y,ge,u==null?void 0:u.length]),S.useEffect(()=>{N(!0)},[]),S.useEffect(()=>{be()}),S.useEffect(()=>{Pe(KD!==V)},[Pe,V]),S.useImperativeHandle(l,()=>({updateIndicator:be,updateScrollButtons:Te}),[be,Te]);const it=O.jsx(cke,T({},$,{className:Ie(L.indicator,$.className),ownerState:X,style:T({},V,$.style)}));let ct=0;const gt=S.Children.map(u,te=>{if(!S.isValidElement(te))return null;const ie=te.props.value===void 0?ct:te.props.value;Be.set(ie,ct);const $e=ie===I;return ct+=1,S.cloneElement(te,T({fullWidth:R==="fullWidth",indicator:$e&&!D&&it,selected:$e,selectionFollowsFocus:w,onChange:v,textColor:k,value:ie},ct===1&&I===!1&&!te.props.tabIndex?{tabIndex:0}:{}))}),Ne=te=>{const ie=ze.current,$e=zn(ie).activeElement;if($e.getAttribute("role")!=="tab")return;let Ze=x==="horizontal"?"ArrowLeft":"ArrowUp",tt=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&a&&(Ze="ArrowRight",tt="ArrowLeft"),te.key){case Ze:te.preventDefault(),Zm(ie,$e,YD);break;case tt:te.preventDefault(),Zm(ie,$e,qD);break;case"Home":te.preventDefault(),Zm(ie,null,qD);break;case"End":te.preventDefault(),Zm(ie,null,YD);break}},ne=Fe();return O.jsxs(ike,T({className:Ie(L.root,f),ownerState:X,ref:n,as:p},U,{children:[ne.scrollButtonStart,ne.scrollbarSizeListener,O.jsxs(ske,{className:L.scroller,ownerState:X,style:{overflow:_e.overflow,[B?`margin${a?"Left":"Right"}`:"marginBottom"]:F?void 0:-_e.scrollbarWidth},ref:Ue,children:[O.jsx(lke,{"aria-label":i,"aria-labelledby":s,"aria-orientation":x==="vertical"?"vertical":null,className:L.flexContainer,ownerState:X,onKeyDown:Ne,ref:ze,role:"tablist",children:gt}),D&&it]}),ne.scrollButtonEnd]}))}),D0=dke;function fke(e){return et("MuiTextField",e)}Qe("MuiTextField",["root"]);const pke=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],hke={standard:cs,filled:e6,outlined:m6},mke=e=>{const{classes:t}=e;return Xe({root:["root"]},fke,t)},vke=de(fh,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),gke=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:i,className:s,color:l="primary",defaultValue:c,disabled:u=!1,error:f=!1,FormHelperTextProps:p,fullWidth:m=!1,helperText:b,id:v,InputLabelProps:x,inputProps:g,InputProps:y,inputRef:w,label:C,maxRows:_,minRows:$,multiline:E=!1,name:k,onBlur:I,onChange:R,onFocus:F,placeholder:U,required:G=!1,rows:B,select:z=!1,SelectProps:Y,type:Q,value:H,variant:J="outlined"}=r,X=Oe(r,pke),L=T({},r,{autoFocus:a,color:l,disabled:u,error:f,fullWidth:m,multiline:E,required:G,select:z,variant:J}),K=mke(L),q={};J==="outlined"&&(x&&typeof x.shrink<"u"&&(q.notched=x.shrink),q.label=C),z&&((!Y||!Y.native)&&(q.id=void 0),q["aria-describedby"]=void 0);const D=Ya(v),N=b&&D?`${D}-helper-text`:void 0,V=C&&D?`${D}-label`:void 0,Z=hke[J],re=O.jsx(Z,T({"aria-describedby":N,autoComplete:o,autoFocus:a,defaultValue:c,fullWidth:m,multiline:E,name:k,rows:B,maxRows:_,minRows:$,type:Q,value:H,id:D,inputRef:w,onBlur:I,onChange:R,onFocus:F,placeholder:U,inputProps:g},q,y));return O.jsxs(vke,T({className:Ie(K.root,s),disabled:u,error:f,fullWidth:m,ref:n,required:G,color:l,variant:J,ownerState:L},X,{children:[C!=null&&C!==""&&O.jsx(i6,T({htmlFor:D,id:V},x,{children:C})),z?O.jsx(b6,T({"aria-describedby":N,id:D,labelId:V,value:H,input:re},Y,{children:i})):re,b&&O.jsx(fr,T({id:N},p,{children:b}))]}))}),mh=gke;var yke=J$;function bke(e){return yke(e)?void 0:e}var xke=bke,wke=ud,Cke=xy,$ke=Yie,Ske=Yp,_ke=fd,Eke=xke,Pke=lS,Tke=_4,kke=1,Oke=2,Rke=4,Dke=Pke(function(e,t){var n={};if(e==null)return n;var r=!1;t=wke(t,function(a){return a=Ske(a,e),r||(r=a.length>1),a}),_ke(e,Tke(e),n),r&&(n=Cke(n,kke|Oke|Rke,Eke));for(var o=t.length;o--;)$ke(n,t[o]);return n}),Mke=Dke;const Ike=Bt(Mke);function Ake(e,t,n){for(var r=-1,o=e==null?0:e.length;++r=Yke){var c=t?null:Gke(e);if(c)return qke(c);i=!1,o=Hke,l=new Vke}else l=t?[]:s;e:for(;++r=B?G:""+Array(B+1-Y.length).join(z)+G},C={s:w,z:function(G){var B=-G.utcOffset(),z=Math.abs(B),Y=Math.floor(z/60),Q=z%60;return(B<=0?"+":"-")+w(Y,2,"0")+":"+w(Q,2,"0")},m:function G(B,z){if(B.date()68?1900:2e3)},c=function(v){return function(x){this[v]=+x}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(x){if(!x||x==="Z")return 0;var g=x.match(/([+-]|\d\d)/g),y=60*g[1]+(+g[2]||0);return y===0?0:g[0]==="+"?-y:y}(v)}],f=function(v){var x=s[v];return x&&(x.indexOf?x:x.s.concat(x.f))},p=function(v,x){var g,y=s.meridiem;if(y){for(var w=1;w<=24;w+=1)if(v.indexOf(y(w,0,x))>-1){g=w>12;break}}else g=v===(x?"pm":"PM");return g},m={A:[i,function(v){this.afternoon=p(v,!1)}],a:[i,function(v){this.afternoon=p(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[o,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[o,c("day")],Do:[i,function(v){var x=s.ordinal,g=v.match(/\d+/);if(this.day=g[0],x)for(var y=1;y<=31;y+=1)x(y).replace(/\[|\]/g,"")===v&&(this.day=y)}],M:[a,c("month")],MM:[o,c("month")],MMM:[i,function(v){var x=f("months"),g=(f("monthsShort")||x.map(function(y){return y.substr(0,3)})).indexOf(v)+1;if(g<1)throw new Error;this.month=g%12||g}],MMMM:[i,function(v){var x=f("months").indexOf(v)+1;if(x<1)throw new Error;this.month=x%12||x}],Y:[/[+-]?\d+/,c("year")],YY:[o,function(v){this.year=l(v)}],YYYY:[/\d{4}/,c("year")],Z:u,ZZ:u};function b(v){var x,g;x=v,g=s&&s.formats;for(var y=(v=x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,R,F){var U=F&&F.toUpperCase();return R||g[F]||n[F]||g[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(G,B,z){return B||z.slice(1)})})).match(r),w=y.length,C=0;C-1)return new Date((Q==="X"?1e3:1)*Y);var J=b(Q)(Y),X=J.year,L=J.month,K=J.day,q=J.hours,D=J.minutes,N=J.seconds,V=J.milliseconds,Z=J.zone,re=new Date,le=K||(X||L?1:re.getDate()),xe=X||re.getFullYear(),fe=0;X&&!L||(fe=L>0?L-1:re.getMonth());var ge=q||0,he=D||0,_e=N||0,ve=V||0;return Z?new Date(Date.UTC(xe,fe,le,ge,he,_e,ve+60*Z.offset*1e3)):H?new Date(Date.UTC(xe,fe,le,ge,he,_e,ve)):new Date(xe,fe,le,ge,he,_e,ve)}catch{return new Date("")}}(_,k,$),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),F&&_!==this.format(k)&&(this.$d=new Date("")),s={}}else if(k instanceof Array)for(var G=k.length,B=1;B<=G;B+=1){E[1]=k[B-1];var z=g.apply(this,E);if(z.isValid()){this.$d=z.$d,this.$L=z.$L,this.init();break}B===G&&(this.$d=new Date(""))}else w.call(this,C)}}})})(T6);var _Oe=T6.exports;const EOe=Bt(_Oe);var k2={},POe=mc;Object.defineProperty(k2,"__esModule",{value:!0});var k6=k2.default=void 0,TOe=POe(vc()),kOe=O,OOe=(0,TOe.default)((0,kOe.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");k6=k2.default=OOe;var ROe=cS,DOe=os;function MOe(e,t){var n=-1,r=DOe(e)?Array(e.length):[];return ROe(e,function(o,a,i){r[++n]=t(o,a,i)}),r}var IOe=MOe,AOe=ud,NOe=cc,jOe=IOe,LOe=lr;function FOe(e,t){var n=LOe(e)?AOe:jOe;return n(e,NOe(t))}var O6=FOe;const R6=Bt(O6),zOe=["localeText"],mC=S.createContext(null),vh=function(t){var n;const{localeText:r}=t,o=Oe(t,zOe),{utils:a,localeText:i}=(n=S.useContext(mC))!=null?n:{utils:void 0,localeText:void 0},s=Ke({props:o,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:f,adapterLocale:p,localeText:m}=s,b=S.useMemo(()=>T({},m,i,r),[m,i,r]),v=S.useMemo(()=>{if(!c)return a||null;const y=new c({locale:p,formats:u,instance:f});if(!y.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(` +`));return y},[c,p,u,f,a]),x=S.useMemo(()=>v?{minDate:v.date("1900-01-01T00:00:00.000"),maxDate:v.date("2099-12-31T00:00:00.000")}:null,[v]),g=S.useMemo(()=>({utils:v,defaultDates:x,localeText:b}),[x,v,b]);return O.jsx(mC.Provider,{value:g,children:l})},BOe=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:T({},e)}}}}),D6={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose date, selected date is ${t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose time, selected time is ${t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear value",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa"},VOe=D6;BOe(D6);const gc=()=>{const e=S.useContext(mC);if(e===null)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(` +`));if(e.utils===null)throw new Error(["MUI: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(` +`));const t=S.useMemo(()=>T({},VOe,e.localeText),[e.localeText]);return S.useMemo(()=>T({},e,{localeText:t}),[e,t])},qt=()=>gc().utils,yc=()=>gc().defaultDates,_r=()=>gc().localeText,cl=e=>{const t=qt(),n=S.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current},UOe=rr(O.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),WOe=rr(O.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),HOe=rr(O.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),M6=rr(O.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),GOe=rr(O.jsxs(S.Fragment,{children:[O.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),O.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),qOe=rr(O.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),YOe=rr(O.jsxs(S.Fragment,{children:[O.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),O.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),KOe=rr(O.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function JOe(e){return et("MuiPickersArrowSwitcher",e)}Qe("MuiPickersArrowSwitcher",["root","spacer","button"]);const ZOe=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],XOe=["ownerState"],QOe=["ownerState"],eRe=de("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),tRe=de("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),ZD=de(tr,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>T({},e.hidden&&{visibility:"hidden"})),nRe=e=>{const{classes:t}=e;return Xe({root:["root"],spacer:["spacer"],button:["button"]},JOe,t)},I6=S.forwardRef(function(t,n){var r,o,a,i;const l=nr().direction==="rtl",c=Ke({props:t,name:"MuiPickersArrowSwitcher"}),{children:u,className:f,slots:p,slotProps:m,isNextDisabled:b,isNextHidden:v,onGoToNext:x,nextLabel:g,isPreviousDisabled:y,isPreviousHidden:w,onGoToPrevious:C,previousLabel:_}=c,$=Oe(c,ZOe),E=c,k=nRe(E),I={isDisabled:b,isHidden:v,goTo:x,label:g},R={isDisabled:y,isHidden:w,goTo:C,label:_},F=(r=p==null?void 0:p.previousIconButton)!=null?r:ZD,U=zt({elementType:F,externalSlotProps:m==null?void 0:m.previousIconButton,additionalProps:{size:"medium",title:R.label,"aria-label":R.label,disabled:R.isDisabled,edge:"end",onClick:R.goTo},ownerState:T({},E,{hidden:R.isHidden}),className:k.button}),G=(o=p==null?void 0:p.nextIconButton)!=null?o:ZD,B=zt({elementType:G,externalSlotProps:m==null?void 0:m.nextIconButton,additionalProps:{size:"medium",title:I.label,"aria-label":I.label,disabled:I.isDisabled,edge:"start",onClick:I.goTo},ownerState:T({},E,{hidden:I.isHidden}),className:k.button}),z=(a=p==null?void 0:p.leftArrowIcon)!=null?a:WOe,Y=zt({elementType:z,externalSlotProps:m==null?void 0:m.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),Q=Oe(Y,XOe),H=(i=p==null?void 0:p.rightArrowIcon)!=null?i:HOe,J=zt({elementType:H,externalSlotProps:m==null?void 0:m.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),X=Oe(J,QOe);return O.jsxs(eRe,T({ref:n,className:Ie(k.root,f),ownerState:E},$,{children:[O.jsx(F,T({},U,{children:l?O.jsx(H,T({},X)):O.jsx(z,T({},Q))})),u?O.jsx(gn,{variant:"subtitle1",component:"span",children:u}):O.jsx(tRe,{className:k.spacer,ownerState:E}),O.jsx(G,T({},B,{children:l?O.jsx(z,T({},Q)):O.jsx(H,T({},X))}))]}))}),fi=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),O2=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=n??r;let a;if(e!=null)a=e;else if(o.includes(t))a=t;else if(o.length>0)a=o[0];else throw new Error("MUI: The `views` prop must contain at least one view");return{views:o,openTo:a}},A6=["hours","minutes","seconds"],Ju=e=>A6.includes(e),Es=e=>A6.includes(e)||e==="meridiem",rRe=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,kp=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,oRe=(e,t,n,r)=>{const o=kp(r.getHours(e),t,n);return r.setHours(e,o)},XD=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),gh=(e,t)=>(n,r)=>e?t.isAfter(n,r):XD(n,t)>XD(r,t),Lg=(e,{format:t,views:n,ampm:r})=>{if(t!=null)return t;const o=e.formats;return fi(n,["hours"])?r?`${o.hours12h} ${o.meridiem}`:o.hours24h:fi(n,["minutes"])?o.minutes:fi(n,["seconds"])?o.seconds:fi(n,["minutes","seconds"])?`${o.minutes}:${o.seconds}`:fi(n,["hours","minutes","seconds"])?r?`${o.hours12h}:${o.minutes}:${o.seconds} ${o.meridiem}`:`${o.hours24h}:${o.minutes}:${o.seconds}`:r?`${o.hours12h}:${o.minutes} ${o.meridiem}`:`${o.hours24h}:${o.minutes}`};function yh({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:a,focusedView:i,onFocusedViewChange:s}){var l,c;const u=S.useRef(n),f=S.useRef(o),p=S.useRef(o.includes(n)?n:o[0]),[m,b]=Cr({name:"useViews",state:"view",controlled:r,default:p.current}),v=S.useRef(a?m:null),[x,g]=Cr({name:"useViews",state:"focusedView",controlled:i,default:v.current});S.useEffect(()=>{(u.current&&u.current!==n||f.current&&f.current.some(R=>!o.includes(R)))&&(b(o.includes(n)?n:o[0]),f.current=o,u.current=n)},[n,b,m,o]);const y=o.indexOf(m),w=(l=o[y-1])!=null?l:null,C=(c=o[y+1])!=null?c:null,_=mt((R,F)=>{g(F?R:U=>R===U?null:U),s==null||s(R,F)}),$=mt(R=>{R!==m&&(b(R),_(R,!0),t&&t(R))}),E=mt(()=>{C&&$(C),_(C,!0)}),k=mt((R,F,U)=>{const G=F==="finish",B=U?o.indexOf(U){e(R,F?"partial":"finish",U),F&&($(F),_(F,!0))});return{view:m,setView:$,focusedView:x,setFocusedView:_,nextView:C,previousView:w,defaultView:p.current,goToNextView:E,setValueAndGoToNextView:k,setValueAndGoToView:I}}function aRe(e,{disableFuture:t,maxDate:n,timezone:r}){const o=qt();return S.useMemo(()=>{const a=o.dateWithTimezone(void 0,r),i=o.startOfMonth(t&&o.isBefore(a,n)?a:n);return!o.isAfter(i,e)},[t,n,e,o,r])}function iRe(e,{disablePast:t,minDate:n,timezone:r}){const o=qt();return S.useMemo(()=>{const a=o.dateWithTimezone(void 0,r),i=o.startOfMonth(t&&o.isAfter(a,n)?a:n);return!o.isBefore(i,e)},[t,n,e,o,r])}function N0(e,t,n,r){const o=qt(),a=rRe(e,o),i=S.useCallback(s=>{const l=e==null?null:oRe(e,s,!!t,o);n(l,r??"partial")},[t,e,n,r,o]);return{meridiemMode:a,handleMeridiemChange:i}}const Op=36,j0=2,L0=320,sRe=280,F0=334,N6=232,Tf=48,z0=de("div")({overflow:"hidden",width:L0,maxHeight:F0,display:"flex",flexDirection:"column",margin:"0 auto"});function lRe(e){return et("MuiTimeClock",e)}Qe("MuiTimeClock",["root","arrowSwitcher"]);const Zu=220,xi=36,Rp={x:Zu/2,y:Zu/2},j6={x:Rp.x,y:0},cRe=j6.x-Rp.x,uRe=j6.y-Rp.y,dRe=e=>e*(180/Math.PI),L6=(e,t,n)=>{const r=t-Rp.x,o=n-Rp.y,a=Math.atan2(cRe,uRe)-Math.atan2(r,o);let i=dRe(a);i=Math.round(i/e)*e,i%=360;const s=Math.floor(i/e)||0,l=r**2+o**2,c=Math.sqrt(l);return{value:s,distance:c}},fRe=(e,t,n=1)=>{const r=n*6;let{value:o}=L6(r,e,t);return o=o*n%60,o},pRe=(e,t,n)=>{const{value:r,distance:o}=L6(30,e,t);let a=r||12;return n?a%=12:o{const{classes:t}=e;return Xe({root:["root"],thumb:["thumb"]},hRe,t)},gRe=de("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>T({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),yRe=de("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>T({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${xi/2}px)`,border:`${(xi-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:(e.vars||e).palette.primary.main}));function bRe(e){const t=Ke({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:o,viewValue:a}=t,i=Oe(t,mRe),s=S.useRef(o);S.useEffect(()=>{s.current=o},[o]);const l=T({},t,{shouldAnimate:s.current!==o}),c=vRe(l),u=()=>{let p=360/(o==="hours"?12:60)*a;return o==="hours"&&a>12&&(p-=360),{height:Math.round((r?.26:.4)*Zu),transform:`rotateZ(${p}deg)`}};return O.jsx(gRe,T({style:u(),className:Ie(n,c.root),ownerState:l},i,{children:O.jsx(yRe,{ownerState:l,className:c.thumb})}))}function xRe(e){return et("MuiClock",e)}Qe("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText"]);const Zf=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:a,utils:i,timezone:s})=>{const l=i.startOfDay(i.dateWithTimezone(void 0,s));n&&i.isBefore(o,l)&&(o=l),t&&i.isAfter(r,l)&&(r=l);let c=e,u=e;for(i.isBefore(e,o)&&(c=o,u=null),i.isAfter(e,r)&&(u&&(u=r),c=null);c||u;){if(c&&i.isAfter(c,r)&&(c=null),u&&i.isBefore(u,o)&&(u=null),c){if(!a(c))return c;c=i.addDays(c,1)}if(u){if(!a(u))return u;u=i.addDays(u,-1)}}return null},wRe=(e,t)=>t==null||!e.isValid(t)?null:t,Yr=(e,t,n)=>t==null||!e.isValid(t)?n:t,CRe=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),R2=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const o=r[r.length-1];r.push(e.addMonths(o,1))}return r},vC=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r},D2=(e,t,n)=>n==="date"?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),Ba=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},$Re=["year","month","day"],Ou=e=>$Re.includes(e),Dp=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return fi(n,["year"])?o.year:fi(n,["month"])?o.month:fi(n,["day"])?o.dayOfMonth:fi(n,["month","year"])?`${o.month} ${o.year}`:fi(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},SRe=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},_Re=e=>{const{classes:t}=e;return Xe({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"],meridiemText:["meridiemText"]},xRe,t)},ERe=de("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),PRe=de("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),TRe=de("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),kRe=de("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>T({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),ORe=de("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),RRe=de(tr,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>T({zIndex:1,position:"absolute",bottom:8,left:8,paddingLeft:4,paddingRight:4,width:xi},t.meridiemMode==="am"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),DRe=de(tr,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>T({zIndex:1,position:"absolute",bottom:8,right:8,paddingLeft:4,paddingRight:4,width:xi},t.meridiemMode==="pm"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),QD=de(gn,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function MRe(e){const t=Ke({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:o,children:a,value:i,handleMeridiemChange:s,isTimeDisabled:l,meridiemMode:c,minutesStep:u=1,onChange:f,selectedId:p,type:m,viewValue:b,disabled:v,readOnly:x,className:g}=t,y=t,w=qt(),C=_r(),_=S.useRef(!1),$=_Re(y),E=l(b,m),k=!n&&m==="hours"&&(b<1||b>12),I=(J,X)=>{v||x||l(J,m)||f(J,X)},R=(J,X)=>{let{offsetX:L,offsetY:K}=J;if(L===void 0){const D=J.target.getBoundingClientRect();L=J.changedTouches[0].clientX-D.left,K=J.changedTouches[0].clientY-D.top}const q=m==="seconds"||m==="minutes"?fRe(L,K,u):pRe(L,K,!!n);I(q,X)},F=J=>{_.current=!0,R(J,"shallow")},U=J=>{_.current&&(R(J,"finish"),_.current=!1)},G=J=>{J.buttons>0&&R(J.nativeEvent,"shallow")},B=J=>{_.current&&(_.current=!1),R(J.nativeEvent,"finish")},z=S.useMemo(()=>m==="hours"?!0:b%5===0,[m,b]),Y=m==="minutes"?u:1,Q=S.useRef(null);Kn(()=>{o&&Q.current.focus()},[o]);const H=J=>{if(!_.current)switch(J.key){case"Home":I(0,"partial"),J.preventDefault();break;case"End":I(m==="minutes"?59:23,"partial"),J.preventDefault();break;case"ArrowUp":I(b+Y,"partial"),J.preventDefault();break;case"ArrowDown":I(b-Y,"partial"),J.preventDefault();break}};return O.jsxs(ERe,{className:Ie(g,$.root),children:[O.jsxs(PRe,{className:$.clock,children:[O.jsx(kRe,{onTouchMove:F,onTouchEnd:U,onMouseUp:B,onMouseMove:G,ownerState:{disabled:v},className:$.squareMask}),!E&&O.jsxs(S.Fragment,{children:[O.jsx(ORe,{className:$.pin}),i!=null&&O.jsx(bRe,{type:m,viewValue:b,isInner:k,hasSelected:z})]}),O.jsx(TRe,{"aria-activedescendant":p,"aria-label":C.clockLabelText(m,i,w),ref:Q,role:"listbox",onKeyDown:H,tabIndex:0,className:$.wrapper,children:a})]}),n&&r&&O.jsxs(S.Fragment,{children:[O.jsx(RRe,{onClick:x?void 0:()=>s("am"),disabled:v||c===null,ownerState:y,className:$.amButton,title:Ba(w,"am"),children:O.jsx(QD,{variant:"caption",className:$.meridiemText,children:Ba(w,"am")})}),O.jsx(DRe,{disabled:v||c===null,onClick:x?void 0:()=>s("pm"),ownerState:y,className:$.pmButton,title:Ba(w,"pm"),children:O.jsx(QD,{variant:"caption",className:$.meridiemText,children:Ba(w,"pm")})})]})]})}function IRe(e){return et("MuiClockNumber",e)}const Xm=Qe("MuiClockNumber",["root","selected","disabled"]),ARe=["className","disabled","index","inner","label","selected"],NRe=e=>{const{classes:t,selected:n,disabled:r}=e;return Xe({root:["root",n&&"selected",r&&"disabled"]},IRe,t)},jRe=de("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Xm.disabled}`]:t.disabled},{[`&.${Xm.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>T({height:xi,width:xi,position:"absolute",left:`calc((100% - ${xi}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${Xm.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${Xm.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled}},t.inner&&T({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})));function F6(e){const t=Ke({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:o,inner:a,label:i,selected:s}=t,l=Oe(t,ARe),c=t,u=NRe(c),f=o%12/12*Math.PI*2-Math.PI/2,p=(Zu-xi-2)/2*(a?.65:1),m=Math.round(Math.cos(f)*p),b=Math.round(Math.sin(f)*p);return O.jsx(jRe,T({className:Ie(n,u.root),"aria-disabled":r?!0:void 0,"aria-selected":s?!0:void 0,role:"option",style:{transform:`translate(${m}px, ${b+(Zu-xi)/2}px`},ownerState:c},l,{children:i}))}const LRe=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:o,utils:a})=>{const i=t?a.getHours(t):null,s=[],l=e?1:0,c=e?12:23,u=f=>i===null?!1:e?f===12?i===12||i===0:i===f||i-12===f:i===f;for(let f=l;f<=c;f+=1){let p=f.toString();f===0&&(p="00");const m=!e&&(f===0||f>12);p=a.formatNumber(p);const b=u(f);s.push(O.jsx(F6,{id:b?o:void 0,index:f,inner:m,selected:b,disabled:r(f),label:p,"aria-label":n(p)},f))}return s},eM=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:o})=>{const a=e.formatNumber;return[[5,a("05")],[10,a("10")],[15,a("15")],[20,a("20")],[25,a("25")],[30,a("30")],[35,a("35")],[40,a("40")],[45,a("45")],[50,a("50")],[55,a("55")],[0,a("00")]].map(([i,s],l)=>{const c=i===t;return O.jsx(F6,{label:s,id:c?o:void 0,index:l+1,inner:!1,disabled:n(i),selected:c,"aria-label":r(s)},i)})},M2=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:o})=>{var a,i;const s=qt(),l=S.useRef(n),c=(a=t??l.current)!=null?a:o.emptyValue,u=S.useMemo(()=>o.getTimezone(s,c),[s,o,c]),f=mt(v=>u==null?v:o.setTimezone(s,u,v)),p=(i=e??u)!=null?i:"default",m=S.useMemo(()=>o.setTimezone(s,p,c),[o,s,p,c]),b=mt((v,...x)=>{const g=f(v);r==null||r(g,...x)});return{value:m,handleValueChange:b,timezone:p}},Sd=({name:e,timezone:t,value:n,defaultValue:r,onChange:o,valueManager:a})=>{const[i,s]=Cr({name:e,state:"value",controlled:n,default:r??a.emptyValue}),l=mt((c,...u)=>{s(c),o==null||o(c,...u)});return M2({timezone:t,value:i,defaultValue:void 0,onChange:l,valueManager:a})},Na={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},FRe=e=>Math.max(...e.map(t=>{var n;return(n=Na[t.type])!=null?n:1})),ff=(e,t,n)=>{if(t===Na.year)return e.startOfYear(n);if(t===Na.month)return e.startOfMonth(n);if(t===Na.day)return e.startOfDay(n);let r=n;return t{var a;let i=o?o():ff(t,n,D2(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=ff(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=ff(t,n,e.maxDate));const s=gh((a=e.disableIgnoringDatePartForTimeValidation)!=null?a:!1,t);return e.minTime!=null&&s(e.minTime,i)&&(i=ff(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:vC(t,i,e.minTime))),e.maxTime!=null&&s(i,e.maxTime)&&(i=ff(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:vC(t,i,e.maxTime))),i},z6=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(` +`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},BRe=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},B0=(e,t,n)=>{const r=[],o=e.dateWithTimezone(void 0,t),a=e.startOfWeek(o),i=e.endOfWeek(o);let s=a;for(;e.isBefore(s,i);)r.push(s),s=e.addDays(s,1);return r.map(l=>e.formatByString(l,n))},B6=(e,t,n,r)=>{switch(n){case"month":return R2(e,e.dateWithTimezone(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return B0(e,t,r);case"meridiem":{const o=e.dateWithTimezone(void 0,t);return[e.startOfDay(o),e.endOfDay(o)].map(a=>e.formatByString(a,r))}default:return[]}},V6=(e,t,n)=>{let r=t;for(r=Number(r).toString();r.length{if(o.type==="day"&&o.contentType==="digit-with-letter"){const i=e.setDate(r.longestMonth,n);return e.formatByString(i,o.format)}const a=n.toString();return o.hasLeadingZerosInInput?V6(e,a,o.maxLength):a},VRe=(e,t,n,r,o,a,i)=>{const s=BRe(r),l=r==="Home",c=r==="End",u=n.value===""||l||c,f=()=>{const m=o[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),b=y=>U6(e,t,y,m,n),v=n.type==="minutes"&&i!=null&&i.minutesStep?i.minutesStep:1;let g=parseInt(n.value,10)+s*v;if(u){if(n.type==="year"&&!c&&!l)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);s>0||l?g=m.minimum:g=m.maximum}return g%v!==0&&((s<0||l)&&(g+=v-(v+g)%v),(s>0||c)&&(g-=g%v)),g>m.maximum?b(m.minimum+(g-m.maximum-1)%(m.maximum-m.minimum+1)):g{const m=B6(e,t,n.type,n.format);if(m.length===0)return n.value;if(u)return s>0||l?m[0]:m[m.length-1];const v=(m.indexOf(n.value)+m.length+s)%m.length;return m[v]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?f():p()},I2=(e,t)=>{let n=e.value||e.placeholder;const r=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(n=Number(n).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&n.length===1&&(n=`${n}‎`),t==="input-rtl"&&(n=`⁨${n}⁩`),n},gu=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),W6=(e,t)=>{let n=0,r=t?1:0;const o=[];for(let a=0;a{switch(r.type){case"year":return n.fieldYearPlaceholder({digitAmount:e.formatByString(e.dateWithTimezone(void 0,t),o).length});case"month":return n.fieldMonthPlaceholder({contentType:r.contentType});case"day":return n.fieldDayPlaceholder();case"weekDay":return n.fieldWeekDayPlaceholder({contentType:r.contentType});case"hours":return n.fieldHoursPlaceholder();case"minutes":return n.fieldMinutesPlaceholder();case"seconds":return n.fieldSecondsPlaceholder();case"meridiem":return n.fieldMeridiemPlaceholder();default:return o}},tM=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),H6=(e,t,n)=>e.formatByString(e.dateWithTimezone(void 0,t),n).length===4,G6=(e,t,n,r,o)=>{if(n!=="digit")return!1;const a=e.dateWithTimezone(void 0,t);switch(r){case"year":return H6(e,t,o)?e.formatByString(e.setYear(a,1),o)==="0001":e.formatByString(e.setYear(a,2001),o)==="01";case"month":return e.formatByString(e.startOfYear(a),o).length>1;case"day":return e.formatByString(e.startOfMonth(a),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(a),o).length>1;case"hours":return e.formatByString(e.setHours(a,1),o).length>1;case"minutes":return e.formatByString(e.setMinutes(a,1),o).length>1;case"seconds":return e.formatByString(e.setMinutes(a,1),o).length>1;default:throw new Error("Invalid section type")}},WRe=(e,t)=>{const n=[],{start:r,end:o}=e.escapedCharacters,a=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let i=null;for(;i=a.exec(t);)n.push({start:i.index,end:a.lastIndex-1});return n},nM=(e,t,n,r,o,a,i,s)=>{let l="";const c=[],u=e.date(),f=w=>{if(w==="")return null;const C=z6(e,w),_=G6(e,t,C.contentType,C.type,w),$=i?_:C.contentType==="digit",E=o!=null&&e.isValid(o);let k=E?e.formatByString(o,w):"",I=null;if($)if(_)I=k===""?e.formatByString(u,w).length:k.length;else{if(C.maxLength==null)throw new Error(`MUI: The token ${w} should have a 'maxDigitNumber' property on it's adapter`);I=C.maxLength,E&&(k=V6(e,k,I))}return c.push(T({},C,{format:w,maxLength:I,value:k,placeholder:URe(e,t,n,C,w),hasLeadingZeros:_,hasLeadingZerosInFormat:_,hasLeadingZerosInInput:$,startSeparator:c.length===0?l:"",endSeparator:"",modified:!1})),null};let p=10,m=r,b=e.expandFormat(r);for(;b!==m;)if(m=b,b=e.expandFormat(m),p-=1,p<0)throw new Error("MUI: The format expansion seems to be enter in an infinite loop. Please open an issue with the format passed to the picker component");const v=b,x=WRe(e,v),g=new RegExp(`^(${Object.keys(e.formatTokenMap).sort((w,C)=>C.length-w.length).join("|")})`,"g");let y="";for(let w=0;wI.start<=w&&I.end>=w),_=v[w],$=C!=null,E=`${y}${v.slice(w)}`,k=g.test(E);!$&&_.match(/([A-Za-z]+)/)&&k?(y=E.slice(0,g.lastIndex),w+=g.lastIndex-1):$&&(C==null?void 0:C.start)===w||(C==null?void 0:C.end)===w||(f(y),y="",c.length===0?l+=_:c[c.length-1].endSeparator+=_)}return f(y),c.map(w=>{const C=_=>{let $=_;return s&&$!==null&&$.includes(" ")&&($=`⁩${$}⁦`),a==="spacious"&&["/",".","-"].includes($)&&($=` ${$} `),$};return w.startSeparator=C(w.startSeparator),w.endSeparator=C(w.endSeparator),w})},HRe=(e,t)=>{const n=t.some(s=>s.type==="day"),r=[],o=[];for(let s=0;s{const r=e.map(o=>{const a=I2(o,t?"input-rtl":"input-ltr");return`${o.startSeparator}${a}${o.endSeparator}`}).join("");return t?`⁦${r}⁩`:r},qRe=(e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),o=e.endOfDay(n),{maxDaysInMonth:a,longestMonth:i}=R2(e,n).reduce((s,l)=>{const c=e.getDaysInMonth(l);return c>s.maxDaysInMonth?{maxDaysInMonth:c,longestMonth:l}:s},{maxDaysInMonth:0,longestMonth:null});return{year:({format:s})=>({minimum:0,maximum:H6(e,t,s)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:s})=>({minimum:1,maximum:s!=null&&e.isValid(s)?e.getDaysInMonth(s):a,longestMonth:i}),weekDay:({format:s,contentType:l})=>{if(l==="digit"){const c=B0(e,t,s).map(Number);return{minimum:Math.min(...c),maximum:Math.max(...c)}}return{minimum:1,maximum:7}},hours:({format:s})=>{const l=e.getHours(o);return e.formatByString(e.endOfDay(n),s)!==l.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(n),s))}:{minimum:0,maximum:l}},minutes:()=>({minimum:0,maximum:e.getMinutes(o)}),seconds:()=>({minimum:0,maximum:e.getSeconds(o)}),meridiem:()=>({minimum:0,maximum:0})}},YRe=(e,t,n,r,o)=>{switch(n.type){case"year":return e.setYear(o,e.getYear(r));case"month":return e.setMonth(o,e.getMonth(r));case"weekDay":{const a=B0(e,t,n.format),i=e.formatByString(r,n.format),s=a.indexOf(i),c=a.indexOf(n.value)-s;return e.addDays(r,c)}case"day":return e.setDate(o,e.getDate(r));case"meridiem":{const a=e.getHours(r)<12,i=e.getHours(o);return a&&i>=12?e.addHours(o,-12):!a&&i<12?e.addHours(o,12):o}case"hours":return e.setHours(o,e.getHours(r));case"minutes":return e.setMinutes(o,e.getMinutes(r));case"seconds":return e.setSeconds(o,e.getSeconds(r));default:return o}},rM={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},oM=(e,t,n,r,o,a)=>[...r].sort((i,s)=>rM[i.type]-rM[s.type]).reduce((i,s)=>!a||s.modified?YRe(e,t,s,n,i):i,o),KRe=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,JRe=(e,t)=>{const n={};if(!t)return e.forEach((l,c)=>{const u=c===0?null:c-1,f=c===e.length-1?null:c+1;n[c]={leftIndex:u,rightIndex:f}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let a=0,i=0,s=e.length-1;for(;s>=0;){i=e.findIndex((l,c)=>{var u;return c>=a&&((u=l.endSeparator)==null?void 0:u.includes(" "))&&l.endSeparator!==" / "}),i===-1&&(i=e.length-1);for(let l=i;l>=a;l-=1)o[l]=s,r[s]=l,s-=1;a=i+1}return e.forEach((l,c)=>{const u=o[c],f=u===0?null:r[u-1],p=u===e.length-1?null:r[u+1];n[c]={leftIndex:f,rightIndex:p}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},ZRe=["value","referenceDate"],$r={emptyValue:null,getTodayValue:D2,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=Oe(e,ZRe);return t!=null&&r.utils.isValid(t)?t:n??zRe(r)},cleanValue:wRe,areValuesEqual:CRe,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},A2={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r,o)=>!e.isValid(t)&&!!n?n:W6(o(t),r),getValueStrFromSections:GRe,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},bh=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>T({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]}),{})},N2=({value:e,referenceDate:t,utils:n,props:r,timezone:o})=>{const a=S.useMemo(()=>$r.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:Na.day,timezone:o,getTodayDate:()=>D2(n,o,"date")}),[]);return e??a},XRe=["ampm","ampmInClock","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","timezone"],QRe=e=>{const{classes:t}=e;return Xe({root:["root"],arrowSwitcher:["arrowSwitcher"]},lRe,t)},eDe=de(z0,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),tDe=de(I6,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),nDe=["hours","minutes"],rDe=S.forwardRef(function(t,n){const r=qt(),o=Ke({props:t,name:"MuiTimeClock"}),{ampm:a=r.is12HourCycleInCurrentLocale(),ampmInClock:i=!1,autoFocus:s,components:l,componentsProps:c,slots:u,slotProps:f,value:p,defaultValue:m,referenceDate:b,disableIgnoringDatePartForTimeValidation:v=!1,maxTime:x,minTime:g,disableFuture:y,disablePast:w,minutesStep:C=1,shouldDisableClock:_,shouldDisableTime:$,showViewSwitcher:E,onChange:k,view:I,views:R=nDe,openTo:F,onViewChange:U,focusedView:G,onFocusedViewChange:B,className:z,disabled:Y,readOnly:Q,timezone:H}=o,J=Oe(o,XRe),X=u??bh(l),L=f??c,{value:K,handleValueChange:q,timezone:D}=Sd({name:"TimeClock",timezone:H,value:p,defaultValue:m,onChange:k,valueManager:$r}),N=N2({value:K,referenceDate:b,utils:r,props:o,timezone:D}),V=_r(),Z=cl(D),{view:re,setView:le,previousView:xe,nextView:fe,setValueAndGoToNextView:ge}=yh({view:I,views:R,openTo:F,onViewChange:U,onChange:q,focusedView:G,onFocusedViewChange:B}),{meridiemMode:he,handleMeridiemChange:_e}=N0(N,a,ge),ve=S.useCallback((be,we)=>{const Ce=gh(v,r),qe=we==="hours"||we==="minutes"&&R.includes("seconds"),rt=({start:Le,end:Fe})=>!(g&&Ce(g,Fe)||x&&Ce(Le,x)||y&&Ce(Le,Z)||w&&Ce(Z,qe?Fe:Le)),Ae=(Le,Fe=1)=>{if(Le%Fe!==0||_!=null&&_(Le,we))return!1;if($)switch(we){case"hours":return!$(r.setHours(N,Le),"hours");case"minutes":return!$(r.setMinutes(N,Le),"minutes");case"seconds":return!$(r.setSeconds(N,Le),"seconds");default:return!1}return!0};switch(we){case"hours":{const Le=kp(be,he,a),Fe=r.setHours(N,Le),Pe=r.setSeconds(r.setMinutes(Fe,0),0),Te=r.setSeconds(r.setMinutes(Fe,59),59);return!rt({start:Pe,end:Te})||!Ae(Le)}case"minutes":{const Le=r.setMinutes(N,be),Fe=r.setSeconds(Le,0),Pe=r.setSeconds(Le,59);return!rt({start:Fe,end:Pe})||!Ae(be,C)}case"seconds":{const Le=r.setSeconds(N,be);return!rt({start:Le,end:Le})||!Ae(be)}default:throw new Error("not supported")}},[a,N,v,x,he,g,C,_,$,r,y,w,Z,R]),Be=Ya(),Ue=S.useMemo(()=>{switch(re){case"hours":{const be=(we,Ce)=>{const qe=kp(we,he,a);ge(r.setHours(N,qe),Ce)};return{onChange:be,viewValue:r.getHours(N),children:LRe({value:K,utils:r,ampm:a,onChange:be,getClockNumberText:V.hoursClockNumberText,isDisabled:we=>Y||ve(we,"hours"),selectedId:Be})}}case"minutes":{const be=r.getMinutes(N),we=(Ce,qe)=>{ge(r.setMinutes(N,Ce),qe)};return{viewValue:be,onChange:we,children:eM({utils:r,value:be,onChange:we,getClockNumberText:V.minutesClockNumberText,isDisabled:Ce=>Y||ve(Ce,"minutes"),selectedId:Be})}}case"seconds":{const be=r.getSeconds(N),we=(Ce,qe)=>{ge(r.setSeconds(N,Ce),qe)};return{viewValue:be,onChange:we,children:eM({utils:r,value:be,onChange:we,getClockNumberText:V.secondsClockNumberText,isDisabled:Ce=>Y||ve(Ce,"seconds"),selectedId:Be})}}default:throw new Error("You must provide the type for ClockView")}},[re,r,K,a,V.hoursClockNumberText,V.minutesClockNumberText,V.secondsClockNumberText,he,ge,N,ve,Be,Y]),ze=o,He=QRe(ze);return O.jsxs(eDe,T({ref:n,className:Ie(He.root,z),ownerState:ze},J,{children:[O.jsx(MRe,T({autoFocus:s??!!G,ampmInClock:i&&R.includes("hours"),value:K,type:re,ampm:a,minutesStep:C,isTimeDisabled:ve,meridiemMode:he,handleMeridiemChange:_e,selectedId:Be,disabled:Y,readOnly:Q},Ue)),E&&O.jsx(tDe,{className:He.arrowSwitcher,slots:X,slotProps:L,onGoToPrevious:()=>le(xe),isPreviousDisabled:!xe,previousLabel:V.openPreviousView,onGoToNext:()=>le(fe),isNextDisabled:!fe,nextLabel:V.openNextView,ownerState:ze})]}))});function oDe(e){return et("MuiDigitalClock",e)}const aDe=Qe("MuiDigitalClock",["root","list","item"]),iDe=["ampm","timeStep","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","views","skipDisabled","timezone"],sDe=e=>{const{classes:t}=e;return Xe({root:["root"],list:["list"],item:["item"]},oDe,t)},lDe=de(z0,{name:"MuiDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({overflowY:"auto",width:"100%","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:e.alreadyRendered?"smooth":"auto"},maxHeight:N6})),cDe=de(y2,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),uDe=de(jg,{name:"MuiDigitalClock",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.primary.main,e.palette.action.focusOpacity)}})),dDe=S.forwardRef(function(t,n){var r,o,a;const i=qt(),s=S.useRef(null),l=sn(n,s),c=Ke({props:t,name:"MuiDigitalClock"}),{ampm:u=i.is12HourCycleInCurrentLocale(),timeStep:f=30,autoFocus:p,components:m,componentsProps:b,slots:v,slotProps:x,value:g,defaultValue:y,referenceDate:w,disableIgnoringDatePartForTimeValidation:C=!1,maxTime:_,minTime:$,disableFuture:E,disablePast:k,minutesStep:I=1,shouldDisableClock:R,shouldDisableTime:F,onChange:U,view:G,openTo:B,onViewChange:z,focusedView:Y,onFocusedViewChange:Q,className:H,disabled:J,readOnly:X,views:L=["hours"],skipDisabled:K=!1,timezone:q}=c,D=Oe(c,iDe),{value:N,handleValueChange:V,timezone:Z}=Sd({name:"DigitalClock",timezone:q,value:g,defaultValue:y,onChange:U,valueManager:$r}),re=_r(),le=cl(Z),xe=S.useMemo(()=>T({},c,{alreadyRendered:!!s.current}),[c]),fe=sDe(xe),ge=(r=(o=v==null?void 0:v.digitalClockItem)!=null?o:m==null?void 0:m.DigitalClockItem)!=null?r:uDe,he=zt({elementType:ge,externalSlotProps:(a=x==null?void 0:x.digitalClockItem)!=null?a:b==null?void 0:b.digitalClockItem,ownerState:{},className:fe.item}),_e=N2({value:N,referenceDate:w,utils:i,props:c,timezone:Z}),ve=mt(be=>V(be,"finish","hours")),{setValueAndGoToNextView:Be}=yh({view:G,views:L,openTo:B,onViewChange:z,onChange:ve,focusedView:Y,onFocusedViewChange:Q}),Ue=mt(be=>{Be(be,"finish")});S.useEffect(()=>{if(s.current===null)return;const be=s.current.querySelector('[role="listbox"] [role="option"][aria-selected="true"]');if(!be)return;const we=be.offsetTop;s.current.scrollTop=we-4});const ze=S.useCallback(be=>{const we=gh(C,i),Ce=()=>!($&&we($,be)||_&&we(be,_)||E&&we(be,le)||k&&we(le,be)),qe=()=>i.getMinutes(be)%I!==0||R!=null&&R(i.toJsDate(be).getTime(),"hours")?!1:F?!F(be,"hours"):!0;return!Ce()||!qe()},[C,i,$,_,E,le,k,I,R,F]),He=S.useMemo(()=>{const be=i.startOfDay(_e);return[be,...Array.from({length:Math.ceil(24*60/f)-1},(we,Ce)=>i.addMinutes(be,f*(Ce+1)))]},[_e,f,i]);return O.jsx(lDe,T({ref:l,className:Ie(fe.root,H),ownerState:xe},D,{children:O.jsx(cDe,{autoFocusItem:p||!!Y,role:"listbox","aria-label":re.timePickerToolbarTitle,className:fe.list,children:He.map(be=>{if(K&&ze(be))return null;const we=i.isEqual(be,N);return O.jsx(ge,T({onClick:()=>!X&&Ue(be),selected:we,disabled:J||ze(be),disableRipple:X,role:"option","aria-disabled":X,"aria-selected":we},he,{children:i.format(be,u?"fullTime12h":"fullTime24h")}),i.toISO(be))})})}))});function fDe(e){return et("MuiMultiSectionDigitalClock",e)}Qe("MuiMultiSectionDigitalClock",["root"]);function pDe(e){return et("MuiMultiSectionDigitalClock",e)}const hDe=Qe("MuiMultiSectionDigitalClock",["root","item"]),mDe=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],vDe=e=>{const{classes:t}=e;return Xe({root:["root"],item:["item"]},pDe,t)},gDe=de(y2,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({maxHeight:N6,width:56,padding:0,overflow:"hidden","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:t.alreadyRendered?"smooth":"auto"},"&:hover":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&:after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"}})),yDe=de(jg,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:Tf,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.primary.main,e.palette.action.focusOpacity)}})),bDe=S.forwardRef(function(t,n){var r;const o=S.useRef(null),a=sn(n,o),i=S.useRef(null),s=Ke({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:l,onChange:c,className:u,disabled:f,readOnly:p,items:m,active:b,slots:v,slotProps:x,skipDisabled:g}=s,y=Oe(s,mDe),w=S.useMemo(()=>T({},s,{alreadyRendered:!!o.current}),[s]),C=vDe(w),_=(r=v==null?void 0:v.digitalClockSectionItem)!=null?r:yDe;return S.useEffect(()=>{if(o.current===null)return;const $=o.current.querySelector('[role="option"][aria-selected="true"]');if(!$||i.current===$){i.current!==$&&(i.current=$);return}i.current=$,b&&l&&$.focus();const E=$.offsetTop;o.current.scrollTop=E-4}),O.jsx(gDe,T({ref:a,className:Ie(C.root,u),ownerState:w,autoFocusItem:l&&b,role:"listbox"},y,{children:m.map($=>{var E,k;if(g&&(E=$.isDisabled)!=null&&E.call($,$.value))return null;const I=$.isSelected($.value);return O.jsx(_,T({onClick:()=>!p&&c($.value),selected:I,disabled:f||((k=$.isDisabled)==null?void 0:k.call($,$.value)),disableRipple:p,role:"option","aria-disabled":p,"aria-label":$.ariaLabel,"aria-selected":I},x==null?void 0:x.digitalClockSectionItem,{children:$.label}),$.label)})}))}),xDe=({now:e,value:t,utils:n,ampm:r,isDisabled:o,resolveAriaLabel:a,timeStep:i})=>{const s=t?n.getHours(t):null,l=[],c=f=>s===null?!1:r?f===12?s===12||s===0:s===f||s-12===f:s===f,u=r?11:23;for(let f=0;f<=u;f+=i){let p=n.format(n.setHours(e,f),r?"hours12h":"hours24h");const m=a(parseInt(p,10).toString());p=n.formatNumber(p),l.push({value:f,label:p,isSelected:c,isDisabled:o,ariaLabel:m})}return l},aM=({value:e,isDisabled:t,timeStep:n,resolveLabel:r,resolveAriaLabel:o,hasValue:a=!0})=>{const i=s=>e===null?!1:a&&e===s;return[...Array.from({length:Math.ceil(60/n)},(s,l)=>{const c=n*l;return{value:c,label:r(c),isDisabled:t,isSelected:i,ariaLabel:o(c.toString())}})]},wDe=["ampm","timeSteps","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","skipDisabled","timezone"],CDe=e=>{const{classes:t}=e;return Xe({root:["root"]},fDe,t)},$De=de(z0,{name:"MuiMultiSectionDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),SDe=S.forwardRef(function(t,n){const r=qt(),o=Ke({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:a=r.is12HourCycleInCurrentLocale(),timeSteps:i,autoFocus:s,components:l,componentsProps:c,slots:u,slotProps:f,value:p,defaultValue:m,referenceDate:b,disableIgnoringDatePartForTimeValidation:v=!1,maxTime:x,minTime:g,disableFuture:y,disablePast:w,minutesStep:C=1,shouldDisableClock:_,shouldDisableTime:$,onChange:E,view:k,views:I=["hours","minutes"],openTo:R,onViewChange:F,focusedView:U,onFocusedViewChange:G,className:B,disabled:z,readOnly:Y,skipDisabled:Q=!1,timezone:H}=o,J=Oe(o,wDe),{value:X,handleValueChange:L,timezone:K}=Sd({name:"MultiSectionDigitalClock",timezone:H,value:p,defaultValue:m,onChange:E,valueManager:$r}),q=_r(),D=cl(K),N=S.useMemo(()=>T({hours:1,minutes:5,seconds:5},i),[i]),V=N2({value:X,referenceDate:b,utils:r,props:o,timezone:K}),Z=mt((we,Ce,qe)=>L(we,Ce,qe)),re=S.useMemo(()=>!a||!I.includes("hours")||I.includes("meridiem")?I:[...I,"meridiem"],[a,I]),{view:le,setValueAndGoToView:xe,focusedView:fe}=yh({view:k,views:re,openTo:R,onViewChange:F,onChange:Z,focusedView:U,onFocusedViewChange:G}),ge=mt(we=>{xe(we,null,"meridiem")}),{meridiemMode:he,handleMeridiemChange:_e}=N0(V,a,ge,"finish"),ve=S.useCallback((we,Ce)=>{const qe=gh(v,r),rt=Ce==="hours"||Ce==="minutes"&&re.includes("seconds"),Ae=({start:Fe,end:Pe})=>!(g&&qe(g,Pe)||x&&qe(Fe,x)||y&&qe(Fe,D)||w&&qe(D,rt?Pe:Fe)),Le=(Fe,Pe=1)=>{if(Fe%Pe!==0||_!=null&&_(Fe,Ce))return!1;if($)switch(Ce){case"hours":return!$(r.setHours(V,Fe),"hours");case"minutes":return!$(r.setMinutes(V,Fe),"minutes");case"seconds":return!$(r.setSeconds(V,Fe),"seconds");default:return!1}return!0};switch(Ce){case"hours":{const Fe=kp(we,he,a),Pe=r.setHours(V,Fe),Te=r.setSeconds(r.setMinutes(Pe,0),0),it=r.setSeconds(r.setMinutes(Pe,59),59);return!Ae({start:Te,end:it})||!Le(Fe)}case"minutes":{const Fe=r.setMinutes(V,we),Pe=r.setSeconds(Fe,0),Te=r.setSeconds(Fe,59);return!Ae({start:Pe,end:Te})||!Le(we,C)}case"seconds":{const Fe=r.setSeconds(V,we);return!Ae({start:Fe,end:Fe})||!Le(we)}default:throw new Error("not supported")}},[a,V,v,x,he,g,C,_,$,r,y,w,D,re]),Be=mt((we,Ce)=>{const qe=re.indexOf(we),rt=re[qe+1];xe(Ce,rt,we)}),Ue=S.useCallback(we=>{switch(we){case"hours":return{onChange:Ce=>{const qe=kp(Ce,he,a);Be("hours",r.setHours(V,qe))},items:xDe({now:D,value:X,ampm:a,utils:r,isDisabled:Ce=>z||ve(Ce,"hours"),timeStep:N.hours,resolveAriaLabel:q.hoursClockNumberText})};case"minutes":return{onChange:Ce=>{Be("minutes",r.setMinutes(V,Ce))},items:aM({value:r.getMinutes(V),isDisabled:Ce=>z||ve(Ce,"minutes"),resolveLabel:Ce=>r.format(r.setMinutes(D,Ce),"minutes"),timeStep:N.minutes,hasValue:!!X,resolveAriaLabel:q.minutesClockNumberText})};case"seconds":return{onChange:Ce=>{Be("seconds",r.setSeconds(V,Ce))},items:aM({value:r.getSeconds(V),isDisabled:Ce=>z||ve(Ce,"seconds"),resolveLabel:Ce=>r.format(r.setSeconds(D,Ce),"seconds"),timeStep:N.seconds,hasValue:!!X,resolveAriaLabel:q.secondsClockNumberText})};case"meridiem":{const Ce=Ba(r,"am"),qe=Ba(r,"pm");return{onChange:_e,items:[{value:"am",label:Ce,isSelected:()=>!!X&&he==="am",ariaLabel:Ce},{value:"pm",label:qe,isSelected:()=>!!X&&he==="pm",ariaLabel:qe}]}}default:throw new Error(`Unknown view: ${we} found.`)}},[D,X,a,r,N.hours,N.minutes,N.seconds,q.hoursClockNumberText,q.minutesClockNumberText,q.secondsClockNumberText,he,Be,V,z,ve,_e]),ze=S.useMemo(()=>re.reduce((we,Ce)=>T({},we,{[Ce]:Ue(Ce)}),{}),[re,Ue]),He=o,be=CDe(He);return O.jsx($De,T({ref:n,className:Ie(be.root,B),ownerState:He,role:"group"},J,{children:Object.entries(ze).map(([we,Ce])=>O.jsx(bDe,{items:Ce.items,onChange:Ce.onChange,active:le===we,autoFocus:s??fe===we,disabled:z,readOnly:Y,slots:u??l,slotProps:f??c,skipDisabled:Q,"aria-label":q.selectViewText(we)},we))}))});function _De(e){return et("MuiPickersDay",e)}const Cl=Qe("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),EDe=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],PDe=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:a,outsideCurrentMonth:i,showDaysOutsideCurrentMonth:s,classes:l}=e,c=i&&!s;return Xe({root:["root",t&&!c&&"selected",a&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",i&&s&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},_De,l)},q6=({theme:e,ownerState:t})=>T({},e.typography.caption,{width:Op,height:Op,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Cl.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Cl.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Cl.disabled}:not(.${Cl.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Cl.disabled}&.${Cl.selected}`]:{opacity:.6}},!t.disableMargin&&{margin:`0 ${j0}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${Cl.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),Y6=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},TDe=de(Ca,{name:"MuiPickersDay",slot:"Root",overridesResolver:Y6})(q6),kDe=de("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:Y6})(({theme:e,ownerState:t})=>T({},q6({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),pf=()=>{},ODe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:a,day:i,disabled:s=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:u,onClick:f,onDaySelect:p,onFocus:m=pf,onBlur:b=pf,onKeyDown:v=pf,onMouseDown:x=pf,onMouseEnter:g=pf,outsideCurrentMonth:y,selected:w=!1,showDaysOutsideCurrentMonth:C=!1,children:_,today:$=!1}=r,E=Oe(r,EDe),k=T({},r,{autoFocus:o,disabled:s,disableHighlightToday:l,disableMargin:c,selected:w,showDaysOutsideCurrentMonth:C,today:$}),I=PDe(k),R=qt(),F=S.useRef(null),U=sn(F,n);Kn(()=>{o&&!s&&!u&&!y&&F.current.focus()},[o,s,u,y]);const G=z=>{x(z),y&&z.preventDefault()},B=z=>{s||p(i),y&&z.currentTarget.focus(),f&&f(z)};return y&&!C?O.jsx(kDe,{className:Ie(I.root,I.hiddenDaySpacingFiller,a),ownerState:k,role:E.role}):O.jsx(TDe,T({className:Ie(I.root,a),ref:U,centerRipple:!0,disabled:s,tabIndex:w?0:-1,onKeyDown:z=>v(z,i),onFocus:z=>m(z,i),onBlur:z=>b(z,i),onMouseEnter:z=>g(z,i),onClick:B,onMouseDown:G},E,{ownerState:k,children:_||R.format(i,"dayOfMonth")}))}),RDe=S.memo(ODe);function K6(e,t,n,r){const{value:o,onError:a}=e,i=gc(),s=S.useRef(r),l=t({adapter:i,value:o,props:e});return S.useEffect(()=>{a&&!n(l,s.current)&&a(l,o),s.current=l},[n,a,s,l,o]),l}const DDe=e=>{const t=qt(),n=_r(),r=gc(),a=nr().direction==="rtl",{valueManager:i,fieldValueManager:s,valueType:l,validator:c,internalProps:u,internalProps:{value:f,defaultValue:p,referenceDate:m,onChange:b,format:v,formatDensity:x="dense",selectedSections:g,onSelectedSectionsChange:y,shouldRespectLeadingZeros:w=!1,timezone:C}}=e,{timezone:_,value:$,handleValueChange:E}=M2({timezone:C,value:f,defaultValue:p,onChange:b,valueManager:i}),k=S.useMemo(()=>qRe(t,_),[t,_]),I=S.useCallback((D,N=null)=>s.getSectionsFromValue(t,D,N,a,V=>nM(t,_,n,v,V,x,w,a)),[s,v,n,a,w,t,x,_]),R=S.useMemo(()=>s.getValueStrFromSections(I(i.emptyValue),a),[s,I,i.emptyValue,a]),[F,U]=S.useState(()=>{const D=I($),N={sections:D,value:$,referenceValue:i.emptyValue,tempValueStrAndroid:null},V=FRe(D),Z=i.getInitialReferenceValue({referenceDate:m,value:$,utils:t,props:u,granularity:V,timezone:_});return T({},N,{referenceValue:Z})}),[G,B]=Cr({controlled:g,default:null,name:"useField",state:"selectedSectionIndexes"}),z=D=>{B(D),y==null||y(D),U(N=>T({},N,{selectedSectionQuery:null}))},Y=S.useMemo(()=>{if(G==null)return null;if(G==="all")return{startIndex:0,endIndex:F.sections.length-1,shouldSelectBoundarySelectors:!0};if(typeof G=="number")return{startIndex:G,endIndex:G};if(typeof G=="string"){const D=F.sections.findIndex(N=>N.type===G);return{startIndex:D,endIndex:D}}return G},[G,F.sections]),Q=({value:D,referenceValue:N,sections:V})=>{U(re=>T({},re,{sections:V,value:D,referenceValue:N,tempValueStrAndroid:null}));const Z={validationError:c({adapter:r,value:D,props:T({},u,{value:D,timezone:_})})};E(D,Z)},H=(D,N)=>{const V=[...F.sections];return V[D]=T({},V[D],{value:N,modified:!0}),W6(V,a)},J=()=>{i.areValuesEqual(t,F.value,i.emptyValue)||Q({value:i.emptyValue,referenceValue:F.referenceValue,sections:I(i.emptyValue)})},X=()=>{if(Y==null)return;const D=F.sections[Y.startIndex];if(D.value==="")return;const N=s.getActiveDateManager(t,F,D),Z=N.getSections(F.sections).filter(fe=>fe.value!=="").length===1,re=H(Y.startIndex,""),le=Z?null:t.date(new Date("")),xe=N.getNewValuesFromNewActiveDate(le);(le!=null&&!t.isValid(le))!=(N.date!=null&&!t.isValid(N.date))?Q(T({},xe,{sections:re})):U(fe=>T({},fe,xe,{sections:re,tempValueStrAndroid:null}))},L=D=>{const N=(re,le)=>{const xe=t.parse(re,v);if(xe==null||!t.isValid(xe))return null;const fe=nM(t,_,n,v,xe,x,w,a);return oM(t,_,xe,fe,le,!1)},V=s.parseValueStr(D,F.referenceValue,N),Z=s.updateReferenceValue(t,V,F.referenceValue);Q({value:V,referenceValue:Z,sections:I(V,F.sections)})},K=({activeSection:D,newSectionValue:N,shouldGoToNextSection:V})=>{V&&Y&&Y.startIndexT({},he,fe,{sections:re,tempValueStrAndroid:null}))},q=D=>U(N=>T({},N,{tempValueStrAndroid:D}));return S.useEffect(()=>{const D=I(F.value);U(N=>T({},N,{sections:D}))},[v,t.locale]),S.useEffect(()=>{let D=!1;i.areValuesEqual(t,F.value,$)?D=i.getTimezone(t,F.value)!==i.getTimezone(t,$):D=!0,D&&U(N=>T({},N,{value:$,referenceValue:s.updateReferenceValue(t,$,N.referenceValue),sections:I($)}))},[$]),{state:F,selectedSectionIndexes:Y,setSelectedSections:z,clearValue:J,clearActiveSection:X,updateSectionValue:K,updateValueFromValueStr:L,setTempAndroidValueStr:q,sectionsValueBoundaries:k,placeholder:R,timezone:_}},MDe=5e3,qc=e=>e.saveQuery!=null,IDe=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:r,timezone:o})=>{const a=qt(),[i,s]=S.useState(null),l=mt(()=>s(null));S.useEffect(()=>{var m;i!=null&&((m=e[i.sectionIndex])==null?void 0:m.type)!==i.sectionType&&l()},[e,i,l]),S.useEffect(()=>{if(i!=null){const m=setTimeout(()=>l(),MDe);return()=>{window.clearTimeout(m)}}return()=>{}},[i,l]);const c=({keyPressed:m,sectionIndex:b},v,x)=>{const g=m.toLowerCase(),y=e[b];if(i!=null&&(!x||x(i.value))&&i.sectionIndex===b){const C=`${i.value}${g}`,_=v(C,y);if(!qc(_))return s({sectionIndex:b,value:C,sectionType:y.type}),_}const w=v(g,y);return qc(w)&&!w.saveQuery?(l(),null):(s({sectionIndex:b,value:g,sectionType:y.type}),qc(w)?null:w)},u=m=>{const b=(g,y,w)=>{const C=y.filter(_=>_.toLowerCase().startsWith(w));return C.length===0?{saveQuery:!1}:{sectionValue:C[0],shouldGoToNextSection:C.length===1}},v=(g,y,w,C)=>{const _=$=>B6(a,o,y.type,$);if(y.contentType==="letter")return b(y.format,_(y.format),g);if(w&&C!=null&&z6(a,w).contentType==="letter"){const $=_(w),E=b(w,$,g);return qc(E)?{saveQuery:!1}:T({},E,{sectionValue:C(E.sectionValue,$)})}return{saveQuery:!1}};return c(m,(g,y)=>{switch(y.type){case"month":{const w=C=>tM(a,C,a.formats.month,y.format);return v(g,y,a.formats.month,w)}case"weekDay":{const w=(C,_)=>_.indexOf(C).toString();return v(g,y,a.formats.weekday,w)}case"meridiem":return v(g,y);default:return{saveQuery:!1}}})},f=m=>{const b=(x,g)=>{const y=+`${x}`,w=n[g.type]({currentDate:null,format:g.format,contentType:g.contentType});if(y>w.maximum)return{saveQuery:!1};if(yw.maximum||x.length===w.maximum.toString().length;return{sectionValue:U6(a,o,y,w,g),shouldGoToNextSection:C}};return c(m,(x,g)=>{if(g.contentType==="digit"||g.contentType==="digit-with-letter")return b(x,g);if(g.type==="month"){const y=G6(a,o,"digit","month","MM"),w=b(x,{type:g.type,format:"MM",hasLeadingZerosInFormat:y,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(qc(w))return w;const C=tM(a,w.sectionValue,"MM",g.format);return T({},w,{sectionValue:C})}if(g.type==="weekDay"){const y=b(x,g);if(qc(y))return y;const w=B0(a,o,g.format)[Number(y.sectionValue)-1];return T({},y,{sectionValue:w})}return{saveQuery:!1}},x=>!Number.isNaN(Number(x)))};return{applyCharacterEditing:mt(m=>{const b=e[m.sectionIndex],x=!Number.isNaN(Number(m.keyPressed))?f(m):u(m);x==null?r(null):t({activeSection:b,newSectionValue:x.sectionValue,shouldGoToNextSection:x.shouldGoToNextSection})}),resetCharacterQuery:l}};function nu(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const ADe=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},Fg=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?Fg(t.shadowRoot):t:null},j2="@media (pointer: fine)",NDe=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],L2=e=>{const t=qt(),{state:n,selectedSectionIndexes:r,setSelectedSections:o,clearValue:a,clearActiveSection:i,updateSectionValue:s,updateValueFromValueStr:l,setTempAndroidValueStr:c,sectionsValueBoundaries:u,placeholder:f,timezone:p}=DDe(e),{inputRef:m,internalProps:b,internalProps:{readOnly:v=!1,unstableFieldRef:x,minutesStep:g},forwardedProps:{onClick:y,onKeyDown:w,onFocus:C,onBlur:_,onMouseUp:$,onPaste:E,error:k,clearable:I,onClear:R,disabled:F},fieldValueManager:U,valueManager:G,validator:B}=e,z=Oe(e.forwardedProps,NDe),{applyCharacterEditing:Y,resetCharacterQuery:Q}=IDe({sections:n.sections,updateSectionValue:s,sectionsValueBoundaries:u,setTempAndroidValueStr:c,timezone:p}),H=S.useRef(null),J=sn(m,H),X=S.useRef(void 0),K=nr().direction==="rtl",q=S.useMemo(()=>JRe(n.sections,K),[n.sections,K]),D=()=>{var be;if(v){o(null);return}const we=(be=H.current.selectionStart)!=null?be:0;let Ce;we<=n.sections[0].startInInput||we>=n.sections[n.sections.length-1].endInInput?Ce=1:Ce=n.sections.findIndex(rt=>rt.startInInput-rt.startSeparator.length>we);const qe=Ce===-1?n.sections.length-1:Ce-1;o(qe)},N=mt((be,...we)=>{be.isDefaultPrevented()||(y==null||y(be,...we),D())}),V=mt(be=>{$==null||$(be),be.preventDefault()}),Z=mt((...be)=>{C==null||C(...be);const we=H.current;window.clearTimeout(X.current),X.current=setTimeout(()=>{!we||we!==H.current||r!=null||v||(we.value.length&&Number(we.selectionEnd)-Number(we.selectionStart)===we.value.length?o("all"):D())})}),re=mt((...be)=>{_==null||_(...be),o(null)}),le=mt(be=>{if(E==null||E(be),v){be.preventDefault();return}const we=be.clipboardData.getData("text");if(r&&r.startIndex===r.endIndex){const Ce=n.sections[r.startIndex],qe=/^[a-zA-Z]+$/.test(we),rt=/^[0-9]+$/.test(we),Ae=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(we);if(Ce.contentType==="letter"&&qe||Ce.contentType==="digit"&&rt||Ce.contentType==="digit-with-letter"&&Ae)return;if(qe||rt){be.preventDefault();return}}be.preventDefault(),Q(),l(we)}),xe=mt(be=>{if(v)return;const we=be.target.value,Ce=be.nativeEvent.data,qe=Ce&&Ce.length>1,rt=qe?Ce:we,Ae=gu(rt);if(r==null||qe){l(qe?Ce:Ae);return}let Le;if(r.startIndex===0&&r.endIndex===n.sections.length-1&&Ae.length===1)Le=Ae;else{const Fe=gu(U.getValueStrFromSections(n.sections,K));let Pe=-1,Te=-1;for(let Ne=0;Neit.end)return;const gt=Ae.length-Fe.length+it.end-gu(it.endSeparator||"").length;Le=Ae.slice(it.start+gu(it.startSeparator||"").length,gt)}if(KRe()&&Le.length===0){c(rt);return}Y({keyPressed:Le,sectionIndex:r.startIndex})}),fe=mt(be=>{switch(w==null||w(be),!0){case(be.key==="a"&&(be.ctrlKey||be.metaKey)):{be.preventDefault(),o("all");break}case be.key==="ArrowRight":{if(be.preventDefault(),r==null)o(q.startIndex);else if(r.startIndex!==r.endIndex)o(r.endIndex);else{const we=q.neighbors[r.startIndex].rightIndex;we!==null&&o(we)}break}case be.key==="ArrowLeft":{if(be.preventDefault(),r==null)o(q.endIndex);else if(r.startIndex!==r.endIndex)o(r.startIndex);else{const we=q.neighbors[r.startIndex].leftIndex;we!==null&&o(we)}break}case["Backspace","Delete"].includes(be.key):{if(be.preventDefault(),v)break;r==null||r.startIndex===0&&r.endIndex===n.sections.length-1?a():i(),Q();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(be.key):{if(be.preventDefault(),v||r==null)break;const we=n.sections[r.startIndex],Ce=U.getActiveDateManager(t,n,we),qe=VRe(t,p,we,be.key,u,Ce.date,{minutesStep:g});s({activeSection:we,newSectionValue:qe,shouldGoToNextSection:!1});break}}});Kn(()=>{if(!H.current)return;if(r==null){H.current.scrollLeft&&(H.current.scrollLeft=0);return}const be=n.sections[r.startIndex],we=n.sections[r.endIndex];let Ce=be.startInInput,qe=we.endInInput;if(r.shouldSelectBoundarySelectors&&(Ce-=be.startSeparator.length,qe+=we.endSeparator.length),Ce!==H.current.selectionStart||qe!==H.current.selectionEnd){const rt=H.current.scrollTop;H.current===Fg(document)&&H.current.setSelectionRange(Ce,qe),H.current.scrollTop=rt}});const ge=K6(T({},b,{value:n.value,timezone:p}),B,G.isSameError,G.defaultErrorState),he=S.useMemo(()=>k!==void 0?k:G.hasError(ge),[G,ge,k]);S.useEffect(()=>{!he&&!r&&Q()},[n.referenceValue,r,he]),S.useEffect(()=>(H.current&&H.current===document.activeElement&&o("all"),()=>window.clearTimeout(X.current)),[]),S.useEffect(()=>{n.tempValueStrAndroid!=null&&r!=null&&(Q(),i())},[n.tempValueStrAndroid]);const _e=S.useMemo(()=>{var be;return(be=n.tempValueStrAndroid)!=null?be:U.getValueStrFromSections(n.sections,K)},[n.sections,U,n.tempValueStrAndroid,K]),ve=S.useMemo(()=>r==null||n.sections[r.startIndex].contentType==="letter"?"text":"numeric",[r,n.sections]),Be=H.current&&H.current===Fg(document),Ue=G.areValuesEqual(t,n.value,G.emptyValue),ze=!Be&&Ue;S.useImperativeHandle(x,()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var be,we;const Ce=(be=H.current.selectionStart)!=null?be:0,qe=(we=H.current.selectionEnd)!=null?we:0;if(Ce===0&&qe===0)return null;const rt=Ce<=n.sections[0].startInInput?1:n.sections.findIndex(Ae=>Ae.startInInput-Ae.startSeparator.length>Ce);return rt===-1?n.sections.length-1:rt-1},setSelectedSections:be=>o(be)}));const He=mt((be,...we)=>{var Ce;be.preventDefault(),R==null||R(be,...we),a(),H==null||(Ce=H.current)==null||Ce.focus(),o(0)});return T({placeholder:f,autoComplete:"off",disabled:!!F},z,{value:ze?"":_e,inputMode:ve,readOnly:v,onClick:N,onFocus:Z,onBlur:re,onPaste:le,onChange:xe,onKeyDown:fe,onMouseUp:V,onClear:He,error:he,ref:J,clearable:!!(I&&!Ue&&!v&&!F)})},xh=({props:e,value:t,adapter:n})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:o,shouldDisableYear:a,disablePast:i,disableFuture:s,timezone:l}=e,c=n.utils.dateWithTimezone(void 0,l),u=Yr(n.utils,e.minDate,n.defaultDates.minDate),f=Yr(n.utils,e.maxDate,n.defaultDates.maxDate);switch(!0){case!n.utils.isValid(t):return"invalidDate";case!!(r&&r(t)):return"shouldDisableDate";case!!(o&&o(t)):return"shouldDisableMonth";case!!(a&&a(t)):return"shouldDisableYear";case!!(s&&n.utils.isAfterDay(t,c)):return"disableFuture";case!!(i&&n.utils.isBeforeDay(t,c)):return"disablePast";case!!(u&&n.utils.isBeforeDay(t,u)):return"minDate";case!!(f&&n.utils.isAfterDay(t,f)):return"maxDate";default:return null}},gC=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],yC=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],J6=["minDateTime","maxDateTime"],jDe=[...gC,...yC,...J6],_d=e=>jDe.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),LDe=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],F2=(e,t)=>{const n=T({},e),r={},o=a=>{n.hasOwnProperty(a)&&(r[a]=n[a],delete n[a])};return LDe.forEach(o),t==="date"?gC.forEach(o):t==="time"?yC.forEach(o):t==="date-time"&&(gC.forEach(o),yC.forEach(o),J6.forEach(o)),{forwardedProps:n,internalProps:r}},FDe=e=>{var t,n,r;const o=qt(),a=yc();return T({},e,{disablePast:(t=e.disablePast)!=null?t:!1,disableFuture:(n=e.disableFuture)!=null?n:!1,format:(r=e.format)!=null?r:o.formats.keyboardDate,minDate:Yr(o,e.minDate,a.minDate),maxDate:Yr(o,e.maxDate,a.maxDate)})},zDe=({props:e,inputRef:t})=>{const n=FDe(e),{forwardedProps:r,internalProps:o}=F2(n,"date");return L2({inputRef:t,forwardedProps:r,internalProps:o,valueManager:$r,fieldValueManager:A2,validator:xh,valueType:"date"})},BDe=de(E0)({[`& .${Kf.container}`]:{outline:0},[`& .${Kf.paper}`]:{outline:0,minWidth:L0}}),VDe=de(T0)({"&:first-of-type":{padding:0}});function UDe(e){var t,n;const{children:r,onDismiss:o,open:a,slots:i,slotProps:s}=e,l=(t=i==null?void 0:i.dialog)!=null?t:BDe,c=(n=i==null?void 0:i.mobileTransition)!=null?n:Cd;return O.jsx(l,T({open:a,onClose:o},s==null?void 0:s.dialog,{TransitionComponent:c,TransitionProps:s==null?void 0:s.mobileTransition,PaperComponent:i==null?void 0:i.mobilePaper,PaperProps:s==null?void 0:s.mobilePaper,children:O.jsx(VDe,{children:r})}))}function WDe(e){return et("MuiPickersPopper",e)}Qe("MuiPickersPopper",["root","paper"]);const HDe="@media (prefers-reduced-motion: reduce)",Ru=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),iM=Ru&&Ru[1]?parseInt(Ru[1],10):null,sM=Ru&&Ru[2]?parseInt(Ru[2],10):null,GDe=iM&&iM<10||sM&&sM<13||!1,Z6=()=>ph(HDe,{defaultMatches:!1})||GDe,qDe=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],YDe=e=>{const{classes:t}=e;return Xe({root:["root"],paper:["paper"]},WDe,t)},KDe=de(dh,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),JDe=de(ls,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>T({outline:0,transformOrigin:"top center"},e.placement.includes("top")&&{transformOrigin:"bottom center"}));function ZDe(e,t){return t.documentElement.clientWidth{if(!e)return;function l(){a.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),a.current=!1}},[e]);const i=mt(l=>{if(!a.current)return;const c=r.current;r.current=!1;const u=zn(o.current);if(!o.current||"clientX"in l&&ZDe(l,u))return;if(n.current){n.current=!1;return}let f;l.composedPath?f=l.composedPath().indexOf(o.current)>-1:f=!u.documentElement.contains(l.target)||o.current.contains(l.target),!f&&!c&&t(l)}),s=()=>{r.current=!0};return S.useEffect(()=>{if(e){const l=zn(o.current),c=()=>{n.current=!0};return l.addEventListener("touchstart",i),l.addEventListener("touchmove",c),()=>{l.removeEventListener("touchstart",i),l.removeEventListener("touchmove",c)}}},[e,i]),S.useEffect(()=>{if(e){const l=zn(o.current);return l.addEventListener("click",i),()=>{l.removeEventListener("click",i),r.current=!1}}},[e,i]),[o,s,s]}const QDe=S.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:a,paperSlotProps:i,paperClasses:s,onPaperClick:l,onPaperTouchStart:c}=e,u=Oe(e,qDe),f=T({},o,{placement:r}),p=zt({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:s,ownerState:f});return O.jsx(n,T({},u,p,{onClick:m=>{var b;l(m),(b=p.onClick)==null||b.call(p,m)},onTouchStart:m=>{var b;c(m),(b=p.onTouchStart)==null||b.call(p,m)},ownerState:f,children:a}))});function eMe(e){var t,n,r,o;const a=Ke({props:e,name:"MuiPickersPopper"}),{anchorEl:i,children:s,containerRef:l=null,shouldRestoreFocus:c,onBlur:u,onDismiss:f,open:p,role:m,placement:b,slots:v,slotProps:x,reduceAnimations:g}=a;S.useEffect(()=>{function J(X){p&&(X.key==="Escape"||X.key==="Esc")&&f()}return document.addEventListener("keydown",J),()=>{document.removeEventListener("keydown",J)}},[f,p]);const y=S.useRef(null);S.useEffect(()=>{m==="tooltip"||c&&!c()||(p?y.current=Fg(document):y.current&&y.current instanceof HTMLElement&&setTimeout(()=>{y.current instanceof HTMLElement&&y.current.focus()}))},[p,m,c]);const[w,C,_]=XDe(p,u??f),$=S.useRef(null),E=sn($,l),k=sn(E,w),I=a,R=YDe(I),F=Z6(),U=g??F,G=J=>{J.key==="Escape"&&(J.stopPropagation(),f())},B=((t=v==null?void 0:v.desktopTransition)!=null?t:U)?Cd:Ag,z=(n=v==null?void 0:v.desktopTrapFocus)!=null?n:Rj,Y=(r=v==null?void 0:v.desktopPaper)!=null?r:JDe,Q=(o=v==null?void 0:v.popper)!=null?o:KDe,H=zt({elementType:Q,externalSlotProps:x==null?void 0:x.popper,additionalProps:{transition:!0,role:m,open:p,anchorEl:i,placement:b,onKeyDown:G},className:R.root,ownerState:a});return O.jsx(Q,T({},H,{children:({TransitionProps:J,placement:X})=>O.jsx(z,T({open:p,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:m==="tooltip",isEnabled:()=>!0},x==null?void 0:x.desktopTrapFocus,{children:O.jsx(B,T({},J,x==null?void 0:x.desktopTransition,{children:O.jsx(QDe,{PaperComponent:Y,ownerState:I,popperPlacement:X,ref:k,onPaperClick:C,onPaperTouchStart:_,paperClasses:R.paper,paperSlotProps:x==null?void 0:x.desktopPaper,children:s})}))}))}))}function X6(e){return et("MuiPickersToolbar",e)}Qe("MuiPickersToolbar",["root","content"]);const tMe=e=>{const{classes:t,isLandscape:n}=e;return Xe({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},X6,t)},nMe=de("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>T({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),rMe=de("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>{var t;return{display:"flex",flexWrap:"wrap",width:"100%",justifyContent:e.isLandscape?"flex-start":"space-between",flexDirection:e.isLandscape?(t=e.landscapeDirection)!=null?t:"column":"row",flex:1,alignItems:e.isLandscape?"flex-start":"center"}}),z2=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiPickersToolbar"}),{children:o,className:a,toolbarTitle:i,hidden:s,titleId:l}=r,c=r,u=tMe(c);return s?null:O.jsxs(nMe,{ref:n,className:Ie(u.root,a),ownerState:c,children:[O.jsx(gn,{color:"text.secondary",variant:"overline",id:l,children:i}),O.jsx(rMe,{className:u.content,ownerState:c,children:o})]})});function oMe(e){return et("MuiPickersToolbarText",e)}const lM=Qe("MuiPickersToolbarText",["root","selected"]),aMe=["className","selected","value"],iMe=e=>{const{classes:t,selected:n}=e;return Xe({root:["root",n&&"selected"]},oMe,t)},sMe=de(gn,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${lM.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${lM.selected}`]:{color:(e.vars||e).palette.text.primary}})),B2=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiPickersToolbarText"}),{className:o,value:a}=r,i=Oe(r,aMe),s=iMe(r);return O.jsx(sMe,T({ref:n,className:Ie(o,s.root),component:"span"},i,{children:a}))}),lMe=["align","className","selected","typographyClassName","value","variant","width"],cMe=e=>{const{classes:t}=e;return Xe({root:["root"]},X6,t)},uMe=de(Uo,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),Lo=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiPickersToolbarButton"}),{align:o,className:a,selected:i,typographyClassName:s,value:l,variant:c,width:u}=r,f=Oe(r,lMe),p=cMe(r);return O.jsx(uMe,T({variant:"text",ref:n,className:Ie(a,p.root)},u?{sx:{width:u}}:{},f,{children:O.jsx(B2,{align:o,className:s,variant:c,value:l,selected:i})}))}),dMe=({open:e,onOpen:t,onClose:n})=>{const r=S.useRef(typeof e=="boolean").current,[o,a]=S.useState(!1);S.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");a(e)}},[r,e]);const i=S.useCallback(s=>{r||a(s),s&&t&&t(),!s&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:i}},fMe=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o}=e,a=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?a?!0:n(r.lastPublishedValue):!1},pMe=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:a}=e,i=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?i&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&a?i?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},hMe=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},mMe=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:a,onChange:i,value:s,defaultValue:l,closeOnSelect:c=r==="desktop",selectedSections:u,onSelectedSectionsChange:f,timezone:p}=e,{current:m}=S.useRef(l),{current:b}=S.useRef(s!==void 0),v=qt(),x=gc(),[g,y]=Cr({controlled:u,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:w,setIsOpen:C}=dMe(e),[_,$]=S.useState(()=>{let Z;return s!==void 0?Z=s:m!==void 0?Z=m:Z=t.emptyValue,{draft:Z,lastPublishedValue:Z,lastCommittedValue:Z,lastControlledValue:s,hasBeenModifiedSinceMount:!1}}),{timezone:E,handleValueChange:k}=M2({timezone:p,value:s,defaultValue:m,onChange:i,valueManager:t});K6(T({},e,{value:_.draft,timezone:E}),o,t.isSameError,t.defaultErrorState);const I=mt(Z=>{const re={action:Z,dateState:_,hasChanged:ge=>!t.areValuesEqual(v,Z.value,ge),isControlled:b,closeOnSelect:c},le=fMe(re),xe=pMe(re),fe=hMe(re);if($(ge=>T({},ge,{draft:Z.value,lastPublishedValue:le?Z.value:ge.lastPublishedValue,lastCommittedValue:xe?Z.value:ge.lastCommittedValue,hasBeenModifiedSinceMount:!0})),le){const he={validationError:Z.name==="setValueFromField"?Z.context.validationError:o({adapter:x,value:Z.value,props:T({},e,{value:Z.value,timezone:E})})};Z.name==="setValueFromShortcut"&&Z.shortcut!=null&&(he.shortcut=Z.shortcut),k(Z.value,he)}xe&&a&&a(Z.value),fe&&C(!1)});if(s!==void 0&&(_.lastControlledValue===void 0||!t.areValuesEqual(v,_.lastControlledValue,s))){const Z=t.areValuesEqual(v,_.draft,s);$(re=>T({},re,{lastControlledValue:s},Z?{}:{lastCommittedValue:s,lastPublishedValue:s,draft:s,hasBeenModifiedSinceMount:!0}))}const R=mt(()=>{I({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),F=mt(()=>{I({value:_.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),U=mt(()=>{I({value:_.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),G=mt(()=>{I({value:_.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),B=mt(()=>{I({value:t.getTodayValue(v,E,n),name:"setValueFromAction",pickerAction:"today"})}),z=mt(()=>C(!0)),Y=mt(()=>C(!1)),Q=mt((Z,re="partial")=>I({name:"setValueFromView",value:Z,selectionState:re})),H=mt((Z,re,le)=>I({name:"setValueFromShortcut",value:Z,changeImportance:re??"accept",shortcut:le})),J=mt((Z,re)=>I({name:"setValueFromField",value:Z,context:re})),X=mt(Z=>{y(Z),f==null||f(Z)}),L={onClear:R,onAccept:F,onDismiss:U,onCancel:G,onSetToday:B,onOpen:z,onClose:Y},K={value:_.draft,onChange:J,selectedSections:g,onSelectedSectionsChange:X},q=S.useMemo(()=>t.cleanValue(v,_.draft),[v,t,_.draft]),D={value:q,onChange:Q,onClose:Y,open:w,onSelectedSectionsChange:X},V=T({},L,{value:q,onChange:Q,onSelectShortcut:H,isValid:Z=>{const re=o({adapter:x,value:Z,props:T({},e,{value:Z,timezone:E})});return!t.hasError(re)}});return{open:w,fieldProps:K,viewProps:D,layoutProps:V,actions:L}},vMe=["className","sx"],gMe=({props:e,propsFromPickerValue:t,additionalViewProps:n,inputRef:r,autoFocusView:o})=>{const{onChange:a,open:i,onSelectedSectionsChange:s,onClose:l}=t,{views:c,openTo:u,onViewChange:f,disableOpenPicker:p,viewRenderers:m,timezone:b}=e,v=Oe(e,vMe),{view:x,setView:g,defaultView:y,focusedView:w,setFocusedView:C,setValueAndGoToNextView:_}=yh({view:void 0,views:c,openTo:u,onChange:a,onViewChange:f,autoFocus:o}),{hasUIView:$,viewModeLookup:E}=S.useMemo(()=>c.reduce((B,z)=>{let Y;return p?Y="field":m[z]!=null?Y="UI":Y="field",B.viewModeLookup[z]=Y,Y==="UI"&&(B.hasUIView=!0),B},{hasUIView:!1,viewModeLookup:{}}),[p,m,c]),k=S.useMemo(()=>c.reduce((B,z)=>m[z]!=null&&Ju(z)?B+1:B,0),[m,c]),I=E[x],R=mt(()=>I==="UI"),[F,U]=S.useState(I==="UI"?x:null);return F!==x&&E[x]==="UI"&&U(x),Kn(()=>{I==="field"&&i&&(l(),setTimeout(()=>{r==null||r.current.focus(),s(x)}))},[x]),Kn(()=>{if(!i)return;let B=x;I==="field"&&F!=null&&(B=F),B!==y&&E[B]==="UI"&&E[y]==="UI"&&(B=y),B!==x&&g(B),C(B,!0)},[i]),{hasUIView:$,shouldRestoreFocus:R,layoutProps:{views:c,view:F,onViewChange:g},renderCurrentView:()=>{if(F==null)return null;const B=m[F];return B==null?null:B(T({},v,n,t,{views:c,timezone:b,onChange:_,view:F,onViewChange:g,focusedView:w,onFocusedViewChange:C,showViewSwitcher:k>1,timeViewsCount:k}))}}};function cM(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const yMe=(e,t)=>{const[n,r]=S.useState(cM);return Kn(()=>{const a=()=>{r(cM())};return window.addEventListener("orientationchange",a),()=>{window.removeEventListener("orientationchange",a)}},[]),nu(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},bMe=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,a=yMe(n.views,o);return{layoutProps:T({},n,t,{isLandscape:a,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},Q6=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(` +`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}};Q6(["The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const eL=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:o,additionalViewProps:a,validator:i,autoFocusView:s})=>{const l=mMe({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i}),c=gMe({props:e,inputRef:o,additionalViewProps:a,autoFocusView:s,propsFromPickerValue:l.viewProps}),u=bMe({props:e,wrapperVariant:r,propsFromPickerValue:l.layoutProps,propsFromPickerViews:c.layoutProps});return{open:l.open,actions:l.actions,fieldProps:l.fieldProps,renderCurrentView:c.renderCurrentView,hasUIView:c.hasUIView,shouldRestoreFocus:c.shouldRestoreFocus,layoutProps:u.layoutProps}};function tL(e){return et("MuiPickersLayout",e)}const Sx=Qe("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","shortcuts"]),xMe=["onAccept","onClear","onCancel","onSetToday","actions"];function wMe(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:a}=e,i=Oe(e,xMe),s=_r();if(a==null||a.length===0)return null;const l=a==null?void 0:a.map(c=>{switch(c){case"clear":return O.jsx(Uo,{onClick:n,children:s.clearButtonLabel},c);case"cancel":return O.jsx(Uo,{onClick:r,children:s.cancelButtonLabel},c);case"accept":return O.jsx(Uo,{onClick:t,children:s.okButtonLabel},c);case"today":return O.jsx(Uo,{onClick:o,children:s.todayButtonLabel},c);default:return null}});return O.jsx(P0,T({},i,{children:l}))}const CMe=["items","changeImportance","isLandscape","onChange","isValid"],$Me=["getValue"];function SMe(e){const{items:t,changeImportance:n,onChange:r,isValid:o}=e,a=Oe(e,CMe);if(t==null||t.length===0)return null;const i=t.map(s=>{let{getValue:l}=s,c=Oe(s,$Me);const u=l({isValid:o});return{label:c.label,onClick:()=>{r(u,n,c)},disabled:!o(u)}});return O.jsx(g2,T({dense:!0,sx:[{maxHeight:F0,maxWidth:200,overflow:"auto"},...Array.isArray(a.sx)?a.sx:[a.sx]]},a,{children:i.map(s=>O.jsx(c6,{children:O.jsx(Wj,T({},s))},s.label))}))}function _Me(e){return e.view!==null}const EMe=e=>{const{classes:t,isLandscape:n}=e;return Xe({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},tL,t)},PMe=e=>{var t,n;const{wrapperVariant:r,onAccept:o,onClear:a,onCancel:i,onSetToday:s,view:l,views:c,onViewChange:u,value:f,onChange:p,onSelectShortcut:m,isValid:b,isLandscape:v,disabled:x,readOnly:g,children:y,components:w,componentsProps:C,slots:_,slotProps:$}=e,E=_??bh(w),k=$??C,I=EMe(e),R=(t=E==null?void 0:E.actionBar)!=null?t:wMe,F=zt({elementType:R,externalSlotProps:k==null?void 0:k.actionBar,additionalProps:{onAccept:o,onClear:a,onCancel:i,onSetToday:s,actions:r==="desktop"?[]:["cancel","accept"],className:I.actionBar},ownerState:T({},e,{wrapperVariant:r})}),U=O.jsx(R,T({},F)),G=E==null?void 0:E.toolbar,B=zt({elementType:G,externalSlotProps:k==null?void 0:k.toolbar,additionalProps:{isLandscape:v,onChange:p,value:f,view:l,onViewChange:u,views:c,disabled:x,readOnly:g,className:I.toolbar},ownerState:T({},e,{wrapperVariant:r})}),z=_Me(B)&&G?O.jsx(G,T({},B)):null,Y=y,Q=E==null?void 0:E.tabs,H=l&&Q?O.jsx(Q,T({view:l,onViewChange:u},k==null?void 0:k.tabs)):null,J=(n=E==null?void 0:E.shortcuts)!=null?n:SMe,X=zt({elementType:J,externalSlotProps:k==null?void 0:k.shortcuts,additionalProps:{isValid:b,isLandscape:v,onChange:m,className:I.shortcuts},ownerState:{isValid:b,isLandscape:v,onChange:m,className:I.shortcuts,wrapperVariant:r}}),L=l&&J?O.jsx(J,T({},X)):null;return{toolbar:z,content:Y,tabs:H,actionBar:U,shortcuts:L}},TMe=PMe,kMe=e=>{const{isLandscape:t,classes:n}=e;return Xe({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},tL,n)},nL=de("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Sx.toolbar}`]:t.isLandscape?{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${Sx.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${Sx.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));nL.propTypes={as:j.elementType,ownerState:j.shape({isLandscape:j.bool.isRequired}).isRequired,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object])};const OMe=de("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),rL=function(t){const n=Ke({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:o,tabs:a,actionBar:i,shortcuts:s}=TMe(n),{sx:l,className:c,isLandscape:u,ref:f,wrapperVariant:p}=n,m=n,b=kMe(m);return O.jsxs(nL,{ref:f,sx:l,className:Ie(c,b.root),ownerState:m,children:[u?s:r,u?r:s,O.jsx(OMe,{className:b.contentWrapper,children:p==="desktop"?O.jsxs(S.Fragment,{children:[o,a]}):O.jsxs(S.Fragment,{children:[a,o]})}),i]})},V0=({adapter:e,value:t,props:n})=>{if(t===null)return null;const{minTime:r,maxTime:o,minutesStep:a,shouldDisableClock:i,shouldDisableTime:s,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:c,disableFuture:u,timezone:f}=n,p=e.utils.dateWithTimezone(void 0,f),m=gh(l,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(r&&m(r,t)):return"minTime";case!!(o&&m(t,o)):return"maxTime";case!!(u&&e.utils.isAfter(t,p)):return"disableFuture";case!!(c&&e.utils.isBefore(t,p)):return"disablePast";case!!(s&&s(t,"hours")):return"shouldDisableTime-hours";case!!(s&&s(t,"minutes")):return"shouldDisableTime-minutes";case!!(s&&s(t,"seconds")):return"shouldDisableTime-seconds";case!!(i&&i(e.utils.getHours(t),"hours")):return"shouldDisableClock-hours";case!!(i&&i(e.utils.getMinutes(t),"minutes")):return"shouldDisableClock-minutes";case!!(i&&i(e.utils.getSeconds(t),"seconds")):return"shouldDisableClock-seconds";case!!(a&&e.utils.getMinutes(t)%a!==0):return"minutesStep";default:return null}},V2=({props:e,value:t,adapter:n})=>{const r=xh({adapter:n,value:t,props:e});return r!==null?r:V0({adapter:n,value:t,props:e})},RMe=e=>et("MuiPickersSlideTransition",e),ca=Qe("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),DMe=["children","className","reduceAnimations","slideDirection","transKey","classes"],MMe=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Xe(r,RMe,t)},IMe=de(r2,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${ca["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${ca["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${ca.slideEnterActive}`]:t.slideEnterActive},{[`.${ca.slideExit}`]:t.slideExit},{[`.${ca["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${ca["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${ca["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${ca["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${ca.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${ca.slideExit}`]:{transform:"translate(0%)"},[`& .${ca["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${ca["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function AMe(e){const t=Ke({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:a}=t,i=Oe(t,DMe),s=MMe(t),l=nr();if(o)return O.jsx("div",{className:Ie(s.root,r),children:n});const c={exit:s.exit,enterActive:s.enterActive,enter:s.enter,exitActive:s.exitActive};return O.jsx(IMe,{className:Ie(s.root,r),childFactory:u=>S.cloneElement(u,{classNames:c}),role:"presentation",children:O.jsx(i0e,T({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},i,{children:n}),a)})}const oL=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:a,disablePast:i,timezone:s})=>{const l=gc();return S.useCallback(c=>xh({adapter:l,value:c,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:a,disablePast:i,timezone:s}})!==null,[l,e,t,n,r,o,a,i,s])},NMe=e=>et("MuiDayCalendar",e);Qe("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const jMe=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],LMe=["ownerState"],FMe=e=>{const{classes:t}=e;return Xe({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},NMe,t)},aL=(Op+j0*2)*6,zMe=de("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),BMe=de("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),VMe=de(gn,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),UMe=de(gn,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),WMe=de(gn,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>T({},e.typography.caption,{width:Op,height:Op,padding:0,margin:`0 ${j0}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),HMe=de("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:aL}),GMe=de(AMe,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:aL}),qMe=de("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),YMe=de("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${j0}px 0`,display:"flex",justifyContent:"center"});function KMe(e){var t,n,r;let{parentProps:o,day:a,focusableDay:i,selectedDays:s,isDateDisabled:l,currentMonthNumber:c,isViewFocused:u}=e,f=Oe(e,jMe);const{disabled:p,disableHighlightToday:m,isMonthSwitchingAnimating:b,showDaysOutsideCurrentMonth:v,components:x,componentsProps:g,slots:y,slotProps:w,timezone:C}=o,_=qt(),$=cl(C),E=i!==null&&_.isSameDay(a,i),k=s.some(Q=>_.isSameDay(Q,a)),I=_.isSameDay(a,$),R=(t=(n=y==null?void 0:y.day)!=null?n:x==null?void 0:x.Day)!=null?t:RDe,F=zt({elementType:R,externalSlotProps:(r=w==null?void 0:w.day)!=null?r:g==null?void 0:g.day,additionalProps:T({disableHighlightToday:m,showDaysOutsideCurrentMonth:v,role:"gridcell",isAnimating:b,"data-timestamp":_.toJsDate(a).valueOf()},f),ownerState:T({},o,{day:a,selected:k})}),U=Oe(F,LMe),G=S.useMemo(()=>p||l(a),[p,l,a]),B=S.useMemo(()=>_.getMonth(a)!==c,[_,a,c]),z=S.useMemo(()=>{const Q=_.startOfMonth(_.setMonth(a,c));return v?_.isSameDay(a,_.startOfWeek(Q)):_.isSameDay(a,Q)},[c,a,v,_]),Y=S.useMemo(()=>{const Q=_.endOfMonth(_.setMonth(a,c));return v?_.isSameDay(a,_.endOfWeek(Q)):_.isSameDay(a,Q)},[c,a,v,_]);return O.jsx(R,T({},U,{day:a,disabled:G,autoFocus:u&&E,today:I,outsideCurrentMonth:B,isFirstVisibleCell:z,isLastVisibleCell:Y,selected:k,tabIndex:E?0:-1,"aria-selected":k,"aria-current":I?"date":void 0}))}function JMe(e){const t=Ke({props:e,name:"MuiDayCalendar"}),{onFocusedDayChange:n,className:r,currentMonth:o,selectedDays:a,focusedDay:i,loading:s,onSelectedDaysChange:l,onMonthSwitchingAnimationEnd:c,readOnly:u,reduceAnimations:f,renderLoading:p=()=>O.jsx("span",{children:"..."}),slideDirection:m,TransitionProps:b,disablePast:v,disableFuture:x,minDate:g,maxDate:y,shouldDisableDate:w,shouldDisableMonth:C,shouldDisableYear:_,dayOfWeekFormatter:$,hasFocus:E,onFocusedViewChange:k,gridLabelId:I,displayWeekNumber:R,fixedWeekNumber:F,autoFocus:U,timezone:G}=t,B=cl(G),z=qt(),Y=FMe(t),H=nr().direction==="rtl",J=$||((ze,He)=>z.format(He,"weekdayShort").charAt(0).toUpperCase()),X=oL({shouldDisableDate:w,shouldDisableMonth:C,shouldDisableYear:_,minDate:g,maxDate:y,disablePast:v,disableFuture:x,timezone:G}),L=_r(),[K,q]=Cr({name:"DayCalendar",state:"hasFocus",controlled:E,default:U??!1}),[D,N]=S.useState(()=>i||B),V=mt(ze=>{u||l(ze)}),Z=ze=>{X(ze)||(n(ze),N(ze),k==null||k(!0),q(!0))},re=mt((ze,He)=>{switch(ze.key){case"ArrowUp":Z(z.addDays(He,-7)),ze.preventDefault();break;case"ArrowDown":Z(z.addDays(He,7)),ze.preventDefault();break;case"ArrowLeft":{const be=z.addDays(He,H?1:-1),we=z.addMonths(He,H?1:-1),Ce=Zf({utils:z,date:be,minDate:H?be:z.startOfMonth(we),maxDate:H?z.endOfMonth(we):be,isDateDisabled:X,timezone:G});Z(Ce||be),ze.preventDefault();break}case"ArrowRight":{const be=z.addDays(He,H?-1:1),we=z.addMonths(He,H?-1:1),Ce=Zf({utils:z,date:be,minDate:H?z.startOfMonth(we):be,maxDate:H?be:z.endOfMonth(we),isDateDisabled:X,timezone:G});Z(Ce||be),ze.preventDefault();break}case"Home":Z(z.startOfWeek(He)),ze.preventDefault();break;case"End":Z(z.endOfWeek(He)),ze.preventDefault();break;case"PageUp":Z(z.addMonths(He,1)),ze.preventDefault();break;case"PageDown":Z(z.addMonths(He,-1)),ze.preventDefault();break}}),le=mt((ze,He)=>Z(He)),xe=mt((ze,He)=>{K&&z.isSameDay(D,He)&&(k==null||k(!1))}),fe=z.getMonth(o),ge=S.useMemo(()=>a.filter(ze=>!!ze).map(ze=>z.startOfDay(ze)),[z,a]),he=fe,_e=S.useMemo(()=>S.createRef(),[he]),ve=z.startOfWeek(B),Be=S.useMemo(()=>{const ze=z.startOfMonth(o),He=z.endOfMonth(o);return X(D)||z.isAfterDay(D,He)||z.isBeforeDay(D,ze)?Zf({utils:z,date:D,minDate:ze,maxDate:He,disablePast:v,disableFuture:x,isDateDisabled:X,timezone:G}):D},[o,x,v,D,X,z,G]),Ue=S.useMemo(()=>{const ze=z.setTimezone(o,G),He=z.getWeekArray(ze);let be=z.addMonths(ze,1);for(;F&&He.length{He.length{var be;const we=z.format(ze,"weekdayShort").slice(0,2);return O.jsx(VMe,{variant:"caption",role:"columnheader","aria-label":z.format(z.addDays(ve,He),"weekday"),className:Y.weekDayLabel,children:(be=J==null?void 0:J(we,ze))!=null?be:we},we+He.toString())})]}),s?O.jsx(HMe,{className:Y.loadingContainer,children:p()}):O.jsx(GMe,T({transKey:he,onExited:c,reduceAnimations:f,slideDirection:m,className:Ie(r,Y.slideTransition)},b,{nodeRef:_e,children:O.jsx(qMe,{ref:_e,role:"rowgroup",className:Y.monthContainer,children:Ue.map((ze,He)=>O.jsxs(YMe,{role:"row",className:Y.weekContainer,"aria-rowindex":He+1,children:[R&&O.jsx(WMe,{className:Y.weekNumber,role:"rowheader","aria-label":L.calendarWeekNumberAriaLabelText(z.getWeekNumber(ze[0])),children:L.calendarWeekNumberText(z.getWeekNumber(ze[0]))}),ze.map((be,we)=>O.jsx(KMe,{parentProps:t,day:be,selectedDays:ge,focusableDay:Be,onKeyDown:re,onFocus:le,onBlur:xe,onDaySelect:V,isDateDisabled:X,currentMonthNumber:fe,isViewFocused:K,"aria-colindex":we+1},be.toString()))]},`week-${ze[0]}`))})}))]})}const ZMe=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return T({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return T({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const a=o.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return T({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:a&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:a?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},XMe=e=>{const{value:t,referenceDate:n,defaultCalendarMonth:r,disableFuture:o,disablePast:a,disableSwitchToMonthOnDayFocus:i=!1,maxDate:s,minDate:l,onMonthChange:c,reduceAnimations:u,shouldDisableDate:f,timezone:p}=e,m=cl(p),b=qt(),v=S.useRef(ZMe(!!u,i,b)).current,x=S.useMemo(()=>{let k=null;return n?k=n:r&&(k=b.startOfMonth(r)),$r.getInitialReferenceValue({value:t,utils:b,timezone:p,props:e,referenceDate:k,granularity:Na.day})},[]),[g,y]=S.useReducer(v,{isMonthSwitchingAnimating:!1,focusedDay:t||m,currentMonth:b.startOfMonth(x),slideDirection:"left"}),w=S.useCallback(k=>{y(T({type:"changeMonth"},k)),c&&c(k.newMonth)},[c]),C=S.useCallback(k=>{const I=k;b.isSameMonth(I,g.currentMonth)||w({newMonth:b.startOfMonth(I),direction:b.isAfterDay(I,g.currentMonth)?"left":"right"})},[g.currentMonth,w,b]),_=oL({shouldDisableDate:f,minDate:l,maxDate:s,disableFuture:o,disablePast:a,timezone:p}),$=S.useCallback(()=>{y({type:"finishMonthSwitchingAnimation"})},[]),E=mt((k,I)=>{_(k)||y({type:"changeFocusedDay",focusedDay:k,withoutMonthSwitchingAnimation:I})});return{referenceDate:x,calendarState:g,changeMonth:C,changeFocusedDay:E,isDateDisabled:_,onMonthSwitchingAnimationEnd:$,handleChangeMonth:w}},QMe=["ownerState"],U2=({clearable:e,fieldProps:t,InputProps:n,onClear:r,slots:o,slotProps:a,components:i,componentsProps:s})=>{var l,c,u,f,p,m;const b=_r(),v=(l=(c=o==null?void 0:o.clearButton)!=null?c:i==null?void 0:i.ClearButton)!=null?l:tr,x=zt({elementType:v,externalSlotProps:(u=a==null?void 0:a.clearButton)!=null?u:s==null?void 0:s.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:b.fieldClearLabel}}),g=Oe(x,QMe),y=(f=(p=o==null?void 0:o.clearIcon)!=null?p:i==null?void 0:i.ClearIcon)!=null?f:KOe,w=zt({elementType:y,externalSlotProps:(m=a==null?void 0:a.clearIcon)!=null?m:s==null?void 0:s.clearIcon,ownerState:{}}),C=T({},n,{endAdornment:e?O.jsxs(S.Fragment,{children:[O.jsx(v2,{position:"end",sx:{marginRight:n!=null&&n.endAdornment?-1:-1.5},children:O.jsx(v,T({},g,{onClick:r,children:O.jsx(y,T({fontSize:"small"},w))}))}),n==null?void 0:n.endAdornment]}):n==null?void 0:n.endAdornment}),_=T({},t,{sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(t.sx)?t.sx:[t.sx]]});return{InputProps:C,fieldProps:_}},eIe=["components","componentsProps","slots","slotProps","InputProps","inputProps"],tIe=["inputRef"],nIe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],iL=S.forwardRef(function(t,n){var r,o,a;const i=Ke({props:t,name:"MuiDateField"}),{components:s,componentsProps:l,slots:c,slotProps:u,InputProps:f,inputProps:p}=i,m=Oe(i,eIe),b=i,v=(r=(o=c==null?void 0:c.textField)!=null?o:s==null?void 0:s.TextField)!=null?r:mh,x=zt({elementType:v,externalSlotProps:(a=u==null?void 0:u.textField)!=null?a:l==null?void 0:l.textField,externalForwardedProps:m,ownerState:b}),{inputRef:g}=x,y=Oe(x,tIe);y.inputProps=T({},p,y.inputProps),y.InputProps=T({},f,y.InputProps);const w=zDe({props:y,inputRef:g}),{ref:C,onPaste:_,onKeyDown:$,inputMode:E,readOnly:k,clearable:I,onClear:R}=w,F=Oe(w,nIe),{InputProps:U,fieldProps:G}=U2({onClear:R,clearable:I,fieldProps:F,InputProps:F.InputProps,slots:c,slotProps:u,components:s,componentsProps:l});return O.jsx(v,T({ref:n},G,{InputProps:T({},U,{readOnly:k}),inputProps:T({},F.inputProps,{inputMode:E,onPaste:_,onKeyDown:$,ref:C})}))}),rIe=e=>{var t,n,r,o;const a=qt(),s=((t=e.ampm)!=null?t:a.is12HourCycleInCurrentLocale())?a.formats.fullTime12h:a.formats.fullTime24h;return T({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(o=e.format)!=null?o:s})},oIe=({props:e,inputRef:t})=>{const n=rIe(e),{forwardedProps:r,internalProps:o}=F2(n,"time");return L2({inputRef:t,forwardedProps:r,internalProps:o,valueManager:$r,fieldValueManager:A2,validator:V0,valueType:"time"})},aIe=["slots","slotProps","components","componentsProps","InputProps","inputProps"],iIe=["inputRef"],sIe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],sL=S.forwardRef(function(t,n){var r,o,a;const i=Ke({props:t,name:"MuiTimeField"}),{slots:s,slotProps:l,components:c,componentsProps:u,InputProps:f,inputProps:p}=i,m=Oe(i,aIe),b=i,v=(r=(o=s==null?void 0:s.textField)!=null?o:c==null?void 0:c.TextField)!=null?r:mh,x=zt({elementType:v,externalSlotProps:(a=l==null?void 0:l.textField)!=null?a:u==null?void 0:u.textField,externalForwardedProps:m,ownerState:b}),{inputRef:g}=x,y=Oe(x,iIe);y.inputProps=T({},p,y.inputProps),y.InputProps=T({},f,y.InputProps);const w=oIe({props:y,inputRef:g}),{ref:C,onPaste:_,onKeyDown:$,inputMode:E,readOnly:k,clearable:I,onClear:R}=w,F=Oe(w,sIe),{InputProps:U,fieldProps:G}=U2({onClear:R,clearable:I,fieldProps:F,InputProps:F.InputProps,slots:s,slotProps:l,components:c,componentsProps:u});return O.jsx(v,T({ref:n},G,{InputProps:T({},U,{readOnly:k}),inputProps:T({},F.inputProps,{inputMode:E,onPaste:_,onKeyDown:$,ref:C})}))}),lIe=e=>{var t,n,r,o,a,i,s,l;const c=qt(),u=yc(),p=((t=e.ampm)!=null?t:c.is12HourCycleInCurrentLocale())?c.formats.keyboardDateTime12h:c.formats.keyboardDateTime24h;return T({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(o=e.format)!=null?o:p,disableIgnoringDatePartForTimeValidation:!!(e.minDateTime||e.maxDateTime),minDate:Yr(c,(a=e.minDateTime)!=null?a:e.minDate,u.minDate),maxDate:Yr(c,(i=e.maxDateTime)!=null?i:e.maxDate,u.maxDate),minTime:(s=e.minDateTime)!=null?s:e.minTime,maxTime:(l=e.maxDateTime)!=null?l:e.maxTime})},cIe=({props:e,inputRef:t})=>{const n=lIe(e),{forwardedProps:r,internalProps:o}=F2(n,"date-time");return L2({inputRef:t,forwardedProps:r,internalProps:o,valueManager:$r,fieldValueManager:A2,validator:V2,valueType:"date-time"})},uIe=["components","componentsProps","slots","slotProps","InputProps","inputProps"],dIe=["inputRef"],fIe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],lL=S.forwardRef(function(t,n){var r,o,a;const i=Ke({props:t,name:"MuiDateTimeField"}),{components:s,componentsProps:l,slots:c,slotProps:u,InputProps:f,inputProps:p}=i,m=Oe(i,uIe),b=i,v=(r=(o=c==null?void 0:c.textField)!=null?o:s==null?void 0:s.TextField)!=null?r:mh,x=zt({elementType:v,externalSlotProps:(a=u==null?void 0:u.textField)!=null?a:l==null?void 0:l.textField,externalForwardedProps:m,ownerState:b}),{inputRef:g}=x,y=Oe(x,dIe);y.inputProps=T({},p,y.inputProps),y.InputProps=T({},f,y.InputProps);const w=cIe({props:y,inputRef:g}),{ref:C,onPaste:_,onKeyDown:$,inputMode:E,readOnly:k,clearable:I,onClear:R}=w,F=Oe(w,fIe),{InputProps:U,fieldProps:G}=U2({onClear:R,clearable:I,fieldProps:F,InputProps:F.InputProps,slots:c,slotProps:u,components:s,componentsProps:l});return O.jsx(v,T({ref:n},G,{InputProps:T({},U,{readOnly:k}),inputProps:T({},F.inputProps,{inputMode:E,onPaste:_,onKeyDown:$,ref:C})}))}),pIe=e=>et("MuiPickersFadeTransitionGroup",e);Qe("MuiPickersFadeTransitionGroup",["root"]);const hIe=e=>{const{classes:t}=e;return Xe({root:["root"]},pIe,t)},mIe=de(r2,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function cL(e){const t=Ke({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:a}=t,i=hIe(t),s=nr();return o?n:O.jsx(mIe,{className:Ie(i.root,r),children:O.jsx(Cd,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:s.transitions.duration.enteringScreen,enter:s.transitions.duration.enteringScreen,exit:0},children:n},a)})}function vIe(e){return et("MuiPickersMonth",e)}const Qm=Qe("MuiPickersMonth",["root","monthButton","disabled","selected"]),gIe=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],yIe=e=>{const{disabled:t,selected:n,classes:r}=e;return Xe({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},vIe,r)},bIe=de("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.monthsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),xIe=de("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Qm.disabled}`]:t.disabled},{[`&.${Qm.selected}`]:t.selected}]})(({theme:e})=>T({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Qm.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Qm.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),wIe=S.memo(function(t){const n=Ke({props:t,name:"MuiPickersMonth"}),{autoFocus:r,children:o,disabled:a,selected:i,value:s,tabIndex:l,onClick:c,onKeyDown:u,onFocus:f,onBlur:p,"aria-current":m,"aria-label":b}=n,v=Oe(n,gIe),x=S.useRef(null),g=yIe(n);return Kn(()=>{if(r){var y;(y=x.current)==null||y.focus()}},[r]),O.jsx(bIe,T({className:g.root,ownerState:n},v,{children:O.jsx(xIe,{ref:x,disabled:a,type:"button",role:"radio",tabIndex:a?-1:l,"aria-current":m,"aria-checked":i,"aria-label":b,onClick:y=>c(y,s),onKeyDown:y=>u(y,s),onFocus:y=>f(y,s),onBlur:y=>p(y,s),className:g.monthButton,ownerState:n,children:o})}))});function CIe(e){return et("MuiMonthCalendar",e)}Qe("MuiMonthCalendar",["root"]);const $Ie=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"],SIe=e=>{const{classes:t}=e;return Xe({root:["root"]},CIe,t)};function _Ie(e,t){const n=qt(),r=yc(),o=Ke({props:e,name:t});return T({disableFuture:!1,disablePast:!1},o,{minDate:Yr(n,o.minDate,r.minDate),maxDate:Yr(n,o.maxDate,r.maxDate)})}const EIe=de("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:L0,boxSizing:"border-box"}),PIe=S.forwardRef(function(t,n){const r=_Ie(t,"MuiMonthCalendar"),{className:o,value:a,defaultValue:i,referenceDate:s,disabled:l,disableFuture:c,disablePast:u,maxDate:f,minDate:p,onChange:m,shouldDisableMonth:b,readOnly:v,disableHighlightToday:x,autoFocus:g=!1,onMonthFocus:y,hasFocus:w,onFocusedViewChange:C,monthsPerRow:_=3,timezone:$,gridLabelId:E}=r,k=Oe(r,$Ie),{value:I,handleValueChange:R,timezone:F}=Sd({name:"MonthCalendar",timezone:$,value:a,defaultValue:i,onChange:m,valueManager:$r}),U=cl(F),G=lh(),B=qt(),z=S.useMemo(()=>$r.getInitialReferenceValue({value:I,utils:B,props:r,timezone:F,referenceDate:s,granularity:Na.month}),[]),Y=r,Q=SIe(Y),H=S.useMemo(()=>B.getMonth(U),[B,U]),J=S.useMemo(()=>I!=null?B.getMonth(I):x?null:B.getMonth(z),[I,B,x,z]),[X,L]=S.useState(()=>J||H),[K,q]=Cr({name:"MonthCalendar",state:"hasFocus",controlled:w,default:g??!1}),D=mt(fe=>{q(fe),C&&C(fe)}),N=S.useCallback(fe=>{const ge=B.startOfMonth(u&&B.isAfter(U,p)?U:p),he=B.startOfMonth(c&&B.isBefore(U,f)?U:f),_e=B.startOfMonth(fe);return B.isBefore(_e,ge)||B.isAfter(_e,he)?!0:b?b(_e):!1},[c,u,f,p,U,b,B]),V=mt((fe,ge)=>{if(v)return;const he=B.setMonth(I??z,ge);R(he)}),Z=mt(fe=>{N(B.setMonth(I??z,fe))||(L(fe),D(!0),y&&y(fe))});S.useEffect(()=>{L(fe=>J!==null&&fe!==J?J:fe)},[J]);const re=mt((fe,ge)=>{switch(fe.key){case"ArrowUp":Z((12+ge-3)%12),fe.preventDefault();break;case"ArrowDown":Z((12+ge+3)%12),fe.preventDefault();break;case"ArrowLeft":Z((12+ge+(G.direction==="ltr"?-1:1))%12),fe.preventDefault();break;case"ArrowRight":Z((12+ge+(G.direction==="ltr"?1:-1))%12),fe.preventDefault();break}}),le=mt((fe,ge)=>{Z(ge)}),xe=mt((fe,ge)=>{X===ge&&D(!1)});return O.jsx(EIe,T({ref:n,className:Ie(Q.root,o),ownerState:Y,role:"radiogroup","aria-labelledby":E},k,{children:R2(B,I??z).map(fe=>{const ge=B.getMonth(fe),he=B.format(fe,"monthShort"),_e=B.format(fe,"month"),ve=ge===J,Be=l||N(fe);return O.jsx(wIe,{selected:ve,value:ge,onClick:V,onKeyDown:re,autoFocus:K&&ge===X,disabled:Be,tabIndex:ge===X?0:-1,onFocus:le,onBlur:xe,"aria-current":H===ge?"date":void 0,"aria-label":_e,monthsPerRow:_,children:he},he)})}))});function TIe(e){return et("MuiPickersYear",e)}const ev=Qe("MuiPickersYear",["root","yearButton","selected","disabled"]),kIe=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],OIe=e=>{const{disabled:t,selected:n,classes:r}=e;return Xe({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},TIe,r)},RIe=de("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.yearsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),DIe=de("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${ev.disabled}`]:t.disabled},{[`&.${ev.selected}`]:t.selected}]})(({theme:e})=>T({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${ev.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${ev.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),MIe=S.memo(function(t){const n=Ke({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:a,disabled:i,selected:s,value:l,tabIndex:c,onClick:u,onKeyDown:f,onFocus:p,onBlur:m,"aria-current":b}=n,v=Oe(n,kIe),x=S.useRef(null),g=OIe(n);return S.useEffect(()=>{r&&x.current.focus()},[r]),O.jsx(RIe,T({className:Ie(g.root,o),ownerState:n},v,{children:O.jsx(DIe,{ref:x,disabled:i,type:"button",role:"radio",tabIndex:i?-1:c,"aria-current":b,"aria-checked":s,onClick:y=>u(y,l),onKeyDown:y=>f(y,l),onFocus:y=>p(y,l),onBlur:y=>m(y,l),className:g.yearButton,ownerState:n,children:a})}))});function IIe(e){return et("MuiYearCalendar",e)}Qe("MuiYearCalendar",["root"]);const AIe=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"],NIe=e=>{const{classes:t}=e;return Xe({root:["root"]},IIe,t)};function jIe(e,t){var n;const r=qt(),o=yc(),a=Ke({props:e,name:t});return T({disablePast:!1,disableFuture:!1},a,{yearsPerRow:(n=a.yearsPerRow)!=null?n:3,minDate:Yr(r,a.minDate,o.minDate),maxDate:Yr(r,a.maxDate,o.maxDate)})}const LIe=de("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:L0,maxHeight:sRe,boxSizing:"border-box",position:"relative"}),FIe=S.forwardRef(function(t,n){const r=jIe(t,"MuiYearCalendar"),{autoFocus:o,className:a,value:i,defaultValue:s,referenceDate:l,disabled:c,disableFuture:u,disablePast:f,maxDate:p,minDate:m,onChange:b,readOnly:v,shouldDisableYear:x,disableHighlightToday:g,onYearFocus:y,hasFocus:w,onFocusedViewChange:C,yearsPerRow:_,timezone:$,gridLabelId:E}=r,k=Oe(r,AIe),{value:I,handleValueChange:R,timezone:F}=Sd({name:"YearCalendar",timezone:$,value:i,defaultValue:s,onChange:b,valueManager:$r}),U=cl(F),G=lh(),B=qt(),z=S.useMemo(()=>$r.getInitialReferenceValue({value:I,utils:B,props:r,timezone:F,referenceDate:l,granularity:Na.year}),[]),Y=r,Q=NIe(Y),H=S.useMemo(()=>B.getYear(U),[B,U]),J=S.useMemo(()=>I!=null?B.getYear(I):g?null:B.getYear(z),[I,B,g,z]),[X,L]=S.useState(()=>J||H),[K,q]=Cr({name:"YearCalendar",state:"hasFocus",controlled:w,default:o??!1}),D=mt(he=>{q(he),C&&C(he)}),N=S.useCallback(he=>{if(f&&B.isBeforeYear(he,U)||u&&B.isAfterYear(he,U)||m&&B.isBeforeYear(he,m)||p&&B.isAfterYear(he,p))return!0;if(!x)return!1;const _e=B.startOfYear(he);return x(_e)},[u,f,p,m,U,x,B]),V=mt((he,_e)=>{if(v)return;const ve=B.setYear(I??z,_e);R(ve)}),Z=mt(he=>{N(B.setYear(I??z,he))||(L(he),D(!0),y==null||y(he))});S.useEffect(()=>{L(he=>J!==null&&he!==J?J:he)},[J]);const re=mt((he,_e)=>{switch(he.key){case"ArrowUp":Z(_e-_),he.preventDefault();break;case"ArrowDown":Z(_e+_),he.preventDefault();break;case"ArrowLeft":Z(_e+(G.direction==="ltr"?-1:1)),he.preventDefault();break;case"ArrowRight":Z(_e+(G.direction==="ltr"?1:-1)),he.preventDefault();break}}),le=mt((he,_e)=>{Z(_e)}),xe=mt((he,_e)=>{X===_e&&D(!1)}),fe=S.useRef(null),ge=sn(n,fe);return S.useEffect(()=>{if(o||fe.current===null)return;const he=fe.current.querySelector('[tabindex="0"]');if(!he)return;const _e=he.offsetHeight,ve=he.offsetTop,Be=fe.current.clientHeight,Ue=fe.current.scrollTop,ze=ve+_e;_e>Be||ve{const _e=B.getYear(he),ve=_e===J,Be=c||N(he);return O.jsx(MIe,{selected:ve,value:_e,onClick:V,onKeyDown:re,autoFocus:K&&_e===X,disabled:Be,tabIndex:_e===X?0:-1,onFocus:le,onBlur:xe,"aria-current":H===_e?"date":void 0,yearsPerRow:_,children:B.format(he,"year")},B.format(he,"year"))})}))}),zIe=e=>et("MuiPickersCalendarHeader",e),BIe=Qe("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),VIe=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],UIe=["ownerState"],WIe=e=>{const{classes:t}=e;return Xe({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},zIe,t)},HIe=de("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),GIe=de("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>T({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),qIe=de("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),YIe=de(tr,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>T({marginRight:"auto"},e.view==="year"&&{[`.${BIe.switchViewIcon}`]:{transform:"rotate(180deg)"}})),KIe=de(UOe,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),JIe=S.forwardRef(function(t,n){var r,o;const a=_r(),i=qt(),s=Ke({props:t,name:"MuiPickersCalendarHeader"}),{slots:l,slotProps:c,currentMonth:u,disabled:f,disableFuture:p,disablePast:m,maxDate:b,minDate:v,onMonthChange:x,onViewChange:g,view:y,reduceAnimations:w,views:C,labelId:_,className:$,timezone:E}=s,k=Oe(s,VIe),I=s,R=WIe(s),F=(r=l==null?void 0:l.switchViewButton)!=null?r:YIe,U=zt({elementType:F,externalSlotProps:c==null?void 0:c.switchViewButton,additionalProps:{size:"small","aria-label":a.calendarViewSwitchingButtonAriaLabel(y)},ownerState:I,className:R.switchViewButton}),G=(o=l==null?void 0:l.switchViewIcon)!=null?o:KIe,B=zt({elementType:G,externalSlotProps:c==null?void 0:c.switchViewIcon,ownerState:void 0,className:R.switchViewIcon}),z=Oe(B,UIe),Y=()=>x(i.addMonths(u,1),"left"),Q=()=>x(i.addMonths(u,-1),"right"),H=aRe(u,{disableFuture:p,maxDate:b,timezone:E}),J=iRe(u,{disablePast:m,minDate:v,timezone:E}),X=()=>{if(!(C.length===1||!g||f))if(C.length===2)g(C.find(L=>L!==y)||C[0]);else{const L=C.indexOf(y)!==0?0:1;g(C[L])}};return C.length===1&&C[0]==="year"?null:O.jsxs(HIe,T({},k,{ownerState:I,className:Ie($,R.root),ref:n,children:[O.jsxs(GIe,{role:"presentation",onClick:X,ownerState:I,"aria-live":"polite",className:R.labelContainer,children:[O.jsx(cL,{reduceAnimations:w,transKey:i.format(u,"monthAndYear"),children:O.jsx(qIe,{id:_,ownerState:I,className:R.label,children:i.format(u,"monthAndYear")})}),C.length>1&&!f&&O.jsx(F,T({},U,{children:O.jsx(G,T({},z))}))]}),O.jsx(Cd,{in:y==="day",children:O.jsx(I6,{slots:l,slotProps:c,onGoToPrevious:Q,isPreviousDisabled:J,previousLabel:a.previousMonth,onGoToNext:Y,isNextDisabled:H,nextLabel:a.nextMonth})})]}))}),ZIe=e=>et("MuiDateCalendar",e);Qe("MuiDateCalendar",["root","viewTransitionContainer"]);const XIe=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","components","componentsProps","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow","timezone"],QIe=e=>{const{classes:t}=e;return Xe({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},ZIe,t)};function eAe(e,t){var n,r,o,a,i,s,l;const c=qt(),u=yc(),f=Z6(),p=Ke({props:e,name:t});return T({},p,{loading:(n=p.loading)!=null?n:!1,disablePast:(r=p.disablePast)!=null?r:!1,disableFuture:(o=p.disableFuture)!=null?o:!1,openTo:(a=p.openTo)!=null?a:"day",views:(i=p.views)!=null?i:["year","day"],reduceAnimations:(s=p.reduceAnimations)!=null?s:f,renderLoading:(l=p.renderLoading)!=null?l:()=>O.jsx("span",{children:"..."}),minDate:Yr(c,p.minDate,u.minDate),maxDate:Yr(c,p.maxDate,u.maxDate)})}const tAe=de(z0,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:F0}),nAe=de(cL,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),uL=S.forwardRef(function(t,n){var r,o,a;const i=qt(),s=Ya(),l=eAe(t,"MuiDateCalendar"),{autoFocus:c,onViewChange:u,value:f,defaultValue:p,referenceDate:m,disableFuture:b,disablePast:v,defaultCalendarMonth:x,onChange:g,onYearChange:y,onMonthChange:w,reduceAnimations:C,shouldDisableDate:_,shouldDisableMonth:$,shouldDisableYear:E,view:k,views:I,openTo:R,className:F,disabled:U,readOnly:G,minDate:B,maxDate:z,disableHighlightToday:Y,focusedView:Q,onFocusedViewChange:H,showDaysOutsideCurrentMonth:J,fixedWeekNumber:X,dayOfWeekFormatter:L,components:K,componentsProps:q,slots:D,slotProps:N,loading:V,renderLoading:Z,displayWeekNumber:re,yearsPerRow:le,monthsPerRow:xe,timezone:fe}=l,ge=Oe(l,XIe),{value:he,handleValueChange:_e,timezone:ve}=Sd({name:"DateCalendar",timezone:fe,value:f,defaultValue:p,onChange:g,valueManager:$r}),{view:Be,setView:Ue,focusedView:ze,setFocusedView:He,goToNextView:be,setValueAndGoToNextView:we}=yh({view:k,views:I,openTo:R,onChange:_e,onViewChange:u,autoFocus:c,focusedView:Q,onFocusedViewChange:H}),{referenceDate:Ce,calendarState:qe,changeFocusedDay:rt,changeMonth:Ae,handleChangeMonth:Le,isDateDisabled:Fe,onMonthSwitchingAnimationEnd:Pe}=XMe({value:he,defaultCalendarMonth:x,referenceDate:m,reduceAnimations:C,onMonthChange:w,minDate:B,maxDate:z,shouldDisableDate:_,disablePast:v,disableFuture:b,timezone:ve}),Te=U&&he||B,it=U&&he||z,ct=`${s}-grid-label`,gt=ze!==null,Ne=(r=(o=D==null?void 0:D.calendarHeader)!=null?o:K==null?void 0:K.CalendarHeader)!=null?r:JIe,ne=zt({elementType:Ne,externalSlotProps:(a=N==null?void 0:N.calendarHeader)!=null?a:q==null?void 0:q.calendarHeader,additionalProps:{views:I,view:Be,currentMonth:qe.currentMonth,onViewChange:Ue,onMonthChange:(dt,Et)=>Le({newMonth:dt,direction:Et}),minDate:Te,maxDate:it,disabled:U,disablePast:v,disableFuture:b,reduceAnimations:C,timezone:ve,labelId:ct,slots:D,slotProps:N},ownerState:l}),te=mt(dt=>{const Et=i.startOfMonth(dt),Yt=i.endOfMonth(dt),kt=Fe(dt)?Zf({utils:i,date:dt,minDate:i.isBefore(B,Et)?Et:B,maxDate:i.isAfter(z,Yt)?Yt:z,disablePast:v,disableFuture:b,isDateDisabled:Fe,timezone:ve}):dt;kt?(we(kt,"finish"),w==null||w(Et)):(be(),Ae(Et)),rt(kt,!0)}),ie=mt(dt=>{const Et=i.startOfYear(dt),Yt=i.endOfYear(dt),kt=Fe(dt)?Zf({utils:i,date:dt,minDate:i.isBefore(B,Et)?Et:B,maxDate:i.isAfter(z,Yt)?Yt:z,disablePast:v,disableFuture:b,isDateDisabled:Fe,timezone:ve}):dt;kt?(we(kt,"finish"),y==null||y(kt)):(be(),Ae(Et)),rt(kt,!0)}),$e=mt(dt=>_e(dt&&vC(i,dt,he??Ce),"finish"));S.useEffect(()=>{he!=null&&i.isValid(he)&&Ae(he)},[he]);const Se=l,Ze=QIe(Se),tt={disablePast:v,disableFuture:b,maxDate:z,minDate:B},ft={disableHighlightToday:Y,readOnly:G,disabled:U,timezone:ve,gridLabelId:ct},_t=S.useRef(Be);S.useEffect(()=>{_t.current!==Be&&(ze===_t.current&&He(Be,!0),_t.current=Be)},[ze,He,Be]);const vt=S.useMemo(()=>[he],[he]);return O.jsxs(tAe,T({ref:n,className:Ie(Ze.root,F),ownerState:Se},ge,{children:[O.jsx(Ne,T({},ne)),O.jsx(nAe,{reduceAnimations:C,className:Ze.viewTransitionContainer,transKey:Be,ownerState:Se,children:O.jsxs("div",{children:[Be==="year"&&O.jsx(FIe,T({},tt,ft,{value:he,onChange:ie,shouldDisableYear:E,hasFocus:gt,onFocusedViewChange:dt=>He("year",dt),yearsPerRow:le,referenceDate:Ce})),Be==="month"&&O.jsx(PIe,T({},tt,ft,{hasFocus:gt,className:F,value:he,onChange:te,shouldDisableMonth:$,onFocusedViewChange:dt=>He("month",dt),monthsPerRow:xe,referenceDate:Ce})),Be==="day"&&O.jsx(JMe,T({},qe,tt,ft,{onMonthSwitchingAnimationEnd:Pe,onFocusedDayChange:rt,reduceAnimations:C,selectedDays:vt,onSelectedDaysChange:$e,shouldDisableDate:_,shouldDisableMonth:$,shouldDisableYear:E,hasFocus:gt,onFocusedViewChange:dt=>He("day",dt),showDaysOutsideCurrentMonth:J,fixedWeekNumber:X,dayOfWeekFormatter:L,displayWeekNumber:re,components:K,componentsProps:q,slots:D,slotProps:N,loading:V,renderLoading:Z}))]})})]}))});function rAe(e){return et("MuiDatePickerToolbar",e)}Qe("MuiDatePickerToolbar",["root","title"]);const oAe=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views"],aAe=e=>{const{classes:t}=e;return Xe({root:["root"],title:["title"]},rAe,t)},iAe=de(z2,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),sAe=de(gn,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>T({},e.isLandscape&&{margin:"auto 16px auto auto"})),lAe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDatePickerToolbar"}),{value:o,isLandscape:a,toolbarFormat:i,toolbarPlaceholder:s="––",views:l}=r,c=Oe(r,oAe),u=qt(),f=_r(),p=aAe(r),m=S.useMemo(()=>{if(!o)return s;const v=Dp(u,{format:i,views:l},!0);return u.formatByString(o,v)},[o,i,s,u,l]),b=r;return O.jsx(iAe,T({ref:n,toolbarTitle:f.datePickerToolbarTitle,isLandscape:a,className:p.root},c,{children:O.jsx(sAe,{variant:"h4",align:a?"left":"center",ownerState:b,className:p.title,children:m})}))});function dL(e,t){var n,r,o,a;const i=qt(),s=yc(),l=Ke({props:e,name:t}),c=S.useMemo(()=>{var f;return((f=l.localeText)==null?void 0:f.toolbarTitle)==null?l.localeText:T({},l.localeText,{datePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),u=(n=l.slots)!=null?n:bh(l.components);return T({},l,{localeText:c},O2({views:l.views,openTo:l.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:(r=l.disableFuture)!=null?r:!1,disablePast:(o=l.disablePast)!=null?o:!1,minDate:Yr(i,l.minDate,s.minDate),maxDate:Yr(i,l.maxDate,s.maxDate),slots:T({toolbar:lAe},u),slotProps:(a=l.slotProps)!=null?a:l.componentsProps})}const cAe=["props","getOpenDialogAriaText"],uAe=["ownerState"],dAe=["ownerState"],W2=e=>{var t,n,r,o,a;let{props:i,getOpenDialogAriaText:s}=e,l=Oe(e,cAe);const{slots:c,slotProps:u,className:f,sx:p,format:m,formatDensity:b,timezone:v,label:x,inputRef:g,readOnly:y,disabled:w,autoFocus:C,localeText:_,reduceAnimations:$}=i,E=qt(),k=S.useRef(null),I=S.useRef(null),R=Ya(),F=(t=u==null||(n=u.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:U,actions:G,hasUIView:B,layoutProps:z,renderCurrentView:Y,shouldRestoreFocus:Q,fieldProps:H}=eL(T({},l,{props:i,inputRef:k,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),J=(r=c.inputAdornment)!=null?r:v2,X=zt({elementType:J,externalSlotProps:u==null?void 0:u.inputAdornment,additionalProps:{position:"end"},ownerState:i}),L=Oe(X,uAe),K=(o=c.openPickerButton)!=null?o:tr,q=zt({elementType:K,externalSlotProps:u==null?void 0:u.openPickerButton,additionalProps:{disabled:w||y,onClick:U?G.onClose:G.onOpen,"aria-label":s(H.value,E),edge:L.position},ownerState:i}),D=Oe(q,dAe),N=c.openPickerIcon,V=c.field,Z=zt({elementType:V,externalSlotProps:u==null?void 0:u.field,additionalProps:T({},H,F&&{id:R},{readOnly:y,disabled:w,className:f,sx:p,format:m,formatDensity:b,timezone:v,label:x,autoFocus:C&&!i.open,focused:U?!0:void 0}),ownerState:i});B&&(Z.InputProps=T({},Z.InputProps,{ref:I,[`${L.position}Adornment`]:O.jsx(J,T({},L,{children:O.jsx(K,T({},D,{children:O.jsx(N,T({},u==null?void 0:u.openPickerIcon))}))}))}));const re=T({textField:c.textField,clearIcon:c.clearIcon,clearButton:c.clearButton},Z.slots),le=(a=c.layout)!=null?a:rL,xe=sn(k,Z.inputRef,g);let fe=R;F&&(x?fe=`${R}-label`:fe=void 0);const ge=T({},u,{toolbar:T({},u==null?void 0:u.toolbar,{titleId:R}),popper:T({"aria-labelledby":fe},u==null?void 0:u.popper)});return{renderPicker:()=>O.jsxs(vh,{localeText:_,children:[O.jsx(V,T({},Z,{slots:re,slotProps:ge,inputRef:xe})),O.jsx(eMe,T({role:"dialog",placement:"bottom-start",anchorEl:I.current},G,{open:U,slots:c,slotProps:ge,shouldRestoreFocus:Q,reduceAnimations:$,children:O.jsx(le,T({},z,ge==null?void 0:ge.layout,{slots:c,slotProps:ge,children:Y()}))}))]})}},ga=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,maxDate:b,shouldDisableDate:v,shouldDisableMonth:x,shouldDisableYear:g,reduceAnimations:y,onMonthChange:w,monthsPerRow:C,onYearChange:_,yearsPerRow:$,defaultCalendarMonth:E,components:k,componentsProps:I,slots:R,slotProps:F,loading:U,renderLoading:G,disableHighlightToday:B,readOnly:z,disabled:Y,showDaysOutsideCurrentMonth:Q,dayOfWeekFormatter:H,sx:J,autoFocus:X,fixedWeekNumber:L,displayWeekNumber:K,timezone:q})=>O.jsx(uL,{view:e,onViewChange:t,views:n.filter(Ou),focusedView:r&&Ou(r)?r:null,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,maxDate:b,shouldDisableDate:v,shouldDisableMonth:x,shouldDisableYear:g,reduceAnimations:y,onMonthChange:w,monthsPerRow:C,onYearChange:_,yearsPerRow:$,defaultCalendarMonth:E,components:k,componentsProps:I,slots:R,slotProps:F,loading:U,renderLoading:G,disableHighlightToday:B,readOnly:z,disabled:Y,showDaysOutsideCurrentMonth:Q,dayOfWeekFormatter:H,sx:J,autoFocus:X,fixedWeekNumber:L,displayWeekNumber:K,timezone:q}),fL=S.forwardRef(function(t,n){var r,o,a,i;const s=_r(),l=qt(),c=dL(t,"MuiDesktopDatePicker"),u=T({day:ga,month:ga,year:ga},c.viewRenderers),f=T({},c,{viewRenderers:u,format:Dp(l,c,!1),yearsPerRow:(r=c.yearsPerRow)!=null?r:4,slots:T({openPickerIcon:M6,field:iL},c.slots),slotProps:T({},c.slotProps,{field:m=>{var b;return T({},al((b=c.slotProps)==null?void 0:b.field,m),_d(c),{ref:n})},toolbar:T({hidden:!0},(o=c.slotProps)==null?void 0:o.toolbar)})}),{renderPicker:p}=W2({props:f,valueManager:$r,valueType:"date",getOpenDialogAriaText:(a=(i=f.localeText)==null?void 0:i.openDatePickerDialogue)!=null?a:s.openDatePickerDialogue,validator:xh});return p()});fL.propTypes={autoFocus:j.bool,className:j.string,closeOnSelect:j.bool,components:j.object,componentsProps:j.object,dayOfWeekFormatter:j.func,defaultCalendarMonth:j.any,defaultValue:j.any,disabled:j.bool,disableFuture:j.bool,disableHighlightToday:j.bool,disableOpenPicker:j.bool,disablePast:j.bool,displayWeekNumber:j.bool,fixedWeekNumber:j.number,format:j.string,formatDensity:j.oneOf(["dense","spacious"]),inputRef:xd,label:j.node,loading:j.bool,localeText:j.object,maxDate:j.any,minDate:j.any,monthsPerRow:j.oneOf([3,4]),onAccept:j.func,onChange:j.func,onClose:j.func,onError:j.func,onMonthChange:j.func,onOpen:j.func,onSelectedSectionsChange:j.func,onViewChange:j.func,onYearChange:j.func,open:j.bool,openTo:j.oneOf(["day","month","year"]),orientation:j.oneOf(["landscape","portrait"]),readOnly:j.bool,reduceAnimations:j.bool,referenceDate:j.any,renderLoading:j.func,selectedSections:j.oneOfType([j.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),j.number,j.shape({endIndex:j.number.isRequired,startIndex:j.number.isRequired})]),shouldDisableDate:j.func,shouldDisableMonth:j.func,shouldDisableYear:j.func,showDaysOutsideCurrentMonth:j.bool,slotProps:j.object,slots:j.object,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object]),timezone:j.string,value:j.any,view:j.oneOf(["day","month","year"]),viewRenderers:j.shape({day:j.func,month:j.func,year:j.func}),views:j.arrayOf(j.oneOf(["day","month","year"]).isRequired),yearsPerRow:j.oneOf([3,4])};const fAe=["props","getOpenDialogAriaText"],H2=e=>{var t,n,r;let{props:o,getOpenDialogAriaText:a}=e,i=Oe(e,fAe);const{slots:s,slotProps:l,className:c,sx:u,format:f,formatDensity:p,timezone:m,label:b,inputRef:v,readOnly:x,disabled:g,localeText:y}=o,w=qt(),C=S.useRef(null),_=Ya(),$=(t=l==null||(n=l.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:E,actions:k,layoutProps:I,renderCurrentView:R,fieldProps:F}=eL(T({},i,{props:o,inputRef:C,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),U=s.field,G=zt({elementType:U,externalSlotProps:l==null?void 0:l.field,additionalProps:T({},F,$&&{id:_},!(g||x)&&{onClick:k.onOpen,onKeyDown:ADe(k.onOpen)},{readOnly:x??!0,disabled:g,className:c,sx:u,format:f,formatDensity:p,timezone:m,label:b}),ownerState:o});G.inputProps=T({},G.inputProps,{"aria-label":a(F.value,w)});const B=T({textField:s.textField},G.slots),z=(r=s.layout)!=null?r:rL,Y=sn(C,G.inputRef,v);let Q=_;$&&(b?Q=`${_}-label`:Q=void 0);const H=T({},l,{toolbar:T({},l==null?void 0:l.toolbar,{titleId:_}),mobilePaper:T({"aria-labelledby":Q},l==null?void 0:l.mobilePaper)});return{renderPicker:()=>O.jsxs(vh,{localeText:y,children:[O.jsx(U,T({},G,{slots:B,slotProps:H,inputRef:Y})),O.jsx(UDe,T({},k,{open:E,slots:s,slotProps:H,children:O.jsx(z,T({},I,H==null?void 0:H.layout,{slots:s,slotProps:H,children:R()}))}))]})}},pL=S.forwardRef(function(t,n){var r,o,a;const i=_r(),s=qt(),l=dL(t,"MuiMobileDatePicker"),c=T({day:ga,month:ga,year:ga},l.viewRenderers),u=T({},l,{viewRenderers:c,format:Dp(s,l,!1),slots:T({field:iL},l.slots),slotProps:T({},l.slotProps,{field:p=>{var m;return T({},al((m=l.slotProps)==null?void 0:m.field,p),_d(l),{ref:n})},toolbar:T({hidden:!1},(r=l.slotProps)==null?void 0:r.toolbar)})}),{renderPicker:f}=H2({props:u,valueManager:$r,valueType:"date",getOpenDialogAriaText:(o=(a=u.localeText)==null?void 0:a.openDatePickerDialogue)!=null?o:i.openDatePickerDialogue,validator:xh});return f()});pL.propTypes={autoFocus:j.bool,className:j.string,closeOnSelect:j.bool,components:j.object,componentsProps:j.object,dayOfWeekFormatter:j.func,defaultCalendarMonth:j.any,defaultValue:j.any,disabled:j.bool,disableFuture:j.bool,disableHighlightToday:j.bool,disableOpenPicker:j.bool,disablePast:j.bool,displayWeekNumber:j.bool,fixedWeekNumber:j.number,format:j.string,formatDensity:j.oneOf(["dense","spacious"]),inputRef:xd,label:j.node,loading:j.bool,localeText:j.object,maxDate:j.any,minDate:j.any,monthsPerRow:j.oneOf([3,4]),onAccept:j.func,onChange:j.func,onClose:j.func,onError:j.func,onMonthChange:j.func,onOpen:j.func,onSelectedSectionsChange:j.func,onViewChange:j.func,onYearChange:j.func,open:j.bool,openTo:j.oneOf(["day","month","year"]),orientation:j.oneOf(["landscape","portrait"]),readOnly:j.bool,reduceAnimations:j.bool,referenceDate:j.any,renderLoading:j.func,selectedSections:j.oneOfType([j.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),j.number,j.shape({endIndex:j.number.isRequired,startIndex:j.number.isRequired})]),shouldDisableDate:j.func,shouldDisableMonth:j.func,shouldDisableYear:j.func,showDaysOutsideCurrentMonth:j.bool,slotProps:j.object,slots:j.object,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object]),timezone:j.string,value:j.any,view:j.oneOf(["day","month","year"]),viewRenderers:j.shape({day:j.func,month:j.func,year:j.func}),views:j.arrayOf(j.oneOf(["day","month","year"]).isRequired),yearsPerRow:j.oneOf([3,4])};const pAe=["desktopModeMediaQuery"],hAe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=j2}=r,a=Oe(r,pAe);return ph(o,{defaultMatches:!0})?O.jsx(fL,T({ref:n},a)):O.jsx(pL,T({ref:n},a))});function mAe(e){return et("MuiTimePickerToolbar",e)}const Xf=Qe("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),vAe=["ampm","ampmInClock","value","isLandscape","onChange","view","onViewChange","views","disabled","readOnly"],gAe=e=>{const{theme:t,isLandscape:n,classes:r}=e,o={root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n&&"hourMinuteLabelLandscape",t.direction==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return Xe(o,mAe,r)},yAe=de(z2,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),bAe=de(B2,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),hL=de("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${Xf.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${Xf.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})(({theme:e,ownerState:t})=>T({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},e.direction==="rtl"&&{flexDirection:"row-reverse"}));hL.propTypes={as:j.elementType,ownerState:j.object.isRequired,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object])};const mL=de("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${Xf.ampmLabel}`]:t.ampmLabel},{[`&.${Xf.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>T({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${Xf.ampmLabel}`]:{fontSize:17}}));mL.propTypes={as:j.elementType,ownerState:j.object.isRequired,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object])};function xAe(e){const t=Ke({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:o,isLandscape:a,onChange:i,view:s,onViewChange:l,views:c,disabled:u,readOnly:f}=t,p=Oe(t,vAe),m=qt(),b=_r(),v=nr(),x=!!(n&&!r&&c.includes("hours")),{meridiemMode:g,handleMeridiemChange:y}=N0(o,n,i),w=E=>n?m.format(E,"hours12h"):m.format(E,"hours24h"),C=t,_=gAe(T({},C,{theme:v})),$=O.jsx(bAe,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:_.separator});return O.jsxs(yAe,T({landscapeDirection:"row",toolbarTitle:b.timePickerToolbarTitle,isLandscape:a,ownerState:C,className:_.root},p,{children:[O.jsxs(hL,{className:_.hourMinuteLabel,ownerState:C,children:[nu(c,"hours")&&O.jsx(Lo,{tabIndex:-1,variant:"h3",onClick:()=>l("hours"),selected:s==="hours",value:o?w(o):"--"}),nu(c,["hours","minutes"])&&$,nu(c,"minutes")&&O.jsx(Lo,{tabIndex:-1,variant:"h3",onClick:()=>l("minutes"),selected:s==="minutes",value:o?m.format(o,"minutes"):"--"}),nu(c,["minutes","seconds"])&&$,nu(c,"seconds")&&O.jsx(Lo,{variant:"h3",onClick:()=>l("seconds"),selected:s==="seconds",value:o?m.format(o,"seconds"):"--"})]}),x&&O.jsxs(mL,{className:_.ampmSelection,ownerState:C,children:[O.jsx(Lo,{disableRipple:!0,variant:"subtitle2",selected:g==="am",typographyClassName:_.ampmLabel,value:Ba(m,"am"),onClick:f?void 0:()=>y("am"),disabled:u}),O.jsx(Lo,{disableRipple:!0,variant:"subtitle2",selected:g==="pm",typographyClassName:_.ampmLabel,value:Ba(m,"pm"),onClick:f?void 0:()=>y("pm"),disabled:u})]})]}))}function vL(e,t){var n,r,o,a,i;const s=qt(),l=Ke({props:e,name:t}),c=(n=l.ampm)!=null?n:s.is12HourCycleInCurrentLocale(),u=S.useMemo(()=>{var m;return((m=l.localeText)==null?void 0:m.toolbarTitle)==null?l.localeText:T({},l.localeText,{timePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),f=(r=l.slots)!=null?r:bh(l.components),p=(o=l.slotProps)!=null?o:l.componentsProps;return T({},l,{ampm:c,localeText:u},O2({views:l.views,openTo:l.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{disableFuture:(a=l.disableFuture)!=null?a:!1,disablePast:(i=l.disablePast)!=null?i:!1,slots:T({toolbar:xAe},f),slotProps:T({},p,{toolbar:T({ampm:c,ampmInClock:l.ampmInClock},p==null?void 0:p.toolbar)})})}const Du=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,ampmInClock:w,components:C,componentsProps:_,slots:$,slotProps:E,readOnly:k,disabled:I,sx:R,autoFocus:F,showViewSwitcher:U,disableIgnoringDatePartForTimeValidation:G,timezone:B})=>O.jsx(rDe,{view:e,onViewChange:t,focusedView:n&&Ju(n)?n:null,onFocusedViewChange:r,views:o.filter(Ju),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,ampmInClock:w,components:C,componentsProps:_,slots:$,slotProps:E,readOnly:k,disabled:I,sx:R,autoFocus:F,showViewSwitcher:U,disableIgnoringDatePartForTimeValidation:G,timezone:B}),gL=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,components:w,componentsProps:C,slots:_,slotProps:$,readOnly:E,disabled:k,sx:I,autoFocus:R,disableIgnoringDatePartForTimeValidation:F,timeSteps:U,skipDisabled:G,timezone:B})=>O.jsx(dDe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(Ju),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,components:w,componentsProps:C,slots:_,slotProps:$,readOnly:E,disabled:k,sx:I,autoFocus:R,disableIgnoringDatePartForTimeValidation:F,timeStep:U==null?void 0:U.minutes,skipDisabled:G,timezone:B}),bC=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,components:w,componentsProps:C,slots:_,slotProps:$,readOnly:E,disabled:k,sx:I,autoFocus:R,disableIgnoringDatePartForTimeValidation:F,timeSteps:U,skipDisabled:G,timezone:B})=>O.jsx(SDe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(Ju),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:x,minutesStep:g,ampm:y,components:w,componentsProps:C,slots:_,slotProps:$,readOnly:E,disabled:k,sx:I,autoFocus:R,disableIgnoringDatePartForTimeValidation:F,timeSteps:U,skipDisabled:G,timezone:B}),wAe=["views","format"],yL=(e,t)=>{let{views:n,format:r}=t,o=Oe(t,wAe);if(r)return r;const a=[],i=[];if(n.forEach(c=>{Ju(c)?i.push(c):a.push(c)}),i.length===0)return Dp(e,T({views:a},o),!1);if(a.length===0)return Lg(e,T({views:i},o));const s=Lg(e,T({views:i},o));return`${Dp(e,T({views:a},o),!1)} ${s}`},CAe=(e,t,n)=>n?t.filter(r=>!Es(r)||r==="hours"):e?[...t,"meridiem"]:t,$Ae=(e,t)=>{var n,r;return 24*60/(((n=e.hours)!=null?n:1)*((r=e.minutes)!=null?r:5))<=t};function bL({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const o=e??24,a=T({hours:1,minutes:5,seconds:5},n),i=$Ae(a,o);return{thresholdToRenderTimeInASingleColumn:o,timeSteps:a,shouldRenderTimeInASingleColumn:i,views:CAe(t,r,i)}}const xL=S.forwardRef(function(t,n){var r,o,a,i,s,l;const c=_r(),u=qt(),f=vL(t,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:p,views:m,timeSteps:b}=bL(f),v=p?gL:bC,x=T({hours:v,minutes:v,seconds:v,meridiem:v},f.viewRenderers),g=(r=f.ampmInClock)!=null?r:!0,y=p?[]:["accept"],C=((o=x.hours)==null?void 0:o.name)===bC.name?m:m.filter(E=>E!=="meridiem"),_=T({},f,{ampmInClock:g,timeSteps:b,viewRenderers:x,format:Lg(u,f),views:p?["hours"]:C,slots:T({field:sL,openPickerIcon:GOe},f.slots),slotProps:T({},f.slotProps,{field:E=>{var k;return T({},al((k=f.slotProps)==null?void 0:k.field,E),_d(f),{ref:n})},toolbar:T({hidden:!0,ampmInClock:g},(a=f.slotProps)==null?void 0:a.toolbar),actionBar:T({actions:y},(i=f.slotProps)==null?void 0:i.actionBar)})}),{renderPicker:$}=W2({props:_,valueManager:$r,valueType:"time",getOpenDialogAriaText:(s=(l=_.localeText)==null?void 0:l.openTimePickerDialogue)!=null?s:c.openTimePickerDialogue,validator:V0});return $()});xL.propTypes={ampm:j.bool,ampmInClock:j.bool,autoFocus:j.bool,className:j.string,closeOnSelect:j.bool,components:j.object,componentsProps:j.object,defaultValue:j.any,disabled:j.bool,disableFuture:j.bool,disableIgnoringDatePartForTimeValidation:j.bool,disableOpenPicker:j.bool,disablePast:j.bool,format:j.string,formatDensity:j.oneOf(["dense","spacious"]),inputRef:xd,label:j.node,localeText:j.object,maxTime:j.any,minTime:j.any,minutesStep:j.number,onAccept:j.func,onChange:j.func,onClose:j.func,onError:j.func,onOpen:j.func,onSelectedSectionsChange:j.func,onViewChange:j.func,open:j.bool,openTo:j.oneOf(["hours","meridiem","minutes","seconds"]),orientation:j.oneOf(["landscape","portrait"]),readOnly:j.bool,reduceAnimations:j.bool,referenceDate:j.any,selectedSections:j.oneOfType([j.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),j.number,j.shape({endIndex:j.number.isRequired,startIndex:j.number.isRequired})]),shouldDisableClock:j.func,shouldDisableTime:j.func,skipDisabled:j.bool,slotProps:j.object,slots:j.object,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object]),thresholdToRenderTimeInASingleColumn:j.number,timeSteps:j.shape({hours:j.number,minutes:j.number,seconds:j.number}),timezone:j.string,value:j.any,view:j.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:j.shape({hours:j.func,meridiem:j.func,minutes:j.func,seconds:j.func}),views:j.arrayOf(j.oneOf(["hours","minutes","seconds"]).isRequired)};const wL=S.forwardRef(function(t,n){var r,o,a,i;const s=_r(),l=qt(),c=vL(t,"MuiMobileTimePicker"),u=T({hours:Du,minutes:Du,seconds:Du},c.viewRenderers),f=(r=c.ampmInClock)!=null?r:!1,p=T({},c,{ampmInClock:f,viewRenderers:u,format:Lg(l,c),slots:T({field:sL},c.slots),slotProps:T({},c.slotProps,{field:b=>{var v;return T({},al((v=c.slotProps)==null?void 0:v.field,b),_d(c),{ref:n})},toolbar:T({hidden:!1,ampmInClock:f},(o=c.slotProps)==null?void 0:o.toolbar)})}),{renderPicker:m}=H2({props:p,valueManager:$r,valueType:"time",getOpenDialogAriaText:(a=(i=p.localeText)==null?void 0:i.openTimePickerDialogue)!=null?a:s.openTimePickerDialogue,validator:V0});return m()});wL.propTypes={ampm:j.bool,ampmInClock:j.bool,autoFocus:j.bool,className:j.string,closeOnSelect:j.bool,components:j.object,componentsProps:j.object,defaultValue:j.any,disabled:j.bool,disableFuture:j.bool,disableIgnoringDatePartForTimeValidation:j.bool,disableOpenPicker:j.bool,disablePast:j.bool,format:j.string,formatDensity:j.oneOf(["dense","spacious"]),inputRef:xd,label:j.node,localeText:j.object,maxTime:j.any,minTime:j.any,minutesStep:j.number,onAccept:j.func,onChange:j.func,onClose:j.func,onError:j.func,onOpen:j.func,onSelectedSectionsChange:j.func,onViewChange:j.func,open:j.bool,openTo:j.oneOf(["hours","minutes","seconds"]),orientation:j.oneOf(["landscape","portrait"]),readOnly:j.bool,reduceAnimations:j.bool,referenceDate:j.any,selectedSections:j.oneOfType([j.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),j.number,j.shape({endIndex:j.number.isRequired,startIndex:j.number.isRequired})]),shouldDisableClock:j.func,shouldDisableTime:j.func,slotProps:j.object,slots:j.object,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object]),timezone:j.string,value:j.any,view:j.oneOf(["hours","minutes","seconds"]),viewRenderers:j.shape({hours:j.func,minutes:j.func,seconds:j.func}),views:j.arrayOf(j.oneOf(["hours","minutes","seconds"]).isRequired)};const SAe=["desktopModeMediaQuery"],_Ae=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:o=j2}=r,a=Oe(r,SAe);return ph(o,{defaultMatches:!0})?O.jsx(xL,T({ref:n},a)):O.jsx(wL,T({ref:n},a))});function EAe(e){return et("MuiDateTimePickerTabs",e)}Qe("MuiDateTimePickerTabs",["root"]);const PAe=e=>Ou(e)?"date":"time",TAe=e=>e==="date"?"day":"hours",kAe=e=>{const{classes:t}=e;return Xe({root:["root"]},EAe,t)},OAe=de(D0,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${Nv.indicator}`]:{bottom:"auto",top:0}}})),RAe=function(t){const n=Ke({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=O.jsx(qOe,{}),onViewChange:o,timeIcon:a=O.jsx(YOe,{}),view:i,hidden:s=typeof window>"u"||window.innerHeight<667}=n,l=_r(),c=kAe(n),u=(f,p)=>{o(TAe(p))};return s?null:O.jsxs(OAe,{ownerState:n,variant:"fullWidth",value:PAe(i),onChange:u,className:c.root,children:[O.jsx(Tp,{value:"date","aria-label":l.dateTableLabel,icon:O.jsx(S.Fragment,{children:r})}),O.jsx(Tp,{value:"time","aria-label":l.timeTableLabel,icon:O.jsx(S.Fragment,{children:a})})]})};function DAe(e){return et("MuiDateTimePickerToolbar",e)}const _x=Qe("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),MAe=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant"],IAe=e=>{const{classes:t,theme:n,isLandscape:r}=e,o={root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",n.direction==="rtl"&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",n.direction==="rtl"&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",r&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return Xe(o,DAe,t)},CL=de(z2,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({paddingLeft:t.toolbarVariant==="desktop"&&!t.isLandscape?24:16,paddingRight:t.toolbarVariant==="desktop"&&!t.isLandscape?0:16,borderBottom:t.toolbarVariant==="desktop"?`1px solid ${(e.vars||e).palette.divider}`:void 0,borderRight:t.toolbarVariant==="desktop"&&t.isLandscape?`1px solid ${(e.vars||e).palette.divider}`:void 0,justifyContent:"space-around",position:"relative"}));CL.propTypes={as:j.elementType,classes:j.object,className:j.string,isLandscape:j.bool.isRequired,isMobileKeyboardViewOpen:j.bool,landscapeDirection:j.oneOf(["column","row"]),ownerState:j.object.isRequired,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object]),toggleMobileKeyboardView:j.func,toolbarTitle:j.node,viewType:j.oneOf(["date","time"])};const AAe=de("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),$L=de("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})(({theme:e,ownerState:t})=>{const n=t.isLandscape&&t.toolbarVariant!=="desktop"?"column":"row";return T({display:"flex",flexDirection:n},t.toolbarVariant==="desktop"&&T({},!t.isLandscape&&{gap:9,marginRight:4,alignSelf:"flex-end"}),e.direction==="rtl"&&{flexDirection:`${n}-reverse`})}),NAe=de("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})(({theme:e,ownerState:t})=>T({display:"flex"},t.toolbarVariant==="desktop"&&{gap:1.5},e.direction==="rtl"&&{flexDirection:"row-reverse"}));$L.propTypes={as:j.elementType,ownerState:j.object.isRequired,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object])};const uM=de(B2,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})(({ownerState:e})=>({margin:e.toolbarVariant==="desktop"?0:"0 4px 0 2px",cursor:"default"})),jAe=de("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${_x.ampmLabel}`]:t.ampmLabel},{[`&.${_x.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>T({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"},{[`& .${_x.ampmLabel}`]:{fontSize:17}}));function LAe(e){const t=Ke({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:o,onChange:a,view:i,isLandscape:s,onViewChange:l,toolbarFormat:c,toolbarPlaceholder:u="––",views:f,disabled:p,readOnly:m,toolbarVariant:b="mobile"}=t,v=Oe(t,MAe),x=t,g=qt(),{meridiemMode:y,handleMeridiemChange:w}=N0(o,n,a),C=!!(n&&!r),_=b==="desktop",$=_r(),E=nr(),k=IAe(T({},x,{theme:E})),I=F=>n?g.format(F,"hours12h"):g.format(F,"hours24h"),R=S.useMemo(()=>o?c?g.formatByString(o,c):g.format(o,"shortDate"):u,[o,c,u,g]);return O.jsxs(CL,T({toolbarTitle:$.dateTimePickerToolbarTitle,isLandscape:s,className:k.root},v,{ownerState:x,children:[O.jsxs(AAe,{className:k.dateContainer,ownerState:x,children:[f.includes("year")&&O.jsx(Lo,{tabIndex:-1,variant:"subtitle1",onClick:()=>l("year"),selected:i==="year",value:o?g.format(o,"year"):"–"}),f.includes("day")&&O.jsx(Lo,{tabIndex:-1,variant:_?"h5":"h4",onClick:()=>l("day"),selected:i==="day",value:R})]}),O.jsxs($L,{className:k.timeContainer,ownerState:x,children:[O.jsxs(NAe,{className:k.timeDigitsContainer,ownerState:x,children:[f.includes("hours")&&O.jsx(Lo,{variant:_?"h5":"h3",width:_&&!s?Tf:void 0,onClick:()=>l("hours"),selected:i==="hours",value:o?I(o):"--"}),f.includes("minutes")&&O.jsxs(S.Fragment,{children:[O.jsx(uM,{variant:_?"h5":"h3",value:":",className:k.separator,ownerState:x}),O.jsx(Lo,{variant:_?"h5":"h3",width:_&&!s?Tf:void 0,onClick:()=>l("minutes"),selected:i==="minutes",value:o?g.format(o,"minutes"):"--"})]}),f.includes("seconds")&&O.jsxs(S.Fragment,{children:[O.jsx(uM,{variant:_?"h5":"h3",value:":",className:k.separator,ownerState:x}),O.jsx(Lo,{variant:_?"h5":"h3",width:_&&!s?Tf:void 0,onClick:()=>l("seconds"),selected:i==="seconds",value:o?g.format(o,"seconds"):"--"})]})]}),C&&!_&&O.jsxs(jAe,{className:k.ampmSelection,ownerState:x,children:[O.jsx(Lo,{variant:"subtitle2",selected:y==="am",typographyClassName:k.ampmLabel,value:Ba(g,"am"),onClick:m?void 0:()=>w("am"),disabled:p}),O.jsx(Lo,{variant:"subtitle2",selected:y==="pm",typographyClassName:k.ampmLabel,value:Ba(g,"pm"),onClick:m?void 0:()=>w("pm"),disabled:p})]}),n&&_&&O.jsx(Lo,{variant:"h5",onClick:()=>l("meridiem"),selected:i==="meridiem",value:o&&y?Ba(g,y):"--",width:Tf})]})]}))}function SL(e,t){var n,r,o,a,i,s,l,c,u,f,p;const m=qt(),b=yc(),v=Ke({props:e,name:t}),x=(n=v.ampm)!=null?n:m.is12HourCycleInCurrentLocale(),g=S.useMemo(()=>{var C;return((C=v.localeText)==null?void 0:C.toolbarTitle)==null?v.localeText:T({},v.localeText,{dateTimePickerToolbarTitle:v.localeText.toolbarTitle})},[v.localeText]),y=(r=v.slots)!=null?r:bh(v.components),w=(o=v.slotProps)!=null?o:v.componentsProps;return T({},v,O2({views:v.views,openTo:v.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:x,localeText:g,orientation:(a=v.orientation)!=null?a:"portrait",disableIgnoringDatePartForTimeValidation:(i=v.disableIgnoringDatePartForTimeValidation)!=null?i:!!(v.minDateTime||v.maxDateTime||v.disablePast||v.disableFuture),disableFuture:(s=v.disableFuture)!=null?s:!1,disablePast:(l=v.disablePast)!=null?l:!1,minDate:Yr(m,(c=v.minDateTime)!=null?c:v.minDate,b.minDate),maxDate:Yr(m,(u=v.maxDateTime)!=null?u:v.maxDate,b.maxDate),minTime:(f=v.minDateTime)!=null?f:v.minTime,maxTime:(p=v.maxDateTime)!=null?p:v.maxTime,slots:T({toolbar:LAe,tabs:RAe},y),slotProps:T({},w,{toolbar:T({ampm:x},w==null?void 0:w.toolbar)})})}const FAe=de("div")({display:"flex",margin:"0 auto"}),$l=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,minTime:b,maxDate:v,maxTime:x,shouldDisableDate:g,shouldDisableMonth:y,shouldDisableYear:w,shouldDisableTime:C,shouldDisableClock:_,reduceAnimations:$,minutesStep:E,ampm:k,onMonthChange:I,monthsPerRow:R,onYearChange:F,yearsPerRow:U,defaultCalendarMonth:G,components:B,componentsProps:z,slots:Y,slotProps:Q,loading:H,renderLoading:J,disableHighlightToday:X,readOnly:L,disabled:K,showDaysOutsideCurrentMonth:q,dayOfWeekFormatter:D,sx:N,autoFocus:V,fixedWeekNumber:Z,displayWeekNumber:re,timezone:le,disableIgnoringDatePartForTimeValidation:xe,timeSteps:fe,skipDisabled:ge,timeViewsCount:he,shouldRenderTimeInASingleColumn:_e})=>{var ve,Be;const Ue=!!((ve=al((Be=Q==null?void 0:Q.actionBar)!=null?Be:z==null?void 0:z.actionBar,{}))!=null&&(ve=ve.actions)!=null&&ve.length),ze={view:Es(e)?e:"hours",onViewChange:t,focusedView:r&&Es(r)?r:null,onFocusedViewChange:o,views:n.filter(Es),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:b,maxTime:x,shouldDisableTime:C,shouldDisableClock:_,minutesStep:E,ampm:k,components:B,componentsProps:z,slots:Y,slotProps:Q,readOnly:L,disabled:K,autoFocus:V,disableIgnoringDatePartForTimeValidation:xe,timeSteps:fe,skipDisabled:ge,timezone:le};return O.jsxs(S.Fragment,{children:[O.jsxs(FAe,{children:[O.jsx(uL,{view:Ou(e)?e:"day",onViewChange:t,views:n.filter(Ou),focusedView:r&&Ou(r)?r:null,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,maxDate:v,shouldDisableDate:g,shouldDisableMonth:y,shouldDisableYear:w,reduceAnimations:$,onMonthChange:I,monthsPerRow:R,onYearChange:F,yearsPerRow:U,defaultCalendarMonth:G,components:B,componentsProps:z,slots:Y,slotProps:Q,loading:H,renderLoading:J,disableHighlightToday:X,readOnly:L,disabled:K,showDaysOutsideCurrentMonth:q,dayOfWeekFormatter:D,sx:N,autoFocus:V,fixedWeekNumber:Z,displayWeekNumber:re,timezone:le}),he>0&&O.jsxs(S.Fragment,{children:[O.jsx(CD,{orientation:"vertical"}),_e?gL(T({},ze,{view:"hours",views:["hours"],focusedView:r&&Es(r)?"hours":null,sx:T({width:"auto",[`&.${aDe.root}`]:{maxHeight:F0}},Array.isArray(N)?N:[N])})):bC(T({},ze,{view:Es(e)?e:"hours",views:n.filter(Es),focusedView:r&&Es(r)?r:null,sx:T({borderBottom:0,width:"auto",[`.${hDe.root}`]:{maxHeight:"100%"}},Array.isArray(N)?N:[N])}))]})]}),Ue&&O.jsx(CD,{})]})},_L=S.forwardRef(function(t,n){var r,o,a,i,s,l,c;const u=_r(),f=qt(),p=SL(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:m,thresholdToRenderTimeInASingleColumn:b,views:v,timeSteps:x}=bL(p),g=!p.viewRenderers||Object.keys(p.viewRenderers).length===0,y=g?{day:$l,month:$l,year:$l,hours:$l,minutes:$l,seconds:$l,meridiem:$l}:T({day:ga,month:ga,year:ga,hours:null,minutes:null,seconds:null,meridiem:null},p.viewRenderers),w=(r=p.ampmInClock)!=null?r:!0,C=g?["accept"]:[],_=T({},p,{viewRenderers:y,format:yL(f,p),views:v,yearsPerRow:(o=p.yearsPerRow)!=null?o:4,ampmInClock:w,timeSteps:x,thresholdToRenderTimeInASingleColumn:b,shouldRenderTimeInASingleColumn:m,slots:T({field:lL,openPickerIcon:M6},p.slots),slotProps:T({},p.slotProps,{field:E=>{var k;return T({},al((k=p.slotProps)==null?void 0:k.field,E),_d(p),{ref:n})},toolbar:T({hidden:!0,ampmInClock:w,toolbarVariant:g?"desktop":"mobile"},(a=p.slotProps)==null?void 0:a.toolbar),tabs:T({hidden:!0},(i=p.slotProps)==null?void 0:i.tabs),actionBar:T({actions:C},(s=p.slotProps)==null?void 0:s.actionBar)})}),{renderPicker:$}=W2({props:_,valueManager:$r,valueType:"date-time",getOpenDialogAriaText:(l=(c=_.localeText)==null?void 0:c.openDatePickerDialogue)!=null?l:u.openDatePickerDialogue,validator:V2});return $()});_L.propTypes={ampm:j.bool,ampmInClock:j.bool,autoFocus:j.bool,className:j.string,closeOnSelect:j.bool,components:j.object,componentsProps:j.object,dayOfWeekFormatter:j.func,defaultCalendarMonth:j.any,defaultValue:j.any,disabled:j.bool,disableFuture:j.bool,disableHighlightToday:j.bool,disableIgnoringDatePartForTimeValidation:j.bool,disableOpenPicker:j.bool,disablePast:j.bool,displayWeekNumber:j.bool,fixedWeekNumber:j.number,format:j.string,formatDensity:j.oneOf(["dense","spacious"]),inputRef:xd,label:j.node,loading:j.bool,localeText:j.object,maxDate:j.any,maxDateTime:j.any,maxTime:j.any,minDate:j.any,minDateTime:j.any,minTime:j.any,minutesStep:j.number,monthsPerRow:j.oneOf([3,4]),onAccept:j.func,onChange:j.func,onClose:j.func,onError:j.func,onMonthChange:j.func,onOpen:j.func,onSelectedSectionsChange:j.func,onViewChange:j.func,onYearChange:j.func,open:j.bool,openTo:j.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:j.oneOf(["landscape","portrait"]),readOnly:j.bool,reduceAnimations:j.bool,referenceDate:j.any,renderLoading:j.func,selectedSections:j.oneOfType([j.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),j.number,j.shape({endIndex:j.number.isRequired,startIndex:j.number.isRequired})]),shouldDisableClock:j.func,shouldDisableDate:j.func,shouldDisableMonth:j.func,shouldDisableTime:j.func,shouldDisableYear:j.func,showDaysOutsideCurrentMonth:j.bool,skipDisabled:j.bool,slotProps:j.object,slots:j.object,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object]),thresholdToRenderTimeInASingleColumn:j.number,timeSteps:j.shape({hours:j.number,minutes:j.number,seconds:j.number}),timezone:j.string,value:j.any,view:j.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:j.shape({day:j.func,hours:j.func,meridiem:j.func,minutes:j.func,month:j.func,seconds:j.func,year:j.func}),views:j.arrayOf(j.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:j.oneOf([3,4])};const EL=S.forwardRef(function(t,n){var r,o,a,i,s;const l=_r(),c=qt(),u=SL(t,"MuiMobileDateTimePicker"),f=T({day:ga,month:ga,year:ga,hours:Du,minutes:Du,seconds:Du},u.viewRenderers),p=(r=u.ampmInClock)!=null?r:!1,m=T({},u,{viewRenderers:f,format:yL(c,u),ampmInClock:p,slots:T({field:lL},u.slots),slotProps:T({},u.slotProps,{field:v=>{var x;return T({},al((x=u.slotProps)==null?void 0:x.field,v),_d(u),{ref:n})},toolbar:T({hidden:!1,ampmInClock:p},(o=u.slotProps)==null?void 0:o.toolbar),tabs:T({hidden:!1},(a=u.slotProps)==null?void 0:a.tabs)})}),{renderPicker:b}=H2({props:m,valueManager:$r,valueType:"date-time",getOpenDialogAriaText:(i=(s=m.localeText)==null?void 0:s.openDatePickerDialogue)!=null?i:l.openDatePickerDialogue,validator:V2});return b()});EL.propTypes={ampm:j.bool,ampmInClock:j.bool,autoFocus:j.bool,className:j.string,closeOnSelect:j.bool,components:j.object,componentsProps:j.object,dayOfWeekFormatter:j.func,defaultCalendarMonth:j.any,defaultValue:j.any,disabled:j.bool,disableFuture:j.bool,disableHighlightToday:j.bool,disableIgnoringDatePartForTimeValidation:j.bool,disableOpenPicker:j.bool,disablePast:j.bool,displayWeekNumber:j.bool,fixedWeekNumber:j.number,format:j.string,formatDensity:j.oneOf(["dense","spacious"]),inputRef:xd,label:j.node,loading:j.bool,localeText:j.object,maxDate:j.any,maxDateTime:j.any,maxTime:j.any,minDate:j.any,minDateTime:j.any,minTime:j.any,minutesStep:j.number,monthsPerRow:j.oneOf([3,4]),onAccept:j.func,onChange:j.func,onClose:j.func,onError:j.func,onMonthChange:j.func,onOpen:j.func,onSelectedSectionsChange:j.func,onViewChange:j.func,onYearChange:j.func,open:j.bool,openTo:j.oneOf(["day","hours","minutes","month","seconds","year"]),orientation:j.oneOf(["landscape","portrait"]),readOnly:j.bool,reduceAnimations:j.bool,referenceDate:j.any,renderLoading:j.func,selectedSections:j.oneOfType([j.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),j.number,j.shape({endIndex:j.number.isRequired,startIndex:j.number.isRequired})]),shouldDisableClock:j.func,shouldDisableDate:j.func,shouldDisableMonth:j.func,shouldDisableTime:j.func,shouldDisableYear:j.func,showDaysOutsideCurrentMonth:j.bool,slotProps:j.object,slots:j.object,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object]),timezone:j.string,value:j.any,view:j.oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:j.shape({day:j.func,hours:j.func,minutes:j.func,month:j.func,seconds:j.func,year:j.func}),views:j.arrayOf(j.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:j.oneOf([3,4])};const zAe=["desktopModeMediaQuery"],BAe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:o=j2}=r,a=Oe(r,zAe);return ph(o,{defaultMatches:!0})?O.jsx(_L,T({ref:n},a)):O.jsx(EL,T({ref:n},a))});var PL={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(yo,function(){var n=1e3,r=6e4,o=36e5,a="millisecond",i="second",s="minute",l="hour",c="day",u="week",f="month",p="quarter",m="year",b="date",v="Invalid Date",x=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(B){var z=["th","st","nd","rd"],Y=B%100;return"["+B+(z[(Y-20)%10]||z[Y]||z[0])+"]"}},w=function(B,z,Y){var Q=String(B);return!Q||Q.length>=z?B:""+Array(z+1-Q.length).join(Y)+B},C={s:w,z:function(B){var z=-B.utcOffset(),Y=Math.abs(z),Q=Math.floor(Y/60),H=Y%60;return(z<=0?"+":"-")+w(Q,2,"0")+":"+w(H,2,"0")},m:function B(z,Y){if(z.date()1)return B(X[0])}else{var L=z.name;$[L]=z,H=L}return!Q&&H&&(_=H),H||!Q&&_},R=function(B,z){if(k(B))return B.clone();var Y=typeof z=="object"?z:{};return Y.date=B,Y.args=arguments,new U(Y)},F=C;F.l=I,F.i=k,F.w=function(B,z){return R(B,{locale:z.$L,utc:z.$u,x:z.$x,$offset:z.$offset})};var U=function(){function B(Y){this.$L=I(Y.locale,null,!0),this.parse(Y),this.$x=this.$x||Y.x||{},this[E]=!0}var z=B.prototype;return z.parse=function(Y){this.$d=function(Q){var H=Q.date,J=Q.utc;if(H===null)return new Date(NaN);if(F.u(H))return new Date;if(H instanceof Date)return new Date(H);if(typeof H=="string"&&!/Z$/i.test(H)){var X=H.match(x);if(X){var L=X[2]-1||0,K=(X[7]||"0").substring(0,3);return J?new Date(Date.UTC(X[1],L,X[3]||1,X[4]||0,X[5]||0,X[6]||0,K)):new Date(X[1],L,X[3]||1,X[4]||0,X[5]||0,X[6]||0,K)}}return new Date(H)}(Y),this.init()},z.init=function(){var Y=this.$d;this.$y=Y.getFullYear(),this.$M=Y.getMonth(),this.$D=Y.getDate(),this.$W=Y.getDay(),this.$H=Y.getHours(),this.$m=Y.getMinutes(),this.$s=Y.getSeconds(),this.$ms=Y.getMilliseconds()},z.$utils=function(){return F},z.isValid=function(){return this.$d.toString()!==v},z.isSame=function(Y,Q){var H=R(Y);return this.startOf(Q)<=H&&H<=this.endOf(Q)},z.isAfter=function(Y,Q){return R(Y)25){var u=i(this).startOf(r).add(1,r).date(c),f=i(this).endOf(n);if(u.isBefore(f))return 1}var p=i(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),m=this.diff(p,n,!0);return m<0?i(this).startOf("week").week():Math.ceil(m)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(TL);var UAe=TL.exports;const WAe=Bt(UAe);var kL={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(yo,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},l=function(v){return(v=+v)+(v>68?1900:2e3)},c=function(v){return function(x){this[v]=+x}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(x){if(!x||x==="Z")return 0;var g=x.match(/([+-]|\d\d)/g),y=60*g[1]+(+g[2]||0);return y===0?0:g[0]==="+"?-y:y}(v)}],f=function(v){var x=s[v];return x&&(x.indexOf?x:x.s.concat(x.f))},p=function(v,x){var g,y=s.meridiem;if(y){for(var w=1;w<=24;w+=1)if(v.indexOf(y(w,0,x))>-1){g=w>12;break}}else g=v===(x?"pm":"PM");return g},m={A:[i,function(v){this.afternoon=p(v,!1)}],a:[i,function(v){this.afternoon=p(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[o,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[o,c("day")],Do:[i,function(v){var x=s.ordinal,g=v.match(/\d+/);if(this.day=g[0],x)for(var y=1;y<=31;y+=1)x(y).replace(/\[|\]/g,"")===v&&(this.day=y)}],M:[a,c("month")],MM:[o,c("month")],MMM:[i,function(v){var x=f("months"),g=(f("monthsShort")||x.map(function(y){return y.slice(0,3)})).indexOf(v)+1;if(g<1)throw new Error;this.month=g%12||g}],MMMM:[i,function(v){var x=f("months").indexOf(v)+1;if(x<1)throw new Error;this.month=x%12||x}],Y:[/[+-]?\d+/,c("year")],YY:[o,function(v){this.year=l(v)}],YYYY:[/\d{4}/,c("year")],Z:u,ZZ:u};function b(v){var x,g;x=v,g=s&&s.formats;for(var y=(v=x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,R,F){var U=F&&F.toUpperCase();return R||g[F]||n[F]||g[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(G,B,z){return B||z.slice(1)})})).match(r),w=y.length,C=0;C-1)return new Date((Q==="X"?1e3:1)*Y);var J=b(Q)(Y),X=J.year,L=J.month,K=J.day,q=J.hours,D=J.minutes,N=J.seconds,V=J.milliseconds,Z=J.zone,re=new Date,le=K||(X||L?1:re.getDate()),xe=X||re.getFullYear(),fe=0;X&&!L||(fe=L>0?L-1:re.getMonth());var ge=q||0,he=D||0,_e=N||0,ve=V||0;return Z?new Date(Date.UTC(xe,fe,le,ge,he,_e,ve+60*Z.offset*1e3)):H?new Date(Date.UTC(xe,fe,le,ge,he,_e,ve)):new Date(xe,fe,le,ge,he,_e,ve)}catch{return new Date("")}}(_,k,$),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),F&&_!=this.format(k)&&(this.$d=new Date("")),s={}}else if(k instanceof Array)for(var G=k.length,B=1;B<=G;B+=1){E[1]=k[B-1];var z=g.apply(this,E);if(z.isValid()){this.$d=z.$d,this.$L=z.$L,this.init();break}B===G&&(this.$d=new Date(""))}else w.call(this,C)}}})})(kL);var HAe=kL.exports;const GAe=Bt(HAe);var OL={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(yo,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,a){var i=o.prototype,s=i.format;a.en.formats=n,i.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,u=function(f,p){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(m,b,v){var x=v&&v.toUpperCase();return b||p[v]||n[v]||p[x].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,y,w){return y||w.slice(1)})})}(l,c===void 0?{}:c);return s.call(this,u)}}})})(OL);var qAe=OL.exports;const YAe=Bt(qAe);var RL={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(yo,function(){return function(n,r,o){r.prototype.isBetween=function(a,i,s,l){var c=o(a),u=o(i),f=(l=l||"()")[0]==="(",p=l[1]===")";return(f?this.isAfter(c,s):!this.isBefore(c,s))&&(p?this.isBefore(u,s):!this.isAfter(u,s))||(f?this.isBefore(c,s):!this.isAfter(c,s))&&(p?this.isAfter(u,s):!this.isBefore(u,s))}}})})(RL);var KAe=RL.exports;const JAe=Bt(KAe);br.extend(GAe);br.extend(YAe);br.extend(JAe);const ZAe=Q6(["Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale"]),XAe={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},QAe={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},Ex=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(` +`),dM=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(` +`),e3e=(e,t)=>t?(...n)=>e(...n).locale(t):e;class G2{constructor({locale:t,formats:n,instance:r}={}){var o;this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.rawDayJsInstance=void 0,this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=XAe,this.setLocaleToValue=a=>{const i=this.getCurrentLocaleCode();return i===a.locale()?a:a.locale(i)},this.hasUTCPlugin=()=>typeof br.utc<"u",this.hasTimezonePlugin=()=>typeof br.tz<"u",this.isSame=(a,i,s)=>{const l=this.setTimezone(i,this.getTimezone(a));return a.format(s)===l.format(s)},this.cleanTimezone=a=>{switch(a){case"default":return;case"system":return br.tz.guess();default:return a}},this.createSystemDate=a=>{if(this.rawDayJsInstance)return this.rawDayJsInstance(a);if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const i=br.tz.guess();return i!=="UTC"?br.tz(a,i):br(a)}return br(a)},this.createUTCDate=a=>{if(!this.hasUTCPlugin())throw new Error(Ex);return br.utc(a)},this.createTZDate=(a,i)=>{if(!this.hasUTCPlugin())throw new Error(Ex);if(!this.hasTimezonePlugin())throw new Error(dM);const s=a!==void 0&&!a.endsWith("Z");return br(a).tz(this.cleanTimezone(i),s)},this.getLocaleFormats=()=>{const a=br.Ls,i=this.locale||"en";let s=a[i];return s===void 0&&(ZAe(),s=a.en),s.formats},this.adjustOffset=a=>{if(!this.hasTimezonePlugin())return a;const i=this.getTimezone(a);if(i!=="UTC"){var s,l;const c=a.tz(this.cleanTimezone(i),!0);return((s=c.$offset)!=null?s:0)===((l=a.$offset)!=null?l:0)?a:c}return a},this.date=a=>a===null?null:this.dayjs(a),this.dateWithTimezone=(a,i)=>{if(a===null)return null;let s;return i==="UTC"?s=this.createUTCDate(a):i==="system"||i==="default"&&!this.hasTimezonePlugin()?s=this.createSystemDate(a):s=this.createTZDate(a,i),this.locale===void 0?s:s.locale(this.locale)},this.getTimezone=a=>{if(this.hasTimezonePlugin()){var i;const s=(i=a.$x)==null?void 0:i.$timezone;if(s)return s}return this.hasUTCPlugin()&&a.isUTC()?"UTC":"system"},this.setTimezone=(a,i)=>{if(this.getTimezone(a)===i)return a;if(i==="UTC"){if(!this.hasUTCPlugin())throw new Error(Ex);return a.utc()}if(i==="system")return a.local();if(!this.hasTimezonePlugin()){if(i==="default")return a;throw new Error(dM)}return br.tz(a,this.cleanTimezone(i))},this.toJsDate=a=>a.toDate(),this.parseISO=a=>this.dayjs(a),this.toISO=a=>a.toISOString(),this.parse=(a,i)=>a===""?null:this.dayjs(a,i,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=a=>{const i=this.getLocaleFormats(),s=l=>l.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(c,u,f)=>u||f.slice(1));return a.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(l,c,u)=>{const f=u&&u.toUpperCase();return c||i[u]||s(i[f])})},this.getFormatHelperText=a=>this.expandFormat(a).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=a=>a===null,this.isValid=a=>this.dayjs(a).isValid(),this.format=(a,i)=>this.formatByString(a,this.formats[i]),this.formatByString=(a,i)=>this.dayjs(a).format(i),this.formatNumber=a=>a,this.getDiff=(a,i,s)=>a.diff(i,s),this.isEqual=(a,i)=>a===null&&i===null?!0:this.dayjs(a).toDate().getTime()===this.dayjs(i).toDate().getTime(),this.isSameYear=(a,i)=>this.isSame(a,i,"YYYY"),this.isSameMonth=(a,i)=>this.isSame(a,i,"YYYY-MM"),this.isSameDay=(a,i)=>this.isSame(a,i,"YYYY-MM-DD"),this.isSameHour=(a,i)=>a.isSame(i,"hour"),this.isAfter=(a,i)=>a>i,this.isAfterYear=(a,i)=>this.hasUTCPlugin()?!this.isSameYear(a,i)&&a.utc()>i.utc():a.isAfter(i,"year"),this.isAfterDay=(a,i)=>this.hasUTCPlugin()?!this.isSameDay(a,i)&&a.utc()>i.utc():a.isAfter(i,"day"),this.isBefore=(a,i)=>athis.hasUTCPlugin()?!this.isSameYear(a,i)&&a.utc()this.hasUTCPlugin()?!this.isSameDay(a,i)&&a.utc()a>=i&&a<=s,this.startOfYear=a=>this.adjustOffset(a.startOf("year")),this.startOfMonth=a=>this.adjustOffset(a.startOf("month")),this.startOfWeek=a=>this.adjustOffset(a.startOf("week")),this.startOfDay=a=>this.adjustOffset(a.startOf("day")),this.endOfYear=a=>this.adjustOffset(a.endOf("year")),this.endOfMonth=a=>this.adjustOffset(a.endOf("month")),this.endOfWeek=a=>this.adjustOffset(a.endOf("week")),this.endOfDay=a=>this.adjustOffset(a.endOf("day")),this.addYears=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"year"):a.add(i,"year")),this.addMonths=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"month"):a.add(i,"month")),this.addWeeks=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"week"):a.add(i,"week")),this.addDays=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"day"):a.add(i,"day")),this.addHours=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"hour"):a.add(i,"hour")),this.addMinutes=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"minute"):a.add(i,"minute")),this.addSeconds=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"second"):a.add(i,"second")),this.getYear=a=>a.year(),this.getMonth=a=>a.month(),this.getDate=a=>a.date(),this.getHours=a=>a.hour(),this.getMinutes=a=>a.minute(),this.getSeconds=a=>a.second(),this.getMilliseconds=a=>a.millisecond(),this.setYear=(a,i)=>this.adjustOffset(a.set("year",i)),this.setMonth=(a,i)=>this.adjustOffset(a.set("month",i)),this.setDate=(a,i)=>this.adjustOffset(a.set("date",i)),this.setHours=(a,i)=>this.adjustOffset(a.set("hour",i)),this.setMinutes=(a,i)=>this.adjustOffset(a.set("minute",i)),this.setSeconds=(a,i)=>this.adjustOffset(a.set("second",i)),this.setMilliseconds=(a,i)=>this.adjustOffset(a.set("millisecond",i)),this.getDaysInMonth=a=>a.daysInMonth(),this.getNextMonth=a=>this.addMonths(a,1),this.getPreviousMonth=a=>this.addMonths(a,-1),this.getMonthArray=a=>{const s=[a.startOf("year")];for(;s.length<12;){const l=s[s.length-1];s.push(this.addMonths(l,1))}return s},this.mergeDateAndTime=(a,i)=>a.hour(i.hour()).minute(i.minute()).second(i.second()),this.getWeekdays=()=>{const a=this.dayjs().startOf("week");return[0,1,2,3,4,5,6].map(i=>this.formatByString(this.addDays(a,i),"dd"))},this.getWeekArray=a=>{const i=this.setLocaleToValue(a),s=i.startOf("month").startOf("week"),l=i.endOf("month").endOf("week");let c=0,u=s;const f=[];for(;ua.week(),this.getYearRange=(a,i)=>{const s=a.startOf("year"),l=i.endOf("year"),c=[];let u=s;for(;ua==="am"?"AM":"PM",this.rawDayJsInstance=r,this.dayjs=e3e((o=this.rawDayJsInstance)!=null?o:br,t),this.locale=t,this.formats=T({},QAe,n),br.extend(WAe)}}var q2={},t3e=mc;Object.defineProperty(q2,"__esModule",{value:!0});var DL=q2.default=void 0,n3e=t3e(vc()),r3e=O,o3e=(0,n3e.default)((0,r3e.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");DL=q2.default=o3e;const a3e=({schema:e,rootSchema:t,visible:n,renderers:r,cells:o,path:a,uischemas:i,uischema:s})=>{const l=d5(i)(e,s.scope,a);if(l)return M.createElement(Pn,{xsUp:!n},M.createElement(Po,{schema:e,uischema:l,path:a,renderers:r,cells:o}));const c=Dy(e.allOf,t,"allOf",s,a,i);return M.createElement(Pn,{xsUp:!n},c.map((u,f)=>M.createElement(Po,{key:f,schema:u.schema,uischema:u.uischema,path:a,renderers:r,cells:o})))},i3e=mn(3,KN);var s3e=ime(a3e);class ML extends M.Component{render(){const{schema:t,combinatorKeyword:n,path:r}=this.props,o=Ike(t,n),a=Ql.uiSchema(o,"VerticalLayout");let i=!1;return a!==null&&BN(a)&&(i=a.elements.length>0),i?M.createElement(Po,{schema:o,path:r,uischema:a}):null}}const l3e=({schema:e,rootSchema:t,indexOfFittingSchema:n,visible:r,path:o,renderers:a,cells:i,uischema:s,uischemas:l})=>{const[c,u]=S.useState(n||0),f=S.useCallback((b,v)=>u(v),[u]),p="anyOf",m=Dy(e.anyOf,t,p,s,o,l);return M.createElement(Pn,{xsUp:!r},M.createElement(ML,{schema:e,combinatorKeyword:p,path:o}),M.createElement(D0,{value:c,onChange:f},m.map(b=>M.createElement(Tp,{key:b.label,label:b.label}))),m.map((b,v)=>c===v&&M.createElement(Po,{key:v,schema:b.schema,uischema:b.uischema,path:o,renderers:a,cells:i})))};z5(l3e);const c3e=de($d)({borderBottom:"none"}),Mp=({children:e,...t})=>M.createElement(c3e,Object.assign({},t),e),u3e=de(Yj)(({theme:e})=>({color:e.palette.error.main})),IL=({errorMessages:e,id:t})=>M.createElement(hc,{id:t,title:e},M.createElement(u3e,{badgeContent:e.split(` +`).length},M.createElement(P2,{color:"inherit"}))),d3e={paddingLeft:0,paddingRight:0},f3e=M.memo(function({numColumns:t,errors:n,label:r,path:o,addItem:a,schema:i,enabled:s,translations:l}){return M.createElement(ll,null,M.createElement(Mp,{colSpan:t},M.createElement(en,{container:!0,justifyContent:"flex-start",alignItems:"center",spacing:2},M.createElement(en,{item:!0},M.createElement(gn,{variant:"h6"},r)),M.createElement(en,{item:!0},n.length!==0&&M.createElement(en,{item:!0},M.createElement(IL,{id:"tooltip-validation",errorMessages:n}))))),s?M.createElement(Mp,{align:"right",style:d3e},M.createElement(hc,{id:"tooltip-add",title:l.addTooltip,placement:"bottom"},M.createElement(tr,{"aria-label":l.addAriaLabel,onClick:a(o,es(i)),size:"large"},M.createElement(_2,null)))):null)}),fM={fixedCell:{width:"150px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"},fixedCellSmall:{width:"50px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"}},AL=(e,t,n,r,o)=>{if(t.type==="object")return NL(t).map(a=>{var l,c;const i=ir.compose(n,a),s={propName:a,schema:t,title:((c=(l=t.properties)==null?void 0:l[a])==null?void 0:c.title)??yy(a),rowPath:n,cellPath:i,enabled:r,cells:o};return M.createElement(e,Object.assign({key:i},s))});{const a={schema:t,rowPath:n,cellPath:n,enabled:r};return M.createElement(e,Object.assign({key:n},a))}},NL=e=>e.type==="object"&&typeof e.properties=="object"?Object.keys(e.properties).filter(t=>e.properties[t].type!=="array"):[""],p3e=({numColumns:e,translations:t})=>M.createElement(ll,null,M.createElement(Mp,{colSpan:e},M.createElement(gn,{align:"center"},t.noDataMessage))),h3e=M.memo(function({title:t}){return M.createElement($d,null,t)}),m3e=(e,t)=>{const n=t.rowPath+(t.schema.type==="object"?"."+t.propName:""),r=u_(_6(KS(n,t.schema,o=>o===n)(e.core.errors).map(o=>o.message)));return{rowPath:t.rowPath,propName:t.propName,schema:t.schema,rootSchema:e.core.schema,errors:r,path:n,enabled:t.enabled,cells:t.cells||e.cells,renderers:t.renderers||e.renderers}},pM=e=>({type:"Control",scope:e,label:!1}),v3e=M.memo(function({path:t,propName:n,schema:r,rootSchema:o,errors:a,enabled:i,renderers:s,cells:l,isValid:c}){return M.createElement(Mp,null,r.properties?M.createElement(ec,{schema:_o.schema(r,`#/properties/${Xl(n)}`,o),uischema:pM(`#/properties/${Xl(n)}`),path:t,enabled:i,renderers:s,cells:l}):M.createElement(ec,{schema:r,uischema:pM("#"),path:t,enabled:i,renderers:s,cells:l}),M.createElement(fr,{error:!c},!c&&a))}),g3e=e=>{const t=pc(),n=m3e(t,e),r=Mt(n.errors);return M.createElement(v3e,Object.assign({},n,{isValid:r}))},y3e=({childPath:e,schema:t,rowIndex:n,openDeleteDialog:r,moveUpCreator:o,moveDownCreator:a,enableUp:i,enableDown:s,showSortButtons:l,enabled:c,cells:u,path:f,translations:p})=>{const m=S.useMemo(()=>o(f,n),[o,f,n]),b=S.useMemo(()=>a(f,n),[a,f,n]);return M.createElement(ll,{key:e,hover:!0},AL(g3e,t,e,c,u),c?M.createElement(Mp,{style:l?fM.fixedCell:fM.fixedCellSmall},M.createElement(en,{container:!0,direction:"row",justifyContent:"flex-end",alignItems:"center"},l?M.createElement(S.Fragment,null,M.createElement(en,{item:!0},M.createElement(tr,{"aria-label":p.upAriaLabel,onClick:m,disabled:!i,size:"large"},M.createElement(A0,null))),M.createElement(en,{item:!0},M.createElement(tr,{"aria-label":p.downAriaLabel,onClick:b,disabled:!s,size:"large"},M.createElement(I0,null)))):null,M.createElement(en,{item:!0},M.createElement(tr,{"aria-label":p.removeAriaLabel,onClick:()=>r(e,n),size:"large"},M.createElement(M0,null))))):null)},b3e=M.memo(y3e),x3e=({data:e,path:t,schema:n,openDeleteDialog:r,moveUp:o,moveDown:a,uischema:i,config:s,enabled:l,cells:c,translations:u})=>{if(e===0)return M.createElement(p3e,{numColumns:NL(n).length+1,translations:u});const p=tn({},s,i.options);return M.createElement(M.Fragment,null,hd(e).map(m=>{const b=ir.compose(t,`${m}`);return M.createElement(b3e,{key:b,childPath:b,rowIndex:m,schema:n,openDeleteDialog:r,moveUpCreator:o,moveDownCreator:a,enableUp:m!==0,enableDown:m!==e-1,showSortButtons:p.showSortButtons||p.showArrayTableSortButtons,enabled:l,cells:c,path:t,translations:u})}))};let w3e=class extends M.Component{constructor(){super(...arguments),this.addItem=(t,n)=>this.props.addItem(t,n)}render(){const{label:t,path:n,schema:r,rootSchema:o,uischema:a,errors:i,openDeleteDialog:s,visible:l,enabled:c,cells:u,translations:f}=this.props,p=a,m=r.type==="object",b=m?AL(h3e,r,n,c,u):void 0;return M.createElement(Pn,{xsUp:!l},M.createElement(C6,null,M.createElement(S6,null,M.createElement(f3e,{errors:i,label:t,addItem:this.addItem,numColumns:m?b.length:1,path:n,uischema:p,schema:r,rootSchema:o,enabled:c,translations:f}),m&&M.createElement(ll,null,b,c?M.createElement($d,null):null)),M.createElement($6,null,M.createElement(x3e,Object.assign({openDeleteDialog:s,translations:f},this.props)))))}};const C3e=M.memo(function({open:t,onClose:n,onConfirm:r,onCancel:o,title:a,message:i,acceptText:s,declineText:l}){return M.createElement(E0,{open:t,keepMounted:!0,onClose:n,"aria-labelledby":"alert-dialog-confirmdelete-title","aria-describedby":"alert-dialog-confirmdelete-description"},M.createElement(h2,{id:"alert-dialog-confirmdelete-title"},a),M.createElement(T0,null,M.createElement(p2,{id:"alert-dialog-confirmdelete-description"},i)),M.createElement(P0,null,M.createElement(Uo,{onClick:o,color:"primary"},l),M.createElement(Uo,{onClick:r,color:"primary"},s)))}),$3e=e=>{const[t,n]=S.useState(!1),[r,o]=S.useState(void 0),[a,i]=S.useState(void 0),{removeItems:s,visible:l}=e,c=S.useCallback((m,b)=>{n(!0),o(m),i(b)},[n,o,i]),u=S.useCallback(()=>n(!1),[n]),f=S.useCallback(()=>{const m=r.substring(0,r.lastIndexOf("."));s(m,[a])(),n(!1)},[n,r,a]),p=S.useCallback(()=>n(!1),[n]);return M.createElement(Pn,{xsUp:!l},M.createElement(w3e,Object.assign({},e,{openDeleteDialog:c})),M.createElement(C3e,{open:t,onCancel:u,onConfirm:f,onClose:p,acceptText:e.translations.deleteDialogAccept,declineText:e.translations.deleteDialogDecline,title:e.translations.deleteDialogTitle,message:e.translations.deleteDialogMessage}))};My($3e);const ul=()=>{const[e,t]=S.useState(!1),n=S.useCallback(()=>t(!0),[]),r=S.useCallback(()=>t(!1),[]);return[e,n,r]},jL=e=>{const{description:t,errors:n,visible:r,required:o,label:a,data:i,className:s,id:l,enabled:c,uischema:u,path:f,handleChange:p,options:m,config:b,getOptionLabel:v,renderOption:x,filterOptions:g,isValid:y}=e,w=tn({},b,u.options),[C,_]=M.useState(i??""),[$,E,k]=ul(),I=m.find(G=>G.value===i)??null,R=!Eo(r,t,$,w.showUnfocusedDescription),F=R?t:y?null:n,U=R&&!y?n:null;return M.createElement(Pn,{xsUp:!r},M.createElement(_we,{className:s,id:l,disabled:!c,value:I,onChange:(G,B)=>{p(f,B==null?void 0:B.value)},inputValue:C,onInputChange:(G,B)=>{_(B)},autoHighlight:!0,autoSelect:!0,autoComplete:!0,fullWidth:!0,options:m,getOptionLabel:v||(G=>G==null?void 0:G.label),freeSolo:!1,renderInput:G=>M.createElement(mh,Object.assign({label:a,variant:"standard",type:"text",inputProps:G.inputProps,inputRef:G.InputProps.ref,autoFocus:w.focus,disabled:!c},G,{id:l+"-input",required:o&&!w.hideRequiredAsterisk,error:!y,fullWidth:!w.trim,InputLabelProps:i?{shrink:!0}:void 0,onFocus:E,onBlur:k,focused:$})),renderOption:x,filterOptions:g}),M.createElement(fr,{error:!y&&!R},F),M.createElement(fr,{error:!y},U))},Y2=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c,inputProps:u}=t,f=tn({},c,i.options),p=tn({},u,{autoFocus:!!f.focus}),m=!!n;return M.createElement(YCe,{checked:m,onChange:(b,v)=>l(s,v),className:r,id:o,disabled:!a,inputProps:p})});T2.extend(EOe);const K2=(e,t,n)=>r=>{if(!r){t(e,void 0);return}const o=T2(r).format(n);t(e,o)},J2=(e,t)=>{if(!e)return null;const n=T2(e,t);return n.toString()==="Invalid Date"?null:n},S3e=(e,t,n,r,o,a)=>e.map((i,s)=>M.createElement(en,{item:!0,key:`${n}-${s}`,xs:!0},M.createElement(Po,{uischema:i,schema:t,path:n,enabled:r,renderers:o,cells:a}))),_3e=({visible:e,elements:t,schema:n,path:r,enabled:o,direction:a,renderers:i,cells:s})=>Mt(t)?null:M.createElement(Pn,{xsUp:!e},M.createElement(en,{container:!0,direction:a,spacing:a==="row"?2:0},S3e(t,n,r,o,i,s))),wh=M.memo(_3e),LL=e=>function(n){const r=pc(),o=gd({jsonforms:{...r}});return M.createElement(e,Object.assign({},n,{ajv:o}))},E3e=e=>e.target.value,bc=(e,t,n,r,o=E3e,a=300)=>{const[i,s]=S.useState(n??t);S.useEffect(()=>{s(n??t)},[n]);const l=S.useCallback(M5(f=>e(r,f),a),[e,r,a]),c=S.useCallback(f=>{const p=o(f);s(p??t),l(p)},[l,o]),u=S.useCallback(()=>{s(t),e(r,void 0)},[t,e,r]);return[i,c,u]},P3e={"enum.none":"None"},T3e=e=>e===""?void 0:parseInt(e,10),k3e=e=>T3e(e.target.value),FL=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c}=t,u={step:"1"},f=tn({},c,i.options),[p,m]=bc(l,"",n,s,k3e);return M.createElement(cs,{type:"number",value:p,onChange:m,className:r,id:o,disabled:!a,autoFocus:f.focus,inputProps:u,fullWidth:!0})}),O3e=e=>e===""?void 0:parseFloat(e),R3e=e=>O3e(e.target.value),zL=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c}=t,u={step:"0.1"},f=tn({},c,i.options),[p,m]=bc(l,"",n,s,R3e);return M.createElement(cs,{type:"number",value:p,onChange:m,className:r,id:o,disabled:!a,autoFocus:f.focus,inputProps:u,fullWidth:!0})}),D3e=M.memo(function(t){const{className:n,id:r,enabled:o,uischema:a,isValid:i,path:s,handleChange:l,schema:c,config:u}=t,f=c.maxLength,p=tn({},u,a.options);let m;p.restrict?m={maxLength:f}:m={};const b=t.toFormatted(t.data),v=S.useCallback(y=>t.fromFormatted(y.currentTarget.value),[t.fromFormatted]),[x,g]=bc(l,"",b,s,v);return M.createElement(cs,{type:"text",value:x,onChange:g,className:n,id:r,disabled:!o,autoFocus:p.focus,multiline:p.multi,fullWidth:!p.trim||f===void 0,inputProps:m,error:!i})}),M3e=e=>e.target.value===""?void 0:e.target.value,BL=M.memo(function(t){var R,F,U;const[n,r]=S.useState(!1),{data:o,config:a,className:i,id:s,enabled:l,uischema:c,isValid:u,path:f,handleChange:p,schema:m,muiInputProps:b,inputComponent:v}=t,x=m.maxLength,g=tn({},a,c.options);let y;g.restrict?y={maxLength:x}:y={},y=tn(y,b),g.trim&&x!==void 0&&(y.size=x);const[w,C,_]=bc(p,"",o,f,M3e),$=()=>r(!0),E=()=>r(!1),k=nr(),I={background:((U=(F=(R=k.jsonforms)==null?void 0:R.input)==null?void 0:F.delete)==null?void 0:U.background)||k.palette.background.default,borderRadius:"50%"};return M.createElement(cs,{type:g.format==="password"?"password":"text",value:w,onChange:C,className:i,id:s,disabled:!l,autoFocus:g.focus,multiline:g.multi,fullWidth:!g.trim||x===void 0,inputProps:y,error:!u,onPointerEnter:$,onPointerLeave:E,endAdornment:M.createElement(v2,{position:"end",style:{display:!n||!l||o===void 0?"none":"flex",position:"absolute",right:0}},M.createElement(tr,{"aria-label":"Clear input field",onClick:_,size:"large"},M.createElement(k6,{style:I}))),inputComponent:v})}),I3e=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c}=t,u=tn({},c,i.options),[f,p]=bc(l,"",n,s);return M.createElement(cs,{type:"time",value:f,onChange:p,className:r,id:o,disabled:!a,autoFocus:u.focus,fullWidth:!0})}),U0=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,schema:i,uischema:s,path:l,handleChange:c,options:u,config:f,t:p}=t,m=tn({},f,s.options),b=S.useMemo(()=>p("enum.none",P3e["enum.none"],{schema:i,uischema:s,path:l}),[p,i,s,l]);return M.createElement(b6,{className:r,id:o,disabled:!a,autoFocus:m.focus,value:n!==void 0?n:"",onChange:v=>c(l,v.target.value||void 0),fullWidth:!0,variant:"standard"},[M.createElement(jg,{value:"",key:"jsonforms.enum.none"},M.createElement("em",null,b))].concat(u.map(v=>M.createElement(jg,{value:v.value,key:v.value},v.label))))}),VL=M.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c,inputProps:u}=t,f=tn({},c,i.options),p=tn({},u,{autoFocus:!!f.focus}),m=!!n;return M.createElement(JPe,{checked:m,onChange:(b,v)=>l(s,v),className:r,id:o,disabled:!a,inputProps:p})}),A3e=({schema:e,visible:t,errors:n,path:r,options:o,data:a,addItem:i,removeItem:s,handleChange:l,...c})=>M.createElement(Pn,{xlUp:!t},M.createElement(fh,{component:"fieldset"},M.createElement(t6,{row:!0},o.map((u,f)=>{const p=ir.compose(r,`${f}`),m=a!=null&&a.includes(u.value)?u.value:void 0;return M.createElement(k0,{id:u.value,key:u.value,control:M.createElement(Y2,Object.assign({key:"checkbox-"+u.value,isValid:Mt(n),path:p,handleChange:(b,v)=>v?i(r,u.value):s(r,u.value),data:m,errors:n,schema:e,visible:t},c)),label:u.label})})),M.createElement(fr,{error:!0},n)));dme(A3e);const N3e=({renderers:e,cells:t,uischemas:n,schema:r,label:o,path:a,visible:i,enabled:s,uischema:l,rootSchema:c})=>{const u=S.useMemo(()=>rh(n,r,l.scope,a,()=>Mt(a)?Ql.uiSchema(r,"VerticalLayout"):{...Ql.uiSchema(r,"Group"),label:o},l,c),[n,r,l.scope,a,o,l,c]);return M.createElement(Pn,{xsUp:!i},M.createElement(Po,{visible:i,enabled:s,schema:r,uischema:u,path:a,renderers:e,cells:t}))};var j3e=sme(N3e);const L3e=({handleChange:e,schema:t,path:n,renderers:r,cells:o,rootSchema:a,id:i,visible:s,indexOfFittingSchema:l,uischema:c,uischemas:u,data:f})=>{const[p,m]=S.useState(!1),[b,v]=S.useState(l||0),[x,g]=S.useState(0),y=S.useCallback(()=>m(!1),[m]),w=S.useCallback(()=>{m(!1)},[m]),C=Dy(t.oneOf,a,"oneOf",c,n,u),_=k=>{e(n,es(C[k].schema)),v(k)},$=S.useCallback(()=>{_(x),m(!1)},[e,es,x]),E=S.useCallback((k,I)=>{g(I),Mt(f)?_(I):m(!0)},[m,v,f]);return M.createElement(Pn,{xsUp:!s},M.createElement(ML,{schema:t,combinatorKeyword:"oneOf",path:n}),M.createElement(D0,{value:b,onChange:E},C.map(k=>M.createElement(Tp,{key:k.label,label:k.label}))),C.map((k,I)=>b===I&&M.createElement(Po,{key:I,schema:k.schema,uischema:k.uischema,path:n,renderers:r,cells:o})),M.createElement(E0,{open:p,onClose:y,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},M.createElement(h2,{id:"alert-dialog-title"},"Clear form?"),M.createElement(T0,null,M.createElement(p2,{id:"alert-dialog-description"},"Your data will be cleared if you navigate away from this tab. Do you want to proceed?")),M.createElement(P0,null,M.createElement(Uo,{onClick:w,color:"primary"},"No"),M.createElement(Uo,{onClick:$,color:"primary",autoFocus:!0,id:`oneOf-${i}-confirm-yes`},"Yes"))))},F3e=mn(3,ZN);var z3e=ame(L3e);const B3e=({text:e,visible:t})=>M.createElement(Pn,{xsUp:!t},M.createElement(gn,{variant:"h6"},e));U5(B3e);const UL=M.memo(function({label:t,errors:n,addItem:r,path:o,enabled:a,createDefault:i,translations:s}){return M.createElement(ITe,{disableGutters:!0},M.createElement(en,{container:!0,alignItems:"center",justifyContent:"space-between"},M.createElement(en,{item:!0},M.createElement(en,{container:!0,justifyContent:"flex-start",alignItems:"center",spacing:2},M.createElement(en,{item:!0},M.createElement(gn,{variant:"h6"},t)),M.createElement(en,{item:!0},n.length!==0&&M.createElement(en,{item:!0},M.createElement(IL,{id:"tooltip-validation",errorMessages:n}))))),a&&M.createElement(en,{item:!0},M.createElement(en,{container:!0},M.createElement(en,{item:!0},M.createElement(hc,{id:"tooltip-add",title:s.addTooltip,placement:"bottom"},M.createElement(tr,{"aria-label":s.addTooltip,onClick:r(o,i()),size:"large"},M.createElement(_2,null))))))))}),V3e=({index:e,childLabel:t,selected:n,enabled:r,handleSelect:o,removeItem:a,path:i,translations:s})=>M.createElement(c6,{button:!0,selected:n,onClick:o(e)},M.createElement(B_e,null,M.createElement(Gj,{"aria-label":"Index"},e+1)),M.createElement(K_e,{primary:t}),r&&M.createElement(l6,null,M.createElement(tr,{"aria-label":s.removeAriaLabel,onClick:a(i,e),size:"large"},M.createElement(M0,null))));var U3e=lme(V3e);const W3e=({uischemas:e,schema:t,uischema:n,path:r,enabled:o,errors:a,visible:i,label:s,required:l,removeItems:c,addItem:u,data:f,renderers:p,cells:m,config:b,rootSchema:v,translations:x})=>{const[g,y]=S.useState(void 0),w=S.useCallback((k,I)=>()=>{c(k,[I])(),g===I?y(void 0):g>I&&y(g-1)},[c,y]),C=S.useCallback(k=>()=>y(k),[y]),_=S.useCallback(()=>es(t),[es]),$=S.useMemo(()=>rh(e,t,n.scope,r,void 0,n,v),[e,t,n.scope,r,n,v]),E=tn({},b,n.options);return M.useEffect(()=>{y(void 0)},[t]),M.createElement(Pn,{xsUp:!i},M.createElement(UL,{translations:x,label:ky(s,l,E.hideRequiredAsterisk),errors:a,path:r,enabled:o,addItem:u,createDefault:_}),M.createElement(en,{container:!0,direction:"row",spacing:2},M.createElement(en,{item:!0,xs:3},M.createElement(g2,null,f>0?R6(hd(f),k=>M.createElement(U3e,{index:k,path:r,schema:t,enabled:o,handleSelect:C,removeItem:w,selected:g===k,key:k,translations:x})):M.createElement("p",null,"No data"))),M.createElement(en,{item:!0,xs:!0},g!==void 0?M.createElement(Po,{renderers:p,cells:m,visible:i,schema:t,uischema:$,path:fc(r,`${g}`)}):M.createElement(gn,{variant:"h6"},x.noSelection))))};My(W3e);const Ed=e=>{const[t,n,r]=ul(),{id:o,description:a,errors:i,label:s,uischema:l,visible:c,required:u,config:f,input:p}=e,m=i.length===0,b=tn({},f,l.options),v=!Eo(c,a,t,b.showUnfocusedDescription),x=v?a:m?null:i,g=v&&!m?i:null,y=p;return M.createElement(Pn,{xsUp:!c},M.createElement(fh,{fullWidth:!b.trim,onFocus:n,onBlur:r,id:o,variant:"standard"},M.createElement(i6,{htmlFor:o+"-input",error:!m,required:Oy(u,b.hideRequiredAsterisk)},s),M.createElement(y,Object.assign({},e,{id:o+"-input",isValid:m,visible:c})),M.createElement(fr,{error:!m&&!v},x),M.createElement(fr,{error:!m},g)))},H3e=e=>e.find(t=>t.enum!==void 0&&(t.type==="string"||t.type===void 0)),G3e=e=>e.find(t=>t.type==="string"&&t.enum===void 0),q3e=e=>{const{data:t,config:n,className:r,id:o,enabled:a,uischema:i,isValid:s,path:l,handleChange:c,schema:u}=e,f=H3e(u.anyOf),m=G3e(u.anyOf).maxLength,b=S.useMemo(()=>tn({},n,i.options),[n,i.options]),v=S.useMemo(()=>{let w={};return b.restrict&&(w={maxLength:m}),b.trim&&m!==void 0&&(w.size=m),w.list=e.id+"datalist",w},[b,e.id]),[x,g]=bc(c,"",t,l),y=M.createElement("datalist",{id:e.id+"datalist"},f.enum.map(w=>M.createElement("option",{value:w,key:w})));return M.createElement(cs,{type:"text",value:x,onChange:g,className:r,id:o,disabled:!a,autoFocus:b.focus,fullWidth:!b.trim||m===void 0,inputProps:v,error:!s,endAdornment:y})};class Y3e extends A5{render(){return M.createElement(Ed,Object.assign({},this.props,{input:q3e}))}}lo(Y3e);const K3e=({data:e,visible:t,label:n,id:r,enabled:o,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,path:u,config:f,description:p})=>{const m=c.length===0,b=tn({},f,a.options),v=!Eo(t,p,!1,b.showUnfocusedDescription),x=!v&&!Eo(t,p,!0,!0),g=v?p:m?null:c,y=v&&!m?c:null,w=[],C=`${r}-tip`,_=`${r}-help1`,$=`${r}-help2`;x&&w.push(C),g&&w.push(_),y&&w.push($);const E=w.join(" ");return M.createElement(Pn,{xsUp:!t},M.createElement(hc,{id:C,title:x?p:""},M.createElement(k0,{label:n,id:r,control:M.createElement(Y2,{id:`${r}-input`,isValid:Mt(c),data:e,enabled:o,visible:t,path:u,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,config:f,inputProps:{"aria-describedby":E}})})),M.createElement(fr,{id:_,error:!m&&!v},g),M.createElement(fr,{id:$,error:!m},y))};lo(K3e);const J3e=({data:e,visible:t,label:n,id:r,enabled:o,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,path:u,config:f,description:p})=>{const m=c.length===0,b=tn({},f,a.options),v=!Eo(t,p,!1,b.showUnfocusedDescription),x=!v&&!Eo(t,p,!0,!0),g=v?p:m?null:c,y=v&&!m?c:null,w=[],C=`${r}-tip`,_=`${r}-help1`,$=`${r}-help2`;x&&w.push(C),g&&w.push(_),y&&w.push($);const E=w.join(" ");return M.createElement(Pn,{xsUp:!t},M.createElement(hc,{id:C,title:x?p:""},M.createElement(k0,{label:n,id:r,control:M.createElement(VL,{id:`${r}-input`,isValid:Mt(c),data:e,enabled:o,visible:t,path:u,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,config:f,inputProps:{"aria-describedby":E}})})),M.createElement(fr,{id:_,error:!m&&!v},g),M.createElement(fr,{id:$,error:!m},y))};lo(J3e);const Z3e=e=>{const[t,n,r]=ul(),{description:o,id:a,errors:i,label:s,uischema:l,visible:c,enabled:u,required:f,path:p,handleChange:m,data:b,config:v}=e,x=i.length===0,g=tn({},v,l.options),y=!Eo(c,o,t,g.showUnfocusedDescription),w=g.dateFormat??"YYYY-MM-DD",C=g.dateSaveFormat??"YYYY-MM-DD",_=g.views??["year","day"],$=y?o:x?null:i,E=y&&!x?i:null,k=S.useMemo(()=>K2(p,m,C),[p,m,C]),I=J2(b,C);return M.createElement(Pn,{xsUp:!c},M.createElement(vh,{dateAdapter:G2},M.createElement(hAe,{label:s,value:I,onChange:k,format:w,views:_,disabled:!u,slotProps:{actionBar:({wrapperVariant:R})=>({actions:R==="desktop"?[]:["clear","cancel","accept"]}),textField:{id:a+"-input",required:f&&!g.hideRequiredAsterisk,autoFocus:g.focus,error:!x,fullWidth:!g.trim,inputProps:{type:"text"},InputLabelProps:b?{shrink:!0}:void 0,onFocus:n,onBlur:r,variant:"standard"}}}),M.createElement(fr,{error:!x&&!y},$),M.createElement(fr,{error:!x},E)))};lo(Z3e);const X3e=e=>{const[t,n,r]=ul(),{id:o,description:a,errors:i,label:s,uischema:l,visible:c,enabled:u,required:f,path:p,handleChange:m,data:b,config:v}=e,x=tn({},v,l.options),g=i.length===0,y=!Eo(c,a,t,x.showUnfocusedDescription),w=x.dateTimeFormat??"YYYY-MM-DD HH:mm",C=x.dateTimeSaveFormat??void 0,_=x.views??["year","day","hours","minutes"],$=y?a:g?null:i,E=y&&!g?i:null,k=S.useMemo(()=>K2(p,m,C),[p,m,C]),I=J2(b,C);return M.createElement(Pn,{xsUp:!c},M.createElement(vh,{dateAdapter:G2},M.createElement(BAe,{label:s,value:I,onChange:k,format:w,ampm:!!x.ampm,views:_,disabled:!u,slotProps:{actionBar:({wrapperVariant:R})=>({actions:R==="desktop"?[]:["clear","cancel","accept"]}),textField:{id:o+"-input",required:f&&!x.hideRequiredAsterisk,autoFocus:x.focus,error:!g,fullWidth:!x.trim,inputProps:{type:"text"},InputLabelProps:b?{shrink:!0}:void 0,onFocus:n,onBlur:r,variant:"standard"}}}),M.createElement(fr,{error:!g&&!y},$),M.createElement(fr,{error:!g},E)))};lo(X3e);const Q3e=e=>{const{config:t,uischema:n,errors:r}=e,o=tn({},t,n.options),a=r.length===0;return o.autocomplete===!1?M.createElement(Ed,Object.assign({},e,{input:U0})):M.createElement(jL,Object.assign({},e,{isValid:a}))};P_(ol(M.memo(Q3e)),!1);const e4e=e=>M.createElement(Ed,Object.assign({},e,{input:FL}));lo(e4e);const t4e=e=>{const[t,n,r]=ul(),{id:o,errors:a,label:i,schema:s,description:l,enabled:c,visible:u,required:f,path:p,handleChange:m,data:b,config:v}=e,x=a.length===0,g=tn({},v,e.uischema.options),[y,w]=bc(m,"",b,p),C=g.format??s.format,_=!Eo(u,l,t,g.showUnfocusedDescription);return M.createElement(Pn,{xsUp:!u},M.createElement(mh,{required:Oy(f,g.hideRequiredAsterisk),id:o+"-input",label:i,type:C,error:!x,disabled:!c,fullWidth:!g.trim,onFocus:n,onBlur:r,helperText:x?_?l:null:a,InputLabelProps:{shrink:!0},value:y,onChange:w}))};lo(t4e);const n4e=e=>M.createElement(Ed,Object.assign({},e,{input:zL}));lo(n4e);const r4e=e=>{const{config:t,uischema:n,errors:r}=e,o=tn({},t,n.options),a=r.length===0;return o.autocomplete===!1?M.createElement(Ed,Object.assign({},e,{input:U0})):M.createElement(jL,Object.assign({},e,{isValid:a}))};T_(ol(M.memo(r4e)),!1);const WL=e=>{const[t,n,r]=ul(),{config:o,id:a,label:i,required:s,description:l,errors:c,data:u,visible:f,options:p,handleChange:m,path:b,enabled:v}=e,x=c.length===0,g=tn({},o,e.uischema.options),y=!Eo(f,l,t,g.showUnfocusedDescription),w=(C,_)=>m(b,_);return M.createElement(Pn,{xsUp:!f},M.createElement(fh,{component:"fieldset",fullWidth:!g.trim,onFocus:n,onBlur:r},M.createElement(m2,{htmlFor:a,error:!x,component:"legend",required:Oy(s,g.hideRequiredAsterisk)},i),M.createElement(oEe,{value:e.data??"",onChange:w,row:!0},p.map(C=>M.createElement(k0,{value:C.value,key:C.label,control:M.createElement(tEe,{checked:u===C.value}),label:C.label,disabled:!v}))),M.createElement(fr,{error:!x},x?y?l:null:c)))},o4e=e=>M.createElement(WL,Object.assign({},e));T_(o4e);const a4e=e=>M.createElement(WL,Object.assign({},e));P_(a4e);const i4e=e=>{const[t,n,r]=ul(),{id:o,data:a,description:i,enabled:s,errors:l,label:c,schema:u,handleChange:f,visible:p,path:m,required:b,config:v}=e,x=l.length===0,g=tn({},v,e.uischema.options),y={whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",width:"100%"},w={display:"flex"},C={flexGrow:"1"},_={marginTop:"7px"},$=!Eo(p,i,t,g.showUnfocusedDescription),E=S.useCallback((k,I)=>f(m,Number(I)),[m,f]);return M.createElement(Pn,{xsUp:!p},M.createElement(fh,{fullWidth:!g.trim,onFocus:n,onBlur:r,id:o},M.createElement(m2,{htmlFor:o,error:!x,component:"legend",required:Oy(b,g.hideRequiredAsterisk)},M.createElement(gn,{id:o+"-typo",style:y,variant:"caption"},c)),M.createElement("div",{style:w},M.createElement(gn,{style:C,variant:"caption",align:"left"},u.minimum),M.createElement(gn,{style:C,variant:"caption",align:"right"},u.maximum)),M.createElement(LEe,{style:_,min:u.minimum,max:u.maximum,value:Number(a||u.default),onChange:E,id:o+"-input",disabled:!s,step:u.multipleOf||1}),M.createElement(fr,{error:!x},x?$?i:null:l)))};lo(i4e);const s4e=e=>M.createElement(Ed,Object.assign({},e,{input:BL}));lo(s4e);const l4e=e=>{const[t,n,r]=ul(),{id:o,description:a,errors:i,label:s,uischema:l,visible:c,enabled:u,required:f,path:p,handleChange:m,data:b,config:v}=e,x=tn({},v,l.options),g=i.length===0,y=!Eo(c,a,t,x.showUnfocusedDescription),w=x.timeFormat??"HH:mm",C=x.timeSaveFormat??"HH:mm:ss",_=x.views??["hours","minutes"],$=y?a:g?null:i,E=y&&!g?i:null,k=S.useMemo(()=>K2(p,m,C),[p,m,C]),I=J2(b,C);return M.createElement(Pn,{xsUp:!c},M.createElement(vh,{dateAdapter:G2},M.createElement(_Ae,{label:s,value:I,onChange:k,format:w,ampm:!!x.ampm,views:_,disabled:!u,slotProps:{actionBar:({wrapperVariant:R})=>({actions:R==="desktop"?[]:["clear","cancel","accept"]}),textField:{id:o+"-input",required:f&&!x.hideRequiredAsterisk,autoFocus:x.focus,error:!g,fullWidth:!x.trim,inputProps:{type:"text"},InputLabelProps:b?{shrink:!0}:void 0,onFocus:n,onBlur:r,variant:"standard"}}}),M.createElement(fr,{error:!g&&!y},$),M.createElement(fr,{error:!g},E)))};lo(l4e);const Px={float:"right"},c4e=e=>{const[t]=S.useState(w5("expand-panel"));S.useEffect(()=>()=>{C5(t)},[t]);const{enabled:n,childLabel:r,childPath:o,index:a,expanded:i,moveDown:s,moveUp:l,enableMoveDown:c,enableMoveUp:u,handleExpansion:f,removeItems:p,path:m,rootSchema:b,schema:v,uischema:x,uischemas:g,renderers:y,cells:w,config:C,translations:_}=e,$=S.useMemo(()=>rh(g,v,x.scope,m,void 0,x,b),[g,v,x.scope,m,x,b]),E=tn({},C,x.options),k=E.showSortButtons||E.showArrayLayoutSortButtons;return M.createElement(D0e,{"aria-labelledby":t,expanded:i,onChange:f(o)},M.createElement(d1e,{expandIcon:M.createElement(DL,null)},M.createElement(en,{container:!0,alignItems:"center"},M.createElement(en,{item:!0,xs:7,md:9},M.createElement(en,{container:!0,alignItems:"center"},M.createElement(en,{item:!0,xs:2,md:1},M.createElement(Gj,{"aria-label":"Index"},a+1)),M.createElement(en,{item:!0,xs:10,md:11},M.createElement("span",{id:t},r)))),M.createElement(en,{item:!0,xs:5,md:3},M.createElement(en,{container:!0,justifyContent:"flex-end"},M.createElement(en,{item:!0},M.createElement(en,{container:!0,direction:"row",justifyContent:"center",alignItems:"center"},k&&n?M.createElement(S.Fragment,null,M.createElement(en,{item:!0},M.createElement(tr,{onClick:l(m,a),style:Px,disabled:!u,"aria-label":_.upAriaLabel,size:"large"},M.createElement(A0,null))),M.createElement(en,{item:!0},M.createElement(tr,{onClick:s(m,a),style:Px,disabled:!c,"aria-label":_.downAriaLabel,size:"large"},M.createElement(I0,null)))):"",n&&M.createElement(en,{item:!0},M.createElement(tr,{onClick:p(m,[a]),style:Px,"aria-label":_.removeAriaLabel,size:"large"},M.createElement(M0,null))))))))),M.createElement(L0e,null,M.createElement(Po,{enabled:n,schema:v,uischema:$,path:o,key:o,renderers:y,cells:w})))},u4e=M.memo(c4e),d4e=e=>({removeItems:S.useCallback((t,n)=>r=>{r.stopPropagation(),e(Fa(t,o=>(n.sort().reverse().forEach(a=>o.splice(a,1)),o)))},[e]),moveUp:S.useCallback((t,n)=>r=>{r.stopPropagation(),e(Fa(t,o=>(UN(o,n),o)))},[e]),moveDown:S.useCallback((t,n)=>r=>{r.stopPropagation(),e(Fa(t,o=>(WN(o,n),o)))},[e])}),f4e=e=>function({ctx:n,props:r}){const o=d4e(n.dispatch),{childLabelProp:a,schema:i,path:s,index:l,uischemas:c}=r,u=fc(s,`${l}`),f=_o.data(n.core.data,u),p=a?dr(f,a,""):dr(f,Fpe(i),"");return M.createElement(e,Object.assign({},r,o,{childLabel:p,childPath:u,uischemas:c}))},p4e=e=>Sr(f4e(e));var h4e=p4e(u4e);const m4e={marginBottom:"10px"},v4e=M.memo(function({visible:t,enabled:n,uischema:r,label:o,...a}){const i=r;return M.createElement(Pn,{xsUp:!t},M.createElement(pCe,{style:m4e},!Mt(o)&&M.createElement(kCe,{title:o}),M.createElement(bCe,null,M.createElement(wh,Object.assign({},a,{visible:t,enabled:n,elements:i.elements})))))}),g4e=({uischema:e,schema:t,path:n,visible:r,enabled:o,renderers:a,cells:i,direction:s,label:l})=>{const c=e;return M.createElement(v4e,{elements:c.elements,schema:t,path:n,direction:s,visible:r,enabled:o,uischema:e,renderers:a,cells:i,label:l})};is(g4e);const y4e=({uischema:e,renderers:t,cells:n,schema:r,path:o,enabled:a,visible:i})=>{const l={elements:e.elements,schema:r,path:o,enabled:a,direction:"row",visible:i};return M.createElement(wh,Object.assign({},l,{renderers:t,cells:n}))};is(y4e);const b4e=({uischema:e,schema:t,path:n,enabled:r,visible:o,renderers:a,cells:i})=>{const l={elements:e.elements,schema:t,path:n,enabled:r,direction:"column",visible:o};return M.createElement(wh,Object.assign({},l,{renderers:a,cells:i}))};is(b4e);const x4e=e=>{const{data:t,path:n,renderers:r,cells:o,schema:a,uischema:i,visible:s,enabled:l,selected:c,onChange:u,ajv:f,t:p}=e,m=i,[b,v]=S.useState(i),[x,g]=S.useState(c??0),y=S.useMemo(()=>m.elements.filter(E=>yd(E,t,void 0,f)),[m,t,f]);m!==b&&(g(0),v(m));const w=x>=m.elements.length?0:x,C={elements:y[w]?y[w].elements:[],schema:a,path:n,direction:"column",enabled:l,visible:s,renderers:r,cells:o},_=(E,k)=>{u&&u(k,w),g(k)},$=S.useMemo(()=>y.map(E=>Ey(E,p)),[y,p]);return M.createElement(Pn,{xsUp:!s},M.createElement(D1e,{position:"static"},M.createElement(D0,{value:w,onChange:_,textColor:"inherit",indicatorColor:"secondary",variant:"scrollable"},y.map((E,k)=>M.createElement(Tp,{key:k,label:$[k]})))),M.createElement("div",{style:{marginTop:"0.5em"}},M.createElement(wh,Object.assign({},C,{key:w}))))};LL(ol(is(x4e)));const w4e=e=>{const[t,n]=S.useState(!1),r=S.useCallback(()=>es(e.schema),[e.schema]),o=S.useCallback($=>(E,k)=>{n(k?$:!1)},[]),a=$=>t===fc(e.path,`${$}`),{enabled:i,data:s,path:l,schema:c,uischema:u,errors:f,addItem:p,renderers:m,cells:b,label:v,required:x,rootSchema:g,config:y,uischemas:w,translations:C}=e,_=tn({},y,e.uischema.options);return M.createElement("div",null,M.createElement(UL,{translations:C,label:ky(v,x,_.hideRequiredAsterisk),errors:f,path:l,enabled:i,addItem:p,createDefault:r}),M.createElement("div",null,s>0?R6(hd(s),$=>M.createElement(h4e,{enabled:i,index:$,expanded:a($),schema:c,path:l,handleExpansion:o,uischema:u,renderers:m,cells:b,key:$,rootSchema:g,enableMoveUp:$!=0,enableMoveDown:${const r=S.useCallback((o,a)=>t(o,a),[t]);return M.createElement(Pn,{xsUp:!e},M.createElement(C4e,Object.assign({visible:e,addItem:r},n)))};My($4e);const S4e=e=>M.createElement(Y2,Object.assign({},e));pr(S4e);const _4e=e=>M.createElement(VL,Object.assign({},e));pr(_4e);const E4e=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s,config:l}=e,c=tn({},l,a.options);return M.createElement(cs,{type:"date",value:t||"",onChange:u=>s(i,u.target.value),className:n,id:r,disabled:!o,autoFocus:c.focus,fullWidth:!0})};pr(E4e);const P4e=e=>M.createElement(U0,Object.assign({},e));V5(ol(M.memo(P4e)),!1);const T4e=e=>M.createElement(FL,Object.assign({},e));pr(T4e);const k4e=e=>M.createElement(zL,Object.assign({},e));pr(k4e);const O4e=e=>M.createElement(D3e,Object.assign({},e));pr(O4e);const R4e=e=>M.createElement(U0,Object.assign({},e));ume(ol(M.memo(R4e)),!1);const D4e=e=>M.createElement(BL,Object.assign({},e));pr(D4e);const M4e=e=>M.createElement(I3e,Object.assign({},e));pr(M4e);const I4e=e=>{const[t,n]=S.useState(0),r=$=>{n($)},{data:o,path:a,renderers:i,schema:s,uischema:l,visible:c,cells:u,config:f,ajv:p,t:m}=e,b=l,v=tn({},f,l.options),x={textAlign:"right",width:"100%",margin:"1em auto"},g={float:"right"},y={marginRight:"1em"},w=S.useMemo(()=>b.elements.filter($=>yd($,o,void 0,p)),[b,o,p]),C={elements:w[t].elements,schema:s,path:a,direction:"column",visible:c,renderers:i,cells:u},_=S.useMemo(()=>w.map($=>Ey($,m)),[w,m]);return M.createElement(Pn,{xsUp:!c},M.createElement(zPe,{activeStep:t,nonLinear:!0},w.map(($,E)=>M.createElement(tPe,{key:_[E]},M.createElement(EPe,{onClick:()=>r(E)},_[E])))),M.createElement("div",null,M.createElement(wh,Object.assign({},C))),v.showNavButtons?M.createElement("div",{style:x},M.createElement(Uo,{style:g,variant:"contained",color:"primary",disabled:t>=w.length-1,onClick:()=>r(t+1)},"Next"),M.createElement(Uo,{style:y,color:"secondary",variant:"contained",disabled:t<=0,onClick:()=>r(t-1)},"Previous")):M.createElement(M.Fragment,null))};LL(ol(is(I4e)));var HL={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(yo,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(a,i,s){var l=i.prototype;s.utc=function(v){var x={date:v,utc:!0,args:arguments};return new i(x)},l.utc=function(v){var x=s(this.toDate(),{locale:this.$L,utc:!0});return v?x.add(this.utcOffset(),n):x},l.local=function(){return s(this.toDate(),{locale:this.$L,utc:!1})};var c=l.parse;l.parse=function(v){v.utc&&(this.$u=!0),this.$utils().u(v.$offset)||(this.$offset=v.$offset),c.call(this,v)};var u=l.init;l.init=function(){if(this.$u){var v=this.$d;this.$y=v.getUTCFullYear(),this.$M=v.getUTCMonth(),this.$D=v.getUTCDate(),this.$W=v.getUTCDay(),this.$H=v.getUTCHours(),this.$m=v.getUTCMinutes(),this.$s=v.getUTCSeconds(),this.$ms=v.getUTCMilliseconds()}else u.call(this)};var f=l.utcOffset;l.utcOffset=function(v,x){var g=this.$utils().u;if(g(v))return this.$u?0:g(this.$offset)?f.call(this):this.$offset;if(typeof v=="string"&&(v=function(_){_===void 0&&(_="");var $=_.match(r);if(!$)return null;var E=(""+$[0]).match(o)||["-",0,0],k=E[0],I=60*+E[1]+ +E[2];return I===0?0:k==="+"?I:-I}(v),v===null))return this;var y=Math.abs(v)<=16?60*v:v,w=this;if(x)return w.$offset=y,w.$u=v===0,w;if(v!==0){var C=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(w=this.local().add(y+C,n)).$offset=y,w.$x.$localOffset=C}else w=this.utc();return w};var p=l.format;l.format=function(v){var x=v||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return p.call(this,x)},l.valueOf=function(){var v=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*v},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var m=l.toDate;l.toDate=function(v){return v==="s"&&this.$offset?s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():m.call(this)};var b=l.diff;l.diff=function(v,x,g){if(v&&this.$u===v.$u)return b.call(this,v,x,g);var y=this.local(),w=s(v).local();return b.call(y,w,x,g)}}})})(HL);var A4e=HL.exports;const N4e=Bt(A4e);var GL={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(yo,function(){return function(n,r,o){n=n||{};var a=r.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function s(c,u,f,p){return a.fromToBase(c,u,f,p)}o.en.relativeTime=i,a.fromToBase=function(c,u,f,p,m){for(var b,v,x,g=f.$locale().relativeTime||i,y=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],w=y.length,C=0;C0,$<=_.r||!_.r){$<=1&&C>0&&(_=y[C-1]);var E=g[_.l];m&&($=m(""+$)),v=typeof E=="string"?E.replace("%d",$):E($,u,_.l,x);break}}if(u)return v;var k=x?g.future:g.past;return typeof k=="function"?k(v):k.replace("%s",v)},a.to=function(c,u){return s(c,u,this,!0)},a.from=function(c,u){return s(c,u,this)};var l=function(c){return c.$u?o.utc():o()};a.toNow=function(c){return this.to(l(this),c)},a.fromNow=function(c){return this.from(l(this),c)}}})})(GL);var j4e=GL.exports;const L4e=Bt(j4e),F4e=e=>S.createElement("svg",{width:20,height:21,viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.36651 2.85015C3.37578 2.85432 3.38505 2.85849 3.39431 2.86266L17.353 9.14401C17.5431 9.22954 17.7338 9.31532 17.8826 9.39905C18.0208 9.47682 18.2876 9.63803 18.4396 9.94548C18.6122 10.2947 18.6122 10.7043 18.4396 11.0535C18.2876 11.361 18.0208 11.5222 17.8826 11.5999C17.7338 11.6837 17.5431 11.7694 17.353 11.855L3.37128 18.1467C3.17613 18.2346 2.98174 18.3221 2.81784 18.3789C2.6676 18.4309 2.36452 18.5263 2.02916 18.4327C1.65046 18.327 1.34355 18.0493 1.20065 17.6831C1.07411 17.3587 1.13883 17.0476 1.17565 16.8929C1.21583 16.7242 1.28354 16.522 1.35152 16.3191L3.28934 10.5306L1.35514 4.70306C1.35194 4.69342 1.34873 4.68377 1.34553 4.67412C1.27829 4.47166 1.21126 4.26982 1.17161 4.10129C1.13521 3.94656 1.07155 3.63604 1.19844 3.31251C1.34183 2.9469 1.64871 2.66994 2.02706 2.56467C2.36186 2.47151 2.66425 2.56656 2.81444 2.61859C2.97804 2.67526 3.17198 2.76257 3.36651 2.85015ZM3.05652 4.5383L4.75852 9.66616H8.75109C9.21133 9.66616 9.58442 10.0393 9.58442 10.4995C9.58442 10.9597 9.21133 11.3328 8.75109 11.3328H4.77834L3.06259 16.458L16.3037 10.4995L3.05652 4.5383Z",fill:"#fff"})),z4e=e=>S.createElement("svg",{width:20,height:21,viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.41009 2.41009C9.73553 2.08466 10.2632 2.08466 10.5886 2.41009L13.9219 5.74343C14.2474 6.06886 14.2474 6.5965 13.9219 6.92194C13.5965 7.24738 13.0689 7.24738 12.7434 6.92194L10.8327 5.01119V12.9993C10.8327 13.4596 10.4596 13.8327 9.99935 13.8327C9.53911 13.8327 9.16602 13.4596 9.16602 12.9993V5.01119L7.25527 6.92194C6.92984 7.24738 6.4022 7.24738 6.07676 6.92194C5.75132 6.5965 5.75132 6.06886 6.07676 5.74343L9.41009 2.41009ZM2.49935 9.66602C2.95959 9.66602 3.33268 10.0391 3.33268 10.4993V13.9993C3.33268 14.7132 3.33333 15.1984 3.36398 15.5735C3.39383 15.9388 3.44793 16.1257 3.51434 16.256C3.67413 16.5696 3.9291 16.8246 4.2427 16.9844C4.37303 17.0508 4.55987 17.1049 4.92521 17.1347C5.30029 17.1654 5.78553 17.166 6.49935 17.166H13.4993C14.2132 17.166 14.6984 17.1654 15.0735 17.1347C15.4388 17.1049 15.6257 17.0508 15.756 16.9844C16.0696 16.8246 16.3246 16.5696 16.4844 16.256C16.5508 16.1257 16.6049 15.9388 16.6347 15.5735C16.6654 15.1984 16.666 14.7132 16.666 13.9993V10.4993C16.666 10.0391 17.0391 9.66602 17.4993 9.66602C17.9596 9.66602 18.3327 10.0391 18.3327 10.4993V14.0338C18.3327 14.7046 18.3327 15.2582 18.2959 15.7092C18.2576 16.1776 18.1754 16.6082 17.9694 17.0127C17.6498 17.6399 17.1399 18.1498 16.5126 18.4694C16.1082 18.6754 15.6776 18.7576 15.2092 18.7959C14.7582 18.8327 14.2046 18.8327 13.5338 18.8327H6.46491C5.79411 18.8327 5.24049 18.8327 4.78949 18.7959C4.32108 18.7576 3.89049 18.6754 3.48605 18.4694C2.85884 18.1498 2.34891 17.6399 2.02933 17.0127C1.82325 16.6082 1.74112 16.1776 1.70284 15.7092C1.666 15.2582 1.66601 14.7046 1.66602 14.0338L1.66602 10.4993C1.66602 10.0391 2.03911 9.66602 2.49935 9.66602Z",fill:"currentColor"}));var Z2={exports:{}};Z2.exports;(function(e){var t=function(){var n=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",a={};function i(l,c){if(!a[l]){a[l]={};for(var u=0;u>>8,u[f*2+1]=m%256}return u},decompressFromUint8Array:function(l){if(l==null)return s.decompress(l);for(var c=new Array(l.length/2),u=0,f=c.length;u>1}else{for(p=1,f=0;f>1}y--,y==0&&(y=Math.pow(2,C),C++),delete b[g]}else for(p=m[g],f=0;f>1;y--,y==0&&(y=Math.pow(2,C),C++),m[x]=w++,g=String(v)}if(g!==""){if(Object.prototype.hasOwnProperty.call(b,g)){if(g.charCodeAt(0)<256){for(f=0;f>1}else{for(p=1,f=0;f>1}y--,y==0&&(y=Math.pow(2,C),C++),delete b[g]}else for(p=m[g],f=0;f>1;y--,y==0&&(y=Math.pow(2,C),C++)}for(p=2,f=0;f>1;for(;;)if($=$<<1,E==c-1){_.push(u($));break}else E++;return _.join("")},decompress:function(l){return l==null?"":l==""?null:s._decompress(l.length,32768,function(c){return l.charCodeAt(c)})},_decompress:function(l,c,u){var f=[],p=4,m=4,b=3,v="",x=[],g,y,w,C,_,$,E,k={val:u(0),position:c,index:1};for(g=0;g<3;g+=1)f[g]=g;for(w=0,_=Math.pow(2,2),$=1;$!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*$,$<<=1;switch(w){case 0:for(w=0,_=Math.pow(2,8),$=1;$!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*$,$<<=1;E=n(w);break;case 1:for(w=0,_=Math.pow(2,16),$=1;$!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*$,$<<=1;E=n(w);break;case 2:return""}for(f[3]=E,y=E,x.push(E);;){if(k.index>l)return"";for(w=0,_=Math.pow(2,b),$=1;$!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*$,$<<=1;switch(E=w){case 0:for(w=0,_=Math.pow(2,8),$=1;$!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*$,$<<=1;f[m++]=n(w),E=m-1,p--;break;case 1:for(w=0,_=Math.pow(2,16),$=1;$!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),w|=(C>0?1:0)*$,$<<=1;f[m++]=n(w),E=m-1,p--;break;case 2:return x.join("")}if(p==0&&(p=Math.pow(2,b),b++),f[E])v=f[E];else if(E===m)v=y+y.charAt(0);else return null;x.push(v),f[m++]=y+v.charAt(0),p--,y=v,p==0&&(p=Math.pow(2,b),b++)}}};return s}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})})(Z2);var W0=Z2.exports,B4e=Array.prototype,V4e=B4e.join;function U4e(e,t){return e==null?"":V4e.call(e,t)}var W4e=U4e;const qL=Bt(W4e);var H4e=pd,YL=H4e("filter",Z4);YL.placeholder=uc();var G4e=YL;const hM=Bt(G4e);var q4e=pd,KL=q4e("map",O6);KL.placeholder=uc();var Y4e=KL;const mM=Bt(Y4e);var Tx,vM;function K4e(){if(vM)return Tx;vM=1;var e=oS(),t=lS,n=rS(),r=A4(),o=lr,a=N4(),i="Expected a function",s=8,l=32,c=128,u=256;function f(p){return t(function(m){var b=m.length,v=b,x=e.prototype.thru;for(p&&m.reverse();v--;){var g=m[v];if(typeof g!="function")throw new TypeError(i);if(x&&!y&&r(g)=="wrapper")var y=new e([],!0)}for(v=y?v:b;++v(t,...n)=>{const r=mg(e,o=>o.name===t);return Ww(r,(o,a)=>typeof a.classNames=="function"?o.concat(a.classNames(n)):o.concat(a.classNames),[])},La=e=>(t,...n)=>qL(Qf(e)(t,n)," "),aNe=[{name:"control",classNames:["control"]},{name:"control.trim",classNames:["trim"]},{name:"control.input",classNames:["input"]},{name:"control.select",classNames:["select"]},{name:"control.checkbox",classNames:["checkbox"]},{name:"control.radio",classNames:["radio"]},{name:"control.radio.option",classNames:["radio-option"]},{name:"control.radio.input",classNames:["radio-input"]},{name:"control.radio.label",classNames:["radio-label"]},{name:"control.validation.error",classNames:["validation_error"]},{name:"control.validation",classNames:["validation"]},{name:"categorization",classNames:["categorization"]},{name:"categorization.master",classNames:["categorization-master"]},{name:"categorization.detail",classNames:["categorization-detail"]},{name:"category.group",classNames:["category-group"]},{name:"category.subcategories",classNames:["category-subcategories"]},{name:"array.layout",classNames:["array-layout"]},{name:"array.children",classNames:["children"]},{name:"group.layout",classNames:["group-layout"]},{name:"horizontal.layout",classNames:["horizontal-layout"]},{name:"horizontal.layout.item",classNames:([e])=>[`horizontal-layout-${e}`]},{name:"vertical.layout",classNames:["vertical-layout"]},{name:"array.table.validation.error",classNames:["validation_error"]},{name:"array.table.validation",classNames:["validation"]},{name:"array.table",classNames:["array-table-layout","control"]},{name:"array.control.validation.error",classNames:["validation_error"]},{name:"array.control.validation",classNames:["validation"]},{name:"array.control.add",classNames:["button-add"]},{name:"array.child.controls",classNames:["child-controls"]},{name:"array.child.controls.up",classNames:["button-up"]},{name:"array.child.controls.down",classNames:["button-down"]},{name:"array.child.controls.delete",classNames:["button-delete"]},{name:"array.control",classNames:["array-control-layout","control"]},{name:"input.description",classNames:["input-description"]}],iNe={styles:aNe},sNe=M.createContext(iNe),lNe=()=>S.useContext(sNe),X2=()=>{const{styles:e}=lNe();return e},Ti=e=>function(n){const r=pc(),o=X2(),a=n.uischema,i=r.config,s=i&&i.trim,l=S.useMemo(()=>Qf(o)("control"),[o]);let c=Mt(a.scope)?[""]:l.concat([`${g5(a.scope)}`]);s&&(c=c.concat(Qf(o)("control.trim")));const u=Mt(n.errors),f=S.useMemo(()=>La(o)("control.label"),[o]),p=S.useMemo(()=>La(o)("input.description"),[o]),m=S.useMemo(()=>La(o)("control.validation"),[o]),b=S.useMemo(()=>La(o)("control.validation.error"),[o]),v=["validate"].concat(u?"valid":"invalid"),x=S.useMemo(()=>La(o),[o]),g=S.useMemo(()=>Qf(o),[o]),y=c.join(" "),w=v.join(" "),C=S.useMemo(()=>({wrapper:y,input:w,label:f,description:p,validation:m,validationError:b}),[y,w,f,p,m,b]);return M.createElement(e,Object.assign({},n,{getStyleAsClassName:x,getStyle:g,classNames:C}))},Q2=e=>t=>function(r){const o=["validate"].concat(r.isValid?"valid":"invalid"),a=X2(),i=La(a)(e);return i&&o.push(i),M.createElement(t,Object.assign({},r,{getStyleAsClassName:La(a),getStyle:Qf(a),className:o.join(" ")}))},Ka=Q2("control.input"),cNe=Q2("control.select"),uNe=Q2("control.checkbox"),dNe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"checkbox",checked:!!t,onChange:l=>s(i,l.target.checked),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},fNe=mn(2,YN);var pNe=pr(uNe(dNe));const hNe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"date",value:t||"",onChange:l=>s(i,l.target.value),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},mNe=mn(2,r5);var vNe=pr(Ka(hNe));const gNe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e,l=c=>c===""?"":c+":00.000Z";return M.createElement("input",{type:"datetime-local",value:(t||"").substr(0,16),onChange:c=>s(i,l(c.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},yNe=mn(2,a5);var bNe=pr(Ka(gNe));const xNe=e=>{const{data:t,className:n,id:r,enabled:o,schema:a,uischema:i,path:s,handleChange:l,options:c,t:u}=e,f=S.useMemo(()=>u("enum.none",oNe["enum.none"],{schema:a,uischema:i,path:s}),[u,a,i,s]);return M.createElement("select",{className:n,id:r,disabled:!o,autoFocus:i.options&&i.options.focus,value:t||"",onChange:p=>l(s,p.target.selectedIndex===0?void 0:p.target.value)},[M.createElement("option",{value:"",key:"jsonforms.enum.none"},f)].concat(c.map(p=>M.createElement("option",{value:p.value,label:p.label,key:p.value}))))},wNe=mn(2,t_);var CNe=V5(ol(cNe(xNe)));const $Ne=e=>e===""?void 0:parseInt(e,10),SNe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"number",step:"1",value:t??"",onChange:l=>s(i,$Ne(l.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},_Ne=mn(2,QN);var ENe=pr(Ka(SNe));const PNe=e=>e===""?void 0:Number(e),TNe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"number",step:"0.1",value:t??"",onChange:l=>s(i,PNe(l.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},kNe=mn(2,e5);var ONe=pr(Ka(TNe));const RNe=e=>{const{className:t,id:n,enabled:r,uischema:o,path:a,handleChange:i,schema:s}=e,l=s.maxLength,c=e.toFormatted(e.data),u=f=>{const p=e.fromFormatted(f.currentTarget.value);i(a,p)};return M.createElement("input",{type:"text",value:c,onChange:u,className:t,id:n,disabled:!r,autoFocus:o.options&&o.options.focus,maxLength:o.options&&o.options.restrict?l:void 0,size:o.options&&o.options.trim?l:void 0})};pr(Ka(RNe));const DNe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,schema:i,path:s,handleChange:l}=e;return M.createElement("div",{style:{display:"flex"}},M.createElement("input",{type:"range",max:i.maximum,min:i.minimum,value:t||i.default,onChange:c=>l(s,Number(c.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus,style:{flex:"1"}}),M.createElement("label",{style:{marginLeft:"0.5em"}},t||i.default))},MNe=mn(4,l5);var INe=pr(Ka(DNe));const ANe=e=>{const{config:t,data:n,className:r,id:o,enabled:a,uischema:i,schema:s,path:l,handleChange:c}=e,u=s.maxLength,f=tn({},t,i.options);return M.createElement("input",{type:"text",value:n||"",onChange:p=>c(l,p.target.value===""?void 0:p.target.value),className:r,id:o,disabled:!a,autoFocus:f.focus,placeholder:f.placeholder,maxLength:f.restrict?u:void 0,size:f.trim?u:void 0})},NNe=mn(1,t5);pr(Ka(ANe));const jNe=e=>{const{data:t,className:n,id:r,enabled:o,config:a,uischema:i,path:s,handleChange:l}=e,c=tn({},a,i.options);return M.createElement("textarea",{value:t||"",onChange:u=>l(s,u.target.value===""?void 0:u.target.value),className:n,id:r,disabled:!o,autoFocus:c.focus,placeholder:c.placeholder})},LNe=mn(2,n5);pr(Ka(jNe));const FNe=e=>{if(typeof e=="string"){const t=e.split(":");return t.length===2&&t.push("00"),t.join(":")}return e},zNe=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return M.createElement("input",{type:"time",value:t||"",onChange:l=>s(i,FNe(l.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},BNe=mn(2,o5);var VNe=pr(Ka(zNe));class UNe extends A5{render(){const{classNames:t,description:n,id:r,errors:o,label:a,uischema:i,schema:s,rootSchema:l,visible:c,enabled:u,required:f,path:p,cells:m,config:b}=this.props,v=o.length===0,x=[t.validation].concat(v?t.description:t.validationError).join(" "),g=tn({},b,i.options),y=!Eo(c,n,this.state.isFocused,g.showUnfocusedDescription),w={rootSchema:l,config:b},C=gy(m,_=>_.tester(i,s,w));return C===void 0||C.tester(i,s,w)===Vu?(console.warn("No applicable cell found.",i,s),null):M.createElement("div",{className:t.wrapper,hidden:!c,onFocus:this.onFocus,onBlur:this.onBlur,id:r},M.createElement("label",{htmlFor:r+"-input",className:t.label},ky(a,f,g.hideRequiredAsterisk)),M.createElement(ec,{uischema:i,schema:s,path:p,id:r+"-input",enabled:u}),M.createElement("div",{className:x},v?y?n:null:o))}}const WNe=mn(1,Ga);var e9=Ti(lo(UNe));const t9=({classNames:e,id:t,label:n,options:r,required:o,description:a,errors:i,data:s,uischema:l,visible:c,config:u,enabled:f,path:p,handleChange:m})=>{const b=X2(),[v,x]=S.useState(!1),g=S.useMemo(()=>La(b)("control.radio"),[b]),y=S.useMemo(()=>La(b)("control.radio.option"),[b]),w=S.useMemo(()=>La(b)("control.radio.input"),[b]),C=S.useMemo(()=>La(b)("control.radio.label"),[b]),_=i.length===0,$=[e.validation].concat(_?e.description:e.validationError).join(" "),E=tn({},u,l.options),k=!Eo(c,a,v,E.showUnfocusedDescription),I=!g||g==="radio";let R={};return I&&(R={display:"flex",flexDirection:E.orientation==="vertical"?"column":"row"}),M.createElement("div",{className:e.wrapper,hidden:!c,onFocus:()=>x(!0),onBlur:()=>x(!1)},M.createElement("label",{htmlFor:t,className:e.label},ky(n,o,E.hideRequiredAsterisk)),M.createElement("div",{className:g,style:R},r.map(F=>M.createElement("div",{key:F.label,className:y},M.createElement("input",{type:"radio",value:F.value,id:F.value,name:t,checked:s===F.value,onChange:U=>m(p,U.currentTarget.value),disabled:!f,className:w}),M.createElement("label",{htmlFor:F.value,className:C},F.label)))),M.createElement("div",{className:$},_?k?a:null:i))},HNe=e=>M.createElement(t9,Object.assign({},e)),GNe=mn(3,Cn(t_,as("format","radio")));var qNe=Ti(P_(HNe));const YNe=e=>M.createElement(t9,Object.assign({},e)),KNe=mn(3,Cn(XN,as("format","radio")));var JNe=Ti(T_(YNe));const{convertToValidClassName:ZNe}=_g,XNe=({classNames:e,data:t,label:n,path:r,schema:o,errors:a,addItem:i,removeItems:s,moveUp:l,moveDown:c,uischema:u,uischemas:f,getStyleAsClassName:p,renderers:m,rootSchema:b,translations:v})=>{const x=u,g=S.useMemo(()=>rh(f,o,u.scope,r,void 0,u,b),[f,o,u.scope,r,u,b]),y=a.length===0,C=[p("array.control.validation")].concat(y?"":p("array.control.validation.error")).join(" "),_=p("array.control.add"),$=p("array.control.label"),E=p("array.child.controls"),k=p("array.child.controls.up"),I=p("array.child.controls.down"),R=p("array.child.controls.delete"),F=[p("array.control"),ZNe(x.scope)].join(" ");return M.createElement("div",{className:F},M.createElement("header",null,M.createElement("label",{className:$},n),M.createElement("button",{className:_,onClick:i(r,es(o))},"Add to ",n)),M.createElement("div",{className:C},a),M.createElement("div",{className:e.children},t?hd(0,t.length).map(U=>{const G=fc(r,`${U}`);return M.createElement("div",{key:U},M.createElement(Po,{schema:o,uischema:g||u,path:G,key:G,renderers:m}),M.createElement("div",{className:E},M.createElement("button",{className:k,"aria-label":v.upAriaLabel,onClick:()=>{l(r,U)()}},v.up),M.createElement("button",{className:I,"aria-label":v.downAriaLabel,onClick:()=>{c(r,U)()}},v.down),M.createElement("button",{className:R,"aria-label":v.removeAriaLabel,onClick:()=>{window.confirm("Are you sure you wish to delete this item?")&&s(r,[U])()}},v.removeTooltip)))}):M.createElement("p",null,v.noDataMessage)))},QNe=({schema:e,uischema:t,data:n,path:r,rootSchema:o,uischemas:a,addItem:i,getStyle:s,getStyleAsClassName:l,removeItems:c,moveUp:u,moveDown:f,id:p,visible:m,enabled:b,errors:v,translations:x})=>{const g=t,y=_g.createLabelDescriptionFrom(g,e),w=y.show?y.text:"",C=`control ${_g.convertToValidClassName(g.scope)}`,_=l("array.layout"),$=l("array.button"),E=l("array.children"),k={wrapper:C,fieldSet:_,button:$,children:E};return M.createElement(XNe,{classNames:k,data:n,label:w,path:r,schema:e,errors:v,addItem:i,removeItems:c,moveUp:u,moveDown:f,uischema:t,uischemas:a,getStyleAsClassName:l,rootSchema:o,id:p,visible:m,enabled:b,getStyle:s,translations:x})};var e5e=Ti(B5(QNe));const t5e=mn(4,r_),eE=e=>e.type==="Categorization",n5e=mn(1,Cn(Sn("Categorization"),e=>{const t=n=>Mt(n.elements)?!1:n.elements.map(r=>eE(r)?t(r):r.type==="Category").reduce((r,o)=>r&&o,!0);return t(e)})),r5e=(e,t)=>t===e?"selected":"",n9=({categorization:e,selectedCategory:t,depth:n,onSelect:r,subcategoriesClassName:o,groupClassName:a,t:i})=>{const s=S.useMemo(()=>e.elements.map(l=>Ey(l,i)),[e,i]);return M.createElement("ul",{className:o},e.elements.map((l,c)=>eE(l)?M.createElement("li",{key:s[c],className:a},M.createElement("span",null,s[c]),M.createElement(n9,{categorization:l,selectedCategory:t,depth:n+1,onSelect:r,subcategoriesClassName:o,groupClassName:a,t:i})):M.createElement("li",{key:s[c],onClick:r(l),className:r5e(l,t)},M.createElement("span",null,s[c]))))},o5e=({category:e,schema:t,path:n})=>M.createElement("div",{id:"categorization.detail"},(e.elements||[]).map((r,o)=>M.createElement(Po,{key:`${n}-${o}`,uischema:r,schema:t,path:n})));class a5e extends I5{constructor(){super(...arguments),this.onCategorySelected=t=>()=>this.setState({selectedCategory:t})}render(){const{uischema:t,visible:n,getStyleAsClassName:r,t:o}=this.props,a=t,i=r("categorization"),s=r("categorization.master"),l=r("categorization.detail"),c=this.findCategory(a),u=r("category.subcategories"),f=r("category.group");return M.createElement("div",{className:i,hidden:n==null?!1:!n},M.createElement("div",{className:s},M.createElement(n9,{categorization:a,selectedCategory:c,depth:0,onSelect:this.onCategorySelected,subcategoriesClassName:u,groupClassName:f,t:o})),M.createElement("div",{className:l},M.createElement(o5e,{category:c,schema:this.props.schema,path:this.props.path})))}findCategory(t){const n=t.elements[0];return this.state&&this.state.selectedCategory?this.state.selectedCategory:eE(n)?this.findCategory(n):n}}var i5e=Ti(ol(is(a5e)));const s5e=mn(1,Sn("Label")),l5e=({text:e,visible:t,getStyleAsClassName:n})=>{const r=n("label-control"),o=!t;return M.createElement("label",{hidden:o,className:r},e)};var c5e=Ti(U5(l5e));const{convertToValidClassName:u5e}=_g,{or:d5e,isObjectArrayControl:f5e,isPrimitiveArrayControl:p5e,rankWith:h5e}=ope,m5e=h5e(3,d5e(f5e,p5e));class v5e extends M.Component{constructor(){super(...arguments),this.confirmDelete=(t,n)=>{const r=t.substring(0,t.lastIndexOf("."));this.props.removeItems(r,[n])()}}render(){const{addItem:t,uischema:n,schema:r,rootSchema:o,path:a,data:i,visible:s,errors:l,label:c,getStyleAsClassName:u,childErrors:f,translations:p}=this.props,m=n,b=u("array.table.table"),v=u("array.table.label"),x=u("array.table.button"),g=u("array.table.validation"),y=[u("array.table"),u5e(m.scope)].join(" "),w=$=>({type:"Control",label:!1,scope:r.type==="object"?`#/properties/${$}`:"#"}),C=l.length===0,_=[g].concat(C?"":u("array.table.validation.error")).join(" ");return M.createElement("div",{className:y,hidden:!s},M.createElement("header",null,M.createElement("label",{className:v},c),M.createElement("button",{className:x,onClick:t(a,es(r))},p.addTooltip)),M.createElement("div",{className:_},C?"":l),M.createElement("table",{className:b},M.createElement("thead",null,M.createElement("tr",null,r.properties?yM(xM,hM($=>r.properties[$].type!=="array"),mM($=>M.createElement("th",{key:$},r.properties[$].title??rNe($))))(r.properties):M.createElement("th",null,"Items"),M.createElement("th",null,"Valid"),M.createElement("th",null," "))),M.createElement("tbody",null,!i||!Array.isArray(i)||i.length===0?M.createElement("tr",null,M.createElement("td",null,p.noDataMessage)):i.map(($,E)=>{const k=ir.compose(a,`${E}`),I=mg(f,G=>wg(G).startsWith(k)),R=u("array.validation"),F=u("array.validation.error"),U=I?[R].concat(F).join(" "):R;return M.createElement("tr",{key:k},r.properties?yM(xM,hM(G=>r.properties[G].type!=="array"),mM(G=>{const B=ir.compose(k,G.toString());return M.createElement("td",{key:B},M.createElement(ec,{schema:_o.schema(r,`#/properties/${Xl(G)}`,o),uischema:w(Xl(G)),path:k+"."+G}))}))(r.properties):M.createElement("td",{key:ir.compose(k,E.toString())},M.createElement(ec,{schema:r,uischema:w(),path:k})),M.createElement("td",null,I?M.createElement("span",{className:U},qL(I.map(G=>G.message)," and ")):M.createElement("span",{className:U},"OK")),M.createElement("td",null,M.createElement("button",{"aria-label":p.removeAriaLabel,onClick:()=>{window.confirm(p.deleteDialogMessage)&&this.confirmDelete(k,E)}},p.removeTooltip)))}))))}}var g5e=Ti(B5(v5e));const tE=(e,t,n,r,o)=>{if(Mt(e.elements))return[];const{renderers:a,cells:i}=pc();return e.elements.map((s,l)=>M.createElement("div",{className:n,key:`${r}-${l}`},M.createElement(Po,{renderers:a,cells:i,uischema:s,schema:t,path:r,enabled:o})))},y5e=mn(1,Sn("Group")),b5e=e=>{const{data:t,...n}=e;return M.createElement(x5e,Object.assign({},n))},x5e=M.memo(function({schema:t,uischema:n,path:r,enabled:o,visible:a,label:i,getStyle:s,getStyleAsClassName:l}){const c=n,u=c.elements?c.elements.length:0,f=l("group.layout"),p=["group-layout-item"].concat(s("group.layout.item",u)).join(" ");return M.createElement("fieldset",{className:f,hidden:a==null?!1:!a},Mt(i)?"":M.createElement("legend",{className:l("group.label")},i),tE(c,t,p,r,o))});var w5e=Ti(is(b5e));const r9=({className:e,children:t,visible:n})=>M.createElement("div",{className:e,hidden:n==null?!1:!n},t),C5e=mn(1,Sn("HorizontalLayout")),$5e=e=>{const{data:t,...n}=e;return M.createElement(S5e,Object.assign({},n))},S5e=M.memo(function({schema:t,uischema:n,getStyle:r,getStyleAsClassName:o,enabled:a,visible:i,path:s}){const l=n,c=l.elements?l.elements.length:0,u=o("horizontal.layout"),f=["horizontal-layout-item"].concat(r("horizontal.layout.item",c)).join(" ");return M.createElement(r9,{className:u,visible:i,enabled:a,path:s,uischema:n,schema:t,getStyle:r,getStyleAsClassName:o},tE(l,t,f,s,a))});var _5e=Ti(is($5e,!1));const E5e=mn(1,Sn("VerticalLayout")),P5e=e=>{const{data:t,...n}=e;return M.createElement(T5e,Object.assign({},n))},T5e=M.memo(function({schema:t,uischema:n,path:r,visible:o,enabled:a,getStyle:i,getStyleAsClassName:s}){const l=n,c=l.elements?l.elements.length:0,u=s("vertical.layout"),f=["vertical-layout-item"].concat(i("vertical.layout.item",c)).join(" ");return M.createElement(r9,{className:u,uischema:n,schema:t,visible:o,enabled:a,path:r,getStyle:i,getStyleAsClassName:s},tE(l,t,f,r,a))});var k5e=Ti(is(P5e,!1));const O5e=[{tester:WNe,renderer:e9},{tester:GNe,renderer:qNe},{tester:KNe,renderer:JNe},{tester:t5e,renderer:e5e},{tester:s5e,renderer:c5e},{tester:n5e,renderer:i5e},{tester:m5e,renderer:g5e},{tester:y5e,renderer:w5e},{tester:E5e,renderer:k5e},{tester:C5e,renderer:_5e}];function o9(e){let t=window.location.pathname.split("/playground")[0];return t.endsWith("/")&&(t=t.slice(0,-1)),new URL(t+e,window.location.origin)}const R5e=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(r,o,a){n.o(r,o)||Object.defineProperty(r,o,{enumerable:!0,get:a})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,o){if(1&o&&(r=n(r)),8&o||4&o&&typeof r=="object"&&r&&r.__esModule)return r;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:r}),2&o&&typeof r!="string")for(var i in r)n.d(a,i,(function(s){return r[s]}).bind(null,i));return a},n.n=function(r){var o=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(o,"a",o),o},n.o=function(r,o){return Object.prototype.hasOwnProperty.call(r,o)},n.p="",n(n.s=84)}([function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r;try{r={clone:n(88),constant:n(64),each:n(146),filter:n(152),has:n(175),isArray:n(0),isEmpty:n(177),isFunction:n(17),isUndefined:n(178),keys:n(6),map:n(179),reduce:n(181),size:n(184),transform:n(190),union:n(191),values:n(210)}}catch{}r||(r=window._),e.exports=r},function(e,t,n){function r(s){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l})(s)}var o=n(47),a=(typeof self>"u"?"undefined":r(self))=="object"&&self&&self.Object===Object&&self,i=o||a||Function("return this")();e.exports=i},function(e,t){function n(r){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(r)}e.exports=function(r){return r!=null&&n(r)=="object"}},function(e,t,n){var r=n(100),o=n(105);e.exports=function(a,i){var s=o(a,i);return r(s)?s:void 0}},function(e,t){function n(r){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(r)}e.exports=function(r){var o=n(r);return r!=null&&(o=="object"||o=="function")}},function(e,t,n){var r=n(52),o=n(37),a=n(7);e.exports=function(i){return a(i)?r(i):o(i)}},function(e,t,n){var r=n(17),o=n(34);e.exports=function(a){return a!=null&&o(a.length)&&!r(a)}},function(e,t,n){var r=n(9),o=n(101),a=n(102),i=r?r.toStringTag:void 0;e.exports=function(s){return s==null?s===void 0?"[object Undefined]":"[object Null]":i&&i in Object(s)?o(s):a(s)}},function(e,t,n){var r=n(2).Symbol;e.exports=r},function(e,t,n){var r=n(132),o=n(31),a=n(133),i=n(61),s=n(134),l=n(8),c=n(48),u=c(r),f=c(o),p=c(a),m=c(i),b=c(s),v=l;(r&&v(new r(new ArrayBuffer(1)))!="[object DataView]"||o&&v(new o)!="[object Map]"||a&&v(a.resolve())!="[object Promise]"||i&&v(new i)!="[object Set]"||s&&v(new s)!="[object WeakMap]")&&(v=function(x){var g=l(x),y=g=="[object Object]"?x.constructor:void 0,w=y?c(y):"";if(w)switch(w){case u:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case m:return"[object Set]";case b:return"[object WeakMap]"}return g}),e.exports=v},function(e,t){function n(o){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(o)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch{(typeof window>"u"?"undefined":n(window))==="object"&&(r=window)}e.exports=r},function(e,t,n){(function(r){function o(f){return(o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p})(f)}var a=n(2),i=n(121),s=o(t)=="object"&&t&&!t.nodeType&&t,l=s&&o(r)=="object"&&r&&!r.nodeType&&r,c=l&&l.exports===s?a.Buffer:void 0,u=(c?c.isBuffer:void 0)||i;r.exports=u}).call(this,n(14)(e))},function(e,t){var n,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(x){if(n===setTimeout)return setTimeout(x,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(x,0);try{return n(x,0)}catch{try{return n.call(null,x,0)}catch{return n.call(this,x,0)}}}(function(){try{n=typeof setTimeout=="function"?setTimeout:a}catch{n=a}try{r=typeof clearTimeout=="function"?clearTimeout:i}catch{r=i}})();var l,c=[],u=!1,f=-1;function p(){u&&l&&(u=!1,l.length?c=l.concat(c):f=-1,c.length&&m())}function m(){if(!u){var x=s(p);u=!0;for(var g=c.length;g;){for(l=c,c=[];++f1)for(var y=1;yx){var g=v;v=x,x=g}return v+""+x+""+(o.isUndefined(b)?"\0":b)}function c(f,p,m,b){var v=""+p,x=""+m;if(!f&&v>x){var g=v;v=x,x=g}var y={v,w:x};return b&&(y.name=b),y}function u(f,p){return l(f,p.v,p.w,p.name)}a.prototype._nodeCount=0,a.prototype._edgeCount=0,a.prototype.isDirected=function(){return this._isDirected},a.prototype.isMultigraph=function(){return this._isMultigraph},a.prototype.isCompound=function(){return this._isCompound},a.prototype.setGraph=function(f){return this._label=f,this},a.prototype.graph=function(){return this._label},a.prototype.setDefaultNodeLabel=function(f){return o.isFunction(f)||(f=o.constant(f)),this._defaultNodeLabelFn=f,this},a.prototype.nodeCount=function(){return this._nodeCount},a.prototype.nodes=function(){return o.keys(this._nodes)},a.prototype.sources=function(){var f=this;return o.filter(this.nodes(),function(p){return o.isEmpty(f._in[p])})},a.prototype.sinks=function(){var f=this;return o.filter(this.nodes(),function(p){return o.isEmpty(f._out[p])})},a.prototype.setNodes=function(f,p){var m=arguments,b=this;return o.each(f,function(v){m.length>1?b.setNode(v,p):b.setNode(v)}),this},a.prototype.setNode=function(f,p){return o.has(this._nodes,f)?(arguments.length>1&&(this._nodes[f]=p),this):(this._nodes[f]=arguments.length>1?p:this._defaultNodeLabelFn(f),this._isCompound&&(this._parent[f]="\0",this._children[f]={},this._children["\0"][f]=!0),this._in[f]={},this._preds[f]={},this._out[f]={},this._sucs[f]={},++this._nodeCount,this)},a.prototype.node=function(f){return this._nodes[f]},a.prototype.hasNode=function(f){return o.has(this._nodes,f)},a.prototype.removeNode=function(f){var p=this;if(o.has(this._nodes,f)){var m=function(b){p.removeEdge(p._edgeObjs[b])};delete this._nodes[f],this._isCompound&&(this._removeFromParentsChildList(f),delete this._parent[f],o.each(this.children(f),function(b){p.setParent(b)}),delete this._children[f]),o.each(o.keys(this._in[f]),m),delete this._in[f],delete this._preds[f],o.each(o.keys(this._out[f]),m),delete this._out[f],delete this._sucs[f],--this._nodeCount}return this},a.prototype.setParent=function(f,p){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(o.isUndefined(p))p="\0";else{for(var m=p+="";!o.isUndefined(m);m=this.parent(m))if(m===f)throw new Error("Setting "+p+" as parent of "+f+" would create a cycle");this.setNode(p)}return this.setNode(f),this._removeFromParentsChildList(f),this._parent[f]=p,this._children[p][f]=!0,this},a.prototype._removeFromParentsChildList=function(f){delete this._children[this._parent[f]][f]},a.prototype.parent=function(f){if(this._isCompound){var p=this._parent[f];if(p!=="\0")return p}},a.prototype.children=function(f){if(o.isUndefined(f)&&(f="\0"),this._isCompound){var p=this._children[f];if(p)return o.keys(p)}else{if(f==="\0")return this.nodes();if(this.hasNode(f))return[]}},a.prototype.predecessors=function(f){var p=this._preds[f];if(p)return o.keys(p)},a.prototype.successors=function(f){var p=this._sucs[f];if(p)return o.keys(p)},a.prototype.neighbors=function(f){var p=this.predecessors(f);if(p)return o.union(p,this.successors(f))},a.prototype.isLeaf=function(f){return(this.isDirected()?this.successors(f):this.neighbors(f)).length===0},a.prototype.filterNodes=function(f){var p=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});p.setGraph(this.graph());var m=this;o.each(this._nodes,function(v,x){f(x)&&p.setNode(x,v)}),o.each(this._edgeObjs,function(v){p.hasNode(v.v)&&p.hasNode(v.w)&&p.setEdge(v,m.edge(v))});var b={};return this._isCompound&&o.each(p.nodes(),function(v){p.setParent(v,function x(g){var y=m.parent(g);return y===void 0||p.hasNode(y)?(b[g]=y,y):y in b?b[y]:x(y)}(v))}),p},a.prototype.setDefaultEdgeLabel=function(f){return o.isFunction(f)||(f=o.constant(f)),this._defaultEdgeLabelFn=f,this},a.prototype.edgeCount=function(){return this._edgeCount},a.prototype.edges=function(){return o.values(this._edgeObjs)},a.prototype.setPath=function(f,p){var m=this,b=arguments;return o.reduce(f,function(v,x){return b.length>1?m.setEdge(v,x,p):m.setEdge(v,x),x}),this},a.prototype.setEdge=function(){var f,p,m,b,v=!1,x=arguments[0];r(x)==="object"&&x!==null&&"v"in x?(f=x.v,p=x.w,m=x.name,arguments.length===2&&(b=arguments[1],v=!0)):(f=x,p=arguments[1],m=arguments[3],arguments.length>2&&(b=arguments[2],v=!0)),f=""+f,p=""+p,o.isUndefined(m)||(m=""+m);var g=l(this._isDirected,f,p,m);if(o.has(this._edgeLabels,g))return v&&(this._edgeLabels[g]=b),this;if(!o.isUndefined(m)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(f),this.setNode(p),this._edgeLabels[g]=v?b:this._defaultEdgeLabelFn(f,p,m);var y=c(this._isDirected,f,p,m);return f=y.v,p=y.w,Object.freeze(y),this._edgeObjs[g]=y,i(this._preds[p],f),i(this._sucs[f],p),this._in[p][g]=y,this._out[f][g]=y,this._edgeCount++,this},a.prototype.edge=function(f,p,m){var b=arguments.length===1?u(this._isDirected,arguments[0]):l(this._isDirected,f,p,m);return this._edgeLabels[b]},a.prototype.hasEdge=function(f,p,m){var b=arguments.length===1?u(this._isDirected,arguments[0]):l(this._isDirected,f,p,m);return o.has(this._edgeLabels,b)},a.prototype.removeEdge=function(f,p,m){var b=arguments.length===1?u(this._isDirected,arguments[0]):l(this._isDirected,f,p,m),v=this._edgeObjs[b];return v&&(f=v.v,p=v.w,delete this._edgeLabels[b],delete this._edgeObjs[b],s(this._preds[p],f),s(this._sucs[f],p),delete this._in[p][b],delete this._out[f][b],this._edgeCount--),this},a.prototype.inEdges=function(f,p){var m=this._in[f];if(m){var b=o.values(m);return p?o.filter(b,function(v){return v.v===p}):b}},a.prototype.outEdges=function(f,p){var m=this._out[f];if(m){var b=o.values(m);return p?o.filter(b,function(v){return v.w===p}):b}},a.prototype.nodeEdges=function(f,p){var m=this.inEdges(f,p);if(m)return m.concat(this.outEdges(f,p))}},function(e,t,n){var r=n(15),o=n(95),a=n(96),i=n(97),s=n(98),l=n(99);function c(u){var f=this.__data__=new r(u);this.size=f.size}c.prototype.clear=o,c.prototype.delete=a,c.prototype.get=i,c.prototype.has=s,c.prototype.set=l,e.exports=c},function(e,t){e.exports=function(n,r){return n===r||n!=n&&r!=r}},function(e,t,n){var r=n(4)(n(2),"Map");e.exports=r},function(e,t,n){var r=n(106),o=n(113),a=n(115),i=n(116),s=n(117);function l(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u-1&&n%1==0&&n<=9007199254740991}},function(e,t){e.exports=function(n){return function(r){return n(r)}}},function(e,t,n){(function(r){function o(u){return(o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f})(u)}var a=n(47),i=o(t)=="object"&&t&&!t.nodeType&&t,s=i&&o(r)=="object"&&r&&!r.nodeType&&r,l=s&&s.exports===i&&a.process,c=function(){try{var u=s&&s.require&&s.require("util").types;return u||l&&l.binding&&l.binding("util")}catch{}}();r.exports=c}).call(this,n(14)(e))},function(e,t,n){var r=n(23),o=n(123),a=Object.prototype.hasOwnProperty;e.exports=function(i){if(!r(i))return o(i);var s=[];for(var l in Object(i))a.call(i,l)&&l!="constructor"&&s.push(l);return s}},function(e,t,n){var r=n(56),o=n(57),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(l){return l==null?[]:(l=Object(l),r(i(l),function(c){return a.call(l,c)}))}:o;e.exports=s},function(e,t){e.exports=function(n,r){for(var o=-1,a=r.length,i=n.length;++o-1&&o%1==0&&om))return!1;var v=f.get(i);if(v&&f.get(s))return v==s;var x=-1,g=!0,y=2&l?new r:void 0;for(f.set(i,s),f.set(s,i);++x0&&(b=g.removeMin(),(v=x[b]).distance!==Number.POSITIVE_INFINITY);)m(b).forEach(y);return x}(i,String(s),l||a,c||function(u){return i.outEdges(u)})};var a=r.constant(1)},function(e,t,n){var r=n(1);function o(){this._arr=[],this._keyIndices={}}e.exports=o,o.prototype.size=function(){return this._arr.length},o.prototype.keys=function(){return this._arr.map(function(a){return a.key})},o.prototype.has=function(a){return r.has(this._keyIndices,a)},o.prototype.priority=function(a){var i=this._keyIndices[a];if(i!==void 0)return this._arr[i].priority},o.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},o.prototype.add=function(a,i){var s=this._keyIndices;if(a=String(a),!r.has(s,a)){var l=this._arr,c=l.length;return s[a]=c,l.push({key:a,priority:i}),this._decrease(c),!0}return!1},o.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var a=this._arr.pop();return delete this._keyIndices[a.key],this._heapify(0),a.key},o.prototype.decrease=function(a,i){var s=this._keyIndices[a];if(i>this._arr[s].priority)throw new Error("New priority is greater than current priority. Key: "+a+" Old: "+this._arr[s].priority+" New: "+i);this._arr[s].priority=i,this._decrease(s)},o.prototype._heapify=function(a){var i=this._arr,s=2*a,l=s+1,c=a;s>1].priority0&&v(g,U))}catch(G){C.call(new $(U),G)}}}function C(R){var F=this;F.triggered||(F.triggered=!0,F.def&&(F=F.def),F.msg=R,F.state=2,F.chain.length>0&&v(g,F))}function _(R,F,U,G){for(var B=0;B-1?D=N:(q=o.isUndefined(L)?void 0:R(L),o.isUndefined(q)?D=N:((D=q).path=c(i.join(q.path,N.path)),D.query=function(V,Z){var re={};function le(xe){o.forOwn(xe,function(fe,ge){re[ge]=fe})}return le(l.parse(V||"")),le(l.parse(Z||"")),Object.keys(re).length===0?void 0:l.stringify(re)}(q.query,N.query))),D.fragment=void 0,(b.indexOf(D.reference)===-1&&D.path.indexOf("../")===0?"../":"")+u.serialize(D)}function g(L){return m.indexOf(_(L))>-1}function y(L){return o.isUndefined(L.error)&&L.type!=="invalid"}function w(L,K){var q=L;return K.forEach(function(D){if(!(D in q))throw Error("JSON Pointer points to missing location: "+J(K));q=q[D]}),q}function C(L){return Object.keys(L).filter(function(K){return K!=="$ref"})}function _(L){var K;switch(L.uriDetails.reference){case"absolute":case"uri":K="remote";break;case"same-document":K="local";break;default:K=L.uriDetails.reference}return K}function $(L,K){var q=p[L],D=Promise.resolve(),N=o.cloneDeep(K.loaderOptions||{});return o.isUndefined(q)?(o.isUndefined(N.processContent)&&(N.processContent=function(V,Z){Z(void 0,JSON.parse(V.text))}),D=(D=s.load(decodeURI(L),N)).then(function(V){return p[L]={value:V},V}).catch(function(V){throw p[L]={error:V},V})):D=D.then(function(){if(o.isError(q.error))throw q.error;return q.value}),D=D.then(function(V){return o.cloneDeep(V)})}function E(L,K){var q=!0;try{if(!o.isPlainObject(L))throw new Error("obj is not an Object");if(!o.isString(L.$ref))throw new Error("obj.$ref is not a String")}catch(D){if(K)throw D;q=!1}return q}function k(L){return L.indexOf("://")!==-1||i.isAbsolute(L)?L:i.resolve(r.cwd(),L)}function I(L,K){L.error=K.message,L.missing=!0}function R(L){return u.parse(L)}function F(L,K,q){w(L,K.slice(0,K.length-1))[K[K.length-1]]=q}function U(L,K){var q,D;if(L=o.isUndefined(L)?{}:o.cloneDeep(L),!o.isObject(L))throw new TypeError("options must be an Object");if(!o.isUndefined(L.resolveCirculars)&&!o.isBoolean(L.resolveCirculars))throw new TypeError("options.resolveCirculars must be a Boolean");if(!(o.isUndefined(L.filter)||o.isArray(L.filter)||o.isFunction(L.filter)||o.isString(L.filter)))throw new TypeError("options.filter must be an Array, a Function of a String");if(!o.isUndefined(L.includeInvalid)&&!o.isBoolean(L.includeInvalid))throw new TypeError("options.includeInvalid must be a Boolean");if(!o.isUndefined(L.location)&&!o.isString(L.location))throw new TypeError("options.location must be a String");if(!o.isUndefined(L.refPreProcessor)&&!o.isFunction(L.refPreProcessor))throw new TypeError("options.refPreProcessor must be a Function");if(!o.isUndefined(L.refPostProcessor)&&!o.isFunction(L.refPostProcessor))throw new TypeError("options.refPostProcessor must be a Function");if(!o.isUndefined(L.subDocPath)&&!o.isArray(L.subDocPath)&&!Q(L.subDocPath))throw new TypeError("options.subDocPath must be an Array of path segments or a valid JSON Pointer");if(o.isUndefined(L.resolveCirculars)&&(L.resolveCirculars=!1),L.filter=function(N){var V,Z;return o.isArray(N.filter)||o.isString(N.filter)?(Z=o.isString(N.filter)?[N.filter]:N.filter,V=function(re){return Z.indexOf(re.type)>-1||Z.indexOf(_(re))>-1}):o.isFunction(N.filter)?V=N.filter:o.isUndefined(N.filter)&&(V=function(){return!0}),function(re,le){return(re.type!=="invalid"||N.includeInvalid===!0)&&V(re,le)}}(L),o.isUndefined(L.location)&&(L.location=k("./root.json")),(q=L.location.split("#")).length>1&&(L.subDocPath="#"+q[1]),D=decodeURI(L.location)===L.location,L.location=x(L.location,void 0),D&&(L.location=decodeURI(L.location)),L.subDocPath=function(N){var V;return o.isArray(N.subDocPath)?V=N.subDocPath:o.isString(N.subDocPath)?V=H(N.subDocPath):o.isUndefined(N.subDocPath)&&(V=[]),V}(L),!o.isUndefined(K))try{w(K,L.subDocPath)}catch(N){throw N.message=N.message.replace("JSON Pointer","options.subDocPath"),N}return L}function G(L){if(!o.isArray(L))throw new TypeError("path must be an array");return L.map(function(K){return o.isString(K)||(K=JSON.stringify(K)),K.replace(/~1/g,"/").replace(/~0/g,"~")})}function B(L){if(!o.isArray(L))throw new TypeError("path must be an array");return L.map(function(K){return o.isString(K)||(K=JSON.stringify(K)),K.replace(/~/g,"~0").replace(/\//g,"~1")})}function z(L,K){var q={};if(!o.isArray(L)&&!o.isObject(L))throw new TypeError("obj must be an Array or an Object");return function D(N,V,Z,re){var le=!0;function xe(fe,ge){Z.push(ge),D(N,fe,Z,re),Z.pop()}o.isFunction(re)&&(le=re(N,V,Z)),N.indexOf(V)===-1&&(N.push(V),le!==!1&&(o.isArray(V)?V.forEach(function(fe,ge){xe(fe,ge.toString())}):o.isObject(V)&&o.forOwn(V,function(fe,ge){xe(fe,ge)})),N.pop())}(function(D,N){var V,Z=[];return N.length>0&&(V=D,N.slice(0,N.length-1).forEach(function(re){re in V&&(V=V[re],Z.push(V))})),Z}(L,(K=U(K,L)).subDocPath),w(L,K.subDocPath),o.cloneDeep(K.subDocPath),function(D,N,V){var Z,re,le=!0;return E(N)&&(o.isUndefined(K.refPreProcessor)||(N=K.refPreProcessor(o.cloneDeep(N),V)),Z=Y(N),o.isUndefined(K.refPostProcessor)||(Z=K.refPostProcessor(Z,V)),K.filter(Z,V)&&(re=J(V),q[re]=Z),C(N).length>0&&(le=!1)),le}),q}function Y(L){var K,q,D,N={def:L};try{if(E(L,!0),K=L.$ref,D=v[K],o.isUndefined(D)&&(D=v[K]=R(K)),N.uri=K,N.uriDetails=D,o.isUndefined(D.error)){N.type=_(N);try{["#","/"].indexOf(K[0])>-1?Q(K,!0):K.indexOf("#")>-1&&Q(D.fragment,!0)}catch(V){N.error=V.message,N.type="invalid"}}else N.error=N.uriDetails.error,N.type="invalid";(q=C(L)).length>0&&(N.warning="Extra JSON Reference properties will be ignored: "+q.join(", "))}catch(V){N.error=V.message,N.type="invalid"}return N}function Q(L,K){var q,D=!0;try{if(!o.isString(L))throw new Error("ptr is not a String");if(L!==""){if(q=L.charAt(0),["#","/"].indexOf(q)===-1)throw new Error("ptr must start with a / or #/");if(q==="#"&&L!=="#"&&L.charAt(1)!=="/")throw new Error("ptr must start with a / or #/");if(L.match(f))throw new Error("ptr has invalid token(s)")}}catch(N){if(K===!0)throw N;D=!1}return D}function H(L){try{Q(L,!0)}catch(q){throw new Error("ptr must be a JSON Pointer: "+q.message)}var K=L.split("/");return K.shift(),G(K)}function J(L,K){if(!o.isArray(L))throw new Error("path must be an Array");return(K!==!1?"#":"")+(L.length>0?"/":"")+B(L).join("/")}function X(L,K){var q=Promise.resolve();return q=q.then(function(){if(!o.isArray(L)&&!o.isObject(L))throw new TypeError("obj must be an Array or an Object");K=U(K,L),L=o.cloneDeep(L)}).then(function(){var D={deps:{},docs:{},refs:{}};return function N(V,Z,re){var le,xe,fe=Promise.resolve(),ge=J(Z.subDocPath),he=k(Z.location),_e=i.dirname(Z.location),ve=he+ge;return o.isUndefined(re.docs[he])&&(re.docs[he]=V),o.isUndefined(re.deps[ve])&&(re.deps[ve]={},le=z(V,Z),o.forOwn(le,function(Be,Ue){var ze,He,be=k(Z.location)+Ue,we=Be.refdId=decodeURI(k(g(Be)?x(_e,Be.uri):Z.location)+"#"+(Be.uri.indexOf("#")>-1?Be.uri.split("#")[1]:""));re.refs[be]=Be,y(Be)&&(Be.fqURI=we,re.deps[ve][Ue===ge?"#":Ue.replace(ge+"/","#/")]=we,be.indexOf(we+"/")!==0&&be!==we?((xe=o.cloneDeep(Z)).subDocPath=o.isUndefined(Be.uriDetails.fragment)?[]:H(decodeURI(Be.uriDetails.fragment)),g(Be)?(delete xe.filter,xe.location=we.split("#")[0],fe=fe.then((ze=re,He=xe,function(){var Ce=k(He.location),qe=ze.docs[Ce];return o.isUndefined(qe)?$(Ce,He).catch(function(rt){return ze.docs[Ce]=rt,rt}):Promise.resolve().then(function(){return qe})}))):fe=fe.then(function(){return V}),fe=fe.then(function(Ce,qe,rt){return function(Ae){if(o.isError(Ae))I(rt,Ae);else try{return N(Ae,qe,Ce).catch(function(Le){I(rt,Le)})}catch(Le){I(rt,Le)}}}(re,xe,Be))):Be.circular=!0)})),fe}(L,K,D).then(function(){return D})}).then(function(D){var N={},V=[],Z=[],re=new a.Graph,le=k(K.location),xe=le+J(K.subDocPath),fe=i.dirname(le);return Object.keys(D.deps).forEach(function(ge){re.setNode(ge)}),o.forOwn(D.deps,function(ge,he){o.forOwn(ge,function(_e){re.setEdge(he,_e)})}),(V=a.alg.findCycles(re)).forEach(function(ge){ge.forEach(function(he){Z.indexOf(he)===-1&&Z.push(he)})}),o.forOwn(D.deps,function(ge,he){o.forOwn(ge,function(_e,ve){var Be,Ue=!1,ze=he+ve.slice(1),He=D.refs[he+ve.slice(1)],be=g(He);Z.indexOf(_e)>-1&&V.forEach(function(we){Ue||(Be=we.indexOf(_e))>-1&&we.forEach(function(Ce){Ue||ze.indexOf(Ce+"/")===0&&(be&&Be!==we.length-1&&_e[_e.length-1]==="#"||(Ue=!0))})}),Ue&&(He.circular=!0)})}),o.forOwn(Object.keys(D.deps).reverse(),function(ge){var he=D.deps[ge],_e=ge.split("#"),ve=D.docs[_e[0]],Be=H(_e[1]);o.forOwn(he,function(Ue,ze){var He=Ue.split("#"),be=D.docs[He[0]],we=Be.concat(H(ze)),Ce=D.refs[_e[0]+J(we)];if(o.isUndefined(Ce.error)&&o.isUndefined(Ce.missing))if(!K.resolveCirculars&&Ce.circular)Ce.value=o.cloneDeep(Ce.def);else{try{Ce.value=w(be,H(He[1]))}catch(qe){return void I(Ce,qe)}_e[1]===""&&ze==="#"?D.docs[_e[0]]=Ce.value:F(ve,we,Ce.value)}})}),Object.keys(D.refs).forEach(function(ge){var he,_e,ve=D.refs[ge];ve.type!=="invalid"&&(ve.fqURI[ve.fqURI.length-1]==="#"&&ve.uri[ve.uri.length-1]!=="#"&&(ve.fqURI=ve.fqURI.substr(0,ve.fqURI.length-1)),he=ve.fqURI.split("/"),_e=ve.uri.split("/"),o.times(_e.length-1,function(Be){var Ue=_e[_e.length-Be-1],ze=_e[_e.length-Be],He=he.length-Be-1;Ue!=="."&&Ue!==".."&&ze!==".."&&(he[He]=Ue)}),ve.fqURI=he.join("/"),ve.fqURI.indexOf(le)===0?ve.fqURI=ve.fqURI.replace(le,""):ve.fqURI.indexOf(fe)===0&&(ve.fqURI=ve.fqURI.replace(fe,"")),ve.fqURI[0]==="/"&&(ve.fqURI="."+ve.fqURI)),ge.indexOf(xe)===0&&function Be(Ue,ze,He){var be,we=ze.split("#"),Ce=D.refs[ze];N[we[0]===K.location?"#"+we[1]:J(K.subDocPath.concat(He))]=Ce,!Ce.circular&&y(Ce)?(be=D.deps[Ce.refdId],Ce.refdId.indexOf(Ue)!==0&&Object.keys(be).forEach(function(qe){Be(Ce.refdId,Ce.refdId+qe.substr(1),He.concat(H(qe)))})):!Ce.circular&&Ce.error&&(Ce.error=Ce.error.replace("options.subDocPath","JSON Pointer"),Ce.error.indexOf("#")>-1&&(Ce.error=Ce.error.replace(Ce.uri.substr(Ce.uri.indexOf("#")),Ce.uri)),Ce.error.indexOf("ENOENT:")!==0&&Ce.error.indexOf("Not Found")!==0||(Ce.error="JSON Pointer points to missing location: "+Ce.uri))}(xe,ge,H(ge.substr(xe.length)))}),o.forOwn(N,function(ge,he){delete ge.refdId,ge.circular&&ge.type==="local"&&(ge.value.$ref=ge.fqURI,F(D.docs[le],H(he),ge.value)),ge.missing&&(ge.error=ge.error.split(": ")[0]+": "+ge.def.$ref)}),{refs:N,resolved:D.docs[le]}})}typeof Promise>"u"&&n(83),e.exports.clearCache=function(){p={}},e.exports.decodePath=function(L){return G(L)},e.exports.encodePath=function(L){return B(L)},e.exports.findRefs=function(L,K){return z(L,K)},e.exports.findRefsAt=function(L,K){return function(q,D){var N=Promise.resolve();return N=N.then(function(){if(!o.isString(q))throw new TypeError("location must be a string");return o.isUndefined(D)&&(D={}),o.isObject(D)&&(D.location=q),$((D=U(D)).location,D)}).then(function(V){var Z=o.cloneDeep(p[D.location]),re=o.cloneDeep(D);return o.isUndefined(Z.refs)&&(delete re.filter,delete re.subDocPath,re.includeInvalid=!0,p[D.location].refs=z(V,re)),o.isUndefined(D.filter)||(re.filter=D.filter),{refs:z(V,re),value:V}})}(L,K)},e.exports.getRefDetails=function(L){return Y(L)},e.exports.isPtr=function(L,K){return Q(L,K)},e.exports.isRef=function(L,K){return function(q,D){return E(q,D)&&Y(q).type!=="invalid"}(L,K)},e.exports.pathFromPtr=function(L){return H(L)},e.exports.pathToPtr=function(L,K){return J(L,K)},e.exports.resolveRefs=function(L,K){return X(L,K)},e.exports.resolveRefsAt=function(L,K){return function(q,D){var N=Promise.resolve();return N=N.then(function(){if(!o.isString(q))throw new TypeError("location must be a string");return o.isUndefined(D)&&(D={}),o.isObject(D)&&(D.location=q),$((D=U(D)).location,D)}).then(function(V){return X(V,D).then(function(Z){return{refs:Z.refs,resolved:Z.resolved,value:V}})})}(L,K)}}).call(this,n(13))},function(e,t,n){(function(r,o){var a;function i(s){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l})(s)}/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */(function(){var s="Expected a function",l="__lodash_placeholder__",c=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u="[object Arguments]",f="[object Array]",p="[object Boolean]",m="[object Date]",b="[object Error]",v="[object Function]",x="[object GeneratorFunction]",g="[object Map]",y="[object Number]",w="[object Object]",C="[object RegExp]",_="[object Set]",$="[object String]",E="[object Symbol]",k="[object WeakMap]",I="[object ArrayBuffer]",R="[object DataView]",F="[object Float32Array]",U="[object Float64Array]",G="[object Int8Array]",B="[object Int16Array]",z="[object Int32Array]",Y="[object Uint8Array]",Q="[object Uint16Array]",H="[object Uint32Array]",J=/\b__p \+= '';/g,X=/\b(__p \+=) '' \+/g,L=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,D=RegExp(K.source),N=RegExp(q.source),V=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,re=/<%=([\s\S]+?)%>/g,le=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xe=/^\w*$/,fe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ge=/[\\^$.*+?()[\]{}|]/g,he=RegExp(ge.source),_e=/^\s+|\s+$/g,ve=/^\s+/,Be=/\s+$/,Ue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ze=/\{\n\/\* \[wrapped with (.+)\] \*/,He=/,? & /,be=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,we=/\\(\\)?/g,Ce=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qe=/\w*$/,rt=/^[-+]0x[0-9a-f]+$/i,Ae=/^0b[01]+$/i,Le=/^\[object .+?Constructor\]$/,Fe=/^0o[0-7]+$/i,Pe=/^(?:0|[1-9]\d*)$/,Te=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,it=/($^)/,ct=/['\n\r\u2028\u2029\\]/g,gt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ne="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ne="[\\ud800-\\udfff]",te="["+Ne+"]",ie="["+gt+"]",$e="\\d+",Se="[\\u2700-\\u27bf]",Ze="[a-z\\xdf-\\xf6\\xf8-\\xff]",tt="[^\\ud800-\\udfff"+Ne+$e+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ft="\\ud83c[\\udffb-\\udfff]",_t="[^\\ud800-\\udfff]",vt="(?:\\ud83c[\\udde6-\\uddff]){2}",dt="[\\ud800-\\udbff][\\udc00-\\udfff]",Et="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Yt="(?:"+Ze+"|"+tt+")",kt="(?:"+Et+"|"+tt+")",ln="(?:"+ie+"|"+ft+")?",Vt="[\\ufe0e\\ufe0f]?"+ln+("(?:\\u200d(?:"+[_t,vt,dt].join("|")+")[\\ufe0e\\ufe0f]?"+ln+")*"),Ut="(?:"+[Se,vt,dt].join("|")+")"+Vt,Kt="(?:"+[_t+ie+"?",ie,vt,dt,ne].join("|")+")",bn=RegExp("['’]","g"),Bn=RegExp(ie,"g"),se=RegExp(ft+"(?="+ft+")|"+Kt+Vt,"g"),oe=RegExp([Et+"?"+Ze+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[te,Et,"$"].join("|")+")",kt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[te,Et+Yt,"$"].join("|")+")",Et+"?"+Yt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Et+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$e,Ut].join("|"),"g"),ue=RegExp("[\\u200d\\ud800-\\udfff"+gt+"\\ufe0e\\ufe0f]"),ke=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ee=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],pt=-1,me={};me[F]=me[U]=me[G]=me[B]=me[z]=me[Y]=me["[object Uint8ClampedArray]"]=me[Q]=me[H]=!0,me[u]=me[f]=me[I]=me[p]=me[R]=me[m]=me[b]=me[v]=me[g]=me[y]=me[w]=me[C]=me[_]=me[$]=me[k]=!1;var pe={};pe[u]=pe[f]=pe[I]=pe[R]=pe[p]=pe[m]=pe[F]=pe[U]=pe[G]=pe[B]=pe[z]=pe[g]=pe[y]=pe[w]=pe[C]=pe[_]=pe[$]=pe[E]=pe[Y]=pe["[object Uint8ClampedArray]"]=pe[Q]=pe[H]=!0,pe[b]=pe[v]=pe[k]=!1;var De={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},nt=parseFloat,lt=parseInt,xt=(r===void 0?"undefined":i(r))=="object"&&r&&r.Object===Object&&r,Nt=(typeof self>"u"?"undefined":i(self))=="object"&&self&&self.Object===Object&&self,ut=xt||Nt||Function("return this")(),yt=i(t)=="object"&&t&&!t.nodeType&&t,Wt=yt&&i(o)=="object"&&o&&!o.nodeType&&o,En=Wt&&Wt.exports===yt,na=En&&xt.process,Vn=function(){try{var Me=Wt&&Wt.require&&Wt.require("util").types;return Me||na&&na.binding&&na.binding("util")}catch{}}(),Ro=Vn&&Vn.isArrayBuffer,ki=Vn&&Vn.isDate,Za=Vn&&Vn.isMap,Kr=Vn&&Vn.isRegExp,Do=Vn&&Vn.isSet,Xa=Vn&&Vn.isTypedArray;function Un(Me,Ye,Ge){switch(Ge.length){case 0:return Me.call(Ye);case 1:return Me.call(Ye,Ge[0]);case 2:return Me.call(Ye,Ge[0],Ge[1]);case 3:return Me.call(Ye,Ge[0],Ge[1],Ge[2])}return Me.apply(Ye,Ge)}function dl(Me,Ye,Ge,ht){for(var Ft=-1,cn=Me==null?0:Me.length;++Ft-1}function wc(Me,Ye,Ge){for(var ht=-1,Ft=Me==null?0:Me.length;++ht-1;);return Ge}function vE(Me,Ye){for(var Ge=Me.length;Ge--&&Cc(Ye,Me[Ge],0)>-1;);return Ge}function a8(Me,Ye){for(var Ge=Me.length,ht=0;Ge--;)Me[Ge]===Ye&&++ht;return ht}var i8=e1({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),s8=e1({"&":"&","<":"<",">":">",'"':""","'":"'"});function l8(Me){return"\\"+De[Me]}function $c(Me){return ue.test(Me)}function o1(Me){var Ye=-1,Ge=Array(Me.size);return Me.forEach(function(ht,Ft){Ge[++Ye]=[Ft,ht]}),Ge}function gE(Me,Ye){return function(Ge){return Me(Ye(Ge))}}function us(Me,Ye){for(var Ge=-1,ht=Me.length,Ft=0,cn=[];++Ge",""":'"',"'":"'"}),ds=function Me(Ye){var Ge,ht=(Ye=Ye==null?ut:ds.defaults(ut.Object(),Ye,ds.pick(ut,Ee))).Array,Ft=Ye.Date,cn=Ye.Error,hr=Ye.Function,Qa=Ye.Math,Dn=Ye.Object,a1=Ye.RegExp,d8=Ye.String,ra=Ye.TypeError,Eh=ht.prototype,f8=hr.prototype,_c=Dn.prototype,Ph=Ye["__core-js_shared__"],Th=f8.toString,xn=_c.hasOwnProperty,p8=0,yE=(Ge=/[^.]+$/.exec(Ph&&Ph.keys&&Ph.keys.IE_PROTO||""))?"Symbol(src)_1."+Ge:"",kh=_c.toString,h8=Th.call(Dn),m8=ut._,v8=a1("^"+Th.call(xn).replace(ge,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Oh=En?Ye.Buffer:void 0,fs=Ye.Symbol,Rh=Ye.Uint8Array,bE=Oh?Oh.allocUnsafe:void 0,Dh=gE(Dn.getPrototypeOf,Dn),xE=Dn.create,wE=_c.propertyIsEnumerable,Mh=Eh.splice,CE=fs?fs.isConcatSpreadable:void 0,Td=fs?fs.iterator:void 0,pl=fs?fs.toStringTag:void 0,Ih=function(){try{var d=gl(Dn,"defineProperty");return d({},"",{}),d}catch{}}(),g8=Ye.clearTimeout!==ut.clearTimeout&&Ye.clearTimeout,y8=Ft&&Ft.now!==ut.Date.now&&Ft.now,b8=Ye.setTimeout!==ut.setTimeout&&Ye.setTimeout,Ah=Qa.ceil,Nh=Qa.floor,i1=Dn.getOwnPropertySymbols,x8=Oh?Oh.isBuffer:void 0,$E=Ye.isFinite,w8=Eh.join,C8=gE(Dn.keys,Dn),mr=Qa.max,jr=Qa.min,$8=Ft.now,S8=Ye.parseInt,SE=Qa.random,_8=Eh.reverse,s1=gl(Ye,"DataView"),kd=gl(Ye,"Map"),l1=gl(Ye,"Promise"),Ec=gl(Ye,"Set"),Od=gl(Ye,"WeakMap"),Rd=gl(Dn,"create"),jh=Od&&new Od,Pc={},E8=yl(s1),P8=yl(kd),T8=yl(l1),k8=yl(Ec),O8=yl(Od),Lh=fs?fs.prototype:void 0,Dd=Lh?Lh.valueOf:void 0,_E=Lh?Lh.toString:void 0;function ee(d){if(Jn(d)&&!Ht(d)&&!(d instanceof rn)){if(d instanceof oa)return d;if(xn.call(d,"__wrapped__"))return EP(d)}return new oa(d)}var Tc=function(){function d(){}return function(h){if(!Wn(h))return{};if(xE)return xE(h);d.prototype=h;var P=new d;return d.prototype=void 0,P}}();function Fh(){}function oa(d,h){this.__wrapped__=d,this.__actions__=[],this.__chain__=!!h,this.__index__=0,this.__values__=void 0}function rn(d){this.__wrapped__=d,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function hl(d){var h=-1,P=d==null?0:d.length;for(this.clear();++h=h?d:h)),d}function aa(d,h,P,A,W,ae){var ce,ye=1&h,Re=2&h,We=4&h;if(P&&(ce=W?P(d,A,W,ae):P(d)),ce!==void 0)return ce;if(!Wn(d))return d;var Ve=Ht(d);if(Ve){if(ce=function(Je){var st=Je.length,It=new Je.constructor(st);return st&&typeof Je[0]=="string"&&xn.call(Je,"index")&&(It.index=Je.index,It.input=Je.input),It}(d),!ye)return uo(d,ce)}else{var ot=Lr(d),Ct=ot==v||ot==x;if(gs(d))return XE(d,ye);if(ot==w||ot==u||Ct&&!W){if(ce=Re||Ct?{}:gP(d),!ye)return Re?function(Je,st){return ti(Je,mP(Je),st)}(d,function(Je,st){return Je&&ti(st,po(st),Je)}(ce,d)):function(Je,st){return ti(Je,M1(Je),st)}(d,TE(ce,d))}else{if(!pe[ot])return W?d:{};ce=function(Je,st,It){var wt=Je.constructor;switch(st){case I:return E1(Je);case p:case m:return new wt(+Je);case R:return function(jt,Xt){var Pt=Xt?E1(jt.buffer):jt.buffer;return new jt.constructor(Pt,jt.byteOffset,jt.byteLength)}(Je,It);case F:case U:case G:case B:case z:case Y:case"[object Uint8ClampedArray]":case Q:case H:return QE(Je,It);case g:return new wt;case y:case $:return new wt(Je);case C:return function(jt){var Xt=new jt.constructor(jt.source,qe.exec(jt));return Xt.lastIndex=jt.lastIndex,Xt}(Je);case _:return new wt;case E:return At=Je,Dd?Dn(Dd.call(At)):{}}var At}(d,ot,ye)}}ae||(ae=new Pa);var $t=ae.get(d);if($t)return $t;ae.set(d,ce),WP(d)?d.forEach(function(Je){ce.add(aa(Je,h,P,Je,d,ae))}):VP(d)&&d.forEach(function(Je,st){ce.set(st,aa(Je,h,P,st,d,ae))});var Rt=Ve?void 0:(We?Re?O1:k1:Re?po:Er)(d);return Jr(Rt||d,function(Je,st){Rt&&(Je=d[st=Je]),Md(ce,st,aa(Je,h,P,st,d,ae))}),ce}function kE(d,h,P){var A=P.length;if(d==null)return!A;for(d=Dn(d);A--;){var W=P[A],ae=h[W],ce=d[W];if(ce===void 0&&!(W in d)||!ae(ce))return!1}return!0}function OE(d,h,P){if(typeof d!="function")throw new ra(s);return zd(function(){d.apply(void 0,P)},h)}function Id(d,h,P,A){var W=-1,ae=Oi,ce=!0,ye=d.length,Re=[],We=h.length;if(!ye)return Re;P&&(h=Tn(h,Io(P))),A?(ae=wc,ce=!1):h.length>=200&&(ae=Pd,ce=!1,h=new ml(h));e:for(;++W-1},Ri.prototype.set=function(d,h){var P=this.__data__,A=zh(P,d);return A<0?(++this.size,P.push([d,h])):P[A][1]=h,this},Di.prototype.clear=function(){this.size=0,this.__data__={hash:new hl,map:new(kd||Ri),string:new hl}},Di.prototype.delete=function(d){var h=Xh(this,d).delete(d);return this.size-=h?1:0,h},Di.prototype.get=function(d){return Xh(this,d).get(d)},Di.prototype.has=function(d){return Xh(this,d).has(d)},Di.prototype.set=function(d,h){var P=Xh(this,d),A=P.size;return P.set(d,h),this.size+=P.size==A?0:1,this},ml.prototype.add=ml.prototype.push=function(d){return this.__data__.set(d,"__lodash_hash_undefined__"),this},ml.prototype.has=function(d){return this.__data__.has(d)},Pa.prototype.clear=function(){this.__data__=new Ri,this.size=0},Pa.prototype.delete=function(d){var h=this.__data__,P=h.delete(d);return this.size=h.size,P},Pa.prototype.get=function(d){return this.__data__.get(d)},Pa.prototype.has=function(d){return this.__data__.has(d)},Pa.prototype.set=function(d,h){var P=this.__data__;if(P instanceof Ri){var A=P.__data__;if(!kd||A.length<199)return A.push([d,h]),this.size=++P.size,this;P=this.__data__=new Di(A)}return P.set(d,h),this.size=P.size,this};var ps=rP(ei),RE=rP(f1,!0);function I8(d,h){var P=!0;return ps(d,function(A,W,ae){return P=!!h(A,W,ae)}),P}function Bh(d,h,P){for(var A=-1,W=d.length;++A0&&P(ye)?h>1?Or(ye,h-1,P,A,W):co(W,ye):A||(W[W.length]=ye)}return W}var d1=oP(),ME=oP(!0);function ei(d,h){return d&&d1(d,h,Er)}function f1(d,h){return d&&ME(d,h,Er)}function Vh(d,h){return Mo(h,function(P){return ji(d[P])})}function kc(d,h){for(var P=0,A=(h=ms(h,d)).length;d!=null&&Ph}function A8(d,h){return d!=null&&xn.call(d,h)}function N8(d,h){return d!=null&&h in Dn(d)}function h1(d,h,P){for(var A=P?wc:Oi,W=d[0].length,ae=d.length,ce=ae,ye=ht(ae),Re=1/0,We=[];ce--;){var Ve=d[ce];ce&&h&&(Ve=Tn(Ve,Io(h))),Re=jr(Ve.length,Re),ye[ce]=!P&&(h||W>=120&&Ve.length>=120)?new ml(ce&&Ve):void 0}Ve=d[0];var ot=-1,Ct=ye[0];e:for(;++ot=$t)return Rt;var Je=Re[We];return Rt*(Je=="desc"?-1:1)}}return ce.index-ye.index}(W,ae,P)})}function UE(d,h,P){for(var A=-1,W=h.length,ae={};++A-1;)ye!==d&&Mh.call(ye,Re,1),Mh.call(d,Re,1);return d}function WE(d,h){for(var P=d?h.length:0,A=P-1;P--;){var W=h[P];if(P==A||W!==ae){var ae=W;Ni(W)?Mh.call(d,W,1):C1(d,W)}}return d}function b1(d,h){return d+Nh(SE()*(h-d+1))}function x1(d,h){var P="";if(!d||h<1||h>9007199254740991)return P;do h%2&&(P+=d),(h=Nh(h/2))&&(d+=d);while(h);return P}function Zt(d,h){return j1(xP(d,h,ho),d+"")}function L8(d){return PE(Ic(d))}function F8(d,h){var P=Ic(d);return Qh(P,vl(h,0,P.length))}function jd(d,h,P,A){if(!Wn(d))return d;for(var W=-1,ae=(h=ms(h,d)).length,ce=ae-1,ye=d;ye!=null&&++WW?0:W+h),(P=P>W?W:P)<0&&(P+=W),W=h>P?0:P-h>>>0,h>>>=0;for(var ae=ht(W);++A>>1,ce=d[ae];ce!==null&&!No(ce)&&(P?ce<=h:ce=200){var We=h?null:W8(d);if(We)return _h(We);ce=!1,W=Pd,Re=new ml}else Re=h?[]:ye;e:for(;++A=A?d:ia(d,h,P)}var ZE=g8||function(d){return ut.clearTimeout(d)};function XE(d,h){if(h)return d.slice();var P=d.length,A=bE?bE(P):new d.constructor(P);return d.copy(A),A}function E1(d){var h=new d.constructor(d.byteLength);return new Rh(h).set(new Rh(d)),h}function QE(d,h){var P=h?E1(d.buffer):d.buffer;return new d.constructor(P,d.byteOffset,d.length)}function eP(d,h){if(d!==h){var P=d!==void 0,A=d===null,W=d==d,ae=No(d),ce=h!==void 0,ye=h===null,Re=h==h,We=No(h);if(!ye&&!We&&!ae&&d>h||ae&&ce&&Re&&!ye&&!We||A&&ce&&Re||!P&&Re||!W)return 1;if(!A&&!ae&&!We&&d1?P[W-1]:void 0,ce=W>2?P[2]:void 0;for(ae=d.length>3&&typeof ae=="function"?(W--,ae):void 0,ce&&Xr(P[0],P[1],ce)&&(ae=W<3?void 0:ae,W=1),h=Dn(h);++A-1?W[ae?h[ce]:ce]:void 0}}function sP(d){return Ai(function(h){var P=h.length,A=P,W=oa.prototype.thru;for(d&&h.reverse();A--;){var ae=h[A];if(typeof ae!="function")throw new ra(s);if(W&&!ce&&Zh(ae)=="wrapper")var ce=new oa([],!0)}for(A=ce?A:P;++A1&&wt.reverse(),Ve&&Reye))return!1;var We=ae.get(d);if(We&&ae.get(h))return We==h;var Ve=-1,ot=!0,Ct=2&P?new ml:void 0;for(ae.set(d,h),ae.set(h,d);++Ve-1&&d%1==0&&d1?"& ":"")+ae[ye],ae=ae.join(ce>2?", ":" "),W.replace(Ue,`{ +/* [wrapped with `+ae+`] */ +`)}(A,function(W,ae){return Jr(c,function(ce){var ye="_."+ce[0];ae&ce[1]&&!Oi(W,ye)&&W.push(ye)}),W.sort()}(function(W){var ae=W.match(ze);return ae?ae[1].split(He):[]}(A),P)))}function SP(d){var h=0,P=0;return function(){var A=$8(),W=16-(A-P);if(P=A,W>0){if(++h>=800)return arguments[0]}else h=0;return d.apply(void 0,arguments)}}function Qh(d,h){var P=-1,A=d.length,W=A-1;for(h=h===void 0?A:h;++P1?d[h-1]:void 0;return P=typeof P=="function"?(d.pop(),P):void 0,DP(d,P)});function MP(d){var h=ee(d);return h.__chain__=!0,h}function em(d,h){return h(d)}var fF=Ai(function(d){var h=d.length,P=h?d[0]:0,A=this.__wrapped__,W=function(ae){return u1(ae,d)};return!(h>1||this.__actions__.length)&&A instanceof rn&&Ni(P)?((A=A.slice(P,+P+(h?1:0))).__actions__.push({func:em,args:[W],thisArg:void 0}),new oa(A,this.__chain__).thru(function(ae){return h&&!ae.length&&ae.push(void 0),ae})):this.thru(W)}),pF=Gh(function(d,h,P){xn.call(d,P)?++d[P]:Mi(d,P,1)}),hF=iP(PP),mF=iP(TP);function IP(d,h){return(Ht(d)?Jr:ps)(d,Ot(h,3))}function AP(d,h){return(Ht(d)?$h:RE)(d,Ot(h,3))}var vF=Gh(function(d,h,P){xn.call(d,P)?d[P].push(h):Mi(d,P,[h])}),gF=Zt(function(d,h,P){var A=-1,W=typeof h=="function",ae=fo(d)?ht(d.length):[];return ps(d,function(ce){ae[++A]=W?Un(h,ce,P):Ad(ce,h,P)}),ae}),yF=Gh(function(d,h,P){Mi(d,P,h)});function tm(d,h){return(Ht(d)?Tn:LE)(d,Ot(h,3))}var bF=Gh(function(d,h,P){d[P?0:1].push(h)},function(){return[[],[]]}),xF=Zt(function(d,h){if(d==null)return[];var P=h.length;return P>1&&Xr(d,h[0],h[1])?h=[]:P>2&&Xr(h[0],h[1],h[2])&&(h=[h[0]]),VE(d,Or(h,1),[])}),nm=y8||function(){return ut.Date.now()};function NP(d,h,P){return h=P?void 0:h,Ii(d,128,void 0,void 0,void 0,void 0,h=d&&h==null?d.length:h)}function jP(d,h){var P;if(typeof h!="function")throw new ra(s);return d=Gt(d),function(){return--d>0&&(P=h.apply(this,arguments)),d<=1&&(h=void 0),P}}var z1=Zt(function(d,h,P){var A=1;if(P.length){var W=us(P,Dc(z1));A|=32}return Ii(d,A,h,P,W)}),LP=Zt(function(d,h,P){var A=3;if(P.length){var W=us(P,Dc(LP));A|=32}return Ii(h,A,d,P,W)});function FP(d,h,P){var A,W,ae,ce,ye,Re,We=0,Ve=!1,ot=!1,Ct=!0;if(typeof d!="function")throw new ra(s);function $t(At){var jt=A,Xt=W;return A=W=void 0,We=At,ce=d.apply(Xt,jt)}function Rt(At){return We=At,ye=zd(st,h),Ve?$t(At):ce}function Je(At){var jt=At-Re;return Re===void 0||jt>=h||jt<0||ot&&At-We>=ae}function st(){var At=nm();if(Je(At))return It(At);ye=zd(st,function(jt){var Xt=h-(jt-Re);return ot?jr(Xt,ae-(jt-We)):Xt}(At))}function It(At){return ye=void 0,Ct&&A?$t(At):(A=W=void 0,ce)}function wt(){var At=nm(),jt=Je(At);if(A=arguments,W=this,Re=At,jt){if(ye===void 0)return Rt(Re);if(ot)return ZE(ye),ye=zd(st,h),$t(Re)}return ye===void 0&&(ye=zd(st,h)),ce}return h=la(h)||0,Wn(P)&&(Ve=!!P.leading,ae=(ot="maxWait"in P)?mr(la(P.maxWait)||0,h):ae,Ct="trailing"in P?!!P.trailing:Ct),wt.cancel=function(){ye!==void 0&&ZE(ye),We=0,A=Re=W=ye=void 0},wt.flush=function(){return ye===void 0?ce:It(nm())},wt}var wF=Zt(function(d,h){return OE(d,1,h)}),CF=Zt(function(d,h,P){return OE(d,la(h)||0,P)});function rm(d,h){if(typeof d!="function"||h!=null&&typeof h!="function")throw new ra(s);var P=function A(){var W=arguments,ae=h?h.apply(this,W):W[0],ce=A.cache;if(ce.has(ae))return ce.get(ae);var ye=d.apply(this,W);return A.cache=ce.set(ae,ye)||ce,ye};return P.cache=new(rm.Cache||Di),P}function om(d){if(typeof d!="function")throw new ra(s);return function(){var h=arguments;switch(h.length){case 0:return!d.call(this);case 1:return!d.call(this,h[0]);case 2:return!d.call(this,h[0],h[1]);case 3:return!d.call(this,h[0],h[1],h[2])}return!d.apply(this,h)}}rm.Cache=Di;var $F=U8(function(d,h){var P=(h=h.length==1&&Ht(h[0])?Tn(h[0],Io(Ot())):Tn(Or(h,1),Io(Ot()))).length;return Zt(function(A){for(var W=-1,ae=jr(A.length,P);++W=h}),bl=AE(function(){return arguments}())?AE:function(d){return Jn(d)&&xn.call(d,"callee")&&!wE.call(d,"callee")},Ht=ht.isArray,PF=Ro?Io(Ro):function(d){return Jn(d)&&Zr(d)==I};function fo(d){return d!=null&&am(d.length)&&!ji(d)}function or(d){return Jn(d)&&fo(d)}var gs=x8||X1,TF=ki?Io(ki):function(d){return Jn(d)&&Zr(d)==m};function V1(d){if(!Jn(d))return!1;var h=Zr(d);return h==b||h=="[object DOMException]"||typeof d.message=="string"&&typeof d.name=="string"&&!Bd(d)}function ji(d){if(!Wn(d))return!1;var h=Zr(d);return h==v||h==x||h=="[object AsyncFunction]"||h=="[object Proxy]"}function BP(d){return typeof d=="number"&&d==Gt(d)}function am(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=9007199254740991}function Wn(d){var h=i(d);return d!=null&&(h=="object"||h=="function")}function Jn(d){return d!=null&&i(d)=="object"}var VP=Za?Io(Za):function(d){return Jn(d)&&Lr(d)==g};function UP(d){return typeof d=="number"||Jn(d)&&Zr(d)==y}function Bd(d){if(!Jn(d)||Zr(d)!=w)return!1;var h=Dh(d);if(h===null)return!0;var P=xn.call(h,"constructor")&&h.constructor;return typeof P=="function"&&P instanceof P&&Th.call(P)==h8}var U1=Kr?Io(Kr):function(d){return Jn(d)&&Zr(d)==C},WP=Do?Io(Do):function(d){return Jn(d)&&Lr(d)==_};function im(d){return typeof d=="string"||!Ht(d)&&Jn(d)&&Zr(d)==$}function No(d){return i(d)=="symbol"||Jn(d)&&Zr(d)==E}var Mc=Xa?Io(Xa):function(d){return Jn(d)&&am(d.length)&&!!me[Zr(d)]},kF=Jh(g1),OF=Jh(function(d,h){return d<=h});function HP(d){if(!d)return[];if(fo(d))return im(d)?Ea(d):uo(d);if(Td&&d[Td])return function(P){for(var A,W=[];!(A=P.next()).done;)W.push(A.value);return W}(d[Td]());var h=Lr(d);return(h==g?o1:h==_?_h:Ic)(d)}function Li(d){return d?(d=la(d))===1/0||d===-1/0?17976931348623157e292*(d<0?-1:1):d==d?d:0:d===0?d:0}function Gt(d){var h=Li(d),P=h%1;return h==h?P?h-P:h:0}function GP(d){return d?vl(Gt(d),0,4294967295):0}function la(d){if(typeof d=="number")return d;if(No(d))return NaN;if(Wn(d)){var h=typeof d.valueOf=="function"?d.valueOf():d;d=Wn(h)?h+"":h}if(typeof d!="string")return d===0?d:+d;d=d.replace(_e,"");var P=Ae.test(d);return P||Fe.test(d)?lt(d.slice(2),P?2:8):rt.test(d)?NaN:+d}function qP(d){return ti(d,po(d))}function vn(d){return d==null?"":Ao(d)}var RF=Oc(function(d,h){if(Fd(h)||fo(h))ti(h,Er(h),d);else for(var P in h)xn.call(h,P)&&Md(d,P,h[P])}),YP=Oc(function(d,h){ti(h,po(h),d)}),sm=Oc(function(d,h,P,A){ti(h,po(h),d,A)}),DF=Oc(function(d,h,P,A){ti(h,Er(h),d,A)}),MF=Ai(u1),IF=Zt(function(d,h){d=Dn(d);var P=-1,A=h.length,W=A>2?h[2]:void 0;for(W&&Xr(h[0],h[1],W)&&(A=1);++P1),ae}),ti(d,O1(d),P),A&&(P=aa(P,7,H8));for(var W=h.length;W--;)C1(P,h[W]);return P}),BF=Ai(function(d,h){return d==null?{}:function(P,A){return UE(P,A,function(W,ae){return H1(P,ae)})}(d,h)});function JP(d,h){if(d==null)return{};var P=Tn(O1(d),function(A){return[A]});return h=Ot(h),UE(d,P,function(A,W){return h(A,W[0])})}var ZP=dP(Er),XP=dP(po);function Ic(d){return d==null?[]:r1(d,Er(d))}var VF=Rc(function(d,h,P){return h=h.toLowerCase(),d+(P?QP(h):h)});function QP(d){return G1(vn(d).toLowerCase())}function eT(d){return(d=vn(d))&&d.replace(Te,i8).replace(Bn,"")}var UF=Rc(function(d,h,P){return d+(P?"-":"")+h.toLowerCase()}),WF=Rc(function(d,h,P){return d+(P?" ":"")+h.toLowerCase()}),HF=aP("toLowerCase"),GF=Rc(function(d,h,P){return d+(P?"_":"")+h.toLowerCase()}),qF=Rc(function(d,h,P){return d+(P?" ":"")+G1(h)}),YF=Rc(function(d,h,P){return d+(P?" ":"")+h.toUpperCase()}),G1=aP("toUpperCase");function tT(d,h,P){return d=vn(d),(h=P?void 0:h)===void 0?function(A){return ke.test(A)}(d)?function(A){return A.match(oe)||[]}(d):function(A){return A.match(be)||[]}(d):d.match(h)||[]}var nT=Zt(function(d,h){try{return Un(d,void 0,h)}catch(P){return V1(P)?P:new cn(P)}}),KF=Ai(function(d,h){return Jr(h,function(P){P=ni(P),Mi(d,P,z1(d[P],d))}),d});function q1(d){return function(){return d}}var JF=sP(),ZF=sP(!0);function ho(d){return d}function Y1(d){return jE(typeof d=="function"?d:aa(d,1))}var XF=Zt(function(d,h){return function(P){return Ad(P,d,h)}}),QF=Zt(function(d,h){return function(P){return Ad(d,P,h)}});function K1(d,h,P){var A=Er(h),W=Vh(h,A);P!=null||Wn(h)&&(W.length||!A.length)||(P=h,h=d,d=this,W=Vh(h,Er(h)));var ae=!(Wn(P)&&"chain"in P&&!P.chain),ce=ji(d);return Jr(W,function(ye){var Re=h[ye];d[ye]=Re,ce&&(d.prototype[ye]=function(){var We=this.__chain__;if(ae||We){var Ve=d(this.__wrapped__),ot=Ve.__actions__=uo(this.__actions__);return ot.push({func:Re,args:arguments,thisArg:d}),Ve.__chain__=We,Ve}return Re.apply(d,co([this.value()],arguments))})}),d}function J1(){}var e7=P1(Tn),t7=P1(fl),n7=P1(X0);function rT(d){return I1(d)?Q0(ni(d)):function(h){return function(P){return kc(P,h)}}(d)}var r7=cP(),o7=cP(!0);function Z1(){return[]}function X1(){return!1}var a7=Yh(function(d,h){return d+h},0),i7=T1("ceil"),s7=Yh(function(d,h){return d/h},1),l7=T1("floor"),Q1,c7=Yh(function(d,h){return d*h},1),u7=T1("round"),d7=Yh(function(d,h){return d-h},0);return ee.after=function(d,h){if(typeof h!="function")throw new ra(s);return d=Gt(d),function(){if(--d<1)return h.apply(this,arguments)}},ee.ary=NP,ee.assign=RF,ee.assignIn=YP,ee.assignInWith=sm,ee.assignWith=DF,ee.at=MF,ee.before=jP,ee.bind=z1,ee.bindAll=KF,ee.bindKey=LP,ee.castArray=function(){if(!arguments.length)return[];var d=arguments[0];return Ht(d)?d:[d]},ee.chain=MP,ee.chunk=function(d,h,P){h=(P?Xr(d,h,P):h===void 0)?1:mr(Gt(h),0);var A=d==null?0:d.length;if(!A||h<1)return[];for(var W=0,ae=0,ce=ht(Ah(A/h));WWe?0:We+ye),(Re=Re===void 0||Re>We?We:Gt(Re))<0&&(Re+=We),Re=ye>Re?0:GP(Re);ye>>0)?(d=vn(d))&&(typeof h=="string"||h!=null&&!U1(h))&&!(h=Ao(h))&&$c(d)?vs(Ea(d),0,P):d.split(h,P):[]},ee.spread=function(d,h){if(typeof d!="function")throw new ra(s);return h=h==null?0:mr(Gt(h),0),Zt(function(P){var A=P[h],W=vs(P,0,h);return A&&co(W,A),Un(d,this,W)})},ee.tail=function(d){var h=d==null?0:d.length;return h?ia(d,1,h):[]},ee.take=function(d,h,P){return d&&d.length?ia(d,0,(h=P||h===void 0?1:Gt(h))<0?0:h):[]},ee.takeRight=function(d,h,P){var A=d==null?0:d.length;return A?ia(d,(h=A-(h=P||h===void 0?1:Gt(h)))<0?0:h,A):[]},ee.takeRightWhile=function(d,h){return d&&d.length?Hh(d,Ot(h,3),!1,!0):[]},ee.takeWhile=function(d,h){return d&&d.length?Hh(d,Ot(h,3)):[]},ee.tap=function(d,h){return h(d),d},ee.throttle=function(d,h,P){var A=!0,W=!0;if(typeof d!="function")throw new ra(s);return Wn(P)&&(A="leading"in P?!!P.leading:A,W="trailing"in P?!!P.trailing:W),FP(d,h,{leading:A,maxWait:h,trailing:W})},ee.thru=em,ee.toArray=HP,ee.toPairs=ZP,ee.toPairsIn=XP,ee.toPath=function(d){return Ht(d)?Tn(d,ni):No(d)?[d]:uo(_P(vn(d)))},ee.toPlainObject=qP,ee.transform=function(d,h,P){var A=Ht(d),W=A||gs(d)||Mc(d);if(h=Ot(h,4),P==null){var ae=d&&d.constructor;P=W?A?new ae:[]:Wn(d)&&ji(ae)?Tc(Dh(d)):{}}return(W?Jr:ei)(d,function(ce,ye,Re){return h(P,ce,ye,Re)}),P},ee.unary=function(d){return NP(d,1)},ee.union=rF,ee.unionBy=oF,ee.unionWith=aF,ee.uniq=function(d){return d&&d.length?hs(d):[]},ee.uniqBy=function(d,h){return d&&d.length?hs(d,Ot(h,2)):[]},ee.uniqWith=function(d,h){return h=typeof h=="function"?h:void 0,d&&d.length?hs(d,void 0,h):[]},ee.unset=function(d,h){return d==null||C1(d,h)},ee.unzip=F1,ee.unzipWith=DP,ee.update=function(d,h,P){return d==null?d:YE(d,h,_1(P))},ee.updateWith=function(d,h,P,A){return A=typeof A=="function"?A:void 0,d==null?d:YE(d,h,_1(P),A)},ee.values=Ic,ee.valuesIn=function(d){return d==null?[]:r1(d,po(d))},ee.without=iF,ee.words=tT,ee.wrap=function(d,h){return B1(_1(h),d)},ee.xor=sF,ee.xorBy=lF,ee.xorWith=cF,ee.zip=uF,ee.zipObject=function(d,h){return JE(d||[],h||[],Md)},ee.zipObjectDeep=function(d,h){return JE(d||[],h||[],jd)},ee.zipWith=dF,ee.entries=ZP,ee.entriesIn=XP,ee.extend=YP,ee.extendWith=sm,K1(ee,ee),ee.add=a7,ee.attempt=nT,ee.camelCase=VF,ee.capitalize=QP,ee.ceil=i7,ee.clamp=function(d,h,P){return P===void 0&&(P=h,h=void 0),P!==void 0&&(P=(P=la(P))==P?P:0),h!==void 0&&(h=(h=la(h))==h?h:0),vl(la(d),h,P)},ee.clone=function(d){return aa(d,4)},ee.cloneDeep=function(d){return aa(d,5)},ee.cloneDeepWith=function(d,h){return aa(d,5,h=typeof h=="function"?h:void 0)},ee.cloneWith=function(d,h){return aa(d,4,h=typeof h=="function"?h:void 0)},ee.conformsTo=function(d,h){return h==null||kE(d,h,Er(h))},ee.deburr=eT,ee.defaultTo=function(d,h){return d==null||d!=d?h:d},ee.divide=s7,ee.endsWith=function(d,h,P){d=vn(d),h=Ao(h);var A=d.length,W=P=P===void 0?A:vl(Gt(P),0,A);return(P-=h.length)>=0&&d.slice(P,W)==h},ee.eq=Ta,ee.escape=function(d){return(d=vn(d))&&N.test(d)?d.replace(q,s8):d},ee.escapeRegExp=function(d){return(d=vn(d))&&he.test(d)?d.replace(ge,"\\$&"):d},ee.every=function(d,h,P){var A=Ht(d)?fl:I8;return P&&Xr(d,h,P)&&(h=void 0),A(d,Ot(h,3))},ee.find=hF,ee.findIndex=PP,ee.findKey=function(d,h){return dE(d,Ot(h,3),ei)},ee.findLast=mF,ee.findLastIndex=TP,ee.findLastKey=function(d,h){return dE(d,Ot(h,3),f1)},ee.floor=l7,ee.forEach=IP,ee.forEachRight=AP,ee.forIn=function(d,h){return d==null?d:d1(d,Ot(h,3),po)},ee.forInRight=function(d,h){return d==null?d:ME(d,Ot(h,3),po)},ee.forOwn=function(d,h){return d&&ei(d,Ot(h,3))},ee.forOwnRight=function(d,h){return d&&f1(d,Ot(h,3))},ee.get=W1,ee.gt=_F,ee.gte=EF,ee.has=function(d,h){return d!=null&&vP(d,h,A8)},ee.hasIn=H1,ee.head=OP,ee.identity=ho,ee.includes=function(d,h,P,A){d=fo(d)?d:Ic(d),P=P&&!A?Gt(P):0;var W=d.length;return P<0&&(P=mr(W+P,0)),im(d)?P<=W&&d.indexOf(h,P)>-1:!!W&&Cc(d,h,P)>-1},ee.indexOf=function(d,h,P){var A=d==null?0:d.length;if(!A)return-1;var W=P==null?0:Gt(P);return W<0&&(W=mr(A+W,0)),Cc(d,h,W)},ee.inRange=function(d,h,P){return h=Li(h),P===void 0?(P=h,h=0):P=Li(P),function(A,W,ae){return A>=jr(W,ae)&&A=-9007199254740991&&d<=9007199254740991},ee.isSet=WP,ee.isString=im,ee.isSymbol=No,ee.isTypedArray=Mc,ee.isUndefined=function(d){return d===void 0},ee.isWeakMap=function(d){return Jn(d)&&Lr(d)==k},ee.isWeakSet=function(d){return Jn(d)&&Zr(d)=="[object WeakSet]"},ee.join=function(d,h){return d==null?"":w8.call(d,h)},ee.kebabCase=UF,ee.last=sa,ee.lastIndexOf=function(d,h,P){var A=d==null?0:d.length;if(!A)return-1;var W=A;return P!==void 0&&(W=(W=Gt(P))<0?mr(A+W,0):jr(W,A-1)),h==h?function(ae,ce,ye){for(var Re=ye+1;Re--;)if(ae[Re]===ce)return Re;return Re}(d,h,W):Sh(d,fE,W,!0)},ee.lowerCase=WF,ee.lowerFirst=HF,ee.lt=kF,ee.lte=OF,ee.max=function(d){return d&&d.length?Bh(d,ho,p1):void 0},ee.maxBy=function(d,h){return d&&d.length?Bh(d,Ot(h,2),p1):void 0},ee.mean=function(d){return pE(d,ho)},ee.meanBy=function(d,h){return pE(d,Ot(h,2))},ee.min=function(d){return d&&d.length?Bh(d,ho,g1):void 0},ee.minBy=function(d,h){return d&&d.length?Bh(d,Ot(h,2),g1):void 0},ee.stubArray=Z1,ee.stubFalse=X1,ee.stubObject=function(){return{}},ee.stubString=function(){return""},ee.stubTrue=function(){return!0},ee.multiply=c7,ee.nth=function(d,h){return d&&d.length?BE(d,Gt(h)):void 0},ee.noConflict=function(){return ut._===this&&(ut._=m8),this},ee.noop=J1,ee.now=nm,ee.pad=function(d,h,P){d=vn(d);var A=(h=Gt(h))?Sc(d):0;if(!h||A>=h)return d;var W=(h-A)/2;return Kh(Nh(W),P)+d+Kh(Ah(W),P)},ee.padEnd=function(d,h,P){d=vn(d);var A=(h=Gt(h))?Sc(d):0;return h&&Ah){var A=d;d=h,h=A}if(P||d%1||h%1){var W=SE();return jr(d+W*(h-d+nt("1e-"+((W+"").length-1))),h)}return b1(d,h)},ee.reduce=function(d,h,P){var A=Ht(d)?Z0:hE,W=arguments.length<3;return A(d,Ot(h,4),P,W,ps)},ee.reduceRight=function(d,h,P){var A=Ht(d)?n8:hE,W=arguments.length<3;return A(d,Ot(h,4),P,W,RE)},ee.repeat=function(d,h,P){return h=(P?Xr(d,h,P):h===void 0)?1:Gt(h),x1(vn(d),h)},ee.replace=function(){var d=arguments,h=vn(d[0]);return d.length<3?h:h.replace(d[1],d[2])},ee.result=function(d,h,P){var A=-1,W=(h=ms(h,d)).length;for(W||(W=1,d=void 0);++A9007199254740991)return[];var P=4294967295,A=jr(d,4294967295);d-=4294967295;for(var W=n1(A,h=Ot(h));++P=ae)return d;var ye=P-Sc(A);if(ye<1)return A;var Re=ce?vs(ce,0,ye).join(""):d.slice(0,ye);if(W===void 0)return Re+A;if(ce&&(ye+=Re.length-ye),U1(W)){if(d.slice(ye).search(W)){var We,Ve=Re;for(W.global||(W=a1(W.source,vn(qe.exec(W))+"g")),W.lastIndex=0;We=W.exec(Ve);)var ot=We.index;Re=Re.slice(0,ot===void 0?ye:ot)}}else if(d.indexOf(Ao(W),ye)!=ye){var Ct=Re.lastIndexOf(W);Ct>-1&&(Re=Re.slice(0,Ct))}return Re+A},ee.unescape=function(d){return(d=vn(d))&&D.test(d)?d.replace(K,u8):d},ee.uniqueId=function(d){var h=++p8;return vn(d)+h},ee.upperCase=YF,ee.upperFirst=G1,ee.each=IP,ee.eachRight=AP,ee.first=OP,K1(ee,(Q1={},ei(ee,function(d,h){xn.call(ee.prototype,h)||(Q1[h]=d)}),Q1),{chain:!1}),ee.VERSION="4.17.15",Jr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(d){ee[d].placeholder=ee}),Jr(["drop","take"],function(d,h){rn.prototype[d]=function(P){P=P===void 0?1:mr(Gt(P),0);var A=this.__filtered__&&!h?new rn(this):this.clone();return A.__filtered__?A.__takeCount__=jr(P,A.__takeCount__):A.__views__.push({size:jr(P,4294967295),type:d+(A.__dir__<0?"Right":"")}),A},rn.prototype[d+"Right"]=function(P){return this.reverse()[d](P).reverse()}}),Jr(["filter","map","takeWhile"],function(d,h){var P=h+1,A=P==1||P==3;rn.prototype[d]=function(W){var ae=this.clone();return ae.__iteratees__.push({iteratee:Ot(W,3),type:P}),ae.__filtered__=ae.__filtered__||A,ae}}),Jr(["head","last"],function(d,h){var P="take"+(h?"Right":"");rn.prototype[d]=function(){return this[P](1).value()[0]}}),Jr(["initial","tail"],function(d,h){var P="drop"+(h?"":"Right");rn.prototype[d]=function(){return this.__filtered__?new rn(this):this[P](1)}}),rn.prototype.compact=function(){return this.filter(ho)},rn.prototype.find=function(d){return this.filter(d).head()},rn.prototype.findLast=function(d){return this.reverse().find(d)},rn.prototype.invokeMap=Zt(function(d,h){return typeof d=="function"?new rn(this):this.map(function(P){return Ad(P,d,h)})}),rn.prototype.reject=function(d){return this.filter(om(Ot(d)))},rn.prototype.slice=function(d,h){d=Gt(d);var P=this;return P.__filtered__&&(d>0||h<0)?new rn(P):(d<0?P=P.takeRight(-d):d&&(P=P.drop(d)),h!==void 0&&(P=(h=Gt(h))<0?P.dropRight(-h):P.take(h-d)),P)},rn.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},rn.prototype.toArray=function(){return this.take(4294967295)},ei(rn.prototype,function(d,h){var P=/^(?:filter|find|map|reject)|While$/.test(h),A=/^(?:head|last)$/.test(h),W=ee[A?"take"+(h=="last"?"Right":""):h],ae=A||/^find/.test(h);W&&(ee.prototype[h]=function(){var ce=this.__wrapped__,ye=A?[1]:arguments,Re=ce instanceof rn,We=ye[0],Ve=Re||Ht(ce),ot=function(It){var wt=W.apply(ee,co([It],ye));return A&&Ct?wt[0]:wt};Ve&&P&&typeof We=="function"&&We.length!=1&&(Re=Ve=!1);var Ct=this.__chain__,$t=!!this.__actions__.length,Rt=ae&&!Ct,Je=Re&&!$t;if(!ae&&Ve){ce=Je?ce:new rn(this);var st=d.apply(ce,ye);return st.__actions__.push({func:em,args:[ot],thisArg:void 0}),new oa(st,Ct)}return Rt&&Je?d.apply(this,ye):(st=this.thru(ot),Rt?A?st.value()[0]:st.value():st)})}),Jr(["pop","push","shift","sort","splice","unshift"],function(d){var h=Eh[d],P=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",A=/^(?:pop|shift)$/.test(d);ee.prototype[d]=function(){var W=arguments;if(A&&!this.__chain__){var ae=this.value();return h.apply(Ht(ae)?ae:[],W)}return this[P](function(ce){return h.apply(Ht(ce)?ce:[],W)})}}),ei(rn.prototype,function(d,h){var P=ee[h];if(P){var A=P.name+"";xn.call(Pc,A)||(Pc[A]=[]),Pc[A].push({name:h,func:P})}}),Pc[qh(void 0,2).name]=[{name:"wrapper",func:void 0}],rn.prototype.clone=function(){var d=new rn(this.__wrapped__);return d.__actions__=uo(this.__actions__),d.__dir__=this.__dir__,d.__filtered__=this.__filtered__,d.__iteratees__=uo(this.__iteratees__),d.__takeCount__=this.__takeCount__,d.__views__=uo(this.__views__),d},rn.prototype.reverse=function(){if(this.__filtered__){var d=new rn(this);d.__dir__=-1,d.__filtered__=!0}else(d=this.clone()).__dir__*=-1;return d},rn.prototype.value=function(){var d=this.__wrapped__.value(),h=this.__dir__,P=Ht(d),A=h<0,W=P?d.length:0,ae=function(Xt,Pt,Dt){for(var vr=-1,Qr=Dt.length;++vr=this.__values__.length;return{done:d,value:d?void 0:this.__values__[this.__index__++]}},ee.prototype.plant=function(d){for(var h,P=this;P instanceof Fh;){var A=EP(P);A.__index__=0,A.__values__=void 0,h?W.__wrapped__=A:h=A;var W=A;P=P.__wrapped__}return W.__wrapped__=d,h},ee.prototype.reverse=function(){var d=this.__wrapped__;if(d instanceof rn){var h=d;return this.__actions__.length&&(h=new rn(this)),(h=h.reverse()).__actions__.push({func:em,args:[L1],thisArg:void 0}),new oa(h,this.__chain__)}return this.thru(L1)},ee.prototype.toJSON=ee.prototype.valueOf=ee.prototype.value=function(){return KE(this.__wrapped__,this.__actions__)},ee.prototype.first=ee.prototype.head,Td&&(ee.prototype[Td]=function(){return this}),ee}();i(n(46))=="object"&&n(46)?(ut._=ds,(a=(function(){return ds}).call(t,n,t,o))===void 0||(o.exports=a)):Wt?((Wt.exports=ds)._=ds,yt._=ds):ut._=ds}).call(this)}).call(this,n(11),n(14)(e))},function(e,t,n){var r=n(87);e.exports={Graph:r.Graph,json:n(213),alg:n(214),version:r.version}},function(e,t,n){e.exports={Graph:n(28),version:n(212)}},function(e,t,n){var r=n(89);e.exports=function(o){return r(o,4)}},function(e,t,n){var r=n(29),o=n(33),a=n(49),i=n(118),s=n(124),l=n(127),c=n(128),u=n(129),f=n(130),p=n(59),m=n(131),b=n(10),v=n(135),x=n(136),g=n(141),y=n(0),w=n(12),C=n(142),_=n(5),$=n(144),E=n(6),k={};k["[object Arguments]"]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k["[object Object]"]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k["[object Function]"]=k["[object WeakMap]"]=!1,e.exports=function I(R,F,U,G,B,z){var Y,Q=1&F,H=2&F,J=4&F;if(U&&(Y=B?U(R,G,B,z):U(R)),Y!==void 0)return Y;if(!_(R))return R;var X=y(R);if(X){if(Y=v(R),!Q)return c(R,Y)}else{var L=b(R),K=L=="[object Function]"||L=="[object GeneratorFunction]";if(w(R))return l(R,Q);if(L=="[object Object]"||L=="[object Arguments]"||K&&!B){if(Y=H||K?{}:g(R),!Q)return H?f(R,s(Y,R)):u(R,i(Y,R))}else{if(!k[L])return B?R:{};Y=x(R,L,Q)}}z||(z=new r);var q=z.get(R);if(q)return q;z.set(R,Y),$(R)?R.forEach(function(V){Y.add(I(V,F,U,V,R,z))}):C(R)&&R.forEach(function(V,Z){Y.set(Z,I(V,F,U,Z,R,z))});var D=J?H?m:p:H?keysIn:E,N=X?void 0:D(R);return o(N||R,function(V,Z){N&&(V=R[Z=V]),a(Y,Z,I(V,F,U,Z,R,z))}),Y}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(16),o=Array.prototype.splice;e.exports=function(a){var i=this.__data__,s=r(i,a);return!(s<0)&&(s==i.length-1?i.pop():o.call(i,s,1),--this.size,!0)}},function(e,t,n){var r=n(16);e.exports=function(o){var a=this.__data__,i=r(a,o);return i<0?void 0:a[i][1]}},function(e,t,n){var r=n(16);e.exports=function(o){return r(this.__data__,o)>-1}},function(e,t,n){var r=n(16);e.exports=function(o,a){var i=this.__data__,s=r(i,o);return s<0?(++this.size,i.push([o,a])):i[s][1]=a,this}},function(e,t,n){var r=n(15);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(n){var r=this.__data__,o=r.delete(n);return this.size=r.size,o}},function(e,t){e.exports=function(n){return this.__data__.get(n)}},function(e,t){e.exports=function(n){return this.__data__.has(n)}},function(e,t,n){var r=n(15),o=n(31),a=n(32);e.exports=function(i,s){var l=this.__data__;if(l instanceof r){var c=l.__data__;if(!o||c.length<199)return c.push([i,s]),this.size=++l.size,this;l=this.__data__=new a(c)}return l.set(i,s),this.size=l.size,this}},function(e,t,n){var r=n(17),o=n(103),a=n(5),i=n(48),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,f=c.hasOwnProperty,p=RegExp("^"+u.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(m){return!(!a(m)||o(m))&&(r(m)?p:s).test(i(m))}},function(e,t,n){var r=n(9),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=r?r.toStringTag:void 0;e.exports=function(l){var c=a.call(l,s),u=l[s];try{l[s]=void 0;var f=!0}catch{}var p=i.call(l);return f&&(c?l[s]=u:delete l[s]),p}},function(e,t){var n=Object.prototype.toString;e.exports=function(r){return n.call(r)}},function(e,t,n){var r,o=n(104),a=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(i){return!!a&&a in i}},function(e,t,n){var r=n(2)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(n,r){return n==null?void 0:n[r]}},function(e,t,n){var r=n(107),o=n(15),a=n(31);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||o),string:new r}}},function(e,t,n){var r=n(108),o=n(109),a=n(110),i=n(111),s=n(112);function l(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u0&&l(m)?s>1?a(m,s-1,l,c,u):r(u,m):c||(u[u.length]=m)}return u}},function(e,t,n){var r=n(9),o=n(21),a=n(0),i=r?r.isConcatSpreadable:void 0;e.exports=function(s){return a(s)||o(s)||!!(i&&s&&s[i])}},function(e,t,n){var r=n(25),o=n(195),a=n(197);e.exports=function(i,s){return a(o(i,s,r),i+"")}},function(e,t,n){var r=n(196),o=Math.max;e.exports=function(a,i,s){return i=o(i===void 0?a.length-1:i,0),function(){for(var l=arguments,c=-1,u=o(l.length-i,0),f=Array(u);++c0){if(++o>=800)return arguments[0]}else o=0;return r.apply(void 0,arguments)}}},function(e,t,n){var r=n(68),o=n(201),a=n(206),i=n(69),s=n(207),l=n(42);e.exports=function(c,u,f){var p=-1,m=o,b=c.length,v=!0,x=[],g=x;if(f)v=!1,m=a;else if(b>=200){var y=u?null:s(c);if(y)return l(y);v=!1,m=i,g=new r}else g=u?[]:x;e:for(;++p-1}},function(e,t,n){var r=n(203),o=n(204),a=n(205);e.exports=function(i,s,l){return s==s?a(i,s,l):r(i,o,l)}},function(e,t){e.exports=function(n,r,o,a){for(var i=n.length,s=o+(a?1:-1);a?s--:++s1||i.length===1&&a.hasEdge(i[0],i[0])})}},function(e,t,n){var r=n(1);e.exports=function(a,i,s){return function(l,c,u){var f={},p=l.nodes();return p.forEach(function(m){f[m]={},f[m][m]={distance:0},p.forEach(function(b){m!==b&&(f[m][b]={distance:Number.POSITIVE_INFINITY})}),u(m).forEach(function(b){var v=b.v===m?b.w:b.v,x=c(b);f[m][v]={distance:x,predecessor:m}})}),p.forEach(function(m){var b=f[m];p.forEach(function(v){var x=f[v];p.forEach(function(g){var y=x[m],w=b[g],C=x[g],_=y.distance+w.distance;_0;){if(l=f.removeMin(),r.has(u,l))c.setEdge(l,u[l]);else{if(m)throw new Error("Input graph is not connected: "+i);m=!0}i.nodeEdges(l).forEach(p)}return c}},function(e,t,n){(function(r){function o(s,l){for(var c=0,u=s.length-1;u>=0;u--){var f=s[u];f==="."?s.splice(u,1):f===".."?(s.splice(u,1),c++):c&&(s.splice(u,1),c--)}if(l)for(;c--;c)s.unshift("..");return s}function a(s,l){if(s.filter)return s.filter(l);for(var c=[],u=0;u=-1&&!l;c--){var u=c>=0?arguments[c]:r.cwd();if(typeof u!="string")throw new TypeError("Arguments to path.resolve must be strings");u&&(s=u+"/"+s,l=u.charAt(0)==="/")}return(l?"/":"")+(s=o(a(s.split("/"),function(f){return!!f}),!l).join("/"))||"."},t.normalize=function(s){var l=t.isAbsolute(s),c=i(s,-1)==="/";return(s=o(a(s.split("/"),function(u){return!!u}),!l).join("/"))||l||(s="."),s&&c&&(s+="/"),(l?"/":"")+s},t.isAbsolute=function(s){return s.charAt(0)==="/"},t.join=function(){var s=Array.prototype.slice.call(arguments,0);return t.normalize(a(s,function(l,c){if(typeof l!="string")throw new TypeError("Arguments to path.join must be strings");return l}).join("/"))},t.relative=function(s,l){function c(x){for(var g=0;g=0&&x[y]==="";y--);return g>y?[]:x.slice(g,y-g+1)}s=t.resolve(s).substr(1),l=t.resolve(l).substr(1);for(var u=c(s.split("/")),f=c(l.split("/")),p=Math.min(u.length,f.length),m=p,b=0;b=1;--p)if((l=s.charCodeAt(p))===47){if(!f){u=p;break}}else f=!1;return u===-1?c?"/":".":c&&u===1?"/":s.slice(0,u)},t.basename=function(s,l){var c=function(u){typeof u!="string"&&(u+="");var f,p=0,m=-1,b=!0;for(f=u.length-1;f>=0;--f)if(u.charCodeAt(f)===47){if(!b){p=f+1;break}}else m===-1&&(b=!1,m=f+1);return m===-1?"":u.slice(p,m)}(s);return l&&c.substr(-1*l.length)===l&&(c=c.substr(0,c.length-l.length)),c},t.extname=function(s){typeof s!="string"&&(s+="");for(var l=-1,c=0,u=-1,f=!0,p=0,m=s.length-1;m>=0;--m){var b=s.charCodeAt(m);if(b!==47)u===-1&&(f=!1,u=m+1),b===46?l===-1?l=m:p!==1&&(p=1):l!==-1&&(p=-1);else if(!f){c=m+1;break}}return l===-1||u===-1||p===0||p===1&&l===u-1&&l===c+1?"":s.slice(l,u)};var i="ab".substr(-1)==="b"?function(s,l,c){return s.substr(l,c)}:function(s,l,c){return l<0&&(l=s.length+l),s.substr(l,c)}}).call(this,n(13))},function(e,t,n){function r(i){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s})(i)}var o={file:n(225),http:n(81),https:n(81)},a=(typeof window>"u"?"undefined":r(window))==="object"||typeof importScripts=="function"?o.http:o.file;typeof Promise>"u"&&n(83),e.exports.load=function(i,s){var l=Promise.resolve();return s===void 0&&(s={}),l=(l=l.then(function(){if(i===void 0)throw new TypeError("location is required");if(typeof i!="string")throw new TypeError("location must be a string");if(s!==void 0){if(r(s)!=="object")throw new TypeError("options must be an object");if(s.processContent!==void 0&&typeof s.processContent!="function")throw new TypeError("options.processContent must be a function")}})).then(function(){return new Promise(function(c,u){(function(f){var p=function(b){return b!==void 0&&(b=b.indexOf("://")===-1?"":b.split("://")[0]),b}(f),m=o[p];if(m===void 0){if(p!=="")throw new Error("Unsupported scheme: "+p);m=a}return m})(i).load(i,s||{},function(f,p){f?u(f):c(p)})})}).then(function(c){return s.processContent?new Promise(function(u,f){r(c)!=="object"&&(c={text:c}),c.location=i,s.processContent(c,function(p,m){p?f(p):u(m)})}):r(c)==="object"?c.text:c})}},function(e,t,n){var r=new TypeError("The 'file' scheme is not supported in the browser");e.exports.getBase=function(){throw r},e.exports.load=function(){var o=arguments[arguments.length-1];if(typeof o!="function")throw r;o(r)}},function(e,t,n){function r(C){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _})(C)}var o;typeof window<"u"?o=window:typeof self<"u"?o=self:(console.warn("Using browser-only version of superagent in non-browser environment"),o=this);var a=n(227),i=n(228),s=n(82),l=n(229),c=n(231);function u(){}var f=t=e.exports=function(C,_){return typeof _=="function"?new t.Request("GET",C).end(_):arguments.length==1?new t.Request("GET",C):new t.Request(C,_)};t.Request=y,f.getXHR=function(){if(!(!o.XMLHttpRequest||o.location&&o.location.protocol=="file:"&&o.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch{}throw Error("Browser-only version of superagent could not find XHR")};var p="".trim?function(C){return C.trim()}:function(C){return C.replace(/(^\s*|\s*$)/g,"")};function m(C){if(!s(C))return C;var _=[];for(var $ in C)b(_,$,C[$]);return _.join("&")}function b(C,_,$){if($!=null)if(Array.isArray($))$.forEach(function(k){b(C,_,k)});else if(s($))for(var E in $)b(C,_+"["+E+"]",$[E]);else C.push(encodeURIComponent(_)+"="+encodeURIComponent($));else $===null&&C.push(encodeURIComponent(_))}function v(C){for(var _,$,E={},k=C.split("&"),I=0,R=k.length;I=2&&C._responseTimeoutTimer&&clearTimeout(C._responseTimeoutTimer),F==4){var U;try{U=_.status}catch{U=0}if(!U)return C.timedout||C._aborted?void 0:C.crossDomainError();C.emit("end")}};var E=function(F,U){U.total>0&&(U.percent=U.loaded/U.total*100),U.direction=F,C.emit("progress",U)};if(this.hasListeners("progress"))try{_.onprogress=E.bind(null,"download"),_.upload&&(_.upload.onprogress=E.bind(null,"upload"))}catch{}try{this.username&&this.password?_.open(this.method,this.url,!0,this.username,this.password):_.open(this.method,this.url,!0)}catch(F){return this.callback(F)}if(this._withCredentials&&(_.withCredentials=!0),!this._formData&&this.method!="GET"&&this.method!="HEAD"&&typeof $!="string"&&!this._isHost($)){var k=this._header["content-type"],I=this._serializer||f.serialize[k?k.split(";")[0]:""];!I&&x(k)&&(I=f.serialize["application/json"]),I&&($=I($))}for(var R in this.header)this.header[R]!=null&&this.header.hasOwnProperty(R)&&_.setRequestHeader(R,this.header[R]);return this._responseType&&(_.responseType=this._responseType),this.emit("request",this),_.send($!==void 0?$:null),this},f.agent=function(){return new c},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(C){c.prototype[C.toLowerCase()]=function(_,$){var E=new f.Request(C,_);return this._setDefaults(E),$&&E.end($),E}}),c.prototype.del=c.prototype.delete,f.get=function(C,_,$){var E=f("GET",C);return typeof _=="function"&&($=_,_=null),_&&E.query(_),$&&E.end($),E},f.head=function(C,_,$){var E=f("HEAD",C);return typeof _=="function"&&($=_,_=null),_&&E.query(_),$&&E.end($),E},f.options=function(C,_,$){var E=f("OPTIONS",C);return typeof _=="function"&&($=_,_=null),_&&E.send(_),$&&E.end($),E},f.del=w,f.delete=w,f.patch=function(C,_,$){var E=f("PATCH",C);return typeof _=="function"&&($=_,_=null),_&&E.send(_),$&&E.end($),E},f.post=function(C,_,$){var E=f("POST",C);return typeof _=="function"&&($=_,_=null),_&&E.send(_),$&&E.end($),E},f.put=function(C,_,$){var E=f("PUT",C);return typeof _=="function"&&($=_,_=null),_&&E.send(_),$&&E.end($),E}},function(e,t,n){function r(o){if(o)return function(a){for(var i in r.prototype)a[i]=r.prototype[i];return a}(o)}e.exports=r,r.prototype.on=r.prototype.addEventListener=function(o,a){return this._callbacks=this._callbacks||{},(this._callbacks["$"+o]=this._callbacks["$"+o]||[]).push(a),this},r.prototype.once=function(o,a){function i(){this.off(o,i),a.apply(this,arguments)}return i.fn=a,this.on(o,i),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(o,a){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i,s=this._callbacks["$"+o];if(!s)return this;if(arguments.length==1)return delete this._callbacks["$"+o],this;for(var l=0;l=this._maxRetries)return!1;if(this._retryCallback)try{var c=this._retryCallback(s,l);if(c===!0)return!0;if(c===!1)return!1}catch(u){console.error(u)}return!!(l&&l.status&&l.status>=500&&l.status!=501||s&&(s.code&&~i.indexOf(s.code)||s.timeout&&s.code=="ECONNABORTED"||s.crossDomain))},a.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this._end()},a.prototype.then=function(s,l){if(!this._fullfilledPromise){var c=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(u,f){c.end(function(p,m){p?f(p):u(m)})})}return this._fullfilledPromise.then(s,l)},a.prototype.catch=function(s){return this.then(void 0,s)},a.prototype.use=function(s){return s(this),this},a.prototype.ok=function(s){if(typeof s!="function")throw Error("Callback required");return this._okCallback=s,this},a.prototype._isResponseOK=function(s){return!!s&&(this._okCallback?this._okCallback(s):s.status>=200&&s.status<300)},a.prototype.get=function(s){return this._header[s.toLowerCase()]},a.prototype.getHeader=a.prototype.get,a.prototype.set=function(s,l){if(o(s)){for(var c in s)this.set(c,s[c]);return this}return this._header[s.toLowerCase()]=l,this.header[s]=l,this},a.prototype.unset=function(s){return delete this._header[s.toLowerCase()],delete this.header[s],this},a.prototype.field=function(s,l){if(s==null)throw new Error(".field(name, val) name can not be empty");if(this._data&&console.error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()"),o(s)){for(var c in s)this.field(c,s[c]);return this}if(Array.isArray(l)){for(var u in l)this.field(s,l[u]);return this}if(l==null)throw new Error(".field(name, val) val can not be empty");return typeof l=="boolean"&&(l=""+l),this._getFormData().append(s,l),this},a.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},a.prototype._auth=function(s,l,c,u){switch(c.type){case"basic":this.set("Authorization","Basic "+u(s+":"+l));break;case"auto":this.username=s,this.password=l;break;case"bearer":this.set("Authorization","Bearer "+s)}return this},a.prototype.withCredentials=function(s){return s==null&&(s=!0),this._withCredentials=s,this},a.prototype.redirects=function(s){return this._maxRedirects=s,this},a.prototype.maxResponseSize=function(s){if(typeof s!="number")throw TypeError("Invalid argument");return this._maxResponseSize=s,this},a.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},a.prototype.send=function(s){var l=o(s),c=this._header["content-type"];if(this._formData&&console.error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()"),l&&!this._data)Array.isArray(s)?this._data=[]:this._isHost(s)||(this._data={});else if(s&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(l&&o(this._data))for(var u in s)this._data[u]=s[u];else typeof s=="string"?(c||this.type("form"),c=this._header["content-type"],this._data=c=="application/x-www-form-urlencoded"?this._data?this._data+"&"+s:s:(this._data||"")+s):this._data=s;return!l||this._isHost(s)||c||this.type("json"),this},a.prototype.sortQuery=function(s){return this._sort=s===void 0||s,this},a.prototype._finalizeQueryString=function(){var s=this._query.join("&");if(s&&(this.url+=(this.url.indexOf("?")>=0?"&":"?")+s),this._query.length=0,this._sort){var l=this.url.indexOf("?");if(l>=0){var c=this.url.substring(l+1).split("&");typeof this._sort=="function"?c.sort(this._sort):c.sort(),this.url=this.url.substring(0,l)+"?"+c.join("&")}}},a.prototype._appendQueryString=function(){console.trace("Unsupported")},a.prototype._timeoutError=function(s,l,c){if(!this._aborted){var u=new Error(s+l+"ms exceeded");u.timeout=l,u.code="ECONNABORTED",u.errno=c,this.timedout=!0,this.abort(),this.callback(u)}},a.prototype._setTimeouts=function(){var s=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){s._timeoutError("Timeout of ",s._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){s._timeoutError("Response timeout of ",s._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},function(e,t,n){var r=n(230);function o(a){if(a)return function(i){for(var s in o.prototype)i[s]=o.prototype[s];return i}(a)}e.exports=o,o.prototype.get=function(a){return this.header[a.toLowerCase()]},o.prototype._setHeaderProperties=function(a){var i=a["content-type"]||"";this.type=r.type(i);var s=r.params(i);for(var l in s)this[l]=s[l];this.links={};try{a.link&&(this.links=r.parseLinks(a.link))}catch{}},o.prototype._setStatusProperties=function(a){var i=a/100|0;this.status=this.statusCode=a,this.statusType=i,this.info=i==1,this.ok=i==2,this.redirect=i==3,this.clientError=i==4,this.serverError=i==5,this.error=(i==4||i==5)&&this.toError(),this.created=a==201,this.accepted=a==202,this.noContent=a==204,this.badRequest=a==400,this.unauthorized=a==401,this.notAcceptable=a==406,this.forbidden=a==403,this.notFound=a==404,this.unprocessableEntity=a==422}},function(e,t,n){t.type=function(r){return r.split(/ *; */).shift()},t.params=function(r){return r.split(/ *; */).reduce(function(o,a){var i=a.split(/ *= */),s=i.shift(),l=i.shift();return s&&l&&(o[s]=l),o},{})},t.parseLinks=function(r){return r.split(/ *, */).reduce(function(o,a){var i=a.split(/ *; */),s=i[0].slice(1,-1);return o[i[1].split(/ *= */)[1].slice(1,-1)]=s,o},{})},t.cleanHeader=function(r,o){return delete r["content-type"],delete r["content-length"],delete r["transfer-encoding"],delete r.host,o&&(delete r.authorization,delete r.cookie),r}},function(e,t){function n(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert"].forEach(function(r){n.prototype[r]=function(){return this._defaults.push({fn:r,arguments}),this}}),n.prototype._setDefaults=function(r){this._defaults.forEach(function(o){r[o.fn].apply(r,o.arguments)})},e.exports=n},function(e,t,n){(function(r){var o=r!==void 0&&r||typeof self<"u"&&self||window,a=Function.prototype.apply;function i(s,l){this._id=s,this._clearFn=l}t.setTimeout=function(){return new i(a.call(setTimeout,o,arguments),clearTimeout)},t.setInterval=function(){return new i(a.call(setInterval,o,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(s){s&&s.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(o,this._id)},t.enroll=function(s,l){clearTimeout(s._idleTimeoutId),s._idleTimeout=l},t.unenroll=function(s){clearTimeout(s._idleTimeoutId),s._idleTimeout=-1},t._unrefActive=t.active=function(s){clearTimeout(s._idleTimeoutId);var l=s._idleTimeout;l>=0&&(s._idleTimeoutId=setTimeout(function(){s._onTimeout&&s._onTimeout()},l))},n(233),t.setImmediate=typeof self<"u"&&self.setImmediate||r!==void 0&&r.setImmediate||this&&this.setImmediate,t.clearImmediate=typeof self<"u"&&self.clearImmediate||r!==void 0&&r.clearImmediate||this&&this.clearImmediate}).call(this,n(11))},function(e,t,n){(function(r,o){(function(a,i){if(!a.setImmediate){var s,l,c,u,f,p=1,m={},b=!1,v=a.document,x=Object.getPrototypeOf&&Object.getPrototypeOf(a);x=x&&x.setTimeout?x:a,{}.toString.call(a.process)==="[object process]"?s=function(w){o.nextTick(function(){y(w)})}:function(){if(a.postMessage&&!a.importScripts){var w=!0,C=a.onmessage;return a.onmessage=function(){w=!1},a.postMessage("","*"),a.onmessage=C,w}}()?(u="setImmediate$"+Math.random()+"$",f=function(w){w.source===a&&typeof w.data=="string"&&w.data.indexOf(u)===0&&y(+w.data.slice(u.length))},a.addEventListener?a.addEventListener("message",f,!1):a.attachEvent("onmessage",f),s=function(w){a.postMessage(u+w,"*")}):a.MessageChannel?((c=new MessageChannel).port1.onmessage=function(w){y(w.data)},s=function(w){c.port2.postMessage(w)}):v&&"onreadystatechange"in v.createElement("script")?(l=v.documentElement,s=function(w){var C=v.createElement("script");C.onreadystatechange=function(){y(w),C.onreadystatechange=null,l.removeChild(C),C=null},l.appendChild(C)}):s=function(w){setTimeout(y,0,w)},x.setImmediate=function(w){typeof w!="function"&&(w=new Function(""+w));for(var C=new Array(arguments.length-1),_=0;_"u"?r===void 0?this:r:self)}).call(this,n(11),n(13))},function(e,t,n){t.decode=t.parse=n(235),t.encode=t.stringify=n(236)},function(e,t,n){function r(a,i){return Object.prototype.hasOwnProperty.call(a,i)}e.exports=function(a,i,s,l){i=i||"&",s=s||"=";var c={};if(typeof a!="string"||a.length===0)return c;var u=/\+/g;a=a.split(i);var f=1e3;l&&typeof l.maxKeys=="number"&&(f=l.maxKeys);var p=a.length;f>0&&p>f&&(p=f);for(var m=0;m=0?(b=y.substr(0,w),v=y.substr(w+1)):(b=y,v=""),x=decodeURIComponent(b),g=decodeURIComponent(v),r(c,x)?o(c[x])?c[x].push(g):c[x]=[c[x],g]:c[x]=g}return c};var o=Array.isArray||function(a){return Object.prototype.toString.call(a)==="[object Array]"}},function(e,t,n){function r(l){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c})(l)}var o=function(l){switch(r(l)){case"string":return l;case"boolean":return l?"true":"false";case"number":return isFinite(l)?l:"";default:return""}};e.exports=function(l,c,u,f){return c=c||"&",u=u||"=",l===null&&(l=void 0),r(l)==="object"?i(s(l),function(p){var m=encodeURIComponent(o(p))+u;return a(l[p])?i(l[p],function(b){return m+encodeURIComponent(o(b))}).join(c):m+encodeURIComponent(o(l[p]))}).join(c):f?encodeURIComponent(o(f))+u+encodeURIComponent(o(l)):""};var a=Array.isArray||function(l){return Object.prototype.toString.call(l)==="[object Array]"};function i(l,c){if(l.map)return l.map(c);for(var u=[],f=0;f1){te[0]=te[0].slice(0,-1);for(var $e=te.length-1,Se=1;Se<$e;++Se)te[Se]=te[Se].slice(1,-1);return te[$e]=te[$e].slice(1),te.join("")}return te[0]}function u(ne){return"(?:"+ne+")"}function f(ne){return ne===void 0?"undefined":ne===null?"null":Object.prototype.toString.call(ne).split(" ").pop().split("]").shift().toLowerCase()}function p(ne){return ne.toUpperCase()}function m(ne){var te=c("[0-9]","[A-Fa-f]"),ie=u(u("%[EFef]"+te+"%"+te+te+"%"+te+te)+"|"+u("%[89A-Fa-f]"+te+"%"+te+te)+"|"+u("%"+te+te)),$e="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",Se=c("[\\:\\/\\?\\#\\[\\]\\@]",$e),Ze=ne?"[\\uE000-\\uF8FF]":"[]",tt=c("[A-Za-z]","[0-9]","[\\-\\.\\_\\~]",ne?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]");u("[A-Za-z]"+c("[A-Za-z]","[0-9]","[\\+\\-\\.]")+"*"),u(u(ie+"|"+c(tt,$e,"[\\:]"))+"*");var ft=u(u("25[0-5]")+"|"+u("2[0-4][0-9]")+"|"+u("1[0-9][0-9]")+"|"+u("0?[1-9][0-9]")+"|0?0?[0-9]"),_t=u(ft+"\\."+ft+"\\."+ft+"\\."+ft),vt=u(te+"{1,4}"),dt=u(u(vt+"\\:"+vt)+"|"+_t),Et=u(u(vt+"\\:")+"{6}"+dt),Yt=u("\\:\\:"+u(vt+"\\:")+"{5}"+dt),kt=u(u(vt)+"?\\:\\:"+u(vt+"\\:")+"{4}"+dt),ln=u(u(u(vt+"\\:")+"{0,1}"+vt)+"?\\:\\:"+u(vt+"\\:")+"{3}"+dt),Vt=u(u(u(vt+"\\:")+"{0,2}"+vt)+"?\\:\\:"+u(vt+"\\:")+"{2}"+dt),Ut=u(u(u(vt+"\\:")+"{0,3}"+vt)+"?\\:\\:"+vt+"\\:"+dt),Kt=u(u(u(vt+"\\:")+"{0,4}"+vt)+"?\\:\\:"+dt),bn=u(u(u(vt+"\\:")+"{0,5}"+vt)+"?\\:\\:"+vt),Bn=u(u(u(vt+"\\:")+"{0,6}"+vt)+"?\\:\\:"),se=u([Et,Yt,kt,ln,Vt,Ut,Kt,bn,Bn].join("|")),oe=u(u(tt+"|"+ie)+"+");u("[vV]"+te+"+\\."+c(tt,$e,"[\\:]")+"+"),u(u(ie+"|"+c(tt,$e))+"*");var ue=u(ie+"|"+c(tt,$e,"[\\:\\@]"));return u(u(ie+"|"+c(tt,$e,"[\\@]"))+"+"),u(u(ue+"|"+c("[\\/\\?]",Ze))+"*"),{NOT_SCHEME:new RegExp(c("[^]","[A-Za-z]","[0-9]","[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(c("[^\\%\\:]",tt,$e),"g"),NOT_HOST:new RegExp(c("[^\\%\\[\\]\\:]",tt,$e),"g"),NOT_PATH:new RegExp(c("[^\\%\\/\\:\\@]",tt,$e),"g"),NOT_PATH_NOSCHEME:new RegExp(c("[^\\%\\/\\@]",tt,$e),"g"),NOT_QUERY:new RegExp(c("[^\\%]",tt,$e,"[\\:\\@\\/\\?]",Ze),"g"),NOT_FRAGMENT:new RegExp(c("[^\\%]",tt,$e,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(c("[^]",tt,$e),"g"),UNRESERVED:new RegExp(tt,"g"),OTHER_CHARS:new RegExp(c("[^\\%]",tt,Se),"g"),PCT_ENCODED:new RegExp(ie,"g"),IPV4ADDRESS:new RegExp("^("+_t+")$"),IPV6ADDRESS:new RegExp("^\\[?("+se+")"+u(u("\\%25|\\%(?!"+te+"{2})")+"("+oe+")")+"?\\]?$")}}var b=m(!1),v=m(!0),x=function(ne,te){if(Array.isArray(ne))return ne;if(Symbol.iterator in Object(ne))return function(ie,$e){var Se=[],Ze=!0,tt=!1,ft=void 0;try{for(var _t,vt=ie[Symbol.iterator]();!(Ze=(_t=vt.next()).done)&&(Se.push(_t.value),!$e||Se.length!==$e);Ze=!0);}catch(dt){tt=!0,ft=dt}finally{try{!Ze&&vt.return&&vt.return()}finally{if(tt)throw ft}}return Se}(ne,te);throw new TypeError("Invalid attempt to destructure non-iterable instance")},g=2147483647,y=/^xn--/,w=/[^\0-\x7E]/,C=/[\x2E\u3002\uFF0E\uFF61]/g,_={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},$=Math.floor,E=String.fromCharCode;function k(ne){throw new RangeError(_[ne])}function I(ne,te){var ie=ne.split("@"),$e="";ie.length>1&&($e=ie[0]+"@",ne=ie[1]);var Se=function(Ze,tt){for(var ft=[],_t=Ze.length;_t--;)ft[_t]=tt(Ze[_t]);return ft}((ne=ne.replace(C,".")).split("."),te).join(".");return $e+Se}function R(ne){for(var te=[],ie=0,$e=ne.length;ie<$e;){var Se=ne.charCodeAt(ie++);if(Se>=55296&&Se<=56319&&ie<$e){var Ze=ne.charCodeAt(ie++);(64512&Ze)==56320?te.push(((1023&Se)<<10)+(1023&Ze)+65536):(te.push(Se),ie--)}else te.push(Se)}return te}var F=function(ne,te){return ne+22+75*(ne<26)-((te!=0)<<5)},U=function(ne,te,ie){var $e=0;for(ne=ie?$(ne/700):ne>>1,ne+=$(ne/te);ne>455;$e+=36)ne=$(ne/35);return $($e+36*ne/(ne+38))},G=function(ne){var te,ie=[],$e=ne.length,Se=0,Ze=128,tt=72,ft=ne.lastIndexOf("-");ft<0&&(ft=0);for(var _t=0;_t=128&&k("not-basic"),ie.push(ne.charCodeAt(_t));for(var vt=ft>0?ft+1:0;vt<$e;){for(var dt=Se,Et=1,Yt=36;;Yt+=36){vt>=$e&&k("invalid-input");var kt=(te=ne.charCodeAt(vt++))-48<10?te-22:te-65<26?te-65:te-97<26?te-97:36;(kt>=36||kt>$((g-Se)/Et))&&k("overflow"),Se+=kt*Et;var ln=Yt<=tt?1:Yt>=tt+26?26:Yt-tt;if(kt$(g/Vt)&&k("overflow"),Et*=Vt}var Ut=ie.length+1;tt=U(Se-dt,Ut,dt==0),$(Se/Ut)>g-Ze&&k("overflow"),Ze+=$(Se/Ut),Se%=Ut,ie.splice(Se++,0,Ze)}return String.fromCodePoint.apply(String,ie)},B=function(ne){var te=[],ie=(ne=R(ne)).length,$e=128,Se=0,Ze=72,tt=!0,ft=!1,_t=void 0;try{for(var vt,dt=ne[Symbol.iterator]();!(tt=(vt=dt.next()).done);tt=!0){var Et=vt.value;Et<128&&te.push(E(Et))}}catch(ut){ft=!0,_t=ut}finally{try{!tt&&dt.return&&dt.return()}finally{if(ft)throw _t}}var Yt=te.length,kt=Yt;for(Yt&&te.push("-");kt=$e&&se$((g-Se)/oe)&&k("overflow"),Se+=(ln-$e)*oe,$e=ln;var ue=!0,ke=!1,Ee=void 0;try{for(var pt,me=ne[Symbol.iterator]();!(ue=(pt=me.next()).done);ue=!0){var pe=pt.value;if(pe<$e&&++Se>g&&k("overflow"),pe==$e){for(var De=Se,nt=36;;nt+=36){var lt=nt<=Ze?1:nt>=Ze+26?26:nt-Ze;if(De>6|192).toString(16).toUpperCase()+"%"+(63&te|128).toString(16).toUpperCase():"%"+(te>>12|224).toString(16).toUpperCase()+"%"+(te>>6&63|128).toString(16).toUpperCase()+"%"+(63&te|128).toString(16).toUpperCase()}function J(ne){for(var te="",ie=0,$e=ne.length;ie<$e;){var Se=parseInt(ne.substr(ie+1,2),16);if(Se<128)te+=String.fromCharCode(Se),ie+=3;else if(Se>=194&&Se<224){if($e-ie>=6){var Ze=parseInt(ne.substr(ie+4,2),16);te+=String.fromCharCode((31&Se)<<6|63&Ze)}else te+=ne.substr(ie,6);ie+=6}else if(Se>=224){if($e-ie>=9){var tt=parseInt(ne.substr(ie+4,2),16),ft=parseInt(ne.substr(ie+7,2),16);te+=String.fromCharCode((15&Se)<<12|(63&tt)<<6|63&ft)}else te+=ne.substr(ie,9);ie+=9}else te+=ne.substr(ie,3),ie+=3}return te}function X(ne,te){function ie($e){var Se=J($e);return Se.match(te.UNRESERVED)?Se:$e}return ne.scheme&&(ne.scheme=String(ne.scheme).replace(te.PCT_ENCODED,ie).toLowerCase().replace(te.NOT_SCHEME,"")),ne.userinfo!==void 0&&(ne.userinfo=String(ne.userinfo).replace(te.PCT_ENCODED,ie).replace(te.NOT_USERINFO,H).replace(te.PCT_ENCODED,p)),ne.host!==void 0&&(ne.host=String(ne.host).replace(te.PCT_ENCODED,ie).toLowerCase().replace(te.NOT_HOST,H).replace(te.PCT_ENCODED,p)),ne.path!==void 0&&(ne.path=String(ne.path).replace(te.PCT_ENCODED,ie).replace(ne.scheme?te.NOT_PATH:te.NOT_PATH_NOSCHEME,H).replace(te.PCT_ENCODED,p)),ne.query!==void 0&&(ne.query=String(ne.query).replace(te.PCT_ENCODED,ie).replace(te.NOT_QUERY,H).replace(te.PCT_ENCODED,p)),ne.fragment!==void 0&&(ne.fragment=String(ne.fragment).replace(te.PCT_ENCODED,ie).replace(te.NOT_FRAGMENT,H).replace(te.PCT_ENCODED,p)),ne}function L(ne){return ne.replace(/^0*(.*)/,"$1")||"0"}function K(ne,te){var ie=ne.match(te.IPV4ADDRESS)||[],$e=x(ie,2)[1];return $e?$e.split(".").map(L).join("."):ne}function q(ne,te){var ie=ne.match(te.IPV6ADDRESS)||[],$e=x(ie,3),Se=$e[1],Ze=$e[2];if(Se){for(var tt=Se.toLowerCase().split("::").reverse(),ft=x(tt,2),_t=ft[0],vt=ft[1],dt=vt?vt.split(":").map(L):[],Et=_t.split(":").map(L),Yt=te.IPV4ADDRESS.test(Et[Et.length-1]),kt=Yt?7:8,ln=Et.length-kt,Vt=Array(kt),Ut=0;Ut1){var Bn=Vt.slice(0,Kt.index),se=Vt.slice(Kt.index+Kt.length);bn=Bn.join(":")+"::"+se.join(":")}else bn=Vt.join(":");return Ze&&(bn+="%"+Ze),bn}return ne}var D=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,N="".match(/(){0}/)[1]===void 0;function V(ne){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie={},$e=te.iri!==!1?v:b;te.reference==="suffix"&&(ne=(te.scheme?te.scheme+":":"")+"//"+ne);var Se=ne.match(D);if(Se){N?(ie.scheme=Se[1],ie.userinfo=Se[3],ie.host=Se[4],ie.port=parseInt(Se[5],10),ie.path=Se[6]||"",ie.query=Se[7],ie.fragment=Se[8],isNaN(ie.port)&&(ie.port=Se[5])):(ie.scheme=Se[1]||void 0,ie.userinfo=ne.indexOf("@")!==-1?Se[3]:void 0,ie.host=ne.indexOf("//")!==-1?Se[4]:void 0,ie.port=parseInt(Se[5],10),ie.path=Se[6]||"",ie.query=ne.indexOf("?")!==-1?Se[7]:void 0,ie.fragment=ne.indexOf("#")!==-1?Se[8]:void 0,isNaN(ie.port)&&(ie.port=ne.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Se[4]:void 0)),ie.host&&(ie.host=q(K(ie.host,$e),$e)),ie.scheme!==void 0||ie.userinfo!==void 0||ie.host!==void 0||ie.port!==void 0||ie.path||ie.query!==void 0?ie.scheme===void 0?ie.reference="relative":ie.fragment===void 0?ie.reference="absolute":ie.reference="uri":ie.reference="same-document",te.reference&&te.reference!=="suffix"&&te.reference!==ie.reference&&(ie.error=ie.error||"URI is not a "+te.reference+" reference.");var Ze=Q[(te.scheme||ie.scheme||"").toLowerCase()];if(te.unicodeSupport||Ze&&Ze.unicodeSupport)X(ie,$e);else{if(ie.host&&(te.domainHost||Ze&&Ze.domainHost))try{ie.host=z(ie.host.replace($e.PCT_ENCODED,J).toLowerCase())}catch(tt){ie.error=ie.error||"Host's domain name can not be converted to ASCII via punycode: "+tt}X(ie,b)}Ze&&Ze.parse&&Ze.parse(ie,te)}else ie.error=ie.error||"URI can not be parsed.";return ie}function Z(ne,te){var ie=te.iri!==!1?v:b,$e=[];return ne.userinfo!==void 0&&($e.push(ne.userinfo),$e.push("@")),ne.host!==void 0&&$e.push(q(K(String(ne.host),ie),ie).replace(ie.IPV6ADDRESS,function(Se,Ze,tt){return"["+Ze+(tt?"%25"+tt:"")+"]"})),typeof ne.port=="number"&&($e.push(":"),$e.push(ne.port.toString(10))),$e.length?$e.join(""):void 0}var re=/^\.\.?\//,le=/^\/\.(\/|$)/,xe=/^\/\.\.(\/|$)/,fe=/^\/?(?:.|\n)*?(?=\/|$)/;function ge(ne){for(var te=[];ne.length;)if(ne.match(re))ne=ne.replace(re,"");else if(ne.match(le))ne=ne.replace(le,"/");else if(ne.match(xe))ne=ne.replace(xe,"/"),te.pop();else if(ne==="."||ne==="..")ne="";else{var ie=ne.match(fe);if(!ie)throw new Error("Unexpected dot segment condition");var $e=ie[0];ne=ne.slice($e.length),te.push($e)}return te.join("")}function he(ne){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie=te.iri?v:b,$e=[],Se=Q[(te.scheme||ne.scheme||"").toLowerCase()];if(Se&&Se.serialize&&Se.serialize(ne,te),ne.host&&!ie.IPV6ADDRESS.test(ne.host)){if(te.domainHost||Se&&Se.domainHost)try{ne.host=te.iri?Y(ne.host):z(ne.host.replace(ie.PCT_ENCODED,J).toLowerCase())}catch(ft){ne.error=ne.error||"Host's domain name can not be converted to "+(te.iri?"Unicode":"ASCII")+" via punycode: "+ft}}X(ne,ie),te.reference!=="suffix"&&ne.scheme&&($e.push(ne.scheme),$e.push(":"));var Ze=Z(ne,te);if(Ze!==void 0&&(te.reference!=="suffix"&&$e.push("//"),$e.push(Ze),ne.path&&ne.path.charAt(0)!=="/"&&$e.push("/")),ne.path!==void 0){var tt=ne.path;te.absolutePath||Se&&Se.absolutePath||(tt=ge(tt)),Ze===void 0&&(tt=tt.replace(/^\/\//,"/%2F")),$e.push(tt)}return ne.query!==void 0&&($e.push("?"),$e.push(ne.query)),ne.fragment!==void 0&&($e.push("#"),$e.push(ne.fragment)),$e.join("")}function _e(ne,te){var ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},$e=arguments[3],Se={};return $e||(ne=V(he(ne,ie),ie),te=V(he(te,ie),ie)),!(ie=ie||{}).tolerant&&te.scheme?(Se.scheme=te.scheme,Se.userinfo=te.userinfo,Se.host=te.host,Se.port=te.port,Se.path=ge(te.path||""),Se.query=te.query):(te.userinfo!==void 0||te.host!==void 0||te.port!==void 0?(Se.userinfo=te.userinfo,Se.host=te.host,Se.port=te.port,Se.path=ge(te.path||""),Se.query=te.query):(te.path?(te.path.charAt(0)==="/"?Se.path=ge(te.path):(ne.userinfo===void 0&&ne.host===void 0&&ne.port===void 0||ne.path?ne.path?Se.path=ne.path.slice(0,ne.path.lastIndexOf("/")+1)+te.path:Se.path=te.path:Se.path="/"+te.path,Se.path=ge(Se.path)),Se.query=te.query):(Se.path=ne.path,te.query!==void 0?Se.query=te.query:Se.query=ne.query),Se.userinfo=ne.userinfo,Se.host=ne.host,Se.port=ne.port),Se.scheme=ne.scheme),Se.fragment=te.fragment,Se}function ve(ne,te){return ne&&ne.toString().replace(te&&te.iri?v.PCT_ENCODED:b.PCT_ENCODED,J)}var Be={scheme:"http",domainHost:!0,parse:function(ne,te){return ne.host||(ne.error=ne.error||"HTTP URIs must have a host."),ne},serialize:function(ne,te){return ne.port!==(String(ne.scheme).toLowerCase()!=="https"?80:443)&&ne.port!==""||(ne.port=void 0),ne.path||(ne.path="/"),ne}},Ue={scheme:"https",domainHost:Be.domainHost,parse:Be.parse,serialize:Be.serialize},ze={},He="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",be="[0-9A-Fa-f]",we=u(u("%[EFef][0-9A-Fa-f]%"+be+be+"%"+be+be)+"|"+u("%[89A-Fa-f][0-9A-Fa-f]%"+be+be)+"|"+u("%"+be+be)),Ce=c("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),qe=new RegExp(He,"g"),rt=new RegExp(we,"g"),Ae=new RegExp(c("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',Ce),"g"),Le=new RegExp(c("[^]",He,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),Fe=Le;function Pe(ne){var te=J(ne);return te.match(qe)?te:ne}var Te={scheme:"mailto",parse:function(ne,te){var ie=ne,$e=ie.to=ie.path?ie.path.split(","):[];if(ie.path=void 0,ie.query){for(var Se=!1,Ze={},tt=ie.query.split("&"),ft=0,_t=tt.length;ft<_t;++ft){var vt=tt[ft].split("=");switch(vt[0]){case"to":for(var dt=vt[1].split(","),Et=0,Yt=dt.length;Ett.resolved)}function D5e(e,t,n){var r=this,o=S.useRef(null),a=S.useRef(0),i=S.useRef(null),s=S.useRef([]),l=S.useRef(),c=S.useRef(),u=S.useRef(e),f=S.useRef(!0);S.useEffect(function(){u.current=e},[e]);var p=!t&&t!==0&&typeof window<"u";if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var m=!!(n=n||{}).leading,b=!("trailing"in n)||!!n.trailing,v="maxWait"in n,x=v?Math.max(+n.maxWait||0,t):null;S.useEffect(function(){return f.current=!0,function(){f.current=!1}},[]);var g=S.useMemo(function(){var y=function(k){var I=s.current,R=l.current;return s.current=l.current=null,a.current=k,c.current=u.current.apply(R,I)},w=function(k,I){p&&cancelAnimationFrame(i.current),i.current=p?requestAnimationFrame(k):setTimeout(k,I)},C=function(k){if(!f.current)return!1;var I=k-o.current;return!o.current||I>=t||I<0||v&&k-a.current>=x},_=function(k){return i.current=null,b&&s.current?y(k):(s.current=l.current=null,c.current)},$=function k(){var I=Date.now();if(C(I))return _(I);if(f.current){var R=t-(I-o.current),F=v?Math.min(R,x-(I-a.current)):R;w(k,F)}},E=function(){var k=Date.now(),I=C(k);if(s.current=[].slice.call(arguments),l.current=r,o.current=k,I){if(!i.current&&f.current)return a.current=o.current,w($,t),m?y(o.current):c.current;if(v)return w($,t),y(o.current)}return i.current||w($,t),c.current};return E.cancel=function(){i.current&&(p?cancelAnimationFrame(i.current):clearTimeout(i.current)),a.current=0,s.current=o.current=l.current=i.current=null},E.isPending=function(){return!!i.current},E.flush=function(){return i.current?_(Date.now()):c.current},E},[m,v,t,x,b,p]);return g}function M5e(e,t){return e===t}function wM(e){return typeof e=="function"?function(){return e}:e}function I5e(e,t,n){var r,o,a=n&&n.equalityFn||M5e,i=(r=S.useState(wM(e)),o=r[1],[r[0],S.useCallback(function(f){return o(wM(f))},[])]),s=i[0],l=i[1],c=D5e(S.useCallback(function(f){return l(f)},[l]),t,n),u=S.useRef(e);return a(u.current,e)||(c(e),u.current=e),[s,c]}function A5e(e){const[t,n]=S.useState({config:null,input:null});S.useEffect(()=>{async function o(){n({config:window.CONFIG_SCHEMA?await Rx(window.CONFIG_SCHEMA):null,input:window.INPUT_SCHEMA?await Rx(window.INPUT_SCHEMA):null})}o()},[]);const[r]=I5e(e,500);return S.useEffect(()=>{r.defaults||fetch(o9(`/c/${W0.compressToEncodedURIComponent(JSON.stringify(r.data))}/input_schema`)).then(o=>o.json()).then(Rx).then(o=>n(a=>({...a,input:o}))).catch(()=>{})},[r]),t}/*! + * https://github.com/Starcounter-Jack/JSON-Patch + * (c) 2017-2022 Joachim Wester + * MIT licensed + */var N5e=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var a in o)o.hasOwnProperty(a)&&(r[a]=o[a])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),j5e=Object.prototype.hasOwnProperty;function xC(e,t){return j5e.call(e,t)}function wC(e){if(Array.isArray(e)){for(var t=new Array(e.length),n=0;n=48&&r<=57){t++;continue}return!1}return!0}function Ol(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function a9(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function $C(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,n=e.length;t0&&l[u-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&p===void 0&&(c[m]===void 0?p=l.slice(0,u).join("/"):u==f-1&&(p=t.path),p!==void 0&&b(t,0,e,p)),u++,Array.isArray(c)){if(m==="-")m=c.length;else{if(n&&!CC(m))throw new Qn("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",a,t,e);CC(m)&&(m=~~m)}if(u>=f){if(n&&t.op==="add"&&m>c.length)throw new Qn("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",a,t,e);var i=F5e[t.op].call(t,c,m,e);if(i.test===!1)throw new Qn("Test operation failed","TEST_OPERATION_FAILED",a,t,e);return i}}else if(u>=f){var i=yu[t.op].call(t,c,m,e);if(i.test===!1)throw new Qn("Test operation failed","TEST_OPERATION_FAILED",a,t,e);return i}if(c=c[m],n&&u0)throw new Qn('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,n);if((e.op==="move"||e.op==="copy")&&typeof e.from!="string")throw new Qn("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&e.value===void 0)throw new Qn("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&$C(e.value))throw new Qn("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,n);if(n){if(e.op=="add"){var o=e.path.split("/").length,a=r.split("/").length;if(o!==a+1&&o!==a)throw new Qn("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,n)}else if(e.op==="replace"||e.op==="remove"||e.op==="_get"){if(e.path!==r)throw new Qn("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,n)}else if(e.op==="move"||e.op==="copy"){var i={op:"_get",path:e.from,value:void 0},s=s9([i],n);if(s&&s.name==="OPERATION_PATH_UNRESOLVABLE")throw new Qn("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,n)}}}else throw new Qn("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,n)}function s9(e,t,n){try{if(!Array.isArray(e))throw new Qn("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)H0(Wo(t),Wo(e),n||!0);else{n=n||Bg;for(var r=0;r0&&(e.patches=[],e.callback&&e.callback(r)),r}function rE(e,t,n,r,o){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var a=wC(t),i=wC(e),s=!1,l=i.length-1;l>=0;l--){var c=i[l],u=e[c];if(xC(t,c)&&!(t[c]===void 0&&u!==void 0&&Array.isArray(t)===!1)){var f=t[c];typeof u=="object"&&u!=null&&typeof f=="object"&&f!=null&&Array.isArray(u)===Array.isArray(f)?rE(u,f,n,r+"/"+Ol(c),o):u!==f&&(o&&n.push({op:"test",path:r+"/"+Ol(c),value:Wo(u)}),n.push({op:"replace",path:r+"/"+Ol(c),value:Wo(f)}))}else Array.isArray(e)===Array.isArray(t)?(o&&n.push({op:"test",path:r+"/"+Ol(c),value:Wo(u)}),n.push({op:"remove",path:r+"/"+Ol(c)}),s=!0):(o&&n.push({op:"test",path:r,value:e}),n.push({op:"replace",path:r,value:t}))}if(!(!s&&a.length==i.length))for(var l=0;l0){const l=o.decode(i.subarray(0,s)),c=s+(i[s+1]===32?2:1),u=o.decode(i.subarray(c));switch(l){case"data":r.data=r.data?r.data+` +`+u:u;break;case"event":r.event=u;break;case"id":e(r.id=u);break;case"retry":const f=parseInt(u,10);isNaN(f)||t(r.retry=f);break}}}}function eje(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function $M(){return{data:"",event:"",id:"",retry:void 0}}var tje=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const m=Object.assign({},r);m.accept||(m.accept=_C);let b;function v(){b.abort(),document.hidden||_()}l||document.addEventListener("visibilitychange",v);let x=nje,g=0;function y(){document.removeEventListener("visibilitychange",v),window.clearTimeout(g),b.abort()}n==null||n.addEventListener("abort",()=>{y(),f()});const w=c??window.fetch,C=o??oje;async function _(){var $;b=new AbortController;try{const E=await w(e,Object.assign(Object.assign({},u),{headers:m,signal:b.signal}));await C(E),await Z5e(E.body,X5e(Q5e(k=>{k?m[SM]=k:delete m[SM]},k=>{x=k},a))),i==null||i(),y(),f()}catch(E){if(!b.signal.aborted)try{const k=($=s==null?void 0:s(E))!==null&&$!==void 0?$:x;window.clearTimeout(g),g=window.setTimeout(_,k)}catch(k){y(),p(k)}}}_()})}function oje(e){const t=e.headers.get("content-type");if(!(t!=null&&t.startsWith(_C)))throw new Error(`Expected content-type to be ${_C}, Actual: ${t}`)}function aje(e,t){return H0(e,t,!0,!1).newDocument}function ije(e={}){const[t,n]=S.useState(null),[r,o]=S.useState(null),a=S.useRef(e.onStart);a.current=e.onStart;const i=S.useRef(e.onSuccess);i.current=e.onSuccess;const s=S.useRef(e.onError);s.current=e.onError;const l=S.useCallback(async(u,f)=>{var b;const p=new AbortController;o(p),(b=a.current)==null||b.call(a,{input:u});let m=null;await rje(o9("/stream_log").toString(),{signal:p.signal,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({input:u,config:f}),onmessage(v){var x;v.event==="data"&&(m=aje(m,(x=JSON.parse(v.data))==null?void 0:x.ops),n(m))},onclose(){var v;o(null),(v=i.current)==null||v.call(i,{input:u,output:m==null?void 0:m.final_output})},onerror(v){var x;throw o(null),(x=s.current)==null||x.call(s),v}})},[]),c=S.useCallback(()=>{r==null||r.abort(),o(null)},[r]);return{startStream:l,stopStream:r?c:void 0,latest:t}}const l9=S.createContext(null);function c9(e,t){const n=S.useContext(l9),r=S.useRef(t);r.current=t,S.useEffect(()=>{const o=(...a)=>{var i;return(i=r.current)==null?void 0:i.call(r,...a)};return n==null||n.current[e].push(o),()=>{n&&(n.current[e]=n.current[e].filter(a=>a!==o))}},[e,n])}const oE=e=>S.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 3C8 2.44772 8.44772 2 9 2H15C15.5523 2 16 2.44772 16 3C16 3.55228 15.5523 4 15 4H9C8.44772 4 8 3.55228 8 3ZM4.99224 5H3C2.44772 5 2 5.44772 2 6C2 6.55228 2.44772 7 3 7H4.06445L4.70614 16.6254C4.75649 17.3809 4.79816 18.006 4.87287 18.5149C4.95066 19.0447 5.07405 19.5288 5.33109 19.98C5.73123 20.6824 6.33479 21.247 7.06223 21.5996C7.52952 21.826 8.0208 21.917 8.55459 21.9593C9.06728 22 9.69383 22 10.4509 22H13.5491C14.3062 22 14.9327 22 15.4454 21.9593C15.9792 21.917 16.4705 21.826 16.9378 21.5996C17.6652 21.247 18.2688 20.6824 18.6689 19.98C18.926 19.5288 19.0493 19.0447 19.1271 18.5149C19.2018 18.006 19.2435 17.3808 19.2939 16.6253L19.9356 7H21C21.5523 7 22 6.55228 22 6C22 5.44772 21.5523 5 21 5H19.0078C19.0019 4.99995 18.9961 4.99995 18.9903 5H5.00974C5.00392 4.99995 4.99809 4.99995 4.99224 5ZM17.9311 7H6.06889L6.69907 16.4528C6.75274 17.2578 6.78984 17.8034 6.85166 18.2243C6.9117 18.6333 6.98505 18.8429 7.06888 18.99C7.26895 19.3412 7.57072 19.6235 7.93444 19.7998C8.08684 19.8736 8.30086 19.9329 8.71286 19.9656C9.13703 19.9993 9.68385 20 10.4907 20H13.5093C14.3161 20 14.863 19.9993 15.2871 19.9656C15.6991 19.9329 15.9132 19.8736 16.0656 19.7998C16.4293 19.6235 16.7311 19.3412 16.9311 18.99C17.015 18.8429 17.0883 18.6333 17.1483 18.2243C17.2102 17.8034 17.2473 17.2578 17.3009 16.4528L17.9311 7Z",fill:"currentColor"})),sje=de($d)({borderBottom:"none",fill:"white",color:"inherit",padding:0}),Ap=({children:e,...t})=>O.jsx(sje,{...t,children:e}),aE=e=>S.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.9999 2.51489C12.5522 2.51489 12.9999 2.96261 12.9999 3.51489V11.0002L20.4852 11.0002C21.0375 11.0002 21.4852 11.4479 21.4852 12.0002C21.4852 12.5525 21.0375 13.0002 20.4852 13.0002H12.9999V20.4855C12.9999 21.0377 12.5522 21.4855 11.9999 21.4855C11.4476 21.4855 10.9999 21.0377 10.9999 20.4855V13.0002H3.51465C2.96236 13.0002 2.51465 12.5525 2.51465 12.0002C2.51465 11.4479 2.96236 11.0002 3.51465 11.0002L10.9999 11.0002V3.51489C10.9999 2.96261 11.4476 2.51489 11.9999 2.51489Z",fill:"currentColor"})),lje=de(Yj)(({theme:e})=>({color:e.palette.error.main})),cje=({errorMessages:e,id:t})=>O.jsx(hc,{id:t,title:e,children:O.jsx(lje,{badgeContent:e.split(` +`).length,children:O.jsx(P2,{color:"inherit"})})}),uje={paddingLeft:0,paddingRight:0},dje=M.memo(function({numColumns:t,errors:n,label:r,path:o,addItem:a,schema:i,enabled:s,translations:l}){return O.jsxs(ll,{children:[O.jsx(Ap,{colSpan:t,sx:{verticalAlign:"top"},children:O.jsxs("div",{className:"flex items-center gap-2",children:[r&&O.jsx("span",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:r}),n.length!==0&&O.jsx(cje,{id:"tooltip-validation",errorMessages:n})]})}),s?O.jsx(Ap,{align:"right",style:uje,children:O.jsx(hc,{id:"tooltip-add",title:l.addTooltip,placement:"bottom",children:O.jsx(tr,{"aria-label":l.addAriaLabel,onClick:a(o,es(i)),size:"large",sx:{p:1},children:O.jsx(aE,{className:"text-ls-black"})})})}):null]})}),_M={fixedCell:{width:"150px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"},fixedCellSmall:{width:"50px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"}},u9=(e,t,n,r,o)=>{if((t==null?void 0:t.type)==="object")return d9(t).map(a=>{var l,c;const i=ir.compose(n,a),s={propName:a,schema:t,title:((c=(l=t.properties)==null?void 0:l[a])==null?void 0:c.title)??yy(a),rowPath:n,cellPath:i,enabled:r,cells:o};return O.jsx(e,{...s},i)});{const a={schema:t,rowPath:n,cellPath:n,enabled:r};return O.jsx(e,{...a},n)}},d9=e=>e.type==="object"&&typeof e.properties=="object"?Object.keys(e.properties).filter(t=>{var n;return((n=e.properties)==null?void 0:n[t].type)!=="array"}):[""],fje=({numColumns:e,translations:t})=>O.jsx(ll,{children:O.jsx(Ap,{colSpan:e,children:O.jsx(gn,{align:"center",children:t.noDataMessage})})}),pje=M.memo(function({title:t}){return O.jsx($d,{sx:{color:"hsl(var(--ls-gray-100))",borderBottomColor:"hsl(var(--divider-700))",px:0,py:1},children:t})}),hje=(e,t)=>{var o,a;const n=t.rowPath+(t.schema.type==="object"?"."+t.propName:""),r=u_(_6(KS(n,t.schema,i=>i===n)(((o=e.core)==null?void 0:o.errors)??[]).map(i=>i.message)));return{rowPath:t.rowPath,propName:t.propName,schema:t.schema,rootSchema:((a=e.core)==null?void 0:a.schema)??{},errors:r,path:n,enabled:t.enabled,cells:t.cells||e.cells,renderers:t.renderers||e.renderers}},EM=e=>({type:"Control",scope:e,label:!1}),mje=M.memo(function({path:t,propName:n,schema:r,rootSchema:o,errors:a,enabled:i,renderers:s,cells:l,isValid:c}){return O.jsxs(Ap,{sx:{color:"hsl(var(--ls-black))"},children:[r.properties?O.jsx(ec,{schema:_o.schema(r,`#/properties/${Xl(n)}`,o),uischema:EM(`#/properties/${Xl(n)}`),path:t,enabled:i,renderers:s,cells:l}):O.jsx(ec,{schema:r,uischema:EM("#"),path:t,enabled:i,renderers:s,cells:l}),O.jsx(fr,{error:!c,children:!c&&a})]})}),vje=e=>{const t=pc(),n=hje(t,e),r=Mt(n.errors);return O.jsx(mje,{...n,isValid:r})},gje=({childPath:e,schema:t,rowIndex:n,openDeleteDialog:r,moveUpCreator:o,moveDownCreator:a,enableUp:i,enableDown:s,showSortButtons:l,enabled:c,cells:u,path:f,translations:p})=>{const m=S.useMemo(()=>o(f,n),[o,f,n]),b=S.useMemo(()=>a(f,n),[a,f,n]);return O.jsxs(ll,{hover:!0,children:[u9(vje,t,e,c,u),c?O.jsx(Ap,{style:l?_M.fixedCell:_M.fixedCellSmall,children:O.jsxs(en,{container:!0,direction:"row",justifyContent:"flex-end",alignItems:"center",children:[l?O.jsxs(S.Fragment,{children:[O.jsx(en,{item:!0,children:O.jsx(tr,{"aria-label":p.upAriaLabel,onClick:m,disabled:!i,size:"large",children:O.jsx(A0,{})})}),O.jsx(en,{item:!0,children:O.jsx(tr,{"aria-label":p.downAriaLabel,onClick:b,disabled:!s,size:"large",children:O.jsx(I0,{})})})]}):null,O.jsx(en,{item:!0,children:O.jsx(tr,{"aria-label":p.removeAriaLabel,onClick:()=>r(e,n),size:"large",sx:{p:1},children:O.jsx(oE,{className:"text-ls-black"})})})]})}):null]},e)},yje=M.memo(gje),bje=({data:e,path:t,schema:n={},openDeleteDialog:r,moveUp:o,moveDown:a,uischema:i,config:s,enabled:l,cells:c,translations:u})=>{if(e===0)return O.jsx(fje,{numColumns:d9(n).length+1,translations:u});const p=tn({},s,i.options);return O.jsx(M.Fragment,{children:hd(e).map(m=>{const b=ir.compose(t,`${m}`);return O.jsx(yje,{childPath:b,rowIndex:m,schema:n,openDeleteDialog:r,moveUpCreator:o??(()=>()=>{}),moveDownCreator:a??(()=>()=>{}),enableUp:m!==0,enableDown:m!==e-1,showSortButtons:p.showSortButtons||p.showArrayTableSortButtons,enabled:l,cells:c,path:t,translations:u},b)})})};class xje extends M.Component{constructor(){super(...arguments);Ud(this,"addItem",(n,r)=>this.props.addItem(n,r))}render(){const{label:n,path:r,schema:o={},rootSchema:a,uischema:i,errors:s,openDeleteDialog:l,visible:c,enabled:u,cells:f,translations:p}=this.props,m=i,b=(o==null?void 0:o.type)==="object",v=b?u9(pje,o,r,u,f):void 0;return O.jsx(Pn,{xsUp:!c,children:O.jsxs(C6,{children:[O.jsxs(S6,{sx:{borderBottomColor:"hsl(var(--divider-700))"},children:[O.jsx(dje,{errors:s,label:n,addItem:this.addItem,numColumns:b?v.length:1,path:r,uischema:m,schema:o,rootSchema:a,enabled:u,translations:p}),b&&O.jsxs(ll,{children:[v,u?O.jsx($d,{sx:{borderBottomColor:"hsl(var(--divider-700))"}}):null]})]}),O.jsx($6,{children:O.jsx(bje,{...this.props,openDeleteDialog:this.props.openDeleteDialog??l,translations:this.props.translations??p})})]})})}}const wje=M.memo(function({open:t,onClose:n,onConfirm:r,onCancel:o,title:a,message:i,acceptText:s,declineText:l}){return O.jsxs(E0,{open:t,keepMounted:!0,onClose:n,"aria-labelledby":"alert-dialog-confirmdelete-title","aria-describedby":"alert-dialog-confirmdelete-description",children:[O.jsx(h2,{id:"alert-dialog-confirmdelete-title",children:a}),O.jsx(T0,{children:O.jsx(p2,{id:"alert-dialog-confirmdelete-description",children:i})}),O.jsxs(P0,{children:[O.jsx(Uo,{onClick:o,color:"primary",children:l}),O.jsx(Uo,{onClick:r,color:"primary",children:s})]})]})}),Cje=e=>{const[t,n]=S.useState(!1),[r,o]=S.useState(void 0),[a,i]=S.useState(void 0),{removeItems:s,visible:l}=e,c=S.useCallback((m,b)=>{n(!0),o(m),i(b)},[n,o,i]),u=S.useCallback(()=>n(!1),[n]),f=S.useCallback(()=>{const m=r==null?void 0:r.substring(0,r.lastIndexOf("."));m!=null&&a!=null&&(s==null||s(m,[a])()),n(!1)},[n,r,a]),p=S.useCallback(()=>n(!1),[n]);return O.jsx("div",{className:"control",children:O.jsxs(Pn,{xsUp:!l,children:[O.jsx(xje,{...e,openDeleteDialog:c}),O.jsx(wje,{open:t,onCancel:u,onConfirm:f,onClose:p,acceptText:e.translations.deleteDialogAccept,declineText:e.translations.deleteDialogDecline,title:e.translations.deleteDialogTitle,message:e.translations.deleteDialogMessage})]})})},$je=mn(11,dc(n_,s5,r_)),f9=My(Cje);function Sje(){for(var e=0,t,n,r="";ee&&(t=0,r=n,n=new Map)}return{get:function(i){var s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set:function(i,s){n.has(i)?n.set(i,s):o(i,s)}}}var m9="!";function Rje(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(i){for(var s=[],l=0,c=0,u,f=0;fc?u-c:void 0;return{modifiers:s,hasImportantModifier:b,baseClassName:v,maybePostfixModifierPosition:x}}}function Dje(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function Mje(e){return{cache:Oje(e.cacheSize),splitModifiers:Rje(e),..._je(e)}}var Ije=/\s+/;function Aje(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,a=new Set;return e.trim().split(Ije).map(function(i){var s=n(i),l=s.modifiers,c=s.hasImportantModifier,u=s.baseClassName,f=s.maybePostfixModifierPosition,p=r(f?u.substring(0,f):u),m=!!f;if(!p){if(!f)return{isTailwindClass:!1,originalClassName:i};if(p=r(u),!p)return{isTailwindClass:!1,originalClassName:i};m=!1}var b=Dje(l).join(":"),v=c?b+m9:b;return{isTailwindClass:!0,modifierId:v,classGroupId:p,originalClassName:i,hasPostfixModifier:m}}).reverse().filter(function(i){if(!i.isTailwindClass)return!0;var s=i.modifierId,l=i.classGroupId,c=i.hasPostfixModifier,u=s+l;return a.has(u)?!1:(a.add(u),o(l,c).forEach(function(f){return a.add(s+f)}),!0)}).reverse().map(function(i){return i.originalClassName}).join(" ")}function Nje(){for(var e=arguments.length,t=new Array(e),n=0;n{var r;const n=t.target;(r=e.onChange)==null||r.call(e,n.value)},onFocus:e.onFocus,onBlur:e.onBlur,placeholder:e.placeholder,readOnly:e.readOnly,autoFocus:e.autoFocus&&!e.readOnly,onKeyDown:e.onKeyDown}),O.jsxs("div",{"aria-hidden":!0,className:Ys(OM,"pointer-events-none select-none"),children:[e.value," "]})]})}const Xje=e=>{const{data:t,className:n,id:r,enabled:o,config:a,uischema:i,path:s,handleChange:l}=e,c=tn({},a,i.options);return O.jsx(Xu,{value:t||"",onChange:u=>l(s,u===""?void 0:u),className:Ys("w-full text-lg",n),id:r,disabled:!o,autoFocus:c.focus,placeholder:c.placeholder})},RM=pr(Ka(Xje));function Qje(e){try{return JSON.parse(e)}catch{return e}}function e6e(e){try{return JSON.stringify(e)}catch{return e}}const t6e=e=>{const{data:t,className:n,id:r,enabled:o,config:a,uischema:i,path:s,handleChange:l}=e,c=tn({},a,i.options);return O.jsx(Xu,{value:typeof t=="object"?e6e(t):t??"",onChange:u=>l(s,u===""?void 0:Qje(u)),className:Ys("w-full text-lg",n),id:r,disabled:!o,autoFocus:c.focus,placeholder:c.placeholder})},n6e=pr(Ka(t6e));function oo(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function r6e(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function y9(...e){return t=>e.forEach(n=>r6e(n,t))}function ns(...e){return S.useCallback(y9(...e),e)}function G0(e,t=[]){let n=[];function r(a,i){const s=S.createContext(i),l=n.length;n=[...n,i];function c(f){const{scope:p,children:m,...b}=f,v=(p==null?void 0:p[e][l])||s,x=S.useMemo(()=>b,Object.values(b));return S.createElement(v.Provider,{value:x},m)}function u(f,p){const m=(p==null?void 0:p[e][l])||s,b=S.useContext(m);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${a}\``)}return c.displayName=a+"Provider",[c,u]}const o=()=>{const a=n.map(i=>S.createContext(i));return function(s){const l=(s==null?void 0:s[e])||a;return S.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,o6e(o,...t)]}function o6e(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((s,{useScope:l,scopeName:c})=>{const f=l(a)[`__scope${c}`];return{...s,...f}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}const TC=globalThis!=null&&globalThis.document?S.useLayoutEffect:()=>{},a6e=ep["useId".toString()]||(()=>{});let i6e=0;function jv(e){const[t,n]=S.useState(a6e());return TC(()=>{e||n(r=>r??String(i6e++))},[e]),e||(t?`radix-${t}`:"")}function Qs(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function Ch({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=s6e({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=Qs(n),l=S.useCallback(c=>{if(a){const f=typeof c=="function"?c(e):c;f!==e&&s(f)}else o(c)},[a,e,o,s]);return[i,l]}function s6e({defaultProp:e,onChange:t}){const n=S.useState(e),[r]=n,o=S.useRef(r),a=Qs(t);return S.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}const Np=S.forwardRef((e,t)=>{const{children:n,...r}=e,o=S.Children.toArray(n),a=o.find(c6e);if(a){const i=a.props.children,s=o.map(l=>l===a?S.Children.count(i)>1?S.Children.only(null):S.isValidElement(i)?i.props.children:null:l);return S.createElement(kC,T({},r,{ref:t}),S.isValidElement(i)?S.cloneElement(i,void 0,s):null)}return S.createElement(kC,T({},r,{ref:t}),n)});Np.displayName="Slot";const kC=S.forwardRef((e,t)=>{const{children:n,...r}=e;return S.isValidElement(n)?S.cloneElement(n,{...u6e(r,n.props),ref:t?y9(t,n.ref):n.ref}):S.Children.count(n)>1?S.Children.only(null):null});kC.displayName="SlotClone";const l6e=({children:e})=>S.createElement(S.Fragment,null,e);function c6e(e){return S.isValidElement(e)&&e.type===l6e}function u6e(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{a(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const d6e=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ko=d6e.reduce((e,t)=>{const n=S.forwardRef((r,o)=>{const{asChild:a,...i}=r,s=a?Np:t;return S.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),S.createElement(s,T({},i,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function f6e(e,t){e&&nd.flushSync(()=>e.dispatchEvent(t))}function p6e(e,t=globalThis==null?void 0:globalThis.document){const n=Qs(e);S.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const OC="dismissableLayer.update",h6e="dismissableLayer.pointerDownOutside",m6e="dismissableLayer.focusOutside";let DM;const v6e=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),g6e=S.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...c}=e,u=S.useContext(v6e),[f,p]=S.useState(null),m=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,b]=S.useState({}),v=ns(t,k=>p(k)),x=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=x.indexOf(g),w=f?x.indexOf(f):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,_=w>=y,$=y6e(k=>{const I=k.target,R=[...u.branches].some(F=>F.contains(I));!_||R||(a==null||a(k),s==null||s(k),k.defaultPrevented||l==null||l())},m),E=b6e(k=>{const I=k.target;[...u.branches].some(F=>F.contains(I))||(i==null||i(k),s==null||s(k),k.defaultPrevented||l==null||l())},m);return p6e(k=>{w===u.layers.size-1&&(o==null||o(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},m),S.useEffect(()=>{if(f)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(DM=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),MM(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=DM)}},[f,m,r,u]),S.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),MM())},[f,u]),S.useEffect(()=>{const k=()=>b({});return document.addEventListener(OC,k),()=>document.removeEventListener(OC,k)},[]),S.createElement(Ko.div,T({},c,{ref:v,style:{pointerEvents:C?_?"auto":"none":void 0,...e.style},onFocusCapture:oo(e.onFocusCapture,E.onFocusCapture),onBlurCapture:oo(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:oo(e.onPointerDownCapture,$.onPointerDownCapture)}))});function y6e(e,t=globalThis==null?void 0:globalThis.document){const n=Qs(e),r=S.useRef(!1),o=S.useRef(()=>{});return S.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let u=function(){b9(h6e,n,c,{discrete:!0})};var l=u;const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function b6e(e,t=globalThis==null?void 0:globalThis.document){const n=Qs(e),r=S.useRef(!1);return S.useEffect(()=>{const o=a=>{a.target&&!r.current&&b9(m6e,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function MM(){const e=new CustomEvent(OC);document.dispatchEvent(e)}function b9(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?f6e(o,a):o.dispatchEvent(a)}const Dx="focusScope.autoFocusOnMount",Mx="focusScope.autoFocusOnUnmount",IM={bubbles:!1,cancelable:!0},x6e=S.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,l]=S.useState(null),c=Qs(o),u=Qs(a),f=S.useRef(null),p=ns(t,v=>l(v)),m=S.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;S.useEffect(()=>{if(r){let y=function($){if(m.paused||!s)return;const E=$.target;s.contains(E)?f.current=E:Ps(f.current,{select:!0})},w=function($){if(m.paused||!s)return;const E=$.relatedTarget;E!==null&&(s.contains(E)||Ps(f.current,{select:!0}))},C=function($){if(document.activeElement===document.body)for(const k of $)k.removedNodes.length>0&&Ps(s)};var v=y,x=w,g=C;document.addEventListener("focusin",y),document.addEventListener("focusout",w);const _=new MutationObserver(C);return s&&_.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",w),_.disconnect()}}},[r,s,m.paused]),S.useEffect(()=>{if(s){NM.add(m);const v=document.activeElement;if(!s.contains(v)){const g=new CustomEvent(Dx,IM);s.addEventListener(Dx,c),s.dispatchEvent(g),g.defaultPrevented||(w6e(E6e(x9(s)),{select:!0}),document.activeElement===v&&Ps(s))}return()=>{s.removeEventListener(Dx,c),setTimeout(()=>{const g=new CustomEvent(Mx,IM);s.addEventListener(Mx,u),s.dispatchEvent(g),g.defaultPrevented||Ps(v??document.body,{select:!0}),s.removeEventListener(Mx,u),NM.remove(m)},0)}}},[s,c,u,m]);const b=S.useCallback(v=>{if(!n&&!r||m.paused)return;const x=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,g=document.activeElement;if(x&&g){const y=v.currentTarget,[w,C]=C6e(y);w&&C?!v.shiftKey&&g===C?(v.preventDefault(),n&&Ps(w,{select:!0})):v.shiftKey&&g===w&&(v.preventDefault(),n&&Ps(C,{select:!0})):g===y&&v.preventDefault()}},[n,r,m.paused]);return S.createElement(Ko.div,T({tabIndex:-1},i,{ref:p,onKeyDown:b}))});function w6e(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ps(r,{select:t}),document.activeElement!==n)return}function C6e(e){const t=x9(e),n=AM(t,e),r=AM(t.reverse(),e);return[n,r]}function x9(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function AM(e,t){for(const n of e)if(!$6e(n,{upTo:t}))return n}function $6e(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function S6e(e){return e instanceof HTMLInputElement&&"select"in e}function Ps(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&S6e(e)&&t&&e.select()}}const NM=_6e();function _6e(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=jM(e,t),e.unshift(t)},remove(t){var n;e=jM(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function jM(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function E6e(e){return e.filter(t=>t.tagName!=="A")}const P6e=S.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?Cf.createPortal(S.createElement(Ko.div,T({},o,{ref:t})),r):null});function T6e(e,t){return S.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const q0=e=>{const{present:t,children:n}=e,r=k6e(t),o=typeof n=="function"?n({present:r.isPresent}):S.Children.only(n),a=ns(r.ref,o.ref);return typeof n=="function"||r.isPresent?S.cloneElement(o,{ref:a}):null};q0.displayName="Presence";function k6e(e){const[t,n]=S.useState(),r=S.useRef({}),o=S.useRef(e),a=S.useRef("none"),i=e?"mounted":"unmounted",[s,l]=T6e(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const c=nv(r.current);a.current=s==="mounted"?c:"none"},[s]),TC(()=>{const c=r.current,u=o.current;if(u!==e){const p=a.current,m=nv(c);e?l("MOUNT"):m==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&p!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),TC(()=>{if(t){const c=f=>{const m=nv(r.current).includes(f.animationName);f.target===t&&m&&nd.flushSync(()=>l("ANIMATION_END"))},u=f=>{f.target===t&&(a.current=nv(r.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:S.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function nv(e){return(e==null?void 0:e.animationName)||"none"}let Ix=0;function O6e(){S.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:LM()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:LM()),Ix++,()=>{Ix===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Ix--}},[])}function LM(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var pi=function(){return pi=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return q6e;var t=Y6e(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},J6e=S9(),Z6e=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),` + .`.concat(D6e,` { + overflow: hidden `).concat(r,`; + padding-right: `).concat(s,"px ").concat(r,`; + } + body { + overflow: hidden `).concat(r,`; + overscroll-behavior: contain; + `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` + padding-left: `.concat(o,`px; + padding-top: `).concat(a,`px; + padding-right: `).concat(i,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(s,"px ").concat(r,`; + `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),` + } + + .`).concat(Lv,` { + right: `).concat(s,"px ").concat(r,`; + } + + .`).concat(Fv,` { + margin-right: `).concat(s,"px ").concat(r,`; + } + + .`).concat(Lv," .").concat(Lv,` { + right: 0 `).concat(r,`; + } + + .`).concat(Fv," .").concat(Fv,` { + margin-right: 0 `).concat(r,`; + } + + body { + `).concat(M6e,": ").concat(s,`px; + } +`)},X6e=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,a=S.useMemo(function(){return K6e(o)},[o]);return S.createElement(J6e,{styles:Z6e(a,!t,o,n?"":"!important")})},RC=!1;if(typeof window<"u")try{var rv=Object.defineProperty({},"passive",{get:function(){return RC=!0,!0}});window.addEventListener("test",rv,rv),window.removeEventListener("test",rv,rv)}catch{RC=!1}var Yc=RC?{passive:!1}:!1,Q6e=function(e){return e.tagName==="TEXTAREA"},_9=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Q6e(e)&&n[t]==="visible")},eLe=function(e){return _9(e,"overflowY")},tLe=function(e){return _9(e,"overflowX")},zM=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=E9(e,n);if(r){var o=P9(e,n),a=o[1],i=o[2];if(a>i)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},nLe=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},rLe=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},E9=function(e,t){return e==="v"?eLe(t):tLe(t)},P9=function(e,t){return e==="v"?nLe(t):rLe(t)},oLe=function(e,t){return e==="h"&&t==="rtl"?-1:1},aLe=function(e,t,n,r,o){var a=oLe(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,l=t.contains(s),c=!1,u=i>0,f=0,p=0;do{var m=P9(e,s),b=m[0],v=m[1],x=m[2],g=v-x-a*b;(b||g)&&E9(e,s)&&(f+=g,p+=b),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(o&&f===0||!o&&i>f)||!u&&(o&&p===0||!o&&-i>p))&&(c=!0),c},ov=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},BM=function(e){return[e.deltaX,e.deltaY]},VM=function(e){return e&&"current"in e?e.current:e},iLe=function(e,t){return e[0]===t[0]&&e[1]===t[1]},sLe=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},lLe=0,Kc=[];function cLe(e){var t=S.useRef([]),n=S.useRef([0,0]),r=S.useRef(),o=S.useState(lLe++)[0],a=S.useState(function(){return S9()})[0],i=S.useRef(e);S.useEffect(function(){i.current=e},[e]),S.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=R6e([e.lockRef.current],(e.shards||[]).map(VM),!0).filter(Boolean);return v.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=S.useCallback(function(v,x){if("touches"in v&&v.touches.length===2)return!i.current.allowPinchZoom;var g=ov(v),y=n.current,w="deltaX"in v?v.deltaX:y[0]-g[0],C="deltaY"in v?v.deltaY:y[1]-g[1],_,$=v.target,E=Math.abs(w)>Math.abs(C)?"h":"v";if("touches"in v&&E==="h"&&$.type==="range")return!1;var k=zM(E,$);if(!k)return!0;if(k?_=E:(_=E==="v"?"h":"v",k=zM(E,$)),!k)return!1;if(!r.current&&"changedTouches"in v&&(w||C)&&(r.current=_),!_)return!0;var I=r.current||_;return aLe(I,x,v,I==="h"?w:C,!0)},[]),l=S.useCallback(function(v){var x=v;if(!(!Kc.length||Kc[Kc.length-1]!==a)){var g="deltaY"in x?BM(x):ov(x),y=t.current.filter(function(_){return _.name===x.type&&_.target===x.target&&iLe(_.delta,g)})[0];if(y&&y.should){x.cancelable&&x.preventDefault();return}if(!y){var w=(i.current.shards||[]).map(VM).filter(Boolean).filter(function(_){return _.contains(x.target)}),C=w.length>0?s(x,w[0]):!i.current.noIsolation;C&&x.cancelable&&x.preventDefault()}}},[]),c=S.useCallback(function(v,x,g,y){var w={name:v,delta:x,target:g,should:y};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(C){return C!==w})},1)},[]),u=S.useCallback(function(v){n.current=ov(v),r.current=void 0},[]),f=S.useCallback(function(v){c(v.type,BM(v),v.target,s(v,e.lockRef.current))},[]),p=S.useCallback(function(v){c(v.type,ov(v),v.target,s(v,e.lockRef.current))},[]);S.useEffect(function(){return Kc.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,Yc),document.addEventListener("touchmove",l,Yc),document.addEventListener("touchstart",u,Yc),function(){Kc=Kc.filter(function(v){return v!==a}),document.removeEventListener("wheel",l,Yc),document.removeEventListener("touchmove",l,Yc),document.removeEventListener("touchstart",u,Yc)}},[]);var m=e.removeScrollBar,b=e.inert;return S.createElement(S.Fragment,null,b?S.createElement(a,{styles:sLe(o)}):null,m?S.createElement(X6e,{gapMode:"margin"}):null)}const uLe=z6e($9,cLe);var T9=S.forwardRef(function(e,t){return S.createElement(Y0,pi({},e,{ref:t,sideCar:uLe}))});T9.classNames=Y0.classNames;const dLe=T9;var fLe=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Jc=new WeakMap,av=new WeakMap,iv={},jx=0,k9=function(e){return e&&(e.host||k9(e.parentNode))},pLe=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=k9(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},hLe=function(e,t,n,r){var o=pLe(t,Array.isArray(e)?e:[e]);iv[n]||(iv[n]=new WeakMap);var a=iv[n],i=[],s=new Set,l=new Set(o),c=function(f){!f||s.has(f)||(s.add(f),c(f.parentNode))};o.forEach(c);var u=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(p){if(s.has(p))u(p);else{var m=p.getAttribute(r),b=m!==null&&m!=="false",v=(Jc.get(p)||0)+1,x=(a.get(p)||0)+1;Jc.set(p,v),a.set(p,x),i.push(p),v===1&&b&&av.set(p,!0),x===1&&p.setAttribute(n,"true"),b||p.setAttribute(r,"true")}})};return u(t),s.clear(),jx++,function(){i.forEach(function(f){var p=Jc.get(f)-1,m=a.get(f)-1;Jc.set(f,p),a.set(f,m),p||(av.has(f)||f.removeAttribute(r),av.delete(f)),m||f.removeAttribute(n)}),jx--,jx||(Jc=new WeakMap,Jc=new WeakMap,av=new WeakMap,iv={})}},mLe=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||fLe(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),hLe(r,o,n,"aria-hidden")):function(){return null}};const O9="Dialog",[R9,r8e]=G0(O9),[vLe,Ja]=R9(O9),gLe=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=S.useRef(null),l=S.useRef(null),[c=!1,u]=Ch({prop:r,defaultProp:o,onChange:a});return S.createElement(vLe,{scope:t,triggerRef:s,contentRef:l,contentId:jv(),titleId:jv(),descriptionId:jv(),open:c,onOpenChange:u,onOpenToggle:S.useCallback(()=>u(f=>!f),[u]),modal:i},n)},yLe="DialogTrigger",bLe=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ja(yLe,n),a=ns(t,o.triggerRef);return S.createElement(Ko.button,T({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":sE(o.open)},r,{ref:a,onClick:oo(e.onClick,o.onOpenToggle)}))}),D9="DialogPortal",[xLe,M9]=R9(D9,{forceMount:void 0}),wLe=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=Ja(D9,t);return S.createElement(xLe,{scope:t,forceMount:n},S.Children.map(r,i=>S.createElement(q0,{present:n||a.open},S.createElement(P6e,{asChild:!0,container:o},i))))},DC="DialogOverlay",CLe=S.forwardRef((e,t)=>{const n=M9(DC,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Ja(DC,e.__scopeDialog);return a.modal?S.createElement(q0,{present:r||a.open},S.createElement($Le,T({},o,{ref:t}))):null}),$Le=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ja(DC,n);return S.createElement(dLe,{as:Np,allowPinchZoom:!0,shards:[o.contentRef]},S.createElement(Ko.div,T({"data-state":sE(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),jp="DialogContent",SLe=S.forwardRef((e,t)=>{const n=M9(jp,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Ja(jp,e.__scopeDialog);return S.createElement(q0,{present:r||a.open},a.modal?S.createElement(_Le,T({},o,{ref:t})):S.createElement(ELe,T({},o,{ref:t})))}),_Le=S.forwardRef((e,t)=>{const n=Ja(jp,e.__scopeDialog),r=S.useRef(null),o=ns(t,n.contentRef,r);return S.useEffect(()=>{const a=r.current;if(a)return mLe(a)},[]),S.createElement(I9,T({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:oo(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=n.triggerRef.current)===null||i===void 0||i.focus()}),onPointerDownOutside:oo(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&a.preventDefault()}),onFocusOutside:oo(e.onFocusOutside,a=>a.preventDefault())}))}),ELe=S.forwardRef((e,t)=>{const n=Ja(jp,e.__scopeDialog),r=S.useRef(!1),o=S.useRef(!1);return S.createElement(I9,T({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i;if((i=e.onCloseAutoFocus)===null||i===void 0||i.call(e,a),!a.defaultPrevented){var s;r.current||(s=n.triggerRef.current)===null||s===void 0||s.focus(),a.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:a=>{var i,s;(i=e.onInteractOutside)===null||i===void 0||i.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const l=a.target;((s=n.triggerRef.current)===null||s===void 0?void 0:s.contains(l))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}}))}),I9=S.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=Ja(jp,n),l=S.useRef(null),c=ns(t,l);return O6e(),S.createElement(S.Fragment,null,S.createElement(x6e,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a},S.createElement(g6e,T({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":sE(s.open)},i,{ref:c,onDismiss:()=>s.onOpenChange(!1)}))),!1)}),PLe="DialogTitle",TLe=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ja(PLe,n);return S.createElement(Ko.h2,T({id:o.titleId},r,{ref:t}))}),kLe="DialogDescription",OLe=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ja(kLe,n);return S.createElement(Ko.p,T({id:o.descriptionId},r,{ref:t}))}),RLe="DialogClose",DLe=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ja(RLe,n);return S.createElement(Ko.button,T({type:"button"},r,{ref:t,onClick:oo(e.onClick,()=>o.onOpenChange(!1))}))});function sE(e){return e?"open":"closed"}const MLe=gLe,ILe=bLe,ALe=wLe,NLe=CLe,jLe=SLe,LLe=TLe,FLe=OLe,zLe=DLe;var A9=M.createContext({drawerRef:{current:null},overlayRef:{current:null},scaleBackground:()=>{},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},dismissible:!1,isOpen:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,modal:!1,shouldFade:!1,activeSnapPoint:null,setActiveSnapPoint:()=>{},visible:!1,closeDrawer:()=>{},setVisible:()=>{}}),lE=()=>M.useContext(A9);function BLe(e,{insertAt:t}={}){if(!e||typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}BLe(`[vaul-drawer]{touch-action:none;transform:translate3d(0,100%,0);transition:transform .5s cubic-bezier(.32,.72,0,1)}[vaul-drawer][vaul-drawer-visible=true]{transform:translate3d(0,var(--snap-point-height, 0),0)}[vaul-overlay]{opacity:0;transition:opacity .5s cubic-bezier(.32,.72,0,1)}[vaul-overlay][vaul-drawer-visible=true]{opacity:1}[vaul-drawer]:after{content:"";position:absolute;top:100%;background:inherit;background-color:inherit;left:0;right:0;height:200%}[vaul-overlay][vaul-snap-points=true]:not([vaul-snap-points-overlay="true"]):not([data-state="closed"]){opacity:0}[vaul-overlay][vaul-snap-points-overlay=true]:not([vaul-drawer-visible="false"]){opacity:1}@keyframes fake-animation{}@media (hover: hover) and (pointer: fine){[vaul-drawer]{user-select:none}} +`);var VLe=typeof window<"u"?S.useLayoutEffect:S.useEffect;function MC(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}function ULe(){return cE(/^Mac/)}function WLe(){return cE(/^iPhone/)}function HLe(){return cE(/^iPad/)||ULe()&&navigator.maxTouchPoints>1}function N9(){return WLe()||HLe()}function cE(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}var Lx=typeof document<"u"&&window.visualViewport;function UM(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function j9(e){for(UM(e)&&(e=e.parentElement);e&&!UM(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}var GLe=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),sv=0,Fx;function qLe(e={}){let{isDisabled:t}=e;VLe(()=>{if(!t)return sv++,sv===1&&(N9()?Fx=KLe():Fx=YLe()),()=>{sv--,sv===0&&Fx()}},[t])}function YLe(){return MC(Vg(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Vg(document.documentElement,"overflow","hidden"))}function KLe(){let e,t=0,n=f=>{e=j9(f.target),!(e===document.documentElement&&e===document.body)&&(t=f.changedTouches[0].pageY)},r=f=>{if(!e||e===document.documentElement||e===document.body){f.preventDefault();return}let p=f.changedTouches[0].pageY,m=e.scrollTop,b=e.scrollHeight-e.clientHeight;b!==0&&((m<=0&&p>t||m>=b&&p{let p=f.target;Ug(p)&&p!==document.activeElement&&(f.preventDefault(),p.style.transform="translateY(-2000px)",p.focus(),requestAnimationFrame(()=>{p.style.transform=""}))},a=f=>{let p=f.target;Ug(p)&&(p.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{p.style.transform="",Lx&&(Lx.height{WM(p)}):Lx.addEventListener("resize",()=>WM(p),{once:!0}))}))},i=()=>{window.scrollTo(0,0)},s=window.pageXOffset,l=window.pageYOffset,c=MC(Vg(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Vg(document.documentElement,"overflow","hidden"));window.scrollTo(0,0);let u=MC(vf(document,"touchstart",n,{passive:!1,capture:!0}),vf(document,"touchmove",r,{passive:!1,capture:!0}),vf(document,"touchend",o,{passive:!1,capture:!0}),vf(document,"focus",a,!0),vf(window,"scroll",i));return()=>{c(),u(),window.scrollTo(s,l)}}function Vg(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function vf(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function WM(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=j9(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top,a=e.getBoundingClientRect().bottom,i=n.getBoundingClientRect().bottom;a>i&&(n.scrollTop+=o-r)}e=n.parentElement}}function Ug(e){return e instanceof HTMLInputElement&&!GLe.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function JLe(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function ZLe(...e){return t=>e.forEach(n=>JLe(n,t))}function L9(...e){return S.useCallback(ZLe(...e),e)}var _s=null;function XLe({isOpen:e,modal:t,nested:n,hasBeenOpened:r}){let o=M.useRef(0);function a(){if(_s===null&&e){_s={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height};let{scrollX:s,innerHeight:l}=window;document.body.style.setProperty("position","fixed","important"),document.body.style.top=`${-o.current}px`,document.body.style.left=`${-s}px`,document.body.style.right="0px",document.body.style.height="auto",setTimeout(()=>requestAnimationFrame(()=>{let c=l-window.innerHeight;c&&o.current>=l&&(document.body.style.top=`${-(o.current+c)}px`)}),300)}}function i(){if(_s!==null){let s=-parseInt(document.body.style.top,10),l=-parseInt(document.body.style.left,10);document.body.style.position=_s.position,document.body.style.top=_s.top,document.body.style.left=_s.left,document.body.style.height=_s.height,document.body.style.right="unset",requestAnimationFrame(()=>{window.scrollTo(l,s)}),_s=null}}return M.useEffect(()=>{function s(){o.current=window.scrollY}return s(),window.addEventListener("scroll",s),()=>{window.removeEventListener("scroll",s)}},[]),M.useEffect(()=>{n||!r||(e?(a(),t||setTimeout(()=>{i()},500)):i())},[e,r]),{restorePositionSetting:i}}var F9=new WeakMap;function Hn(e,t,n=!1){if(!e||!(e instanceof HTMLElement)||!t)return;let r={};Object.entries(t).forEach(([o,a])=>{if(o.startsWith("--")){e.style.setProperty(o,a);return}r[o]=e.style[o],e.style[o]=a}),!n&&F9.set(e,r)}function lv(e,t){if(!e||!(e instanceof HTMLElement))return;let n=F9.get(e);n&&(t?e.style[t]=n[t]:Object.entries(n).forEach(([r,o])=>{e.style[r]=o}))}function cv(e){let t=window.getComputedStyle(e),n=t.transform||t.webkitTransform||t.mozTransform,r=n.match(/^matrix3d\((.+)\)$/);return r?parseFloat(r[1].split(", ")[13]):(r=n.match(/^matrix\((.+)\)$/),r?parseFloat(r[1].split(", ")[5]):null)}function QLe(e){return 8*(Math.log(e+1)-2)}var On={DURATION:.5,EASE:[.32,.72,0,1]},z9=.4;function B9(e){let t=M.useRef(e);return M.useEffect(()=>{t.current=e}),M.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function e9e({defaultProp:e,onChange:t}){let n=M.useState(e),[r]=n,o=M.useRef(r),a=B9(t);return M.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}function t9e({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,o]=e9e({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=B9(n),l=M.useCallback(c=>{if(a){let u=typeof c=="function"?c(e):c;u!==e&&s(u)}else o(c)},[a,e,o,s]);return[i,l]}function n9e({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:a,onSnapPointChange:i}){let[s,l]=t9e({prop:e,defaultProp:n==null?void 0:n[0],onChange:t}),c=M.useMemo(()=>s===(n==null?void 0:n[n.length-1]),[n,s]),u=n&&n.length>0&&a&&n[a]===s||!n,f=M.useMemo(()=>{var y;return(y=n==null?void 0:n.findIndex(w=>w===s))!=null?y:null},[n,s]),p=M.useMemo(()=>{var y;return(y=n==null?void 0:n.map(w=>{let C=typeof window<"u",_=typeof w=="string",$=0;_&&($=parseInt(w,10));let E=_?$:C?w*window.innerHeight:0;return C?window.innerHeight-E:E}))!=null?y:[]},[n]),m=M.useMemo(()=>f!==null?p==null?void 0:p[f]:null,[p,f]),b=M.useCallback(y=>{var w;let C=(w=p==null?void 0:p.findIndex(_=>_===y))!=null?w:null;i(C),Hn(r.current,{transition:`transform ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,transform:`translate3d(0, ${y}px, 0)`}),p&&C!==p.length-1&&C!==a?Hn(o.current,{transition:`opacity ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,opacity:"0"}):Hn(o.current,{transition:`opacity ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,opacity:"1"}),l(C!==null?n==null?void 0:n[C]:null)},[r,n,p,a,o,l]);M.useEffect(()=>{var y;if(e){let w=(y=n==null?void 0:n.findIndex(C=>C===e))!=null?y:null;p&&w&&typeof p[w]=="number"&&b(p[w])}},[e,n,p,b]);function v({draggedDistance:y,closeDrawer:w,velocity:C}){if(a===void 0)return;let _=m-y,$=f===a-1,E=f===0;if($&&Hn(o.current,{transition:`opacity ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`}),C>2&&y<0){w();return}if(C>2&&y>0&&p&&n){b(p[n.length-1]);return}let k=p==null?void 0:p.reduce((I,R)=>typeof I!="number"||typeof R!="number"?I:Math.abs(R-_)z9&&Math.abs(y)0?1:-1;if(I>0&&c){b(p[n.length-1]);return}if(E&&I<0&&w(),f===null)return;b(p[f+I]);return}b(k)}function x({draggedDistance:y}){if(m===null)return;let w=m-y;Hn(r.current,{transform:`translate3d(0, ${w}px, 0)`})}function g(y,w){if(!n||typeof f!="number"||!p||a===void 0)return null;let C=f===a-1;if(f>=a&&w)return 0;if(C&&!w)return 1;if(!u&&!C)return null;let _=C?f+1:f-1,$=C?p[_]-p[_-1]:p[_+1]-p[_],E=y/Math.abs($);return C?1-E:E}return{isLastSnapPoint:c,activeSnapPoint:s,shouldFade:u,getPercentageDragged:g,setActiveSnapPoint:l,activeSnapPointIndex:f,onRelease:v,onDrag:x,snapPointsOffset:p}}var r9e=.25,o9e=500,HM=8,Sl=16,GM=26;function V9({open:e,onOpenChange:t,children:n,shouldScaleBackground:r,onDrag:o,onRelease:a,snapPoints:i,nested:s,closeThreshold:l=r9e,scrollLockTimeout:c=o9e,dismissible:u=!0,fadeFromIndex:f=i&&i.length-1,activeSnapPoint:p,setActiveSnapPoint:m,fixed:b,modal:v=!0,onClose:x}){var g;let[y=!1,w]=M.useState(!1),[C,_]=M.useState(!1),[$,E]=M.useState(!1),[k,I]=M.useState(!1),[R,F]=M.useState(!1),[U,G]=M.useState(!1),B=M.useRef(null),z=M.useRef(null),Y=M.useRef(null),Q=M.useRef(null),H=M.useRef(null),J=M.useRef(!1),X=M.useRef(null),L=M.useRef(0),K=M.useRef(!1),q=M.useRef(0),D=M.useRef(null),N=M.useRef(((g=D.current)==null?void 0:g.getBoundingClientRect().height)||0),V=M.useRef(0),Z=M.useCallback(Pe=>{i&&Pe===ge.length-1&&(z.current=new Date)},[]),{activeSnapPoint:re,activeSnapPointIndex:le,setActiveSnapPoint:xe,onRelease:fe,snapPointsOffset:ge,onDrag:he,shouldFade:_e,getPercentageDragged:ve}=n9e({snapPoints:i,activeSnapPointProp:p,setActiveSnapPointProp:m,drawerRef:D,fadeFromIndex:f,overlayRef:B,onSnapPointChange:Z});qLe({isDisabled:!y||R||!v||U||!C});let{restorePositionSetting:Be}=XLe({isOpen:y,modal:v,nested:s,hasBeenOpened:C});function Ue(){return(window.innerWidth-GM)/window.innerWidth}function ze(Pe){var Te;!u&&!i||R||D.current&&!D.current.contains(Pe.target)||(N.current=((Te=D.current)==null?void 0:Te.getBoundingClientRect().height)||0,F(!0),Y.current=new Date,N9()&&window.addEventListener("touchend",()=>J.current=!1,{once:!0}),Pe.target.setPointerCapture(Pe.pointerId),L.current=Pe.clientY)}function He(Pe,Te){var it;let ct=Pe,gt=new Date,Ne=(it=window.getSelection())==null?void 0:it.toString(),ne=D.current?cv(D.current):null;if(z.current&>.getTime()-z.current.getTime()<500)return!1;if(ne>0)return!0;if(Ne&&Ne.length>0)return!1;if(H.current&>.getTime()-H.current.getTime()ct.clientHeight){if(ct.getAttribute("role")==="dialog")return!0;if(Te&&ct!==document.body&&!ne&&ne>=0)return H.current=new Date,!1;if(ct.scrollTop!==0)return H.current=new Date,!1}ct=ct.parentNode}return!0}function be(Pe){if(R){let Te=L.current-Pe.clientY,it=Te>0;if(i&&le===0&&!u||!J.current&&!He(Pe.target,it))return;if(J.current=!0,Hn(D.current,{transition:"none"}),Hn(B.current,{transition:"none"}),i&&he({draggedDistance:Te}),Te>0&&!i){let ie=QLe(Te);Hn(D.current,{transform:`translate3d(0, ${Math.min(ie*-1,0)}px, 0)`});return}let ct=Math.abs(Te),gt=document.querySelector("[vaul-drawer-wrapper]"),Ne=ct/N.current,ne=ve(ct,it);ne!==null&&(Ne=ne);let te=1-Ne;if((_e||f&&le===f-1)&&(o==null||o(Pe,Ne),Hn(B.current,{opacity:`${te}`,transition:"none"},!0)),gt&&B.current&&r){let ie=Math.min(Ue()+Ne*(1-Ue()),1),$e=8-Ne*8,Se=Math.max(0,14-Ne*14);Hn(gt,{borderRadius:`${$e}px`,transform:`scale(${ie}) translate3d(0, ${Se}px, 0)`,transition:"none"},!0)}i||Hn(D.current,{transform:`translate3d(0, ${ct}px, 0)`})}}M.useEffect(()=>()=>{rt(!1),Be()},[]),M.useEffect(()=>{var Pe;function Te(){var it;if(!D.current)return;let ct=document.activeElement;if(Ug(ct)||K.current){let gt=((it=window.visualViewport)==null?void 0:it.height)||0,Ne=window.innerHeight-gt,ne=D.current.getBoundingClientRect().height||0;V.current||(V.current=ne);let te=D.current.getBoundingClientRect().top;if(Math.abs(q.current-Ne)>60&&(K.current=!K.current),i&&i.length>0&&ge&&le){let ie=ge[le]||0;Ne+=ie}if(q.current=Ne,ne>gt||K.current){let ie=D.current.getBoundingClientRect().height,$e=ie;ie>gt&&($e=gt-GM),b?D.current.style.height=`${ie-Math.max(Ne,0)}px`:D.current.style.height=`${Math.max($e,gt-te)}px`}else D.current.style.height=`${V.current}px`;i&&i.length>0&&!K.current?D.current.style.bottom="0px":D.current.style.bottom=`${Math.max(Ne,0)}px`}}return(Pe=window.visualViewport)==null||Pe.addEventListener("resize",Te),()=>{var it;return(it=window.visualViewport)==null?void 0:it.removeEventListener("resize",Te)}},[le,i,ge]);function we(){D.current&&(x==null||x(),D.current&&(Hn(D.current,{transform:"translate3d(0, 100%, 0)",transition:`transform ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`}),Hn(B.current,{opacity:"0",transition:`opacity ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`}),rt(!1)),setTimeout(()=>{E(!1),w(!1)},300),setTimeout(()=>{i&&xe(i[0])},500))}M.useEffect(()=>{if(!y&&r){let Pe=setTimeout(()=>{lv(document.body)},200);return()=>clearTimeout(Pe)}},[y,r]),M.useEffect(()=>{e?(w(!0),_(!0)):we()},[e]),M.useEffect(()=>{k&&(t==null||t(y))},[y]),M.useEffect(()=>{I(!0)},[]);function Ce(){if(!D.current)return;let Pe=document.querySelector("[vaul-drawer-wrapper]"),Te=cv(D.current);Hn(D.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`}),Hn(B.current,{transition:`opacity ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,opacity:"1"}),r&&Te&&Te>0&&y&&Hn(Pe,{borderRadius:`${HM}px`,overflow:"hidden",transform:`scale(${Ue()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top",transitionProperty:"transform, border-radius",transitionDuration:`${On.DURATION}s`,transitionTimingFunction:`cubic-bezier(${On.EASE.join(",")})`},!0)}function qe(Pe){if(!R||!D.current)return;J.current&&Ug(Pe.target)&&Pe.target.blur(),J.current=!1,F(!1),Q.current=new Date;let Te=cv(D.current);if(!He(Pe.target,!1)||!Te||Number.isNaN(Te)||Y.current===null)return;let it=Pe.clientY,ct=Q.current.getTime()-Y.current.getTime(),gt=L.current-it,Ne=Math.abs(gt)/ct;if(Ne>.05&&(G(!0),setTimeout(()=>{G(!1)},200)),i){fe({draggedDistance:gt,closeDrawer:we,velocity:Ne});return}if(gt>0){Ce(),a==null||a(Pe,!0);return}if(Ne>z9){we(),a==null||a(Pe,!1);return}let ne=Math.min(D.current.getBoundingClientRect().height||0,window.innerHeight);if(Te>=ne*l){we(),a==null||a(Pe,!1);return}a==null||a(Pe,!0),Ce()}M.useEffect(()=>{y&&(z.current=new Date,rt(!0))},[y]);function rt(Pe){let Te=document.querySelector("[vaul-drawer-wrapper]");!Te||!r||(Pe?(Hn(document.body,{background:"black"},!0),Hn(Te,{borderRadius:`${HM}px`,overflow:"hidden",transform:`scale(${Ue()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top",transitionProperty:"transform, border-radius",transitionDuration:`${On.DURATION}s`,transitionTimingFunction:`cubic-bezier(${On.EASE.join(",")})`})):(lv(Te,"overflow"),lv(Te,"transform"),lv(Te,"borderRadius"),Hn(Te,{transitionProperty:"transform, border-radius",transitionDuration:`${On.DURATION}s`,transitionTimingFunction:`cubic-bezier(${On.EASE.join(",")})`})))}function Ae(Pe){let Te=Pe?(window.innerWidth-Sl)/window.innerWidth:1,it=Pe?-Sl:0;X.current&&window.clearTimeout(X.current),Hn(D.current,{transition:`transform ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,transform:`scale(${Te}) translate3d(0, ${it}px, 0)`}),!Pe&&D.current&&(X.current=setTimeout(()=>{Hn(D.current,{transition:"none",transform:`translate3d(0, ${cv(D.current)}px, 0)`})},500))}function Le(Pe,Te){if(Te<0)return;let it=(window.innerWidth-Sl)/window.innerWidth,ct=it+Te*(1-it),gt=-Sl+Te*Sl;Hn(D.current,{transform:`scale(${ct}) translate3d(0, ${gt}px, 0)`,transition:"none"})}function Fe(Pe,Te){let it=Te?(window.innerWidth-Sl)/window.innerWidth:1,ct=Te?-Sl:0;Te&&Hn(D.current,{transition:`transform ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,transform:`scale(${it}) translate3d(0, ${ct}px, 0)`})}return M.createElement(MLe,{modal:v,onOpenChange:Pe=>{Pe?(_(!0),w(Pe)):we()},open:y},M.createElement(A9.Provider,{value:{visible:$,activeSnapPoint:re,snapPoints:i,setActiveSnapPoint:xe,drawerRef:D,overlayRef:B,scaleBackground:rt,onPress:ze,setVisible:E,onRelease:qe,onDrag:be,dismissible:u,isOpen:y,shouldFade:_e,closeDrawer:we,onNestedDrag:Le,onNestedOpenChange:Ae,onNestedRelease:Fe,keyboardIsOpen:K,modal:v,snapPointsOffset:ge}},n))}var U9=M.forwardRef(function({children:e,...t},n){let{overlayRef:r,snapPoints:o,onRelease:a,shouldFade:i,isOpen:s,visible:l}=lE(),c=L9(n,r),u=o&&o.length>0;return M.createElement(NLe,{onMouseUp:a,ref:c,"vaul-drawer-visible":l?"true":"false","vaul-overlay":"","vaul-snap-points":s&&u?"true":"false","vaul-snap-points-overlay":s&&i?"true":"false",...t})});U9.displayName="Drawer.Overlay";var W9=M.forwardRef(function({children:e,onOpenAutoFocus:t,onPointerDownOutside:n,onAnimationEnd:r,style:o,...a},i){let{drawerRef:s,onPress:l,onRelease:c,onDrag:u,dismissible:f,keyboardIsOpen:p,snapPointsOffset:m,visible:b,closeDrawer:v,modal:x,setVisible:g}=lE(),y=L9(i,s);return M.useEffect(()=>{g(!0)},[]),M.createElement(jLe,{onOpenAutoFocus:w=>{t?t(w):(w.preventDefault(),s.current.focus())},onPointerDown:l,onPointerDownOutside:w=>{if(!x){w.preventDefault();return}p.current&&(p.current=!1),w.preventDefault(),f&&(v(),n==null||n(w))},onPointerMove:u,onPointerUp:c,ref:y,style:m&&m.length>0?{"--snap-point-height":`${m[0]}px`,...o}:o,...a,"vaul-drawer":"","vaul-drawer-visible":b?"true":"false"},e)});W9.displayName="Drawer.Content";function a9e({children:e,onDrag:t,onOpenChange:n,...r}){let{onNestedDrag:o,onNestedOpenChange:a,onNestedRelease:i}=lE();if(!o)throw new Error("Drawer.NestedRoot must be placed in another drawer");return M.createElement(V9,{nested:!0,onClose:()=>{a(!1)},onDrag:(s,l)=>{o(s,l),t==null||t(s,l)},onOpenChange:s=>{s&&a(s),n==null||n(s)},onRelease:i,...r},e)}var gf={Root:V9,NestedRoot:a9e,Content:W9,Overlay:U9,Trigger:ILe,Portal:ALe,Close:zLe,Title:LLe,Description:FLe};const H9=e=>S.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.70711 5.29289C9.09763 5.68342 9.09763 6.31658 8.70711 6.70711L3.41421 12L8.70711 17.2929C9.09763 17.6834 9.09763 18.3166 8.70711 18.7071C8.31658 19.0976 7.68342 19.0976 7.29289 18.7071L1.29289 12.7071C0.902369 12.3166 0.902369 11.6834 1.29289 11.2929L7.29289 5.29289C7.68342 4.90237 8.31658 4.90237 8.70711 5.29289ZM15.2929 5.29289C15.6834 4.90237 16.3166 4.90237 16.7071 5.29289L22.7071 11.2929C23.0976 11.6834 23.0976 12.3166 22.7071 12.7071L16.7071 18.7071C16.3166 19.0976 15.6834 19.0976 15.2929 18.7071C14.9024 18.3166 14.9024 17.6834 15.2929 17.2929L20.5858 12L15.2929 6.70711C14.9024 6.31658 14.9024 5.68342 15.2929 5.29289Z",fill:"currentColor"})),i9e=e=>S.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 5.33301C4 3.12387 5.79086 1.33301 8 1.33301C10.2091 1.33301 12 3.12387 12 5.33301V6.76656C12.1884 6.80784 12.3692 6.86796 12.544 6.95699C13.0457 7.21265 13.4537 7.6206 13.7093 8.12237C13.8742 8.44592 13.9399 8.79039 13.9705 9.16512C14 9.52592 14 9.96882 14 10.5055V10.8272C14 11.3639 14 11.8068 13.9705 12.1676C13.9399 12.5423 13.8742 12.8868 13.7093 13.2103C13.4537 13.7121 13.0457 14.12 12.544 14.3757C12.2204 14.5406 11.8759 14.6063 11.5012 14.6369C11.1404 14.6664 10.6975 14.6663 10.1609 14.6663H5.83912C5.30248 14.6663 4.85958 14.6664 4.49878 14.6369C4.12405 14.6063 3.77958 14.5406 3.45603 14.3757C2.95426 14.12 2.54631 13.7121 2.29065 13.2103C2.12579 12.8868 2.06008 12.5423 2.02946 12.1676C1.99998 11.8068 1.99999 11.3639 2 10.8272V10.5055C1.99999 9.96883 1.99998 9.52592 2.02946 9.16512C2.06008 8.79039 2.12579 8.44592 2.29065 8.12237C2.54631 7.6206 2.95426 7.21265 3.45603 6.95699C3.63076 6.86796 3.81159 6.80784 4 6.76656V5.33301ZM5.33333 6.66742C5.49181 6.66634 5.66026 6.66634 5.83913 6.66634H10.1609C10.3397 6.66634 10.5082 6.66634 10.6667 6.66742V5.33301C10.6667 3.86025 9.47276 2.66634 8 2.66634C6.52724 2.66634 5.33333 3.86025 5.33333 5.33301V6.66742ZM4.60736 8.02471C4.31508 8.04859 4.16561 8.09187 4.06135 8.145C3.81046 8.27283 3.60649 8.4768 3.47866 8.72769C3.42553 8.83195 3.38225 8.98142 3.35837 9.2737C3.33385 9.57376 3.33333 9.96195 3.33333 10.533V10.7997C3.33333 11.3707 3.33385 11.7589 3.35837 12.059C3.38225 12.3513 3.42553 12.5007 3.47866 12.605C3.60649 12.8559 3.81046 13.0599 4.06135 13.1877C4.16561 13.2408 4.31508 13.2841 4.60736 13.308C4.90742 13.3325 5.29561 13.333 5.86667 13.333H10.1333C10.7044 13.333 11.0926 13.3325 11.3926 13.308C11.6849 13.2841 11.8344 13.2408 11.9387 13.1877C12.1895 13.0599 12.3935 12.8559 12.5213 12.605C12.5745 12.5007 12.6178 12.3513 12.6416 12.059C12.6661 11.7589 12.6667 11.3707 12.6667 10.7997V10.533C12.6667 9.96195 12.6661 9.57376 12.6416 9.2737C12.6178 8.98142 12.5745 8.83195 12.5213 8.72769C12.3935 8.4768 12.1895 8.27283 11.9387 8.145C11.8344 8.09187 11.6849 8.04859 11.3926 8.02471C11.0926 8.00019 10.7044 7.99967 10.1333 7.99967H5.86667C5.29561 7.99967 4.90742 8.00019 4.60736 8.02471Z",fill:"currentColor"})),s9e=e=>S.createElement("svg",{width:25,height:25,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{d:"M4.5 19.7783C4.5 21.5132 5.35498 22.3848 7.07324 22.3848H14.876C16.5942 22.3848 17.4492 21.5049 17.4492 19.7783V18.2427H18.9019C20.6118 18.2427 21.4751 17.3628 21.4751 15.6362V8.896C21.4751 7.875 21.2676 7.22754 20.645 6.58838L16.4531 2.33008C15.8638 1.72412 15.1665 1.5 14.2783 1.5H11.0991C9.38916 1.5 8.52588 2.37988 8.52588 4.10645V5.64209H7.07324C5.36328 5.64209 4.5 6.51367 4.5 8.24854V19.7783ZM16.6606 11.0874L12.0869 6.43066C11.4561 5.7832 10.9331 5.64209 10.0034 5.64209H9.8623V4.13135C9.8623 3.30957 10.3022 2.83643 11.1655 2.83643H14.8345V7.09473C14.8345 8.05762 15.2993 8.51416 16.2539 8.51416H20.1387V15.6113C20.1387 16.4414 19.6904 16.9062 18.8271 16.9062H17.4492V13.2954C17.4492 12.2329 17.3247 11.7681 16.6606 11.0874ZM16.0381 6.89551V3.49219L19.79 7.31055H16.4448C16.1543 7.31055 16.0381 7.18604 16.0381 6.89551ZM5.83643 19.7534V8.26514C5.83643 7.45166 6.27637 6.97852 7.13965 6.97852H9.8623V11.793C9.8623 12.8389 10.3936 13.3618 11.4229 13.3618H16.1128V19.7534C16.1128 20.5835 15.6646 21.0483 14.8096 21.0483H7.13135C6.27637 21.0483 5.83643 20.5835 5.83643 19.7534ZM11.5806 12.1084C11.2485 12.1084 11.1157 11.9756 11.1157 11.6436V7.28564L15.8555 12.1084H11.5806Z",fill:"currentColor"})),l9e=e=>S.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.45455C8.38505 5.45455 5.45455 8.38505 5.45455 12C5.45455 15.615 8.38505 18.5455 12 18.5455C15.615 18.5455 18.5455 15.615 18.5455 12C18.5455 8.38505 15.615 5.45455 12 5.45455ZM4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM15.787 9.30392C16.071 9.58794 16.071 10.0484 15.787 10.3324L11.4233 14.6961C11.1393 14.9801 10.6788 14.9801 10.3948 14.6961L8.21301 12.5143C7.929 12.2303 7.929 11.7697 8.21301 11.4857C8.49703 11.2017 8.95751 11.2017 9.24153 11.4857L10.9091 13.1533L14.7585 9.30392C15.0425 9.01991 15.503 9.01991 15.787 9.30392Z",fill:"currentColor"})),zx=2e3;function IC(e){let t=null,n=e;n.endsWith("/")&&(n=n.slice(0,-1)),n.endsWith("/playground")&&(n=n.slice(0,-11));const[r,o,...a]=n.split("/").reverse();if(o==="c"){n=a.reverse().join("/");try{t=JSON.parse(W0.decompressFromEncodedURIComponent(r))}catch(i){console.error(i)}}return{basePath:n,configFromUrl:t}}function Bx(e){const[t,n]=S.useState(!1),r=S.useRef(null);function o(){n(!0),r.current!=null&&window.clearTimeout(r.current),r.current=window.setTimeout(()=>n(!1),1500)}return S.useEffect(()=>()=>{r.current!=null&&window.clearTimeout(r.current)},[]),O.jsx("button",{className:"px-3 py-1",onClick:()=>{navigator.clipboard.writeText(e.value).then(o)},children:t?O.jsx(l9e,{}):O.jsx(s9e,{})})}function c9e(e){const t=S.useMemo(()=>W0.compressToEncodedURIComponent(JSON.stringify(e.config)),[e.config]),r=`${IC(window.location.href).basePath}/c/${t}`,o=`${r}/playground`,a=`${r}/invoke`,i=` +from langserve import RemoteRunnable + +chain = RemoteRunnable("${r}") +chain.invoke({ ... }) +`,s=` +import { RemoteRunnable } from "langchain/runnables/remote"; + +const chain = new RemoteRunnable({ url: \`${a}\` }); +const result = await chain.invoke({ ... }); +`;return O.jsxs(gf.Root,{children:[O.jsx(gf.Trigger,{asChild:!0,children:e.children}),O.jsxs(gf.Portal,{children:[O.jsx(gf.Overlay,{className:"fixed inset-0 bg-black/40"}),O.jsx(gf.Content,{className:"flex justify-center items-center mt-24 fixed bottom-0 left-0 right-0 text-ls-black !pointer-events-none after:!bg-background",children:O.jsxs("div",{className:"p-4 bg-background max-w-[calc(800px-2rem)] rounded-t-2xl border border-divider-500 border-b-background pointer-events-auto",children:[O.jsx("h3",{className:"text-xl font-medium",children:"Share"}),O.jsx("hr",{className:"border-divider-500 my-4 -mx-4"}),O.jsxs("div",{className:"flex flex-col gap-3",children:[o.lengthS.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.7588 2H16.2414C17.0464 1.99999 17.7107 1.99998 18.2519 2.04419C18.814 2.09012 19.3307 2.18868 19.8161 2.43597C20.5687 2.81947 21.1806 3.43139 21.5641 4.18404C21.8114 4.66937 21.91 5.18608 21.9559 5.74817C22.0001 6.28936 22.0001 6.95372 22.0001 7.75868V13.2413C22.0001 14.0463 22.0001 14.7106 21.9559 15.2518C21.91 15.8139 21.8114 16.3306 21.5641 16.816C21.1806 17.5686 20.5687 18.1805 19.8161 18.564C19.3307 18.8113 18.814 18.9099 18.2519 18.9558C17.7107 19 17.0464 19 16.2414 19H13.6838C13.0197 19 12.8263 19.0047 12.6504 19.0408C12.4738 19.0771 12.303 19.137 12.1425 19.219C11.9826 19.3007 11.8286 19.4178 11.31 19.8327L8.89688 21.7632C8.7132 21.9102 8.52597 22.06 8.36137 22.1689C8.20394 22.273 7.8987 22.4593 7.50172 22.4597C7.0449 22.4602 6.61276 22.2525 6.32778 21.8955C6.08012 21.5852 6.03492 21.2305 6.01785 21.0425C6 20.846 6.00005 20.6062 6.00009 20.371L6.0001 18.9918C5.60829 18.9789 5.27229 18.9461 4.96482 18.8637C3.58445 18.4938 2.50626 17.4156 2.13639 16.0353C1.9993 15.5236 1.99962 14.933 2.00005 14.1376C2.00007 14.0924 2.0001 14.0465 2.0001 14L2.0001 7.7587C2.00008 6.95373 2.00007 6.28937 2.04429 5.74817C2.09022 5.18608 2.18878 4.66937 2.43607 4.18404C2.81956 3.43139 3.43149 2.81947 4.18413 2.43597C4.66947 2.18868 5.18617 2.09012 5.74827 2.04419C6.28947 1.99998 6.95383 1.99999 7.7588 2ZM5.91113 4.03755C5.47272 4.07337 5.24852 4.1383 5.09212 4.21799C4.71579 4.40973 4.40983 4.7157 4.21808 5.09202C4.13839 5.24842 4.07347 5.47262 4.03765 5.91104C4.00087 6.36113 4.0001 6.94342 4.0001 7.8V14C4.0001 14.9944 4.00869 15.2954 4.06824 15.5176C4.25318 16.2078 4.79227 16.7469 5.48246 16.9319C5.70474 16.9914 6.00574 17 7.0001 17C7.55238 17 8.0001 17.4477 8.0001 18V19.9194L10.0606 18.271C10.0834 18.2528 10.1058 18.2348 10.1279 18.2171C10.55 17.8791 10.8691 17.6237 11.2326 17.4379C11.5536 17.274 11.8952 17.1541 12.2483 17.0817C12.6482 16.9996 13.0569 16.9998 13.5976 17C13.626 17 13.6547 17 13.6838 17H16.2001C17.0567 17 17.639 16.9992 18.0891 16.9624C18.5275 16.9266 18.7517 16.8617 18.9081 16.782C19.2844 16.5903 19.5904 16.2843 19.7821 15.908C19.8618 15.7516 19.9267 15.5274 19.9625 15.089C19.9993 14.6389 20.0001 14.0566 20.0001 13.2V7.8C20.0001 6.94342 19.9993 6.36113 19.9625 5.91104C19.9267 5.47262 19.8618 5.24842 19.7821 5.09202C19.5904 4.7157 19.2844 4.40973 18.9081 4.21799C18.7517 4.1383 18.5275 4.07337 18.0891 4.03755C17.639 4.00078 17.0567 4 16.2001 4H7.8001C6.94352 4 6.36122 4.00078 5.91113 4.03755Z",fill:"currentColor"}));function d9e(e){return typeof e=="object"&&e!=null}function Wg(e,t){const n=Array.isArray(t)?t:[t];let r=e;for(;n.length>0;){const o=n.shift();if(o!=="")if(Array.isArray(r))r=r[+o];else if(d9e(r))r=r[o];else return}return r}function K0(e){return!(!("extra"in e&&typeof e.extra=="object"&&e.extra!=null)||!("widget"in e.extra&&typeof e.extra.widget=="object"&&e.extra.widget!=null))}function f9e(e){const t=e+"CollectionProvider",[n,r]=G0(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=m=>{const{scope:b,children:v}=m,x=M.useRef(null),g=M.useRef(new Map).current;return M.createElement(o,{scope:b,itemMap:g,collectionRef:x},v)},s=e+"CollectionSlot",l=M.forwardRef((m,b)=>{const{scope:v,children:x}=m,g=a(s,v),y=ns(b,g.collectionRef);return M.createElement(Np,{ref:y},x)}),c=e+"CollectionItemSlot",u="data-radix-collection-item",f=M.forwardRef((m,b)=>{const{scope:v,children:x,...g}=m,y=M.useRef(null),w=ns(b,y),C=a(c,v);return M.useEffect(()=>(C.itemMap.set(y,{ref:y,...g}),()=>void C.itemMap.delete(y))),M.createElement(Np,{[u]:"",ref:w},x)});function p(m){const b=a(e+"CollectionConsumer",m);return M.useCallback(()=>{const x=b.collectionRef.current;if(!x)return[];const g=Array.from(x.querySelectorAll(`[${u}]`));return Array.from(b.itemMap.values()).sort((C,_)=>g.indexOf(C.ref.current)-g.indexOf(_.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:i,Slot:l,ItemSlot:f},p,r]}const p9e=S.createContext(void 0);function G9(e){const t=S.useContext(p9e);return e||t||"ltr"}const Vx="rovingFocusGroup.onEntryFocus",h9e={bubbles:!1,cancelable:!0},uE="RovingFocusGroup",[AC,q9,m9e]=f9e(uE),[v9e,Y9]=G0(uE,[m9e]),[g9e,y9e]=v9e(uE),b9e=S.forwardRef((e,t)=>S.createElement(AC.Provider,{scope:e.__scopeRovingFocusGroup},S.createElement(AC.Slot,{scope:e.__scopeRovingFocusGroup},S.createElement(x9e,T({},e,{ref:t}))))),x9e=S.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,...u}=e,f=S.useRef(null),p=ns(t,f),m=G9(a),[b=null,v]=Ch({prop:i,defaultProp:s,onChange:l}),[x,g]=S.useState(!1),y=Qs(c),w=q9(n),C=S.useRef(!1),[_,$]=S.useState(0);return S.useEffect(()=>{const E=f.current;if(E)return E.addEventListener(Vx,y),()=>E.removeEventListener(Vx,y)},[y]),S.createElement(g9e,{scope:n,orientation:r,dir:m,loop:o,currentTabStopId:b,onItemFocus:S.useCallback(E=>v(E),[v]),onItemShiftTab:S.useCallback(()=>g(!0),[]),onFocusableItemAdd:S.useCallback(()=>$(E=>E+1),[]),onFocusableItemRemove:S.useCallback(()=>$(E=>E-1),[])},S.createElement(Ko.div,T({tabIndex:x||_===0?-1:0,"data-orientation":r},u,{ref:p,style:{outline:"none",...e.style},onMouseDown:oo(e.onMouseDown,()=>{C.current=!0}),onFocus:oo(e.onFocus,E=>{const k=!C.current;if(E.target===E.currentTarget&&k&&!x){const I=new CustomEvent(Vx,h9e);if(E.currentTarget.dispatchEvent(I),!I.defaultPrevented){const R=w().filter(z=>z.focusable),F=R.find(z=>z.active),U=R.find(z=>z.id===b),B=[F,U,...R].filter(Boolean).map(z=>z.ref.current);K9(B)}}C.current=!1}),onBlur:oo(e.onBlur,()=>g(!1))})))}),w9e="RovingFocusGroupItem",C9e=S.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...i}=e,s=jv(),l=a||s,c=y9e(w9e,n),u=c.currentTabStopId===l,f=q9(n),{onFocusableItemAdd:p,onFocusableItemRemove:m}=c;return S.useEffect(()=>{if(r)return p(),()=>m()},[r,p,m]),S.createElement(AC.ItemSlot,{scope:n,id:l,focusable:r,active:o},S.createElement(Ko.span,T({tabIndex:u?0:-1,"data-orientation":c.orientation},i,{ref:t,onMouseDown:oo(e.onMouseDown,b=>{r?c.onItemFocus(l):b.preventDefault()}),onFocus:oo(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:oo(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){c.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const v=_9e(b,c.orientation,c.dir);if(v!==void 0){b.preventDefault();let g=f().filter(y=>y.focusable).map(y=>y.ref.current);if(v==="last")g.reverse();else if(v==="prev"||v==="next"){v==="prev"&&g.reverse();const y=g.indexOf(b.currentTarget);g=c.loop?E9e(g,y+1):g.slice(y+1)}setTimeout(()=>K9(g))}})})))}),$9e={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function S9e(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function _9e(e,t,n){const r=S9e(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return $9e[r]}function K9(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function E9e(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const P9e=b9e,T9e=C9e,k9e=S.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r=!1,onPressedChange:o,...a}=e,[i=!1,s]=Ch({prop:n,onChange:o,defaultProp:r});return S.createElement(Ko.button,T({type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0},a,{ref:t,onClick:oo(e.onClick,()=>{e.disabled||s(!i)})}))}),J0="ToggleGroup",[J9,o8e]=G0(J0,[Y9]),Z9=Y9(),O9e=M.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return M.createElement(R9e,T({},o,{ref:t}))}if(n==="multiple"){const o=r;return M.createElement(D9e,T({},o,{ref:t}))}throw new Error(`Missing prop \`type\` expected on \`${J0}\``)}),[X9,Q9]=J9(J0),R9e=M.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,s]=Ch({prop:n,defaultProp:r,onChange:o});return M.createElement(X9,{scope:e.__scopeToggleGroup,type:"single",value:i?[i]:[],onItemActivate:s,onItemDeactivate:M.useCallback(()=>s(""),[s])},M.createElement(e8,T({},a,{ref:t})))}),D9e=M.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i=[],s]=Ch({prop:n,defaultProp:r,onChange:o}),l=M.useCallback(u=>s((f=[])=>[...f,u]),[s]),c=M.useCallback(u=>s((f=[])=>f.filter(p=>p!==u)),[s]);return M.createElement(X9,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:l,onItemDeactivate:c},M.createElement(e8,T({},a,{ref:t})))}),[M9e,I9e]=J9(J0),e8=M.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:s=!0,...l}=e,c=Z9(n),u=G9(i),f={role:"group",dir:u,...l};return M.createElement(M9e,{scope:n,rovingFocus:o,disabled:r},o?M.createElement(P9e,T({asChild:!0},c,{orientation:a,dir:u,loop:s}),M.createElement(Ko.div,T({},f,{ref:t}))):M.createElement(Ko.div,T({},f,{ref:t})))}),NC="ToggleGroupItem",A9e=M.forwardRef((e,t)=>{const n=Q9(NC,e.__scopeToggleGroup),r=I9e(NC,e.__scopeToggleGroup),o=Z9(e.__scopeToggleGroup),a=n.value.includes(e.value),i=r.disabled||e.disabled,s={...e,pressed:a,disabled:i},l=M.useRef(null);return r.rovingFocus?M.createElement(T9e,T({asChild:!0},o,{focusable:!i,active:a,ref:l}),M.createElement(qM,T({},s,{ref:t}))):M.createElement(qM,T({},s,{ref:t}))}),qM=M.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=Q9(NC,n),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s=a.type==="single"?i:void 0;return M.createElement(k9e,T({},s,o,{ref:t,onPressedChange:l=>{l?a.onItemActivate(r):a.onItemDeactivate(r)}}))}),N9e=O9e,YM=A9e,j9e=mn(12,Cn(Ga,qr(e=>{var t,n;return e.type!=="array"||typeof e.items!="object"||e.items==null?!1:"type"in e.items&&e.items.type!=null&&e.items.title!=null?e.items.type==="object"&&(((t=e.items.title)==null?void 0:t.endsWith("Message"))||((n=e.items.title)==null?void 0:n.endsWith("MessageChunk"))):"anyOf"in e.items&&e.items.anyOf!=null?e.items.anyOf.every(r=>{var i,s;const o=r.type==="object"&&(((i=r.title)==null?void 0:i.endsWith("Message"))||((s=r.title)==null?void 0:s.endsWith("MessageChunk"))),a=r.type==="array"&&r.minItems===2&&r.maxItems===2&&Array.isArray(r.items)&&r.items.length===2&&r.items.every(l=>l.type==="string");return o||a}):!1})));function KM(e){return!(typeof e!="object"||e==null||!("content"in e)||typeof e.content!="string"||"additional_kwargs"in e&&typeof e.additional_kwargs!="object"&&e.additional_kwargs!=null||"name"in e&&typeof e.name!="string"&&e.name!=null||"type"in e&&typeof e.type!="string"&&e.type!=null||"role"in e&&typeof e.role!="string"&&e.role!=null)}function JM(e,t){return typeof e=="string"?[{content:e,type:t}]:KM(e)?[e]:Array.isArray(e)&&e.every(KM)?e:null}function ZM(e){return!(typeof e!="object"||e==null||!("name"in e)||typeof e.name!="string"||!("arguments"in e)||typeof e.arguments!="string")}const L9e=lo(e=>{const t=e.data??[];return c9("onSuccess",n=>{if(!K0(e.schema))return;const r=e.schema.extra.widget;if(!("input"in r)&&!("output"in r))return;const o=Wg(n.input,r.input??""),a=Wg(n.output,r.output??""),i=JM(o,"human"),s=JM(a,"ai");let l;i!=null&&(l??(l=[...t]),l.push(...i)),s!=null&&(l??(l=[...t]),l.push(...s)),l!=null&&e.handleChange(e.path,l)}),O.jsxs("div",{className:"control",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("label",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:e.label||"Messages"}),O.jsx("button",{className:"p-1 rounded-full",onClick:()=>{const n=t.length?t[t.length-1].type:"ai";e.handleChange(e.path,[...t,{content:"",type:n==="human"?"ai":"human"}])},children:O.jsx(aE,{className:"w-5 h-5"})})]}),O.jsx("div",{className:"flex flex-col gap-3 mt-1 empty:hidden",children:t.map((n,r)=>{var s,l,c,u,f;const o=ir.compose(e.path,`${r}`),a=n.type??"chat",i=ZM((s=n.additional_kwargs)==null?void 0:s.function_call);return O.jsxs("div",{className:"control group",children:[O.jsxs("div",{className:"flex items-start justify-between gap-2",children:[O.jsxs("select",{className:"-ml-1 min-w-[100px]",value:a,onChange:p=>{e.handleChange(ir.compose(o,"type"),p.target.value)},children:[O.jsx("option",{value:"human",children:"Human"}),O.jsx("option",{value:"ai",children:"AI"}),O.jsx("option",{value:"system",children:"System"}),O.jsx("option",{value:"function",children:"Function"}),O.jsx("option",{value:"chat",children:"Chat"})]}),O.jsxs("div",{className:"flex items-center gap-2",children:[n.type==="ai"&&O.jsxs(N9e,{type:"single","aria-label":"Message Type",className:"opacity-0 transition-opacity group-focus-within:opacity-100 group-hover:opacity-100",value:i?"function":"text",onValueChange:p=>{switch(p){case"function":{e.handleChange(ir.compose(o,"additional_kwargs"),{function_call:{name:"",arguments:"{}"}});break}case"text":{e.handleChange(ir.compose(o,"additional_kwargs"),{});break}}},children:[O.jsx(YM,{className:"rounded-s border border-divider-700 px-2.5 py-1 data-[state=on]:bg-divider-500/50",value:"text","aria-label":"Text message",children:O.jsx(u9e,{className:"w-4 h-4"})}),O.jsx(YM,{className:"rounded-e border border-l-0 border-divider-700 px-2.5 py-1 data-[state=on]:bg-divider-500/50",value:"function","aria-label":"Function call",children:O.jsx(H9,{className:"w-4 h-4"})})]}),O.jsx("button",{className:"p-1 border rounded opacity-0 transition-opacity border-divider-700 group-focus-within:opacity-100 group-hover:opacity-100",onClick:()=>{e.handleChange(e.path,t.filter((p,m)=>m!==r))},children:O.jsx(oE,{className:"w-4 h-4"})})]})]}),a==="chat"&&O.jsx("input",{className:"mb-1",placeholder:"Role",value:n.role??"",onChange:p=>{e.handleChange(ir.compose(o,"role"),p.target.value)}}),a==="function"&&O.jsx("input",{className:"mb-1",placeholder:"Function Name",value:n.name??"",onChange:p=>{e.handleChange(ir.compose(o,"name"),p.target.value)}}),a==="ai"&&ZM((l=n.additional_kwargs)==null?void 0:l.function_call)?O.jsxs(O.Fragment,{children:[O.jsx("input",{className:"mb-1",placeholder:"Function Name",value:((c=n.additional_kwargs)==null?void 0:c.function_call.name)??"",onChange:p=>{console.log(ir.compose(o,"additional_kwargs.function_call.name")),e.handleChange(ir.compose(o,"additional_kwargs.function_call.name"),p.target.value)}}),O.jsx(Xu,{value:((f=(u=n.additional_kwargs)==null?void 0:u.function_call)==null?void 0:f.arguments)??"",onChange:p=>{e.handleChange(ir.compose(o,"additional_kwargs.function_call.arguments"),p)}})]}):O.jsx(Xu,{value:n.content,onChange:p=>{e.handleChange(ir.compose(o,"content"),p)}})]},r)})})]})}),F9e=mn(12,Cn(Ga,qr(e=>e.type!=="array"||typeof e.items!="object"||e.items==null||!K0(e)||e.extra.widget.type!=="chat"?!1:"type"in e.items?e.items.type==="array"&&e.items.minItems===2&&e.items.maxItems===2&&Array.isArray(e.items.items)&&e.items.items.length===2&&e.items.items.every(t=>t.type==="string"):!1))),z9e=lo(e=>{const t=e.data??[];return c9("onSuccess",n=>{if(!K0(e.schema))return;const r=e.schema.extra.widget;if(!("input"in r)&&!("output"in r))return;const o=Wg(n.input,r.input??""),a=Wg(n.output,r.output??"");e.handleChange(e.path,[...t,[o,a]])}),O.jsxs("div",{className:"control",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("label",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:e.label||"Messages"}),O.jsx("button",{className:"p-1 rounded-full",onClick:()=>e.handleChange(e.path,[...t,["",""]]),children:O.jsx(aE,{className:"w-5 h-5"})})]}),O.jsx("div",{className:"flex flex-col gap-3 mt-1 empty:hidden",children:t.map(([n,r],o)=>{const a=ir.compose(e.path,`${o}`);return O.jsxs("div",{className:"control group relative",children:[O.jsxs("div",{className:"grid gap-3",children:[O.jsxs("div",{className:"flex-grow",children:[O.jsx("div",{className:"flex items-start justify-between gap-2",children:O.jsx("div",{className:"text-xs uppercase font-semibold text-ls-gray-100 mb-1 ",children:"Human"})}),O.jsx(Xu,{value:n,onChange:i=>{e.handleChange(ir.compose(a,"0"),i)}})]}),O.jsx("div",{className:"flex-shrink-0 h-px bg-divider-700"}),O.jsxs("div",{className:"flex-grow",children:[O.jsx("div",{className:"flex items-start justify-between gap-2",children:O.jsx("div",{className:"text-xs uppercase font-semibold text-ls-gray-100 mb-1 ",children:"AI"})}),O.jsx(Xu,{value:r,onChange:i=>{e.handleChange(ir.compose(a,"1"),i)}})]})]}),O.jsx("button",{className:"absolute right-3 top-3 p-1 border rounded opacity-0 transition-opacity border-divider-700 group-focus-within:opacity-100 group-hover:opacity-100",onClick:()=>{e.handleChange(e.path,t.filter((i,s)=>s!==o))},children:O.jsx(oE,{className:"w-4 h-4"})})]},o)})})]})}),B9e=mn(12,Cn(Ga,qr(e=>K0(e)?e.extra.widget.type==="base64file":!1))),V9e=lo(e=>{const t=n=>{var a;const r=(a=n.target.files)==null?void 0:a[0];if(!r)return;const o=new FileReader;o.onload=()=>{const i=o.result;if(i!=null){const s=i.indexOf("base64,")+7;e.handleChange(e.path,i.slice(s))}},o.readAsDataURL(r)};return O.jsxs("div",{className:"control",children:[O.jsx("label",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:e.label}),O.jsx("input",{type:"file",onChange:t})]})}),U9e=e=>S.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.29289 5.29289C8.68342 4.90237 9.31658 4.90237 9.70711 5.29289L15.7071 11.2929C16.0976 11.6834 16.0976 12.3166 15.7071 12.7071L9.70711 18.7071C9.31658 19.0976 8.68342 19.0976 8.29289 18.7071C7.90237 18.3166 7.90237 17.6834 8.29289 17.2929L13.5858 12L8.29289 6.70711C7.90237 6.31658 7.90237 5.68342 8.29289 5.29289Z",fill:"currentColor"}));function t8(e){return typeof e=="object"?JSON.stringify(e,null,2):e}function W9e(e){const[t,n]=S.useState(!1),r=Object.values(e.latest.logs).length,o=r===0;return O.jsxs("div",{className:"flex flex-col border border-divider-700 rounded-2xl bg-background",children:[O.jsxs("button",{className:"font-medium text-left p-4 flex items-center justify-between",disabled:o,onClick:()=>n(a=>!a),children:[O.jsxs("span",{children:["Intermediate steps"," ",O.jsx("span",{className:"bg-ls-gray-400 text-ls-gray-100 text-sm px-1 py-0.5 rounded-md ml-1",children:r})]}),O.jsx(U9e,{className:Ys("transition-all",t&&"rotate-90",o&&"opacity-20")})]}),t&&O.jsx("div",{className:"flex flex-col gap-5 p-4 pt-0 divide-solid divide-y divide-divider-700 rounded-b-xl",children:Object.values(e.latest.logs).map(a=>O.jsxs("div",{className:"gap-3 flex-col min-w-0 flex bg-background pt-3 first-of-type:pt-0",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("strong",{className:"text-sm font-medium",children:a.name}),O.jsx("p",{className:"text-sm",children:br.utc(a.start_time).fromNow()})]}),O.jsx("pre",{className:"break-words whitespace-pre-wrap min-w-0 text-sm bg-ls-gray-400 rounded-lg p-3",children:t8(a.final_output)??"..."})]},a.id))})]})}class Hg{constructor(t){Ud(this,"content");Ud(this,"name");Ud(this,"additional_kwargs");t.additional_kwargs||(t.additional_kwargs={}),this.name=t.name,this.content=t.content,this.additional_kwargs=t.additional_kwargs}static _mergeAdditionalKwargs(t,n){const r={...t};for(const[o,a]of Object.entries(n))if(r[o]===void 0)r[o]=a;else{if(typeof r[o]!=typeof a)throw new Error(`additional_kwargs[${o}] already exists in the message chunk, but with a different type.`);if(typeof r[o]=="string")r[o]=r[o]+a;else if(!Array.isArray(r[o])&&typeof r[o]=="object")r[o]=this._mergeAdditionalKwargs(r[o],a);else throw new Error(`additional_kwargs[${o}] already exists in this message chunk.`)}return r}concat(t){return new Hg({content:this.content+t.content,additional_kwargs:Hg._mergeAdditionalKwargs(this.additional_kwargs,t.additional_kwargs)})}}function H9e(e){return typeof e!="object"||e==null?!1:"content"in e&&typeof e.content=="string"}function G9e(e){return e.length>0&&e.every(t=>H9e(t))}function q9e(e){var t;if(G9e(e.streamed)){const n=e.streamed.reduce((o,a)=>{const i=new Hg(a);return o==null?i:o.concat(i)},null),r=(t=n==null?void 0:n.additional_kwargs)==null?void 0:t.function_call;return(n==null?void 0:n.content)||!!r&&JSON.stringify(r,null,2)||"..."}return e.streamed.map(t8).join("")||"..."}const Y9e=z5(e=>{const t=Dy(e.schema.anyOf,e.rootSchema,"anyOf",e.uischema,e.path,e.uischemas),n=t.length-1,r=t[n];return O.jsx(Po,{schema:r.schema,uischema:r.uischema,path:e.path,renderers:jC,cells:LC})}),K9e=mn(3,JN);br.extend(L4e);br.extend(N4e);const J9e=mn(2,Cn(Sn("Control"),qa("object"),qr(e=>Object.prototype.hasOwnProperty.call(e,"properties")))),Z9e=mn(1,Cn(Sn("Control"),qa("object"))),X9e=mn(1,Cn(Sn("Control"))),jC=[...O5e,{tester:J9e,renderer:j3e},{tester:i3e,renderer:s3e},{tester:F3e,renderer:z3e},{tester:K9e,renderer:Y9e},{tester:$je,renderer:f9},{tester:Z9e,renderer:e9},{tester:j9e,renderer:L9e},{tester:F9e,renderer:z9e},{tester:B9e,renderer:V9e}],Q9e=mn(1,(e,t)=>t.type==="array"),LC=[{tester:fNe,cell:pNe},{tester:mNe,cell:vNe},{tester:yNe,cell:bNe},{tester:wNe,cell:CNe},{tester:_Ne,cell:ENe},{tester:kNe,cell:ONe},{tester:MNe,cell:INe},{tester:LNe,cell:RM},{tester:NNe,cell:RM},{tester:BNe,cell:VNe},{tester:Q9e,cell:f9},{tester:X9e,cell:n6e}];function e8e(){var v,x,g,y,w,C;const[e]=S.useState(()=>window.self!==window.top),t=S.useRef(null),[n,r]=S.useState({data:{},errors:[],defaults:!0}),[o,a]=S.useState({data:null,errors:[]}),i=A5e(n);S.useEffect(()=>{if(i.config){const _=IC(window.location.href);r({data:_.configFromUrl??t.current??Rm(i.config),errors:[],defaults:!0}),a({data:Rm(i.input),errors:[]})}},[i.config]);const s=S.useRef({onStart:[],onSuccess:[],onError:[]}),{startStream:l,stopStream:c,latest:u}=ije({onStart(..._){for(const $ of s.current.onStart)$(..._)},onSuccess(..._){for(const $ of s.current.onSuccess)$(..._)},onError(..._){for(const $ of s.current.onError)$(..._)}});S.useEffect(()=>{var _;(_=window.parent)==null||_.postMessage({type:"init"},"*")},[]),S.useEffect(()=>{function _($){if($.source===window.parent){const E=$.data;if(typeof E=="object"&&E!=null)switch(E.type){case"update":{const k=E.value;if(Object.keys(k.config).length>0){t.current=k.config,r({data:k.config,errors:[],defaults:!1});break}}}}}return window.addEventListener("message",_),()=>window.removeEventListener("message",_)},[]);const f=S.useMemo(()=>i.input?JSON.stringify(Rm(i.input))!==JSON.stringify(o.data):!1,[i.input,o.data]);function p(){var _,$;!c&&((_=o.errors)!=null&&_.length||($=n.errors)!=null&&$.length)||(c?c():l(o.data,n.data))}const m=S.useRef(null);m.current=p,S.useEffect(()=>{window.addEventListener("keydown",_=>{var $;_.key==="Enter"&&(_.metaKey||_.ctrlKey)&&(_.preventDefault(),($=m.current)==null||$.call(m))})},[]);const b=!c&&(!!((v=o.errors)!=null&&v.length)||!!((x=n.errors)!=null&&x.length));return!i.config||!i.input?O.jsx(O.Fragment,{}):O.jsx(l9.Provider,{value:s,children:O.jsx("div",{className:"flex items-center flex-col text-ls-black bg-gradient-to-b from-[#F9FAFB] to-[#EFF8FF] min-h-[100dvh] dark:from-[#0C111C] dark:to-[#0C111C]",children:O.jsxs("div",{className:"flex flex-col flex-grow gap-4 px-4 pt-6 max-w-[800px] w-full",children:[O.jsxs("h1",{className:"text-2xl text-left",children:[O.jsx("strong",{children:"🦜 LangServe"})," Playground"]}),Object.keys(i.config).length>0&&O.jsxs("div",{className:"flex flex-col gap-3 [&:has(.content>.vertical-layout:first-child:last-child:empty)]:hidden",children:[!e&&O.jsx("h2",{className:"text-xl font-semibold",children:"Configure"}),O.jsxs("div",{className:"content flex flex-col gap-3",children:[O.jsx(wR,{schema:i.config,data:n.data,renderers:jC,cells:LC,onChange:({data:_,errors:$})=>_?r({data:_,errors:$,defaults:!1}):void 0}),!!((g=n.errors)!=null&&g.length)&&n.data&&O.jsx("div",{className:"bg-background rounded-xl",children:O.jsxs("div",{className:"bg-red-500/10 text-red-700 dark:text-red-300 rounded-xl p-3",children:[O.jsx("strong",{className:"font-bold",children:"Validation Errors"}),O.jsx("ul",{className:"list-disc pl-5",children:(y=n.errors)==null?void 0:y.map((_,$)=>O.jsx("li",{children:_.message},$))})]})})]})]}),!e&&O.jsxs("div",{className:"flex flex-col gap-3",children:[O.jsx("h2",{className:"text-xl font-semibold",children:"Try it"}),O.jsxs("div",{className:"p-4 border border-divider-700 flex flex-col gap-3 rounded-2xl bg-background",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("h3",{className:"font-medium",children:"Inputs"}),f&&O.jsx("button",{type:"button",className:"text-sm px-1 -mr-1 py-0.5 rounded-md hover:bg-divider-500/50 active:bg-divider-500 text-ls-gray-100",onClick:()=>a({data:Rm(i.input),errors:[]}),children:"Reset"})]}),O.jsx(wR,{schema:i.input,data:o.data,renderers:jC,cells:LC,onChange:({data:_,errors:$})=>a({data:_,errors:$})}),!!((w=o.errors)!=null&&w.length)&&o.data&&O.jsxs("div",{className:"bg-red-500/10 text-red-700 dark:text-red-300 rounded-xl p-3",children:[O.jsx("strong",{className:"font-bold",children:"Validation Errors"}),O.jsx("ul",{className:"list-disc pl-5",children:(C=o.errors)==null?void 0:C.map((_,$)=>O.jsx("li",{children:_.message},$))})]})]}),u&&O.jsxs("div",{className:"flex flex-col gap-3",children:[O.jsx("h2",{className:"text-xl font-semibold",children:"Output"}),O.jsx("div",{className:"p-4 border border-divider-700 flex flex-col gap-3 rounded-2xl bg-background text-lg whitespace-pre-wrap break-words",children:O.jsx(q9e,{streamed:u.streamed_output})}),O.jsx(W9e,{latest:u})]})]}),O.jsx("div",{className:"flex-grow md:hidden"}),O.jsxs("div",{className:"gap-4 grid grid-cols-2 sticky -mx-4 px-4 py-4 bottom-0 bg-background md:static md:bg-transparent",children:[O.jsx("div",{className:"md:hidden absolute inset-x-0 bottom-full h-5 bg-gradient-to-t from-black/5 to-black/0"}),e?O.jsxs(O.Fragment,{children:[O.jsx("button",{type:"button",className:"px-4 py-3 gap-3 font-medium border border-divider-700 rounded-full flex items-center justify-center hover:bg-divider-500/50 active:bg-divider-500 transition-colors",onClick:()=>{var _;return(_=window.parent)==null?void 0:_.postMessage({type:"close"},"*")},children:"Cancel"}),O.jsx("button",{type:"button",className:"px-4 py-3 gap-3 font-medium border border-transparent rounded-full flex items-center justify-center bg-blue-500 hover:bg-blue-600 active:bg-blue-700 disabled:opacity-50 transition-colors",onClick:()=>{var k;const _=W0.compressToEncodedURIComponent(JSON.stringify(n.data)),E=`${IC(window.location.href).basePath}/c/${_}`;(k=window.parent)==null||k.postMessage({type:"apply",value:{targetUrl:E,config:n.data}},"*")},children:O.jsx("span",{className:"text-white",children:"Apply"})})]}):O.jsxs(O.Fragment,{children:[O.jsx(c9e,{config:n.data,children:O.jsxs("button",{type:"button",className:"px-4 py-3 gap-3 font-medium border border-divider-700 rounded-full flex items-center justify-center hover:bg-divider-500/50 active:bg-divider-500 transition-colors",children:[O.jsx(z4e,{className:"flex-shrink-0"})," ",O.jsx("span",{children:"Share"})]})}),O.jsx("button",{type:"button",className:Ys("px-4 py-3 gap-3 font-medium border border-transparent rounded-full flex items-center justify-center bg-blue-500 disabled:opacity-50 transition-colors",b?"":"hover:bg-blue-600 active:bg-blue-700"),onClick:p,disabled:b,children:c?O.jsxs(O.Fragment,{children:[O.jsxs("div",{role:"status",children:[O.jsxs("svg",{"aria-hidden":"true",className:"w-5 h-5 animate-spin text-white fill-ls-blue",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[O.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),O.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),O.jsx("span",{className:"sr-only",children:"Loading..."})]}),O.jsx("span",{className:"text-white",children:"Stop"})]}):O.jsxs(O.Fragment,{children:[O.jsx(F4e,{className:"flex-shrink-0"}),O.jsx("span",{className:"text-white",children:"Start"})]})})]})]})]})})})}Ux.createRoot(document.getElementById("root")).render(O.jsx(e8e,{})); diff --git a/langserve/playground/dist/assets/index-c6cde0dd.css b/langserve/playground/dist/assets/index-c6cde0dd.css new file mode 100644 index 00000000..b9bff76e --- /dev/null +++ b/langserve/playground/dist/assets/index-c6cde0dd.css @@ -0,0 +1 @@ +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}input,textarea,select{background:transparent}input:focus,textarea:focus,select:focus{box-shadow:none;outline:none}:root{--popover: 0 0% 100%;--background: 0 0% 100%;--divider-500: 210 40% 96.1%;--divider-700: 214.3 31.8% 91.4%;--ls-blue: 211.5 91.8% 61.8%;--ls-black: 222.2 47.4% 11.2%;--ls-gray-100: 215.4 16.3% 46.9%;--ls-gray-200: 212.7 26.8% 83.9%;--ls-gray-300: 214.3 31.8% 91.4%;--ls-gray-400: 210 40% 96.1%}@media (prefers-color-scheme: dark){:root{--popover: 240 11.6% 8.4%;--background: 240 11.6% 8.4%;--divider-500: 217.2 32.6% 17.5%;--divider-700: 215.3 25% 26.7%;--ls-blue: 211.5 91.8% 61.8%;--ls-black: 0 0% 100%;--ls-gray-100: 215 20.2% 65.1%;--ls-gray-200: 215.4 16.3% 46.9%;--ls-gray-300: 215.3 25% 26.7%;--ls-gray-400: 217.2 32.6% 17.5%}}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.\!visible{visibility:visible!important}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.bottom-0{bottom:0}.bottom-full{bottom:100%}.left-0{left:0}.right-0{right:0}.right-3{right:.75rem}.top-3{top:.75rem}.col-\[1\]{grid-column:1}.row-\[1\]{grid-row:1}.m-0{margin:0}.-mx-4{margin-left:-1rem;margin-right:-1rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-ml-1{margin-left:-.25rem}.-mr-1{margin-right:-.25rem}.mb-1{margin-bottom:.25rem}.ml-1{margin-left:.25rem}.mt-1{margin-top:.25rem}.mt-24{margin-top:6rem}.flex{display:flex}.grid{display:grid}.h-10{height:2.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-px{height:1px}.min-h-\[100dvh\]{min-height:100dvh}.w-10{width:2.5rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-full{width:100%}.min-w-0{min-width:0px}.min-w-\[100px\]{min-width:100px}.max-w-\[800px\]{max-width:800px}.max-w-\[calc\(800px-2rem\)\]{max-width:calc(800px - 2rem)}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.list-disc{list-style-type:disc}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-\[1fr\,auto\]{grid-template-columns:1fr auto}.grid-cols-\[auto\,1fr\,auto\]{grid-template-columns:auto 1fr auto}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-solid>:not([hidden])~:not([hidden]){border-style:solid}.divide-divider-700>:not([hidden])~:not([hidden]){border-color:hsl(var(--divider-700))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-b-xl{border-bottom-right-radius:.75rem;border-bottom-left-radius:.75rem}.rounded-e{border-start-end-radius:.25rem;border-end-end-radius:.25rem}.rounded-s{border-start-start-radius:.25rem;border-end-start-radius:.25rem}.rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.border{border-width:1px}.border-l-0{border-left-width:0px}.border-none{border-style:none}.border-divider-500{border-color:hsl(var(--divider-500))}.border-divider-700{border-color:hsl(var(--divider-700))}.border-transparent{border-color:transparent}.border-b-background{border-bottom-color:hsl(var(--background))}.bg-background{background-color:hsl(var(--background))}.bg-black\/40{background-color:#0006}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-divider-700{background-color:hsl(var(--divider-700))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-ls-gray-400{background-color:hsl(var(--ls-gray-400))}.bg-red-500\/10{background-color:#ef44441a}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-\[\#F9FAFB\]{--tw-gradient-from: #F9FAFB var(--tw-gradient-from-position);--tw-gradient-to: rgb(249 250 251 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-black\/5{--tw-gradient-from: rgb(0 0 0 / .05) var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-\[\#EFF8FF\]{--tw-gradient-to: #EFF8FF var(--tw-gradient-to-position)}.to-black\/0{--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position)}.fill-ls-blue{fill:#4499f7}.p-0{padding:0}.p-1{padding:.25rem}.p-3{padding:.75rem}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pl-5{padding-left:1.25rem}.pt-0{padding-top:0}.pt-3{padding-top:.75rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.text-ls-black{color:hsl(var(--ls-black))}.text-ls-gray-100{color:hsl(var(--ls-gray-100))}.text-red-700{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity))}.text-transparent{color:transparent}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.caret-black{caret-color:#000}.opacity-0{opacity:0}.opacity-20{opacity:.2}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.control{position:relative;display:flex;flex-direction:column;gap:.25rem;border-radius:.5rem;border-width:1px;border-color:hsl(var(--divider-700));background-color:hsl(var(--background));padding:.75rem;outline-color:#4499f733;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.control:focus-within{--tw-border-opacity: 1;border-color:hsl(211.5 91.8% 61.8% / var(--tw-border-opacity));outline-style:solid;outline-width:4px;outline-color:#4499f733}.control>label,.control h6{font-size:.75rem;line-height:1rem;font-weight:600;text-transform:uppercase;color:hsl(var(--ls-gray-100))}.control div .MuiGrid-item{padding-top:0}.control>select{margin-left:-.25rem}.control>.input-description,.control>.validation{position:absolute;right:.75rem;top:.75rem;font-size:.75rem;line-height:1rem}.group-layout{display:flex;flex-direction:column;gap:1rem;border-radius:.5rem;border-width:1px;border-color:hsl(var(--divider-700));background-color:hsl(var(--background));padding:1rem}.no-scrollbar{scrollbar-width:none}.no-scrollbar::-webkit-scrollbar{display:none}.vertical-layout{display:flex;flex-direction:column;gap:1rem}.after\:\!bg-background:after{content:var(--tw-content);background-color:hsl(var(--background))!important}.first-of-type\:pt-0:first-of-type{padding-top:0}.empty\:hidden:empty{display:none}.hover\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.hover\:bg-divider-500\/50:hover{background-color:hsl(var(--divider-500) / .5)}.active\:bg-blue-700:active{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.active\:bg-divider-500:active{background-color:hsl(var(--divider-500))}.disabled\:opacity-50:disabled{opacity:.5}.group:focus-within .group-focus-within\:opacity-100{opacity:1}.group:hover .group-hover\:opacity-100{opacity:1}.data-\[state\=on\]\:bg-divider-500\/50[data-state=on]{background-color:hsl(var(--divider-500) / .5)}@media (prefers-color-scheme: dark){.dark\:bg-\[\#111111\]{--tw-bg-opacity: 1;background-color:rgb(17 17 17 / var(--tw-bg-opacity))}.dark\:bg-\[\#2C2C2E\]{--tw-bg-opacity: 1;background-color:rgb(44 44 46 / var(--tw-bg-opacity))}.dark\:from-\[\#0C111C\]{--tw-gradient-from: #0C111C var(--tw-gradient-from-position);--tw-gradient-to: rgb(12 17 28 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:to-\[\#0C111C\]{--tw-gradient-to: #0C111C var(--tw-gradient-to-position)}.dark\:text-red-300{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity))}.dark\:caret-slate-200{caret-color:#e2e8f0}}@media (min-width: 768px){.md\:static{position:static}.md\:hidden{display:none}.md\:bg-transparent{background-color:transparent}}.\[\&\:has\(\.content\>\.vertical-layout\:first-child\:last-child\:empty\)\]\:hidden:has(.content>.vertical-layout:first-child:last-child:empty){display:none} diff --git a/langserve/playground/dist/assets/index-ea49ff70.js b/langserve/playground/dist/assets/index-ea49ff70.js deleted file mode 100644 index e0a812bb..00000000 --- a/langserve/playground/dist/assets/index-ea49ff70.js +++ /dev/null @@ -1,247 +0,0 @@ -var B8=Object.defineProperty;var V8=(e,t,n)=>t in e?B8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Vd=(e,t,n)=>(V8(e,typeof t!="symbol"?t+"":t,n),n);function U8(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 a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();var go=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function W8(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 LM={exports:{}},Bg={},FM={exports:{}},an={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Np=Symbol.for("react.element"),H8=Symbol.for("react.portal"),G8=Symbol.for("react.fragment"),q8=Symbol.for("react.strict_mode"),Y8=Symbol.for("react.profiler"),K8=Symbol.for("react.provider"),J8=Symbol.for("react.context"),Z8=Symbol.for("react.forward_ref"),X8=Symbol.for("react.suspense"),Q8=Symbol.for("react.memo"),ez=Symbol.for("react.lazy"),Z2=Symbol.iterator;function tz(e){return e===null||typeof e!="object"?null:(e=Z2&&e[Z2]||e["@@iterator"],typeof e=="function"?e:null)}var zM={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},BM=Object.assign,VM={};function Zu(e,t,n){this.props=e,this.context=t,this.refs=VM,this.updater=n||zM}Zu.prototype.isReactComponent={};Zu.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Zu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function UM(){}UM.prototype=Zu.prototype;function OC(e,t,n){this.props=e,this.context=t,this.refs=VM,this.updater=n||zM}var RC=OC.prototype=new UM;RC.constructor=OC;BM(RC,Zu.prototype);RC.isPureReactComponent=!0;var X2=Array.isArray,WM=Object.prototype.hasOwnProperty,DC={current:null},HM={key:!0,ref:!0,__self:!0,__source:!0};function GM(e,t,n){var r,o={},a=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(a=""+t.key),t)WM.call(t,r)&&!HM.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1>>1,K=H[L];if(0>>1;Lo(N,X))Vo(Z,N)?(H[L]=Z,H[V]=X,L=V):(H[L]=N,H[R]=X,L=R);else if(Vo(Z,X))H[L]=Z,H[V]=X,L=V;else break e}}return J}function o(H,J){var X=H.sortIndex-J.sortIndex;return X!==0?X:H.id-J.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var l=[],c=[],u=1,f=null,p=3,m=!1,b=!1,v=!1,w=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(H){for(var J=n(c);J!==null;){if(J.callback===null)r(c);else if(J.startTime<=H)r(c),J.sortIndex=J.expirationTime,t(l,J);else break;J=n(c)}}function C(H){if(v=!1,x(H),!b)if(n(l)!==null)b=!0,Y(_);else{var J=n(c);J!==null&&Q(C,J.startTime-H)}}function _(H,J){b=!1,v&&(v=!1,g(k),k=-1),m=!0;var X=p;try{for(x(J),f=n(l);f!==null&&(!(f.expirationTime>J)||H&&!F());){var L=f.callback;if(typeof L=="function"){f.callback=null,p=f.priorityLevel;var K=L(f.expirationTime<=J);J=e.unstable_now(),typeof K=="function"?f.callback=K:f===n(l)&&r(l),x(J)}else r(l);f=n(l)}if(f!==null)var q=!0;else{var R=n(c);R!==null&&Q(C,R.startTime-J),q=!1}return q}finally{f=null,p=X,m=!1}}var $=!1,P=null,k=-1,I=5,D=-1;function F(){return!(e.unstable_now()-DH||125L?(H.sortIndex=X,t(c,H),n(l)===null&&H===n(c)&&(v?(g(k),k=-1):v=!0,Q(C,X-L))):(H.sortIndex=K,t(l,H),b||m||(b=!0,Y(_))),H},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(H){var J=p;return function(){var X=p;p=J;try{return H.apply(this,arguments)}finally{p=X}}}})(JM);KM.exports=JM;var fz=KM.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var ZM=S,Go=fz;function at(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),jx=Object.prototype.hasOwnProperty,pz=/^[: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]*$/,eT={},tT={};function hz(e){return jx.call(tT,e)?!0:jx.call(eT,e)?!1:pz.test(e)?tT[e]=!0:(eT[e]=!0,!1)}function mz(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 vz(e,t,n,r){if(t===null||typeof t>"u"||mz(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 ao(e,t,n,r,o,a,i){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=a,this.removeEmptyString=i}var Ar={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ar[e]=new ao(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ar[t]=new ao(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ar[e]=new ao(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ar[e]=new ao(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){Ar[e]=new ao(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ar[e]=new ao(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ar[e]=new ao(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ar[e]=new ao(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ar[e]=new ao(e,5,!1,e.toLowerCase(),null,!1,!1)});var IC=/[\-:]([a-z])/g;function AC(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(IC,AC);Ar[t]=new ao(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(IC,AC);Ar[t]=new ao(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(IC,AC);Ar[t]=new ao(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ar[e]=new ao(e,1,!1,e.toLowerCase(),null,!1,!1)});Ar.xlinkHref=new ao("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ar[e]=new ao(e,1,!1,e.toLowerCase(),null,!0,!0)});function NC(e,t,n,r){var o=Ar.hasOwnProperty(t)?Ar[t]:null;(o!==null?o.type!==0:r||!(2s||o[i]!==a[s]){var l=` -`+o[i].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=i&&0<=s);break}}}finally{J1=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?gf(e):""}function gz(e){switch(e.tag){case 5:return gf(e.type);case 16:return gf("Lazy");case 13:return gf("Suspense");case 19:return gf("SuspenseList");case 0:case 2:case 15:return e=Z1(e.type,!1),e;case 11:return e=Z1(e.type.render,!1),e;case 1:return e=Z1(e.type,!0),e;default:return""}}function Bx(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 ru:return"Fragment";case nu:return"Portal";case Lx:return"Profiler";case jC:return"StrictMode";case Fx:return"Suspense";case zx:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case eI:return(e.displayName||"Context")+".Consumer";case QM:return(e._context.displayName||"Context")+".Provider";case LC:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case FC:return t=e.displayName||null,t!==null?t:Bx(e.type)||"Memo";case _s:t=e._payload,e=e._init;try{return Bx(e(t))}catch{}}return null}function yz(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 Bx(t);case 8:return t===jC?"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 qs(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function nI(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function bz(e){var t=nI(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,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function pm(e){e._valueTracker||(e._valueTracker=bz(e))}function rI(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=nI(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Nv(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 Vx(e,t){var n=t.checked;return Yn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function rT(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=qs(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 oI(e,t){t=t.checked,t!=null&&NC(e,"checked",t,!1)}function Ux(e,t){oI(e,t);var n=qs(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")?Wx(e,t.type,n):t.hasOwnProperty("defaultValue")&&Wx(e,t.type,qs(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function oT(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 Wx(e,t,n){(t!=="number"||Nv(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var yf=Array.isArray;function yu(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=hm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function tp(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Tf={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},xz=["Webkit","ms","Moz","O"];Object.keys(Tf).forEach(function(e){xz.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Tf[t]=Tf[e]})});function lI(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Tf.hasOwnProperty(e)&&Tf[e]?(""+t).trim():t+"px"}function cI(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=lI(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var wz=Yn({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 qx(e,t){if(t){if(wz[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(at(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(at(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(at(61))}if(t.style!=null&&typeof t.style!="object")throw Error(at(62))}}function Yx(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 Kx=null;function zC(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Jx=null,bu=null,xu=null;function sT(e){if(e=Fp(e)){if(typeof Jx!="function")throw Error(at(280));var t=e.stateNode;t&&(t=Gg(t),Jx(e.stateNode,e.type,t))}}function uI(e){bu?xu?xu.push(e):xu=[e]:bu=e}function dI(){if(bu){var e=bu,t=xu;if(xu=bu=null,sT(e),t)for(e=0;e>>=0,e===0?32:31-(Dz(e)/Mz|0)|0}var mm=64,vm=4194304;function bf(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 zv(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~o;s!==0?r=bf(s):(a&=i,a!==0&&(r=bf(a)))}else i=n&~o,i!==0?r=bf(i):a!==0&&(r=bf(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,a=t&-t,o>=a||o===16&&(a&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 jp(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-za(t),e[t]=n}function jz(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=Of),vT=String.fromCharCode(32),gT=!1;function RI(e,t){switch(e){case"keyup":return d7.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function DI(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ou=!1;function p7(e,t){switch(e){case"compositionend":return DI(t);case"keypress":return t.which!==32?null:(gT=!0,vT);case"textInput":return e=t.data,e===vT&&gT?null:e;default:return null}}function h7(e,t){if(ou)return e==="compositionend"||!YC&&RI(e,t)?(e=kI(),uv=HC=Os=null,ou=!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=wT(n)}}function NI(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?NI(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jI(){for(var e=window,t=Nv();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Nv(e.document)}return t}function KC(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 $7(e){var t=jI(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&NI(n.ownerDocument.documentElement,n)){if(r!==null&&KC(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,a=Math.min(r.start,o);r=r.end===void 0?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=CT(n,a);var i=CT(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.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,au=null,nw=null,Df=null,rw=!1;function $T(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;rw||au==null||au!==Nv(r)||(r=au,"selectionStart"in r&&KC(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}),Df&&sp(Df,r)||(Df=r,r=Uv(nw,"onSelect"),0lu||(e.current=cw[lu],cw[lu]=null,lu--)}function Rn(e,t){lu++,cw[lu]=e.current,e.current=t}var Ys={},Gr=Xs(Ys),bo=Xs(!1),Vl=Ys;function Mu(e,t){var n=e.type.contextTypes;if(!n)return Ys;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in n)o[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function xo(e){return e=e.childContextTypes,e!=null}function Hv(){jn(bo),jn(Gr)}function OT(e,t,n){if(Gr.current!==Ys)throw Error(at(168));Rn(Gr,t),Rn(bo,n)}function GI(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(at(108,yz(e)||"Unknown",o));return Yn({},n,r)}function Gv(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ys,Vl=Gr.current,Rn(Gr,e),Rn(bo,bo.current),!0}function RT(e,t,n){var r=e.stateNode;if(!r)throw Error(at(169));n?(e=GI(e,t,Vl),r.__reactInternalMemoizedMergedChildContext=e,jn(bo),jn(Gr),Rn(Gr,e)):jn(bo),Rn(bo,n)}var zi=null,qg=!1,db=!1;function qI(e){zi===null?zi=[e]:zi.push(e)}function A7(e){qg=!0,qI(e)}function Qs(){if(!db&&zi!==null){db=!0;var e=0,t=wn;try{var n=zi;for(wn=1;e>=i,o-=i,Vi=1<<32-za(t)+o|n<k?(I=P,P=null):I=P.sibling;var D=p(g,P,x[k],C);if(D===null){P===null&&(P=I);break}e&&P&&D.alternate===null&&t(g,P),y=a(D,y,k),$===null?_=D:$.sibling=D,$=D,P=I}if(k===x.length)return n(g,P),Fn&&$l(g,k),_;if(P===null){for(;kk?(I=P,P=null):I=P.sibling;var F=p(g,P,D.value,C);if(F===null){P===null&&(P=I);break}e&&P&&F.alternate===null&&t(g,P),y=a(F,y,k),$===null?_=F:$.sibling=F,$=F,P=I}if(D.done)return n(g,P),Fn&&$l(g,k),_;if(P===null){for(;!D.done;k++,D=x.next())D=f(g,D.value,C),D!==null&&(y=a(D,y,k),$===null?_=D:$.sibling=D,$=D);return Fn&&$l(g,k),_}for(P=r(g,P);!D.done;k++,D=x.next())D=m(P,g,k,D.value,C),D!==null&&(e&&D.alternate!==null&&P.delete(D.key===null?k:D.key),y=a(D,y,k),$===null?_=D:$.sibling=D,$=D);return e&&P.forEach(function(U){return t(g,U)}),Fn&&$l(g,k),_}function w(g,y,x,C){if(typeof x=="object"&&x!==null&&x.type===ru&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case fm:e:{for(var _=x.key,$=y;$!==null;){if($.key===_){if(_=x.type,_===ru){if($.tag===7){n(g,$.sibling),y=o($,x.props.children),y.return=g,g=y;break e}}else if($.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===_s&<(_)===$.type){n(g,$.sibling),y=o($,x.props),y.ref=Yd(g,$,x),y.return=g,g=y;break e}n(g,$);break}else t(g,$);$=$.sibling}x.type===ru?(y=Ll(x.props.children,g.mode,C,x.key),y.return=g,g=y):(C=yv(x.type,x.key,x.props,null,g.mode,C),C.ref=Yd(g,y,x),C.return=g,g=C)}return i(g);case nu:e:{for($=x.key;y!==null;){if(y.key===$)if(y.tag===4&&y.stateNode.containerInfo===x.containerInfo&&y.stateNode.implementation===x.implementation){n(g,y.sibling),y=o(y,x.children||[]),y.return=g,g=y;break e}else{n(g,y);break}else t(g,y);y=y.sibling}y=bb(x,g.mode,C),y.return=g,g=y}return i(g);case _s:return $=x._init,w(g,y,$(x._payload),C)}if(yf(x))return b(g,y,x,C);if(Ud(x))return v(g,y,x,C);$m(g,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,y!==null&&y.tag===6?(n(g,y.sibling),y=o(y,x),y.return=g,g=y):(n(g,y),y=yb(x,g.mode,C),y.return=g,g=y),i(g)):n(g,y)}return w}var Au=tA(!0),nA=tA(!1),zp={},hi=Xs(zp),dp=Xs(zp),fp=Xs(zp);function Il(e){if(e===zp)throw Error(at(174));return e}function o$(e,t){switch(Rn(fp,t),Rn(dp,e),Rn(hi,zp),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Gx(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Gx(t,e)}jn(hi),Rn(hi,t)}function Nu(){jn(hi),jn(dp),jn(fp)}function rA(e){Il(fp.current);var t=Il(hi.current),n=Gx(t,e.type);t!==n&&(Rn(dp,e),Rn(hi,n))}function a$(e){dp.current===e&&(jn(hi),jn(dp))}var Gn=Xs(0);function Xv(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var fb=[];function i$(){for(var e=0;en?n:4,e(!0);var r=pb.transition;pb.transition={};try{e(!1),t()}finally{wn=n,pb.transition=r}}function bA(){return ga().memoizedState}function F7(e,t,n){var r=Vs(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},xA(e))wA(t,n);else if(n=ZI(e,t,n,r),n!==null){var o=ro();Ba(n,e,r,o),CA(n,t,r)}}function z7(e,t,n){var r=Vs(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(xA(e))wA(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,s=a(i,n);if(o.hasEagerState=!0,o.eagerState=s,Ua(s,i)){var l=t.interleaved;l===null?(o.next=o,n$(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=ZI(e,t,o,r),n!==null&&(o=ro(),Ba(n,e,r,o),CA(n,t,r))}}function xA(e){var t=e.alternate;return e===qn||t!==null&&t===qn}function wA(e,t){Mf=Qv=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function CA(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,VC(e,n)}}var eg={readContext:va,useCallback:Lr,useContext:Lr,useEffect:Lr,useImperativeHandle:Lr,useInsertionEffect:Lr,useLayoutEffect:Lr,useMemo:Lr,useReducer:Lr,useRef:Lr,useState:Lr,useDebugValue:Lr,useDeferredValue:Lr,useTransition:Lr,useMutableSource:Lr,useSyncExternalStore:Lr,useId:Lr,unstable_isNewReconciler:!1},B7={readContext:va,useCallback:function(e,t){return ri().memoizedState=[e,t===void 0?null:t],e},useContext:va,useEffect:zT,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,hv(4194308,4,hA.bind(null,t,e),n)},useLayoutEffect:function(e,t){return hv(4194308,4,e,t)},useInsertionEffect:function(e,t){return hv(4,2,e,t)},useMemo:function(e,t){var n=ri();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ri();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=F7.bind(null,qn,e),[r.memoizedState,e]},useRef:function(e){var t=ri();return e={current:e},t.memoizedState=e},useState:FT,useDebugValue:d$,useDeferredValue:function(e){return ri().memoizedState=e},useTransition:function(){var e=FT(!1),t=e[0];return e=L7.bind(null,e[1]),ri().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=qn,o=ri();if(Fn){if(n===void 0)throw Error(at(407));n=n()}else{if(n=t(),Pr===null)throw Error(at(349));Wl&30||iA(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,zT(lA.bind(null,r,a,e),[e]),r.flags|=2048,mp(9,sA.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ri(),t=Pr.identifierPrefix;if(Fn){var n=Ui,r=Vi;n=(r&~(1<<32-za(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=pp++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[si]=t,e[up]=r,RA(e,t,!1,!1),t.stateNode=e;e:{switch(i=Yx(n,r),n){case"dialog":In("cancel",e),In("close",e),o=r;break;case"iframe":case"object":case"embed":In("load",e),o=r;break;case"video":case"audio":for(o=0;oLu&&(t.flags|=128,r=!0,Kd(a,!1),t.lanes=4194304)}else{if(!r)if(e=Xv(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Kd(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!Fn)return Fr(t),null}else 2*ir()-a.renderingStartTime>Lu&&n!==1073741824&&(t.flags|=128,r=!0,Kd(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(n=a.last,n!==null?n.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=ir(),t.sibling=null,n=Gn.current,Rn(Gn,r?n&1|2:n&1),t):(Fr(t),null);case 22:case 23:return g$(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?No&1073741824&&(Fr(t),t.subtreeFlags&6&&(t.flags|=8192)):Fr(t),null;case 24:return null;case 25:return null}throw Error(at(156,t.tag))}function K7(e,t){switch(ZC(t),t.tag){case 1:return xo(t.type)&&Hv(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Nu(),jn(bo),jn(Gr),i$(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return a$(t),null;case 13:if(jn(Gn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(at(340));Iu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return jn(Gn),null;case 4:return Nu(),null;case 10:return t$(t.type._context),null;case 22:case 23:return g$(),null;case 24:return null;default:return null}}var _m=!1,Ur=!1,J7=typeof WeakSet=="function"?WeakSet:Set,bt=null;function fu(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){er(e,t,r)}else n.current=null}function ww(e,t,n){try{n()}catch(r){er(e,t,r)}}var KT=!1;function Z7(e,t){if(ow=Bv,e=jI(),KC(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,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var i=0,s=-1,l=-1,c=0,u=0,f=e,p=null;t:for(;;){for(var m;f!==n||o!==0&&f.nodeType!==3||(s=i+o),f!==a||r!==0&&f.nodeType!==3||(l=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break t;if(p===n&&++c===o&&(s=i),p===a&&++u===r&&(l=i),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(aw={focusedElem:e,selectionRange:n},Bv=!1,bt=t;bt!==null;)if(t=bt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,bt=e;else for(;bt!==null;){t=bt;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var v=b.memoizedProps,w=b.memoizedState,g=t.stateNode,y=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:Ra(t.type,v),w);g.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(at(163))}}catch(C){er(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,bt=e;break}bt=t.return}return b=KT,KT=!1,b}function If(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 a=o.destroy;o.destroy=void 0,a!==void 0&&ww(t,n,a)}o=o.next}while(o!==r)}}function Jg(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 Cw(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 IA(e){var t=e.alternate;t!==null&&(e.alternate=null,IA(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[si],delete t[up],delete t[lw],delete t[M7],delete t[I7])),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 AA(e){return e.tag===5||e.tag===3||e.tag===4}function JT(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||AA(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 $w(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=Wv));else if(r!==4&&(e=e.child,e!==null))for($w(e,t,n),e=e.sibling;e!==null;)$w(e,t,n),e=e.sibling}function Sw(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(Sw(e,t,n),e=e.sibling;e!==null;)Sw(e,t,n),e=e.sibling}var Rr=null,Da=!1;function gs(e,t,n){for(n=n.child;n!==null;)NA(e,t,n),n=n.sibling}function NA(e,t,n){if(pi&&typeof pi.onCommitFiberUnmount=="function")try{pi.onCommitFiberUnmount(Vg,n)}catch{}switch(n.tag){case 5:Ur||fu(n,t);case 6:var r=Rr,o=Da;Rr=null,gs(e,t,n),Rr=r,Da=o,Rr!==null&&(Da?(e=Rr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Rr.removeChild(n.stateNode));break;case 18:Rr!==null&&(Da?(e=Rr,n=n.stateNode,e.nodeType===8?ub(e.parentNode,n):e.nodeType===1&&ub(e,n),ap(e)):ub(Rr,n.stateNode));break;case 4:r=Rr,o=Da,Rr=n.stateNode.containerInfo,Da=!0,gs(e,t,n),Rr=r,Da=o;break;case 0:case 11:case 14:case 15:if(!Ur&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,i!==void 0&&(a&2||a&4)&&ww(n,t,i),o=o.next}while(o!==r)}gs(e,t,n);break;case 1:if(!Ur&&(fu(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){er(n,t,s)}gs(e,t,n);break;case 21:gs(e,t,n);break;case 22:n.mode&1?(Ur=(r=Ur)||n.memoizedState!==null,gs(e,t,n),Ur=r):gs(e,t,n);break;default:gs(e,t,n)}}function ZT(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new J7),t.forEach(function(r){var o=iB.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Pa(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~a}if(r=o,r=ir()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Q7(r/1960))-r,10e?16:e,Rs===null)var r=!1;else{if(e=Rs,Rs=null,rg=0,un&6)throw Error(at(331));var o=un;for(un|=4,bt=e.current;bt!==null;){var a=bt,i=a.child;if(bt.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lir()-m$?jl(e,0):h$|=n),wo(e,t)}function WA(e,t){t===0&&(e.mode&1?(t=vm,vm<<=1,!(vm&130023424)&&(vm=4194304)):t=1);var n=ro();e=Ji(e,t),e!==null&&(jp(e,t,n),wo(e,n))}function aB(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),WA(e,n)}function iB(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(at(314))}r!==null&&r.delete(t),WA(e,n)}var HA;HA=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||bo.current)yo=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return yo=!1,q7(e,t,n);yo=!!(e.flags&131072)}else yo=!1,Fn&&t.flags&1048576&&YI(t,Yv,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;mv(e,t),e=t.pendingProps;var o=Mu(t,Gr.current);Cu(t,n),o=l$(null,t,r,e,o,n);var a=c$();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,xo(r)?(a=!0,Gv(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,r$(t),o.updater=Yg,t.stateNode=o,o._reactInternals=t,hw(t,r,e,n),t=gw(null,t,r,!0,a,n)):(t.tag=0,Fn&&a&&JC(t),to(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(mv(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=lB(r),e=Ra(r,e),o){case 0:t=vw(null,t,r,e,n);break e;case 1:t=GT(null,t,r,e,n);break e;case 11:t=WT(null,t,r,e,n);break e;case 14:t=HT(null,t,r,Ra(r.type,e),n);break e}throw Error(at(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ra(r,o),vw(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ra(r,o),GT(e,t,r,o,n);case 3:e:{if(TA(t),e===null)throw Error(at(387));r=t.pendingProps,a=t.memoizedState,o=a.element,XI(e,t),Zv(t,r,null,n);var i=t.memoizedState;if(r=i.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=ju(Error(at(423)),t),t=qT(e,t,r,n,o);break e}else if(r!==o){o=ju(Error(at(424)),t),t=qT(e,t,r,n,o);break e}else for(Bo=Fs(t.stateNode.containerInfo.firstChild),Wo=t,Fn=!0,Ma=null,n=nA(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Iu(),r===o){t=Zi(e,t,n);break e}to(e,t,r,n)}t=t.child}return t;case 5:return rA(t),e===null&&dw(t),r=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,iw(r,o)?i=null:a!==null&&iw(r,a)&&(t.flags|=32),PA(e,t),to(e,t,i,n),t.child;case 6:return e===null&&dw(t),null;case 13:return kA(e,t,n);case 4:return o$(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Au(t,null,r,n):to(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ra(r,o),WT(e,t,r,o,n);case 7:return to(e,t,t.pendingProps,n),t.child;case 8:return to(e,t,t.pendingProps.children,n),t.child;case 12:return to(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,Rn(Kv,r._currentValue),r._currentValue=i,a!==null)if(Ua(a.value,i)){if(a.children===o.children&&!bo.current){t=Zi(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){i=a.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=Wi(-1,n&-n),l.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),fw(a.return,n,t),s.lanes|=n;break}l=l.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(at(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),fw(i,n,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}to(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Cu(t,n),o=va(o),r=r(o),t.flags|=1,to(e,t,r,n),t.child;case 14:return r=t.type,o=Ra(r,t.pendingProps),o=Ra(r.type,o),HT(e,t,r,o,n);case 15:return _A(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ra(r,o),mv(e,t),t.tag=1,xo(r)?(e=!0,Gv(t)):e=!1,Cu(t,n),eA(t,r,o),hw(t,r,o,n),gw(null,t,r,!0,e,n);case 19:return OA(e,t,n);case 22:return EA(e,t,n)}throw Error(at(156,t.tag))};function GA(e,t){return yI(e,t)}function sB(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 fa(e,t,n,r){return new sB(e,t,n,r)}function b$(e){return e=e.prototype,!(!e||!e.isReactComponent)}function lB(e){if(typeof e=="function")return b$(e)?1:0;if(e!=null){if(e=e.$$typeof,e===LC)return 11;if(e===FC)return 14}return 2}function Us(e,t){var n=e.alternate;return n===null?(n=fa(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 yv(e,t,n,r,o,a){var i=2;if(r=e,typeof e=="function")b$(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case ru:return Ll(n.children,o,a,t);case jC:i=8,o|=8;break;case Lx:return e=fa(12,n,t,o|2),e.elementType=Lx,e.lanes=a,e;case Fx:return e=fa(13,n,t,o),e.elementType=Fx,e.lanes=a,e;case zx:return e=fa(19,n,t,o),e.elementType=zx,e.lanes=a,e;case tI:return Xg(n,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case QM:i=10;break e;case eI:i=9;break e;case LC:i=11;break e;case FC:i=14;break e;case _s:i=16,r=null;break e}throw Error(at(130,e==null?e:typeof e,""))}return t=fa(i,n,t,o),t.elementType=e,t.type=r,t.lanes=a,t}function Ll(e,t,n,r){return e=fa(7,e,r,t),e.lanes=n,e}function Xg(e,t,n,r){return e=fa(22,e,r,t),e.elementType=tI,e.lanes=n,e.stateNode={isHidden:!1},e}function yb(e,t,n){return e=fa(6,e,null,t),e.lanes=n,e}function bb(e,t,n){return t=fa(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function cB(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=Q1(0),this.expirationTimes=Q1(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Q1(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function x$(e,t,n,r,o,a,i,s,l){return e=new cB(e,t,n,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=fa(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},r$(a),e}function uB(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(JA)}catch(e){console.error(e)}}JA(),YM.exports=Yo;var ed=YM.exports;const wf=Bt(ed);var ak=ed;Nx.createRoot=ak.createRoot,Nx.hydrateRoot=ak.hydrateRoot;const ig=e=>typeof e=="object"&&e!==null&&e.toString()==={}.toString(),ry=e=>JSON.parse(JSON.stringify(e)),S$=(e,t)=>{e=ry(e);for(const n in t)if(t.hasOwnProperty(n)){const r=t[n],o=e[n];ig(r)&&ig(o)?e[n]=S$(o,r):e[n]=r}return e},ZA=function(e,t){const n=e.replace(/^#\/definitions\//,"").split("/"),r=function(a,i){const s=a.shift();return s?i[s]?a.length?r(a,i[s]):i[s]:{}:{}},o=r(n,t);return ig(o)?ry(o):o},mB=function(e,t){const n=e.length;let r=-1,o={};for(;++r{if(typeof e.default<"u")return e.default;if(typeof e.allOf<"u"){const n=mB(e.allOf,t);return Jc(n,t)}else if(typeof e.$ref<"u"){const n=ZA(e.$ref,t);return Jc(n,t)}else if(e.type==="object"){if(!e.properties)return{};for(const n in e.properties)e.properties.hasOwnProperty(n)&&(e.properties[n]=Jc(e.properties[n],t),typeof e.properties[n]>"u"&&delete e.properties[n]);return e.properties}else if(e.type==="array"){if(!e.items)return[];const n=e.minItems||0;if(e.items.constructor===Array){const o=e.items.map(a=>Jc(a,t));for(let a=o.length-1;a>=0&&!(typeof o[a]<"u");a--)a+1>n&&o.pop();return o.every(a=>typeof a>"u")?void 0:o}const r=Jc(e.items,t);if(typeof r>"u")return[];{const o=[];for(let a=0;a"u"?t=e.definitions||{}:ig(e.definitions)&&(t=S$(t,e.definitions)),Jc(ry(e),t)}var vB=typeof go=="object"&&go&&go.Object===Object&&go,XA=vB,gB=XA,yB=typeof self=="object"&&self&&self.Object===Object&&self,bB=gB||yB||Function("return this")(),io=bB,xB=io,wB=xB.Symbol,td=wB,ik=td,QA=Object.prototype,CB=QA.hasOwnProperty,$B=QA.toString,Zd=ik?ik.toStringTag:void 0;function SB(e){var t=CB.call(e,Zd),n=e[Zd];try{e[Zd]=void 0;var r=!0}catch{}var o=$B.call(e);return r&&(t?e[Zd]=n:delete e[Zd]),o}var _B=SB,EB=Object.prototype,PB=EB.toString;function TB(e){return PB.call(e)}var kB=TB,sk=td,OB=_B,RB=kB,DB="[object Null]",MB="[object Undefined]",lk=sk?sk.toStringTag:void 0;function IB(e){return e==null?e===void 0?MB:DB:lk&&lk in Object(e)?OB(e):RB(e)}var el=IB;function AB(e){return e!=null&&typeof e=="object"}var Jo=AB,NB=el,jB=Jo,LB="[object Symbol]";function FB(e){return typeof e=="symbol"||jB(e)&&NB(e)==LB}var nd=FB,zB=nd;function BB(e,t,n){for(var r=-1,o=e.length;++rt}var WB=UB;function HB(){this.__data__=[],this.size=0}var GB=HB;function qB(e,t){return e===t||e!==e&&t!==t}var Bp=qB,YB=Bp;function KB(e,t){for(var n=e.length;n--;)if(YB(e[n][0],t))return n;return-1}var oy=KB,JB=oy,ZB=Array.prototype,XB=ZB.splice;function QB(e){var t=this.__data__,n=JB(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():XB.call(t,n,1),--this.size,!0}var eV=QB,tV=oy;function nV(e){var t=this.__data__,n=tV(t,e);return n<0?void 0:t[n][1]}var rV=nV,oV=oy;function aV(e){return oV(this.__data__,e)>-1}var iV=aV,sV=oy;function lV(e,t){var n=this.__data__,r=sV(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var cV=lV,uV=GB,dV=eV,fV=rV,pV=iV,hV=cV;function rd(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ts))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var f=-1,p=!0,m=n&MW?new kW:void 0;for(a.set(e,t),a.set(t,e);++f-1&&e%1==0&&e-1&&e%1==0&&e<=RH}var O$=DH,MH=el,IH=O$,AH=Jo,NH="[object Arguments]",jH="[object Array]",LH="[object Boolean]",FH="[object Date]",zH="[object Error]",BH="[object Function]",VH="[object Map]",UH="[object Number]",WH="[object Object]",HH="[object RegExp]",GH="[object Set]",qH="[object String]",YH="[object WeakMap]",KH="[object ArrayBuffer]",JH="[object DataView]",ZH="[object Float32Array]",XH="[object Float64Array]",QH="[object Int8Array]",eG="[object Int16Array]",tG="[object Int32Array]",nG="[object Uint8Array]",rG="[object Uint8ClampedArray]",oG="[object Uint16Array]",aG="[object Uint32Array]",An={};An[ZH]=An[XH]=An[QH]=An[eG]=An[tG]=An[nG]=An[rG]=An[oG]=An[aG]=!0;An[NH]=An[jH]=An[KH]=An[LH]=An[JH]=An[FH]=An[zH]=An[BH]=An[VH]=An[UH]=An[WH]=An[HH]=An[GH]=An[qH]=An[YH]=!1;function iG(e){return AH(e)&&IH(e.length)&&!!An[MH(e)]}var sG=iG;function lG(e){return function(t){return e(t)}}var R$=lG,cg={exports:{}};cg.exports;(function(e,t){var n=XA,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a&&n.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s})(cg,cg.exports);var D$=cg.exports,cG=sG,uG=R$,yk=D$,bk=yk&&yk.isTypedArray,dG=bk?uG(bk):cG,cy=dG,$b,xk;function dN(){if(xk)return $b;xk=1;var e=vH(),t=Up,n=sr,r=Wp,o=Hp,a=cy,i=Object.prototype,s=i.hasOwnProperty;function l(c,u){var f=n(c),p=!f&&t(c),m=!f&&!p&&r(c),b=!f&&!p&&!m&&a(c),v=f||p||m||b,w=v?e(c.length,String):[],g=w.length;for(var y in c)(u||s.call(c,y))&&!(v&&(y=="length"||m&&(y=="offset"||y=="parent")||b&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||o(y,g)))&&w.push(y);return w}return $b=l,$b}var fG=Object.prototype;function pG(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||fG;return e===n}var uy=pG;function hG(e,t){return function(n){return e(t(n))}}var fN=hG,mG=fN,vG=mG(Object.keys,Object),gG=vG,yG=uy,bG=gG,xG=Object.prototype,wG=xG.hasOwnProperty;function CG(e){if(!yG(e))return bG(e);var t=[];for(var n in Object(e))wG.call(e,n)&&n!="constructor"&&t.push(n);return t}var M$=CG,$G=Vp,SG=O$;function _G(e){return e!=null&&SG(e.length)&&!$G(e)}var ts=_G,Sb,wk;function $i(){if(wk)return Sb;wk=1;var e=dN(),t=M$,n=ts;function r(o){return n(o)?e(o):t(o)}return Sb=r,Sb}var EG=sN,PG=k$,TG=$i();function kG(e){return EG(e,TG,PG)}var pN=kG,Ck=pN,OG=1,RG=Object.prototype,DG=RG.hasOwnProperty;function MG(e,t,n,r,o,a){var i=n&OG,s=Ck(e),l=s.length,c=Ck(t),u=c.length;if(l!=u&&!i)return!1;for(var f=l;f--;){var p=s[f];if(!(i?p in t:DG.call(t,p)))return!1}var m=a.get(e),b=a.get(t);if(m&&b)return m==t&&b==e;var v=!0;a.set(e,t),a.set(t,e);for(var w=i;++fo?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r=r?e:SJ(e,t,n)}var EJ=_J,PJ="\\ud800-\\udfff",TJ="\\u0300-\\u036f",kJ="\\ufe20-\\ufe2f",OJ="\\u20d0-\\u20ff",RJ=TJ+kJ+OJ,DJ="\\ufe0e\\ufe0f",MJ="\\u200d",IJ=RegExp("["+MJ+PJ+RJ+DJ+"]");function AJ(e){return IJ.test(e)}var BN=AJ;function NJ(e){return e.split("")}var jJ=NJ,VN="\\ud800-\\udfff",LJ="\\u0300-\\u036f",FJ="\\ufe20-\\ufe2f",zJ="\\u20d0-\\u20ff",BJ=LJ+FJ+zJ,VJ="\\ufe0e\\ufe0f",UJ="["+VN+"]",Iw="["+BJ+"]",Aw="\\ud83c[\\udffb-\\udfff]",WJ="(?:"+Iw+"|"+Aw+")",UN="[^"+VN+"]",WN="(?:\\ud83c[\\udde6-\\uddff]){2}",HN="[\\ud800-\\udbff][\\udc00-\\udfff]",HJ="\\u200d",GN=WJ+"?",qN="["+VJ+"]?",GJ="(?:"+HJ+"(?:"+[UN,WN,HN].join("|")+")"+qN+GN+")*",qJ=qN+GN+GJ,YJ="(?:"+[UN+Iw+"?",Iw,WN,HN,UJ].join("|")+")",KJ=RegExp(Aw+"(?="+Aw+")|"+YJ+qJ,"g");function JJ(e){return e.match(KJ)||[]}var ZJ=JJ,XJ=jJ,QJ=BN,eZ=ZJ;function tZ(e){return QJ(e)?eZ(e):XJ(e)}var nZ=tZ,rZ=EJ,oZ=BN,aZ=nZ,iZ=cd;function sZ(e){return function(t){t=iZ(t);var n=oZ(t)?aZ(t):void 0,r=n?n[0]:t.charAt(0),o=n?rZ(n,1).join(""):t.slice(1);return r[e]()+o}}var lZ=sZ,cZ=lZ,uZ=cZ("toUpperCase"),dZ=uZ,fZ=CJ,pZ=dZ,hZ=fZ(function(e,t,n){return e+(n?" ":"")+pZ(t)}),YN=hZ;const py=Bt(YN);var mZ=$i();const vZ=Bt(mZ);var gZ=ac,yZ=function(){try{var e=gZ(Object,"defineProperty");return e({},"",{}),e}catch{}}(),KN=yZ,Vk=KN;function bZ(e,t,n){t=="__proto__"&&Vk?Vk(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var L$=bZ,xZ=L$,wZ=Bp;function CZ(e,t,n){(n!==void 0&&!wZ(e[t],n)||n===void 0&&!(t in e))&&xZ(e,t,n)}var JN=CZ;function $Z(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),s=i.length;s--;){var l=i[e?s:++o];if(n(a[l],l,a)===!1)break}return t}}var SZ=$Z,_Z=SZ,EZ=_Z(),ZN=EZ,ug={exports:{}};ug.exports;(function(e,t){var n=io,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a?n.Buffer:void 0,s=i?i.allocUnsafe:void 0;function l(c,u){if(u)return c.slice();var f=c.length,p=s?s(f):new c.constructor(f);return c.copy(p),p}e.exports=l})(ug,ug.exports);var XN=ug.exports,Uk=oN;function PZ(e){var t=new e.constructor(e.byteLength);return new Uk(t).set(new Uk(e)),t}var F$=PZ,TZ=F$;function kZ(e,t){var n=t?TZ(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var QN=kZ;function OZ(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n0){if(++t>=QX)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var i3=nQ,rQ=XX,oQ=i3,aQ=oQ(rQ),W$=aQ,iQ=dy,sQ=a3,lQ=W$;function cQ(e,t){return lQ(sQ(e,t,iQ),e+"")}var s3=cQ,uQ=Bp,dQ=ts,fQ=Hp,pQ=Zo;function hQ(e,t,n){if(!pQ(n))return!1;var r=typeof t;return(r=="number"?dQ(n)&&fQ(t,n.length):r=="string"&&t in n)?uQ(n[t],e):!1}var l3=hQ,mQ=s3,vQ=l3;function gQ(e){return mQ(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,i=o>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,i&&vQ(n[0],n[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++r2?Z-2:1,le&&le<=Z?re:Pb(re,Z)):re}},mixin:function(N){return function(V){var Z=this;if(!C(Z))return N(Z,Object(V));var re=[];return g($(V),function(le){C(V[le])&&re.push([le,Z.prototype[le]])}),N(Z,Object(V)),g(re,function(le){var xe=le[1];C(xe)?Z.prototype[le[0]]=xe:delete Z.prototype[le[0]]}),Z}},nthArg:function(N){return function(V){var Z=V<0?1:k(V)+1;return w(N(V),Z)}},rearg:function(N){return function(V,Z){var re=Z?Z.length:0;return w(N(V,Z),re)}},runInContext:function(N){return function(V){return Nw(e,N(V),r)}}};function U(N,V){if(i.cap){var Z=gr.iterateeRearg[N];if(Z)return X(V,Z);var re=!o&&gr.iterateeAry[N];if(re)return J(V,re)}return V}function G(N,V,Z){return l||i.curry&&Z>1?w(V,Z):V}function z(N,V,Z){if(i.fixed&&(c||!gr.skipFixed[N])){var re=gr.methodSpread[N],le=re&&re.start;return le===void 0?m(V,Z):Qte(V,le)}return V}function B(N,V,Z){return i.rearg&&Z>1&&(u||!gr.skipRearg[N])?P(V,gr.methodRearg[N]||gr.aryRearg[Z]):V}function Y(N,V){V=I(V);for(var Z=-1,re=V.length,le=re-1,xe=v(Object(N)),fe=xe;fe!=null&&++Z1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Tne,`{ -/* [wrapped with `+t+`] */ -`)}var One=kne;function Rne(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a-1}var E3=Bne,Vne=H$,Une=E3,Wne=1,Hne=2,Gne=8,qne=16,Yne=32,Kne=64,Jne=128,Zne=256,Xne=512,Qne=[["ary",Jne],["bind",Wne],["bindKey",Hne],["curry",Gne],["curryRight",qne],["flip",Xne],["partial",Yne],["partialRight",Kne],["rearg",Zne]];function ere(e,t){return Vne(Qne,function(n){var r="_."+n[0];t&n[1]&&!Une(e,r)&&e.push(r)}),e.sort()}var tre=ere,nre=Pne,rre=One,ore=W$,are=tre;function ire(e,t,n){var r=t+"";return ore(e,rre(r,are(nre(r),n)))}var P3=ire,sre=C3(),lre=$3,cre=P3,ure=1,dre=2,fre=4,pre=8,bO=32,xO=64;function hre(e,t,n,r,o,a,i,s,l,c){var u=t&pre,f=u?i:void 0,p=u?void 0:i,m=u?a:void 0,b=u?void 0:a;t|=u?bO:xO,t&=~(u?xO:bO),t&fre||(t&=~(ure|dre));var v=[e,t,o,m,f,b,p,s,l,c],w=n.apply(void 0,v);return sre(e)&&lre(w,v),w.placeholder=r,cre(w,e,t)}var T3=hre;function mre(e){var t=e;return t.placeholder}var k3=mre,vre=qp,gre=Hp,yre=Math.min;function bre(e,t){for(var n=e.length,r=yre(t.length,n),o=vre(e);r--;){var a=t[r];e[r]=gre(a,n)?o[a]:void 0}return e}var xre=bre,wO="__lodash_placeholder__";function wre(e,t){for(var n=-1,r=e.length,o=0,a=[];++n1&&y.reverse(),u&&l0&&n(s)?t>1?I3(s,t-1,n,r,o):pae(o,s):r||(o[o.length]=s)}return o}var A3=I3,mae=A3;function vae(e){var t=e==null?0:e.length;return t?mae(e,1):[]}var gae=vae,yae=gae,bae=a3,xae=W$;function wae(e){return xae(bae(e,void 0,yae),e+"")}var Q$=wae,Cae=Z$,$ae=Q$,Sae=256,_ae=$ae(function(e,t){return Cae(e,Sae,void 0,void 0,void 0,t)}),Eae=_ae,Pae=ld,Tae=qp,kae=sr,Oae=nd,Rae=wN,Dae=sc,Mae=cd;function Iae(e){return kae(e)?Pae(e,Dae):Oae(e)?[e]:Tae(Rae(Mae(e)))}var Aae=Iae,Nae={ary:Loe,assign:c3,clone:Voe,curry:Hoe,forEach:H$,isArray:sr,isError:Xoe,isFunction:Vp,isWeakMap:rae,iteratee:lae,keys:M$,rearg:Eae,toInteger:Kp,toPath:Aae},jae=ene,Lae=Nae;function Fae(e,t,n){return jae(Lae,e,t,n)}var dd=Fae,Ub,NO;function zae(){if(NO)return Ub;NO=1;var e=V$,t=Gp,n=Hp,r=Zo,o=sc;function a(i,s,l,c){if(!r(i))return i;s=t(s,i);for(var u=-1,f=s.length,p=f-1,m=i;m!=null&&++u=t?e:t)),e}var _ie=Sie,Eie=_ie,Pie=$N,Tie=Kp,kie=cd;function Oie(e,t,n){e=kie(e),t=Pie(t);var r=e.length;n=n===void 0?r:Eie(Tie(n),0,r);var o=n;return n-=t.length,n>=0&&e.slice(n,o)==t}var Rie=Oie;const Die=Bt(Rie);function Mie(e,t,n,r,o){return o(e,function(a,i,s){n=r?(r=!1,a):t(n,a,i,s)}),n}var Iie=Mie,Aie=EN,Nie=eS,jie=lc,Lie=Iie,Fie=sr;function zie(e,t,n){var r=Fie(e)?Aie:Lie,o=arguments.length<3;return r(e,jie(t),n,o,Nie)}var Bie=zie;const jw=Bt(Bie);var Vie=ld;function Uie(e,t){return Vie(t,function(n){return[n,e[n]]})}var Wie=Uie;function Hie(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=[r,r]}),n}var Gie=Hie,qie=Wie,Yie=ic,Kie=aN,Jie=Gie,Zie="[object Map]",Xie="[object Set]";function Qie(e){return function(t){var n=Yie(t);return n==Zie?Kie(t):n==Xie?Jie(t):qie(t,e(t))}}var ese=Qie,tse=ese,nse=$i(),rse=tse(nse),ose=rse;const ase=Bt(ose);var ise=el,sse=sr,lse=Jo,cse="[object String]";function use(e){return typeof e=="string"||!sse(e)&&lse(e)&&ise(e)==cse}var dse=use,fse=ld;function pse(e,t){return fse(t,function(n){return e[n]})}var hse=pse,mse=hse,vse=$i();function gse(e){return e==null?[]:mse(e,vse(e))}var yse=gse,bse=_3,xse=ts,wse=dse,Cse=Kp,$se=yse,Sse=Math.max;function _se(e,t,n,r){e=xse(e)?e:$se(e),n=n&&!r?Cse(n):0;var o=e.length;return n<0&&(n=Sse(o+n,0)),wse(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&bse(e,t,n)>-1}var Ese=_se;const z3=Bt(Ese);var Pse=lc,Tse=ts,kse=$i();function Ose(e){return function(t,n,r){var o=Object(t);if(!Tse(t)){var a=Pse(n);t=kse(t),n=function(s){return a(o[s],s,o)}}var i=e(t,n,r);return i>-1?o[a?t[i]:i]:void 0}}var Rse=Ose,Dse=S3,Mse=lc,Ise=Kp,Ase=Math.max;function Nse(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=n==null?0:Ise(n);return o<0&&(o=Ase(r+o,0)),Dse(e,Mse(t),o)}var jse=Nse,Lse=Rse,Fse=jse,zse=Lse(Fse),Bse=zse;const tS=Bt(Bse);var Vse=Math.ceil,Use=Math.max;function Wse(e,t,n,r){for(var o=-1,a=Use(Vse((t-e)/(n||1)),0),i=Array(a);a--;)i[r?a:++o]=e,e+=n;return i}var Hse=Wse,Gse=Hse,qse=l3,Hb=M3;function Yse(e){return function(t,n,r){return r&&typeof r!="number"&&qse(t,n,r)&&(n=r=void 0),t=Hb(t),n===void 0?(n=t,t=0):n=Hb(n),r=r===void 0?t1)return!1;const y=this._items[0];return y===""||y==='""'}get str(){var y;return(y=this._str)!==null&&y!==void 0?y:this._str=this._items.reduce((x,C)=>`${x}${C}`,"")}get names(){var y;return(y=this._names)!==null&&y!==void 0?y:this._names=this._items.reduce((x,C)=>(C instanceof n&&(x[C.str]=(x[C.str]||0)+1),x),{})}}e._Code=r,e.nil=new r("");function o(g,...y){const x=[g[0]];let C=0;for(;C{if(f.scopePath===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return(0,t._)`${c}${f.scopePath}`})}scopeCode(c=this._values,u,f){return this._reduceValues(c,p=>{if(p.value===void 0)throw new Error(`CodeGen: name "${p}" has no value`);return p.value.code},u,f)}_reduceValues(c,u,f={},p){let m=t.nil;for(const b in c){const v=c[b];if(!v)continue;const w=f[b]=f[b]||new Map;v.forEach(g=>{if(w.has(g))return;w.set(g,r.Started);let y=u(g);if(y){const x=this.opts.es5?e.varKinds.var:e.varKinds.const;m=(0,t._)`${m}${x} ${g} = ${y};${this.opts._n}`}else if(y=p==null?void 0:p(g))m=(0,t._)`${m}${y}${this.opts._n}`;else throw new n(g);w.set(g,r.Completed)})}return m}}e.ValueScope=s})(Fw);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=gp,n=Fw;var r=gp;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}});var o=Fw;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class a{optimizeNodes(){return this}optimizeNames(R,N){return this}}class i extends a{constructor(R,N,V){super(),this.varKind=R,this.name=N,this.rhs=V}render({es5:R,_n:N}){const V=R?n.varKinds.var:this.varKind,Z=this.rhs===void 0?"":` = ${this.rhs}`;return`${V} ${this.name}${Z};`+N}optimizeNames(R,N){if(R[this.name.str])return this.rhs&&(this.rhs=z(this.rhs,R,N)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends a{constructor(R,N,V){super(),this.lhs=R,this.rhs=N,this.sideEffects=V}render({_n:R}){return`${this.lhs} = ${this.rhs};`+R}optimizeNames(R,N){if(!(this.lhs instanceof t.Name&&!R[this.lhs.str]&&!this.sideEffects))return this.rhs=z(this.rhs,R,N),this}get names(){const R=this.lhs instanceof t.Name?{}:{...this.lhs.names};return G(R,this.rhs)}}class l extends s{constructor(R,N,V,Z){super(R,V,Z),this.op=N}render({_n:R}){return`${this.lhs} ${this.op}= ${this.rhs};`+R}}class c extends a{constructor(R){super(),this.label=R,this.names={}}render({_n:R}){return`${this.label}:`+R}}class u extends a{constructor(R){super(),this.label=R,this.names={}}render({_n:R}){return`break${this.label?` ${this.label}`:""};`+R}}class f extends a{constructor(R){super(),this.error=R}render({_n:R}){return`throw ${this.error};`+R}get names(){return this.error.names}}class p extends a{constructor(R){super(),this.code=R}render({_n:R}){return`${this.code};`+R}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(R,N){return this.code=z(this.code,R,N),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class m extends a{constructor(R=[]){super(),this.nodes=R}render(R){return this.nodes.reduce((N,V)=>N+V.render(R),"")}optimizeNodes(){const{nodes:R}=this;let N=R.length;for(;N--;){const V=R[N].optimizeNodes();Array.isArray(V)?R.splice(N,1,...V):V?R[N]=V:R.splice(N,1)}return R.length>0?this:void 0}optimizeNames(R,N){const{nodes:V}=this;let Z=V.length;for(;Z--;){const re=V[Z];re.optimizeNames(R,N)||(B(R,re.names),V.splice(Z,1))}return V.length>0?this:void 0}get names(){return this.nodes.reduce((R,N)=>U(R,N.names),{})}}class b extends m{render(R){return"{"+R._n+super.render(R)+"}"+R._n}}class v extends m{}class w extends b{}w.kind="else";class g extends b{constructor(R,N){super(N),this.condition=R}render(R){let N=`if(${this.condition})`+super.render(R);return this.else&&(N+="else "+this.else.render(R)),N}optimizeNodes(){super.optimizeNodes();const R=this.condition;if(R===!0)return this.nodes;let N=this.else;if(N){const V=N.optimizeNodes();N=this.else=Array.isArray(V)?new w(V):V}if(N)return R===!1?N instanceof g?N:N.nodes:this.nodes.length?this:new g(Y(R),N instanceof g?[N]:N.nodes);if(!(R===!1||!this.nodes.length))return this}optimizeNames(R,N){var V;if(this.else=(V=this.else)===null||V===void 0?void 0:V.optimizeNames(R,N),!!(super.optimizeNames(R,N)||this.else))return this.condition=z(this.condition,R,N),this}get names(){const R=super.names;return G(R,this.condition),this.else&&U(R,this.else.names),R}}g.kind="if";class y extends b{}y.kind="for";class x extends y{constructor(R){super(),this.iteration=R}render(R){return`for(${this.iteration})`+super.render(R)}optimizeNames(R,N){if(super.optimizeNames(R,N))return this.iteration=z(this.iteration,R,N),this}get names(){return U(super.names,this.iteration.names)}}class C extends y{constructor(R,N,V,Z){super(),this.varKind=R,this.name=N,this.from=V,this.to=Z}render(R){const N=R.es5?n.varKinds.var:this.varKind,{name:V,from:Z,to:re}=this;return`for(${N} ${V}=${Z}; ${V}<${re}; ${V}++)`+super.render(R)}get names(){const R=G(super.names,this.from);return G(R,this.to)}}class _ extends y{constructor(R,N,V,Z){super(),this.loop=R,this.varKind=N,this.name=V,this.iterable=Z}render(R){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(R)}optimizeNames(R,N){if(super.optimizeNames(R,N))return this.iterable=z(this.iterable,R,N),this}get names(){return U(super.names,this.iterable.names)}}class $ extends b{constructor(R,N,V){super(),this.name=R,this.args=N,this.async=V}render(R){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(R)}}$.kind="func";class P extends m{render(R){return"return "+super.render(R)}}P.kind="return";class k extends b{render(R){let N="try"+super.render(R);return this.catch&&(N+=this.catch.render(R)),this.finally&&(N+=this.finally.render(R)),N}optimizeNodes(){var R,N;return super.optimizeNodes(),(R=this.catch)===null||R===void 0||R.optimizeNodes(),(N=this.finally)===null||N===void 0||N.optimizeNodes(),this}optimizeNames(R,N){var V,Z;return super.optimizeNames(R,N),(V=this.catch)===null||V===void 0||V.optimizeNames(R,N),(Z=this.finally)===null||Z===void 0||Z.optimizeNames(R,N),this}get names(){const R=super.names;return this.catch&&U(R,this.catch.names),this.finally&&U(R,this.finally.names),R}}class I extends b{constructor(R){super(),this.error=R}render(R){return`catch(${this.error})`+super.render(R)}}I.kind="catch";class D extends b{render(R){return"finally"+super.render(R)}}D.kind="finally";class F{constructor(R,N={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...N,_n:N.lines?` -`:""},this._extScope=R,this._scope=new n.Scope({parent:R}),this._nodes=[new v]}toString(){return this._root.render(this.opts)}name(R){return this._scope.name(R)}scopeName(R){return this._extScope.name(R)}scopeValue(R,N){const V=this._extScope.value(R,N);return(this._values[V.prefix]||(this._values[V.prefix]=new Set)).add(V),V}getScopeValue(R,N){return this._extScope.getValue(R,N)}scopeRefs(R){return this._extScope.scopeRefs(R,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(R,N,V,Z){const re=this._scope.toName(N);return V!==void 0&&Z&&(this._constants[re.str]=V),this._leafNode(new i(R,re,V)),re}const(R,N,V){return this._def(n.varKinds.const,R,N,V)}let(R,N,V){return this._def(n.varKinds.let,R,N,V)}var(R,N,V){return this._def(n.varKinds.var,R,N,V)}assign(R,N,V){return this._leafNode(new s(R,N,V))}add(R,N){return this._leafNode(new l(R,e.operators.ADD,N))}code(R){return typeof R=="function"?R():R!==t.nil&&this._leafNode(new p(R)),this}object(...R){const N=["{"];for(const[V,Z]of R)N.length>1&&N.push(","),N.push(V),(V!==Z||this.opts.es5)&&(N.push(":"),(0,t.addCodeArg)(N,Z));return N.push("}"),new t._Code(N)}if(R,N,V){if(this._blockNode(new g(R)),N&&V)this.code(N).else().code(V).endIf();else if(N)this.code(N).endIf();else if(V)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(R){return this._elseNode(new g(R))}else(){return this._elseNode(new w)}endIf(){return this._endBlockNode(g,w)}_for(R,N){return this._blockNode(R),N&&this.code(N).endFor(),this}for(R,N){return this._for(new x(R),N)}forRange(R,N,V,Z,re=this.opts.es5?n.varKinds.var:n.varKinds.let){const le=this._scope.toName(R);return this._for(new C(re,le,N,V),()=>Z(le))}forOf(R,N,V,Z=n.varKinds.const){const re=this._scope.toName(R);if(this.opts.es5){const le=N instanceof t.Name?N:this.var("_arr",N);return this.forRange("_i",0,(0,t._)`${le}.length`,xe=>{this.var(re,(0,t._)`${le}[${xe}]`),V(re)})}return this._for(new _("of",Z,re,N),()=>V(re))}forIn(R,N,V,Z=this.opts.es5?n.varKinds.var:n.varKinds.const){if(this.opts.ownProperties)return this.forOf(R,(0,t._)`Object.keys(${N})`,V);const re=this._scope.toName(R);return this._for(new _("in",Z,re,N),()=>V(re))}endFor(){return this._endBlockNode(y)}label(R){return this._leafNode(new c(R))}break(R){return this._leafNode(new u(R))}return(R){const N=new P;if(this._blockNode(N),this.code(R),N.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(P)}try(R,N,V){if(!N&&!V)throw new Error('CodeGen: "try" without "catch" and "finally"');const Z=new k;if(this._blockNode(Z),this.code(R),N){const re=this.name("e");this._currNode=Z.catch=new I(re),N(re)}return V&&(this._currNode=Z.finally=new D,this.code(V)),this._endBlockNode(I,D)}throw(R){return this._leafNode(new f(R))}block(R,N){return this._blockStarts.push(this._nodes.length),R&&this.code(R).endBlock(N),this}endBlock(R){const N=this._blockStarts.pop();if(N===void 0)throw new Error("CodeGen: not in self-balancing block");const V=this._nodes.length-N;if(V<0||R!==void 0&&V!==R)throw new Error(`CodeGen: wrong number of nodes: ${V} vs ${R} expected`);return this._nodes.length=N,this}func(R,N=t.nil,V,Z){return this._blockNode(new $(R,N,V)),Z&&this.code(Z).endFunc(),this}endFunc(){return this._endBlockNode($)}optimize(R=1){for(;R-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(R){return this._currNode.nodes.push(R),this}_blockNode(R){this._currNode.nodes.push(R),this._nodes.push(R)}_endBlockNode(R,N){const V=this._currNode;if(V instanceof R||N&&V instanceof N)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${N?`${R.kind}/${N.kind}`:R.kind}"`)}_elseNode(R){const N=this._currNode;if(!(N instanceof g))throw new Error('CodeGen: "else" without "if"');return this._currNode=N.else=R,this}get _root(){return this._nodes[0]}get _currNode(){const R=this._nodes;return R[R.length-1]}set _currNode(R){const N=this._nodes;N[N.length-1]=R}}e.CodeGen=F;function U(q,R){for(const N in R)q[N]=(q[N]||0)+(R[N]||0);return q}function G(q,R){return R instanceof t._CodeOrName?U(q,R.names):q}function z(q,R,N){if(q instanceof t.Name)return V(q);if(!Z(q))return q;return new t._Code(q._items.reduce((re,le)=>(le instanceof t.Name&&(le=V(le)),le instanceof t._Code?re.push(...le._items):re.push(le),re),[]));function V(re){const le=N[re.str];return le===void 0||R[re.str]!==1?re:(delete R[re.str],le)}function Z(re){return re instanceof t._Code&&re._items.some(le=>le instanceof t.Name&&R[le.str]===1&&N[le.str]!==void 0)}}function B(q,R){for(const N in R)q[N]=(q[N]||0)-(R[N]||0)}function Y(q){return typeof q=="boolean"||typeof q=="number"||q===null?!q:(0,t._)`!${K(q)}`}e.not=Y;const Q=L(e.operators.AND);function H(...q){return q.reduce(Q)}e.and=H;const J=L(e.operators.OR);function X(...q){return q.reduce(J)}e.or=X;function L(q){return(R,N)=>R===t.nil?N:N===t.nil?R:(0,t._)`${K(R)} ${q} ${K(N)}`}function K(q){return q instanceof t.Name?q:(0,t._)`(${q})`}})(Jt);var dn={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;const t=Jt,n=gp;function r($){const P={};for(const k of $)P[k]=!0;return P}e.toHash=r;function o($,P){return typeof P=="boolean"?P:Object.keys(P).length===0?!0:(a($,P),!i(P,$.self.RULES.all))}e.alwaysValidSchema=o;function a($,P=$.schema){const{opts:k,self:I}=$;if(!k.strictSchema||typeof P=="boolean")return;const D=I.RULES.keywords;for(const F in P)D[F]||_($,`unknown keyword: "${F}"`)}e.checkUnknownRules=a;function i($,P){if(typeof $=="boolean")return!$;for(const k in $)if(P[k])return!0;return!1}e.schemaHasRules=i;function s($,P){if(typeof $=="boolean")return!$;for(const k in $)if(k!=="$ref"&&P.all[k])return!0;return!1}e.schemaHasRulesButRef=s;function l({topSchemaRef:$,schemaPath:P},k,I,D){if(!D){if(typeof k=="number"||typeof k=="boolean")return k;if(typeof k=="string")return(0,t._)`${k}`}return(0,t._)`${$}${P}${(0,t.getProperty)(I)}`}e.schemaRefOrVal=l;function c($){return p(decodeURIComponent($))}e.unescapeFragment=c;function u($){return encodeURIComponent(f($))}e.escapeFragment=u;function f($){return typeof $=="number"?`${$}`:$.replace(/~/g,"~0").replace(/\//g,"~1")}e.escapeJsonPointer=f;function p($){return $.replace(/~1/g,"/").replace(/~0/g,"~")}e.unescapeJsonPointer=p;function m($,P){if(Array.isArray($))for(const k of $)P(k);else P($)}e.eachItem=m;function b({mergeNames:$,mergeToName:P,mergeValues:k,resultToName:I}){return(D,F,U,G)=>{const z=U===void 0?F:U instanceof t.Name?(F instanceof t.Name?$(D,F,U):P(D,F,U),U):F instanceof t.Name?(P(D,U,F),F):k(F,U);return G===t.Name&&!(z instanceof t.Name)?I(D,z):z}}e.mergeEvaluated={props:b({mergeNames:($,P,k)=>$.if((0,t._)`${k} !== true && ${P} !== undefined`,()=>{$.if((0,t._)`${P} === true`,()=>$.assign(k,!0),()=>$.assign(k,(0,t._)`${k} || {}`).code((0,t._)`Object.assign(${k}, ${P})`))}),mergeToName:($,P,k)=>$.if((0,t._)`${k} !== true`,()=>{P===!0?$.assign(k,!0):($.assign(k,(0,t._)`${k} || {}`),w($,k,P))}),mergeValues:($,P)=>$===!0?!0:{...$,...P},resultToName:v}),items:b({mergeNames:($,P,k)=>$.if((0,t._)`${k} !== true && ${P} !== undefined`,()=>$.assign(k,(0,t._)`${P} === true ? true : ${k} > ${P} ? ${k} : ${P}`)),mergeToName:($,P,k)=>$.if((0,t._)`${k} !== true`,()=>$.assign(k,P===!0?!0:(0,t._)`${k} > ${P} ? ${k} : ${P}`)),mergeValues:($,P)=>$===!0?!0:Math.max($,P),resultToName:($,P)=>$.var("items",P)})};function v($,P){if(P===!0)return $.var("props",!0);const k=$.var("props",(0,t._)`{}`);return P!==void 0&&w($,k,P),k}e.evaluatedPropsToName=v;function w($,P,k){Object.keys(k).forEach(I=>$.assign((0,t._)`${P}${(0,t.getProperty)(I)}`,!0))}e.setEvaluated=w;const g={};function y($,P){return $.scopeValue("func",{ref:P,code:g[P.code]||(g[P.code]=new n._Code(P.code))})}e.useFunc=y;var x;(function($){$[$.Num=0]="Num",$[$.Str=1]="Str"})(x=e.Type||(e.Type={}));function C($,P,k){if($ instanceof t.Name){const I=P===x.Num;return k?I?(0,t._)`"[" + ${$} + "]"`:(0,t._)`"['" + ${$} + "']"`:I?(0,t._)`"/" + ${$}`:(0,t._)`"/" + ${$}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return k?(0,t.getProperty)($).toString():"/"+f($)}e.getErrorPath=C;function _($,P,k=$.opts.strictSchema){if(k){if(P=`strict mode: ${P}`,k===!0)throw new Error(P);$.self.logger.warn(P)}}e.checkStrictMode=_})(dn);var Si={};Object.defineProperty(Si,"__esModule",{value:!0});const zr=Jt,lle={data:new zr.Name("data"),valCxt:new zr.Name("valCxt"),instancePath:new zr.Name("instancePath"),parentData:new zr.Name("parentData"),parentDataProperty:new zr.Name("parentDataProperty"),rootData:new zr.Name("rootData"),dynamicAnchors:new zr.Name("dynamicAnchors"),vErrors:new zr.Name("vErrors"),errors:new zr.Name("errors"),this:new zr.Name("this"),self:new zr.Name("self"),scope:new zr.Name("scope"),json:new zr.Name("json"),jsonPos:new zr.Name("jsonPos"),jsonLen:new zr.Name("jsonLen"),jsonPart:new zr.Name("jsonPart")};Si.default=lle;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=Jt,n=dn,r=Si;e.keywordError={message:({keyword:w})=>(0,t.str)`must pass "${w}" keyword validation`},e.keyword$DataError={message:({keyword:w,schemaType:g})=>g?(0,t.str)`"${w}" keyword must be ${g} ($data)`:(0,t.str)`"${w}" keyword is invalid ($data)`};function o(w,g=e.keywordError,y,x){const{it:C}=w,{gen:_,compositeRule:$,allErrors:P}=C,k=f(w,g,y);x??($||P)?l(_,k):c(C,(0,t._)`[${k}]`)}e.reportError=o;function a(w,g=e.keywordError,y){const{it:x}=w,{gen:C,compositeRule:_,allErrors:$}=x,P=f(w,g,y);l(C,P),_||$||c(x,r.default.vErrors)}e.reportExtraError=a;function i(w,g){w.assign(r.default.errors,g),w.if((0,t._)`${r.default.vErrors} !== null`,()=>w.if(g,()=>w.assign((0,t._)`${r.default.vErrors}.length`,g),()=>w.assign(r.default.vErrors,null)))}e.resetErrorsCount=i;function s({gen:w,keyword:g,schemaValue:y,data:x,errsCount:C,it:_}){if(C===void 0)throw new Error("ajv implementation error");const $=w.name("err");w.forRange("i",C,r.default.errors,P=>{w.const($,(0,t._)`${r.default.vErrors}[${P}]`),w.if((0,t._)`${$}.instancePath === undefined`,()=>w.assign((0,t._)`${$}.instancePath`,(0,t.strConcat)(r.default.instancePath,_.errorPath))),w.assign((0,t._)`${$}.schemaPath`,(0,t.str)`${_.errSchemaPath}/${g}`),_.opts.verbose&&(w.assign((0,t._)`${$}.schema`,y),w.assign((0,t._)`${$}.data`,x))})}e.extendErrors=s;function l(w,g){const y=w.const("err",g);w.if((0,t._)`${r.default.vErrors} === null`,()=>w.assign(r.default.vErrors,(0,t._)`[${y}]`),(0,t._)`${r.default.vErrors}.push(${y})`),w.code((0,t._)`${r.default.errors}++`)}function c(w,g){const{gen:y,validateName:x,schemaEnv:C}=w;C.$async?y.throw((0,t._)`new ${w.ValidationError}(${g})`):(y.assign((0,t._)`${x}.errors`,g),y.return(!1))}const u={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function f(w,g,y){const{createErrors:x}=w.it;return x===!1?(0,t._)`{}`:p(w,g,y)}function p(w,g,y={}){const{gen:x,it:C}=w,_=[m(C,y),b(w,y)];return v(w,g,_),x.object(..._)}function m({errorPath:w},{instancePath:g}){const y=g?(0,t.str)`${w}${(0,n.getErrorPath)(g,n.Type.Str)}`:w;return[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,y)]}function b({keyword:w,it:{errSchemaPath:g}},{schemaPath:y,parentSchema:x}){let C=x?g:(0,t.str)`${g}/${w}`;return y&&(C=(0,t.str)`${C}${(0,n.getErrorPath)(y,n.Type.Str)}`),[u.schemaPath,C]}function v(w,{params:g,message:y},x){const{keyword:C,data:_,schemaValue:$,it:P}=w,{opts:k,propertyName:I,topSchemaRef:D,schemaPath:F}=P;x.push([u.keyword,C],[u.params,typeof g=="function"?g(w):g||(0,t._)`{}`]),k.messages&&x.push([u.message,typeof y=="function"?y(w):y]),k.verbose&&x.push([u.schema,$],[u.parentSchema,(0,t._)`${D}${F}`],[r.default.data,_]),I&&x.push([u.propertyName,I])}})(Jp);Object.defineProperty(Fu,"__esModule",{value:!0});Fu.boolOrEmptySchema=Fu.topBoolOrEmptySchema=void 0;const cle=Jp,ule=Jt,dle=Si,fle={message:"boolean schema is false"};function ple(e){const{gen:t,schema:n,validateName:r}=e;n===!1?V3(e,!1):typeof n=="object"&&n.$async===!0?t.return(dle.default.data):(t.assign((0,ule._)`${r}.errors`,null),t.return(!0))}Fu.topBoolOrEmptySchema=ple;function hle(e,t){const{gen:n,schema:r}=e;r===!1?(n.var(t,!1),V3(e)):n.var(t,!0)}Fu.boolOrEmptySchema=hle;function V3(e,t){const{gen:n,data:r}=e,o={gen:n,keyword:"false schema",data:r,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,cle.reportError)(o,fle,void 0,t)}var Zp={},ql={};Object.defineProperty(ql,"__esModule",{value:!0});ql.getRules=ql.isJSONType=void 0;const mle=["string","number","integer","boolean","null","object","array"],vle=new Set(mle);function gle(e){return typeof e=="string"&&vle.has(e)}ql.isJSONType=gle;function yle(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}ql.getRules=yle;var Hi={};Object.defineProperty(Hi,"__esModule",{value:!0});Hi.shouldUseRule=Hi.shouldUseGroup=Hi.schemaHasRulesForType=void 0;function ble({schema:e,self:t},n){const r=t.RULES.types[n];return r&&r!==!0&&U3(e,r)}Hi.schemaHasRulesForType=ble;function U3(e,t){return t.rules.some(n=>W3(e,n))}Hi.shouldUseGroup=U3;function W3(e,t){var n;return e[t.keyword]!==void 0||((n=t.definition.implements)===null||n===void 0?void 0:n.some(r=>e[r]!==void 0))}Hi.shouldUseRule=W3;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;const t=ql,n=Hi,r=Jp,o=Jt,a=dn;var i;(function(x){x[x.Correct=0]="Correct",x[x.Wrong=1]="Wrong"})(i=e.DataType||(e.DataType={}));function s(x){const C=l(x.type);if(C.includes("null")){if(x.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!C.length&&x.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');x.nullable===!0&&C.push("null")}return C}e.getSchemaTypes=s;function l(x){const C=Array.isArray(x)?x:x?[x]:[];if(C.every(t.isJSONType))return C;throw new Error("type must be JSONType or JSONType[]: "+C.join(","))}e.getJSONTypes=l;function c(x,C){const{gen:_,data:$,opts:P}=x,k=f(C,P.coerceTypes),I=C.length>0&&!(k.length===0&&C.length===1&&(0,n.schemaHasRulesForType)(x,C[0]));if(I){const D=v(C,$,P.strictNumbers,i.Wrong);_.if(D,()=>{k.length?p(x,C,k):g(x)})}return I}e.coerceAndCheckDataType=c;const u=new Set(["string","number","integer","boolean","null"]);function f(x,C){return C?x.filter(_=>u.has(_)||C==="array"&&_==="array"):[]}function p(x,C,_){const{gen:$,data:P,opts:k}=x,I=$.let("dataType",(0,o._)`typeof ${P}`),D=$.let("coerced",(0,o._)`undefined`);k.coerceTypes==="array"&&$.if((0,o._)`${I} == 'object' && Array.isArray(${P}) && ${P}.length == 1`,()=>$.assign(P,(0,o._)`${P}[0]`).assign(I,(0,o._)`typeof ${P}`).if(v(C,P,k.strictNumbers),()=>$.assign(D,P))),$.if((0,o._)`${D} !== undefined`);for(const U of _)(u.has(U)||U==="array"&&k.coerceTypes==="array")&&F(U);$.else(),g(x),$.endIf(),$.if((0,o._)`${D} !== undefined`,()=>{$.assign(P,D),m(x,D)});function F(U){switch(U){case"string":$.elseIf((0,o._)`${I} == "number" || ${I} == "boolean"`).assign(D,(0,o._)`"" + ${P}`).elseIf((0,o._)`${P} === null`).assign(D,(0,o._)`""`);return;case"number":$.elseIf((0,o._)`${I} == "boolean" || ${P} === null - || (${I} == "string" && ${P} && ${P} == +${P})`).assign(D,(0,o._)`+${P}`);return;case"integer":$.elseIf((0,o._)`${I} === "boolean" || ${P} === null - || (${I} === "string" && ${P} && ${P} == +${P} && !(${P} % 1))`).assign(D,(0,o._)`+${P}`);return;case"boolean":$.elseIf((0,o._)`${P} === "false" || ${P} === 0 || ${P} === null`).assign(D,!1).elseIf((0,o._)`${P} === "true" || ${P} === 1`).assign(D,!0);return;case"null":$.elseIf((0,o._)`${P} === "" || ${P} === 0 || ${P} === false`),$.assign(D,null);return;case"array":$.elseIf((0,o._)`${I} === "string" || ${I} === "number" - || ${I} === "boolean" || ${P} === null`).assign(D,(0,o._)`[${P}]`)}}}function m({gen:x,parentData:C,parentDataProperty:_},$){x.if((0,o._)`${C} !== undefined`,()=>x.assign((0,o._)`${C}[${_}]`,$))}function b(x,C,_,$=i.Correct){const P=$===i.Correct?o.operators.EQ:o.operators.NEQ;let k;switch(x){case"null":return(0,o._)`${C} ${P} null`;case"array":k=(0,o._)`Array.isArray(${C})`;break;case"object":k=(0,o._)`${C} && typeof ${C} == "object" && !Array.isArray(${C})`;break;case"integer":k=I((0,o._)`!(${C} % 1) && !isNaN(${C})`);break;case"number":k=I();break;default:return(0,o._)`typeof ${C} ${P} ${x}`}return $===i.Correct?k:(0,o.not)(k);function I(D=o.nil){return(0,o.and)((0,o._)`typeof ${C} == "number"`,D,_?(0,o._)`isFinite(${C})`:o.nil)}}e.checkDataType=b;function v(x,C,_,$){if(x.length===1)return b(x[0],C,_,$);let P;const k=(0,a.toHash)(x);if(k.array&&k.object){const I=(0,o._)`typeof ${C} != "object"`;P=k.null?I:(0,o._)`!${C} || ${I}`,delete k.null,delete k.array,delete k.object}else P=o.nil;k.number&&delete k.integer;for(const I in k)P=(0,o.and)(P,b(I,C,_,$));return P}e.checkDataTypes=v;const w={message:({schema:x})=>`must be ${x}`,params:({schema:x,schemaValue:C})=>typeof x=="string"?(0,o._)`{type: ${x}}`:(0,o._)`{type: ${C}}`};function g(x){const C=y(x);(0,r.reportError)(C,w)}e.reportTypeError=g;function y(x){const{gen:C,data:_,schema:$}=x,P=(0,a.schemaRefOrVal)(x,$,"type");return{gen:C,keyword:"type",data:_,schema:$.type,schemaCode:P,schemaValue:P,parentSchema:$,params:{},it:x}}})(Zp);var gy={};Object.defineProperty(gy,"__esModule",{value:!0});gy.assignDefaults=void 0;const Nc=Jt,xle=dn;function wle(e,t){const{properties:n,items:r}=e.schema;if(t==="object"&&n)for(const o in n)LO(e,o,n[o].default);else t==="array"&&Array.isArray(r)&&r.forEach((o,a)=>LO(e,a,o.default))}gy.assignDefaults=wle;function LO(e,t,n){const{gen:r,compositeRule:o,data:a,opts:i}=e;if(n===void 0)return;const s=(0,Nc._)`${a}${(0,Nc.getProperty)(t)}`;if(o){(0,xle.checkStrictMode)(e,`default is ignored for: ${s}`);return}let l=(0,Nc._)`${s} === undefined`;i.useDefaults==="empty"&&(l=(0,Nc._)`${l} || ${s} === null || ${s} === ""`),r.if(l,(0,Nc._)`${s} = ${(0,Nc.stringify)(n)}`)}var fi={},Qt={};Object.defineProperty(Qt,"__esModule",{value:!0});Qt.validateUnion=Qt.validateArray=Qt.usePattern=Qt.callValidateCode=Qt.schemaProperties=Qt.allSchemaProperties=Qt.noPropertyInData=Qt.propertyInData=Qt.isOwnProperty=Qt.hasPropFunc=Qt.reportMissingProp=Qt.checkMissingProp=Qt.checkReportMissingProp=void 0;const Nn=Jt,nS=dn,ys=Si,Cle=dn;function $le(e,t){const{gen:n,data:r,it:o}=e;n.if(oS(n,r,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Nn._)`${t}`},!0),e.error()})}Qt.checkReportMissingProp=$le;function Sle({gen:e,data:t,it:{opts:n}},r,o){return(0,Nn.or)(...r.map(a=>(0,Nn.and)(oS(e,t,a,n.ownProperties),(0,Nn._)`${o} = ${a}`)))}Qt.checkMissingProp=Sle;function _le(e,t){e.setParams({missingProperty:t},!0),e.error()}Qt.reportMissingProp=_le;function H3(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Nn._)`Object.prototype.hasOwnProperty`})}Qt.hasPropFunc=H3;function rS(e,t,n){return(0,Nn._)`${H3(e)}.call(${t}, ${n})`}Qt.isOwnProperty=rS;function Ele(e,t,n,r){const o=(0,Nn._)`${t}${(0,Nn.getProperty)(n)} !== undefined`;return r?(0,Nn._)`${o} && ${rS(e,t,n)}`:o}Qt.propertyInData=Ele;function oS(e,t,n,r){const o=(0,Nn._)`${t}${(0,Nn.getProperty)(n)} === undefined`;return r?(0,Nn.or)(o,(0,Nn.not)(rS(e,t,n))):o}Qt.noPropertyInData=oS;function G3(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Qt.allSchemaProperties=G3;function Ple(e,t){return G3(t).filter(n=>!(0,nS.alwaysValidSchema)(e,t[n]))}Qt.schemaProperties=Ple;function Tle({schemaCode:e,data:t,it:{gen:n,topSchemaRef:r,schemaPath:o,errorPath:a},it:i},s,l,c){const u=c?(0,Nn._)`${e}, ${t}, ${r}${o}`:t,f=[[ys.default.instancePath,(0,Nn.strConcat)(ys.default.instancePath,a)],[ys.default.parentData,i.parentData],[ys.default.parentDataProperty,i.parentDataProperty],[ys.default.rootData,ys.default.rootData]];i.opts.dynamicRef&&f.push([ys.default.dynamicAnchors,ys.default.dynamicAnchors]);const p=(0,Nn._)`${u}, ${n.object(...f)}`;return l!==Nn.nil?(0,Nn._)`${s}.call(${l}, ${p})`:(0,Nn._)`${s}(${p})`}Qt.callValidateCode=Tle;const kle=(0,Nn._)`new RegExp`;function Ole({gen:e,it:{opts:t}},n){const r=t.unicodeRegExp?"u":"",{regExp:o}=t.code,a=o(n,r);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:(0,Nn._)`${o.code==="new RegExp"?kle:(0,Cle.useFunc)(e,o)}(${n}, ${r})`})}Qt.usePattern=Ole;function Rle(e){const{gen:t,data:n,keyword:r,it:o}=e,a=t.name("valid");if(o.allErrors){const s=t.let("valid",!0);return i(()=>t.assign(s,!1)),s}return t.var(a,!0),i(()=>t.break()),a;function i(s){const l=t.const("len",(0,Nn._)`${n}.length`);t.forRange("i",0,l,c=>{e.subschema({keyword:r,dataProp:c,dataPropType:nS.Type.Num},a),t.if((0,Nn.not)(a),s)})}}Qt.validateArray=Rle;function Dle(e){const{gen:t,schema:n,keyword:r,it:o}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some(l=>(0,nS.alwaysValidSchema)(o,l))&&!o.opts.unevaluated)return;const i=t.let("valid",!1),s=t.name("_valid");t.block(()=>n.forEach((l,c)=>{const u=e.subschema({keyword:r,schemaProp:c,compositeRule:!0},s);t.assign(i,(0,Nn._)`${i} || ${s}`),e.mergeValidEvaluated(u,s)||t.if((0,Nn.not)(i))})),e.result(i,()=>e.reset(),()=>e.error(!0))}Qt.validateUnion=Dle;Object.defineProperty(fi,"__esModule",{value:!0});fi.validateKeywordUsage=fi.validSchemaType=fi.funcKeywordCode=fi.macroKeywordCode=void 0;const no=Jt,kl=Si,Mle=Qt,Ile=Jp;function Ale(e,t){const{gen:n,keyword:r,schema:o,parentSchema:a,it:i}=e,s=t.macro.call(i.self,o,a,i),l=q3(n,r,s);i.opts.validateSchema!==!1&&i.self.validateSchema(s,!0);const c=n.name("valid");e.subschema({schema:s,schemaPath:no.nil,errSchemaPath:`${i.errSchemaPath}/${r}`,topSchemaRef:l,compositeRule:!0},c),e.pass(c,()=>e.error(!0))}fi.macroKeywordCode=Ale;function Nle(e,t){var n;const{gen:r,keyword:o,schema:a,parentSchema:i,$data:s,it:l}=e;Lle(l,t);const c=!s&&t.compile?t.compile.call(l.self,a,i,l):t.validate,u=q3(r,o,c),f=r.let("valid");e.block$data(f,p),e.ok((n=t.valid)!==null&&n!==void 0?n:f);function p(){if(t.errors===!1)v(),t.modifying&&FO(e),w(()=>e.error());else{const g=t.async?m():b();t.modifying&&FO(e),w(()=>jle(e,g))}}function m(){const g=r.let("ruleErrs",null);return r.try(()=>v((0,no._)`await `),y=>r.assign(f,!1).if((0,no._)`${y} instanceof ${l.ValidationError}`,()=>r.assign(g,(0,no._)`${y}.errors`),()=>r.throw(y))),g}function b(){const g=(0,no._)`${u}.errors`;return r.assign(g,null),v(no.nil),g}function v(g=t.async?(0,no._)`await `:no.nil){const y=l.opts.passContext?kl.default.this:kl.default.self,x=!("compile"in t&&!s||t.schema===!1);r.assign(f,(0,no._)`${g}${(0,Mle.callValidateCode)(e,u,y,x)}`,t.modifying)}function w(g){var y;r.if((0,no.not)((y=t.valid)!==null&&y!==void 0?y:f),g)}}fi.funcKeywordCode=Nle;function FO(e){const{gen:t,data:n,it:r}=e;t.if(r.parentData,()=>t.assign(n,(0,no._)`${r.parentData}[${r.parentDataProperty}]`))}function jle(e,t){const{gen:n}=e;n.if((0,no._)`Array.isArray(${t})`,()=>{n.assign(kl.default.vErrors,(0,no._)`${kl.default.vErrors} === null ? ${t} : ${kl.default.vErrors}.concat(${t})`).assign(kl.default.errors,(0,no._)`${kl.default.vErrors}.length`),(0,Ile.extendErrors)(e)},()=>e.error())}function Lle({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function q3(e,t,n){if(n===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof n=="function"?{ref:n}:{ref:n,code:(0,no.stringify)(n)})}function Fle(e,t,n=!1){return!t.length||t.some(r=>r==="array"?Array.isArray(e):r==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==r||n&&typeof e>"u")}fi.validSchemaType=Fle;function zle({schema:e,opts:t,self:n,errSchemaPath:r},o,a){if(Array.isArray(o.keyword)?!o.keyword.includes(a):o.keyword!==a)throw new Error("ajv implementation error");const i=o.dependencies;if(i!=null&&i.some(s=>!Object.prototype.hasOwnProperty.call(e,s)))throw new Error(`parent schema must have dependencies of ${a}: ${i.join(",")}`);if(o.validateSchema&&!o.validateSchema(e[a])){const l=`keyword "${a}" value is invalid at path "${r}": `+n.errorsText(o.validateSchema.errors);if(t.validateSchema==="log")n.logger.error(l);else throw new Error(l)}}fi.validateKeywordUsage=zle;var Ws={};Object.defineProperty(Ws,"__esModule",{value:!0});Ws.extendSubschemaMode=Ws.extendSubschemaData=Ws.getSubschema=void 0;const li=Jt,Y3=dn;function Ble(e,{keyword:t,schemaProp:n,schema:r,schemaPath:o,errSchemaPath:a,topSchemaRef:i}){if(t!==void 0&&r!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){const s=e.schema[t];return n===void 0?{schema:s,schemaPath:(0,li._)`${e.schemaPath}${(0,li.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:s[n],schemaPath:(0,li._)`${e.schemaPath}${(0,li.getProperty)(t)}${(0,li.getProperty)(n)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,Y3.escapeFragment)(n)}`}}if(r!==void 0){if(o===void 0||a===void 0||i===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:r,schemaPath:o,topSchemaRef:i,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')}Ws.getSubschema=Ble;function Vle(e,t,{dataProp:n,dataPropType:r,data:o,dataTypes:a,propertyName:i}){if(o!==void 0&&n!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:s}=t;if(n!==void 0){const{errorPath:c,dataPathArr:u,opts:f}=t,p=s.let("data",(0,li._)`${t.data}${(0,li.getProperty)(n)}`,!0);l(p),e.errorPath=(0,li.str)`${c}${(0,Y3.getErrorPath)(n,r,f.jsPropertySyntax)}`,e.parentDataProperty=(0,li._)`${n}`,e.dataPathArr=[...u,e.parentDataProperty]}if(o!==void 0){const c=o instanceof li.Name?o:s.let("data",o,!0);l(c),i!==void 0&&(e.propertyName=i)}a&&(e.dataTypes=a);function l(c){e.data=c,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,c]}}Ws.extendSubschemaData=Vle;function Ule(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:o,allErrors:a}){r!==void 0&&(e.compositeRule=r),o!==void 0&&(e.createErrors=o),a!==void 0&&(e.allErrors=a),e.jtdDiscriminator=t,e.jtdMetadata=n}Ws.extendSubschemaMode=Ule;var Mr={},K3=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,o,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(o=r;o--!==0;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[o]))return!1;for(o=r;o--!==0;){var i=a[o];if(!e(t[i],n[i]))return!1}return!0}return t!==t&&n!==n},J3={exports:{}},Ds=J3.exports=function(e,t,n){typeof t=="function"&&(n=t,t={}),n=t.cb||n;var r=typeof n=="function"?n:n.pre||function(){},o=n.post||function(){};xv(t,r,o,e,"",e)};Ds.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Ds.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Ds.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Ds.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function xv(e,t,n,r,o,a,i,s,l,c){if(r&&typeof r=="object"&&!Array.isArray(r)){t(r,o,a,i,s,l,c);for(var u in r){var f=r[u];if(Array.isArray(f)){if(u in Ds.arrayKeywords)for(var p=0;pt+=Z3(r)),t===1/0))return 1/0}return t}function X3(e,t="",n){n!==!1&&(t=Su(t));const r=e.parse(t);return Q3(e,r)}Mr.getFullPath=X3;function Q3(e,t){return e.serialize(t).split("#")[0]+"#"}Mr._getFullPath=Q3;const Xle=/#\/?$/;function Su(e){return e?e.replace(Xle,""):""}Mr.normalizeId=Su;function Qle(e,t,n){return n=Su(n),e.resolve(t,n)}Mr.resolveUrl=Qle;const ece=/^[a-z_][-a-z0-9._]*$/i;function tce(e,t){if(typeof e=="boolean")return{};const{schemaId:n,uriResolver:r}=this.opts,o=Su(e[n]||t),a={"":o},i=X3(r,o,!1),s={},l=new Set;return Yle(e,{allKeys:!0},(f,p,m,b)=>{if(b===void 0)return;const v=i+p;let w=a[b];typeof f[n]=="string"&&(w=g.call(this,f[n])),y.call(this,f.$anchor),y.call(this,f.$dynamicAnchor),a[p]=w;function g(x){const C=this.opts.uriResolver.resolve;if(x=Su(w?C(w,x):x),l.has(x))throw u(x);l.add(x);let _=this.refs[x];return typeof _=="string"&&(_=this.refs[_]),typeof _=="object"?c(f,_.schema,x):x!==Su(v)&&(x[0]==="#"?(c(f,s[x],x),s[x]=f):this.refs[x]=v),x}function y(x){if(typeof x=="string"){if(!ece.test(x))throw new Error(`invalid anchor "${x}"`);g.call(this,`#${x}`)}}}),s;function c(f,p,m){if(p!==void 0&&!qle(f,p))throw u(m)}function u(f){return new Error(`reference "${f}" resolves to more than one schema`)}}Mr.getSchemaRefs=tce;Object.defineProperty(Va,"__esModule",{value:!0});Va.getData=Va.KeywordCxt=Va.validateFunctionCode=void 0;const ej=Fu,zO=Zp,aS=Hi,fg=Zp,nce=gy,jf=fi,Gb=Ws,St=Jt,Lt=Si,rce=Mr,Gi=dn,Qd=Jp;function oce(e){if(rj(e)&&(oj(e),nj(e))){sce(e);return}tj(e,()=>(0,ej.topBoolOrEmptySchema)(e))}Va.validateFunctionCode=oce;function tj({gen:e,validateName:t,schema:n,schemaEnv:r,opts:o},a){o.code.es5?e.func(t,(0,St._)`${Lt.default.data}, ${Lt.default.valCxt}`,r.$async,()=>{e.code((0,St._)`"use strict"; ${BO(n,o)}`),ice(e,o),e.code(a)}):e.func(t,(0,St._)`${Lt.default.data}, ${ace(o)}`,r.$async,()=>e.code(BO(n,o)).code(a))}function ace(e){return(0,St._)`{${Lt.default.instancePath}="", ${Lt.default.parentData}, ${Lt.default.parentDataProperty}, ${Lt.default.rootData}=${Lt.default.data}${e.dynamicRef?(0,St._)`, ${Lt.default.dynamicAnchors}={}`:St.nil}}={}`}function ice(e,t){e.if(Lt.default.valCxt,()=>{e.var(Lt.default.instancePath,(0,St._)`${Lt.default.valCxt}.${Lt.default.instancePath}`),e.var(Lt.default.parentData,(0,St._)`${Lt.default.valCxt}.${Lt.default.parentData}`),e.var(Lt.default.parentDataProperty,(0,St._)`${Lt.default.valCxt}.${Lt.default.parentDataProperty}`),e.var(Lt.default.rootData,(0,St._)`${Lt.default.valCxt}.${Lt.default.rootData}`),t.dynamicRef&&e.var(Lt.default.dynamicAnchors,(0,St._)`${Lt.default.valCxt}.${Lt.default.dynamicAnchors}`)},()=>{e.var(Lt.default.instancePath,(0,St._)`""`),e.var(Lt.default.parentData,(0,St._)`undefined`),e.var(Lt.default.parentDataProperty,(0,St._)`undefined`),e.var(Lt.default.rootData,Lt.default.data),t.dynamicRef&&e.var(Lt.default.dynamicAnchors,(0,St._)`{}`)})}function sce(e){const{schema:t,opts:n,gen:r}=e;tj(e,()=>{n.$comment&&t.$comment&&ij(e),fce(e),r.let(Lt.default.vErrors,null),r.let(Lt.default.errors,0),n.unevaluated&&lce(e),aj(e),mce(e)})}function lce(e){const{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",(0,St._)`${n}.evaluated`),t.if((0,St._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,St._)`${e.evaluated}.props`,(0,St._)`undefined`)),t.if((0,St._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,St._)`${e.evaluated}.items`,(0,St._)`undefined`))}function BO(e,t){const n=typeof e=="object"&&e[t.schemaId];return n&&(t.code.source||t.code.process)?(0,St._)`/*# sourceURL=${n} */`:St.nil}function cce(e,t){if(rj(e)&&(oj(e),nj(e))){uce(e,t);return}(0,ej.boolOrEmptySchema)(e,t)}function nj({schema:e,self:t}){if(typeof e=="boolean")return!e;for(const n in e)if(t.RULES.all[n])return!0;return!1}function rj(e){return typeof e.schema!="boolean"}function uce(e,t){const{schema:n,gen:r,opts:o}=e;o.$comment&&n.$comment&&ij(e),pce(e),hce(e);const a=r.const("_errs",Lt.default.errors);aj(e,a),r.var(t,(0,St._)`${a} === ${Lt.default.errors}`)}function oj(e){(0,Gi.checkUnknownRules)(e),dce(e)}function aj(e,t){if(e.opts.jtd)return VO(e,[],!1,t);const n=(0,zO.getSchemaTypes)(e.schema),r=(0,zO.coerceAndCheckDataType)(e,n);VO(e,n,!r,t)}function dce(e){const{schema:t,errSchemaPath:n,opts:r,self:o}=e;t.$ref&&r.ignoreKeywordsWithRef&&(0,Gi.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}function fce(e){const{schema:t,opts:n}=e;t.default!==void 0&&n.useDefaults&&n.strictSchema&&(0,Gi.checkStrictMode)(e,"default is ignored in the schema root")}function pce(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,rce.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function hce(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function ij({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:o}){const a=n.$comment;if(o.$comment===!0)e.code((0,St._)`${Lt.default.self}.logger.log(${a})`);else if(typeof o.$comment=="function"){const i=(0,St.str)`${r}/$comment`,s=e.scopeValue("root",{ref:t.root});e.code((0,St._)`${Lt.default.self}.opts.$comment(${a}, ${i}, ${s}.schema)`)}}function mce(e){const{gen:t,schemaEnv:n,validateName:r,ValidationError:o,opts:a}=e;n.$async?t.if((0,St._)`${Lt.default.errors} === 0`,()=>t.return(Lt.default.data),()=>t.throw((0,St._)`new ${o}(${Lt.default.vErrors})`)):(t.assign((0,St._)`${r}.errors`,Lt.default.vErrors),a.unevaluated&&vce(e),t.return((0,St._)`${Lt.default.errors} === 0`))}function vce({gen:e,evaluated:t,props:n,items:r}){n instanceof St.Name&&e.assign((0,St._)`${t}.props`,n),r instanceof St.Name&&e.assign((0,St._)`${t}.items`,r)}function VO(e,t,n,r){const{gen:o,schema:a,data:i,allErrors:s,opts:l,self:c}=e,{RULES:u}=c;if(a.$ref&&(l.ignoreKeywordsWithRef||!(0,Gi.schemaHasRulesButRef)(a,u))){o.block(()=>cj(e,"$ref",u.all.$ref.definition));return}l.jtd||gce(e,t),o.block(()=>{for(const p of u.rules)f(p);f(u.post)});function f(p){(0,aS.shouldUseGroup)(a,p)&&(p.type?(o.if((0,fg.checkDataType)(p.type,i,l.strictNumbers)),UO(e,p),t.length===1&&t[0]===p.type&&n&&(o.else(),(0,fg.reportTypeError)(e)),o.endIf()):UO(e,p),s||o.if((0,St._)`${Lt.default.errors} === ${r||0}`))}}function UO(e,t){const{gen:n,schema:r,opts:{useDefaults:o}}=e;o&&(0,nce.assignDefaults)(e,t.type),n.block(()=>{for(const a of t.rules)(0,aS.shouldUseRule)(r,a)&&cj(e,a.keyword,a.definition,t.type)})}function gce(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(yce(e,t),e.opts.allowUnionTypes||bce(e,t),xce(e,e.dataTypes))}function yce(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(n=>{sj(e.dataTypes,n)||iS(e,`type "${n}" not allowed by context "${e.dataTypes.join(",")}"`)}),Cce(e,t)}}function bce(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&iS(e,"use allowUnionTypes to allow union type keyword")}function xce(e,t){const n=e.self.RULES.all;for(const r in n){const o=n[r];if(typeof o=="object"&&(0,aS.shouldUseRule)(e.schema,o)){const{type:a}=o.definition;a.length&&!a.some(i=>wce(t,i))&&iS(e,`missing type "${a.join(",")}" for keyword "${r}"`)}}}function wce(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function sj(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function Cce(e,t){const n=[];for(const r of e.dataTypes)sj(t,r)?n.push(r):t.includes("integer")&&r==="number"&&n.push("integer");e.dataTypes=n}function iS(e,t){const n=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${n}" (strictTypes)`,(0,Gi.checkStrictMode)(e,t,e.opts.strictTypes)}class lj{constructor(t,n,r){if((0,jf.validateKeywordUsage)(t,n,r),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=r,this.data=t.data,this.schema=t.schema[r],this.$data=n.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Gi.schemaRefOrVal)(t,this.schema,r,this.$data),this.schemaType=n.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=n,this.$data)this.schemaCode=t.gen.const("vSchema",uj(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,jf.validSchemaType)(this.schema,n.schemaType,n.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(n.schemaType)}`);("code"in n?n.trackErrors:n.errors!==!1)&&(this.errsCount=t.gen.const("_errs",Lt.default.errors))}result(t,n,r){this.failResult((0,St.not)(t),n,r)}failResult(t,n,r){this.gen.if(t),r?r():this.error(),n?(this.gen.else(),n(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,n){this.failResult((0,St.not)(t),void 0,n)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);const{schemaCode:n}=this;this.fail((0,St._)`${n} !== undefined && (${(0,St.or)(this.invalid$data(),t)})`)}error(t,n,r){if(n){this.setParams(n),this._error(t,r),this.setParams({});return}this._error(t,r)}_error(t,n){(t?Qd.reportExtraError:Qd.reportError)(this,this.def.error,n)}$dataError(){(0,Qd.reportError)(this,this.def.$dataError||Qd.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Qd.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,n){n?Object.assign(this.params,t):this.params=t}block$data(t,n,r=St.nil){this.gen.block(()=>{this.check$data(t,r),n()})}check$data(t=St.nil,n=St.nil){if(!this.$data)return;const{gen:r,schemaCode:o,schemaType:a,def:i}=this;r.if((0,St.or)((0,St._)`${o} === undefined`,n)),t!==St.nil&&r.assign(t,!0),(a.length||i.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),t!==St.nil&&r.assign(t,!1)),r.else()}invalid$data(){const{gen:t,schemaCode:n,schemaType:r,def:o,it:a}=this;return(0,St.or)(i(),s());function i(){if(r.length){if(!(n instanceof St.Name))throw new Error("ajv implementation error");const l=Array.isArray(r)?r:[r];return(0,St._)`${(0,fg.checkDataTypes)(l,n,a.opts.strictNumbers,fg.DataType.Wrong)}`}return St.nil}function s(){if(o.validateSchema){const l=t.scopeValue("validate$data",{ref:o.validateSchema});return(0,St._)`!${l}(${n})`}return St.nil}}subschema(t,n){const r=(0,Gb.getSubschema)(this.it,t);(0,Gb.extendSubschemaData)(r,this.it,t),(0,Gb.extendSubschemaMode)(r,t);const o={...this.it,...r,items:void 0,props:void 0};return cce(o,n),o}mergeEvaluated(t,n){const{it:r,gen:o}=this;r.opts.unevaluated&&(r.props!==!0&&t.props!==void 0&&(r.props=Gi.mergeEvaluated.props(o,t.props,r.props,n)),r.items!==!0&&t.items!==void 0&&(r.items=Gi.mergeEvaluated.items(o,t.items,r.items,n)))}mergeValidEvaluated(t,n){const{it:r,gen:o}=this;if(r.opts.unevaluated&&(r.props!==!0||r.items!==!0))return o.if(n,()=>this.mergeEvaluated(t,St.Name)),!0}}Va.KeywordCxt=lj;function cj(e,t,n,r){const o=new lj(e,n,t);"code"in n?n.code(o,r):o.$data&&n.validate?(0,jf.funcKeywordCode)(o,n):"macro"in n?(0,jf.macroKeywordCode)(o,n):(n.compile||n.validate)&&(0,jf.funcKeywordCode)(o,n)}const $ce=/^\/(?:[^~]|~0|~1)*$/,Sce=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function uj(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let o,a;if(e==="")return Lt.default.rootData;if(e[0]==="/"){if(!$ce.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,a=Lt.default.rootData}else{const c=Sce.exec(e);if(!c)throw new Error(`Invalid JSON-pointer: ${e}`);const u=+c[1];if(o=c[2],o==="#"){if(u>=t)throw new Error(l("property/index",u));return r[t-u]}if(u>t)throw new Error(l("data",u));if(a=n[t-u],!o)return a}let i=a;const s=o.split("/");for(const c of s)c&&(a=(0,St._)`${a}${(0,St.getProperty)((0,Gi.unescapeJsonPointer)(c))}`,i=(0,St._)`${i} && ${a}`);return i;function l(c,u){return`Cannot access ${c} ${u} levels up, current level is ${t}`}}Va.getData=uj;var Xp={};Object.defineProperty(Xp,"__esModule",{value:!0});class _ce extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}Xp.default=_ce;var Qp={};Object.defineProperty(Qp,"__esModule",{value:!0});const qb=Mr;class Ece extends Error{constructor(t,n,r,o){super(o||`can't resolve reference ${r} from id ${n}`),this.missingRef=(0,qb.resolveUrl)(t,n,r),this.missingSchema=(0,qb.normalizeId)((0,qb.getFullPath)(t,this.missingRef))}}Qp.default=Ece;var vo={};Object.defineProperty(vo,"__esModule",{value:!0});vo.resolveSchema=vo.getCompilingSchema=vo.resolveRef=vo.compileSchema=vo.SchemaEnv=void 0;const Ta=Jt,Pce=Xp,yl=Si,Aa=Mr,WO=dn,Tce=Va;class yy{constructor(t){var n;this.refs={},this.dynamicAnchors={};let r;typeof t.schema=="object"&&(r=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(n=t.baseId)!==null&&n!==void 0?n:(0,Aa.normalizeId)(r==null?void 0:r[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=r==null?void 0:r.$async,this.refs={}}}vo.SchemaEnv=yy;function sS(e){const t=dj.call(this,e);if(t)return t;const n=(0,Aa.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:r,lines:o}=this.opts.code,{ownProperties:a}=this.opts,i=new Ta.CodeGen(this.scope,{es5:r,lines:o,ownProperties:a});let s;e.$async&&(s=i.scopeValue("Error",{ref:Pce.default,code:(0,Ta._)`require("ajv/dist/runtime/validation_error").default`}));const l=i.scopeName("validate");e.validateName=l;const c={gen:i,allErrors:this.opts.allErrors,data:yl.default.data,parentData:yl.default.parentData,parentDataProperty:yl.default.parentDataProperty,dataNames:[yl.default.data],dataPathArr:[Ta.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Ta.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:Ta.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Ta._)`""`,opts:this.opts,self:this};let u;try{this._compilations.add(e),(0,Tce.validateFunctionCode)(c),i.optimize(this.opts.code.optimize);const f=i.toString();u=`${i.scopeRefs(yl.default.scope)}return ${f}`,this.opts.code.process&&(u=this.opts.code.process(u,e));const m=new Function(`${yl.default.self}`,`${yl.default.scope}`,u)(this,this.scope.get());if(this.scope.value(l,{ref:m}),m.errors=null,m.schema=e.schema,m.schemaEnv=e,e.$async&&(m.$async=!0),this.opts.code.source===!0&&(m.source={validateName:l,validateCode:f,scopeValues:i._values}),this.opts.unevaluated){const{props:b,items:v}=c;m.evaluated={props:b instanceof Ta.Name?void 0:b,items:v instanceof Ta.Name?void 0:v,dynamicProps:b instanceof Ta.Name,dynamicItems:v instanceof Ta.Name},m.source&&(m.source.evaluated=(0,Ta.stringify)(m.evaluated))}return e.validate=m,e}catch(f){throw delete e.validate,delete e.validateName,u&&this.logger.error("Error compiling schema, function code:",u),f}finally{this._compilations.delete(e)}}vo.compileSchema=sS;function kce(e,t,n){var r;n=(0,Aa.resolveUrl)(this.opts.uriResolver,t,n);const o=e.refs[n];if(o)return o;let a=Dce.call(this,e,n);if(a===void 0){const i=(r=e.localRefs)===null||r===void 0?void 0:r[n],{schemaId:s}=this.opts;i&&(a=new yy({schema:i,schemaId:s,root:e,baseId:t}))}if(a!==void 0)return e.refs[n]=Oce.call(this,a)}vo.resolveRef=kce;function Oce(e){return(0,Aa.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:sS.call(this,e)}function dj(e){for(const t of this._compilations)if(Rce(t,e))return t}vo.getCompilingSchema=dj;function Rce(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function Dce(e,t){let n;for(;typeof(n=this.refs[t])=="string";)t=n;return n||this.schemas[t]||by.call(this,e,t)}function by(e,t){const n=this.opts.uriResolver.parse(t),r=(0,Aa._getFullPath)(this.opts.uriResolver,n);let o=(0,Aa.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===o)return Yb.call(this,n,e);const a=(0,Aa.normalizeId)(r),i=this.refs[a]||this.schemas[a];if(typeof i=="string"){const s=by.call(this,e,i);return typeof(s==null?void 0:s.schema)!="object"?void 0:Yb.call(this,n,s)}if(typeof(i==null?void 0:i.schema)=="object"){if(i.validate||sS.call(this,i),a===(0,Aa.normalizeId)(t)){const{schema:s}=i,{schemaId:l}=this.opts,c=s[l];return c&&(o=(0,Aa.resolveUrl)(this.opts.uriResolver,o,c)),new yy({schema:s,schemaId:l,root:e,baseId:o})}return Yb.call(this,n,i)}}vo.resolveSchema=by;const Mce=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Yb(e,{baseId:t,schema:n,root:r}){var o;if(((o=e.fragment)===null||o===void 0?void 0:o[0])!=="/")return;for(const s of e.fragment.slice(1).split("/")){if(typeof n=="boolean")return;const l=n[(0,WO.unescapeFragment)(s)];if(l===void 0)return;n=l;const c=typeof n=="object"&&n[this.opts.schemaId];!Mce.has(s)&&c&&(t=(0,Aa.resolveUrl)(this.opts.uriResolver,t,c))}let a;if(typeof n!="boolean"&&n.$ref&&!(0,WO.schemaHasRulesButRef)(n,this.RULES)){const s=(0,Aa.resolveUrl)(this.opts.uriResolver,t,n.$ref);a=by.call(this,r,s)}const{schemaId:i}=this.opts;if(a=a||new yy({schema:n,schemaId:i,root:r,baseId:t}),a.schema!==a.root.schema)return a}const Ice="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",Ace="Meta-schema for $data reference (JSON AnySchema extension proposal)",Nce="object",jce=["$data"],Lce={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},Fce=!1,zce={$id:Ice,description:Ace,type:Nce,required:jce,properties:Lce,additionalProperties:Fce};var lS={},Bw={exports:{}};/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */(function(e,t){(function(n,r){r(t)})(go,function(n){function r(){for(var se=arguments.length,oe=Array(se),ue=0;ue1){oe[0]=oe[0].slice(0,-1);for(var ke=oe.length-1,Ee=1;Ee= 0x80 (not a basic code point)","invalid-input":"Invalid input"},F=v-w,U=Math.floor,G=String.fromCharCode;function z(se){throw new RangeError(D[se])}function B(se,oe){for(var ue=[],ke=se.length;ke--;)ue[ke]=oe(se[ke]);return ue}function Y(se,oe){var ue=se.split("@"),ke="";ue.length>1&&(ke=ue[0]+"@",se=ue[1]),se=se.replace(I,".");var Ee=se.split("."),pt=B(Ee,oe).join(".");return ke+pt}function Q(se){for(var oe=[],ue=0,ke=se.length;ue=55296&&Ee<=56319&&ue>1,oe+=U(oe/ue);oe>F*g>>1;Ee+=v)oe=U(oe/F);return U(Ee+(F+1)*oe/(oe+y))},K=function(oe){var ue=[],ke=oe.length,Ee=0,pt=_,me=C,pe=oe.lastIndexOf($);pe<0&&(pe=0);for(var De=0;De=128&&z("not-basic"),ue.push(oe.charCodeAt(De));for(var nt=pe>0?pe+1:0;nt=ke&&z("invalid-input");var ut=J(oe.charCodeAt(nt++));(ut>=v||ut>U((b-Ee)/xt))&&z("overflow"),Ee+=ut*xt;var yt=Nt<=me?w:Nt>=me+g?g:Nt-me;if(utU(b/Wt)&&z("overflow"),xt*=Wt}var En=ue.length+1;me=L(Ee-lt,En,lt==0),U(Ee/En)>b-pt&&z("overflow"),pt+=U(Ee/En),Ee%=En,ue.splice(Ee++,0,pt)}return String.fromCodePoint.apply(String,ue)},q=function(oe){var ue=[];oe=Q(oe);var ke=oe.length,Ee=_,pt=0,me=C,pe=!0,De=!1,nt=void 0;try{for(var lt=oe[Symbol.iterator](),xt;!(pe=(xt=lt.next()).done);pe=!0){var Nt=xt.value;Nt<128&&ue.push(G(Nt))}}catch(lo){De=!0,nt=lo}finally{try{!pe&<.return&<.return()}finally{if(De)throw nt}}var ut=ue.length,yt=ut;for(ut&&ue.push($);yt=Ee&&KaU((b-pt)/Kr)&&z("overflow"),pt+=(Wt-Ee)*Kr,Ee=Wt;var Ro=!0,Ja=!1,Un=void 0;try{for(var cl=oe[Symbol.iterator](),Jr;!(Ro=(Jr=cl.next()).done);Ro=!0){var xh=Jr.value;if(xhb&&z("overflow"),xh==Ee){for(var ul=pt,Do=v;;Do+=v){var Ti=Do<=me?w:Do>=me+g?g:Do-me;if(ul>6|192).toString(16).toUpperCase()+"%"+(oe&63|128).toString(16).toUpperCase():ue="%"+(oe>>12|224).toString(16).toUpperCase()+"%"+(oe>>6&63|128).toString(16).toUpperCase()+"%"+(oe&63|128).toString(16).toUpperCase(),ue}function le(se){for(var oe="",ue=0,ke=se.length;ue=194&&Ee<224){if(ke-ue>=6){var pt=parseInt(se.substr(ue+4,2),16);oe+=String.fromCharCode((Ee&31)<<6|pt&63)}else oe+=se.substr(ue,6);ue+=6}else if(Ee>=224){if(ke-ue>=9){var me=parseInt(se.substr(ue+4,2),16),pe=parseInt(se.substr(ue+7,2),16);oe+=String.fromCharCode((Ee&15)<<12|(me&63)<<6|pe&63)}else oe+=se.substr(ue,9);ue+=9}else oe+=se.substr(ue,3),ue+=3}return oe}function xe(se,oe){function ue(ke){var Ee=le(ke);return Ee.match(oe.UNRESERVED)?Ee:ke}return se.scheme&&(se.scheme=String(se.scheme).replace(oe.PCT_ENCODED,ue).toLowerCase().replace(oe.NOT_SCHEME,"")),se.userinfo!==void 0&&(se.userinfo=String(se.userinfo).replace(oe.PCT_ENCODED,ue).replace(oe.NOT_USERINFO,re).replace(oe.PCT_ENCODED,i)),se.host!==void 0&&(se.host=String(se.host).replace(oe.PCT_ENCODED,ue).toLowerCase().replace(oe.NOT_HOST,re).replace(oe.PCT_ENCODED,i)),se.path!==void 0&&(se.path=String(se.path).replace(oe.PCT_ENCODED,ue).replace(se.scheme?oe.NOT_PATH:oe.NOT_PATH_NOSCHEME,re).replace(oe.PCT_ENCODED,i)),se.query!==void 0&&(se.query=String(se.query).replace(oe.PCT_ENCODED,ue).replace(oe.NOT_QUERY,re).replace(oe.PCT_ENCODED,i)),se.fragment!==void 0&&(se.fragment=String(se.fragment).replace(oe.PCT_ENCODED,ue).replace(oe.NOT_FRAGMENT,re).replace(oe.PCT_ENCODED,i)),se}function fe(se){return se.replace(/^0*(.*)/,"$1")||"0"}function ge(se,oe){var ue=se.match(oe.IPV4ADDRESS)||[],ke=p(ue,2),Ee=ke[1];return Ee?Ee.split(".").map(fe).join("."):se}function he(se,oe){var ue=se.match(oe.IPV6ADDRESS)||[],ke=p(ue,3),Ee=ke[1],pt=ke[2];if(Ee){for(var me=Ee.toLowerCase().split("::").reverse(),pe=p(me,2),De=pe[0],nt=pe[1],lt=nt?nt.split(":").map(fe):[],xt=De.split(":").map(fe),Nt=oe.IPV4ADDRESS.test(xt[xt.length-1]),ut=Nt?7:8,yt=xt.length-ut,Wt=Array(ut),En=0;En1){var Pi=Wt.slice(0,Vn.index),Ka=Wt.slice(Vn.index+Vn.length);Oo=Pi.join(":")+"::"+Ka.join(":")}else Oo=Wt.join(":");return pt&&(Oo+="%"+pt),Oo}else return se}var _e=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,ve="".match(/(){0}/)[1]===void 0;function Be(se){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ue={},ke=oe.iri!==!1?f:u;oe.reference==="suffix"&&(se=(oe.scheme?oe.scheme+":":"")+"//"+se);var Ee=se.match(_e);if(Ee){ve?(ue.scheme=Ee[1],ue.userinfo=Ee[3],ue.host=Ee[4],ue.port=parseInt(Ee[5],10),ue.path=Ee[6]||"",ue.query=Ee[7],ue.fragment=Ee[8],isNaN(ue.port)&&(ue.port=Ee[5])):(ue.scheme=Ee[1]||void 0,ue.userinfo=se.indexOf("@")!==-1?Ee[3]:void 0,ue.host=se.indexOf("//")!==-1?Ee[4]:void 0,ue.port=parseInt(Ee[5],10),ue.path=Ee[6]||"",ue.query=se.indexOf("?")!==-1?Ee[7]:void 0,ue.fragment=se.indexOf("#")!==-1?Ee[8]:void 0,isNaN(ue.port)&&(ue.port=se.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Ee[4]:void 0)),ue.host&&(ue.host=he(ge(ue.host,ke),ke)),ue.scheme===void 0&&ue.userinfo===void 0&&ue.host===void 0&&ue.port===void 0&&!ue.path&&ue.query===void 0?ue.reference="same-document":ue.scheme===void 0?ue.reference="relative":ue.fragment===void 0?ue.reference="absolute":ue.reference="uri",oe.reference&&oe.reference!=="suffix"&&oe.reference!==ue.reference&&(ue.error=ue.error||"URI is not a "+oe.reference+" reference.");var pt=Z[(oe.scheme||ue.scheme||"").toLowerCase()];if(!oe.unicodeSupport&&(!pt||!pt.unicodeSupport)){if(ue.host&&(oe.domainHost||pt&&pt.domainHost))try{ue.host=V.toASCII(ue.host.replace(ke.PCT_ENCODED,le).toLowerCase())}catch(me){ue.error=ue.error||"Host's domain name can not be converted to ASCII via punycode: "+me}xe(ue,u)}else xe(ue,ke);pt&&pt.parse&&pt.parse(ue,oe)}else ue.error=ue.error||"URI can not be parsed.";return ue}function Ue(se,oe){var ue=oe.iri!==!1?f:u,ke=[];return se.userinfo!==void 0&&(ke.push(se.userinfo),ke.push("@")),se.host!==void 0&&ke.push(he(ge(String(se.host),ue),ue).replace(ue.IPV6ADDRESS,function(Ee,pt,me){return"["+pt+(me?"%25"+me:"")+"]"})),(typeof se.port=="number"||typeof se.port=="string")&&(ke.push(":"),ke.push(String(se.port))),ke.length?ke.join(""):void 0}var ze=/^\.\.?\//,He=/^\/\.(\/|$)/,be=/^\/\.\.(\/|$)/,we=/^\/?(?:.|\n)*?(?=\/|$)/;function Ce(se){for(var oe=[];se.length;)if(se.match(ze))se=se.replace(ze,"");else if(se.match(He))se=se.replace(He,"/");else if(se.match(be))se=se.replace(be,"/"),oe.pop();else if(se==="."||se==="..")se="";else{var ue=se.match(we);if(ue){var ke=ue[0];se=se.slice(ke.length),oe.push(ke)}else throw new Error("Unexpected dot segment condition")}return oe.join("")}function qe(se){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ue=oe.iri?f:u,ke=[],Ee=Z[(oe.scheme||se.scheme||"").toLowerCase()];if(Ee&&Ee.serialize&&Ee.serialize(se,oe),se.host&&!ue.IPV6ADDRESS.test(se.host)){if(oe.domainHost||Ee&&Ee.domainHost)try{se.host=oe.iri?V.toUnicode(se.host):V.toASCII(se.host.replace(ue.PCT_ENCODED,le).toLowerCase())}catch(pe){se.error=se.error||"Host's domain name can not be converted to "+(oe.iri?"Unicode":"ASCII")+" via punycode: "+pe}}xe(se,ue),oe.reference!=="suffix"&&se.scheme&&(ke.push(se.scheme),ke.push(":"));var pt=Ue(se,oe);if(pt!==void 0&&(oe.reference!=="suffix"&&ke.push("//"),ke.push(pt),se.path&&se.path.charAt(0)!=="/"&&ke.push("/")),se.path!==void 0){var me=se.path;!oe.absolutePath&&(!Ee||!Ee.absolutePath)&&(me=Ce(me)),pt===void 0&&(me=me.replace(/^\/\//,"/%2F")),ke.push(me)}return se.query!==void 0&&(ke.push("?"),ke.push(se.query)),se.fragment!==void 0&&(ke.push("#"),ke.push(se.fragment)),ke.join("")}function rt(se,oe){var ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ke=arguments[3],Ee={};return ke||(se=Be(qe(se,ue),ue),oe=Be(qe(oe,ue),ue)),ue=ue||{},!ue.tolerant&&oe.scheme?(Ee.scheme=oe.scheme,Ee.userinfo=oe.userinfo,Ee.host=oe.host,Ee.port=oe.port,Ee.path=Ce(oe.path||""),Ee.query=oe.query):(oe.userinfo!==void 0||oe.host!==void 0||oe.port!==void 0?(Ee.userinfo=oe.userinfo,Ee.host=oe.host,Ee.port=oe.port,Ee.path=Ce(oe.path||""),Ee.query=oe.query):(oe.path?(oe.path.charAt(0)==="/"?Ee.path=Ce(oe.path):((se.userinfo!==void 0||se.host!==void 0||se.port!==void 0)&&!se.path?Ee.path="/"+oe.path:se.path?Ee.path=se.path.slice(0,se.path.lastIndexOf("/")+1)+oe.path:Ee.path=oe.path,Ee.path=Ce(Ee.path)),Ee.query=oe.query):(Ee.path=se.path,oe.query!==void 0?Ee.query=oe.query:Ee.query=se.query),Ee.userinfo=se.userinfo,Ee.host=se.host,Ee.port=se.port),Ee.scheme=se.scheme),Ee.fragment=oe.fragment,Ee}function Ae(se,oe,ue){var ke=l({scheme:"null"},ue);return qe(rt(Be(se,ke),Be(oe,ke),ke,!0),ke)}function Le(se,oe){return typeof se=="string"?se=qe(Be(se,oe),oe):a(se)==="object"&&(se=Be(qe(se,oe),oe)),se}function Fe(se,oe,ue){return typeof se=="string"?se=qe(Be(se,ue),ue):a(se)==="object"&&(se=qe(se,ue)),typeof oe=="string"?oe=qe(Be(oe,ue),ue):a(oe)==="object"&&(oe=qe(oe,ue)),se===oe}function Pe(se,oe){return se&&se.toString().replace(!oe||!oe.iri?u.ESCAPE:f.ESCAPE,re)}function Te(se,oe){return se&&se.toString().replace(!oe||!oe.iri?u.PCT_ENCODED:f.PCT_ENCODED,le)}var it={scheme:"http",domainHost:!0,parse:function(oe,ue){return oe.host||(oe.error=oe.error||"HTTP URIs must have a host."),oe},serialize:function(oe,ue){var ke=String(oe.scheme).toLowerCase()==="https";return(oe.port===(ke?443:80)||oe.port==="")&&(oe.port=void 0),oe.path||(oe.path="/"),oe}},ct={scheme:"https",domainHost:it.domainHost,parse:it.parse,serialize:it.serialize};function gt(se){return typeof se.secure=="boolean"?se.secure:String(se.scheme).toLowerCase()==="wss"}var Ne={scheme:"ws",domainHost:!0,parse:function(oe,ue){var ke=oe;return ke.secure=gt(ke),ke.resourceName=(ke.path||"/")+(ke.query?"?"+ke.query:""),ke.path=void 0,ke.query=void 0,ke},serialize:function(oe,ue){if((oe.port===(gt(oe)?443:80)||oe.port==="")&&(oe.port=void 0),typeof oe.secure=="boolean"&&(oe.scheme=oe.secure?"wss":"ws",oe.secure=void 0),oe.resourceName){var ke=oe.resourceName.split("?"),Ee=p(ke,2),pt=Ee[0],me=Ee[1];oe.path=pt&&pt!=="/"?pt:void 0,oe.query=me,oe.resourceName=void 0}return oe.fragment=void 0,oe}},ne={scheme:"wss",domainHost:Ne.domainHost,parse:Ne.parse,serialize:Ne.serialize},te={},ie="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",$e="[0-9A-Fa-f]",Se=o(o("%[EFef]"+$e+"%"+$e+$e+"%"+$e+$e)+"|"+o("%[89A-Fa-f]"+$e+"%"+$e+$e)+"|"+o("%"+$e+$e)),Ze="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",tt="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",ft=r(tt,'[\\"\\\\]'),_t="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",vt=new RegExp(ie,"g"),dt=new RegExp(Se,"g"),Et=new RegExp(r("[^]",Ze,"[\\.]",'[\\"]',ft),"g"),Yt=new RegExp(r("[^]",ie,_t),"g"),kt=Yt;function ln(se){var oe=le(se);return oe.match(vt)?oe:se}var Vt={scheme:"mailto",parse:function(oe,ue){var ke=oe,Ee=ke.to=ke.path?ke.path.split(","):[];if(ke.path=void 0,ke.query){for(var pt=!1,me={},pe=ke.query.split("&"),De=0,nt=pe.length;Denew RegExp(X,L);m.code="new RegExp";const b=["removeAdditional","useDefaults","coerceTypes"],v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),w={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},g={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},y=200;function x(X){var L,K,q,R,N,V,Z,re,le,xe,fe,ge,he,_e,ve,Be,Ue,ze,He,be,we,Ce,qe,rt,Ae;const Le=X.strict,Fe=(L=X.code)===null||L===void 0?void 0:L.optimize,Pe=Fe===!0||Fe===void 0?1:Fe||0,Te=(q=(K=X.code)===null||K===void 0?void 0:K.regExp)!==null&&q!==void 0?q:m,it=(R=X.uriResolver)!==null&&R!==void 0?R:p.default;return{strictSchema:(V=(N=X.strictSchema)!==null&&N!==void 0?N:Le)!==null&&V!==void 0?V:!0,strictNumbers:(re=(Z=X.strictNumbers)!==null&&Z!==void 0?Z:Le)!==null&&re!==void 0?re:!0,strictTypes:(xe=(le=X.strictTypes)!==null&&le!==void 0?le:Le)!==null&&xe!==void 0?xe:"log",strictTuples:(ge=(fe=X.strictTuples)!==null&&fe!==void 0?fe:Le)!==null&&ge!==void 0?ge:"log",strictRequired:(_e=(he=X.strictRequired)!==null&&he!==void 0?he:Le)!==null&&_e!==void 0?_e:!1,code:X.code?{...X.code,optimize:Pe,regExp:Te}:{optimize:Pe,regExp:Te},loopRequired:(ve=X.loopRequired)!==null&&ve!==void 0?ve:y,loopEnum:(Be=X.loopEnum)!==null&&Be!==void 0?Be:y,meta:(Ue=X.meta)!==null&&Ue!==void 0?Ue:!0,messages:(ze=X.messages)!==null&&ze!==void 0?ze:!0,inlineRefs:(He=X.inlineRefs)!==null&&He!==void 0?He:!0,schemaId:(be=X.schemaId)!==null&&be!==void 0?be:"$id",addUsedSchema:(we=X.addUsedSchema)!==null&&we!==void 0?we:!0,validateSchema:(Ce=X.validateSchema)!==null&&Ce!==void 0?Ce:!0,validateFormats:(qe=X.validateFormats)!==null&&qe!==void 0?qe:!0,unicodeRegExp:(rt=X.unicodeRegExp)!==null&&rt!==void 0?rt:!0,int32range:(Ae=X.int32range)!==null&&Ae!==void 0?Ae:!0,uriResolver:it}}class C{constructor(L={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,L=this.opts={...L,...x(L)};const{es5:K,lines:q}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:v,es5:K,lines:q}),this.logger=U(L.logger);const R=L.validateFormats;L.validateFormats=!1,this.RULES=(0,a.getRules)(),_.call(this,w,L,"NOT SUPPORTED"),_.call(this,g,L,"DEPRECATED","warn"),this._metaOpts=D.call(this),L.formats&&k.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),L.keywords&&I.call(this,L.keywords),typeof L.meta=="object"&&this.addMetaSchema(L.meta),P.call(this),L.validateFormats=R}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:L,meta:K,schemaId:q}=this.opts;let R=f;q==="id"&&(R={...f},R.id=R.$id,delete R.$id),K&&L&&this.addMetaSchema(R,R[q],!1)}defaultMeta(){const{meta:L,schemaId:K}=this.opts;return this.opts.defaultMeta=typeof L=="object"?L[K]||L:void 0}validate(L,K){let q;if(typeof L=="string"){if(q=this.getSchema(L),!q)throw new Error(`no schema with key or ref "${L}"`)}else q=this.compile(L);const R=q(K);return"$async"in q||(this.errors=q.errors),R}compile(L,K){const q=this._addSchema(L,K);return q.validate||this._compileSchemaEnv(q)}compileAsync(L,K){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:q}=this.opts;return R.call(this,L,K);async function R(xe,fe){await N.call(this,xe.$schema);const ge=this._addSchema(xe,fe);return ge.validate||V.call(this,ge)}async function N(xe){xe&&!this.getSchema(xe)&&await R.call(this,{$ref:xe},!0)}async function V(xe){try{return this._compileSchemaEnv(xe)}catch(fe){if(!(fe instanceof o.default))throw fe;return Z.call(this,fe),await re.call(this,fe.missingSchema),V.call(this,xe)}}function Z({missingSchema:xe,missingRef:fe}){if(this.refs[xe])throw new Error(`AnySchema ${xe} is loaded but ${fe} cannot be resolved`)}async function re(xe){const fe=await le.call(this,xe);this.refs[xe]||await N.call(this,fe.$schema),this.refs[xe]||this.addSchema(fe,xe,K)}async function le(xe){const fe=this._loading[xe];if(fe)return fe;try{return await(this._loading[xe]=q(xe))}finally{delete this._loading[xe]}}}addSchema(L,K,q,R=this.opts.validateSchema){if(Array.isArray(L)){for(const V of L)this.addSchema(V,void 0,q,R);return this}let N;if(typeof L=="object"){const{schemaId:V}=this.opts;if(N=L[V],N!==void 0&&typeof N!="string")throw new Error(`schema ${V} must be string`)}return K=(0,l.normalizeId)(K||N),this._checkUnique(K),this.schemas[K]=this._addSchema(L,q,K,R,!0),this}addMetaSchema(L,K,q=this.opts.validateSchema){return this.addSchema(L,K,!0,q),this}validateSchema(L,K){if(typeof L=="boolean")return!0;let q;if(q=L.$schema,q!==void 0&&typeof q!="string")throw new Error("$schema must be a string");if(q=q||this.opts.defaultMeta||this.defaultMeta(),!q)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const R=this.validate(q,L);if(!R&&K){const N="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(N);else throw new Error(N)}return R}getSchema(L){let K;for(;typeof(K=$.call(this,L))=="string";)L=K;if(K===void 0){const{schemaId:q}=this.opts,R=new i.SchemaEnv({schema:{},schemaId:q});if(K=i.resolveSchema.call(this,R,L),!K)return;this.refs[L]=K}return K.validate||this._compileSchemaEnv(K)}removeSchema(L){if(L instanceof RegExp)return this._removeAllSchemas(this.schemas,L),this._removeAllSchemas(this.refs,L),this;switch(typeof L){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const K=$.call(this,L);return typeof K=="object"&&this._cache.delete(K.schema),delete this.schemas[L],delete this.refs[L],this}case"object":{const K=L;this._cache.delete(K);let q=L[this.opts.schemaId];return q&&(q=(0,l.normalizeId)(q),delete this.schemas[q],delete this.refs[q]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(L){for(const K of L)this.addKeyword(K);return this}addKeyword(L,K){let q;if(typeof L=="string")q=L,typeof K=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),K.keyword=q);else if(typeof L=="object"&&K===void 0){if(K=L,q=K.keyword,Array.isArray(q)&&!q.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(z.call(this,q,K),!K)return(0,u.eachItem)(q,N=>B.call(this,N)),this;Q.call(this,K);const R={...K,type:(0,c.getJSONTypes)(K.type),schemaType:(0,c.getJSONTypes)(K.schemaType)};return(0,u.eachItem)(q,R.type.length===0?N=>B.call(this,N,R):N=>R.type.forEach(V=>B.call(this,N,R,V))),this}getKeyword(L){const K=this.RULES.all[L];return typeof K=="object"?K.definition:!!K}removeKeyword(L){const{RULES:K}=this;delete K.keywords[L],delete K.all[L];for(const q of K.rules){const R=q.rules.findIndex(N=>N.keyword===L);R>=0&&q.rules.splice(R,1)}return this}addFormat(L,K){return typeof K=="string"&&(K=new RegExp(K)),this.formats[L]=K,this}errorsText(L=this.errors,{separator:K=", ",dataVar:q="data"}={}){return!L||L.length===0?"No errors":L.map(R=>`${q}${R.instancePath} ${R.message}`).reduce((R,N)=>R+K+N)}$dataMetaSchema(L,K){const q=this.RULES.all;L=JSON.parse(JSON.stringify(L));for(const R of K){const N=R.split("/").slice(1);let V=L;for(const Z of N)V=V[Z];for(const Z in q){const re=q[Z];if(typeof re!="object")continue;const{$data:le}=re.definition,xe=V[Z];le&&xe&&(V[Z]=J(xe))}}return L}_removeAllSchemas(L,K){for(const q in L){const R=L[q];(!K||K.test(q))&&(typeof R=="string"?delete L[q]:R&&!R.meta&&(this._cache.delete(R.schema),delete L[q]))}}_addSchema(L,K,q,R=this.opts.validateSchema,N=this.opts.addUsedSchema){let V;const{schemaId:Z}=this.opts;if(typeof L=="object")V=L[Z];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof L!="boolean")throw new Error("schema must be object or boolean")}let re=this._cache.get(L);if(re!==void 0)return re;q=(0,l.normalizeId)(V||q);const le=l.getSchemaRefs.call(this,L,q);return re=new i.SchemaEnv({schema:L,schemaId:Z,meta:K,baseId:q,localRefs:le}),this._cache.set(re.schema,re),N&&!q.startsWith("#")&&(q&&this._checkUnique(q),this.refs[q]=re),R&&this.validateSchema(L,!0),re}_checkUnique(L){if(this.schemas[L]||this.refs[L])throw new Error(`schema with key or id "${L}" already exists`)}_compileSchemaEnv(L){if(L.meta?this._compileMetaSchema(L):i.compileSchema.call(this,L),!L.validate)throw new Error("ajv implementation error");return L.validate}_compileMetaSchema(L){const K=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,L)}finally{this.opts=K}}}e.default=C,C.ValidationError=r.default,C.MissingRefError=o.default;function _(X,L,K,q="error"){for(const R in X){const N=R;N in L&&this.logger[q](`${K}: option ${R}. ${X[N]}`)}}function $(X){return X=(0,l.normalizeId)(X),this.schemas[X]||this.refs[X]}function P(){const X=this.opts.schemas;if(X)if(Array.isArray(X))this.addSchema(X);else for(const L in X)this.addSchema(X[L],L)}function k(){for(const X in this.opts.formats){const L=this.opts.formats[X];L&&this.addFormat(X,L)}}function I(X){if(Array.isArray(X)){this.addVocabulary(X);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const L in X){const K=X[L];K.keyword||(K.keyword=L),this.addKeyword(K)}}function D(){const X={...this.opts};for(const L of b)delete X[L];return X}const F={log(){},warn(){},error(){}};function U(X){if(X===!1)return F;if(X===void 0)return console;if(X.log&&X.warn&&X.error)return X;throw new Error("logger must implement log, warn and error methods")}const G=/^[a-z_$][a-z0-9_$:-]*$/i;function z(X,L){const{RULES:K}=this;if((0,u.eachItem)(X,q=>{if(K.keywords[q])throw new Error(`Keyword ${q} is already defined`);if(!G.test(q))throw new Error(`Keyword ${q} has invalid name`)}),!!L&&L.$data&&!("code"in L||"validate"in L))throw new Error('$data keyword must have "code" or "validate" function')}function B(X,L,K){var q;const R=L==null?void 0:L.post;if(K&&R)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:N}=this;let V=R?N.post:N.rules.find(({type:re})=>re===K);if(V||(V={type:K,rules:[]},N.rules.push(V)),N.keywords[X]=!0,!L)return;const Z={keyword:X,definition:{...L,type:(0,c.getJSONTypes)(L.type),schemaType:(0,c.getJSONTypes)(L.schemaType)}};L.before?Y.call(this,V,Z,L.before):V.rules.push(Z),N.all[X]=Z,(q=L.implements)===null||q===void 0||q.forEach(re=>this.addKeyword(re))}function Y(X,L,K){const q=X.rules.findIndex(R=>R.keyword===K);q>=0?X.rules.splice(q,0,L):(X.rules.push(L),this.logger.warn(`rule ${K} is not defined`))}function Q(X){let{metaSchema:L}=X;L!==void 0&&(X.$data&&this.opts.$data&&(L=J(L)),X.validateSchema=this.compile(L,!0))}const H={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function J(X){return{anyOf:[X,H]}}})(B3);var cS={},uS={},dS={};Object.defineProperty(dS,"__esModule",{value:!0});const Vce={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};dS.default=Vce;var Yl={};Object.defineProperty(Yl,"__esModule",{value:!0});Yl.callRef=Yl.getValidate=void 0;const Uce=Qp,HO=Qt,ho=Jt,jc=Si,GO=vo,Om=dn,Wce={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:n,it:r}=e,{baseId:o,schemaEnv:a,validateName:i,opts:s,self:l}=r,{root:c}=a;if((n==="#"||n==="#/")&&o===c.baseId)return f();const u=GO.resolveRef.call(l,c,o,n);if(u===void 0)throw new Uce.default(r.opts.uriResolver,o,n);if(u instanceof GO.SchemaEnv)return p(u);return m(u);function f(){if(a===c)return wv(e,i,a,a.$async);const b=t.scopeValue("root",{ref:c});return wv(e,(0,ho._)`${b}.validate`,c,c.$async)}function p(b){const v=pj(e,b);wv(e,v,b,b.$async)}function m(b){const v=t.scopeValue("schema",s.code.source===!0?{ref:b,code:(0,ho.stringify)(b)}:{ref:b}),w=t.name("valid"),g=e.subschema({schema:b,dataTypes:[],schemaPath:ho.nil,topSchemaRef:v,errSchemaPath:n},w);e.mergeEvaluated(g),e.ok(w)}}};function pj(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):(0,ho._)`${n.scopeValue("wrapper",{ref:t})}.validate`}Yl.getValidate=pj;function wv(e,t,n,r){const{gen:o,it:a}=e,{allErrors:i,schemaEnv:s,opts:l}=a,c=l.passContext?jc.default.this:ho.nil;r?u():f();function u(){if(!s.$async)throw new Error("async schema referenced by sync schema");const b=o.let("valid");o.try(()=>{o.code((0,ho._)`await ${(0,HO.callValidateCode)(e,t,c)}`),m(t),i||o.assign(b,!0)},v=>{o.if((0,ho._)`!(${v} instanceof ${a.ValidationError})`,()=>o.throw(v)),p(v),i||o.assign(b,!1)}),e.ok(b)}function f(){e.result((0,HO.callValidateCode)(e,t,c),()=>m(t),()=>p(t))}function p(b){const v=(0,ho._)`${b}.errors`;o.assign(jc.default.vErrors,(0,ho._)`${jc.default.vErrors} === null ? ${v} : ${jc.default.vErrors}.concat(${v})`),o.assign(jc.default.errors,(0,ho._)`${jc.default.vErrors}.length`)}function m(b){var v;if(!a.opts.unevaluated)return;const w=(v=n==null?void 0:n.validate)===null||v===void 0?void 0:v.evaluated;if(a.props!==!0)if(w&&!w.dynamicProps)w.props!==void 0&&(a.props=Om.mergeEvaluated.props(o,w.props,a.props));else{const g=o.var("props",(0,ho._)`${b}.evaluated.props`);a.props=Om.mergeEvaluated.props(o,g,a.props,ho.Name)}if(a.items!==!0)if(w&&!w.dynamicItems)w.items!==void 0&&(a.items=Om.mergeEvaluated.items(o,w.items,a.items));else{const g=o.var("items",(0,ho._)`${b}.evaluated.items`);a.items=Om.mergeEvaluated.items(o,g,a.items,ho.Name)}}}Yl.callRef=wv;Yl.default=Wce;Object.defineProperty(uS,"__esModule",{value:!0});const Hce=dS,Gce=Yl,qce=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Hce.default,Gce.default];uS.default=qce;var fS={},pS={};Object.defineProperty(pS,"__esModule",{value:!0});const pg=Jt,bs=pg.operators,hg={maximum:{okStr:"<=",ok:bs.LTE,fail:bs.GT},minimum:{okStr:">=",ok:bs.GTE,fail:bs.LT},exclusiveMaximum:{okStr:"<",ok:bs.LT,fail:bs.GTE},exclusiveMinimum:{okStr:">",ok:bs.GT,fail:bs.LTE}},Yce={message:({keyword:e,schemaCode:t})=>(0,pg.str)`must be ${hg[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,pg._)`{comparison: ${hg[e].okStr}, limit: ${t}}`},Kce={keyword:Object.keys(hg),type:"number",schemaType:"number",$data:!0,error:Yce,code(e){const{keyword:t,data:n,schemaCode:r}=e;e.fail$data((0,pg._)`${n} ${hg[t].fail} ${r} || isNaN(${n})`)}};pS.default=Kce;var hS={};Object.defineProperty(hS,"__esModule",{value:!0});const Lf=Jt,Jce={message:({schemaCode:e})=>(0,Lf.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Lf._)`{multipleOf: ${e}}`},Zce={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Jce,code(e){const{gen:t,data:n,schemaCode:r,it:o}=e,a=o.opts.multipleOfPrecision,i=t.let("res"),s=a?(0,Lf._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:(0,Lf._)`${i} !== parseInt(${i})`;e.fail$data((0,Lf._)`(${r} === 0 || (${i} = ${n}/${r}, ${s}))`)}};hS.default=Zce;var mS={},vS={};Object.defineProperty(vS,"__esModule",{value:!0});function hj(e){const t=e.length;let n=0,r=0,o;for(;r=55296&&o<=56319&&r(0,Ol._)`{limit: ${e}}`},tue={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:eue,code(e){const{keyword:t,data:n,schemaCode:r,it:o}=e,a=t==="maxLength"?Ol.operators.GT:Ol.operators.LT,i=o.opts.unicode===!1?(0,Ol._)`${n}.length`:(0,Ol._)`${(0,Xce.useFunc)(e.gen,Qce.default)}(${n})`;e.fail$data((0,Ol._)`${i} ${a} ${r}`)}};mS.default=tue;var gS={};Object.defineProperty(gS,"__esModule",{value:!0});const nue=Qt,mg=Jt,rue={message:({schemaCode:e})=>(0,mg.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,mg._)`{pattern: ${e}}`},oue={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:rue,code(e){const{data:t,$data:n,schema:r,schemaCode:o,it:a}=e,i=a.opts.unicodeRegExp?"u":"",s=n?(0,mg._)`(new RegExp(${o}, ${i}))`:(0,nue.usePattern)(e,r);e.fail$data((0,mg._)`!${s}.test(${t})`)}};gS.default=oue;var yS={};Object.defineProperty(yS,"__esModule",{value:!0});const Ff=Jt,aue={message({keyword:e,schemaCode:t}){const n=e==="maxProperties"?"more":"fewer";return(0,Ff.str)`must NOT have ${n} than ${t} properties`},params:({schemaCode:e})=>(0,Ff._)`{limit: ${e}}`},iue={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:aue,code(e){const{keyword:t,data:n,schemaCode:r}=e,o=t==="maxProperties"?Ff.operators.GT:Ff.operators.LT;e.fail$data((0,Ff._)`Object.keys(${n}).length ${o} ${r}`)}};yS.default=iue;var bS={};Object.defineProperty(bS,"__esModule",{value:!0});const ef=Qt,zf=Jt,sue=dn,lue={message:({params:{missingProperty:e}})=>(0,zf.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,zf._)`{missingProperty: ${e}}`},cue={keyword:"required",type:"object",schemaType:"array",$data:!0,error:lue,code(e){const{gen:t,schema:n,schemaCode:r,data:o,$data:a,it:i}=e,{opts:s}=i;if(!a&&n.length===0)return;const l=n.length>=s.loopRequired;if(i.allErrors?c():u(),s.strictRequired){const m=e.parentSchema.properties,{definedProperties:b}=e.it;for(const v of n)if((m==null?void 0:m[v])===void 0&&!b.has(v)){const w=i.schemaEnv.baseId+i.errSchemaPath,g=`required property "${v}" is not defined at "${w}" (strictRequired)`;(0,sue.checkStrictMode)(i,g,i.opts.strictRequired)}}function c(){if(l||a)e.block$data(zf.nil,f);else for(const m of n)(0,ef.checkReportMissingProp)(e,m)}function u(){const m=t.let("missing");if(l||a){const b=t.let("valid",!0);e.block$data(b,()=>p(m,b)),e.ok(b)}else t.if((0,ef.checkMissingProp)(e,n,m)),(0,ef.reportMissingProp)(e,m),t.else()}function f(){t.forOf("prop",r,m=>{e.setParams({missingProperty:m}),t.if((0,ef.noPropertyInData)(t,o,m,s.ownProperties),()=>e.error())})}function p(m,b){e.setParams({missingProperty:m}),t.forOf(m,r,()=>{t.assign(b,(0,ef.propertyInData)(t,o,m,s.ownProperties)),t.if((0,zf.not)(b),()=>{e.error(),t.break()})},zf.nil)}}};bS.default=cue;var xS={};Object.defineProperty(xS,"__esModule",{value:!0});const Bf=Jt,uue={message({keyword:e,schemaCode:t}){const n=e==="maxItems"?"more":"fewer";return(0,Bf.str)`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>(0,Bf._)`{limit: ${e}}`},due={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:uue,code(e){const{keyword:t,data:n,schemaCode:r}=e,o=t==="maxItems"?Bf.operators.GT:Bf.operators.LT;e.fail$data((0,Bf._)`${n}.length ${o} ${r}`)}};xS.default=due;var wS={},eh={};Object.defineProperty(eh,"__esModule",{value:!0});const mj=K3;mj.code='require("ajv/dist/runtime/equal").default';eh.default=mj;Object.defineProperty(wS,"__esModule",{value:!0});const Kb=Zp,Or=Jt,fue=dn,pue=eh,hue={message:({params:{i:e,j:t}})=>(0,Or.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Or._)`{i: ${e}, j: ${t}}`},mue={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:hue,code(e){const{gen:t,data:n,$data:r,schema:o,parentSchema:a,schemaCode:i,it:s}=e;if(!r&&!o)return;const l=t.let("valid"),c=a.items?(0,Kb.getSchemaTypes)(a.items):[];e.block$data(l,u,(0,Or._)`${i} === false`),e.ok(l);function u(){const b=t.let("i",(0,Or._)`${n}.length`),v=t.let("j");e.setParams({i:b,j:v}),t.assign(l,!0),t.if((0,Or._)`${b} > 1`,()=>(f()?p:m)(b,v))}function f(){return c.length>0&&!c.some(b=>b==="object"||b==="array")}function p(b,v){const w=t.name("item"),g=(0,Kb.checkDataTypes)(c,w,s.opts.strictNumbers,Kb.DataType.Wrong),y=t.const("indices",(0,Or._)`{}`);t.for((0,Or._)`;${b}--;`,()=>{t.let(w,(0,Or._)`${n}[${b}]`),t.if(g,(0,Or._)`continue`),c.length>1&&t.if((0,Or._)`typeof ${w} == "string"`,(0,Or._)`${w} += "_"`),t.if((0,Or._)`typeof ${y}[${w}] == "number"`,()=>{t.assign(v,(0,Or._)`${y}[${w}]`),e.error(),t.assign(l,!1).break()}).code((0,Or._)`${y}[${w}] = ${b}`)})}function m(b,v){const w=(0,fue.useFunc)(t,pue.default),g=t.name("outer");t.label(g).for((0,Or._)`;${b}--;`,()=>t.for((0,Or._)`${v} = ${b}; ${v}--;`,()=>t.if((0,Or._)`${w}(${n}[${b}], ${n}[${v}])`,()=>{e.error(),t.assign(l,!1).break(g)})))}}};wS.default=mue;var CS={};Object.defineProperty(CS,"__esModule",{value:!0});const Vw=Jt,vue=dn,gue=eh,yue={message:"must be equal to constant",params:({schemaCode:e})=>(0,Vw._)`{allowedValue: ${e}}`},bue={keyword:"const",$data:!0,error:yue,code(e){const{gen:t,data:n,$data:r,schemaCode:o,schema:a}=e;r||a&&typeof a=="object"?e.fail$data((0,Vw._)`!${(0,vue.useFunc)(t,gue.default)}(${n}, ${o})`):e.fail((0,Vw._)`${a} !== ${n}`)}};CS.default=bue;var $S={};Object.defineProperty($S,"__esModule",{value:!0});const Cf=Jt,xue=dn,wue=eh,Cue={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Cf._)`{allowedValues: ${e}}`},$ue={keyword:"enum",schemaType:"array",$data:!0,error:Cue,code(e){const{gen:t,data:n,$data:r,schema:o,schemaCode:a,it:i}=e;if(!r&&o.length===0)throw new Error("enum must have non-empty array");const s=o.length>=i.opts.loopEnum;let l;const c=()=>l??(l=(0,xue.useFunc)(t,wue.default));let u;if(s||r)u=t.let("valid"),e.block$data(u,f);else{if(!Array.isArray(o))throw new Error("ajv implementation error");const m=t.const("vSchema",a);u=(0,Cf.or)(...o.map((b,v)=>p(m,v)))}e.pass(u);function f(){t.assign(u,!1),t.forOf("v",a,m=>t.if((0,Cf._)`${c()}(${n}, ${m})`,()=>t.assign(u,!0).break()))}function p(m,b){const v=o[b];return typeof v=="object"&&v!==null?(0,Cf._)`${c()}(${n}, ${m}[${b}])`:(0,Cf._)`${n} === ${v}`}}};$S.default=$ue;Object.defineProperty(fS,"__esModule",{value:!0});const Sue=pS,_ue=hS,Eue=mS,Pue=gS,Tue=yS,kue=bS,Oue=xS,Rue=wS,Due=CS,Mue=$S,Iue=[Sue.default,_ue.default,Eue.default,Pue.default,Tue.default,kue.default,Oue.default,Rue.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Due.default,Mue.default];fS.default=Iue;var SS={},pd={};Object.defineProperty(pd,"__esModule",{value:!0});pd.validateAdditionalItems=void 0;const Rl=Jt,Uw=dn,Aue={message:({params:{len:e}})=>(0,Rl.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Rl._)`{limit: ${e}}`},Nue={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:Aue,code(e){const{parentSchema:t,it:n}=e,{items:r}=t;if(!Array.isArray(r)){(0,Uw.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas');return}vj(e,r)}};function vj(e,t){const{gen:n,schema:r,data:o,keyword:a,it:i}=e;i.items=!0;const s=n.const("len",(0,Rl._)`${o}.length`);if(r===!1)e.setParams({len:t.length}),e.pass((0,Rl._)`${s} <= ${t.length}`);else if(typeof r=="object"&&!(0,Uw.alwaysValidSchema)(i,r)){const c=n.var("valid",(0,Rl._)`${s} <= ${t.length}`);n.if((0,Rl.not)(c),()=>l(c)),e.ok(c)}function l(c){n.forRange("i",t.length,s,u=>{e.subschema({keyword:a,dataProp:u,dataPropType:Uw.Type.Num},c),i.allErrors||n.if((0,Rl.not)(c),()=>n.break())})}}pd.validateAdditionalItems=vj;pd.default=Nue;var _S={},hd={};Object.defineProperty(hd,"__esModule",{value:!0});hd.validateTuple=void 0;const qO=Jt,Cv=dn,jue=Qt,Lue={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return gj(e,"additionalItems",t);n.items=!0,!(0,Cv.alwaysValidSchema)(n,t)&&e.ok((0,jue.validateArray)(e))}};function gj(e,t,n=e.schema){const{gen:r,parentSchema:o,data:a,keyword:i,it:s}=e;u(o),s.opts.unevaluated&&n.length&&s.items!==!0&&(s.items=Cv.mergeEvaluated.items(r,n.length,s.items));const l=r.name("valid"),c=r.const("len",(0,qO._)`${a}.length`);n.forEach((f,p)=>{(0,Cv.alwaysValidSchema)(s,f)||(r.if((0,qO._)`${c} > ${p}`,()=>e.subschema({keyword:i,schemaProp:p,dataProp:p},l)),e.ok(l))});function u(f){const{opts:p,errSchemaPath:m}=s,b=n.length,v=b===f.minItems&&(b===f.maxItems||f[t]===!1);if(p.strictTuples&&!v){const w=`"${i}" is ${b}-tuple, but minItems or maxItems/${t} are not specified or different at path "${m}"`;(0,Cv.checkStrictMode)(s,w,p.strictTuples)}}}hd.validateTuple=gj;hd.default=Lue;Object.defineProperty(_S,"__esModule",{value:!0});const Fue=hd,zue={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,Fue.validateTuple)(e,"items")};_S.default=zue;var ES={};Object.defineProperty(ES,"__esModule",{value:!0});const YO=Jt,Bue=dn,Vue=Qt,Uue=pd,Wue={message:({params:{len:e}})=>(0,YO.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,YO._)`{limit: ${e}}`},Hue={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:Wue,code(e){const{schema:t,parentSchema:n,it:r}=e,{prefixItems:o}=n;r.items=!0,!(0,Bue.alwaysValidSchema)(r,t)&&(o?(0,Uue.validateAdditionalItems)(e,o):e.ok((0,Vue.validateArray)(e)))}};ES.default=Hue;var PS={};Object.defineProperty(PS,"__esModule",{value:!0});const la=Jt,Rm=dn,Gue={message:({params:{min:e,max:t}})=>t===void 0?(0,la.str)`must contain at least ${e} valid item(s)`:(0,la.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,la._)`{minContains: ${e}}`:(0,la._)`{minContains: ${e}, maxContains: ${t}}`},que={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:Gue,code(e){const{gen:t,schema:n,parentSchema:r,data:o,it:a}=e;let i,s;const{minContains:l,maxContains:c}=r;a.opts.next?(i=l===void 0?1:l,s=c):i=1;const u=t.const("len",(0,la._)`${o}.length`);if(e.setParams({min:i,max:s}),s===void 0&&i===0){(0,Rm.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(s!==void 0&&i>s){(0,Rm.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Rm.alwaysValidSchema)(a,n)){let v=(0,la._)`${u} >= ${i}`;s!==void 0&&(v=(0,la._)`${v} && ${u} <= ${s}`),e.pass(v);return}a.items=!0;const f=t.name("valid");s===void 0&&i===1?m(f,()=>t.if(f,()=>t.break())):i===0?(t.let(f,!0),s!==void 0&&t.if((0,la._)`${o}.length > 0`,p)):(t.let(f,!1),p()),e.result(f,()=>e.reset());function p(){const v=t.name("_valid"),w=t.let("count",0);m(v,()=>t.if(v,()=>b(w)))}function m(v,w){t.forRange("i",0,u,g=>{e.subschema({keyword:"contains",dataProp:g,dataPropType:Rm.Type.Num,compositeRule:!0},v),w()})}function b(v){t.code((0,la._)`${v}++`),s===void 0?t.if((0,la._)`${v} >= ${i}`,()=>t.assign(f,!0).break()):(t.if((0,la._)`${v} > ${s}`,()=>t.assign(f,!1).break()),i===1?t.assign(f,!0):t.if((0,la._)`${v} >= ${i}`,()=>t.assign(f,!0)))}}};PS.default=que;var yj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Jt,n=dn,r=Qt;e.error={message:({params:{property:l,depsCount:c,deps:u}})=>{const f=c===1?"property":"properties";return(0,t.str)`must have ${f} ${u} when property ${l} is present`},params:({params:{property:l,depsCount:c,deps:u,missingProperty:f}})=>(0,t._)`{property: ${l}, - missingProperty: ${f}, - depsCount: ${c}, - deps: ${u}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(l){const[c,u]=a(l);i(l,c),s(l,u)}};function a({schema:l}){const c={},u={};for(const f in l){if(f==="__proto__")continue;const p=Array.isArray(l[f])?c:u;p[f]=l[f]}return[c,u]}function i(l,c=l.schema){const{gen:u,data:f,it:p}=l;if(Object.keys(c).length===0)return;const m=u.let("missing");for(const b in c){const v=c[b];if(v.length===0)continue;const w=(0,r.propertyInData)(u,f,b,p.opts.ownProperties);l.setParams({property:b,depsCount:v.length,deps:v.join(", ")}),p.allErrors?u.if(w,()=>{for(const g of v)(0,r.checkReportMissingProp)(l,g)}):(u.if((0,t._)`${w} && (${(0,r.checkMissingProp)(l,v,m)})`),(0,r.reportMissingProp)(l,m),u.else())}}e.validatePropertyDeps=i;function s(l,c=l.schema){const{gen:u,data:f,keyword:p,it:m}=l,b=u.name("valid");for(const v in c)(0,n.alwaysValidSchema)(m,c[v])||(u.if((0,r.propertyInData)(u,f,v,m.opts.ownProperties),()=>{const w=l.subschema({keyword:p,schemaProp:v},b);l.mergeValidEvaluated(w,b)},()=>u.var(b,!0)),l.ok(b))}e.validateSchemaDeps=s,e.default=o})(yj);var TS={};Object.defineProperty(TS,"__esModule",{value:!0});const bj=Jt,Yue=dn,Kue={message:"property name must be valid",params:({params:e})=>(0,bj._)`{propertyName: ${e.propertyName}}`},Jue={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:Kue,code(e){const{gen:t,schema:n,data:r,it:o}=e;if((0,Yue.alwaysValidSchema)(o,n))return;const a=t.name("valid");t.forIn("key",r,i=>{e.setParams({propertyName:i}),e.subschema({keyword:"propertyNames",data:i,dataTypes:["string"],propertyName:i,compositeRule:!0},a),t.if((0,bj.not)(a),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(a)}};TS.default=Jue;var xy={};Object.defineProperty(xy,"__esModule",{value:!0});const Dm=Qt,Oa=Jt,Zue=Si,Mm=dn,Xue={message:"must NOT have additional properties",params:({params:e})=>(0,Oa._)`{additionalProperty: ${e.additionalProperty}}`},Que={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Xue,code(e){const{gen:t,schema:n,parentSchema:r,data:o,errsCount:a,it:i}=e;if(!a)throw new Error("ajv implementation error");const{allErrors:s,opts:l}=i;if(i.props=!0,l.removeAdditional!=="all"&&(0,Mm.alwaysValidSchema)(i,n))return;const c=(0,Dm.allSchemaProperties)(r.properties),u=(0,Dm.allSchemaProperties)(r.patternProperties);f(),e.ok((0,Oa._)`${a} === ${Zue.default.errors}`);function f(){t.forIn("key",o,w=>{!c.length&&!u.length?b(w):t.if(p(w),()=>b(w))})}function p(w){let g;if(c.length>8){const y=(0,Mm.schemaRefOrVal)(i,r.properties,"properties");g=(0,Dm.isOwnProperty)(t,y,w)}else c.length?g=(0,Oa.or)(...c.map(y=>(0,Oa._)`${w} === ${y}`)):g=Oa.nil;return u.length&&(g=(0,Oa.or)(g,...u.map(y=>(0,Oa._)`${(0,Dm.usePattern)(e,y)}.test(${w})`))),(0,Oa.not)(g)}function m(w){t.code((0,Oa._)`delete ${o}[${w}]`)}function b(w){if(l.removeAdditional==="all"||l.removeAdditional&&n===!1){m(w);return}if(n===!1){e.setParams({additionalProperty:w}),e.error(),s||t.break();return}if(typeof n=="object"&&!(0,Mm.alwaysValidSchema)(i,n)){const g=t.name("valid");l.removeAdditional==="failing"?(v(w,g,!1),t.if((0,Oa.not)(g),()=>{e.reset(),m(w)})):(v(w,g),s||t.if((0,Oa.not)(g),()=>t.break()))}}function v(w,g,y){const x={keyword:"additionalProperties",dataProp:w,dataPropType:Mm.Type.Str};y===!1&&Object.assign(x,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(x,g)}}};xy.default=Que;var kS={};Object.defineProperty(kS,"__esModule",{value:!0});const ede=Va,KO=Qt,Jb=dn,JO=xy,tde={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,parentSchema:r,data:o,it:a}=e;a.opts.removeAdditional==="all"&&r.additionalProperties===void 0&&JO.default.code(new ede.KeywordCxt(a,JO.default,"additionalProperties"));const i=(0,KO.allSchemaProperties)(n);for(const f of i)a.definedProperties.add(f);a.opts.unevaluated&&i.length&&a.props!==!0&&(a.props=Jb.mergeEvaluated.props(t,(0,Jb.toHash)(i),a.props));const s=i.filter(f=>!(0,Jb.alwaysValidSchema)(a,n[f]));if(s.length===0)return;const l=t.name("valid");for(const f of s)c(f)?u(f):(t.if((0,KO.propertyInData)(t,o,f,a.opts.ownProperties)),u(f),a.allErrors||t.else().var(l,!0),t.endIf()),e.it.definedProperties.add(f),e.ok(l);function c(f){return a.opts.useDefaults&&!a.compositeRule&&n[f].default!==void 0}function u(f){e.subschema({keyword:"properties",schemaProp:f,dataProp:f},l)}}};kS.default=tde;var OS={};Object.defineProperty(OS,"__esModule",{value:!0});const ZO=Qt,Im=Jt,XO=dn,QO=dn,nde={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,data:r,parentSchema:o,it:a}=e,{opts:i}=a,s=(0,ZO.allSchemaProperties)(n),l=s.filter(v=>(0,XO.alwaysValidSchema)(a,n[v]));if(s.length===0||l.length===s.length&&(!a.opts.unevaluated||a.props===!0))return;const c=i.strictSchema&&!i.allowMatchingProperties&&o.properties,u=t.name("valid");a.props!==!0&&!(a.props instanceof Im.Name)&&(a.props=(0,QO.evaluatedPropsToName)(t,a.props));const{props:f}=a;p();function p(){for(const v of s)c&&m(v),a.allErrors?b(v):(t.var(u,!0),b(v),t.if(u))}function m(v){for(const w in c)new RegExp(v).test(w)&&(0,XO.checkStrictMode)(a,`property ${w} matches pattern ${v} (use allowMatchingProperties)`)}function b(v){t.forIn("key",r,w=>{t.if((0,Im._)`${(0,ZO.usePattern)(e,v)}.test(${w})`,()=>{const g=l.includes(v);g||e.subschema({keyword:"patternProperties",schemaProp:v,dataProp:w,dataPropType:QO.Type.Str},u),a.opts.unevaluated&&f!==!0?t.assign((0,Im._)`${f}[${w}]`,!0):!g&&!a.allErrors&&t.if((0,Im.not)(u),()=>t.break())})})}}};OS.default=nde;var RS={};Object.defineProperty(RS,"__esModule",{value:!0});const rde=dn,ode={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:r}=e;if((0,rde.alwaysValidSchema)(r,n)){e.fail();return}const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};RS.default=ode;var DS={};Object.defineProperty(DS,"__esModule",{value:!0});const ade=Qt,ide={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:ade.validateUnion,error:{message:"must match a schema in anyOf"}};DS.default=ide;var MS={};Object.defineProperty(MS,"__esModule",{value:!0});const $v=Jt,sde=dn,lde={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,$v._)`{passingSchemas: ${e.passing}}`},cde={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:lde,code(e){const{gen:t,schema:n,parentSchema:r,it:o}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(o.opts.discriminator&&r.discriminator)return;const a=n,i=t.let("valid",!1),s=t.let("passing",null),l=t.name("_valid");e.setParams({passing:s}),t.block(c),e.result(i,()=>e.reset(),()=>e.error(!0));function c(){a.forEach((u,f)=>{let p;(0,sde.alwaysValidSchema)(o,u)?t.var(l,!0):p=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},l),f>0&&t.if((0,$v._)`${l} && ${i}`).assign(i,!1).assign(s,(0,$v._)`[${s}, ${f}]`).else(),t.if(l,()=>{t.assign(i,!0),t.assign(s,f),p&&e.mergeEvaluated(p,$v.Name)})})}}};MS.default=cde;var IS={};Object.defineProperty(IS,"__esModule",{value:!0});const ude=dn,dde={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:n,it:r}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");const o=t.name("valid");n.forEach((a,i)=>{if((0,ude.alwaysValidSchema)(r,a))return;const s=e.subschema({keyword:"allOf",schemaProp:i},o);e.ok(o),e.mergeEvaluated(s)})}};IS.default=dde;var AS={};Object.defineProperty(AS,"__esModule",{value:!0});const vg=Jt,xj=dn,fde={message:({params:e})=>(0,vg.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,vg._)`{failingKeyword: ${e.ifClause}}`},pde={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:fde,code(e){const{gen:t,parentSchema:n,it:r}=e;n.then===void 0&&n.else===void 0&&(0,xj.checkStrictMode)(r,'"if" without "then" and "else" is ignored');const o=eR(r,"then"),a=eR(r,"else");if(!o&&!a)return;const i=t.let("valid",!0),s=t.name("_valid");if(l(),e.reset(),o&&a){const u=t.let("ifClause");e.setParams({ifClause:u}),t.if(s,c("then",u),c("else",u))}else o?t.if(s,c("then")):t.if((0,vg.not)(s),c("else"));e.pass(i,()=>e.error(!0));function l(){const u=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},s);e.mergeEvaluated(u)}function c(u,f){return()=>{const p=e.subschema({keyword:u},s);t.assign(i,s),e.mergeValidEvaluated(p,i),f?t.assign(f,(0,vg._)`${u}`):e.setParams({ifClause:u})}}}};function eR(e,t){const n=e.schema[t];return n!==void 0&&!(0,xj.alwaysValidSchema)(e,n)}AS.default=pde;var NS={};Object.defineProperty(NS,"__esModule",{value:!0});const hde=dn,mde={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){t.if===void 0&&(0,hde.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};NS.default=mde;Object.defineProperty(SS,"__esModule",{value:!0});const vde=pd,gde=_S,yde=hd,bde=ES,xde=PS,wde=yj,Cde=TS,$de=xy,Sde=kS,_de=OS,Ede=RS,Pde=DS,Tde=MS,kde=IS,Ode=AS,Rde=NS;function Dde(e=!1){const t=[Ede.default,Pde.default,Tde.default,kde.default,Ode.default,Rde.default,Cde.default,$de.default,wde.default,Sde.default,_de.default];return e?t.push(gde.default,bde.default):t.push(vde.default,yde.default),t.push(xde.default),t}SS.default=Dde;var jS={},LS={};Object.defineProperty(LS,"__esModule",{value:!0});const ar=Jt,Mde={message:({schemaCode:e})=>(0,ar.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,ar._)`{format: ${e}}`},Ide={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:Mde,code(e,t){const{gen:n,data:r,$data:o,schema:a,schemaCode:i,it:s}=e,{opts:l,errSchemaPath:c,schemaEnv:u,self:f}=s;if(!l.validateFormats)return;o?p():m();function p(){const b=n.scopeValue("formats",{ref:f.formats,code:l.code.formats}),v=n.const("fDef",(0,ar._)`${b}[${i}]`),w=n.let("fType"),g=n.let("format");n.if((0,ar._)`typeof ${v} == "object" && !(${v} instanceof RegExp)`,()=>n.assign(w,(0,ar._)`${v}.type || "string"`).assign(g,(0,ar._)`${v}.validate`),()=>n.assign(w,(0,ar._)`"string"`).assign(g,v)),e.fail$data((0,ar.or)(y(),x()));function y(){return l.strictSchema===!1?ar.nil:(0,ar._)`${i} && !${g}`}function x(){const C=u.$async?(0,ar._)`(${v}.async ? await ${g}(${r}) : ${g}(${r}))`:(0,ar._)`${g}(${r})`,_=(0,ar._)`(typeof ${g} == "function" ? ${C} : ${g}.test(${r}))`;return(0,ar._)`${g} && ${g} !== true && ${w} === ${t} && !${_}`}}function m(){const b=f.formats[a];if(!b){y();return}if(b===!0)return;const[v,w,g]=x(b);v===t&&e.pass(C());function y(){if(l.strictSchema===!1){f.logger.warn(_());return}throw new Error(_());function _(){return`unknown format "${a}" ignored in schema at path "${c}"`}}function x(_){const $=_ instanceof RegExp?(0,ar.regexpCode)(_):l.code.formats?(0,ar._)`${l.code.formats}${(0,ar.getProperty)(a)}`:void 0,P=n.scopeValue("formats",{key:a,ref:_,code:$});return typeof _=="object"&&!(_ instanceof RegExp)?[_.type||"string",_.validate,(0,ar._)`${P}.validate`]:["string",_,P]}function C(){if(typeof b=="object"&&!(b instanceof RegExp)&&b.async){if(!u.$async)throw new Error("async format in sync schema");return(0,ar._)`await ${g}(${r})`}return typeof w=="function"?(0,ar._)`${g}(${r})`:(0,ar._)`${g}.test(${r})`}}}};LS.default=Ide;Object.defineProperty(jS,"__esModule",{value:!0});const Ade=LS,Nde=[Ade.default];jS.default=Nde;var zu={};Object.defineProperty(zu,"__esModule",{value:!0});zu.contentVocabulary=zu.metadataVocabulary=void 0;zu.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];zu.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(cS,"__esModule",{value:!0});const jde=uS,Lde=fS,Fde=SS,zde=jS,tR=zu,Bde=[jde.default,Lde.default,(0,Fde.default)(),zde.default,tR.metadataVocabulary,tR.contentVocabulary];cS.default=Bde;var FS={},wj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,function(t){t.Tag="tag",t.Mapping="mapping"}(e.DiscrError||(e.DiscrError={}))})(wj);Object.defineProperty(FS,"__esModule",{value:!0});const Xc=Jt,Ww=wj,nR=vo,Vde=dn,Ude={message:({params:{discrError:e,tagName:t}})=>e===Ww.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>(0,Xc._)`{error: ${e}, tag: ${n}, tagValue: ${t}}`},Wde={keyword:"discriminator",type:"object",schemaType:"object",error:Ude,code(e){const{gen:t,data:n,schema:r,parentSchema:o,it:a}=e,{oneOf:i}=o;if(!a.opts.discriminator)throw new Error("discriminator: requires discriminator option");const s=r.propertyName;if(typeof s!="string")throw new Error("discriminator: requires propertyName");if(r.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");const l=t.let("valid",!1),c=t.const("tag",(0,Xc._)`${n}${(0,Xc.getProperty)(s)}`);t.if((0,Xc._)`typeof ${c} == "string"`,()=>u(),()=>e.error(!1,{discrError:Ww.DiscrError.Tag,tag:c,tagName:s})),e.ok(l);function u(){const m=p();t.if(!1);for(const b in m)t.elseIf((0,Xc._)`${c} === ${b}`),t.assign(l,f(m[b]));t.else(),e.error(!1,{discrError:Ww.DiscrError.Mapping,tag:c,tagName:s}),t.endIf()}function f(m){const b=t.name("valid"),v=e.subschema({keyword:"oneOf",schemaProp:m},b);return e.mergeEvaluated(v,Xc.Name),b}function p(){var m;const b={},v=g(o);let w=!0;for(let C=0;Cthis.addVocabulary(b)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const b=this.opts.$data?this.$dataMetaSchema(a,i):a;this.addMetaSchema(b,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}e.exports=t=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var c=Va;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var u=Jt;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var f=Xp;Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var p=Qp;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return p.default}})})(Lw,Lw.exports);var Cj=Lw.exports;const Xde=Bt(Cj);var Hw={exports:{}},$j={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(I,D){return{validate:I,compare:D}}e.fullFormats={date:t(a,i),time:t(l,c),"date-time":t(f,p),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:v,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:k,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:g,int32:{type:"number",validate:C},int64:{type:"number",validate:_},float:{type:"number",validate:$},double:{type:"number",validate:$},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,i),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,c),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,p),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function n(I){return I%4===0&&(I%100!==0||I%400===0)}const r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31];function a(I){const D=r.exec(I);if(!D)return!1;const F=+D[1],U=+D[2],G=+D[3];return U>=1&&U<=12&&G>=1&&G<=(U===2&&n(F)?29:o[U])}function i(I,D){if(I&&D)return I>D?1:ID?1:I=y}function _(I){return Number.isInteger(I)}function $(){return!0}const P=/[^\\]\\Z/;function k(I){if(P.test(I))return!1;try{return new RegExp(I),!0}catch{return!1}}})($j);var Sj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=Cj,n=Jt,r=n.operators,o={formatMaximum:{okStr:"<=",ok:r.LTE,fail:r.GT},formatMinimum:{okStr:">=",ok:r.GTE,fail:r.LT},formatExclusiveMaximum:{okStr:"<",ok:r.LT,fail:r.GTE},formatExclusiveMinimum:{okStr:">",ok:r.GT,fail:r.LTE}},a={message:({keyword:s,schemaCode:l})=>n.str`should be ${o[s].okStr} ${l}`,params:({keyword:s,schemaCode:l})=>n._`{comparison: ${o[s].okStr}, limit: ${l}}`};e.formatLimitDefinition={keyword:Object.keys(o),type:"string",schemaType:"string",$data:!0,error:a,code(s){const{gen:l,data:c,schemaCode:u,keyword:f,it:p}=s,{opts:m,self:b}=p;if(!m.validateFormats)return;const v=new t.KeywordCxt(p,b.RULES.all.format.definition,"format");v.$data?w():g();function w(){const x=l.scopeValue("formats",{ref:b.formats,code:m.code.formats}),C=l.const("fmt",n._`${x}[${v.schemaCode}]`);s.fail$data(n.or(n._`typeof ${C} != "object"`,n._`${C} instanceof RegExp`,n._`typeof ${C}.compare != "function"`,y(C)))}function g(){const x=v.schema,C=b.formats[x];if(!C||C===!0)return;if(typeof C!="object"||C instanceof RegExp||typeof C.compare!="function")throw new Error(`"${f}": format "${x}" does not define "compare" function`);const _=l.scopeValue("formats",{key:x,ref:C,code:m.code.formats?n._`${m.code.formats}${n.getProperty(x)}`:void 0});s.fail$data(y(_))}function y(x){return n._`${x}.compare(${c}, ${u}) ${o[f].fail} 0`}},dependencies:["format"]};const i=s=>(s.addKeyword(e.formatLimitDefinition),s);e.default=i})(Sj);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=$j,r=Sj,o=Jt,a=new o.Name("fullFormats"),i=new o.Name("fastFormats"),s=(c,u={keywords:!0})=>{if(Array.isArray(u))return l(c,u,n.fullFormats,a),c;const[f,p]=u.mode==="fast"?[n.fastFormats,i]:[n.fullFormats,a],m=u.formats||n.formatNames;return l(c,m,f,p),u.keywords&&r.default(c),c};s.get=(c,u="full")=>{const p=(u==="fast"?n.fastFormats:n.fullFormats)[c];if(!p)throw new Error(`Unknown format "${c}"`);return p};function l(c,u,f,p){var m,b;(m=(b=c.opts.code).formats)!==null&&m!==void 0||(b.formats=o._`require("ajv-formats/dist/formats").${p}`);for(const v of u)c.addFormat(v,f[v])}e.exports=t=s,Object.defineProperty(t,"__esModule",{value:!0}),t.default=s})(Hw,Hw.exports);var Qde=Hw.exports;const efe=Bt(Qde),Sv="additionalProperties",_v="required",tfe=(e,t)=>{const n={};return e.filter(r=>{const o=t(r);return Object.prototype.hasOwnProperty.call(n,o)?!1:(n[o]=!0,!0)})};class nfe{constructor(t){this.findOption=t,this.schemaObject=n=>{const r=this.properties(n),o={type:"object",properties:r,additionalProperties:this.findOption(r)(Sv)},a=this.findOption(r)(_v);return a.length>0&&(o.required=a),o},this.properties=n=>{const r={};return Object.keys(n).reduce((o,a)=>(o[a]=this.property(n[a]),o),r)},this.property=n=>{switch(typeof n){case"string":return{type:"string"};case"boolean":return{type:"boolean"};case"number":return Number.isInteger(n)?{type:"integer"}:{type:"number"};case"object":return n==null?{type:"null"}:this.schemaObjectOrArray(n);default:return{}}},this.schemaObjectOrArray=n=>n instanceof Array?this.schemaArray(n):this.schemaObject(n),this.schemaArray=n=>{if(n.length>0){const r=n.map(this.property),o=tfe(r,a=>JSON.stringify(a));return o.length===1?{type:"array",items:o[0]}:{type:"array",items:{oneOf:o}}}else return{type:"array",items:{}}}}}const _j=(e,t={})=>{const n=o=>a=>{switch(a){case Sv:return Object.prototype.hasOwnProperty.call(t,Sv)?t[Sv]:!0;case _v:return Object.prototype.hasOwnProperty.call(t,_v)?t[_v](o):Object.keys(o);default:return}};return new nfe(n).schemaObject(e)};var bi;(function(e){e.HIDE="HIDE",e.SHOW="SHOW",e.ENABLE="ENABLE",e.DISABLE="DISABLE"})(bi||(bi={}));const Ej=e=>typeof e=="object"&&e!==null&&typeof e.i18n=="string",rfe=e=>e.type==="Group",Pj=e=>e.elements!==void 0,ofe=e=>!!e&&typeof e=="object",afe=e=>ofe(e)&&typeof e.scope=="string",ife=e=>!!e&&typeof e=="object",Tj=(e,t,n)=>{const r=t+n;if(r<0||r>=e.length)return;const o=[t,r].sort((a,i)=>a-i);e.splice(o[0],2,e[o[1]],e[o[0]])},kj=(e,t)=>{Tj(e,t,-1)},Oj=(e,t)=>{Tj(e,t,1)},sfe={restrict:!1,trim:!1,showUnfocusedDescription:!1,hideRequiredAsterisk:!1},rR=(e={})=>tn({},sfe,e),oR=(e=rR(),t)=>{switch(t.type){case d_:return rR(t.config);default:return e}},Li=(e,t)=>e===void 0?[]:e(t)?[]:e.errors,lfe={data:{},schema:{},uischema:void 0,errors:[],validator:void 0,ajv:void 0,validationMode:"ValidateAndShow",additionalErrors:[]},Gw=(e,t)=>((Object.prototype.hasOwnProperty.call(t,"id")||Object.prototype.hasOwnProperty.call(t,"$id"))&&e.removeSchema(t),e),aR=(e,t)=>{if(t){if(cfe(t.options))return t.options.ajv;if(t.options!==void 0&&DV(t.options.compile))return t.options}return e.ajv?t!=null&&t.schema?Gw(e.ajv,t.schema):e.ajv:mpe()},cfe=e=>e?e.ajv!==void 0:!1,iR=(e,t)=>t&&ufe(t.options)?t.options.validationMode:e.validationMode,ufe=e=>e?e.validationMode!==void 0:!1,dfe=e=>e?e.additionalErrors!==void 0:!1,sR=(e,t)=>t&&dfe(t.options)?t.options.additionalErrors:e.additionalErrors,lR=(e=lfe,t)=>{switch(t.type){case i_:{const n=aR(e,t),r=iR(e,t),o=r==="NoValidation"?void 0:n.compile(t.schema),a=Li(o,t.data),i=sR(e,t);return{...e,data:t.data,schema:t.schema,uischema:t.uischema,additionalErrors:i,errors:a,validator:o,ajv:n,validationMode:r}}case s_:{const n=aR(e,t),r=iR(e,t);let o=e.validator,a=e.errors;e.schema!==t.schema||e.validationMode!==r||e.ajv!==n?(o=r==="NoValidation"?void 0:n.compile(t.schema),a=Li(o,t.data)):e.data!==t.data&&(a=Li(o,t.data));const i=sR(e,t);return e.data!==t.data||e.schema!==t.schema||e.uischema!==t.uischema||e.ajv!==n||e.errors!==a||e.validator!==o||e.validationMode!==r||e.additionalErrors!==i?{...e,data:t.data,schema:t.schema,uischema:t.uischema,ajv:n,errors:L3(a,e.errors)?e.errors:a,validator:o,validationMode:r,additionalErrors:i}:e}case l_:{const n=t.ajv,r=e.validationMode==="NoValidation"?void 0:n.compile(e.schema),o=Li(r,e.data);return{...e,validator:r,errors:o}}case f_:{const r=t.schema&&e.ajv&&e.validationMode!=="NoValidation"?Gw(e.ajv,t.schema).compile(t.schema):e.validator,o=Li(r,e.data);return{...e,validator:r,schema:t.schema,errors:o}}case p_:return{...e,uischema:t.uischema};case c_:{if(t.path===void 0||t.path===null)return e;if(t.path===""){const n=t.updater(oO(e.data)),r=Li(e.validator,n);return{...e,data:n,errors:r}}else{const n=ur(e.data,t.path),r=t.updater(oO(n)),o=Wae(t.path,r,e.data===void 0?{}:e.data),a=Li(e.validator,o);return{...e,data:o,errors:a}}}case u_:return{...e,errors:t.errors};case h_:{if(e.validationMode===t.validationMode)return e;if(t.validationMode==="NoValidation"){const n=Li(void 0,e.data);return{...e,errors:n,validationMode:t.validationMode}}if(e.validationMode==="NoValidation"){const n=Gw(e.ajv,e.schema).compile(e.schema),r=Li(n,e.data);return{...e,validator:n,errors:r,validationMode:t.validationMode}}return{...e,validationMode:t.validationMode}}default:return e}},ffe=e=>ur(e,"data"),pfe=e=>ur(e,"schema"),hfe=e=>ur(e,"uischema"),mfe=e=>ur(e,"ajv"),vfe=e=>{switch(e.keyword){case"required":case"dependencies":return e.params.missingProperty;case"additionalProperties":return e.params.additionalProperty;default:return}},gg=e=>{let t=e.dataPath||e.instancePath||"";t=t.replace(/\//g,".");const n=vfe(e);return n!==void 0&&!t.endsWith(n)&&(t=`${t}.${n}`),t=t.replace(/^./,""),t=$y(t),t},zS=(e,t,n)=>r=>{const o=dg(r,a=>a.keyword==="oneOf"||a.keyword==="anyOf").map(a=>gg(a));return dg(r,a=>{if(yfe.indexOf(a.keyword)!==-1&&!xg(a.parentSchema))return!1;const i=gg(a);let s=n(i);const l=a.parentSchema;return s&&!gfe(l)&&!xg(l)&&o.findIndex(c=>e.startsWith(c))!==-1&&(s=s&&L3(l,t)),s})},gfe=e=>(e==null?void 0:e.type)==="object"||!!(e!=null&&e.properties),yfe=["additionalProperties","allOf","anyOf","oneOf"],Rj=(e,t,n)=>r=>{const o=r.errors??[],a=r.additionalErrors??[];return zS(e,t,n)(r.validationMode==="ValidateAndHide"?a:[...o,...a])},bfe=(e,t)=>Rj(e,t,n=>n===e),xfe=(e,t)=>Rj(e,t,n=>n.startsWith(e+".")),BS=(e,t)=>Ej(t)?t.i18n:(e==null?void 0:e.i18n)??void 0,wfe=e=>(e==null?void 0:e.split(".").filter(t=>!/^\d+$/.test(t)).join("."))||"root",xi=(e,t,n)=>BS(e,t)??wfe(n),yg=(e,t,n,r)=>`${xi(e,t,n)}.${r}`,Cfe=(e,t)=>`${e}.${t}`,VS=(e,t)=>t,US=(e,t,n)=>{var s;const r=yg(e.parentSchema,n,gg(e),`error.${e.keyword}`),o=t(r,void 0,{error:e});if(o!==void 0)return o;const a=t(`error.${e.keyword}`,void 0,{error:e});if(a!==void 0)return a;const i=t(e.message,void 0,{error:e});return i!==void 0?i:e.keyword==="required"&&((s=e.message)!=null&&s.startsWith("must have required property"))?t("is a required property","is a required property",{error:e}):e.message},WS=(e,t,n,r,o,a)=>{if(e.length>0&&n){const i=yg(r,o,a,"error.custom"),s=n(i,void 0,{schema:r,uischema:o,path:a,errors:e});if(s!==void 0)return s}return t_(e.map(i=>t(i,n,o)))},wy=(e,t)=>{if(e.label===!1||(e.label===void 0||e.label===null||e.label===!0)&&!Ej(e))return;const n=typeof e.label=="string"?e.label:JSON.stringify(e.label),r=BS(void 0,e),o=typeof r=="string"?`${r}.label`:n;return t(o,n,{uischema:e})},Dj=(e,t,n,r)=>{const o={};return t.forEach(a=>{const i=Cfe(n,a.key);o[a.key]=e(i,a.default(r))}),o};var Vr;(function(e){e.addTooltip="addTooltip",e.addAriaLabel="addAriaLabel",e.removeTooltip="removeTooltip",e.upAriaLabel="upAriaLabel",e.downAriaLabel="downAriaLabel",e.noSelection="noSelection",e.removeAriaLabel="removeAriaLabel",e.noDataMessage="noDataMessage",e.deleteDialogTitle="deleteDialogTitle",e.deleteDialogMessage="deleteDialogMessage",e.deleteDialogAccept="deleteDialogAccept",e.deleteDialogDecline="deleteDialogDecline",e.up="up",e.down="down"})(Vr||(Vr={}));const Mj=[{key:Vr.addTooltip,default:e=>e?`Add to ${e}`:"Add"},{key:Vr.addAriaLabel,default:e=>e?`Add to ${e} button`:"Add button"},{key:Vr.removeTooltip,default:()=>"Delete"},{key:Vr.removeAriaLabel,default:()=>"Delete button"},{key:Vr.upAriaLabel,default:()=>"Move item up"},{key:Vr.up,default:()=>"Up"},{key:Vr.down,default:()=>"Down"},{key:Vr.downAriaLabel,default:()=>"Move item down"},{key:Vr.noDataMessage,default:()=>"No data"},{key:Vr.noSelection,default:()=>"No selection"},{key:Vr.deleteDialogTitle,default:()=>"Confirm Deletion"},{key:Vr.deleteDialogMessage,default:()=>"Are you sure you want to delete the selected entry?"},{key:Vr.deleteDialogAccept,default:()=>"Yes"},{key:Vr.deleteDialogDecline,default:()=>"No"}],hu={locale:"en",translate:VS,translateError:US},cR=(e=hu,t)=>{switch(t.type){case g_:{const n=t.locale??hu.locale,r=t.translator??hu.translate,o=t.errorTranslator??hu.translateError;return n!==e.locale||r!==e.translate||o!==e.translateError?{...e,locale:n,translate:r,translateError:o}:e}case v_:return{...e,translate:t.translator??VS,translateError:t.errorTranslator??US};case m_:return{...e,locale:t.locale??navigator.languages[0]};default:return e}},$fe=e=>e===void 0?VS:e.translate,Sfe=e=>e===void 0?US:e.translateError,Bu=-1,Wa=e=>!Mt(e)&&e.scope!==void 0,qr=e=>(t,n,r)=>{if(Mt(t)||!Wa(t)||Mt(n))return!1;const o=t.scope;if(Mt(o))return!1;let a=n;return Ks(n,"object")&&(a=ba(n,o,r==null?void 0:r.rootSchema)),a===void 0?!1:e(a,r==null?void 0:r.rootSchema)},HS=(e,t)=>(n,r,o)=>{if(Mt(n)||!Wa(n))return!1;const a=n.scope;let i=r;return Ks(r,"object")&&(i=ba(r,a,o==null?void 0:o.rootSchema)),i=ur(i,e),i===void 0?!1:t(i,o==null?void 0:o.rootSchema)},Ha=e=>qr(t=>!Mt(t)&&Ks(t,e)),Cy=e=>qr(t=>!Mt(t)&&t.format===e&&Ks(t,"string")),Sn=e=>t=>!Mt(t)&&t.type===e,ns=(e,t)=>n=>{if(Mt(n))return!1;const r=n.options;return!Mt(r)&&r[e]===t},_fe=e=>t=>Mt(e)||!Wa(t)?!1:Die(t.scope,e),Efe=e=>t=>{if(Mt(e)||!Wa(t))return!1;const n=t.scope;return!Mt(n)&&pie(n.split("/"))===e},Cn=(...e)=>(t,n,r)=>e.reduce((o,a)=>o&&a(t,n,r),!0),uc=(...e)=>(t,n,r)=>e.reduce((o,a)=>o||a(t,n,r),!1),mn=(e,t)=>(n,r,o)=>t(n,r,o)?e:Bu,Pfe=(e,t)=>(n,r,o)=>{const a=t(n,r,o);return a===Bu?Bu:a+e},Ij=Cn(Sn("Control"),Ha("boolean")),Tfe=Cn(Sn("Control"),Ha("object")),Aj=Cn(Sn("Control"),qr(e=>Object.prototype.hasOwnProperty.call(e,"allOf"))),Nj=Cn(Sn("Control"),qr(e=>Object.prototype.hasOwnProperty.call(e,"anyOf"))),jj=Cn(Sn("Control"),qr(e=>Object.prototype.hasOwnProperty.call(e,"oneOf"))),GS=Cn(Sn("Control"),uc(qr(e=>Object.prototype.hasOwnProperty.call(e,"enum")),qr(e=>Object.prototype.hasOwnProperty.call(e,"const")))),Lj=Cn(Sn("Control"),qr(e=>xg(e))),Fj=Cn(Sn("Control"),Ha("integer")),zj=Cn(Sn("Control"),Ha("number")),Bj=Cn(Sn("Control"),Ha("string")),Vj=Cn(Sn("Control"),ns("multi",!0)),Uj=Cn(Sn("Control"),uc(Cy("date"),ns("format","date"))),Wj=Cn(Sn("Control"),uc(Cy("time"),ns("format","time"))),Hj=Cn(Sn("Control"),uc(Cy("date-time"),ns("format","date-time"))),Gj=Cn(qr((e,t)=>Ks(e,"array")&&!Array.isArray(ba(e,"items",t))),HS("items",(e,t)=>{const n=e.$ref?ba(t,e.$ref,t):e;return Ks(n,"object")})),qS=Cn(Sn("Control"),Gj),$f=(e,t,n)=>{if(iN(e))return jw(e,(r,o)=>r||$f(o,t,n),!1);if(t(e))return!0;if(e.$ref){const r=ba(n,e.$ref,n);if(r&&!r.$ref)return $f(r,t,n)}return e.items?$f(e.items,t,n):e.properties?jw(ase(e.properties),(r,[o,a])=>r||$f(a,t,n),!1):!1},YS=(e,t,n)=>{if(!Sn("Control")(e,t,n))return!1;const r=e.scope,o=ba(t,r,(n==null?void 0:n.rootSchema)??t);let a=0;if(o!==void 0&&o.items!==void 0){if($f(o.items,i=>i===t||i.$ref!==void 0?!1:!!(i.anyOf||i.allOf||i.oneOf&&!xg(i)||Ks(i,"object")&&(a++,a===2)||Ks(i,"array")),n==null?void 0:n.rootSchema))return!0;if(e.options&&e.options.detail){if(typeof e.options.detail=="string")return e.options.detail.toUpperCase()!=="DEFAULT";if(typeof e.options.detail=="object"&&e.options.detail.type)return!0}}return!1},kfe=qS,qj=Cn(Sn("Control"),qr((e,t)=>Vu(e).length!==0&&!Array.isArray(ba(e,"items",t))),HS("items",(e,t)=>{const n=e.$ref?ba(t,e.$ref,t):e,r=Vu(n);return r.length===1&&z3(["integer","number","boolean","string"],r[0])})),Yj=Cn(Sn("Control"),uc(Ha("number"),Ha("integer")),qr(e=>Object.prototype.hasOwnProperty.call(e,"maximum")&&Object.prototype.hasOwnProperty.call(e,"minimum")&&Object.prototype.hasOwnProperty.call(e,"default")),ns("slider",!0)),Ofe=Cn(Sn("Control"),Ha("integer"),ns("format",!0)),Kj=e=>e.type==="Categorization",Jj=e=>e.type==="Category",KS=e=>Mt(e.elements)?!1:e.elements.map(t=>Kj(t)?KS(t):Jj(t)).reduce((t,n)=>t&&n,!0),Rfe=e=>KS(e),Dfe=e=>(t,n,r)=>!e(t,n,r);var Mfe=Object.freeze({__proto__:null,NOT_APPLICABLE:Bu,isControl:Wa,schemaMatches:qr,schemaSubPathMatches:HS,schemaTypeIs:Ha,formatIs:Cy,uiTypeIs:Sn,optionIs:ns,scopeEndsWith:_fe,scopeEndIs:Efe,and:Cn,or:uc,rankWith:mn,withIncreasedRank:Pfe,isBooleanControl:Ij,isObjectControl:Tfe,isAllOfControl:Aj,isAnyOfControl:Nj,isOneOfControl:jj,isEnumControl:GS,isOneOfEnumControl:Lj,isIntegerControl:Fj,isNumberControl:zj,isStringControl:Bj,isMultiLineControl:Vj,isDateControl:Uj,isTimeControl:Wj,isDateTimeControl:Hj,isObjectArray:Gj,isObjectArrayControl:qS,isObjectArrayWithNesting:YS,isArrayObjectControl:kfe,isPrimitiveArrayControl:qj,isRangeControl:Yj,isNumberFormatControl:Ofe,isCategorization:Kj,isCategory:Jj,hasCategory:KS,categorizationHasCategory:Rfe,not:Dfe});const Zj=e=>(t,n,r)=>{const o=fy(e,a=>a.tester(t,n,r));if(o!==void 0&&o.tester(t,n,r)!==Bu)return o.uischema},th=(e,t,n,r,o="VerticalLayout",a,i)=>{if(a&&a.options&&a.options.detail){if(typeof a.options.detail=="string"){if(a.options.detail.toUpperCase()==="GENERATE")return typeof o=="function"?o():Zl.uiSchema(t,o)}else if(typeof a.options.detail=="object"&&a.options.detail.type&&typeof a.options.detail.type=="string")return a.options.detail}const s=Zj(e)(t,n,r);return s===void 0?typeof o=="function"?o():Zl.uiSchema(t,o,"#",i):s},Xj=(e,t)=>n=>bfe(e,t)(n.jsonforms.core),Qj=(e,t)=>n=>xfe(e,t)(n.jsonforms.core),Kl=e=>e.jsonforms.config,ya=()=>e=>$fe(ur(e,"jsonforms.i18n")),JS=()=>e=>Sfe(ur(e,"jsonforms.i18n")),nh=e=>ffe(ur(e,"jsonforms.core")),bg=e=>pfe(ur(e,"jsonforms.core")),Ife=e=>hfe(ur(e,"jsonforms.core")),md=e=>mfe(ur(e,"jsonforms.core")),ZS=e=>ur(e,"jsonforms.renderers"),XS=e=>ur(e,"jsonforms.cells"),Afe=e=>ur(e,"jsonforms.uischemas"),dc=(e,t)=>{let n=e;return!Mt(e)&&!Mt(t)&&!t.startsWith("[")&&(n=e+"."),Mt(n)?t:Mt(t)?n:`${n}${t}`},e4=e=>{const r=e.replace(/(anyOf|allOf|oneOf)\/[\d]\//g,"").replace(/(then|else)\//g,"").split("/").map($y),a=r[0]==="#"||r[0]===""?2:1;return fd(a,r.length,2).map(i=>r[i])},t4=(e,t)=>{if(!afe(e))return t??"";const n=e4(e.scope);return Mt(n)?t??"":dc(t,n.join("."))},Jl=e=>e==null?void 0:e.replace(/~/g,"~0").replace(/\//g,"~1"),$y=e=>e==null?void 0:e.replace(/~1/g,"/").replace(/~0/,"~"),qw=(e,t)=>Mt(t)?e:t.split(".").reduce((r,o)=>{if(!(!r||!Object.prototype.hasOwnProperty.call(r,o)))return r[o]},e),Nfe=e=>e==="#"||e===void 0||e==="",ba=(e,t,n)=>{const r=t==null?void 0:t.split("/").map($y);return Ev(e,r,n)},Ev=(e,t,n)=>{if(Mt(e))return;if(e.$ref&&(e=ba(n,e.$ref,n)),!t||t.length===0)return e;const[r,...o]=t;if(Nfe(r))return Ev(e,o,n);const a=ur(e,r),i=Ev(a,o,n);if(i)return i;if(r==="properties"||r==="items"){let s;const l=[].concat(e.oneOf??[],e.allOf??[],e.anyOf??[],e.then??[],e.else??[]);for(const c of l)if(s=Ev(c,[r,...o],n),s)break;return s}},jfe=e=>e.type==="OR",Lfe=e=>e.type==="AND",Ffe=e=>e.type==="LEAF",zfe=e=>sle(e,"schema"),uR=(e,t)=>t4(e,t),Yw=(e,t,n,r)=>{if(Lfe(t))return t.conditions.reduce((o,a)=>o&&Yw(e,a,n,r),!0);if(jfe(t))return t.conditions.reduce((o,a)=>o||Yw(e,a,n,r),!1);if(Ffe(t))return qw(e,uR(t,n))===t.expectedValue;if(zfe(t)){const o=qw(e,uR(t,n));return r.validate(t.schema,o)}else return!0},n4=(e,t,n,r)=>{const o=e.rule.condition;return Yw(t,o,n,r)},Bfe=(e,t,n=void 0,r)=>{const o=n4(e,t,n,r);switch(e.rule.effect){case bi.HIDE:return!o;case bi.SHOW:return o;default:return!0}},Vfe=(e,t,n=void 0,r)=>{const o=n4(e,t,n,r);switch(e.rule.effect){case bi.DISABLE:return!o;case bi.ENABLE:return o;default:return!0}},QS=e=>!!(e.rule&&(e.rule.effect===bi.SHOW||e.rule.effect===bi.HIDE)),Ufe=e=>!!(e.rule&&(e.rule.effect===bi.ENABLE||e.rule.effect===bi.DISABLE)),vd=(e,t,n=void 0,r)=>e.rule?Bfe(e,t,n,r):!0,Wfe=(e,t,n=void 0,r)=>e.rule?Vfe(e,t,n,r):!0,e_=(e,t,n,r,o,a)=>{var i,s,l;return(i=e==null?void 0:e.jsonforms)!=null&&i.readonly?!1:n&&Ufe(n)?Wfe(n,o,t==null?void 0:t.path,md(e)):typeof((s=n==null?void 0:n.options)==null?void 0:s.readonly)=="boolean"?!n.options.readonly:typeof((l=n==null?void 0:n.options)==null?void 0:l.readOnly)=="boolean"?!n.options.readOnly:typeof(a==null?void 0:a.readonly)=="boolean"?!a.readonly:typeof(a==null?void 0:a.readOnly)=="boolean"?!a.readOnly:(r==null?void 0:r.readOnly)===!0?!1:typeof(t==null?void 0:t.enabled)=="boolean"?t.enabled:!0},r4=e=>e.replace("#","root").replace(new RegExp("/","g"),"_"),t_=e=>e==null?"":e.join(` -`),Ks=(e,t)=>z3(Vu(e),t),Vu=e=>{if(Mt(e))return[];if(!Mt(e.type)&&typeof e.type=="string")return[e.type];if(iN(e.type))return e.type;if(!Mt(e.properties)||!Mt(e.additionalProperties))return["object"];if(!Mt(e.items))return["array"];if(!Mt(e.allOf)){const t=tS(e.allOf,n=>Vu(n).length!==0);if(t)return Vu(t)}return[]},So={schema:ba,data:qw},Hfe=e=>e4(e.scope).join("."),Wr={compose:dc,fromScoped:Hfe},Zb=(e,t)=>{if(t&&typeof t.title=="string")return t.title;if(typeof e.scope=="string"){const n=e.scope,r=$y(n.substr(n.lastIndexOf("/")+1));return py(r)}return""},o4=(e,t)=>{const n=e.label;if(typeof n=="boolean")return Am(Zb(e,t),n);if(typeof n=="string")return Am(n,!0);if(typeof n=="object"){const r=typeof n.text=="string"?n.text:Zb(e,t),o=typeof n.show=="boolean"?n.show:!0;return Am(r,o)}return Am(Zb(e,t),!0)},Am=(e,t)=>({text:e,show:t}),Gfe=(e,t,n)=>{const r=t.split("/"),o=r[r.length-1],i=r.slice(0,r.length-2).join("/"),s=So.schema(e,i,n);return s!==void 0&&s.required!==void 0&&s.required.indexOf(o)!==-1},Sy=(e,t,n)=>`${e??""}${t&&!n?"*":""}`,_y=(e,t)=>e&&!t,Xi=e=>{switch(e.type){case"string":return e.format==="date-time"||e.format==="date"||e.format==="time"?new Date:"";case"integer":case"number":return 0;case"boolean":return!1;case"array":return[];case"null":return null;default:return{}}},_o=(e,t,n,r)=>t===void 0||t!==void 0&&!e||!r&&!n,yp=(e,t,n)=>{let r=typeof e=="string"?e:JSON.stringify(e);return t&&(n?r=t(`${n}.${r}`,r):r=t(r,r)),{label:r,value:e}},n_=(e,t,n)=>{let r=e.title??(typeof e.const=="string"?e.const:JSON.stringify(e.const));return t&&(e.i18n?r=t(e.i18n,r):n?r=t(`${n}.${r}`,r):r=t(r,r)),{label:r,value:e.const}},gd=(e,t)=>{const{uischema:n}=t,r=nh(e),o=t4(n,t.path),a=t.visible===void 0||QS(n)?vd(n,r,t.path,md(e)):t.visible,i=n,s=t.id,l=bg(e),c=i.scope!==void 0&&Gfe(t.schema,i.scope,l),u=So.schema(t.schema||l,i.scope,l),f=Xj(o,u)(e),p=u!==void 0?u.description:"",m=So.data(r,o),b=o4(n,u),v=b.show?b.text:"",w=Kl(e),g=e_(e,t,n,u||l,r,w),y=u??l,x=ya()(e),C=JS()(e),_=xi(y,n,o),$=x(yg(y,n,o,"label"),v,{schema:y,uischema:n,path:o,errors:f}),P=x(yg(y,n,o,"description"),p,{schema:y,uischema:n,path:o,errors:f}),k=WS(f,C,x,y,n,o);return{data:m,description:P,errors:k,label:$,visible:a,enabled:g,id:s,path:o,required:c,uischema:n,schema:y,config:Kl(e),cells:t.cells||e.jsonforms.cells,rootSchema:l,i18nKeyPrefix:_}},qfe=e=>({handleChange(t,n){e(ja(t,()=>n))}}),Yfe=(e,t)=>{var o;const n=gd(e,t),r=t.options||((o=n.schema.enum)==null?void 0:o.map(a=>yp(a,ya()(e),xi(n.schema,n.uischema,n.path))))||n.schema.const&&[yp(n.schema.const,ya()(e),xi(n.schema,n.uischema,n.path))];return{...n,options:r}},Kfe=(e,t)=>{var o;const n=gd(e,t),r=t.options||((o=n.schema.oneOf)==null?void 0:o.map(a=>n_(a,ya()(e),xi(n.schema,n.uischema,n.path))));return{...n,options:r}},Jfe=(e,t)=>{var a;const n=gd(e,t),r=n.schema.items,o=t.options||(r==null?void 0:r.oneOf)&&r.oneOf.map(i=>{var s;return n_(i,(s=e.jsonforms.i18n)==null?void 0:s.translate,xi(n.schema,n.uischema,n.path))})||((a=r==null?void 0:r.enum)==null?void 0:a.map(i=>{var s;return yp(i,(s=e.jsonforms.i18n)==null?void 0:s.translate,xi(n.schema,n.uischema,n.path))}));return{...n,options:o}},Zfe=(e,t)=>{const{schema:n,path:r,index:o}=t,a=n.properties?tS(Object.keys(n.properties),c=>{const u=n.properties[c];return u.type==="string"||u.type==="number"||u.type==="integer"}):void 0,i=dc(r,`${o}`),s=So.data(nh(e),i),l=a?s[a]:"";return{...t,childLabel:l}},r_=(e,t)=>{const{...n}=gd(e,t);return{...n,uischemas:e.jsonforms.uischemas}},Xfe=(e,t)=>{const{path:n,schema:r,uischema:o,i18nKeyPrefix:a,label:i,...s}=r_(e,t),l=So.schema(r,"items",s.rootSchema),c=Qj(n,l)(e),u=ya()(e);return{...s,label:i,path:n,uischema:o,schema:l,childErrors:c,renderers:t.renderers||ZS(e),cells:t.cells||XS(e),translations:Dj(u,Mj,a,i)}},Qfe=e=>({addItem:(t,n)=>()=>{e(ja(t,r=>r==null?[n]:(r.push(n),r)))},removeItems:(t,n)=>()=>{e(ja(t,r=>(n.sort().reverse().forEach(o=>r.splice(o,1)),r)))},moveUp:(t,n)=>()=>{e(ja(t,r=>(kj(r,n),r)))},moveDown:(t,n)=>()=>{e(ja(t,r=>(Oj(r,n),r)))}}),epe=e=>({addItem:(t,n)=>{e(ja(t,r=>r==null?[n]:(r.push(n),r)))},removeItem:(t,n)=>{e(ja(t,r=>{const o=r.indexOf(n);return r.splice(o,1),r}))}}),a4={visible:!0,enabled:!0,path:"",direction:"column"},tpe=e=>e.type==="HorizontalLayout"?"row":e.type==="VerticalLayout"?"column":a4.direction,npe=(e,t)=>{const n=nh(e),{uischema:r}=t,o=t.visible===void 0||QS(r)?vd(t.uischema,n,t.path,md(e)):t.visible,a=So.data(n,t.path),i=Kl(e),s=e_(e,t,r,void 0,n,i),l=ya()(e),c=ife(r)?wy(r,l):void 0;return{...a4,renderers:t.renderers||ZS(e),cells:t.cells||XS(e),visible:o,enabled:s,path:t.path,data:a,uischema:t.uischema,schema:t.schema,direction:t.direction??tpe(r),config:i,label:c}},rpe=(e,t)=>({renderers:t.renderers||ur(e.jsonforms,"renderers"),cells:t.cells||ur(e.jsonforms,"cells"),schema:t.schema||bg(e),rootSchema:bg(e),uischema:t.uischema||Ife(e),path:t.path,enabled:t.enabled,config:Kl(e)}),o_=(e,t,n)=>{var f;const{data:r,schema:o,rootSchema:a,...i}=gd(e,t),s=e.jsonforms.core.ajv,l=["required","additionalProperties","type","enum","const"],c=p=>!p||p.length===0||!p.find(m=>l.indexOf(m.keyword)!==-1);let u;for(let p=0;p<((f=o[n])==null?void 0:f.length);p++)try{let m=o[n][p];m.$ref&&(m=So.schema(a,m.$ref,a));const b=s.compile(m);if(b(r),c(b.errors)){u=p;break}}catch{console.debug("Combinator subschema is not self contained, can't hand it over to AJV")}return{data:r,schema:o,rootSchema:a,...i,indexOfFittingSchema:u,uischemas:Afe(e)}},ope=(e,t)=>o_(e,t,"allOf"),ape=(e,t)=>o_(e,t,"anyOf"),ipe=(e,t)=>o_(e,t,"oneOf"),spe=(e,t)=>{const{path:n,schema:r,uischema:o,errors:a,i18nKeyPrefix:i,label:s,...l}=r_(e,t),c=So.schema(r,"items",l.rootSchema),u=ya()(e),f=WS(Qj(n,c)(e),JS()(e),u,void 0,void 0,void 0),p=a+(a.length>0&&f.length>0?` -`:"")+f;return{...l,label:s,path:n,uischema:o,schema:c,data:l.data?l.data.length:0,errors:p,minItems:r.minItems,translations:Dj(u,Mj,i,s)}},lpe=(e,t)=>{const{uischema:n}=t,r=t.visible===void 0||QS(n)?vd(t.uischema,nh(e),t.path,md(e)):t.visible,o=n.text,a=ya()(e),i=BS(void 0,n),s=i?`${i}.text`:o??"";return{text:a(s,o,{uischema:n}),visible:r,config:Kl(e),renderers:t.renderers||ZS(e),cells:t.cells||XS(e)}},Ey=(e,t)=>{const{id:n,schema:r,path:o,uischema:a,renderers:i,cells:s}=t,l=nh(e),c=t.visible!==void 0?t.visible:vd(a,l,void 0,md(e)),u=bg(e),f=Kl(e);let p;e.jsonforms.readonly===!0?p=!1:typeof t.enabled=="boolean"?p=t.enabled:p=e_(e,t,a,r||u,l,f);const m=ya()(e),b=JS()(e),v=WS(Xj(o,r)(e),b,m,r,a,o),w=Mt(v);return{data:So.data(l,o),visible:c,enabled:p,id:n,path:o,errors:v,isValid:w,schema:r,uischema:a,config:Kl(e),rootSchema:u,renderers:i,cells:s}},cpe=(e,t)=>{const n=Ey(e,t),{renderers:r,cells:o,...a}=t;return{...n,...a,cells:o||e.jsonforms.cells||[]}},upe=(e,t)=>{var o;const n=Ey(e,t),r=t.options||((o=n.schema.enum)==null?void 0:o.map(a=>yp(a,ya()(e),xi(n.schema,n.uischema,n.path))))||n.schema.const&&[yp(n.schema.const,ya()(e),xi(n.schema,n.uischema,n.path))];return{...n,options:r}},dpe=(e,t)=>{var o;const n=Ey(e,t),r=t.options||((o=n.schema.oneOf)==null?void 0:o.map(a=>n_(a,ya()(e),xi(n.schema,n.uischema,n.path))));return{...n,options:r}},fpe=(e,t,n)=>e.title?e.title:n+"-"+t,Py=(e,t,n,r,o,a)=>e.map((i,s)=>{const l=i.$ref?So.schema(t,i.$ref,t):i;return{schema:l,uischema:th(a,l,r.scope,o,void 0,r,t),label:fpe(i,s,n)}}),a_=new Set,i4=(e,t)=>t<=1?e:e+t.toString(),ppe=(e,t)=>{const n=i4(e,t);return!a_.has(n)},s4=e=>{e===void 0&&(e="undefined");let t=0;for(;!ppe(e,t);)t++;const n=i4(e,t);return a_.add(n),n},l4=e=>a_.delete(e),hpe=e=>{if(e.properties)return tS(Object.keys(e.properties),t=>{const n=e.properties[t];return n.type==="string"||n.type==="number"||n.type==="integer"})},xg=e=>!!e&&Object.prototype.hasOwnProperty.call(e,"oneOf")&&e.oneOf&&e.oneOf.every(t=>t.const!==void 0),mpe=e=>{const t=new Xde({allErrors:!0,verbose:!0,strict:!1,...e});return efe(t),t},c4=e=>({type:e,elements:[]}),Pv=e=>({type:"Control",scope:e}),vpe=(e,t)=>{if(!Mt(e)&&!Pj(e)){const n=c4(t);return n.elements.push(e),n}return e},gpe=(e,t)=>{if(!Mt(t)){const n=py(t);if(rfe(e))e.label=n;else{const r={type:"Label",text:n};e.elements.push(r)}}},ype=e=>!Mt(e)&&(!Mt(e.oneOf)||!Mt(e.anyOf)||!Mt(e.allOf)),Kw=(e,t,n,r,o,a)=>{if(!Mt(e)&&e.$ref!==void 0)return Kw(ba(a,e.$ref,a),t,n,r,o,a);if(ype(e)){const s=Pv(n);return t.push(s),s}const i=Vu(e);if(i.length===0)return null;if(i.length>1){const s=Pv(n);return t.push(s),s}if(n==="#"&&i[0]==="object"){const s=c4(o);if(t.push(s),e.properties&&vZ(e.properties).length>1&&gpe(s,r),!Mt(e.properties)){const l=n+"/properties";Object.keys(e.properties).map(c=>{let u=e.properties[c];const f=`${l}/${Jl(c)}`;u.$ref!==void 0&&(u=ba(a,u.$ref,a)),Kw(u,s.elements,f,c,o,a)})}return s}switch(i[0]){case"object":case"array":case"string":case"number":case"integer":case"boolean":{const s=Pv(n);return t.push(s),s}default:throw new Error("Unknown type: "+JSON.stringify(e))}},u4=(e,t="VerticalLayout",n="#",r=e)=>vpe(Kw(e,[],n,"",t,r),t),Zl={jsonSchema:_j,uiSchema:u4,controlElement:Pv},i_="jsonforms/INIT",s_="jsonforms/UPDATE_CORE",l_="jsonforms/SET_AJV",c_="jsonforms/UPDATE",u_="jsonforms/UPDATE_ERRORS",bpe="jsonforms/VALIDATE",d4="jsonforms/ADD_RENDERER",f4="jsonforms/REMOVE_RENDERER",p4="jsonforms/ADD_CELL",h4="jsonforms/REMOVE_CELL",d_="jsonforms/SET_CONFIG",m4="jsonforms/ADD_UI_SCHEMA",v4="jsonforms/REMOVE_UI_SCHEMA",f_="jsonforms/SET_SCHEMA",p_="jsonforms/SET_UISCHEMA",h_="jsonforms/SET_VALIDATION_MODE",m_="jsonforms/SET_LOCALE",v_="jsonforms/SET_TRANSLATOR",g_="jsonforms/UPDATE_I18N",g4="jsonforms/ADD_DEFAULT_DATA",y4="jsonforms/REMOVE_DEFAULT_DATA",xpe=(e,t=_j(e),n,r)=>({type:i_,data:e,schema:t,uischema:typeof n=="object"?n:u4(t),options:r}),wpe=(e,t,n,r)=>({type:s_,data:e,schema:t,uischema:n,options:r}),Cpe=(e,t)=>({type:g4,schemaPath:e,data:t}),$pe=e=>({type:y4,schemaPath:e}),Spe=e=>({type:l_,ajv:e}),ja=(e,t)=>({type:c_,path:e,updater:t}),_pe=e=>({type:u_,errors:e}),Epe=(e,t)=>({type:d4,tester:e,renderer:t}),Ppe=(e,t)=>({type:p4,tester:e,cell:t}),Tpe=(e,t)=>({type:h4,tester:e,cell:t}),kpe=(e,t)=>({type:f4,tester:e,renderer:t}),Ope=e=>({type:d_,config:e}),Rpe=e=>({type:h_,validationMode:e}),Dpe=(e,t)=>({type:m4,tester:e,uischema:t}),Mpe=e=>({type:v4,tester:e}),Ipe=e=>({type:m_,locale:e}),Ape=e=>({type:f_,schema:e}),Npe=(e,t)=>({type:v_,translator:e,errorTranslator:t}),jpe=(e,t,n)=>({type:g_,locale:e,translator:t,errorTranslator:n}),Lpe=e=>({type:p_,uischema:e});var Lc=Object.freeze({__proto__:null,INIT:i_,UPDATE_CORE:s_,SET_AJV:l_,UPDATE_DATA:c_,UPDATE_ERRORS:u_,VALIDATE:bpe,ADD_RENDERER:d4,REMOVE_RENDERER:f4,ADD_CELL:p4,REMOVE_CELL:h4,SET_CONFIG:d_,ADD_UI_SCHEMA:m4,REMOVE_UI_SCHEMA:v4,SET_SCHEMA:f_,SET_UISCHEMA:p_,SET_VALIDATION_MODE:h_,SET_LOCALE:m_,SET_TRANSLATOR:v_,UPDATE_I18N:g_,ADD_DEFAULT_DATA:g4,REMOVE_DEFAULT_DATA:y4,init:xpe,updateCore:wpe,registerDefaultData:Cpe,unregisterDefaultData:$pe,setAjv:Spe,update:ja,updateErrors:_pe,registerRenderer:Epe,registerCell:Ppe,unregisterCell:Tpe,unregisterRenderer:kpe,setConfig:Ope,setValidationMode:Rpe,registerUISchema:Dpe,unregisterUISchema:Mpe,setLocale:Ipe,setSchema:Ape,setTranslator:Npe,updateI18n:jpe,setUISchema:Lpe});const wg={createLabelDescriptionFrom:o4,convertToValidClassName:r4};var Fpe=io,zpe=function(){return Fpe.Date.now()},Bpe=zpe,Vpe=Zo,Xb=Bpe,dR=D3,Upe="Expected a function",Wpe=Math.max,Hpe=Math.min;function Gpe(e,t,n){var r,o,a,i,s,l,c=0,u=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError(Upe);t=dR(t)||0,Vpe(n)&&(u=!!n.leading,f="maxWait"in n,a=f?Wpe(dR(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p);function m($){var P=r,k=o;return r=o=void 0,c=$,i=e.apply(k,P),i}function b($){return c=$,s=setTimeout(g,t),u?m($):i}function v($){var P=$-l,k=$-c,I=t-P;return f?Hpe(I,a-k):I}function w($){var P=$-l,k=$-c;return l===void 0||P>=t||P<0||f&&k>=a}function g(){var $=Xb();if(w($))return y($);s=setTimeout(g,v($))}function y($){return s=void 0,p&&r?m($):(r=o=void 0,i)}function x(){s!==void 0&&clearTimeout(s),c=0,r=l=o=s=void 0}function C(){return s===void 0?i:y(Xb())}function _(){var $=Xb(),P=w($);if(r=arguments,o=this,l=$,P){if(s===void 0)return b(l);if(f)return clearTimeout(s),s=setTimeout(g,t),m(l)}return s===void 0&&(s=setTimeout(g,t)),i}return _.cancel=x,_.flush=C,_}var qpe=Gpe;const b4=Bt(qpe);class x4 extends A.Component{constructor(t){super(t)}}class w4 extends x4{constructor(t){super(t),this.handleChange=n=>{this.setState({value:n}),this.updateData(n)},this.onFocus=()=>{this.setState({isFocused:!0})},this.onBlur=()=>{this.setState({isFocused:!1})},this.updateData=n=>{this.props.handleChange(this.props.path,n)},this.state={value:t.data?t.data:"",isFocused:!1}}}class C4 extends S.Component{render(){return A.createElement("div",{style:{color:"red"}},"No applicable ",this.props.type," found.")}}const Ype={data:{},schema:{},uischema:void 0,errors:[],additionalErrors:[],validator:void 0,ajv:void 0},$4=A.createContext({core:Ype,renderers:[]}),Kpe=(e,t)=>{const n=S.useRef(!0);S.useEffect(()=>{if(n.current){n.current=!1;return}e()},t)},Jpe=({children:e,initState:t,onChange:n})=>{var y,x,C;const{data:r,schema:o,uischema:a,ajv:i,validationMode:s,additionalErrors:l}=t.core,[c,u]=S.useReducer(lR,void 0,()=>lR(t.core,Lc.init(r,o,a,{ajv:i,validationMode:s,additionalErrors:l})));S.useEffect(()=>{u(Lc.updateCore(r,o,a,{ajv:i,validationMode:s,additionalErrors:l}))},[r,o,a,i,s,l]);const[f,p]=S.useReducer(oR,void 0,()=>oR(void 0,Lc.setConfig(t.config)));Kpe(()=>{p(Lc.setConfig(t.config))},[t.config]);const[m,b]=S.useReducer(cR,void 0,()=>{var _,$,P;return cR(t.i18n,Lc.updateI18n((_=t.i18n)==null?void 0:_.locale,($=t.i18n)==null?void 0:$.translate,(P=t.i18n)==null?void 0:P.translateError))});S.useEffect(()=>{var _,$,P;b(Lc.updateI18n((_=t.i18n)==null?void 0:_.locale,($=t.i18n)==null?void 0:$.translate,(P=t.i18n)==null?void 0:P.translateError))},[(y=t.i18n)==null?void 0:y.locale,(x=t.i18n)==null?void 0:x.translate,(C=t.i18n)==null?void 0:C.translateError]);const v=S.useMemo(()=>({core:c,renderers:t.renderers,cells:t.cells,config:f,uischemas:t.uischemas,readonly:t.readonly,i18n:m,dispatch:u}),[c,t.renderers,t.cells,f,t.uischemas,t.readonly,m]),w=S.useRef(n);S.useEffect(()=>{w.current=n},[n]);const g=S.useCallback(b4((..._)=>{var $;return($=w.current)==null?void 0:$.call(w,..._)},10),[]);return S.useEffect(()=>{g({data:c.data,errors:c.errors})},[c.data,c.errors]),A.createElement($4.Provider,{value:v},e)},fc=()=>S.useContext($4),Zpe=(e,t)=>spe({jsonforms:{...e}},t),Xpe=(e,t)=>Xfe({jsonforms:{...e}},t),Qpe=(e,t)=>npe({jsonforms:{...e}},t),ehe=(e,t)=>gd({jsonforms:{...e}},t),the=(e,t)=>{var o;const n=Yfe({jsonforms:{...e}},t),r=S.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},nhe=(e,t)=>{var o;const n=Kfe({jsonforms:{...e}},t),r=S.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},rhe=(e,t)=>{var o;const n=Jfe({jsonforms:{...e}},t),r=S.useMemo(()=>n.options,[n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},ohe=(e,t)=>r_({jsonforms:{...e}},t),ahe=(e,t)=>({...ope({jsonforms:{...e}},t)}),ko=e=>S.useMemo(()=>qfe(e),[e]),ihe=(e,t)=>{const n=ape({jsonforms:{...e}},t),r=ko(e.dispatch);return{...n,...r}},she=(e,t)=>{const n=ipe({jsonforms:{...e}},t),r=ko(e.dispatch);return{...n,...r}},lhe=(e,t)=>rpe({jsonforms:{...e}},t),S4=e=>({...ko(e),...S.useMemo(()=>Qfe(e),[e])}),che=(e,t)=>Zfe({jsonforms:{...e}},t),uhe=(e,t)=>Ey({jsonforms:{...e}},t),dhe=(e,t)=>{var o;const n=upe({jsonforms:{...e}},t),r=S.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},fhe=(e,t)=>{var o;const n=dpe({jsonforms:{...e}},t),r=S.useMemo(()=>n.options,[t.options,n.schema,(o=e.i18n)==null?void 0:o.translate]);return{...n,options:r}},phe=(e,t)=>cpe({jsonforms:{...e}},t),hhe=e=>({...ko(e),...S.useMemo(()=>epe(e),[e])}),mhe=(e,t)=>lpe({jsonforms:{...e}},t),$r=e=>function(n){const r=fc();return A.createElement(e,{ctx:r,props:n})},vhe=e=>function({ctx:n,props:r}){const o=lhe(n,r);return A.createElement(e,Object.assign({},r,o))},ghe=e=>function({ctx:n,props:r}){const o=ehe(n,r),a=ko(n.dispatch);return A.createElement(e,Object.assign({},r,o,a))},yhe=e=>function({ctx:n,props:r}){const o=Qpe(n,r);return A.createElement(e,Object.assign({},r,o))},bhe=e=>function({ctx:n,props:r}){const o=she(n,r),a=ko(n.dispatch);return A.createElement(e,Object.assign({},r,o,a))},xhe=e=>function({ctx:n,props:r}){const o=ihe(n,r),a=ko(n.dispatch);return A.createElement(e,Object.assign({},r,o,a))},whe=e=>function({ctx:n,props:r}){const o=ahe(n,r),a=ko(n.dispatch);return A.createElement(e,Object.assign({},r,o,a))},Che=e=>function({ctx:n,props:r}){const o=ohe(n,r);return A.createElement(e,Object.assign({},r,o))},$he=e=>function({ctx:n,props:r}){const o=Zpe(n,r),a=S4(n.dispatch);return A.createElement(e,Object.assign({},r,o,a))},She=e=>function({ctx:n,props:r}){const o=Xpe(n,r),a=S4(n.dispatch);return A.createElement(e,Object.assign({},r,o,a))},_he=e=>function({ctx:n,props:r}){const o=che(n,r);return A.createElement(e,Object.assign({},r,o))},Ehe=e=>function({ctx:n,props:r}){const o=uhe(n,r),a=ko(n.dispatch);return A.createElement(e,Object.assign({},r,a,o))},Phe=e=>function({ctx:n,props:r}){const o=phe(n,r),a=ko(n.dispatch);return A.createElement(e,Object.assign({},r,a,o))},The=e=>function({ctx:n,props:r}){const o=dhe(n,r),a=ko(n.dispatch);return A.createElement(e,Object.assign({},r,a,o))},khe=e=>function({ctx:n,props:r}){const o=the(n,r),a=ko(n.dispatch);return A.createElement(e,Object.assign({},r,a,o))},Ohe=e=>function({ctx:n,props:r}){const o=fhe(n,r),a=ko(n.dispatch);return A.createElement(e,Object.assign({},r,a,o))},Rhe=e=>function({ctx:n,props:r}){const o=nhe(n,r),a=ko(n.dispatch);return A.createElement(e,Object.assign({},r,a,o))},Dhe=e=>function({ctx:n,props:r}){const o=rhe(n,r),a=hhe(n.dispatch);return A.createElement(e,Object.assign({},r,a,o))},Mhe=e=>function({ctx:n,props:r}){const o=mhe(n,r);return A.createElement(e,Object.assign({},r,o))},_4=(e,t=!0)=>$r(vhe(t?A.memo(e):e)),so=(e,t=!0)=>$r(ghe(t?A.memo(e):e)),rs=(e,t=!0)=>$r(yhe(t?A.memo(e):e)),Ihe=(e,t=!0)=>$r(bhe(t?A.memo(e):e)),E4=(e,t=!0)=>$r(xhe(t?A.memo(e):e)),Ahe=(e,t=!0)=>$r(whe(t?A.memo(e):e)),Nhe=(e,t=!0)=>$r(Che(t?A.memo(e):e)),Ty=(e,t=!0)=>$r($he(t?A.memo(e):e)),P4=(e,t=!0)=>$r(She(t?A.memo(e):e)),jhe=(e,t=!0)=>$r(_he(t?A.memo(e):e)),fr=(e,t=!0)=>$r(Ehe(t?A.memo(e):e)),Lhe=(e,t=!0)=>$r(Phe(t?A.memo(e):e)),T4=(e,t=!0)=>$r(The(t?A.memo(e):e)),y_=(e,t=!0)=>$r(khe(t?A.memo(e):e)),Fhe=(e,t=!0)=>$r(Ohe(t?A.memo(e):e)),b_=(e,t=!0)=>$r(Rhe(t?A.memo(e):e)),zhe=(e,t=!0)=>$r(Dhe(t?A.memo(e):e)),k4=(e,t=!0)=>$r(Mhe(t?A.memo(e):e)),tl=e=>function(n){var i,s;const r=fc(),o=((i=r.i18n)==null?void 0:i.locale)??hu.locale,a=((s=r.i18n)==null?void 0:s.translate)??hu.translate;return A.createElement(e,Object.assign({},n,{locale:o,t:a}))};class O4 extends A.Component{constructor(t){super(t),this.state={id:Wa(t.uischema)?s4(t.uischema.scope):void 0}}componentWillUnmount(){Wa(this.props.uischema)&&l4(this.state.id)}render(){const{schema:t,rootSchema:n,uischema:r,path:o,enabled:a,renderers:i,cells:s,config:l}=this.props;return A.createElement(Bhe,{uischema:r,schema:t,rootSchema:n,path:o,enabled:a,renderers:i,cells:s,id:this.state.id,config:l})}}const Bhe=A.memo(function(t){const n=S.useMemo(()=>({rootSchema:t.rootSchema,config:t.config}),[t.rootSchema,t.config]),r=S.useMemo(()=>fy(t.renderers,o=>o.tester(t.uischema,t.schema,n)),[t.renderers,t.uischema,t.schema,n]);if(r===void 0||r.tester(t.uischema,t.schema,n)===-1)return A.createElement(C4,{type:"renderer"});{const o=r.renderer;return A.createElement(o,{uischema:t.uischema,schema:t.schema,path:t.path,enabled:t.enabled,renderers:t.renderers,cells:t.cells,id:t.id})}});class Vhe extends O4{constructor(t){super(t)}}const Eo=_4(O4);_4(Vhe);const fR=e=>{const{ajv:t,data:n,schema:r,uischema:o,renderers:a,cells:i,onChange:s,config:l,uischemas:c,readonly:u,validationMode:f,i18n:p,additionalErrors:m}=e,b=S.useMemo(()=>r!==void 0?r:Zl.jsonSchema(n),[r,n]),v=S.useMemo(()=>typeof o=="object"?o:Zl.uiSchema(b),[o,b]);return A.createElement(Jpe,{initState:{core:{ajv:t,data:n,schema:b,uischema:v,validationMode:f,additionalErrors:m},config:l,uischemas:c,renderers:a,cells:i,readonly:u,i18n:p},onChange:s},A.createElement(Eo,null))},Uhe=({uischema:e,schema:t,rootSchema:n,path:r,cells:o,id:a,enabled:i,renderers:s,config:l})=>{const c=S.useMemo(()=>({rootSchema:n,config:l}),[n,l]),u=S.useMemo(()=>fy(o,f=>f.tester(e,t,c)),[o,e,t,c]);if(u===void 0||u.tester(e,t,c)===-1)return A.createElement(C4,{type:"cell"});{const f=u.cell;return A.createElement(f,{uischema:e,schema:t,enabled:i,path:r,id:a,renderers:s,cells:o})}},Xl=Lhe(Uhe),Whe={black:"#000",white:"#fff"},bp=Whe,Hhe={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"},Fc=Hhe,Ghe={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"},zc=Ghe,qhe={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"},Bc=qhe,Yhe={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"},Vc=Yhe,Khe={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"},Uc=Khe,Jhe={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"},tf=Jhe,Zhe={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"},Xhe=Zhe;function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;t{t[n]=R4(e[n])}),t}function Hr(e,t,n={clone:!0}){const r=n.clone?T({},e):e;return Bi(e)&&Bi(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Bi(t[o])&&o in e&&Bi(e[o])?r[o]=Hr(e[o],t[o],n):n.clone?r[o]=Bi(t[o])?R4(t[o]):t[o]:r[o]=t[o])}),r}var D4={exports:{}},Qhe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",eme=Qhe,tme=eme;function M4(){}function I4(){}I4.resetWarningCache=M4;var nme=function(){function e(r,o,a,i,s,l){if(l!==tme){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:I4,resetWarningCache:M4};return n.PropTypes=n,n};D4.exports=nme();var rme=D4.exports;const j=Bt(rme);function Js(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;nn==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function rh(e,t=166){let n;function r(...o){const a=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function ame(e,t){return()=>null}function _u(e,t){var n,r;return S.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function zn(e){return e&&e.ownerDocument||document}function wi(e){return zn(e).defaultView||window}function ime(e,t){return()=>null}function xp(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const sme=typeof window<"u"?S.useLayoutEffect:S.useEffect,Kn=sme;let pR=0;function lme(e){const[t,n]=S.useState(e),r=e||t;return S.useEffect(()=>{t==null&&(pR+=1,n(`mui-${pR}`))},[t]),r}const hR=Qf["useId".toString()];function Ga(e){if(hR!==void 0){const t=hR();return e??t}return lme(e)}function cme(e,t,n,r,o){return null}function wr({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=S.useRef(e!==void 0),[a,i]=S.useState(t),s=o?e:a,l=S.useCallback(c=>{o||i(c)},[]);return[s,l]}function mt(e){const t=S.useRef(e);return Kn(()=>{t.current=e}),S.useCallback((...n)=>(0,t.current)(...n),[])}function sn(...e){return S.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{xp(n,t)})},e)}let ky=!0,Jw=!1,mR;const ume={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 dme(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&ume[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function fme(e){e.metaKey||e.altKey||e.ctrlKey||(ky=!0)}function Qb(){ky=!1}function pme(){this.visibilityState==="hidden"&&Jw&&(ky=!0)}function hme(e){e.addEventListener("keydown",fme,!0),e.addEventListener("mousedown",Qb,!0),e.addEventListener("pointerdown",Qb,!0),e.addEventListener("touchstart",Qb,!0),e.addEventListener("visibilitychange",pme,!0)}function mme(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return ky||dme(t)}function Oy(){const e=S.useCallback(o=>{o!=null&&hme(o.ownerDocument)},[]),t=S.useRef(!1);function n(){return t.current?(Jw=!0,window.clearTimeout(mR),mR=window.setTimeout(()=>{Jw=!1},100),t.current=!1,!0):!1}function r(o){return mme(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function A4(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Wc;function N4(){if(Wc)return Wc;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Wc="reverse",e.scrollLeft>0?Wc="default":(e.scrollLeft=1,e.scrollLeft===0&&(Wc="negative")),document.body.removeChild(e),Wc}function vme(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(N4()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const gme=e=>{const t=S.useRef({});return S.useEffect(()=>{t.current=e}),t.current},x_=gme,yme={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},bme=yme;function w_(e,t){const n=T({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=T({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},a=t[r];n[r]={},!a||!Object.keys(a)?n[r]=o:!o||!Object.keys(o)?n[r]=a:(n[r]=T({},a),Object.keys(o).forEach(i=>{n[r][i]=w_(o[i],a[i])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Xe(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((a,i)=>{if(i){const s=t(i);s!==""&&a.push(s),n&&n[i]&&a.push(n[i])}return a},[]).join(" ")}),r}const vR=e=>e,xme=()=>{let e=vR;return{configure(t){e=t},generate(t){return e(t)},reset(){e=vR}}},wme=xme(),j4=wme,Cme={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function et(e,t,n="Mui"){const r=Cme[t];return r?`${n}-${r}`:`${j4.generate(e)}-${t}`}function Qe(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=et(e,o,n)}),r}const Ry="$$material";function Oe(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a=0)&&(n[o]=e[o]);return n}function L4(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var $me=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Sme=L4(function(e){return $me.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function _me(e){if(e.sheet)return e.sheet;for(var t=0;t0?Dr(bd,--Po):0,Uu--,lr===10&&(Uu=1,My--),lr}function Ho(){return lr=Po2||Cp(lr)>3?"":" "}function Lme(e,t){for(;--t&&Ho()&&!(lr<48||lr>102||lr>57&&lr<65||lr>70&&lr<97););return oh(e,Tv()+(t<6&&mi()==32&&Ho()==32))}function Xw(e){for(;Ho();)switch(lr){case e:return Po;case 34:case 39:e!==34&&e!==39&&Xw(lr);break;case 40:e===41&&Xw(e);break;case 92:Ho();break}return Po}function Fme(e,t){for(;Ho()&&e+lr!==47+10;)if(e+lr===42+42&&mi()===47)break;return"/*"+oh(t,Po-1)+"*"+Dy(e===47?e:Ho())}function zme(e){for(;!Cp(mi());)Ho();return oh(e,Po)}function Bme(e){return W4(Ov("",null,null,null,[""],e=U4(e),0,[0],e))}function Ov(e,t,n,r,o,a,i,s,l){for(var c=0,u=0,f=i,p=0,m=0,b=0,v=1,w=1,g=1,y=0,x="",C=o,_=a,$=r,P=x;w;)switch(b=y,y=Ho()){case 40:if(b!=108&&Dr(P,f-1)==58){Zw(P+=hn(kv(y),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:P+=kv(y);break;case 9:case 10:case 13:case 32:P+=jme(b);break;case 92:P+=Lme(Tv()-1,7);continue;case 47:switch(mi()){case 42:case 47:Nm(Vme(Fme(Ho(),Tv()),t,n),l);break;default:P+="/"}break;case 123*v:s[c++]=ai(P)*g;case 125*v:case 59:case 0:switch(y){case 0:case 125:w=0;case 59+u:g==-1&&(P=hn(P,/\f/g,"")),m>0&&ai(P)-f&&Nm(m>32?yR(P+";",r,n,f-1):yR(hn(P," ","")+";",r,n,f-2),l);break;case 59:P+=";";default:if(Nm($=gR(P,t,n,c,u,o,s,x,C=[],_=[],f),a),y===123)if(u===0)Ov(P,t,$,$,C,a,f,s,_);else switch(p===99&&Dr(P,3)===110?100:p){case 100:case 108:case 109:case 115:Ov(e,$,$,r&&Nm(gR(e,$,$,0,0,o,s,x,o,C=[],f),_),o,_,f,s,r?C:_);break;default:Ov(P,$,$,$,[""],_,0,s,_)}}c=u=m=0,v=g=1,x=P="",f=i;break;case 58:f=1+ai(P),m=b;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&Nme()==125)continue}switch(P+=Dy(y),y*v){case 38:g=u>0?1:(P+="\f",-1);break;case 44:s[c++]=(ai(P)-1)*g,g=1;break;case 64:mi()===45&&(P+=kv(Ho())),p=mi(),u=f=ai(x=P+=zme(Tv())),y++;break;case 45:b===45&&ai(P)==2&&(v=0)}}return a}function gR(e,t,n,r,o,a,i,s,l,c,u){for(var f=o-1,p=o===0?a:[""],m=S_(p),b=0,v=0,w=0;b0?p[g]+" "+y:hn(y,/&\f/g,p[g])))&&(l[w++]=x);return Iy(e,t,n,o===0?C_:s,l,c,u)}function Vme(e,t,n){return Iy(e,t,n,F4,Dy(Ame()),wp(e,2,-2),0)}function yR(e,t,n,r){return Iy(e,t,n,$_,wp(e,0,r),wp(e,r+1,-1),r)}function Eu(e,t){for(var n="",r=S_(e),o=0;o6)switch(Dr(e,t+1)){case 109:if(Dr(e,t+4)!==45)break;case 102:return hn(e,/(.+:)(.+)-([^]+)/,"$1"+pn+"$2-$3$1"+$g+(Dr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Zw(e,"stretch")?H4(hn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Dr(e,t+1)!==115)break;case 6444:switch(Dr(e,ai(e)-3-(~Zw(e,"!important")&&10))){case 107:return hn(e,":",":"+pn)+e;case 101:return hn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+pn+(Dr(e,14)===45?"inline-":"")+"box$3$1"+pn+"$2$3$1"+Br+"$2box$3")+e}break;case 5936:switch(Dr(e,t+11)){case 114:return pn+e+Br+hn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return pn+e+Br+hn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return pn+e+Br+hn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return pn+e+Br+e+e}return e}var Zme=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case $_:t.return=H4(t.value,t.length);break;case z4:return Eu([nf(t,{value:hn(t.value,"@","@"+pn)})],o);case C_:if(t.length)return Ime(t.props,function(a){switch(Mme(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Eu([nf(t,{props:[hn(a,/:(read-\w+)/,":"+$g+"$1")]})],o);case"::placeholder":return Eu([nf(t,{props:[hn(a,/:(plac\w+)/,":"+pn+"input-$1")]}),nf(t,{props:[hn(a,/:(plac\w+)/,":"+$g+"$1")]}),nf(t,{props:[hn(a,/:(plac\w+)/,Br+"input-$1")]})],o)}return""})}},Xme=[Zme],Qme=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(v){var w=v.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||Xme,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var w=v.getAttribute("data-emotion").split(" "),g=1;g=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 dve={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},fve=/[A-Z]|^ms/g,pve=/_EMO_([^_]+?)_([^]*?)_EMO_/g,X4=function(t){return t.charCodeAt(1)===45},xR=function(t){return t!=null&&typeof t!="boolean"},ex=L4(function(e){return X4(e)?e:e.replace(fve,"-$&").toLowerCase()}),wR=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(pve,function(r,o,a){return ii={name:o,styles:a,next:ii},o})}return dve[t]!==1&&!X4(t)&&typeof n=="number"&&n!==0?n+"px":n};function $p(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 ii={name:n.name,styles:n.styles,next:ii},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)ii={name:r.name,styles:r.styles,next:ii},r=r.next;var o=n.styles+";";return o}return hve(e,t,n)}case"function":{if(e!==void 0){var a=ii,i=n(e);return ii=a,$p(e,t,i)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function hve(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?bve:xve},_R=function(t,n,r){var o;if(n){var a=n.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},wve=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return J4(n,r,o),vve(function(){return Z4(n,r,o)}),null},Cve=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,a,i;n!==void 0&&(a=n.label,i=n.target);var s=_R(t,n,r),l=s||SR(o),c=!l("as");return function(){var u=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else{f.push(u[0][0]);for(var p=u.length,m=1;mt(Sve(o)?n:o):t;return O.jsx(gve,{styles:r})}/** - * @mui/styled-engine v5.14.14 - * - * @license MIT - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function Eve(e,t){return Qw(e,t)}const Pve=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Tve=["values","unit","step"],kve=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)=>T({},n,{[r.key]:r.val}),{})};function Ove(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Oe(e,Tve),a=kve(t),i=Object.keys(a);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function c(p,m){const b=i.indexOf(m);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(b!==-1&&typeof t[i[b]]=="number"?t[i[b]]:m)-r/100}${n})`}function u(p){return i.indexOf(p)+1`@media (min-width:${R_[e]}px)`};function To(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||ER;return t.reduce((i,s,l)=>(i[a.up(a.keys[l])]=n(t[l]),i),{})}if(typeof t=="object"){const a=r.breakpoints||ER;return Object.keys(t).reduce((i,s)=>{if(Object.keys(a.values||R_).indexOf(s)!==-1){const l=a.up(s);i[l]=n(t[s],s)}else{const l=s;i[l]=t[l]}return i},{})}return n(t)}function n5(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const a=e.up(o);return r[a]={},r},{}))||{}}function r5(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Mve(e,...t){const n=n5(e),r=[n,...t].reduce((o,a)=>Hr(o,a),{});return r5(Object.keys(n),r)}function Ive(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,a)=>{a{e[o]!=null&&(n[o]=!0)}),n}function Fl({values:e,breakpoints:t,base:n}){const r=n||Ive(e,t),o=Object.keys(r);if(o.length===0)return e;let a;return o.reduce((i,s,l)=>(Array.isArray(e)?(i[s]=e[l]!=null?e[l]:e[a],a=l):typeof e=="object"?(i[s]=e[s]!=null?e[s]:e[a],a=s):i[s]=e,i),{})}function Hy(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Sg(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Hy(e,n)||r,t&&(o=t(o,r,e)),o}function yn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=i=>{if(i[t]==null)return null;const s=i[t],l=i.theme,c=Hy(l,r)||{};return To(i,s,f=>{let p=Sg(c,o,f);return f===p&&typeof f=="string"&&(p=Sg(c,o,`${t}${f==="default"?"":je(f)}`,f)),n===!1?p:{[n]:p}})};return a.propTypes={},a.filterProps=[t],a}function Ave(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Nve={m:"margin",p:"padding"},jve={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},PR={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Lve=Ave(e=>{if(e.length>2)if(PR[e])e=PR[e];else return[e];const[t,n]=e.split(""),r=Nve[t],o=jve[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),D_=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],M_=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...D_,...M_];function ah(e,t,n,r){var o;const a=(o=Hy(e,t,!1))!=null?o:n;return typeof a=="number"?i=>typeof i=="string"?i:a*i:Array.isArray(a)?i=>typeof i=="string"?i:a[i]:typeof a=="function"?a:()=>{}}function I_(e){return ah(e,"spacing",8)}function Ql(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 Fve(e,t){return n=>e.reduce((r,o)=>(r[o]=Ql(t,n),r),{})}function zve(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=Lve(n),a=Fve(o,r),i=e[n];return To(e,i,a)}function o5(e,t){const n=I_(e.theme);return Object.keys(e).map(r=>zve(e,t,r,n)).reduce(Vf,{})}function Zn(e){return o5(e,D_)}Zn.propTypes={};Zn.filterProps=D_;function Xn(e){return o5(e,M_)}Xn.propTypes={};Xn.filterProps=M_;function Bve(e=8){if(e.mui)return e;const t=I_({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" ");return n.mui=!0,n}function Gy(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(a=>{r[a]=o}),r),{}),n=r=>Object.keys(r).reduce((o,a)=>t[a]?Vf(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function ci(e){return typeof e!="number"?e:`${e}px solid`}const Vve=yn({prop:"border",themeKey:"borders",transform:ci}),Uve=yn({prop:"borderTop",themeKey:"borders",transform:ci}),Wve=yn({prop:"borderRight",themeKey:"borders",transform:ci}),Hve=yn({prop:"borderBottom",themeKey:"borders",transform:ci}),Gve=yn({prop:"borderLeft",themeKey:"borders",transform:ci}),qve=yn({prop:"borderColor",themeKey:"palette"}),Yve=yn({prop:"borderTopColor",themeKey:"palette"}),Kve=yn({prop:"borderRightColor",themeKey:"palette"}),Jve=yn({prop:"borderBottomColor",themeKey:"palette"}),Zve=yn({prop:"borderLeftColor",themeKey:"palette"}),qy=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ah(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Ql(t,r)});return To(e,e.borderRadius,n)}return null};qy.propTypes={};qy.filterProps=["borderRadius"];Gy(Vve,Uve,Wve,Hve,Gve,qve,Yve,Kve,Jve,Zve,qy);const Yy=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ah(e.theme,"spacing",8),n=r=>({gap:Ql(t,r)});return To(e,e.gap,n)}return null};Yy.propTypes={};Yy.filterProps=["gap"];const Ky=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ah(e.theme,"spacing",8),n=r=>({columnGap:Ql(t,r)});return To(e,e.columnGap,n)}return null};Ky.propTypes={};Ky.filterProps=["columnGap"];const Jy=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ah(e.theme,"spacing",8),n=r=>({rowGap:Ql(t,r)});return To(e,e.rowGap,n)}return null};Jy.propTypes={};Jy.filterProps=["rowGap"];const Xve=yn({prop:"gridColumn"}),Qve=yn({prop:"gridRow"}),ege=yn({prop:"gridAutoFlow"}),tge=yn({prop:"gridAutoColumns"}),nge=yn({prop:"gridAutoRows"}),rge=yn({prop:"gridTemplateColumns"}),oge=yn({prop:"gridTemplateRows"}),age=yn({prop:"gridTemplateAreas"}),ige=yn({prop:"gridArea"});Gy(Yy,Ky,Jy,Xve,Qve,ege,tge,nge,rge,oge,age,ige);function Pu(e,t){return t==="grey"?t:e}const sge=yn({prop:"color",themeKey:"palette",transform:Pu}),lge=yn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Pu}),cge=yn({prop:"backgroundColor",themeKey:"palette",transform:Pu});Gy(sge,lge,cge);function zo(e){return e<=1&&e!==0?`${e*100}%`:e}const uge=yn({prop:"width",transform:zo}),A_=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const a=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||R_[n];return a?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:zo(n)}};return To(e,e.maxWidth,t)}return null};A_.filterProps=["maxWidth"];const dge=yn({prop:"minWidth",transform:zo}),fge=yn({prop:"height",transform:zo}),pge=yn({prop:"maxHeight",transform:zo}),hge=yn({prop:"minHeight",transform:zo});yn({prop:"size",cssProperty:"width",transform:zo});yn({prop:"size",cssProperty:"height",transform:zo});const mge=yn({prop:"boxSizing"});Gy(uge,A_,dge,fge,pge,hge,mge);const vge={border:{themeKey:"borders",transform:ci},borderTop:{themeKey:"borders",transform:ci},borderRight:{themeKey:"borders",transform:ci},borderBottom:{themeKey:"borders",transform:ci},borderLeft:{themeKey:"borders",transform:ci},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:qy},color:{themeKey:"palette",transform:Pu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Pu},backgroundColor:{themeKey:"palette",transform:Pu},p:{style:Xn},pt:{style:Xn},pr:{style:Xn},pb:{style:Xn},pl:{style:Xn},px:{style:Xn},py:{style:Xn},padding:{style:Xn},paddingTop:{style:Xn},paddingRight:{style:Xn},paddingBottom:{style:Xn},paddingLeft:{style:Xn},paddingX:{style:Xn},paddingY:{style:Xn},paddingInline:{style:Xn},paddingInlineStart:{style:Xn},paddingInlineEnd:{style:Xn},paddingBlock:{style:Xn},paddingBlockStart:{style:Xn},paddingBlockEnd:{style:Xn},m:{style:Zn},mt:{style:Zn},mr:{style:Zn},mb:{style:Zn},ml:{style:Zn},mx:{style:Zn},my:{style:Zn},margin:{style:Zn},marginTop:{style:Zn},marginRight:{style:Zn},marginBottom:{style:Zn},marginLeft:{style:Zn},marginX:{style:Zn},marginY:{style:Zn},marginInline:{style:Zn},marginInlineStart:{style:Zn},marginInlineEnd:{style:Zn},marginBlock:{style:Zn},marginBlockStart:{style:Zn},marginBlockEnd:{style:Zn},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:Yy},rowGap:{style:Jy},columnGap:{style:Ky},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:zo},maxWidth:{style:A_},minWidth:{transform:zo},height:{transform:zo},maxHeight:{transform:zo},minHeight:{transform:zo},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Zy=vge;function gge(...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 yge(e,t){return typeof e=="function"?e(t):e}function bge(){function e(n,r,o,a){const i={[n]:r,theme:o},s=a[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:f}=s;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const p=Hy(o,c)||{};return f?f(i):To(i,r,b=>{let v=Sg(p,u,b);return b===v&&typeof b=="string"&&(v=Sg(p,u,`${n}${b==="default"?"":je(b)}`,b)),l===!1?v:{[l]:v}})}function t(n){var r;const{sx:o,theme:a={}}=n||{};if(!o)return null;const i=(r=a.unstable_sxConfig)!=null?r:Zy;function s(l){let c=l;if(typeof l=="function")c=l(a);else if(typeof l!="object")return l;if(!c)return null;const u=n5(a.breakpoints),f=Object.keys(u);let p=u;return Object.keys(c).forEach(m=>{const b=yge(c[m],a);if(b!=null)if(typeof b=="object")if(i[m])p=Vf(p,e(m,b,a,i));else{const v=To({theme:a},b,w=>({[m]:w}));gge(v,b)?p[m]=t({sx:b,theme:a}):p=Vf(p,v)}else p=Vf(p,e(m,b,a,i))}),r5(f,p)}return Array.isArray(o)?o.map(s):s(o)}return t}const a5=bge();a5.filterProps=["sx"];const N_=a5,xge=["breakpoints","palette","spacing","shape"];function Xy(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={}}=e,i=Oe(e,xge),s=Ove(n),l=Bve(o);let c=Hr({breakpoints:s,direction:"ltr",components:{},palette:T({mode:"light"},r),spacing:l,shape:T({},Dve,a)},i);return c=t.reduce((u,f)=>Hr(u,f),c),c.unstable_sxConfig=T({},Zy,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(f){return N_({sx:f,theme:this})},c}function wge(e){return Object.keys(e).length===0}function j_(e=null){const t=S.useContext(k_);return!t||wge(t)?e:t}const Cge=Xy();function ih(e=Cge){return j_(e)}function $ge({styles:e,themeId:t,defaultTheme:n={}}){const r=ih(n),o=typeof e=="function"?e(t&&r[t]||r):e;return O.jsx(_ve,{styles:o})}const Sge=["sx"],_ge=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Zy;return Object.keys(e).forEach(a=>{o[a]?r.systemProps[a]=e[a]:r.otherProps[a]=e[a]}),r};function L_(e){const{sx:t}=e,n=Oe(e,Sge),{systemProps:r,otherProps:o}=_ge(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...i)=>{const s=t(...i);return Bi(s)?T({},r,s):r}:a=T({},r,t),T({},o,{sx:a})}function i5(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t{o==="color"?r+=TR(r)?e[o]:je(e[o]):r+=`${TR(r)?o:je(o)}${je(e[o].toString())}`}),r}const Pge=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Tge(e){return Object.keys(e).length===0}function kge(e){return typeof e=="string"&&e.charCodeAt(0)>96}const Oge=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,_g=e=>{const t={};return e&&e.forEach(n=>{const r=s5(n.props);t[r]=n.style}),t},Rge=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),_g(n)},Eg=(e,t,n)=>{const{ownerState:r={}}=e,o=[];return n&&n.forEach(a=>{let i=!0;Object.keys(a.props).forEach(s=>{r[s]!==a.props[s]&&e[s]!==a.props[s]&&(i=!1)}),i&&o.push(t[s5(a.props)])}),o},Dge=(e,t,n,r)=>{var o;const a=n==null||(o=n.components)==null||(o=o[r])==null?void 0:o.variants;return Eg(e,t,a)};function Uf(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Mge=Xy(),Ige=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Rv({defaultTheme:e,theme:t,themeId:n}){return Tge(t)?e:t[n]||t}function Age(e){return e?(t,n)=>n[e]:null}const kR=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const o=e(T({},t,{theme:Rv(T({},t,{defaultTheme:n,themeId:r}))}));let a;if(o&&o.variants&&(a=o.variants,delete o.variants),a){const i=Eg(t,_g(a),a);return[o,...i]}return o};function l5(e={}){const{themeId:t,defaultTheme:n=Mge,rootShouldForwardProp:r=Uf,slotShouldForwardProp:o=Uf}=e,a=i=>N_(T({},i,{theme:Rv(T({},i,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{Pve(i,C=>C.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:f,overridesResolver:p=Age(Ige(c))}=s,m=Oe(s,Pge),b=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,v=f||!1;let w,g=Uf;c==="Root"||c==="root"?g=r:c?g=o:kge(i)&&(g=void 0);const y=Eve(i,T({shouldForwardProp:g,label:w},m)),x=(C,..._)=>{const $=_?_.map(D=>{if(typeof D=="function"&&D.__emotion_real!==D)return F=>kR({styledArg:D,props:F,defaultTheme:n,themeId:t});if(Bi(D)){let F=D,U;return D&&D.variants&&(U=D.variants,delete F.variants,F=G=>{let z=D;return Eg(G,_g(U),U).forEach(Y=>{z=Hr(z,Y)}),z}),F}return D}):[];let P=C;if(Bi(C)){let D;C&&C.variants&&(D=C.variants,delete P.variants,P=F=>{let U=C;return Eg(F,_g(D),D).forEach(z=>{U=Hr(U,z)}),U})}else typeof C=="function"&&C.__emotion_real!==C&&(P=D=>kR({styledArg:C,props:D,defaultTheme:n,themeId:t}));l&&p&&$.push(D=>{const F=Rv(T({},D,{defaultTheme:n,themeId:t})),U=Oge(l,F);if(U){const G={};return Object.entries(U).forEach(([z,B])=>{G[z]=typeof B=="function"?B(T({},D,{theme:F})):B}),p(D,G)}return null}),l&&!b&&$.push(D=>{const F=Rv(T({},D,{defaultTheme:n,themeId:t}));return Dge(D,Rge(l,F),F,l)}),v||$.push(a);const k=$.length-_.length;if(Array.isArray(C)&&k>0){const D=new Array(k).fill("");P=[...C,...D],P.raw=[...C.raw,...D]}const I=y(P,...$);return i.muiName&&(I.muiName=i.muiName),I};return y.withConfig&&(x.withConfig=y.withConfig),x}}const Nge=l5(),jge=Nge;function F_(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:w_(t.components[n].defaultProps,r)}function c5({props:e,name:t,defaultTheme:n,themeId:r}){let o=ih(n);return r&&(o=o[r]||o),F_({theme:o,name:t,props:e})}function z_(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function Lge(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 ec(e){if(e.type)return e;if(e.charAt(0)==="#")return ec(Lge(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Js(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(Js(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}function Qy(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,a)=>a<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 Fge(e){e=ec(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),i=(c,u=(c+n/30)%12)=>o-a*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),Qy({type:s,values:l})}function OR(e){e=ec(e);let t=e.type==="hsl"||e.type==="hsla"?ec(Fge(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 zge(e,t){const n=OR(e),r=OR(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Tt(e,t){return e=ec(e),t=z_(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Qy(e)}function e0(e,t){if(e=ec(e),t=z_(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 Qy(e)}function t0(e,t){if(e=ec(e),t=z_(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 Qy(e)}const Bge=["component","direction","spacing","divider","children","className","useFlexGap"],Vge=Xy(),Uge=jge("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Wge(e){return c5({props:e,name:"MuiStack",defaultTheme:Vge})}function Hge(e,t){const n=S.Children.toArray(e).filter(Boolean);return n.reduce((r,o,a)=>(r.push(o),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],qge=({ownerState:e,theme:t})=>{let n=T({display:"flex",flexDirection:"column"},To({theme:t},Fl({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=I_(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),a=Fl({values:e.direction,base:o}),i=Fl({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((l,c,u)=>{if(!a[l]){const p=c>0?a[u[c-1]]:"column";a[l]=p}}),n=Hr(n,To({theme:t},i,(l,c)=>e.useFlexGap?{gap:Ql(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Gge(c?a[c]:e.direction)}`]:Ql(r,l)}}))}return n=Mve(t.breakpoints,n),n};function Yge(e={}){const{createStyledComponent:t=Uge,useThemeProps:n=Wge,componentName:r="MuiStack"}=e,o=()=>Xe({root:["root"]},l=>et(r,l),{}),a=t(qge);return S.forwardRef(function(l,c){const u=n(l),f=L_(u),{component:p="div",direction:m="column",spacing:b=0,divider:v,children:w,className:g,useFlexGap:y=!1}=f,x=Oe(f,Bge),C={direction:m,spacing:b,useFlexGap:y},_=o();return O.jsx(a,T({as:p,ownerState:C,ref:c,className:Ie(_.root,g)},x,{children:v?Hge(w,v):w}))})}function Kge(e,t){return T({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Jge=["mode","contrastThreshold","tonalOffset"],RR={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:bp.white,default:bp.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}},tx={text:{primary:bp.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:bp.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 DR(e,t,n,r){const o=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=t0(e.main,o):t==="dark"&&(e.dark=e0(e.main,a)))}function Zge(e="light"){return e==="dark"?{main:Bc[200],light:Bc[50],dark:Bc[400]}:{main:Bc[700],light:Bc[400],dark:Bc[800]}}function Xge(e="light"){return e==="dark"?{main:zc[200],light:zc[50],dark:zc[400]}:{main:zc[500],light:zc[300],dark:zc[700]}}function Qge(e="light"){return e==="dark"?{main:Fc[500],light:Fc[300],dark:Fc[700]}:{main:Fc[700],light:Fc[400],dark:Fc[800]}}function eye(e="light"){return e==="dark"?{main:Vc[400],light:Vc[300],dark:Vc[700]}:{main:Vc[700],light:Vc[500],dark:Vc[900]}}function tye(e="light"){return e==="dark"?{main:Uc[400],light:Uc[300],dark:Uc[700]}:{main:Uc[800],light:Uc[500],dark:Uc[900]}}function nye(e="light"){return e==="dark"?{main:tf[400],light:tf[300],dark:tf[700]}:{main:"#ed6c02",light:tf[500],dark:tf[900]}}function rye(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Oe(e,Jge),a=e.primary||Zge(t),i=e.secondary||Xge(t),s=e.error||Qge(t),l=e.info||eye(t),c=e.success||tye(t),u=e.warning||nye(t);function f(v){return zge(v,tx.text.primary)>=n?tx.text.primary:RR.text.primary}const p=({color:v,name:w,mainShade:g=500,lightShade:y=300,darkShade:x=700})=>{if(v=T({},v),!v.main&&v[g]&&(v.main=v[g]),!v.hasOwnProperty("main"))throw new Error(Js(11,w?` (${w})`:"",g));if(typeof v.main!="string")throw new Error(Js(12,w?` (${w})`:"",JSON.stringify(v.main)));return DR(v,"light",y,r),DR(v,"dark",x,r),v.contrastText||(v.contrastText=f(v.main)),v},m={dark:tx,light:RR};return Hr(T({common:T({},bp),mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:Xhe,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r},m[t]),o)}const oye=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function aye(e){return Math.round(e*1e5)/1e5}const MR={textTransform:"uppercase"},IR='"Roboto", "Helvetica", "Arial", sans-serif';function iye(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=IR,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:f}=n,p=Oe(n,oye),m=o/14,b=f||(g=>`${g/c*m}rem`),v=(g,y,x,C,_)=>T({fontFamily:r,fontWeight:g,fontSize:b(y),lineHeight:x},r===IR?{letterSpacing:`${aye(C/y)}em`}:{},_,u),w={h1:v(a,96,1.167,-1.5),h2:v(a,60,1.2,-.5),h3:v(i,48,1.167,0),h4:v(i,34,1.235,.25),h5:v(i,24,1.334,0),h6:v(s,20,1.6,.15),subtitle1:v(i,16,1.75,.15),subtitle2:v(s,14,1.57,.1),body1:v(i,16,1.5,.15),body2:v(i,14,1.43,.15),button:v(s,14,1.75,.4,MR),caption:v(i,12,1.66,.4),overline:v(i,12,2.66,1,MR),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Hr(T({htmlFontSize:c,pxToRem:b,fontFamily:r,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:l},w),p,{clone:!1})}const sye=.2,lye=.14,cye=.12;function Ln(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${sye})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${lye})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${cye})`].join(",")}const uye=["none",Ln(0,2,1,-1,0,1,1,0,0,1,3,0),Ln(0,3,1,-2,0,2,2,0,0,1,5,0),Ln(0,3,3,-2,0,3,4,0,0,1,8,0),Ln(0,2,4,-1,0,4,5,0,0,1,10,0),Ln(0,3,5,-1,0,5,8,0,0,1,14,0),Ln(0,3,5,-1,0,6,10,0,0,1,18,0),Ln(0,4,5,-2,0,7,10,1,0,2,16,1),Ln(0,5,5,-3,0,8,10,1,0,3,14,2),Ln(0,5,6,-3,0,9,12,1,0,3,16,2),Ln(0,6,6,-3,0,10,14,1,0,4,18,3),Ln(0,6,7,-4,0,11,15,1,0,4,20,3),Ln(0,7,8,-4,0,12,17,2,0,5,22,4),Ln(0,7,8,-4,0,13,19,2,0,5,24,4),Ln(0,7,9,-4,0,14,21,2,0,5,26,4),Ln(0,8,9,-5,0,15,22,2,0,6,28,5),Ln(0,8,10,-5,0,16,24,2,0,6,30,5),Ln(0,8,11,-5,0,17,26,2,0,6,32,5),Ln(0,9,11,-5,0,18,28,2,0,7,34,6),Ln(0,9,12,-6,0,19,29,2,0,7,36,6),Ln(0,10,13,-6,0,20,31,3,0,8,38,7),Ln(0,10,13,-6,0,21,33,3,0,8,40,7),Ln(0,10,14,-6,0,22,35,3,0,8,42,7),Ln(0,11,14,-7,0,23,36,3,0,9,44,8),Ln(0,11,15,-7,0,24,38,3,0,9,46,8)],dye=uye,fye=["duration","easing","delay"],pye={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)"},u5={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function AR(e){return`${Math.round(e)}ms`}function hye(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function mye(e){const t=T({},pye,e.easing),n=T({},u5,e.duration);return T({getAutoHeightDuration:hye,create:(o=["all"],a={})=>{const{duration:i=n.standard,easing:s=t.easeInOut,delay:l=0}=a;return Oe(a,fye),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof i=="string"?i:AR(i)} ${s} ${typeof l=="string"?l:AR(l)}`).join(",")}},e,{easing:t,duration:n})}const vye={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},gye=vye,yye=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function bye(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:a={}}=e,i=Oe(e,yye);if(e.vars)throw new Error(Js(18));const s=rye(r),l=Xy(e);let c=Hr(l,{mixins:Kge(l.breakpoints,n),palette:s,shadows:dye.slice(),typography:iye(s,a),transitions:mye(o),zIndex:T({},gye)});return c=Hr(c,i),c=t.reduce((u,f)=>Hr(u,f),c),c.unstable_sxConfig=T({},Zy,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(f){return N_({sx:f,theme:this})},c}const xye=bye(),n0=xye;function nr(){const e=ih(n0);return e[Ry]||e}function Ke({props:e,name:t}){return c5({props:e,name:t,defaultTheme:n0,themeId:Ry})}const Qo=e=>Uf(e)&&e!=="classes",B_=Uf,wye=l5({themeId:Ry,defaultTheme:n0,rootShouldForwardProp:Qo}),de=wye,Cye=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},NR=Cye;function $ye(e){return et("MuiSvgIcon",e)}Qe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Sye=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],_ye=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${je(t)}`,`fontSize${je(n)}`]};return Xe(o,$ye,r)},Eye=de("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${je(n.color)}`],t[`fontSize${je(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,a,i,s,l,c,u,f,p,m,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(i=a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.active,disabled:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.disabled,inherit:void 0}[t.color]}}),d5=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:f,viewBox:p="0 0 24 24"}=r,m=Oe(r,Sye),b=S.isValidElement(o)&&o.type==="svg",v=T({},r,{color:i,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:b}),w={};u||(w.viewBox=p);const g=_ye(v);return O.jsxs(Eye,T({as:s,className:Ie(g.root,a),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},w,m,b&&o.props,{ownerState:v,children:[b?o.props.children:o,f?O.jsx("title",{children:f}):null]}))});d5.muiName="SvgIcon";const eC=d5;function rr(e,t){function n(r,o){return O.jsx(eC,T({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=eC.muiName,S.memo(S.forwardRef(n))}const Pye={configure:e=>{j4.configure(e)}},Tye=Object.freeze(Object.defineProperty({__proto__:null,capitalize:je,createChainedFunction:Cg,createSvgIcon:rr,debounce:rh,deprecatedPropType:ame,isMuiElement:_u,ownerDocument:zn,ownerWindow:wi,requirePropFactory:ime,setRef:xp,unstable_ClassNameGenerator:Pye,unstable_useEnhancedEffect:Kn,unstable_useId:Ga,unsupportedProp:cme,useControlled:wr,useEventCallback:mt,useForkRef:sn,useIsFocusVisible:Oy},Symbol.toStringTag,{value:"Module"}));var _n={};/** - * @license React - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var V_=Symbol.for("react.element"),U_=Symbol.for("react.portal"),r0=Symbol.for("react.fragment"),o0=Symbol.for("react.strict_mode"),a0=Symbol.for("react.profiler"),i0=Symbol.for("react.provider"),s0=Symbol.for("react.context"),kye=Symbol.for("react.server_context"),l0=Symbol.for("react.forward_ref"),c0=Symbol.for("react.suspense"),u0=Symbol.for("react.suspense_list"),d0=Symbol.for("react.memo"),f0=Symbol.for("react.lazy"),Oye=Symbol.for("react.offscreen"),f5;f5=Symbol.for("react.module.reference");function $a(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case V_:switch(e=e.type,e){case r0:case a0:case o0:case c0:case u0:return e;default:switch(e=e&&e.$$typeof,e){case kye:case s0:case l0:case f0:case d0:case i0:return e;default:return t}}case U_:return t}}}_n.ContextConsumer=s0;_n.ContextProvider=i0;_n.Element=V_;_n.ForwardRef=l0;_n.Fragment=r0;_n.Lazy=f0;_n.Memo=d0;_n.Portal=U_;_n.Profiler=a0;_n.StrictMode=o0;_n.Suspense=c0;_n.SuspenseList=u0;_n.isAsyncMode=function(){return!1};_n.isConcurrentMode=function(){return!1};_n.isContextConsumer=function(e){return $a(e)===s0};_n.isContextProvider=function(e){return $a(e)===i0};_n.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===V_};_n.isForwardRef=function(e){return $a(e)===l0};_n.isFragment=function(e){return $a(e)===r0};_n.isLazy=function(e){return $a(e)===f0};_n.isMemo=function(e){return $a(e)===d0};_n.isPortal=function(e){return $a(e)===U_};_n.isProfiler=function(e){return $a(e)===a0};_n.isStrictMode=function(e){return $a(e)===o0};_n.isSuspense=function(e){return $a(e)===c0};_n.isSuspenseList=function(e){return $a(e)===u0};_n.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===r0||e===a0||e===o0||e===c0||e===u0||e===Oye||typeof e=="object"&&e!==null&&(e.$$typeof===f0||e.$$typeof===d0||e.$$typeof===i0||e.$$typeof===s0||e.$$typeof===l0||e.$$typeof===f5||e.getModuleId!==void 0)};_n.typeOf=$a;function tC(e,t){return tC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},tC(e,t)}function W_(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,tC(e,t)}function Rye(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Dye(e,t){e.classList?e.classList.add(t):Rye(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function jR(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Mye(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=jR(e.className,t):e.setAttribute("class",jR(e.className&&e.className.baseVal||"",t))}const LR={disabled:!1},Pg=A.createContext(null);var p5=function(t){return t.scrollTop},Sf="unmounted",El="exited",Pl="entering",Qc="entered",nC="exiting",os=function(e){W_(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var i=o,s=i&&!i.isMounting?r.enter:r.appear,l;return a.appearStatus=null,r.in?s?(l=El,a.appearStatus=Pl):l=Qc:r.unmountOnExit||r.mountOnEnter?l=Sf:l=El,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===Sf?{status:El}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var a=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==Pl&&i!==Qc&&(a=Pl):(i===Pl||i===Qc)&&(a=nC)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,a,i,s;return a=i=s=o,o!=null&&typeof o!="number"&&(a=o.exit,i=o.enter,s=o.appear!==void 0?o.appear:i),{exit:a,enter:i,appear:s}},n.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===Pl){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:wf.findDOMNode(this);i&&p5(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===El&&this.setState({status:Sf})},n.performEnter=function(o){var a=this,i=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[wf.findDOMNode(this),s],c=l[0],u=l[1],f=this.getTimeouts(),p=s?f.appear:f.enter;if(!o&&!i||LR.disabled){this.safeSetState({status:Qc},function(){a.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Pl},function(){a.props.onEntering(c,u),a.onTransitionEnd(p,function(){a.safeSetState({status:Qc},function(){a.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,a=this.props.exit,i=this.getTimeouts(),s=this.props.nodeRef?void 0:wf.findDOMNode(this);if(!a||LR.disabled){this.safeSetState({status:El},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:nC},function(){o.props.onExiting(s),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:El},function(){o.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},n.setNextCallback=function(o){var a=this,i=!0;return this.nextCallback=function(s){i&&(i=!1,a.nextCallback=null,o(s))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(o,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:wf.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!i||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Sf)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var s=Oe(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return A.createElement(Pg.Provider,{value:null},typeof i=="function"?i(o,s):A.cloneElement(A.Children.only(i),s))},t}(A.Component);os.contextType=Pg;os.propTypes={};function Hc(){}os.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Hc,onEntering:Hc,onEntered:Hc,onExit:Hc,onExiting:Hc,onExited:Hc};os.UNMOUNTED=Sf;os.EXITED=El;os.ENTERING=Pl;os.ENTERED=Qc;os.EXITING=nC;const p0=os;var Iye=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Dye(t,r)})},nx=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Mye(t,r)})},H_=function(e){W_(t,e);function t(){for(var r,o=arguments.length,a=new Array(o),i=0;ie.scrollTop;function Wu(e,t){var n,r;const{timeout:o,easing:a,style:i={}}=e;return{duration:(n=i.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=i.transitionTimingFunction)!=null?r:typeof a=="object"?a[t.mode]:a,delay:i.transitionDelay}}function Vye(e){return et("MuiCollapse",e)}Qe("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Uye=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],Wye=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Xe(r,Vye,n)},Hye=de("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>T({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&T({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),Gye=de("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>T({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),qye=de("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>T({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),m5=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiCollapse"}),{addEndListener:o,children:a,className:i,collapsedSize:s="0px",component:l,easing:c,in:u,onEnter:f,onEntered:p,onEntering:m,onExit:b,onExited:v,onExiting:w,orientation:g="vertical",style:y,timeout:x=u5.standard,TransitionComponent:C=p0}=r,_=Oe(r,Uye),$=T({},r,{orientation:g,collapsedSize:s}),P=Wye($),k=nr(),I=S.useRef(),D=S.useRef(null),F=S.useRef(),U=typeof s=="number"?`${s}px`:s,G=g==="horizontal",z=G?"width":"height";S.useEffect(()=>()=>{clearTimeout(I.current)},[]);const B=S.useRef(null),Y=sn(n,B),Q=V=>Z=>{if(V){const re=B.current;Z===void 0?V(re):V(re,Z)}},H=()=>D.current?D.current[G?"clientWidth":"clientHeight"]:0,J=Q((V,Z)=>{D.current&&G&&(D.current.style.position="absolute"),V.style[z]=U,f&&f(V,Z)}),X=Q((V,Z)=>{const re=H();D.current&&G&&(D.current.style.position="");const{duration:le,easing:xe}=Wu({style:y,timeout:x,easing:c},{mode:"enter"});if(x==="auto"){const fe=k.transitions.getAutoHeightDuration(re);V.style.transitionDuration=`${fe}ms`,F.current=fe}else V.style.transitionDuration=typeof le=="string"?le:`${le}ms`;V.style[z]=`${re}px`,V.style.transitionTimingFunction=xe,m&&m(V,Z)}),L=Q((V,Z)=>{V.style[z]="auto",p&&p(V,Z)}),K=Q(V=>{V.style[z]=`${H()}px`,b&&b(V)}),q=Q(v),R=Q(V=>{const Z=H(),{duration:re,easing:le}=Wu({style:y,timeout:x,easing:c},{mode:"exit"});if(x==="auto"){const xe=k.transitions.getAutoHeightDuration(Z);V.style.transitionDuration=`${xe}ms`,F.current=xe}else V.style.transitionDuration=typeof re=="string"?re:`${re}ms`;V.style[z]=U,V.style.transitionTimingFunction=le,w&&w(V)}),N=V=>{x==="auto"&&(I.current=setTimeout(V,F.current||0)),o&&o(B.current,V)};return O.jsx(C,T({in:u,onEnter:J,onEntered:L,onEntering:X,onExit:K,onExited:q,onExiting:R,addEndListener:N,nodeRef:B,timeout:x==="auto"?null:x},_,{children:(V,Z)=>O.jsx(Hye,T({as:l,className:Ie(P.root,i,{entered:P.entered,exited:!u&&U==="0px"&&P.hidden}[V]),style:T({[G?"minWidth":"minHeight"]:U},y),ownerState:T({},$,{state:V}),ref:Y},Z,{children:O.jsx(Gye,{ownerState:T({},$,{state:V}),className:P.wrapper,ref:D,children:O.jsx(qye,{ownerState:T({},$,{state:V}),className:P.wrapperInner,children:a})})}))}))});m5.muiSupportAuto=!0;const Yye=m5;function Kye(e){return et("MuiPaper",e)}Qe("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Jye=["className","component","elevation","square","variant"],Zye=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Xe(a,Kye,o)},Xye=de("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return T({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&T({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Tt("#fff",NR(t.elevation))}, ${Tt("#fff",NR(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Qye=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiPaper"}),{className:o,component:a="div",elevation:i=1,square:s=!1,variant:l="elevation"}=r,c=Oe(r,Jye),u=T({},r,{component:a,elevation:i,square:s,variant:l}),f=Zye(u);return O.jsx(Xye,T({as:a,ownerState:u,className:Ie(f.root,o),ref:n},c))}),as=Qye,e0e=S.createContext({}),v5=e0e;function t0e(e){return et("MuiAccordion",e)}const n0e=Qe("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),jm=n0e,r0e=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],o0e=e=>{const{classes:t,square:n,expanded:r,disabled:o,disableGutters:a}=e;return Xe({root:["root",!n&&"rounded",r&&"expanded",o&&"disabled",!a&&"gutters"],region:["region"]},t0e,t)},a0e=de(as,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${jm.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&:before":{display:"none"}},[`&.${jm.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${jm.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e,ownerState:t})=>T({},!t.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!t.disableGutters&&{[`&.${jm.expanded}`]:{margin:"16px 0"}})),i0e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiAccordion"}),{children:o,className:a,defaultExpanded:i=!1,disabled:s=!1,disableGutters:l=!1,expanded:c,onChange:u,square:f=!1,TransitionComponent:p=Yye,TransitionProps:m}=r,b=Oe(r,r0e),[v,w]=wr({controlled:c,default:i,name:"Accordion",state:"expanded"}),g=S.useCallback(P=>{w(!v),u&&u(P,!v)},[v,u,w]),[y,...x]=S.Children.toArray(o),C=S.useMemo(()=>({expanded:v,disabled:s,disableGutters:l,toggle:g}),[v,s,l,g]),_=T({},r,{square:f,disabled:s,disableGutters:l,expanded:v}),$=o0e(_);return O.jsxs(a0e,T({className:Ie($.root,a),ref:n,ownerState:_,square:f},b,{children:[O.jsx(v5.Provider,{value:C,children:y}),O.jsx(p,T({in:v,timeout:"auto"},m,{children:O.jsx("div",{"aria-labelledby":y.props.id,id:y.props["aria-controls"],role:"region",className:$.region,children:x})}))]}))}),s0e=i0e;function l0e(e){return et("MuiAccordionDetails",e)}Qe("MuiAccordionDetails",["root"]);const c0e=["className"],u0e=e=>{const{classes:t}=e;return Xe({root:["root"]},l0e,t)},d0e=de("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),f0e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiAccordionDetails"}),{className:o}=r,a=Oe(r,c0e),i=r,s=u0e(i);return O.jsx(d0e,T({className:Ie(s.root,o),ref:n,ownerState:i},a))}),p0e=f0e;function h0e(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:i,in:s,onExited:l,timeout:c}=e,[u,f]=S.useState(!1),p=Ie(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),m={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},b=Ie(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&f(!0),S.useEffect(()=>{if(!s&&l!=null){const v=setTimeout(l,c);return()=>{clearTimeout(v)}}},[l,s,c]),O.jsx("span",{className:p,style:m,children:O.jsx("span",{className:b})})}const m0e=Qe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ca=m0e,v0e=["center","classes","className"];let h0=e=>e,FR,zR,BR,VR;const rC=550,g0e=80,y0e=O_(FR||(FR=h0` - 0% { - transform: scale(0); - opacity: 0.1; - } - - 100% { - transform: scale(1); - opacity: 0.3; - } -`)),b0e=O_(zR||(zR=h0` - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } -`)),x0e=O_(BR||(BR=h0` - 0% { - transform: scale(1); - } - - 50% { - transform: scale(0.92); - } - - 100% { - transform: scale(1); - } -`)),w0e=de("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),C0e=de(h0e,{name:"MuiTouchRipple",slot:"Ripple"})(VR||(VR=h0` - opacity: 0; - position: absolute; - - &.${0} { - opacity: 0.3; - transform: scale(1); - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - &.${0} { - animation-duration: ${0}ms; - } - - & .${0} { - opacity: 1; - display: block; - width: 100%; - height: 100%; - border-radius: 50%; - background-color: currentColor; - } - - & .${0} { - opacity: 0; - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - & .${0} { - position: absolute; - /* @noflip */ - left: 0px; - top: 0; - animation-name: ${0}; - animation-duration: 2500ms; - animation-timing-function: ${0}; - animation-iteration-count: infinite; - animation-delay: 200ms; - } -`),ca.rippleVisible,y0e,rC,({theme:e})=>e.transitions.easing.easeInOut,ca.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ca.child,ca.childLeaving,b0e,rC,({theme:e})=>e.transitions.easing.easeInOut,ca.childPulsate,x0e,({theme:e})=>e.transitions.easing.easeInOut),$0e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i}=r,s=Oe(r,v0e),[l,c]=S.useState([]),u=S.useRef(0),f=S.useRef(null);S.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const p=S.useRef(!1),m=S.useRef(0),b=S.useRef(null),v=S.useRef(null);S.useEffect(()=>()=>{m.current&&clearTimeout(m.current)},[]);const w=S.useCallback(C=>{const{pulsate:_,rippleX:$,rippleY:P,rippleSize:k,cb:I}=C;c(D=>[...D,O.jsx(C0e,{classes:{ripple:Ie(a.ripple,ca.ripple),rippleVisible:Ie(a.rippleVisible,ca.rippleVisible),ripplePulsate:Ie(a.ripplePulsate,ca.ripplePulsate),child:Ie(a.child,ca.child),childLeaving:Ie(a.childLeaving,ca.childLeaving),childPulsate:Ie(a.childPulsate,ca.childPulsate)},timeout:rC,pulsate:_,rippleX:$,rippleY:P,rippleSize:k},u.current)]),u.current+=1,f.current=I},[a]),g=S.useCallback((C={},_={},$=()=>{})=>{const{pulsate:P=!1,center:k=o||_.pulsate,fakeElement:I=!1}=_;if((C==null?void 0:C.type)==="mousedown"&&p.current){p.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(p.current=!0);const D=I?null:v.current,F=D?D.getBoundingClientRect():{width:0,height:0,left:0,top:0};let U,G,z;if(k||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)U=Math.round(F.width/2),G=Math.round(F.height/2);else{const{clientX:B,clientY:Y}=C.touches&&C.touches.length>0?C.touches[0]:C;U=Math.round(B-F.left),G=Math.round(Y-F.top)}if(k)z=Math.sqrt((2*F.width**2+F.height**2)/3),z%2===0&&(z+=1);else{const B=Math.max(Math.abs((D?D.clientWidth:0)-U),U)*2+2,Y=Math.max(Math.abs((D?D.clientHeight:0)-G),G)*2+2;z=Math.sqrt(B**2+Y**2)}C!=null&&C.touches?b.current===null&&(b.current=()=>{w({pulsate:P,rippleX:U,rippleY:G,rippleSize:z,cb:$})},m.current=setTimeout(()=>{b.current&&(b.current(),b.current=null)},g0e)):w({pulsate:P,rippleX:U,rippleY:G,rippleSize:z,cb:$})},[o,w]),y=S.useCallback(()=>{g({},{pulsate:!0})},[g]),x=S.useCallback((C,_)=>{if(clearTimeout(m.current),(C==null?void 0:C.type)==="touchend"&&b.current){b.current(),b.current=null,m.current=setTimeout(()=>{x(C,_)});return}b.current=null,c($=>$.length>0?$.slice(1):$),f.current=_},[]);return S.useImperativeHandle(n,()=>({pulsate:y,start:g,stop:x}),[y,g,x]),O.jsx(w0e,T({className:Ie(ca.root,a.root,i),ref:v},s,{children:O.jsx(Y_,{component:null,exit:!0,children:l})}))}),S0e=$0e;function _0e(e){return et("MuiButtonBase",e)}const E0e=Qe("MuiButtonBase",["root","disabled","focusVisible"]),P0e=E0e,T0e=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],k0e=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Xe({root:["root",t&&"disabled",n&&"focusVisible"]},_0e,o);return n&&r&&(i.root+=` ${r}`),i},O0e=de("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${P0e.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),R0e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:m="a",onBlur:b,onClick:v,onContextMenu:w,onDragLeave:g,onFocus:y,onFocusVisible:x,onKeyDown:C,onKeyUp:_,onMouseDown:$,onMouseLeave:P,onMouseUp:k,onTouchEnd:I,onTouchMove:D,onTouchStart:F,tabIndex:U=0,TouchRippleProps:G,touchRippleRef:z,type:B}=r,Y=Oe(r,T0e),Q=S.useRef(null),H=S.useRef(null),J=sn(H,z),{isFocusVisibleRef:X,onFocus:L,onBlur:K,ref:q}=Oy(),[R,N]=S.useState(!1);c&&R&&N(!1),S.useImperativeHandle(o,()=>({focusVisible:()=>{N(!0),Q.current.focus()}}),[]);const[V,Z]=S.useState(!1);S.useEffect(()=>{Z(!0)},[]);const re=V&&!u&&!c;S.useEffect(()=>{R&&p&&!u&&V&&H.current.pulsate()},[u,p,R,V]);function le(Te,it,ct=f){return mt(gt=>(it&&it(gt),!ct&&H.current&&H.current[Te](gt),!0))}const xe=le("start",$),fe=le("stop",w),ge=le("stop",g),he=le("stop",k),_e=le("stop",Te=>{R&&Te.preventDefault(),P&&P(Te)}),ve=le("start",F),Be=le("stop",I),Ue=le("stop",D),ze=le("stop",Te=>{K(Te),X.current===!1&&N(!1),b&&b(Te)},!1),He=mt(Te=>{Q.current||(Q.current=Te.currentTarget),L(Te),X.current===!0&&(N(!0),x&&x(Te)),y&&y(Te)}),be=()=>{const Te=Q.current;return l&&l!=="button"&&!(Te.tagName==="A"&&Te.href)},we=S.useRef(!1),Ce=mt(Te=>{p&&!we.current&&R&&H.current&&Te.key===" "&&(we.current=!0,H.current.stop(Te,()=>{H.current.start(Te)})),Te.target===Te.currentTarget&&be()&&Te.key===" "&&Te.preventDefault(),C&&C(Te),Te.target===Te.currentTarget&&be()&&Te.key==="Enter"&&!c&&(Te.preventDefault(),v&&v(Te))}),qe=mt(Te=>{p&&Te.key===" "&&H.current&&R&&!Te.defaultPrevented&&(we.current=!1,H.current.stop(Te,()=>{H.current.pulsate(Te)})),_&&_(Te),v&&Te.target===Te.currentTarget&&be()&&Te.key===" "&&!Te.defaultPrevented&&v(Te)});let rt=l;rt==="button"&&(Y.href||Y.to)&&(rt=m);const Ae={};rt==="button"?(Ae.type=B===void 0?"button":B,Ae.disabled=c):(!Y.href&&!Y.to&&(Ae.role="button"),c&&(Ae["aria-disabled"]=c));const Le=sn(n,q,Q),Fe=T({},r,{centerRipple:a,component:l,disabled:c,disableRipple:u,disableTouchRipple:f,focusRipple:p,tabIndex:U,focusVisible:R}),Pe=k0e(Fe);return O.jsxs(O0e,T({as:rt,className:Ie(Pe.root,s),ownerState:Fe,onBlur:ze,onClick:v,onContextMenu:fe,onFocus:He,onKeyDown:Ce,onKeyUp:qe,onMouseDown:xe,onMouseLeave:_e,onMouseUp:he,onDragLeave:ge,onTouchEnd:Be,onTouchMove:Ue,onTouchStart:ve,ref:Le,tabIndex:c?-1:U,type:B},Ae,Y,{children:[i,re?O.jsx(S0e,T({ref:J,center:a},G)):null]}))}),xa=R0e;function D0e(e){return et("MuiAccordionSummary",e)}const M0e=Qe("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),mu=M0e,I0e=["children","className","expandIcon","focusVisibleClassName","onClick"],A0e=e=>{const{classes:t,expanded:n,disabled:r,disableGutters:o}=e;return Xe({root:["root",n&&"expanded",r&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},D0e,t)},N0e=de(xa,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const n={duration:e.transitions.duration.shortest};return T({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],n),[`&.${mu.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${mu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${mu.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${mu.expanded}`]:{minHeight:64}})}),j0e=de("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>T({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${mu.expanded}`]:{margin:"20px 0"}})),L0e=de("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${mu.expanded}`]:{transform:"rotate(180deg)"}})),F0e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiAccordionSummary"}),{children:o,className:a,expandIcon:i,focusVisibleClassName:s,onClick:l}=r,c=Oe(r,I0e),{disabled:u=!1,disableGutters:f,expanded:p,toggle:m}=S.useContext(v5),b=g=>{m&&m(g),l&&l(g)},v=T({},r,{expanded:p,disabled:u,disableGutters:f}),w=A0e(v);return O.jsxs(N0e,T({focusRipple:!1,disableRipple:!0,disabled:u,component:"div","aria-expanded":p,className:Ie(w.root,a),focusVisibleClassName:Ie(w.focusVisible,s),onClick:b,ref:n,ownerState:v},c,{children:[O.jsx(j0e,{className:w.content,ownerState:v,children:o}),i&&O.jsx(L0e,{className:w.expandIconWrapper,ownerState:v,children:i})]}))}),z0e=F0e;function B0e(e){return et("MuiIconButton",e)}const V0e=Qe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),U0e=V0e,W0e=["edge","children","className","color","disabled","disableFocusRipple","size"],H0e=e=>{const{classes:t,disabled:n,color:r,edge:o,size:a}=e,i={root:["root",n&&"disabled",r!=="default"&&`color${je(r)}`,o&&`edge${je(o)}`,`size${je(a)}`]};return Xe(i,B0e,t)},G0e=de(xa,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${je(n.color)}`],n.edge&&t[`edge${je(n.edge)}`],t[`size${je(n.size)}`]]}})(({theme:e,ownerState:t})=>T({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return T({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&T({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":T({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${U0e.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),q0e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:i,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium"}=r,f=Oe(r,W0e),p=T({},r,{edge:o,color:s,disabled:l,disableFocusRipple:c,size:u}),m=H0e(p);return O.jsx(G0e,T({className:Ie(m.root,i),centerRipple:!0,focusRipple:!c,disabled:l,ref:n,ownerState:p},f,{children:a}))}),tr=q0e,Y0e=rr(O.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function K0e(e){return et("MuiTypography",e)}Qe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const J0e=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Z0e=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e,s={root:["root",a,e.align!=="inherit"&&`align${je(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Xe(s,K0e,i)},X0e=de("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${je(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>T({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),UR={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Q0e={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},e1e=e=>Q0e[e]||e,t1e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTypography"}),o=e1e(r.color),a=L_(T({},r,{color:o})),{align:i="inherit",className:s,component:l,gutterBottom:c=!1,noWrap:u=!1,paragraph:f=!1,variant:p="body1",variantMapping:m=UR}=a,b=Oe(a,J0e),v=T({},a,{align:i,color:o,className:s,component:l,gutterBottom:c,noWrap:u,paragraph:f,variant:p,variantMapping:m}),w=l||(f?"p":m[p]||UR[p])||"span",g=Z0e(v);return O.jsx(X0e,T({as:w,ref:n,ownerState:v,className:Ie(g.root,s)},b))}),gn=t1e;function n1e(e){return et("MuiAppBar",e)}Qe("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const r1e=["className","color","enableColorOnDark","position"],o1e=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${je(t)}`,`position${je(n)}`]};return Xe(o,n1e,r)},Lm=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,a1e=de(as,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${je(n.position)}`],t[`color${je(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return T({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&T({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&T({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&T({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Lm(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Lm(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:Lm(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Lm(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),i1e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiAppBar"}),{className:o,color:a="primary",enableColorOnDark:i=!1,position:s="fixed"}=r,l=Oe(r,r1e),c=T({},r,{color:a,position:s,enableColorOnDark:i}),u=o1e(c);return O.jsx(a1e,T({square:!0,component:"header",ownerState:c,elevation:4,className:Ie(u.root,o,s==="fixed"&&"mui-fixed"),ref:n},l))}),s1e=i1e;function vi(e){return typeof e=="string"}function _f(e,t,n){return e===void 0||vi(e)?t:T({},t,{ownerState:T({},t.ownerState,n)})}function l1e(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const c1e={disableDefaultClasses:!1},u1e=S.createContext(c1e);function d1e(e){const{disableDefaultClasses:t}=S.useContext(u1e);return n=>t?"":e(n)}function Wf(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 nl(e,t,n){return typeof e=="function"?e(t,n):e}function WR(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 f1e(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const m=Ie(o==null?void 0:o.className,r==null?void 0:r.className,a,n==null?void 0:n.className),b=T({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),v=T({},n,o,r);return m.length>0&&(v.className=m),Object.keys(b).length>0&&(v.style=b),{props:v,internalRef:void 0}}const i=Wf(T({},o,r)),s=WR(r),l=WR(o),c=t(i),u=Ie(c==null?void 0:c.className,n==null?void 0:n.className,a,o==null?void 0:o.className,r==null?void 0:r.className),f=T({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),p=T({},c,n,l,s);return u.length>0&&(p.className=u),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:c.ref}}const p1e=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function zt(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=Oe(e,p1e),s=a?{}:nl(r,o),{props:l,internalRef:c}=f1e(T({},i,{externalSlotProps:s})),u=sn(c,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return _f(n,T({},l,{ref:u}),o)}function h1e(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,a=x_({badgeContent:t,max:r});let i=n;n===!1&&t===0&&!o&&(i=!0);const{badgeContent:s,max:l=r}=i?a:e,c=s&&Number(s)>l?`${l}+`:s;return{badgeContent:s,invisible:i,max:l,displayValue:c}}const m1e=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function v1e(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function g1e(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function y1e(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||g1e(e))}function b1e(e){const t=[],n=[];return Array.from(e.querySelectorAll(m1e)).forEach((r,o)=>{const a=v1e(r);a===-1||!y1e(r)||(a===0?t.push(r):n.push({documentOrder:o,tabIndex:a,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function x1e(){return!0}function g5(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=b1e,isEnabled:i=x1e,open:s}=e,l=S.useRef(!1),c=S.useRef(null),u=S.useRef(null),f=S.useRef(null),p=S.useRef(null),m=S.useRef(!1),b=S.useRef(null),v=sn(t.ref,b),w=S.useRef(null);S.useEffect(()=>{!s||!b.current||(m.current=!n)},[n,s]),S.useEffect(()=>{if(!s||!b.current)return;const x=zn(b.current);return b.current.contains(x.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),m.current&&b.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),S.useEffect(()=>{if(!s||!b.current)return;const x=zn(b.current),C=P=>{w.current=P,!(r||!i()||P.key!=="Tab")&&x.activeElement===b.current&&P.shiftKey&&(l.current=!0,u.current&&u.current.focus())},_=()=>{const P=b.current;if(P===null)return;if(!x.hasFocus()||!i()||l.current){l.current=!1;return}if(P.contains(x.activeElement)||r&&x.activeElement!==c.current&&x.activeElement!==u.current)return;if(x.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!m.current)return;let k=[];if((x.activeElement===c.current||x.activeElement===u.current)&&(k=a(b.current)),k.length>0){var I,D;const F=!!((I=w.current)!=null&&I.shiftKey&&((D=w.current)==null?void 0:D.key)==="Tab"),U=k[0],G=k[k.length-1];typeof U!="string"&&typeof G!="string"&&(F?G.focus():U.focus())}else P.focus()};x.addEventListener("focusin",_),x.addEventListener("keydown",C,!0);const $=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&_()},50);return()=>{clearInterval($),x.removeEventListener("focusin",_),x.removeEventListener("keydown",C,!0)}},[n,r,o,i,s,a]);const g=x=>{f.current===null&&(f.current=x.relatedTarget),m.current=!0,p.current=x.target;const C=t.props.onFocus;C&&C(x)},y=x=>{f.current===null&&(f.current=x.relatedTarget),m.current=!0};return O.jsxs(S.Fragment,{children:[O.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),S.cloneElement(t,{ref:v,onFocus:g}),O.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelEnd"})]})}var Co="top",wa="bottom",Ca="right",$o="left",K_="auto",sh=[Co,wa,Ca,$o],Hu="start",Sp="end",w1e="clippingParents",y5="viewport",rf="popper",C1e="reference",HR=sh.reduce(function(e,t){return e.concat([t+"-"+Hu,t+"-"+Sp])},[]),b5=[].concat(sh,[K_]).reduce(function(e,t){return e.concat([t,t+"-"+Hu,t+"-"+Sp])},[]),$1e="beforeRead",S1e="read",_1e="afterRead",E1e="beforeMain",P1e="main",T1e="afterMain",k1e="beforeWrite",O1e="write",R1e="afterWrite",D1e=[$1e,S1e,_1e,E1e,P1e,T1e,k1e,O1e,R1e];function Ci(e){return e?(e.nodeName||"").toLowerCase():null}function qo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function tc(e){var t=qo(e).Element;return e instanceof t||e instanceof Element}function ha(e){var t=qo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function J_(e){if(typeof ShadowRoot>"u")return!1;var t=qo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function M1e(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},a=t.elements[n];!ha(a)||!Ci(a)||(Object.assign(a.style,r),Object.keys(o).forEach(function(i){var s=o[i];s===!1?a.removeAttribute(i):a.setAttribute(i,s===!0?"":s)}))})}function I1e(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],a=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=i.reduce(function(l,c){return l[c]="",l},{});!ha(o)||!Ci(o)||(Object.assign(o.style,s),Object.keys(a).forEach(function(l){o.removeAttribute(l)}))})}}const A1e={name:"applyStyles",enabled:!0,phase:"write",fn:M1e,effect:I1e,requires:["computeStyles"]};function gi(e){return e.split("-")[0]}var zl=Math.max,Tg=Math.min,Gu=Math.round;function oC(){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 x5(){return!/^((?!chrome|android).)*safari/i.test(oC())}function qu(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&ha(e)&&(o=e.offsetWidth>0&&Gu(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Gu(r.height)/e.offsetHeight||1);var i=tc(e)?qo(e):window,s=i.visualViewport,l=!x5()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/o,u=(r.top+(l&&s?s.offsetTop:0))/a,f=r.width/o,p=r.height/a;return{width:f,height:p,top:u,right:c+f,bottom:u+p,left:c,x:c,y:u}}function Z_(e){var t=qu(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 w5(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&J_(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Qi(e){return qo(e).getComputedStyle(e)}function N1e(e){return["table","td","th"].indexOf(Ci(e))>=0}function rl(e){return((tc(e)?e.ownerDocument:e.document)||window.document).documentElement}function m0(e){return Ci(e)==="html"?e:e.assignedSlot||e.parentNode||(J_(e)?e.host:null)||rl(e)}function GR(e){return!ha(e)||Qi(e).position==="fixed"?null:e.offsetParent}function j1e(e){var t=/firefox/i.test(oC()),n=/Trident/i.test(oC());if(n&&ha(e)){var r=Qi(e);if(r.position==="fixed")return null}var o=m0(e);for(J_(o)&&(o=o.host);ha(o)&&["html","body"].indexOf(Ci(o))<0;){var a=Qi(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function lh(e){for(var t=qo(e),n=GR(e);n&&N1e(n)&&Qi(n).position==="static";)n=GR(n);return n&&(Ci(n)==="html"||Ci(n)==="body"&&Qi(n).position==="static")?t:n||j1e(e)||t}function X_(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Hf(e,t,n){return zl(e,Tg(t,n))}function L1e(e,t,n){var r=Hf(e,t,n);return r>n?n:r}function C5(){return{top:0,right:0,bottom:0,left:0}}function $5(e){return Object.assign({},C5(),e)}function S5(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var F1e=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,$5(typeof t!="number"?t:S5(t,sh))};function z1e(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,s=gi(n.placement),l=X_(s),c=[$o,Ca].indexOf(s)>=0,u=c?"height":"width";if(!(!a||!i)){var f=F1e(o.padding,n),p=Z_(a),m=l==="y"?Co:$o,b=l==="y"?wa:Ca,v=n.rects.reference[u]+n.rects.reference[l]-i[l]-n.rects.popper[u],w=i[l]-n.rects.reference[l],g=lh(a),y=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,x=v/2-w/2,C=f[m],_=y-p[u]-f[b],$=y/2-p[u]/2+x,P=Hf(C,$,_),k=l;n.modifiersData[r]=(t={},t[k]=P,t.centerOffset=P-$,t)}}function B1e(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)||w5(t.elements.popper,o)&&(t.elements.arrow=o))}const V1e={name:"arrow",enabled:!0,phase:"main",fn:z1e,effect:B1e,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Yu(e){return e.split("-")[1]}var U1e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function W1e(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Gu(n*o)/o||0,y:Gu(r*o)/o||0}}function qR(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,p=i.x,m=p===void 0?0:p,b=i.y,v=b===void 0?0:b,w=typeof u=="function"?u({x:m,y:v}):{x:m,y:v};m=w.x,v=w.y;var g=i.hasOwnProperty("x"),y=i.hasOwnProperty("y"),x=$o,C=Co,_=window;if(c){var $=lh(n),P="clientHeight",k="clientWidth";if($===qo(n)&&($=rl(n),Qi($).position!=="static"&&s==="absolute"&&(P="scrollHeight",k="scrollWidth")),$=$,o===Co||(o===$o||o===Ca)&&a===Sp){C=wa;var I=f&&$===_&&_.visualViewport?_.visualViewport.height:$[P];v-=I-r.height,v*=l?1:-1}if(o===$o||(o===Co||o===wa)&&a===Sp){x=Ca;var D=f&&$===_&&_.visualViewport?_.visualViewport.width:$[k];m-=D-r.width,m*=l?1:-1}}var F=Object.assign({position:s},c&&U1e),U=u===!0?W1e({x:m,y:v},qo(n)):{x:m,y:v};if(m=U.x,v=U.y,l){var G;return Object.assign({},F,(G={},G[C]=y?"0":"",G[x]=g?"0":"",G.transform=(_.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",G))}return Object.assign({},F,(t={},t[C]=y?v+"px":"",t[x]=g?m+"px":"",t.transform="",t))}function H1e(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,a=n.adaptive,i=a===void 0?!0:a,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:gi(t.placement),variation:Yu(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,qR(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,qR(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const G1e={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:H1e,data:{}};var Fm={passive:!0};function q1e(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=o===void 0?!0:o,i=r.resize,s=i===void 0?!0:i,l=qo(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(u){u.addEventListener("scroll",n.update,Fm)}),s&&l.addEventListener("resize",n.update,Fm),function(){a&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Fm)}),s&&l.removeEventListener("resize",n.update,Fm)}}const Y1e={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:q1e,data:{}};var K1e={left:"right",right:"left",bottom:"top",top:"bottom"};function Dv(e){return e.replace(/left|right|bottom|top/g,function(t){return K1e[t]})}var J1e={start:"end",end:"start"};function YR(e){return e.replace(/start|end/g,function(t){return J1e[t]})}function Q_(e){var t=qo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function eE(e){return qu(rl(e)).left+Q_(e).scrollLeft}function Z1e(e,t){var n=qo(e),r=rl(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;var c=x5();(c||!c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s+eE(e),y:l}}function X1e(e){var t,n=rl(e),r=Q_(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=zl(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=zl(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+eE(e),l=-r.scrollTop;return Qi(o||n).direction==="rtl"&&(s+=zl(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}function tE(e){var t=Qi(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function _5(e){return["html","body","#document"].indexOf(Ci(e))>=0?e.ownerDocument.body:ha(e)&&tE(e)?e:_5(m0(e))}function Gf(e,t){var n;t===void 0&&(t=[]);var r=_5(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=qo(r),i=o?[a].concat(a.visualViewport||[],tE(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(Gf(m0(i)))}function aC(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Q1e(e,t){var n=qu(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 KR(e,t,n){return t===y5?aC(Z1e(e,n)):tc(t)?Q1e(t,n):aC(X1e(rl(e)))}function ebe(e){var t=Gf(m0(e)),n=["absolute","fixed"].indexOf(Qi(e).position)>=0,r=n&&ha(e)?lh(e):e;return tc(r)?t.filter(function(o){return tc(o)&&w5(o,r)&&Ci(o)!=="body"}):[]}function tbe(e,t,n,r){var o=t==="clippingParents"?ebe(e):[].concat(t),a=[].concat(o,[n]),i=a[0],s=a.reduce(function(l,c){var u=KR(e,c,r);return l.top=zl(u.top,l.top),l.right=Tg(u.right,l.right),l.bottom=Tg(u.bottom,l.bottom),l.left=zl(u.left,l.left),l},KR(e,i,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function E5(e){var t=e.reference,n=e.element,r=e.placement,o=r?gi(r):null,a=r?Yu(r):null,i=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case Co:l={x:i,y:t.y-n.height};break;case wa:l={x:i,y:t.y+t.height};break;case Ca:l={x:t.x+t.width,y:s};break;case $o:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=o?X_(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(a){case Hu:l[c]=l[c]-(t[u]/2-n[u]/2);break;case Sp:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function _p(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,a=n.strategy,i=a===void 0?e.strategy:a,s=n.boundary,l=s===void 0?w1e:s,c=n.rootBoundary,u=c===void 0?y5:c,f=n.elementContext,p=f===void 0?rf:f,m=n.altBoundary,b=m===void 0?!1:m,v=n.padding,w=v===void 0?0:v,g=$5(typeof w!="number"?w:S5(w,sh)),y=p===rf?C1e:rf,x=e.rects.popper,C=e.elements[b?y:p],_=tbe(tc(C)?C:C.contextElement||rl(e.elements.popper),l,u,i),$=qu(e.elements.reference),P=E5({reference:$,element:x,strategy:"absolute",placement:o}),k=aC(Object.assign({},x,P)),I=p===rf?k:$,D={top:_.top-I.top+g.top,bottom:I.bottom-_.bottom+g.bottom,left:_.left-I.left+g.left,right:I.right-_.right+g.right},F=e.modifiersData.offset;if(p===rf&&F){var U=F[o];Object.keys(D).forEach(function(G){var z=[Ca,wa].indexOf(G)>=0?1:-1,B=[Co,wa].indexOf(G)>=0?"y":"x";D[G]+=U[B]*z})}return D}function nbe(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?b5:l,u=Yu(r),f=u?s?HR:HR.filter(function(b){return Yu(b)===u}):sh,p=f.filter(function(b){return c.indexOf(b)>=0});p.length===0&&(p=f);var m=p.reduce(function(b,v){return b[v]=_p(e,{placement:v,boundary:o,rootBoundary:a,padding:i})[gi(v)],b},{});return Object.keys(m).sort(function(b,v){return m[b]-m[v]})}function rbe(e){if(gi(e)===K_)return[];var t=Dv(e);return[YR(e),t,YR(t)]}function obe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=o===void 0?!0:o,i=n.altAxis,s=i===void 0?!0:i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,b=m===void 0?!0:m,v=n.allowedAutoPlacements,w=t.options.placement,g=gi(w),y=g===w,x=l||(y||!b?[Dv(w)]:rbe(w)),C=[w].concat(x).reduce(function(R,N){return R.concat(gi(N)===K_?nbe(t,{placement:N,boundary:u,rootBoundary:f,padding:c,flipVariations:b,allowedAutoPlacements:v}):N)},[]),_=t.rects.reference,$=t.rects.popper,P=new Map,k=!0,I=C[0],D=0;D=0,B=z?"width":"height",Y=_p(t,{placement:F,boundary:u,rootBoundary:f,altBoundary:p,padding:c}),Q=z?G?Ca:$o:G?wa:Co;_[B]>$[B]&&(Q=Dv(Q));var H=Dv(Q),J=[];if(a&&J.push(Y[U]<=0),s&&J.push(Y[Q]<=0,Y[H]<=0),J.every(function(R){return R})){I=F,k=!1;break}P.set(F,J)}if(k)for(var X=b?3:1,L=function(N){var V=C.find(function(Z){var re=P.get(Z);if(re)return re.slice(0,N).every(function(le){return le})});if(V)return I=V,"break"},K=X;K>0;K--){var q=L(K);if(q==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const abe={name:"flip",enabled:!0,phase:"main",fn:obe,requiresIfExists:["offset"],data:{_skip:!1}};function JR(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 ZR(e){return[Co,Ca,wa,$o].some(function(t){return e[t]>=0})}function ibe(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=_p(t,{elementContext:"reference"}),s=_p(t,{altBoundary:!0}),l=JR(i,r),c=JR(s,o,a),u=ZR(l),f=ZR(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const sbe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ibe};function lbe(e,t,n){var r=gi(e),o=[$o,Co].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[$o,Ca].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}function cbe(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,i=b5.reduce(function(u,f){return u[f]=lbe(f,t.rects,a),u},{}),s=i[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}const ube={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:cbe};function dbe(e){var t=e.state,n=e.name;t.modifiersData[n]=E5({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const fbe={name:"popperOffsets",enabled:!0,phase:"read",fn:dbe,data:{}};function pbe(e){return e==="x"?"y":"x"}function hbe(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=o===void 0?!0:o,i=n.altAxis,s=i===void 0?!1:i,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,p=n.tether,m=p===void 0?!0:p,b=n.tetherOffset,v=b===void 0?0:b,w=_p(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),g=gi(t.placement),y=Yu(t.placement),x=!y,C=X_(g),_=pbe(C),$=t.modifiersData.popperOffsets,P=t.rects.reference,k=t.rects.popper,I=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,D=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if($){if(a){var G,z=C==="y"?Co:$o,B=C==="y"?wa:Ca,Y=C==="y"?"height":"width",Q=$[C],H=Q+w[z],J=Q-w[B],X=m?-k[Y]/2:0,L=y===Hu?P[Y]:k[Y],K=y===Hu?-k[Y]:-P[Y],q=t.elements.arrow,R=m&&q?Z_(q):{width:0,height:0},N=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:C5(),V=N[z],Z=N[B],re=Hf(0,P[Y],R[Y]),le=x?P[Y]/2-X-re-V-D.mainAxis:L-re-V-D.mainAxis,xe=x?-P[Y]/2+X+re+Z+D.mainAxis:K+re+Z+D.mainAxis,fe=t.elements.arrow&&lh(t.elements.arrow),ge=fe?C==="y"?fe.clientTop||0:fe.clientLeft||0:0,he=(G=F==null?void 0:F[C])!=null?G:0,_e=Q+le-he-ge,ve=Q+xe-he,Be=Hf(m?Tg(H,_e):H,Q,m?zl(J,ve):J);$[C]=Be,U[C]=Be-Q}if(s){var Ue,ze=C==="x"?Co:$o,He=C==="x"?wa:Ca,be=$[_],we=_==="y"?"height":"width",Ce=be+w[ze],qe=be-w[He],rt=[Co,$o].indexOf(g)!==-1,Ae=(Ue=F==null?void 0:F[_])!=null?Ue:0,Le=rt?Ce:be-P[we]-k[we]-Ae+D.altAxis,Fe=rt?be+P[we]+k[we]-Ae-D.altAxis:qe,Pe=m&&rt?L1e(Le,be,Fe):Hf(m?Le:Ce,be,m?Fe:qe);$[_]=Pe,U[_]=Pe-be}t.modifiersData[r]=U}}const mbe={name:"preventOverflow",enabled:!0,phase:"main",fn:hbe,requiresIfExists:["offset"]};function vbe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function gbe(e){return e===qo(e)||!ha(e)?Q_(e):vbe(e)}function ybe(e){var t=e.getBoundingClientRect(),n=Gu(t.width)/e.offsetWidth||1,r=Gu(t.height)/e.offsetHeight||1;return n!==1||r!==1}function bbe(e,t,n){n===void 0&&(n=!1);var r=ha(t),o=ha(t)&&ybe(t),a=rl(t),i=qu(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Ci(t)!=="body"||tE(a))&&(s=gbe(t)),ha(t)?(l=qu(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=eE(a))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function xbe(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function o(a){n.add(a.name);var i=[].concat(a.requires||[],a.requiresIfExists||[]);i.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),r}function wbe(e){var t=xbe(e);return D1e.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Cbe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function $be(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 XR={placement:"bottom",modifiers:[],strategy:"absolute"};function QR(){for(var e=arguments.length,t=new Array(e),n=0;n{a||s(Pbe(o)||document.body)},[o,a]),Kn(()=>{if(i&&!a)return xp(n,i),()=>{xp(n,null)}},[n,i,a]),a){if(S.isValidElement(r)){const c={ref:l};return S.cloneElement(r,c)}return O.jsx(S.Fragment,{children:r})}return O.jsx(S.Fragment,{children:i&&ed.createPortal(r,i)})});function Tbe(e){return et("MuiPopper",e)}Qe("MuiPopper",["root"]);const kbe=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Obe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Rbe(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function iC(e){return typeof e=="function"?e():e}function Dbe(e){return e.nodeType!==void 0}const Mbe=()=>Xe({root:["root"]},d1e(Tbe)),Ibe={},Abe=S.forwardRef(function(t,n){var r;const{anchorEl:o,children:a,direction:i,disablePortal:s,modifiers:l,open:c,placement:u,popperOptions:f,popperRef:p,slotProps:m={},slots:b={},TransitionProps:v}=t,w=Oe(t,kbe),g=S.useRef(null),y=sn(g,n),x=S.useRef(null),C=sn(x,p),_=S.useRef(C);Kn(()=>{_.current=C},[C]),S.useImperativeHandle(p,()=>x.current,[]);const $=Rbe(u,i),[P,k]=S.useState($),[I,D]=S.useState(iC(o));S.useEffect(()=>{x.current&&x.current.forceUpdate()}),S.useEffect(()=>{o&&D(iC(o))},[o]),Kn(()=>{if(!I||!c)return;const B=H=>{k(H.placement)};let Y=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:H})=>{B(H)}}];l!=null&&(Y=Y.concat(l)),f&&f.modifiers!=null&&(Y=Y.concat(f.modifiers));const Q=Ebe(I,g.current,T({placement:$},f,{modifiers:Y}));return _.current(Q),()=>{Q.destroy(),_.current(null)}},[I,s,l,c,f,$]);const F={placement:P};v!==null&&(F.TransitionProps=v);const U=Mbe(),G=(r=b.root)!=null?r:"div",z=zt({elementType:G,externalSlotProps:m.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:y},ownerState:t,className:U.root});return O.jsx(G,T({},z,{children:typeof a=="function"?a(F):a}))}),Nbe=S.forwardRef(function(t,n){const{anchorEl:r,children:o,container:a,direction:i="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:f="bottom",popperOptions:p=Ibe,popperRef:m,style:b,transition:v=!1,slotProps:w={},slots:g={}}=t,y=Oe(t,Obe),[x,C]=S.useState(!0),_=()=>{C(!1)},$=()=>{C(!0)};if(!l&&!u&&(!v||x))return null;let P;if(a)P=a;else if(r){const D=iC(r);P=D&&Dbe(D)?zn(D).body:zn(null).body}const k=!u&&l&&(!v||x)?"none":void 0,I=v?{in:u,onEnter:_,onExited:$}:void 0;return O.jsx(P5,{disablePortal:s,container:P,children:O.jsx(Abe,T({anchorEl:r,direction:i,disablePortal:s,modifiers:c,ref:n,open:v?!x:u,placement:f,popperOptions:p,popperRef:m,slotProps:w,slots:g},y,{style:T({position:"fixed",top:0,left:0,display:k},b),TransitionProps:I,children:o}))})});function jbe(e){const t=zn(e);return t.body===e?wi(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function qf(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function eD(e){return parseInt(wi(e).getComputedStyle(e).paddingRight,10)||0}function Lbe(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function tD(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,i=>{const s=a.indexOf(i)===-1,l=!Lbe(i);s&&l&&qf(i,o)})}function rx(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function Fbe(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(jbe(r)){const i=A4(zn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${eD(r)+i}px`;const s=zn(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${eD(l)+i}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=zn(r).body;else{const i=r.parentElement,s=wi(r);a=(i==null?void 0:i.nodeName)==="HTML"&&s.getComputedStyle(i).overflowY==="scroll"?i:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:i,property:s})=>{a?i.style.setProperty(s,a):i.style.removeProperty(s)})}}function zbe(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Bbe{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&qf(t.modalRef,!1);const o=zbe(n);tD(n,t.mount,t.modalRef,o,!0);const a=rx(this.containers,i=>i.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=rx(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=Fbe(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=rx(this.containers,i=>i.modals.indexOf(t)!==-1),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&qf(t.modalRef,n),tD(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=a.modals[a.modals.length-1];i.modalRef&&qf(i.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Vbe(e){return typeof e=="function"?e():e}function Ube(e){return e?e.props.hasOwnProperty("in"):!1}const Wbe=new Bbe;function Hbe(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=Wbe,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:f}=e,p=S.useRef({}),m=S.useRef(null),b=S.useRef(null),v=sn(b,f),[w,g]=S.useState(!u),y=Ube(l);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const C=()=>zn(m.current),_=()=>(p.current.modalRef=b.current,p.current.mount=m.current,p.current),$=()=>{o.mount(_(),{disableScrollLock:r}),b.current&&(b.current.scrollTop=0)},P=mt(()=>{const Y=Vbe(t)||C().body;o.add(_(),Y),b.current&&$()}),k=S.useCallback(()=>o.isTopModal(_()),[o]),I=mt(Y=>{m.current=Y,Y&&(u&&k()?$():b.current&&qf(b.current,x))}),D=S.useCallback(()=>{o.remove(_(),x)},[x,o]);S.useEffect(()=>()=>{D()},[D]),S.useEffect(()=>{u?P():(!y||!a)&&D()},[u,D,y,a,P]);const F=Y=>Q=>{var H;(H=Y.onKeyDown)==null||H.call(Y,Q),!(Q.key!=="Escape"||!k())&&(n||(Q.stopPropagation(),c&&c(Q,"escapeKeyDown")))},U=Y=>Q=>{var H;(H=Y.onClick)==null||H.call(Y,Q),Q.target===Q.currentTarget&&c&&c(Q,"backdropClick")};return{getRootProps:(Y={})=>{const Q=Wf(e);delete Q.onTransitionEnter,delete Q.onTransitionExited;const H=T({},Q,Y);return T({role:"presentation"},H,{onKeyDown:F(H),ref:v})},getBackdropProps:(Y={})=>{const Q=Y;return T({"aria-hidden":!0},Q,{onClick:U(Q),open:u})},getTransitionProps:()=>{const Y=()=>{g(!1),i&&i()},Q=()=>{g(!0),s&&s(),a&&D()};return{onEnter:Cg(Y,l==null?void 0:l.props.onEnter),onExited:Cg(Q,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:I,isTopModal:k,exited:w,hasTransition:y}}const Gbe=2;function T5(e,t){return e-t}function of(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function nD(e,t){var n;const{index:r}=(n=e.reduce((o,a,i)=>{const s=Math.abs(t-a);return o===null||s({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}%`})}},Zbe=e=>e;let Um;function ox(){return Um===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Um=CSS.supports("touch-action","none"):Um=!0),Um}function Xbe(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:a=!1,marks:i=!1,max:s=100,min:l=0,name:c,onChange:u,onChangeCommitted:f,orientation:p="horizontal",rootRef:m,scale:b=Zbe,step:v=1,tabIndex:w,value:g}=e,y=S.useRef(),[x,C]=S.useState(-1),[_,$]=S.useState(-1),[P,k]=S.useState(!1),I=S.useRef(0),[D,F]=wr({controlled:g,default:n??l,name:"Slider"}),U=u&&((Ae,Le,Fe)=>{const Pe=Ae.nativeEvent||Ae,Te=new Pe.constructor(Pe.type,Pe);Object.defineProperty(Te,"target",{writable:!0,value:{value:Le,name:c}}),u(Te,Le,Fe)}),G=Array.isArray(D);let z=G?D.slice().sort(T5):[D];z=z.map(Ae=>of(Ae,l,s));const B=i===!0&&v!==null?[...Array(Math.floor((s-l)/v)+1)].map((Ae,Le)=>({value:l+v*Le})):i||[],Y=B.map(Ae=>Ae.value),{isFocusVisibleRef:Q,onBlur:H,onFocus:J,ref:X}=Oy(),[L,K]=S.useState(-1),q=S.useRef(),R=sn(X,q),N=sn(m,R),V=Ae=>Le=>{var Fe;const Pe=Number(Le.currentTarget.getAttribute("data-index"));J(Le),Q.current===!0&&K(Pe),$(Pe),Ae==null||(Fe=Ae.onFocus)==null||Fe.call(Ae,Le)},Z=Ae=>Le=>{var Fe;H(Le),Q.current===!1&&K(-1),$(-1),Ae==null||(Fe=Ae.onBlur)==null||Fe.call(Ae,Le)};Kn(()=>{if(r&&q.current.contains(document.activeElement)){var Ae;(Ae=document.activeElement)==null||Ae.blur()}},[r]),r&&x!==-1&&C(-1),r&&L!==-1&&K(-1);const re=Ae=>Le=>{var Fe;(Fe=Ae.onChange)==null||Fe.call(Ae,Le);const Pe=Number(Le.currentTarget.getAttribute("data-index")),Te=z[Pe],it=Y.indexOf(Te);let ct=Le.target.valueAsNumber;if(B&&v==null){const gt=Y[Y.length-1];ct>gt?ct=gt:ct{const{current:Fe}=q,{width:Pe,height:Te,bottom:it,left:ct}=Fe.getBoundingClientRect();let gt;xe.indexOf("vertical")===0?gt=(it-Ae.y)/Te:gt=(Ae.x-ct)/Pe,xe.indexOf("-reverse")!==-1&&(gt=1-gt);let Ne;if(Ne=qbe(gt,l,s),v)Ne=Kbe(Ne,v,l);else{const te=nD(Y,Ne);Ne=Y[te]}Ne=of(Ne,l,s);let ne=0;if(G){Le?ne=le.current:ne=nD(z,Ne),o&&(Ne=of(Ne,z[ne-1]||-1/0,z[ne+1]||1/0));const te=Ne;Ne=rD({values:z,newValue:Ne,index:ne}),o&&Le||(ne=Ne.indexOf(te),le.current=ne)}return{newValue:Ne,activeIndex:ne}},ge=mt(Ae=>{const Le=zm(Ae,y);if(!Le)return;if(I.current+=1,Ae.type==="mousemove"&&Ae.buttons===0){he(Ae);return}const{newValue:Fe,activeIndex:Pe}=fe({finger:Le,move:!0});Bm({sliderRef:q,activeIndex:Pe,setActive:C}),F(Fe),!P&&I.current>Gbe&&k(!0),U&&!Vm(Fe,D)&&U(Ae,Fe,Pe)}),he=mt(Ae=>{const Le=zm(Ae,y);if(k(!1),!Le)return;const{newValue:Fe}=fe({finger:Le,move:!0});C(-1),Ae.type==="touchend"&&$(-1),f&&f(Ae,Fe),y.current=void 0,ve()}),_e=mt(Ae=>{if(r)return;ox()||Ae.preventDefault();const Le=Ae.changedTouches[0];Le!=null&&(y.current=Le.identifier);const Fe=zm(Ae,y);if(Fe!==!1){const{newValue:Te,activeIndex:it}=fe({finger:Fe});Bm({sliderRef:q,activeIndex:it,setActive:C}),F(Te),U&&!Vm(Te,D)&&U(Ae,Te,it)}I.current=0;const Pe=zn(q.current);Pe.addEventListener("touchmove",ge),Pe.addEventListener("touchend",he)}),ve=S.useCallback(()=>{const Ae=zn(q.current);Ae.removeEventListener("mousemove",ge),Ae.removeEventListener("mouseup",he),Ae.removeEventListener("touchmove",ge),Ae.removeEventListener("touchend",he)},[he,ge]);S.useEffect(()=>{const{current:Ae}=q;return Ae.addEventListener("touchstart",_e,{passive:ox()}),()=>{Ae.removeEventListener("touchstart",_e,{passive:ox()}),ve()}},[ve,_e]),S.useEffect(()=>{r&&ve()},[r,ve]);const Be=Ae=>Le=>{var Fe;if((Fe=Ae.onMouseDown)==null||Fe.call(Ae,Le),r||Le.defaultPrevented||Le.button!==0)return;Le.preventDefault();const Pe=zm(Le,y);if(Pe!==!1){const{newValue:it,activeIndex:ct}=fe({finger:Pe});Bm({sliderRef:q,activeIndex:ct,setActive:C}),F(it),U&&!Vm(it,D)&&U(Le,it,ct)}I.current=0;const Te=zn(q.current);Te.addEventListener("mousemove",ge),Te.addEventListener("mouseup",he)},Ue=kg(G?z[0]:l,l,s),ze=kg(z[z.length-1],l,s)-Ue,He=(Ae={})=>{const Le=Wf(Ae),Fe={onMouseDown:Be(Le||{})},Pe=T({},Le,Fe);return T({},Ae,{ref:N},Pe)},be=Ae=>Le=>{var Fe;(Fe=Ae.onMouseOver)==null||Fe.call(Ae,Le);const Pe=Number(Le.currentTarget.getAttribute("data-index"));$(Pe)},we=Ae=>Le=>{var Fe;(Fe=Ae.onMouseLeave)==null||Fe.call(Ae,Le),$(-1)};return{active:x,axis:xe,axisProps:Jbe,dragging:P,focusedThumbIndex:L,getHiddenInputProps:(Ae={})=>{var Le;const Fe=Wf(Ae),Pe={onChange:re(Fe||{}),onFocus:V(Fe||{}),onBlur:Z(Fe||{})},Te=T({},Fe,Pe);return T({tabIndex:w,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":b(s),"aria-valuemin":b(l),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(Le=e.step)!=null?Le:void 0,disabled:r},Ae,Te,{style:T({},bme,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:He,getThumbProps:(Ae={})=>{const Le=Wf(Ae),Fe={onMouseOver:be(Le||{}),onMouseLeave:we(Le||{})};return T({},Ae,Le,Fe)},marks:B,open:_,range:G,rootRef:N,trackLeap:ze,trackOffset:Ue,values:z,getThumbStyle:Ae=>({pointerEvents:x!==-1&&x!==Ae?"none":void 0})}}const Qbe=["onChange","maxRows","minRows","style","value"];function Wm(e){return parseInt(e,10)||0}const exe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function oD(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const txe=S.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:a=1,style:i,value:s}=t,l=Oe(t,Qbe),{current:c}=S.useRef(s!=null),u=S.useRef(null),f=sn(n,u),p=S.useRef(null),m=S.useRef(0),[b,v]=S.useState({outerHeightStyle:0}),w=S.useCallback(()=>{const C=u.current,$=wi(C).getComputedStyle(C);if($.width==="0px")return{outerHeightStyle:0};const P=p.current;P.style.width=$.width,P.value=C.value||t.placeholder||"x",P.value.slice(-1)===` -`&&(P.value+=" ");const k=$.boxSizing,I=Wm($.paddingBottom)+Wm($.paddingTop),D=Wm($.borderBottomWidth)+Wm($.borderTopWidth),F=P.scrollHeight;P.value="x";const U=P.scrollHeight;let G=F;a&&(G=Math.max(Number(a)*U,G)),o&&(G=Math.min(Number(o)*U,G)),G=Math.max(G,U);const z=G+(k==="border-box"?I+D:0),B=Math.abs(G-F)<=1;return{outerHeightStyle:z,overflow:B}},[o,a,t.placeholder]),g=(C,_)=>{const{outerHeightStyle:$,overflow:P}=_;return m.current<20&&($>0&&Math.abs((C.outerHeightStyle||0)-$)>1||C.overflow!==P)?(m.current+=1,{overflow:P,outerHeightStyle:$}):C},y=S.useCallback(()=>{const C=w();oD(C)||v(_=>g(_,C))},[w]);Kn(()=>{const C=()=>{const F=w();oD(F)||ed.flushSync(()=>{v(U=>g(U,F))})},_=()=>{m.current=0,C()};let $;const P=rh(_),k=u.current,I=wi(k);I.addEventListener("resize",P);let D;return typeof ResizeObserver<"u"&&(D=new ResizeObserver(_),D.observe(k)),()=>{P.clear(),cancelAnimationFrame($),I.removeEventListener("resize",P),D&&D.disconnect()}},[w]),Kn(()=>{y()}),S.useEffect(()=>{m.current=0},[s]);const x=C=>{m.current=0,c||y(),r&&r(C)};return O.jsxs(S.Fragment,{children:[O.jsx("textarea",T({value:s,onChange:x,ref:f,rows:a,style:T({height:b.outerHeightStyle,overflow:b.overflow?"hidden":void 0},i)},l)),O.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:T({},exe.shadow,i,{paddingTop:0,paddingBottom:0})})]})});function aD(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function nxe(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:a,trim:i=!1}=e;return(s,{inputValue:l,getOptionLabel:c})=>{let u=i?l.trim():l;n&&(u=u.toLowerCase()),t&&(u=aD(u));const f=u?s.filter(p=>{let m=(a||c)(p);return n&&(m=m.toLowerCase()),t&&(m=aD(m)),o==="start"?m.indexOf(u)===0:m.indexOf(u)>-1}):s;return typeof r=="number"?f.slice(0,r):f}}function ax(e,t){for(let n=0;n{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function axe(e){const{unstable_isActiveElementInListbox:t=oxe,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:i=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:l=!1,componentName:c="useAutocomplete",defaultValue:u=e.multiple?[]:null,disableClearable:f=!1,disableCloseOnSelect:p=!1,disabled:m,disabledItemsFocusable:b=!1,disableListWrap:v=!1,filterOptions:w=rxe,filterSelectedOptions:g=!1,freeSolo:y=!1,getOptionDisabled:x,getOptionLabel:C=me=>{var pe;return(pe=me.label)!=null?pe:me},groupBy:_,handleHomeEndKeys:$=!e.freeSolo,id:P,includeInputInList:k=!1,inputValue:I,isOptionEqualToValue:D=(me,pe)=>me===pe,multiple:F=!1,onChange:U,onClose:G,onHighlightChange:z,onInputChange:B,onOpen:Y,open:Q,openOnFocus:H=!1,options:J,readOnly:X=!1,selectOnFocus:L=!e.freeSolo,value:K}=e,q=Ga(P);let R=C;R=me=>{const pe=C(me);return typeof pe!="string"?String(pe):pe};const N=S.useRef(!1),V=S.useRef(!0),Z=S.useRef(null),re=S.useRef(null),[le,xe]=S.useState(null),[fe,ge]=S.useState(-1),he=o?0:-1,_e=S.useRef(he),[ve,Be]=wr({controlled:K,default:u,name:c}),[Ue,ze]=wr({controlled:I,default:"",name:c,state:"inputValue"}),[He,be]=S.useState(!1),we=S.useCallback((me,pe)=>{if(!(F?ve.length!(g&&(F?ve:[ve]).some(pe=>pe!==null&&D(me,pe)))),{inputValue:Le&&rt?"":Ue,getOptionLabel:R}):[],Te=x_({filteredOptions:Pe,value:ve,inputValue:Ue});S.useEffect(()=>{const me=ve!==Te.value;He&&!me||y&&!me||we(null,ve)},[ve,we,He,Te.value,y]);const it=Ce&&Pe.length>0&&!X,ct=mt(me=>{me===-1?Z.current.focus():le.querySelector(`[data-tag-index="${me}"]`).focus()});S.useEffect(()=>{F&&fe>ve.length-1&&(ge(-1),ct(-1))},[ve,F,fe,ct]);function gt(me,pe){if(!re.current||me===-1)return-1;let De=me;for(;;){if(pe==="next"&&De===Pe.length||pe==="previous"&&De===-1)return-1;const nt=re.current.querySelector(`[data-option-index="${De}"]`),lt=b?!1:!nt||nt.disabled||nt.getAttribute("aria-disabled")==="true";if(nt&&!nt.hasAttribute("tabindex")||lt)De+=pe==="next"?1:-1;else return De}}const Ne=mt(({event:me,index:pe,reason:De="auto"})=>{if(_e.current=pe,pe===-1?Z.current.removeAttribute("aria-activedescendant"):Z.current.setAttribute("aria-activedescendant",`${q}-option-${pe}`),z&&z(me,pe===-1?null:Pe[pe],De),!re.current)return;const nt=re.current.querySelector(`[role="option"].${n}-focused`);nt&&(nt.classList.remove(`${n}-focused`),nt.classList.remove(`${n}-focusVisible`));let lt=re.current;if(re.current.getAttribute("role")!=="listbox"&&(lt=re.current.parentElement.querySelector('[role="listbox"]')),!lt)return;if(pe===-1){lt.scrollTop=0;return}const xt=re.current.querySelector(`[data-option-index="${pe}"]`);if(xt&&(xt.classList.add(`${n}-focused`),De==="keyboard"&&xt.classList.add(`${n}-focusVisible`),lt.scrollHeight>lt.clientHeight&&De!=="mouse"&&De!=="touch")){const Nt=xt,ut=lt.clientHeight+lt.scrollTop,yt=Nt.offsetTop+Nt.offsetHeight;yt>ut?lt.scrollTop=yt-lt.clientHeight:Nt.offsetTop-Nt.offsetHeight*(_?1.3:0){if(!Fe)return;const xt=gt((()=>{const Nt=Pe.length-1;if(pe==="reset")return he;if(pe==="start")return 0;if(pe==="end")return Nt;const ut=_e.current+pe;return ut<0?ut===-1&&k?-1:v&&_e.current!==-1||Math.abs(pe)>1?0:Nt:ut>Nt?ut===Nt+1&&k?-1:v||Math.abs(pe)>1?Nt:0:ut})(),De);if(Ne({index:xt,reason:nt,event:me}),r&&pe!=="reset")if(xt===-1)Z.current.value=Ue;else{const Nt=R(Pe[xt]);Z.current.value=Nt,Nt.toLowerCase().indexOf(Ue.toLowerCase())===0&&Ue.length>0&&Z.current.setSelectionRange(Ue.length,Nt.length)}}),te=()=>{const me=(pe,De)=>{const nt=pe?R(pe):"",lt=De?R(De):"";return nt===lt};if(_e.current!==-1&&Te.filteredOptions&&Te.filteredOptions.length!==Pe.length&&Te.inputValue===Ue&&(F?ve.length===Te.value.length&&Te.value.every((pe,De)=>R(ve[De])===R(pe)):me(Te.value,ve))){const pe=Te.filteredOptions[_e.current];if(pe&&Pe.some(nt=>R(nt)===R(pe)))return!0}return!1},ie=S.useCallback(()=>{if(!Fe||te())return;const me=F?ve[0]:ve;if(Pe.length===0||me==null){ne({diff:"reset"});return}if(re.current){if(me!=null){const pe=Pe[_e.current];if(F&&pe&&ax(ve,nt=>D(pe,nt))!==-1)return;const De=ax(Pe,nt=>D(nt,me));De===-1?ne({diff:"reset"}):Ne({index:De});return}if(_e.current>=Pe.length-1){Ne({index:Pe.length-1});return}Ne({index:_e.current})}},[Pe.length,F?!1:ve,g,ne,Ne,Fe,Ue,F]),$e=mt(me=>{xp(re,me),me&&ie()});S.useEffect(()=>{ie()},[ie]);const Se=me=>{Ce||(qe(!0),Ae(!0),Y&&Y(me))},Ze=(me,pe)=>{Ce&&(qe(!1),G&&G(me,pe))},tt=(me,pe,De,nt)=>{if(F){if(ve.length===pe.length&&ve.every((lt,xt)=>lt===pe[xt]))return}else if(ve===pe)return;U&&U(me,pe,De,nt),Be(pe)},ft=S.useRef(!1),_t=(me,pe,De="selectOption",nt="options")=>{let lt=De,xt=pe;if(F){xt=Array.isArray(ve)?ve.slice():[];const Nt=ax(xt,ut=>D(pe,ut));Nt===-1?xt.push(pe):nt!=="freeSolo"&&(xt.splice(Nt,1),lt="removeOption")}we(me,xt),tt(me,xt,lt,{option:pe}),!p&&(!me||!me.ctrlKey&&!me.metaKey)&&Ze(me,lt),(i===!0||i==="touch"&&ft.current||i==="mouse"&&!ft.current)&&Z.current.blur()};function vt(me,pe){if(me===-1)return-1;let De=me;for(;;){if(pe==="next"&&De===ve.length||pe==="previous"&&De===-1)return-1;const nt=le.querySelector(`[data-tag-index="${De}"]`);if(!nt||!nt.hasAttribute("tabindex")||nt.disabled||nt.getAttribute("aria-disabled")==="true")De+=pe==="next"?1:-1;else return De}}const dt=(me,pe)=>{if(!F)return;Ue===""&&Ze(me,"toggleInput");let De=fe;fe===-1?Ue===""&&pe==="previous"&&(De=ve.length-1):(De+=pe==="next"?1:-1,De<0&&(De=0),De===ve.length&&(De=-1)),De=vt(De,pe),ge(De),ct(De)},Et=me=>{N.current=!0,ze(""),B&&B(me,"","clear"),tt(me,F?[]:null,"clear")},Yt=me=>pe=>{if(me.onKeyDown&&me.onKeyDown(pe),!pe.defaultMuiPrevented&&(fe!==-1&&["ArrowLeft","ArrowRight"].indexOf(pe.key)===-1&&(ge(-1),ct(-1)),pe.which!==229))switch(pe.key){case"Home":Fe&&$&&(pe.preventDefault(),ne({diff:"start",direction:"next",reason:"keyboard",event:pe}));break;case"End":Fe&&$&&(pe.preventDefault(),ne({diff:"end",direction:"previous",reason:"keyboard",event:pe}));break;case"PageUp":pe.preventDefault(),ne({diff:-iD,direction:"previous",reason:"keyboard",event:pe}),Se(pe);break;case"PageDown":pe.preventDefault(),ne({diff:iD,direction:"next",reason:"keyboard",event:pe}),Se(pe);break;case"ArrowDown":pe.preventDefault(),ne({diff:1,direction:"next",reason:"keyboard",event:pe}),Se(pe);break;case"ArrowUp":pe.preventDefault(),ne({diff:-1,direction:"previous",reason:"keyboard",event:pe}),Se(pe);break;case"ArrowLeft":dt(pe,"previous");break;case"ArrowRight":dt(pe,"next");break;case"Enter":if(_e.current!==-1&&Fe){const De=Pe[_e.current],nt=x?x(De):!1;if(pe.preventDefault(),nt)return;_t(pe,De,"selectOption"),r&&Z.current.setSelectionRange(Z.current.value.length,Z.current.value.length)}else y&&Ue!==""&&Le===!1&&(F&&pe.preventDefault(),_t(pe,Ue,"createOption","freeSolo"));break;case"Escape":Fe?(pe.preventDefault(),pe.stopPropagation(),Ze(pe,"escape")):l&&(Ue!==""||F&&ve.length>0)&&(pe.preventDefault(),pe.stopPropagation(),Et(pe));break;case"Backspace":if(F&&!X&&Ue===""&&ve.length>0){const De=fe===-1?ve.length-1:fe,nt=ve.slice();nt.splice(De,1),tt(pe,nt,"removeOption",{option:ve[De]})}break;case"Delete":if(F&&!X&&Ue===""&&ve.length>0&&fe!==-1){const De=fe,nt=ve.slice();nt.splice(De,1),tt(pe,nt,"removeOption",{option:ve[De]})}break}},kt=me=>{be(!0),H&&!N.current&&Se(me)},ln=me=>{if(t(re)){Z.current.focus();return}be(!1),V.current=!0,N.current=!1,a&&_e.current!==-1&&Fe?_t(me,Pe[_e.current],"blur"):a&&y&&Ue!==""?_t(me,Ue,"blur","freeSolo"):s&&we(me,ve),Ze(me,"blur")},Vt=me=>{const pe=me.target.value;Ue!==pe&&(ze(pe),Ae(!1),B&&B(me,pe,"input")),pe===""?!f&&!F&&tt(me,null,"clear"):Se(me)},Ut=me=>{const pe=Number(me.currentTarget.getAttribute("data-option-index"));_e.current!==pe&&Ne({event:me,index:pe,reason:"mouse"})},Kt=me=>{Ne({event:me,index:Number(me.currentTarget.getAttribute("data-option-index")),reason:"touch"}),ft.current=!0},bn=me=>{const pe=Number(me.currentTarget.getAttribute("data-option-index"));_t(me,Pe[pe],"selectOption"),ft.current=!1},Bn=me=>pe=>{const De=ve.slice();De.splice(me,1),tt(pe,De,"removeOption",{option:ve[me]})},se=me=>{Ce?Ze(me,"toggleInput"):Se(me)},oe=me=>{me.currentTarget.contains(me.target)&&me.target.getAttribute("id")!==q&&me.preventDefault()},ue=me=>{me.currentTarget.contains(me.target)&&(Z.current.focus(),L&&V.current&&Z.current.selectionEnd-Z.current.selectionStart===0&&Z.current.select(),V.current=!1)},ke=me=>{!m&&(Ue===""||!Ce)&&se(me)};let Ee=y&&Ue.length>0;Ee=Ee||(F?ve.length>0:ve!==null);let pt=Pe;return _&&(pt=Pe.reduce((me,pe,De)=>{const nt=_(pe);return me.length>0&&me[me.length-1].group===nt?me[me.length-1].options.push(pe):me.push({key:De,index:De,group:nt,options:[pe]}),me},[])),m&&He&&ln(),{getRootProps:(me={})=>T({"aria-owns":it?`${q}-listbox`:null},me,{onKeyDown:Yt(me),onMouseDown:oe,onClick:ue}),getInputLabelProps:()=>({id:`${q}-label`,htmlFor:q}),getInputProps:()=>({id:q,value:Ue,onBlur:ln,onFocus:kt,onChange:Vt,onMouseDown:ke,"aria-activedescendant":Fe?"":null,"aria-autocomplete":r?"both":"list","aria-controls":it?`${q}-listbox`:void 0,"aria-expanded":it,autoComplete:"off",ref:Z,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:m}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Et}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:se}),getTagProps:({index:me})=>T({key:me,"data-tag-index":me,tabIndex:-1},!X&&{onDelete:Bn(me)}),getListboxProps:()=>({role:"listbox",id:`${q}-listbox`,"aria-labelledby":`${q}-label`,ref:$e,onMouseDown:me=>{me.preventDefault()}}),getOptionProps:({index:me,option:pe})=>{const De=(F?ve:[ve]).some(lt=>lt!=null&&D(pe,lt)),nt=x?x(pe):!1;return{key:R(pe),tabIndex:-1,role:"option",id:`${q}-option-${me}`,onMouseMove:Ut,onClick:bn,onTouchStart:Kt,"data-option-index":me,"aria-disabled":nt,"aria-selected":De}},id:q,inputValue:Ue,value:ve,dirty:Ee,expanded:Fe&&le,popupOpen:Fe,focused:He||fe!==-1,anchorEl:le,setAnchorEl:xe,focusedTag:fe,groupedOptions:pt}}const ixe=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],sxe=de(Nbe,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),lxe=S.forwardRef(function(t,n){var r;const o=j_(),a=Ke({props:t,name:"MuiPopper"}),{anchorEl:i,component:s,components:l,componentsProps:c,container:u,disablePortal:f,keepMounted:p,modifiers:m,open:b,placement:v,popperOptions:w,popperRef:g,transition:y,slots:x,slotProps:C}=a,_=Oe(a,ixe),$=(r=x==null?void 0:x.root)!=null?r:l==null?void 0:l.Root,P=T({anchorEl:i,container:u,disablePortal:f,keepMounted:p,modifiers:m,open:b,placement:v,popperOptions:w,popperRef:g,transition:y},_);return O.jsx(sxe,T({as:s,direction:o==null?void 0:o.direction,slots:{root:$},slotProps:C??c},P,{ref:n}))}),ch=lxe;function cxe(e){return et("MuiListSubheader",e)}Qe("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const uxe=["className","color","component","disableGutters","disableSticky","inset"],dxe=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:a}=e,i={root:["root",n!=="default"&&`color${je(n)}`,!r&&"gutters",o&&"inset",!a&&"sticky"]};return Xe(i,cxe,t)},fxe=de("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${je(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>T({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),k5=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListSubheader"}),{className:o,color:a="default",component:i="li",disableGutters:s=!1,disableSticky:l=!1,inset:c=!1}=r,u=Oe(r,uxe),f=T({},r,{color:a,component:i,disableGutters:s,disableSticky:l,inset:c}),p=dxe(f);return O.jsx(fxe,T({as:i,className:Ie(p.root,o),ref:n,ownerState:f},u))});k5.muiSkipListHighlight=!0;const pxe=k5,hxe=rr(O.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function mxe(e){return et("MuiChip",e)}const vxe=Qe("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),fn=vxe,gxe=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],yxe=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:a,onDelete:i,clickable:s,variant:l}=e,c={root:["root",l,n&&"disabled",`size${je(r)}`,`color${je(o)}`,s&&"clickable",s&&`clickableColor${je(o)}`,i&&"deletable",i&&`deletableColor${je(o)}`,`${l}${je(o)}`],label:["label",`label${je(r)}`],avatar:["avatar",`avatar${je(r)}`,`avatarColor${je(o)}`],icon:["icon",`icon${je(r)}`,`iconColor${je(a)}`],deleteIcon:["deleteIcon",`deleteIcon${je(r)}`,`deleteIconColor${je(o)}`,`deleteIcon${je(l)}Color${je(o)}`]};return Xe(c,mxe,t)},bxe=de("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:a,onDelete:i,size:s,variant:l}=n;return[{[`& .${fn.avatar}`]:t.avatar},{[`& .${fn.avatar}`]:t[`avatar${je(s)}`]},{[`& .${fn.avatar}`]:t[`avatarColor${je(r)}`]},{[`& .${fn.icon}`]:t.icon},{[`& .${fn.icon}`]:t[`icon${je(s)}`]},{[`& .${fn.icon}`]:t[`iconColor${je(o)}`]},{[`& .${fn.deleteIcon}`]:t.deleteIcon},{[`& .${fn.deleteIcon}`]:t[`deleteIcon${je(s)}`]},{[`& .${fn.deleteIcon}`]:t[`deleteIconColor${je(r)}`]},{[`& .${fn.deleteIcon}`]:t[`deleteIcon${je(l)}Color${je(r)}`]},t.root,t[`size${je(s)}`],t[`color${je(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${je(r)})`],i&&t.deletable,i&&r!=="default"&&t[`deletableColor${je(r)}`],t[l],t[`${l}${je(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return T({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${fn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${fn.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${fn.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${fn.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${fn.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${fn.icon}`]:T({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&T({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${fn.deleteIcon}`]:T({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Tt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Tt(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Tt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>T({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>T({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${fn.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${fn.avatar}`]:{marginLeft:4},[`& .${fn.avatarSmall}`]:{marginLeft:2},[`& .${fn.icon}`]:{marginLeft:4},[`& .${fn.iconSmall}`]:{marginLeft:2},[`& .${fn.deleteIcon}`]:{marginRight:5},[`& .${fn.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Tt(e.palette[t.color].main,.7)}`,[`&.${fn.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${fn.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Tt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),xxe=de("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${je(r)}`]]}})(({ownerState:e})=>T({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function sD(e){return e.key==="Backspace"||e.key==="Delete"}const wxe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiChip"}),{avatar:o,className:a,clickable:i,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:f,label:p,onClick:m,onDelete:b,onKeyDown:v,onKeyUp:w,size:g="medium",variant:y="filled",tabIndex:x,skipFocusWhenDisabled:C=!1}=r,_=Oe(r,gxe),$=S.useRef(null),P=sn($,n),k=J=>{J.stopPropagation(),b&&b(J)},I=J=>{J.currentTarget===J.target&&sD(J)&&J.preventDefault(),v&&v(J)},D=J=>{J.currentTarget===J.target&&(b&&sD(J)?b(J):J.key==="Escape"&&$.current&&$.current.blur()),w&&w(J)},F=i!==!1&&m?!0:i,U=F||b?xa:l||"div",G=T({},r,{component:U,disabled:u,size:g,color:s,iconColor:S.isValidElement(f)&&f.props.color||s,onDelete:!!b,clickable:F,variant:y}),z=yxe(G),B=U===xa?T({component:l||"div",focusVisibleClassName:z.focusVisible},b&&{disableRipple:!0}):{};let Y=null;b&&(Y=c&&S.isValidElement(c)?S.cloneElement(c,{className:Ie(c.props.className,z.deleteIcon),onClick:k}):O.jsx(hxe,{className:Ie(z.deleteIcon),onClick:k}));let Q=null;o&&S.isValidElement(o)&&(Q=S.cloneElement(o,{className:Ie(z.avatar,o.props.className)}));let H=null;return f&&S.isValidElement(f)&&(H=S.cloneElement(f,{className:Ie(z.icon,f.props.className)})),O.jsxs(bxe,T({as:U,className:Ie(z.root,a),disabled:F&&u?!0:void 0,onClick:m,onKeyDown:I,onKeyUp:D,ref:P,tabIndex:C&&u?-1:x,ownerState:G},B,_,{children:[Q||H,O.jsx(xxe,{className:Ie(z.label),ownerState:G,children:p}),Y]}))}),O5=wxe;function ol({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const Cxe=S.createContext(void 0),v0=Cxe;function _i(){return S.useContext(v0)}function $xe(e){return O.jsx($ge,T({},e,{defaultTheme:n0,themeId:Ry}))}function lD(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Og(e,t=!1){return e&&(lD(e.value)&&e.value!==""||t&&lD(e.defaultValue)&&e.defaultValue!=="")}function Sxe(e){return e.startAdornment}function _xe(e){return et("MuiInputBase",e)}const Exe=Qe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Lo=Exe,Pxe=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],g0=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${je(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},y0=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Txe=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:i,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:f,size:p,startAdornment:m,type:b}=e,v={root:["root",`color${je(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",s&&"formControl",p&&p!=="medium"&&`size${je(p)}`,u&&"multiline",m&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",u&&"inputMultiline",p==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",m&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return Xe(v,_xe,t)},b0=de("div",{name:"MuiInputBase",slot:"Root",overridesResolver:g0})(({theme:e,ownerState:t})=>T({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Lo.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&T({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),x0=de("input",{name:"MuiInputBase",slot:"Input",overridesResolver:y0})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=T({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return T({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Lo.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${Lo.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),kxe=O.jsx($xe,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Oxe=S.forwardRef(function(t,n){var r;const o=Ke({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:i,autoFocus:s,className:l,components:c={},componentsProps:u={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:m,endAdornment:b,fullWidth:v=!1,id:w,inputComponent:g="input",inputProps:y={},inputRef:x,maxRows:C,minRows:_,multiline:$=!1,name:P,onBlur:k,onChange:I,onClick:D,onFocus:F,onKeyDown:U,onKeyUp:G,placeholder:z,readOnly:B,renderSuffix:Y,rows:Q,slotProps:H={},slots:J={},startAdornment:X,type:L="text",value:K}=o,q=Oe(o,Pxe),R=y.value!=null?y.value:K,{current:N}=S.useRef(R!=null),V=S.useRef(),Z=S.useCallback(Pe=>{},[]),re=sn(V,x,y.ref,Z),[le,xe]=S.useState(!1),fe=_i(),ge=ol({props:o,muiFormControl:fe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ge.focused=fe?fe.focused:le,S.useEffect(()=>{!fe&&p&&le&&(xe(!1),k&&k())},[fe,p,le,k]);const he=fe&&fe.onFilled,_e=fe&&fe.onEmpty,ve=S.useCallback(Pe=>{Og(Pe)?he&&he():_e&&_e()},[he,_e]);Kn(()=>{N&&ve({value:R})},[R,ve,N]);const Be=Pe=>{if(ge.disabled){Pe.stopPropagation();return}F&&F(Pe),y.onFocus&&y.onFocus(Pe),fe&&fe.onFocus?fe.onFocus(Pe):xe(!0)},Ue=Pe=>{k&&k(Pe),y.onBlur&&y.onBlur(Pe),fe&&fe.onBlur?fe.onBlur(Pe):xe(!1)},ze=(Pe,...Te)=>{if(!N){const it=Pe.target||V.current;if(it==null)throw new Error(Js(1));ve({value:it.value})}y.onChange&&y.onChange(Pe,...Te),I&&I(Pe,...Te)};S.useEffect(()=>{ve(V.current)},[]);const He=Pe=>{V.current&&Pe.currentTarget===Pe.target&&V.current.focus(),D&&D(Pe)};let be=g,we=y;$&&be==="input"&&(Q?we=T({type:void 0,minRows:Q,maxRows:Q},we):we=T({type:void 0,maxRows:C,minRows:_},we),be=txe);const Ce=Pe=>{ve(Pe.animationName==="mui-auto-fill-cancel"?V.current:{value:"x"})};S.useEffect(()=>{fe&&fe.setAdornedStart(!!X)},[fe,X]);const qe=T({},o,{color:ge.color||"primary",disabled:ge.disabled,endAdornment:b,error:ge.error,focused:ge.focused,formControl:fe,fullWidth:v,hiddenLabel:ge.hiddenLabel,multiline:$,size:ge.size,startAdornment:X,type:L}),rt=Txe(qe),Ae=J.root||c.Root||b0,Le=H.root||u.root||{},Fe=J.input||c.Input||x0;return we=T({},we,(r=H.input)!=null?r:u.input),O.jsxs(S.Fragment,{children:[!m&&kxe,O.jsxs(Ae,T({},Le,!vi(Ae)&&{ownerState:T({},qe,Le.ownerState)},{ref:n,onClick:He},q,{className:Ie(rt.root,Le.className,l,B&&"MuiInputBase-readOnly"),children:[X,O.jsx(v0.Provider,{value:null,children:O.jsx(Fe,T({ownerState:qe,"aria-invalid":ge.error,"aria-describedby":a,autoComplete:i,autoFocus:s,defaultValue:f,disabled:ge.disabled,id:w,onAnimationStart:Ce,name:P,placeholder:z,readOnly:B,required:ge.required,rows:Q,value:R,onKeyDown:U,onKeyUp:G,type:L},we,!vi(Fe)&&{as:be,ownerState:T({},qe,we.ownerState)},{ref:re,className:Ie(rt.input,we.className,B&&"MuiInputBase-readOnly"),onBlur:Ue,onChange:ze,onFocus:Be}))}),b,Y?Y(T({},ge,{startAdornment:X})):null]}))]})}),nE=Oxe;function Rxe(e){return et("MuiInput",e)}const Dxe=T({},Lo,Qe("MuiInput",["root","underline","input"])),ks=Dxe;function Mxe(e){return et("MuiOutlinedInput",e)}const Ixe=T({},Lo,Qe("MuiOutlinedInput",["root","notchedOutline","input"])),oi=Ixe;function Axe(e){return et("MuiFilledInput",e)}const Nxe=T({},Lo,Qe("MuiFilledInput",["root","underline","input"])),Fo=Nxe,R5=rr(O.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function jxe(e){return et("MuiAutocomplete",e)}const Lxe=Qe("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),nn=Lxe;var cD,uD;const Fxe=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],zxe=["ref"],Bxe=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:a,hasClearIcon:i,hasPopupIcon:s,inputFocused:l,popupOpen:c,size:u}=e,f={root:["root",r&&"expanded",o&&"focused",a&&"fullWidth",i&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${je(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Xe(f,jxe,t)},Vxe=de("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:a,inputFocused:i,size:s}=n;return[{[`& .${nn.tag}`]:t.tag},{[`& .${nn.tag}`]:t[`tagSize${je(s)}`]},{[`& .${nn.inputRoot}`]:t.inputRoot},{[`& .${nn.input}`]:t.input},{[`& .${nn.input}`]:i&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,o&&t.hasClearIcon]}})(({ownerState:e})=>T({[`&.${nn.focused} .${nn.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${nn.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${nn.tag}`]:T({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${nn.inputRoot}`]:{flexWrap:"wrap",[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4},[`& .${nn.input}`]:{width:0,minWidth:30}},[`& .${ks.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${ks.root}.${Lo.sizeSmall}`]:{[`& .${ks.input}`]:{padding:"2px 4px 3px 0"}},[`& .${oi.root}`]:{padding:9,[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${nn.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${nn.endAdornment}`]:{right:9}},[`& .${oi.root}.${Lo.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${nn.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Fo.root}`]:{paddingTop:19,paddingLeft:8,[`.${nn.hasPopupIcon}&, .${nn.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${nn.hasPopupIcon}.${nn.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Fo.input}`]:{padding:"7px 4px"},[`& .${nn.endAdornment}`]:{right:9}},[`& .${Fo.root}.${Lo.sizeSmall}`]:{paddingBottom:1,[`& .${Fo.input}`]:{padding:"2.5px 4px"}},[`& .${Lo.hiddenLabel}`]:{paddingTop:8},[`& .${Fo.root}.${Lo.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${nn.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Fo.root}.${Lo.hiddenLabel}.${Lo.sizeSmall}`]:{[`& .${nn.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${nn.input}`]:T({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),Uxe=de("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),Wxe=de(tr,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),Hxe=de(tr,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>T({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>T({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),Gxe=de(ch,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${nn.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>T({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),qxe=de(as,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>T({},e.typography.body1,{overflow:"auto"})),Yxe=de("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Kxe=de("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Jxe=de("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${nn.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${nn.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${nn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${nn.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${nn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),Zxe=de(pxe,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),Xxe=de("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${nn.option}`]:{paddingLeft:24}}),Qxe=S.forwardRef(function(t,n){var r,o,a,i;const s=Ke({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:c=!1,autoSelect:u=!1,blurOnSelect:f=!1,ChipProps:p,className:m,clearIcon:b=cD||(cD=O.jsx(Y0e,{fontSize:"small"})),clearOnBlur:v=!s.freeSolo,clearOnEscape:w=!1,clearText:g="Clear",closeText:y="Close",componentsProps:x={},defaultValue:C=s.multiple?[]:null,disableClearable:_=!1,disableCloseOnSelect:$=!1,disabled:P=!1,disabledItemsFocusable:k=!1,disableListWrap:I=!1,disablePortal:D=!1,filterSelectedOptions:F=!1,forcePopupIcon:U="auto",freeSolo:G=!1,fullWidth:z=!1,getLimitTagsText:B=De=>`+${De}`,getOptionLabel:Y,groupBy:Q,handleHomeEndKeys:H=!s.freeSolo,includeInputInList:J=!1,limitTags:X=-1,ListboxComponent:L="ul",ListboxProps:K,loading:q=!1,loadingText:R="Loading…",multiple:N=!1,noOptionsText:V="No options",openOnFocus:Z=!1,openText:re="Open",PaperComponent:le=as,PopperComponent:xe=ch,popupIcon:fe=uD||(uD=O.jsx(R5,{})),readOnly:ge=!1,renderGroup:he,renderInput:_e,renderOption:ve,renderTags:Be,selectOnFocus:Ue=!s.freeSolo,size:ze="medium",slotProps:He={}}=s,be=Oe(s,Fxe),{getRootProps:we,getInputProps:Ce,getInputLabelProps:qe,getPopupIndicatorProps:rt,getClearProps:Ae,getTagProps:Le,getListboxProps:Fe,getOptionProps:Pe,value:Te,dirty:it,expanded:ct,id:gt,popupOpen:Ne,focused:ne,focusedTag:te,anchorEl:ie,setAnchorEl:$e,inputValue:Se,groupedOptions:Ze}=axe(T({},s,{componentName:"Autocomplete"})),tt=!_&&!P&&it&&!ge,ft=(!G||U===!0)&&U!==!1,{onMouseDown:_t}=Ce(),{ref:vt}=K??{},dt=Fe(),{ref:Et}=dt,Yt=Oe(dt,zxe),kt=sn(Et,vt),Vt=Y||(De=>{var nt;return(nt=De.label)!=null?nt:De}),Ut=T({},s,{disablePortal:D,expanded:ct,focused:ne,fullWidth:z,getOptionLabel:Vt,hasClearIcon:tt,hasPopupIcon:ft,inputFocused:te===-1,popupOpen:Ne,size:ze}),Kt=Bxe(Ut);let bn;if(N&&Te.length>0){const De=nt=>T({className:Kt.tag,disabled:P},Le(nt));Be?bn=Be(Te,De,Ut):bn=Te.map((nt,lt)=>O.jsx(O5,T({label:Vt(nt),size:ze},De({index:lt}),p)))}if(X>-1&&Array.isArray(bn)){const De=bn.length-X;!ne&&De>0&&(bn=bn.splice(0,X),bn.push(O.jsx("span",{className:Kt.tag,children:B(De)},bn.length)))}const se=he||(De=>O.jsxs("li",{children:[O.jsx(Zxe,{className:Kt.groupLabel,ownerState:Ut,component:"div",children:De.group}),O.jsx(Xxe,{className:Kt.groupUl,ownerState:Ut,children:De.children})]},De.key)),ue=ve||((De,nt)=>O.jsx("li",T({},De,{children:Vt(nt)}))),ke=(De,nt)=>{const lt=Pe({option:De,index:nt});return ue(T({},lt,{className:Kt.option}),De,{selected:lt["aria-selected"],index:nt,inputValue:Se},Ut)},Ee=(r=He.clearIndicator)!=null?r:x.clearIndicator,pt=(o=He.paper)!=null?o:x.paper,me=(a=He.popper)!=null?a:x.popper,pe=(i=He.popupIndicator)!=null?i:x.popupIndicator;return O.jsxs(S.Fragment,{children:[O.jsx(Vxe,T({ref:n,className:Ie(Kt.root,m),ownerState:Ut},we(be),{children:_e({id:gt,disabled:P,fullWidth:!0,size:ze==="small"?"small":void 0,InputLabelProps:qe(),InputProps:T({ref:$e,className:Kt.inputRoot,startAdornment:bn,onClick:De=>{De.target===De.currentTarget&&_t(De)}},(tt||ft)&&{endAdornment:O.jsxs(Uxe,{className:Kt.endAdornment,ownerState:Ut,children:[tt?O.jsx(Wxe,T({},Ae(),{"aria-label":g,title:g,ownerState:Ut},Ee,{className:Ie(Kt.clearIndicator,Ee==null?void 0:Ee.className),children:b})):null,ft?O.jsx(Hxe,T({},rt(),{disabled:P,"aria-label":Ne?y:re,title:Ne?y:re,ownerState:Ut},pe,{className:Ie(Kt.popupIndicator,pe==null?void 0:pe.className),children:fe})):null]})}),inputProps:T({className:Kt.input,disabled:P,readOnly:ge},Ce())})})),ie?O.jsx(Gxe,T({as:xe,disablePortal:D,style:{width:ie?ie.clientWidth:null},ownerState:Ut,role:"presentation",anchorEl:ie,open:Ne},me,{className:Ie(Kt.popper,me==null?void 0:me.className),children:O.jsxs(qxe,T({ownerState:Ut,as:le},pt,{className:Ie(Kt.paper,pt==null?void 0:pt.className),children:[q&&Ze.length===0?O.jsx(Yxe,{className:Kt.loading,ownerState:Ut,children:R}):null,Ze.length===0&&!G&&!q?O.jsx(Kxe,{className:Kt.noOptions,ownerState:Ut,role:"presentation",onMouseDown:De=>{De.preventDefault()},children:V}):null,Ze.length>0?O.jsx(Jxe,T({as:L,className:Kt.listbox,ownerState:Ut},Yt,K,{ref:kt,children:Ze.map((De,nt)=>Q?se({key:De.key,group:De.group,children:De.options.map((lt,xt)=>ke(lt,De.index+xt))}):ke(De,nt))})):null]}))})):null]})}),ewe=Qxe,twe=rr(O.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function nwe(e){return et("MuiAvatar",e)}Qe("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const rwe=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],owe=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Xe({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},nwe,t)},awe=de("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e,ownerState:t})=>T({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.variant==="square"&&{borderRadius:0},t.colorDefault&&T({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600]}))),iwe=de("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),swe=de(twe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function lwe({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,a]=S.useState(!1);return S.useEffect(()=>{if(!n&&!r)return;a(!1);let i=!0;const s=new Image;return s.onload=()=>{i&&a("loaded")},s.onerror=()=>{i&&a("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=n,r&&(s.srcset=r),()=>{i=!1}},[e,t,n,r]),o}const cwe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiAvatar"}),{alt:o,children:a,className:i,component:s="div",imgProps:l,sizes:c,src:u,srcSet:f,variant:p="circular"}=r,m=Oe(r,rwe);let b=null;const v=lwe(T({},l,{src:u,srcSet:f})),w=u||f,g=w&&v!=="error",y=T({},r,{colorDefault:!g,component:s,variant:p}),x=owe(y);return g?b=O.jsx(iwe,T({alt:o,srcSet:f,src:u,sizes:c,ownerState:y,className:x.img},l)):a!=null?b=a:w&&o?b=o[0]:b=O.jsx(swe,{ownerState:y,className:x.fallback}),O.jsx(awe,T({as:s,ownerState:y,className:Ie(x.root,i),ref:n},m,{children:b}))}),D5=cwe,uwe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],dwe={entering:{opacity:1},entered:{opacity:1}},fwe=S.forwardRef(function(t,n){const r=nr(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:s,easing:l,in:c,onEnter:u,onEntered:f,onEntering:p,onExit:m,onExited:b,onExiting:v,style:w,timeout:g=o,TransitionComponent:y=p0}=t,x=Oe(t,uwe),C=S.useRef(null),_=sn(C,s.ref,n),$=z=>B=>{if(z){const Y=C.current;B===void 0?z(Y):z(Y,B)}},P=$(p),k=$((z,B)=>{h5(z);const Y=Wu({style:w,timeout:g,easing:l},{mode:"enter"});z.style.webkitTransition=r.transitions.create("opacity",Y),z.style.transition=r.transitions.create("opacity",Y),u&&u(z,B)}),I=$(f),D=$(v),F=$(z=>{const B=Wu({style:w,timeout:g,easing:l},{mode:"exit"});z.style.webkitTransition=r.transitions.create("opacity",B),z.style.transition=r.transitions.create("opacity",B),m&&m(z)}),U=$(b),G=z=>{a&&a(C.current,z)};return O.jsx(y,T({appear:i,in:c,nodeRef:C,onEnter:k,onEntered:I,onEntering:P,onExit:F,onExited:U,onExiting:D,addEndListener:G,timeout:g},x,{children:(z,B)=>S.cloneElement(s,T({style:T({opacity:0,visibility:z==="exited"&&!c?"hidden":void 0},dwe[z],w,s.props.style),ref:_},B))}))}),xd=fwe;function pwe(e){return et("MuiBackdrop",e)}Qe("MuiBackdrop",["root","invisible"]);const hwe=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],mwe=e=>{const{classes:t,invisible:n}=e;return Xe({root:["root",n&&"invisible"]},pwe,t)},vwe=de("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>T({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),gwe=S.forwardRef(function(t,n){var r,o,a;const i=Ke({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:c="div",components:u={},componentsProps:f={},invisible:p=!1,open:m,slotProps:b={},slots:v={},TransitionComponent:w=xd,transitionDuration:g}=i,y=Oe(i,hwe),x=T({},i,{component:c,invisible:p}),C=mwe(x),_=(r=b.root)!=null?r:f.root;return O.jsx(w,T({in:m,timeout:g},y,{children:O.jsx(vwe,T({"aria-hidden":!0},_,{as:(o=(a=v.root)!=null?a:u.Root)!=null?o:c,className:Ie(C.root,l,_==null?void 0:_.className),ownerState:T({},x,_==null?void 0:_.ownerState),classes:C,ref:n,children:s}))}))}),M5=gwe;function ywe(e){return et("MuiBadge",e)}const bwe=Qe("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),xs=bwe,xwe=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],ix=10,sx=4,wwe=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:a,classes:i={}}=e,s={root:["root"],badge:["badge",a,r&&"invisible",`anchorOrigin${je(n.vertical)}${je(n.horizontal)}`,`anchorOrigin${je(n.vertical)}${je(n.horizontal)}${je(o)}`,`overlap${je(o)}`,t!=="default"&&`color${je(t)}`]};return Xe(s,ywe,i)},Cwe=de("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),$we=de("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${je(n.anchorOrigin.vertical)}${je(n.anchorOrigin.horizontal)}${je(n.overlap)}`],n.color!=="default"&&t[`color${je(n.color)}`],n.invisible&&t.invisible]}})(({theme:e,ownerState:t})=>T({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:ix*2,lineHeight:1,padding:"0 6px",height:ix*2,borderRadius:ix,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.variant==="dot"&&{borderRadius:sx,height:sx*2,minWidth:sx*2,padding:0},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${xs.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${xs.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${xs.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${xs.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${xs.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${xs.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${xs.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${xs.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})})),Swe=S.forwardRef(function(t,n){var r,o,a,i,s,l;const c=Ke({props:t,name:"MuiBadge"}),{anchorOrigin:u={vertical:"top",horizontal:"right"},className:f,component:p,components:m={},componentsProps:b={},children:v,overlap:w="rectangular",color:g="default",invisible:y=!1,max:x=99,badgeContent:C,slots:_,slotProps:$,showZero:P=!1,variant:k="standard"}=c,I=Oe(c,xwe),{badgeContent:D,invisible:F,max:U,displayValue:G}=h1e({max:x,invisible:y,badgeContent:C,showZero:P}),z=x_({anchorOrigin:u,color:g,overlap:w,variant:k,badgeContent:C}),B=F||D==null&&k!=="dot",{color:Y=g,overlap:Q=w,anchorOrigin:H=u,variant:J=k}=B?z:c,X=J!=="dot"?G:void 0,L=T({},c,{badgeContent:D,invisible:B,max:U,displayValue:X,showZero:P,anchorOrigin:H,color:Y,overlap:Q,variant:J}),K=wwe(L),q=(r=(o=_==null?void 0:_.root)!=null?o:m.Root)!=null?r:Cwe,R=(a=(i=_==null?void 0:_.badge)!=null?i:m.Badge)!=null?a:$we,N=(s=$==null?void 0:$.root)!=null?s:b.root,V=(l=$==null?void 0:$.badge)!=null?l:b.badge,Z=zt({elementType:q,externalSlotProps:N,externalForwardedProps:I,additionalProps:{ref:n,as:p},ownerState:L,className:Ie(N==null?void 0:N.className,K.root,f)}),re=zt({elementType:R,externalSlotProps:V,ownerState:L,className:Ie(K.badge,V==null?void 0:V.className)});return O.jsxs(q,T({},Z,{children:[v,O.jsx(R,T({},re,{children:X}))]}))}),I5=Swe;function _we(e){return et("MuiButton",e)}const Ewe=Qe("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Hm=Ewe,Pwe=S.createContext({}),Twe=Pwe,kwe=S.createContext(void 0),Owe=kwe,Rwe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Dwe=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,classes:i}=e,s={root:["root",a,`${a}${je(t)}`,`size${je(o)}`,`${a}Size${je(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${je(o)}`],endIcon:["endIcon",`iconSize${je(o)}`]},l=Xe(s,_we,i);return T({},i,l)},A5=e=>T({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),Mwe=de(xa,{shouldForwardProp:e=>Qo(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${je(n.color)}`],t[`size${je(n.size)}`],t[`${n.variant}Size${je(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return T({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":T({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Hm.focusVisible}`]:T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Hm.disabled}`]:T({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Tt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Hm.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Hm.disabled}`]:{boxShadow:"none"}}),Iwe=de("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${je(n.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},A5(e))),Awe=de("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${je(n.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},A5(e))),Nwe=S.forwardRef(function(t,n){const r=S.useContext(Twe),o=S.useContext(Owe),a=w_(r,t),i=Ke({props:a,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:m=!1,endIcon:b,focusVisibleClassName:v,fullWidth:w=!1,size:g="medium",startIcon:y,type:x,variant:C="text"}=i,_=Oe(i,Rwe),$=T({},i,{color:l,component:c,disabled:f,disableElevation:p,disableFocusRipple:m,fullWidth:w,size:g,type:x,variant:C}),P=Dwe($),k=y&&O.jsx(Iwe,{className:P.startIcon,ownerState:$,children:y}),I=b&&O.jsx(Awe,{className:P.endIcon,ownerState:$,children:b}),D=o||"";return O.jsxs(Mwe,T({ownerState:$,className:Ie(r.className,P.root,u,D),component:c,disabled:f,focusRipple:!m,focusVisibleClassName:Ie(P.focusVisible,v),ref:n,type:x},_,{classes:P,children:[k,s,I]}))}),Vo=Nwe;function jwe(e){return et("MuiCard",e)}Qe("MuiCard",["root"]);const Lwe=["className","raised"],Fwe=e=>{const{classes:t}=e;return Xe({root:["root"]},jwe,t)},zwe=de(as,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),Bwe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiCard"}),{className:o,raised:a=!1}=r,i=Oe(r,Lwe),s=T({},r,{raised:a}),l=Fwe(s);return O.jsx(zwe,T({className:Ie(l.root,o),elevation:a?8:void 0,ref:n,ownerState:s},i))}),Vwe=Bwe;function Uwe(e){return et("MuiCardContent",e)}Qe("MuiCardContent",["root"]);const Wwe=["className","component"],Hwe=e=>{const{classes:t}=e;return Xe({root:["root"]},Uwe,t)},Gwe=de("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),qwe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiCardContent"}),{className:o,component:a="div"}=r,i=Oe(r,Wwe),s=T({},r,{component:a}),l=Hwe(s);return O.jsx(Gwe,T({as:a,className:Ie(l.root,o),ownerState:s,ref:n},i))}),Ywe=qwe;function Kwe(e){return et("MuiCardHeader",e)}const Jwe=Qe("MuiCardHeader",["root","avatar","action","content","title","subheader"]),dD=Jwe,Zwe=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],Xwe=e=>{const{classes:t}=e;return Xe({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},Kwe,t)},Qwe=de("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>T({[`& .${dD.title}`]:t.title,[`& .${dD.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),eCe=de("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),tCe=de("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),nCe=de("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),rCe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiCardHeader"}),{action:o,avatar:a,className:i,component:s="div",disableTypography:l=!1,subheader:c,subheaderTypographyProps:u,title:f,titleTypographyProps:p}=r,m=Oe(r,Zwe),b=T({},r,{component:s,disableTypography:l}),v=Xwe(b);let w=f;w!=null&&w.type!==gn&&!l&&(w=O.jsx(gn,T({variant:a?"body2":"h5",className:v.title,component:"span",display:"block"},p,{children:w})));let g=c;return g!=null&&g.type!==gn&&!l&&(g=O.jsx(gn,T({variant:a?"body2":"body1",className:v.subheader,color:"text.secondary",component:"span",display:"block"},u,{children:g}))),O.jsxs(Qwe,T({className:Ie(v.root,i),as:s,ref:n,ownerState:b},m,{children:[a&&O.jsx(eCe,{className:v.avatar,ownerState:b,children:a}),O.jsxs(nCe,{className:v.content,ownerState:b,children:[w,g]}),o&&O.jsx(tCe,{className:v.action,ownerState:b,children:o})]}))}),oCe=rCe;function aCe(e){return et("PrivateSwitchBase",e)}Qe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const iCe=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],sCe=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,a={root:["root",n&&"checked",r&&"disabled",o&&`edge${je(o)}`],input:["input"]};return Xe(a,aCe,t)},lCe=de(xa)(({ownerState:e})=>T({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),cCe=de("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),uCe=S.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:a,className:i,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:f,id:p,inputProps:m,inputRef:b,name:v,onBlur:w,onChange:g,onFocus:y,readOnly:x,required:C=!1,tabIndex:_,type:$,value:P}=t,k=Oe(t,iCe),[I,D]=wr({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),F=_i(),U=J=>{y&&y(J),F&&F.onFocus&&F.onFocus(J)},G=J=>{w&&w(J),F&&F.onBlur&&F.onBlur(J)},z=J=>{if(J.nativeEvent.defaultPrevented)return;const X=J.target.checked;D(X),g&&g(J,X)};let B=l;F&&typeof B>"u"&&(B=F.disabled);const Y=$==="checkbox"||$==="radio",Q=T({},t,{checked:I,disabled:B,disableFocusRipple:c,edge:u}),H=sCe(Q);return O.jsxs(lCe,T({component:"span",className:Ie(H.root,i),centerRipple:!0,focusRipple:!c,disabled:B,tabIndex:null,role:void 0,onFocus:U,onBlur:G,ownerState:Q,ref:n},k,{children:[O.jsx(cCe,T({autoFocus:r,checked:o,defaultChecked:s,className:H.input,disabled:B,id:Y?p:void 0,name:v,onChange:z,readOnly:x,ref:b,required:C,ownerState:Q,tabIndex:_,type:$},$==="checkbox"&&P===void 0?{}:{value:P},m)),I?a:f]}))}),rE=uCe,dCe=rr(O.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),fCe=rr(O.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),pCe=rr(O.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function hCe(e){return et("MuiCheckbox",e)}const mCe=Qe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),lx=mCe,vCe=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],gCe=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,a={root:["root",n&&"indeterminate",`color${je(r)}`,`size${je(o)}`]},i=Xe(a,hCe,t);return T({},t,i)},yCe=de(rE,{shouldForwardProp:e=>Qo(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,n.color!=="default"&&t[`color${je(n.color)}`]]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${lx.checked}, &.${lx.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${lx.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),bCe=O.jsx(fCe,{}),xCe=O.jsx(dCe,{}),wCe=O.jsx(pCe,{}),CCe=S.forwardRef(function(t,n){var r,o;const a=Ke({props:t,name:"MuiCheckbox"}),{checkedIcon:i=bCe,color:s="primary",icon:l=xCe,indeterminate:c=!1,indeterminateIcon:u=wCe,inputProps:f,size:p="medium",className:m}=a,b=Oe(a,vCe),v=c?u:l,w=c?u:i,g=T({},a,{color:s,indeterminate:c,size:p}),y=gCe(g);return O.jsx(yCe,T({type:"checkbox",inputProps:T({"data-indeterminate":c},f),icon:S.cloneElement(v,{fontSize:(r=v.props.fontSize)!=null?r:p}),checkedIcon:S.cloneElement(w,{fontSize:(o=w.props.fontSize)!=null?o:p}),ownerState:g,ref:n,className:Ie(y.root,m)},b,{classes:y}))}),$Ce=CCe;function SCe(e){return et("MuiModal",e)}Qe("MuiModal",["root","hidden","backdrop"]);const _Ce=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],ECe=e=>{const{open:t,exited:n,classes:r}=e;return Xe({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},SCe,r)},PCe=de("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>T({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),TCe=de(M5,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),kCe=S.forwardRef(function(t,n){var r,o,a,i,s,l;const c=Ke({name:"MuiModal",props:t}),{BackdropComponent:u=TCe,BackdropProps:f,className:p,closeAfterTransition:m=!1,children:b,container:v,component:w,components:g={},componentsProps:y={},disableAutoFocus:x=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:_=!1,disablePortal:$=!1,disableRestoreFocus:P=!1,disableScrollLock:k=!1,hideBackdrop:I=!1,keepMounted:D=!1,onBackdropClick:F,open:U,slotProps:G,slots:z}=c,B=Oe(c,_Ce),Y=T({},c,{closeAfterTransition:m,disableAutoFocus:x,disableEnforceFocus:C,disableEscapeKeyDown:_,disablePortal:$,disableRestoreFocus:P,disableScrollLock:k,hideBackdrop:I,keepMounted:D}),{getRootProps:Q,getBackdropProps:H,getTransitionProps:J,portalRef:X,isTopModal:L,exited:K,hasTransition:q}=Hbe(T({},Y,{rootRef:n})),R=T({},Y,{exited:K}),N=ECe(R),V={};if(b.props.tabIndex===void 0&&(V.tabIndex="-1"),q){const{onEnter:he,onExited:_e}=J();V.onEnter=he,V.onExited=_e}const Z=(r=(o=z==null?void 0:z.root)!=null?o:g.Root)!=null?r:PCe,re=(a=(i=z==null?void 0:z.backdrop)!=null?i:g.Backdrop)!=null?a:u,le=(s=G==null?void 0:G.root)!=null?s:y.root,xe=(l=G==null?void 0:G.backdrop)!=null?l:y.backdrop,fe=zt({elementType:Z,externalSlotProps:le,externalForwardedProps:B,getSlotProps:Q,additionalProps:{ref:n,as:w},ownerState:R,className:Ie(p,le==null?void 0:le.className,N==null?void 0:N.root,!R.open&&R.exited&&(N==null?void 0:N.hidden))}),ge=zt({elementType:re,externalSlotProps:xe,additionalProps:f,getSlotProps:he=>H(T({},he,{onClick:_e=>{F&&F(_e),he!=null&&he.onClick&&he.onClick(_e)}})),className:Ie(xe==null?void 0:xe.className,f==null?void 0:f.className,N==null?void 0:N.backdrop),ownerState:R});return!D&&!U&&(!q||K)?null:O.jsx(P5,{ref:X,container:v,disablePortal:$,children:O.jsxs(Z,T({},fe,{children:[!I&&u?O.jsx(re,T({},ge)):null,O.jsx(g5,{disableEnforceFocus:C,disableAutoFocus:x,disableRestoreFocus:P,isEnabled:L,open:U,children:S.cloneElement(b,V)})]}))})}),N5=kCe;function OCe(e){return et("MuiDialog",e)}const RCe=Qe("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Yf=RCe,DCe=S.createContext({}),j5=DCe,MCe=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],ICe=de(M5,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),ACe=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:a}=e,i={root:["root"],container:["container",`scroll${je(n)}`],paper:["paper",`paperScroll${je(n)}`,`paperWidth${je(String(r))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return Xe(i,OCe,t)},NCe=de(N5,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),jCe=de("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${je(n.scroll)}`]]}})(({ownerState:e})=>T({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),LCe=de(as,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${je(n.scroll)}`],t[`paperWidth${je(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>T({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Yf.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${Yf.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Yf.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),FCe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialog"}),o=nr(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":s,BackdropComponent:l,BackdropProps:c,children:u,className:f,disableEscapeKeyDown:p=!1,fullScreen:m=!1,fullWidth:b=!1,maxWidth:v="sm",onBackdropClick:w,onClose:g,open:y,PaperComponent:x=as,PaperProps:C={},scroll:_="paper",TransitionComponent:$=xd,transitionDuration:P=a,TransitionProps:k}=r,I=Oe(r,MCe),D=T({},r,{disableEscapeKeyDown:p,fullScreen:m,fullWidth:b,maxWidth:v,scroll:_}),F=ACe(D),U=S.useRef(),G=Q=>{U.current=Q.target===Q.currentTarget},z=Q=>{U.current&&(U.current=null,w&&w(Q),g&&g(Q,"backdropClick"))},B=Ga(s),Y=S.useMemo(()=>({titleId:B}),[B]);return O.jsx(NCe,T({className:Ie(F.root,f),closeAfterTransition:!0,components:{Backdrop:ICe},componentsProps:{backdrop:T({transitionDuration:P,as:l},c)},disableEscapeKeyDown:p,onClose:g,open:y,ref:n,onClick:z,ownerState:D},I,{children:O.jsx($,T({appear:!0,in:y,timeout:P,role:"presentation"},k,{children:O.jsx(jCe,{className:Ie(F.container),onMouseDown:G,ownerState:D,children:O.jsx(LCe,T({as:x,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":B},C,{className:Ie(F.paper,C.className),ownerState:D,children:O.jsx(j5.Provider,{value:Y,children:u})}))})}))}))}),w0=FCe;function zCe(e){return et("MuiDialogActions",e)}Qe("MuiDialogActions",["root","spacing"]);const BCe=["className","disableSpacing"],VCe=e=>{const{classes:t,disableSpacing:n}=e;return Xe({root:["root",!n&&"spacing"]},zCe,t)},UCe=de("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>T({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),WCe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1}=r,i=Oe(r,BCe),s=T({},r,{disableSpacing:a}),l=VCe(s);return O.jsx(UCe,T({className:Ie(l.root,o),ownerState:s,ref:n},i))}),C0=WCe;function HCe(e){return et("MuiDialogContent",e)}Qe("MuiDialogContent",["root","dividers"]);function GCe(e){return et("MuiDialogTitle",e)}const qCe=Qe("MuiDialogTitle",["root"]),YCe=qCe,KCe=["className","dividers"],JCe=e=>{const{classes:t,dividers:n}=e;return Xe({root:["root",n&&"dividers"]},HCe,t)},ZCe=de("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>T({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${YCe.root} + &`]:{paddingTop:0}})),XCe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1}=r,i=Oe(r,KCe),s=T({},r,{dividers:a}),l=JCe(s);return O.jsx(ZCe,T({className:Ie(l.root,o),ownerState:s,ref:n},i))}),$0=XCe;function QCe(e){return et("MuiDialogContentText",e)}Qe("MuiDialogContentText",["root"]);const e$e=["children","className"],t$e=e=>{const{classes:t}=e,r=Xe({root:["root"]},QCe,t);return T({},t,r)},n$e=de(gn,{shouldForwardProp:e=>Qo(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),r$e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogContentText"}),{className:o}=r,a=Oe(r,e$e),i=t$e(a);return O.jsx(n$e,T({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:a,className:Ie(i.root,o)},r,{classes:i}))}),oE=r$e,o$e=["className","id"],a$e=e=>{const{classes:t}=e;return Xe({root:["root"]},GCe,t)},i$e=de(gn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),s$e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogTitle"}),{className:o,id:a}=r,i=Oe(r,o$e),s=r,l=a$e(s),{titleId:c=a}=S.useContext(j5);return O.jsx(i$e,T({component:"h2",className:Ie(l.root,o),ownerState:s,ref:n,variant:"h6",id:a??c},i))}),aE=s$e;function l$e(e){return et("MuiDivider",e)}const c$e=Qe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),fD=c$e,u$e=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],d$e=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:a,orientation:i,textAlign:s,variant:l}=e;return Xe({root:["root",t&&"absolute",l,a&&"light",i==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&i==="vertical"&&"withChildrenVertical",s==="right"&&i!=="vertical"&&"textAlignRight",s==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},l$e,r)},f$e=de("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>T({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Tt(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>T({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>T({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>T({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>T({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),p$e=de("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>T({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),L5=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDivider"}),{absolute:o=!1,children:a,className:i,component:s=a?"div":"hr",flexItem:l=!1,light:c=!1,orientation:u="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:p="center",variant:m="fullWidth"}=r,b=Oe(r,u$e),v=T({},r,{absolute:o,component:s,flexItem:l,light:c,orientation:u,role:f,textAlign:p,variant:m}),w=d$e(v);return O.jsx(f$e,T({as:s,className:Ie(w.root,i),role:f,ref:n,ownerState:v},b,{children:a?O.jsx(p$e,{className:w.wrapper,ownerState:v,children:a}):null}))});L5.muiSkipListHighlight=!0;const pD=L5,h$e=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],m$e=e=>{const{classes:t,disableUnderline:n}=e,o=Xe({root:["root",!n&&"underline"],input:["input"]},Axe,t);return T({},t,o)},v$e=de(b0,{shouldForwardProp:e=>Qo(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...g0(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return T({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${Fo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${Fo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Fo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Fo.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Fo.disabled}, .${Fo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Fo.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&T({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),g$e=de(x0,{name:"MuiFilledInput",slot:"Input",overridesResolver:y0})(({theme:e,ownerState:t})=>T({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),F5=S.forwardRef(function(t,n){var r,o,a,i;const s=Ke({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:f="input",multiline:p=!1,slotProps:m,slots:b={},type:v="text"}=s,w=Oe(s,h$e),g=T({},s,{fullWidth:u,inputComponent:f,multiline:p,type:v}),y=m$e(s),x={root:{ownerState:g},input:{ownerState:g}},C=m??c?Hr(m??c,x):x,_=(r=(o=b.root)!=null?o:l.Root)!=null?r:v$e,$=(a=(i=b.input)!=null?i:l.Input)!=null?a:g$e;return O.jsx(nE,T({slots:{root:_,input:$},componentsProps:C,fullWidth:u,inputComponent:f,multiline:p,ref:n,type:v},w,{classes:y}))});F5.muiName="Input";const z5=F5;function y$e(e){return et("MuiFormControl",e)}Qe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const b$e=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],x$e=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${je(n)}`,r&&"fullWidth"]};return Xe(o,y$e,t)},w$e=de("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,t[`margin${je(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>T({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),C$e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiFormControl"}),{children:o,className:a,color:i="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:f=!1,hiddenLabel:p=!1,margin:m="none",required:b=!1,size:v="medium",variant:w="outlined"}=r,g=Oe(r,b$e),y=T({},r,{color:i,component:s,disabled:l,error:c,fullWidth:f,hiddenLabel:p,margin:m,required:b,size:v,variant:w}),x=x$e(y),[C,_]=S.useState(()=>{let G=!1;return o&&S.Children.forEach(o,z=>{if(!_u(z,["Input","Select"]))return;const B=_u(z,["Select"])?z.props.input:z;B&&Sxe(B.props)&&(G=!0)}),G}),[$,P]=S.useState(()=>{let G=!1;return o&&S.Children.forEach(o,z=>{_u(z,["Input","Select"])&&(Og(z.props,!0)||Og(z.props.inputProps,!0))&&(G=!0)}),G}),[k,I]=S.useState(!1);l&&k&&I(!1);const D=u!==void 0&&!l?u:k;let F;const U=S.useMemo(()=>({adornedStart:C,setAdornedStart:_,color:i,disabled:l,error:c,filled:$,focused:D,fullWidth:f,hiddenLabel:p,size:v,onBlur:()=>{I(!1)},onEmpty:()=>{P(!1)},onFilled:()=>{P(!0)},onFocus:()=>{I(!0)},registerEffect:F,required:b,variant:w}),[C,i,l,c,$,D,f,p,F,b,v,w]);return O.jsx(v0.Provider,{value:U,children:O.jsx(w$e,T({as:s,ownerState:y,className:Ie(x.root,a),ref:n},g,{children:o}))})}),uh=C$e,$$e=Yge({createStyledComponent:de("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ke({props:e,name:"MuiStack"})}),S$e=$$e;function _$e(e){return et("MuiFormControlLabel",e)}const E$e=Qe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Ef=E$e,P$e=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],T$e=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:a}=e,i={root:["root",n&&"disabled",`labelPlacement${je(r)}`,o&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Xe(i,_$e,t)},k$e=de("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ef.label}`]:t.label},t.root,t[`labelPlacement${je(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>T({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Ef.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Ef.label}`]:{[`&.${Ef.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),O$e=de("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Ef.error}`]:{color:(e.vars||e).palette.error.main}})),R$e=S.forwardRef(function(t,n){var r,o;const a=Ke({props:t,name:"MuiFormControlLabel"}),{className:i,componentsProps:s={},control:l,disabled:c,disableTypography:u,label:f,labelPlacement:p="end",required:m,slotProps:b={}}=a,v=Oe(a,P$e),w=_i(),g=(r=c??l.props.disabled)!=null?r:w==null?void 0:w.disabled,y=m??l.props.required,x={disabled:g,required:y};["checked","name","onChange","value","inputRef"].forEach(I=>{typeof l.props[I]>"u"&&typeof a[I]<"u"&&(x[I]=a[I])});const C=ol({props:a,muiFormControl:w,states:["error"]}),_=T({},a,{disabled:g,labelPlacement:p,required:y,error:C.error}),$=T$e(_),P=(o=b.typography)!=null?o:s.typography;let k=f;return k!=null&&k.type!==gn&&!u&&(k=O.jsx(gn,T({component:"span"},P,{className:Ie($.label,P==null?void 0:P.className),children:k}))),O.jsxs(k$e,T({className:Ie($.root,i),ownerState:_,ref:n},v,{children:[S.cloneElement(l,x),y?O.jsxs(S$e,{direction:"row",alignItems:"center",children:[k,O.jsxs(O$e,{ownerState:_,"aria-hidden":!0,className:$.asterisk,children:[" ","*"]})]}):k]}))}),S0=R$e;function D$e(e){return et("MuiFormGroup",e)}Qe("MuiFormGroup",["root","row","error"]);const M$e=["className","row"],I$e=e=>{const{classes:t,row:n,error:r}=e;return Xe({root:["root",n&&"row",r&&"error"]},D$e,t)},A$e=de("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>T({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),N$e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiFormGroup"}),{className:o,row:a=!1}=r,i=Oe(r,M$e),s=_i(),l=ol({props:r,muiFormControl:s,states:["error"]}),c=T({},r,{row:a,error:l.error}),u=I$e(c);return O.jsx(A$e,T({className:Ie(u.root,o),ownerState:c,ref:n},i))}),B5=N$e;function j$e(e){return et("MuiFormHelperText",e)}const L$e=Qe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),hD=L$e;var mD;const F$e=["children","className","component","disabled","error","filled","focused","margin","required","variant"],z$e=e=>{const{classes:t,contained:n,size:r,disabled:o,error:a,filled:i,focused:s,required:l}=e,c={root:["root",o&&"disabled",a&&"error",r&&`size${je(r)}`,n&&"contained",s&&"focused",i&&"filled",l&&"required"]};return Xe(c,j$e,t)},B$e=de("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${je(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${hD.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${hD.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),V$e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiFormHelperText"}),{children:o,className:a,component:i="p"}=r,s=Oe(r,F$e),l=_i(),c=ol({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),u=T({},r,{component:i,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=z$e(u);return O.jsx(B$e,T({as:i,ownerState:u,className:Ie(f.root,a),ref:n},s,{children:o===" "?mD||(mD=O.jsx("span",{className:"notranslate",children:"​"})):o}))}),dr=V$e;function U$e(e){return et("MuiFormLabel",e)}const W$e=Qe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Kf=W$e,H$e=["children","className","color","component","disabled","error","filled","focused","required"],G$e=e=>{const{classes:t,color:n,focused:r,disabled:o,error:a,filled:i,required:s}=e,l={root:["root",`color${je(n)}`,o&&"disabled",a&&"error",i&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return Xe(l,U$e,t)},q$e=de("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Kf.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Kf.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Kf.error}`]:{color:(e.vars||e).palette.error.main}})),Y$e=de("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Kf.error}`]:{color:(e.vars||e).palette.error.main}})),K$e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiFormLabel"}),{children:o,className:a,component:i="label"}=r,s=Oe(r,H$e),l=_i(),c=ol({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),u=T({},r,{color:c.color||"primary",component:i,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=G$e(u);return O.jsxs(q$e,T({as:i,ownerState:u,className:Ie(f.root,a),ref:n},s,{children:[o,c.required&&O.jsxs(Y$e,{ownerState:u,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),iE=K$e,J$e=S.createContext(),vD=J$e;function Z$e(e){return et("MuiGrid",e)}const X$e=[0,1,2,3,4,5,6,7,8,9,10],Q$e=["column-reverse","column","row-reverse","row"],eSe=["nowrap","wrap-reverse","wrap"],af=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Ep=Qe("MuiGrid",["root","container","item","zeroMinWidth",...X$e.map(e=>`spacing-xs-${e}`),...Q$e.map(e=>`direction-xs-${e}`),...eSe.map(e=>`wrap-xs-${e}`),...af.map(e=>`grid-xs-${e}`),...af.map(e=>`grid-sm-${e}`),...af.map(e=>`grid-md-${e}`),...af.map(e=>`grid-lg-${e}`),...af.map(e=>`grid-xl-${e}`)]),tSe=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Tu(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function nSe({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let a={};if(t[o]&&(n=t[o]),!n)return r;if(n===!0)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=Fl({values:t.columns,breakpoints:e.breakpoints.values}),s=typeof i=="object"?i[o]:i;if(s==null)return r;const l=`${Math.round(n/s*1e8)/1e6}%`;let c={};if(t.container&&t.item&&t.columnSpacing!==0){const u=e.spacing(t.columnSpacing);if(u!=="0px"){const f=`calc(${l} + ${Tu(u)})`;c={flexBasis:f,maxWidth:f}}}a=T({flexBasis:l,flexGrow:0,maxWidth:l},c)}return e.breakpoints.values[o]===0?Object.assign(r,a):r[e.breakpoints.up(o)]=a,r},{})}function rSe({theme:e,ownerState:t}){const n=Fl({values:t.direction,breakpoints:e.breakpoints.values});return To({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${Ep.item}`]={maxWidth:"none"}),o})}function V5({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(o=>{n===""&&t[o]!==0&&(n=o)});const r=Object.keys(e).sort((o,a)=>e[o]-e[a]);return r.slice(0,r.indexOf(n))}function oSe({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const a=Fl({values:r,breakpoints:e.breakpoints.values});let i;typeof a=="object"&&(i=V5({breakpoints:e.breakpoints.values,values:a})),o=To({theme:e},a,(s,l)=>{var c;const u=e.spacing(s);return u!=="0px"?{marginTop:`-${Tu(u)}`,[`& > .${Ep.item}`]:{paddingTop:Tu(u)}}:(c=i)!=null&&c.includes(l)?{}:{marginTop:0,[`& > .${Ep.item}`]:{paddingTop:0}}})}return o}function aSe({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const a=Fl({values:r,breakpoints:e.breakpoints.values});let i;typeof a=="object"&&(i=V5({breakpoints:e.breakpoints.values,values:a})),o=To({theme:e},a,(s,l)=>{var c;const u=e.spacing(s);return u!=="0px"?{width:`calc(100% + ${Tu(u)})`,marginLeft:`-${Tu(u)}`,[`& > .${Ep.item}`]:{paddingLeft:Tu(u)}}:(c=i)!=null&&c.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${Ep.item}`]:{paddingLeft:0}}})}return o}function iSe(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(o=>{const a=e[o];Number(a)>0&&r.push(n[`spacing-${o}-${String(a)}`])}),r}const sSe=de("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:a,spacing:i,wrap:s,zeroMinWidth:l,breakpoints:c}=n;let u=[];r&&(u=iSe(i,c,t));const f=[];return c.forEach(p=>{const m=n[p];m&&f.push(t[`grid-${p}-${String(m)}`])}),[t.root,r&&t.container,a&&t.item,l&&t.zeroMinWidth,...u,o!=="row"&&t[`direction-xs-${String(o)}`],s!=="wrap"&&t[`wrap-xs-${String(s)}`],...f]}})(({ownerState:e})=>T({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),rSe,oSe,aSe,nSe);function lSe(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const o=e[r];if(Number(o)>0){const a=`spacing-${r}-${String(o)}`;n.push(a)}}),n}const cSe=e=>{const{classes:t,container:n,direction:r,item:o,spacing:a,wrap:i,zeroMinWidth:s,breakpoints:l}=e;let c=[];n&&(c=lSe(a,l));const u=[];l.forEach(p=>{const m=e[p];m&&u.push(`grid-${p}-${String(m)}`)});const f={root:["root",n&&"container",o&&"item",s&&"zeroMinWidth",...c,r!=="row"&&`direction-xs-${String(r)}`,i!=="wrap"&&`wrap-xs-${String(i)}`,...u]};return Xe(f,Z$e,t)},uSe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiGrid"}),{breakpoints:o}=nr(),a=L_(r),{className:i,columns:s,columnSpacing:l,component:c="div",container:u=!1,direction:f="row",item:p=!1,rowSpacing:m,spacing:b=0,wrap:v="wrap",zeroMinWidth:w=!1}=a,g=Oe(a,tSe),y=m||b,x=l||b,C=S.useContext(vD),_=u?s||12:C,$={},P=T({},g);o.keys.forEach(D=>{g[D]!=null&&($[D]=g[D],delete P[D])});const k=T({},a,{columns:_,container:u,direction:f,item:p,rowSpacing:y,columnSpacing:x,wrap:v,zeroMinWidth:w,spacing:b},$,{breakpoints:o.keys}),I=cSe(k);return O.jsx(vD.Provider,{value:_,children:O.jsx(sSe,T({ownerState:k,className:Ie(I.root,i),as:c,ref:n},P))})}),en=uSe,dSe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function sC(e){return`scale(${e}, ${e**2})`}const fSe={entering:{opacity:1,transform:sC(1)},entered:{opacity:1,transform:"none"}},cx=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),U5=S.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:a,easing:i,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:f,onExited:p,onExiting:m,style:b,timeout:v="auto",TransitionComponent:w=p0}=t,g=Oe(t,dSe),y=S.useRef(),x=S.useRef(),C=nr(),_=S.useRef(null),$=sn(_,a.ref,n),P=B=>Y=>{if(B){const Q=_.current;Y===void 0?B(Q):B(Q,Y)}},k=P(u),I=P((B,Y)=>{h5(B);const{duration:Q,delay:H,easing:J}=Wu({style:b,timeout:v,easing:i},{mode:"enter"});let X;v==="auto"?(X=C.transitions.getAutoHeightDuration(B.clientHeight),x.current=X):X=Q,B.style.transition=[C.transitions.create("opacity",{duration:X,delay:H}),C.transitions.create("transform",{duration:cx?X:X*.666,delay:H,easing:J})].join(","),l&&l(B,Y)}),D=P(c),F=P(m),U=P(B=>{const{duration:Y,delay:Q,easing:H}=Wu({style:b,timeout:v,easing:i},{mode:"exit"});let J;v==="auto"?(J=C.transitions.getAutoHeightDuration(B.clientHeight),x.current=J):J=Y,B.style.transition=[C.transitions.create("opacity",{duration:J,delay:Q}),C.transitions.create("transform",{duration:cx?J:J*.666,delay:cx?Q:Q||J*.333,easing:H})].join(","),B.style.opacity=0,B.style.transform=sC(.75),f&&f(B)}),G=P(p),z=B=>{v==="auto"&&(y.current=setTimeout(B,x.current||0)),r&&r(_.current,B)};return S.useEffect(()=>()=>{clearTimeout(y.current)},[]),O.jsx(w,T({appear:o,in:s,nodeRef:_,onEnter:I,onEntered:D,onEntering:k,onExit:U,onExited:G,onExiting:F,addEndListener:z,timeout:v==="auto"?null:v},g,{children:(B,Y)=>S.cloneElement(a,T({style:T({opacity:0,transform:sC(.75),visibility:B==="exited"&&!s?"hidden":void 0},fSe[B],b,a.props.style),ref:$},Y))}))});U5.muiSupportAuto=!0;const Rg=U5;function pSe(e,t,n,r,o){const[a,i]=S.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return Kn(()=>{let s=!0;if(!n)return;const l=n(e),c=()=>{s&&i(l.matches)};return c(),l.addListener(c),()=>{s=!1,l.removeListener(c)}},[e,n]),a}const W5=Qf["useSyncExternalStore"];function hSe(e,t,n,r,o){const a=S.useCallback(()=>t,[t]),i=S.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return a},[a,e,r,o,n]),[s,l]=S.useMemo(()=>{if(n===null)return[a,()=>()=>{}];const u=n(e);return[()=>u.matches,f=>(u.addListener(f),()=>{u.removeListener(f)})]},[a,n,e]);return W5(l,s,i)}function dh(e,t={}){const n=j_(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:a=r?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:s=!1}=F_({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(W5!==void 0?hSe:pSe)(l,o,a,i,s)}const mSe=["initialWidth","width"],Ms=["xs","sm","md","lg","xl"],vSe=(e,t,n=!0)=>n?Ms.indexOf(e)<=Ms.indexOf(t):Ms.indexOf(e)n?Ms.indexOf(t)<=Ms.indexOf(e):Ms.indexOf(t)t=>{const{withTheme:n=!1,noSSR:r=!1,initialWidth:o}=e;function a(i){const s=nr(),l=i.theme||s,c=F_({theme:l,name:"MuiWithWidth",props:i}),{initialWidth:u,width:f}=c,p=Oe(c,mSe),[m,b]=S.useState(!1);Kn(()=>{b(!0)},[]);const w=l.breakpoints.keys.slice().reverse().reduce((y,x)=>{const C=dh(l.breakpoints.up(x));return!y&&C?x:y},null),g=T({width:f||(m||r?w:void 0)||u||o},n?{theme:l}:{},p);return g.width===void 0?null:O.jsx(t,T({},g))}return a},bSe=ySe;function xSe(e){const{children:t,only:n,width:r}=e,o=nr();let a=!0;if(n)if(Array.isArray(n))for(let i=0;i{const{classes:t,breakpoints:n}=e,r={root:["root",...n.map(({breakpoint:o,dir:a})=>a==="only"?`${a}${je(o)}`:`${o}${je(a)}`)]};return Xe(r,CSe,t)},_Se=de("div",{name:"PrivateHiddenCss",slot:"Root"})(({theme:e,ownerState:t})=>{const n={display:"none"};return T({},t.breakpoints.map(({breakpoint:r,dir:o})=>o==="only"?{[e.breakpoints.only(r)]:n}:o==="up"?{[e.breakpoints.up(r)]:n}:{[e.breakpoints.down(r)]:n}).reduce((r,o)=>(Object.keys(o).forEach(a=>{r[a]=o[a]}),r),{}))});function ESe(e){const{children:t,className:n,only:r}=e,o=Oe(e,$Se),a=nr(),i=[];for(let c=0;c{i.push({breakpoint:u,dir:"only"})});const s=T({},e,{breakpoints:i}),l=SSe(s);return O.jsx(_Se,{className:Ie(l.root,n),ownerState:s,children:t})}const PSe=["implementation","lgDown","lgUp","mdDown","mdUp","smDown","smUp","xlDown","xlUp","xsDown","xsUp"];function Pn(e){const{implementation:t="js",lgDown:n=!1,lgUp:r=!1,mdDown:o=!1,mdUp:a=!1,smDown:i=!1,smUp:s=!1,xlDown:l=!1,xlUp:c=!1,xsDown:u=!1,xsUp:f=!1}=e,p=Oe(e,PSe);return t==="js"?O.jsx(wSe,T({lgDown:n,lgUp:r,mdDown:o,mdUp:a,smDown:i,smUp:s,xlDown:l,xlUp:c,xsDown:u,xsUp:f},p)):O.jsx(ESe,T({lgDown:n,lgUp:r,mdDown:o,mdUp:a,smDown:i,smUp:s,xlDown:l,xlUp:c,xsDown:u,xsUp:f},p))}const TSe=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],kSe=e=>{const{classes:t,disableUnderline:n}=e,o=Xe({root:["root",!n&&"underline"],input:["input"]},Rxe,t);return T({},t,o)},OSe=de(b0,{shouldForwardProp:e=>Qo(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...g0(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),T({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ks.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ks.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ks.disabled}, .${ks.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${ks.disabled}:before`]:{borderBottomStyle:"dotted"}})}),RSe=de(x0,{name:"MuiInput",slot:"Input",overridesResolver:y0})({}),H5=S.forwardRef(function(t,n){var r,o,a,i;const s=Ke({props:t,name:"MuiInput"}),{disableUnderline:l,components:c={},componentsProps:u,fullWidth:f=!1,inputComponent:p="input",multiline:m=!1,slotProps:b,slots:v={},type:w="text"}=s,g=Oe(s,TSe),y=kSe(s),C={root:{ownerState:{disableUnderline:l}}},_=b??u?Hr(b??u,C):C,$=(r=(o=v.root)!=null?o:c.Root)!=null?r:OSe,P=(a=(i=v.input)!=null?i:c.Input)!=null?a:RSe;return O.jsx(nE,T({slots:{root:$,input:P},slotProps:_,fullWidth:f,inputComponent:p,multiline:m,ref:n,type:w},g,{classes:y}))});H5.muiName="Input";const is=H5;function DSe(e){return et("MuiInputAdornment",e)}const MSe=Qe("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),gD=MSe;var yD;const ISe=["children","className","component","disablePointerEvents","disableTypography","position","variant"],ASe=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${je(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},NSe=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:a,variant:i}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${je(o)}`,i,r&&"hiddenLabel",a&&`size${je(a)}`]};return Xe(s,DSe,t)},jSe=de("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:ASe})(({theme:e,ownerState:t})=>T({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${gD.positionStart}&:not(.${gD.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),LSe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiInputAdornment"}),{children:o,className:a,component:i="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u}=r,f=Oe(r,ISe),p=_i()||{};let m=u;u&&p.variant,p&&!m&&(m=p.variant);const b=T({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:c,variant:m}),v=NSe(b);return O.jsx(v0.Provider,{value:null,children:O.jsx(jSe,T({as:i,ownerState:b,className:Ie(v.root,a),ref:n},f,{children:typeof o=="string"&&!l?O.jsx(gn,{color:"text.secondary",children:o}):O.jsxs(S.Fragment,{children:[c==="start"?yD||(yD=O.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})}),sE=LSe;function FSe(e){return et("MuiInputLabel",e)}Qe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const zSe=["disableAnimation","margin","shrink","variant","className"],BSe=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:a,variant:i,required:s}=e,l={root:["root",n&&"formControl",!a&&"animated",o&&"shrink",r&&r!=="normal"&&`size${je(r)}`,i],asterisk:[s&&"asterisk"]},c=Xe(l,FSe,t);return T({},t,c)},VSe=de(iE,{shouldForwardProp:e=>Qo(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Kf.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})(({theme:e,ownerState:t})=>T({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&T({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&T({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&T({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),USe=S.forwardRef(function(t,n){const r=Ke({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:a,className:i}=r,s=Oe(r,zSe),l=_i();let c=a;typeof c>"u"&&l&&(c=l.filled||l.focused||l.adornedStart);const u=ol({props:r,muiFormControl:l,states:["size","variant","required"]}),f=T({},r,{disableAnimation:o,formControl:l,shrink:c,size:u.size,variant:u.variant,required:u.required}),p=BSe(f);return O.jsx(VSe,T({"data-shrink":c,ownerState:f,ref:n,className:Ie(p.root,i)},s,{classes:p}))}),G5=USe,WSe=S.createContext({}),qi=WSe;function HSe(e){return et("MuiList",e)}Qe("MuiList",["root","padding","dense","subheader"]);const GSe=["children","className","component","dense","disablePadding","subheader"],qSe=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Xe({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},HSe,t)},YSe=de("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>T({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),KSe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiList"}),{children:o,className:a,component:i="ul",dense:s=!1,disablePadding:l=!1,subheader:c}=r,u=Oe(r,GSe),f=S.useMemo(()=>({dense:s}),[s]),p=T({},r,{component:i,dense:s,disablePadding:l}),m=qSe(p);return O.jsx(qi.Provider,{value:f,children:O.jsxs(YSe,T({as:i,className:Ie(m.root,a),ref:n,ownerState:p},u,{children:[c,o]}))})}),lE=KSe;function JSe(e){return et("MuiListItem",e)}const ZSe=Qe("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),eu=ZSe,XSe=Qe("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),QSe=XSe;function e_e(e){return et("MuiListItemSecondaryAction",e)}Qe("MuiListItemSecondaryAction",["root","disableGutters"]);const t_e=["className"],n_e=e=>{const{disableGutters:t,classes:n}=e;return Xe({root:["root",t&&"disableGutters"]},e_e,n)},r_e=de("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>T({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),q5=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,a=Oe(r,t_e),i=S.useContext(qi),s=T({},r,{disableGutters:i.disableGutters}),l=n_e(s);return O.jsx(r_e,T({className:Ie(l.root,o),ownerState:s,ref:n},a))});q5.muiName="ListItemSecondaryAction";const Y5=q5,o_e=["className"],a_e=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],i_e=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},s_e=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:a,disableGutters:i,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=e;return Xe({root:["root",o&&"dense",!i&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},JSe,r)},l_e=de("div",{name:"MuiListItem",slot:"Root",overridesResolver:i_e})(({theme:e,ownerState:t})=>T({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&T({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${QSe.root}`]:{paddingRight:48}},{[`&.${eu.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${eu.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${eu.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${eu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${eu.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),c_e=de("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),u_e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:a=!1,button:i=!1,children:s,className:l,component:c,components:u={},componentsProps:f={},ContainerComponent:p="li",ContainerProps:{className:m}={},dense:b=!1,disabled:v=!1,disableGutters:w=!1,disablePadding:g=!1,divider:y=!1,focusVisibleClassName:x,secondaryAction:C,selected:_=!1,slotProps:$={},slots:P={}}=r,k=Oe(r.ContainerProps,o_e),I=Oe(r,a_e),D=S.useContext(qi),F=S.useMemo(()=>({dense:b||D.dense||!1,alignItems:o,disableGutters:w}),[o,D.dense,b,w]),U=S.useRef(null);Kn(()=>{a&&U.current&&U.current.focus()},[a]);const G=S.Children.toArray(s),z=G.length&&_u(G[G.length-1],["ListItemSecondaryAction"]),B=T({},r,{alignItems:o,autoFocus:a,button:i,dense:F.dense,disabled:v,disableGutters:w,disablePadding:g,divider:y,hasSecondaryAction:z,selected:_}),Y=s_e(B),Q=sn(U,n),H=P.root||u.Root||l_e,J=$.root||f.root||{},X=T({className:Ie(Y.root,J.className,l),disabled:v},I);let L=c||"li";return i&&(X.component=c||"div",X.focusVisibleClassName=Ie(eu.focusVisible,x),L=xa),z?(L=!X.component&&!c?"div":L,p==="li"&&(L==="li"?L="div":X.component==="li"&&(X.component="div")),O.jsx(qi.Provider,{value:F,children:O.jsxs(c_e,T({as:p,className:Ie(Y.container,m),ref:Q,ownerState:B},k,{children:[O.jsx(H,T({},J,!vi(H)&&{as:L,ownerState:T({},B,J.ownerState)},X,{children:G})),G.pop()]}))})):O.jsx(qi.Provider,{value:F,children:O.jsxs(H,T({},J,{as:L,ref:Q},!vi(H)&&{ownerState:T({},B,J.ownerState)},X,{children:[G,C&&O.jsx(Y5,{children:C})]}))})}),K5=u_e;function d_e(e){return et("MuiListItemAvatar",e)}Qe("MuiListItemAvatar",["root","alignItemsFlexStart"]);const f_e=["className"],p_e=e=>{const{alignItems:t,classes:n}=e;return Xe({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},d_e,n)},h_e=de("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>T({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),m_e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemAvatar"}),{className:o}=r,a=Oe(r,f_e),i=S.useContext(qi),s=T({},r,{alignItems:i.alignItems}),l=p_e(s);return O.jsx(h_e,T({className:Ie(l.root,o),ownerState:s,ref:n},a))}),v_e=m_e,g_e=Qe("MuiListItemIcon",["root","alignItemsFlexStart"]),bD=g_e;function y_e(e){return et("MuiListItemText",e)}const b_e=Qe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Dg=b_e,x_e=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],w_e=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:a}=e;return Xe({root:["root",n&&"inset",a&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},y_e,t)},C_e=de("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Dg.primary}`]:t.primary},{[`& .${Dg.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>T({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),$_e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemText"}),{children:o,className:a,disableTypography:i=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:f}=r,p=Oe(r,x_e),{dense:m}=S.useContext(qi);let b=l??o,v=u;const w=T({},r,{disableTypography:i,inset:s,primary:!!b,secondary:!!v,dense:m}),g=w_e(w);return b!=null&&b.type!==gn&&!i&&(b=O.jsx(gn,T({variant:m?"body2":"body1",className:g.primary,component:c!=null&&c.variant?void 0:"span",display:"block"},c,{children:b}))),v!=null&&v.type!==gn&&!i&&(v=O.jsx(gn,T({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},f,{children:v}))),O.jsxs(C_e,T({className:Ie(g.root,a),ownerState:w,ref:n},p,{children:[b,v]}))}),S_e=$_e,__e=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function ux(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function xD(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function J5(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function sf(e,t,n,r,o,a){let i=!1,s=o(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!J5(s,a)||l)s=o(e,s,n);else return s.focus(),!0}return!1}const E_e=S.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:a=!1,children:i,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:f="selectedMenu"}=t,p=Oe(t,__e),m=S.useRef(null),b=S.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Kn(()=>{o&&m.current.focus()},[o]),S.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,C)=>{const _=!m.current.style.width;if(x.clientHeight{const C=m.current,_=x.key,$=zn(C).activeElement;if(_==="ArrowDown")x.preventDefault(),sf(C,$,c,l,ux);else if(_==="ArrowUp")x.preventDefault(),sf(C,$,c,l,xD);else if(_==="Home")x.preventDefault(),sf(C,null,c,l,ux);else if(_==="End")x.preventDefault(),sf(C,null,c,l,xD);else if(_.length===1){const P=b.current,k=_.toLowerCase(),I=performance.now();P.keys.length>0&&(I-P.lastTime>500?(P.keys=[],P.repeating=!0,P.previousKeyMatched=!0):P.repeating&&k!==P.keys[0]&&(P.repeating=!1)),P.lastTime=I,P.keys.push(k);const D=$&&!P.repeating&&J5($,P);P.previousKeyMatched&&(D||sf(C,$,!1,l,ux,P))?x.preventDefault():P.previousKeyMatched=!1}u&&u(x)},w=sn(m,n);let g=-1;S.Children.forEach(i,(x,C)=>{if(!S.isValidElement(x)){g===C&&(g+=1,g>=i.length&&(g=-1));return}x.props.disabled||(f==="selectedMenu"&&x.props.selected||g===-1)&&(g=C),g===C&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(g+=1,g>=i.length&&(g=-1))});const y=S.Children.map(i,(x,C)=>{if(C===g){const _={};return a&&(_.autoFocus=!0),x.props.tabIndex===void 0&&f==="selectedMenu"&&(_.tabIndex=0),S.cloneElement(x,_)}return x});return O.jsx(lE,T({role:"menu",ref:w,className:s,onKeyDown:v,tabIndex:o?0:-1},p,{children:y}))}),cE=E_e;function P_e(e){return et("MuiPopover",e)}Qe("MuiPopover",["root","paper"]);const T_e=["onEntering"],k_e=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],O_e=["slotProps"];function wD(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function CD(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function $D(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function dx(e){return typeof e=="function"?e():e}const R_e=e=>{const{classes:t}=e;return Xe({root:["root"],paper:["paper"]},P_e,t)},D_e=de(N5,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Z5=de(as,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),M_e=S.forwardRef(function(t,n){var r,o,a;const i=Ke({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:f="anchorEl",children:p,className:m,container:b,elevation:v=8,marginThreshold:w=16,open:g,PaperProps:y={},slots:x,slotProps:C,transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:$=Rg,transitionDuration:P="auto",TransitionProps:{onEntering:k}={},disableScrollLock:I=!1}=i,D=Oe(i.TransitionProps,T_e),F=Oe(i,k_e),U=(r=C==null?void 0:C.paper)!=null?r:y,G=S.useRef(),z=sn(G,U.ref),B=T({},i,{anchorOrigin:c,anchorReference:f,elevation:v,marginThreshold:w,externalPaperSlotProps:U,transformOrigin:_,TransitionComponent:$,transitionDuration:P,TransitionProps:D}),Y=R_e(B),Q=S.useCallback(()=>{if(f==="anchorPosition")return u;const he=dx(l),ve=(he&&he.nodeType===1?he:zn(G.current).body).getBoundingClientRect();return{top:ve.top+wD(ve,c.vertical),left:ve.left+CD(ve,c.horizontal)}},[l,c.horizontal,c.vertical,u,f]),H=S.useCallback(he=>({vertical:wD(he,_.vertical),horizontal:CD(he,_.horizontal)}),[_.horizontal,_.vertical]),J=S.useCallback(he=>{const _e={width:he.offsetWidth,height:he.offsetHeight},ve=H(_e);if(f==="none")return{top:null,left:null,transformOrigin:$D(ve)};const Be=Q();let Ue=Be.top-ve.vertical,ze=Be.left-ve.horizontal;const He=Ue+_e.height,be=ze+_e.width,we=wi(dx(l)),Ce=we.innerHeight-w,qe=we.innerWidth-w;if(w!==null&&UeCe){const rt=He-Ce;Ue-=rt,ve.vertical+=rt}if(w!==null&&zeqe){const rt=be-qe;ze-=rt,ve.horizontal+=rt}return{top:`${Math.round(Ue)}px`,left:`${Math.round(ze)}px`,transformOrigin:$D(ve)}},[l,f,Q,H,w]),[X,L]=S.useState(g),K=S.useCallback(()=>{const he=G.current;if(!he)return;const _e=J(he);_e.top!==null&&(he.style.top=_e.top),_e.left!==null&&(he.style.left=_e.left),he.style.transformOrigin=_e.transformOrigin,L(!0)},[J]);S.useEffect(()=>(I&&window.addEventListener("scroll",K),()=>window.removeEventListener("scroll",K)),[l,I,K]);const q=(he,_e)=>{k&&k(he,_e),K()},R=()=>{L(!1)};S.useEffect(()=>{g&&K()}),S.useImperativeHandle(s,()=>g?{updatePosition:()=>{K()}}:null,[g,K]),S.useEffect(()=>{if(!g)return;const he=rh(()=>{K()}),_e=wi(l);return _e.addEventListener("resize",he),()=>{he.clear(),_e.removeEventListener("resize",he)}},[l,g,K]);let N=P;P==="auto"&&!$.muiSupportAuto&&(N=void 0);const V=b||(l?zn(dx(l)).body:void 0),Z=(o=x==null?void 0:x.root)!=null?o:D_e,re=(a=x==null?void 0:x.paper)!=null?a:Z5,le=zt({elementType:re,externalSlotProps:T({},U,{style:X?U.style:T({},U.style,{opacity:0})}),additionalProps:{elevation:v,ref:z},ownerState:B,className:Ie(Y.paper,U==null?void 0:U.className)}),xe=zt({elementType:Z,externalSlotProps:(C==null?void 0:C.root)||{},externalForwardedProps:F,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:V,open:g},ownerState:B,className:Ie(Y.root,m)}),{slotProps:fe}=xe,ge=Oe(xe,O_e);return O.jsx(Z,T({},ge,!vi(Z)&&{slotProps:fe,disableScrollLock:I},{children:O.jsx($,T({appear:!0,in:g,onEntering:q,onExited:R,timeout:N},D,{children:O.jsx(re,T({},le,{children:p}))}))}))}),I_e=M_e;function A_e(e){return et("MuiMenu",e)}Qe("MuiMenu",["root","paper","list"]);const N_e=["onEntering"],j_e=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],L_e={vertical:"top",horizontal:"right"},F_e={vertical:"top",horizontal:"left"},z_e=e=>{const{classes:t}=e;return Xe({root:["root"],paper:["paper"],list:["list"]},A_e,t)},B_e=de(I_e,{shouldForwardProp:e=>Qo(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),V_e=de(Z5,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),U_e=de(cE,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),W_e=S.forwardRef(function(t,n){var r,o;const a=Ke({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:f,open:p,PaperProps:m={},PopoverClasses:b,transitionDuration:v="auto",TransitionProps:{onEntering:w}={},variant:g="selectedMenu",slots:y={},slotProps:x={}}=a,C=Oe(a.TransitionProps,N_e),_=Oe(a,j_e),$=nr(),P=$.direction==="rtl",k=T({},a,{autoFocus:i,disableAutoFocusItem:c,MenuListProps:u,onEntering:w,PaperProps:m,transitionDuration:v,TransitionProps:C,variant:g}),I=z_e(k),D=i&&!c&&p,F=S.useRef(null),U=(J,X)=>{F.current&&F.current.adjustStyleForScrollbar(J,$),w&&w(J,X)},G=J=>{J.key==="Tab"&&(J.preventDefault(),f&&f(J,"tabKeyDown"))};let z=-1;S.Children.map(s,(J,X)=>{S.isValidElement(J)&&(J.props.disabled||(g==="selectedMenu"&&J.props.selected||z===-1)&&(z=X))});const B=(r=y.paper)!=null?r:V_e,Y=(o=x.paper)!=null?o:m,Q=zt({elementType:y.root,externalSlotProps:x.root,ownerState:k,className:[I.root,l]}),H=zt({elementType:B,externalSlotProps:Y,ownerState:k,className:I.paper});return O.jsx(B_e,T({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:P?"right":"left"},transformOrigin:P?L_e:F_e,slots:{paper:B,root:y.root},slotProps:{root:Q,paper:H},open:p,ref:n,transitionDuration:v,TransitionProps:T({onEntering:U},C),ownerState:k},_,{classes:b,children:O.jsx(U_e,T({onKeyDown:G,actions:F,autoFocus:i&&(z===-1||c),autoFocusItem:D,variant:g},u,{className:Ie(I.list,u.className),children:s}))}))}),H_e=W_e;function G_e(e){return et("MuiMenuItem",e)}const q_e=Qe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),lf=q_e,Y_e=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],K_e=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},J_e=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:i}=e,l=Xe({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},G_e,i);return T({},i,l)},Z_e=de(xa,{shouldForwardProp:e=>Qo(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:K_e})(({theme:e,ownerState:t})=>T({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${lf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${lf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${lf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${lf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${lf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${fD.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${fD.inset}`]:{marginLeft:52},[`& .${Dg.root}`]:{marginTop:0,marginBottom:0},[`& .${Dg.inset}`]:{paddingLeft:36},[`& .${bD.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&T({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${bD.root} svg`]:{fontSize:"1.25rem"}}))),X_e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:f,className:p}=r,m=Oe(r,Y_e),b=S.useContext(qi),v=S.useMemo(()=>({dense:i||b.dense||!1,disableGutters:l}),[b.dense,i,l]),w=S.useRef(null);Kn(()=>{o&&w.current&&w.current.focus()},[o]);const g=T({},r,{dense:v.dense,divider:s,disableGutters:l}),y=J_e(r),x=sn(w,n);let C;return r.disabled||(C=f!==void 0?f:-1),O.jsx(qi.Provider,{value:v,children:O.jsx(Z_e,T({ref:x,role:u,tabIndex:C,component:a,focusVisibleClassName:Ie(y.focusVisible,c),className:Ie(y.root,p)},m,{ownerState:g,classes:y}))})}),Mg=X_e;function Q_e(e){return et("MuiNativeSelect",e)}const eEe=Qe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),uE=eEe,tEe=["className","disabled","error","IconComponent","inputRef","variant"],nEe=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e,s={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${je(n)}`,a&&"iconOpen",r&&"disabled"]};return Xe(s,Q_e,t)},X5=({ownerState:e,theme:t})=>T({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":T({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${uE.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),rEe=de("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Qo,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${uE.multiple}`]:t.multiple}]}})(X5),Q5=({ownerState:e,theme:t})=>T({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${uE.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),oEe=de("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${je(n.variant)}`],n.open&&t.iconOpen]}})(Q5),aEe=S.forwardRef(function(t,n){const{className:r,disabled:o,error:a,IconComponent:i,inputRef:s,variant:l="standard"}=t,c=Oe(t,tEe),u=T({},t,{disabled:o,variant:l,error:a}),f=nEe(u);return O.jsxs(S.Fragment,{children:[O.jsx(rEe,T({ownerState:u,className:Ie(f.select,r),disabled:o,ref:s||n},c)),t.multiple?null:O.jsx(oEe,{as:i,ownerState:u,className:f.icon})]})}),iEe=aEe;var SD;const sEe=["children","classes","className","label","notched"],lEe=de("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),cEe=de("legend")(({ownerState:e,theme:t})=>T({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&T({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function uEe(e){const{className:t,label:n,notched:r}=e,o=Oe(e,sEe),a=n!=null&&n!=="",i=T({},e,{notched:r,withLabel:a});return O.jsx(lEe,T({"aria-hidden":!0,className:t,ownerState:i},o,{children:O.jsx(cEe,{ownerState:i,children:a?O.jsx("span",{children:n}):SD||(SD=O.jsx("span",{className:"notranslate",children:"​"}))})}))}const dEe=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],fEe=e=>{const{classes:t}=e,r=Xe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Mxe,t);return T({},t,r)},pEe=de(b0,{shouldForwardProp:e=>Qo(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:g0})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return T({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${oi.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${oi.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${oi.focused} .${oi.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${oi.error} .${oi.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${oi.disabled} .${oi.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&T({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),hEe=de(uEe,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),mEe=de(x0,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:y0})(({theme:e,ownerState:t})=>T({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),eL=S.forwardRef(function(t,n){var r,o,a,i,s;const l=Ke({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:f="input",label:p,multiline:m=!1,notched:b,slots:v={},type:w="text"}=l,g=Oe(l,dEe),y=fEe(l),x=_i(),C=ol({props:l,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=T({},l,{color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:x,fullWidth:u,hiddenLabel:C.hiddenLabel,multiline:m,size:C.size,type:w}),$=(r=(o=v.root)!=null?o:c.Root)!=null?r:pEe,P=(a=(i=v.input)!=null?i:c.Input)!=null?a:mEe;return O.jsx(nE,T({slots:{root:$,input:P},renderSuffix:k=>O.jsx(hEe,{ownerState:_,className:y.notchedOutline,label:p!=null&&p!==""&&C.required?s||(s=O.jsxs(S.Fragment,{children:[p," ","*"]})):p,notched:typeof b<"u"?b:!!(k.startAdornment||k.filled||k.focused)}),fullWidth:u,inputComponent:f,multiline:m,ref:n,type:w},g,{classes:T({},y,{notchedOutline:null})}))});eL.muiName="Input";const tL=eL,vEe=rr(O.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),gEe=rr(O.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),yEe=de("span")({position:"relative",display:"flex"}),bEe=de(vEe)({transform:"scale(1)"}),xEe=de(gEe)(({theme:e,ownerState:t})=>T({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));function nL(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=T({},e,{checked:t});return O.jsxs(yEe,{className:n.root,ownerState:o,children:[O.jsx(bEe,{fontSize:r,className:n.background,ownerState:o}),O.jsx(xEe,{fontSize:r,className:n.dot,ownerState:o})]})}const wEe=S.createContext(void 0),rL=wEe;function CEe(){return S.useContext(rL)}function $Ee(e){return et("MuiRadio",e)}const SEe=Qe("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),_D=SEe,_Ee=["checked","checkedIcon","color","icon","name","onChange","size","className"],EEe=e=>{const{classes:t,color:n,size:r}=e,o={root:["root",`color${je(n)}`,r!=="medium"&&`size${je(r)}`]};return T({},t,Xe(o,$Ee,t))},PEe=de(rE,{shouldForwardProp:e=>Qo(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${je(n.color)}`]]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${_D.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${_D.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function TEe(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const ED=O.jsx(nL,{checked:!0}),PD=O.jsx(nL,{}),kEe=S.forwardRef(function(t,n){var r,o;const a=Ke({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:s=ED,color:l="primary",icon:c=PD,name:u,onChange:f,size:p="medium",className:m}=a,b=Oe(a,_Ee),v=T({},a,{color:l,size:p}),w=EEe(v),g=CEe();let y=i;const x=Cg(f,g&&g.onChange);let C=u;return g&&(typeof y>"u"&&(y=TEe(g.value,a.value)),typeof C>"u"&&(C=g.name)),O.jsx(PEe,T({type:"radio",icon:S.cloneElement(c,{fontSize:(r=PD.props.fontSize)!=null?r:p}),checkedIcon:S.cloneElement(s,{fontSize:(o=ED.props.fontSize)!=null?o:p}),ownerState:v,classes:w,name:C,checked:y,onChange:x,ref:n,className:Ie(w.root,m)},b))}),OEe=kEe,REe=["actions","children","defaultValue","name","onChange","value"],DEe=S.forwardRef(function(t,n){const{actions:r,children:o,defaultValue:a,name:i,onChange:s,value:l}=t,c=Oe(t,REe),u=S.useRef(null),[f,p]=wr({controlled:l,default:a,name:"RadioGroup"});S.useImperativeHandle(r,()=>({focus:()=>{let w=u.current.querySelector("input:not(:disabled):checked");w||(w=u.current.querySelector("input:not(:disabled)")),w&&w.focus()}}),[]);const m=sn(n,u),b=Ga(i),v=S.useMemo(()=>({name:b,onChange(w){p(w.target.value),s&&s(w,w.target.value)},value:f}),[b,s,p,f]);return O.jsx(rL.Provider,{value:v,children:O.jsx(B5,T({role:"radiogroup",ref:m},c,{children:o}))})}),MEe=DEe;function IEe(e){return et("MuiSelect",e)}const AEe=Qe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),cf=AEe;var TD;const NEe=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],jEe=de("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${cf.select}`]:t.select},{[`&.${cf.select}`]:t[n.variant]},{[`&.${cf.error}`]:t.error},{[`&.${cf.multiple}`]:t.multiple}]}})(X5,{[`&.${cf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),LEe=de("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${je(n.variant)}`],n.open&&t.iconOpen]}})(Q5),FEe=de("input",{shouldForwardProp:e=>B_(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function kD(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function zEe(e){return e==null||typeof e=="string"&&!e.trim()}const BEe=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e,s={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${je(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Xe(s,IEe,t)},VEe=S.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":a,autoFocus:i,autoWidth:s,children:l,className:c,defaultOpen:u,defaultValue:f,disabled:p,displayEmpty:m,error:b=!1,IconComponent:v,inputRef:w,labelId:g,MenuProps:y={},multiple:x,name:C,onBlur:_,onChange:$,onClose:P,onFocus:k,onOpen:I,open:D,readOnly:F,renderValue:U,SelectDisplayProps:G={},tabIndex:z,value:B,variant:Y="standard"}=t,Q=Oe(t,NEe),[H,J]=wr({controlled:B,default:f,name:"Select"}),[X,L]=wr({controlled:D,default:u,name:"Select"}),K=S.useRef(null),q=S.useRef(null),[R,N]=S.useState(null),{current:V}=S.useRef(D!=null),[Z,re]=S.useState(),le=sn(n,w),xe=S.useCallback(Ne=>{q.current=Ne,Ne&&N(Ne)},[]),fe=R==null?void 0:R.parentNode;S.useImperativeHandle(le,()=>({focus:()=>{q.current.focus()},node:K.current,value:H}),[H]),S.useEffect(()=>{u&&X&&R&&!V&&(re(s?null:fe.clientWidth),q.current.focus())},[R,s]),S.useEffect(()=>{i&&q.current.focus()},[i]),S.useEffect(()=>{if(!g)return;const Ne=zn(q.current).getElementById(g);if(Ne){const ne=()=>{getSelection().isCollapsed&&q.current.focus()};return Ne.addEventListener("click",ne),()=>{Ne.removeEventListener("click",ne)}}},[g]);const ge=(Ne,ne)=>{Ne?I&&I(ne):P&&P(ne),V||(re(s?null:fe.clientWidth),L(Ne))},he=Ne=>{Ne.button===0&&(Ne.preventDefault(),q.current.focus(),ge(!0,Ne))},_e=Ne=>{ge(!1,Ne)},ve=S.Children.toArray(l),Be=Ne=>{const ne=ve.find(te=>te.props.value===Ne.target.value);ne!==void 0&&(J(ne.props.value),$&&$(Ne,ne))},Ue=Ne=>ne=>{let te;if(ne.currentTarget.hasAttribute("tabindex")){if(x){te=Array.isArray(H)?H.slice():[];const ie=H.indexOf(Ne.props.value);ie===-1?te.push(Ne.props.value):te.splice(ie,1)}else te=Ne.props.value;if(Ne.props.onClick&&Ne.props.onClick(ne),H!==te&&(J(te),$)){const ie=ne.nativeEvent||ne,$e=new ie.constructor(ie.type,ie);Object.defineProperty($e,"target",{writable:!0,value:{value:te,name:C}}),$($e,Ne)}x||ge(!1,ne)}},ze=Ne=>{F||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Ne.key)!==-1&&(Ne.preventDefault(),ge(!0,Ne))},He=R!==null&&X,be=Ne=>{!He&&_&&(Object.defineProperty(Ne,"target",{writable:!0,value:{value:H,name:C}}),_(Ne))};delete Q["aria-invalid"];let we,Ce;const qe=[];let rt=!1;(Og({value:H})||m)&&(U?we=U(H):rt=!0);const Ae=ve.map(Ne=>{if(!S.isValidElement(Ne))return null;let ne;if(x){if(!Array.isArray(H))throw new Error(Js(2));ne=H.some(te=>kD(te,Ne.props.value)),ne&&rt&&qe.push(Ne.props.children)}else ne=kD(H,Ne.props.value),ne&&rt&&(Ce=Ne.props.children);return S.cloneElement(Ne,{"aria-selected":ne?"true":"false",onClick:Ue(Ne),onKeyUp:te=>{te.key===" "&&te.preventDefault(),Ne.props.onKeyUp&&Ne.props.onKeyUp(te)},role:"option",selected:ne,value:void 0,"data-value":Ne.props.value})});rt&&(x?qe.length===0?we=null:we=qe.reduce((Ne,ne,te)=>(Ne.push(ne),te{const{classes:t}=e;return t},dE={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Qo(e)&&e!=="variant",slot:"Root"},qEe=de(is,dE)(""),YEe=de(tL,dE)(""),KEe=de(z5,dE)(""),oL=S.forwardRef(function(t,n){const r=Ke({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:i={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=R5,id:f,input:p,inputProps:m,label:b,labelId:v,MenuProps:w,multiple:g=!1,native:y=!1,onClose:x,onOpen:C,open:_,renderValue:$,SelectDisplayProps:P,variant:k="outlined"}=r,I=Oe(r,WEe),D=y?iEe:UEe,F=_i(),U=ol({props:r,muiFormControl:F,states:["variant","error"]}),G=U.variant||k,z=T({},r,{variant:G,classes:i}),B=GEe(z),Y=Oe(B,HEe),Q=p||{standard:O.jsx(qEe,{ownerState:z}),outlined:O.jsx(YEe,{label:b,ownerState:z}),filled:O.jsx(KEe,{ownerState:z})}[G],H=sn(n,Q.ref);return O.jsx(S.Fragment,{children:S.cloneElement(Q,T({inputComponent:D,inputProps:T({children:a,error:U.error,IconComponent:u,variant:G,type:void 0,multiple:g},y?{id:f}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:v,MenuProps:w,onClose:x,onOpen:C,open:_,renderValue:$,SelectDisplayProps:T({id:f},P)},m,{classes:m?Hr(Y,m.classes):Y},p?p.props.inputProps:{})},g&&y&&G==="outlined"?{notched:!0}:{},{ref:H,className:Ie(Q.props.className,s,B.root)},!p&&{variant:G},I))})});oL.muiName="Select";const aL=oL,JEe=e=>!e||!vi(e),ZEe=JEe;function XEe(e){return et("MuiSlider",e)}const QEe=Qe("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"]),La=QEe,ePe=e=>{const{open:t}=e;return{offset:Ie(t&&La.valueLabelOpen),circle:La.valueLabelCircle,label:La.valueLabelLabel}};function tPe(e){const{children:t,className:n,value:r}=e,o=ePe(e);return t?S.cloneElement(t,{className:Ie(t.props.className)},O.jsxs(S.Fragment,{children:[t.props.children,O.jsx("span",{className:Ie(o.offset,n),"aria-hidden":!0,children:O.jsx("span",{className:o.circle,children:O.jsx("span",{className:o.label,children:r})})})]})):null}const nPe=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function OD(e){return e}const rPe=de("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${je(n.color)}`],n.size!=="medium"&&t[`size${je(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>T({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&T({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&T({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${La.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${La.dragging}`]:{[`& .${La.thumb}, & .${La.track}`]:{transition:"none"}}})),oPe=de("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>T({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),aPe=de("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?t0(e.palette[t.color].main,.62):e0(e.palette[t.color].main,.5);return T({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})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),iPe=de("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${je(n.color)}`],n.size!=="medium"&&t[`thumbSize${je(n.size)}`]]}})(({theme:e,ownerState:t})=>T({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})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":T({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${La.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Tt(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${La.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Tt(e.palette[t.color].main,.16)}`},[`&.${La.disabled}`]:{"&:hover":{boxShadow:"none"}}})),sPe=de(tPe,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>T({[`&.${La.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,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"},t.orientation==="horizontal"&&{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%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"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%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),lPe=de("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>B_(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>T({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),cPe=de("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>B_(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>T({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),uPe=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:a,classes:i,color:s,size:l}=e,c={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",s&&`color${je(s)}`,l&&`size${je(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${je(l)}`,s&&`thumbColor${je(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Xe(c,XEe,i)},dPe=({children:e})=>e,fPe=S.forwardRef(function(t,n){var r,o,a,i,s,l,c,u,f,p,m,b,v,w,g,y,x,C,_,$,P,k,I,D;const F=Ke({props:t,name:"MuiSlider"}),G=nr().direction==="rtl",{"aria-label":z,"aria-valuetext":B,"aria-labelledby":Y,component:Q="span",components:H={},componentsProps:J={},color:X="primary",classes:L,className:K,disableSwap:q=!1,disabled:R=!1,getAriaLabel:N,getAriaValueText:V,marks:Z=!1,max:re=100,min:le=0,orientation:xe="horizontal",size:fe="medium",step:ge=1,scale:he=OD,slotProps:_e,slots:ve,track:Be="normal",valueLabelDisplay:Ue="off",valueLabelFormat:ze=OD}=F,He=Oe(F,nPe),be=T({},F,{isRtl:G,max:re,min:le,classes:L,disabled:R,disableSwap:q,orientation:xe,marks:Z,color:X,size:fe,step:ge,scale:he,track:Be,valueLabelDisplay:Ue,valueLabelFormat:ze}),{axisProps:we,getRootProps:Ce,getHiddenInputProps:qe,getThumbProps:rt,open:Ae,active:Le,axis:Fe,focusedThumbIndex:Pe,range:Te,dragging:it,marks:ct,values:gt,trackOffset:Ne,trackLeap:ne,getThumbStyle:te}=Xbe(T({},be,{rootRef:n}));be.marked=ct.length>0&&ct.some(pe=>pe.label),be.dragging=it,be.focusedThumbIndex=Pe;const ie=uPe(be),$e=(r=(o=ve==null?void 0:ve.root)!=null?o:H.Root)!=null?r:rPe,Se=(a=(i=ve==null?void 0:ve.rail)!=null?i:H.Rail)!=null?a:oPe,Ze=(s=(l=ve==null?void 0:ve.track)!=null?l:H.Track)!=null?s:aPe,tt=(c=(u=ve==null?void 0:ve.thumb)!=null?u:H.Thumb)!=null?c:iPe,ft=(f=(p=ve==null?void 0:ve.valueLabel)!=null?p:H.ValueLabel)!=null?f:sPe,_t=(m=(b=ve==null?void 0:ve.mark)!=null?b:H.Mark)!=null?m:lPe,vt=(v=(w=ve==null?void 0:ve.markLabel)!=null?w:H.MarkLabel)!=null?v:cPe,dt=(g=(y=ve==null?void 0:ve.input)!=null?y:H.Input)!=null?g:"input",Et=(x=_e==null?void 0:_e.root)!=null?x:J.root,Yt=(C=_e==null?void 0:_e.rail)!=null?C:J.rail,kt=(_=_e==null?void 0:_e.track)!=null?_:J.track,ln=($=_e==null?void 0:_e.thumb)!=null?$:J.thumb,Vt=(P=_e==null?void 0:_e.valueLabel)!=null?P:J.valueLabel,Ut=(k=_e==null?void 0:_e.mark)!=null?k:J.mark,Kt=(I=_e==null?void 0:_e.markLabel)!=null?I:J.markLabel,bn=(D=_e==null?void 0:_e.input)!=null?D:J.input,Bn=zt({elementType:$e,getSlotProps:Ce,externalSlotProps:Et,externalForwardedProps:He,additionalProps:T({},ZEe($e)&&{as:Q}),ownerState:T({},be,Et==null?void 0:Et.ownerState),className:[ie.root,K]}),se=zt({elementType:Se,externalSlotProps:Yt,ownerState:be,className:ie.rail}),oe=zt({elementType:Ze,externalSlotProps:kt,additionalProps:{style:T({},we[Fe].offset(Ne),we[Fe].leap(ne))},ownerState:T({},be,kt==null?void 0:kt.ownerState),className:ie.track}),ue=zt({elementType:tt,getSlotProps:rt,externalSlotProps:ln,ownerState:T({},be,ln==null?void 0:ln.ownerState),className:ie.thumb}),ke=zt({elementType:ft,externalSlotProps:Vt,ownerState:T({},be,Vt==null?void 0:Vt.ownerState),className:ie.valueLabel}),Ee=zt({elementType:_t,externalSlotProps:Ut,ownerState:be,className:ie.mark}),pt=zt({elementType:vt,externalSlotProps:Kt,ownerState:be,className:ie.markLabel}),me=zt({elementType:dt,getSlotProps:qe,externalSlotProps:bn,ownerState:be});return O.jsxs($e,T({},Bn,{children:[O.jsx(Se,T({},se)),O.jsx(Ze,T({},oe)),ct.filter(pe=>pe.value>=le&&pe.value<=re).map((pe,De)=>{const nt=kg(pe.value,le,re),lt=we[Fe].offset(nt);let xt;return Be===!1?xt=gt.indexOf(pe.value)!==-1:xt=Be==="normal"&&(Te?pe.value>=gt[0]&&pe.value<=gt[gt.length-1]:pe.value<=gt[0])||Be==="inverted"&&(Te?pe.value<=gt[0]||pe.value>=gt[gt.length-1]:pe.value>=gt[0]),O.jsxs(S.Fragment,{children:[O.jsx(_t,T({"data-index":De},Ee,!vi(_t)&&{markActive:xt},{style:T({},lt,Ee.style),className:Ie(Ee.className,xt&&ie.markActive)})),pe.label!=null?O.jsx(vt,T({"aria-hidden":!0,"data-index":De},pt,!vi(vt)&&{markLabelActive:xt},{style:T({},lt,pt.style),className:Ie(ie.markLabel,pt.className,xt&&ie.markLabelActive),children:pe.label})):null]},De)}),gt.map((pe,De)=>{const nt=kg(pe,le,re),lt=we[Fe].offset(nt),xt=Ue==="off"?dPe:ft;return O.jsx(xt,T({},!vi(xt)&&{valueLabelFormat:ze,valueLabelDisplay:Ue,value:typeof ze=="function"?ze(he(pe),De):ze,index:De,open:Ae===De||Le===De||Ue==="on",disabled:R},ke,{children:O.jsx(tt,T({"data-index":De},ue,{className:Ie(ie.thumb,ue.className,Le===De&&ie.active,Pe===De&&ie.focusVisible),style:T({},lt,te(De),ue.style),children:O.jsx(dt,T({"data-index":De,"aria-label":N?N(De):z,"aria-valuenow":he(pe),"aria-labelledby":Y,"aria-valuetext":V?V(he(pe),De):B,value:gt[De]},me))}))}),De)})]}))}),pPe=fPe;function hPe(e){return et("MuiTooltip",e)}const mPe=Qe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Is=mPe,vPe=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function gPe(e){return Math.round(e*1e5)/1e5}const yPe=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e,i={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${je(a.split("-")[0])}`],arrow:["arrow"]};return Xe(i,hPe,t)},bPe=de(ch,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>T({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Is.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Is.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Is.arrow}`]:T({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Is.arrow}`]:T({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),xPe=de("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${je(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>T({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Tt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${gPe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Is.popper}[data-popper-placement*="left"] &`]:T({transformOrigin:"right center"},t.isRtl?T({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):T({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Is.popper}[data-popper-placement*="right"] &`]:T({transformOrigin:"left center"},t.isRtl?T({marginRight:"14px"},t.touch&&{marginRight:"24px"}):T({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Is.popper}[data-popper-placement*="top"] &`]:T({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Is.popper}[data-popper-placement*="bottom"] &`]:T({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),wPe=de("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Tt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Gm=!1,fx=null,uf={x:0,y:0};function qm(e,t){return n=>{t&&t(n),e(n)}}const CPe=S.forwardRef(function(t,n){var r,o,a,i,s,l,c,u,f,p,m,b,v,w,g,y,x,C,_;const $=Ke({props:t,name:"MuiTooltip"}),{arrow:P=!1,children:k,components:I={},componentsProps:D={},describeChild:F=!1,disableFocusListener:U=!1,disableHoverListener:G=!1,disableInteractive:z=!1,disableTouchListener:B=!1,enterDelay:Y=100,enterNextDelay:Q=0,enterTouchDelay:H=700,followCursor:J=!1,id:X,leaveDelay:L=0,leaveTouchDelay:K=1500,onClose:q,onOpen:R,open:N,placement:V="bottom",PopperComponent:Z,PopperProps:re={},slotProps:le={},slots:xe={},title:fe,TransitionComponent:ge=Rg,TransitionProps:he}=$,_e=Oe($,vPe),ve=S.isValidElement(k)?k:O.jsx("span",{children:k}),Be=nr(),Ue=Be.direction==="rtl",[ze,He]=S.useState(),[be,we]=S.useState(null),Ce=S.useRef(!1),qe=z||J,rt=S.useRef(),Ae=S.useRef(),Le=S.useRef(),Fe=S.useRef(),[Pe,Te]=wr({controlled:N,default:!1,name:"Tooltip",state:"open"});let it=Pe;const ct=Ga(X),gt=S.useRef(),Ne=S.useCallback(()=>{gt.current!==void 0&&(document.body.style.WebkitUserSelect=gt.current,gt.current=void 0),clearTimeout(Fe.current)},[]);S.useEffect(()=>()=>{clearTimeout(rt.current),clearTimeout(Ae.current),clearTimeout(Le.current),Ne()},[Ne]);const ne=yt=>{clearTimeout(fx),Gm=!0,Te(!0),R&&!it&&R(yt)},te=mt(yt=>{clearTimeout(fx),fx=setTimeout(()=>{Gm=!1},800+L),Te(!1),q&&it&&q(yt),clearTimeout(rt.current),rt.current=setTimeout(()=>{Ce.current=!1},Be.transitions.duration.shortest)}),ie=yt=>{Ce.current&&yt.type!=="touchstart"||(ze&&ze.removeAttribute("title"),clearTimeout(Ae.current),clearTimeout(Le.current),Y||Gm&&Q?Ae.current=setTimeout(()=>{ne(yt)},Gm?Q:Y):ne(yt))},$e=yt=>{clearTimeout(Ae.current),clearTimeout(Le.current),Le.current=setTimeout(()=>{te(yt)},L)},{isFocusVisibleRef:Se,onBlur:Ze,onFocus:tt,ref:ft}=Oy(),[,_t]=S.useState(!1),vt=yt=>{Ze(yt),Se.current===!1&&(_t(!1),$e(yt))},dt=yt=>{ze||He(yt.currentTarget),tt(yt),Se.current===!0&&(_t(!0),ie(yt))},Et=yt=>{Ce.current=!0;const Wt=ve.props;Wt.onTouchStart&&Wt.onTouchStart(yt)},Yt=ie,kt=$e,ln=yt=>{Et(yt),clearTimeout(Le.current),clearTimeout(rt.current),Ne(),gt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Fe.current=setTimeout(()=>{document.body.style.WebkitUserSelect=gt.current,ie(yt)},H)},Vt=yt=>{ve.props.onTouchEnd&&ve.props.onTouchEnd(yt),Ne(),clearTimeout(Le.current),Le.current=setTimeout(()=>{te(yt)},K)};S.useEffect(()=>{if(!it)return;function yt(Wt){(Wt.key==="Escape"||Wt.key==="Esc")&&te(Wt)}return document.addEventListener("keydown",yt),()=>{document.removeEventListener("keydown",yt)}},[te,it]);const Ut=sn(ve.ref,ft,He,n);!fe&&fe!==0&&(it=!1);const Kt=S.useRef(),bn=yt=>{const Wt=ve.props;Wt.onMouseMove&&Wt.onMouseMove(yt),uf={x:yt.clientX,y:yt.clientY},Kt.current&&Kt.current.update()},Bn={},se=typeof fe=="string";F?(Bn.title=!it&&se&&!G?fe:null,Bn["aria-describedby"]=it?ct:null):(Bn["aria-label"]=se?fe:null,Bn["aria-labelledby"]=it&&!se?ct:null);const oe=T({},Bn,_e,ve.props,{className:Ie(_e.className,ve.props.className),onTouchStart:Et,ref:Ut},J?{onMouseMove:bn}:{}),ue={};B||(oe.onTouchStart=ln,oe.onTouchEnd=Vt),G||(oe.onMouseOver=qm(Yt,oe.onMouseOver),oe.onMouseLeave=qm(kt,oe.onMouseLeave),qe||(ue.onMouseOver=Yt,ue.onMouseLeave=kt)),U||(oe.onFocus=qm(dt,oe.onFocus),oe.onBlur=qm(vt,oe.onBlur),qe||(ue.onFocus=dt,ue.onBlur=vt));const ke=S.useMemo(()=>{var yt;let Wt=[{name:"arrow",enabled:!!be,options:{element:be,padding:4}}];return(yt=re.popperOptions)!=null&&yt.modifiers&&(Wt=Wt.concat(re.popperOptions.modifiers)),T({},re.popperOptions,{modifiers:Wt})},[be,re]),Ee=T({},$,{isRtl:Ue,arrow:P,disableInteractive:qe,placement:V,PopperComponentProp:Z,touch:Ce.current}),pt=yPe(Ee),me=(r=(o=xe.popper)!=null?o:I.Popper)!=null?r:bPe,pe=(a=(i=(s=xe.transition)!=null?s:I.Transition)!=null?i:ge)!=null?a:Rg,De=(l=(c=xe.tooltip)!=null?c:I.Tooltip)!=null?l:xPe,nt=(u=(f=xe.arrow)!=null?f:I.Arrow)!=null?u:wPe,lt=_f(me,T({},re,(p=le.popper)!=null?p:D.popper,{className:Ie(pt.popper,re==null?void 0:re.className,(m=(b=le.popper)!=null?b:D.popper)==null?void 0:m.className)}),Ee),xt=_f(pe,T({},he,(v=le.transition)!=null?v:D.transition),Ee),Nt=_f(De,T({},(w=le.tooltip)!=null?w:D.tooltip,{className:Ie(pt.tooltip,(g=(y=le.tooltip)!=null?y:D.tooltip)==null?void 0:g.className)}),Ee),ut=_f(nt,T({},(x=le.arrow)!=null?x:D.arrow,{className:Ie(pt.arrow,(C=(_=le.arrow)!=null?_:D.arrow)==null?void 0:C.className)}),Ee);return O.jsxs(S.Fragment,{children:[S.cloneElement(ve,oe),O.jsx(me,T({as:Z??ch,placement:V,anchorEl:J?{getBoundingClientRect:()=>({top:uf.y,left:uf.x,right:uf.x,bottom:uf.y,width:0,height:0})}:ze,popperRef:Kt,open:ze?it:!1,id:ct,transition:!0},ue,lt,{popperOptions:ke,children:({TransitionProps:yt})=>O.jsx(pe,T({timeout:Be.transitions.duration.shorter},yt,xt,{children:O.jsxs(De,T({},Nt,{children:[fe,P?O.jsx(nt,T({},ut,{ref:we})):null]}))}))}))]})}),pc=CPe,$Pe=S.createContext({}),fh=$Pe,SPe=S.createContext({}),_0=SPe;function _Pe(e){return et("MuiStep",e)}Qe("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const EPe=["active","children","className","component","completed","disabled","expanded","index","last"],PPe=e=>{const{classes:t,orientation:n,alternativeLabel:r,completed:o}=e;return Xe({root:["root",n,r&&"alternativeLabel",o&&"completed"]},_Pe,t)},TPe=de("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})(({ownerState:e})=>T({},e.orientation==="horizontal"&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"})),kPe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiStep"}),{active:o,children:a,className:i,component:s="div",completed:l,disabled:c,expanded:u=!1,index:f,last:p}=r,m=Oe(r,EPe),{activeStep:b,connector:v,alternativeLabel:w,orientation:g,nonLinear:y}=S.useContext(fh);let[x=!1,C=!1,_=!1]=[o,l,c];b===f?x=o!==void 0?o:!0:!y&&b>f?C=l!==void 0?l:!0:!y&&b({index:f,last:p,expanded:u,icon:f+1,active:x,completed:C,disabled:_}),[f,p,u,x,C,_]),P=T({},r,{active:x,orientation:g,alternativeLabel:w,completed:C,disabled:_,expanded:u,component:s}),k=PPe(P),I=O.jsxs(TPe,T({as:s,className:Ie(k.root,i),ref:n,ownerState:P},m,{children:[v&&w&&f!==0?v:null,a]}));return O.jsx(_0.Provider,{value:$,children:v&&!w&&f!==0?O.jsxs(S.Fragment,{children:[v,I]}):I})}),OPe=kPe,RPe=rr(O.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),DPe=rr(O.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function MPe(e){return et("MuiStepIcon",e)}const IPe=Qe("MuiStepIcon",["root","active","completed","error","text"]),px=IPe;var RD;const APe=["active","className","completed","error","icon"],NPe=e=>{const{classes:t,active:n,completed:r,error:o}=e;return Xe({root:["root",n&&"active",r&&"completed",o&&"error"],text:["text"]},MPe,t)},hx=de(eC,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${px.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${px.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${px.error}`]:{color:(e.vars||e).palette.error.main}})),jPe=de("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily})),LPe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiStepIcon"}),{active:o=!1,className:a,completed:i=!1,error:s=!1,icon:l}=r,c=Oe(r,APe),u=T({},r,{active:o,completed:i,error:s}),f=NPe(u);if(typeof l=="number"||typeof l=="string"){const p=Ie(a,f.root);return s?O.jsx(hx,T({as:DPe,className:p,ref:n,ownerState:u},c)):i?O.jsx(hx,T({as:RPe,className:p,ref:n,ownerState:u},c)):O.jsxs(hx,T({className:p,ref:n,ownerState:u},c,{children:[RD||(RD=O.jsx("circle",{cx:"12",cy:"12",r:"12"})),O.jsx(jPe,{className:f.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:u,children:l})]}))}return l}),FPe=LPe;function zPe(e){return et("MuiStepLabel",e)}const BPe=Qe("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),As=BPe,VPe=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],UPe=e=>{const{classes:t,orientation:n,active:r,completed:o,error:a,disabled:i,alternativeLabel:s}=e;return Xe({root:["root",n,a&&"error",i&&"disabled",s&&"alternativeLabel"],label:["label",r&&"active",o&&"completed",a&&"error",i&&"disabled",s&&"alternativeLabel"],iconContainer:["iconContainer",r&&"active",o&&"completed",a&&"error",i&&"disabled",s&&"alternativeLabel"],labelContainer:["labelContainer",s&&"alternativeLabel"]},zPe,t)},WPe=de("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation]]}})(({ownerState:e})=>T({display:"flex",alignItems:"center",[`&.${As.alternativeLabel}`]:{flexDirection:"column"},[`&.${As.disabled}`]:{cursor:"default"}},e.orientation==="vertical"&&{textAlign:"left",padding:"8px 0"})),HPe=de("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>T({},e.typography.body2,{display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${As.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${As.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${As.alternativeLabel}`]:{marginTop:16},[`&.${As.error}`]:{color:(e.vars||e).palette.error.main}})),GPe=de("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})(()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${As.alternativeLabel}`]:{paddingRight:0}})),qPe=de("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${As.alternativeLabel}`]:{textAlign:"center"}})),iL=S.forwardRef(function(t,n){var r;const o=Ke({props:t,name:"MuiStepLabel"}),{children:a,className:i,componentsProps:s={},error:l=!1,icon:c,optional:u,slotProps:f={},StepIconComponent:p,StepIconProps:m}=o,b=Oe(o,VPe),{alternativeLabel:v,orientation:w}=S.useContext(fh),{active:g,disabled:y,completed:x,icon:C}=S.useContext(_0),_=c||C;let $=p;_&&!$&&($=FPe);const P=T({},o,{active:g,alternativeLabel:v,completed:x,disabled:y,error:l,orientation:w}),k=UPe(P),I=(r=f.label)!=null?r:s.label;return O.jsxs(WPe,T({className:Ie(k.root,i),ref:n,ownerState:P},b,{children:[_||$?O.jsx(GPe,{className:k.iconContainer,ownerState:P,children:O.jsx($,T({completed:x,active:g,error:l,icon:_},m))}):null,O.jsxs(qPe,{className:k.labelContainer,ownerState:P,children:[a?O.jsx(HPe,T({ownerState:P},I,{className:Ie(k.label,I==null?void 0:I.className),children:a})):null,u]})]}))});iL.muiName="StepLabel";const YPe=iL;function KPe(e){return et("MuiStepButton",e)}const JPe=Qe("MuiStepButton",["root","horizontal","vertical","touchRipple"]),DD=JPe,ZPe=["children","className","icon","optional"],XPe=e=>{const{classes:t,orientation:n}=e;return Xe({root:["root",n],touchRipple:["touchRipple"]},KPe,t)},QPe=de(xa,{name:"MuiStepButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${DD.touchRipple}`]:t.touchRipple},t.root,t[n.orientation]]}})(({ownerState:e})=>T({width:"100%",padding:"24px 16px",margin:"-24px -16px",boxSizing:"content-box"},e.orientation==="vertical"&&{justifyContent:"flex-start",padding:"8px",margin:"-8px"},{[`& .${DD.touchRipple}`]:{color:"rgba(0, 0, 0, 0.3)"}})),e2e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiStepButton"}),{children:o,className:a,icon:i,optional:s}=r,l=Oe(r,ZPe),{disabled:c,active:u}=S.useContext(_0),{orientation:f}=S.useContext(fh),p=T({},r,{orientation:f}),m=XPe(p),b={icon:i,optional:s},v=_u(o,["StepLabel"])?S.cloneElement(o,b):O.jsx(YPe,T({},b,{children:o}));return O.jsx(QPe,T({focusRipple:!0,disabled:c,TouchRippleProps:{className:m.touchRipple},className:Ie(m.root,a),ref:n,ownerState:p,"aria-current":u?"step":void 0},l,{children:v}))}),t2e=e2e;function n2e(e){return et("MuiStepConnector",e)}Qe("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const r2e=["className"],o2e=e=>{const{classes:t,orientation:n,alternativeLabel:r,active:o,completed:a,disabled:i}=e,s={root:["root",n,r&&"alternativeLabel",o&&"active",a&&"completed",i&&"disabled"],line:["line",`line${je(n)}`]};return Xe(s,n2e,t)},a2e=de("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})(({ownerState:e})=>T({flex:"1 1 auto"},e.orientation==="vertical"&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:8+4,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})),i2e=de("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.line,t[`line${je(n.orientation)}`]]}})(({ownerState:e,theme:t})=>{const n=t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[600];return T({display:"block",borderColor:t.vars?t.vars.palette.StepConnector.border:n},e.orientation==="horizontal"&&{borderTopStyle:"solid",borderTopWidth:1},e.orientation==="vertical"&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})}),s2e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiStepConnector"}),{className:o}=r,a=Oe(r,r2e),{alternativeLabel:i,orientation:s="horizontal"}=S.useContext(fh),{active:l,disabled:c,completed:u}=S.useContext(_0),f=T({},r,{alternativeLabel:i,orientation:s,active:l,completed:u,disabled:c}),p=o2e(f);return O.jsx(a2e,T({className:Ie(p.root,o),ref:n,ownerState:f},a,{children:O.jsx(i2e,{className:p.line,ownerState:f})}))}),l2e=s2e;function c2e(e){return et("MuiStepper",e)}Qe("MuiStepper",["root","horizontal","vertical","alternativeLabel"]);const u2e=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],d2e=e=>{const{orientation:t,alternativeLabel:n,classes:r}=e;return Xe({root:["root",t,n&&"alternativeLabel"]},c2e,r)},f2e=de("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel]}})(({ownerState:e})=>T({display:"flex"},e.orientation==="horizontal"&&{flexDirection:"row",alignItems:"center"},e.orientation==="vertical"&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"})),p2e=O.jsx(l2e,{}),h2e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiStepper"}),{activeStep:o=0,alternativeLabel:a=!1,children:i,className:s,component:l="div",connector:c=p2e,nonLinear:u=!1,orientation:f="horizontal"}=r,p=Oe(r,u2e),m=T({},r,{alternativeLabel:a,orientation:f,component:l}),b=d2e(m),v=S.Children.toArray(i).filter(Boolean),w=v.map((y,x)=>S.cloneElement(y,T({index:x,last:x+1===v.length},y.props))),g=S.useMemo(()=>({activeStep:o,alternativeLabel:a,connector:c,nonLinear:u,orientation:f}),[o,a,c,u,f]);return O.jsx(fh.Provider,{value:g,children:O.jsx(f2e,T({as:l,ownerState:m,className:Ie(b.root,s),ref:n},p,{children:w}))})}),m2e=h2e;function v2e(e){return et("MuiSwitch",e)}const g2e=Qe("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),eo=g2e,y2e=["className","color","edge","size","sx"],b2e=e=>{const{classes:t,edge:n,size:r,color:o,checked:a,disabled:i}=e,s={root:["root",n&&`edge${je(n)}`,`size${je(r)}`],switchBase:["switchBase",`color${je(o)}`,a&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Xe(s,v2e,t);return T({},t,l)},x2e=de("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${je(n.edge)}`],t[`size${je(n.size)}`]]}})(({ownerState:e})=>T({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${eo.thumb}`]:{width:16,height:16},[`& .${eo.switchBase}`]:{padding:4,[`&.${eo.checked}`]:{transform:"translateX(16px)"}}})),w2e=de(rE,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${eo.input}`]:t.input},n.color!=="default"&&t[`color${je(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${eo.checked}`]:{transform:"translateX(20px)"},[`&.${eo.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${eo.checked} + .${eo.track}`]:{opacity:.5},[`&.${eo.disabled} + .${eo.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${eo.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>T({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${eo.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${eo.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?t0(e.palette[t.color].main,.62):e0(e.palette[t.color].main,.55)}`}},[`&.${eo.checked} + .${eo.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),C2e=de("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),$2e=de("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),S2e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiSwitch"}),{className:o,color:a="primary",edge:i=!1,size:s="medium",sx:l}=r,c=Oe(r,y2e),u=T({},r,{color:a,edge:i,size:s}),f=b2e(u),p=O.jsx($2e,{className:f.thumb,ownerState:u});return O.jsxs(x2e,{className:Ie(f.root,o),sx:l,ownerState:u,children:[O.jsx(w2e,T({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:u},c,{classes:T({},f,{root:f.switchBase})})),O.jsx(C2e,{className:f.track,ownerState:u})]})}),_2e=S2e;function E2e(e){return et("MuiTab",e)}const P2e=Qe("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),bl=P2e,T2e=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],k2e=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:a,label:i,selected:s,disabled:l}=e,c={root:["root",a&&i&&"labelIcon",`textColor${je(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Xe(c,E2e,t)},O2e=de(xa,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${je(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>T({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${bl.iconWrapper}`]:T({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${bl.selected}`]:{opacity:1},[`&.${bl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${bl.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${bl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${bl.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${bl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),R2e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:i=!1,fullWidth:s,icon:l,iconPosition:c="top",indicator:u,label:f,onChange:p,onClick:m,onFocus:b,selected:v,selectionFollowsFocus:w,textColor:g="inherit",value:y,wrapped:x=!1}=r,C=Oe(r,T2e),_=T({},r,{disabled:a,disableFocusRipple:i,selected:v,icon:!!l,iconPosition:c,label:!!f,fullWidth:s,textColor:g,wrapped:x}),$=k2e(_),P=l&&f&&S.isValidElement(l)?S.cloneElement(l,{className:Ie($.iconWrapper,l.props.className)}):l,k=D=>{!v&&p&&p(D,y),m&&m(D)},I=D=>{w&&!v&&p&&p(D,y),b&&b(D)};return O.jsxs(O2e,T({focusRipple:!i,className:Ie($.root,o),ref:n,role:"tab","aria-selected":v,disabled:a,onClick:k,onFocus:I,ownerState:_,tabIndex:v?0:-1},C,{children:[c==="top"||c==="start"?O.jsxs(S.Fragment,{children:[P,f]}):O.jsxs(S.Fragment,{children:[f,P]}),u]}))}),Pp=R2e,D2e=S.createContext(),sL=D2e;function M2e(e){return et("MuiTable",e)}Qe("MuiTable",["root","stickyHeader"]);const I2e=["className","component","padding","size","stickyHeader"],A2e=e=>{const{classes:t,stickyHeader:n}=e;return Xe({root:["root",n&&"stickyHeader"]},M2e,t)},N2e=de("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>T({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":T({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),MD="table",j2e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTable"}),{className:o,component:a=MD,padding:i="normal",size:s="medium",stickyHeader:l=!1}=r,c=Oe(r,I2e),u=T({},r,{component:a,padding:i,size:s,stickyHeader:l}),f=A2e(u),p=S.useMemo(()=>({padding:i,size:s,stickyHeader:l}),[i,s,l]);return O.jsx(sL.Provider,{value:p,children:O.jsx(N2e,T({as:a,role:a===MD?null:"table",ref:n,className:Ie(f.root,o),ownerState:u},c))})}),lL=j2e,L2e=S.createContext(),E0=L2e;function F2e(e){return et("MuiTableBody",e)}Qe("MuiTableBody",["root"]);const z2e=["className","component"],B2e=e=>{const{classes:t}=e;return Xe({root:["root"]},F2e,t)},V2e=de("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),U2e={variant:"body"},ID="tbody",W2e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableBody"}),{className:o,component:a=ID}=r,i=Oe(r,z2e),s=T({},r,{component:a}),l=B2e(s);return O.jsx(E0.Provider,{value:U2e,children:O.jsx(V2e,T({className:Ie(l.root,o),as:a,ref:n,role:a===ID?null:"rowgroup",ownerState:s},i))})}),cL=W2e;function H2e(e){return et("MuiTableCell",e)}const G2e=Qe("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),q2e=G2e,Y2e=["align","className","component","padding","scope","size","sortDirection","variant"],K2e=e=>{const{classes:t,variant:n,align:r,padding:o,size:a,stickyHeader:i}=e,s={root:["root",n,i&&"stickyHeader",r!=="inherit"&&`align${je(r)}`,o!=="normal"&&`padding${je(o)}`,`size${je(a)}`]};return Xe(s,H2e,t)},J2e=de("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${je(n.size)}`],n.padding!=="normal"&&t[`padding${je(n.padding)}`],n.align!=="inherit"&&t[`align${je(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>T({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?t0(Tt(e.palette.divider,1),.88):e0(Tt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${q2e.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Z2e=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableCell"}),{align:o="inherit",className:a,component:i,padding:s,scope:l,size:c,sortDirection:u,variant:f}=r,p=Oe(r,Y2e),m=S.useContext(sL),b=S.useContext(E0),v=b&&b.variant==="head";let w;i?w=i:w=v?"th":"td";let g=l;w==="td"?g=void 0:!g&&v&&(g="col");const y=f||b&&b.variant,x=T({},r,{align:o,component:w,padding:s||(m&&m.padding?m.padding:"normal"),size:c||(m&&m.size?m.size:"medium"),sortDirection:u,stickyHeader:y==="head"&&m&&m.stickyHeader,variant:y}),C=K2e(x);let _=null;return u&&(_=u==="asc"?"ascending":"descending"),O.jsx(J2e,T({as:w,ref:n,className:Ie(C.root,a),"aria-sort":_,scope:g,ownerState:x},p))}),wd=Z2e;function X2e(e){return et("MuiTableHead",e)}Qe("MuiTableHead",["root"]);const Q2e=["className","component"],eTe=e=>{const{classes:t}=e;return Xe({root:["root"]},X2e,t)},tTe=de("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),nTe={variant:"head"},AD="thead",rTe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableHead"}),{className:o,component:a=AD}=r,i=Oe(r,Q2e),s=T({},r,{component:a}),l=eTe(s);return O.jsx(E0.Provider,{value:nTe,children:O.jsx(tTe,T({as:a,className:Ie(l.root,o),ref:n,role:a===AD?null:"rowgroup",ownerState:s},i))})}),uL=rTe;function oTe(e){return et("MuiToolbar",e)}Qe("MuiToolbar",["root","gutters","regular","dense"]);const aTe=["className","component","disableGutters","variant"],iTe=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Xe({root:["root",!n&&"gutters",r]},oTe,t)},sTe=de("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>T({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),lTe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiToolbar"}),{className:o,component:a="div",disableGutters:i=!1,variant:s="regular"}=r,l=Oe(r,aTe),c=T({},r,{component:a,disableGutters:i,variant:s}),u=iTe(c);return O.jsx(sTe,T({as:a,className:Ie(u.root,o),ref:n,ownerState:c},l))}),cTe=lTe,uTe=rr(O.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),dTe=rr(O.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function fTe(e){return et("MuiTableRow",e)}const pTe=Qe("MuiTableRow",["root","selected","hover","head","footer"]),ND=pTe,hTe=["className","component","hover","selected"],mTe=e=>{const{classes:t,selected:n,hover:r,head:o,footer:a}=e;return Xe({root:["root",n&&"selected",r&&"hover",o&&"head",a&&"footer"]},fTe,t)},vTe=de("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${ND.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${ND.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),jD="tr",gTe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableRow"}),{className:o,component:a=jD,hover:i=!1,selected:s=!1}=r,l=Oe(r,hTe),c=S.useContext(E0),u=T({},r,{component:a,hover:i,selected:s,head:c&&c.variant==="head",footer:c&&c.variant==="footer"}),f=mTe(u);return O.jsx(vTe,T({as:a,ref:n,className:Ie(f.root,o),role:a===jD?null:"row",ownerState:u},l))}),al=gTe;function yTe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function bTe(e,t,n,r={},o=()=>{}){const{ease:a=yTe,duration:i=300}=r;let s=null;const l=t[e];let c=!1;const u=()=>{c=!0},f=p=>{if(c){o(new Error("Animation cancelled"));return}s===null&&(s=p);const m=Math.min(1,(p-s)/i);if(t[e]=a(m)*(n-l)+l,m>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(f)};return l===n?(o(new Error("Element already at target position")),u):(requestAnimationFrame(f),u)}const xTe=["onChange"],wTe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function CTe(e){const{onChange:t}=e,n=Oe(e,xTe),r=S.useRef(),o=S.useRef(null),a=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Kn(()=>{const i=rh(()=>{const l=r.current;a(),l!==r.current&&t(r.current)}),s=wi(o.current);return s.addEventListener("resize",i),()=>{i.clear(),s.removeEventListener("resize",i)}},[t]),S.useEffect(()=>{a(),t(r.current)},[t]),O.jsx("div",T({style:wTe,ref:o},n))}function $Te(e){return et("MuiTabScrollButton",e)}const STe=Qe("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),_Te=STe,ETe=["className","slots","slotProps","direction","orientation","disabled"],PTe=e=>{const{classes:t,orientation:n,disabled:r}=e;return Xe({root:["root",n,r&&"disabled"]},$Te,t)},TTe=de(xa,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>T({width:40,flexShrink:0,opacity:.8,[`&.${_Te.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),kTe=S.forwardRef(function(t,n){var r,o;const a=Ke({props:t,name:"MuiTabScrollButton"}),{className:i,slots:s={},slotProps:l={},direction:c}=a,u=Oe(a,ETe),p=nr().direction==="rtl",m=T({isRtl:p},a),b=PTe(m),v=(r=s.StartScrollButtonIcon)!=null?r:uTe,w=(o=s.EndScrollButtonIcon)!=null?o:dTe,g=zt({elementType:v,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),y=zt({elementType:w,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return O.jsx(TTe,T({component:"div",className:Ie(b.root,i),ref:n,role:null,ownerState:m,tabIndex:null},u,{children:c==="left"?O.jsx(v,T({},g)):O.jsx(w,T({},y))}))}),OTe=kTe;function RTe(e){return et("MuiTabs",e)}const DTe=Qe("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Mv=DTe,MTe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],LD=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,FD=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Ym=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const a=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||a)o=n(e,o);else{o.focus();return}}},ITe=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:a,centered:i,scrollButtonsHideMobile:s,classes:l}=e;return Xe({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},RTe,l)},ATe=de("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Mv.scrollButtons}`]:t.scrollButtons},{[`& .${Mv.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>T({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Mv.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),NTe=de("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>T({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),jTe=de("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>T({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),LTe=de("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>T({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),FTe=de(CTe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),zD={},zTe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTabs"}),o=nr(),a=o.direction==="rtl",{"aria-label":i,"aria-labelledby":s,action:l,centered:c=!1,children:u,className:f,component:p="div",allowScrollButtonsMobile:m=!1,indicatorColor:b="primary",onChange:v,orientation:w="horizontal",ScrollButtonComponent:g=OTe,scrollButtons:y="auto",selectionFollowsFocus:x,slots:C={},slotProps:_={},TabIndicatorProps:$={},TabScrollButtonProps:P={},textColor:k="primary",value:I,variant:D="standard",visibleScrollbar:F=!1}=r,U=Oe(r,MTe),G=D==="scrollable",z=w==="vertical",B=z?"scrollTop":"scrollLeft",Y=z?"top":"left",Q=z?"bottom":"right",H=z?"clientHeight":"clientWidth",J=z?"height":"width",X=T({},r,{component:p,allowScrollButtonsMobile:m,indicatorColor:b,orientation:w,vertical:z,scrollButtons:y,textColor:k,variant:D,visibleScrollbar:F,fixed:!G,hideScrollbar:G&&!F,scrollableX:G&&!z,scrollableY:G&&z,centered:c&&!G,scrollButtonsHideMobile:!m}),L=ITe(X),K=zt({elementType:C.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:X}),q=zt({elementType:C.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:X}),[R,N]=S.useState(!1),[V,Z]=S.useState(zD),[re,le]=S.useState(!1),[xe,fe]=S.useState(!1),[ge,he]=S.useState(!1),[_e,ve]=S.useState({overflow:"hidden",scrollbarWidth:0}),Be=new Map,Ue=S.useRef(null),ze=S.useRef(null),He=()=>{const te=Ue.current;let ie;if(te){const Se=te.getBoundingClientRect();ie={clientWidth:te.clientWidth,scrollLeft:te.scrollLeft,scrollTop:te.scrollTop,scrollLeftNormalized:vme(te,o.direction),scrollWidth:te.scrollWidth,top:Se.top,bottom:Se.bottom,left:Se.left,right:Se.right}}let $e;if(te&&I!==!1){const Se=ze.current.children;if(Se.length>0){const Ze=Se[Be.get(I)];$e=Ze?Ze.getBoundingClientRect():null}}return{tabsMeta:ie,tabMeta:$e}},be=mt(()=>{const{tabsMeta:te,tabMeta:ie}=He();let $e=0,Se;if(z)Se="top",ie&&te&&($e=ie.top-te.top+te.scrollTop);else if(Se=a?"right":"left",ie&&te){const tt=a?te.scrollLeftNormalized+te.clientWidth-te.scrollWidth:te.scrollLeft;$e=(a?-1:1)*(ie[Se]-te[Se]+tt)}const Ze={[Se]:$e,[J]:ie?ie[J]:0};if(isNaN(V[Se])||isNaN(V[J]))Z(Ze);else{const tt=Math.abs(V[Se]-Ze[Se]),ft=Math.abs(V[J]-Ze[J]);(tt>=1||ft>=1)&&Z(Ze)}}),we=(te,{animation:ie=!0}={})=>{ie?bTe(B,Ue.current,te,{duration:o.transitions.duration.standard}):Ue.current[B]=te},Ce=te=>{let ie=Ue.current[B];z?ie+=te:(ie+=te*(a?-1:1),ie*=a&&N4()==="reverse"?-1:1),we(ie)},qe=()=>{const te=Ue.current[H];let ie=0;const $e=Array.from(ze.current.children);for(let Se=0;Se<$e.length;Se+=1){const Ze=$e[Se];if(ie+Ze[H]>te){Se===0&&(ie=te);break}ie+=Ze[H]}return ie},rt=()=>{Ce(-1*qe())},Ae=()=>{Ce(qe())},Le=S.useCallback(te=>{ve({overflow:null,scrollbarWidth:te})},[]),Fe=()=>{const te={};te.scrollbarSizeListener=G?O.jsx(FTe,{onChange:Le,className:Ie(L.scrollableX,L.hideScrollbar)}):null;const $e=G&&(y==="auto"&&(re||xe)||y===!0);return te.scrollButtonStart=$e?O.jsx(g,T({slots:{StartScrollButtonIcon:C.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:K},orientation:w,direction:a?"right":"left",onClick:rt,disabled:!re},P,{className:Ie(L.scrollButtons,P.className)})):null,te.scrollButtonEnd=$e?O.jsx(g,T({slots:{EndScrollButtonIcon:C.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:q},orientation:w,direction:a?"left":"right",onClick:Ae,disabled:!xe},P,{className:Ie(L.scrollButtons,P.className)})):null,te},Pe=mt(te=>{const{tabsMeta:ie,tabMeta:$e}=He();if(!(!$e||!ie)){if($e[Y]ie[Q]){const Se=ie[B]+($e[Q]-ie[Q]);we(Se,{animation:te})}}}),Te=mt(()=>{G&&y!==!1&&he(!ge)});S.useEffect(()=>{const te=rh(()=>{Ue.current&&be()});let ie;const $e=tt=>{tt.forEach(ft=>{ft.removedNodes.forEach(_t=>{var vt;(vt=ie)==null||vt.unobserve(_t)}),ft.addedNodes.forEach(_t=>{var vt;(vt=ie)==null||vt.observe(_t)})}),te(),Te()},Se=wi(Ue.current);Se.addEventListener("resize",te);let Ze;return typeof ResizeObserver<"u"&&(ie=new ResizeObserver(te),Array.from(ze.current.children).forEach(tt=>{ie.observe(tt)})),typeof MutationObserver<"u"&&(Ze=new MutationObserver($e),Ze.observe(ze.current,{childList:!0})),()=>{var tt,ft;te.clear(),Se.removeEventListener("resize",te),(tt=Ze)==null||tt.disconnect(),(ft=ie)==null||ft.disconnect()}},[be,Te]),S.useEffect(()=>{const te=Array.from(ze.current.children),ie=te.length;if(typeof IntersectionObserver<"u"&&ie>0&&G&&y!==!1){const $e=te[0],Se=te[ie-1],Ze={root:Ue.current,threshold:.99},tt=dt=>{le(!dt[0].isIntersecting)},ft=new IntersectionObserver(tt,Ze);ft.observe($e);const _t=dt=>{fe(!dt[0].isIntersecting)},vt=new IntersectionObserver(_t,Ze);return vt.observe(Se),()=>{ft.disconnect(),vt.disconnect()}}},[G,y,ge,u==null?void 0:u.length]),S.useEffect(()=>{N(!0)},[]),S.useEffect(()=>{be()}),S.useEffect(()=>{Pe(zD!==V)},[Pe,V]),S.useImperativeHandle(l,()=>({updateIndicator:be,updateScrollButtons:Te}),[be,Te]);const it=O.jsx(LTe,T({},$,{className:Ie(L.indicator,$.className),ownerState:X,style:T({},V,$.style)}));let ct=0;const gt=S.Children.map(u,te=>{if(!S.isValidElement(te))return null;const ie=te.props.value===void 0?ct:te.props.value;Be.set(ie,ct);const $e=ie===I;return ct+=1,S.cloneElement(te,T({fullWidth:D==="fullWidth",indicator:$e&&!R&&it,selected:$e,selectionFollowsFocus:x,onChange:v,textColor:k,value:ie},ct===1&&I===!1&&!te.props.tabIndex?{tabIndex:0}:{}))}),Ne=te=>{const ie=ze.current,$e=zn(ie).activeElement;if($e.getAttribute("role")!=="tab")return;let Ze=w==="horizontal"?"ArrowLeft":"ArrowUp",tt=w==="horizontal"?"ArrowRight":"ArrowDown";switch(w==="horizontal"&&a&&(Ze="ArrowRight",tt="ArrowLeft"),te.key){case Ze:te.preventDefault(),Ym(ie,$e,FD);break;case tt:te.preventDefault(),Ym(ie,$e,LD);break;case"Home":te.preventDefault(),Ym(ie,null,LD);break;case"End":te.preventDefault(),Ym(ie,null,FD);break}},ne=Fe();return O.jsxs(ATe,T({className:Ie(L.root,f),ownerState:X,ref:n,as:p},U,{children:[ne.scrollButtonStart,ne.scrollbarSizeListener,O.jsxs(NTe,{className:L.scroller,ownerState:X,style:{overflow:_e.overflow,[z?`margin${a?"Left":"Right"}`:"marginBottom"]:F?void 0:-_e.scrollbarWidth},ref:Ue,children:[O.jsx(jTe,{"aria-label":i,"aria-labelledby":s,"aria-orientation":w==="vertical"?"vertical":null,className:L.flexContainer,ownerState:X,onKeyDown:Ne,ref:ze,role:"tablist",children:gt}),R&&it]}),ne.scrollButtonEnd]}))}),P0=zTe;function BTe(e){return et("MuiTextField",e)}Qe("MuiTextField",["root"]);const VTe=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],UTe={standard:is,filled:z5,outlined:tL},WTe=e=>{const{classes:t}=e;return Xe({root:["root"]},BTe,t)},HTe=de(uh,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),GTe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:i,className:s,color:l="primary",defaultValue:c,disabled:u=!1,error:f=!1,FormHelperTextProps:p,fullWidth:m=!1,helperText:b,id:v,InputLabelProps:w,inputProps:g,InputProps:y,inputRef:x,label:C,maxRows:_,minRows:$,multiline:P=!1,name:k,onBlur:I,onChange:D,onFocus:F,placeholder:U,required:G=!1,rows:z,select:B=!1,SelectProps:Y,type:Q,value:H,variant:J="outlined"}=r,X=Oe(r,VTe),L=T({},r,{autoFocus:a,color:l,disabled:u,error:f,fullWidth:m,multiline:P,required:G,select:B,variant:J}),K=WTe(L),q={};J==="outlined"&&(w&&typeof w.shrink<"u"&&(q.notched=w.shrink),q.label=C),B&&((!Y||!Y.native)&&(q.id=void 0),q["aria-describedby"]=void 0);const R=Ga(v),N=b&&R?`${R}-helper-text`:void 0,V=C&&R?`${R}-label`:void 0,Z=UTe[J],re=O.jsx(Z,T({"aria-describedby":N,autoComplete:o,autoFocus:a,defaultValue:c,fullWidth:m,multiline:P,name:k,rows:z,maxRows:_,minRows:$,type:Q,value:H,id:R,inputRef:x,onBlur:I,onChange:D,onFocus:F,placeholder:U,inputProps:g},q,y));return O.jsxs(HTe,T({className:Ie(K.root,s),disabled:u,error:f,fullWidth:m,ref:n,required:G,color:l,variant:J,ownerState:L},X,{children:[C!=null&&C!==""&&O.jsx(G5,T({htmlFor:R,id:V},w,{children:C})),B?O.jsx(aL,T({"aria-describedby":N,id:R,labelId:V,value:H,input:re},Y,{children:i})):re,b&&O.jsx(dr,T({id:N},p,{children:b}))]}))}),ph=GTe;var qTe=B$;function YTe(e){return qTe(e)?void 0:e}var KTe=YTe,JTe=ld,ZTe=my,XTe=$ie,QTe=Gp,eke=ud,tke=KTe,nke=Q$,rke=d3,oke=1,ake=2,ike=4,ske=nke(function(e,t){var n={};if(e==null)return n;var r=!1;t=JTe(t,function(a){return a=QTe(a,e),r||(r=a.length>1),a}),eke(e,rke(e),n),r&&(n=ZTe(n,oke|ake|ike,tke));for(var o=t.length;o--;)XTe(n,t[o]);return n}),lke=ske;const cke=Bt(lke);function uke(e,t,n){for(var r=-1,o=e==null?0:e.length;++r=$ke){var c=t?null:wke(e);if(c)return Cke(c);i=!1,o=xke,l=new gke}else l=t?[]:s;e:for(;++r=z?G:""+Array(z+1-Y.length).join(B)+G},C={s:x,z:function(G){var z=-G.utcOffset(),B=Math.abs(z),Y=Math.floor(B/60),Q=B%60;return(z<=0?"+":"-")+x(Y,2,"0")+":"+x(Q,2,"0")},m:function G(z,B){if(z.date()68?1900:2e3)},c=function(v){return function(w){this[v]=+w}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(w){if(!w||w==="Z")return 0;var g=w.match(/([+-]|\d\d)/g),y=60*g[1]+(+g[2]||0);return y===0?0:g[0]==="+"?-y:y}(v)}],f=function(v){var w=s[v];return w&&(w.indexOf?w:w.s.concat(w.f))},p=function(v,w){var g,y=s.meridiem;if(y){for(var x=1;x<=24;x+=1)if(v.indexOf(y(x,0,w))>-1){g=x>12;break}}else g=v===(w?"pm":"PM");return g},m={A:[i,function(v){this.afternoon=p(v,!1)}],a:[i,function(v){this.afternoon=p(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[o,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[o,c("day")],Do:[i,function(v){var w=s.ordinal,g=v.match(/\d+/);if(this.day=g[0],w)for(var y=1;y<=31;y+=1)w(y).replace(/\[|\]/g,"")===v&&(this.day=y)}],M:[a,c("month")],MM:[o,c("month")],MMM:[i,function(v){var w=f("months"),g=(f("monthsShort")||w.map(function(y){return y.substr(0,3)})).indexOf(v)+1;if(g<1)throw new Error;this.month=g%12||g}],MMMM:[i,function(v){var w=f("months").indexOf(v)+1;if(w<1)throw new Error;this.month=w%12||w}],Y:[/[+-]?\d+/,c("year")],YY:[o,function(v){this.year=l(v)}],YYYY:[/\d{4}/,c("year")],Z:u,ZZ:u};function b(v){var w,g;w=v,g=s&&s.formats;for(var y=(v=w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,D,F){var U=F&&F.toUpperCase();return D||g[F]||n[F]||g[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(G,z,B){return z||B.slice(1)})})).match(r),x=y.length,C=0;C-1)return new Date((Q==="X"?1e3:1)*Y);var J=b(Q)(Y),X=J.year,L=J.month,K=J.day,q=J.hours,R=J.minutes,N=J.seconds,V=J.milliseconds,Z=J.zone,re=new Date,le=K||(X||L?1:re.getDate()),xe=X||re.getFullYear(),fe=0;X&&!L||(fe=L>0?L-1:re.getMonth());var ge=q||0,he=R||0,_e=N||0,ve=V||0;return Z?new Date(Date.UTC(xe,fe,le,ge,he,_e,ve+60*Z.offset*1e3)):H?new Date(Date.UTC(xe,fe,le,ge,he,_e,ve)):new Date(xe,fe,le,ge,he,_e,ve)}catch{return new Date("")}}(_,k,$),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),F&&_!==this.format(k)&&(this.$d=new Date("")),s={}}else if(k instanceof Array)for(var G=k.length,z=1;z<=G;z+=1){P[1]=k[z-1];var B=g.apply(this,P);if(B.isValid()){this.$d=B.$d,this.$L=B.$L,this.init();break}z===G&&(this.$d=new Date(""))}else x.call(this,C)}}})})(hL);var eOe=hL.exports;const tOe=Bt(eOe);var xE={},nOe=hc;Object.defineProperty(xE,"__esModule",{value:!0});var mL=xE.default=void 0,rOe=nOe(mc()),oOe=O,aOe=(0,rOe.default)((0,oOe.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");mL=xE.default=aOe;var iOe=eS,sOe=ts;function lOe(e,t){var n=-1,r=sOe(e)?Array(e.length):[];return iOe(e,function(o,a,i){r[++n]=t(o,a,i)}),r}var cOe=lOe,uOe=ld,dOe=lc,fOe=cOe,pOe=sr;function hOe(e,t){var n=pOe(e)?uOe:fOe;return n(e,dOe(t))}var vL=hOe;const gL=Bt(vL),mOe=["localeText"],lC=S.createContext(null),hh=function(t){var n;const{localeText:r}=t,o=Oe(t,mOe),{utils:a,localeText:i}=(n=S.useContext(lC))!=null?n:{utils:void 0,localeText:void 0},s=Ke({props:o,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:f,adapterLocale:p,localeText:m}=s,b=S.useMemo(()=>T({},m,i,r),[m,i,r]),v=S.useMemo(()=>{if(!c)return a||null;const y=new c({locale:p,formats:u,instance:f});if(!y.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(` -`));return y},[c,p,u,f,a]),w=S.useMemo(()=>v?{minDate:v.date("1900-01-01T00:00:00.000"),maxDate:v.date("2099-12-31T00:00:00.000")}:null,[v]),g=S.useMemo(()=>({utils:v,defaultDates:w,localeText:b}),[w,v,b]);return O.jsx(lC.Provider,{value:g,children:l})},vOe=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:T({},e)}}}}),yL={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose date, selected date is ${t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose time, selected time is ${t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear value",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa"},gOe=yL;vOe(yL);const vc=()=>{const e=S.useContext(lC);if(e===null)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(` -`));if(e.utils===null)throw new Error(["MUI: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(` -`));const t=S.useMemo(()=>T({},gOe,e.localeText),[e.localeText]);return S.useMemo(()=>T({},e,{localeText:t}),[e,t])},qt=()=>vc().utils,gc=()=>vc().defaultDates,Sr=()=>vc().localeText,il=e=>{const t=qt(),n=S.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current},yOe=rr(O.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),bOe=rr(O.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),xOe=rr(O.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),bL=rr(O.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),wOe=rr(O.jsxs(S.Fragment,{children:[O.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),O.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),COe=rr(O.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),$Oe=rr(O.jsxs(S.Fragment,{children:[O.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),O.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),SOe=rr(O.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function _Oe(e){return et("MuiPickersArrowSwitcher",e)}Qe("MuiPickersArrowSwitcher",["root","spacer","button"]);const EOe=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],POe=["ownerState"],TOe=["ownerState"],kOe=de("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),OOe=de("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),VD=de(tr,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>T({},e.hidden&&{visibility:"hidden"})),ROe=e=>{const{classes:t}=e;return Xe({root:["root"],spacer:["spacer"],button:["button"]},_Oe,t)},xL=S.forwardRef(function(t,n){var r,o,a,i;const l=nr().direction==="rtl",c=Ke({props:t,name:"MuiPickersArrowSwitcher"}),{children:u,className:f,slots:p,slotProps:m,isNextDisabled:b,isNextHidden:v,onGoToNext:w,nextLabel:g,isPreviousDisabled:y,isPreviousHidden:x,onGoToPrevious:C,previousLabel:_}=c,$=Oe(c,EOe),P=c,k=ROe(P),I={isDisabled:b,isHidden:v,goTo:w,label:g},D={isDisabled:y,isHidden:x,goTo:C,label:_},F=(r=p==null?void 0:p.previousIconButton)!=null?r:VD,U=zt({elementType:F,externalSlotProps:m==null?void 0:m.previousIconButton,additionalProps:{size:"medium",title:D.label,"aria-label":D.label,disabled:D.isDisabled,edge:"end",onClick:D.goTo},ownerState:T({},P,{hidden:D.isHidden}),className:k.button}),G=(o=p==null?void 0:p.nextIconButton)!=null?o:VD,z=zt({elementType:G,externalSlotProps:m==null?void 0:m.nextIconButton,additionalProps:{size:"medium",title:I.label,"aria-label":I.label,disabled:I.isDisabled,edge:"start",onClick:I.goTo},ownerState:T({},P,{hidden:I.isHidden}),className:k.button}),B=(a=p==null?void 0:p.leftArrowIcon)!=null?a:bOe,Y=zt({elementType:B,externalSlotProps:m==null?void 0:m.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),Q=Oe(Y,POe),H=(i=p==null?void 0:p.rightArrowIcon)!=null?i:xOe,J=zt({elementType:H,externalSlotProps:m==null?void 0:m.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),X=Oe(J,TOe);return O.jsxs(kOe,T({ref:n,className:Ie(k.root,f),ownerState:P},$,{children:[O.jsx(F,T({},U,{children:l?O.jsx(H,T({},X)):O.jsx(B,T({},Q))})),u?O.jsx(gn,{variant:"subtitle1",component:"span",children:u}):O.jsx(OOe,{className:k.spacer,ownerState:P}),O.jsx(G,T({},z,{children:l?O.jsx(B,T({},Q)):O.jsx(H,T({},X))}))]}))}),ui=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),wE=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=n??r;let a;if(e!=null)a=e;else if(o.includes(t))a=t;else if(o.length>0)a=o[0];else throw new Error("MUI: The `views` prop must contain at least one view");return{views:o,openTo:a}},wL=["hours","minutes","seconds"],Ku=e=>wL.includes(e),$s=e=>wL.includes(e)||e==="meridiem",DOe=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,Tp=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,MOe=(e,t,n,r)=>{const o=Tp(r.getHours(e),t,n);return r.setHours(e,o)},UD=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),mh=(e,t)=>(n,r)=>e?t.isAfter(n,r):UD(n,t)>UD(r,t),Ig=(e,{format:t,views:n,ampm:r})=>{if(t!=null)return t;const o=e.formats;return ui(n,["hours"])?r?`${o.hours12h} ${o.meridiem}`:o.hours24h:ui(n,["minutes"])?o.minutes:ui(n,["seconds"])?o.seconds:ui(n,["minutes","seconds"])?`${o.minutes}:${o.seconds}`:ui(n,["hours","minutes","seconds"])?r?`${o.hours12h}:${o.minutes}:${o.seconds} ${o.meridiem}`:`${o.hours24h}:${o.minutes}:${o.seconds}`:r?`${o.hours12h}:${o.minutes} ${o.meridiem}`:`${o.hours24h}:${o.minutes}`};function vh({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:a,focusedView:i,onFocusedViewChange:s}){var l,c;const u=S.useRef(n),f=S.useRef(o),p=S.useRef(o.includes(n)?n:o[0]),[m,b]=wr({name:"useViews",state:"view",controlled:r,default:p.current}),v=S.useRef(a?m:null),[w,g]=wr({name:"useViews",state:"focusedView",controlled:i,default:v.current});S.useEffect(()=>{(u.current&&u.current!==n||f.current&&f.current.some(D=>!o.includes(D)))&&(b(o.includes(n)?n:o[0]),f.current=o,u.current=n)},[n,b,m,o]);const y=o.indexOf(m),x=(l=o[y-1])!=null?l:null,C=(c=o[y+1])!=null?c:null,_=mt((D,F)=>{g(F?D:U=>D===U?null:U),s==null||s(D,F)}),$=mt(D=>{D!==m&&(b(D),_(D,!0),t&&t(D))}),P=mt(()=>{C&&$(C),_(C,!0)}),k=mt((D,F,U)=>{const G=F==="finish",z=U?o.indexOf(U){e(D,F?"partial":"finish",U),F&&($(F),_(F,!0))});return{view:m,setView:$,focusedView:w,setFocusedView:_,nextView:C,previousView:x,defaultView:p.current,goToNextView:P,setValueAndGoToNextView:k,setValueAndGoToView:I}}function IOe(e,{disableFuture:t,maxDate:n,timezone:r}){const o=qt();return S.useMemo(()=>{const a=o.dateWithTimezone(void 0,r),i=o.startOfMonth(t&&o.isBefore(a,n)?a:n);return!o.isAfter(i,e)},[t,n,e,o,r])}function AOe(e,{disablePast:t,minDate:n,timezone:r}){const o=qt();return S.useMemo(()=>{const a=o.dateWithTimezone(void 0,r),i=o.startOfMonth(t&&o.isAfter(a,n)?a:n);return!o.isBefore(i,e)},[t,n,e,o,r])}function R0(e,t,n,r){const o=qt(),a=DOe(e,o),i=S.useCallback(s=>{const l=e==null?null:MOe(e,s,!!t,o);n(l,r??"partial")},[t,e,n,r,o]);return{meridiemMode:a,handleMeridiemChange:i}}const kp=36,D0=2,M0=320,NOe=280,I0=334,CL=232,Pf=48,A0=de("div")({overflow:"hidden",width:M0,maxHeight:I0,display:"flex",flexDirection:"column",margin:"0 auto"});function jOe(e){return et("MuiTimeClock",e)}Qe("MuiTimeClock",["root","arrowSwitcher"]);const Ju=220,yi=36,Op={x:Ju/2,y:Ju/2},$L={x:Op.x,y:0},LOe=$L.x-Op.x,FOe=$L.y-Op.y,zOe=e=>e*(180/Math.PI),SL=(e,t,n)=>{const r=t-Op.x,o=n-Op.y,a=Math.atan2(LOe,FOe)-Math.atan2(r,o);let i=zOe(a);i=Math.round(i/e)*e,i%=360;const s=Math.floor(i/e)||0,l=r**2+o**2,c=Math.sqrt(l);return{value:s,distance:c}},BOe=(e,t,n=1)=>{const r=n*6;let{value:o}=SL(r,e,t);return o=o*n%60,o},VOe=(e,t,n)=>{const{value:r,distance:o}=SL(30,e,t);let a=r||12;return n?a%=12:o{const{classes:t}=e;return Xe({root:["root"],thumb:["thumb"]},UOe,t)},GOe=de("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>T({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),qOe=de("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>T({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${yi/2}px)`,border:`${(yi-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:(e.vars||e).palette.primary.main}));function YOe(e){const t=Ke({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:o,viewValue:a}=t,i=Oe(t,WOe),s=S.useRef(o);S.useEffect(()=>{s.current=o},[o]);const l=T({},t,{shouldAnimate:s.current!==o}),c=HOe(l),u=()=>{let p=360/(o==="hours"?12:60)*a;return o==="hours"&&a>12&&(p-=360),{height:Math.round((r?.26:.4)*Ju),transform:`rotateZ(${p}deg)`}};return O.jsx(GOe,T({style:u(),className:Ie(n,c.root),ownerState:l},i,{children:O.jsx(qOe,{ownerState:l,className:c.thumb})}))}function KOe(e){return et("MuiClock",e)}Qe("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText"]);const Jf=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:a,utils:i,timezone:s})=>{const l=i.startOfDay(i.dateWithTimezone(void 0,s));n&&i.isBefore(o,l)&&(o=l),t&&i.isAfter(r,l)&&(r=l);let c=e,u=e;for(i.isBefore(e,o)&&(c=o,u=null),i.isAfter(e,r)&&(u&&(u=r),c=null);c||u;){if(c&&i.isAfter(c,r)&&(c=null),u&&i.isBefore(u,o)&&(u=null),c){if(!a(c))return c;c=i.addDays(c,1)}if(u){if(!a(u))return u;u=i.addDays(u,-1)}}return null},JOe=(e,t)=>t==null||!e.isValid(t)?null:t,Yr=(e,t,n)=>t==null||!e.isValid(t)?n:t,ZOe=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),CE=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const o=r[r.length-1];r.push(e.addMonths(o,1))}return r},cC=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r},$E=(e,t,n)=>n==="date"?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),Fa=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},XOe=["year","month","day"],ku=e=>XOe.includes(e),Rp=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return ui(n,["year"])?o.year:ui(n,["month"])?o.month:ui(n,["day"])?o.dayOfMonth:ui(n,["month","year"])?`${o.month} ${o.year}`:ui(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},QOe=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},eRe=e=>{const{classes:t}=e;return Xe({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"],meridiemText:["meridiemText"]},KOe,t)},tRe=de("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),nRe=de("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),rRe=de("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),oRe=de("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>T({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),aRe=de("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),iRe=de(tr,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>T({zIndex:1,position:"absolute",bottom:8,left:8,paddingLeft:4,paddingRight:4,width:yi},t.meridiemMode==="am"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),sRe=de(tr,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>T({zIndex:1,position:"absolute",bottom:8,right:8,paddingLeft:4,paddingRight:4,width:yi},t.meridiemMode==="pm"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),WD=de(gn,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function lRe(e){const t=Ke({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:o,children:a,value:i,handleMeridiemChange:s,isTimeDisabled:l,meridiemMode:c,minutesStep:u=1,onChange:f,selectedId:p,type:m,viewValue:b,disabled:v,readOnly:w,className:g}=t,y=t,x=qt(),C=Sr(),_=S.useRef(!1),$=eRe(y),P=l(b,m),k=!n&&m==="hours"&&(b<1||b>12),I=(J,X)=>{v||w||l(J,m)||f(J,X)},D=(J,X)=>{let{offsetX:L,offsetY:K}=J;if(L===void 0){const R=J.target.getBoundingClientRect();L=J.changedTouches[0].clientX-R.left,K=J.changedTouches[0].clientY-R.top}const q=m==="seconds"||m==="minutes"?BOe(L,K,u):VOe(L,K,!!n);I(q,X)},F=J=>{_.current=!0,D(J,"shallow")},U=J=>{_.current&&(D(J,"finish"),_.current=!1)},G=J=>{J.buttons>0&&D(J.nativeEvent,"shallow")},z=J=>{_.current&&(_.current=!1),D(J.nativeEvent,"finish")},B=S.useMemo(()=>m==="hours"?!0:b%5===0,[m,b]),Y=m==="minutes"?u:1,Q=S.useRef(null);Kn(()=>{o&&Q.current.focus()},[o]);const H=J=>{if(!_.current)switch(J.key){case"Home":I(0,"partial"),J.preventDefault();break;case"End":I(m==="minutes"?59:23,"partial"),J.preventDefault();break;case"ArrowUp":I(b+Y,"partial"),J.preventDefault();break;case"ArrowDown":I(b-Y,"partial"),J.preventDefault();break}};return O.jsxs(tRe,{className:Ie(g,$.root),children:[O.jsxs(nRe,{className:$.clock,children:[O.jsx(oRe,{onTouchMove:F,onTouchEnd:U,onMouseUp:z,onMouseMove:G,ownerState:{disabled:v},className:$.squareMask}),!P&&O.jsxs(S.Fragment,{children:[O.jsx(aRe,{className:$.pin}),i!=null&&O.jsx(YOe,{type:m,viewValue:b,isInner:k,hasSelected:B})]}),O.jsx(rRe,{"aria-activedescendant":p,"aria-label":C.clockLabelText(m,i,x),ref:Q,role:"listbox",onKeyDown:H,tabIndex:0,className:$.wrapper,children:a})]}),n&&r&&O.jsxs(S.Fragment,{children:[O.jsx(iRe,{onClick:w?void 0:()=>s("am"),disabled:v||c===null,ownerState:y,className:$.amButton,title:Fa(x,"am"),children:O.jsx(WD,{variant:"caption",className:$.meridiemText,children:Fa(x,"am")})}),O.jsx(sRe,{disabled:v||c===null,onClick:w?void 0:()=>s("pm"),ownerState:y,className:$.pmButton,title:Fa(x,"pm"),children:O.jsx(WD,{variant:"caption",className:$.meridiemText,children:Fa(x,"pm")})})]})]})}function cRe(e){return et("MuiClockNumber",e)}const Km=Qe("MuiClockNumber",["root","selected","disabled"]),uRe=["className","disabled","index","inner","label","selected"],dRe=e=>{const{classes:t,selected:n,disabled:r}=e;return Xe({root:["root",n&&"selected",r&&"disabled"]},cRe,t)},fRe=de("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Km.disabled}`]:t.disabled},{[`&.${Km.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>T({height:yi,width:yi,position:"absolute",left:`calc((100% - ${yi}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${Km.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${Km.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled}},t.inner&&T({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})));function _L(e){const t=Ke({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:o,inner:a,label:i,selected:s}=t,l=Oe(t,uRe),c=t,u=dRe(c),f=o%12/12*Math.PI*2-Math.PI/2,p=(Ju-yi-2)/2*(a?.65:1),m=Math.round(Math.cos(f)*p),b=Math.round(Math.sin(f)*p);return O.jsx(fRe,T({className:Ie(n,u.root),"aria-disabled":r?!0:void 0,"aria-selected":s?!0:void 0,role:"option",style:{transform:`translate(${m}px, ${b+(Ju-yi)/2}px`},ownerState:c},l,{children:i}))}const pRe=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:o,utils:a})=>{const i=t?a.getHours(t):null,s=[],l=e?1:0,c=e?12:23,u=f=>i===null?!1:e?f===12?i===12||i===0:i===f||i-12===f:i===f;for(let f=l;f<=c;f+=1){let p=f.toString();f===0&&(p="00");const m=!e&&(f===0||f>12);p=a.formatNumber(p);const b=u(f);s.push(O.jsx(_L,{id:b?o:void 0,index:f,inner:m,selected:b,disabled:r(f),label:p,"aria-label":n(p)},f))}return s},HD=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:o})=>{const a=e.formatNumber;return[[5,a("05")],[10,a("10")],[15,a("15")],[20,a("20")],[25,a("25")],[30,a("30")],[35,a("35")],[40,a("40")],[45,a("45")],[50,a("50")],[55,a("55")],[0,a("00")]].map(([i,s],l)=>{const c=i===t;return O.jsx(_L,{label:s,id:c?o:void 0,index:l+1,inner:!1,disabled:n(i),selected:c,"aria-label":r(s)},i)})},SE=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:o})=>{var a,i;const s=qt(),l=S.useRef(n),c=(a=t??l.current)!=null?a:o.emptyValue,u=S.useMemo(()=>o.getTimezone(s,c),[s,o,c]),f=mt(v=>u==null?v:o.setTimezone(s,u,v)),p=(i=e??u)!=null?i:"default",m=S.useMemo(()=>o.setTimezone(s,p,c),[o,s,p,c]),b=mt((v,...w)=>{const g=f(v);r==null||r(g,...w)});return{value:m,handleValueChange:b,timezone:p}},Cd=({name:e,timezone:t,value:n,defaultValue:r,onChange:o,valueManager:a})=>{const[i,s]=wr({name:e,state:"value",controlled:n,default:r??a.emptyValue}),l=mt((c,...u)=>{s(c),o==null||o(c,...u)});return SE({timezone:t,value:i,defaultValue:void 0,onChange:l,valueManager:a})},Ia={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},hRe=e=>Math.max(...e.map(t=>{var n;return(n=Ia[t.type])!=null?n:1})),df=(e,t,n)=>{if(t===Ia.year)return e.startOfYear(n);if(t===Ia.month)return e.startOfMonth(n);if(t===Ia.day)return e.startOfDay(n);let r=n;return t{var a;let i=o?o():df(t,n,$E(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=df(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=df(t,n,e.maxDate));const s=mh((a=e.disableIgnoringDatePartForTimeValidation)!=null?a:!1,t);return e.minTime!=null&&s(e.minTime,i)&&(i=df(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:cC(t,i,e.minTime))),e.maxTime!=null&&s(i,e.maxTime)&&(i=df(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:cC(t,i,e.maxTime))),i},EL=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(` -`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},vRe=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},N0=(e,t,n)=>{const r=[],o=e.dateWithTimezone(void 0,t),a=e.startOfWeek(o),i=e.endOfWeek(o);let s=a;for(;e.isBefore(s,i);)r.push(s),s=e.addDays(s,1);return r.map(l=>e.formatByString(l,n))},PL=(e,t,n,r)=>{switch(n){case"month":return CE(e,e.dateWithTimezone(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return N0(e,t,r);case"meridiem":{const o=e.dateWithTimezone(void 0,t);return[e.startOfDay(o),e.endOfDay(o)].map(a=>e.formatByString(a,r))}default:return[]}},TL=(e,t,n)=>{let r=t;for(r=Number(r).toString();r.length{if(o.type==="day"&&o.contentType==="digit-with-letter"){const i=e.setDate(r.longestMonth,n);return e.formatByString(i,o.format)}const a=n.toString();return o.hasLeadingZerosInInput?TL(e,a,o.maxLength):a},gRe=(e,t,n,r,o,a,i)=>{const s=vRe(r),l=r==="Home",c=r==="End",u=n.value===""||l||c,f=()=>{const m=o[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),b=y=>kL(e,t,y,m,n),v=n.type==="minutes"&&i!=null&&i.minutesStep?i.minutesStep:1;let g=parseInt(n.value,10)+s*v;if(u){if(n.type==="year"&&!c&&!l)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);s>0||l?g=m.minimum:g=m.maximum}return g%v!==0&&((s<0||l)&&(g+=v-(v+g)%v),(s>0||c)&&(g-=g%v)),g>m.maximum?b(m.minimum+(g-m.maximum-1)%(m.maximum-m.minimum+1)):g{const m=PL(e,t,n.type,n.format);if(m.length===0)return n.value;if(u)return s>0||l?m[0]:m[m.length-1];const v=(m.indexOf(n.value)+m.length+s)%m.length;return m[v]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?f():p()},_E=(e,t)=>{let n=e.value||e.placeholder;const r=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(n=Number(n).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&n.length===1&&(n=`${n}‎`),t==="input-rtl"&&(n=`⁨${n}⁩`),n},vu=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),OL=(e,t)=>{let n=0,r=t?1:0;const o=[];for(let a=0;a{switch(r.type){case"year":return n.fieldYearPlaceholder({digitAmount:e.formatByString(e.dateWithTimezone(void 0,t),o).length});case"month":return n.fieldMonthPlaceholder({contentType:r.contentType});case"day":return n.fieldDayPlaceholder();case"weekDay":return n.fieldWeekDayPlaceholder({contentType:r.contentType});case"hours":return n.fieldHoursPlaceholder();case"minutes":return n.fieldMinutesPlaceholder();case"seconds":return n.fieldSecondsPlaceholder();case"meridiem":return n.fieldMeridiemPlaceholder();default:return o}},GD=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),RL=(e,t,n)=>e.formatByString(e.dateWithTimezone(void 0,t),n).length===4,DL=(e,t,n,r,o)=>{if(n!=="digit")return!1;const a=e.dateWithTimezone(void 0,t);switch(r){case"year":return RL(e,t,o)?e.formatByString(e.setYear(a,1),o)==="0001":e.formatByString(e.setYear(a,2001),o)==="01";case"month":return e.formatByString(e.startOfYear(a),o).length>1;case"day":return e.formatByString(e.startOfMonth(a),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(a),o).length>1;case"hours":return e.formatByString(e.setHours(a,1),o).length>1;case"minutes":return e.formatByString(e.setMinutes(a,1),o).length>1;case"seconds":return e.formatByString(e.setMinutes(a,1),o).length>1;default:throw new Error("Invalid section type")}},bRe=(e,t)=>{const n=[],{start:r,end:o}=e.escapedCharacters,a=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let i=null;for(;i=a.exec(t);)n.push({start:i.index,end:a.lastIndex-1});return n},qD=(e,t,n,r,o,a,i,s)=>{let l="";const c=[],u=e.date(),f=x=>{if(x==="")return null;const C=EL(e,x),_=DL(e,t,C.contentType,C.type,x),$=i?_:C.contentType==="digit",P=o!=null&&e.isValid(o);let k=P?e.formatByString(o,x):"",I=null;if($)if(_)I=k===""?e.formatByString(u,x).length:k.length;else{if(C.maxLength==null)throw new Error(`MUI: The token ${x} should have a 'maxDigitNumber' property on it's adapter`);I=C.maxLength,P&&(k=TL(e,k,I))}return c.push(T({},C,{format:x,maxLength:I,value:k,placeholder:yRe(e,t,n,C,x),hasLeadingZeros:_,hasLeadingZerosInFormat:_,hasLeadingZerosInInput:$,startSeparator:c.length===0?l:"",endSeparator:"",modified:!1})),null};let p=10,m=r,b=e.expandFormat(r);for(;b!==m;)if(m=b,b=e.expandFormat(m),p-=1,p<0)throw new Error("MUI: The format expansion seems to be enter in an infinite loop. Please open an issue with the format passed to the picker component");const v=b,w=bRe(e,v),g=new RegExp(`^(${Object.keys(e.formatTokenMap).sort((x,C)=>C.length-x.length).join("|")})`,"g");let y="";for(let x=0;xI.start<=x&&I.end>=x),_=v[x],$=C!=null,P=`${y}${v.slice(x)}`,k=g.test(P);!$&&_.match(/([A-Za-z]+)/)&&k?(y=P.slice(0,g.lastIndex),x+=g.lastIndex-1):$&&(C==null?void 0:C.start)===x||(C==null?void 0:C.end)===x||(f(y),y="",c.length===0?l+=_:c[c.length-1].endSeparator+=_)}return f(y),c.map(x=>{const C=_=>{let $=_;return s&&$!==null&&$.includes(" ")&&($=`⁩${$}⁦`),a==="spacious"&&["/",".","-"].includes($)&&($=` ${$} `),$};return x.startSeparator=C(x.startSeparator),x.endSeparator=C(x.endSeparator),x})},xRe=(e,t)=>{const n=t.some(s=>s.type==="day"),r=[],o=[];for(let s=0;s{const r=e.map(o=>{const a=_E(o,t?"input-rtl":"input-ltr");return`${o.startSeparator}${a}${o.endSeparator}`}).join("");return t?`⁦${r}⁩`:r},CRe=(e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),o=e.endOfDay(n),{maxDaysInMonth:a,longestMonth:i}=CE(e,n).reduce((s,l)=>{const c=e.getDaysInMonth(l);return c>s.maxDaysInMonth?{maxDaysInMonth:c,longestMonth:l}:s},{maxDaysInMonth:0,longestMonth:null});return{year:({format:s})=>({minimum:0,maximum:RL(e,t,s)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:s})=>({minimum:1,maximum:s!=null&&e.isValid(s)?e.getDaysInMonth(s):a,longestMonth:i}),weekDay:({format:s,contentType:l})=>{if(l==="digit"){const c=N0(e,t,s).map(Number);return{minimum:Math.min(...c),maximum:Math.max(...c)}}return{minimum:1,maximum:7}},hours:({format:s})=>{const l=e.getHours(o);return e.formatByString(e.endOfDay(n),s)!==l.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(n),s))}:{minimum:0,maximum:l}},minutes:()=>({minimum:0,maximum:e.getMinutes(o)}),seconds:()=>({minimum:0,maximum:e.getSeconds(o)}),meridiem:()=>({minimum:0,maximum:0})}},$Re=(e,t,n,r,o)=>{switch(n.type){case"year":return e.setYear(o,e.getYear(r));case"month":return e.setMonth(o,e.getMonth(r));case"weekDay":{const a=N0(e,t,n.format),i=e.formatByString(r,n.format),s=a.indexOf(i),c=a.indexOf(n.value)-s;return e.addDays(r,c)}case"day":return e.setDate(o,e.getDate(r));case"meridiem":{const a=e.getHours(r)<12,i=e.getHours(o);return a&&i>=12?e.addHours(o,-12):!a&&i<12?e.addHours(o,12):o}case"hours":return e.setHours(o,e.getHours(r));case"minutes":return e.setMinutes(o,e.getMinutes(r));case"seconds":return e.setSeconds(o,e.getSeconds(r));default:return o}},YD={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},KD=(e,t,n,r,o,a)=>[...r].sort((i,s)=>YD[i.type]-YD[s.type]).reduce((i,s)=>!a||s.modified?$Re(e,t,s,n,i):i,o),SRe=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,_Re=(e,t)=>{const n={};if(!t)return e.forEach((l,c)=>{const u=c===0?null:c-1,f=c===e.length-1?null:c+1;n[c]={leftIndex:u,rightIndex:f}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let a=0,i=0,s=e.length-1;for(;s>=0;){i=e.findIndex((l,c)=>{var u;return c>=a&&((u=l.endSeparator)==null?void 0:u.includes(" "))&&l.endSeparator!==" / "}),i===-1&&(i=e.length-1);for(let l=i;l>=a;l-=1)o[l]=s,r[s]=l,s-=1;a=i+1}return e.forEach((l,c)=>{const u=o[c],f=u===0?null:r[u-1],p=u===e.length-1?null:r[u+1];n[c]={leftIndex:f,rightIndex:p}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},ERe=["value","referenceDate"],Cr={emptyValue:null,getTodayValue:$E,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=Oe(e,ERe);return t!=null&&r.utils.isValid(t)?t:n??mRe(r)},cleanValue:JOe,areValuesEqual:ZOe,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},EE={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r,o)=>!e.isValid(t)&&!!n?n:OL(o(t),r),getValueStrFromSections:wRe,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},gh=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>T({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]}),{})},PE=({value:e,referenceDate:t,utils:n,props:r,timezone:o})=>{const a=S.useMemo(()=>Cr.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:Ia.day,timezone:o,getTodayDate:()=>$E(n,o,"date")}),[]);return e??a},PRe=["ampm","ampmInClock","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","timezone"],TRe=e=>{const{classes:t}=e;return Xe({root:["root"],arrowSwitcher:["arrowSwitcher"]},jOe,t)},kRe=de(A0,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),ORe=de(xL,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),RRe=["hours","minutes"],DRe=S.forwardRef(function(t,n){const r=qt(),o=Ke({props:t,name:"MuiTimeClock"}),{ampm:a=r.is12HourCycleInCurrentLocale(),ampmInClock:i=!1,autoFocus:s,components:l,componentsProps:c,slots:u,slotProps:f,value:p,defaultValue:m,referenceDate:b,disableIgnoringDatePartForTimeValidation:v=!1,maxTime:w,minTime:g,disableFuture:y,disablePast:x,minutesStep:C=1,shouldDisableClock:_,shouldDisableTime:$,showViewSwitcher:P,onChange:k,view:I,views:D=RRe,openTo:F,onViewChange:U,focusedView:G,onFocusedViewChange:z,className:B,disabled:Y,readOnly:Q,timezone:H}=o,J=Oe(o,PRe),X=u??gh(l),L=f??c,{value:K,handleValueChange:q,timezone:R}=Cd({name:"TimeClock",timezone:H,value:p,defaultValue:m,onChange:k,valueManager:Cr}),N=PE({value:K,referenceDate:b,utils:r,props:o,timezone:R}),V=Sr(),Z=il(R),{view:re,setView:le,previousView:xe,nextView:fe,setValueAndGoToNextView:ge}=vh({view:I,views:D,openTo:F,onViewChange:U,onChange:q,focusedView:G,onFocusedViewChange:z}),{meridiemMode:he,handleMeridiemChange:_e}=R0(N,a,ge),ve=S.useCallback((be,we)=>{const Ce=mh(v,r),qe=we==="hours"||we==="minutes"&&D.includes("seconds"),rt=({start:Le,end:Fe})=>!(g&&Ce(g,Fe)||w&&Ce(Le,w)||y&&Ce(Le,Z)||x&&Ce(Z,qe?Fe:Le)),Ae=(Le,Fe=1)=>{if(Le%Fe!==0||_!=null&&_(Le,we))return!1;if($)switch(we){case"hours":return!$(r.setHours(N,Le),"hours");case"minutes":return!$(r.setMinutes(N,Le),"minutes");case"seconds":return!$(r.setSeconds(N,Le),"seconds");default:return!1}return!0};switch(we){case"hours":{const Le=Tp(be,he,a),Fe=r.setHours(N,Le),Pe=r.setSeconds(r.setMinutes(Fe,0),0),Te=r.setSeconds(r.setMinutes(Fe,59),59);return!rt({start:Pe,end:Te})||!Ae(Le)}case"minutes":{const Le=r.setMinutes(N,be),Fe=r.setSeconds(Le,0),Pe=r.setSeconds(Le,59);return!rt({start:Fe,end:Pe})||!Ae(be,C)}case"seconds":{const Le=r.setSeconds(N,be);return!rt({start:Le,end:Le})||!Ae(be)}default:throw new Error("not supported")}},[a,N,v,w,he,g,C,_,$,r,y,x,Z,D]),Be=Ga(),Ue=S.useMemo(()=>{switch(re){case"hours":{const be=(we,Ce)=>{const qe=Tp(we,he,a);ge(r.setHours(N,qe),Ce)};return{onChange:be,viewValue:r.getHours(N),children:pRe({value:K,utils:r,ampm:a,onChange:be,getClockNumberText:V.hoursClockNumberText,isDisabled:we=>Y||ve(we,"hours"),selectedId:Be})}}case"minutes":{const be=r.getMinutes(N),we=(Ce,qe)=>{ge(r.setMinutes(N,Ce),qe)};return{viewValue:be,onChange:we,children:HD({utils:r,value:be,onChange:we,getClockNumberText:V.minutesClockNumberText,isDisabled:Ce=>Y||ve(Ce,"minutes"),selectedId:Be})}}case"seconds":{const be=r.getSeconds(N),we=(Ce,qe)=>{ge(r.setSeconds(N,Ce),qe)};return{viewValue:be,onChange:we,children:HD({utils:r,value:be,onChange:we,getClockNumberText:V.secondsClockNumberText,isDisabled:Ce=>Y||ve(Ce,"seconds"),selectedId:Be})}}default:throw new Error("You must provide the type for ClockView")}},[re,r,K,a,V.hoursClockNumberText,V.minutesClockNumberText,V.secondsClockNumberText,he,ge,N,ve,Be,Y]),ze=o,He=TRe(ze);return O.jsxs(kRe,T({ref:n,className:Ie(He.root,B),ownerState:ze},J,{children:[O.jsx(lRe,T({autoFocus:s??!!G,ampmInClock:i&&D.includes("hours"),value:K,type:re,ampm:a,minutesStep:C,isTimeDisabled:ve,meridiemMode:he,handleMeridiemChange:_e,selectedId:Be,disabled:Y,readOnly:Q},Ue)),P&&O.jsx(ORe,{className:He.arrowSwitcher,slots:X,slotProps:L,onGoToPrevious:()=>le(xe),isPreviousDisabled:!xe,previousLabel:V.openPreviousView,onGoToNext:()=>le(fe),isNextDisabled:!fe,nextLabel:V.openNextView,ownerState:ze})]}))});function MRe(e){return et("MuiDigitalClock",e)}const IRe=Qe("MuiDigitalClock",["root","list","item"]),ARe=["ampm","timeStep","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","views","skipDisabled","timezone"],NRe=e=>{const{classes:t}=e;return Xe({root:["root"],list:["list"],item:["item"]},MRe,t)},jRe=de(A0,{name:"MuiDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({overflowY:"auto",width:"100%","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:e.alreadyRendered?"smooth":"auto"},maxHeight:CL})),LRe=de(cE,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),FRe=de(Mg,{name:"MuiDigitalClock",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.primary.main,e.palette.action.focusOpacity)}})),zRe=S.forwardRef(function(t,n){var r,o,a;const i=qt(),s=S.useRef(null),l=sn(n,s),c=Ke({props:t,name:"MuiDigitalClock"}),{ampm:u=i.is12HourCycleInCurrentLocale(),timeStep:f=30,autoFocus:p,components:m,componentsProps:b,slots:v,slotProps:w,value:g,defaultValue:y,referenceDate:x,disableIgnoringDatePartForTimeValidation:C=!1,maxTime:_,minTime:$,disableFuture:P,disablePast:k,minutesStep:I=1,shouldDisableClock:D,shouldDisableTime:F,onChange:U,view:G,openTo:z,onViewChange:B,focusedView:Y,onFocusedViewChange:Q,className:H,disabled:J,readOnly:X,views:L=["hours"],skipDisabled:K=!1,timezone:q}=c,R=Oe(c,ARe),{value:N,handleValueChange:V,timezone:Z}=Cd({name:"DigitalClock",timezone:q,value:g,defaultValue:y,onChange:U,valueManager:Cr}),re=Sr(),le=il(Z),xe=S.useMemo(()=>T({},c,{alreadyRendered:!!s.current}),[c]),fe=NRe(xe),ge=(r=(o=v==null?void 0:v.digitalClockItem)!=null?o:m==null?void 0:m.DigitalClockItem)!=null?r:FRe,he=zt({elementType:ge,externalSlotProps:(a=w==null?void 0:w.digitalClockItem)!=null?a:b==null?void 0:b.digitalClockItem,ownerState:{},className:fe.item}),_e=PE({value:N,referenceDate:x,utils:i,props:c,timezone:Z}),ve=mt(be=>V(be,"finish","hours")),{setValueAndGoToNextView:Be}=vh({view:G,views:L,openTo:z,onViewChange:B,onChange:ve,focusedView:Y,onFocusedViewChange:Q}),Ue=mt(be=>{Be(be,"finish")});S.useEffect(()=>{if(s.current===null)return;const be=s.current.querySelector('[role="listbox"] [role="option"][aria-selected="true"]');if(!be)return;const we=be.offsetTop;s.current.scrollTop=we-4});const ze=S.useCallback(be=>{const we=mh(C,i),Ce=()=>!($&&we($,be)||_&&we(be,_)||P&&we(be,le)||k&&we(le,be)),qe=()=>i.getMinutes(be)%I!==0||D!=null&&D(i.toJsDate(be).getTime(),"hours")?!1:F?!F(be,"hours"):!0;return!Ce()||!qe()},[C,i,$,_,P,le,k,I,D,F]),He=S.useMemo(()=>{const be=i.startOfDay(_e);return[be,...Array.from({length:Math.ceil(24*60/f)-1},(we,Ce)=>i.addMinutes(be,f*(Ce+1)))]},[_e,f,i]);return O.jsx(jRe,T({ref:l,className:Ie(fe.root,H),ownerState:xe},R,{children:O.jsx(LRe,{autoFocusItem:p||!!Y,role:"listbox","aria-label":re.timePickerToolbarTitle,className:fe.list,children:He.map(be=>{if(K&&ze(be))return null;const we=i.isEqual(be,N);return O.jsx(ge,T({onClick:()=>!X&&Ue(be),selected:we,disabled:J||ze(be),disableRipple:X,role:"option","aria-disabled":X,"aria-selected":we},he,{children:i.format(be,u?"fullTime12h":"fullTime24h")}),i.toISO(be))})})}))});function BRe(e){return et("MuiMultiSectionDigitalClock",e)}Qe("MuiMultiSectionDigitalClock",["root"]);function VRe(e){return et("MuiMultiSectionDigitalClock",e)}const URe=Qe("MuiMultiSectionDigitalClock",["root","item"]),WRe=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],HRe=e=>{const{classes:t}=e;return Xe({root:["root"],item:["item"]},VRe,t)},GRe=de(cE,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({maxHeight:CL,width:56,padding:0,overflow:"hidden","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:t.alreadyRendered?"smooth":"auto"},"&:hover":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&:after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"}})),qRe=de(Mg,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:Pf,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.primary.main,e.palette.action.focusOpacity)}})),YRe=S.forwardRef(function(t,n){var r;const o=S.useRef(null),a=sn(n,o),i=S.useRef(null),s=Ke({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:l,onChange:c,className:u,disabled:f,readOnly:p,items:m,active:b,slots:v,slotProps:w,skipDisabled:g}=s,y=Oe(s,WRe),x=S.useMemo(()=>T({},s,{alreadyRendered:!!o.current}),[s]),C=HRe(x),_=(r=v==null?void 0:v.digitalClockSectionItem)!=null?r:qRe;return S.useEffect(()=>{if(o.current===null)return;const $=o.current.querySelector('[role="option"][aria-selected="true"]');if(!$||i.current===$){i.current!==$&&(i.current=$);return}i.current=$,b&&l&&$.focus();const P=$.offsetTop;o.current.scrollTop=P-4}),O.jsx(GRe,T({ref:a,className:Ie(C.root,u),ownerState:x,autoFocusItem:l&&b,role:"listbox"},y,{children:m.map($=>{var P,k;if(g&&(P=$.isDisabled)!=null&&P.call($,$.value))return null;const I=$.isSelected($.value);return O.jsx(_,T({onClick:()=>!p&&c($.value),selected:I,disabled:f||((k=$.isDisabled)==null?void 0:k.call($,$.value)),disableRipple:p,role:"option","aria-disabled":p,"aria-label":$.ariaLabel,"aria-selected":I},w==null?void 0:w.digitalClockSectionItem,{children:$.label}),$.label)})}))}),KRe=({now:e,value:t,utils:n,ampm:r,isDisabled:o,resolveAriaLabel:a,timeStep:i})=>{const s=t?n.getHours(t):null,l=[],c=f=>s===null?!1:r?f===12?s===12||s===0:s===f||s-12===f:s===f,u=r?11:23;for(let f=0;f<=u;f+=i){let p=n.format(n.setHours(e,f),r?"hours12h":"hours24h");const m=a(parseInt(p,10).toString());p=n.formatNumber(p),l.push({value:f,label:p,isSelected:c,isDisabled:o,ariaLabel:m})}return l},JD=({value:e,isDisabled:t,timeStep:n,resolveLabel:r,resolveAriaLabel:o,hasValue:a=!0})=>{const i=s=>e===null?!1:a&&e===s;return[...Array.from({length:Math.ceil(60/n)},(s,l)=>{const c=n*l;return{value:c,label:r(c),isDisabled:t,isSelected:i,ariaLabel:o(c.toString())}})]},JRe=["ampm","timeSteps","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","skipDisabled","timezone"],ZRe=e=>{const{classes:t}=e;return Xe({root:["root"]},BRe,t)},XRe=de(A0,{name:"MuiMultiSectionDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),QRe=S.forwardRef(function(t,n){const r=qt(),o=Ke({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:a=r.is12HourCycleInCurrentLocale(),timeSteps:i,autoFocus:s,components:l,componentsProps:c,slots:u,slotProps:f,value:p,defaultValue:m,referenceDate:b,disableIgnoringDatePartForTimeValidation:v=!1,maxTime:w,minTime:g,disableFuture:y,disablePast:x,minutesStep:C=1,shouldDisableClock:_,shouldDisableTime:$,onChange:P,view:k,views:I=["hours","minutes"],openTo:D,onViewChange:F,focusedView:U,onFocusedViewChange:G,className:z,disabled:B,readOnly:Y,skipDisabled:Q=!1,timezone:H}=o,J=Oe(o,JRe),{value:X,handleValueChange:L,timezone:K}=Cd({name:"MultiSectionDigitalClock",timezone:H,value:p,defaultValue:m,onChange:P,valueManager:Cr}),q=Sr(),R=il(K),N=S.useMemo(()=>T({hours:1,minutes:5,seconds:5},i),[i]),V=PE({value:X,referenceDate:b,utils:r,props:o,timezone:K}),Z=mt((we,Ce,qe)=>L(we,Ce,qe)),re=S.useMemo(()=>!a||!I.includes("hours")||I.includes("meridiem")?I:[...I,"meridiem"],[a,I]),{view:le,setValueAndGoToView:xe,focusedView:fe}=vh({view:k,views:re,openTo:D,onViewChange:F,onChange:Z,focusedView:U,onFocusedViewChange:G}),ge=mt(we=>{xe(we,null,"meridiem")}),{meridiemMode:he,handleMeridiemChange:_e}=R0(V,a,ge,"finish"),ve=S.useCallback((we,Ce)=>{const qe=mh(v,r),rt=Ce==="hours"||Ce==="minutes"&&re.includes("seconds"),Ae=({start:Fe,end:Pe})=>!(g&&qe(g,Pe)||w&&qe(Fe,w)||y&&qe(Fe,R)||x&&qe(R,rt?Pe:Fe)),Le=(Fe,Pe=1)=>{if(Fe%Pe!==0||_!=null&&_(Fe,Ce))return!1;if($)switch(Ce){case"hours":return!$(r.setHours(V,Fe),"hours");case"minutes":return!$(r.setMinutes(V,Fe),"minutes");case"seconds":return!$(r.setSeconds(V,Fe),"seconds");default:return!1}return!0};switch(Ce){case"hours":{const Fe=Tp(we,he,a),Pe=r.setHours(V,Fe),Te=r.setSeconds(r.setMinutes(Pe,0),0),it=r.setSeconds(r.setMinutes(Pe,59),59);return!Ae({start:Te,end:it})||!Le(Fe)}case"minutes":{const Fe=r.setMinutes(V,we),Pe=r.setSeconds(Fe,0),Te=r.setSeconds(Fe,59);return!Ae({start:Pe,end:Te})||!Le(we,C)}case"seconds":{const Fe=r.setSeconds(V,we);return!Ae({start:Fe,end:Fe})||!Le(we)}default:throw new Error("not supported")}},[a,V,v,w,he,g,C,_,$,r,y,x,R,re]),Be=mt((we,Ce)=>{const qe=re.indexOf(we),rt=re[qe+1];xe(Ce,rt,we)}),Ue=S.useCallback(we=>{switch(we){case"hours":return{onChange:Ce=>{const qe=Tp(Ce,he,a);Be("hours",r.setHours(V,qe))},items:KRe({now:R,value:X,ampm:a,utils:r,isDisabled:Ce=>B||ve(Ce,"hours"),timeStep:N.hours,resolveAriaLabel:q.hoursClockNumberText})};case"minutes":return{onChange:Ce=>{Be("minutes",r.setMinutes(V,Ce))},items:JD({value:r.getMinutes(V),isDisabled:Ce=>B||ve(Ce,"minutes"),resolveLabel:Ce=>r.format(r.setMinutes(R,Ce),"minutes"),timeStep:N.minutes,hasValue:!!X,resolveAriaLabel:q.minutesClockNumberText})};case"seconds":return{onChange:Ce=>{Be("seconds",r.setSeconds(V,Ce))},items:JD({value:r.getSeconds(V),isDisabled:Ce=>B||ve(Ce,"seconds"),resolveLabel:Ce=>r.format(r.setSeconds(R,Ce),"seconds"),timeStep:N.seconds,hasValue:!!X,resolveAriaLabel:q.secondsClockNumberText})};case"meridiem":{const Ce=Fa(r,"am"),qe=Fa(r,"pm");return{onChange:_e,items:[{value:"am",label:Ce,isSelected:()=>!!X&&he==="am",ariaLabel:Ce},{value:"pm",label:qe,isSelected:()=>!!X&&he==="pm",ariaLabel:qe}]}}default:throw new Error(`Unknown view: ${we} found.`)}},[R,X,a,r,N.hours,N.minutes,N.seconds,q.hoursClockNumberText,q.minutesClockNumberText,q.secondsClockNumberText,he,Be,V,B,ve,_e]),ze=S.useMemo(()=>re.reduce((we,Ce)=>T({},we,{[Ce]:Ue(Ce)}),{}),[re,Ue]),He=o,be=ZRe(He);return O.jsx(XRe,T({ref:n,className:Ie(be.root,z),ownerState:He,role:"group"},J,{children:Object.entries(ze).map(([we,Ce])=>O.jsx(YRe,{items:Ce.items,onChange:Ce.onChange,active:le===we,autoFocus:s??fe===we,disabled:B,readOnly:Y,slots:u??l,slotProps:f??c,skipDisabled:Q,"aria-label":q.selectViewText(we)},we))}))});function eDe(e){return et("MuiPickersDay",e)}const xl=Qe("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),tDe=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],nDe=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:a,outsideCurrentMonth:i,showDaysOutsideCurrentMonth:s,classes:l}=e,c=i&&!s;return Xe({root:["root",t&&!c&&"selected",a&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",i&&s&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},eDe,l)},ML=({theme:e,ownerState:t})=>T({},e.typography.caption,{width:kp,height:kp,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${xl.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${xl.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${xl.disabled}:not(.${xl.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${xl.disabled}&.${xl.selected}`]:{opacity:.6}},!t.disableMargin&&{margin:`0 ${D0}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${xl.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),IL=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},rDe=de(xa,{name:"MuiPickersDay",slot:"Root",overridesResolver:IL})(ML),oDe=de("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:IL})(({theme:e,ownerState:t})=>T({},ML({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),ff=()=>{},aDe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:a,day:i,disabled:s=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:u,onClick:f,onDaySelect:p,onFocus:m=ff,onBlur:b=ff,onKeyDown:v=ff,onMouseDown:w=ff,onMouseEnter:g=ff,outsideCurrentMonth:y,selected:x=!1,showDaysOutsideCurrentMonth:C=!1,children:_,today:$=!1}=r,P=Oe(r,tDe),k=T({},r,{autoFocus:o,disabled:s,disableHighlightToday:l,disableMargin:c,selected:x,showDaysOutsideCurrentMonth:C,today:$}),I=nDe(k),D=qt(),F=S.useRef(null),U=sn(F,n);Kn(()=>{o&&!s&&!u&&!y&&F.current.focus()},[o,s,u,y]);const G=B=>{w(B),y&&B.preventDefault()},z=B=>{s||p(i),y&&B.currentTarget.focus(),f&&f(B)};return y&&!C?O.jsx(oDe,{className:Ie(I.root,I.hiddenDaySpacingFiller,a),ownerState:k,role:P.role}):O.jsx(rDe,T({className:Ie(I.root,a),ref:U,centerRipple:!0,disabled:s,tabIndex:x?0:-1,onKeyDown:B=>v(B,i),onFocus:B=>m(B,i),onBlur:B=>b(B,i),onMouseEnter:B=>g(B,i),onClick:z,onMouseDown:G},P,{ownerState:k,children:_||D.format(i,"dayOfMonth")}))}),iDe=S.memo(aDe);function AL(e,t,n,r){const{value:o,onError:a}=e,i=vc(),s=S.useRef(r),l=t({adapter:i,value:o,props:e});return S.useEffect(()=>{a&&!n(l,s.current)&&a(l,o),s.current=l},[n,a,s,l,o]),l}const sDe=e=>{const t=qt(),n=Sr(),r=vc(),a=nr().direction==="rtl",{valueManager:i,fieldValueManager:s,valueType:l,validator:c,internalProps:u,internalProps:{value:f,defaultValue:p,referenceDate:m,onChange:b,format:v,formatDensity:w="dense",selectedSections:g,onSelectedSectionsChange:y,shouldRespectLeadingZeros:x=!1,timezone:C}}=e,{timezone:_,value:$,handleValueChange:P}=SE({timezone:C,value:f,defaultValue:p,onChange:b,valueManager:i}),k=S.useMemo(()=>CRe(t,_),[t,_]),I=S.useCallback((R,N=null)=>s.getSectionsFromValue(t,R,N,a,V=>qD(t,_,n,v,V,w,x,a)),[s,v,n,a,x,t,w,_]),D=S.useMemo(()=>s.getValueStrFromSections(I(i.emptyValue),a),[s,I,i.emptyValue,a]),[F,U]=S.useState(()=>{const R=I($),N={sections:R,value:$,referenceValue:i.emptyValue,tempValueStrAndroid:null},V=hRe(R),Z=i.getInitialReferenceValue({referenceDate:m,value:$,utils:t,props:u,granularity:V,timezone:_});return T({},N,{referenceValue:Z})}),[G,z]=wr({controlled:g,default:null,name:"useField",state:"selectedSectionIndexes"}),B=R=>{z(R),y==null||y(R),U(N=>T({},N,{selectedSectionQuery:null}))},Y=S.useMemo(()=>{if(G==null)return null;if(G==="all")return{startIndex:0,endIndex:F.sections.length-1,shouldSelectBoundarySelectors:!0};if(typeof G=="number")return{startIndex:G,endIndex:G};if(typeof G=="string"){const R=F.sections.findIndex(N=>N.type===G);return{startIndex:R,endIndex:R}}return G},[G,F.sections]),Q=({value:R,referenceValue:N,sections:V})=>{U(re=>T({},re,{sections:V,value:R,referenceValue:N,tempValueStrAndroid:null}));const Z={validationError:c({adapter:r,value:R,props:T({},u,{value:R,timezone:_})})};P(R,Z)},H=(R,N)=>{const V=[...F.sections];return V[R]=T({},V[R],{value:N,modified:!0}),OL(V,a)},J=()=>{i.areValuesEqual(t,F.value,i.emptyValue)||Q({value:i.emptyValue,referenceValue:F.referenceValue,sections:I(i.emptyValue)})},X=()=>{if(Y==null)return;const R=F.sections[Y.startIndex];if(R.value==="")return;const N=s.getActiveDateManager(t,F,R),Z=N.getSections(F.sections).filter(fe=>fe.value!=="").length===1,re=H(Y.startIndex,""),le=Z?null:t.date(new Date("")),xe=N.getNewValuesFromNewActiveDate(le);(le!=null&&!t.isValid(le))!=(N.date!=null&&!t.isValid(N.date))?Q(T({},xe,{sections:re})):U(fe=>T({},fe,xe,{sections:re,tempValueStrAndroid:null}))},L=R=>{const N=(re,le)=>{const xe=t.parse(re,v);if(xe==null||!t.isValid(xe))return null;const fe=qD(t,_,n,v,xe,w,x,a);return KD(t,_,xe,fe,le,!1)},V=s.parseValueStr(R,F.referenceValue,N),Z=s.updateReferenceValue(t,V,F.referenceValue);Q({value:V,referenceValue:Z,sections:I(V,F.sections)})},K=({activeSection:R,newSectionValue:N,shouldGoToNextSection:V})=>{V&&Y&&Y.startIndexT({},he,fe,{sections:re,tempValueStrAndroid:null}))},q=R=>U(N=>T({},N,{tempValueStrAndroid:R}));return S.useEffect(()=>{const R=I(F.value);U(N=>T({},N,{sections:R}))},[v,t.locale]),S.useEffect(()=>{let R=!1;i.areValuesEqual(t,F.value,$)?R=i.getTimezone(t,F.value)!==i.getTimezone(t,$):R=!0,R&&U(N=>T({},N,{value:$,referenceValue:s.updateReferenceValue(t,$,N.referenceValue),sections:I($)}))},[$]),{state:F,selectedSectionIndexes:Y,setSelectedSections:B,clearValue:J,clearActiveSection:X,updateSectionValue:K,updateValueFromValueStr:L,setTempAndroidValueStr:q,sectionsValueBoundaries:k,placeholder:D,timezone:_}},lDe=5e3,Gc=e=>e.saveQuery!=null,cDe=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:r,timezone:o})=>{const a=qt(),[i,s]=S.useState(null),l=mt(()=>s(null));S.useEffect(()=>{var m;i!=null&&((m=e[i.sectionIndex])==null?void 0:m.type)!==i.sectionType&&l()},[e,i,l]),S.useEffect(()=>{if(i!=null){const m=setTimeout(()=>l(),lDe);return()=>{window.clearTimeout(m)}}return()=>{}},[i,l]);const c=({keyPressed:m,sectionIndex:b},v,w)=>{const g=m.toLowerCase(),y=e[b];if(i!=null&&(!w||w(i.value))&&i.sectionIndex===b){const C=`${i.value}${g}`,_=v(C,y);if(!Gc(_))return s({sectionIndex:b,value:C,sectionType:y.type}),_}const x=v(g,y);return Gc(x)&&!x.saveQuery?(l(),null):(s({sectionIndex:b,value:g,sectionType:y.type}),Gc(x)?null:x)},u=m=>{const b=(g,y,x)=>{const C=y.filter(_=>_.toLowerCase().startsWith(x));return C.length===0?{saveQuery:!1}:{sectionValue:C[0],shouldGoToNextSection:C.length===1}},v=(g,y,x,C)=>{const _=$=>PL(a,o,y.type,$);if(y.contentType==="letter")return b(y.format,_(y.format),g);if(x&&C!=null&&EL(a,x).contentType==="letter"){const $=_(x),P=b(x,$,g);return Gc(P)?{saveQuery:!1}:T({},P,{sectionValue:C(P.sectionValue,$)})}return{saveQuery:!1}};return c(m,(g,y)=>{switch(y.type){case"month":{const x=C=>GD(a,C,a.formats.month,y.format);return v(g,y,a.formats.month,x)}case"weekDay":{const x=(C,_)=>_.indexOf(C).toString();return v(g,y,a.formats.weekday,x)}case"meridiem":return v(g,y);default:return{saveQuery:!1}}})},f=m=>{const b=(w,g)=>{const y=+`${w}`,x=n[g.type]({currentDate:null,format:g.format,contentType:g.contentType});if(y>x.maximum)return{saveQuery:!1};if(yx.maximum||w.length===x.maximum.toString().length;return{sectionValue:kL(a,o,y,x,g),shouldGoToNextSection:C}};return c(m,(w,g)=>{if(g.contentType==="digit"||g.contentType==="digit-with-letter")return b(w,g);if(g.type==="month"){const y=DL(a,o,"digit","month","MM"),x=b(w,{type:g.type,format:"MM",hasLeadingZerosInFormat:y,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(Gc(x))return x;const C=GD(a,x.sectionValue,"MM",g.format);return T({},x,{sectionValue:C})}if(g.type==="weekDay"){const y=b(w,g);if(Gc(y))return y;const x=N0(a,o,g.format)[Number(y.sectionValue)-1];return T({},y,{sectionValue:x})}return{saveQuery:!1}},w=>!Number.isNaN(Number(w)))};return{applyCharacterEditing:mt(m=>{const b=e[m.sectionIndex],w=!Number.isNaN(Number(m.keyPressed))?f(m):u(m);w==null?r(null):t({activeSection:b,newSectionValue:w.sectionValue,shouldGoToNextSection:w.shouldGoToNextSection})}),resetCharacterQuery:l}};function tu(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const uDe=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},Ag=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?Ag(t.shadowRoot):t:null},TE="@media (pointer: fine)",dDe=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],kE=e=>{const t=qt(),{state:n,selectedSectionIndexes:r,setSelectedSections:o,clearValue:a,clearActiveSection:i,updateSectionValue:s,updateValueFromValueStr:l,setTempAndroidValueStr:c,sectionsValueBoundaries:u,placeholder:f,timezone:p}=sDe(e),{inputRef:m,internalProps:b,internalProps:{readOnly:v=!1,unstableFieldRef:w,minutesStep:g},forwardedProps:{onClick:y,onKeyDown:x,onFocus:C,onBlur:_,onMouseUp:$,onPaste:P,error:k,clearable:I,onClear:D,disabled:F},fieldValueManager:U,valueManager:G,validator:z}=e,B=Oe(e.forwardedProps,dDe),{applyCharacterEditing:Y,resetCharacterQuery:Q}=cDe({sections:n.sections,updateSectionValue:s,sectionsValueBoundaries:u,setTempAndroidValueStr:c,timezone:p}),H=S.useRef(null),J=sn(m,H),X=S.useRef(void 0),K=nr().direction==="rtl",q=S.useMemo(()=>_Re(n.sections,K),[n.sections,K]),R=()=>{var be;if(v){o(null);return}const we=(be=H.current.selectionStart)!=null?be:0;let Ce;we<=n.sections[0].startInInput||we>=n.sections[n.sections.length-1].endInInput?Ce=1:Ce=n.sections.findIndex(rt=>rt.startInInput-rt.startSeparator.length>we);const qe=Ce===-1?n.sections.length-1:Ce-1;o(qe)},N=mt((be,...we)=>{be.isDefaultPrevented()||(y==null||y(be,...we),R())}),V=mt(be=>{$==null||$(be),be.preventDefault()}),Z=mt((...be)=>{C==null||C(...be);const we=H.current;window.clearTimeout(X.current),X.current=setTimeout(()=>{!we||we!==H.current||r!=null||v||(we.value.length&&Number(we.selectionEnd)-Number(we.selectionStart)===we.value.length?o("all"):R())})}),re=mt((...be)=>{_==null||_(...be),o(null)}),le=mt(be=>{if(P==null||P(be),v){be.preventDefault();return}const we=be.clipboardData.getData("text");if(r&&r.startIndex===r.endIndex){const Ce=n.sections[r.startIndex],qe=/^[a-zA-Z]+$/.test(we),rt=/^[0-9]+$/.test(we),Ae=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(we);if(Ce.contentType==="letter"&&qe||Ce.contentType==="digit"&&rt||Ce.contentType==="digit-with-letter"&&Ae)return;if(qe||rt){be.preventDefault();return}}be.preventDefault(),Q(),l(we)}),xe=mt(be=>{if(v)return;const we=be.target.value,Ce=be.nativeEvent.data,qe=Ce&&Ce.length>1,rt=qe?Ce:we,Ae=vu(rt);if(r==null||qe){l(qe?Ce:Ae);return}let Le;if(r.startIndex===0&&r.endIndex===n.sections.length-1&&Ae.length===1)Le=Ae;else{const Fe=vu(U.getValueStrFromSections(n.sections,K));let Pe=-1,Te=-1;for(let Ne=0;Neit.end)return;const gt=Ae.length-Fe.length+it.end-vu(it.endSeparator||"").length;Le=Ae.slice(it.start+vu(it.startSeparator||"").length,gt)}if(SRe()&&Le.length===0){c(rt);return}Y({keyPressed:Le,sectionIndex:r.startIndex})}),fe=mt(be=>{switch(x==null||x(be),!0){case(be.key==="a"&&(be.ctrlKey||be.metaKey)):{be.preventDefault(),o("all");break}case be.key==="ArrowRight":{if(be.preventDefault(),r==null)o(q.startIndex);else if(r.startIndex!==r.endIndex)o(r.endIndex);else{const we=q.neighbors[r.startIndex].rightIndex;we!==null&&o(we)}break}case be.key==="ArrowLeft":{if(be.preventDefault(),r==null)o(q.endIndex);else if(r.startIndex!==r.endIndex)o(r.startIndex);else{const we=q.neighbors[r.startIndex].leftIndex;we!==null&&o(we)}break}case["Backspace","Delete"].includes(be.key):{if(be.preventDefault(),v)break;r==null||r.startIndex===0&&r.endIndex===n.sections.length-1?a():i(),Q();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(be.key):{if(be.preventDefault(),v||r==null)break;const we=n.sections[r.startIndex],Ce=U.getActiveDateManager(t,n,we),qe=gRe(t,p,we,be.key,u,Ce.date,{minutesStep:g});s({activeSection:we,newSectionValue:qe,shouldGoToNextSection:!1});break}}});Kn(()=>{if(!H.current)return;if(r==null){H.current.scrollLeft&&(H.current.scrollLeft=0);return}const be=n.sections[r.startIndex],we=n.sections[r.endIndex];let Ce=be.startInInput,qe=we.endInInput;if(r.shouldSelectBoundarySelectors&&(Ce-=be.startSeparator.length,qe+=we.endSeparator.length),Ce!==H.current.selectionStart||qe!==H.current.selectionEnd){const rt=H.current.scrollTop;H.current===Ag(document)&&H.current.setSelectionRange(Ce,qe),H.current.scrollTop=rt}});const ge=AL(T({},b,{value:n.value,timezone:p}),z,G.isSameError,G.defaultErrorState),he=S.useMemo(()=>k!==void 0?k:G.hasError(ge),[G,ge,k]);S.useEffect(()=>{!he&&!r&&Q()},[n.referenceValue,r,he]),S.useEffect(()=>(H.current&&H.current===document.activeElement&&o("all"),()=>window.clearTimeout(X.current)),[]),S.useEffect(()=>{n.tempValueStrAndroid!=null&&r!=null&&(Q(),i())},[n.tempValueStrAndroid]);const _e=S.useMemo(()=>{var be;return(be=n.tempValueStrAndroid)!=null?be:U.getValueStrFromSections(n.sections,K)},[n.sections,U,n.tempValueStrAndroid,K]),ve=S.useMemo(()=>r==null||n.sections[r.startIndex].contentType==="letter"?"text":"numeric",[r,n.sections]),Be=H.current&&H.current===Ag(document),Ue=G.areValuesEqual(t,n.value,G.emptyValue),ze=!Be&&Ue;S.useImperativeHandle(w,()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var be,we;const Ce=(be=H.current.selectionStart)!=null?be:0,qe=(we=H.current.selectionEnd)!=null?we:0;if(Ce===0&&qe===0)return null;const rt=Ce<=n.sections[0].startInInput?1:n.sections.findIndex(Ae=>Ae.startInInput-Ae.startSeparator.length>Ce);return rt===-1?n.sections.length-1:rt-1},setSelectedSections:be=>o(be)}));const He=mt((be,...we)=>{var Ce;be.preventDefault(),D==null||D(be,...we),a(),H==null||(Ce=H.current)==null||Ce.focus(),o(0)});return T({placeholder:f,autoComplete:"off",disabled:!!F},B,{value:ze?"":_e,inputMode:ve,readOnly:v,onClick:N,onFocus:Z,onBlur:re,onPaste:le,onChange:xe,onKeyDown:fe,onMouseUp:V,onClear:He,error:he,ref:J,clearable:!!(I&&!Ue&&!v&&!F)})},yh=({props:e,value:t,adapter:n})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:o,shouldDisableYear:a,disablePast:i,disableFuture:s,timezone:l}=e,c=n.utils.dateWithTimezone(void 0,l),u=Yr(n.utils,e.minDate,n.defaultDates.minDate),f=Yr(n.utils,e.maxDate,n.defaultDates.maxDate);switch(!0){case!n.utils.isValid(t):return"invalidDate";case!!(r&&r(t)):return"shouldDisableDate";case!!(o&&o(t)):return"shouldDisableMonth";case!!(a&&a(t)):return"shouldDisableYear";case!!(s&&n.utils.isAfterDay(t,c)):return"disableFuture";case!!(i&&n.utils.isBeforeDay(t,c)):return"disablePast";case!!(u&&n.utils.isBeforeDay(t,u)):return"minDate";case!!(f&&n.utils.isAfterDay(t,f)):return"maxDate";default:return null}},uC=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],dC=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],NL=["minDateTime","maxDateTime"],fDe=[...uC,...dC,...NL],$d=e=>fDe.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),pDe=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],OE=(e,t)=>{const n=T({},e),r={},o=a=>{n.hasOwnProperty(a)&&(r[a]=n[a],delete n[a])};return pDe.forEach(o),t==="date"?uC.forEach(o):t==="time"?dC.forEach(o):t==="date-time"&&(uC.forEach(o),dC.forEach(o),NL.forEach(o)),{forwardedProps:n,internalProps:r}},hDe=e=>{var t,n,r;const o=qt(),a=gc();return T({},e,{disablePast:(t=e.disablePast)!=null?t:!1,disableFuture:(n=e.disableFuture)!=null?n:!1,format:(r=e.format)!=null?r:o.formats.keyboardDate,minDate:Yr(o,e.minDate,a.minDate),maxDate:Yr(o,e.maxDate,a.maxDate)})},mDe=({props:e,inputRef:t})=>{const n=hDe(e),{forwardedProps:r,internalProps:o}=OE(n,"date");return kE({inputRef:t,forwardedProps:r,internalProps:o,valueManager:Cr,fieldValueManager:EE,validator:yh,valueType:"date"})},vDe=de(w0)({[`& .${Yf.container}`]:{outline:0},[`& .${Yf.paper}`]:{outline:0,minWidth:M0}}),gDe=de($0)({"&:first-of-type":{padding:0}});function yDe(e){var t,n;const{children:r,onDismiss:o,open:a,slots:i,slotProps:s}=e,l=(t=i==null?void 0:i.dialog)!=null?t:vDe,c=(n=i==null?void 0:i.mobileTransition)!=null?n:xd;return O.jsx(l,T({open:a,onClose:o},s==null?void 0:s.dialog,{TransitionComponent:c,TransitionProps:s==null?void 0:s.mobileTransition,PaperComponent:i==null?void 0:i.mobilePaper,PaperProps:s==null?void 0:s.mobilePaper,children:O.jsx(gDe,{children:r})}))}function bDe(e){return et("MuiPickersPopper",e)}Qe("MuiPickersPopper",["root","paper"]);const xDe="@media (prefers-reduced-motion: reduce)",Ou=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),ZD=Ou&&Ou[1]?parseInt(Ou[1],10):null,XD=Ou&&Ou[2]?parseInt(Ou[2],10):null,wDe=ZD&&ZD<10||XD&&XD<13||!1,jL=()=>dh(xDe,{defaultMatches:!1})||wDe,CDe=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],$De=e=>{const{classes:t}=e;return Xe({root:["root"],paper:["paper"]},bDe,t)},SDe=de(ch,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),_De=de(as,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>T({outline:0,transformOrigin:"top center"},e.placement.includes("top")&&{transformOrigin:"bottom center"}));function EDe(e,t){return t.documentElement.clientWidth{if(!e)return;function l(){a.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),a.current=!1}},[e]);const i=mt(l=>{if(!a.current)return;const c=r.current;r.current=!1;const u=zn(o.current);if(!o.current||"clientX"in l&&EDe(l,u))return;if(n.current){n.current=!1;return}let f;l.composedPath?f=l.composedPath().indexOf(o.current)>-1:f=!u.documentElement.contains(l.target)||o.current.contains(l.target),!f&&!c&&t(l)}),s=()=>{r.current=!0};return S.useEffect(()=>{if(e){const l=zn(o.current),c=()=>{n.current=!0};return l.addEventListener("touchstart",i),l.addEventListener("touchmove",c),()=>{l.removeEventListener("touchstart",i),l.removeEventListener("touchmove",c)}}},[e,i]),S.useEffect(()=>{if(e){const l=zn(o.current);return l.addEventListener("click",i),()=>{l.removeEventListener("click",i),r.current=!1}}},[e,i]),[o,s,s]}const TDe=S.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:a,paperSlotProps:i,paperClasses:s,onPaperClick:l,onPaperTouchStart:c}=e,u=Oe(e,CDe),f=T({},o,{placement:r}),p=zt({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:s,ownerState:f});return O.jsx(n,T({},u,p,{onClick:m=>{var b;l(m),(b=p.onClick)==null||b.call(p,m)},onTouchStart:m=>{var b;c(m),(b=p.onTouchStart)==null||b.call(p,m)},ownerState:f,children:a}))});function kDe(e){var t,n,r,o;const a=Ke({props:e,name:"MuiPickersPopper"}),{anchorEl:i,children:s,containerRef:l=null,shouldRestoreFocus:c,onBlur:u,onDismiss:f,open:p,role:m,placement:b,slots:v,slotProps:w,reduceAnimations:g}=a;S.useEffect(()=>{function J(X){p&&(X.key==="Escape"||X.key==="Esc")&&f()}return document.addEventListener("keydown",J),()=>{document.removeEventListener("keydown",J)}},[f,p]);const y=S.useRef(null);S.useEffect(()=>{m==="tooltip"||c&&!c()||(p?y.current=Ag(document):y.current&&y.current instanceof HTMLElement&&setTimeout(()=>{y.current instanceof HTMLElement&&y.current.focus()}))},[p,m,c]);const[x,C,_]=PDe(p,u??f),$=S.useRef(null),P=sn($,l),k=sn(P,x),I=a,D=$De(I),F=jL(),U=g??F,G=J=>{J.key==="Escape"&&(J.stopPropagation(),f())},z=((t=v==null?void 0:v.desktopTransition)!=null?t:U)?xd:Rg,B=(n=v==null?void 0:v.desktopTrapFocus)!=null?n:g5,Y=(r=v==null?void 0:v.desktopPaper)!=null?r:_De,Q=(o=v==null?void 0:v.popper)!=null?o:SDe,H=zt({elementType:Q,externalSlotProps:w==null?void 0:w.popper,additionalProps:{transition:!0,role:m,open:p,anchorEl:i,placement:b,onKeyDown:G},className:D.root,ownerState:a});return O.jsx(Q,T({},H,{children:({TransitionProps:J,placement:X})=>O.jsx(B,T({open:p,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:m==="tooltip",isEnabled:()=>!0},w==null?void 0:w.desktopTrapFocus,{children:O.jsx(z,T({},J,w==null?void 0:w.desktopTransition,{children:O.jsx(TDe,{PaperComponent:Y,ownerState:I,popperPlacement:X,ref:k,onPaperClick:C,onPaperTouchStart:_,paperClasses:D.paper,paperSlotProps:w==null?void 0:w.desktopPaper,children:s})}))}))}))}function LL(e){return et("MuiPickersToolbar",e)}Qe("MuiPickersToolbar",["root","content"]);const ODe=e=>{const{classes:t,isLandscape:n}=e;return Xe({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},LL,t)},RDe=de("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>T({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),DDe=de("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>{var t;return{display:"flex",flexWrap:"wrap",width:"100%",justifyContent:e.isLandscape?"flex-start":"space-between",flexDirection:e.isLandscape?(t=e.landscapeDirection)!=null?t:"column":"row",flex:1,alignItems:e.isLandscape?"flex-start":"center"}}),RE=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiPickersToolbar"}),{children:o,className:a,toolbarTitle:i,hidden:s,titleId:l}=r,c=r,u=ODe(c);return s?null:O.jsxs(RDe,{ref:n,className:Ie(u.root,a),ownerState:c,children:[O.jsx(gn,{color:"text.secondary",variant:"overline",id:l,children:i}),O.jsx(DDe,{className:u.content,ownerState:c,children:o})]})});function MDe(e){return et("MuiPickersToolbarText",e)}const QD=Qe("MuiPickersToolbarText",["root","selected"]),IDe=["className","selected","value"],ADe=e=>{const{classes:t,selected:n}=e;return Xe({root:["root",n&&"selected"]},MDe,t)},NDe=de(gn,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${QD.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${QD.selected}`]:{color:(e.vars||e).palette.text.primary}})),DE=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiPickersToolbarText"}),{className:o,value:a}=r,i=Oe(r,IDe),s=ADe(r);return O.jsx(NDe,T({ref:n,className:Ie(o,s.root),component:"span"},i,{children:a}))}),jDe=["align","className","selected","typographyClassName","value","variant","width"],LDe=e=>{const{classes:t}=e;return Xe({root:["root"]},LL,t)},FDe=de(Vo,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),jo=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiPickersToolbarButton"}),{align:o,className:a,selected:i,typographyClassName:s,value:l,variant:c,width:u}=r,f=Oe(r,jDe),p=LDe(r);return O.jsx(FDe,T({variant:"text",ref:n,className:Ie(a,p.root)},u?{sx:{width:u}}:{},f,{children:O.jsx(DE,{align:o,className:s,variant:c,value:l,selected:i})}))}),zDe=({open:e,onOpen:t,onClose:n})=>{const r=S.useRef(typeof e=="boolean").current,[o,a]=S.useState(!1);S.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");a(e)}},[r,e]);const i=S.useCallback(s=>{r||a(s),s&&t&&t(),!s&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:i}},BDe=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o}=e,a=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?a?!0:n(r.lastPublishedValue):!1},VDe=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:a}=e,i=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?i&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&a?i?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},UDe=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},WDe=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:a,onChange:i,value:s,defaultValue:l,closeOnSelect:c=r==="desktop",selectedSections:u,onSelectedSectionsChange:f,timezone:p}=e,{current:m}=S.useRef(l),{current:b}=S.useRef(s!==void 0),v=qt(),w=vc(),[g,y]=wr({controlled:u,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:x,setIsOpen:C}=zDe(e),[_,$]=S.useState(()=>{let Z;return s!==void 0?Z=s:m!==void 0?Z=m:Z=t.emptyValue,{draft:Z,lastPublishedValue:Z,lastCommittedValue:Z,lastControlledValue:s,hasBeenModifiedSinceMount:!1}}),{timezone:P,handleValueChange:k}=SE({timezone:p,value:s,defaultValue:m,onChange:i,valueManager:t});AL(T({},e,{value:_.draft,timezone:P}),o,t.isSameError,t.defaultErrorState);const I=mt(Z=>{const re={action:Z,dateState:_,hasChanged:ge=>!t.areValuesEqual(v,Z.value,ge),isControlled:b,closeOnSelect:c},le=BDe(re),xe=VDe(re),fe=UDe(re);if($(ge=>T({},ge,{draft:Z.value,lastPublishedValue:le?Z.value:ge.lastPublishedValue,lastCommittedValue:xe?Z.value:ge.lastCommittedValue,hasBeenModifiedSinceMount:!0})),le){const he={validationError:Z.name==="setValueFromField"?Z.context.validationError:o({adapter:w,value:Z.value,props:T({},e,{value:Z.value,timezone:P})})};Z.name==="setValueFromShortcut"&&Z.shortcut!=null&&(he.shortcut=Z.shortcut),k(Z.value,he)}xe&&a&&a(Z.value),fe&&C(!1)});if(s!==void 0&&(_.lastControlledValue===void 0||!t.areValuesEqual(v,_.lastControlledValue,s))){const Z=t.areValuesEqual(v,_.draft,s);$(re=>T({},re,{lastControlledValue:s},Z?{}:{lastCommittedValue:s,lastPublishedValue:s,draft:s,hasBeenModifiedSinceMount:!0}))}const D=mt(()=>{I({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),F=mt(()=>{I({value:_.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),U=mt(()=>{I({value:_.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),G=mt(()=>{I({value:_.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),z=mt(()=>{I({value:t.getTodayValue(v,P,n),name:"setValueFromAction",pickerAction:"today"})}),B=mt(()=>C(!0)),Y=mt(()=>C(!1)),Q=mt((Z,re="partial")=>I({name:"setValueFromView",value:Z,selectionState:re})),H=mt((Z,re,le)=>I({name:"setValueFromShortcut",value:Z,changeImportance:re??"accept",shortcut:le})),J=mt((Z,re)=>I({name:"setValueFromField",value:Z,context:re})),X=mt(Z=>{y(Z),f==null||f(Z)}),L={onClear:D,onAccept:F,onDismiss:U,onCancel:G,onSetToday:z,onOpen:B,onClose:Y},K={value:_.draft,onChange:J,selectedSections:g,onSelectedSectionsChange:X},q=S.useMemo(()=>t.cleanValue(v,_.draft),[v,t,_.draft]),R={value:q,onChange:Q,onClose:Y,open:x,onSelectedSectionsChange:X},V=T({},L,{value:q,onChange:Q,onSelectShortcut:H,isValid:Z=>{const re=o({adapter:w,value:Z,props:T({},e,{value:Z,timezone:P})});return!t.hasError(re)}});return{open:x,fieldProps:K,viewProps:R,layoutProps:V,actions:L}},HDe=["className","sx"],GDe=({props:e,propsFromPickerValue:t,additionalViewProps:n,inputRef:r,autoFocusView:o})=>{const{onChange:a,open:i,onSelectedSectionsChange:s,onClose:l}=t,{views:c,openTo:u,onViewChange:f,disableOpenPicker:p,viewRenderers:m,timezone:b}=e,v=Oe(e,HDe),{view:w,setView:g,defaultView:y,focusedView:x,setFocusedView:C,setValueAndGoToNextView:_}=vh({view:void 0,views:c,openTo:u,onChange:a,onViewChange:f,autoFocus:o}),{hasUIView:$,viewModeLookup:P}=S.useMemo(()=>c.reduce((z,B)=>{let Y;return p?Y="field":m[B]!=null?Y="UI":Y="field",z.viewModeLookup[B]=Y,Y==="UI"&&(z.hasUIView=!0),z},{hasUIView:!1,viewModeLookup:{}}),[p,m,c]),k=S.useMemo(()=>c.reduce((z,B)=>m[B]!=null&&Ku(B)?z+1:z,0),[m,c]),I=P[w],D=mt(()=>I==="UI"),[F,U]=S.useState(I==="UI"?w:null);return F!==w&&P[w]==="UI"&&U(w),Kn(()=>{I==="field"&&i&&(l(),setTimeout(()=>{r==null||r.current.focus(),s(w)}))},[w]),Kn(()=>{if(!i)return;let z=w;I==="field"&&F!=null&&(z=F),z!==y&&P[z]==="UI"&&P[y]==="UI"&&(z=y),z!==w&&g(z),C(z,!0)},[i]),{hasUIView:$,shouldRestoreFocus:D,layoutProps:{views:c,view:F,onViewChange:g},renderCurrentView:()=>{if(F==null)return null;const z=m[F];return z==null?null:z(T({},v,n,t,{views:c,timezone:b,onChange:_,view:F,onViewChange:g,focusedView:x,onFocusedViewChange:C,showViewSwitcher:k>1,timeViewsCount:k}))}}};function eM(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const qDe=(e,t)=>{const[n,r]=S.useState(eM);return Kn(()=>{const a=()=>{r(eM())};return window.addEventListener("orientationchange",a),()=>{window.removeEventListener("orientationchange",a)}},[]),tu(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},YDe=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,a=qDe(n.views,o);return{layoutProps:T({},n,t,{isLandscape:a,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},FL=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(` -`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}};FL(["The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const zL=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:o,additionalViewProps:a,validator:i,autoFocusView:s})=>{const l=WDe({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i}),c=GDe({props:e,inputRef:o,additionalViewProps:a,autoFocusView:s,propsFromPickerValue:l.viewProps}),u=YDe({props:e,wrapperVariant:r,propsFromPickerValue:l.layoutProps,propsFromPickerViews:c.layoutProps});return{open:l.open,actions:l.actions,fieldProps:l.fieldProps,renderCurrentView:c.renderCurrentView,hasUIView:c.hasUIView,shouldRestoreFocus:c.shouldRestoreFocus,layoutProps:u.layoutProps}};function BL(e){return et("MuiPickersLayout",e)}const gx=Qe("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","shortcuts"]),KDe=["onAccept","onClear","onCancel","onSetToday","actions"];function JDe(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:a}=e,i=Oe(e,KDe),s=Sr();if(a==null||a.length===0)return null;const l=a==null?void 0:a.map(c=>{switch(c){case"clear":return O.jsx(Vo,{onClick:n,children:s.clearButtonLabel},c);case"cancel":return O.jsx(Vo,{onClick:r,children:s.cancelButtonLabel},c);case"accept":return O.jsx(Vo,{onClick:t,children:s.okButtonLabel},c);case"today":return O.jsx(Vo,{onClick:o,children:s.todayButtonLabel},c);default:return null}});return O.jsx(C0,T({},i,{children:l}))}const ZDe=["items","changeImportance","isLandscape","onChange","isValid"],XDe=["getValue"];function QDe(e){const{items:t,changeImportance:n,onChange:r,isValid:o}=e,a=Oe(e,ZDe);if(t==null||t.length===0)return null;const i=t.map(s=>{let{getValue:l}=s,c=Oe(s,XDe);const u=l({isValid:o});return{label:c.label,onClick:()=>{r(u,n,c)},disabled:!o(u)}});return O.jsx(lE,T({dense:!0,sx:[{maxHeight:I0,maxWidth:200,overflow:"auto"},...Array.isArray(a.sx)?a.sx:[a.sx]]},a,{children:i.map(s=>O.jsx(K5,{children:O.jsx(O5,T({},s))},s.label))}))}function eMe(e){return e.view!==null}const tMe=e=>{const{classes:t,isLandscape:n}=e;return Xe({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},BL,t)},nMe=e=>{var t,n;const{wrapperVariant:r,onAccept:o,onClear:a,onCancel:i,onSetToday:s,view:l,views:c,onViewChange:u,value:f,onChange:p,onSelectShortcut:m,isValid:b,isLandscape:v,disabled:w,readOnly:g,children:y,components:x,componentsProps:C,slots:_,slotProps:$}=e,P=_??gh(x),k=$??C,I=tMe(e),D=(t=P==null?void 0:P.actionBar)!=null?t:JDe,F=zt({elementType:D,externalSlotProps:k==null?void 0:k.actionBar,additionalProps:{onAccept:o,onClear:a,onCancel:i,onSetToday:s,actions:r==="desktop"?[]:["cancel","accept"],className:I.actionBar},ownerState:T({},e,{wrapperVariant:r})}),U=O.jsx(D,T({},F)),G=P==null?void 0:P.toolbar,z=zt({elementType:G,externalSlotProps:k==null?void 0:k.toolbar,additionalProps:{isLandscape:v,onChange:p,value:f,view:l,onViewChange:u,views:c,disabled:w,readOnly:g,className:I.toolbar},ownerState:T({},e,{wrapperVariant:r})}),B=eMe(z)&&G?O.jsx(G,T({},z)):null,Y=y,Q=P==null?void 0:P.tabs,H=l&&Q?O.jsx(Q,T({view:l,onViewChange:u},k==null?void 0:k.tabs)):null,J=(n=P==null?void 0:P.shortcuts)!=null?n:QDe,X=zt({elementType:J,externalSlotProps:k==null?void 0:k.shortcuts,additionalProps:{isValid:b,isLandscape:v,onChange:m,className:I.shortcuts},ownerState:{isValid:b,isLandscape:v,onChange:m,className:I.shortcuts,wrapperVariant:r}}),L=l&&J?O.jsx(J,T({},X)):null;return{toolbar:B,content:Y,tabs:H,actionBar:U,shortcuts:L}},rMe=nMe,oMe=e=>{const{isLandscape:t,classes:n}=e;return Xe({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},BL,n)},VL=de("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${gx.toolbar}`]:t.isLandscape?{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${gx.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${gx.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));VL.propTypes={as:j.elementType,ownerState:j.shape({isLandscape:j.bool.isRequired}).isRequired,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object])};const aMe=de("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),UL=function(t){const n=Ke({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:o,tabs:a,actionBar:i,shortcuts:s}=rMe(n),{sx:l,className:c,isLandscape:u,ref:f,wrapperVariant:p}=n,m=n,b=oMe(m);return O.jsxs(VL,{ref:f,sx:l,className:Ie(c,b.root),ownerState:m,children:[u?s:r,u?r:s,O.jsx(aMe,{className:b.contentWrapper,children:p==="desktop"?O.jsxs(S.Fragment,{children:[o,a]}):O.jsxs(S.Fragment,{children:[a,o]})}),i]})},j0=({adapter:e,value:t,props:n})=>{if(t===null)return null;const{minTime:r,maxTime:o,minutesStep:a,shouldDisableClock:i,shouldDisableTime:s,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:c,disableFuture:u,timezone:f}=n,p=e.utils.dateWithTimezone(void 0,f),m=mh(l,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(r&&m(r,t)):return"minTime";case!!(o&&m(t,o)):return"maxTime";case!!(u&&e.utils.isAfter(t,p)):return"disableFuture";case!!(c&&e.utils.isBefore(t,p)):return"disablePast";case!!(s&&s(t,"hours")):return"shouldDisableTime-hours";case!!(s&&s(t,"minutes")):return"shouldDisableTime-minutes";case!!(s&&s(t,"seconds")):return"shouldDisableTime-seconds";case!!(i&&i(e.utils.getHours(t),"hours")):return"shouldDisableClock-hours";case!!(i&&i(e.utils.getMinutes(t),"minutes")):return"shouldDisableClock-minutes";case!!(i&&i(e.utils.getSeconds(t),"seconds")):return"shouldDisableClock-seconds";case!!(a&&e.utils.getMinutes(t)%a!==0):return"minutesStep";default:return null}},ME=({props:e,value:t,adapter:n})=>{const r=yh({adapter:n,value:t,props:e});return r!==null?r:j0({adapter:n,value:t,props:e})},iMe=e=>et("MuiPickersSlideTransition",e),sa=Qe("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),sMe=["children","className","reduceAnimations","slideDirection","transKey","classes"],lMe=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Xe(r,iMe,t)},cMe=de(Y_,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${sa["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${sa["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${sa.slideEnterActive}`]:t.slideEnterActive},{[`.${sa.slideExit}`]:t.slideExit},{[`.${sa["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${sa["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${sa["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${sa["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${sa.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${sa.slideExit}`]:{transform:"translate(0%)"},[`& .${sa["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${sa["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function uMe(e){const t=Ke({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:a}=t,i=Oe(t,sMe),s=lMe(t),l=nr();if(o)return O.jsx("div",{className:Ie(s.root,r),children:n});const c={exit:s.exit,enterActive:s.enterActive,enter:s.enter,exitActive:s.exitActive};return O.jsx(cMe,{className:Ie(s.root,r),childFactory:u=>S.cloneElement(u,{classNames:c}),role:"presentation",children:O.jsx(Aye,T({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},i,{children:n}),a)})}const WL=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:a,disablePast:i,timezone:s})=>{const l=vc();return S.useCallback(c=>yh({adapter:l,value:c,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:a,disablePast:i,timezone:s}})!==null,[l,e,t,n,r,o,a,i,s])},dMe=e=>et("MuiDayCalendar",e);Qe("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const fMe=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],pMe=["ownerState"],hMe=e=>{const{classes:t}=e;return Xe({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},dMe,t)},HL=(kp+D0*2)*6,mMe=de("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),vMe=de("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),gMe=de(gn,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),yMe=de(gn,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),bMe=de(gn,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>T({},e.typography.caption,{width:kp,height:kp,padding:0,margin:`0 ${D0}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),xMe=de("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:HL}),wMe=de(uMe,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:HL}),CMe=de("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),$Me=de("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${D0}px 0`,display:"flex",justifyContent:"center"});function SMe(e){var t,n,r;let{parentProps:o,day:a,focusableDay:i,selectedDays:s,isDateDisabled:l,currentMonthNumber:c,isViewFocused:u}=e,f=Oe(e,fMe);const{disabled:p,disableHighlightToday:m,isMonthSwitchingAnimating:b,showDaysOutsideCurrentMonth:v,components:w,componentsProps:g,slots:y,slotProps:x,timezone:C}=o,_=qt(),$=il(C),P=i!==null&&_.isSameDay(a,i),k=s.some(Q=>_.isSameDay(Q,a)),I=_.isSameDay(a,$),D=(t=(n=y==null?void 0:y.day)!=null?n:w==null?void 0:w.Day)!=null?t:iDe,F=zt({elementType:D,externalSlotProps:(r=x==null?void 0:x.day)!=null?r:g==null?void 0:g.day,additionalProps:T({disableHighlightToday:m,showDaysOutsideCurrentMonth:v,role:"gridcell",isAnimating:b,"data-timestamp":_.toJsDate(a).valueOf()},f),ownerState:T({},o,{day:a,selected:k})}),U=Oe(F,pMe),G=S.useMemo(()=>p||l(a),[p,l,a]),z=S.useMemo(()=>_.getMonth(a)!==c,[_,a,c]),B=S.useMemo(()=>{const Q=_.startOfMonth(_.setMonth(a,c));return v?_.isSameDay(a,_.startOfWeek(Q)):_.isSameDay(a,Q)},[c,a,v,_]),Y=S.useMemo(()=>{const Q=_.endOfMonth(_.setMonth(a,c));return v?_.isSameDay(a,_.endOfWeek(Q)):_.isSameDay(a,Q)},[c,a,v,_]);return O.jsx(D,T({},U,{day:a,disabled:G,autoFocus:u&&P,today:I,outsideCurrentMonth:z,isFirstVisibleCell:B,isLastVisibleCell:Y,selected:k,tabIndex:P?0:-1,"aria-selected":k,"aria-current":I?"date":void 0}))}function _Me(e){const t=Ke({props:e,name:"MuiDayCalendar"}),{onFocusedDayChange:n,className:r,currentMonth:o,selectedDays:a,focusedDay:i,loading:s,onSelectedDaysChange:l,onMonthSwitchingAnimationEnd:c,readOnly:u,reduceAnimations:f,renderLoading:p=()=>O.jsx("span",{children:"..."}),slideDirection:m,TransitionProps:b,disablePast:v,disableFuture:w,minDate:g,maxDate:y,shouldDisableDate:x,shouldDisableMonth:C,shouldDisableYear:_,dayOfWeekFormatter:$,hasFocus:P,onFocusedViewChange:k,gridLabelId:I,displayWeekNumber:D,fixedWeekNumber:F,autoFocus:U,timezone:G}=t,z=il(G),B=qt(),Y=hMe(t),H=nr().direction==="rtl",J=$||((ze,He)=>B.format(He,"weekdayShort").charAt(0).toUpperCase()),X=WL({shouldDisableDate:x,shouldDisableMonth:C,shouldDisableYear:_,minDate:g,maxDate:y,disablePast:v,disableFuture:w,timezone:G}),L=Sr(),[K,q]=wr({name:"DayCalendar",state:"hasFocus",controlled:P,default:U??!1}),[R,N]=S.useState(()=>i||z),V=mt(ze=>{u||l(ze)}),Z=ze=>{X(ze)||(n(ze),N(ze),k==null||k(!0),q(!0))},re=mt((ze,He)=>{switch(ze.key){case"ArrowUp":Z(B.addDays(He,-7)),ze.preventDefault();break;case"ArrowDown":Z(B.addDays(He,7)),ze.preventDefault();break;case"ArrowLeft":{const be=B.addDays(He,H?1:-1),we=B.addMonths(He,H?1:-1),Ce=Jf({utils:B,date:be,minDate:H?be:B.startOfMonth(we),maxDate:H?B.endOfMonth(we):be,isDateDisabled:X,timezone:G});Z(Ce||be),ze.preventDefault();break}case"ArrowRight":{const be=B.addDays(He,H?-1:1),we=B.addMonths(He,H?-1:1),Ce=Jf({utils:B,date:be,minDate:H?B.startOfMonth(we):be,maxDate:H?be:B.endOfMonth(we),isDateDisabled:X,timezone:G});Z(Ce||be),ze.preventDefault();break}case"Home":Z(B.startOfWeek(He)),ze.preventDefault();break;case"End":Z(B.endOfWeek(He)),ze.preventDefault();break;case"PageUp":Z(B.addMonths(He,1)),ze.preventDefault();break;case"PageDown":Z(B.addMonths(He,-1)),ze.preventDefault();break}}),le=mt((ze,He)=>Z(He)),xe=mt((ze,He)=>{K&&B.isSameDay(R,He)&&(k==null||k(!1))}),fe=B.getMonth(o),ge=S.useMemo(()=>a.filter(ze=>!!ze).map(ze=>B.startOfDay(ze)),[B,a]),he=fe,_e=S.useMemo(()=>S.createRef(),[he]),ve=B.startOfWeek(z),Be=S.useMemo(()=>{const ze=B.startOfMonth(o),He=B.endOfMonth(o);return X(R)||B.isAfterDay(R,He)||B.isBeforeDay(R,ze)?Jf({utils:B,date:R,minDate:ze,maxDate:He,disablePast:v,disableFuture:w,isDateDisabled:X,timezone:G}):R},[o,w,v,R,X,B,G]),Ue=S.useMemo(()=>{const ze=B.setTimezone(o,G),He=B.getWeekArray(ze);let be=B.addMonths(ze,1);for(;F&&He.length{He.length{var be;const we=B.format(ze,"weekdayShort").slice(0,2);return O.jsx(gMe,{variant:"caption",role:"columnheader","aria-label":B.format(B.addDays(ve,He),"weekday"),className:Y.weekDayLabel,children:(be=J==null?void 0:J(we,ze))!=null?be:we},we+He.toString())})]}),s?O.jsx(xMe,{className:Y.loadingContainer,children:p()}):O.jsx(wMe,T({transKey:he,onExited:c,reduceAnimations:f,slideDirection:m,className:Ie(r,Y.slideTransition)},b,{nodeRef:_e,children:O.jsx(CMe,{ref:_e,role:"rowgroup",className:Y.monthContainer,children:Ue.map((ze,He)=>O.jsxs($Me,{role:"row",className:Y.weekContainer,"aria-rowindex":He+1,children:[D&&O.jsx(bMe,{className:Y.weekNumber,role:"rowheader","aria-label":L.calendarWeekNumberAriaLabelText(B.getWeekNumber(ze[0])),children:L.calendarWeekNumberText(B.getWeekNumber(ze[0]))}),ze.map((be,we)=>O.jsx(SMe,{parentProps:t,day:be,selectedDays:ge,focusableDay:Be,onKeyDown:re,onFocus:le,onBlur:xe,onDaySelect:V,isDateDisabled:X,currentMonthNumber:fe,isViewFocused:K,"aria-colindex":we+1},be.toString()))]},`week-${ze[0]}`))})}))]})}const EMe=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return T({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return T({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const a=o.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return T({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:a&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:a?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},PMe=e=>{const{value:t,referenceDate:n,defaultCalendarMonth:r,disableFuture:o,disablePast:a,disableSwitchToMonthOnDayFocus:i=!1,maxDate:s,minDate:l,onMonthChange:c,reduceAnimations:u,shouldDisableDate:f,timezone:p}=e,m=il(p),b=qt(),v=S.useRef(EMe(!!u,i,b)).current,w=S.useMemo(()=>{let k=null;return n?k=n:r&&(k=b.startOfMonth(r)),Cr.getInitialReferenceValue({value:t,utils:b,timezone:p,props:e,referenceDate:k,granularity:Ia.day})},[]),[g,y]=S.useReducer(v,{isMonthSwitchingAnimating:!1,focusedDay:t||m,currentMonth:b.startOfMonth(w),slideDirection:"left"}),x=S.useCallback(k=>{y(T({type:"changeMonth"},k)),c&&c(k.newMonth)},[c]),C=S.useCallback(k=>{const I=k;b.isSameMonth(I,g.currentMonth)||x({newMonth:b.startOfMonth(I),direction:b.isAfterDay(I,g.currentMonth)?"left":"right"})},[g.currentMonth,x,b]),_=WL({shouldDisableDate:f,minDate:l,maxDate:s,disableFuture:o,disablePast:a,timezone:p}),$=S.useCallback(()=>{y({type:"finishMonthSwitchingAnimation"})},[]),P=mt((k,I)=>{_(k)||y({type:"changeFocusedDay",focusedDay:k,withoutMonthSwitchingAnimation:I})});return{referenceDate:w,calendarState:g,changeMonth:C,changeFocusedDay:P,isDateDisabled:_,onMonthSwitchingAnimationEnd:$,handleChangeMonth:x}},TMe=["ownerState"],IE=({clearable:e,fieldProps:t,InputProps:n,onClear:r,slots:o,slotProps:a,components:i,componentsProps:s})=>{var l,c,u,f,p,m;const b=Sr(),v=(l=(c=o==null?void 0:o.clearButton)!=null?c:i==null?void 0:i.ClearButton)!=null?l:tr,w=zt({elementType:v,externalSlotProps:(u=a==null?void 0:a.clearButton)!=null?u:s==null?void 0:s.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:b.fieldClearLabel}}),g=Oe(w,TMe),y=(f=(p=o==null?void 0:o.clearIcon)!=null?p:i==null?void 0:i.ClearIcon)!=null?f:SOe,x=zt({elementType:y,externalSlotProps:(m=a==null?void 0:a.clearIcon)!=null?m:s==null?void 0:s.clearIcon,ownerState:{}}),C=T({},n,{endAdornment:e?O.jsxs(S.Fragment,{children:[O.jsx(sE,{position:"end",sx:{marginRight:n!=null&&n.endAdornment?-1:-1.5},children:O.jsx(v,T({},g,{onClick:r,children:O.jsx(y,T({fontSize:"small"},x))}))}),n==null?void 0:n.endAdornment]}):n==null?void 0:n.endAdornment}),_=T({},t,{sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(t.sx)?t.sx:[t.sx]]});return{InputProps:C,fieldProps:_}},kMe=["components","componentsProps","slots","slotProps","InputProps","inputProps"],OMe=["inputRef"],RMe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],GL=S.forwardRef(function(t,n){var r,o,a;const i=Ke({props:t,name:"MuiDateField"}),{components:s,componentsProps:l,slots:c,slotProps:u,InputProps:f,inputProps:p}=i,m=Oe(i,kMe),b=i,v=(r=(o=c==null?void 0:c.textField)!=null?o:s==null?void 0:s.TextField)!=null?r:ph,w=zt({elementType:v,externalSlotProps:(a=u==null?void 0:u.textField)!=null?a:l==null?void 0:l.textField,externalForwardedProps:m,ownerState:b}),{inputRef:g}=w,y=Oe(w,OMe);y.inputProps=T({},p,y.inputProps),y.InputProps=T({},f,y.InputProps);const x=mDe({props:y,inputRef:g}),{ref:C,onPaste:_,onKeyDown:$,inputMode:P,readOnly:k,clearable:I,onClear:D}=x,F=Oe(x,RMe),{InputProps:U,fieldProps:G}=IE({onClear:D,clearable:I,fieldProps:F,InputProps:F.InputProps,slots:c,slotProps:u,components:s,componentsProps:l});return O.jsx(v,T({ref:n},G,{InputProps:T({},U,{readOnly:k}),inputProps:T({},F.inputProps,{inputMode:P,onPaste:_,onKeyDown:$,ref:C})}))}),DMe=e=>{var t,n,r,o;const a=qt(),s=((t=e.ampm)!=null?t:a.is12HourCycleInCurrentLocale())?a.formats.fullTime12h:a.formats.fullTime24h;return T({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(o=e.format)!=null?o:s})},MMe=({props:e,inputRef:t})=>{const n=DMe(e),{forwardedProps:r,internalProps:o}=OE(n,"time");return kE({inputRef:t,forwardedProps:r,internalProps:o,valueManager:Cr,fieldValueManager:EE,validator:j0,valueType:"time"})},IMe=["slots","slotProps","components","componentsProps","InputProps","inputProps"],AMe=["inputRef"],NMe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],qL=S.forwardRef(function(t,n){var r,o,a;const i=Ke({props:t,name:"MuiTimeField"}),{slots:s,slotProps:l,components:c,componentsProps:u,InputProps:f,inputProps:p}=i,m=Oe(i,IMe),b=i,v=(r=(o=s==null?void 0:s.textField)!=null?o:c==null?void 0:c.TextField)!=null?r:ph,w=zt({elementType:v,externalSlotProps:(a=l==null?void 0:l.textField)!=null?a:u==null?void 0:u.textField,externalForwardedProps:m,ownerState:b}),{inputRef:g}=w,y=Oe(w,AMe);y.inputProps=T({},p,y.inputProps),y.InputProps=T({},f,y.InputProps);const x=MMe({props:y,inputRef:g}),{ref:C,onPaste:_,onKeyDown:$,inputMode:P,readOnly:k,clearable:I,onClear:D}=x,F=Oe(x,NMe),{InputProps:U,fieldProps:G}=IE({onClear:D,clearable:I,fieldProps:F,InputProps:F.InputProps,slots:s,slotProps:l,components:c,componentsProps:u});return O.jsx(v,T({ref:n},G,{InputProps:T({},U,{readOnly:k}),inputProps:T({},F.inputProps,{inputMode:P,onPaste:_,onKeyDown:$,ref:C})}))}),jMe=e=>{var t,n,r,o,a,i,s,l;const c=qt(),u=gc(),p=((t=e.ampm)!=null?t:c.is12HourCycleInCurrentLocale())?c.formats.keyboardDateTime12h:c.formats.keyboardDateTime24h;return T({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(o=e.format)!=null?o:p,disableIgnoringDatePartForTimeValidation:!!(e.minDateTime||e.maxDateTime),minDate:Yr(c,(a=e.minDateTime)!=null?a:e.minDate,u.minDate),maxDate:Yr(c,(i=e.maxDateTime)!=null?i:e.maxDate,u.maxDate),minTime:(s=e.minDateTime)!=null?s:e.minTime,maxTime:(l=e.maxDateTime)!=null?l:e.maxTime})},LMe=({props:e,inputRef:t})=>{const n=jMe(e),{forwardedProps:r,internalProps:o}=OE(n,"date-time");return kE({inputRef:t,forwardedProps:r,internalProps:o,valueManager:Cr,fieldValueManager:EE,validator:ME,valueType:"date-time"})},FMe=["components","componentsProps","slots","slotProps","InputProps","inputProps"],zMe=["inputRef"],BMe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],YL=S.forwardRef(function(t,n){var r,o,a;const i=Ke({props:t,name:"MuiDateTimeField"}),{components:s,componentsProps:l,slots:c,slotProps:u,InputProps:f,inputProps:p}=i,m=Oe(i,FMe),b=i,v=(r=(o=c==null?void 0:c.textField)!=null?o:s==null?void 0:s.TextField)!=null?r:ph,w=zt({elementType:v,externalSlotProps:(a=u==null?void 0:u.textField)!=null?a:l==null?void 0:l.textField,externalForwardedProps:m,ownerState:b}),{inputRef:g}=w,y=Oe(w,zMe);y.inputProps=T({},p,y.inputProps),y.InputProps=T({},f,y.InputProps);const x=LMe({props:y,inputRef:g}),{ref:C,onPaste:_,onKeyDown:$,inputMode:P,readOnly:k,clearable:I,onClear:D}=x,F=Oe(x,BMe),{InputProps:U,fieldProps:G}=IE({onClear:D,clearable:I,fieldProps:F,InputProps:F.InputProps,slots:c,slotProps:u,components:s,componentsProps:l});return O.jsx(v,T({ref:n},G,{InputProps:T({},U,{readOnly:k}),inputProps:T({},F.inputProps,{inputMode:P,onPaste:_,onKeyDown:$,ref:C})}))}),VMe=e=>et("MuiPickersFadeTransitionGroup",e);Qe("MuiPickersFadeTransitionGroup",["root"]);const UMe=e=>{const{classes:t}=e;return Xe({root:["root"]},VMe,t)},WMe=de(Y_,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function KL(e){const t=Ke({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:a}=t,i=UMe(t),s=nr();return o?n:O.jsx(WMe,{className:Ie(i.root,r),children:O.jsx(xd,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:s.transitions.duration.enteringScreen,enter:s.transitions.duration.enteringScreen,exit:0},children:n},a)})}function HMe(e){return et("MuiPickersMonth",e)}const Jm=Qe("MuiPickersMonth",["root","monthButton","disabled","selected"]),GMe=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],qMe=e=>{const{disabled:t,selected:n,classes:r}=e;return Xe({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},HMe,r)},YMe=de("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.monthsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),KMe=de("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Jm.disabled}`]:t.disabled},{[`&.${Jm.selected}`]:t.selected}]})(({theme:e})=>T({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Jm.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Jm.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),JMe=S.memo(function(t){const n=Ke({props:t,name:"MuiPickersMonth"}),{autoFocus:r,children:o,disabled:a,selected:i,value:s,tabIndex:l,onClick:c,onKeyDown:u,onFocus:f,onBlur:p,"aria-current":m,"aria-label":b}=n,v=Oe(n,GMe),w=S.useRef(null),g=qMe(n);return Kn(()=>{if(r){var y;(y=w.current)==null||y.focus()}},[r]),O.jsx(YMe,T({className:g.root,ownerState:n},v,{children:O.jsx(KMe,{ref:w,disabled:a,type:"button",role:"radio",tabIndex:a?-1:l,"aria-current":m,"aria-checked":i,"aria-label":b,onClick:y=>c(y,s),onKeyDown:y=>u(y,s),onFocus:y=>f(y,s),onBlur:y=>p(y,s),className:g.monthButton,ownerState:n,children:o})}))});function ZMe(e){return et("MuiMonthCalendar",e)}Qe("MuiMonthCalendar",["root"]);const XMe=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"],QMe=e=>{const{classes:t}=e;return Xe({root:["root"]},ZMe,t)};function eIe(e,t){const n=qt(),r=gc(),o=Ke({props:e,name:t});return T({disableFuture:!1,disablePast:!1},o,{minDate:Yr(n,o.minDate,r.minDate),maxDate:Yr(n,o.maxDate,r.maxDate)})}const tIe=de("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:M0,boxSizing:"border-box"}),nIe=S.forwardRef(function(t,n){const r=eIe(t,"MuiMonthCalendar"),{className:o,value:a,defaultValue:i,referenceDate:s,disabled:l,disableFuture:c,disablePast:u,maxDate:f,minDate:p,onChange:m,shouldDisableMonth:b,readOnly:v,disableHighlightToday:w,autoFocus:g=!1,onMonthFocus:y,hasFocus:x,onFocusedViewChange:C,monthsPerRow:_=3,timezone:$,gridLabelId:P}=r,k=Oe(r,XMe),{value:I,handleValueChange:D,timezone:F}=Cd({name:"MonthCalendar",timezone:$,value:a,defaultValue:i,onChange:m,valueManager:Cr}),U=il(F),G=ih(),z=qt(),B=S.useMemo(()=>Cr.getInitialReferenceValue({value:I,utils:z,props:r,timezone:F,referenceDate:s,granularity:Ia.month}),[]),Y=r,Q=QMe(Y),H=S.useMemo(()=>z.getMonth(U),[z,U]),J=S.useMemo(()=>I!=null?z.getMonth(I):w?null:z.getMonth(B),[I,z,w,B]),[X,L]=S.useState(()=>J||H),[K,q]=wr({name:"MonthCalendar",state:"hasFocus",controlled:x,default:g??!1}),R=mt(fe=>{q(fe),C&&C(fe)}),N=S.useCallback(fe=>{const ge=z.startOfMonth(u&&z.isAfter(U,p)?U:p),he=z.startOfMonth(c&&z.isBefore(U,f)?U:f),_e=z.startOfMonth(fe);return z.isBefore(_e,ge)||z.isAfter(_e,he)?!0:b?b(_e):!1},[c,u,f,p,U,b,z]),V=mt((fe,ge)=>{if(v)return;const he=z.setMonth(I??B,ge);D(he)}),Z=mt(fe=>{N(z.setMonth(I??B,fe))||(L(fe),R(!0),y&&y(fe))});S.useEffect(()=>{L(fe=>J!==null&&fe!==J?J:fe)},[J]);const re=mt((fe,ge)=>{switch(fe.key){case"ArrowUp":Z((12+ge-3)%12),fe.preventDefault();break;case"ArrowDown":Z((12+ge+3)%12),fe.preventDefault();break;case"ArrowLeft":Z((12+ge+(G.direction==="ltr"?-1:1))%12),fe.preventDefault();break;case"ArrowRight":Z((12+ge+(G.direction==="ltr"?1:-1))%12),fe.preventDefault();break}}),le=mt((fe,ge)=>{Z(ge)}),xe=mt((fe,ge)=>{X===ge&&R(!1)});return O.jsx(tIe,T({ref:n,className:Ie(Q.root,o),ownerState:Y,role:"radiogroup","aria-labelledby":P},k,{children:CE(z,I??B).map(fe=>{const ge=z.getMonth(fe),he=z.format(fe,"monthShort"),_e=z.format(fe,"month"),ve=ge===J,Be=l||N(fe);return O.jsx(JMe,{selected:ve,value:ge,onClick:V,onKeyDown:re,autoFocus:K&&ge===X,disabled:Be,tabIndex:ge===X?0:-1,onFocus:le,onBlur:xe,"aria-current":H===ge?"date":void 0,"aria-label":_e,monthsPerRow:_,children:he},he)})}))});function rIe(e){return et("MuiPickersYear",e)}const Zm=Qe("MuiPickersYear",["root","yearButton","selected","disabled"]),oIe=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],aIe=e=>{const{disabled:t,selected:n,classes:r}=e;return Xe({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},rIe,r)},iIe=de("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.yearsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),sIe=de("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${Zm.disabled}`]:t.disabled},{[`&.${Zm.selected}`]:t.selected}]})(({theme:e})=>T({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:Tt(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Zm.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Zm.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),lIe=S.memo(function(t){const n=Ke({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:a,disabled:i,selected:s,value:l,tabIndex:c,onClick:u,onKeyDown:f,onFocus:p,onBlur:m,"aria-current":b}=n,v=Oe(n,oIe),w=S.useRef(null),g=aIe(n);return S.useEffect(()=>{r&&w.current.focus()},[r]),O.jsx(iIe,T({className:Ie(g.root,o),ownerState:n},v,{children:O.jsx(sIe,{ref:w,disabled:i,type:"button",role:"radio",tabIndex:i?-1:c,"aria-current":b,"aria-checked":s,onClick:y=>u(y,l),onKeyDown:y=>f(y,l),onFocus:y=>p(y,l),onBlur:y=>m(y,l),className:g.yearButton,ownerState:n,children:a})}))});function cIe(e){return et("MuiYearCalendar",e)}Qe("MuiYearCalendar",["root"]);const uIe=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"],dIe=e=>{const{classes:t}=e;return Xe({root:["root"]},cIe,t)};function fIe(e,t){var n;const r=qt(),o=gc(),a=Ke({props:e,name:t});return T({disablePast:!1,disableFuture:!1},a,{yearsPerRow:(n=a.yearsPerRow)!=null?n:3,minDate:Yr(r,a.minDate,o.minDate),maxDate:Yr(r,a.maxDate,o.maxDate)})}const pIe=de("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:M0,maxHeight:NOe,boxSizing:"border-box",position:"relative"}),hIe=S.forwardRef(function(t,n){const r=fIe(t,"MuiYearCalendar"),{autoFocus:o,className:a,value:i,defaultValue:s,referenceDate:l,disabled:c,disableFuture:u,disablePast:f,maxDate:p,minDate:m,onChange:b,readOnly:v,shouldDisableYear:w,disableHighlightToday:g,onYearFocus:y,hasFocus:x,onFocusedViewChange:C,yearsPerRow:_,timezone:$,gridLabelId:P}=r,k=Oe(r,uIe),{value:I,handleValueChange:D,timezone:F}=Cd({name:"YearCalendar",timezone:$,value:i,defaultValue:s,onChange:b,valueManager:Cr}),U=il(F),G=ih(),z=qt(),B=S.useMemo(()=>Cr.getInitialReferenceValue({value:I,utils:z,props:r,timezone:F,referenceDate:l,granularity:Ia.year}),[]),Y=r,Q=dIe(Y),H=S.useMemo(()=>z.getYear(U),[z,U]),J=S.useMemo(()=>I!=null?z.getYear(I):g?null:z.getYear(B),[I,z,g,B]),[X,L]=S.useState(()=>J||H),[K,q]=wr({name:"YearCalendar",state:"hasFocus",controlled:x,default:o??!1}),R=mt(he=>{q(he),C&&C(he)}),N=S.useCallback(he=>{if(f&&z.isBeforeYear(he,U)||u&&z.isAfterYear(he,U)||m&&z.isBeforeYear(he,m)||p&&z.isAfterYear(he,p))return!0;if(!w)return!1;const _e=z.startOfYear(he);return w(_e)},[u,f,p,m,U,w,z]),V=mt((he,_e)=>{if(v)return;const ve=z.setYear(I??B,_e);D(ve)}),Z=mt(he=>{N(z.setYear(I??B,he))||(L(he),R(!0),y==null||y(he))});S.useEffect(()=>{L(he=>J!==null&&he!==J?J:he)},[J]);const re=mt((he,_e)=>{switch(he.key){case"ArrowUp":Z(_e-_),he.preventDefault();break;case"ArrowDown":Z(_e+_),he.preventDefault();break;case"ArrowLeft":Z(_e+(G.direction==="ltr"?-1:1)),he.preventDefault();break;case"ArrowRight":Z(_e+(G.direction==="ltr"?1:-1)),he.preventDefault();break}}),le=mt((he,_e)=>{Z(_e)}),xe=mt((he,_e)=>{X===_e&&R(!1)}),fe=S.useRef(null),ge=sn(n,fe);return S.useEffect(()=>{if(o||fe.current===null)return;const he=fe.current.querySelector('[tabindex="0"]');if(!he)return;const _e=he.offsetHeight,ve=he.offsetTop,Be=fe.current.clientHeight,Ue=fe.current.scrollTop,ze=ve+_e;_e>Be||ve{const _e=z.getYear(he),ve=_e===J,Be=c||N(he);return O.jsx(lIe,{selected:ve,value:_e,onClick:V,onKeyDown:re,autoFocus:K&&_e===X,disabled:Be,tabIndex:_e===X?0:-1,onFocus:le,onBlur:xe,"aria-current":H===_e?"date":void 0,yearsPerRow:_,children:z.format(he,"year")},z.format(he,"year"))})}))}),mIe=e=>et("MuiPickersCalendarHeader",e),vIe=Qe("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),gIe=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],yIe=["ownerState"],bIe=e=>{const{classes:t}=e;return Xe({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},mIe,t)},xIe=de("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),wIe=de("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>T({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),CIe=de("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),$Ie=de(tr,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>T({marginRight:"auto"},e.view==="year"&&{[`.${vIe.switchViewIcon}`]:{transform:"rotate(180deg)"}})),SIe=de(yOe,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),_Ie=S.forwardRef(function(t,n){var r,o;const a=Sr(),i=qt(),s=Ke({props:t,name:"MuiPickersCalendarHeader"}),{slots:l,slotProps:c,currentMonth:u,disabled:f,disableFuture:p,disablePast:m,maxDate:b,minDate:v,onMonthChange:w,onViewChange:g,view:y,reduceAnimations:x,views:C,labelId:_,className:$,timezone:P}=s,k=Oe(s,gIe),I=s,D=bIe(s),F=(r=l==null?void 0:l.switchViewButton)!=null?r:$Ie,U=zt({elementType:F,externalSlotProps:c==null?void 0:c.switchViewButton,additionalProps:{size:"small","aria-label":a.calendarViewSwitchingButtonAriaLabel(y)},ownerState:I,className:D.switchViewButton}),G=(o=l==null?void 0:l.switchViewIcon)!=null?o:SIe,z=zt({elementType:G,externalSlotProps:c==null?void 0:c.switchViewIcon,ownerState:void 0,className:D.switchViewIcon}),B=Oe(z,yIe),Y=()=>w(i.addMonths(u,1),"left"),Q=()=>w(i.addMonths(u,-1),"right"),H=IOe(u,{disableFuture:p,maxDate:b,timezone:P}),J=AOe(u,{disablePast:m,minDate:v,timezone:P}),X=()=>{if(!(C.length===1||!g||f))if(C.length===2)g(C.find(L=>L!==y)||C[0]);else{const L=C.indexOf(y)!==0?0:1;g(C[L])}};return C.length===1&&C[0]==="year"?null:O.jsxs(xIe,T({},k,{ownerState:I,className:Ie($,D.root),ref:n,children:[O.jsxs(wIe,{role:"presentation",onClick:X,ownerState:I,"aria-live":"polite",className:D.labelContainer,children:[O.jsx(KL,{reduceAnimations:x,transKey:i.format(u,"monthAndYear"),children:O.jsx(CIe,{id:_,ownerState:I,className:D.label,children:i.format(u,"monthAndYear")})}),C.length>1&&!f&&O.jsx(F,T({},U,{children:O.jsx(G,T({},B))}))]}),O.jsx(xd,{in:y==="day",children:O.jsx(xL,{slots:l,slotProps:c,onGoToPrevious:Q,isPreviousDisabled:J,previousLabel:a.previousMonth,onGoToNext:Y,isNextDisabled:H,nextLabel:a.nextMonth})})]}))}),EIe=e=>et("MuiDateCalendar",e);Qe("MuiDateCalendar",["root","viewTransitionContainer"]);const PIe=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","components","componentsProps","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow","timezone"],TIe=e=>{const{classes:t}=e;return Xe({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},EIe,t)};function kIe(e,t){var n,r,o,a,i,s,l;const c=qt(),u=gc(),f=jL(),p=Ke({props:e,name:t});return T({},p,{loading:(n=p.loading)!=null?n:!1,disablePast:(r=p.disablePast)!=null?r:!1,disableFuture:(o=p.disableFuture)!=null?o:!1,openTo:(a=p.openTo)!=null?a:"day",views:(i=p.views)!=null?i:["year","day"],reduceAnimations:(s=p.reduceAnimations)!=null?s:f,renderLoading:(l=p.renderLoading)!=null?l:()=>O.jsx("span",{children:"..."}),minDate:Yr(c,p.minDate,u.minDate),maxDate:Yr(c,p.maxDate,u.maxDate)})}const OIe=de(A0,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:I0}),RIe=de(KL,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),JL=S.forwardRef(function(t,n){var r,o,a;const i=qt(),s=Ga(),l=kIe(t,"MuiDateCalendar"),{autoFocus:c,onViewChange:u,value:f,defaultValue:p,referenceDate:m,disableFuture:b,disablePast:v,defaultCalendarMonth:w,onChange:g,onYearChange:y,onMonthChange:x,reduceAnimations:C,shouldDisableDate:_,shouldDisableMonth:$,shouldDisableYear:P,view:k,views:I,openTo:D,className:F,disabled:U,readOnly:G,minDate:z,maxDate:B,disableHighlightToday:Y,focusedView:Q,onFocusedViewChange:H,showDaysOutsideCurrentMonth:J,fixedWeekNumber:X,dayOfWeekFormatter:L,components:K,componentsProps:q,slots:R,slotProps:N,loading:V,renderLoading:Z,displayWeekNumber:re,yearsPerRow:le,monthsPerRow:xe,timezone:fe}=l,ge=Oe(l,PIe),{value:he,handleValueChange:_e,timezone:ve}=Cd({name:"DateCalendar",timezone:fe,value:f,defaultValue:p,onChange:g,valueManager:Cr}),{view:Be,setView:Ue,focusedView:ze,setFocusedView:He,goToNextView:be,setValueAndGoToNextView:we}=vh({view:k,views:I,openTo:D,onChange:_e,onViewChange:u,autoFocus:c,focusedView:Q,onFocusedViewChange:H}),{referenceDate:Ce,calendarState:qe,changeFocusedDay:rt,changeMonth:Ae,handleChangeMonth:Le,isDateDisabled:Fe,onMonthSwitchingAnimationEnd:Pe}=PMe({value:he,defaultCalendarMonth:w,referenceDate:m,reduceAnimations:C,onMonthChange:x,minDate:z,maxDate:B,shouldDisableDate:_,disablePast:v,disableFuture:b,timezone:ve}),Te=U&&he||z,it=U&&he||B,ct=`${s}-grid-label`,gt=ze!==null,Ne=(r=(o=R==null?void 0:R.calendarHeader)!=null?o:K==null?void 0:K.CalendarHeader)!=null?r:_Ie,ne=zt({elementType:Ne,externalSlotProps:(a=N==null?void 0:N.calendarHeader)!=null?a:q==null?void 0:q.calendarHeader,additionalProps:{views:I,view:Be,currentMonth:qe.currentMonth,onViewChange:Ue,onMonthChange:(dt,Et)=>Le({newMonth:dt,direction:Et}),minDate:Te,maxDate:it,disabled:U,disablePast:v,disableFuture:b,reduceAnimations:C,timezone:ve,labelId:ct,slots:R,slotProps:N},ownerState:l}),te=mt(dt=>{const Et=i.startOfMonth(dt),Yt=i.endOfMonth(dt),kt=Fe(dt)?Jf({utils:i,date:dt,minDate:i.isBefore(z,Et)?Et:z,maxDate:i.isAfter(B,Yt)?Yt:B,disablePast:v,disableFuture:b,isDateDisabled:Fe,timezone:ve}):dt;kt?(we(kt,"finish"),x==null||x(Et)):(be(),Ae(Et)),rt(kt,!0)}),ie=mt(dt=>{const Et=i.startOfYear(dt),Yt=i.endOfYear(dt),kt=Fe(dt)?Jf({utils:i,date:dt,minDate:i.isBefore(z,Et)?Et:z,maxDate:i.isAfter(B,Yt)?Yt:B,disablePast:v,disableFuture:b,isDateDisabled:Fe,timezone:ve}):dt;kt?(we(kt,"finish"),y==null||y(kt)):(be(),Ae(Et)),rt(kt,!0)}),$e=mt(dt=>_e(dt&&cC(i,dt,he??Ce),"finish"));S.useEffect(()=>{he!=null&&i.isValid(he)&&Ae(he)},[he]);const Se=l,Ze=TIe(Se),tt={disablePast:v,disableFuture:b,maxDate:B,minDate:z},ft={disableHighlightToday:Y,readOnly:G,disabled:U,timezone:ve,gridLabelId:ct},_t=S.useRef(Be);S.useEffect(()=>{_t.current!==Be&&(ze===_t.current&&He(Be,!0),_t.current=Be)},[ze,He,Be]);const vt=S.useMemo(()=>[he],[he]);return O.jsxs(OIe,T({ref:n,className:Ie(Ze.root,F),ownerState:Se},ge,{children:[O.jsx(Ne,T({},ne)),O.jsx(RIe,{reduceAnimations:C,className:Ze.viewTransitionContainer,transKey:Be,ownerState:Se,children:O.jsxs("div",{children:[Be==="year"&&O.jsx(hIe,T({},tt,ft,{value:he,onChange:ie,shouldDisableYear:P,hasFocus:gt,onFocusedViewChange:dt=>He("year",dt),yearsPerRow:le,referenceDate:Ce})),Be==="month"&&O.jsx(nIe,T({},tt,ft,{hasFocus:gt,className:F,value:he,onChange:te,shouldDisableMonth:$,onFocusedViewChange:dt=>He("month",dt),monthsPerRow:xe,referenceDate:Ce})),Be==="day"&&O.jsx(_Me,T({},qe,tt,ft,{onMonthSwitchingAnimationEnd:Pe,onFocusedDayChange:rt,reduceAnimations:C,selectedDays:vt,onSelectedDaysChange:$e,shouldDisableDate:_,shouldDisableMonth:$,shouldDisableYear:P,hasFocus:gt,onFocusedViewChange:dt=>He("day",dt),showDaysOutsideCurrentMonth:J,fixedWeekNumber:X,dayOfWeekFormatter:L,displayWeekNumber:re,components:K,componentsProps:q,slots:R,slotProps:N,loading:V,renderLoading:Z}))]})})]}))});function DIe(e){return et("MuiDatePickerToolbar",e)}Qe("MuiDatePickerToolbar",["root","title"]);const MIe=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views"],IIe=e=>{const{classes:t}=e;return Xe({root:["root"],title:["title"]},DIe,t)},AIe=de(RE,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),NIe=de(gn,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>T({},e.isLandscape&&{margin:"auto 16px auto auto"})),jIe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDatePickerToolbar"}),{value:o,isLandscape:a,toolbarFormat:i,toolbarPlaceholder:s="––",views:l}=r,c=Oe(r,MIe),u=qt(),f=Sr(),p=IIe(r),m=S.useMemo(()=>{if(!o)return s;const v=Rp(u,{format:i,views:l},!0);return u.formatByString(o,v)},[o,i,s,u,l]),b=r;return O.jsx(AIe,T({ref:n,toolbarTitle:f.datePickerToolbarTitle,isLandscape:a,className:p.root},c,{children:O.jsx(NIe,{variant:"h4",align:a?"left":"center",ownerState:b,className:p.title,children:m})}))});function ZL(e,t){var n,r,o,a;const i=qt(),s=gc(),l=Ke({props:e,name:t}),c=S.useMemo(()=>{var f;return((f=l.localeText)==null?void 0:f.toolbarTitle)==null?l.localeText:T({},l.localeText,{datePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),u=(n=l.slots)!=null?n:gh(l.components);return T({},l,{localeText:c},wE({views:l.views,openTo:l.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:(r=l.disableFuture)!=null?r:!1,disablePast:(o=l.disablePast)!=null?o:!1,minDate:Yr(i,l.minDate,s.minDate),maxDate:Yr(i,l.maxDate,s.maxDate),slots:T({toolbar:jIe},u),slotProps:(a=l.slotProps)!=null?a:l.componentsProps})}const LIe=["props","getOpenDialogAriaText"],FIe=["ownerState"],zIe=["ownerState"],AE=e=>{var t,n,r,o,a;let{props:i,getOpenDialogAriaText:s}=e,l=Oe(e,LIe);const{slots:c,slotProps:u,className:f,sx:p,format:m,formatDensity:b,timezone:v,label:w,inputRef:g,readOnly:y,disabled:x,autoFocus:C,localeText:_,reduceAnimations:$}=i,P=qt(),k=S.useRef(null),I=S.useRef(null),D=Ga(),F=(t=u==null||(n=u.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:U,actions:G,hasUIView:z,layoutProps:B,renderCurrentView:Y,shouldRestoreFocus:Q,fieldProps:H}=zL(T({},l,{props:i,inputRef:k,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),J=(r=c.inputAdornment)!=null?r:sE,X=zt({elementType:J,externalSlotProps:u==null?void 0:u.inputAdornment,additionalProps:{position:"end"},ownerState:i}),L=Oe(X,FIe),K=(o=c.openPickerButton)!=null?o:tr,q=zt({elementType:K,externalSlotProps:u==null?void 0:u.openPickerButton,additionalProps:{disabled:x||y,onClick:U?G.onClose:G.onOpen,"aria-label":s(H.value,P),edge:L.position},ownerState:i}),R=Oe(q,zIe),N=c.openPickerIcon,V=c.field,Z=zt({elementType:V,externalSlotProps:u==null?void 0:u.field,additionalProps:T({},H,F&&{id:D},{readOnly:y,disabled:x,className:f,sx:p,format:m,formatDensity:b,timezone:v,label:w,autoFocus:C&&!i.open,focused:U?!0:void 0}),ownerState:i});z&&(Z.InputProps=T({},Z.InputProps,{ref:I,[`${L.position}Adornment`]:O.jsx(J,T({},L,{children:O.jsx(K,T({},R,{children:O.jsx(N,T({},u==null?void 0:u.openPickerIcon))}))}))}));const re=T({textField:c.textField,clearIcon:c.clearIcon,clearButton:c.clearButton},Z.slots),le=(a=c.layout)!=null?a:UL,xe=sn(k,Z.inputRef,g);let fe=D;F&&(w?fe=`${D}-label`:fe=void 0);const ge=T({},u,{toolbar:T({},u==null?void 0:u.toolbar,{titleId:D}),popper:T({"aria-labelledby":fe},u==null?void 0:u.popper)});return{renderPicker:()=>O.jsxs(hh,{localeText:_,children:[O.jsx(V,T({},Z,{slots:re,slotProps:ge,inputRef:xe})),O.jsx(kDe,T({role:"dialog",placement:"bottom-start",anchorEl:I.current},G,{open:U,slots:c,slotProps:ge,shouldRestoreFocus:Q,reduceAnimations:$,children:O.jsx(le,T({},B,ge==null?void 0:ge.layout,{slots:c,slotProps:ge,children:Y()}))}))]})}},ma=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,maxDate:b,shouldDisableDate:v,shouldDisableMonth:w,shouldDisableYear:g,reduceAnimations:y,onMonthChange:x,monthsPerRow:C,onYearChange:_,yearsPerRow:$,defaultCalendarMonth:P,components:k,componentsProps:I,slots:D,slotProps:F,loading:U,renderLoading:G,disableHighlightToday:z,readOnly:B,disabled:Y,showDaysOutsideCurrentMonth:Q,dayOfWeekFormatter:H,sx:J,autoFocus:X,fixedWeekNumber:L,displayWeekNumber:K,timezone:q})=>O.jsx(JL,{view:e,onViewChange:t,views:n.filter(ku),focusedView:r&&ku(r)?r:null,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,maxDate:b,shouldDisableDate:v,shouldDisableMonth:w,shouldDisableYear:g,reduceAnimations:y,onMonthChange:x,monthsPerRow:C,onYearChange:_,yearsPerRow:$,defaultCalendarMonth:P,components:k,componentsProps:I,slots:D,slotProps:F,loading:U,renderLoading:G,disableHighlightToday:z,readOnly:B,disabled:Y,showDaysOutsideCurrentMonth:Q,dayOfWeekFormatter:H,sx:J,autoFocus:X,fixedWeekNumber:L,displayWeekNumber:K,timezone:q}),XL=S.forwardRef(function(t,n){var r,o,a,i;const s=Sr(),l=qt(),c=ZL(t,"MuiDesktopDatePicker"),u=T({day:ma,month:ma,year:ma},c.viewRenderers),f=T({},c,{viewRenderers:u,format:Rp(l,c,!1),yearsPerRow:(r=c.yearsPerRow)!=null?r:4,slots:T({openPickerIcon:bL,field:GL},c.slots),slotProps:T({},c.slotProps,{field:m=>{var b;return T({},nl((b=c.slotProps)==null?void 0:b.field,m),$d(c),{ref:n})},toolbar:T({hidden:!0},(o=c.slotProps)==null?void 0:o.toolbar)})}),{renderPicker:p}=AE({props:f,valueManager:Cr,valueType:"date",getOpenDialogAriaText:(a=(i=f.localeText)==null?void 0:i.openDatePickerDialogue)!=null?a:s.openDatePickerDialogue,validator:yh});return p()});XL.propTypes={autoFocus:j.bool,className:j.string,closeOnSelect:j.bool,components:j.object,componentsProps:j.object,dayOfWeekFormatter:j.func,defaultCalendarMonth:j.any,defaultValue:j.any,disabled:j.bool,disableFuture:j.bool,disableHighlightToday:j.bool,disableOpenPicker:j.bool,disablePast:j.bool,displayWeekNumber:j.bool,fixedWeekNumber:j.number,format:j.string,formatDensity:j.oneOf(["dense","spacious"]),inputRef:yd,label:j.node,loading:j.bool,localeText:j.object,maxDate:j.any,minDate:j.any,monthsPerRow:j.oneOf([3,4]),onAccept:j.func,onChange:j.func,onClose:j.func,onError:j.func,onMonthChange:j.func,onOpen:j.func,onSelectedSectionsChange:j.func,onViewChange:j.func,onYearChange:j.func,open:j.bool,openTo:j.oneOf(["day","month","year"]),orientation:j.oneOf(["landscape","portrait"]),readOnly:j.bool,reduceAnimations:j.bool,referenceDate:j.any,renderLoading:j.func,selectedSections:j.oneOfType([j.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),j.number,j.shape({endIndex:j.number.isRequired,startIndex:j.number.isRequired})]),shouldDisableDate:j.func,shouldDisableMonth:j.func,shouldDisableYear:j.func,showDaysOutsideCurrentMonth:j.bool,slotProps:j.object,slots:j.object,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object]),timezone:j.string,value:j.any,view:j.oneOf(["day","month","year"]),viewRenderers:j.shape({day:j.func,month:j.func,year:j.func}),views:j.arrayOf(j.oneOf(["day","month","year"]).isRequired),yearsPerRow:j.oneOf([3,4])};const BIe=["props","getOpenDialogAriaText"],NE=e=>{var t,n,r;let{props:o,getOpenDialogAriaText:a}=e,i=Oe(e,BIe);const{slots:s,slotProps:l,className:c,sx:u,format:f,formatDensity:p,timezone:m,label:b,inputRef:v,readOnly:w,disabled:g,localeText:y}=o,x=qt(),C=S.useRef(null),_=Ga(),$=(t=l==null||(n=l.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:P,actions:k,layoutProps:I,renderCurrentView:D,fieldProps:F}=zL(T({},i,{props:o,inputRef:C,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),U=s.field,G=zt({elementType:U,externalSlotProps:l==null?void 0:l.field,additionalProps:T({},F,$&&{id:_},!(g||w)&&{onClick:k.onOpen,onKeyDown:uDe(k.onOpen)},{readOnly:w??!0,disabled:g,className:c,sx:u,format:f,formatDensity:p,timezone:m,label:b}),ownerState:o});G.inputProps=T({},G.inputProps,{"aria-label":a(F.value,x)});const z=T({textField:s.textField},G.slots),B=(r=s.layout)!=null?r:UL,Y=sn(C,G.inputRef,v);let Q=_;$&&(b?Q=`${_}-label`:Q=void 0);const H=T({},l,{toolbar:T({},l==null?void 0:l.toolbar,{titleId:_}),mobilePaper:T({"aria-labelledby":Q},l==null?void 0:l.mobilePaper)});return{renderPicker:()=>O.jsxs(hh,{localeText:y,children:[O.jsx(U,T({},G,{slots:z,slotProps:H,inputRef:Y})),O.jsx(yDe,T({},k,{open:P,slots:s,slotProps:H,children:O.jsx(B,T({},I,H==null?void 0:H.layout,{slots:s,slotProps:H,children:D()}))}))]})}},QL=S.forwardRef(function(t,n){var r,o,a;const i=Sr(),s=qt(),l=ZL(t,"MuiMobileDatePicker"),c=T({day:ma,month:ma,year:ma},l.viewRenderers),u=T({},l,{viewRenderers:c,format:Rp(s,l,!1),slots:T({field:GL},l.slots),slotProps:T({},l.slotProps,{field:p=>{var m;return T({},nl((m=l.slotProps)==null?void 0:m.field,p),$d(l),{ref:n})},toolbar:T({hidden:!1},(r=l.slotProps)==null?void 0:r.toolbar)})}),{renderPicker:f}=NE({props:u,valueManager:Cr,valueType:"date",getOpenDialogAriaText:(o=(a=u.localeText)==null?void 0:a.openDatePickerDialogue)!=null?o:i.openDatePickerDialogue,validator:yh});return f()});QL.propTypes={autoFocus:j.bool,className:j.string,closeOnSelect:j.bool,components:j.object,componentsProps:j.object,dayOfWeekFormatter:j.func,defaultCalendarMonth:j.any,defaultValue:j.any,disabled:j.bool,disableFuture:j.bool,disableHighlightToday:j.bool,disableOpenPicker:j.bool,disablePast:j.bool,displayWeekNumber:j.bool,fixedWeekNumber:j.number,format:j.string,formatDensity:j.oneOf(["dense","spacious"]),inputRef:yd,label:j.node,loading:j.bool,localeText:j.object,maxDate:j.any,minDate:j.any,monthsPerRow:j.oneOf([3,4]),onAccept:j.func,onChange:j.func,onClose:j.func,onError:j.func,onMonthChange:j.func,onOpen:j.func,onSelectedSectionsChange:j.func,onViewChange:j.func,onYearChange:j.func,open:j.bool,openTo:j.oneOf(["day","month","year"]),orientation:j.oneOf(["landscape","portrait"]),readOnly:j.bool,reduceAnimations:j.bool,referenceDate:j.any,renderLoading:j.func,selectedSections:j.oneOfType([j.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),j.number,j.shape({endIndex:j.number.isRequired,startIndex:j.number.isRequired})]),shouldDisableDate:j.func,shouldDisableMonth:j.func,shouldDisableYear:j.func,showDaysOutsideCurrentMonth:j.bool,slotProps:j.object,slots:j.object,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object]),timezone:j.string,value:j.any,view:j.oneOf(["day","month","year"]),viewRenderers:j.shape({day:j.func,month:j.func,year:j.func}),views:j.arrayOf(j.oneOf(["day","month","year"]).isRequired),yearsPerRow:j.oneOf([3,4])};const VIe=["desktopModeMediaQuery"],UIe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=TE}=r,a=Oe(r,VIe);return dh(o,{defaultMatches:!0})?O.jsx(XL,T({ref:n},a)):O.jsx(QL,T({ref:n},a))});function WIe(e){return et("MuiTimePickerToolbar",e)}const Zf=Qe("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),HIe=["ampm","ampmInClock","value","isLandscape","onChange","view","onViewChange","views","disabled","readOnly"],GIe=e=>{const{theme:t,isLandscape:n,classes:r}=e,o={root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n&&"hourMinuteLabelLandscape",t.direction==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return Xe(o,WIe,r)},qIe=de(RE,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),YIe=de(DE,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),e6=de("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${Zf.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${Zf.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})(({theme:e,ownerState:t})=>T({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},e.direction==="rtl"&&{flexDirection:"row-reverse"}));e6.propTypes={as:j.elementType,ownerState:j.object.isRequired,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object])};const t6=de("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${Zf.ampmLabel}`]:t.ampmLabel},{[`&.${Zf.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>T({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${Zf.ampmLabel}`]:{fontSize:17}}));t6.propTypes={as:j.elementType,ownerState:j.object.isRequired,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object])};function KIe(e){const t=Ke({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:o,isLandscape:a,onChange:i,view:s,onViewChange:l,views:c,disabled:u,readOnly:f}=t,p=Oe(t,HIe),m=qt(),b=Sr(),v=nr(),w=!!(n&&!r&&c.includes("hours")),{meridiemMode:g,handleMeridiemChange:y}=R0(o,n,i),x=P=>n?m.format(P,"hours12h"):m.format(P,"hours24h"),C=t,_=GIe(T({},C,{theme:v})),$=O.jsx(YIe,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:_.separator});return O.jsxs(qIe,T({landscapeDirection:"row",toolbarTitle:b.timePickerToolbarTitle,isLandscape:a,ownerState:C,className:_.root},p,{children:[O.jsxs(e6,{className:_.hourMinuteLabel,ownerState:C,children:[tu(c,"hours")&&O.jsx(jo,{tabIndex:-1,variant:"h3",onClick:()=>l("hours"),selected:s==="hours",value:o?x(o):"--"}),tu(c,["hours","minutes"])&&$,tu(c,"minutes")&&O.jsx(jo,{tabIndex:-1,variant:"h3",onClick:()=>l("minutes"),selected:s==="minutes",value:o?m.format(o,"minutes"):"--"}),tu(c,["minutes","seconds"])&&$,tu(c,"seconds")&&O.jsx(jo,{variant:"h3",onClick:()=>l("seconds"),selected:s==="seconds",value:o?m.format(o,"seconds"):"--"})]}),w&&O.jsxs(t6,{className:_.ampmSelection,ownerState:C,children:[O.jsx(jo,{disableRipple:!0,variant:"subtitle2",selected:g==="am",typographyClassName:_.ampmLabel,value:Fa(m,"am"),onClick:f?void 0:()=>y("am"),disabled:u}),O.jsx(jo,{disableRipple:!0,variant:"subtitle2",selected:g==="pm",typographyClassName:_.ampmLabel,value:Fa(m,"pm"),onClick:f?void 0:()=>y("pm"),disabled:u})]})]}))}function n6(e,t){var n,r,o,a,i;const s=qt(),l=Ke({props:e,name:t}),c=(n=l.ampm)!=null?n:s.is12HourCycleInCurrentLocale(),u=S.useMemo(()=>{var m;return((m=l.localeText)==null?void 0:m.toolbarTitle)==null?l.localeText:T({},l.localeText,{timePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),f=(r=l.slots)!=null?r:gh(l.components),p=(o=l.slotProps)!=null?o:l.componentsProps;return T({},l,{ampm:c,localeText:u},wE({views:l.views,openTo:l.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{disableFuture:(a=l.disableFuture)!=null?a:!1,disablePast:(i=l.disablePast)!=null?i:!1,slots:T({toolbar:KIe},f),slotProps:T({},p,{toolbar:T({ampm:c,ampmInClock:l.ampmInClock},p==null?void 0:p.toolbar)})})}const Ru=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:w,minutesStep:g,ampm:y,ampmInClock:x,components:C,componentsProps:_,slots:$,slotProps:P,readOnly:k,disabled:I,sx:D,autoFocus:F,showViewSwitcher:U,disableIgnoringDatePartForTimeValidation:G,timezone:z})=>O.jsx(DRe,{view:e,onViewChange:t,focusedView:n&&Ku(n)?n:null,onFocusedViewChange:r,views:o.filter(Ku),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:w,minutesStep:g,ampm:y,ampmInClock:x,components:C,componentsProps:_,slots:$,slotProps:P,readOnly:k,disabled:I,sx:D,autoFocus:F,showViewSwitcher:U,disableIgnoringDatePartForTimeValidation:G,timezone:z}),r6=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:w,minutesStep:g,ampm:y,components:x,componentsProps:C,slots:_,slotProps:$,readOnly:P,disabled:k,sx:I,autoFocus:D,disableIgnoringDatePartForTimeValidation:F,timeSteps:U,skipDisabled:G,timezone:z})=>O.jsx(zRe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(Ku),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:w,minutesStep:g,ampm:y,components:x,componentsProps:C,slots:_,slotProps:$,readOnly:P,disabled:k,sx:I,autoFocus:D,disableIgnoringDatePartForTimeValidation:F,timeStep:U==null?void 0:U.minutes,skipDisabled:G,timezone:z}),fC=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:w,minutesStep:g,ampm:y,components:x,componentsProps:C,slots:_,slotProps:$,readOnly:P,disabled:k,sx:I,autoFocus:D,disableIgnoringDatePartForTimeValidation:F,timeSteps:U,skipDisabled:G,timezone:z})=>O.jsx(QRe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(Ku),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:m,maxTime:b,shouldDisableTime:v,shouldDisableClock:w,minutesStep:g,ampm:y,components:x,componentsProps:C,slots:_,slotProps:$,readOnly:P,disabled:k,sx:I,autoFocus:D,disableIgnoringDatePartForTimeValidation:F,timeSteps:U,skipDisabled:G,timezone:z}),JIe=["views","format"],o6=(e,t)=>{let{views:n,format:r}=t,o=Oe(t,JIe);if(r)return r;const a=[],i=[];if(n.forEach(c=>{Ku(c)?i.push(c):a.push(c)}),i.length===0)return Rp(e,T({views:a},o),!1);if(a.length===0)return Ig(e,T({views:i},o));const s=Ig(e,T({views:i},o));return`${Rp(e,T({views:a},o),!1)} ${s}`},ZIe=(e,t,n)=>n?t.filter(r=>!$s(r)||r==="hours"):e?[...t,"meridiem"]:t,XIe=(e,t)=>{var n,r;return 24*60/(((n=e.hours)!=null?n:1)*((r=e.minutes)!=null?r:5))<=t};function a6({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const o=e??24,a=T({hours:1,minutes:5,seconds:5},n),i=XIe(a,o);return{thresholdToRenderTimeInASingleColumn:o,timeSteps:a,shouldRenderTimeInASingleColumn:i,views:ZIe(t,r,i)}}const i6=S.forwardRef(function(t,n){var r,o,a,i,s,l;const c=Sr(),u=qt(),f=n6(t,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:p,views:m,timeSteps:b}=a6(f),v=p?r6:fC,w=T({hours:v,minutes:v,seconds:v,meridiem:v},f.viewRenderers),g=(r=f.ampmInClock)!=null?r:!0,y=p?[]:["accept"],C=((o=w.hours)==null?void 0:o.name)===fC.name?m:m.filter(P=>P!=="meridiem"),_=T({},f,{ampmInClock:g,timeSteps:b,viewRenderers:w,format:Ig(u,f),views:p?["hours"]:C,slots:T({field:qL,openPickerIcon:wOe},f.slots),slotProps:T({},f.slotProps,{field:P=>{var k;return T({},nl((k=f.slotProps)==null?void 0:k.field,P),$d(f),{ref:n})},toolbar:T({hidden:!0,ampmInClock:g},(a=f.slotProps)==null?void 0:a.toolbar),actionBar:T({actions:y},(i=f.slotProps)==null?void 0:i.actionBar)})}),{renderPicker:$}=AE({props:_,valueManager:Cr,valueType:"time",getOpenDialogAriaText:(s=(l=_.localeText)==null?void 0:l.openTimePickerDialogue)!=null?s:c.openTimePickerDialogue,validator:j0});return $()});i6.propTypes={ampm:j.bool,ampmInClock:j.bool,autoFocus:j.bool,className:j.string,closeOnSelect:j.bool,components:j.object,componentsProps:j.object,defaultValue:j.any,disabled:j.bool,disableFuture:j.bool,disableIgnoringDatePartForTimeValidation:j.bool,disableOpenPicker:j.bool,disablePast:j.bool,format:j.string,formatDensity:j.oneOf(["dense","spacious"]),inputRef:yd,label:j.node,localeText:j.object,maxTime:j.any,minTime:j.any,minutesStep:j.number,onAccept:j.func,onChange:j.func,onClose:j.func,onError:j.func,onOpen:j.func,onSelectedSectionsChange:j.func,onViewChange:j.func,open:j.bool,openTo:j.oneOf(["hours","meridiem","minutes","seconds"]),orientation:j.oneOf(["landscape","portrait"]),readOnly:j.bool,reduceAnimations:j.bool,referenceDate:j.any,selectedSections:j.oneOfType([j.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),j.number,j.shape({endIndex:j.number.isRequired,startIndex:j.number.isRequired})]),shouldDisableClock:j.func,shouldDisableTime:j.func,skipDisabled:j.bool,slotProps:j.object,slots:j.object,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object]),thresholdToRenderTimeInASingleColumn:j.number,timeSteps:j.shape({hours:j.number,minutes:j.number,seconds:j.number}),timezone:j.string,value:j.any,view:j.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:j.shape({hours:j.func,meridiem:j.func,minutes:j.func,seconds:j.func}),views:j.arrayOf(j.oneOf(["hours","minutes","seconds"]).isRequired)};const s6=S.forwardRef(function(t,n){var r,o,a,i;const s=Sr(),l=qt(),c=n6(t,"MuiMobileTimePicker"),u=T({hours:Ru,minutes:Ru,seconds:Ru},c.viewRenderers),f=(r=c.ampmInClock)!=null?r:!1,p=T({},c,{ampmInClock:f,viewRenderers:u,format:Ig(l,c),slots:T({field:qL},c.slots),slotProps:T({},c.slotProps,{field:b=>{var v;return T({},nl((v=c.slotProps)==null?void 0:v.field,b),$d(c),{ref:n})},toolbar:T({hidden:!1,ampmInClock:f},(o=c.slotProps)==null?void 0:o.toolbar)})}),{renderPicker:m}=NE({props:p,valueManager:Cr,valueType:"time",getOpenDialogAriaText:(a=(i=p.localeText)==null?void 0:i.openTimePickerDialogue)!=null?a:s.openTimePickerDialogue,validator:j0});return m()});s6.propTypes={ampm:j.bool,ampmInClock:j.bool,autoFocus:j.bool,className:j.string,closeOnSelect:j.bool,components:j.object,componentsProps:j.object,defaultValue:j.any,disabled:j.bool,disableFuture:j.bool,disableIgnoringDatePartForTimeValidation:j.bool,disableOpenPicker:j.bool,disablePast:j.bool,format:j.string,formatDensity:j.oneOf(["dense","spacious"]),inputRef:yd,label:j.node,localeText:j.object,maxTime:j.any,minTime:j.any,minutesStep:j.number,onAccept:j.func,onChange:j.func,onClose:j.func,onError:j.func,onOpen:j.func,onSelectedSectionsChange:j.func,onViewChange:j.func,open:j.bool,openTo:j.oneOf(["hours","minutes","seconds"]),orientation:j.oneOf(["landscape","portrait"]),readOnly:j.bool,reduceAnimations:j.bool,referenceDate:j.any,selectedSections:j.oneOfType([j.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),j.number,j.shape({endIndex:j.number.isRequired,startIndex:j.number.isRequired})]),shouldDisableClock:j.func,shouldDisableTime:j.func,slotProps:j.object,slots:j.object,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object]),timezone:j.string,value:j.any,view:j.oneOf(["hours","minutes","seconds"]),viewRenderers:j.shape({hours:j.func,minutes:j.func,seconds:j.func}),views:j.arrayOf(j.oneOf(["hours","minutes","seconds"]).isRequired)};const QIe=["desktopModeMediaQuery"],eAe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:o=TE}=r,a=Oe(r,QIe);return dh(o,{defaultMatches:!0})?O.jsx(i6,T({ref:n},a)):O.jsx(s6,T({ref:n},a))});function tAe(e){return et("MuiDateTimePickerTabs",e)}Qe("MuiDateTimePickerTabs",["root"]);const nAe=e=>ku(e)?"date":"time",rAe=e=>e==="date"?"day":"hours",oAe=e=>{const{classes:t}=e;return Xe({root:["root"]},tAe,t)},aAe=de(P0,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${Mv.indicator}`]:{bottom:"auto",top:0}}})),iAe=function(t){const n=Ke({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=O.jsx(COe,{}),onViewChange:o,timeIcon:a=O.jsx($Oe,{}),view:i,hidden:s=typeof window>"u"||window.innerHeight<667}=n,l=Sr(),c=oAe(n),u=(f,p)=>{o(rAe(p))};return s?null:O.jsxs(aAe,{ownerState:n,variant:"fullWidth",value:nAe(i),onChange:u,className:c.root,children:[O.jsx(Pp,{value:"date","aria-label":l.dateTableLabel,icon:O.jsx(S.Fragment,{children:r})}),O.jsx(Pp,{value:"time","aria-label":l.timeTableLabel,icon:O.jsx(S.Fragment,{children:a})})]})};function sAe(e){return et("MuiDateTimePickerToolbar",e)}const yx=Qe("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),lAe=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant"],cAe=e=>{const{classes:t,theme:n,isLandscape:r}=e,o={root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",n.direction==="rtl"&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",n.direction==="rtl"&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",r&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return Xe(o,sAe,t)},l6=de(RE,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({paddingLeft:t.toolbarVariant==="desktop"&&!t.isLandscape?24:16,paddingRight:t.toolbarVariant==="desktop"&&!t.isLandscape?0:16,borderBottom:t.toolbarVariant==="desktop"?`1px solid ${(e.vars||e).palette.divider}`:void 0,borderRight:t.toolbarVariant==="desktop"&&t.isLandscape?`1px solid ${(e.vars||e).palette.divider}`:void 0,justifyContent:"space-around",position:"relative"}));l6.propTypes={as:j.elementType,classes:j.object,className:j.string,isLandscape:j.bool.isRequired,isMobileKeyboardViewOpen:j.bool,landscapeDirection:j.oneOf(["column","row"]),ownerState:j.object.isRequired,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object]),toggleMobileKeyboardView:j.func,toolbarTitle:j.node,viewType:j.oneOf(["date","time"])};const uAe=de("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),c6=de("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})(({theme:e,ownerState:t})=>{const n=t.isLandscape&&t.toolbarVariant!=="desktop"?"column":"row";return T({display:"flex",flexDirection:n},t.toolbarVariant==="desktop"&&T({},!t.isLandscape&&{gap:9,marginRight:4,alignSelf:"flex-end"}),e.direction==="rtl"&&{flexDirection:`${n}-reverse`})}),dAe=de("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})(({theme:e,ownerState:t})=>T({display:"flex"},t.toolbarVariant==="desktop"&&{gap:1.5},e.direction==="rtl"&&{flexDirection:"row-reverse"}));c6.propTypes={as:j.elementType,ownerState:j.object.isRequired,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object])};const tM=de(DE,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})(({ownerState:e})=>({margin:e.toolbarVariant==="desktop"?0:"0 4px 0 2px",cursor:"default"})),fAe=de("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${yx.ampmLabel}`]:t.ampmLabel},{[`&.${yx.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>T({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"},{[`& .${yx.ampmLabel}`]:{fontSize:17}}));function pAe(e){const t=Ke({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:o,onChange:a,view:i,isLandscape:s,onViewChange:l,toolbarFormat:c,toolbarPlaceholder:u="––",views:f,disabled:p,readOnly:m,toolbarVariant:b="mobile"}=t,v=Oe(t,lAe),w=t,g=qt(),{meridiemMode:y,handleMeridiemChange:x}=R0(o,n,a),C=!!(n&&!r),_=b==="desktop",$=Sr(),P=nr(),k=cAe(T({},w,{theme:P})),I=F=>n?g.format(F,"hours12h"):g.format(F,"hours24h"),D=S.useMemo(()=>o?c?g.formatByString(o,c):g.format(o,"shortDate"):u,[o,c,u,g]);return O.jsxs(l6,T({toolbarTitle:$.dateTimePickerToolbarTitle,isLandscape:s,className:k.root},v,{ownerState:w,children:[O.jsxs(uAe,{className:k.dateContainer,ownerState:w,children:[f.includes("year")&&O.jsx(jo,{tabIndex:-1,variant:"subtitle1",onClick:()=>l("year"),selected:i==="year",value:o?g.format(o,"year"):"–"}),f.includes("day")&&O.jsx(jo,{tabIndex:-1,variant:_?"h5":"h4",onClick:()=>l("day"),selected:i==="day",value:D})]}),O.jsxs(c6,{className:k.timeContainer,ownerState:w,children:[O.jsxs(dAe,{className:k.timeDigitsContainer,ownerState:w,children:[f.includes("hours")&&O.jsx(jo,{variant:_?"h5":"h3",width:_&&!s?Pf:void 0,onClick:()=>l("hours"),selected:i==="hours",value:o?I(o):"--"}),f.includes("minutes")&&O.jsxs(S.Fragment,{children:[O.jsx(tM,{variant:_?"h5":"h3",value:":",className:k.separator,ownerState:w}),O.jsx(jo,{variant:_?"h5":"h3",width:_&&!s?Pf:void 0,onClick:()=>l("minutes"),selected:i==="minutes",value:o?g.format(o,"minutes"):"--"})]}),f.includes("seconds")&&O.jsxs(S.Fragment,{children:[O.jsx(tM,{variant:_?"h5":"h3",value:":",className:k.separator,ownerState:w}),O.jsx(jo,{variant:_?"h5":"h3",width:_&&!s?Pf:void 0,onClick:()=>l("seconds"),selected:i==="seconds",value:o?g.format(o,"seconds"):"--"})]})]}),C&&!_&&O.jsxs(fAe,{className:k.ampmSelection,ownerState:w,children:[O.jsx(jo,{variant:"subtitle2",selected:y==="am",typographyClassName:k.ampmLabel,value:Fa(g,"am"),onClick:m?void 0:()=>x("am"),disabled:p}),O.jsx(jo,{variant:"subtitle2",selected:y==="pm",typographyClassName:k.ampmLabel,value:Fa(g,"pm"),onClick:m?void 0:()=>x("pm"),disabled:p})]}),n&&_&&O.jsx(jo,{variant:"h5",onClick:()=>l("meridiem"),selected:i==="meridiem",value:o&&y?Fa(g,y):"--",width:Pf})]})]}))}function u6(e,t){var n,r,o,a,i,s,l,c,u,f,p;const m=qt(),b=gc(),v=Ke({props:e,name:t}),w=(n=v.ampm)!=null?n:m.is12HourCycleInCurrentLocale(),g=S.useMemo(()=>{var C;return((C=v.localeText)==null?void 0:C.toolbarTitle)==null?v.localeText:T({},v.localeText,{dateTimePickerToolbarTitle:v.localeText.toolbarTitle})},[v.localeText]),y=(r=v.slots)!=null?r:gh(v.components),x=(o=v.slotProps)!=null?o:v.componentsProps;return T({},v,wE({views:v.views,openTo:v.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:w,localeText:g,orientation:(a=v.orientation)!=null?a:"portrait",disableIgnoringDatePartForTimeValidation:(i=v.disableIgnoringDatePartForTimeValidation)!=null?i:!!(v.minDateTime||v.maxDateTime||v.disablePast||v.disableFuture),disableFuture:(s=v.disableFuture)!=null?s:!1,disablePast:(l=v.disablePast)!=null?l:!1,minDate:Yr(m,(c=v.minDateTime)!=null?c:v.minDate,b.minDate),maxDate:Yr(m,(u=v.maxDateTime)!=null?u:v.maxDate,b.maxDate),minTime:(f=v.minDateTime)!=null?f:v.minTime,maxTime:(p=v.maxDateTime)!=null?p:v.maxTime,slots:T({toolbar:pAe,tabs:iAe},y),slotProps:T({},x,{toolbar:T({ampm:w},x==null?void 0:x.toolbar)})})}const hAe=de("div")({display:"flex",margin:"0 auto"}),wl=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,minTime:b,maxDate:v,maxTime:w,shouldDisableDate:g,shouldDisableMonth:y,shouldDisableYear:x,shouldDisableTime:C,shouldDisableClock:_,reduceAnimations:$,minutesStep:P,ampm:k,onMonthChange:I,monthsPerRow:D,onYearChange:F,yearsPerRow:U,defaultCalendarMonth:G,components:z,componentsProps:B,slots:Y,slotProps:Q,loading:H,renderLoading:J,disableHighlightToday:X,readOnly:L,disabled:K,showDaysOutsideCurrentMonth:q,dayOfWeekFormatter:R,sx:N,autoFocus:V,fixedWeekNumber:Z,displayWeekNumber:re,timezone:le,disableIgnoringDatePartForTimeValidation:xe,timeSteps:fe,skipDisabled:ge,timeViewsCount:he,shouldRenderTimeInASingleColumn:_e})=>{var ve,Be;const Ue=!!((ve=nl((Be=Q==null?void 0:Q.actionBar)!=null?Be:B==null?void 0:B.actionBar,{}))!=null&&(ve=ve.actions)!=null&&ve.length),ze={view:$s(e)?e:"hours",onViewChange:t,focusedView:r&&$s(r)?r:null,onFocusedViewChange:o,views:n.filter($s),value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minTime:b,maxTime:w,shouldDisableTime:C,shouldDisableClock:_,minutesStep:P,ampm:k,components:z,componentsProps:B,slots:Y,slotProps:Q,readOnly:L,disabled:K,autoFocus:V,disableIgnoringDatePartForTimeValidation:xe,timeSteps:fe,skipDisabled:ge,timezone:le};return O.jsxs(S.Fragment,{children:[O.jsxs(hAe,{children:[O.jsx(JL,{view:ku(e)?e:"day",onViewChange:t,views:n.filter(ku),focusedView:r&&ku(r)?r:null,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:m,maxDate:v,shouldDisableDate:g,shouldDisableMonth:y,shouldDisableYear:x,reduceAnimations:$,onMonthChange:I,monthsPerRow:D,onYearChange:F,yearsPerRow:U,defaultCalendarMonth:G,components:z,componentsProps:B,slots:Y,slotProps:Q,loading:H,renderLoading:J,disableHighlightToday:X,readOnly:L,disabled:K,showDaysOutsideCurrentMonth:q,dayOfWeekFormatter:R,sx:N,autoFocus:V,fixedWeekNumber:Z,displayWeekNumber:re,timezone:le}),he>0&&O.jsxs(S.Fragment,{children:[O.jsx(pD,{orientation:"vertical"}),_e?r6(T({},ze,{view:"hours",views:["hours"],focusedView:r&&$s(r)?"hours":null,sx:T({width:"auto",[`&.${IRe.root}`]:{maxHeight:I0}},Array.isArray(N)?N:[N])})):fC(T({},ze,{view:$s(e)?e:"hours",views:n.filter($s),focusedView:r&&$s(r)?r:null,sx:T({borderBottom:0,width:"auto",[`.${URe.root}`]:{maxHeight:"100%"}},Array.isArray(N)?N:[N])}))]})]}),Ue&&O.jsx(pD,{})]})},d6=S.forwardRef(function(t,n){var r,o,a,i,s,l,c;const u=Sr(),f=qt(),p=u6(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:m,thresholdToRenderTimeInASingleColumn:b,views:v,timeSteps:w}=a6(p),g=!p.viewRenderers||Object.keys(p.viewRenderers).length===0,y=g?{day:wl,month:wl,year:wl,hours:wl,minutes:wl,seconds:wl,meridiem:wl}:T({day:ma,month:ma,year:ma,hours:null,minutes:null,seconds:null,meridiem:null},p.viewRenderers),x=(r=p.ampmInClock)!=null?r:!0,C=g?["accept"]:[],_=T({},p,{viewRenderers:y,format:o6(f,p),views:v,yearsPerRow:(o=p.yearsPerRow)!=null?o:4,ampmInClock:x,timeSteps:w,thresholdToRenderTimeInASingleColumn:b,shouldRenderTimeInASingleColumn:m,slots:T({field:YL,openPickerIcon:bL},p.slots),slotProps:T({},p.slotProps,{field:P=>{var k;return T({},nl((k=p.slotProps)==null?void 0:k.field,P),$d(p),{ref:n})},toolbar:T({hidden:!0,ampmInClock:x,toolbarVariant:g?"desktop":"mobile"},(a=p.slotProps)==null?void 0:a.toolbar),tabs:T({hidden:!0},(i=p.slotProps)==null?void 0:i.tabs),actionBar:T({actions:C},(s=p.slotProps)==null?void 0:s.actionBar)})}),{renderPicker:$}=AE({props:_,valueManager:Cr,valueType:"date-time",getOpenDialogAriaText:(l=(c=_.localeText)==null?void 0:c.openDatePickerDialogue)!=null?l:u.openDatePickerDialogue,validator:ME});return $()});d6.propTypes={ampm:j.bool,ampmInClock:j.bool,autoFocus:j.bool,className:j.string,closeOnSelect:j.bool,components:j.object,componentsProps:j.object,dayOfWeekFormatter:j.func,defaultCalendarMonth:j.any,defaultValue:j.any,disabled:j.bool,disableFuture:j.bool,disableHighlightToday:j.bool,disableIgnoringDatePartForTimeValidation:j.bool,disableOpenPicker:j.bool,disablePast:j.bool,displayWeekNumber:j.bool,fixedWeekNumber:j.number,format:j.string,formatDensity:j.oneOf(["dense","spacious"]),inputRef:yd,label:j.node,loading:j.bool,localeText:j.object,maxDate:j.any,maxDateTime:j.any,maxTime:j.any,minDate:j.any,minDateTime:j.any,minTime:j.any,minutesStep:j.number,monthsPerRow:j.oneOf([3,4]),onAccept:j.func,onChange:j.func,onClose:j.func,onError:j.func,onMonthChange:j.func,onOpen:j.func,onSelectedSectionsChange:j.func,onViewChange:j.func,onYearChange:j.func,open:j.bool,openTo:j.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:j.oneOf(["landscape","portrait"]),readOnly:j.bool,reduceAnimations:j.bool,referenceDate:j.any,renderLoading:j.func,selectedSections:j.oneOfType([j.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),j.number,j.shape({endIndex:j.number.isRequired,startIndex:j.number.isRequired})]),shouldDisableClock:j.func,shouldDisableDate:j.func,shouldDisableMonth:j.func,shouldDisableTime:j.func,shouldDisableYear:j.func,showDaysOutsideCurrentMonth:j.bool,skipDisabled:j.bool,slotProps:j.object,slots:j.object,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object]),thresholdToRenderTimeInASingleColumn:j.number,timeSteps:j.shape({hours:j.number,minutes:j.number,seconds:j.number}),timezone:j.string,value:j.any,view:j.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:j.shape({day:j.func,hours:j.func,meridiem:j.func,minutes:j.func,month:j.func,seconds:j.func,year:j.func}),views:j.arrayOf(j.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:j.oneOf([3,4])};const f6=S.forwardRef(function(t,n){var r,o,a,i,s;const l=Sr(),c=qt(),u=u6(t,"MuiMobileDateTimePicker"),f=T({day:ma,month:ma,year:ma,hours:Ru,minutes:Ru,seconds:Ru},u.viewRenderers),p=(r=u.ampmInClock)!=null?r:!1,m=T({},u,{viewRenderers:f,format:o6(c,u),ampmInClock:p,slots:T({field:YL},u.slots),slotProps:T({},u.slotProps,{field:v=>{var w;return T({},nl((w=u.slotProps)==null?void 0:w.field,v),$d(u),{ref:n})},toolbar:T({hidden:!1,ampmInClock:p},(o=u.slotProps)==null?void 0:o.toolbar),tabs:T({hidden:!1},(a=u.slotProps)==null?void 0:a.tabs)})}),{renderPicker:b}=NE({props:m,valueManager:Cr,valueType:"date-time",getOpenDialogAriaText:(i=(s=m.localeText)==null?void 0:s.openDatePickerDialogue)!=null?i:l.openDatePickerDialogue,validator:ME});return b()});f6.propTypes={ampm:j.bool,ampmInClock:j.bool,autoFocus:j.bool,className:j.string,closeOnSelect:j.bool,components:j.object,componentsProps:j.object,dayOfWeekFormatter:j.func,defaultCalendarMonth:j.any,defaultValue:j.any,disabled:j.bool,disableFuture:j.bool,disableHighlightToday:j.bool,disableIgnoringDatePartForTimeValidation:j.bool,disableOpenPicker:j.bool,disablePast:j.bool,displayWeekNumber:j.bool,fixedWeekNumber:j.number,format:j.string,formatDensity:j.oneOf(["dense","spacious"]),inputRef:yd,label:j.node,loading:j.bool,localeText:j.object,maxDate:j.any,maxDateTime:j.any,maxTime:j.any,minDate:j.any,minDateTime:j.any,minTime:j.any,minutesStep:j.number,monthsPerRow:j.oneOf([3,4]),onAccept:j.func,onChange:j.func,onClose:j.func,onError:j.func,onMonthChange:j.func,onOpen:j.func,onSelectedSectionsChange:j.func,onViewChange:j.func,onYearChange:j.func,open:j.bool,openTo:j.oneOf(["day","hours","minutes","month","seconds","year"]),orientation:j.oneOf(["landscape","portrait"]),readOnly:j.bool,reduceAnimations:j.bool,referenceDate:j.any,renderLoading:j.func,selectedSections:j.oneOfType([j.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),j.number,j.shape({endIndex:j.number.isRequired,startIndex:j.number.isRequired})]),shouldDisableClock:j.func,shouldDisableDate:j.func,shouldDisableMonth:j.func,shouldDisableTime:j.func,shouldDisableYear:j.func,showDaysOutsideCurrentMonth:j.bool,slotProps:j.object,slots:j.object,sx:j.oneOfType([j.arrayOf(j.oneOfType([j.func,j.object,j.bool])),j.func,j.object]),timezone:j.string,value:j.any,view:j.oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:j.shape({day:j.func,hours:j.func,minutes:j.func,month:j.func,seconds:j.func,year:j.func}),views:j.arrayOf(j.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:j.oneOf([3,4])};const mAe=["desktopModeMediaQuery"],vAe=S.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:o=TE}=r,a=Oe(r,mAe);return dh(o,{defaultMatches:!0})?O.jsx(d6,T({ref:n},a)):O.jsx(f6,T({ref:n},a))});var p6={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(go,function(){var n=1e3,r=6e4,o=36e5,a="millisecond",i="second",s="minute",l="hour",c="day",u="week",f="month",p="quarter",m="year",b="date",v="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(z){var B=["th","st","nd","rd"],Y=z%100;return"["+z+(B[(Y-20)%10]||B[Y]||B[0])+"]"}},x=function(z,B,Y){var Q=String(z);return!Q||Q.length>=B?z:""+Array(B+1-Q.length).join(Y)+z},C={s:x,z:function(z){var B=-z.utcOffset(),Y=Math.abs(B),Q=Math.floor(Y/60),H=Y%60;return(B<=0?"+":"-")+x(Q,2,"0")+":"+x(H,2,"0")},m:function z(B,Y){if(B.date()1)return z(X[0])}else{var L=B.name;$[L]=B,H=L}return!Q&&H&&(_=H),H||!Q&&_},D=function(z,B){if(k(z))return z.clone();var Y=typeof B=="object"?B:{};return Y.date=z,Y.args=arguments,new U(Y)},F=C;F.l=I,F.i=k,F.w=function(z,B){return D(z,{locale:B.$L,utc:B.$u,x:B.$x,$offset:B.$offset})};var U=function(){function z(Y){this.$L=I(Y.locale,null,!0),this.parse(Y),this.$x=this.$x||Y.x||{},this[P]=!0}var B=z.prototype;return B.parse=function(Y){this.$d=function(Q){var H=Q.date,J=Q.utc;if(H===null)return new Date(NaN);if(F.u(H))return new Date;if(H instanceof Date)return new Date(H);if(typeof H=="string"&&!/Z$/i.test(H)){var X=H.match(w);if(X){var L=X[2]-1||0,K=(X[7]||"0").substring(0,3);return J?new Date(Date.UTC(X[1],L,X[3]||1,X[4]||0,X[5]||0,X[6]||0,K)):new Date(X[1],L,X[3]||1,X[4]||0,X[5]||0,X[6]||0,K)}}return new Date(H)}(Y),this.init()},B.init=function(){var Y=this.$d;this.$y=Y.getFullYear(),this.$M=Y.getMonth(),this.$D=Y.getDate(),this.$W=Y.getDay(),this.$H=Y.getHours(),this.$m=Y.getMinutes(),this.$s=Y.getSeconds(),this.$ms=Y.getMilliseconds()},B.$utils=function(){return F},B.isValid=function(){return this.$d.toString()!==v},B.isSame=function(Y,Q){var H=D(Y);return this.startOf(Q)<=H&&H<=this.endOf(Q)},B.isAfter=function(Y,Q){return D(Y)25){var u=i(this).startOf(r).add(1,r).date(c),f=i(this).endOf(n);if(u.isBefore(f))return 1}var p=i(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),m=this.diff(p,n,!0);return m<0?i(this).startOf("week").week():Math.ceil(m)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(h6);var yAe=h6.exports;const bAe=Bt(yAe);var m6={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(go,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},l=function(v){return(v=+v)+(v>68?1900:2e3)},c=function(v){return function(w){this[v]=+w}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(w){if(!w||w==="Z")return 0;var g=w.match(/([+-]|\d\d)/g),y=60*g[1]+(+g[2]||0);return y===0?0:g[0]==="+"?-y:y}(v)}],f=function(v){var w=s[v];return w&&(w.indexOf?w:w.s.concat(w.f))},p=function(v,w){var g,y=s.meridiem;if(y){for(var x=1;x<=24;x+=1)if(v.indexOf(y(x,0,w))>-1){g=x>12;break}}else g=v===(w?"pm":"PM");return g},m={A:[i,function(v){this.afternoon=p(v,!1)}],a:[i,function(v){this.afternoon=p(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[o,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[o,c("day")],Do:[i,function(v){var w=s.ordinal,g=v.match(/\d+/);if(this.day=g[0],w)for(var y=1;y<=31;y+=1)w(y).replace(/\[|\]/g,"")===v&&(this.day=y)}],M:[a,c("month")],MM:[o,c("month")],MMM:[i,function(v){var w=f("months"),g=(f("monthsShort")||w.map(function(y){return y.slice(0,3)})).indexOf(v)+1;if(g<1)throw new Error;this.month=g%12||g}],MMMM:[i,function(v){var w=f("months").indexOf(v)+1;if(w<1)throw new Error;this.month=w%12||w}],Y:[/[+-]?\d+/,c("year")],YY:[o,function(v){this.year=l(v)}],YYYY:[/\d{4}/,c("year")],Z:u,ZZ:u};function b(v){var w,g;w=v,g=s&&s.formats;for(var y=(v=w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,D,F){var U=F&&F.toUpperCase();return D||g[F]||n[F]||g[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(G,z,B){return z||B.slice(1)})})).match(r),x=y.length,C=0;C-1)return new Date((Q==="X"?1e3:1)*Y);var J=b(Q)(Y),X=J.year,L=J.month,K=J.day,q=J.hours,R=J.minutes,N=J.seconds,V=J.milliseconds,Z=J.zone,re=new Date,le=K||(X||L?1:re.getDate()),xe=X||re.getFullYear(),fe=0;X&&!L||(fe=L>0?L-1:re.getMonth());var ge=q||0,he=R||0,_e=N||0,ve=V||0;return Z?new Date(Date.UTC(xe,fe,le,ge,he,_e,ve+60*Z.offset*1e3)):H?new Date(Date.UTC(xe,fe,le,ge,he,_e,ve)):new Date(xe,fe,le,ge,he,_e,ve)}catch{return new Date("")}}(_,k,$),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),F&&_!=this.format(k)&&(this.$d=new Date("")),s={}}else if(k instanceof Array)for(var G=k.length,z=1;z<=G;z+=1){P[1]=k[z-1];var B=g.apply(this,P);if(B.isValid()){this.$d=B.$d,this.$L=B.$L,this.init();break}z===G&&(this.$d=new Date(""))}else x.call(this,C)}}})})(m6);var xAe=m6.exports;const wAe=Bt(xAe);var v6={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(go,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,a){var i=o.prototype,s=i.format;a.en.formats=n,i.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,u=function(f,p){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(m,b,v){var w=v&&v.toUpperCase();return b||p[v]||n[v]||p[w].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,y,x){return y||x.slice(1)})})}(l,c===void 0?{}:c);return s.call(this,u)}}})})(v6);var CAe=v6.exports;const $Ae=Bt(CAe);var g6={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(go,function(){return function(n,r,o){r.prototype.isBetween=function(a,i,s,l){var c=o(a),u=o(i),f=(l=l||"()")[0]==="(",p=l[1]===")";return(f?this.isAfter(c,s):!this.isBefore(c,s))&&(p?this.isBefore(u,s):!this.isAfter(u,s))||(f?this.isBefore(c,s):!this.isAfter(c,s))&&(p?this.isAfter(u,s):!this.isBefore(u,s))}}})})(g6);var SAe=g6.exports;const _Ae=Bt(SAe);yr.extend(wAe);yr.extend($Ae);yr.extend(_Ae);const EAe=FL(["Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale"]),PAe={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},TAe={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},bx=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(` -`),nM=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(` -`),kAe=(e,t)=>t?(...n)=>e(...n).locale(t):e;class jE{constructor({locale:t,formats:n,instance:r}={}){var o;this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.rawDayJsInstance=void 0,this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=PAe,this.setLocaleToValue=a=>{const i=this.getCurrentLocaleCode();return i===a.locale()?a:a.locale(i)},this.hasUTCPlugin=()=>typeof yr.utc<"u",this.hasTimezonePlugin=()=>typeof yr.tz<"u",this.isSame=(a,i,s)=>{const l=this.setTimezone(i,this.getTimezone(a));return a.format(s)===l.format(s)},this.cleanTimezone=a=>{switch(a){case"default":return;case"system":return yr.tz.guess();default:return a}},this.createSystemDate=a=>{if(this.rawDayJsInstance)return this.rawDayJsInstance(a);if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const i=yr.tz.guess();return i!=="UTC"?yr.tz(a,i):yr(a)}return yr(a)},this.createUTCDate=a=>{if(!this.hasUTCPlugin())throw new Error(bx);return yr.utc(a)},this.createTZDate=(a,i)=>{if(!this.hasUTCPlugin())throw new Error(bx);if(!this.hasTimezonePlugin())throw new Error(nM);const s=a!==void 0&&!a.endsWith("Z");return yr(a).tz(this.cleanTimezone(i),s)},this.getLocaleFormats=()=>{const a=yr.Ls,i=this.locale||"en";let s=a[i];return s===void 0&&(EAe(),s=a.en),s.formats},this.adjustOffset=a=>{if(!this.hasTimezonePlugin())return a;const i=this.getTimezone(a);if(i!=="UTC"){var s,l;const c=a.tz(this.cleanTimezone(i),!0);return((s=c.$offset)!=null?s:0)===((l=a.$offset)!=null?l:0)?a:c}return a},this.date=a=>a===null?null:this.dayjs(a),this.dateWithTimezone=(a,i)=>{if(a===null)return null;let s;return i==="UTC"?s=this.createUTCDate(a):i==="system"||i==="default"&&!this.hasTimezonePlugin()?s=this.createSystemDate(a):s=this.createTZDate(a,i),this.locale===void 0?s:s.locale(this.locale)},this.getTimezone=a=>{if(this.hasTimezonePlugin()){var i;const s=(i=a.$x)==null?void 0:i.$timezone;if(s)return s}return this.hasUTCPlugin()&&a.isUTC()?"UTC":"system"},this.setTimezone=(a,i)=>{if(this.getTimezone(a)===i)return a;if(i==="UTC"){if(!this.hasUTCPlugin())throw new Error(bx);return a.utc()}if(i==="system")return a.local();if(!this.hasTimezonePlugin()){if(i==="default")return a;throw new Error(nM)}return yr.tz(a,this.cleanTimezone(i))},this.toJsDate=a=>a.toDate(),this.parseISO=a=>this.dayjs(a),this.toISO=a=>a.toISOString(),this.parse=(a,i)=>a===""?null:this.dayjs(a,i,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=a=>{const i=this.getLocaleFormats(),s=l=>l.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(c,u,f)=>u||f.slice(1));return a.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(l,c,u)=>{const f=u&&u.toUpperCase();return c||i[u]||s(i[f])})},this.getFormatHelperText=a=>this.expandFormat(a).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=a=>a===null,this.isValid=a=>this.dayjs(a).isValid(),this.format=(a,i)=>this.formatByString(a,this.formats[i]),this.formatByString=(a,i)=>this.dayjs(a).format(i),this.formatNumber=a=>a,this.getDiff=(a,i,s)=>a.diff(i,s),this.isEqual=(a,i)=>a===null&&i===null?!0:this.dayjs(a).toDate().getTime()===this.dayjs(i).toDate().getTime(),this.isSameYear=(a,i)=>this.isSame(a,i,"YYYY"),this.isSameMonth=(a,i)=>this.isSame(a,i,"YYYY-MM"),this.isSameDay=(a,i)=>this.isSame(a,i,"YYYY-MM-DD"),this.isSameHour=(a,i)=>a.isSame(i,"hour"),this.isAfter=(a,i)=>a>i,this.isAfterYear=(a,i)=>this.hasUTCPlugin()?!this.isSameYear(a,i)&&a.utc()>i.utc():a.isAfter(i,"year"),this.isAfterDay=(a,i)=>this.hasUTCPlugin()?!this.isSameDay(a,i)&&a.utc()>i.utc():a.isAfter(i,"day"),this.isBefore=(a,i)=>athis.hasUTCPlugin()?!this.isSameYear(a,i)&&a.utc()this.hasUTCPlugin()?!this.isSameDay(a,i)&&a.utc()a>=i&&a<=s,this.startOfYear=a=>this.adjustOffset(a.startOf("year")),this.startOfMonth=a=>this.adjustOffset(a.startOf("month")),this.startOfWeek=a=>this.adjustOffset(a.startOf("week")),this.startOfDay=a=>this.adjustOffset(a.startOf("day")),this.endOfYear=a=>this.adjustOffset(a.endOf("year")),this.endOfMonth=a=>this.adjustOffset(a.endOf("month")),this.endOfWeek=a=>this.adjustOffset(a.endOf("week")),this.endOfDay=a=>this.adjustOffset(a.endOf("day")),this.addYears=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"year"):a.add(i,"year")),this.addMonths=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"month"):a.add(i,"month")),this.addWeeks=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"week"):a.add(i,"week")),this.addDays=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"day"):a.add(i,"day")),this.addHours=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"hour"):a.add(i,"hour")),this.addMinutes=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"minute"):a.add(i,"minute")),this.addSeconds=(a,i)=>this.adjustOffset(i<0?a.subtract(Math.abs(i),"second"):a.add(i,"second")),this.getYear=a=>a.year(),this.getMonth=a=>a.month(),this.getDate=a=>a.date(),this.getHours=a=>a.hour(),this.getMinutes=a=>a.minute(),this.getSeconds=a=>a.second(),this.getMilliseconds=a=>a.millisecond(),this.setYear=(a,i)=>this.adjustOffset(a.set("year",i)),this.setMonth=(a,i)=>this.adjustOffset(a.set("month",i)),this.setDate=(a,i)=>this.adjustOffset(a.set("date",i)),this.setHours=(a,i)=>this.adjustOffset(a.set("hour",i)),this.setMinutes=(a,i)=>this.adjustOffset(a.set("minute",i)),this.setSeconds=(a,i)=>this.adjustOffset(a.set("second",i)),this.setMilliseconds=(a,i)=>this.adjustOffset(a.set("millisecond",i)),this.getDaysInMonth=a=>a.daysInMonth(),this.getNextMonth=a=>this.addMonths(a,1),this.getPreviousMonth=a=>this.addMonths(a,-1),this.getMonthArray=a=>{const s=[a.startOf("year")];for(;s.length<12;){const l=s[s.length-1];s.push(this.addMonths(l,1))}return s},this.mergeDateAndTime=(a,i)=>a.hour(i.hour()).minute(i.minute()).second(i.second()),this.getWeekdays=()=>{const a=this.dayjs().startOf("week");return[0,1,2,3,4,5,6].map(i=>this.formatByString(this.addDays(a,i),"dd"))},this.getWeekArray=a=>{const i=this.setLocaleToValue(a),s=i.startOf("month").startOf("week"),l=i.endOf("month").endOf("week");let c=0,u=s;const f=[];for(;ua.week(),this.getYearRange=(a,i)=>{const s=a.startOf("year"),l=i.endOf("year"),c=[];let u=s;for(;ua==="am"?"AM":"PM",this.rawDayJsInstance=r,this.dayjs=kAe((o=this.rawDayJsInstance)!=null?o:yr,t),this.locale=t,this.formats=T({},TAe,n),yr.extend(bAe)}}var LE={},OAe=hc;Object.defineProperty(LE,"__esModule",{value:!0});var y6=LE.default=void 0,RAe=OAe(mc()),DAe=O,MAe=(0,RAe.default)((0,DAe.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");y6=LE.default=MAe;const IAe=({schema:e,rootSchema:t,visible:n,renderers:r,cells:o,path:a,uischemas:i,uischema:s})=>{const l=Zj(i)(e,s.scope,a);if(l)return A.createElement(Pn,{xsUp:!n},A.createElement(Eo,{schema:e,uischema:l,path:a,renderers:r,cells:o}));const c=Py(e.allOf,t,"allOf",s,a,i);return A.createElement(Pn,{xsUp:!n},c.map((u,f)=>A.createElement(Eo,{key:f,schema:u.schema,uischema:u.uischema,path:a,renderers:r,cells:o})))},AAe=mn(3,Aj);var NAe=Ahe(IAe);class b6 extends A.Component{render(){const{schema:t,combinatorKeyword:n,path:r}=this.props,o=cke(t,n),a=Zl.uiSchema(o,"VerticalLayout");let i=!1;return a!==null&&Pj(a)&&(i=a.elements.length>0),i?A.createElement(Eo,{schema:o,path:r,uischema:a}):null}}const jAe=({schema:e,rootSchema:t,indexOfFittingSchema:n,visible:r,path:o,renderers:a,cells:i,uischema:s,uischemas:l})=>{const[c,u]=S.useState(n||0),f=S.useCallback((b,v)=>u(v),[u]),p="anyOf",m=Py(e.anyOf,t,p,s,o,l);return A.createElement(Pn,{xsUp:!r},A.createElement(b6,{schema:e,combinatorKeyword:p,path:o}),A.createElement(P0,{value:c,onChange:f},m.map(b=>A.createElement(Pp,{key:b.label,label:b.label}))),m.map((b,v)=>c===v&&A.createElement(Eo,{key:v,schema:b.schema,uischema:b.uischema,path:o,renderers:a,cells:i})))};E4(jAe);const LAe=de(wd)({borderBottom:"none"}),Dp=({children:e,...t})=>A.createElement(LAe,Object.assign({},t),e),FAe=de(I5)(({theme:e})=>({color:e.palette.error.main})),x6=({errorMessages:e,id:t})=>A.createElement(pc,{id:t,title:e},A.createElement(FAe,{badgeContent:e.split(` -`).length},A.createElement(yE,{color:"inherit"}))),zAe={paddingLeft:0,paddingRight:0},BAe=A.memo(function({numColumns:t,errors:n,label:r,path:o,addItem:a,schema:i,enabled:s,translations:l}){return A.createElement(al,null,A.createElement(Dp,{colSpan:t},A.createElement(en,{container:!0,justifyContent:"flex-start",alignItems:"center",spacing:2},A.createElement(en,{item:!0},A.createElement(gn,{variant:"h6"},r)),A.createElement(en,{item:!0},n.length!==0&&A.createElement(en,{item:!0},A.createElement(x6,{id:"tooltip-validation",errorMessages:n}))))),s?A.createElement(Dp,{align:"right",style:zAe},A.createElement(pc,{id:"tooltip-add",title:l.addTooltip,placement:"bottom"},A.createElement(tr,{"aria-label":l.addAriaLabel,onClick:a(o,Xi(i)),size:"large"},A.createElement(vE,null)))):null)}),rM={fixedCell:{width:"150px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"},fixedCellSmall:{width:"50px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"}},w6=(e,t,n,r,o)=>{if(t.type==="object")return C6(t).map(a=>{var l,c;const i=Wr.compose(n,a),s={propName:a,schema:t,title:((c=(l=t.properties)==null?void 0:l[a])==null?void 0:c.title)??py(a),rowPath:n,cellPath:i,enabled:r,cells:o};return A.createElement(e,Object.assign({key:i},s))});{const a={schema:t,rowPath:n,cellPath:n,enabled:r};return A.createElement(e,Object.assign({key:n},a))}},C6=e=>e.type==="object"&&typeof e.properties=="object"?Object.keys(e.properties).filter(t=>e.properties[t].type!=="array"):[""],VAe=({numColumns:e,translations:t})=>A.createElement(al,null,A.createElement(Dp,{colSpan:e},A.createElement(gn,{align:"center"},t.noDataMessage))),UAe=A.memo(function({title:t}){return A.createElement(wd,null,t)}),WAe=(e,t)=>{const n=t.rowPath+(t.schema.type==="object"?"."+t.propName:""),r=t_(dL(zS(n,t.schema,o=>o===n)(e.core.errors).map(o=>o.message)));return{rowPath:t.rowPath,propName:t.propName,schema:t.schema,rootSchema:e.core.schema,errors:r,path:n,enabled:t.enabled,cells:t.cells||e.cells,renderers:t.renderers||e.renderers}},oM=e=>({type:"Control",scope:e,label:!1}),HAe=A.memo(function({path:t,propName:n,schema:r,rootSchema:o,errors:a,enabled:i,renderers:s,cells:l,isValid:c}){return A.createElement(Dp,null,r.properties?A.createElement(Xl,{schema:So.schema(r,`#/properties/${Jl(n)}`,o),uischema:oM(`#/properties/${Jl(n)}`),path:t,enabled:i,renderers:s,cells:l}):A.createElement(Xl,{schema:r,uischema:oM("#"),path:t,enabled:i,renderers:s,cells:l}),A.createElement(dr,{error:!c},!c&&a))}),GAe=e=>{const t=fc(),n=WAe(t,e),r=Mt(n.errors);return A.createElement(HAe,Object.assign({},n,{isValid:r}))},qAe=({childPath:e,schema:t,rowIndex:n,openDeleteDialog:r,moveUpCreator:o,moveDownCreator:a,enableUp:i,enableDown:s,showSortButtons:l,enabled:c,cells:u,path:f,translations:p})=>{const m=S.useMemo(()=>o(f,n),[o,f,n]),b=S.useMemo(()=>a(f,n),[a,f,n]);return A.createElement(al,{key:e,hover:!0},w6(GAe,t,e,c,u),c?A.createElement(Dp,{style:l?rM.fixedCell:rM.fixedCellSmall},A.createElement(en,{container:!0,direction:"row",justifyContent:"flex-end",alignItems:"center"},l?A.createElement(S.Fragment,null,A.createElement(en,{item:!0},A.createElement(tr,{"aria-label":p.upAriaLabel,onClick:m,disabled:!i,size:"large"},A.createElement(O0,null))),A.createElement(en,{item:!0},A.createElement(tr,{"aria-label":p.downAriaLabel,onClick:b,disabled:!s,size:"large"},A.createElement(k0,null)))):null,A.createElement(en,{item:!0},A.createElement(tr,{"aria-label":p.removeAriaLabel,onClick:()=>r(e,n),size:"large"},A.createElement(T0,null))))):null)},YAe=A.memo(qAe),KAe=({data:e,path:t,schema:n,openDeleteDialog:r,moveUp:o,moveDown:a,uischema:i,config:s,enabled:l,cells:c,translations:u})=>{if(e===0)return A.createElement(VAe,{numColumns:C6(n).length+1,translations:u});const p=tn({},s,i.options);return A.createElement(A.Fragment,null,fd(e).map(m=>{const b=Wr.compose(t,`${m}`);return A.createElement(YAe,{key:b,childPath:b,rowIndex:m,schema:n,openDeleteDialog:r,moveUpCreator:o,moveDownCreator:a,enableUp:m!==0,enableDown:m!==e-1,showSortButtons:p.showSortButtons||p.showArrayTableSortButtons,enabled:l,cells:c,path:t,translations:u})}))};let JAe=class extends A.Component{constructor(){super(...arguments),this.addItem=(t,n)=>this.props.addItem(t,n)}render(){const{label:t,path:n,schema:r,rootSchema:o,uischema:a,errors:i,openDeleteDialog:s,visible:l,enabled:c,cells:u,translations:f}=this.props,p=a,m=r.type==="object",b=m?w6(UAe,r,n,c,u):void 0;return A.createElement(Pn,{xsUp:!l},A.createElement(lL,null,A.createElement(uL,null,A.createElement(BAe,{errors:i,label:t,addItem:this.addItem,numColumns:m?b.length:1,path:n,uischema:p,schema:r,rootSchema:o,enabled:c,translations:f}),m&&A.createElement(al,null,b,c?A.createElement(wd,null):null)),A.createElement(cL,null,A.createElement(KAe,Object.assign({openDeleteDialog:s,translations:f},this.props)))))}};const ZAe=A.memo(function({open:t,onClose:n,onConfirm:r,onCancel:o,title:a,message:i,acceptText:s,declineText:l}){return A.createElement(w0,{open:t,keepMounted:!0,onClose:n,"aria-labelledby":"alert-dialog-confirmdelete-title","aria-describedby":"alert-dialog-confirmdelete-description"},A.createElement(aE,{id:"alert-dialog-confirmdelete-title"},a),A.createElement($0,null,A.createElement(oE,{id:"alert-dialog-confirmdelete-description"},i)),A.createElement(C0,null,A.createElement(Vo,{onClick:o,color:"primary"},l),A.createElement(Vo,{onClick:r,color:"primary"},s)))}),XAe=e=>{const[t,n]=S.useState(!1),[r,o]=S.useState(void 0),[a,i]=S.useState(void 0),{removeItems:s,visible:l}=e,c=S.useCallback((m,b)=>{n(!0),o(m),i(b)},[n,o,i]),u=S.useCallback(()=>n(!1),[n]),f=S.useCallback(()=>{const m=r.substring(0,r.lastIndexOf("."));s(m,[a])(),n(!1)},[n,r,a]),p=S.useCallback(()=>n(!1),[n]);return A.createElement(Pn,{xsUp:!l},A.createElement(JAe,Object.assign({},e,{openDeleteDialog:c})),A.createElement(ZAe,{open:t,onCancel:u,onConfirm:f,onClose:p,acceptText:e.translations.deleteDialogAccept,declineText:e.translations.deleteDialogDecline,title:e.translations.deleteDialogTitle,message:e.translations.deleteDialogMessage}))};Ty(XAe);const sl=()=>{const[e,t]=S.useState(!1),n=S.useCallback(()=>t(!0),[]),r=S.useCallback(()=>t(!1),[]);return[e,n,r]},$6=e=>{const{description:t,errors:n,visible:r,required:o,label:a,data:i,className:s,id:l,enabled:c,uischema:u,path:f,handleChange:p,options:m,config:b,getOptionLabel:v,renderOption:w,filterOptions:g,isValid:y}=e,x=tn({},b,u.options),[C,_]=A.useState(i??""),[$,P,k]=sl(),I=m.find(G=>G.value===i)??null,D=!_o(r,t,$,x.showUnfocusedDescription),F=D?t:y?null:n,U=D&&!y?n:null;return A.createElement(Pn,{xsUp:!r},A.createElement(ewe,{className:s,id:l,disabled:!c,value:I,onChange:(G,z)=>{p(f,z==null?void 0:z.value)},inputValue:C,onInputChange:(G,z)=>{_(z)},autoHighlight:!0,autoSelect:!0,autoComplete:!0,fullWidth:!0,options:m,getOptionLabel:v||(G=>G==null?void 0:G.label),freeSolo:!1,renderInput:G=>A.createElement(ph,Object.assign({label:a,variant:"standard",type:"text",inputProps:G.inputProps,inputRef:G.InputProps.ref,autoFocus:x.focus,disabled:!c},G,{id:l+"-input",required:o&&!x.hideRequiredAsterisk,error:!y,fullWidth:!x.trim,InputLabelProps:i?{shrink:!0}:void 0,onFocus:P,onBlur:k,focused:$})),renderOption:w,filterOptions:g}),A.createElement(dr,{error:!y&&!D},F),A.createElement(dr,{error:!y},U))},FE=A.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c,inputProps:u}=t,f=tn({},c,i.options),p=tn({},u,{autoFocus:!!f.focus}),m=!!n;return A.createElement($Ce,{checked:m,onChange:(b,v)=>l(s,v),className:r,id:o,disabled:!a,inputProps:p})});bE.extend(tOe);const zE=(e,t,n)=>r=>{if(!r){t(e,void 0);return}const o=bE(r).format(n);t(e,o)},BE=(e,t)=>{if(!e)return null;const n=bE(e,t);return n.toString()==="Invalid Date"?null:n},QAe=(e,t,n,r,o,a)=>e.map((i,s)=>A.createElement(en,{item:!0,key:`${n}-${s}`,xs:!0},A.createElement(Eo,{uischema:i,schema:t,path:n,enabled:r,renderers:o,cells:a}))),eNe=({visible:e,elements:t,schema:n,path:r,enabled:o,direction:a,renderers:i,cells:s})=>Mt(t)?null:A.createElement(Pn,{xsUp:!e},A.createElement(en,{container:!0,direction:a,spacing:a==="row"?2:0},QAe(t,n,r,o,i,s))),bh=A.memo(eNe),S6=e=>function(n){const r=fc(),o=md({jsonforms:{...r}});return A.createElement(e,Object.assign({},n,{ajv:o}))},tNe=e=>e.target.value,yc=(e,t,n,r,o=tNe,a=300)=>{const[i,s]=S.useState(n??t);S.useEffect(()=>{s(n??t)},[n]);const l=S.useCallback(b4(f=>e(r,f),a),[e,r,a]),c=S.useCallback(f=>{const p=o(f);s(p??t),l(p)},[l,o]),u=S.useCallback(()=>{s(t),e(r,void 0)},[t,e,r]);return[i,c,u]},nNe={"enum.none":"None"},rNe=e=>e===""?void 0:parseInt(e,10),oNe=e=>rNe(e.target.value),_6=A.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c}=t,u={step:"1"},f=tn({},c,i.options),[p,m]=yc(l,"",n,s,oNe);return A.createElement(is,{type:"number",value:p,onChange:m,className:r,id:o,disabled:!a,autoFocus:f.focus,inputProps:u,fullWidth:!0})}),aNe=e=>e===""?void 0:parseFloat(e),iNe=e=>aNe(e.target.value),E6=A.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c}=t,u={step:"0.1"},f=tn({},c,i.options),[p,m]=yc(l,"",n,s,iNe);return A.createElement(is,{type:"number",value:p,onChange:m,className:r,id:o,disabled:!a,autoFocus:f.focus,inputProps:u,fullWidth:!0})}),sNe=A.memo(function(t){const{className:n,id:r,enabled:o,uischema:a,isValid:i,path:s,handleChange:l,schema:c,config:u}=t,f=c.maxLength,p=tn({},u,a.options);let m;p.restrict?m={maxLength:f}:m={};const b=t.toFormatted(t.data),v=S.useCallback(y=>t.fromFormatted(y.currentTarget.value),[t.fromFormatted]),[w,g]=yc(l,"",b,s,v);return A.createElement(is,{type:"text",value:w,onChange:g,className:n,id:r,disabled:!o,autoFocus:p.focus,multiline:p.multi,fullWidth:!p.trim||f===void 0,inputProps:m,error:!i})}),lNe=e=>e.target.value===""?void 0:e.target.value,P6=A.memo(function(t){var D,F,U;const[n,r]=S.useState(!1),{data:o,config:a,className:i,id:s,enabled:l,uischema:c,isValid:u,path:f,handleChange:p,schema:m,muiInputProps:b,inputComponent:v}=t,w=m.maxLength,g=tn({},a,c.options);let y;g.restrict?y={maxLength:w}:y={},y=tn(y,b),g.trim&&w!==void 0&&(y.size=w);const[x,C,_]=yc(p,"",o,f,lNe),$=()=>r(!0),P=()=>r(!1),k=nr(),I={background:((U=(F=(D=k.jsonforms)==null?void 0:D.input)==null?void 0:F.delete)==null?void 0:U.background)||k.palette.background.default,borderRadius:"50%"};return A.createElement(is,{type:g.format==="password"?"password":"text",value:x,onChange:C,className:i,id:s,disabled:!l,autoFocus:g.focus,multiline:g.multi,fullWidth:!g.trim||w===void 0,inputProps:y,error:!u,onPointerEnter:$,onPointerLeave:P,endAdornment:A.createElement(sE,{position:"end",style:{display:!n||!l||o===void 0?"none":"flex",position:"absolute",right:0}},A.createElement(tr,{"aria-label":"Clear input field",onClick:_,size:"large"},A.createElement(mL,{style:I}))),inputComponent:v})}),cNe=A.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c}=t,u=tn({},c,i.options),[f,p]=yc(l,"",n,s);return A.createElement(is,{type:"time",value:f,onChange:p,className:r,id:o,disabled:!a,autoFocus:u.focus,fullWidth:!0})}),L0=A.memo(function(t){const{data:n,className:r,id:o,enabled:a,schema:i,uischema:s,path:l,handleChange:c,options:u,config:f,t:p}=t,m=tn({},f,s.options),b=S.useMemo(()=>p("enum.none",nNe["enum.none"],{schema:i,uischema:s,path:l}),[p,i,s,l]);return A.createElement(aL,{className:r,id:o,disabled:!a,autoFocus:m.focus,value:n!==void 0?n:"",onChange:v=>c(l,v.target.value||void 0),fullWidth:!0,variant:"standard"},[A.createElement(Mg,{value:"",key:"jsonforms.enum.none"},A.createElement("em",null,b))].concat(u.map(v=>A.createElement(Mg,{value:v.value,key:v.value},v.label))))}),T6=A.memo(function(t){const{data:n,className:r,id:o,enabled:a,uischema:i,path:s,handleChange:l,config:c,inputProps:u}=t,f=tn({},c,i.options),p=tn({},u,{autoFocus:!!f.focus}),m=!!n;return A.createElement(_2e,{checked:m,onChange:(b,v)=>l(s,v),className:r,id:o,disabled:!a,inputProps:p})}),uNe=({schema:e,visible:t,errors:n,path:r,options:o,data:a,addItem:i,removeItem:s,handleChange:l,...c})=>A.createElement(Pn,{xlUp:!t},A.createElement(uh,{component:"fieldset"},A.createElement(B5,{row:!0},o.map((u,f)=>{const p=Wr.compose(r,`${f}`),m=a!=null&&a.includes(u.value)?u.value:void 0;return A.createElement(S0,{id:u.value,key:u.value,control:A.createElement(FE,Object.assign({key:"checkbox-"+u.value,isValid:Mt(n),path:p,handleChange:(b,v)=>v?i(r,u.value):s(r,u.value),data:m,errors:n,schema:e,visible:t},c)),label:u.label})})),A.createElement(dr,{error:!0},n)));zhe(uNe);const dNe=({renderers:e,cells:t,uischemas:n,schema:r,label:o,path:a,visible:i,enabled:s,uischema:l,rootSchema:c})=>{const u=S.useMemo(()=>th(n,r,l.scope,a,()=>Mt(a)?Zl.uiSchema(r,"VerticalLayout"):{...Zl.uiSchema(r,"Group"),label:o},l,c),[n,r,l.scope,a,o,l,c]);return A.createElement(Pn,{xsUp:!i},A.createElement(Eo,{visible:i,enabled:s,schema:r,uischema:u,path:a,renderers:e,cells:t}))};var fNe=Nhe(dNe);const pNe=({handleChange:e,schema:t,path:n,renderers:r,cells:o,rootSchema:a,id:i,visible:s,indexOfFittingSchema:l,uischema:c,uischemas:u,data:f})=>{const[p,m]=S.useState(!1),[b,v]=S.useState(l||0),[w,g]=S.useState(0),y=S.useCallback(()=>m(!1),[m]),x=S.useCallback(()=>{m(!1)},[m]),C=Py(t.oneOf,a,"oneOf",c,n,u),_=k=>{e(n,Xi(C[k].schema)),v(k)},$=S.useCallback(()=>{_(w),m(!1)},[e,Xi,w]),P=S.useCallback((k,I)=>{g(I),Mt(f)?_(I):m(!0)},[m,v,f]);return A.createElement(Pn,{xsUp:!s},A.createElement(b6,{schema:t,combinatorKeyword:"oneOf",path:n}),A.createElement(P0,{value:b,onChange:P},C.map(k=>A.createElement(Pp,{key:k.label,label:k.label}))),C.map((k,I)=>b===I&&A.createElement(Eo,{key:I,schema:k.schema,uischema:k.uischema,path:n,renderers:r,cells:o})),A.createElement(w0,{open:p,onClose:y,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},A.createElement(aE,{id:"alert-dialog-title"},"Clear form?"),A.createElement($0,null,A.createElement(oE,{id:"alert-dialog-description"},"Your data will be cleared if you navigate away from this tab. Do you want to proceed?")),A.createElement(C0,null,A.createElement(Vo,{onClick:x,color:"primary"},"No"),A.createElement(Vo,{onClick:$,color:"primary",autoFocus:!0,id:`oneOf-${i}-confirm-yes`},"Yes"))))},hNe=mn(3,jj);var mNe=Ihe(pNe);const vNe=({text:e,visible:t})=>A.createElement(Pn,{xsUp:!t},A.createElement(gn,{variant:"h6"},e));k4(vNe);const k6=A.memo(function({label:t,errors:n,addItem:r,path:o,enabled:a,createDefault:i,translations:s}){return A.createElement(cTe,{disableGutters:!0},A.createElement(en,{container:!0,alignItems:"center",justifyContent:"space-between"},A.createElement(en,{item:!0},A.createElement(en,{container:!0,justifyContent:"flex-start",alignItems:"center",spacing:2},A.createElement(en,{item:!0},A.createElement(gn,{variant:"h6"},t)),A.createElement(en,{item:!0},n.length!==0&&A.createElement(en,{item:!0},A.createElement(x6,{id:"tooltip-validation",errorMessages:n}))))),a&&A.createElement(en,{item:!0},A.createElement(en,{container:!0},A.createElement(en,{item:!0},A.createElement(pc,{id:"tooltip-add",title:s.addTooltip,placement:"bottom"},A.createElement(tr,{"aria-label":s.addTooltip,onClick:r(o,i()),size:"large"},A.createElement(vE,null))))))))}),gNe=({index:e,childLabel:t,selected:n,enabled:r,handleSelect:o,removeItem:a,path:i,translations:s})=>A.createElement(K5,{button:!0,selected:n,onClick:o(e)},A.createElement(v_e,null,A.createElement(D5,{"aria-label":"Index"},e+1)),A.createElement(S_e,{primary:t}),r&&A.createElement(Y5,null,A.createElement(tr,{"aria-label":s.removeAriaLabel,onClick:a(i,e),size:"large"},A.createElement(T0,null))));var yNe=jhe(gNe);const bNe=({uischemas:e,schema:t,uischema:n,path:r,enabled:o,errors:a,visible:i,label:s,required:l,removeItems:c,addItem:u,data:f,renderers:p,cells:m,config:b,rootSchema:v,translations:w})=>{const[g,y]=S.useState(void 0),x=S.useCallback((k,I)=>()=>{c(k,[I])(),g===I?y(void 0):g>I&&y(g-1)},[c,y]),C=S.useCallback(k=>()=>y(k),[y]),_=S.useCallback(()=>Xi(t),[Xi]),$=S.useMemo(()=>th(e,t,n.scope,r,void 0,n,v),[e,t,n.scope,r,n,v]),P=tn({},b,n.options);return A.useEffect(()=>{y(void 0)},[t]),A.createElement(Pn,{xsUp:!i},A.createElement(k6,{translations:w,label:Sy(s,l,P.hideRequiredAsterisk),errors:a,path:r,enabled:o,addItem:u,createDefault:_}),A.createElement(en,{container:!0,direction:"row",spacing:2},A.createElement(en,{item:!0,xs:3},A.createElement(lE,null,f>0?gL(fd(f),k=>A.createElement(yNe,{index:k,path:r,schema:t,enabled:o,handleSelect:C,removeItem:x,selected:g===k,key:k,translations:w})):A.createElement("p",null,"No data"))),A.createElement(en,{item:!0,xs:!0},g!==void 0?A.createElement(Eo,{renderers:p,cells:m,visible:i,schema:t,uischema:$,path:dc(r,`${g}`)}):A.createElement(gn,{variant:"h6"},w.noSelection))))};Ty(bNe);const Sd=e=>{const[t,n,r]=sl(),{id:o,description:a,errors:i,label:s,uischema:l,visible:c,required:u,config:f,input:p}=e,m=i.length===0,b=tn({},f,l.options),v=!_o(c,a,t,b.showUnfocusedDescription),w=v?a:m?null:i,g=v&&!m?i:null,y=p;return A.createElement(Pn,{xsUp:!c},A.createElement(uh,{fullWidth:!b.trim,onFocus:n,onBlur:r,id:o,variant:"standard"},A.createElement(G5,{htmlFor:o+"-input",error:!m,required:_y(u,b.hideRequiredAsterisk)},s),A.createElement(y,Object.assign({},e,{id:o+"-input",isValid:m,visible:c})),A.createElement(dr,{error:!m&&!v},w),A.createElement(dr,{error:!m},g)))},xNe=e=>e.find(t=>t.enum!==void 0&&(t.type==="string"||t.type===void 0)),wNe=e=>e.find(t=>t.type==="string"&&t.enum===void 0),CNe=e=>{const{data:t,config:n,className:r,id:o,enabled:a,uischema:i,isValid:s,path:l,handleChange:c,schema:u}=e,f=xNe(u.anyOf),m=wNe(u.anyOf).maxLength,b=S.useMemo(()=>tn({},n,i.options),[n,i.options]),v=S.useMemo(()=>{let x={};return b.restrict&&(x={maxLength:m}),b.trim&&m!==void 0&&(x.size=m),x.list=e.id+"datalist",x},[b,e.id]),[w,g]=yc(c,"",t,l),y=A.createElement("datalist",{id:e.id+"datalist"},f.enum.map(x=>A.createElement("option",{value:x,key:x})));return A.createElement(is,{type:"text",value:w,onChange:g,className:r,id:o,disabled:!a,autoFocus:b.focus,fullWidth:!b.trim||m===void 0,inputProps:v,error:!s,endAdornment:y})};class $Ne extends w4{render(){return A.createElement(Sd,Object.assign({},this.props,{input:CNe}))}}so($Ne);const SNe=({data:e,visible:t,label:n,id:r,enabled:o,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,path:u,config:f,description:p})=>{const m=c.length===0,b=tn({},f,a.options),v=!_o(t,p,!1,b.showUnfocusedDescription),w=!v&&!_o(t,p,!0,!0),g=v?p:m?null:c,y=v&&!m?c:null,x=[],C=`${r}-tip`,_=`${r}-help1`,$=`${r}-help2`;w&&x.push(C),g&&x.push(_),y&&x.push($);const P=x.join(" ");return A.createElement(Pn,{xsUp:!t},A.createElement(pc,{id:C,title:w?p:""},A.createElement(S0,{label:n,id:r,control:A.createElement(FE,{id:`${r}-input`,isValid:Mt(c),data:e,enabled:o,visible:t,path:u,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,config:f,inputProps:{"aria-describedby":P}})})),A.createElement(dr,{id:_,error:!m&&!v},g),A.createElement(dr,{id:$,error:!m},y))};so(SNe);const _Ne=({data:e,visible:t,label:n,id:r,enabled:o,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,path:u,config:f,description:p})=>{const m=c.length===0,b=tn({},f,a.options),v=!_o(t,p,!1,b.showUnfocusedDescription),w=!v&&!_o(t,p,!0,!0),g=v?p:m?null:c,y=v&&!m?c:null,x=[],C=`${r}-tip`,_=`${r}-help1`,$=`${r}-help2`;w&&x.push(C),g&&x.push(_),y&&x.push($);const P=x.join(" ");return A.createElement(Pn,{xsUp:!t},A.createElement(pc,{id:C,title:w?p:""},A.createElement(S0,{label:n,id:r,control:A.createElement(T6,{id:`${r}-input`,isValid:Mt(c),data:e,enabled:o,visible:t,path:u,uischema:a,schema:i,rootSchema:s,handleChange:l,errors:c,config:f,inputProps:{"aria-describedby":P}})})),A.createElement(dr,{id:_,error:!m&&!v},g),A.createElement(dr,{id:$,error:!m},y))};so(_Ne);const ENe=e=>{const[t,n,r]=sl(),{description:o,id:a,errors:i,label:s,uischema:l,visible:c,enabled:u,required:f,path:p,handleChange:m,data:b,config:v}=e,w=i.length===0,g=tn({},v,l.options),y=!_o(c,o,t,g.showUnfocusedDescription),x=g.dateFormat??"YYYY-MM-DD",C=g.dateSaveFormat??"YYYY-MM-DD",_=g.views??["year","day"],$=y?o:w?null:i,P=y&&!w?i:null,k=S.useMemo(()=>zE(p,m,C),[p,m,C]),I=BE(b,C);return A.createElement(Pn,{xsUp:!c},A.createElement(hh,{dateAdapter:jE},A.createElement(UIe,{label:s,value:I,onChange:k,format:x,views:_,disabled:!u,slotProps:{actionBar:({wrapperVariant:D})=>({actions:D==="desktop"?[]:["clear","cancel","accept"]}),textField:{id:a+"-input",required:f&&!g.hideRequiredAsterisk,autoFocus:g.focus,error:!w,fullWidth:!g.trim,inputProps:{type:"text"},InputLabelProps:b?{shrink:!0}:void 0,onFocus:n,onBlur:r,variant:"standard"}}}),A.createElement(dr,{error:!w&&!y},$),A.createElement(dr,{error:!w},P)))};so(ENe);const PNe=e=>{const[t,n,r]=sl(),{id:o,description:a,errors:i,label:s,uischema:l,visible:c,enabled:u,required:f,path:p,handleChange:m,data:b,config:v}=e,w=tn({},v,l.options),g=i.length===0,y=!_o(c,a,t,w.showUnfocusedDescription),x=w.dateTimeFormat??"YYYY-MM-DD HH:mm",C=w.dateTimeSaveFormat??void 0,_=w.views??["year","day","hours","minutes"],$=y?a:g?null:i,P=y&&!g?i:null,k=S.useMemo(()=>zE(p,m,C),[p,m,C]),I=BE(b,C);return A.createElement(Pn,{xsUp:!c},A.createElement(hh,{dateAdapter:jE},A.createElement(vAe,{label:s,value:I,onChange:k,format:x,ampm:!!w.ampm,views:_,disabled:!u,slotProps:{actionBar:({wrapperVariant:D})=>({actions:D==="desktop"?[]:["clear","cancel","accept"]}),textField:{id:o+"-input",required:f&&!w.hideRequiredAsterisk,autoFocus:w.focus,error:!g,fullWidth:!w.trim,inputProps:{type:"text"},InputLabelProps:b?{shrink:!0}:void 0,onFocus:n,onBlur:r,variant:"standard"}}}),A.createElement(dr,{error:!g&&!y},$),A.createElement(dr,{error:!g},P)))};so(PNe);const TNe=e=>{const{config:t,uischema:n,errors:r}=e,o=tn({},t,n.options),a=r.length===0;return o.autocomplete===!1?A.createElement(Sd,Object.assign({},e,{input:L0})):A.createElement($6,Object.assign({},e,{isValid:a}))};y_(tl(A.memo(TNe)),!1);const kNe=e=>A.createElement(Sd,Object.assign({},e,{input:_6}));so(kNe);const ONe=e=>{const[t,n,r]=sl(),{id:o,errors:a,label:i,schema:s,description:l,enabled:c,visible:u,required:f,path:p,handleChange:m,data:b,config:v}=e,w=a.length===0,g=tn({},v,e.uischema.options),[y,x]=yc(m,"",b,p),C=g.format??s.format,_=!_o(u,l,t,g.showUnfocusedDescription);return A.createElement(Pn,{xsUp:!u},A.createElement(ph,{required:_y(f,g.hideRequiredAsterisk),id:o+"-input",label:i,type:C,error:!w,disabled:!c,fullWidth:!g.trim,onFocus:n,onBlur:r,helperText:w?_?l:null:a,InputLabelProps:{shrink:!0},value:y,onChange:x}))};so(ONe);const RNe=e=>A.createElement(Sd,Object.assign({},e,{input:E6}));so(RNe);const DNe=e=>{const{config:t,uischema:n,errors:r}=e,o=tn({},t,n.options),a=r.length===0;return o.autocomplete===!1?A.createElement(Sd,Object.assign({},e,{input:L0})):A.createElement($6,Object.assign({},e,{isValid:a}))};b_(tl(A.memo(DNe)),!1);const O6=e=>{const[t,n,r]=sl(),{config:o,id:a,label:i,required:s,description:l,errors:c,data:u,visible:f,options:p,handleChange:m,path:b,enabled:v}=e,w=c.length===0,g=tn({},o,e.uischema.options),y=!_o(f,l,t,g.showUnfocusedDescription),x=(C,_)=>m(b,_);return A.createElement(Pn,{xsUp:!f},A.createElement(uh,{component:"fieldset",fullWidth:!g.trim,onFocus:n,onBlur:r},A.createElement(iE,{htmlFor:a,error:!w,component:"legend",required:_y(s,g.hideRequiredAsterisk)},i),A.createElement(MEe,{value:e.data??"",onChange:x,row:!0},p.map(C=>A.createElement(S0,{value:C.value,key:C.label,control:A.createElement(OEe,{checked:u===C.value}),label:C.label,disabled:!v}))),A.createElement(dr,{error:!w},w?y?l:null:c)))},MNe=e=>A.createElement(O6,Object.assign({},e));b_(MNe);const INe=e=>A.createElement(O6,Object.assign({},e));y_(INe);const ANe=e=>{const[t,n,r]=sl(),{id:o,data:a,description:i,enabled:s,errors:l,label:c,schema:u,handleChange:f,visible:p,path:m,required:b,config:v}=e,w=l.length===0,g=tn({},v,e.uischema.options),y={whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",width:"100%"},x={display:"flex"},C={flexGrow:"1"},_={marginTop:"7px"},$=!_o(p,i,t,g.showUnfocusedDescription),P=S.useCallback((k,I)=>f(m,Number(I)),[m,f]);return A.createElement(Pn,{xsUp:!p},A.createElement(uh,{fullWidth:!g.trim,onFocus:n,onBlur:r,id:o},A.createElement(iE,{htmlFor:o,error:!w,component:"legend",required:_y(b,g.hideRequiredAsterisk)},A.createElement(gn,{id:o+"-typo",style:y,variant:"caption"},c)),A.createElement("div",{style:x},A.createElement(gn,{style:C,variant:"caption",align:"left"},u.minimum),A.createElement(gn,{style:C,variant:"caption",align:"right"},u.maximum)),A.createElement(pPe,{style:_,min:u.minimum,max:u.maximum,value:Number(a||u.default),onChange:P,id:o+"-input",disabled:!s,step:u.multipleOf||1}),A.createElement(dr,{error:!w},w?$?i:null:l)))};so(ANe);const NNe=e=>A.createElement(Sd,Object.assign({},e,{input:P6}));so(NNe);const jNe=e=>{const[t,n,r]=sl(),{id:o,description:a,errors:i,label:s,uischema:l,visible:c,enabled:u,required:f,path:p,handleChange:m,data:b,config:v}=e,w=tn({},v,l.options),g=i.length===0,y=!_o(c,a,t,w.showUnfocusedDescription),x=w.timeFormat??"HH:mm",C=w.timeSaveFormat??"HH:mm:ss",_=w.views??["hours","minutes"],$=y?a:g?null:i,P=y&&!g?i:null,k=S.useMemo(()=>zE(p,m,C),[p,m,C]),I=BE(b,C);return A.createElement(Pn,{xsUp:!c},A.createElement(hh,{dateAdapter:jE},A.createElement(eAe,{label:s,value:I,onChange:k,format:x,ampm:!!w.ampm,views:_,disabled:!u,slotProps:{actionBar:({wrapperVariant:D})=>({actions:D==="desktop"?[]:["clear","cancel","accept"]}),textField:{id:o+"-input",required:f&&!w.hideRequiredAsterisk,autoFocus:w.focus,error:!g,fullWidth:!w.trim,inputProps:{type:"text"},InputLabelProps:b?{shrink:!0}:void 0,onFocus:n,onBlur:r,variant:"standard"}}}),A.createElement(dr,{error:!g&&!y},$),A.createElement(dr,{error:!g},P)))};so(jNe);const xx={float:"right"},LNe=e=>{const[t]=S.useState(s4("expand-panel"));S.useEffect(()=>()=>{l4(t)},[t]);const{enabled:n,childLabel:r,childPath:o,index:a,expanded:i,moveDown:s,moveUp:l,enableMoveDown:c,enableMoveUp:u,handleExpansion:f,removeItems:p,path:m,rootSchema:b,schema:v,uischema:w,uischemas:g,renderers:y,cells:x,config:C,translations:_}=e,$=S.useMemo(()=>th(g,v,w.scope,m,void 0,w,b),[g,v,w.scope,m,w,b]),P=tn({},C,w.options),k=P.showSortButtons||P.showArrayLayoutSortButtons;return A.createElement(s0e,{"aria-labelledby":t,expanded:i,onChange:f(o)},A.createElement(z0e,{expandIcon:A.createElement(y6,null)},A.createElement(en,{container:!0,alignItems:"center"},A.createElement(en,{item:!0,xs:7,md:9},A.createElement(en,{container:!0,alignItems:"center"},A.createElement(en,{item:!0,xs:2,md:1},A.createElement(D5,{"aria-label":"Index"},a+1)),A.createElement(en,{item:!0,xs:10,md:11},A.createElement("span",{id:t},r)))),A.createElement(en,{item:!0,xs:5,md:3},A.createElement(en,{container:!0,justifyContent:"flex-end"},A.createElement(en,{item:!0},A.createElement(en,{container:!0,direction:"row",justifyContent:"center",alignItems:"center"},k&&n?A.createElement(S.Fragment,null,A.createElement(en,{item:!0},A.createElement(tr,{onClick:l(m,a),style:xx,disabled:!u,"aria-label":_.upAriaLabel,size:"large"},A.createElement(O0,null))),A.createElement(en,{item:!0},A.createElement(tr,{onClick:s(m,a),style:xx,disabled:!c,"aria-label":_.downAriaLabel,size:"large"},A.createElement(k0,null)))):"",n&&A.createElement(en,{item:!0},A.createElement(tr,{onClick:p(m,[a]),style:xx,"aria-label":_.removeAriaLabel,size:"large"},A.createElement(T0,null))))))))),A.createElement(p0e,null,A.createElement(Eo,{enabled:n,schema:v,uischema:$,path:o,key:o,renderers:y,cells:x})))},FNe=A.memo(LNe),zNe=e=>({removeItems:S.useCallback((t,n)=>r=>{r.stopPropagation(),e(ja(t,o=>(n.sort().reverse().forEach(a=>o.splice(a,1)),o)))},[e]),moveUp:S.useCallback((t,n)=>r=>{r.stopPropagation(),e(ja(t,o=>(kj(o,n),o)))},[e]),moveDown:S.useCallback((t,n)=>r=>{r.stopPropagation(),e(ja(t,o=>(Oj(o,n),o)))},[e])}),BNe=e=>function({ctx:n,props:r}){const o=zNe(n.dispatch),{childLabelProp:a,schema:i,path:s,index:l,uischemas:c}=r,u=dc(s,`${l}`),f=So.data(n.core.data,u),p=a?ur(f,a,""):ur(f,hpe(i),"");return A.createElement(e,Object.assign({},r,o,{childLabel:p,childPath:u,uischemas:c}))},VNe=e=>$r(BNe(e));var UNe=VNe(FNe);const WNe={marginBottom:"10px"},HNe=A.memo(function({visible:t,enabled:n,uischema:r,label:o,...a}){const i=r;return A.createElement(Pn,{xsUp:!t},A.createElement(Vwe,{style:WNe},!Mt(o)&&A.createElement(oCe,{title:o}),A.createElement(Ywe,null,A.createElement(bh,Object.assign({},a,{visible:t,enabled:n,elements:i.elements})))))}),GNe=({uischema:e,schema:t,path:n,visible:r,enabled:o,renderers:a,cells:i,direction:s,label:l})=>{const c=e;return A.createElement(HNe,{elements:c.elements,schema:t,path:n,direction:s,visible:r,enabled:o,uischema:e,renderers:a,cells:i,label:l})};rs(GNe);const qNe=({uischema:e,renderers:t,cells:n,schema:r,path:o,enabled:a,visible:i})=>{const l={elements:e.elements,schema:r,path:o,enabled:a,direction:"row",visible:i};return A.createElement(bh,Object.assign({},l,{renderers:t,cells:n}))};rs(qNe);const YNe=({uischema:e,schema:t,path:n,enabled:r,visible:o,renderers:a,cells:i})=>{const l={elements:e.elements,schema:t,path:n,enabled:r,direction:"column",visible:o};return A.createElement(bh,Object.assign({},l,{renderers:a,cells:i}))};rs(YNe);const KNe=e=>{const{data:t,path:n,renderers:r,cells:o,schema:a,uischema:i,visible:s,enabled:l,selected:c,onChange:u,ajv:f,t:p}=e,m=i,[b,v]=S.useState(i),[w,g]=S.useState(c??0),y=S.useMemo(()=>m.elements.filter(P=>vd(P,t,void 0,f)),[m,t,f]);m!==b&&(g(0),v(m));const x=w>=m.elements.length?0:w,C={elements:y[x]?y[x].elements:[],schema:a,path:n,direction:"column",enabled:l,visible:s,renderers:r,cells:o},_=(P,k)=>{u&&u(k,x),g(k)},$=S.useMemo(()=>y.map(P=>wy(P,p)),[y,p]);return A.createElement(Pn,{xsUp:!s},A.createElement(s1e,{position:"static"},A.createElement(P0,{value:x,onChange:_,textColor:"inherit",indicatorColor:"secondary",variant:"scrollable"},y.map((P,k)=>A.createElement(Pp,{key:k,label:$[k]})))),A.createElement("div",{style:{marginTop:"0.5em"}},A.createElement(bh,Object.assign({},C,{key:x}))))};S6(tl(rs(KNe)));const JNe=e=>{const[t,n]=S.useState(!1),r=S.useCallback(()=>Xi(e.schema),[e.schema]),o=S.useCallback($=>(P,k)=>{n(k?$:!1)},[]),a=$=>t===dc(e.path,`${$}`),{enabled:i,data:s,path:l,schema:c,uischema:u,errors:f,addItem:p,renderers:m,cells:b,label:v,required:w,rootSchema:g,config:y,uischemas:x,translations:C}=e,_=tn({},y,e.uischema.options);return A.createElement("div",null,A.createElement(k6,{translations:C,label:Sy(v,w,_.hideRequiredAsterisk),errors:f,path:l,enabled:i,addItem:p,createDefault:r}),A.createElement("div",null,s>0?gL(fd(s),$=>A.createElement(UNe,{enabled:i,index:$,expanded:a($),schema:c,path:l,handleExpansion:o,uischema:u,renderers:m,cells:b,key:$,rootSchema:g,enableMoveUp:$!=0,enableMoveDown:${const r=S.useCallback((o,a)=>t(o,a),[t]);return A.createElement(Pn,{xsUp:!e},A.createElement(ZNe,Object.assign({visible:e,addItem:r},n)))};Ty(XNe);const QNe=e=>A.createElement(FE,Object.assign({},e));fr(QNe);const e3e=e=>A.createElement(T6,Object.assign({},e));fr(e3e);const t3e=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s,config:l}=e,c=tn({},l,a.options);return A.createElement(is,{type:"date",value:t||"",onChange:u=>s(i,u.target.value),className:n,id:r,disabled:!o,autoFocus:c.focus,fullWidth:!0})};fr(t3e);const n3e=e=>A.createElement(L0,Object.assign({},e));T4(tl(A.memo(n3e)),!1);const r3e=e=>A.createElement(_6,Object.assign({},e));fr(r3e);const o3e=e=>A.createElement(E6,Object.assign({},e));fr(o3e);const a3e=e=>A.createElement(sNe,Object.assign({},e));fr(a3e);const i3e=e=>A.createElement(L0,Object.assign({},e));Fhe(tl(A.memo(i3e)),!1);const s3e=e=>A.createElement(P6,Object.assign({},e));fr(s3e);const l3e=e=>A.createElement(cNe,Object.assign({},e));fr(l3e);const c3e=e=>{const[t,n]=S.useState(0),r=$=>{n($)},{data:o,path:a,renderers:i,schema:s,uischema:l,visible:c,cells:u,config:f,ajv:p,t:m}=e,b=l,v=tn({},f,l.options),w={textAlign:"right",width:"100%",margin:"1em auto"},g={float:"right"},y={marginRight:"1em"},x=S.useMemo(()=>b.elements.filter($=>vd($,o,void 0,p)),[b,o,p]),C={elements:x[t].elements,schema:s,path:a,direction:"column",visible:c,renderers:i,cells:u},_=S.useMemo(()=>x.map($=>wy($,m)),[x,m]);return A.createElement(Pn,{xsUp:!c},A.createElement(m2e,{activeStep:t,nonLinear:!0},x.map(($,P)=>A.createElement(OPe,{key:_[P]},A.createElement(t2e,{onClick:()=>r(P)},_[P])))),A.createElement("div",null,A.createElement(bh,Object.assign({},C))),v.showNavButtons?A.createElement("div",{style:w},A.createElement(Vo,{style:g,variant:"contained",color:"primary",disabled:t>=x.length-1,onClick:()=>r(t+1)},"Next"),A.createElement(Vo,{style:y,color:"secondary",variant:"contained",disabled:t<=0,onClick:()=>r(t-1)},"Previous")):A.createElement(A.Fragment,null))};S6(tl(rs(c3e)));var R6={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(go,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(a,i,s){var l=i.prototype;s.utc=function(v){var w={date:v,utc:!0,args:arguments};return new i(w)},l.utc=function(v){var w=s(this.toDate(),{locale:this.$L,utc:!0});return v?w.add(this.utcOffset(),n):w},l.local=function(){return s(this.toDate(),{locale:this.$L,utc:!1})};var c=l.parse;l.parse=function(v){v.utc&&(this.$u=!0),this.$utils().u(v.$offset)||(this.$offset=v.$offset),c.call(this,v)};var u=l.init;l.init=function(){if(this.$u){var v=this.$d;this.$y=v.getUTCFullYear(),this.$M=v.getUTCMonth(),this.$D=v.getUTCDate(),this.$W=v.getUTCDay(),this.$H=v.getUTCHours(),this.$m=v.getUTCMinutes(),this.$s=v.getUTCSeconds(),this.$ms=v.getUTCMilliseconds()}else u.call(this)};var f=l.utcOffset;l.utcOffset=function(v,w){var g=this.$utils().u;if(g(v))return this.$u?0:g(this.$offset)?f.call(this):this.$offset;if(typeof v=="string"&&(v=function(_){_===void 0&&(_="");var $=_.match(r);if(!$)return null;var P=(""+$[0]).match(o)||["-",0,0],k=P[0],I=60*+P[1]+ +P[2];return I===0?0:k==="+"?I:-I}(v),v===null))return this;var y=Math.abs(v)<=16?60*v:v,x=this;if(w)return x.$offset=y,x.$u=v===0,x;if(v!==0){var C=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(x=this.local().add(y+C,n)).$offset=y,x.$x.$localOffset=C}else x=this.utc();return x};var p=l.format;l.format=function(v){var w=v||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return p.call(this,w)},l.valueOf=function(){var v=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*v},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var m=l.toDate;l.toDate=function(v){return v==="s"&&this.$offset?s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():m.call(this)};var b=l.diff;l.diff=function(v,w,g){if(v&&this.$u===v.$u)return b.call(this,v,w,g);var y=this.local(),x=s(v).local();return b.call(y,x,w,g)}}})})(R6);var u3e=R6.exports;const d3e=Bt(u3e);var D6={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(go,function(){return function(n,r,o){n=n||{};var a=r.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function s(c,u,f,p){return a.fromToBase(c,u,f,p)}o.en.relativeTime=i,a.fromToBase=function(c,u,f,p,m){for(var b,v,w,g=f.$locale().relativeTime||i,y=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],x=y.length,C=0;C0,$<=_.r||!_.r){$<=1&&C>0&&(_=y[C-1]);var P=g[_.l];m&&($=m(""+$)),v=typeof P=="string"?P.replace("%d",$):P($,u,_.l,w);break}}if(u)return v;var k=w?g.future:g.past;return typeof k=="function"?k(v):k.replace("%s",v)},a.to=function(c,u){return s(c,u,this,!0)},a.from=function(c,u){return s(c,u,this)};var l=function(c){return c.$u?o.utc():o()};a.toNow=function(c){return this.to(l(this),c)},a.fromNow=function(c){return this.from(l(this),c)}}})})(D6);var f3e=D6.exports;const p3e=Bt(f3e),h3e=e=>S.createElement("svg",{width:20,height:21,viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.36651 2.85015C3.37578 2.85432 3.38505 2.85849 3.39431 2.86266L17.353 9.14401C17.5431 9.22954 17.7338 9.31532 17.8826 9.39905C18.0208 9.47682 18.2876 9.63803 18.4396 9.94548C18.6122 10.2947 18.6122 10.7043 18.4396 11.0535C18.2876 11.361 18.0208 11.5222 17.8826 11.5999C17.7338 11.6837 17.5431 11.7694 17.353 11.855L3.37128 18.1467C3.17613 18.2346 2.98174 18.3221 2.81784 18.3789C2.6676 18.4309 2.36452 18.5263 2.02916 18.4327C1.65046 18.327 1.34355 18.0493 1.20065 17.6831C1.07411 17.3587 1.13883 17.0476 1.17565 16.8929C1.21583 16.7242 1.28354 16.522 1.35152 16.3191L3.28934 10.5306L1.35514 4.70306C1.35194 4.69342 1.34873 4.68377 1.34553 4.67412C1.27829 4.47166 1.21126 4.26982 1.17161 4.10129C1.13521 3.94656 1.07155 3.63604 1.19844 3.31251C1.34183 2.9469 1.64871 2.66994 2.02706 2.56467C2.36186 2.47151 2.66425 2.56656 2.81444 2.61859C2.97804 2.67526 3.17198 2.76257 3.36651 2.85015ZM3.05652 4.5383L4.75852 9.66616H8.75109C9.21133 9.66616 9.58442 10.0393 9.58442 10.4995C9.58442 10.9597 9.21133 11.3328 8.75109 11.3328H4.77834L3.06259 16.458L16.3037 10.4995L3.05652 4.5383Z",fill:"#fff"})),m3e=e=>S.createElement("svg",{width:20,height:21,viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.41009 2.41009C9.73553 2.08466 10.2632 2.08466 10.5886 2.41009L13.9219 5.74343C14.2474 6.06886 14.2474 6.5965 13.9219 6.92194C13.5965 7.24738 13.0689 7.24738 12.7434 6.92194L10.8327 5.01119V12.9993C10.8327 13.4596 10.4596 13.8327 9.99935 13.8327C9.53911 13.8327 9.16602 13.4596 9.16602 12.9993V5.01119L7.25527 6.92194C6.92984 7.24738 6.4022 7.24738 6.07676 6.92194C5.75132 6.5965 5.75132 6.06886 6.07676 5.74343L9.41009 2.41009ZM2.49935 9.66602C2.95959 9.66602 3.33268 10.0391 3.33268 10.4993V13.9993C3.33268 14.7132 3.33333 15.1984 3.36398 15.5735C3.39383 15.9388 3.44793 16.1257 3.51434 16.256C3.67413 16.5696 3.9291 16.8246 4.2427 16.9844C4.37303 17.0508 4.55987 17.1049 4.92521 17.1347C5.30029 17.1654 5.78553 17.166 6.49935 17.166H13.4993C14.2132 17.166 14.6984 17.1654 15.0735 17.1347C15.4388 17.1049 15.6257 17.0508 15.756 16.9844C16.0696 16.8246 16.3246 16.5696 16.4844 16.256C16.5508 16.1257 16.6049 15.9388 16.6347 15.5735C16.6654 15.1984 16.666 14.7132 16.666 13.9993V10.4993C16.666 10.0391 17.0391 9.66602 17.4993 9.66602C17.9596 9.66602 18.3327 10.0391 18.3327 10.4993V14.0338C18.3327 14.7046 18.3327 15.2582 18.2959 15.7092C18.2576 16.1776 18.1754 16.6082 17.9694 17.0127C17.6498 17.6399 17.1399 18.1498 16.5126 18.4694C16.1082 18.6754 15.6776 18.7576 15.2092 18.7959C14.7582 18.8327 14.2046 18.8327 13.5338 18.8327H6.46491C5.79411 18.8327 5.24049 18.8327 4.78949 18.7959C4.32108 18.7576 3.89049 18.6754 3.48605 18.4694C2.85884 18.1498 2.34891 17.6399 2.02933 17.0127C1.82325 16.6082 1.74112 16.1776 1.70284 15.7092C1.666 15.2582 1.66601 14.7046 1.66602 14.0338L1.66602 10.4993C1.66602 10.0391 2.03911 9.66602 2.49935 9.66602Z",fill:"currentColor"}));var VE={exports:{}};VE.exports;(function(e){var t=function(){var n=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",a={};function i(l,c){if(!a[l]){a[l]={};for(var u=0;u>>8,u[f*2+1]=m%256}return u},decompressFromUint8Array:function(l){if(l==null)return s.decompress(l);for(var c=new Array(l.length/2),u=0,f=c.length;u>1}else{for(p=1,f=0;f>1}y--,y==0&&(y=Math.pow(2,C),C++),delete b[g]}else for(p=m[g],f=0;f>1;y--,y==0&&(y=Math.pow(2,C),C++),m[w]=x++,g=String(v)}if(g!==""){if(Object.prototype.hasOwnProperty.call(b,g)){if(g.charCodeAt(0)<256){for(f=0;f>1}else{for(p=1,f=0;f>1}y--,y==0&&(y=Math.pow(2,C),C++),delete b[g]}else for(p=m[g],f=0;f>1;y--,y==0&&(y=Math.pow(2,C),C++)}for(p=2,f=0;f>1;for(;;)if($=$<<1,P==c-1){_.push(u($));break}else P++;return _.join("")},decompress:function(l){return l==null?"":l==""?null:s._decompress(l.length,32768,function(c){return l.charCodeAt(c)})},_decompress:function(l,c,u){var f=[],p=4,m=4,b=3,v="",w=[],g,y,x,C,_,$,P,k={val:u(0),position:c,index:1};for(g=0;g<3;g+=1)f[g]=g;for(x=0,_=Math.pow(2,2),$=1;$!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),x|=(C>0?1:0)*$,$<<=1;switch(x){case 0:for(x=0,_=Math.pow(2,8),$=1;$!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),x|=(C>0?1:0)*$,$<<=1;P=n(x);break;case 1:for(x=0,_=Math.pow(2,16),$=1;$!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),x|=(C>0?1:0)*$,$<<=1;P=n(x);break;case 2:return""}for(f[3]=P,y=P,w.push(P);;){if(k.index>l)return"";for(x=0,_=Math.pow(2,b),$=1;$!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),x|=(C>0?1:0)*$,$<<=1;switch(P=x){case 0:for(x=0,_=Math.pow(2,8),$=1;$!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),x|=(C>0?1:0)*$,$<<=1;f[m++]=n(x),P=m-1,p--;break;case 1:for(x=0,_=Math.pow(2,16),$=1;$!=_;)C=k.val&k.position,k.position>>=1,k.position==0&&(k.position=c,k.val=u(k.index++)),x|=(C>0?1:0)*$,$<<=1;f[m++]=n(x),P=m-1,p--;break;case 2:return w.join("")}if(p==0&&(p=Math.pow(2,b),b++),f[P])v=f[P];else if(P===m)v=y+y.charAt(0);else return null;w.push(v),f[m++]=y+v.charAt(0),p--,y=v,p==0&&(p=Math.pow(2,b),b++)}}};return s}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})})(VE);var F0=VE.exports,v3e=Array.prototype,g3e=v3e.join;function y3e(e,t){return e==null?"":g3e.call(e,t)}var b3e=y3e;const M6=Bt(b3e);var x3e=dd,I6=x3e("filter",j3);I6.placeholder=cc();var w3e=I6;const aM=Bt(w3e);var C3e=dd,A6=C3e("map",vL);A6.placeholder=cc();var $3e=A6;const iM=Bt($3e);var wx,sM;function S3e(){if(sM)return wx;sM=1;var e=K$(),t=Q$,n=Y$(),r=w3(),o=sr,a=C3(),i="Expected a function",s=8,l=32,c=128,u=256;function f(p){return t(function(m){var b=m.length,v=b,w=e.prototype.thru;for(p&&m.reverse();v--;){var g=m[v];if(typeof g!="function")throw new TypeError(i);if(w&&!y&&r(g)=="wrapper")var y=new e([],!0)}for(v=y?v:b;++v(t,...n)=>{const r=dg(e,o=>o.name===t);return jw(r,(o,a)=>typeof a.classNames=="function"?o.concat(a.classNames(n)):o.concat(a.classNames),[])},Na=e=>(t,...n)=>M6(Xf(e)(t,n)," "),I3e=[{name:"control",classNames:["control"]},{name:"control.trim",classNames:["trim"]},{name:"control.input",classNames:["input"]},{name:"control.select",classNames:["select"]},{name:"control.checkbox",classNames:["checkbox"]},{name:"control.radio",classNames:["radio"]},{name:"control.radio.option",classNames:["radio-option"]},{name:"control.radio.input",classNames:["radio-input"]},{name:"control.radio.label",classNames:["radio-label"]},{name:"control.validation.error",classNames:["validation_error"]},{name:"control.validation",classNames:["validation"]},{name:"categorization",classNames:["categorization"]},{name:"categorization.master",classNames:["categorization-master"]},{name:"categorization.detail",classNames:["categorization-detail"]},{name:"category.group",classNames:["category-group"]},{name:"category.subcategories",classNames:["category-subcategories"]},{name:"array.layout",classNames:["array-layout"]},{name:"array.children",classNames:["children"]},{name:"group.layout",classNames:["group-layout"]},{name:"horizontal.layout",classNames:["horizontal-layout"]},{name:"horizontal.layout.item",classNames:([e])=>[`horizontal-layout-${e}`]},{name:"vertical.layout",classNames:["vertical-layout"]},{name:"array.table.validation.error",classNames:["validation_error"]},{name:"array.table.validation",classNames:["validation"]},{name:"array.table",classNames:["array-table-layout","control"]},{name:"array.control.validation.error",classNames:["validation_error"]},{name:"array.control.validation",classNames:["validation"]},{name:"array.control.add",classNames:["button-add"]},{name:"array.child.controls",classNames:["child-controls"]},{name:"array.child.controls.up",classNames:["button-up"]},{name:"array.child.controls.down",classNames:["button-down"]},{name:"array.child.controls.delete",classNames:["button-delete"]},{name:"array.control",classNames:["array-control-layout","control"]},{name:"input.description",classNames:["input-description"]}],A3e={styles:I3e},N3e=A.createContext(A3e),j3e=()=>S.useContext(N3e),UE=()=>{const{styles:e}=j3e();return e},Ei=e=>function(n){const r=fc(),o=UE(),a=n.uischema,i=r.config,s=i&&i.trim,l=S.useMemo(()=>Xf(o)("control"),[o]);let c=Mt(a.scope)?[""]:l.concat([`${r4(a.scope)}`]);s&&(c=c.concat(Xf(o)("control.trim")));const u=Mt(n.errors),f=S.useMemo(()=>Na(o)("control.label"),[o]),p=S.useMemo(()=>Na(o)("input.description"),[o]),m=S.useMemo(()=>Na(o)("control.validation"),[o]),b=S.useMemo(()=>Na(o)("control.validation.error"),[o]),v=["validate"].concat(u?"valid":"invalid"),w=S.useMemo(()=>Na(o),[o]),g=S.useMemo(()=>Xf(o),[o]),y=c.join(" "),x=v.join(" "),C=S.useMemo(()=>({wrapper:y,input:x,label:f,description:p,validation:m,validationError:b}),[y,x,f,p,m,b]);return A.createElement(e,Object.assign({},n,{getStyleAsClassName:w,getStyle:g,classNames:C}))},WE=e=>t=>function(r){const o=["validate"].concat(r.isValid?"valid":"invalid"),a=UE(),i=Na(a)(e);return i&&o.push(i),A.createElement(t,Object.assign({},r,{getStyleAsClassName:Na(a),getStyle:Xf(a),className:o.join(" ")}))},qa=WE("control.input"),L3e=WE("control.select"),F3e=WE("control.checkbox"),z3e=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return A.createElement("input",{type:"checkbox",checked:!!t,onChange:l=>s(i,l.target.checked),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},B3e=mn(2,Ij);var V3e=fr(F3e(z3e));const U3e=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return A.createElement("input",{type:"date",value:t||"",onChange:l=>s(i,l.target.value),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},W3e=mn(2,Uj);var H3e=fr(qa(U3e));const G3e=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e,l=c=>c===""?"":c+":00.000Z";return A.createElement("input",{type:"datetime-local",value:(t||"").substr(0,16),onChange:c=>s(i,l(c.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},q3e=mn(2,Hj);var Y3e=fr(qa(G3e));const K3e=e=>{const{data:t,className:n,id:r,enabled:o,schema:a,uischema:i,path:s,handleChange:l,options:c,t:u}=e,f=S.useMemo(()=>u("enum.none",M3e["enum.none"],{schema:a,uischema:i,path:s}),[u,a,i,s]);return A.createElement("select",{className:n,id:r,disabled:!o,autoFocus:i.options&&i.options.focus,value:t||"",onChange:p=>l(s,p.target.selectedIndex===0?void 0:p.target.value)},[A.createElement("option",{value:"",key:"jsonforms.enum.none"},f)].concat(c.map(p=>A.createElement("option",{value:p.value,label:p.label,key:p.value}))))},J3e=mn(2,GS);var Z3e=T4(tl(L3e(K3e)));const X3e=e=>e===""?void 0:parseInt(e,10),Q3e=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return A.createElement("input",{type:"number",step:"1",value:t??"",onChange:l=>s(i,X3e(l.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},eje=mn(2,Fj);var tje=fr(qa(Q3e));const nje=e=>e===""?void 0:Number(e),rje=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return A.createElement("input",{type:"number",step:"0.1",value:t??"",onChange:l=>s(i,nje(l.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},oje=mn(2,zj);var aje=fr(qa(rje));const ije=e=>{const{className:t,id:n,enabled:r,uischema:o,path:a,handleChange:i,schema:s}=e,l=s.maxLength,c=e.toFormatted(e.data),u=f=>{const p=e.fromFormatted(f.currentTarget.value);i(a,p)};return A.createElement("input",{type:"text",value:c,onChange:u,className:t,id:n,disabled:!r,autoFocus:o.options&&o.options.focus,maxLength:o.options&&o.options.restrict?l:void 0,size:o.options&&o.options.trim?l:void 0})};fr(qa(ije));const sje=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,schema:i,path:s,handleChange:l}=e;return A.createElement("div",{style:{display:"flex"}},A.createElement("input",{type:"range",max:i.maximum,min:i.minimum,value:t||i.default,onChange:c=>l(s,Number(c.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus,style:{flex:"1"}}),A.createElement("label",{style:{marginLeft:"0.5em"}},t||i.default))},lje=mn(4,Yj);var cje=fr(qa(sje));const uje=e=>{const{config:t,data:n,className:r,id:o,enabled:a,uischema:i,schema:s,path:l,handleChange:c}=e,u=s.maxLength,f=tn({},t,i.options);return A.createElement("input",{type:"text",value:n||"",onChange:p=>c(l,p.target.value===""?void 0:p.target.value),className:r,id:o,disabled:!a,autoFocus:f.focus,placeholder:f.placeholder,maxLength:f.restrict?u:void 0,size:f.trim?u:void 0})},dje=mn(1,Bj);fr(qa(uje));const fje=e=>{const{data:t,className:n,id:r,enabled:o,config:a,uischema:i,path:s,handleChange:l}=e,c=tn({},a,i.options);return A.createElement("textarea",{value:t||"",onChange:u=>l(s,u.target.value===""?void 0:u.target.value),className:n,id:r,disabled:!o,autoFocus:c.focus,placeholder:c.placeholder})},pje=mn(2,Vj);fr(qa(fje));const hje=e=>{if(typeof e=="string"){const t=e.split(":");return t.length===2&&t.push("00"),t.join(":")}return e},mje=e=>{const{data:t,className:n,id:r,enabled:o,uischema:a,path:i,handleChange:s}=e;return A.createElement("input",{type:"time",value:t||"",onChange:l=>s(i,hje(l.target.value)),className:n,id:r,disabled:!o,autoFocus:a.options&&a.options.focus})},vje=mn(2,Wj);var gje=fr(qa(mje));class yje extends w4{render(){const{classNames:t,description:n,id:r,errors:o,label:a,uischema:i,schema:s,rootSchema:l,visible:c,enabled:u,required:f,path:p,cells:m,config:b}=this.props,v=o.length===0,w=[t.validation].concat(v?t.description:t.validationError).join(" "),g=tn({},b,i.options),y=!_o(c,n,this.state.isFocused,g.showUnfocusedDescription),x={rootSchema:l,config:b},C=fy(m,_=>_.tester(i,s,x));return C===void 0||C.tester(i,s,x)===Bu?(console.warn("No applicable cell found.",i,s),null):A.createElement("div",{className:t.wrapper,hidden:!c,onFocus:this.onFocus,onBlur:this.onBlur,id:r},A.createElement("label",{htmlFor:r+"-input",className:t.label},Sy(a,f,g.hideRequiredAsterisk)),A.createElement(Xl,{uischema:i,schema:s,path:p,id:r+"-input",enabled:u}),A.createElement("div",{className:w},v?y?n:null:o))}}const bje=mn(1,Wa);var z6=Ei(so(yje));const B6=({classNames:e,id:t,label:n,options:r,required:o,description:a,errors:i,data:s,uischema:l,visible:c,config:u,enabled:f,path:p,handleChange:m})=>{const b=UE(),[v,w]=S.useState(!1),g=S.useMemo(()=>Na(b)("control.radio"),[b]),y=S.useMemo(()=>Na(b)("control.radio.option"),[b]),x=S.useMemo(()=>Na(b)("control.radio.input"),[b]),C=S.useMemo(()=>Na(b)("control.radio.label"),[b]),_=i.length===0,$=[e.validation].concat(_?e.description:e.validationError).join(" "),P=tn({},u,l.options),k=!_o(c,a,v,P.showUnfocusedDescription),I=!g||g==="radio";let D={};return I&&(D={display:"flex",flexDirection:P.orientation==="vertical"?"column":"row"}),A.createElement("div",{className:e.wrapper,hidden:!c,onFocus:()=>w(!0),onBlur:()=>w(!1)},A.createElement("label",{htmlFor:t,className:e.label},Sy(n,o,P.hideRequiredAsterisk)),A.createElement("div",{className:g,style:D},r.map(F=>A.createElement("div",{key:F.label,className:y},A.createElement("input",{type:"radio",value:F.value,id:F.value,name:t,checked:s===F.value,onChange:U=>m(p,U.currentTarget.value),disabled:!f,className:x}),A.createElement("label",{htmlFor:F.value,className:C},F.label)))),A.createElement("div",{className:$},_?k?a:null:i))},xje=e=>A.createElement(B6,Object.assign({},e)),wje=mn(3,Cn(GS,ns("format","radio")));var Cje=Ei(y_(xje));const $je=e=>A.createElement(B6,Object.assign({},e)),Sje=mn(3,Cn(Lj,ns("format","radio")));var _je=Ei(b_($je));const{convertToValidClassName:Eje}=wg,Pje=({classNames:e,data:t,label:n,path:r,schema:o,errors:a,addItem:i,removeItems:s,moveUp:l,moveDown:c,uischema:u,uischemas:f,getStyleAsClassName:p,renderers:m,rootSchema:b,translations:v})=>{const w=u,g=S.useMemo(()=>th(f,o,u.scope,r,void 0,u,b),[f,o,u.scope,r,u,b]),y=a.length===0,C=[p("array.control.validation")].concat(y?"":p("array.control.validation.error")).join(" "),_=p("array.control.add"),$=p("array.control.label"),P=p("array.child.controls"),k=p("array.child.controls.up"),I=p("array.child.controls.down"),D=p("array.child.controls.delete"),F=[p("array.control"),Eje(w.scope)].join(" ");return A.createElement("div",{className:F},A.createElement("header",null,A.createElement("label",{className:$},n),A.createElement("button",{className:_,onClick:i(r,Xi(o))},"Add to ",n)),A.createElement("div",{className:C},a),A.createElement("div",{className:e.children},t?fd(0,t.length).map(U=>{const G=dc(r,`${U}`);return A.createElement("div",{key:U},A.createElement(Eo,{schema:o,uischema:g||u,path:G,key:G,renderers:m}),A.createElement("div",{className:P},A.createElement("button",{className:k,"aria-label":v.upAriaLabel,onClick:()=>{l(r,U)()}},v.up),A.createElement("button",{className:I,"aria-label":v.downAriaLabel,onClick:()=>{c(r,U)()}},v.down),A.createElement("button",{className:D,"aria-label":v.removeAriaLabel,onClick:()=>{window.confirm("Are you sure you wish to delete this item?")&&s(r,[U])()}},v.removeTooltip)))}):A.createElement("p",null,v.noDataMessage)))},Tje=({schema:e,uischema:t,data:n,path:r,rootSchema:o,uischemas:a,addItem:i,getStyle:s,getStyleAsClassName:l,removeItems:c,moveUp:u,moveDown:f,id:p,visible:m,enabled:b,errors:v,translations:w})=>{const g=t,y=wg.createLabelDescriptionFrom(g,e),x=y.show?y.text:"",C=`control ${wg.convertToValidClassName(g.scope)}`,_=l("array.layout"),$=l("array.button"),P=l("array.children"),k={wrapper:C,fieldSet:_,button:$,children:P};return A.createElement(Pje,{classNames:k,data:n,label:x,path:r,schema:e,errors:v,addItem:i,removeItems:c,moveUp:u,moveDown:f,uischema:t,uischemas:a,getStyleAsClassName:l,rootSchema:o,id:p,visible:m,enabled:b,getStyle:s,translations:w})};var kje=Ei(P4(Tje));const Oje=mn(4,YS),HE=e=>e.type==="Categorization",Rje=mn(1,Cn(Sn("Categorization"),e=>{const t=n=>Mt(n.elements)?!1:n.elements.map(r=>HE(r)?t(r):r.type==="Category").reduce((r,o)=>r&&o,!0);return t(e)})),Dje=(e,t)=>t===e?"selected":"",V6=({categorization:e,selectedCategory:t,depth:n,onSelect:r,subcategoriesClassName:o,groupClassName:a,t:i})=>{const s=S.useMemo(()=>e.elements.map(l=>wy(l,i)),[e,i]);return A.createElement("ul",{className:o},e.elements.map((l,c)=>HE(l)?A.createElement("li",{key:s[c],className:a},A.createElement("span",null,s[c]),A.createElement(V6,{categorization:l,selectedCategory:t,depth:n+1,onSelect:r,subcategoriesClassName:o,groupClassName:a,t:i})):A.createElement("li",{key:s[c],onClick:r(l),className:Dje(l,t)},A.createElement("span",null,s[c]))))},Mje=({category:e,schema:t,path:n})=>A.createElement("div",{id:"categorization.detail"},(e.elements||[]).map((r,o)=>A.createElement(Eo,{key:`${n}-${o}`,uischema:r,schema:t,path:n})));class Ije extends x4{constructor(){super(...arguments),this.onCategorySelected=t=>()=>this.setState({selectedCategory:t})}render(){const{uischema:t,visible:n,getStyleAsClassName:r,t:o}=this.props,a=t,i=r("categorization"),s=r("categorization.master"),l=r("categorization.detail"),c=this.findCategory(a),u=r("category.subcategories"),f=r("category.group");return A.createElement("div",{className:i,hidden:n==null?!1:!n},A.createElement("div",{className:s},A.createElement(V6,{categorization:a,selectedCategory:c,depth:0,onSelect:this.onCategorySelected,subcategoriesClassName:u,groupClassName:f,t:o})),A.createElement("div",{className:l},A.createElement(Mje,{category:c,schema:this.props.schema,path:this.props.path})))}findCategory(t){const n=t.elements[0];return this.state&&this.state.selectedCategory?this.state.selectedCategory:HE(n)?this.findCategory(n):n}}var Aje=Ei(tl(rs(Ije)));const Nje=mn(1,Sn("Label")),jje=({text:e,visible:t,getStyleAsClassName:n})=>{const r=n("label-control"),o=!t;return A.createElement("label",{hidden:o,className:r},e)};var Lje=Ei(k4(jje));const{convertToValidClassName:Fje}=wg,{or:zje,isObjectArrayControl:Bje,isPrimitiveArrayControl:Vje,rankWith:Uje}=Mfe,Wje=Uje(3,zje(Bje,Vje));class Hje extends A.Component{constructor(){super(...arguments),this.confirmDelete=(t,n)=>{const r=t.substring(0,t.lastIndexOf("."));this.props.removeItems(r,[n])()}}render(){const{addItem:t,uischema:n,schema:r,rootSchema:o,path:a,data:i,visible:s,errors:l,label:c,getStyleAsClassName:u,childErrors:f,translations:p}=this.props,m=n,b=u("array.table.table"),v=u("array.table.label"),w=u("array.table.button"),g=u("array.table.validation"),y=[u("array.table"),Fje(m.scope)].join(" "),x=$=>({type:"Control",label:!1,scope:r.type==="object"?`#/properties/${$}`:"#"}),C=l.length===0,_=[g].concat(C?"":u("array.table.validation.error")).join(" ");return A.createElement("div",{className:y,hidden:!s},A.createElement("header",null,A.createElement("label",{className:v},c),A.createElement("button",{className:w,onClick:t(a,Xi(r))},p.addTooltip)),A.createElement("div",{className:_},C?"":l),A.createElement("table",{className:b},A.createElement("thead",null,A.createElement("tr",null,r.properties?cM(dM,aM($=>r.properties[$].type!=="array"),iM($=>A.createElement("th",{key:$},r.properties[$].title??D3e($))))(r.properties):A.createElement("th",null,"Items"),A.createElement("th",null,"Valid"),A.createElement("th",null," "))),A.createElement("tbody",null,!i||!Array.isArray(i)||i.length===0?A.createElement("tr",null,A.createElement("td",null,p.noDataMessage)):i.map(($,P)=>{const k=Wr.compose(a,`${P}`),I=dg(f,G=>gg(G).startsWith(k)),D=u("array.validation"),F=u("array.validation.error"),U=I?[D].concat(F).join(" "):D;return A.createElement("tr",{key:k},r.properties?cM(dM,aM(G=>r.properties[G].type!=="array"),iM(G=>{const z=Wr.compose(k,G.toString());return A.createElement("td",{key:z},A.createElement(Xl,{schema:So.schema(r,`#/properties/${Jl(G)}`,o),uischema:x(Jl(G)),path:k+"."+G}))}))(r.properties):A.createElement("td",{key:Wr.compose(k,P.toString())},A.createElement(Xl,{schema:r,uischema:x(),path:k})),A.createElement("td",null,I?A.createElement("span",{className:U},M6(I.map(G=>G.message)," and ")):A.createElement("span",{className:U},"OK")),A.createElement("td",null,A.createElement("button",{"aria-label":p.removeAriaLabel,onClick:()=>{window.confirm(p.deleteDialogMessage)&&this.confirmDelete(k,P)}},p.removeTooltip)))}))))}}var Gje=Ei(P4(Hje));const GE=(e,t,n,r,o)=>{if(Mt(e.elements))return[];const{renderers:a,cells:i}=fc();return e.elements.map((s,l)=>A.createElement("div",{className:n,key:`${r}-${l}`},A.createElement(Eo,{renderers:a,cells:i,uischema:s,schema:t,path:r,enabled:o})))},qje=mn(1,Sn("Group")),Yje=e=>{const{data:t,...n}=e;return A.createElement(Kje,Object.assign({},n))},Kje=A.memo(function({schema:t,uischema:n,path:r,enabled:o,visible:a,label:i,getStyle:s,getStyleAsClassName:l}){const c=n,u=c.elements?c.elements.length:0,f=l("group.layout"),p=["group-layout-item"].concat(s("group.layout.item",u)).join(" ");return A.createElement("fieldset",{className:f,hidden:a==null?!1:!a},Mt(i)?"":A.createElement("legend",{className:l("group.label")},i),GE(c,t,p,r,o))});var Jje=Ei(rs(Yje));const U6=({className:e,children:t,visible:n})=>A.createElement("div",{className:e,hidden:n==null?!1:!n},t),Zje=mn(1,Sn("HorizontalLayout")),Xje=e=>{const{data:t,...n}=e;return A.createElement(Qje,Object.assign({},n))},Qje=A.memo(function({schema:t,uischema:n,getStyle:r,getStyleAsClassName:o,enabled:a,visible:i,path:s}){const l=n,c=l.elements?l.elements.length:0,u=o("horizontal.layout"),f=["horizontal-layout-item"].concat(r("horizontal.layout.item",c)).join(" ");return A.createElement(U6,{className:u,visible:i,enabled:a,path:s,uischema:n,schema:t,getStyle:r,getStyleAsClassName:o},GE(l,t,f,s,a))});var e4e=Ei(rs(Xje,!1));const t4e=mn(1,Sn("VerticalLayout")),n4e=e=>{const{data:t,...n}=e;return A.createElement(r4e,Object.assign({},n))},r4e=A.memo(function({schema:t,uischema:n,path:r,visible:o,enabled:a,getStyle:i,getStyleAsClassName:s}){const l=n,c=l.elements?l.elements.length:0,u=s("vertical.layout"),f=["vertical-layout-item"].concat(i("vertical.layout.item",c)).join(" ");return A.createElement(U6,{className:u,uischema:n,schema:t,visible:o,enabled:a,path:r,getStyle:i,getStyleAsClassName:s},GE(l,t,f,r,a))});var o4e=Ei(rs(n4e,!1));const a4e=[{tester:bje,renderer:z6},{tester:wje,renderer:Cje},{tester:Sje,renderer:_je},{tester:Oje,renderer:kje},{tester:Nje,renderer:Lje},{tester:Rje,renderer:Aje},{tester:Wje,renderer:Gje},{tester:qje,renderer:Jje},{tester:t4e,renderer:o4e},{tester:Zje,renderer:e4e}];function W6(e){let t=window.location.pathname.split("/playground")[0];return t.endsWith("/")&&(t=t.slice(0,-1)),new URL(t+e,window.location.origin)}const i4e=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(r,o,a){n.o(r,o)||Object.defineProperty(r,o,{enumerable:!0,get:a})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,o){if(1&o&&(r=n(r)),8&o||4&o&&typeof r=="object"&&r&&r.__esModule)return r;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:r}),2&o&&typeof r!="string")for(var i in r)n.d(a,i,(function(s){return r[s]}).bind(null,i));return a},n.n=function(r){var o=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(o,"a",o),o},n.o=function(r,o){return Object.prototype.hasOwnProperty.call(r,o)},n.p="",n(n.s=84)}([function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r;try{r={clone:n(88),constant:n(64),each:n(146),filter:n(152),has:n(175),isArray:n(0),isEmpty:n(177),isFunction:n(17),isUndefined:n(178),keys:n(6),map:n(179),reduce:n(181),size:n(184),transform:n(190),union:n(191),values:n(210)}}catch{}r||(r=window._),e.exports=r},function(e,t,n){function r(s){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l})(s)}var o=n(47),a=(typeof self>"u"?"undefined":r(self))=="object"&&self&&self.Object===Object&&self,i=o||a||Function("return this")();e.exports=i},function(e,t){function n(r){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(r)}e.exports=function(r){return r!=null&&n(r)=="object"}},function(e,t,n){var r=n(100),o=n(105);e.exports=function(a,i){var s=o(a,i);return r(s)?s:void 0}},function(e,t){function n(r){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(r)}e.exports=function(r){var o=n(r);return r!=null&&(o=="object"||o=="function")}},function(e,t,n){var r=n(52),o=n(37),a=n(7);e.exports=function(i){return a(i)?r(i):o(i)}},function(e,t,n){var r=n(17),o=n(34);e.exports=function(a){return a!=null&&o(a.length)&&!r(a)}},function(e,t,n){var r=n(9),o=n(101),a=n(102),i=r?r.toStringTag:void 0;e.exports=function(s){return s==null?s===void 0?"[object Undefined]":"[object Null]":i&&i in Object(s)?o(s):a(s)}},function(e,t,n){var r=n(2).Symbol;e.exports=r},function(e,t,n){var r=n(132),o=n(31),a=n(133),i=n(61),s=n(134),l=n(8),c=n(48),u=c(r),f=c(o),p=c(a),m=c(i),b=c(s),v=l;(r&&v(new r(new ArrayBuffer(1)))!="[object DataView]"||o&&v(new o)!="[object Map]"||a&&v(a.resolve())!="[object Promise]"||i&&v(new i)!="[object Set]"||s&&v(new s)!="[object WeakMap]")&&(v=function(w){var g=l(w),y=g=="[object Object]"?w.constructor:void 0,x=y?c(y):"";if(x)switch(x){case u:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case m:return"[object Set]";case b:return"[object WeakMap]"}return g}),e.exports=v},function(e,t){function n(o){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(o)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch{(typeof window>"u"?"undefined":n(window))==="object"&&(r=window)}e.exports=r},function(e,t,n){(function(r){function o(f){return(o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p})(f)}var a=n(2),i=n(121),s=o(t)=="object"&&t&&!t.nodeType&&t,l=s&&o(r)=="object"&&r&&!r.nodeType&&r,c=l&&l.exports===s?a.Buffer:void 0,u=(c?c.isBuffer:void 0)||i;r.exports=u}).call(this,n(14)(e))},function(e,t){var n,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(w){if(n===setTimeout)return setTimeout(w,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(w,0);try{return n(w,0)}catch{try{return n.call(null,w,0)}catch{return n.call(this,w,0)}}}(function(){try{n=typeof setTimeout=="function"?setTimeout:a}catch{n=a}try{r=typeof clearTimeout=="function"?clearTimeout:i}catch{r=i}})();var l,c=[],u=!1,f=-1;function p(){u&&l&&(u=!1,l.length?c=l.concat(c):f=-1,c.length&&m())}function m(){if(!u){var w=s(p);u=!0;for(var g=c.length;g;){for(l=c,c=[];++f1)for(var y=1;yw){var g=v;v=w,w=g}return v+""+w+""+(o.isUndefined(b)?"\0":b)}function c(f,p,m,b){var v=""+p,w=""+m;if(!f&&v>w){var g=v;v=w,w=g}var y={v,w};return b&&(y.name=b),y}function u(f,p){return l(f,p.v,p.w,p.name)}a.prototype._nodeCount=0,a.prototype._edgeCount=0,a.prototype.isDirected=function(){return this._isDirected},a.prototype.isMultigraph=function(){return this._isMultigraph},a.prototype.isCompound=function(){return this._isCompound},a.prototype.setGraph=function(f){return this._label=f,this},a.prototype.graph=function(){return this._label},a.prototype.setDefaultNodeLabel=function(f){return o.isFunction(f)||(f=o.constant(f)),this._defaultNodeLabelFn=f,this},a.prototype.nodeCount=function(){return this._nodeCount},a.prototype.nodes=function(){return o.keys(this._nodes)},a.prototype.sources=function(){var f=this;return o.filter(this.nodes(),function(p){return o.isEmpty(f._in[p])})},a.prototype.sinks=function(){var f=this;return o.filter(this.nodes(),function(p){return o.isEmpty(f._out[p])})},a.prototype.setNodes=function(f,p){var m=arguments,b=this;return o.each(f,function(v){m.length>1?b.setNode(v,p):b.setNode(v)}),this},a.prototype.setNode=function(f,p){return o.has(this._nodes,f)?(arguments.length>1&&(this._nodes[f]=p),this):(this._nodes[f]=arguments.length>1?p:this._defaultNodeLabelFn(f),this._isCompound&&(this._parent[f]="\0",this._children[f]={},this._children["\0"][f]=!0),this._in[f]={},this._preds[f]={},this._out[f]={},this._sucs[f]={},++this._nodeCount,this)},a.prototype.node=function(f){return this._nodes[f]},a.prototype.hasNode=function(f){return o.has(this._nodes,f)},a.prototype.removeNode=function(f){var p=this;if(o.has(this._nodes,f)){var m=function(b){p.removeEdge(p._edgeObjs[b])};delete this._nodes[f],this._isCompound&&(this._removeFromParentsChildList(f),delete this._parent[f],o.each(this.children(f),function(b){p.setParent(b)}),delete this._children[f]),o.each(o.keys(this._in[f]),m),delete this._in[f],delete this._preds[f],o.each(o.keys(this._out[f]),m),delete this._out[f],delete this._sucs[f],--this._nodeCount}return this},a.prototype.setParent=function(f,p){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(o.isUndefined(p))p="\0";else{for(var m=p+="";!o.isUndefined(m);m=this.parent(m))if(m===f)throw new Error("Setting "+p+" as parent of "+f+" would create a cycle");this.setNode(p)}return this.setNode(f),this._removeFromParentsChildList(f),this._parent[f]=p,this._children[p][f]=!0,this},a.prototype._removeFromParentsChildList=function(f){delete this._children[this._parent[f]][f]},a.prototype.parent=function(f){if(this._isCompound){var p=this._parent[f];if(p!=="\0")return p}},a.prototype.children=function(f){if(o.isUndefined(f)&&(f="\0"),this._isCompound){var p=this._children[f];if(p)return o.keys(p)}else{if(f==="\0")return this.nodes();if(this.hasNode(f))return[]}},a.prototype.predecessors=function(f){var p=this._preds[f];if(p)return o.keys(p)},a.prototype.successors=function(f){var p=this._sucs[f];if(p)return o.keys(p)},a.prototype.neighbors=function(f){var p=this.predecessors(f);if(p)return o.union(p,this.successors(f))},a.prototype.isLeaf=function(f){return(this.isDirected()?this.successors(f):this.neighbors(f)).length===0},a.prototype.filterNodes=function(f){var p=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});p.setGraph(this.graph());var m=this;o.each(this._nodes,function(v,w){f(w)&&p.setNode(w,v)}),o.each(this._edgeObjs,function(v){p.hasNode(v.v)&&p.hasNode(v.w)&&p.setEdge(v,m.edge(v))});var b={};return this._isCompound&&o.each(p.nodes(),function(v){p.setParent(v,function w(g){var y=m.parent(g);return y===void 0||p.hasNode(y)?(b[g]=y,y):y in b?b[y]:w(y)}(v))}),p},a.prototype.setDefaultEdgeLabel=function(f){return o.isFunction(f)||(f=o.constant(f)),this._defaultEdgeLabelFn=f,this},a.prototype.edgeCount=function(){return this._edgeCount},a.prototype.edges=function(){return o.values(this._edgeObjs)},a.prototype.setPath=function(f,p){var m=this,b=arguments;return o.reduce(f,function(v,w){return b.length>1?m.setEdge(v,w,p):m.setEdge(v,w),w}),this},a.prototype.setEdge=function(){var f,p,m,b,v=!1,w=arguments[0];r(w)==="object"&&w!==null&&"v"in w?(f=w.v,p=w.w,m=w.name,arguments.length===2&&(b=arguments[1],v=!0)):(f=w,p=arguments[1],m=arguments[3],arguments.length>2&&(b=arguments[2],v=!0)),f=""+f,p=""+p,o.isUndefined(m)||(m=""+m);var g=l(this._isDirected,f,p,m);if(o.has(this._edgeLabels,g))return v&&(this._edgeLabels[g]=b),this;if(!o.isUndefined(m)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(f),this.setNode(p),this._edgeLabels[g]=v?b:this._defaultEdgeLabelFn(f,p,m);var y=c(this._isDirected,f,p,m);return f=y.v,p=y.w,Object.freeze(y),this._edgeObjs[g]=y,i(this._preds[p],f),i(this._sucs[f],p),this._in[p][g]=y,this._out[f][g]=y,this._edgeCount++,this},a.prototype.edge=function(f,p,m){var b=arguments.length===1?u(this._isDirected,arguments[0]):l(this._isDirected,f,p,m);return this._edgeLabels[b]},a.prototype.hasEdge=function(f,p,m){var b=arguments.length===1?u(this._isDirected,arguments[0]):l(this._isDirected,f,p,m);return o.has(this._edgeLabels,b)},a.prototype.removeEdge=function(f,p,m){var b=arguments.length===1?u(this._isDirected,arguments[0]):l(this._isDirected,f,p,m),v=this._edgeObjs[b];return v&&(f=v.v,p=v.w,delete this._edgeLabels[b],delete this._edgeObjs[b],s(this._preds[p],f),s(this._sucs[f],p),delete this._in[p][b],delete this._out[f][b],this._edgeCount--),this},a.prototype.inEdges=function(f,p){var m=this._in[f];if(m){var b=o.values(m);return p?o.filter(b,function(v){return v.v===p}):b}},a.prototype.outEdges=function(f,p){var m=this._out[f];if(m){var b=o.values(m);return p?o.filter(b,function(v){return v.w===p}):b}},a.prototype.nodeEdges=function(f,p){var m=this.inEdges(f,p);if(m)return m.concat(this.outEdges(f,p))}},function(e,t,n){var r=n(15),o=n(95),a=n(96),i=n(97),s=n(98),l=n(99);function c(u){var f=this.__data__=new r(u);this.size=f.size}c.prototype.clear=o,c.prototype.delete=a,c.prototype.get=i,c.prototype.has=s,c.prototype.set=l,e.exports=c},function(e,t){e.exports=function(n,r){return n===r||n!=n&&r!=r}},function(e,t,n){var r=n(4)(n(2),"Map");e.exports=r},function(e,t,n){var r=n(106),o=n(113),a=n(115),i=n(116),s=n(117);function l(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u-1&&n%1==0&&n<=9007199254740991}},function(e,t){e.exports=function(n){return function(r){return n(r)}}},function(e,t,n){(function(r){function o(u){return(o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f})(u)}var a=n(47),i=o(t)=="object"&&t&&!t.nodeType&&t,s=i&&o(r)=="object"&&r&&!r.nodeType&&r,l=s&&s.exports===i&&a.process,c=function(){try{var u=s&&s.require&&s.require("util").types;return u||l&&l.binding&&l.binding("util")}catch{}}();r.exports=c}).call(this,n(14)(e))},function(e,t,n){var r=n(23),o=n(123),a=Object.prototype.hasOwnProperty;e.exports=function(i){if(!r(i))return o(i);var s=[];for(var l in Object(i))a.call(i,l)&&l!="constructor"&&s.push(l);return s}},function(e,t,n){var r=n(56),o=n(57),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(l){return l==null?[]:(l=Object(l),r(i(l),function(c){return a.call(l,c)}))}:o;e.exports=s},function(e,t){e.exports=function(n,r){for(var o=-1,a=r.length,i=n.length;++o-1&&o%1==0&&om))return!1;var v=f.get(i);if(v&&f.get(s))return v==s;var w=-1,g=!0,y=2&l?new r:void 0;for(f.set(i,s),f.set(s,i);++w0&&(b=g.removeMin(),(v=w[b]).distance!==Number.POSITIVE_INFINITY);)m(b).forEach(y);return w}(i,String(s),l||a,c||function(u){return i.outEdges(u)})};var a=r.constant(1)},function(e,t,n){var r=n(1);function o(){this._arr=[],this._keyIndices={}}e.exports=o,o.prototype.size=function(){return this._arr.length},o.prototype.keys=function(){return this._arr.map(function(a){return a.key})},o.prototype.has=function(a){return r.has(this._keyIndices,a)},o.prototype.priority=function(a){var i=this._keyIndices[a];if(i!==void 0)return this._arr[i].priority},o.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},o.prototype.add=function(a,i){var s=this._keyIndices;if(a=String(a),!r.has(s,a)){var l=this._arr,c=l.length;return s[a]=c,l.push({key:a,priority:i}),this._decrease(c),!0}return!1},o.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var a=this._arr.pop();return delete this._keyIndices[a.key],this._heapify(0),a.key},o.prototype.decrease=function(a,i){var s=this._keyIndices[a];if(i>this._arr[s].priority)throw new Error("New priority is greater than current priority. Key: "+a+" Old: "+this._arr[s].priority+" New: "+i);this._arr[s].priority=i,this._decrease(s)},o.prototype._heapify=function(a){var i=this._arr,s=2*a,l=s+1,c=a;s>1].priority0&&v(g,U))}catch(G){C.call(new $(U),G)}}}function C(D){var F=this;F.triggered||(F.triggered=!0,F.def&&(F=F.def),F.msg=D,F.state=2,F.chain.length>0&&v(g,F))}function _(D,F,U,G){for(var z=0;z-1?R=N:(q=o.isUndefined(L)?void 0:D(L),o.isUndefined(q)?R=N:((R=q).path=c(i.join(q.path,N.path)),R.query=function(V,Z){var re={};function le(xe){o.forOwn(xe,function(fe,ge){re[ge]=fe})}return le(l.parse(V||"")),le(l.parse(Z||"")),Object.keys(re).length===0?void 0:l.stringify(re)}(q.query,N.query))),R.fragment=void 0,(b.indexOf(R.reference)===-1&&R.path.indexOf("../")===0?"../":"")+u.serialize(R)}function g(L){return m.indexOf(_(L))>-1}function y(L){return o.isUndefined(L.error)&&L.type!=="invalid"}function x(L,K){var q=L;return K.forEach(function(R){if(!(R in q))throw Error("JSON Pointer points to missing location: "+J(K));q=q[R]}),q}function C(L){return Object.keys(L).filter(function(K){return K!=="$ref"})}function _(L){var K;switch(L.uriDetails.reference){case"absolute":case"uri":K="remote";break;case"same-document":K="local";break;default:K=L.uriDetails.reference}return K}function $(L,K){var q=p[L],R=Promise.resolve(),N=o.cloneDeep(K.loaderOptions||{});return o.isUndefined(q)?(o.isUndefined(N.processContent)&&(N.processContent=function(V,Z){Z(void 0,JSON.parse(V.text))}),R=(R=s.load(decodeURI(L),N)).then(function(V){return p[L]={value:V},V}).catch(function(V){throw p[L]={error:V},V})):R=R.then(function(){if(o.isError(q.error))throw q.error;return q.value}),R=R.then(function(V){return o.cloneDeep(V)})}function P(L,K){var q=!0;try{if(!o.isPlainObject(L))throw new Error("obj is not an Object");if(!o.isString(L.$ref))throw new Error("obj.$ref is not a String")}catch(R){if(K)throw R;q=!1}return q}function k(L){return L.indexOf("://")!==-1||i.isAbsolute(L)?L:i.resolve(r.cwd(),L)}function I(L,K){L.error=K.message,L.missing=!0}function D(L){return u.parse(L)}function F(L,K,q){x(L,K.slice(0,K.length-1))[K[K.length-1]]=q}function U(L,K){var q,R;if(L=o.isUndefined(L)?{}:o.cloneDeep(L),!o.isObject(L))throw new TypeError("options must be an Object");if(!o.isUndefined(L.resolveCirculars)&&!o.isBoolean(L.resolveCirculars))throw new TypeError("options.resolveCirculars must be a Boolean");if(!(o.isUndefined(L.filter)||o.isArray(L.filter)||o.isFunction(L.filter)||o.isString(L.filter)))throw new TypeError("options.filter must be an Array, a Function of a String");if(!o.isUndefined(L.includeInvalid)&&!o.isBoolean(L.includeInvalid))throw new TypeError("options.includeInvalid must be a Boolean");if(!o.isUndefined(L.location)&&!o.isString(L.location))throw new TypeError("options.location must be a String");if(!o.isUndefined(L.refPreProcessor)&&!o.isFunction(L.refPreProcessor))throw new TypeError("options.refPreProcessor must be a Function");if(!o.isUndefined(L.refPostProcessor)&&!o.isFunction(L.refPostProcessor))throw new TypeError("options.refPostProcessor must be a Function");if(!o.isUndefined(L.subDocPath)&&!o.isArray(L.subDocPath)&&!Q(L.subDocPath))throw new TypeError("options.subDocPath must be an Array of path segments or a valid JSON Pointer");if(o.isUndefined(L.resolveCirculars)&&(L.resolveCirculars=!1),L.filter=function(N){var V,Z;return o.isArray(N.filter)||o.isString(N.filter)?(Z=o.isString(N.filter)?[N.filter]:N.filter,V=function(re){return Z.indexOf(re.type)>-1||Z.indexOf(_(re))>-1}):o.isFunction(N.filter)?V=N.filter:o.isUndefined(N.filter)&&(V=function(){return!0}),function(re,le){return(re.type!=="invalid"||N.includeInvalid===!0)&&V(re,le)}}(L),o.isUndefined(L.location)&&(L.location=k("./root.json")),(q=L.location.split("#")).length>1&&(L.subDocPath="#"+q[1]),R=decodeURI(L.location)===L.location,L.location=w(L.location,void 0),R&&(L.location=decodeURI(L.location)),L.subDocPath=function(N){var V;return o.isArray(N.subDocPath)?V=N.subDocPath:o.isString(N.subDocPath)?V=H(N.subDocPath):o.isUndefined(N.subDocPath)&&(V=[]),V}(L),!o.isUndefined(K))try{x(K,L.subDocPath)}catch(N){throw N.message=N.message.replace("JSON Pointer","options.subDocPath"),N}return L}function G(L){if(!o.isArray(L))throw new TypeError("path must be an array");return L.map(function(K){return o.isString(K)||(K=JSON.stringify(K)),K.replace(/~1/g,"/").replace(/~0/g,"~")})}function z(L){if(!o.isArray(L))throw new TypeError("path must be an array");return L.map(function(K){return o.isString(K)||(K=JSON.stringify(K)),K.replace(/~/g,"~0").replace(/\//g,"~1")})}function B(L,K){var q={};if(!o.isArray(L)&&!o.isObject(L))throw new TypeError("obj must be an Array or an Object");return function R(N,V,Z,re){var le=!0;function xe(fe,ge){Z.push(ge),R(N,fe,Z,re),Z.pop()}o.isFunction(re)&&(le=re(N,V,Z)),N.indexOf(V)===-1&&(N.push(V),le!==!1&&(o.isArray(V)?V.forEach(function(fe,ge){xe(fe,ge.toString())}):o.isObject(V)&&o.forOwn(V,function(fe,ge){xe(fe,ge)})),N.pop())}(function(R,N){var V,Z=[];return N.length>0&&(V=R,N.slice(0,N.length-1).forEach(function(re){re in V&&(V=V[re],Z.push(V))})),Z}(L,(K=U(K,L)).subDocPath),x(L,K.subDocPath),o.cloneDeep(K.subDocPath),function(R,N,V){var Z,re,le=!0;return P(N)&&(o.isUndefined(K.refPreProcessor)||(N=K.refPreProcessor(o.cloneDeep(N),V)),Z=Y(N),o.isUndefined(K.refPostProcessor)||(Z=K.refPostProcessor(Z,V)),K.filter(Z,V)&&(re=J(V),q[re]=Z),C(N).length>0&&(le=!1)),le}),q}function Y(L){var K,q,R,N={def:L};try{if(P(L,!0),K=L.$ref,R=v[K],o.isUndefined(R)&&(R=v[K]=D(K)),N.uri=K,N.uriDetails=R,o.isUndefined(R.error)){N.type=_(N);try{["#","/"].indexOf(K[0])>-1?Q(K,!0):K.indexOf("#")>-1&&Q(R.fragment,!0)}catch(V){N.error=V.message,N.type="invalid"}}else N.error=N.uriDetails.error,N.type="invalid";(q=C(L)).length>0&&(N.warning="Extra JSON Reference properties will be ignored: "+q.join(", "))}catch(V){N.error=V.message,N.type="invalid"}return N}function Q(L,K){var q,R=!0;try{if(!o.isString(L))throw new Error("ptr is not a String");if(L!==""){if(q=L.charAt(0),["#","/"].indexOf(q)===-1)throw new Error("ptr must start with a / or #/");if(q==="#"&&L!=="#"&&L.charAt(1)!=="/")throw new Error("ptr must start with a / or #/");if(L.match(f))throw new Error("ptr has invalid token(s)")}}catch(N){if(K===!0)throw N;R=!1}return R}function H(L){try{Q(L,!0)}catch(q){throw new Error("ptr must be a JSON Pointer: "+q.message)}var K=L.split("/");return K.shift(),G(K)}function J(L,K){if(!o.isArray(L))throw new Error("path must be an Array");return(K!==!1?"#":"")+(L.length>0?"/":"")+z(L).join("/")}function X(L,K){var q=Promise.resolve();return q=q.then(function(){if(!o.isArray(L)&&!o.isObject(L))throw new TypeError("obj must be an Array or an Object");K=U(K,L),L=o.cloneDeep(L)}).then(function(){var R={deps:{},docs:{},refs:{}};return function N(V,Z,re){var le,xe,fe=Promise.resolve(),ge=J(Z.subDocPath),he=k(Z.location),_e=i.dirname(Z.location),ve=he+ge;return o.isUndefined(re.docs[he])&&(re.docs[he]=V),o.isUndefined(re.deps[ve])&&(re.deps[ve]={},le=B(V,Z),o.forOwn(le,function(Be,Ue){var ze,He,be=k(Z.location)+Ue,we=Be.refdId=decodeURI(k(g(Be)?w(_e,Be.uri):Z.location)+"#"+(Be.uri.indexOf("#")>-1?Be.uri.split("#")[1]:""));re.refs[be]=Be,y(Be)&&(Be.fqURI=we,re.deps[ve][Ue===ge?"#":Ue.replace(ge+"/","#/")]=we,be.indexOf(we+"/")!==0&&be!==we?((xe=o.cloneDeep(Z)).subDocPath=o.isUndefined(Be.uriDetails.fragment)?[]:H(decodeURI(Be.uriDetails.fragment)),g(Be)?(delete xe.filter,xe.location=we.split("#")[0],fe=fe.then((ze=re,He=xe,function(){var Ce=k(He.location),qe=ze.docs[Ce];return o.isUndefined(qe)?$(Ce,He).catch(function(rt){return ze.docs[Ce]=rt,rt}):Promise.resolve().then(function(){return qe})}))):fe=fe.then(function(){return V}),fe=fe.then(function(Ce,qe,rt){return function(Ae){if(o.isError(Ae))I(rt,Ae);else try{return N(Ae,qe,Ce).catch(function(Le){I(rt,Le)})}catch(Le){I(rt,Le)}}}(re,xe,Be))):Be.circular=!0)})),fe}(L,K,R).then(function(){return R})}).then(function(R){var N={},V=[],Z=[],re=new a.Graph,le=k(K.location),xe=le+J(K.subDocPath),fe=i.dirname(le);return Object.keys(R.deps).forEach(function(ge){re.setNode(ge)}),o.forOwn(R.deps,function(ge,he){o.forOwn(ge,function(_e){re.setEdge(he,_e)})}),(V=a.alg.findCycles(re)).forEach(function(ge){ge.forEach(function(he){Z.indexOf(he)===-1&&Z.push(he)})}),o.forOwn(R.deps,function(ge,he){o.forOwn(ge,function(_e,ve){var Be,Ue=!1,ze=he+ve.slice(1),He=R.refs[he+ve.slice(1)],be=g(He);Z.indexOf(_e)>-1&&V.forEach(function(we){Ue||(Be=we.indexOf(_e))>-1&&we.forEach(function(Ce){Ue||ze.indexOf(Ce+"/")===0&&(be&&Be!==we.length-1&&_e[_e.length-1]==="#"||(Ue=!0))})}),Ue&&(He.circular=!0)})}),o.forOwn(Object.keys(R.deps).reverse(),function(ge){var he=R.deps[ge],_e=ge.split("#"),ve=R.docs[_e[0]],Be=H(_e[1]);o.forOwn(he,function(Ue,ze){var He=Ue.split("#"),be=R.docs[He[0]],we=Be.concat(H(ze)),Ce=R.refs[_e[0]+J(we)];if(o.isUndefined(Ce.error)&&o.isUndefined(Ce.missing))if(!K.resolveCirculars&&Ce.circular)Ce.value=o.cloneDeep(Ce.def);else{try{Ce.value=x(be,H(He[1]))}catch(qe){return void I(Ce,qe)}_e[1]===""&&ze==="#"?R.docs[_e[0]]=Ce.value:F(ve,we,Ce.value)}})}),Object.keys(R.refs).forEach(function(ge){var he,_e,ve=R.refs[ge];ve.type!=="invalid"&&(ve.fqURI[ve.fqURI.length-1]==="#"&&ve.uri[ve.uri.length-1]!=="#"&&(ve.fqURI=ve.fqURI.substr(0,ve.fqURI.length-1)),he=ve.fqURI.split("/"),_e=ve.uri.split("/"),o.times(_e.length-1,function(Be){var Ue=_e[_e.length-Be-1],ze=_e[_e.length-Be],He=he.length-Be-1;Ue!=="."&&Ue!==".."&&ze!==".."&&(he[He]=Ue)}),ve.fqURI=he.join("/"),ve.fqURI.indexOf(le)===0?ve.fqURI=ve.fqURI.replace(le,""):ve.fqURI.indexOf(fe)===0&&(ve.fqURI=ve.fqURI.replace(fe,"")),ve.fqURI[0]==="/"&&(ve.fqURI="."+ve.fqURI)),ge.indexOf(xe)===0&&function Be(Ue,ze,He){var be,we=ze.split("#"),Ce=R.refs[ze];N[we[0]===K.location?"#"+we[1]:J(K.subDocPath.concat(He))]=Ce,!Ce.circular&&y(Ce)?(be=R.deps[Ce.refdId],Ce.refdId.indexOf(Ue)!==0&&Object.keys(be).forEach(function(qe){Be(Ce.refdId,Ce.refdId+qe.substr(1),He.concat(H(qe)))})):!Ce.circular&&Ce.error&&(Ce.error=Ce.error.replace("options.subDocPath","JSON Pointer"),Ce.error.indexOf("#")>-1&&(Ce.error=Ce.error.replace(Ce.uri.substr(Ce.uri.indexOf("#")),Ce.uri)),Ce.error.indexOf("ENOENT:")!==0&&Ce.error.indexOf("Not Found")!==0||(Ce.error="JSON Pointer points to missing location: "+Ce.uri))}(xe,ge,H(ge.substr(xe.length)))}),o.forOwn(N,function(ge,he){delete ge.refdId,ge.circular&&ge.type==="local"&&(ge.value.$ref=ge.fqURI,F(R.docs[le],H(he),ge.value)),ge.missing&&(ge.error=ge.error.split(": ")[0]+": "+ge.def.$ref)}),{refs:N,resolved:R.docs[le]}})}typeof Promise>"u"&&n(83),e.exports.clearCache=function(){p={}},e.exports.decodePath=function(L){return G(L)},e.exports.encodePath=function(L){return z(L)},e.exports.findRefs=function(L,K){return B(L,K)},e.exports.findRefsAt=function(L,K){return function(q,R){var N=Promise.resolve();return N=N.then(function(){if(!o.isString(q))throw new TypeError("location must be a string");return o.isUndefined(R)&&(R={}),o.isObject(R)&&(R.location=q),$((R=U(R)).location,R)}).then(function(V){var Z=o.cloneDeep(p[R.location]),re=o.cloneDeep(R);return o.isUndefined(Z.refs)&&(delete re.filter,delete re.subDocPath,re.includeInvalid=!0,p[R.location].refs=B(V,re)),o.isUndefined(R.filter)||(re.filter=R.filter),{refs:B(V,re),value:V}})}(L,K)},e.exports.getRefDetails=function(L){return Y(L)},e.exports.isPtr=function(L,K){return Q(L,K)},e.exports.isRef=function(L,K){return function(q,R){return P(q,R)&&Y(q).type!=="invalid"}(L,K)},e.exports.pathFromPtr=function(L){return H(L)},e.exports.pathToPtr=function(L,K){return J(L,K)},e.exports.resolveRefs=function(L,K){return X(L,K)},e.exports.resolveRefsAt=function(L,K){return function(q,R){var N=Promise.resolve();return N=N.then(function(){if(!o.isString(q))throw new TypeError("location must be a string");return o.isUndefined(R)&&(R={}),o.isObject(R)&&(R.location=q),$((R=U(R)).location,R)}).then(function(V){return X(V,R).then(function(Z){return{refs:Z.refs,resolved:Z.resolved,value:V}})})}(L,K)}}).call(this,n(13))},function(e,t,n){(function(r,o){var a;function i(s){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l})(s)}/** - * @license - * Lodash - * Copyright OpenJS Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */(function(){var s="Expected a function",l="__lodash_placeholder__",c=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u="[object Arguments]",f="[object Array]",p="[object Boolean]",m="[object Date]",b="[object Error]",v="[object Function]",w="[object GeneratorFunction]",g="[object Map]",y="[object Number]",x="[object Object]",C="[object RegExp]",_="[object Set]",$="[object String]",P="[object Symbol]",k="[object WeakMap]",I="[object ArrayBuffer]",D="[object DataView]",F="[object Float32Array]",U="[object Float64Array]",G="[object Int8Array]",z="[object Int16Array]",B="[object Int32Array]",Y="[object Uint8Array]",Q="[object Uint16Array]",H="[object Uint32Array]",J=/\b__p \+= '';/g,X=/\b(__p \+=) '' \+/g,L=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,R=RegExp(K.source),N=RegExp(q.source),V=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,re=/<%=([\s\S]+?)%>/g,le=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xe=/^\w*$/,fe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ge=/[\\^$.*+?()[\]{}|]/g,he=RegExp(ge.source),_e=/^\s+|\s+$/g,ve=/^\s+/,Be=/\s+$/,Ue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ze=/\{\n\/\* \[wrapped with (.+)\] \*/,He=/,? & /,be=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,we=/\\(\\)?/g,Ce=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qe=/\w*$/,rt=/^[-+]0x[0-9a-f]+$/i,Ae=/^0b[01]+$/i,Le=/^\[object .+?Constructor\]$/,Fe=/^0o[0-7]+$/i,Pe=/^(?:0|[1-9]\d*)$/,Te=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,it=/($^)/,ct=/['\n\r\u2028\u2029\\]/g,gt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ne="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ne="[\\ud800-\\udfff]",te="["+Ne+"]",ie="["+gt+"]",$e="\\d+",Se="[\\u2700-\\u27bf]",Ze="[a-z\\xdf-\\xf6\\xf8-\\xff]",tt="[^\\ud800-\\udfff"+Ne+$e+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ft="\\ud83c[\\udffb-\\udfff]",_t="[^\\ud800-\\udfff]",vt="(?:\\ud83c[\\udde6-\\uddff]){2}",dt="[\\ud800-\\udbff][\\udc00-\\udfff]",Et="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Yt="(?:"+Ze+"|"+tt+")",kt="(?:"+Et+"|"+tt+")",ln="(?:"+ie+"|"+ft+")?",Vt="[\\ufe0e\\ufe0f]?"+ln+("(?:\\u200d(?:"+[_t,vt,dt].join("|")+")[\\ufe0e\\ufe0f]?"+ln+")*"),Ut="(?:"+[Se,vt,dt].join("|")+")"+Vt,Kt="(?:"+[_t+ie+"?",ie,vt,dt,ne].join("|")+")",bn=RegExp("['’]","g"),Bn=RegExp(ie,"g"),se=RegExp(ft+"(?="+ft+")|"+Kt+Vt,"g"),oe=RegExp([Et+"?"+Ze+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[te,Et,"$"].join("|")+")",kt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[te,Et+Yt,"$"].join("|")+")",Et+"?"+Yt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Et+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$e,Ut].join("|"),"g"),ue=RegExp("[\\u200d\\ud800-\\udfff"+gt+"\\ufe0e\\ufe0f]"),ke=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ee=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],pt=-1,me={};me[F]=me[U]=me[G]=me[z]=me[B]=me[Y]=me["[object Uint8ClampedArray]"]=me[Q]=me[H]=!0,me[u]=me[f]=me[I]=me[p]=me[D]=me[m]=me[b]=me[v]=me[g]=me[y]=me[x]=me[C]=me[_]=me[$]=me[k]=!1;var pe={};pe[u]=pe[f]=pe[I]=pe[D]=pe[p]=pe[m]=pe[F]=pe[U]=pe[G]=pe[z]=pe[B]=pe[g]=pe[y]=pe[x]=pe[C]=pe[_]=pe[$]=pe[P]=pe[Y]=pe["[object Uint8ClampedArray]"]=pe[Q]=pe[H]=!0,pe[b]=pe[v]=pe[k]=!1;var De={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},nt=parseFloat,lt=parseInt,xt=(r===void 0?"undefined":i(r))=="object"&&r&&r.Object===Object&&r,Nt=(typeof self>"u"?"undefined":i(self))=="object"&&self&&self.Object===Object&&self,ut=xt||Nt||Function("return this")(),yt=i(t)=="object"&&t&&!t.nodeType&&t,Wt=yt&&i(o)=="object"&&o&&!o.nodeType&&o,En=Wt&&Wt.exports===yt,ea=En&&xt.process,Vn=function(){try{var Me=Wt&&Wt.require&&Wt.require("util").types;return Me||ea&&ea.binding&&ea.binding("util")}catch{}}(),Oo=Vn&&Vn.isArrayBuffer,Pi=Vn&&Vn.isDate,Ka=Vn&&Vn.isMap,Kr=Vn&&Vn.isRegExp,Ro=Vn&&Vn.isSet,Ja=Vn&&Vn.isTypedArray;function Un(Me,Ye,Ge){switch(Ge.length){case 0:return Me.call(Ye);case 1:return Me.call(Ye,Ge[0]);case 2:return Me.call(Ye,Ge[0],Ge[1]);case 3:return Me.call(Ye,Ge[0],Ge[1],Ge[2])}return Me.apply(Ye,Ge)}function cl(Me,Ye,Ge,ht){for(var Ft=-1,cn=Me==null?0:Me.length;++Ft-1}function xc(Me,Ye,Ge){for(var ht=-1,Ft=Me==null?0:Me.length;++ht-1;);return Ge}function sP(Me,Ye){for(var Ge=Me.length;Ge--&&wc(Ye,Me[Ge],0)>-1;);return Ge}function IF(Me,Ye){for(var Ge=Me.length,ht=0;Ge--;)Me[Ge]===Ye&&++ht;return ht}var AF=q0({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),NF=q0({"&":"&","<":"<",">":">",'"':""","'":"'"});function jF(Me){return"\\"+De[Me]}function Cc(Me){return ue.test(Me)}function Z0(Me){var Ye=-1,Ge=Array(Me.size);return Me.forEach(function(ht,Ft){Ge[++Ye]=[Ft,ht]}),Ge}function lP(Me,Ye){return function(Ge){return Me(Ye(Ge))}}function ss(Me,Ye){for(var Ge=-1,ht=Me.length,Ft=0,cn=[];++Ge",""":'"',"'":"'"}),ls=function Me(Ye){var Ge,ht=(Ye=Ye==null?ut:ls.defaults(ut.Object(),Ye,ls.pick(ut,Ee))).Array,Ft=Ye.Date,cn=Ye.Error,pr=Ye.Function,Za=Ye.Math,Dn=Ye.Object,X0=Ye.RegExp,zF=Ye.String,ta=Ye.TypeError,$h=ht.prototype,BF=pr.prototype,Sc=Dn.prototype,Sh=Ye["__core-js_shared__"],_h=BF.toString,xn=Sc.hasOwnProperty,VF=0,cP=(Ge=/[^.]+$/.exec(Sh&&Sh.keys&&Sh.keys.IE_PROTO||""))?"Symbol(src)_1."+Ge:"",Eh=Sc.toString,UF=_h.call(Dn),WF=ut._,HF=X0("^"+_h.call(xn).replace(ge,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ph=En?Ye.Buffer:void 0,cs=Ye.Symbol,Th=Ye.Uint8Array,uP=Ph?Ph.allocUnsafe:void 0,kh=lP(Dn.getPrototypeOf,Dn),dP=Dn.create,fP=Sc.propertyIsEnumerable,Oh=$h.splice,pP=cs?cs.isConcatSpreadable:void 0,Pd=cs?cs.iterator:void 0,dl=cs?cs.toStringTag:void 0,Rh=function(){try{var d=ml(Dn,"defineProperty");return d({},"",{}),d}catch{}}(),GF=Ye.clearTimeout!==ut.clearTimeout&&Ye.clearTimeout,qF=Ft&&Ft.now!==ut.Date.now&&Ft.now,YF=Ye.setTimeout!==ut.setTimeout&&Ye.setTimeout,Dh=Za.ceil,Mh=Za.floor,Q0=Dn.getOwnPropertySymbols,KF=Ph?Ph.isBuffer:void 0,hP=Ye.isFinite,JF=$h.join,ZF=lP(Dn.keys,Dn),hr=Za.max,Nr=Za.min,XF=Ft.now,QF=Ye.parseInt,mP=Za.random,e9=$h.reverse,e1=ml(Ye,"DataView"),Td=ml(Ye,"Map"),t1=ml(Ye,"Promise"),_c=ml(Ye,"Set"),kd=ml(Ye,"WeakMap"),Od=ml(Dn,"create"),Ih=kd&&new kd,Ec={},t9=vl(e1),n9=vl(Td),r9=vl(t1),o9=vl(_c),a9=vl(kd),Ah=cs?cs.prototype:void 0,Rd=Ah?Ah.valueOf:void 0,vP=Ah?Ah.toString:void 0;function ee(d){if(Jn(d)&&!Ht(d)&&!(d instanceof rn)){if(d instanceof na)return d;if(xn.call(d,"__wrapped__"))return g2(d)}return new na(d)}var Pc=function(){function d(){}return function(h){if(!Wn(h))return{};if(dP)return dP(h);d.prototype=h;var E=new d;return d.prototype=void 0,E}}();function Nh(){}function na(d,h){this.__wrapped__=d,this.__actions__=[],this.__chain__=!!h,this.__index__=0,this.__values__=void 0}function rn(d){this.__wrapped__=d,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function fl(d){var h=-1,E=d==null?0:d.length;for(this.clear();++h=h?d:h)),d}function ra(d,h,E,M,W,ae){var ce,ye=1&h,Re=2&h,We=4&h;if(E&&(ce=W?E(d,M,W,ae):E(d)),ce!==void 0)return ce;if(!Wn(d))return d;var Ve=Ht(d);if(Ve){if(ce=function(Je){var st=Je.length,It=new Je.constructor(st);return st&&typeof Je[0]=="string"&&xn.call(Je,"index")&&(It.index=Je.index,It.input=Je.input),It}(d),!ye)return co(d,ce)}else{var ot=jr(d),Ct=ot==v||ot==w;if(hs(d))return UP(d,ye);if(ot==x||ot==u||Ct&&!W){if(ce=Re||Ct?{}:l2(d),!ye)return Re?function(Je,st){return Qa(Je,i2(Je),st)}(d,function(Je,st){return Je&&Qa(st,fo(st),Je)}(ce,d)):function(Je,st){return Qa(Je,E1(Je),st)}(d,bP(ce,d))}else{if(!pe[ot])return W?d:{};ce=function(Je,st,It){var wt=Je.constructor;switch(st){case I:return b1(Je);case p:case m:return new wt(+Je);case D:return function(jt,Xt){var Pt=Xt?b1(jt.buffer):jt.buffer;return new jt.constructor(Pt,jt.byteOffset,jt.byteLength)}(Je,It);case F:case U:case G:case z:case B:case Y:case"[object Uint8ClampedArray]":case Q:case H:return WP(Je,It);case g:return new wt;case y:case $:return new wt(Je);case C:return function(jt){var Xt=new jt.constructor(jt.source,qe.exec(jt));return Xt.lastIndex=jt.lastIndex,Xt}(Je);case _:return new wt;case P:return At=Je,Rd?Dn(Rd.call(At)):{}}var At}(d,ot,ye)}}ae||(ae=new _a);var $t=ae.get(d);if($t)return $t;ae.set(d,ce),A2(d)?d.forEach(function(Je){ce.add(ra(Je,h,E,Je,d,ae))}):M2(d)&&d.forEach(function(Je,st){ce.set(st,ra(Je,h,E,st,d,ae))});var Rt=Ve?void 0:(We?Re?$1:C1:Re?fo:_r)(d);return Jr(Rt||d,function(Je,st){Rt&&(Je=d[st=Je]),Dd(ce,st,ra(Je,h,E,st,d,ae))}),ce}function xP(d,h,E){var M=E.length;if(d==null)return!M;for(d=Dn(d);M--;){var W=E[M],ae=h[W],ce=d[W];if(ce===void 0&&!(W in d)||!ae(ce))return!1}return!0}function wP(d,h,E){if(typeof d!="function")throw new ta(s);return Fd(function(){d.apply(void 0,E)},h)}function Md(d,h,E,M){var W=-1,ae=Ti,ce=!0,ye=d.length,Re=[],We=h.length;if(!ye)return Re;E&&(h=Tn(h,Mo(E))),M?(ae=xc,ce=!1):h.length>=200&&(ae=Ed,ce=!1,h=new pl(h));e:for(;++W-1},ki.prototype.set=function(d,h){var E=this.__data__,M=jh(E,d);return M<0?(++this.size,E.push([d,h])):E[M][1]=h,this},Oi.prototype.clear=function(){this.size=0,this.__data__={hash:new fl,map:new(Td||ki),string:new fl}},Oi.prototype.delete=function(d){var h=Kh(this,d).delete(d);return this.size-=h?1:0,h},Oi.prototype.get=function(d){return Kh(this,d).get(d)},Oi.prototype.has=function(d){return Kh(this,d).has(d)},Oi.prototype.set=function(d,h){var E=Kh(this,d),M=E.size;return E.set(d,h),this.size+=E.size==M?0:1,this},pl.prototype.add=pl.prototype.push=function(d){return this.__data__.set(d,"__lodash_hash_undefined__"),this},pl.prototype.has=function(d){return this.__data__.has(d)},_a.prototype.clear=function(){this.__data__=new ki,this.size=0},_a.prototype.delete=function(d){var h=this.__data__,E=h.delete(d);return this.size=h.size,E},_a.prototype.get=function(d){return this.__data__.get(d)},_a.prototype.has=function(d){return this.__data__.has(d)},_a.prototype.set=function(d,h){var E=this.__data__;if(E instanceof ki){var M=E.__data__;if(!Td||M.length<199)return M.push([d,h]),this.size=++E.size,this;E=this.__data__=new Oi(M)}return E.set(d,h),this.size=E.size,this};var us=YP(Xa),CP=YP(a1,!0);function c9(d,h){var E=!0;return us(d,function(M,W,ae){return E=!!h(M,W,ae)}),E}function Lh(d,h,E){for(var M=-1,W=d.length;++M0&&E(ye)?h>1?kr(ye,h-1,E,M,W):lo(W,ye):M||(W[W.length]=ye)}return W}var o1=KP(),SP=KP(!0);function Xa(d,h){return d&&o1(d,h,_r)}function a1(d,h){return d&&SP(d,h,_r)}function Fh(d,h){return Do(h,function(E){return Ai(d[E])})}function Tc(d,h){for(var E=0,M=(h=fs(h,d)).length;d!=null&&Eh}function u9(d,h){return d!=null&&xn.call(d,h)}function d9(d,h){return d!=null&&h in Dn(d)}function s1(d,h,E){for(var M=E?xc:Ti,W=d[0].length,ae=d.length,ce=ae,ye=ht(ae),Re=1/0,We=[];ce--;){var Ve=d[ce];ce&&h&&(Ve=Tn(Ve,Mo(h))),Re=Nr(Ve.length,Re),ye[ce]=!E&&(h||W>=120&&Ve.length>=120)?new pl(ce&&Ve):void 0}Ve=d[0];var ot=-1,Ct=ye[0];e:for(;++ot=$t)return Rt;var Je=Re[We];return Rt*(Je=="desc"?-1:1)}}return ce.index-ye.index}(W,ae,E)})}function IP(d,h,E){for(var M=-1,W=h.length,ae={};++M-1;)ye!==d&&Oh.call(ye,Re,1),Oh.call(d,Re,1);return d}function AP(d,h){for(var E=d?h.length:0,M=E-1;E--;){var W=h[E];if(E==M||W!==ae){var ae=W;Ii(W)?Oh.call(d,W,1):m1(d,W)}}return d}function f1(d,h){return d+Mh(mP()*(h-d+1))}function p1(d,h){var E="";if(!d||h<1||h>9007199254740991)return E;do h%2&&(E+=d),(h=Mh(h/2))&&(d+=d);while(h);return E}function Zt(d,h){return O1(d2(d,h,po),d+"")}function p9(d){return yP(Mc(d))}function h9(d,h){var E=Mc(d);return Jh(E,hl(h,0,E.length))}function Nd(d,h,E,M){if(!Wn(d))return d;for(var W=-1,ae=(h=fs(h,d)).length,ce=ae-1,ye=d;ye!=null&&++WW?0:W+h),(E=E>W?W:E)<0&&(E+=W),W=h>E?0:E-h>>>0,h>>>=0;for(var ae=ht(W);++M>>1,ce=d[ae];ce!==null&&!Ao(ce)&&(E?ce<=h:ce=200){var We=h?null:b9(d);if(We)return Ch(We);ce=!1,W=Ed,Re=new pl}else Re=h?[]:ye;e:for(;++M=M?d:oa(d,h,E)}var VP=GF||function(d){return ut.clearTimeout(d)};function UP(d,h){if(h)return d.slice();var E=d.length,M=uP?uP(E):new d.constructor(E);return d.copy(M),M}function b1(d){var h=new d.constructor(d.byteLength);return new Th(h).set(new Th(d)),h}function WP(d,h){var E=h?b1(d.buffer):d.buffer;return new d.constructor(E,d.byteOffset,d.length)}function HP(d,h){if(d!==h){var E=d!==void 0,M=d===null,W=d==d,ae=Ao(d),ce=h!==void 0,ye=h===null,Re=h==h,We=Ao(h);if(!ye&&!We&&!ae&&d>h||ae&&ce&&Re&&!ye&&!We||M&&ce&&Re||!E&&Re||!W)return 1;if(!M&&!ae&&!We&&d1?E[W-1]:void 0,ce=W>2?E[2]:void 0;for(ae=d.length>3&&typeof ae=="function"?(W--,ae):void 0,ce&&Xr(E[0],E[1],ce)&&(ae=W<3?void 0:ae,W=1),h=Dn(h);++M-1?W[ae?h[ce]:ce]:void 0}}function XP(d){return Mi(function(h){var E=h.length,M=E,W=na.prototype.thru;for(d&&h.reverse();M--;){var ae=h[M];if(typeof ae!="function")throw new ta(s);if(W&&!ce&&Yh(ae)=="wrapper")var ce=new na([],!0)}for(M=ce?M:E;++M1&&wt.reverse(),Ve&&Reye))return!1;var We=ae.get(d);if(We&&ae.get(h))return We==h;var Ve=-1,ot=!0,Ct=2&E?new pl:void 0;for(ae.set(d,h),ae.set(h,d);++Ve-1&&d%1==0&&d1?"& ":"")+ae[ye],ae=ae.join(ce>2?", ":" "),W.replace(Ue,`{ -/* [wrapped with `+ae+`] */ -`)}(M,function(W,ae){return Jr(c,function(ce){var ye="_."+ce[0];ae&ce[1]&&!Ti(W,ye)&&W.push(ye)}),W.sort()}(function(W){var ae=W.match(ze);return ae?ae[1].split(He):[]}(M),E)))}function m2(d){var h=0,E=0;return function(){var M=XF(),W=16-(M-E);if(E=M,W>0){if(++h>=800)return arguments[0]}else h=0;return d.apply(void 0,arguments)}}function Jh(d,h){var E=-1,M=d.length,W=M-1;for(h=h===void 0?M:h;++E1?d[h-1]:void 0;return E=typeof E=="function"?(d.pop(),E):void 0,$2(d,E)});function S2(d){var h=ee(d);return h.__chain__=!0,h}function Zh(d,h){return h(d)}var B9=Mi(function(d){var h=d.length,E=h?d[0]:0,M=this.__wrapped__,W=function(ae){return r1(ae,d)};return!(h>1||this.__actions__.length)&&M instanceof rn&&Ii(E)?((M=M.slice(E,+E+(h?1:0))).__actions__.push({func:Zh,args:[W],thisArg:void 0}),new na(M,this.__chain__).thru(function(ae){return h&&!ae.length&&ae.push(void 0),ae})):this.thru(W)}),V9=Uh(function(d,h,E){xn.call(d,E)?++d[E]:Ri(d,E,1)}),U9=ZP(y2),W9=ZP(b2);function _2(d,h){return(Ht(d)?Jr:us)(d,Ot(h,3))}function E2(d,h){return(Ht(d)?xh:CP)(d,Ot(h,3))}var H9=Uh(function(d,h,E){xn.call(d,E)?d[E].push(h):Ri(d,E,[h])}),G9=Zt(function(d,h,E){var M=-1,W=typeof h=="function",ae=uo(d)?ht(d.length):[];return us(d,function(ce){ae[++M]=W?Un(h,ce,E):Id(ce,h,E)}),ae}),q9=Uh(function(d,h,E){Ri(d,E,h)});function Xh(d,h){return(Ht(d)?Tn:kP)(d,Ot(h,3))}var Y9=Uh(function(d,h,E){d[E?0:1].push(h)},function(){return[[],[]]}),K9=Zt(function(d,h){if(d==null)return[];var E=h.length;return E>1&&Xr(d,h[0],h[1])?h=[]:E>2&&Xr(h[0],h[1],h[2])&&(h=[h[0]]),MP(d,kr(h,1),[])}),Qh=qF||function(){return ut.Date.now()};function P2(d,h,E){return h=E?void 0:h,Di(d,128,void 0,void 0,void 0,void 0,h=d&&h==null?d.length:h)}function T2(d,h){var E;if(typeof h!="function")throw new ta(s);return d=Gt(d),function(){return--d>0&&(E=h.apply(this,arguments)),d<=1&&(h=void 0),E}}var M1=Zt(function(d,h,E){var M=1;if(E.length){var W=ss(E,Rc(M1));M|=32}return Di(d,M,h,E,W)}),k2=Zt(function(d,h,E){var M=3;if(E.length){var W=ss(E,Rc(k2));M|=32}return Di(h,M,d,E,W)});function O2(d,h,E){var M,W,ae,ce,ye,Re,We=0,Ve=!1,ot=!1,Ct=!0;if(typeof d!="function")throw new ta(s);function $t(At){var jt=M,Xt=W;return M=W=void 0,We=At,ce=d.apply(Xt,jt)}function Rt(At){return We=At,ye=Fd(st,h),Ve?$t(At):ce}function Je(At){var jt=At-Re;return Re===void 0||jt>=h||jt<0||ot&&At-We>=ae}function st(){var At=Qh();if(Je(At))return It(At);ye=Fd(st,function(jt){var Xt=h-(jt-Re);return ot?Nr(Xt,ae-(jt-We)):Xt}(At))}function It(At){return ye=void 0,Ct&&M?$t(At):(M=W=void 0,ce)}function wt(){var At=Qh(),jt=Je(At);if(M=arguments,W=this,Re=At,jt){if(ye===void 0)return Rt(Re);if(ot)return VP(ye),ye=Fd(st,h),$t(Re)}return ye===void 0&&(ye=Fd(st,h)),ce}return h=ia(h)||0,Wn(E)&&(Ve=!!E.leading,ae=(ot="maxWait"in E)?hr(ia(E.maxWait)||0,h):ae,Ct="trailing"in E?!!E.trailing:Ct),wt.cancel=function(){ye!==void 0&&VP(ye),We=0,M=Re=W=ye=void 0},wt.flush=function(){return ye===void 0?ce:It(Qh())},wt}var J9=Zt(function(d,h){return wP(d,1,h)}),Z9=Zt(function(d,h,E){return wP(d,ia(h)||0,E)});function em(d,h){if(typeof d!="function"||h!=null&&typeof h!="function")throw new ta(s);var E=function M(){var W=arguments,ae=h?h.apply(this,W):W[0],ce=M.cache;if(ce.has(ae))return ce.get(ae);var ye=d.apply(this,W);return M.cache=ce.set(ae,ye)||ce,ye};return E.cache=new(em.Cache||Oi),E}function tm(d){if(typeof d!="function")throw new ta(s);return function(){var h=arguments;switch(h.length){case 0:return!d.call(this);case 1:return!d.call(this,h[0]);case 2:return!d.call(this,h[0],h[1]);case 3:return!d.call(this,h[0],h[1],h[2])}return!d.apply(this,h)}}em.Cache=Oi;var X9=y9(function(d,h){var E=(h=h.length==1&&Ht(h[0])?Tn(h[0],Mo(Ot())):Tn(kr(h,1),Mo(Ot()))).length;return Zt(function(M){for(var W=-1,ae=Nr(M.length,E);++W=h}),gl=EP(function(){return arguments}())?EP:function(d){return Jn(d)&&xn.call(d,"callee")&&!fP.call(d,"callee")},Ht=ht.isArray,n8=Oo?Mo(Oo):function(d){return Jn(d)&&Zr(d)==I};function uo(d){return d!=null&&nm(d.length)&&!Ai(d)}function or(d){return Jn(d)&&uo(d)}var hs=KF||H1,r8=Pi?Mo(Pi):function(d){return Jn(d)&&Zr(d)==m};function A1(d){if(!Jn(d))return!1;var h=Zr(d);return h==b||h=="[object DOMException]"||typeof d.message=="string"&&typeof d.name=="string"&&!zd(d)}function Ai(d){if(!Wn(d))return!1;var h=Zr(d);return h==v||h==w||h=="[object AsyncFunction]"||h=="[object Proxy]"}function D2(d){return typeof d=="number"&&d==Gt(d)}function nm(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=9007199254740991}function Wn(d){var h=i(d);return d!=null&&(h=="object"||h=="function")}function Jn(d){return d!=null&&i(d)=="object"}var M2=Ka?Mo(Ka):function(d){return Jn(d)&&jr(d)==g};function I2(d){return typeof d=="number"||Jn(d)&&Zr(d)==y}function zd(d){if(!Jn(d)||Zr(d)!=x)return!1;var h=kh(d);if(h===null)return!0;var E=xn.call(h,"constructor")&&h.constructor;return typeof E=="function"&&E instanceof E&&_h.call(E)==UF}var N1=Kr?Mo(Kr):function(d){return Jn(d)&&Zr(d)==C},A2=Ro?Mo(Ro):function(d){return Jn(d)&&jr(d)==_};function rm(d){return typeof d=="string"||!Ht(d)&&Jn(d)&&Zr(d)==$}function Ao(d){return i(d)=="symbol"||Jn(d)&&Zr(d)==P}var Dc=Ja?Mo(Ja):function(d){return Jn(d)&&nm(d.length)&&!!me[Zr(d)]},o8=qh(u1),a8=qh(function(d,h){return d<=h});function N2(d){if(!d)return[];if(uo(d))return rm(d)?Sa(d):co(d);if(Pd&&d[Pd])return function(E){for(var M,W=[];!(M=E.next()).done;)W.push(M.value);return W}(d[Pd]());var h=jr(d);return(h==g?Z0:h==_?Ch:Mc)(d)}function Ni(d){return d?(d=ia(d))===1/0||d===-1/0?17976931348623157e292*(d<0?-1:1):d==d?d:0:d===0?d:0}function Gt(d){var h=Ni(d),E=h%1;return h==h?E?h-E:h:0}function j2(d){return d?hl(Gt(d),0,4294967295):0}function ia(d){if(typeof d=="number")return d;if(Ao(d))return NaN;if(Wn(d)){var h=typeof d.valueOf=="function"?d.valueOf():d;d=Wn(h)?h+"":h}if(typeof d!="string")return d===0?d:+d;d=d.replace(_e,"");var E=Ae.test(d);return E||Fe.test(d)?lt(d.slice(2),E?2:8):rt.test(d)?NaN:+d}function L2(d){return Qa(d,fo(d))}function vn(d){return d==null?"":Io(d)}var i8=kc(function(d,h){if(Ld(h)||uo(h))Qa(h,_r(h),d);else for(var E in h)xn.call(h,E)&&Dd(d,E,h[E])}),F2=kc(function(d,h){Qa(h,fo(h),d)}),om=kc(function(d,h,E,M){Qa(h,fo(h),d,M)}),s8=kc(function(d,h,E,M){Qa(h,_r(h),d,M)}),l8=Mi(r1),c8=Zt(function(d,h){d=Dn(d);var E=-1,M=h.length,W=M>2?h[2]:void 0;for(W&&Xr(h[0],h[1],W)&&(M=1);++E1),ae}),Qa(d,$1(d),E),M&&(E=ra(E,7,x9));for(var W=h.length;W--;)m1(E,h[W]);return E}),v8=Mi(function(d,h){return d==null?{}:function(E,M){return IP(E,M,function(W,ae){return L1(E,ae)})}(d,h)});function B2(d,h){if(d==null)return{};var E=Tn($1(d),function(M){return[M]});return h=Ot(h),IP(d,E,function(M,W){return h(M,W[0])})}var V2=n2(_r),U2=n2(fo);function Mc(d){return d==null?[]:J0(d,_r(d))}var g8=Oc(function(d,h,E){return h=h.toLowerCase(),d+(E?W2(h):h)});function W2(d){return F1(vn(d).toLowerCase())}function H2(d){return(d=vn(d))&&d.replace(Te,AF).replace(Bn,"")}var y8=Oc(function(d,h,E){return d+(E?"-":"")+h.toLowerCase()}),b8=Oc(function(d,h,E){return d+(E?" ":"")+h.toLowerCase()}),x8=JP("toLowerCase"),w8=Oc(function(d,h,E){return d+(E?"_":"")+h.toLowerCase()}),C8=Oc(function(d,h,E){return d+(E?" ":"")+F1(h)}),$8=Oc(function(d,h,E){return d+(E?" ":"")+h.toUpperCase()}),F1=JP("toUpperCase");function G2(d,h,E){return d=vn(d),(h=E?void 0:h)===void 0?function(M){return ke.test(M)}(d)?function(M){return M.match(oe)||[]}(d):function(M){return M.match(be)||[]}(d):d.match(h)||[]}var q2=Zt(function(d,h){try{return Un(d,void 0,h)}catch(E){return A1(E)?E:new cn(E)}}),S8=Mi(function(d,h){return Jr(h,function(E){E=ei(E),Ri(d,E,M1(d[E],d))}),d});function z1(d){return function(){return d}}var _8=XP(),E8=XP(!0);function po(d){return d}function B1(d){return TP(typeof d=="function"?d:ra(d,1))}var P8=Zt(function(d,h){return function(E){return Id(E,d,h)}}),T8=Zt(function(d,h){return function(E){return Id(d,E,h)}});function V1(d,h,E){var M=_r(h),W=Fh(h,M);E!=null||Wn(h)&&(W.length||!M.length)||(E=h,h=d,d=this,W=Fh(h,_r(h)));var ae=!(Wn(E)&&"chain"in E&&!E.chain),ce=Ai(d);return Jr(W,function(ye){var Re=h[ye];d[ye]=Re,ce&&(d.prototype[ye]=function(){var We=this.__chain__;if(ae||We){var Ve=d(this.__wrapped__),ot=Ve.__actions__=co(this.__actions__);return ot.push({func:Re,args:arguments,thisArg:d}),Ve.__chain__=We,Ve}return Re.apply(d,lo([this.value()],arguments))})}),d}function U1(){}var k8=x1(Tn),O8=x1(ul),R8=x1(H0);function Y2(d){return P1(d)?G0(ei(d)):function(h){return function(E){return Tc(E,h)}}(d)}var D8=e2(),M8=e2(!0);function W1(){return[]}function H1(){return!1}var I8=Hh(function(d,h){return d+h},0),A8=w1("ceil"),N8=Hh(function(d,h){return d/h},1),j8=w1("floor"),G1,L8=Hh(function(d,h){return d*h},1),F8=w1("round"),z8=Hh(function(d,h){return d-h},0);return ee.after=function(d,h){if(typeof h!="function")throw new ta(s);return d=Gt(d),function(){if(--d<1)return h.apply(this,arguments)}},ee.ary=P2,ee.assign=i8,ee.assignIn=F2,ee.assignInWith=om,ee.assignWith=s8,ee.at=l8,ee.before=T2,ee.bind=M1,ee.bindAll=S8,ee.bindKey=k2,ee.castArray=function(){if(!arguments.length)return[];var d=arguments[0];return Ht(d)?d:[d]},ee.chain=S2,ee.chunk=function(d,h,E){h=(E?Xr(d,h,E):h===void 0)?1:hr(Gt(h),0);var M=d==null?0:d.length;if(!M||h<1)return[];for(var W=0,ae=0,ce=ht(Dh(M/h));WWe?0:We+ye),(Re=Re===void 0||Re>We?We:Gt(Re))<0&&(Re+=We),Re=ye>Re?0:j2(Re);ye>>0)?(d=vn(d))&&(typeof h=="string"||h!=null&&!N1(h))&&!(h=Io(h))&&Cc(d)?ps(Sa(d),0,E):d.split(h,E):[]},ee.spread=function(d,h){if(typeof d!="function")throw new ta(s);return h=h==null?0:hr(Gt(h),0),Zt(function(E){var M=E[h],W=ps(E,0,h);return M&&lo(W,M),Un(d,this,W)})},ee.tail=function(d){var h=d==null?0:d.length;return h?oa(d,1,h):[]},ee.take=function(d,h,E){return d&&d.length?oa(d,0,(h=E||h===void 0?1:Gt(h))<0?0:h):[]},ee.takeRight=function(d,h,E){var M=d==null?0:d.length;return M?oa(d,(h=M-(h=E||h===void 0?1:Gt(h)))<0?0:h,M):[]},ee.takeRightWhile=function(d,h){return d&&d.length?Vh(d,Ot(h,3),!1,!0):[]},ee.takeWhile=function(d,h){return d&&d.length?Vh(d,Ot(h,3)):[]},ee.tap=function(d,h){return h(d),d},ee.throttle=function(d,h,E){var M=!0,W=!0;if(typeof d!="function")throw new ta(s);return Wn(E)&&(M="leading"in E?!!E.leading:M,W="trailing"in E?!!E.trailing:W),O2(d,h,{leading:M,maxWait:h,trailing:W})},ee.thru=Zh,ee.toArray=N2,ee.toPairs=V2,ee.toPairsIn=U2,ee.toPath=function(d){return Ht(d)?Tn(d,ei):Ao(d)?[d]:co(v2(vn(d)))},ee.toPlainObject=L2,ee.transform=function(d,h,E){var M=Ht(d),W=M||hs(d)||Dc(d);if(h=Ot(h,4),E==null){var ae=d&&d.constructor;E=W?M?new ae:[]:Wn(d)&&Ai(ae)?Pc(kh(d)):{}}return(W?Jr:Xa)(d,function(ce,ye,Re){return h(E,ce,ye,Re)}),E},ee.unary=function(d){return P2(d,1)},ee.union=D9,ee.unionBy=M9,ee.unionWith=I9,ee.uniq=function(d){return d&&d.length?ds(d):[]},ee.uniqBy=function(d,h){return d&&d.length?ds(d,Ot(h,2)):[]},ee.uniqWith=function(d,h){return h=typeof h=="function"?h:void 0,d&&d.length?ds(d,void 0,h):[]},ee.unset=function(d,h){return d==null||m1(d,h)},ee.unzip=D1,ee.unzipWith=$2,ee.update=function(d,h,E){return d==null?d:FP(d,h,y1(E))},ee.updateWith=function(d,h,E,M){return M=typeof M=="function"?M:void 0,d==null?d:FP(d,h,y1(E),M)},ee.values=Mc,ee.valuesIn=function(d){return d==null?[]:J0(d,fo(d))},ee.without=A9,ee.words=G2,ee.wrap=function(d,h){return I1(y1(h),d)},ee.xor=N9,ee.xorBy=j9,ee.xorWith=L9,ee.zip=F9,ee.zipObject=function(d,h){return BP(d||[],h||[],Dd)},ee.zipObjectDeep=function(d,h){return BP(d||[],h||[],Nd)},ee.zipWith=z9,ee.entries=V2,ee.entriesIn=U2,ee.extend=F2,ee.extendWith=om,V1(ee,ee),ee.add=I8,ee.attempt=q2,ee.camelCase=g8,ee.capitalize=W2,ee.ceil=A8,ee.clamp=function(d,h,E){return E===void 0&&(E=h,h=void 0),E!==void 0&&(E=(E=ia(E))==E?E:0),h!==void 0&&(h=(h=ia(h))==h?h:0),hl(ia(d),h,E)},ee.clone=function(d){return ra(d,4)},ee.cloneDeep=function(d){return ra(d,5)},ee.cloneDeepWith=function(d,h){return ra(d,5,h=typeof h=="function"?h:void 0)},ee.cloneWith=function(d,h){return ra(d,4,h=typeof h=="function"?h:void 0)},ee.conformsTo=function(d,h){return h==null||xP(d,h,_r(h))},ee.deburr=H2,ee.defaultTo=function(d,h){return d==null||d!=d?h:d},ee.divide=N8,ee.endsWith=function(d,h,E){d=vn(d),h=Io(h);var M=d.length,W=E=E===void 0?M:hl(Gt(E),0,M);return(E-=h.length)>=0&&d.slice(E,W)==h},ee.eq=Ea,ee.escape=function(d){return(d=vn(d))&&N.test(d)?d.replace(q,NF):d},ee.escapeRegExp=function(d){return(d=vn(d))&&he.test(d)?d.replace(ge,"\\$&"):d},ee.every=function(d,h,E){var M=Ht(d)?ul:c9;return E&&Xr(d,h,E)&&(h=void 0),M(d,Ot(h,3))},ee.find=U9,ee.findIndex=y2,ee.findKey=function(d,h){return nP(d,Ot(h,3),Xa)},ee.findLast=W9,ee.findLastIndex=b2,ee.findLastKey=function(d,h){return nP(d,Ot(h,3),a1)},ee.floor=j8,ee.forEach=_2,ee.forEachRight=E2,ee.forIn=function(d,h){return d==null?d:o1(d,Ot(h,3),fo)},ee.forInRight=function(d,h){return d==null?d:SP(d,Ot(h,3),fo)},ee.forOwn=function(d,h){return d&&Xa(d,Ot(h,3))},ee.forOwnRight=function(d,h){return d&&a1(d,Ot(h,3))},ee.get=j1,ee.gt=e8,ee.gte=t8,ee.has=function(d,h){return d!=null&&s2(d,h,u9)},ee.hasIn=L1,ee.head=w2,ee.identity=po,ee.includes=function(d,h,E,M){d=uo(d)?d:Mc(d),E=E&&!M?Gt(E):0;var W=d.length;return E<0&&(E=hr(W+E,0)),rm(d)?E<=W&&d.indexOf(h,E)>-1:!!W&&wc(d,h,E)>-1},ee.indexOf=function(d,h,E){var M=d==null?0:d.length;if(!M)return-1;var W=E==null?0:Gt(E);return W<0&&(W=hr(M+W,0)),wc(d,h,W)},ee.inRange=function(d,h,E){return h=Ni(h),E===void 0?(E=h,h=0):E=Ni(E),function(M,W,ae){return M>=Nr(W,ae)&&M=-9007199254740991&&d<=9007199254740991},ee.isSet=A2,ee.isString=rm,ee.isSymbol=Ao,ee.isTypedArray=Dc,ee.isUndefined=function(d){return d===void 0},ee.isWeakMap=function(d){return Jn(d)&&jr(d)==k},ee.isWeakSet=function(d){return Jn(d)&&Zr(d)=="[object WeakSet]"},ee.join=function(d,h){return d==null?"":JF.call(d,h)},ee.kebabCase=y8,ee.last=aa,ee.lastIndexOf=function(d,h,E){var M=d==null?0:d.length;if(!M)return-1;var W=M;return E!==void 0&&(W=(W=Gt(E))<0?hr(M+W,0):Nr(W,M-1)),h==h?function(ae,ce,ye){for(var Re=ye+1;Re--;)if(ae[Re]===ce)return Re;return Re}(d,h,W):wh(d,rP,W,!0)},ee.lowerCase=b8,ee.lowerFirst=x8,ee.lt=o8,ee.lte=a8,ee.max=function(d){return d&&d.length?Lh(d,po,i1):void 0},ee.maxBy=function(d,h){return d&&d.length?Lh(d,Ot(h,2),i1):void 0},ee.mean=function(d){return oP(d,po)},ee.meanBy=function(d,h){return oP(d,Ot(h,2))},ee.min=function(d){return d&&d.length?Lh(d,po,u1):void 0},ee.minBy=function(d,h){return d&&d.length?Lh(d,Ot(h,2),u1):void 0},ee.stubArray=W1,ee.stubFalse=H1,ee.stubObject=function(){return{}},ee.stubString=function(){return""},ee.stubTrue=function(){return!0},ee.multiply=L8,ee.nth=function(d,h){return d&&d.length?DP(d,Gt(h)):void 0},ee.noConflict=function(){return ut._===this&&(ut._=WF),this},ee.noop=U1,ee.now=Qh,ee.pad=function(d,h,E){d=vn(d);var M=(h=Gt(h))?$c(d):0;if(!h||M>=h)return d;var W=(h-M)/2;return Gh(Mh(W),E)+d+Gh(Dh(W),E)},ee.padEnd=function(d,h,E){d=vn(d);var M=(h=Gt(h))?$c(d):0;return h&&Mh){var M=d;d=h,h=M}if(E||d%1||h%1){var W=mP();return Nr(d+W*(h-d+nt("1e-"+((W+"").length-1))),h)}return f1(d,h)},ee.reduce=function(d,h,E){var M=Ht(d)?W0:aP,W=arguments.length<3;return M(d,Ot(h,4),E,W,us)},ee.reduceRight=function(d,h,E){var M=Ht(d)?RF:aP,W=arguments.length<3;return M(d,Ot(h,4),E,W,CP)},ee.repeat=function(d,h,E){return h=(E?Xr(d,h,E):h===void 0)?1:Gt(h),p1(vn(d),h)},ee.replace=function(){var d=arguments,h=vn(d[0]);return d.length<3?h:h.replace(d[1],d[2])},ee.result=function(d,h,E){var M=-1,W=(h=fs(h,d)).length;for(W||(W=1,d=void 0);++M9007199254740991)return[];var E=4294967295,M=Nr(d,4294967295);d-=4294967295;for(var W=K0(M,h=Ot(h));++E=ae)return d;var ye=E-$c(M);if(ye<1)return M;var Re=ce?ps(ce,0,ye).join(""):d.slice(0,ye);if(W===void 0)return Re+M;if(ce&&(ye+=Re.length-ye),N1(W)){if(d.slice(ye).search(W)){var We,Ve=Re;for(W.global||(W=X0(W.source,vn(qe.exec(W))+"g")),W.lastIndex=0;We=W.exec(Ve);)var ot=We.index;Re=Re.slice(0,ot===void 0?ye:ot)}}else if(d.indexOf(Io(W),ye)!=ye){var Ct=Re.lastIndexOf(W);Ct>-1&&(Re=Re.slice(0,Ct))}return Re+M},ee.unescape=function(d){return(d=vn(d))&&R.test(d)?d.replace(K,FF):d},ee.uniqueId=function(d){var h=++VF;return vn(d)+h},ee.upperCase=$8,ee.upperFirst=F1,ee.each=_2,ee.eachRight=E2,ee.first=w2,V1(ee,(G1={},Xa(ee,function(d,h){xn.call(ee.prototype,h)||(G1[h]=d)}),G1),{chain:!1}),ee.VERSION="4.17.15",Jr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(d){ee[d].placeholder=ee}),Jr(["drop","take"],function(d,h){rn.prototype[d]=function(E){E=E===void 0?1:hr(Gt(E),0);var M=this.__filtered__&&!h?new rn(this):this.clone();return M.__filtered__?M.__takeCount__=Nr(E,M.__takeCount__):M.__views__.push({size:Nr(E,4294967295),type:d+(M.__dir__<0?"Right":"")}),M},rn.prototype[d+"Right"]=function(E){return this.reverse()[d](E).reverse()}}),Jr(["filter","map","takeWhile"],function(d,h){var E=h+1,M=E==1||E==3;rn.prototype[d]=function(W){var ae=this.clone();return ae.__iteratees__.push({iteratee:Ot(W,3),type:E}),ae.__filtered__=ae.__filtered__||M,ae}}),Jr(["head","last"],function(d,h){var E="take"+(h?"Right":"");rn.prototype[d]=function(){return this[E](1).value()[0]}}),Jr(["initial","tail"],function(d,h){var E="drop"+(h?"":"Right");rn.prototype[d]=function(){return this.__filtered__?new rn(this):this[E](1)}}),rn.prototype.compact=function(){return this.filter(po)},rn.prototype.find=function(d){return this.filter(d).head()},rn.prototype.findLast=function(d){return this.reverse().find(d)},rn.prototype.invokeMap=Zt(function(d,h){return typeof d=="function"?new rn(this):this.map(function(E){return Id(E,d,h)})}),rn.prototype.reject=function(d){return this.filter(tm(Ot(d)))},rn.prototype.slice=function(d,h){d=Gt(d);var E=this;return E.__filtered__&&(d>0||h<0)?new rn(E):(d<0?E=E.takeRight(-d):d&&(E=E.drop(d)),h!==void 0&&(E=(h=Gt(h))<0?E.dropRight(-h):E.take(h-d)),E)},rn.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},rn.prototype.toArray=function(){return this.take(4294967295)},Xa(rn.prototype,function(d,h){var E=/^(?:filter|find|map|reject)|While$/.test(h),M=/^(?:head|last)$/.test(h),W=ee[M?"take"+(h=="last"?"Right":""):h],ae=M||/^find/.test(h);W&&(ee.prototype[h]=function(){var ce=this.__wrapped__,ye=M?[1]:arguments,Re=ce instanceof rn,We=ye[0],Ve=Re||Ht(ce),ot=function(It){var wt=W.apply(ee,lo([It],ye));return M&&Ct?wt[0]:wt};Ve&&E&&typeof We=="function"&&We.length!=1&&(Re=Ve=!1);var Ct=this.__chain__,$t=!!this.__actions__.length,Rt=ae&&!Ct,Je=Re&&!$t;if(!ae&&Ve){ce=Je?ce:new rn(this);var st=d.apply(ce,ye);return st.__actions__.push({func:Zh,args:[ot],thisArg:void 0}),new na(st,Ct)}return Rt&&Je?d.apply(this,ye):(st=this.thru(ot),Rt?M?st.value()[0]:st.value():st)})}),Jr(["pop","push","shift","sort","splice","unshift"],function(d){var h=$h[d],E=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",M=/^(?:pop|shift)$/.test(d);ee.prototype[d]=function(){var W=arguments;if(M&&!this.__chain__){var ae=this.value();return h.apply(Ht(ae)?ae:[],W)}return this[E](function(ce){return h.apply(Ht(ce)?ce:[],W)})}}),Xa(rn.prototype,function(d,h){var E=ee[h];if(E){var M=E.name+"";xn.call(Ec,M)||(Ec[M]=[]),Ec[M].push({name:h,func:E})}}),Ec[Wh(void 0,2).name]=[{name:"wrapper",func:void 0}],rn.prototype.clone=function(){var d=new rn(this.__wrapped__);return d.__actions__=co(this.__actions__),d.__dir__=this.__dir__,d.__filtered__=this.__filtered__,d.__iteratees__=co(this.__iteratees__),d.__takeCount__=this.__takeCount__,d.__views__=co(this.__views__),d},rn.prototype.reverse=function(){if(this.__filtered__){var d=new rn(this);d.__dir__=-1,d.__filtered__=!0}else(d=this.clone()).__dir__*=-1;return d},rn.prototype.value=function(){var d=this.__wrapped__.value(),h=this.__dir__,E=Ht(d),M=h<0,W=E?d.length:0,ae=function(Xt,Pt,Dt){for(var mr=-1,Qr=Dt.length;++mr=this.__values__.length;return{done:d,value:d?void 0:this.__values__[this.__index__++]}},ee.prototype.plant=function(d){for(var h,E=this;E instanceof Nh;){var M=g2(E);M.__index__=0,M.__values__=void 0,h?W.__wrapped__=M:h=M;var W=M;E=E.__wrapped__}return W.__wrapped__=d,h},ee.prototype.reverse=function(){var d=this.__wrapped__;if(d instanceof rn){var h=d;return this.__actions__.length&&(h=new rn(this)),(h=h.reverse()).__actions__.push({func:Zh,args:[R1],thisArg:void 0}),new na(h,this.__chain__)}return this.thru(R1)},ee.prototype.toJSON=ee.prototype.valueOf=ee.prototype.value=function(){return zP(this.__wrapped__,this.__actions__)},ee.prototype.first=ee.prototype.head,Pd&&(ee.prototype[Pd]=function(){return this}),ee}();i(n(46))=="object"&&n(46)?(ut._=ls,(a=(function(){return ls}).call(t,n,t,o))===void 0||(o.exports=a)):Wt?((Wt.exports=ls)._=ls,yt._=ls):ut._=ls}).call(this)}).call(this,n(11),n(14)(e))},function(e,t,n){var r=n(87);e.exports={Graph:r.Graph,json:n(213),alg:n(214),version:r.version}},function(e,t,n){e.exports={Graph:n(28),version:n(212)}},function(e,t,n){var r=n(89);e.exports=function(o){return r(o,4)}},function(e,t,n){var r=n(29),o=n(33),a=n(49),i=n(118),s=n(124),l=n(127),c=n(128),u=n(129),f=n(130),p=n(59),m=n(131),b=n(10),v=n(135),w=n(136),g=n(141),y=n(0),x=n(12),C=n(142),_=n(5),$=n(144),P=n(6),k={};k["[object Arguments]"]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k["[object Object]"]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k["[object Function]"]=k["[object WeakMap]"]=!1,e.exports=function I(D,F,U,G,z,B){var Y,Q=1&F,H=2&F,J=4&F;if(U&&(Y=z?U(D,G,z,B):U(D)),Y!==void 0)return Y;if(!_(D))return D;var X=y(D);if(X){if(Y=v(D),!Q)return c(D,Y)}else{var L=b(D),K=L=="[object Function]"||L=="[object GeneratorFunction]";if(x(D))return l(D,Q);if(L=="[object Object]"||L=="[object Arguments]"||K&&!z){if(Y=H||K?{}:g(D),!Q)return H?f(D,s(Y,D)):u(D,i(Y,D))}else{if(!k[L])return z?D:{};Y=w(D,L,Q)}}B||(B=new r);var q=B.get(D);if(q)return q;B.set(D,Y),$(D)?D.forEach(function(V){Y.add(I(V,F,U,V,D,B))}):C(D)&&D.forEach(function(V,Z){Y.set(Z,I(V,F,U,Z,D,B))});var R=J?H?m:p:H?keysIn:P,N=X?void 0:R(D);return o(N||D,function(V,Z){N&&(V=D[Z=V]),a(Y,Z,I(V,F,U,Z,D,B))}),Y}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(16),o=Array.prototype.splice;e.exports=function(a){var i=this.__data__,s=r(i,a);return!(s<0)&&(s==i.length-1?i.pop():o.call(i,s,1),--this.size,!0)}},function(e,t,n){var r=n(16);e.exports=function(o){var a=this.__data__,i=r(a,o);return i<0?void 0:a[i][1]}},function(e,t,n){var r=n(16);e.exports=function(o){return r(this.__data__,o)>-1}},function(e,t,n){var r=n(16);e.exports=function(o,a){var i=this.__data__,s=r(i,o);return s<0?(++this.size,i.push([o,a])):i[s][1]=a,this}},function(e,t,n){var r=n(15);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(n){var r=this.__data__,o=r.delete(n);return this.size=r.size,o}},function(e,t){e.exports=function(n){return this.__data__.get(n)}},function(e,t){e.exports=function(n){return this.__data__.has(n)}},function(e,t,n){var r=n(15),o=n(31),a=n(32);e.exports=function(i,s){var l=this.__data__;if(l instanceof r){var c=l.__data__;if(!o||c.length<199)return c.push([i,s]),this.size=++l.size,this;l=this.__data__=new a(c)}return l.set(i,s),this.size=l.size,this}},function(e,t,n){var r=n(17),o=n(103),a=n(5),i=n(48),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,f=c.hasOwnProperty,p=RegExp("^"+u.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(m){return!(!a(m)||o(m))&&(r(m)?p:s).test(i(m))}},function(e,t,n){var r=n(9),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=r?r.toStringTag:void 0;e.exports=function(l){var c=a.call(l,s),u=l[s];try{l[s]=void 0;var f=!0}catch{}var p=i.call(l);return f&&(c?l[s]=u:delete l[s]),p}},function(e,t){var n=Object.prototype.toString;e.exports=function(r){return n.call(r)}},function(e,t,n){var r,o=n(104),a=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(i){return!!a&&a in i}},function(e,t,n){var r=n(2)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(n,r){return n==null?void 0:n[r]}},function(e,t,n){var r=n(107),o=n(15),a=n(31);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||o),string:new r}}},function(e,t,n){var r=n(108),o=n(109),a=n(110),i=n(111),s=n(112);function l(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u0&&l(m)?s>1?a(m,s-1,l,c,u):r(u,m):c||(u[u.length]=m)}return u}},function(e,t,n){var r=n(9),o=n(21),a=n(0),i=r?r.isConcatSpreadable:void 0;e.exports=function(s){return a(s)||o(s)||!!(i&&s&&s[i])}},function(e,t,n){var r=n(25),o=n(195),a=n(197);e.exports=function(i,s){return a(o(i,s,r),i+"")}},function(e,t,n){var r=n(196),o=Math.max;e.exports=function(a,i,s){return i=o(i===void 0?a.length-1:i,0),function(){for(var l=arguments,c=-1,u=o(l.length-i,0),f=Array(u);++c0){if(++o>=800)return arguments[0]}else o=0;return r.apply(void 0,arguments)}}},function(e,t,n){var r=n(68),o=n(201),a=n(206),i=n(69),s=n(207),l=n(42);e.exports=function(c,u,f){var p=-1,m=o,b=c.length,v=!0,w=[],g=w;if(f)v=!1,m=a;else if(b>=200){var y=u?null:s(c);if(y)return l(y);v=!1,m=i,g=new r}else g=u?[]:w;e:for(;++p-1}},function(e,t,n){var r=n(203),o=n(204),a=n(205);e.exports=function(i,s,l){return s==s?a(i,s,l):r(i,o,l)}},function(e,t){e.exports=function(n,r,o,a){for(var i=n.length,s=o+(a?1:-1);a?s--:++s1||i.length===1&&a.hasEdge(i[0],i[0])})}},function(e,t,n){var r=n(1);e.exports=function(a,i,s){return function(l,c,u){var f={},p=l.nodes();return p.forEach(function(m){f[m]={},f[m][m]={distance:0},p.forEach(function(b){m!==b&&(f[m][b]={distance:Number.POSITIVE_INFINITY})}),u(m).forEach(function(b){var v=b.v===m?b.w:b.v,w=c(b);f[m][v]={distance:w,predecessor:m}})}),p.forEach(function(m){var b=f[m];p.forEach(function(v){var w=f[v];p.forEach(function(g){var y=w[m],x=b[g],C=w[g],_=y.distance+x.distance;_0;){if(l=f.removeMin(),r.has(u,l))c.setEdge(l,u[l]);else{if(m)throw new Error("Input graph is not connected: "+i);m=!0}i.nodeEdges(l).forEach(p)}return c}},function(e,t,n){(function(r){function o(s,l){for(var c=0,u=s.length-1;u>=0;u--){var f=s[u];f==="."?s.splice(u,1):f===".."?(s.splice(u,1),c++):c&&(s.splice(u,1),c--)}if(l)for(;c--;c)s.unshift("..");return s}function a(s,l){if(s.filter)return s.filter(l);for(var c=[],u=0;u=-1&&!l;c--){var u=c>=0?arguments[c]:r.cwd();if(typeof u!="string")throw new TypeError("Arguments to path.resolve must be strings");u&&(s=u+"/"+s,l=u.charAt(0)==="/")}return(l?"/":"")+(s=o(a(s.split("/"),function(f){return!!f}),!l).join("/"))||"."},t.normalize=function(s){var l=t.isAbsolute(s),c=i(s,-1)==="/";return(s=o(a(s.split("/"),function(u){return!!u}),!l).join("/"))||l||(s="."),s&&c&&(s+="/"),(l?"/":"")+s},t.isAbsolute=function(s){return s.charAt(0)==="/"},t.join=function(){var s=Array.prototype.slice.call(arguments,0);return t.normalize(a(s,function(l,c){if(typeof l!="string")throw new TypeError("Arguments to path.join must be strings");return l}).join("/"))},t.relative=function(s,l){function c(w){for(var g=0;g=0&&w[y]==="";y--);return g>y?[]:w.slice(g,y-g+1)}s=t.resolve(s).substr(1),l=t.resolve(l).substr(1);for(var u=c(s.split("/")),f=c(l.split("/")),p=Math.min(u.length,f.length),m=p,b=0;b=1;--p)if((l=s.charCodeAt(p))===47){if(!f){u=p;break}}else f=!1;return u===-1?c?"/":".":c&&u===1?"/":s.slice(0,u)},t.basename=function(s,l){var c=function(u){typeof u!="string"&&(u+="");var f,p=0,m=-1,b=!0;for(f=u.length-1;f>=0;--f)if(u.charCodeAt(f)===47){if(!b){p=f+1;break}}else m===-1&&(b=!1,m=f+1);return m===-1?"":u.slice(p,m)}(s);return l&&c.substr(-1*l.length)===l&&(c=c.substr(0,c.length-l.length)),c},t.extname=function(s){typeof s!="string"&&(s+="");for(var l=-1,c=0,u=-1,f=!0,p=0,m=s.length-1;m>=0;--m){var b=s.charCodeAt(m);if(b!==47)u===-1&&(f=!1,u=m+1),b===46?l===-1?l=m:p!==1&&(p=1):l!==-1&&(p=-1);else if(!f){c=m+1;break}}return l===-1||u===-1||p===0||p===1&&l===u-1&&l===c+1?"":s.slice(l,u)};var i="ab".substr(-1)==="b"?function(s,l,c){return s.substr(l,c)}:function(s,l,c){return l<0&&(l=s.length+l),s.substr(l,c)}}).call(this,n(13))},function(e,t,n){function r(i){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s})(i)}var o={file:n(225),http:n(81),https:n(81)},a=(typeof window>"u"?"undefined":r(window))==="object"||typeof importScripts=="function"?o.http:o.file;typeof Promise>"u"&&n(83),e.exports.load=function(i,s){var l=Promise.resolve();return s===void 0&&(s={}),l=(l=l.then(function(){if(i===void 0)throw new TypeError("location is required");if(typeof i!="string")throw new TypeError("location must be a string");if(s!==void 0){if(r(s)!=="object")throw new TypeError("options must be an object");if(s.processContent!==void 0&&typeof s.processContent!="function")throw new TypeError("options.processContent must be a function")}})).then(function(){return new Promise(function(c,u){(function(f){var p=function(b){return b!==void 0&&(b=b.indexOf("://")===-1?"":b.split("://")[0]),b}(f),m=o[p];if(m===void 0){if(p!=="")throw new Error("Unsupported scheme: "+p);m=a}return m})(i).load(i,s||{},function(f,p){f?u(f):c(p)})})}).then(function(c){return s.processContent?new Promise(function(u,f){r(c)!=="object"&&(c={text:c}),c.location=i,s.processContent(c,function(p,m){p?f(p):u(m)})}):r(c)==="object"?c.text:c})}},function(e,t,n){var r=new TypeError("The 'file' scheme is not supported in the browser");e.exports.getBase=function(){throw r},e.exports.load=function(){var o=arguments[arguments.length-1];if(typeof o!="function")throw r;o(r)}},function(e,t,n){function r(C){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _})(C)}var o;typeof window<"u"?o=window:typeof self<"u"?o=self:(console.warn("Using browser-only version of superagent in non-browser environment"),o=this);var a=n(227),i=n(228),s=n(82),l=n(229),c=n(231);function u(){}var f=t=e.exports=function(C,_){return typeof _=="function"?new t.Request("GET",C).end(_):arguments.length==1?new t.Request("GET",C):new t.Request(C,_)};t.Request=y,f.getXHR=function(){if(!(!o.XMLHttpRequest||o.location&&o.location.protocol=="file:"&&o.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch{}throw Error("Browser-only version of superagent could not find XHR")};var p="".trim?function(C){return C.trim()}:function(C){return C.replace(/(^\s*|\s*$)/g,"")};function m(C){if(!s(C))return C;var _=[];for(var $ in C)b(_,$,C[$]);return _.join("&")}function b(C,_,$){if($!=null)if(Array.isArray($))$.forEach(function(k){b(C,_,k)});else if(s($))for(var P in $)b(C,_+"["+P+"]",$[P]);else C.push(encodeURIComponent(_)+"="+encodeURIComponent($));else $===null&&C.push(encodeURIComponent(_))}function v(C){for(var _,$,P={},k=C.split("&"),I=0,D=k.length;I=2&&C._responseTimeoutTimer&&clearTimeout(C._responseTimeoutTimer),F==4){var U;try{U=_.status}catch{U=0}if(!U)return C.timedout||C._aborted?void 0:C.crossDomainError();C.emit("end")}};var P=function(F,U){U.total>0&&(U.percent=U.loaded/U.total*100),U.direction=F,C.emit("progress",U)};if(this.hasListeners("progress"))try{_.onprogress=P.bind(null,"download"),_.upload&&(_.upload.onprogress=P.bind(null,"upload"))}catch{}try{this.username&&this.password?_.open(this.method,this.url,!0,this.username,this.password):_.open(this.method,this.url,!0)}catch(F){return this.callback(F)}if(this._withCredentials&&(_.withCredentials=!0),!this._formData&&this.method!="GET"&&this.method!="HEAD"&&typeof $!="string"&&!this._isHost($)){var k=this._header["content-type"],I=this._serializer||f.serialize[k?k.split(";")[0]:""];!I&&w(k)&&(I=f.serialize["application/json"]),I&&($=I($))}for(var D in this.header)this.header[D]!=null&&this.header.hasOwnProperty(D)&&_.setRequestHeader(D,this.header[D]);return this._responseType&&(_.responseType=this._responseType),this.emit("request",this),_.send($!==void 0?$:null),this},f.agent=function(){return new c},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(C){c.prototype[C.toLowerCase()]=function(_,$){var P=new f.Request(C,_);return this._setDefaults(P),$&&P.end($),P}}),c.prototype.del=c.prototype.delete,f.get=function(C,_,$){var P=f("GET",C);return typeof _=="function"&&($=_,_=null),_&&P.query(_),$&&P.end($),P},f.head=function(C,_,$){var P=f("HEAD",C);return typeof _=="function"&&($=_,_=null),_&&P.query(_),$&&P.end($),P},f.options=function(C,_,$){var P=f("OPTIONS",C);return typeof _=="function"&&($=_,_=null),_&&P.send(_),$&&P.end($),P},f.del=x,f.delete=x,f.patch=function(C,_,$){var P=f("PATCH",C);return typeof _=="function"&&($=_,_=null),_&&P.send(_),$&&P.end($),P},f.post=function(C,_,$){var P=f("POST",C);return typeof _=="function"&&($=_,_=null),_&&P.send(_),$&&P.end($),P},f.put=function(C,_,$){var P=f("PUT",C);return typeof _=="function"&&($=_,_=null),_&&P.send(_),$&&P.end($),P}},function(e,t,n){function r(o){if(o)return function(a){for(var i in r.prototype)a[i]=r.prototype[i];return a}(o)}e.exports=r,r.prototype.on=r.prototype.addEventListener=function(o,a){return this._callbacks=this._callbacks||{},(this._callbacks["$"+o]=this._callbacks["$"+o]||[]).push(a),this},r.prototype.once=function(o,a){function i(){this.off(o,i),a.apply(this,arguments)}return i.fn=a,this.on(o,i),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(o,a){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i,s=this._callbacks["$"+o];if(!s)return this;if(arguments.length==1)return delete this._callbacks["$"+o],this;for(var l=0;l=this._maxRetries)return!1;if(this._retryCallback)try{var c=this._retryCallback(s,l);if(c===!0)return!0;if(c===!1)return!1}catch(u){console.error(u)}return!!(l&&l.status&&l.status>=500&&l.status!=501||s&&(s.code&&~i.indexOf(s.code)||s.timeout&&s.code=="ECONNABORTED"||s.crossDomain))},a.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this._end()},a.prototype.then=function(s,l){if(!this._fullfilledPromise){var c=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(u,f){c.end(function(p,m){p?f(p):u(m)})})}return this._fullfilledPromise.then(s,l)},a.prototype.catch=function(s){return this.then(void 0,s)},a.prototype.use=function(s){return s(this),this},a.prototype.ok=function(s){if(typeof s!="function")throw Error("Callback required");return this._okCallback=s,this},a.prototype._isResponseOK=function(s){return!!s&&(this._okCallback?this._okCallback(s):s.status>=200&&s.status<300)},a.prototype.get=function(s){return this._header[s.toLowerCase()]},a.prototype.getHeader=a.prototype.get,a.prototype.set=function(s,l){if(o(s)){for(var c in s)this.set(c,s[c]);return this}return this._header[s.toLowerCase()]=l,this.header[s]=l,this},a.prototype.unset=function(s){return delete this._header[s.toLowerCase()],delete this.header[s],this},a.prototype.field=function(s,l){if(s==null)throw new Error(".field(name, val) name can not be empty");if(this._data&&console.error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()"),o(s)){for(var c in s)this.field(c,s[c]);return this}if(Array.isArray(l)){for(var u in l)this.field(s,l[u]);return this}if(l==null)throw new Error(".field(name, val) val can not be empty");return typeof l=="boolean"&&(l=""+l),this._getFormData().append(s,l),this},a.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},a.prototype._auth=function(s,l,c,u){switch(c.type){case"basic":this.set("Authorization","Basic "+u(s+":"+l));break;case"auto":this.username=s,this.password=l;break;case"bearer":this.set("Authorization","Bearer "+s)}return this},a.prototype.withCredentials=function(s){return s==null&&(s=!0),this._withCredentials=s,this},a.prototype.redirects=function(s){return this._maxRedirects=s,this},a.prototype.maxResponseSize=function(s){if(typeof s!="number")throw TypeError("Invalid argument");return this._maxResponseSize=s,this},a.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},a.prototype.send=function(s){var l=o(s),c=this._header["content-type"];if(this._formData&&console.error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()"),l&&!this._data)Array.isArray(s)?this._data=[]:this._isHost(s)||(this._data={});else if(s&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(l&&o(this._data))for(var u in s)this._data[u]=s[u];else typeof s=="string"?(c||this.type("form"),c=this._header["content-type"],this._data=c=="application/x-www-form-urlencoded"?this._data?this._data+"&"+s:s:(this._data||"")+s):this._data=s;return!l||this._isHost(s)||c||this.type("json"),this},a.prototype.sortQuery=function(s){return this._sort=s===void 0||s,this},a.prototype._finalizeQueryString=function(){var s=this._query.join("&");if(s&&(this.url+=(this.url.indexOf("?")>=0?"&":"?")+s),this._query.length=0,this._sort){var l=this.url.indexOf("?");if(l>=0){var c=this.url.substring(l+1).split("&");typeof this._sort=="function"?c.sort(this._sort):c.sort(),this.url=this.url.substring(0,l)+"?"+c.join("&")}}},a.prototype._appendQueryString=function(){console.trace("Unsupported")},a.prototype._timeoutError=function(s,l,c){if(!this._aborted){var u=new Error(s+l+"ms exceeded");u.timeout=l,u.code="ECONNABORTED",u.errno=c,this.timedout=!0,this.abort(),this.callback(u)}},a.prototype._setTimeouts=function(){var s=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){s._timeoutError("Timeout of ",s._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){s._timeoutError("Response timeout of ",s._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},function(e,t,n){var r=n(230);function o(a){if(a)return function(i){for(var s in o.prototype)i[s]=o.prototype[s];return i}(a)}e.exports=o,o.prototype.get=function(a){return this.header[a.toLowerCase()]},o.prototype._setHeaderProperties=function(a){var i=a["content-type"]||"";this.type=r.type(i);var s=r.params(i);for(var l in s)this[l]=s[l];this.links={};try{a.link&&(this.links=r.parseLinks(a.link))}catch{}},o.prototype._setStatusProperties=function(a){var i=a/100|0;this.status=this.statusCode=a,this.statusType=i,this.info=i==1,this.ok=i==2,this.redirect=i==3,this.clientError=i==4,this.serverError=i==5,this.error=(i==4||i==5)&&this.toError(),this.created=a==201,this.accepted=a==202,this.noContent=a==204,this.badRequest=a==400,this.unauthorized=a==401,this.notAcceptable=a==406,this.forbidden=a==403,this.notFound=a==404,this.unprocessableEntity=a==422}},function(e,t,n){t.type=function(r){return r.split(/ *; */).shift()},t.params=function(r){return r.split(/ *; */).reduce(function(o,a){var i=a.split(/ *= */),s=i.shift(),l=i.shift();return s&&l&&(o[s]=l),o},{})},t.parseLinks=function(r){return r.split(/ *, */).reduce(function(o,a){var i=a.split(/ *; */),s=i[0].slice(1,-1);return o[i[1].split(/ *= */)[1].slice(1,-1)]=s,o},{})},t.cleanHeader=function(r,o){return delete r["content-type"],delete r["content-length"],delete r["transfer-encoding"],delete r.host,o&&(delete r.authorization,delete r.cookie),r}},function(e,t){function n(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert"].forEach(function(r){n.prototype[r]=function(){return this._defaults.push({fn:r,arguments}),this}}),n.prototype._setDefaults=function(r){this._defaults.forEach(function(o){r[o.fn].apply(r,o.arguments)})},e.exports=n},function(e,t,n){(function(r){var o=r!==void 0&&r||typeof self<"u"&&self||window,a=Function.prototype.apply;function i(s,l){this._id=s,this._clearFn=l}t.setTimeout=function(){return new i(a.call(setTimeout,o,arguments),clearTimeout)},t.setInterval=function(){return new i(a.call(setInterval,o,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(s){s&&s.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(o,this._id)},t.enroll=function(s,l){clearTimeout(s._idleTimeoutId),s._idleTimeout=l},t.unenroll=function(s){clearTimeout(s._idleTimeoutId),s._idleTimeout=-1},t._unrefActive=t.active=function(s){clearTimeout(s._idleTimeoutId);var l=s._idleTimeout;l>=0&&(s._idleTimeoutId=setTimeout(function(){s._onTimeout&&s._onTimeout()},l))},n(233),t.setImmediate=typeof self<"u"&&self.setImmediate||r!==void 0&&r.setImmediate||this&&this.setImmediate,t.clearImmediate=typeof self<"u"&&self.clearImmediate||r!==void 0&&r.clearImmediate||this&&this.clearImmediate}).call(this,n(11))},function(e,t,n){(function(r,o){(function(a,i){if(!a.setImmediate){var s,l,c,u,f,p=1,m={},b=!1,v=a.document,w=Object.getPrototypeOf&&Object.getPrototypeOf(a);w=w&&w.setTimeout?w:a,{}.toString.call(a.process)==="[object process]"?s=function(x){o.nextTick(function(){y(x)})}:function(){if(a.postMessage&&!a.importScripts){var x=!0,C=a.onmessage;return a.onmessage=function(){x=!1},a.postMessage("","*"),a.onmessage=C,x}}()?(u="setImmediate$"+Math.random()+"$",f=function(x){x.source===a&&typeof x.data=="string"&&x.data.indexOf(u)===0&&y(+x.data.slice(u.length))},a.addEventListener?a.addEventListener("message",f,!1):a.attachEvent("onmessage",f),s=function(x){a.postMessage(u+x,"*")}):a.MessageChannel?((c=new MessageChannel).port1.onmessage=function(x){y(x.data)},s=function(x){c.port2.postMessage(x)}):v&&"onreadystatechange"in v.createElement("script")?(l=v.documentElement,s=function(x){var C=v.createElement("script");C.onreadystatechange=function(){y(x),C.onreadystatechange=null,l.removeChild(C),C=null},l.appendChild(C)}):s=function(x){setTimeout(y,0,x)},w.setImmediate=function(x){typeof x!="function"&&(x=new Function(""+x));for(var C=new Array(arguments.length-1),_=0;_"u"?r===void 0?this:r:self)}).call(this,n(11),n(13))},function(e,t,n){t.decode=t.parse=n(235),t.encode=t.stringify=n(236)},function(e,t,n){function r(a,i){return Object.prototype.hasOwnProperty.call(a,i)}e.exports=function(a,i,s,l){i=i||"&",s=s||"=";var c={};if(typeof a!="string"||a.length===0)return c;var u=/\+/g;a=a.split(i);var f=1e3;l&&typeof l.maxKeys=="number"&&(f=l.maxKeys);var p=a.length;f>0&&p>f&&(p=f);for(var m=0;m=0?(b=y.substr(0,x),v=y.substr(x+1)):(b=y,v=""),w=decodeURIComponent(b),g=decodeURIComponent(v),r(c,w)?o(c[w])?c[w].push(g):c[w]=[c[w],g]:c[w]=g}return c};var o=Array.isArray||function(a){return Object.prototype.toString.call(a)==="[object Array]"}},function(e,t,n){function r(l){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c})(l)}var o=function(l){switch(r(l)){case"string":return l;case"boolean":return l?"true":"false";case"number":return isFinite(l)?l:"";default:return""}};e.exports=function(l,c,u,f){return c=c||"&",u=u||"=",l===null&&(l=void 0),r(l)==="object"?i(s(l),function(p){var m=encodeURIComponent(o(p))+u;return a(l[p])?i(l[p],function(b){return m+encodeURIComponent(o(b))}).join(c):m+encodeURIComponent(o(l[p]))}).join(c):f?encodeURIComponent(o(f))+u+encodeURIComponent(o(l)):""};var a=Array.isArray||function(l){return Object.prototype.toString.call(l)==="[object Array]"};function i(l,c){if(l.map)return l.map(c);for(var u=[],f=0;f1){te[0]=te[0].slice(0,-1);for(var $e=te.length-1,Se=1;Se<$e;++Se)te[Se]=te[Se].slice(1,-1);return te[$e]=te[$e].slice(1),te.join("")}return te[0]}function u(ne){return"(?:"+ne+")"}function f(ne){return ne===void 0?"undefined":ne===null?"null":Object.prototype.toString.call(ne).split(" ").pop().split("]").shift().toLowerCase()}function p(ne){return ne.toUpperCase()}function m(ne){var te=c("[0-9]","[A-Fa-f]"),ie=u(u("%[EFef]"+te+"%"+te+te+"%"+te+te)+"|"+u("%[89A-Fa-f]"+te+"%"+te+te)+"|"+u("%"+te+te)),$e="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",Se=c("[\\:\\/\\?\\#\\[\\]\\@]",$e),Ze=ne?"[\\uE000-\\uF8FF]":"[]",tt=c("[A-Za-z]","[0-9]","[\\-\\.\\_\\~]",ne?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]");u("[A-Za-z]"+c("[A-Za-z]","[0-9]","[\\+\\-\\.]")+"*"),u(u(ie+"|"+c(tt,$e,"[\\:]"))+"*");var ft=u(u("25[0-5]")+"|"+u("2[0-4][0-9]")+"|"+u("1[0-9][0-9]")+"|"+u("0?[1-9][0-9]")+"|0?0?[0-9]"),_t=u(ft+"\\."+ft+"\\."+ft+"\\."+ft),vt=u(te+"{1,4}"),dt=u(u(vt+"\\:"+vt)+"|"+_t),Et=u(u(vt+"\\:")+"{6}"+dt),Yt=u("\\:\\:"+u(vt+"\\:")+"{5}"+dt),kt=u(u(vt)+"?\\:\\:"+u(vt+"\\:")+"{4}"+dt),ln=u(u(u(vt+"\\:")+"{0,1}"+vt)+"?\\:\\:"+u(vt+"\\:")+"{3}"+dt),Vt=u(u(u(vt+"\\:")+"{0,2}"+vt)+"?\\:\\:"+u(vt+"\\:")+"{2}"+dt),Ut=u(u(u(vt+"\\:")+"{0,3}"+vt)+"?\\:\\:"+vt+"\\:"+dt),Kt=u(u(u(vt+"\\:")+"{0,4}"+vt)+"?\\:\\:"+dt),bn=u(u(u(vt+"\\:")+"{0,5}"+vt)+"?\\:\\:"+vt),Bn=u(u(u(vt+"\\:")+"{0,6}"+vt)+"?\\:\\:"),se=u([Et,Yt,kt,ln,Vt,Ut,Kt,bn,Bn].join("|")),oe=u(u(tt+"|"+ie)+"+");u("[vV]"+te+"+\\."+c(tt,$e,"[\\:]")+"+"),u(u(ie+"|"+c(tt,$e))+"*");var ue=u(ie+"|"+c(tt,$e,"[\\:\\@]"));return u(u(ie+"|"+c(tt,$e,"[\\@]"))+"+"),u(u(ue+"|"+c("[\\/\\?]",Ze))+"*"),{NOT_SCHEME:new RegExp(c("[^]","[A-Za-z]","[0-9]","[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(c("[^\\%\\:]",tt,$e),"g"),NOT_HOST:new RegExp(c("[^\\%\\[\\]\\:]",tt,$e),"g"),NOT_PATH:new RegExp(c("[^\\%\\/\\:\\@]",tt,$e),"g"),NOT_PATH_NOSCHEME:new RegExp(c("[^\\%\\/\\@]",tt,$e),"g"),NOT_QUERY:new RegExp(c("[^\\%]",tt,$e,"[\\:\\@\\/\\?]",Ze),"g"),NOT_FRAGMENT:new RegExp(c("[^\\%]",tt,$e,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(c("[^]",tt,$e),"g"),UNRESERVED:new RegExp(tt,"g"),OTHER_CHARS:new RegExp(c("[^\\%]",tt,Se),"g"),PCT_ENCODED:new RegExp(ie,"g"),IPV4ADDRESS:new RegExp("^("+_t+")$"),IPV6ADDRESS:new RegExp("^\\[?("+se+")"+u(u("\\%25|\\%(?!"+te+"{2})")+"("+oe+")")+"?\\]?$")}}var b=m(!1),v=m(!0),w=function(ne,te){if(Array.isArray(ne))return ne;if(Symbol.iterator in Object(ne))return function(ie,$e){var Se=[],Ze=!0,tt=!1,ft=void 0;try{for(var _t,vt=ie[Symbol.iterator]();!(Ze=(_t=vt.next()).done)&&(Se.push(_t.value),!$e||Se.length!==$e);Ze=!0);}catch(dt){tt=!0,ft=dt}finally{try{!Ze&&vt.return&&vt.return()}finally{if(tt)throw ft}}return Se}(ne,te);throw new TypeError("Invalid attempt to destructure non-iterable instance")},g=2147483647,y=/^xn--/,x=/[^\0-\x7E]/,C=/[\x2E\u3002\uFF0E\uFF61]/g,_={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},$=Math.floor,P=String.fromCharCode;function k(ne){throw new RangeError(_[ne])}function I(ne,te){var ie=ne.split("@"),$e="";ie.length>1&&($e=ie[0]+"@",ne=ie[1]);var Se=function(Ze,tt){for(var ft=[],_t=Ze.length;_t--;)ft[_t]=tt(Ze[_t]);return ft}((ne=ne.replace(C,".")).split("."),te).join(".");return $e+Se}function D(ne){for(var te=[],ie=0,$e=ne.length;ie<$e;){var Se=ne.charCodeAt(ie++);if(Se>=55296&&Se<=56319&&ie<$e){var Ze=ne.charCodeAt(ie++);(64512&Ze)==56320?te.push(((1023&Se)<<10)+(1023&Ze)+65536):(te.push(Se),ie--)}else te.push(Se)}return te}var F=function(ne,te){return ne+22+75*(ne<26)-((te!=0)<<5)},U=function(ne,te,ie){var $e=0;for(ne=ie?$(ne/700):ne>>1,ne+=$(ne/te);ne>455;$e+=36)ne=$(ne/35);return $($e+36*ne/(ne+38))},G=function(ne){var te,ie=[],$e=ne.length,Se=0,Ze=128,tt=72,ft=ne.lastIndexOf("-");ft<0&&(ft=0);for(var _t=0;_t=128&&k("not-basic"),ie.push(ne.charCodeAt(_t));for(var vt=ft>0?ft+1:0;vt<$e;){for(var dt=Se,Et=1,Yt=36;;Yt+=36){vt>=$e&&k("invalid-input");var kt=(te=ne.charCodeAt(vt++))-48<10?te-22:te-65<26?te-65:te-97<26?te-97:36;(kt>=36||kt>$((g-Se)/Et))&&k("overflow"),Se+=kt*Et;var ln=Yt<=tt?1:Yt>=tt+26?26:Yt-tt;if(kt$(g/Vt)&&k("overflow"),Et*=Vt}var Ut=ie.length+1;tt=U(Se-dt,Ut,dt==0),$(Se/Ut)>g-Ze&&k("overflow"),Ze+=$(Se/Ut),Se%=Ut,ie.splice(Se++,0,Ze)}return String.fromCodePoint.apply(String,ie)},z=function(ne){var te=[],ie=(ne=D(ne)).length,$e=128,Se=0,Ze=72,tt=!0,ft=!1,_t=void 0;try{for(var vt,dt=ne[Symbol.iterator]();!(tt=(vt=dt.next()).done);tt=!0){var Et=vt.value;Et<128&&te.push(P(Et))}}catch(ut){ft=!0,_t=ut}finally{try{!tt&&dt.return&&dt.return()}finally{if(ft)throw _t}}var Yt=te.length,kt=Yt;for(Yt&&te.push("-");kt=$e&&se$((g-Se)/oe)&&k("overflow"),Se+=(ln-$e)*oe,$e=ln;var ue=!0,ke=!1,Ee=void 0;try{for(var pt,me=ne[Symbol.iterator]();!(ue=(pt=me.next()).done);ue=!0){var pe=pt.value;if(pe<$e&&++Se>g&&k("overflow"),pe==$e){for(var De=Se,nt=36;;nt+=36){var lt=nt<=Ze?1:nt>=Ze+26?26:nt-Ze;if(De>6|192).toString(16).toUpperCase()+"%"+(63&te|128).toString(16).toUpperCase():"%"+(te>>12|224).toString(16).toUpperCase()+"%"+(te>>6&63|128).toString(16).toUpperCase()+"%"+(63&te|128).toString(16).toUpperCase()}function J(ne){for(var te="",ie=0,$e=ne.length;ie<$e;){var Se=parseInt(ne.substr(ie+1,2),16);if(Se<128)te+=String.fromCharCode(Se),ie+=3;else if(Se>=194&&Se<224){if($e-ie>=6){var Ze=parseInt(ne.substr(ie+4,2),16);te+=String.fromCharCode((31&Se)<<6|63&Ze)}else te+=ne.substr(ie,6);ie+=6}else if(Se>=224){if($e-ie>=9){var tt=parseInt(ne.substr(ie+4,2),16),ft=parseInt(ne.substr(ie+7,2),16);te+=String.fromCharCode((15&Se)<<12|(63&tt)<<6|63&ft)}else te+=ne.substr(ie,9);ie+=9}else te+=ne.substr(ie,3),ie+=3}return te}function X(ne,te){function ie($e){var Se=J($e);return Se.match(te.UNRESERVED)?Se:$e}return ne.scheme&&(ne.scheme=String(ne.scheme).replace(te.PCT_ENCODED,ie).toLowerCase().replace(te.NOT_SCHEME,"")),ne.userinfo!==void 0&&(ne.userinfo=String(ne.userinfo).replace(te.PCT_ENCODED,ie).replace(te.NOT_USERINFO,H).replace(te.PCT_ENCODED,p)),ne.host!==void 0&&(ne.host=String(ne.host).replace(te.PCT_ENCODED,ie).toLowerCase().replace(te.NOT_HOST,H).replace(te.PCT_ENCODED,p)),ne.path!==void 0&&(ne.path=String(ne.path).replace(te.PCT_ENCODED,ie).replace(ne.scheme?te.NOT_PATH:te.NOT_PATH_NOSCHEME,H).replace(te.PCT_ENCODED,p)),ne.query!==void 0&&(ne.query=String(ne.query).replace(te.PCT_ENCODED,ie).replace(te.NOT_QUERY,H).replace(te.PCT_ENCODED,p)),ne.fragment!==void 0&&(ne.fragment=String(ne.fragment).replace(te.PCT_ENCODED,ie).replace(te.NOT_FRAGMENT,H).replace(te.PCT_ENCODED,p)),ne}function L(ne){return ne.replace(/^0*(.*)/,"$1")||"0"}function K(ne,te){var ie=ne.match(te.IPV4ADDRESS)||[],$e=w(ie,2)[1];return $e?$e.split(".").map(L).join("."):ne}function q(ne,te){var ie=ne.match(te.IPV6ADDRESS)||[],$e=w(ie,3),Se=$e[1],Ze=$e[2];if(Se){for(var tt=Se.toLowerCase().split("::").reverse(),ft=w(tt,2),_t=ft[0],vt=ft[1],dt=vt?vt.split(":").map(L):[],Et=_t.split(":").map(L),Yt=te.IPV4ADDRESS.test(Et[Et.length-1]),kt=Yt?7:8,ln=Et.length-kt,Vt=Array(kt),Ut=0;Ut1){var Bn=Vt.slice(0,Kt.index),se=Vt.slice(Kt.index+Kt.length);bn=Bn.join(":")+"::"+se.join(":")}else bn=Vt.join(":");return Ze&&(bn+="%"+Ze),bn}return ne}var R=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,N="".match(/(){0}/)[1]===void 0;function V(ne){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie={},$e=te.iri!==!1?v:b;te.reference==="suffix"&&(ne=(te.scheme?te.scheme+":":"")+"//"+ne);var Se=ne.match(R);if(Se){N?(ie.scheme=Se[1],ie.userinfo=Se[3],ie.host=Se[4],ie.port=parseInt(Se[5],10),ie.path=Se[6]||"",ie.query=Se[7],ie.fragment=Se[8],isNaN(ie.port)&&(ie.port=Se[5])):(ie.scheme=Se[1]||void 0,ie.userinfo=ne.indexOf("@")!==-1?Se[3]:void 0,ie.host=ne.indexOf("//")!==-1?Se[4]:void 0,ie.port=parseInt(Se[5],10),ie.path=Se[6]||"",ie.query=ne.indexOf("?")!==-1?Se[7]:void 0,ie.fragment=ne.indexOf("#")!==-1?Se[8]:void 0,isNaN(ie.port)&&(ie.port=ne.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Se[4]:void 0)),ie.host&&(ie.host=q(K(ie.host,$e),$e)),ie.scheme!==void 0||ie.userinfo!==void 0||ie.host!==void 0||ie.port!==void 0||ie.path||ie.query!==void 0?ie.scheme===void 0?ie.reference="relative":ie.fragment===void 0?ie.reference="absolute":ie.reference="uri":ie.reference="same-document",te.reference&&te.reference!=="suffix"&&te.reference!==ie.reference&&(ie.error=ie.error||"URI is not a "+te.reference+" reference.");var Ze=Q[(te.scheme||ie.scheme||"").toLowerCase()];if(te.unicodeSupport||Ze&&Ze.unicodeSupport)X(ie,$e);else{if(ie.host&&(te.domainHost||Ze&&Ze.domainHost))try{ie.host=B(ie.host.replace($e.PCT_ENCODED,J).toLowerCase())}catch(tt){ie.error=ie.error||"Host's domain name can not be converted to ASCII via punycode: "+tt}X(ie,b)}Ze&&Ze.parse&&Ze.parse(ie,te)}else ie.error=ie.error||"URI can not be parsed.";return ie}function Z(ne,te){var ie=te.iri!==!1?v:b,$e=[];return ne.userinfo!==void 0&&($e.push(ne.userinfo),$e.push("@")),ne.host!==void 0&&$e.push(q(K(String(ne.host),ie),ie).replace(ie.IPV6ADDRESS,function(Se,Ze,tt){return"["+Ze+(tt?"%25"+tt:"")+"]"})),typeof ne.port=="number"&&($e.push(":"),$e.push(ne.port.toString(10))),$e.length?$e.join(""):void 0}var re=/^\.\.?\//,le=/^\/\.(\/|$)/,xe=/^\/\.\.(\/|$)/,fe=/^\/?(?:.|\n)*?(?=\/|$)/;function ge(ne){for(var te=[];ne.length;)if(ne.match(re))ne=ne.replace(re,"");else if(ne.match(le))ne=ne.replace(le,"/");else if(ne.match(xe))ne=ne.replace(xe,"/"),te.pop();else if(ne==="."||ne==="..")ne="";else{var ie=ne.match(fe);if(!ie)throw new Error("Unexpected dot segment condition");var $e=ie[0];ne=ne.slice($e.length),te.push($e)}return te.join("")}function he(ne){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie=te.iri?v:b,$e=[],Se=Q[(te.scheme||ne.scheme||"").toLowerCase()];if(Se&&Se.serialize&&Se.serialize(ne,te),ne.host&&!ie.IPV6ADDRESS.test(ne.host)){if(te.domainHost||Se&&Se.domainHost)try{ne.host=te.iri?Y(ne.host):B(ne.host.replace(ie.PCT_ENCODED,J).toLowerCase())}catch(ft){ne.error=ne.error||"Host's domain name can not be converted to "+(te.iri?"Unicode":"ASCII")+" via punycode: "+ft}}X(ne,ie),te.reference!=="suffix"&&ne.scheme&&($e.push(ne.scheme),$e.push(":"));var Ze=Z(ne,te);if(Ze!==void 0&&(te.reference!=="suffix"&&$e.push("//"),$e.push(Ze),ne.path&&ne.path.charAt(0)!=="/"&&$e.push("/")),ne.path!==void 0){var tt=ne.path;te.absolutePath||Se&&Se.absolutePath||(tt=ge(tt)),Ze===void 0&&(tt=tt.replace(/^\/\//,"/%2F")),$e.push(tt)}return ne.query!==void 0&&($e.push("?"),$e.push(ne.query)),ne.fragment!==void 0&&($e.push("#"),$e.push(ne.fragment)),$e.join("")}function _e(ne,te){var ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},$e=arguments[3],Se={};return $e||(ne=V(he(ne,ie),ie),te=V(he(te,ie),ie)),!(ie=ie||{}).tolerant&&te.scheme?(Se.scheme=te.scheme,Se.userinfo=te.userinfo,Se.host=te.host,Se.port=te.port,Se.path=ge(te.path||""),Se.query=te.query):(te.userinfo!==void 0||te.host!==void 0||te.port!==void 0?(Se.userinfo=te.userinfo,Se.host=te.host,Se.port=te.port,Se.path=ge(te.path||""),Se.query=te.query):(te.path?(te.path.charAt(0)==="/"?Se.path=ge(te.path):(ne.userinfo===void 0&&ne.host===void 0&&ne.port===void 0||ne.path?ne.path?Se.path=ne.path.slice(0,ne.path.lastIndexOf("/")+1)+te.path:Se.path=te.path:Se.path="/"+te.path,Se.path=ge(Se.path)),Se.query=te.query):(Se.path=ne.path,te.query!==void 0?Se.query=te.query:Se.query=ne.query),Se.userinfo=ne.userinfo,Se.host=ne.host,Se.port=ne.port),Se.scheme=ne.scheme),Se.fragment=te.fragment,Se}function ve(ne,te){return ne&&ne.toString().replace(te&&te.iri?v.PCT_ENCODED:b.PCT_ENCODED,J)}var Be={scheme:"http",domainHost:!0,parse:function(ne,te){return ne.host||(ne.error=ne.error||"HTTP URIs must have a host."),ne},serialize:function(ne,te){return ne.port!==(String(ne.scheme).toLowerCase()!=="https"?80:443)&&ne.port!==""||(ne.port=void 0),ne.path||(ne.path="/"),ne}},Ue={scheme:"https",domainHost:Be.domainHost,parse:Be.parse,serialize:Be.serialize},ze={},He="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",be="[0-9A-Fa-f]",we=u(u("%[EFef][0-9A-Fa-f]%"+be+be+"%"+be+be)+"|"+u("%[89A-Fa-f][0-9A-Fa-f]%"+be+be)+"|"+u("%"+be+be)),Ce=c("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),qe=new RegExp(He,"g"),rt=new RegExp(we,"g"),Ae=new RegExp(c("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',Ce),"g"),Le=new RegExp(c("[^]",He,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),Fe=Le;function Pe(ne){var te=J(ne);return te.match(qe)?te:ne}var Te={scheme:"mailto",parse:function(ne,te){var ie=ne,$e=ie.to=ie.path?ie.path.split(","):[];if(ie.path=void 0,ie.query){for(var Se=!1,Ze={},tt=ie.query.split("&"),ft=0,_t=tt.length;ft<_t;++ft){var vt=tt[ft].split("=");switch(vt[0]){case"to":for(var dt=vt[1].split(","),Et=0,Yt=dt.length;Ett.resolved)}function s4e(e,t,n){var r=this,o=S.useRef(null),a=S.useRef(0),i=S.useRef(null),s=S.useRef([]),l=S.useRef(),c=S.useRef(),u=S.useRef(e),f=S.useRef(!0);S.useEffect(function(){u.current=e},[e]);var p=!t&&t!==0&&typeof window<"u";if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var m=!!(n=n||{}).leading,b=!("trailing"in n)||!!n.trailing,v="maxWait"in n,w=v?Math.max(+n.maxWait||0,t):null;S.useEffect(function(){return f.current=!0,function(){f.current=!1}},[]);var g=S.useMemo(function(){var y=function(k){var I=s.current,D=l.current;return s.current=l.current=null,a.current=k,c.current=u.current.apply(D,I)},x=function(k,I){p&&cancelAnimationFrame(i.current),i.current=p?requestAnimationFrame(k):setTimeout(k,I)},C=function(k){if(!f.current)return!1;var I=k-o.current;return!o.current||I>=t||I<0||v&&k-a.current>=w},_=function(k){return i.current=null,b&&s.current?y(k):(s.current=l.current=null,c.current)},$=function k(){var I=Date.now();if(C(I))return _(I);if(f.current){var D=t-(I-o.current),F=v?Math.min(D,w-(I-a.current)):D;x(k,F)}},P=function(){var k=Date.now(),I=C(k);if(s.current=[].slice.call(arguments),l.current=r,o.current=k,I){if(!i.current&&f.current)return a.current=o.current,x($,t),m?y(o.current):c.current;if(v)return x($,t),y(o.current)}return i.current||x($,t),c.current};return P.cancel=function(){i.current&&(p?cancelAnimationFrame(i.current):clearTimeout(i.current)),a.current=0,s.current=o.current=l.current=i.current=null},P.isPending=function(){return!!i.current},P.flush=function(){return i.current?_(Date.now()):c.current},P},[m,v,t,w,b,p]);return g}function l4e(e,t){return e===t}function fM(e){return typeof e=="function"?function(){return e}:e}function c4e(e,t,n){var r,o,a=n&&n.equalityFn||l4e,i=(r=S.useState(fM(e)),o=r[1],[r[0],S.useCallback(function(f){return o(fM(f))},[])]),s=i[0],l=i[1],c=s4e(S.useCallback(function(f){return l(f)},[l]),t,n),u=S.useRef(e);return a(u.current,e)||(c(e),u.current=e),[s,c]}function u4e(e){const[t,n]=S.useState({config:null,input:null});S.useEffect(()=>{async function o(){n({config:window.CONFIG_SCHEMA?await Sx(window.CONFIG_SCHEMA):null,input:window.INPUT_SCHEMA?await Sx(window.INPUT_SCHEMA):null})}o()},[]);const[r]=c4e(e,500);return S.useEffect(()=>{r.defaults||fetch(W6(`/c/${F0.compressToEncodedURIComponent(JSON.stringify(r.data))}/input_schema`)).then(o=>o.json()).then(Sx).then(o=>n(a=>({...a,input:o}))).catch(()=>{})},[r]),t}/*! - * https://github.com/Starcounter-Jack/JSON-Patch - * (c) 2017-2022 Joachim Wester - * MIT licensed - */var d4e=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var a in o)o.hasOwnProperty(a)&&(r[a]=o[a])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),f4e=Object.prototype.hasOwnProperty;function pC(e,t){return f4e.call(e,t)}function hC(e){if(Array.isArray(e)){for(var t=new Array(e.length),n=0;n=48&&r<=57){t++;continue}return!1}return!0}function Tl(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function H6(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function vC(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,n=e.length;t0&&l[u-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&p===void 0&&(c[m]===void 0?p=l.slice(0,u).join("/"):u==f-1&&(p=t.path),p!==void 0&&b(t,0,e,p)),u++,Array.isArray(c)){if(m==="-")m=c.length;else{if(n&&!mC(m))throw new Qn("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",a,t,e);mC(m)&&(m=~~m)}if(u>=f){if(n&&t.op==="add"&&m>c.length)throw new Qn("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",a,t,e);var i=h4e[t.op].call(t,c,m,e);if(i.test===!1)throw new Qn("Test operation failed","TEST_OPERATION_FAILED",a,t,e);return i}}else if(u>=f){var i=gu[t.op].call(t,c,m,e);if(i.test===!1)throw new Qn("Test operation failed","TEST_OPERATION_FAILED",a,t,e);return i}if(c=c[m],n&&u0)throw new Qn('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,n);if((e.op==="move"||e.op==="copy")&&typeof e.from!="string")throw new Qn("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&e.value===void 0)throw new Qn("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&vC(e.value))throw new Qn("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,n);if(n){if(e.op=="add"){var o=e.path.split("/").length,a=r.split("/").length;if(o!==a+1&&o!==a)throw new Qn("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,n)}else if(e.op==="replace"||e.op==="remove"||e.op==="_get"){if(e.path!==r)throw new Qn("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,n)}else if(e.op==="move"||e.op==="copy"){var i={op:"_get",path:e.from,value:void 0},s=q6([i],n);if(s&&s.name==="OPERATION_PATH_UNRESOLVABLE")throw new Qn("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,n)}}}else throw new Qn("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,n)}function q6(e,t,n){try{if(!Array.isArray(e))throw new Qn("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)z0(Uo(t),Uo(e),n||!0);else{n=n||jg;for(var r=0;r0&&(e.patches=[],e.callback&&e.callback(r)),r}function YE(e,t,n,r,o){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var a=hC(t),i=hC(e),s=!1,l=i.length-1;l>=0;l--){var c=i[l],u=e[c];if(pC(t,c)&&!(t[c]===void 0&&u!==void 0&&Array.isArray(t)===!1)){var f=t[c];typeof u=="object"&&u!=null&&typeof f=="object"&&f!=null&&Array.isArray(u)===Array.isArray(f)?YE(u,f,n,r+"/"+Tl(c),o):u!==f&&(o&&n.push({op:"test",path:r+"/"+Tl(c),value:Uo(u)}),n.push({op:"replace",path:r+"/"+Tl(c),value:Uo(f)}))}else Array.isArray(e)===Array.isArray(t)?(o&&n.push({op:"test",path:r+"/"+Tl(c),value:Uo(u)}),n.push({op:"remove",path:r+"/"+Tl(c)}),s=!0):(o&&n.push({op:"test",path:r,value:e}),n.push({op:"replace",path:r,value:t}))}if(!(!s&&a.length==i.length))for(var l=0;l0){const l=o.decode(i.subarray(0,s)),c=s+(i[s+1]===32?2:1),u=o.decode(i.subarray(c));switch(l){case"data":r.data=r.data?r.data+` -`+u:u;break;case"event":r.event=u;break;case"id":e(r.id=u);break;case"retry":const f=parseInt(u,10);isNaN(f)||t(r.retry=f);break}}}}function k4e(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function hM(){return{data:"",event:"",id:"",retry:void 0}}var O4e=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const m=Object.assign({},r);m.accept||(m.accept=yC);let b;function v(){b.abort(),document.hidden||_()}l||document.addEventListener("visibilitychange",v);let w=R4e,g=0;function y(){document.removeEventListener("visibilitychange",v),window.clearTimeout(g),b.abort()}n==null||n.addEventListener("abort",()=>{y(),f()});const x=c??window.fetch,C=o??M4e;async function _(){var $;b=new AbortController;try{const P=await x(e,Object.assign(Object.assign({},u),{headers:m,signal:b.signal}));await C(P),await E4e(P.body,P4e(T4e(k=>{k?m[mM]=k:delete m[mM]},k=>{w=k},a))),i==null||i(),y(),f()}catch(P){if(!b.signal.aborted)try{const k=($=s==null?void 0:s(P))!==null&&$!==void 0?$:w;window.clearTimeout(g),g=window.setTimeout(_,k)}catch(k){y(),p(k)}}}_()})}function M4e(e){const t=e.headers.get("content-type");if(!(t!=null&&t.startsWith(yC)))throw new Error(`Expected content-type to be ${yC}, Actual: ${t}`)}function I4e(e,t){return z0(e,t,!0,!1).newDocument}function A4e(){const[e,t]=S.useReducer(I4e,null),[n,r]=S.useState(null),o=S.useCallback(async(i,s)=>{const l=new AbortController;r(l),await D4e(W6("/stream_log").toString(),{signal:l.signal,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({input:i,config:s}),onmessage(c){var u;c.event==="data"&&t((u=JSON.parse(c.data))==null?void 0:u.ops)},onclose(){r(null)},onerror(c){throw r(null),c}})},[]),a=S.useCallback(()=>{n==null||n.abort(),r(null)},[n]);return{startStream:o,stopStream:n?a:void 0,latest:e}}const KE=e=>S.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 3C8 2.44772 8.44772 2 9 2H15C15.5523 2 16 2.44772 16 3C16 3.55228 15.5523 4 15 4H9C8.44772 4 8 3.55228 8 3ZM4.99224 5H3C2.44772 5 2 5.44772 2 6C2 6.55228 2.44772 7 3 7H4.06445L4.70614 16.6254C4.75649 17.3809 4.79816 18.006 4.87287 18.5149C4.95066 19.0447 5.07405 19.5288 5.33109 19.98C5.73123 20.6824 6.33479 21.247 7.06223 21.5996C7.52952 21.826 8.0208 21.917 8.55459 21.9593C9.06728 22 9.69383 22 10.4509 22H13.5491C14.3062 22 14.9327 22 15.4454 21.9593C15.9792 21.917 16.4705 21.826 16.9378 21.5996C17.6652 21.247 18.2688 20.6824 18.6689 19.98C18.926 19.5288 19.0493 19.0447 19.1271 18.5149C19.2018 18.006 19.2435 17.3808 19.2939 16.6253L19.9356 7H21C21.5523 7 22 6.55228 22 6C22 5.44772 21.5523 5 21 5H19.0078C19.0019 4.99995 18.9961 4.99995 18.9903 5H5.00974C5.00392 4.99995 4.99809 4.99995 4.99224 5ZM17.9311 7H6.06889L6.69907 16.4528C6.75274 17.2578 6.78984 17.8034 6.85166 18.2243C6.9117 18.6333 6.98505 18.8429 7.06888 18.99C7.26895 19.3412 7.57072 19.6235 7.93444 19.7998C8.08684 19.8736 8.30086 19.9329 8.71286 19.9656C9.13703 19.9993 9.68385 20 10.4907 20H13.5093C14.3161 20 14.863 19.9993 15.2871 19.9656C15.6991 19.9329 15.9132 19.8736 16.0656 19.7998C16.4293 19.6235 16.7311 19.3412 16.9311 18.99C17.015 18.8429 17.0883 18.6333 17.1483 18.2243C17.2102 17.8034 17.2473 17.2578 17.3009 16.4528L17.9311 7Z",fill:"currentColor"})),N4e=de(wd)({borderBottom:"none",fill:"white",color:"inherit",padding:0}),Ip=({children:e,...t})=>O.jsx(N4e,{...t,children:e}),JE=e=>S.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.9999 2.51489C12.5522 2.51489 12.9999 2.96261 12.9999 3.51489V11.0002L20.4852 11.0002C21.0375 11.0002 21.4852 11.4479 21.4852 12.0002C21.4852 12.5525 21.0375 13.0002 20.4852 13.0002H12.9999V20.4855C12.9999 21.0377 12.5522 21.4855 11.9999 21.4855C11.4476 21.4855 10.9999 21.0377 10.9999 20.4855V13.0002H3.51465C2.96236 13.0002 2.51465 12.5525 2.51465 12.0002C2.51465 11.4479 2.96236 11.0002 3.51465 11.0002L10.9999 11.0002V3.51489C10.9999 2.96261 11.4476 2.51489 11.9999 2.51489Z",fill:"currentColor"})),j4e=de(I5)(({theme:e})=>({color:e.palette.error.main})),L4e=({errorMessages:e,id:t})=>O.jsx(pc,{id:t,title:e,children:O.jsx(j4e,{badgeContent:e.split(` -`).length,children:O.jsx(yE,{color:"inherit"})})}),F4e={paddingLeft:0,paddingRight:0},z4e=A.memo(function({numColumns:t,errors:n,label:r,path:o,addItem:a,schema:i,enabled:s,translations:l}){return O.jsxs(al,{children:[O.jsx(Ip,{colSpan:t,sx:{verticalAlign:"top"},children:O.jsxs("div",{className:"flex items-center gap-2",children:[r&&O.jsx("span",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:r}),n.length!==0&&O.jsx(L4e,{id:"tooltip-validation",errorMessages:n})]})}),s?O.jsx(Ip,{align:"right",style:F4e,children:O.jsx(pc,{id:"tooltip-add",title:l.addTooltip,placement:"bottom",children:O.jsx(tr,{"aria-label":l.addAriaLabel,onClick:a(o,Xi(i)),size:"large",sx:{p:1},children:O.jsx(JE,{className:"text-ls-black"})})})}):null]})}),vM={fixedCell:{width:"150px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"},fixedCellSmall:{width:"50px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"}},Y6=(e,t,n,r,o)=>{if(t.type==="object")return K6(t).map(a=>{var l,c;const i=Wr.compose(n,a),s={propName:a,schema:t,title:((c=(l=t.properties)==null?void 0:l[a])==null?void 0:c.title)??py(a),rowPath:n,cellPath:i,enabled:r,cells:o};return O.jsx(e,{...s},i)});{const a={schema:t,rowPath:n,cellPath:n,enabled:r};return O.jsx(e,{...a},n)}},K6=e=>e.type==="object"&&typeof e.properties=="object"?Object.keys(e.properties).filter(t=>{var n;return((n=e.properties)==null?void 0:n[t].type)!=="array"}):[""],B4e=({numColumns:e,translations:t})=>O.jsx(al,{children:O.jsx(Ip,{colSpan:e,children:O.jsx(gn,{align:"center",children:t.noDataMessage})})}),V4e=A.memo(function({title:t}){return O.jsx(wd,{sx:{color:"hsl(var(--ls-gray-100))",borderBottomColor:"hsl(var(--divider-700))",px:0,py:1},children:t})}),U4e=(e,t)=>{var o,a;const n=t.rowPath+(t.schema.type==="object"?"."+t.propName:""),r=t_(dL(zS(n,t.schema,i=>i===n)(((o=e.core)==null?void 0:o.errors)??[]).map(i=>i.message)));return{rowPath:t.rowPath,propName:t.propName,schema:t.schema,rootSchema:((a=e.core)==null?void 0:a.schema)??{},errors:r,path:n,enabled:t.enabled,cells:t.cells||e.cells,renderers:t.renderers||e.renderers}},gM=e=>({type:"Control",scope:e,label:!1}),W4e=A.memo(function({path:t,propName:n,schema:r,rootSchema:o,errors:a,enabled:i,renderers:s,cells:l,isValid:c}){return O.jsxs(Ip,{sx:{color:"hsl(var(--ls-black))"},children:[r.properties?O.jsx(Xl,{schema:So.schema(r,`#/properties/${Jl(n)}`,o),uischema:gM(`#/properties/${Jl(n)}`),path:t,enabled:i,renderers:s,cells:l}):O.jsx(Xl,{schema:r,uischema:gM("#"),path:t,enabled:i,renderers:s,cells:l}),O.jsx(dr,{error:!c,children:!c&&a})]})}),H4e=e=>{const t=fc(),n=U4e(t,e),r=Mt(n.errors);return O.jsx(W4e,{...n,isValid:r})},G4e=({childPath:e,schema:t,rowIndex:n,openDeleteDialog:r,moveUpCreator:o,moveDownCreator:a,enableUp:i,enableDown:s,showSortButtons:l,enabled:c,cells:u,path:f,translations:p})=>{const m=S.useMemo(()=>o(f,n),[o,f,n]),b=S.useMemo(()=>a(f,n),[a,f,n]);return O.jsxs(al,{hover:!0,children:[Y6(H4e,t,e,c,u),c?O.jsx(Ip,{style:l?vM.fixedCell:vM.fixedCellSmall,children:O.jsxs(en,{container:!0,direction:"row",justifyContent:"flex-end",alignItems:"center",children:[l?O.jsxs(S.Fragment,{children:[O.jsx(en,{item:!0,children:O.jsx(tr,{"aria-label":p.upAriaLabel,onClick:m,disabled:!i,size:"large",children:O.jsx(O0,{})})}),O.jsx(en,{item:!0,children:O.jsx(tr,{"aria-label":p.downAriaLabel,onClick:b,disabled:!s,size:"large",children:O.jsx(k0,{})})})]}):null,O.jsx(en,{item:!0,children:O.jsx(tr,{"aria-label":p.removeAriaLabel,onClick:()=>r(e,n),size:"large",sx:{p:1},children:O.jsx(KE,{className:"text-ls-black"})})})]})}):null]},e)},q4e=A.memo(G4e),Y4e=({data:e,path:t,schema:n,openDeleteDialog:r,moveUp:o,moveDown:a,uischema:i,config:s,enabled:l,cells:c,translations:u})=>{if(e===0)return O.jsx(B4e,{numColumns:K6(n).length+1,translations:u});const p=tn({},s,i.options);return O.jsx(A.Fragment,{children:fd(e).map(m=>{const b=Wr.compose(t,`${m}`);return O.jsx(q4e,{childPath:b,rowIndex:m,schema:n,openDeleteDialog:r,moveUpCreator:o??(()=>()=>{}),moveDownCreator:a??(()=>()=>{}),enableUp:m!==0,enableDown:m!==e-1,showSortButtons:p.showSortButtons||p.showArrayTableSortButtons,enabled:l,cells:c,path:t,translations:u},b)})})};class K4e extends A.Component{constructor(){super(...arguments);Vd(this,"addItem",(n,r)=>this.props.addItem(n,r))}render(){const{label:n,path:r,schema:o,rootSchema:a,uischema:i,errors:s,openDeleteDialog:l,visible:c,enabled:u,cells:f,translations:p}=this.props,m=i,b=o.type==="object",v=b?Y6(V4e,o,r,u,f):void 0;return O.jsx(Pn,{xsUp:!c,children:O.jsxs(lL,{children:[O.jsxs(uL,{sx:{borderBottomColor:"hsl(var(--divider-700))"},children:[O.jsx(z4e,{errors:s,label:n,addItem:this.addItem,numColumns:b?v.length:1,path:r,uischema:m,schema:o,rootSchema:a,enabled:u,translations:p}),b&&O.jsxs(al,{children:[v,u?O.jsx(wd,{sx:{borderBottomColor:"hsl(var(--divider-700))"}}):null]})]}),O.jsx(cL,{children:O.jsx(Y4e,{...this.props,openDeleteDialog:this.props.openDeleteDialog??l,translations:this.props.translations??p})})]})})}}const J4e=A.memo(function({open:t,onClose:n,onConfirm:r,onCancel:o,title:a,message:i,acceptText:s,declineText:l}){return O.jsxs(w0,{open:t,keepMounted:!0,onClose:n,"aria-labelledby":"alert-dialog-confirmdelete-title","aria-describedby":"alert-dialog-confirmdelete-description",children:[O.jsx(aE,{id:"alert-dialog-confirmdelete-title",children:a}),O.jsx($0,{children:O.jsx(oE,{id:"alert-dialog-confirmdelete-description",children:i})}),O.jsxs(C0,{children:[O.jsx(Vo,{onClick:o,color:"primary",children:l}),O.jsx(Vo,{onClick:r,color:"primary",children:s})]})]})}),Z4e=e=>{const[t,n]=S.useState(!1),[r,o]=S.useState(void 0),[a,i]=S.useState(void 0),{removeItems:s,visible:l}=e,c=S.useCallback((m,b)=>{n(!0),o(m),i(b)},[n,o,i]),u=S.useCallback(()=>n(!1),[n]),f=S.useCallback(()=>{const m=r==null?void 0:r.substring(0,r.lastIndexOf("."));m!=null&&a!=null&&(s==null||s(m,[a])()),n(!1)},[n,r,a]),p=S.useCallback(()=>n(!1),[n]);return O.jsx("div",{className:"control",children:O.jsxs(Pn,{xsUp:!l,children:[O.jsx(K4e,{...e,openDeleteDialog:c}),O.jsx(J4e,{open:t,onCancel:u,onConfirm:f,onClose:p,acceptText:e.translations.deleteDialogAccept,declineText:e.translations.deleteDialogDecline,title:e.translations.deleteDialogTitle,message:e.translations.deleteDialogMessage})]})})},X4e=mn(11,uc(qS,qj,YS)),J6=Ty(Z4e);function Q4e(){for(var e=0,t,n,r="";ee&&(t=0,r=n,n=new Map)}return{get:function(i){var s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set:function(i,s){n.has(i)?n.set(i,s):o(i,s)}}}var Q6="!";function i5e(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(i){for(var s=[],l=0,c=0,u,f=0;fc?u-c:void 0;return{modifiers:s,hasImportantModifier:b,baseClassName:v,maybePostfixModifierPosition:w}}}function s5e(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function l5e(e){return{cache:a5e(e.cacheSize),splitModifiers:i5e(e),...e5e(e)}}var c5e=/\s+/;function u5e(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,a=new Set;return e.trim().split(c5e).map(function(i){var s=n(i),l=s.modifiers,c=s.hasImportantModifier,u=s.baseClassName,f=s.maybePostfixModifierPosition,p=r(f?u.substring(0,f):u),m=!!f;if(!p){if(!f)return{isTailwindClass:!1,originalClassName:i};if(p=r(u),!p)return{isTailwindClass:!1,originalClassName:i};m=!1}var b=s5e(l).join(":"),v=c?b+Q6:b;return{isTailwindClass:!0,modifierId:v,classGroupId:p,originalClassName:i,hasPostfixModifier:m}}).reverse().filter(function(i){if(!i.isTailwindClass)return!0;var s=i.modifierId,l=i.classGroupId,c=i.hasPostfixModifier,u=s+l;return a.has(u)?!1:(a.add(u),o(l,c).forEach(function(f){return a.add(s+f)}),!0)}).reverse().map(function(i){return i.originalClassName}).join(" ")}function d5e(){for(var e=arguments.length,t=new Array(e),n=0;n{var r;const n=t.target;(r=e.onChange)==null||r.call(e,n.value)},onFocus:e.onFocus,onBlur:e.onBlur,placeholder:e.placeholder,readOnly:e.readOnly,autoFocus:e.autoFocus&&!e.readOnly,onKeyDown:e.onKeyDown}),O.jsxs("div",{"aria-hidden":!0,className:Hs(wM,"pointer-events-none select-none"),children:[e.value," "]})]})}const P5e=e=>{const{data:t,className:n,id:r,enabled:o,config:a,uischema:i,path:s,handleChange:l}=e,c=tn({},a,i.options);return O.jsx(B0,{value:t||"",onChange:u=>l(s,u===""?void 0:u),className:Hs("w-full text-lg",n),id:r,disabled:!o,autoFocus:c.focus,placeholder:c.placeholder})},CM=fr(qa(P5e));function T5e(e){try{return JSON.parse(e)}catch{return e}}function k5e(e){try{return JSON.stringify(e)}catch{return e}}const O5e=e=>{const{data:t,className:n,id:r,enabled:o,config:a,uischema:i,path:s,handleChange:l}=e,c=tn({},a,i.options);return O.jsx(B0,{value:typeof t=="object"?k5e(t):t??"",onChange:u=>l(s,u===""?void 0:T5e(u)),className:Hs("w-full text-lg",n),id:r,disabled:!o,autoFocus:c.focus,placeholder:c.placeholder})},R5e=fr(qa(O5e));function Gs(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function D5e(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function nF(...e){return t=>e.forEach(n=>D5e(n,t))}function _d(...e){return S.useCallback(nF(...e),e)}function M5e(e,t=[]){let n=[];function r(a,i){const s=S.createContext(i),l=n.length;n=[...n,i];function c(f){const{scope:p,children:m,...b}=f,v=(p==null?void 0:p[e][l])||s,w=S.useMemo(()=>b,Object.values(b));return S.createElement(v.Provider,{value:w},m)}function u(f,p){const m=(p==null?void 0:p[e][l])||s,b=S.useContext(m);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${a}\``)}return c.displayName=a+"Provider",[c,u]}const o=()=>{const a=n.map(i=>S.createContext(i));return function(s){const l=(s==null?void 0:s[e])||a;return S.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,I5e(o,...t)]}function I5e(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((s,{useScope:l,scopeName:c})=>{const f=l(a)[`__scope${c}`];return{...s,...f}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}const wC=globalThis!=null&&globalThis.document?S.useLayoutEffect:()=>{},A5e=Qf["useId".toString()]||(()=>{});let N5e=0;function _x(e){const[t,n]=S.useState(A5e());return wC(()=>{e||n(r=>r??String(N5e++))},[e]),e||(t?`radix-${t}`:"")}function nc(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function j5e({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=L5e({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=nc(n),l=S.useCallback(c=>{if(a){const f=typeof c=="function"?c(e):c;f!==e&&s(f)}else o(c)},[a,e,o,s]);return[i,l]}function L5e({defaultProp:e,onChange:t}){const n=S.useState(e),[r]=n,o=S.useRef(r),a=nc(t);return S.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}const XE=S.forwardRef((e,t)=>{const{children:n,...r}=e,o=S.Children.toArray(n),a=o.find(z5e);if(a){const i=a.props.children,s=o.map(l=>l===a?S.Children.count(i)>1?S.Children.only(null):S.isValidElement(i)?i.props.children:null:l);return S.createElement(CC,T({},r,{ref:t}),S.isValidElement(i)?S.cloneElement(i,void 0,s):null)}return S.createElement(CC,T({},r,{ref:t}),n)});XE.displayName="Slot";const CC=S.forwardRef((e,t)=>{const{children:n,...r}=e;return S.isValidElement(n)?S.cloneElement(n,{...B5e(r,n.props),ref:t?nF(t,n.ref):n.ref}):S.Children.count(n)>1?S.Children.only(null):null});CC.displayName="SlotClone";const F5e=({children:e})=>S.createElement(S.Fragment,null,e);function z5e(e){return S.isValidElement(e)&&e.type===F5e}function B5e(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{a(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const V5e=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ll=V5e.reduce((e,t)=>{const n=S.forwardRef((r,o)=>{const{asChild:a,...i}=r,s=a?XE:t;return S.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),S.createElement(s,T({},i,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function U5e(e,t){e&&ed.flushSync(()=>e.dispatchEvent(t))}function W5e(e,t=globalThis==null?void 0:globalThis.document){const n=nc(e);S.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const $C="dismissableLayer.update",H5e="dismissableLayer.pointerDownOutside",G5e="dismissableLayer.focusOutside";let $M;const q5e=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Y5e=S.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...c}=e,u=S.useContext(q5e),[f,p]=S.useState(null),m=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,b]=S.useState({}),v=_d(t,k=>p(k)),w=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=w.indexOf(g),x=f?w.indexOf(f):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,_=x>=y,$=K5e(k=>{const I=k.target,D=[...u.branches].some(F=>F.contains(I));!_||D||(a==null||a(k),s==null||s(k),k.defaultPrevented||l==null||l())},m),P=J5e(k=>{const I=k.target;[...u.branches].some(F=>F.contains(I))||(i==null||i(k),s==null||s(k),k.defaultPrevented||l==null||l())},m);return W5e(k=>{x===u.layers.size-1&&(o==null||o(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},m),S.useEffect(()=>{if(f)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&($M=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),SM(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=$M)}},[f,m,r,u]),S.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),SM())},[f,u]),S.useEffect(()=>{const k=()=>b({});return document.addEventListener($C,k),()=>document.removeEventListener($C,k)},[]),S.createElement(ll.div,T({},c,{ref:v,style:{pointerEvents:C?_?"auto":"none":void 0,...e.style},onFocusCapture:Gs(e.onFocusCapture,P.onFocusCapture),onBlurCapture:Gs(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:Gs(e.onPointerDownCapture,$.onPointerDownCapture)}))});function K5e(e,t=globalThis==null?void 0:globalThis.document){const n=nc(e),r=S.useRef(!1),o=S.useRef(()=>{});return S.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let u=function(){rF(H5e,n,c,{discrete:!0})};var l=u;const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function J5e(e,t=globalThis==null?void 0:globalThis.document){const n=nc(e),r=S.useRef(!1);return S.useEffect(()=>{const o=a=>{a.target&&!r.current&&rF(G5e,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function SM(){const e=new CustomEvent($C);document.dispatchEvent(e)}function rF(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?U5e(o,a):o.dispatchEvent(a)}const Ex="focusScope.autoFocusOnMount",Px="focusScope.autoFocusOnUnmount",_M={bubbles:!1,cancelable:!0},Z5e=S.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,l]=S.useState(null),c=nc(o),u=nc(a),f=S.useRef(null),p=_d(t,v=>l(v)),m=S.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;S.useEffect(()=>{if(r){let y=function($){if(m.paused||!s)return;const P=$.target;s.contains(P)?f.current=P:Ss(f.current,{select:!0})},x=function($){if(m.paused||!s)return;const P=$.relatedTarget;P!==null&&(s.contains(P)||Ss(f.current,{select:!0}))},C=function($){if(document.activeElement===document.body)for(const k of $)k.removedNodes.length>0&&Ss(s)};var v=y,w=x,g=C;document.addEventListener("focusin",y),document.addEventListener("focusout",x);const _=new MutationObserver(C);return s&&_.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",x),_.disconnect()}}},[r,s,m.paused]),S.useEffect(()=>{if(s){PM.add(m);const v=document.activeElement;if(!s.contains(v)){const g=new CustomEvent(Ex,_M);s.addEventListener(Ex,c),s.dispatchEvent(g),g.defaultPrevented||(X5e(rLe(oF(s)),{select:!0}),document.activeElement===v&&Ss(s))}return()=>{s.removeEventListener(Ex,c),setTimeout(()=>{const g=new CustomEvent(Px,_M);s.addEventListener(Px,u),s.dispatchEvent(g),g.defaultPrevented||Ss(v??document.body,{select:!0}),s.removeEventListener(Px,u),PM.remove(m)},0)}}},[s,c,u,m]);const b=S.useCallback(v=>{if(!n&&!r||m.paused)return;const w=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,g=document.activeElement;if(w&&g){const y=v.currentTarget,[x,C]=Q5e(y);x&&C?!v.shiftKey&&g===C?(v.preventDefault(),n&&Ss(x,{select:!0})):v.shiftKey&&g===x&&(v.preventDefault(),n&&Ss(C,{select:!0})):g===y&&v.preventDefault()}},[n,r,m.paused]);return S.createElement(ll.div,T({tabIndex:-1},i,{ref:p,onKeyDown:b}))});function X5e(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ss(r,{select:t}),document.activeElement!==n)return}function Q5e(e){const t=oF(e),n=EM(t,e),r=EM(t.reverse(),e);return[n,r]}function oF(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function EM(e,t){for(const n of e)if(!eLe(n,{upTo:t}))return n}function eLe(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function tLe(e){return e instanceof HTMLInputElement&&"select"in e}function Ss(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&tLe(e)&&t&&e.select()}}const PM=nLe();function nLe(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=TM(e,t),e.unshift(t)},remove(t){var n;e=TM(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function TM(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function rLe(e){return e.filter(t=>t.tagName!=="A")}const oLe=S.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?wf.createPortal(S.createElement(ll.div,T({},o,{ref:t})),r):null});function aLe(e,t){return S.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const V0=e=>{const{present:t,children:n}=e,r=iLe(t),o=typeof n=="function"?n({present:r.isPresent}):S.Children.only(n),a=_d(r.ref,o.ref);return typeof n=="function"||r.isPresent?S.cloneElement(o,{ref:a}):null};V0.displayName="Presence";function iLe(e){const[t,n]=S.useState(),r=S.useRef({}),o=S.useRef(e),a=S.useRef("none"),i=e?"mounted":"unmounted",[s,l]=aLe(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const c=Qm(r.current);a.current=s==="mounted"?c:"none"},[s]),wC(()=>{const c=r.current,u=o.current;if(u!==e){const p=a.current,m=Qm(c);e?l("MOUNT"):m==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&p!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),wC(()=>{if(t){const c=f=>{const m=Qm(r.current).includes(f.animationName);f.target===t&&m&&ed.flushSync(()=>l("ANIMATION_END"))},u=f=>{f.target===t&&(a.current=Qm(r.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:S.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function Qm(e){return(e==null?void 0:e.animationName)||"none"}let Tx=0;function sLe(){S.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:kM()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:kM()),Tx++,()=>{Tx===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Tx--}},[])}function kM(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var di=function(){return di=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return SLe;var t=_Le(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},PLe=lF(),TLe=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),` - .`.concat(cLe,` { - overflow: hidden `).concat(r,`; - padding-right: `).concat(s,"px ").concat(r,`; - } - body { - overflow: hidden `).concat(r,`; - overscroll-behavior: contain; - `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` - padding-left: `.concat(o,`px; - padding-top: `).concat(a,`px; - padding-right: `).concat(i,`px; - margin-left:0; - margin-top:0; - margin-right: `).concat(s,"px ").concat(r,`; - `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),` - } - - .`).concat(Iv,` { - right: `).concat(s,"px ").concat(r,`; - } - - .`).concat(Av,` { - margin-right: `).concat(s,"px ").concat(r,`; - } - - .`).concat(Iv," .").concat(Iv,` { - right: 0 `).concat(r,`; - } - - .`).concat(Av," .").concat(Av,` { - margin-right: 0 `).concat(r,`; - } - - body { - `).concat(uLe,": ").concat(s,`px; - } -`)},kLe=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,a=S.useMemo(function(){return ELe(o)},[o]);return S.createElement(PLe,{styles:TLe(a,!t,o,n?"":"!important")})},SC=!1;if(typeof window<"u")try{var ev=Object.defineProperty({},"passive",{get:function(){return SC=!0,!0}});window.addEventListener("test",ev,ev),window.removeEventListener("test",ev,ev)}catch{SC=!1}var qc=SC?{passive:!1}:!1,OLe=function(e){return e.tagName==="TEXTAREA"},cF=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!OLe(e)&&n[t]==="visible")},RLe=function(e){return cF(e,"overflowY")},DLe=function(e){return cF(e,"overflowX")},RM=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=uF(e,n);if(r){var o=dF(e,n),a=o[1],i=o[2];if(a>i)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},MLe=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},ILe=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},uF=function(e,t){return e==="v"?RLe(t):DLe(t)},dF=function(e,t){return e==="v"?MLe(t):ILe(t)},ALe=function(e,t){return e==="h"&&t==="rtl"?-1:1},NLe=function(e,t,n,r,o){var a=ALe(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,l=t.contains(s),c=!1,u=i>0,f=0,p=0;do{var m=dF(e,s),b=m[0],v=m[1],w=m[2],g=v-w-a*b;(b||g)&&uF(e,s)&&(f+=g,p+=b),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(o&&f===0||!o&&i>f)||!u&&(o&&p===0||!o&&-i>p))&&(c=!0),c},tv=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},DM=function(e){return[e.deltaX,e.deltaY]},MM=function(e){return e&&"current"in e?e.current:e},jLe=function(e,t){return e[0]===t[0]&&e[1]===t[1]},LLe=function(e){return` - .block-interactivity-`.concat(e,` {pointer-events: none;} - .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},FLe=0,Yc=[];function zLe(e){var t=S.useRef([]),n=S.useRef([0,0]),r=S.useRef(),o=S.useState(FLe++)[0],a=S.useState(function(){return lF()})[0],i=S.useRef(e);S.useEffect(function(){i.current=e},[e]),S.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=lLe([e.lockRef.current],(e.shards||[]).map(MM),!0).filter(Boolean);return v.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=S.useCallback(function(v,w){if("touches"in v&&v.touches.length===2)return!i.current.allowPinchZoom;var g=tv(v),y=n.current,x="deltaX"in v?v.deltaX:y[0]-g[0],C="deltaY"in v?v.deltaY:y[1]-g[1],_,$=v.target,P=Math.abs(x)>Math.abs(C)?"h":"v";if("touches"in v&&P==="h"&&$.type==="range")return!1;var k=RM(P,$);if(!k)return!0;if(k?_=P:(_=P==="v"?"h":"v",k=RM(P,$)),!k)return!1;if(!r.current&&"changedTouches"in v&&(x||C)&&(r.current=_),!_)return!0;var I=r.current||_;return NLe(I,w,v,I==="h"?x:C,!0)},[]),l=S.useCallback(function(v){var w=v;if(!(!Yc.length||Yc[Yc.length-1]!==a)){var g="deltaY"in w?DM(w):tv(w),y=t.current.filter(function(_){return _.name===w.type&&_.target===w.target&&jLe(_.delta,g)})[0];if(y&&y.should){w.cancelable&&w.preventDefault();return}if(!y){var x=(i.current.shards||[]).map(MM).filter(Boolean).filter(function(_){return _.contains(w.target)}),C=x.length>0?s(w,x[0]):!i.current.noIsolation;C&&w.cancelable&&w.preventDefault()}}},[]),c=S.useCallback(function(v,w,g,y){var x={name:v,delta:w,target:g,should:y};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(C){return C!==x})},1)},[]),u=S.useCallback(function(v){n.current=tv(v),r.current=void 0},[]),f=S.useCallback(function(v){c(v.type,DM(v),v.target,s(v,e.lockRef.current))},[]),p=S.useCallback(function(v){c(v.type,tv(v),v.target,s(v,e.lockRef.current))},[]);S.useEffect(function(){return Yc.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,qc),document.addEventListener("touchmove",l,qc),document.addEventListener("touchstart",u,qc),function(){Yc=Yc.filter(function(v){return v!==a}),document.removeEventListener("wheel",l,qc),document.removeEventListener("touchmove",l,qc),document.removeEventListener("touchstart",u,qc)}},[]);var m=e.removeScrollBar,b=e.inert;return S.createElement(S.Fragment,null,b?S.createElement(a,{styles:LLe(o)}):null,m?S.createElement(kLe,{gapMode:"margin"}):null)}const BLe=gLe(sF,zLe);var fF=S.forwardRef(function(e,t){return S.createElement(U0,di({},e,{ref:t,sideCar:BLe}))});fF.classNames=U0.classNames;const VLe=fF;var ULe=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Kc=new WeakMap,nv=new WeakMap,rv={},Rx=0,pF=function(e){return e&&(e.host||pF(e.parentNode))},WLe=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=pF(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},HLe=function(e,t,n,r){var o=WLe(t,Array.isArray(e)?e:[e]);rv[n]||(rv[n]=new WeakMap);var a=rv[n],i=[],s=new Set,l=new Set(o),c=function(f){!f||s.has(f)||(s.add(f),c(f.parentNode))};o.forEach(c);var u=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(p){if(s.has(p))u(p);else{var m=p.getAttribute(r),b=m!==null&&m!=="false",v=(Kc.get(p)||0)+1,w=(a.get(p)||0)+1;Kc.set(p,v),a.set(p,w),i.push(p),v===1&&b&&nv.set(p,!0),w===1&&p.setAttribute(n,"true"),b||p.setAttribute(r,"true")}})};return u(t),s.clear(),Rx++,function(){i.forEach(function(f){var p=Kc.get(f)-1,m=a.get(f)-1;Kc.set(f,p),a.set(f,m),p||(nv.has(f)||f.removeAttribute(r),nv.delete(f)),m||f.removeAttribute(n)}),Rx--,Rx||(Kc=new WeakMap,Kc=new WeakMap,nv=new WeakMap,rv={})}},GLe=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||ULe(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),HLe(r,o,n,"aria-hidden")):function(){return null}};const hF="Dialog",[mF,lFe]=M5e(hF),[qLe,Ya]=mF(hF),YLe=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=S.useRef(null),l=S.useRef(null),[c=!1,u]=j5e({prop:r,defaultProp:o,onChange:a});return S.createElement(qLe,{scope:t,triggerRef:s,contentRef:l,contentId:_x(),titleId:_x(),descriptionId:_x(),open:c,onOpenChange:u,onOpenToggle:S.useCallback(()=>u(f=>!f),[u]),modal:i},n)},KLe="DialogTrigger",JLe=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ya(KLe,n),a=_d(t,o.triggerRef);return S.createElement(ll.button,T({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":QE(o.open)},r,{ref:a,onClick:Gs(e.onClick,o.onOpenToggle)}))}),vF="DialogPortal",[ZLe,gF]=mF(vF,{forceMount:void 0}),XLe=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=Ya(vF,t);return S.createElement(ZLe,{scope:t,forceMount:n},S.Children.map(r,i=>S.createElement(V0,{present:n||a.open},S.createElement(oLe,{asChild:!0,container:o},i))))},_C="DialogOverlay",QLe=S.forwardRef((e,t)=>{const n=gF(_C,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Ya(_C,e.__scopeDialog);return a.modal?S.createElement(V0,{present:r||a.open},S.createElement(e6e,T({},o,{ref:t}))):null}),e6e=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ya(_C,n);return S.createElement(VLe,{as:XE,allowPinchZoom:!0,shards:[o.contentRef]},S.createElement(ll.div,T({"data-state":QE(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),Ap="DialogContent",t6e=S.forwardRef((e,t)=>{const n=gF(Ap,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Ya(Ap,e.__scopeDialog);return S.createElement(V0,{present:r||a.open},a.modal?S.createElement(n6e,T({},o,{ref:t})):S.createElement(r6e,T({},o,{ref:t})))}),n6e=S.forwardRef((e,t)=>{const n=Ya(Ap,e.__scopeDialog),r=S.useRef(null),o=_d(t,n.contentRef,r);return S.useEffect(()=>{const a=r.current;if(a)return GLe(a)},[]),S.createElement(yF,T({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Gs(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=n.triggerRef.current)===null||i===void 0||i.focus()}),onPointerDownOutside:Gs(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&a.preventDefault()}),onFocusOutside:Gs(e.onFocusOutside,a=>a.preventDefault())}))}),r6e=S.forwardRef((e,t)=>{const n=Ya(Ap,e.__scopeDialog),r=S.useRef(!1),o=S.useRef(!1);return S.createElement(yF,T({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i;if((i=e.onCloseAutoFocus)===null||i===void 0||i.call(e,a),!a.defaultPrevented){var s;r.current||(s=n.triggerRef.current)===null||s===void 0||s.focus(),a.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:a=>{var i,s;(i=e.onInteractOutside)===null||i===void 0||i.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const l=a.target;((s=n.triggerRef.current)===null||s===void 0?void 0:s.contains(l))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}}))}),yF=S.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=Ya(Ap,n),l=S.useRef(null),c=_d(t,l);return sLe(),S.createElement(S.Fragment,null,S.createElement(Z5e,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a},S.createElement(Y5e,T({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":QE(s.open)},i,{ref:c,onDismiss:()=>s.onOpenChange(!1)}))),!1)}),o6e="DialogTitle",a6e=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ya(o6e,n);return S.createElement(ll.h2,T({id:o.titleId},r,{ref:t}))}),i6e="DialogDescription",s6e=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ya(i6e,n);return S.createElement(ll.p,T({id:o.descriptionId},r,{ref:t}))}),l6e="DialogClose",c6e=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ya(l6e,n);return S.createElement(ll.button,T({type:"button"},r,{ref:t,onClick:Gs(e.onClick,()=>o.onOpenChange(!1))}))});function QE(e){return e?"open":"closed"}const u6e=YLe,d6e=JLe,f6e=XLe,p6e=QLe,h6e=t6e,m6e=a6e,v6e=s6e,g6e=c6e;var bF=A.createContext({drawerRef:{current:null},overlayRef:{current:null},scaleBackground:()=>{},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},dismissible:!1,isOpen:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,modal:!1,shouldFade:!1,activeSnapPoint:null,setActiveSnapPoint:()=>{},visible:!1,closeDrawer:()=>{},setVisible:()=>{}}),eP=()=>A.useContext(bF);function y6e(e,{insertAt:t}={}){if(!e||typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}y6e(`[vaul-drawer]{touch-action:none;transform:translate3d(0,100%,0);transition:transform .5s cubic-bezier(.32,.72,0,1)}[vaul-drawer][vaul-drawer-visible=true]{transform:translate3d(0,var(--snap-point-height, 0),0)}[vaul-overlay]{opacity:0;transition:opacity .5s cubic-bezier(.32,.72,0,1)}[vaul-overlay][vaul-drawer-visible=true]{opacity:1}[vaul-drawer]:after{content:"";position:absolute;top:100%;background:inherit;background-color:inherit;left:0;right:0;height:200%}[vaul-overlay][vaul-snap-points=true]:not([vaul-snap-points-overlay="true"]):not([data-state="closed"]){opacity:0}[vaul-overlay][vaul-snap-points-overlay=true]:not([vaul-drawer-visible="false"]){opacity:1}@keyframes fake-animation{}@media (hover: hover) and (pointer: fine){[vaul-drawer]{user-select:none}} -`);var b6e=typeof window<"u"?S.useLayoutEffect:S.useEffect;function EC(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}function x6e(){return tP(/^Mac/)}function w6e(){return tP(/^iPhone/)}function C6e(){return tP(/^iPad/)||x6e()&&navigator.maxTouchPoints>1}function xF(){return w6e()||C6e()}function tP(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}var Dx=typeof document<"u"&&window.visualViewport;function IM(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function wF(e){for(IM(e)&&(e=e.parentElement);e&&!IM(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}var $6e=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),ov=0,Mx;function S6e(e={}){let{isDisabled:t}=e;b6e(()=>{if(!t)return ov++,ov===1&&(xF()?Mx=E6e():Mx=_6e()),()=>{ov--,ov===0&&Mx()}},[t])}function _6e(){return EC(Lg(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Lg(document.documentElement,"overflow","hidden"))}function E6e(){let e,t=0,n=f=>{e=wF(f.target),!(e===document.documentElement&&e===document.body)&&(t=f.changedTouches[0].pageY)},r=f=>{if(!e||e===document.documentElement||e===document.body){f.preventDefault();return}let p=f.changedTouches[0].pageY,m=e.scrollTop,b=e.scrollHeight-e.clientHeight;b!==0&&((m<=0&&p>t||m>=b&&p{let p=f.target;Fg(p)&&p!==document.activeElement&&(f.preventDefault(),p.style.transform="translateY(-2000px)",p.focus(),requestAnimationFrame(()=>{p.style.transform=""}))},a=f=>{let p=f.target;Fg(p)&&(p.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{p.style.transform="",Dx&&(Dx.height{AM(p)}):Dx.addEventListener("resize",()=>AM(p),{once:!0}))}))},i=()=>{window.scrollTo(0,0)},s=window.pageXOffset,l=window.pageYOffset,c=EC(Lg(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Lg(document.documentElement,"overflow","hidden"));window.scrollTo(0,0);let u=EC(mf(document,"touchstart",n,{passive:!1,capture:!0}),mf(document,"touchmove",r,{passive:!1,capture:!0}),mf(document,"touchend",o,{passive:!1,capture:!0}),mf(document,"focus",a,!0),mf(window,"scroll",i));return()=>{c(),u(),window.scrollTo(s,l)}}function Lg(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function mf(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function AM(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=wF(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top,a=e.getBoundingClientRect().bottom,i=n.getBoundingClientRect().bottom;a>i&&(n.scrollTop+=o-r)}e=n.parentElement}}function Fg(e){return e instanceof HTMLInputElement&&!$6e.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function P6e(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function T6e(...e){return t=>e.forEach(n=>P6e(n,t))}function CF(...e){return S.useCallback(T6e(...e),e)}var Cs=null;function k6e({isOpen:e,modal:t,nested:n,hasBeenOpened:r}){let o=A.useRef(0);function a(){if(Cs===null&&e){Cs={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height};let{scrollX:s,innerHeight:l}=window;document.body.style.setProperty("position","fixed","important"),document.body.style.top=`${-o.current}px`,document.body.style.left=`${-s}px`,document.body.style.right="0px",document.body.style.height="auto",setTimeout(()=>requestAnimationFrame(()=>{let c=l-window.innerHeight;c&&o.current>=l&&(document.body.style.top=`${-(o.current+c)}px`)}),300)}}function i(){if(Cs!==null){let s=-parseInt(document.body.style.top,10),l=-parseInt(document.body.style.left,10);document.body.style.position=Cs.position,document.body.style.top=Cs.top,document.body.style.left=Cs.left,document.body.style.height=Cs.height,document.body.style.right="unset",requestAnimationFrame(()=>{window.scrollTo(l,s)}),Cs=null}}return A.useEffect(()=>{function s(){o.current=window.scrollY}return s(),window.addEventListener("scroll",s),()=>{window.removeEventListener("scroll",s)}},[]),A.useEffect(()=>{n||!r||(e?(a(),t||setTimeout(()=>{i()},500)):i())},[e,r]),{restorePositionSetting:i}}var $F=new WeakMap;function Hn(e,t,n=!1){if(!e||!(e instanceof HTMLElement)||!t)return;let r={};Object.entries(t).forEach(([o,a])=>{if(o.startsWith("--")){e.style.setProperty(o,a);return}r[o]=e.style[o],e.style[o]=a}),!n&&$F.set(e,r)}function av(e,t){if(!e||!(e instanceof HTMLElement))return;let n=$F.get(e);n&&(t?e.style[t]=n[t]:Object.entries(n).forEach(([r,o])=>{e.style[r]=o}))}function iv(e){let t=window.getComputedStyle(e),n=t.transform||t.webkitTransform||t.mozTransform,r=n.match(/^matrix3d\((.+)\)$/);return r?parseFloat(r[1].split(", ")[13]):(r=n.match(/^matrix\((.+)\)$/),r?parseFloat(r[1].split(", ")[5]):null)}function O6e(e){return 8*(Math.log(e+1)-2)}var On={DURATION:.5,EASE:[.32,.72,0,1]},SF=.4;function _F(e){let t=A.useRef(e);return A.useEffect(()=>{t.current=e}),A.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function R6e({defaultProp:e,onChange:t}){let n=A.useState(e),[r]=n,o=A.useRef(r),a=_F(t);return A.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}function D6e({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,o]=R6e({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=_F(n),l=A.useCallback(c=>{if(a){let u=typeof c=="function"?c(e):c;u!==e&&s(u)}else o(c)},[a,e,o,s]);return[i,l]}function M6e({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:a,onSnapPointChange:i}){let[s,l]=D6e({prop:e,defaultProp:n==null?void 0:n[0],onChange:t}),c=A.useMemo(()=>s===(n==null?void 0:n[n.length-1]),[n,s]),u=n&&n.length>0&&a&&n[a]===s||!n,f=A.useMemo(()=>{var y;return(y=n==null?void 0:n.findIndex(x=>x===s))!=null?y:null},[n,s]),p=A.useMemo(()=>{var y;return(y=n==null?void 0:n.map(x=>{let C=typeof window<"u",_=typeof x=="string",$=0;_&&($=parseInt(x,10));let P=_?$:C?x*window.innerHeight:0;return C?window.innerHeight-P:P}))!=null?y:[]},[n]),m=A.useMemo(()=>f!==null?p==null?void 0:p[f]:null,[p,f]),b=A.useCallback(y=>{var x;let C=(x=p==null?void 0:p.findIndex(_=>_===y))!=null?x:null;i(C),Hn(r.current,{transition:`transform ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,transform:`translate3d(0, ${y}px, 0)`}),p&&C!==p.length-1&&C!==a?Hn(o.current,{transition:`opacity ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,opacity:"0"}):Hn(o.current,{transition:`opacity ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,opacity:"1"}),l(C!==null?n==null?void 0:n[C]:null)},[r,n,p,a,o,l]);A.useEffect(()=>{var y;if(e){let x=(y=n==null?void 0:n.findIndex(C=>C===e))!=null?y:null;p&&x&&typeof p[x]=="number"&&b(p[x])}},[e,n,p,b]);function v({draggedDistance:y,closeDrawer:x,velocity:C}){if(a===void 0)return;let _=m-y,$=f===a-1,P=f===0;if($&&Hn(o.current,{transition:`opacity ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`}),C>2&&y<0){x();return}if(C>2&&y>0&&p&&n){b(p[n.length-1]);return}let k=p==null?void 0:p.reduce((I,D)=>typeof I!="number"||typeof D!="number"?I:Math.abs(D-_)SF&&Math.abs(y)0?1:-1;if(I>0&&c){b(p[n.length-1]);return}if(P&&I<0&&x(),f===null)return;b(p[f+I]);return}b(k)}function w({draggedDistance:y}){if(m===null)return;let x=m-y;Hn(r.current,{transform:`translate3d(0, ${x}px, 0)`})}function g(y,x){if(!n||typeof f!="number"||!p||a===void 0)return null;let C=f===a-1;if(f>=a&&x)return 0;if(C&&!x)return 1;if(!u&&!C)return null;let _=C?f+1:f-1,$=C?p[_]-p[_-1]:p[_+1]-p[_],P=y/Math.abs($);return C?1-P:P}return{isLastSnapPoint:c,activeSnapPoint:s,shouldFade:u,getPercentageDragged:g,setActiveSnapPoint:l,activeSnapPointIndex:f,onRelease:v,onDrag:w,snapPointsOffset:p}}var I6e=.25,A6e=500,NM=8,Cl=16,jM=26;function EF({open:e,onOpenChange:t,children:n,shouldScaleBackground:r,onDrag:o,onRelease:a,snapPoints:i,nested:s,closeThreshold:l=I6e,scrollLockTimeout:c=A6e,dismissible:u=!0,fadeFromIndex:f=i&&i.length-1,activeSnapPoint:p,setActiveSnapPoint:m,fixed:b,modal:v=!0,onClose:w}){var g;let[y=!1,x]=A.useState(!1),[C,_]=A.useState(!1),[$,P]=A.useState(!1),[k,I]=A.useState(!1),[D,F]=A.useState(!1),[U,G]=A.useState(!1),z=A.useRef(null),B=A.useRef(null),Y=A.useRef(null),Q=A.useRef(null),H=A.useRef(null),J=A.useRef(!1),X=A.useRef(null),L=A.useRef(0),K=A.useRef(!1),q=A.useRef(0),R=A.useRef(null),N=A.useRef(((g=R.current)==null?void 0:g.getBoundingClientRect().height)||0),V=A.useRef(0),Z=A.useCallback(Pe=>{i&&Pe===ge.length-1&&(B.current=new Date)},[]),{activeSnapPoint:re,activeSnapPointIndex:le,setActiveSnapPoint:xe,onRelease:fe,snapPointsOffset:ge,onDrag:he,shouldFade:_e,getPercentageDragged:ve}=M6e({snapPoints:i,activeSnapPointProp:p,setActiveSnapPointProp:m,drawerRef:R,fadeFromIndex:f,overlayRef:z,onSnapPointChange:Z});S6e({isDisabled:!y||D||!v||U||!C});let{restorePositionSetting:Be}=k6e({isOpen:y,modal:v,nested:s,hasBeenOpened:C});function Ue(){return(window.innerWidth-jM)/window.innerWidth}function ze(Pe){var Te;!u&&!i||D||R.current&&!R.current.contains(Pe.target)||(N.current=((Te=R.current)==null?void 0:Te.getBoundingClientRect().height)||0,F(!0),Y.current=new Date,xF()&&window.addEventListener("touchend",()=>J.current=!1,{once:!0}),Pe.target.setPointerCapture(Pe.pointerId),L.current=Pe.clientY)}function He(Pe,Te){var it;let ct=Pe,gt=new Date,Ne=(it=window.getSelection())==null?void 0:it.toString(),ne=R.current?iv(R.current):null;if(B.current&>.getTime()-B.current.getTime()<500)return!1;if(ne>0)return!0;if(Ne&&Ne.length>0)return!1;if(H.current&>.getTime()-H.current.getTime()ct.clientHeight){if(ct.getAttribute("role")==="dialog")return!0;if(Te&&ct!==document.body&&!ne&&ne>=0)return H.current=new Date,!1;if(ct.scrollTop!==0)return H.current=new Date,!1}ct=ct.parentNode}return!0}function be(Pe){if(D){let Te=L.current-Pe.clientY,it=Te>0;if(i&&le===0&&!u||!J.current&&!He(Pe.target,it))return;if(J.current=!0,Hn(R.current,{transition:"none"}),Hn(z.current,{transition:"none"}),i&&he({draggedDistance:Te}),Te>0&&!i){let ie=O6e(Te);Hn(R.current,{transform:`translate3d(0, ${Math.min(ie*-1,0)}px, 0)`});return}let ct=Math.abs(Te),gt=document.querySelector("[vaul-drawer-wrapper]"),Ne=ct/N.current,ne=ve(ct,it);ne!==null&&(Ne=ne);let te=1-Ne;if((_e||f&&le===f-1)&&(o==null||o(Pe,Ne),Hn(z.current,{opacity:`${te}`,transition:"none"},!0)),gt&&z.current&&r){let ie=Math.min(Ue()+Ne*(1-Ue()),1),$e=8-Ne*8,Se=Math.max(0,14-Ne*14);Hn(gt,{borderRadius:`${$e}px`,transform:`scale(${ie}) translate3d(0, ${Se}px, 0)`,transition:"none"},!0)}i||Hn(R.current,{transform:`translate3d(0, ${ct}px, 0)`})}}A.useEffect(()=>()=>{rt(!1),Be()},[]),A.useEffect(()=>{var Pe;function Te(){var it;if(!R.current)return;let ct=document.activeElement;if(Fg(ct)||K.current){let gt=((it=window.visualViewport)==null?void 0:it.height)||0,Ne=window.innerHeight-gt,ne=R.current.getBoundingClientRect().height||0;V.current||(V.current=ne);let te=R.current.getBoundingClientRect().top;if(Math.abs(q.current-Ne)>60&&(K.current=!K.current),i&&i.length>0&&ge&&le){let ie=ge[le]||0;Ne+=ie}if(q.current=Ne,ne>gt||K.current){let ie=R.current.getBoundingClientRect().height,$e=ie;ie>gt&&($e=gt-jM),b?R.current.style.height=`${ie-Math.max(Ne,0)}px`:R.current.style.height=`${Math.max($e,gt-te)}px`}else R.current.style.height=`${V.current}px`;i&&i.length>0&&!K.current?R.current.style.bottom="0px":R.current.style.bottom=`${Math.max(Ne,0)}px`}}return(Pe=window.visualViewport)==null||Pe.addEventListener("resize",Te),()=>{var it;return(it=window.visualViewport)==null?void 0:it.removeEventListener("resize",Te)}},[le,i,ge]);function we(){R.current&&(w==null||w(),R.current&&(Hn(R.current,{transform:"translate3d(0, 100%, 0)",transition:`transform ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`}),Hn(z.current,{opacity:"0",transition:`opacity ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`}),rt(!1)),setTimeout(()=>{P(!1),x(!1)},300),setTimeout(()=>{i&&xe(i[0])},500))}A.useEffect(()=>{if(!y&&r){let Pe=setTimeout(()=>{av(document.body)},200);return()=>clearTimeout(Pe)}},[y,r]),A.useEffect(()=>{e?(x(!0),_(!0)):we()},[e]),A.useEffect(()=>{k&&(t==null||t(y))},[y]),A.useEffect(()=>{I(!0)},[]);function Ce(){if(!R.current)return;let Pe=document.querySelector("[vaul-drawer-wrapper]"),Te=iv(R.current);Hn(R.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`}),Hn(z.current,{transition:`opacity ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,opacity:"1"}),r&&Te&&Te>0&&y&&Hn(Pe,{borderRadius:`${NM}px`,overflow:"hidden",transform:`scale(${Ue()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top",transitionProperty:"transform, border-radius",transitionDuration:`${On.DURATION}s`,transitionTimingFunction:`cubic-bezier(${On.EASE.join(",")})`},!0)}function qe(Pe){if(!D||!R.current)return;J.current&&Fg(Pe.target)&&Pe.target.blur(),J.current=!1,F(!1),Q.current=new Date;let Te=iv(R.current);if(!He(Pe.target,!1)||!Te||Number.isNaN(Te)||Y.current===null)return;let it=Pe.clientY,ct=Q.current.getTime()-Y.current.getTime(),gt=L.current-it,Ne=Math.abs(gt)/ct;if(Ne>.05&&(G(!0),setTimeout(()=>{G(!1)},200)),i){fe({draggedDistance:gt,closeDrawer:we,velocity:Ne});return}if(gt>0){Ce(),a==null||a(Pe,!0);return}if(Ne>SF){we(),a==null||a(Pe,!1);return}let ne=Math.min(R.current.getBoundingClientRect().height||0,window.innerHeight);if(Te>=ne*l){we(),a==null||a(Pe,!1);return}a==null||a(Pe,!0),Ce()}A.useEffect(()=>{y&&(B.current=new Date,rt(!0))},[y]);function rt(Pe){let Te=document.querySelector("[vaul-drawer-wrapper]");!Te||!r||(Pe?(Hn(document.body,{background:"black"},!0),Hn(Te,{borderRadius:`${NM}px`,overflow:"hidden",transform:`scale(${Ue()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top",transitionProperty:"transform, border-radius",transitionDuration:`${On.DURATION}s`,transitionTimingFunction:`cubic-bezier(${On.EASE.join(",")})`})):(av(Te,"overflow"),av(Te,"transform"),av(Te,"borderRadius"),Hn(Te,{transitionProperty:"transform, border-radius",transitionDuration:`${On.DURATION}s`,transitionTimingFunction:`cubic-bezier(${On.EASE.join(",")})`})))}function Ae(Pe){let Te=Pe?(window.innerWidth-Cl)/window.innerWidth:1,it=Pe?-Cl:0;X.current&&window.clearTimeout(X.current),Hn(R.current,{transition:`transform ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,transform:`scale(${Te}) translate3d(0, ${it}px, 0)`}),!Pe&&R.current&&(X.current=setTimeout(()=>{Hn(R.current,{transition:"none",transform:`translate3d(0, ${iv(R.current)}px, 0)`})},500))}function Le(Pe,Te){if(Te<0)return;let it=(window.innerWidth-Cl)/window.innerWidth,ct=it+Te*(1-it),gt=-Cl+Te*Cl;Hn(R.current,{transform:`scale(${ct}) translate3d(0, ${gt}px, 0)`,transition:"none"})}function Fe(Pe,Te){let it=Te?(window.innerWidth-Cl)/window.innerWidth:1,ct=Te?-Cl:0;Te&&Hn(R.current,{transition:`transform ${On.DURATION}s cubic-bezier(${On.EASE.join(",")})`,transform:`scale(${it}) translate3d(0, ${ct}px, 0)`})}return A.createElement(u6e,{modal:v,onOpenChange:Pe=>{Pe?(_(!0),x(Pe)):we()},open:y},A.createElement(bF.Provider,{value:{visible:$,activeSnapPoint:re,snapPoints:i,setActiveSnapPoint:xe,drawerRef:R,overlayRef:z,scaleBackground:rt,onPress:ze,setVisible:P,onRelease:qe,onDrag:be,dismissible:u,isOpen:y,shouldFade:_e,closeDrawer:we,onNestedDrag:Le,onNestedOpenChange:Ae,onNestedRelease:Fe,keyboardIsOpen:K,modal:v,snapPointsOffset:ge}},n))}var PF=A.forwardRef(function({children:e,...t},n){let{overlayRef:r,snapPoints:o,onRelease:a,shouldFade:i,isOpen:s,visible:l}=eP(),c=CF(n,r),u=o&&o.length>0;return A.createElement(p6e,{onMouseUp:a,ref:c,"vaul-drawer-visible":l?"true":"false","vaul-overlay":"","vaul-snap-points":s&&u?"true":"false","vaul-snap-points-overlay":s&&i?"true":"false",...t})});PF.displayName="Drawer.Overlay";var TF=A.forwardRef(function({children:e,onOpenAutoFocus:t,onPointerDownOutside:n,onAnimationEnd:r,style:o,...a},i){let{drawerRef:s,onPress:l,onRelease:c,onDrag:u,dismissible:f,keyboardIsOpen:p,snapPointsOffset:m,visible:b,closeDrawer:v,modal:w,setVisible:g}=eP(),y=CF(i,s);return A.useEffect(()=>{g(!0)},[]),A.createElement(h6e,{onOpenAutoFocus:x=>{t?t(x):(x.preventDefault(),s.current.focus())},onPointerDown:l,onPointerDownOutside:x=>{if(!w){x.preventDefault();return}p.current&&(p.current=!1),x.preventDefault(),f&&(v(),n==null||n(x))},onPointerMove:u,onPointerUp:c,ref:y,style:m&&m.length>0?{"--snap-point-height":`${m[0]}px`,...o}:o,...a,"vaul-drawer":"","vaul-drawer-visible":b?"true":"false"},e)});TF.displayName="Drawer.Content";function N6e({children:e,onDrag:t,onOpenChange:n,...r}){let{onNestedDrag:o,onNestedOpenChange:a,onNestedRelease:i}=eP();if(!o)throw new Error("Drawer.NestedRoot must be placed in another drawer");return A.createElement(EF,{nested:!0,onClose:()=>{a(!1)},onDrag:(s,l)=>{o(s,l),t==null||t(s,l)},onOpenChange:s=>{s&&a(s),n==null||n(s)},onRelease:i,...r},e)}var vf={Root:EF,NestedRoot:N6e,Content:TF,Overlay:PF,Trigger:d6e,Portal:f6e,Close:g6e,Title:m6e,Description:v6e};const j6e=e=>S.createElement("svg",{width:19,height:13,viewBox:"0 0 19 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.75657 0.91107C7.08201 1.23651 7.08201 1.76414 6.75657 2.08958L2.34583 6.50033L6.75657 10.9111C7.08201 11.2365 7.08201 11.7641 6.75657 12.0896C6.43114 12.415 5.9035 12.415 5.57806 12.0896L0.578062 7.08958C0.252625 6.76414 0.252625 6.23651 0.578062 5.91107L5.57806 0.91107C5.9035 0.585633 6.43114 0.585633 6.75657 0.91107ZM12.2447 0.91107C12.5702 0.585633 13.0978 0.585633 13.4232 0.91107L18.4232 5.91107C18.7487 6.23651 18.7487 6.76414 18.4232 7.08958L13.4232 12.0896C13.0978 12.415 12.5702 12.415 12.2447 12.0896C11.9193 11.7641 11.9193 11.2365 12.2447 10.9111L16.6555 6.50033L12.2447 2.08958C11.9193 1.76414 11.9193 1.23651 12.2447 0.91107Z",fill:"currentColor",fillOpacity:.9})),L6e=e=>S.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 5.33301C4 3.12387 5.79086 1.33301 8 1.33301C10.2091 1.33301 12 3.12387 12 5.33301V6.76656C12.1884 6.80784 12.3692 6.86796 12.544 6.95699C13.0457 7.21265 13.4537 7.6206 13.7093 8.12237C13.8742 8.44592 13.9399 8.79039 13.9705 9.16512C14 9.52592 14 9.96882 14 10.5055V10.8272C14 11.3639 14 11.8068 13.9705 12.1676C13.9399 12.5423 13.8742 12.8868 13.7093 13.2103C13.4537 13.7121 13.0457 14.12 12.544 14.3757C12.2204 14.5406 11.8759 14.6063 11.5012 14.6369C11.1404 14.6664 10.6975 14.6663 10.1609 14.6663H5.83912C5.30248 14.6663 4.85958 14.6664 4.49878 14.6369C4.12405 14.6063 3.77958 14.5406 3.45603 14.3757C2.95426 14.12 2.54631 13.7121 2.29065 13.2103C2.12579 12.8868 2.06008 12.5423 2.02946 12.1676C1.99998 11.8068 1.99999 11.3639 2 10.8272V10.5055C1.99999 9.96883 1.99998 9.52592 2.02946 9.16512C2.06008 8.79039 2.12579 8.44592 2.29065 8.12237C2.54631 7.6206 2.95426 7.21265 3.45603 6.95699C3.63076 6.86796 3.81159 6.80784 4 6.76656V5.33301ZM5.33333 6.66742C5.49181 6.66634 5.66026 6.66634 5.83913 6.66634H10.1609C10.3397 6.66634 10.5082 6.66634 10.6667 6.66742V5.33301C10.6667 3.86025 9.47276 2.66634 8 2.66634C6.52724 2.66634 5.33333 3.86025 5.33333 5.33301V6.66742ZM4.60736 8.02471C4.31508 8.04859 4.16561 8.09187 4.06135 8.145C3.81046 8.27283 3.60649 8.4768 3.47866 8.72769C3.42553 8.83195 3.38225 8.98142 3.35837 9.2737C3.33385 9.57376 3.33333 9.96195 3.33333 10.533V10.7997C3.33333 11.3707 3.33385 11.7589 3.35837 12.059C3.38225 12.3513 3.42553 12.5007 3.47866 12.605C3.60649 12.8559 3.81046 13.0599 4.06135 13.1877C4.16561 13.2408 4.31508 13.2841 4.60736 13.308C4.90742 13.3325 5.29561 13.333 5.86667 13.333H10.1333C10.7044 13.333 11.0926 13.3325 11.3926 13.308C11.6849 13.2841 11.8344 13.2408 11.9387 13.1877C12.1895 13.0599 12.3935 12.8559 12.5213 12.605C12.5745 12.5007 12.6178 12.3513 12.6416 12.059C12.6661 11.7589 12.6667 11.3707 12.6667 10.7997V10.533C12.6667 9.96195 12.6661 9.57376 12.6416 9.2737C12.6178 8.98142 12.5745 8.83195 12.5213 8.72769C12.3935 8.4768 12.1895 8.27283 11.9387 8.145C11.8344 8.09187 11.6849 8.04859 11.3926 8.02471C11.0926 8.00019 10.7044 7.99967 10.1333 7.99967H5.86667C5.29561 7.99967 4.90742 8.00019 4.60736 8.02471Z",fill:"currentColor"})),F6e=e=>S.createElement("svg",{width:25,height:25,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{d:"M4.5 19.7783C4.5 21.5132 5.35498 22.3848 7.07324 22.3848H14.876C16.5942 22.3848 17.4492 21.5049 17.4492 19.7783V18.2427H18.9019C20.6118 18.2427 21.4751 17.3628 21.4751 15.6362V8.896C21.4751 7.875 21.2676 7.22754 20.645 6.58838L16.4531 2.33008C15.8638 1.72412 15.1665 1.5 14.2783 1.5H11.0991C9.38916 1.5 8.52588 2.37988 8.52588 4.10645V5.64209H7.07324C5.36328 5.64209 4.5 6.51367 4.5 8.24854V19.7783ZM16.6606 11.0874L12.0869 6.43066C11.4561 5.7832 10.9331 5.64209 10.0034 5.64209H9.8623V4.13135C9.8623 3.30957 10.3022 2.83643 11.1655 2.83643H14.8345V7.09473C14.8345 8.05762 15.2993 8.51416 16.2539 8.51416H20.1387V15.6113C20.1387 16.4414 19.6904 16.9062 18.8271 16.9062H17.4492V13.2954C17.4492 12.2329 17.3247 11.7681 16.6606 11.0874ZM16.0381 6.89551V3.49219L19.79 7.31055H16.4448C16.1543 7.31055 16.0381 7.18604 16.0381 6.89551ZM5.83643 19.7534V8.26514C5.83643 7.45166 6.27637 6.97852 7.13965 6.97852H9.8623V11.793C9.8623 12.8389 10.3936 13.3618 11.4229 13.3618H16.1128V19.7534C16.1128 20.5835 15.6646 21.0483 14.8096 21.0483H7.13135C6.27637 21.0483 5.83643 20.5835 5.83643 19.7534ZM11.5806 12.1084C11.2485 12.1084 11.1157 11.9756 11.1157 11.6436V7.28564L15.8555 12.1084H11.5806Z",fill:"currentColor"})),z6e=e=>S.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.45455C8.38505 5.45455 5.45455 8.38505 5.45455 12C5.45455 15.615 8.38505 18.5455 12 18.5455C15.615 18.5455 18.5455 15.615 18.5455 12C18.5455 8.38505 15.615 5.45455 12 5.45455ZM4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM15.787 9.30392C16.071 9.58794 16.071 10.0484 15.787 10.3324L11.4233 14.6961C11.1393 14.9801 10.6788 14.9801 10.3948 14.6961L8.21301 12.5143C7.929 12.2303 7.929 11.7697 8.21301 11.4857C8.49703 11.2017 8.95751 11.2017 9.24153 11.4857L10.9091 13.1533L14.7585 9.30392C15.0425 9.01991 15.503 9.01991 15.787 9.30392Z",fill:"currentColor"})),Ix=2e3;function PC(e){let t=null,n=e;n.endsWith("/")&&(n=n.slice(0,-1)),n.endsWith("/playground")&&(n=n.slice(0,-11));const[r,o,...a]=n.split("/").reverse();if(o==="c"){n=a.reverse().join("/");try{t=JSON.parse(F0.decompressFromEncodedURIComponent(r))}catch(i){console.error(i)}}return{basePath:n,configFromUrl:t}}function Ax(e){const[t,n]=S.useState(!1),r=S.useRef(null);function o(){n(!0),r.current!=null&&window.clearTimeout(r.current),r.current=window.setTimeout(()=>n(!1),1500)}return S.useEffect(()=>()=>{r.current!=null&&window.clearTimeout(r.current)},[]),O.jsx("button",{className:"px-3 py-1",onClick:()=>{navigator.clipboard.writeText(e.value).then(o)},children:t?O.jsx(z6e,{}):O.jsx(F6e,{})})}function B6e(e){const t=S.useMemo(()=>F0.compressToEncodedURIComponent(JSON.stringify(e.config)),[e.config]),r=`${PC(window.location.href).basePath}/c/${t}`,o=`${r}/playground`,a=`${r}/invoke`,i=` -from langserve import RemoteRunnable - -chain = RemoteRunnable("${r}") -chain.invoke({ ... }) -`,s=` -import { RemoteRunnable } from "langchain/runnables/remote"; - -const chain = new RemoteRunnable({ url: \`${a}\` }); -const result = await chain.invoke({ ... }); -`;return O.jsxs(vf.Root,{children:[O.jsx(vf.Trigger,{asChild:!0,children:e.children}),O.jsxs(vf.Portal,{children:[O.jsx(vf.Overlay,{className:"fixed inset-0 bg-black/40"}),O.jsx(vf.Content,{className:"flex justify-center items-center mt-24 fixed bottom-0 left-0 right-0 text-ls-black !pointer-events-none after:!bg-background",children:O.jsxs("div",{className:"p-4 bg-background max-w-[calc(800px-2rem)] rounded-t-2xl border border-divider-500 border-b-background pointer-events-auto",children:[O.jsx("h3",{className:"text-xl font-medium",children:"Share"}),O.jsx("hr",{className:"border-divider-500 my-4 -mx-4"}),O.jsxs("div",{className:"flex flex-col gap-3",children:[o.length{var t,n;return e.type!=="array"||typeof e.items!="object"||e.items==null?!1:"type"in e.items&&e.items.type!=null&&e.items.title!=null?e.items.type==="object"&&(((t=e.items.title)==null?void 0:t.endsWith("Message"))||((n=e.items.title)==null?void 0:n.endsWith("MessageChunk"))):"anyOf"in e.items&&e.items.anyOf!=null?e.items.anyOf.every(r=>{var i,s;const o=r.type==="object"&&(((i=r.title)==null?void 0:i.endsWith("Message"))||((s=r.title)==null?void 0:s.endsWith("MessageChunk"))),a=r.type==="array"&&r.minItems===2&&r.maxItems===2&&Array.isArray(r.items)&&r.items.length===2&&r.items.every(l=>l.type==="string");return o||a}):!1}))),U6e=so(e=>{const t=e.data??[];return O.jsxs("div",{className:"control",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("label",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:e.label||"Messages"}),O.jsx("button",{className:"p-1 rounded-full",onClick:()=>{const n=t.length?t[t.length-1].type:"ai";e.handleChange(e.path,[...t,{content:"",type:n==="human"?"ai":"human"}])},children:O.jsx(JE,{className:"w-5 h-5"})})]}),O.jsx("div",{className:"flex flex-col gap-3 mt-1 empty:hidden",children:t.map((n,r)=>{const o=Wr.compose(e.path,`${r}`),a=n.type??"chat";return O.jsxs("div",{className:"control group",children:[O.jsxs("div",{className:"flex items-start justify-between gap-2",children:[O.jsxs("select",{className:"-ml-1 min-w-[100px]",value:a,onChange:i=>{e.handleChange(Wr.compose(o,"type"),i.target.value)},children:[O.jsx("option",{value:"human",children:"Human"}),O.jsx("option",{value:"ai",children:"AI"}),O.jsx("option",{value:"system",children:"System"}),O.jsx("option",{value:"function",children:"Function"}),O.jsx("option",{value:"chat",children:"Chat"})]}),O.jsx("button",{className:"p-1 border rounded opacity-0 transition-opacity border-divider-700 group-focus-within:opacity-100 group-hover:opacity-100",onClick:()=>{e.handleChange(e.path,t.filter((i,s)=>s!==r))},children:O.jsx(KE,{className:"w-4 h-4"})})]}),a==="chat"&&O.jsx("input",{className:"mb-1",placeholder:"Role",value:n.role??"",onChange:i=>{e.handleChange(Wr.compose(o,"role"),i.target.value)}}),a==="function"&&O.jsx("input",{className:"mb-1",placeholder:"Function Name",value:n.name??"",onChange:i=>{e.handleChange(Wr.compose(o,"name"),i.target.value)}}),O.jsx(B0,{value:n.content,onChange:i=>{e.handleChange(Wr.compose(o,"content"),i)}})]},r)})})]})});function kF(e){return!(!("extra"in e&&typeof e.extra=="object"&&e.extra!=null)||!("widget"in e.extra&&typeof e.extra.widget=="object"&&e.extra.widget!=null))}const W6e=mn(12,Cn(Wa,qr(e=>e.type!=="array"||typeof e.items!="object"||e.items==null||!kF(e)||e.extra.widget.type!=="chat"?!1:"type"in e.items?e.items.type==="array"&&e.items.minItems===2&&e.items.maxItems===2&&Array.isArray(e.items.items)&&e.items.items.length===2&&e.items.items.every(t=>t.type==="string"):!1))),H6e=so(e=>{const t=e.data??[];return O.jsxs("div",{className:"control",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("label",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:e.label||"Messages"}),O.jsx("button",{className:"p-1 rounded-full",onClick:()=>{const n=t.length?t[t.length-1][0]:"ai";e.handleChange(e.path,[...t,[n==="ai"?"human":"ai",""]])},children:O.jsx(JE,{className:"w-5 h-5"})})]}),O.jsx("div",{className:"flex flex-col gap-3 mt-1 empty:hidden",children:t.map(([n,r],o)=>{const a=Wr.compose(e.path,`${o}`);return O.jsxs("div",{className:"control group",children:[O.jsxs("div",{className:"flex items-start justify-between gap-2",children:[O.jsxs("select",{className:"-ml-1 min-w-[100px]",value:n,onChange:i=>{e.handleChange(Wr.compose(a,"0"),i.target.value)},children:[O.jsx("option",{value:"human",children:"Human"}),O.jsx("option",{value:"ai",children:"AI"}),O.jsx("option",{value:"system",children:"System"})]}),O.jsx("button",{className:"p-1 border rounded opacity-0 transition-opacity border-divider-700 group-focus-within:opacity-100 group-hover:opacity-100",onClick:()=>{e.handleChange(e.path,t.filter((i,s)=>s!==o))},children:O.jsx(KE,{className:"w-4 h-4"})})]}),O.jsx(B0,{value:r,onChange:i=>{e.handleChange(Wr.compose(a,"1"),i)}})]},o)})})]})}),G6e=mn(12,Cn(Wa,qr(e=>kF(e)?e.extra.widget.type==="base64file":!1))),q6e=so(e=>{const t=n=>{var a;const r=(a=n.target.files)==null?void 0:a[0];if(!r)return;const o=new FileReader;o.onload=()=>{const i=o.result;if(i!=null){const s=i.indexOf("base64,")+7;e.handleChange(e.path,i.slice(s))}},o.readAsDataURL(r)};return O.jsxs("div",{className:"control",children:[O.jsx("label",{className:"text-xs uppercase font-semibold text-ls-gray-100",children:e.label}),O.jsx("input",{type:"file",onChange:t})]})}),Y6e=e=>S.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.29289 5.29289C8.68342 4.90237 9.31658 4.90237 9.70711 5.29289L15.7071 11.2929C16.0976 11.6834 16.0976 12.3166 15.7071 12.7071L9.70711 18.7071C9.31658 19.0976 8.68342 19.0976 8.29289 18.7071C7.90237 18.3166 7.90237 17.6834 8.29289 17.2929L13.5858 12L8.29289 6.70711C7.90237 6.31658 7.90237 5.68342 8.29289 5.29289Z",fill:"currentColor"}));function OF(e){return typeof e=="object"?JSON.stringify(e,null,2):e}function K6e(e){const[t,n]=S.useState(!1),r=Object.values(e.latest.logs).length,o=r===0;return O.jsxs("div",{className:"flex flex-col border border-divider-700 rounded-2xl bg-background",children:[O.jsxs("button",{className:"font-medium text-left p-4 flex items-center justify-between",disabled:o,onClick:()=>n(a=>!a),children:[O.jsxs("span",{children:["Intermediate steps"," ",O.jsx("span",{className:"bg-ls-gray-400 text-ls-gray-100 text-sm px-1 py-0.5 rounded-md ml-1",children:r})]}),O.jsx(Y6e,{className:Hs("transition-all",t&&"rotate-90",o&&"opacity-20")})]}),t&&O.jsx("div",{className:"flex flex-col gap-5 p-4 pt-0 divide-solid divide-y divide-divider-700 rounded-b-xl",children:Object.values(e.latest.logs).map(a=>O.jsxs("div",{className:"gap-3 flex-col min-w-0 flex bg-background pt-3 first-of-type:pt-0",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("strong",{className:"text-sm font-medium",children:a.name}),O.jsx("p",{className:"text-sm",children:yr.utc(a.start_time).fromNow()})]}),O.jsx("pre",{className:"break-words whitespace-pre-wrap min-w-0 text-sm bg-ls-gray-400 rounded-lg p-3",children:OF(a.final_output)??"..."})]},a.id))})]})}class zg{constructor(t){Vd(this,"content");Vd(this,"name");Vd(this,"additional_kwargs");t.additional_kwargs||(t.additional_kwargs={}),this.name=t.name,this.content=t.content,this.additional_kwargs=t.additional_kwargs}static _mergeAdditionalKwargs(t,n){const r={...t};for(const[o,a]of Object.entries(n))if(r[o]===void 0)r[o]=a;else{if(typeof r[o]!=typeof a)throw new Error(`additional_kwargs[${o}] already exists in the message chunk, but with a different type.`);if(typeof r[o]=="string")r[o]=r[o]+a;else if(!Array.isArray(r[o])&&typeof r[o]=="object")r[o]=this._mergeAdditionalKwargs(r[o],a);else throw new Error(`additional_kwargs[${o}] already exists in this message chunk.`)}return r}concat(t){return new zg({content:this.content+t.content,additional_kwargs:zg._mergeAdditionalKwargs(this.additional_kwargs,t.additional_kwargs)})}}function J6e(e){return typeof e!="object"||e==null?!1:"content"in e&&typeof e.content=="string"}function Z6e(e){return e.length>0&&e.every(t=>J6e(t))}function X6e(e){var t;if(Z6e(e.streamed)){const n=e.streamed.reduce((o,a)=>{const i=new zg(a);return o==null?i:o.concat(i)},null),r=(t=n==null?void 0:n.additional_kwargs)==null?void 0:t.function_call;return(n==null?void 0:n.content)||!!r&&JSON.stringify(r,null,2)||"..."}return e.streamed.map(OF).join("")||"..."}const Q6e=E4(e=>{const t=Py(e.schema.anyOf,e.rootSchema,"anyOf",e.uischema,e.path,e.uischemas),n=t.length-1,r=t[n];return O.jsx(Eo,{schema:r.schema,uischema:r.uischema,path:e.path,renderers:TC,cells:kC})}),eFe=mn(3,Nj);yr.extend(p3e);yr.extend(d3e);const tFe=mn(2,Cn(Sn("Control"),Ha("object"),qr(e=>Object.prototype.hasOwnProperty.call(e,"properties")))),nFe=mn(1,Cn(Sn("Control"),Ha("object"))),rFe=mn(1,Cn(Sn("Control"))),TC=[...a4e,{tester:tFe,renderer:fNe},{tester:AAe,renderer:NAe},{tester:hNe,renderer:mNe},{tester:eFe,renderer:Q6e},{tester:X4e,renderer:J6},{tester:nFe,renderer:z6},{tester:V6e,renderer:U6e},{tester:W6e,renderer:H6e},{tester:G6e,renderer:q6e}],oFe=mn(1,(e,t)=>t.type==="array"),kC=[{tester:B3e,cell:V3e},{tester:W3e,cell:H3e},{tester:q3e,cell:Y3e},{tester:J3e,cell:Z3e},{tester:eje,cell:tje},{tester:oje,cell:aje},{tester:lje,cell:cje},{tester:pje,cell:CM},{tester:dje,cell:CM},{tester:vje,cell:gje},{tester:oFe,cell:J6},{tester:rFe,cell:R5e}];function aFe(){var b,v,w,g,y,x;const[e]=S.useState(()=>window.self!==window.top),t=S.useRef(null),[n,r]=S.useState({data:{},errors:[],defaults:!0}),[o,a]=S.useState({data:null,errors:[]}),i=u4e(n);S.useEffect(()=>{if(i.config){const C=PC(window.location.href);r({data:C.configFromUrl??t.current??Tm(i.config),errors:[],defaults:!0}),a({data:Tm(i.input),errors:[]})}},[i.config]);const{startStream:s,stopStream:l,latest:c}=A4e();S.useEffect(()=>{var C;(C=window.parent)==null||C.postMessage({type:"init"},"*")},[]),S.useEffect(()=>{function C(_){if(_.source===window.parent){const $=_.data;if(typeof $=="object"&&$!=null)switch($.type){case"update":{const P=$.value;if(Object.keys(P.config).length>0){t.current=P.config,r({data:P.config,errors:[],defaults:!1});break}}}}}return window.addEventListener("message",C),()=>window.removeEventListener("message",C)},[]);const u=S.useMemo(()=>i.input?JSON.stringify(Tm(i.input))!==JSON.stringify(o.data):!1,[i.input,o.data]);function f(){var C,_;!l&&((C=o.errors)!=null&&C.length||(_=n.errors)!=null&&_.length)||(l?l():s(o.data,n.data))}const p=S.useRef(null);p.current=f,S.useEffect(()=>{window.addEventListener("keydown",C=>{var _;C.key==="Enter"&&(C.metaKey||C.ctrlKey)&&(C.preventDefault(),(_=p.current)==null||_.call(p))})},[]);const m=!l&&(!!((b=o.errors)!=null&&b.length)||!!((v=n.errors)!=null&&v.length));return!i.config||!i.input?O.jsx(O.Fragment,{}):O.jsx("div",{className:"flex items-center flex-col text-ls-black bg-gradient-to-b from-[#F9FAFB] to-[#EFF8FF] min-h-[100dvh] dark:from-[#0C111C] dark:to-[#0C111C]",children:O.jsxs("div",{className:"flex flex-col flex-grow gap-4 px-4 pt-6 max-w-[800px] w-full",children:[O.jsxs("h1",{className:"text-2xl text-left",children:[O.jsx("strong",{children:"🦜 LangServe"})," Playground"]}),Object.keys(i.config).length>0&&O.jsxs("div",{className:"flex flex-col gap-3 [&:has(.content>.vertical-layout:first-child:last-child:empty)]:hidden",children:[!e&&O.jsx("h2",{className:"text-xl font-semibold",children:"Configure"}),O.jsxs("div",{className:"content flex flex-col gap-3",children:[O.jsx(fR,{schema:i.config,data:n.data,renderers:TC,cells:kC,onChange:({data:C,errors:_})=>C?r({data:C,errors:_,defaults:!1}):void 0}),!!((w=n.errors)!=null&&w.length)&&n.data&&O.jsx("div",{className:"bg-background rounded-xl",children:O.jsxs("div",{className:"bg-red-500/10 text-red-700 dark:text-red-300 rounded-xl p-3",children:[O.jsx("strong",{className:"font-bold",children:"Validation Errors"}),O.jsx("ul",{className:"list-disc pl-5",children:(g=n.errors)==null?void 0:g.map((C,_)=>O.jsx("li",{children:C.message},_))})]})})]})]}),!e&&O.jsxs("div",{className:"flex flex-col gap-3",children:[O.jsx("h2",{className:"text-xl font-semibold",children:"Try it"}),O.jsxs("div",{className:"p-4 border border-divider-700 flex flex-col gap-3 rounded-2xl bg-background",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("h3",{className:"font-medium",children:"Inputs"}),u&&O.jsx("button",{type:"button",className:"text-sm px-1 -mr-1 py-0.5 rounded-md hover:bg-divider-500/50 active:bg-divider-500 text-ls-gray-100",onClick:()=>a({data:Tm(i.input),errors:[]}),children:"Reset"})]}),O.jsx(fR,{schema:i.input,data:o.data,renderers:TC,cells:kC,onChange:({data:C,errors:_})=>a({data:C,errors:_})}),!!((y=o.errors)!=null&&y.length)&&o.data&&O.jsxs("div",{className:"bg-red-500/10 text-red-700 dark:text-red-300 rounded-xl p-3",children:[O.jsx("strong",{className:"font-bold",children:"Validation Errors"}),O.jsx("ul",{className:"list-disc pl-5",children:(x=o.errors)==null?void 0:x.map((C,_)=>O.jsx("li",{children:C.message},_))})]})]}),c&&O.jsxs("div",{className:"flex flex-col gap-3",children:[O.jsx("h2",{className:"text-xl font-semibold",children:"Output"}),O.jsx("div",{className:"p-4 border border-divider-700 flex flex-col gap-3 rounded-2xl bg-background text-lg",children:O.jsx(X6e,{streamed:c.streamed_output})}),O.jsx(K6e,{latest:c})]})]}),O.jsx("div",{className:"flex-grow md:hidden"}),O.jsxs("div",{className:"gap-4 grid grid-cols-2 sticky -mx-4 px-4 py-4 bottom-0 bg-background md:static md:bg-transparent",children:[O.jsx("div",{className:"md:hidden absolute inset-x-0 bottom-full h-5 bg-gradient-to-t from-black/5 to-black/0"}),e?O.jsxs(O.Fragment,{children:[O.jsx("button",{type:"button",className:"px-4 py-3 gap-3 font-medium border border-divider-700 rounded-full flex items-center justify-center hover:bg-divider-500/50 active:bg-divider-500 transition-colors",onClick:()=>{var C;return(C=window.parent)==null?void 0:C.postMessage({type:"close"},"*")},children:"Cancel"}),O.jsx("button",{type:"button",className:"px-4 py-3 gap-3 font-medium border border-transparent rounded-full flex items-center justify-center bg-blue-500 hover:bg-blue-600 active:bg-blue-700 disabled:opacity-50 transition-colors",onClick:()=>{var P;const C=F0.compressToEncodedURIComponent(JSON.stringify(n.data)),$=`${PC(window.location.href).basePath}/c/${C}`;(P=window.parent)==null||P.postMessage({type:"apply",value:{targetUrl:$,config:n.data}},"*")},children:O.jsx("span",{className:"text-white",children:"Apply"})})]}):O.jsxs(O.Fragment,{children:[O.jsx(B6e,{config:n.data,children:O.jsxs("button",{type:"button",className:"px-4 py-3 gap-3 font-medium border border-divider-700 rounded-full flex items-center justify-center hover:bg-divider-500/50 active:bg-divider-500 transition-colors",children:[O.jsx(m3e,{className:"flex-shrink-0"})," ",O.jsx("span",{children:"Share"})]})}),O.jsx("button",{type:"button",className:Hs("px-4 py-3 gap-3 font-medium border border-transparent rounded-full flex items-center justify-center bg-blue-500 disabled:opacity-50 transition-colors",m?"":"hover:bg-blue-600 active:bg-blue-700"),onClick:f,disabled:m,children:l?O.jsxs(O.Fragment,{children:[O.jsxs("div",{role:"status",children:[O.jsxs("svg",{"aria-hidden":"true",className:"w-5 h-5 animate-spin text-white fill-ls-blue",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[O.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),O.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),O.jsx("span",{className:"sr-only",children:"Loading..."})]}),O.jsx("span",{className:"text-white",children:"Stop"})]}):O.jsxs(O.Fragment,{children:[O.jsx(h3e,{className:"flex-shrink-0"}),O.jsx("span",{className:"text-white",children:"Start"})]})})]})]})]})})}Nx.createRoot(document.getElementById("root")).render(O.jsx(aFe,{})); diff --git a/langserve/playground/dist/index.html b/langserve/playground/dist/index.html index 0e176450..bb1e12a9 100644 --- a/langserve/playground/dist/index.html +++ b/langserve/playground/dist/index.html @@ -5,8 +5,8 @@ Playground - - + +
diff --git a/langserve/playground/package.json b/langserve/playground/package.json index 51a0dee8..30cf5485 100644 --- a/langserve/playground/package.json +++ b/langserve/playground/package.json @@ -20,6 +20,7 @@ "@mui/icons-material": "^5.14.11", "@mui/material": "^5.14.11", "@mui/x-date-pickers": "^6.16.0", + "@radix-ui/react-toggle-group": "^1.0.4", "clsx": "^2.0.0", "dayjs": "^1.11.10", "fast-json-patch": "^3.1.1", diff --git a/langserve/playground/src/App.tsx b/langserve/playground/src/App.tsx index d65e654c..3327e0c7 100644 --- a/langserve/playground/src/App.tsx +++ b/langserve/playground/src/App.tsx @@ -41,6 +41,8 @@ import { } from "@jsonforms/vanilla-renderers"; import { useSchemas } from "./useSchemas"; import { useStreamLog } from "./useStreamLog"; +import { StreamCallback } from "./types"; +import { AppCallbackContext } from "./useStreamCallback"; import { JsonFormsCore, RankedTester, @@ -169,8 +171,32 @@ function App() { } // eslint-disable-next-line react-hooks/exhaustive-deps }, [schemas.config]); + + // callbacks handling + const callbacks = useRef<{ + onStart: Exclude[]; + onSuccess: Exclude[]; + onError: Exclude[]; + }>({ onStart: [], onSuccess: [], onError: [] }); + // the runner - const { startStream, stopStream, latest } = useStreamLog(); + const { startStream, stopStream, latest } = useStreamLog({ + onStart(...args) { + for (const callback of callbacks.current.onStart) { + callback(...args); + } + }, + onSuccess(...args) { + for (const callback of callbacks.current.onSuccess) { + callback(...args); + } + }, + onError(...args) { + for (const callback of callbacks.current.onError) { + callback(...args); + } + }, + }); useEffect(() => { window.parent?.postMessage({ type: "init" }, "*"); @@ -237,196 +263,207 @@ function App() { }); }, []); - const isSendDisabled = - !stopStream && - (!!inputData.errors?.length || !!configData.errors?.length) + const isSendDisabled = + !stopStream && (!!inputData.errors?.length || !!configData.errors?.length); if (!schemas.config || !schemas.input) { return <>; } return ( -
-
-

- 🦜 GigaServe Playground -

- {Object.keys(schemas.config).length > 0 && ( -
- {!isIframe &&

Configure

} - -
- - data - ? setConfigData({ data, errors, defaults: false }) - : undefined - } - /> - - {!!configData.errors?.length && configData.data && ( -
+ +
+
+

+ 🦜 LangServe Playground +

+ + {Object.keys(schemas.config).length > 0 && ( +
+ {!isIframe && ( +

Configure

+ )} + +
+ + data + ? setConfigData({ data, errors, defaults: false }) + : undefined + } + /> + + {!!configData.errors?.length && configData.data && ( +
+
+ Validation Errors +
    + {configData.errors?.map((e, i) => ( +
  • {e.message}
  • + ))} +
+
+
+ )} +
+
+ )} + + {!isIframe && ( +
+

Try it

+ +
+
+

Inputs

+ {isInputResetable && ( + + )} +
+ + + setInputData({ data, errors }) + } + /> + {!!inputData.errors?.length && inputData.data && (
Validation Errors
    - {configData.errors?.map((e, i) => ( + {inputData.errors?.map((e, i) => (
  • {e.message}
  • ))}
+ )} +
+ + {latest && ( +
+

Output

+
+ +
+
)}
-
- )} + )} - {!isIframe && ( -
-

Try it

+
-
-
-

Inputs

- {isInputResetable && ( +
+
+ + {isIframe ? ( + <> + + + + ) : ( + <> + - )} -
- - setInputData({ data, errors })} - /> - {!!inputData.errors?.length && inputData.data && ( -
- Validation Errors -
    - {inputData.errors?.map((e, i) => ( -
  • {e.message}
  • - ))} -
-
- )} -
- - {latest && ( -
-

Output

-
- -
- -
- )} -
- )} - -
- -
-
- - {isIframe ? ( - <> - - - - ) : ( - <> - + - - - - )} + + )} +
-
+ ); } diff --git a/langserve/playground/src/assets/ChatIcon.svg b/langserve/playground/src/assets/ChatIcon.svg new file mode 100644 index 00000000..f885c943 --- /dev/null +++ b/langserve/playground/src/assets/ChatIcon.svg @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/langserve/playground/src/assets/CodeIcon.svg b/langserve/playground/src/assets/CodeIcon.svg index 14aeaf98..4b2ca000 100644 --- a/langserve/playground/src/assets/CodeIcon.svg +++ b/langserve/playground/src/assets/CodeIcon.svg @@ -1,6 +1,6 @@ - + + d="M8.70711 5.29289C9.09763 5.68342 9.09763 6.31658 8.70711 6.70711L3.41421 12L8.70711 17.2929C9.09763 17.6834 9.09763 18.3166 8.70711 18.7071C8.31658 19.0976 7.68342 19.0976 7.29289 18.7071L1.29289 12.7071C0.902369 12.3166 0.902369 11.6834 1.29289 11.2929L7.29289 5.29289C7.68342 4.90237 8.31658 4.90237 8.70711 5.29289ZM15.2929 5.29289C15.6834 4.90237 16.3166 4.90237 16.7071 5.29289L22.7071 11.2929C23.0976 11.6834 23.0976 12.3166 22.7071 12.7071L16.7071 18.7071C16.3166 19.0976 15.6834 19.0976 15.2929 18.7071C14.9024 18.3166 14.9024 17.6834 15.2929 17.2929L20.5858 12L15.2929 6.70711C14.9024 6.31658 14.9024 5.68342 15.2929 5.29289Z" + fill="currentColor" /> \ No newline at end of file diff --git a/langserve/playground/src/components/ChatMessageTuplesControlRenderer.tsx b/langserve/playground/src/components/ChatMessageTuplesControlRenderer.tsx index f05ae780..c8e82534 100644 --- a/langserve/playground/src/components/ChatMessageTuplesControlRenderer.tsx +++ b/langserve/playground/src/components/ChatMessageTuplesControlRenderer.tsx @@ -10,6 +10,8 @@ import { } from "@jsonforms/core"; import { AutosizeTextarea } from "./AutosizeTextarea"; import { isJsonSchemaExtra } from "../utils/schema"; +import { useStreamCallback } from "../useStreamCallback"; +import { traverseNaiveJsonPath } from "../utils/path"; type MessageTuple = [string, string]; @@ -46,6 +48,16 @@ export const ChatMessageTuplesControlRenderer = withJsonFormsControlProps( (props) => { const data: Array = props.data ?? []; + useStreamCallback("onSuccess", (ctx) => { + if (!isJsonSchemaExtra(props.schema)) return; + const widget = props.schema.extra.widget; + if (!("input" in widget) && !("output" in widget)) return; + + const human = traverseNaiveJsonPath(ctx.input, widget.input ?? ""); + const ai = traverseNaiveJsonPath(ctx.output, widget.output ?? ""); + props.handleChange(props.path, [...data, [human, ai]]); + }); + return (
@@ -54,57 +66,59 @@ export const ChatMessageTuplesControlRenderer = withJsonFormsControlProps(
- {data.map(([type, content], index) => { + {data.map(([human, ai], index) => { const msgPath = Paths.compose(props.path, `${index}`); return ( -
-
- - +
+
+
+
+
+ Human +
+
+ { + props.handleChange(Paths.compose(msgPath, "0"), human); + }} + /> +
+
+
+
+
+ AI +
+
+ + { + props.handleChange(Paths.compose(msgPath, "1"), ai); + }} + /> +
- { - props.handleChange(Paths.compose(msgPath, "1"), content); +
); })} diff --git a/langserve/playground/src/components/ChatMessagesControlRenderer.tsx b/langserve/playground/src/components/ChatMessagesControlRenderer.tsx index f5808b9a..34120352 100644 --- a/langserve/playground/src/components/ChatMessagesControlRenderer.tsx +++ b/langserve/playground/src/components/ChatMessagesControlRenderer.tsx @@ -1,6 +1,8 @@ import { withJsonFormsControlProps } from "@jsonforms/react"; import PlusIcon from "../assets/PlusIcon.svg?react"; import TrashIcon from "../assets/TrashIcon.svg?react"; +import CodeIcon from "../assets/CodeIcon.svg?react"; +import ChatIcon from "../assets/ChatIcon.svg?react"; import { rankWith, and, @@ -9,6 +11,10 @@ import { isControl, } from "@jsonforms/core"; import { AutosizeTextarea } from "./AutosizeTextarea"; +import { useStreamCallback } from "../useStreamCallback"; +import { traverseNaiveJsonPath } from "../utils/path"; +import { isJsonSchemaExtra } from "../utils/schema"; +import * as ToggleGroup from "@radix-ui/react-toggle-group"; export const chatMessagesTester = rankWith( 12, @@ -64,10 +70,79 @@ interface MessageFields { role?: string; } +function isMessageFields(x: unknown): x is MessageFields { + if (typeof x !== "object" || x == null) return false; + if (!("content" in x) || typeof x.content !== "string") return false; + if ( + "additional_kwargs" in x && + typeof x.additional_kwargs !== "object" && + x.additional_kwargs != null + ) + return false; + if ("name" in x && typeof x.name !== "string" && x.name != null) return false; + if ("type" in x && typeof x.type !== "string" && x.type != null) return false; + if ("role" in x && typeof x.role !== "string" && x.role != null) return false; + return true; +} + +function constructMessage( + x: unknown, + assumedRole: string +): Array | null { + if (typeof x === "string") { + return [{ content: x, type: assumedRole }]; + } + + if (isMessageFields(x)) { + return [x]; + } + + if (Array.isArray(x) && x.every(isMessageFields)) { + return x; + } + + return null; +} + +function isOpenAiFunctionCall( + x: unknown +): x is { name: string; arguments: string } { + if (typeof x !== "object" || x == null) return false; + if (!("name" in x) || typeof x.name !== "string") return false; + if (!("arguments" in x) || typeof x.arguments !== "string") return false; + return true; +} + export const ChatMessagesControlRenderer = withJsonFormsControlProps( (props) => { const data: Array = props.data ?? []; + useStreamCallback("onSuccess", (ctx) => { + if (!isJsonSchemaExtra(props.schema)) return; + const widget = props.schema.extra.widget; + if (!("input" in widget) && !("output" in widget)) return; + + const human = traverseNaiveJsonPath(ctx.input, widget.input ?? ""); + const ai = traverseNaiveJsonPath(ctx.output, widget.output ?? ""); + + const humanMsg = constructMessage(human, "human"); + const aiMsg = constructMessage(ai, "ai"); + + let newMessages = undefined; + if (humanMsg != null) { + newMessages ??= [...data]; + newMessages.push(...humanMsg); + } + if (aiMsg != null) { + newMessages ??= [...data]; + newMessages.push(...aiMsg); + } + + if (newMessages != null) { + props.handleChange(props.path, newMessages); + } + }); + return (
@@ -92,6 +167,11 @@ export const ChatMessagesControlRenderer = withJsonFormsControlProps( {data.map((message, index) => { const msgPath = Paths.compose(props.path, `${index}`); const type = message.type ?? "chat"; + + const isAiFunctionCall = isOpenAiFunctionCall( + message.additional_kwargs?.function_call + ); + return (
@@ -112,17 +192,68 @@ export const ChatMessagesControlRenderer = withJsonFormsControlProps( - +
+ {message.type === "ai" && ( + { + switch (value) { + case "function": { + props.handleChange( + Paths.compose(msgPath, "additional_kwargs"), + { + function_call: { + name: "", + arguments: "{}", + }, + } + ); + + break; + } + case "text": { + props.handleChange( + Paths.compose(msgPath, "additional_kwargs"), + {} + ); + + break; + } + } + }} + > + + + + + + + + )} + + +
{type === "chat" && ( @@ -153,15 +284,61 @@ export const ChatMessagesControlRenderer = withJsonFormsControlProps( /> )} - { - props.handleChange( - Paths.compose(msgPath, "content"), - content - ); - }} - /> + {type === "ai" && + isOpenAiFunctionCall( + message.additional_kwargs?.function_call + ) ? ( + <> + { + console.log( + Paths.compose( + msgPath, + "additional_kwargs.function_call.name" + ) + ); + props.handleChange( + Paths.compose( + msgPath, + "additional_kwargs.function_call.name" + ), + e.target.value + ); + }} + /> + + { + props.handleChange( + Paths.compose( + msgPath, + "additional_kwargs.function_call.arguments" + ), + content + ); + }} + /> + + ) : ( + { + props.handleChange( + Paths.compose(msgPath, "content"), + content + ); + }} + /> + )}
); })} diff --git a/langserve/playground/src/components/CustomArrayControlRenderer/MaterialTableControl.tsx b/langserve/playground/src/components/CustomArrayControlRenderer/MaterialTableControl.tsx index 8c68446e..89473028 100644 --- a/langserve/playground/src/components/CustomArrayControlRenderer/MaterialTableControl.tsx +++ b/langserve/playground/src/components/CustomArrayControlRenderer/MaterialTableControl.tsx @@ -92,7 +92,7 @@ const generateCells = ( enabled: boolean, cells?: JsonFormsCellRendererRegistryEntry[] ) => { - if (schema.type === "object") { + if (schema?.type === "object") { return getValidColumnProps(schema).map((prop) => { const cellPath = Paths.compose(rowPath, prop); const props = { @@ -381,7 +381,7 @@ interface TableRowsProp { const TableRows = ({ data, path, - schema, + schema = {}, openDeleteDialog, moveUp, moveDown, @@ -444,7 +444,7 @@ export class MaterialTableControl extends React.Component< const { label, path, - schema, + schema = {}, rootSchema, uischema, errors, @@ -456,7 +456,7 @@ export class MaterialTableControl extends React.Component< } = this.props; const controlElement = uischema as ControlElement; - const isObjectSchema = schema.type === "object"; + const isObjectSchema = schema?.type === "object"; const headerCells: any = isObjectSchema ? generateCells(TableHeaderCell as any, schema, path, enabled, cells) : undefined; diff --git a/langserve/playground/src/components/ShareDialog.tsx b/langserve/playground/src/components/ShareDialog.tsx index 13c82733..494581d3 100644 --- a/langserve/playground/src/components/ShareDialog.tsx +++ b/langserve/playground/src/components/ShareDialog.tsx @@ -131,7 +131,7 @@ const result = await chain.invoke({ ... });
- +
Get the code
diff --git a/langserve/playground/src/types.tsx b/langserve/playground/src/types.tsx new file mode 100644 index 00000000..bf5e576f --- /dev/null +++ b/langserve/playground/src/types.tsx @@ -0,0 +1,5 @@ +export interface StreamCallback { + onSuccess?: (ctx: { input: unknown; output: unknown }) => void; + onError?: () => void; + onStart?: (ctx: { input: unknown }) => void; +} diff --git a/langserve/playground/src/useStreamCallback.tsx b/langserve/playground/src/useStreamCallback.tsx new file mode 100644 index 00000000..137bfe07 --- /dev/null +++ b/langserve/playground/src/useStreamCallback.tsx @@ -0,0 +1,42 @@ +import { + MutableRefObject, + createContext, + useContext, + useEffect, + useRef, +} from "react"; + +import { StreamCallback } from "./types"; + +export const AppCallbackContext = createContext[]; + onSuccess: Exclude[]; + onError: Exclude[]; +}> | null>(null); + +export function useStreamCallback< + Type extends "onStart" | "onSuccess" | "onError" +>(type: Type, callback: Exclude) { + type CallbackType = Exclude; + + const appCbRef = useContext(AppCallbackContext); + + const callbackRef = useRef(callback); + callbackRef.current = callback; + + useEffect(() => { + // @ts-expect-error Not sure why I can't expand the tuple + const current = (...args) => callbackRef.current?.(...args); + appCbRef?.current[type].push(current); + + return () => { + if (!appCbRef) return; + + // @ts-expect-error Assingability issues due to the tuple object + // eslint-disable-next-line react-hooks/exhaustive-deps + appCbRef.current[type] = appCbRef.current[type].filter( + (callbacks) => callbacks !== current + ); + }; + }, [type, appCbRef]); +} diff --git a/langserve/playground/src/useStreamLog.tsx b/langserve/playground/src/useStreamLog.tsx index 3cee4ff0..5f06dfb0 100644 --- a/langserve/playground/src/useStreamLog.tsx +++ b/langserve/playground/src/useStreamLog.tsx @@ -1,7 +1,8 @@ -import { useCallback, useReducer, useState } from "react"; +import { useCallback, useRef, useState } from "react"; import { applyPatch, Operation } from "fast-json-patch"; import { fetchEventSource } from "@microsoft/fetch-event-source"; import { resolveApiUrl } from "./utils/url"; +import { StreamCallback } from "./types"; export interface LogEntry { // ID of the sub-run. @@ -44,13 +45,26 @@ function reducer(state: RunState | null, action: Operation[]) { return applyPatch(state, action, true, false).newDocument; } -export function useStreamLog() { - const [latest, updateLatest] = useReducer(reducer, null); +export function useStreamLog(callbacks: StreamCallback = {}) { + const [latest, setLatest] = useState(null); const [controller, setController] = useState(null); + const startRef = useRef(callbacks.onStart); + startRef.current = callbacks.onStart; + + const successRef = useRef(callbacks.onSuccess); + successRef.current = callbacks.onSuccess; + + const errorRef = useRef(callbacks.onError); + errorRef.current = callbacks.onError; + const startStream = useCallback(async (input: unknown, config: unknown) => { const controller = new AbortController(); setController(controller); + startRef.current?.({ input }); + + let innerLatest: RunState | null = null; + await fetchEventSource(resolveApiUrl("/stream_log").toString(), { signal: controller.signal, method: "POST", @@ -58,14 +72,17 @@ export function useStreamLog() { body: JSON.stringify({ input, config }), onmessage(msg) { if (msg.event === "data") { - updateLatest(JSON.parse(msg.data)?.ops); + innerLatest = reducer(innerLatest, JSON.parse(msg.data)?.ops); + setLatest(innerLatest); } }, onclose() { setController(null); + successRef.current?.({ input, output: innerLatest?.final_output }); }, onerror(error) { setController(null); + errorRef.current?.(); throw error; }, }); diff --git a/langserve/playground/src/utils/defaults.ts b/langserve/playground/src/utils/defaults.ts index 5a9e41d0..347f6b97 100644 --- a/langserve/playground/src/utils/defaults.ts +++ b/langserve/playground/src/utils/defaults.ts @@ -191,7 +191,7 @@ const defaults = (schema: any, definitions: Record): unknown => { return []; } else { const values = []; - for (let i = 0; i < Math.max(1, ct); i++) { + for (let i = 0; i < Math.max(0, ct); i++) { values.push(cloneJSON(value)); } return values; diff --git a/langserve/playground/src/utils/path.ts b/langserve/playground/src/utils/path.ts new file mode 100644 index 00000000..1def533b --- /dev/null +++ b/langserve/playground/src/utils/path.ts @@ -0,0 +1,24 @@ +function isAccessibleObject(x: unknown): x is Record { + return typeof x === "object" && x != null; +} + +export function traverseNaiveJsonPath( + x: unknown, + path: string | number | Array +) { + const queue = Array.isArray(path) ? path : [path]; + let tmp: unknown = x; + while (queue.length > 0) { + const first = queue.shift()!; + if (first === "") continue; + if (Array.isArray(tmp)) { + tmp = tmp[+first]; + } else if (isAccessibleObject(tmp)) { + tmp = tmp[first]; + } else { + return undefined; + } + } + + return tmp; +} diff --git a/langserve/playground/src/utils/schema.ts b/langserve/playground/src/utils/schema.ts index 30c86925..79429d77 100644 --- a/langserve/playground/src/utils/schema.ts +++ b/langserve/playground/src/utils/schema.ts @@ -4,6 +4,7 @@ type JsonSchemaExtra = JsonSchema & { extra: { widget: { type: string; + [key: string]: string | number | Array; }; }; }; diff --git a/langserve/playground/yarn.lock b/langserve/playground/yarn.lock index ebf2a17e..39092cb6 100644 --- a/langserve/playground/yarn.lock +++ b/langserve/playground/yarn.lock @@ -736,6 +736,17 @@ dependencies: "@babel/runtime" "^7.13.10" +"@radix-ui/react-collection@1.0.3": + version "1.0.3" + resolved "https://registry.yarnpkg.com/@radix-ui/react-collection/-/react-collection-1.0.3.tgz#9595a66e09026187524a36c6e7e9c7d286469159" + integrity sha512-3SzW+0PW7yBBoQlT8wNcGtaxaD0XSu0uLUFgrtHY08Acx05TaHaOmVLR73c0j/cqpDy53KBMO7s0dx2wmOIDIA== + dependencies: + "@babel/runtime" "^7.13.10" + "@radix-ui/react-compose-refs" "1.0.1" + "@radix-ui/react-context" "1.0.1" + "@radix-ui/react-primitive" "1.0.3" + "@radix-ui/react-slot" "1.0.2" + "@radix-ui/react-compose-refs@1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@radix-ui/react-compose-refs/-/react-compose-refs-1.0.1.tgz#7ed868b66946aa6030e580b1ffca386dd4d21989" @@ -771,6 +782,13 @@ aria-hidden "^1.1.1" react-remove-scroll "2.5.5" +"@radix-ui/react-direction@1.0.1": + version "1.0.1" + resolved "https://registry.yarnpkg.com/@radix-ui/react-direction/-/react-direction-1.0.1.tgz#9cb61bf2ccf568f3421422d182637b7f47596c9b" + integrity sha512-RXcvnXgyvYvBEOhCBuddKecVkoMiI10Jcm5cTI7abJRAHYfFxeu+FBQs/DvdxSYucxR5mna0dNsL6QFlds5TMA== + dependencies: + "@babel/runtime" "^7.13.10" + "@radix-ui/react-dismissable-layer@1.0.5": version "1.0.5" resolved "https://registry.yarnpkg.com/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.0.5.tgz#3f98425b82b9068dfbab5db5fff3df6ebf48b9d4" @@ -833,6 +851,22 @@ "@babel/runtime" "^7.13.10" "@radix-ui/react-slot" "1.0.2" +"@radix-ui/react-roving-focus@1.0.4": + version "1.0.4" + resolved "https://registry.yarnpkg.com/@radix-ui/react-roving-focus/-/react-roving-focus-1.0.4.tgz#e90c4a6a5f6ac09d3b8c1f5b5e81aab2f0db1974" + integrity sha512-2mUg5Mgcu001VkGy+FfzZyzbmuUWzgWkj3rvv4yu+mLw03+mTzbxZHvfcGyFp2b8EkQeMkpRQ5FiA2Vr2O6TeQ== + dependencies: + "@babel/runtime" "^7.13.10" + "@radix-ui/primitive" "1.0.1" + "@radix-ui/react-collection" "1.0.3" + "@radix-ui/react-compose-refs" "1.0.1" + "@radix-ui/react-context" "1.0.1" + "@radix-ui/react-direction" "1.0.1" + "@radix-ui/react-id" "1.0.1" + "@radix-ui/react-primitive" "1.0.3" + "@radix-ui/react-use-callback-ref" "1.0.1" + "@radix-ui/react-use-controllable-state" "1.0.1" + "@radix-ui/react-slot@1.0.2": version "1.0.2" resolved "https://registry.yarnpkg.com/@radix-ui/react-slot/-/react-slot-1.0.2.tgz#a9ff4423eade67f501ffb32ec22064bc9d3099ab" @@ -841,6 +875,30 @@ "@babel/runtime" "^7.13.10" "@radix-ui/react-compose-refs" "1.0.1" +"@radix-ui/react-toggle-group@^1.0.4": + version "1.0.4" + resolved "https://registry.yarnpkg.com/@radix-ui/react-toggle-group/-/react-toggle-group-1.0.4.tgz#f5b5c8c477831b013bec3580c55e20a68179d6ec" + integrity sha512-Uaj/M/cMyiyT9Bx6fOZO0SAG4Cls0GptBWiBmBxofmDbNVnYYoyRWj/2M/6VCi/7qcXFWnHhRUfdfZFvvkuu8A== + dependencies: + "@babel/runtime" "^7.13.10" + "@radix-ui/primitive" "1.0.1" + "@radix-ui/react-context" "1.0.1" + "@radix-ui/react-direction" "1.0.1" + "@radix-ui/react-primitive" "1.0.3" + "@radix-ui/react-roving-focus" "1.0.4" + "@radix-ui/react-toggle" "1.0.3" + "@radix-ui/react-use-controllable-state" "1.0.1" + +"@radix-ui/react-toggle@1.0.3": + version "1.0.3" + resolved "https://registry.yarnpkg.com/@radix-ui/react-toggle/-/react-toggle-1.0.3.tgz#aecb2945630d1dc5c512997556c57aba894e539e" + integrity sha512-Pkqg3+Bc98ftZGsl60CLANXQBBQ4W3mTFS9EJvNxKMZ7magklKV69/id1mlAlOFDDfHvlCms0fx8fA4CMKDJHg== + dependencies: + "@babel/runtime" "^7.13.10" + "@radix-ui/primitive" "1.0.1" + "@radix-ui/react-primitive" "1.0.3" + "@radix-ui/react-use-controllable-state" "1.0.1" + "@radix-ui/react-use-callback-ref@1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.0.1.tgz#f4bb1f27f2023c984e6534317ebc411fc181107a" diff --git a/langserve/pydantic_v1.py b/langserve/pydantic_v1.py new file mode 100644 index 00000000..b7cfc828 --- /dev/null +++ b/langserve/pydantic_v1.py @@ -0,0 +1,25 @@ +from importlib import metadata + +## Create namespaces for pydantic v1 and v2. +# This code must stay at the top of the file before other modules may +# attempt to import pydantic since it adds pydantic_v1 and pydantic_v2 to sys.modules. +# +# This hack is done for the following reasons: +# * Langchain will attempt to remain compatible with both pydantic v1 and v2 since +# both dependencies and dependents may be stuck on either version of v1 or v2. +# * Creating namespaces for pydantic v1 and v2 should allow us to write code that +# unambiguously uses either v1 or v2 API. +# * This change is easier to roll out and roll back. + +try: + # F401: imported but unused + from pydantic.v1 import BaseModel, Field, ValidationError # noqa: F401 +except ImportError: + from pydantic import BaseModel, Field, ValidationError # noqa: F401 + + +# This is not a pydantic v1 thing, but it feels too small to create a new module for. +try: + _PYDANTIC_MAJOR_VERSION: int = int(metadata.version("pydantic").split(".")[0]) +except metadata.PackageNotFoundError: + _PYDANTIC_MAJOR_VERSION = -1 diff --git a/langserve/schema.py b/langserve/schema.py index 0cd61a2a..e2f7608e 100644 --- a/langserve/schema.py +++ b/langserve/schema.py @@ -1,12 +1,13 @@ -from typing import List +from datetime import datetime +from typing import Dict, List, Optional, Union +from uuid import UUID -try: - from pydantic.v1 import BaseModel -except ImportError: - from pydantic import BaseModel +from pydantic import BaseModel # Floats between v1 and v2 +from langserve.pydantic_v1 import BaseModel as BaseModelV1 -class CustomUserType(BaseModel): + +class CustomUserType(BaseModelV1): """Inherit from this class to create a custom user type. Use a custom user type if you want the data to de-serialize @@ -25,7 +26,7 @@ class CustomUserType(BaseModel): """ -class SharedResponseMetadata(BaseModel): +class SharedResponseMetadata(BaseModelV1): """ Any response metadata should inherit from this class. Response metadata represents non-output data that may be useful to some clients, but @@ -47,7 +48,7 @@ class SingletonResponseMetadata(SharedResponseMetadata): """ # Represents the parent run id for a given request - run_id: str + run_id: UUID class BatchResponseMetadata(SharedResponseMetadata): @@ -58,4 +59,48 @@ class BatchResponseMetadata(SharedResponseMetadata): # Represents each parent run id for a given request, in # the same order in which they were received - run_ids: List[str] + run_ids: List[UUID] + + +class BaseFeedback(BaseModel): + """ + Shared information between create requests of feedback and feedback objects + """ + + run_id: UUID + """The associated run ID this feedback is logged for.""" + + key: str + """The metric name, tag, or aspect to provide feedback on.""" + + score: Optional[Union[float, int, bool]] = None + """Value or score to assign the run.""" + + value: Optional[Union[float, int, bool, str, Dict]] = None + """The display value for the feedback if not a metric.""" + + comment: Optional[str] = None + """Comment or explanation for the feedback.""" + + +class FeedbackCreateRequest(BaseFeedback): + """ + Represents a request that creates feedback for an individual run + """ + + pass + + +class Feedback(BaseFeedback): + """ + Represents feedback given on an individual run + """ + + created_at: datetime + """The time the feedback was created.""" + + modified_at: datetime + """The time the feedback was last modified.""" + + correction: Optional[Dict] = None + """Correction for the run.""" diff --git a/langserve/serialization.py b/langserve/serialization.py index cec27646..c79da288 100644 --- a/langserve/serialization.py +++ b/langserve/serialization.py @@ -39,14 +39,9 @@ LLMResult, ) +from langserve.pydantic_v1 import BaseModel, ValidationError from langserve.validation import CallbackEvent -try: - from pydantic.v1 import BaseModel, ValidationError -except ImportError: - from pydantic import BaseModel, ValidationError - - logger = logging.getLogger(__name__) diff --git a/langserve/server.py b/langserve/server.py index 2ad06387..7ac6d1c0 100644 --- a/langserve/server.py +++ b/langserve/server.py @@ -13,6 +13,7 @@ from typing import ( Any, AsyncIterator, + Callable, Dict, Generator, Literal, @@ -24,31 +25,39 @@ Union, ) -from fastapi import HTTPException, Request +from fastapi import HTTPException, Request, Response +from fastapi.encoders import jsonable_encoder from fastapi.exceptions import RequestValidationError +from fastapi.responses import JSONResponse from langchain.callbacks.tracers.log_stream import RunLogPatch from langchain.load.serializable import Serializable from langchain.schema.runnable import Runnable, RunnableConfig from langchain.schema.runnable.config import get_config_list, merge_configs +from langsmith import client as ls_client +from langsmith.utils import tracing_is_enabled from typing_extensions import Annotated +try: + from pydantic.v1 import BaseModel, Field, ValidationError, create_model +except ImportError: + from pydantic import BaseModel, Field, ValidationError, create_model + from langserve.callbacks import AsyncEventAggregatorCallback, CallbackEventDict from langserve.lzstring import LZString +from langserve.playground import serve_playground +from langserve.pydantic_v1 import _PYDANTIC_MAJOR_VERSION from langserve.schema import ( BatchResponseMetadata, CustomUserType, + Feedback, + FeedbackCreateRequest, SingletonResponseMetadata, ) - -try: - from pydantic.v1 import BaseModel, create_model -except ImportError: - from pydantic import BaseModel, Field, ValidationError, create_model - -from langserve.playground import serve_playground from langserve.serialization import WellKnownLCSerializer from langserve.validation import ( + BatchBaseResponse, BatchRequestShallowValidator, + InvokeBaseResponse, InvokeRequestShallowValidator, StreamLogParameters, create_batch_request_model, @@ -66,6 +75,10 @@ # [server] extra not installed APIRouter = FastAPI = Any +# A function that that takes a config and a raw request +# and updates the config based on the request. +PerRequestConfigModifier = Callable[[Dict[str, Any], Request], Dict[str, Any]] + def _config_from_hash(config_hash: str) -> Dict[str, Any]: try: @@ -86,6 +99,8 @@ def _unpack_request_config( *configs: Union[BaseModel, Mapping, str], keys: Sequence[str], model: Type[BaseModel], + request: Request, + per_req_config_modifier: Optional[PerRequestConfigModifier], ) -> Dict[str, Any]: """Merge configs, and project the given keys from the merged dict.""" config_dicts = [] @@ -99,7 +114,12 @@ def _unpack_request_config( else: raise TypeError(f"Expected a string, dict or BaseModel got {type(config)}") config = merge_configs(*config_dicts) - return {k: config[k] for k in keys if k in config} + projected_config = {k: config[k] for k in keys if k in config} + return ( + per_req_config_modifier(projected_config, request) + if per_req_config_modifier + else projected_config + ) def _unpack_input(validated_model: BaseModel) -> Any: @@ -116,7 +136,11 @@ def _unpack_input(validated_model: BaseModel) -> Any: # it was created by the server as part of validation and isn't expected # to be accepted by the runnables as input as a pydantic model, # instead we need to convert it into a corresponding python dict. - return model.dict() + # This logic should be applied recursively to nested models. + return { + fieldname: _unpack_input(getattr(model, fieldname)) + for fieldname in model.__fields__.keys() + } return model @@ -260,12 +284,12 @@ def green(text): print(GIGASERVE) for path in paths: print( - f'{green("GIGASERVE:")} Playground for chain "{path or "/"}" is live at:' + f'{green("GIGASERVE:")} Playground for chain "{path or ""}/" is live at:' ) print(f'{green("GIGASERVE:")} │') - print(f'{green("GIGASERVE:")} └──> {path}/playground') + print(f'{green("GIGASERVE:")} └──> {path}/playground/') print(f'{green("GIGASERVE:")}') - print(f'{green("GIGASERVE:")} See all available routes at {app.docs_url}') + print(f'{green("GIGASERVE:")} See all available routes at {app.docs_url}/') print() @@ -313,6 +337,64 @@ def _get_base_run_id_as_str( raise AssertionError("No run_id found for the given run") +def _json_encode_response(model: BaseModel) -> JSONResponse: + """Return a JSONResponse with the given content. + + We're doing the encoding manually here as a workaround to fastapi + not supporting models from pydantic v1 when pydantic + v2 is imported. + + Args: + obj: The object to encode; either an invoke response or a batch response. + + Returns: + A JSONResponse with the given content. + """ + obj = jsonable_encoder(model) + + if isinstance(model, InvokeBaseResponse): + # Invoke Response + # Collapse '__root__' from output field if it exists. This is done + # automatically by fastapi when annotating request and response with + # We need to do this manually since we're using vanilla JSONResponse + if isinstance(obj["output"], dict) and "__root__" in obj["output"]: + obj["output"] = obj["output"]["__root__"] + + if "callback_events" in obj: + for idx, callback_event in enumerate(obj["callback_events"]): + if isinstance(callback_event, dict) and "__root__" in callback_event: + obj["callback_events"][idx] = callback_event["__root__"] + elif isinstance(model, BatchBaseResponse): + if not isinstance(obj["output"], list): + raise AssertionError("Expected output to be a list") + + # Collapse '__root__' from output field if it exists. This is done + # automatically by fastapi when annotating request and response with + # We need to do this manually since we're using vanilla JSONResponse + outputs = obj["output"] + for idx, output in enumerate(outputs): + if isinstance(output, dict) and "__root__" in output: + outputs[idx] = output["__root__"] + + if "callback_events" in obj: + if not isinstance(obj["callback_events"], list): + raise AssertionError("Expected callback_events to be a list") + + for callback_events in obj["callback_events"]: + for idx, callback_event in enumerate(callback_events): + if ( + isinstance(callback_event, dict) + and "__root__" in callback_event + ): + callback_events[idx] = callback_event["__root__"] + else: + raise AssertionError( + f"Expected a InvokeBaseResponse or BatchBaseResponse got: {type(model)}" + ) + + return JSONResponse(content=obj) + + # PUBLIC API @@ -325,6 +407,8 @@ def add_routes( output_type: Union[Type, Literal["auto"], BaseModel] = "auto", config_keys: Sequence[str] = (), include_callback_events: bool = False, + enable_feedback_endpoint: bool = False, + per_req_config_modifier: Optional[PerRequestConfigModifier] = None, ) -> None: """Register the routes on the given FastAPI app or APIRouter. @@ -359,6 +443,15 @@ def add_routes( If true, the client will be able to show trace information including events that occurred on the server side. Be sure not to include any sensitive information in the callback events. + enable_feedback_endpoint: Whether to enable an endpoint for logging feedback + to LangSmith. Enabled by default. If this flag is disabled or LangSmith + tracing is not enabled for the runnable, then 400 errors will be thrown + when accessing the feedback endpoint + per_req_config_modifier: optional function that can be used to update the + RunnableConfig for a given run based on the raw request. This is useful, + for example, if the user wants to pass in a header containing credentials + to a runnable. The RunnableConfig is presented in its dictionary form. + Note that only keys in `config_keys` will be modifiable by this function. """ try: from sse_starlette import EventSourceResponse @@ -388,6 +481,14 @@ def add_routes( route_tags = [path.strip("/")] if path else None route_tags_with_config = [f"{path.strip('/')}/config"] if path else ["config"] + # Please do not change the naming on ls_client. It is used with mocking + # in our unit tests for langsmith integrations. + langsmith_client = ( + ls_client.Client() + if tracing_is_enabled() and enable_feedback_endpoint + else None + ) + def _route_name(name: str) -> str: """Return the route name with the given name.""" return f"{path.strip('/')} {name}" if path else name @@ -470,6 +571,8 @@ async def _get_config_and_input( body.config, keys=config_keys, model=ConfigPayload, + request=request, + per_req_config_modifier=per_req_config_modifier, ) # Unpack the input dynamically using the input schema of the runnable. # This takes into account changes in the input type when @@ -482,16 +585,13 @@ async def _get_config_and_input( @app.post( namespace + "/c/{config_hash}/invoke", - response_model=InvokeResponse, include_in_schema=False, ) - @app.post( - f"{namespace}/invoke", response_model=InvokeResponse, include_in_schema=False - ) + @app.post(f"{namespace}/invoke", include_in_schema=False) async def invoke( request: Request, config_hash: str = "", - ) -> InvokeResponse: + ) -> Response: """Invoke the runnable with the given input and config.""" # We do not use the InvokeRequest model here since configurable runnables # have dynamic schema -- so the validation below is a bit more involved. @@ -510,28 +610,27 @@ async def invoke( else: callback_events = [] - return InvokeResponse( - output=well_known_lc_serializer.dumpd(output), - # Callbacks are scrubbed and exceptions are converted to serializable format - # before returned in the response. - callback_events=callback_events, - metadata=SingletonResponseMetadata( - run_id=_get_base_run_id_as_str(event_aggregator) + return _json_encode_response( + InvokeResponse( + output=well_known_lc_serializer.dumpd(output), + # Callbacks are scrubbed and exceptions are converted to serializable format + # before returned in the response. + callback_events=callback_events, + metadata=SingletonResponseMetadata( + run_id=_get_base_run_id_as_str(event_aggregator) + ), ), ) @app.post( namespace + "/c/{config_hash}/batch", - response_model=BatchResponse, include_in_schema=False, ) - @app.post( - f"{namespace}/batch", response_model=BatchResponse, include_in_schema=False - ) + @app.post(f"{namespace}/batch", include_in_schema=False) async def batch( request: Request, config_hash: str = "", - ) -> BatchResponse: + ) -> Response: """Invoke the runnable with the given inputs and config.""" try: body = await request.json() @@ -553,7 +652,12 @@ async def batch( configs = [ _unpack_request_config( - config_hash, config, keys=config_keys, model=ConfigPayload + config_hash, + config, + keys=config_keys, + model=ConfigPayload, + request=request, + per_req_config_modifier=per_req_config_modifier, ) for config in config ] @@ -563,6 +667,8 @@ async def batch( config, keys=config_keys, model=ConfigPayload, + request=request, + per_req_config_modifier=per_req_config_modifier, ) else: raise HTTPException( @@ -606,20 +712,17 @@ async def batch( else: callback_events = [] - return BatchResponse( + obj = BatchResponse( output=well_known_lc_serializer.dumpd(output), callback_events=callback_events, metadata=BatchResponseMetadata( run_ids=[_get_base_run_id_as_str(agg) for agg in aggregators] ), ) + return _json_encode_response(obj) - @app.post( - namespace + "/c/{config_hash}/stream", - tags=route_tags_with_config, - name=_route_name_with_config("stream"), - ) - @app.post(f"{namespace}/stream", tags=route_tags, name=_route_name("stream")) + @app.post(namespace + "/c/{config_hash}/stream", include_in_schema=False) + @app.post(f"{namespace}/stream", include_in_schema=False) async def stream( request: Request, config_hash: str = "", @@ -664,10 +767,25 @@ async def _stream() -> AsyncIterator[dict]: ) from validation_exception try: + config_w_callbacks = config.copy() + event_aggregator = AsyncEventAggregatorCallback() + config_w_callbacks["callbacks"] = [event_aggregator] + has_sent_metadata = False async for chunk in runnable.astream( input_, - config=config, + config=config_w_callbacks, ): + if not has_sent_metadata and event_aggregator.callback_events: + yield { + "event": "metadata", + "data": json.dumps( + { + "run_id": _get_base_run_id_as_str(event_aggregator), + } + ), + } + has_sent_metadata = True + yield { "data": well_known_lc_serializer.dumps(chunk), "event": "data", @@ -689,11 +807,11 @@ async def _stream() -> AsyncIterator[dict]: @app.post( namespace + "/c/{config_hash}/stream_log", - tags=route_tags_with_config, - name=_route_name_with_config("stream_log"), + include_in_schema=False, ) @app.post( - f"{namespace}/stream_log", tags=route_tags, name=_route_name("stream_log") + f"{namespace}/stream_log", + include_in_schema=False, ) async def stream_log( request: Request, @@ -806,11 +924,15 @@ async def _stream_log() -> AsyncIterator[dict]: @app.get( f"{namespace}/input_schema", tags=route_tags, name=_route_name("input_schema") ) - async def input_schema(config_hash: str = "") -> Any: + async def input_schema(request: Request, config_hash: str = "") -> Any: """Return the input schema of the runnable.""" with _with_validation_error_translation(): config = _unpack_request_config( - config_hash, keys=config_keys, model=ConfigPayload + config_hash, + keys=config_keys, + model=ConfigPayload, + request=request, + per_req_config_modifier=per_req_config_modifier, ) return runnable.get_input_schema(config).schema() @@ -821,13 +943,19 @@ async def input_schema(config_hash: str = "") -> Any: name=_route_name_with_config("output_schema"), ) @app.get( - f"{namespace}/output_schema", tags=route_tags, name=_route_name("output_schema") + f"{namespace}/output_schema", + tags=route_tags, + name=_route_name("output_schema"), ) - async def output_schema(config_hash: str = "") -> Any: + async def output_schema(request: Request, config_hash: str = "") -> Any: """Return the output schema of the runnable.""" with _with_validation_error_translation(): config = _unpack_request_config( - config_hash, keys=config_keys, model=ConfigPayload + config_hash, + keys=config_keys, + model=ConfigPayload, + request=request, + per_req_config_modifier=per_req_config_modifier, ) return runnable.get_output_schema(config).schema() @@ -839,11 +967,15 @@ async def output_schema(config_hash: str = "") -> Any: @app.get( f"{namespace}/config_schema", tags=route_tags, name=_route_name("config_schema") ) - async def config_schema(config_hash: str = "") -> Any: + async def config_schema(request: Request, config_hash: str = "") -> Any: """Return the config schema of the runnable.""" with _with_validation_error_translation(): config = _unpack_request_config( - config_hash, keys=config_keys, model=ConfigPayload + config_hash, + keys=config_keys, + model=ConfigPayload, + request=request, + per_req_config_modifier=per_req_config_modifier, ) return runnable.with_config(config).config_schema(include=config_keys).schema() @@ -852,11 +984,17 @@ async def config_schema(config_hash: str = "") -> Any: include_in_schema=False, ) @app.get(namespace + "/playground/{file_path:path}", include_in_schema=False) - async def playground(file_path: str, config_hash: str = "") -> Any: + async def playground( + file_path: str, request: Request, config_hash: str = "" + ) -> Any: """Return the playground of the runnable.""" with _with_validation_error_translation(): config = _unpack_request_config( - config_hash, keys=config_keys, model=ConfigPayload + config_hash, + keys=config_keys, + model=ConfigPayload, + request=request, + per_req_config_modifier=per_req_config_modifier, ) return await serve_playground( runnable.with_config(config), @@ -866,162 +1004,203 @@ async def playground(file_path: str, config_hash: str = "") -> Any: file_path, ) + @app.post(namespace + "/feedback") + async def feedback(feedback_create_req: FeedbackCreateRequest) -> Feedback: + """ + Send feedback on an individual run to langsmith + """ + + if not tracing_is_enabled() or not enable_feedback_endpoint: + raise HTTPException( + 400, + "The feedback endpoint is only accessible when LangSmith is " + + "enabled on your LangServe server.", + ) + + feedback_from_langsmith = langsmith_client.create_feedback( + feedback_create_req.run_id, + feedback_create_req.key, + score=feedback_create_req.score, + value=feedback_create_req.value, + comment=feedback_create_req.comment, + source_info={ + "from_langserve": True, + }, + ) + + # We purposefully select out fields from langsmith so that we don't + # fail validation if langsmith adds extra fields. We prefer this over + # using "Extra.allow" in pydantic since syntax changes between pydantic + # 1.x and 2.x for this functionality + return Feedback( + run_id=str(feedback_from_langsmith.run_id), + created_at=str(feedback_from_langsmith.created_at), + modified_at=str(feedback_from_langsmith.modified_at), + key=str(feedback_from_langsmith.key), + score=feedback_from_langsmith.score, + value=feedback_from_langsmith.value, + comment=feedback_from_langsmith.comment, + ) + ####################################### # Documentation variants of end points. ####################################### - @app.post( - namespace + "/c/{config_hash}/invoke", - response_model=InvokeResponse, - tags=route_tags_with_config, - name=_route_name_with_config("invoke"), - ) - @app.post( - f"{namespace}/invoke", - response_model=InvokeResponse, - tags=route_tags, - name=_route_name("invoke"), - ) - async def _invoke_docs( - invoke_request: Annotated[InvokeRequest, InvokeRequest], - config_hash: str = "", - ) -> InvokeResponse: - """Invoke the runnable with the given input and config.""" - raise AssertionError("This endpoint should not be reachable.") + # At the moment, we only support pydantic 1.x for documentation + if _PYDANTIC_MAJOR_VERSION == 1: + + @app.post( + namespace + "/c/{config_hash}/invoke", + response_model=InvokeResponse, + tags=route_tags_with_config, + name=_route_name_with_config("invoke"), + ) + @app.post( + f"{namespace}/invoke", + response_model=InvokeResponse, + tags=route_tags, + name=_route_name("invoke"), + ) + async def _invoke_docs( + invoke_request: Annotated[InvokeRequest, InvokeRequest], + config_hash: str = "", + ) -> InvokeResponse: + """Invoke the runnable with the given input and config.""" + raise AssertionError("This endpoint should not be reachable.") + + @app.post( + namespace + "/c/{config_hash}/batch", + response_model=BatchResponse, + tags=route_tags_with_config, + name=_route_name_with_config("batch"), + ) + @app.post( + f"{namespace}/batch", + response_model=BatchResponse, + tags=route_tags, + name=_route_name("batch"), + ) + async def _batch_docs( + batch_request: Annotated[BatchRequest, BatchRequest], + config_hash: str = "", + ) -> BatchResponse: + """Batch invoke the runnable with the given inputs and config.""" + raise AssertionError("This endpoint should not be reachable.") + + @app.post( + namespace + "/c/{config_hash}/stream", + include_in_schema=True, + tags=route_tags_with_config, + name=_route_name_with_config("stream"), + ) + @app.post( + f"{namespace}/stream", + include_in_schema=True, + tags=route_tags, + name=_route_name("stream"), + ) + async def _stream_docs( + stream_request: Annotated[StreamRequest, StreamRequest], + config_hash: str = "", + ) -> EventSourceResponse: + """Invoke the runnable stream the output. - @app.post( - namespace + "/c/{config_hash}/batch", - response_model=BatchResponse, - tags=route_tags_with_config, - name=_route_name_with_config("batch"), - ) - @app.post( - f"{namespace}/batch", - response_model=BatchResponse, - tags=route_tags, - name=_route_name("batch"), - ) - async def _batch_docs( - batch_request: Annotated[BatchRequest, BatchRequest], - config_hash: str = "", - ) -> BatchResponse: - """Batch invoke the runnable with the given inputs and config.""" - raise AssertionError("This endpoint should not be reachable.") + This endpoint allows to stream the output of the runnable. - @app.post( - namespace + "/c/{config_hash}/stream", - include_in_schema=True, - tags=route_tags_with_config, - name=_route_name_with_config("stream"), - ) - @app.post( - f"{namespace}/stream", - include_in_schema=True, - tags=route_tags, - name=_route_name("stream"), - ) - async def _stream_docs( - stream_request: Annotated[StreamRequest, StreamRequest], - config_hash: str = "", - ) -> EventSourceResponse: - """Invoke the runnable stream the output. + The endpoint uses a server sent event stream to stream the output. - This endpoint allows to stream the output of the runnable. + https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events - The endpoint uses a server sent event stream to stream the output. + Important: Set the "text/event-stream" media type for request headers if + not using an existing SDK. - https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events + This endpoint uses two different types of events: - Important: Set the "text/event-stream" media type for request headers if - not using an existing SDK. + * data - for streaming the output of the runnable - This endpoint uses two different types of events: + { + "event": "data", + "data": { + ... + } + } - * data - for streaming the output of the runnable + * error - for signaling an error in the stream, also ends the stream. { - "event": "data", + "event": "error", "data": { - ... + "status_code": 500, + "message": "Internal Server Error" } } - * error - for signaling an error in the stream, also ends the stream. + * end - for signaling the end of the stream. - { - "event": "error", - "data": { - "status_code": 500, - "message": "Internal Server Error" - } - } + This helps the client to know when to stop listening for events and + know that the streaming has ended successfully. - * end - for signaling the end of the stream. + { + "event": "end", + } + """ + raise AssertionError("This endpoint should not be reachable.") + + @app.post( + namespace + "/c/{config_hash}/stream_log", + include_in_schema=True, + tags=route_tags_with_config, + name=_route_name_with_config("stream_log"), + ) + @app.post( + f"{namespace}/stream_log", + include_in_schema=True, + tags=route_tags, + name=_route_name("stream_log"), + ) + async def _stream_log_docs( + stream_log_request: Annotated[StreamLogRequest, StreamLogRequest], + config_hash: str = "", + ) -> EventSourceResponse: + """Invoke the runnable stream_log the output. - This helps the client to know when to stop listening for events and - know that the streaming has ended successfully. + This endpoint allows to stream the output of the runnable, including + the output of all intermediate steps. - { - "event": "end", - } - """ - raise AssertionError("This endpoint should not be reachable.") + The endpoint uses a server sent event stream to stream the output. - @app.post( - namespace + "/c/{config_hash}/stream_log", - include_in_schema=True, - tags=route_tags_with_config, - name=_route_name_with_config("stream_log"), - ) - @app.post( - f"{namespace}/stream_log", - include_in_schema=True, - tags=route_tags, - name=_route_name("stream_log"), - ) - async def _stream_log_docs( - stream_log_request: Annotated[StreamLogRequest, StreamLogRequest], - config_hash: str = "", - ) -> EventSourceResponse: - """Invoke the runnable stream_log the output. + https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events - This endpoint allows to stream the output of the runnable, including - the output of all intermediate steps. + Important: Set the "text/event-stream" media type for request headers if + not using an existing SDK. - The endpoint uses a server sent event stream to stream the output. + This endpoint uses two different types of events: - https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events + * data - for streaming the output of the runnable - Important: Set the "text/event-stream" media type for request headers if - not using an existing SDK. - - This endpoint uses two different types of events: + { + "event": "data", + "data": { + ... + } + } - * data - for streaming the output of the runnable + * error - for signaling an error in the stream, also ends the stream. { - "event": "data", + "event": "error", "data": { - ... + "status_code": 500, + "message": "Internal Server Error" } } - * error - for signaling an error in the stream, also ends the stream. + * end - for signaling the end of the stream. - { - "event": "error", - "data": { - "status_code": 500, - "message": "Internal Server Error" - } - } - - * end - for signaling the end of the stream. - - This helps the client to know when to stop listening for events and - know that the streaming has ended successfully. + This helps the client to know when to stop listening for events and + know that the streaming has ended successfully. - { - "event": "end", - } - """ - raise AssertionError("This endpoint should not be reachable.") + { + "event": "end", + } + """ + raise AssertionError("This endpoint should not be reachable.") diff --git a/langserve/validation.py b/langserve/validation.py index 99cc512a..fdee9873 100644 --- a/langserve/validation.py +++ b/langserve/validation.py @@ -195,6 +195,14 @@ def create_stream_log_request_model( return stream_log_request +class InvokeBaseResponse(BaseModel): + """Base class for invoke request.""" + + +class BatchBaseResponse(BaseModel): + """Base class for batch response.""" + + def create_invoke_response_model( namespace: str, output_type: Validator, @@ -219,6 +227,7 @@ def create_invoke_response_model( ), ), ), + __base__=InvokeBaseResponse, ) invoke_response_type.update_forward_refs() return invoke_response_type @@ -262,6 +271,7 @@ def create_batch_response_model( ), ), ), + __base__=BatchBaseResponse, ) batch_response_type.update_forward_refs() return batch_response_type diff --git a/poetry.lock b/poetry.lock index 32977011..eaeefeb5 100644 --- a/poetry.lock +++ b/poetry.lock @@ -350,50 +350,6 @@ soupsieve = ">1.2" html5lib = ["html5lib"] lxml = ["lxml"] -[[package]] -name = "black" -version = "23.10.1" -description = "The uncompromising code formatter." -optional = false -python-versions = ">=3.8" -files = [ - {file = "black-23.10.1-cp310-cp310-macosx_10_16_arm64.whl", hash = "sha256:ec3f8e6234c4e46ff9e16d9ae96f4ef69fa328bb4ad08198c8cee45bb1f08c69"}, - {file = "black-23.10.1-cp310-cp310-macosx_10_16_x86_64.whl", hash = "sha256:1b917a2aa020ca600483a7b340c165970b26e9029067f019e3755b56e8dd5916"}, - {file = "black-23.10.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9c74de4c77b849e6359c6f01987e94873c707098322b91490d24296f66d067dc"}, - {file = "black-23.10.1-cp310-cp310-win_amd64.whl", hash = "sha256:7b4d10b0f016616a0d93d24a448100adf1699712fb7a4efd0e2c32bbb219b173"}, - {file = "black-23.10.1-cp311-cp311-macosx_10_16_arm64.whl", hash = "sha256:b15b75fc53a2fbcac8a87d3e20f69874d161beef13954747e053bca7a1ce53a0"}, - {file = "black-23.10.1-cp311-cp311-macosx_10_16_x86_64.whl", hash = "sha256:e293e4c2f4a992b980032bbd62df07c1bcff82d6964d6c9496f2cd726e246ace"}, - {file = "black-23.10.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7d56124b7a61d092cb52cce34182a5280e160e6aff3137172a68c2c2c4b76bcb"}, - {file = "black-23.10.1-cp311-cp311-win_amd64.whl", hash = "sha256:3f157a8945a7b2d424da3335f7ace89c14a3b0625e6593d21139c2d8214d55ce"}, - {file = "black-23.10.1-cp38-cp38-macosx_10_16_arm64.whl", hash = "sha256:cfcce6f0a384d0da692119f2d72d79ed07c7159879d0bb1bb32d2e443382bf3a"}, - {file = "black-23.10.1-cp38-cp38-macosx_10_16_x86_64.whl", hash = "sha256:33d40f5b06be80c1bbce17b173cda17994fbad096ce60eb22054da021bf933d1"}, - {file = "black-23.10.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:840015166dbdfbc47992871325799fd2dc0dcf9395e401ada6d88fe11498abad"}, - {file = "black-23.10.1-cp38-cp38-win_amd64.whl", hash = "sha256:037e9b4664cafda5f025a1728c50a9e9aedb99a759c89f760bd83730e76ba884"}, - {file = "black-23.10.1-cp39-cp39-macosx_10_16_arm64.whl", hash = "sha256:7cb5936e686e782fddb1c73f8aa6f459e1ad38a6a7b0e54b403f1f05a1507ee9"}, - {file = "black-23.10.1-cp39-cp39-macosx_10_16_x86_64.whl", hash = "sha256:7670242e90dc129c539e9ca17665e39a146a761e681805c54fbd86015c7c84f7"}, - {file = "black-23.10.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5ed45ac9a613fb52dad3b61c8dea2ec9510bf3108d4db88422bacc7d1ba1243d"}, - {file = "black-23.10.1-cp39-cp39-win_amd64.whl", hash = "sha256:6d23d7822140e3fef190734216cefb262521789367fbdc0b3f22af6744058982"}, - {file = "black-23.10.1-py3-none-any.whl", hash = "sha256:d431e6739f727bb2e0495df64a6c7a5310758e87505f5f8cde9ff6c0f2d7e4fe"}, - {file = "black-23.10.1.tar.gz", hash = "sha256:1f8ce316753428ff68749c65a5f7844631aa18c8679dfd3ca9dc1a289979c258"}, -] - -[package.dependencies] -click = ">=8.0.0" -ipython = {version = ">=7.8.0", optional = true, markers = "extra == \"jupyter\""} -mypy-extensions = ">=0.4.3" -packaging = ">=22.0" -pathspec = ">=0.9.0" -platformdirs = ">=2" -tokenize-rt = {version = ">=3.2.0", optional = true, markers = "extra == \"jupyter\""} -tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""} -typing-extensions = {version = ">=4.0.1", markers = "python_version < \"3.11\""} - -[package.extras] -colorama = ["colorama (>=0.4.3)"] -d = ["aiohttp (>=3.7.4)"] -jupyter = ["ipython (>=7.8.0)", "tokenize-rt (>=3.2.0)"] -uvloop = ["uvloop (>=0.15.2)"] - [[package]] name = "bleach" version = "6.1.0" @@ -647,16 +603,6 @@ lint = ["black (>=22.6.0)", "mdformat (>0.7)", "mdformat-gfm (>=0.3.5)", "ruff ( test = ["pytest"] typing = ["mypy (>=0.990)"] -[[package]] -name = "contextvars-executor" -version = "0.0.1" -description = "contextvars friendly ThreadPoolExecutor" -optional = false -python-versions = ">=3.7.0" -files = [ - {file = "contextvars_executor-0.0.1.tar.gz", hash = "sha256:7a47c1e8c29cbdb9006dae5d03be7fd329b5585fe8f0b62e0cd94eaf4db741bd"}, -] - [[package]] name = "coverage" version = "7.3.2" @@ -1005,10 +951,22 @@ files = [ ] [package.dependencies] -httpx = [ - {version = ">=0.24.0,<0.25.0", markers = "python_version >= \"3.8\" and python_version < \"3.9\""}, - {version = ">=0.25.0,<0.26.0", markers = "python_version >= \"3.9\" and python_version < \"4.0\""}, +httpx = {version = ">=0.25.0,<0.26.0", markers = "python_version >= \"3.9\" and python_version < \"4.0\""} +pydantic = ">=1,<3" + +[[package]] +name = "gigachat" +version = "0.1.8" +description = "GigaChat. Python-библиотека для GigaChain" +optional = false +python-versions = ">=3.8,<4.0" +files = [ + {file = "gigachat-0.1.8-py3-none-any.whl", hash = "sha256:2581ed497d47937701846d1433b12974cbfb36a6e1ffeddc3b11ed8e8e0a8ba4"}, + {file = "gigachat-0.1.8.tar.gz", hash = "sha256:9c2a65c9b8543dc4cf74061622aa67446e125f5ef81063b8fd642879cce384d5"}, ] + +[package.dependencies] +httpx = "<1" pydantic = ">=1,<3" [[package]] @@ -1092,27 +1050,6 @@ files = [ {file = "h11-0.14.0.tar.gz", hash = "sha256:8f19fbbe99e72420ff35c00b27a34cb9937e902a8b810e2c88300c6f0a3b699d"}, ] -[[package]] -name = "httpcore" -version = "0.17.3" -description = "A minimal low-level HTTP client." -optional = false -python-versions = ">=3.7" -files = [ - {file = "httpcore-0.17.3-py3-none-any.whl", hash = "sha256:c2789b767ddddfa2a5782e3199b2b7f6894540b17b16ec26b2c4d8e103510b87"}, - {file = "httpcore-0.17.3.tar.gz", hash = "sha256:a6f30213335e34c1ade7be6ec7c47f19f50c56db36abef1a9dfa3815b1cb3888"}, -] - -[package.dependencies] -anyio = ">=3.0,<5.0" -certifi = "*" -h11 = ">=0.13,<0.15" -sniffio = "==1.*" - -[package.extras] -http2 = ["h2 (>=3,<5)"] -socks = ["socksio (==1.*)"] - [[package]] name = "httpcore" version = "0.18.0" @@ -1182,29 +1119,6 @@ files = [ [package.extras] test = ["Cython (>=0.29.24,<0.30.0)"] -[[package]] -name = "httpx" -version = "0.24.1" -description = "The next generation HTTP client." -optional = false -python-versions = ">=3.7" -files = [ - {file = "httpx-0.24.1-py3-none-any.whl", hash = "sha256:06781eb9ac53cde990577af654bd990a4949de37a28bdb4a230d434f3a30b9bd"}, - {file = "httpx-0.24.1.tar.gz", hash = "sha256:5853a43053df830c20f8110c5e69fe44d035d850b2dfe795e196f00fdb774bdd"}, -] - -[package.dependencies] -certifi = "*" -httpcore = ">=0.15.0,<0.18.0" -idna = "*" -sniffio = "*" - -[package.extras] -brotli = ["brotli", "brotlicffi"] -cli = ["click (==8.*)", "pygments (==2.*)", "rich (>=10,<14)"] -http2 = ["h2 (>=3,<5)"] -socks = ["socksio (==1.*)"] - [[package]] name = "httpx" version = "0.25.0" @@ -2270,17 +2184,6 @@ files = [ qa = ["flake8 (==3.8.3)", "mypy (==0.782)"] testing = ["docopt", "pytest (<6.0.0)"] -[[package]] -name = "pathspec" -version = "0.11.2" -description = "Utility library for gitignore style pattern matching of file paths." -optional = false -python-versions = ">=3.7" -files = [ - {file = "pathspec-0.11.2-py3-none-any.whl", hash = "sha256:1d6ed233af05e679efb96b1851550ea95bbb64b7c490b0f5aa52996c11e92a20"}, - {file = "pathspec-0.11.2.tar.gz", hash = "sha256:e0d8d0ac2f12da61956eb2306b69f9469b42f4deb0f3cb6ed47b9cce9996ced3"}, -] - [[package]] name = "pexpect" version = "4.8.0" @@ -2605,6 +2508,20 @@ files = [ [package.dependencies] pytest = ">=3.6.3" +[[package]] +name = "pytest-timeout" +version = "2.2.0" +description = "pytest plugin to abort hanging tests" +optional = false +python-versions = ">=3.7" +files = [ + {file = "pytest-timeout-2.2.0.tar.gz", hash = "sha256:3b0b95dabf3cb50bac9ef5ca912fa0cfc286526af17afc806824df20c2f72c90"}, + {file = "pytest_timeout-2.2.0-py3-none-any.whl", hash = "sha256:bde531e096466f49398a59f2dde76fa78429a09a12411466f88a07213e220de2"}, +] + +[package.dependencies] +pytest = ">=5.0.0" + [[package]] name = "pytest-watch" version = "4.2.0" @@ -3026,28 +2943,28 @@ files = [ [[package]] name = "ruff" -version = "0.0.255" -description = "An extremely fast Python linter, written in Rust." +version = "0.1.4" +description = "An extremely fast Python linter and code formatter, written in Rust." optional = false python-versions = ">=3.7" files = [ - {file = "ruff-0.0.255-py3-none-macosx_10_7_x86_64.whl", hash = "sha256:b2d71fb6a7e50501a2473864acffc85dee6b750c25db198f7e71fe1dbbff1aad"}, - {file = "ruff-0.0.255-py3-none-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl", hash = "sha256:6c97d746861a6010f941179e84bba9feb8a871815667471d9ed6beb98d45c252"}, - {file = "ruff-0.0.255-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9a7fa60085079b91a298b963361be9b1b1c724582af6c84be954cbabdbd9309a"}, - {file = "ruff-0.0.255-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:c089f7141496334ab5a127b54ce55e41f0d6714e68a4453a1e09d2204cdea8c3"}, - {file = "ruff-0.0.255-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0423908caa7d437a416b853214565b9c33bbd1106c4f88147982216dddcbbd96"}, - {file = "ruff-0.0.255-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:981493e92547cacbb8e0874904ec049fe744507ee890dc8736caf89a8864f9a7"}, - {file = "ruff-0.0.255-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:59d5193d2aedb35db180824462b374dbcfc306b2e76076245088afa6e5837df2"}, - {file = "ruff-0.0.255-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:dd5e00733c9d160c8a34a22e62b390da9d1e9f326676402421cb8c1236beefc3"}, - {file = "ruff-0.0.255-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:694418cf41838bd19c6229e4e1b2d04505b1e6b86fe3ab81165484fc96d36f01"}, - {file = "ruff-0.0.255-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:5d0408985c9777369daebb5d3340a99e9f7294bdd7120642239261508185cf89"}, - {file = "ruff-0.0.255-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:abd6376ef9d12f370d95a8c7c98682fbb9bfedfba59f40e84a816fef8ddcb8de"}, - {file = "ruff-0.0.255-py3-none-musllinux_1_2_i686.whl", hash = "sha256:f9b1a5df0bc09193cbef58a6f78e4a9a0b058a4f9733c0442866d078006d1bb9"}, - {file = "ruff-0.0.255-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:6a25c5f4ff087445b2e1bbcb9963f2ae7c868d65e4a8d5f84c36c12f71571179"}, - {file = "ruff-0.0.255-py3-none-win32.whl", hash = "sha256:1ff87a8310354f9f1a099625e54a27fdd6756d9cd2a40b45922f2e943daf982d"}, - {file = "ruff-0.0.255-py3-none-win_amd64.whl", hash = "sha256:f3d8416be618f023f93ec4fd6ee3048585ef85dba9563b2a7e38fc7e5131d5b1"}, - {file = "ruff-0.0.255-py3-none-win_arm64.whl", hash = "sha256:8ba124819624145d7b6b53add40c367c44318893215ffc1bfe3d72e0225a1c9c"}, - {file = "ruff-0.0.255.tar.gz", hash = "sha256:f9eb1d3b2eecbeedae419fa494c4e2a5e4484baf93a1ce0f81eddb005e1919c5"}, + {file = "ruff-0.1.4-py3-none-macosx_10_7_x86_64.whl", hash = "sha256:864958706b669cce31d629902175138ad8a069d99ca53514611521f532d91495"}, + {file = "ruff-0.1.4-py3-none-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl", hash = "sha256:9fdd61883bb34317c788af87f4cd75dfee3a73f5ded714b77ba928e418d6e39e"}, + {file = "ruff-0.1.4-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b4eaca8c9cc39aa7f0f0d7b8fe24ecb51232d1bb620fc4441a61161be4a17539"}, + {file = "ruff-0.1.4-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:a9a1301dc43cbf633fb603242bccd0aaa34834750a14a4c1817e2e5c8d60de17"}, + {file = "ruff-0.1.4-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:78e8db8ab6f100f02e28b3d713270c857d370b8d61871d5c7d1702ae411df683"}, + {file = "ruff-0.1.4-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:80fea754eaae06335784b8ea053d6eb8e9aac75359ebddd6fee0858e87c8d510"}, + {file = "ruff-0.1.4-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:6bc02a480d4bfffd163a723698da15d1a9aec2fced4c06f2a753f87f4ce6969c"}, + {file = "ruff-0.1.4-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9862811b403063765b03e716dac0fda8fdbe78b675cd947ed5873506448acea4"}, + {file = "ruff-0.1.4-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:58826efb8b3efbb59bb306f4b19640b7e366967a31c049d49311d9eb3a4c60cb"}, + {file = "ruff-0.1.4-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:fdfd453fc91d9d86d6aaa33b1bafa69d114cf7421057868f0b79104079d3e66e"}, + {file = "ruff-0.1.4-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:e8791482d508bd0b36c76481ad3117987301b86072158bdb69d796503e1c84a8"}, + {file = "ruff-0.1.4-py3-none-musllinux_1_2_i686.whl", hash = "sha256:01206e361021426e3c1b7fba06ddcb20dbc5037d64f6841e5f2b21084dc51800"}, + {file = "ruff-0.1.4-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:645591a613a42cb7e5c2b667cbefd3877b21e0252b59272ba7212c3d35a5819f"}, + {file = "ruff-0.1.4-py3-none-win32.whl", hash = "sha256:99908ca2b3b85bffe7e1414275d004917d1e0dfc99d497ccd2ecd19ad115fd0d"}, + {file = "ruff-0.1.4-py3-none-win_amd64.whl", hash = "sha256:1dfd6bf8f6ad0a4ac99333f437e0ec168989adc5d837ecd38ddb2cc4a2e3db8a"}, + {file = "ruff-0.1.4-py3-none-win_arm64.whl", hash = "sha256:d98ae9ebf56444e18a3e3652b3383204748f73e247dea6caaf8b52d37e6b32da"}, + {file = "ruff-0.1.4.tar.gz", hash = "sha256:21520ecca4cc555162068d87c747b8f95e1e95f8ecfcbbe59e8dd00710586315"}, ] [[package]] @@ -3304,17 +3221,6 @@ webencodings = ">=0.4" doc = ["sphinx", "sphinx_rtd_theme"] test = ["flake8", "isort", "pytest"] -[[package]] -name = "tokenize-rt" -version = "5.2.0" -description = "A wrapper around the stdlib `tokenize` which roundtrips." -optional = false -python-versions = ">=3.8" -files = [ - {file = "tokenize_rt-5.2.0-py2.py3-none-any.whl", hash = "sha256:b79d41a65cfec71285433511b50271b05da3584a1da144a0752e9c621a285289"}, - {file = "tokenize_rt-5.2.0.tar.gz", hash = "sha256:9fe80f8a5c1edad2d3ede0f37481cc0cc1538a2f442c9c2f9e4feacd2792d054"}, -] - [[package]] name = "tomli" version = "2.0.1" @@ -3991,4 +3897,4 @@ server = ["fastapi", "sse-starlette"] [metadata] lock-version = "2.0" python-versions = "^3.8.1" -content-hash = "b38df988aea32f1c26127729be91b6dec5299b0da3b591b15fffc6529b12efef" +content-hash = "8fc9b28af28b29e6b2aab56f564887d58360d2eeaeb1f08e25172ecb48e32b7e" diff --git a/pyproject.toml b/pyproject.toml index a8821264..5e14e66a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "gigaserve" -version = "0.0.21" +version = "0.0.24" description = "" readme = "README.md" authors = ["LangChain", "GigaChain"] @@ -18,10 +18,8 @@ httpx = ">=0.23.0" # May be able to decrease this version fastapi = {version = ">=0.90.1", optional = true} sse-starlette = {version = "^1.3.0", optional = true} httpx-sse = {version = ">=0.3.1", optional = true} -pydantic = "^1" -gigachain = ">=0.0.324" -gigachat = ">=0.1.7" -contextvars-executor = "^0.0.1" +pydantic = ">=1" +gigachain = ">=0.0.322" [tool.poetry.group.dev.dependencies] jupyterlab = "^3.6.1" @@ -32,8 +30,7 @@ httpx-sse = ">=0.3.1" [tool.poetry.group.typing.dependencies] [tool.poetry.group.lint.dependencies] -black = { version="^23.1.0", extras=["jupyter"] } -ruff = "^0.0.255" +ruff = "^0.1.4" codespell = "^2.2.0" [tool.poetry.group.test.dependencies] @@ -43,6 +40,7 @@ pytest-asyncio = "^0.21.1" pytest-mock = "^3.11.1" pytest-socket = "^0.6.0" pytest-watch = "^4.2.0" +pytest-timeout = "^2.2.0" [tool.poetry.group.examples.dependencies] openai = "^0.28.0" @@ -89,3 +87,14 @@ omit = [ requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" +[tool.pytest.ini_options] +# --strict-markers will raise errors on unknown marks. +# https://docs.pytest.org/en/7.1.x/how-to/mark.html#raising-errors-on-unknown-marks +# +# https://docs.pytest.org/en/7.1.x/reference/reference.html +# --strict-config any warnings encountered while parsing the `pytest` +# section of the configuration file raise errors. +addopts = "--strict-markers --strict-config --durations=5 -vv" +# Global timeout for all tests. There shuold be a good reason for a test to +# take more than 1 second +timeout = 1 diff --git a/tests/unit_tests/test_server_client.py b/tests/unit_tests/test_server_client.py index a025dba1..3f9323b6 100644 --- a/tests/unit_tests/test_server_client.py +++ b/tests/unit_tests/test_server_client.py @@ -1,15 +1,18 @@ """Test the server and client together.""" import asyncio +import datetime import json +import os import uuid from asyncio import AbstractEventLoop from contextlib import asynccontextmanager, contextmanager -from typing import Any, Dict, Iterator, List, Optional, Union +from typing import Any, Dict, Iterable, Iterator, List, Optional, Union +from unittest.mock import MagicMock, patch import httpx import pytest import pytest_asyncio -from fastapi import APIRouter, FastAPI +from fastapi import APIRouter, FastAPI, Request from fastapi.testclient import TestClient from httpx import AsyncClient from langchain.callbacks.tracers.log_stream import RunLogPatch @@ -19,6 +22,8 @@ from langchain.schema.runnable import Runnable, RunnableConfig, RunnablePassthrough from langchain.schema.runnable.base import RunnableLambda from langchain.schema.runnable.utils import ConfigurableField, Input, Output +from langsmith import schemas as ls_schemas +from pytest import MonkeyPatch from pytest_mock import MockerFixture from typing_extensions import TypedDict @@ -66,6 +71,23 @@ def _decode_eventstream(text: str) -> List[Dict[str, Any]]: return events +def _replace_run_id_in_stream_resp(streamed_resp: str) -> str: + """ + Replace the run_id in the streamed response's metadata with a placeholder. + + Assumes run_id only appears once in the text. This is hacky :) + """ + metadata_expected_str = 'event: metadata\r\ndata: {"run_id": "' + run_id_idx = streamed_resp.find(metadata_expected_str) + assert run_id_idx != -1 + + uuid_start_pos = run_id_idx + len(metadata_expected_str) + uuid_len = 36 + + uuid = streamed_resp[uuid_start_pos : uuid_start_pos + uuid_len] + return streamed_resp.replace(uuid, "") + + @pytest.fixture(scope="session") def event_loop(): """Create an instance of the default event loop for each test case.""" @@ -89,6 +111,7 @@ async def add_one_or_passthrough( else: return x + os.environ["LANGCHAIN_TRACING_V2"] = "true" runnable_lambda = RunnableLambda(func=add_one_or_passthrough) app = FastAPI() try: @@ -271,7 +294,16 @@ async def test_server_async(app: FastAPI) -> None: # Test stream response = await async_client.post("/stream", json={"input": 1}) - assert response.text == "event: data\r\ndata: 2\r\n\r\nevent: end\r\n\r\n" + response_text_with_run_id_replaced = _replace_run_id_in_stream_resp( + response.text + ) + expected_response_with_run_id_replaced = ( + 'event: metadata\r\ndata: {"run_id": ""}\r\n\r\n' + + "event: data\r\ndata: 2\r\n\r\nevent: end\r\n\r\n" + ) + assert ( + response_text_with_run_id_replaced == expected_response_with_run_id_replaced + ) response = await async_client.post("/stream_log", json={"input": 1}) assert response.text.startswith("event: data\r\n") @@ -380,9 +412,11 @@ async def test_server_bound_async(app_for_config: FastAPI) -> None: json={"input": 1, "config": {"tags": ["another-one"]}}, ) assert response.status_code == 200 + + response_with_run_id_replaced = _replace_run_id_in_stream_resp(response.text) assert ( - response.text - == """event: data\r\ndata: {"tags": ["another-one", "test"], "configurable": null}\r\n\r\nevent: end\r\n\r\n""" # noqa: E501 + response_with_run_id_replaced + == """event: metadata\r\ndata: {"run_id": ""}\r\n\r\nevent: data\r\ndata: {"tags": ["another-one", "test"], "configurable": null}\r\n\r\nevent: end\r\n\r\n""" # noqa: E501 ) @@ -1263,8 +1297,14 @@ async def passthrough_dict(d: Any) -> Any: } -class ErroringRunnable(Runnable): - """A custom runnable for testing errors are raised server side.""" +class StreamingRunnable(Runnable): + """A custom runnable used for testing purposes""" + + iterable: Iterable[Any] + + def __init__(self, iterable: Iterable[Any]) -> None: + """Initialize the runnable.""" + self.iterable = iterable def invoke(self, input: Input, config: Optional[RunnableConfig] = None) -> Output: """Invoke the runnable.""" @@ -1276,9 +1316,7 @@ def stream( config: Optional[RunnableConfig] = None, **kwargs: Optional[Any], ) -> Iterator[Output]: - yield 1 - yield 2 - raise ValueError("An exception occurred") + raise NotImplementedError() async def astream( self, @@ -1286,9 +1324,46 @@ async def astream( config: Optional[RunnableConfig] = None, **kwargs: Optional[Any], ) -> Iterator[Output]: - yield 1 - yield 2 - raise ValueError("An exception occurred") + for element in self.iterable: + if isinstance(element, BaseException): + raise element + yield element + + +# Have not figured out how to test sync stream yet +# def test_streaming_dict_sync() -> None: +# """Test streaming different types of items.""" +# app = FastAPI() +# +# stream_dict = StreamingRunnable(iterable=[{"a": "1"}, {"a": "2"}]) +# +# add_routes(app, stream_dict) +# +# # Invoke request +# with get_sync_remote_runnable(app) as runnable: +# chunks = [] +# for chunk in runnable.stream("input ignored"): +# chunks.append(chunk) +# +# assert chunks == [{"a": "1"}, {"a": "2"}] + + +@pytest.mark.asyncio +async def test_streaming_dict_async() -> None: + """Test streaming different types of items.""" + app = FastAPI() + + stream_dict = StreamingRunnable(iterable=[{"a": "1"}, {"a": "2"}]) + + add_routes(app, stream_dict) + + # Invoke request + async with get_async_remote_runnable(app, raise_app_exceptions=False) as runnable: + chunks = [] + async for chunk in runnable.astream("input ignored"): + chunks.append(chunk) + + assert chunks == [{"a": "1"}, {"a": "2"}] @pytest.mark.asyncio @@ -1296,7 +1371,9 @@ async def test_server_side_error() -> None: """Test server side error handling.""" app = FastAPI() - add_routes(app, ErroringRunnable()) + + erroring_stream = StreamingRunnable(iterable=[1, 2, ValueError("An error")]) + add_routes(app, erroring_stream) # Invoke request async with get_async_remote_runnable(app, raise_app_exceptions=False) as runnable: @@ -1346,11 +1423,12 @@ async def test_server_side_error() -> None: # assert e.response.text == "Internal Server Error" -def test_server_side_error_sync() -> None: +def test_server_side_error_sync(event_loop: AbstractEventLoop) -> None: """Test server side error handling.""" app = FastAPI() - add_routes(app, ErroringRunnable()) + erroring_stream = StreamingRunnable(iterable=[1, 2, ValueError("An error")]) + add_routes(app, erroring_stream) # Invoke request with get_sync_remote_runnable(app, raise_server_exceptions=False) as runnable: @@ -1467,3 +1545,140 @@ async def test_batch_returns_run_id(app: FastAPI) -> None: assert len(run_ids) == 2 for run_id in run_ids: assert _is_valid_uuid(run_id) + + +@pytest.mark.asyncio +async def test_feedback_succeeds_when_langsmith_enabled() -> None: + """Tests that the feedback endpoint can accept feedback to langsmith.""" + + with patch("langserve.server.ls_client") as mocked_ls_client_package: + mocked_client = MagicMock(return_value=None) + mocked_ls_client_package.Client.return_value = mocked_client + + mocked_client.create_feedback.return_value = ls_schemas.Feedback( + id="5484c6b3-5a1a-4a87-b2c7-2e39e7a7e4ac", + created_at=datetime.datetime(1994, 9, 19, 9, 19), + modified_at=datetime.datetime(1994, 9, 19, 9, 19), + run_id="f47ac10b-58cc-4372-a567-0e02b2c3d479", + key="silliness", + score=1000, + ) + + local_app = FastAPI() + add_routes( + local_app, + RunnableLambda(lambda foo: "hello"), + enable_feedback_endpoint=True, + ) + + async with get_async_test_client( + local_app, raise_app_exceptions=True + ) as async_client: + response = await async_client.post( + "/feedback", + json={ + "run_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479", + "key": "silliness", + "score": 1000, + }, + ) + + expected_response_json = { + "run_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479", + "key": "silliness", + "score": 1000, + "created_at": datetime.datetime(1994, 9, 19, 9, 19).strftime( + "%Y-%m-%dT%H:%M:%S" + ), + "modified_at": datetime.datetime(1994, 9, 19, 9, 19).strftime( + "%Y-%m-%dT%H:%M:%S" + ), + "comment": None, + "correction": None, + "value": None, + } + + assert response.json() == expected_response_json + + +@pytest.mark.asyncio +async def test_feedback_fails_when_langsmith_disabled(app: FastAPI) -> None: + """Tests that feedback is not sent to langsmith if langsmith is disabled.""" + with MonkeyPatch.context() as mp: + # Explicitly disable langsmith + mp.setenv("LANGCHAIN_TRACING_V2", "false") + local_app = FastAPI() + add_routes( + local_app, + RunnableLambda(lambda foo: "hello"), + # Explicitly enable feedback so that we know failures are from + # langsmith being disabled + enable_feedback_endpoint=True, + ) + + async with get_async_test_client( + local_app, raise_app_exceptions=True + ) as async_client: + response = await async_client.post( + "/feedback", + json={ + "run_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479", + "key": "silliness", + "score": 1000, + }, + ) + assert response.status_code == 400 + + +@pytest.mark.asyncio +async def test_feedback_fails_when_endpoint_disabled(app: FastAPI) -> None: + """ + Tests that the feedback endpoint returns 400s if the user turns it off. + """ + async with get_async_test_client( + app, + raise_app_exceptions=True, + ) as async_client: + response = await async_client.post( + "/feedback", + json={ + "run_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479", + "key": "silliness", + "score": 1000, + }, + ) + assert response.status_code == 400 + + +@pytest.mark.asyncio +async def test_per_request_config_modifier( + event_loop: AbstractEventLoop, mocker: MockerFixture +) -> None: + """Test updating the config based on the raw request object.""" + + async def add_one(x: int) -> int: + """Add one to simulate a valid function""" + return x + 1 + + app = FastAPI() + + def header_passthru_modifier( + config: Dict[str, Any], request: Request + ) -> Dict[str, Any]: + """Update the config""" + config = config.copy() + if "metadata" in config: + config["metadata"] = config["metadata"].copy() + else: + config["metadata"] = {} + config["metadata"]["headers"] = request.headers + return config + + server_runnable = RunnableLambda(add_one) + + add_routes( + app, + server_runnable, + path="/add_one", + per_req_config_modifier=header_passthru_modifier, + ) diff --git a/tests/unit_tests/test_validation.py b/tests/unit_tests/test_validation.py index 1970d2b1..d63f3810 100644 --- a/tests/unit_tests/test_validation.py +++ b/tests/unit_tests/test_validation.py @@ -1,6 +1,8 @@ from typing import List, Optional +from unittest.mock import MagicMock import pytest +from fastapi import Request from langchain.prompts import PromptTemplate from langchain.schema.runnable.utils import ConfigurableField @@ -157,6 +159,8 @@ def test_invoke_request_with_runnables() -> None: ).config, keys=[], model=config, + request=MagicMock(Request), + per_req_config_modifier=lambda x, y: x, ) == {} ) @@ -179,7 +183,11 @@ def test_invoke_request_with_runnables() -> None: } assert _unpack_request_config( - request.config, keys=["configurable"], model=config + request.config, + keys=["configurable"], + model=config, + request=MagicMock(Request), + per_req_config_modifier=lambda x, y: x, ) == { "configurable": {"template": "goodbye {name}"}, }