diff --git a/.clabot b/.clabot index 5ccacde2..a113c5c4 100644 --- a/.clabot +++ b/.clabot @@ -1,4 +1,4 @@ { - "contributors": ["eyurtsev", "hwchase17", "nfcampos", "efriis", "jacoblee93", "dqbd", "harris", "baskaryan", "hinthornw", "bracesproul", "jakerachleff"], + "contributors": ["eyurtsev", "hwchase17", "nfcampos", "efriis", "jacoblee93", "dqbd", "harris", "baskaryan", "hinthornw", "bracesproul", "jakerachleff", "samya123456", "cardosofede", "donatienthorez"], "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/bJtcHNhhWwarQf83A .\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/opengpts/blob/main/CONTRIBUTING.md." } diff --git a/Dockerfile b/Dockerfile index 526ebb56..751349bb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,6 +10,4 @@ RUN rm poetry.lock RUN pip install . -COPY ./frontend/dist ./ui - CMD exec uvicorn app.server:app --host 0.0.0.0 --port $PORT diff --git a/MEMORY.md b/MEMORY.md new file mode 100644 index 00000000..01128dd9 --- /dev/null +++ b/MEMORY.md @@ -0,0 +1,40 @@ +# Long-Term memory +Memory is one part of a cognitive architecture. +Just as with cognitive architectures, we've found in practice that more application specific forms of memory can go a long way in increasing the reliability and performance of your application. + +When we think of long term memory, the most general abstraction is: +- There exists some state that is tracked over time +- This state is updated at some period +- This state is combined into the prompt in some way + + +So when you're building your application, we would highly recommend asking the above questions: +- What is the state that is tracked? +- How is the state updated? +- How is the state used? + +Of course, this is easier said than done. +And then even if you are able to answer those questions, how can you actually build it? +We've decided to give this a go within OpenGPTs and build a specific type of chatbot with a specific form of memory. + +We decided to build a chatbot that could reliably serve as a dungeon master for a game of dungeon and dragons. +What is the specific type of memory we wanted for this? + +**What is the state that is tracked?** + +We wanted to first make sure to track the characters that we're involved in the game. Who they were, their descriptions, etc. This seems like something that should be known. +We then also wanted to track the state of the game itself. What had happened up to that point, where they were, etc. +We decided to split this into two distinct things - so we were actually tracking an updating two different states. + +**How is the state updated?** + +For the character description, we just wanted to update that once at beginning. So we wanted our chatbot to gather all relevant information, update that state, and then never update it again. +Afterwards, we wanted our chatbot to attempt to update the state of the game every turn. If it decides that no update is necessary, then we won't update it. Otherwise, we will override the current state of the game with an LLM generated new state. + +**How is the state used?** + +We wanted both the character description and the state of the game to always be inserted into the prompt. This is pretty straightforward since they were both text, so it was just some prompt engineering with some placeholders for those variables. + +## Implementation +You can see the implementation for this in [this file](backend/packages/agent-executor/agent_executor/dnd.py). +This should be easily modifiable to track another state - to do so, you will want to update the prompts and maybe some of the channels that are written to. \ No newline at end of file diff --git a/README.md b/README.md index 1e4856ae..2a5b19a1 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ OpenGPTs gives you more control, allowing you to configure: **Key Links** - [GPTs: a simple hosted version](https://opengpts-example-vz4y4ooboq-uc.a.run.app/) - [Assistants API: a getting started guide](API.md) +- [Memory: how to use long-term memory](MEMORY.md) ## Quickstart diff --git a/backend/Makefile b/backend/Makefile index 4b23a5d3..6ff46f51 100644 --- a/backend/Makefile +++ b/backend/Makefile @@ -13,6 +13,9 @@ build_ui: # Define a variable for the test file path. TEST_FILE ?= tests/unit_tests/ +start: + poetry run uvicorn app.server:app --reload --port 8100 + test: # We need to update handling of env variables for tests YDC_API_KEY=placeholder OPENAI_API_KEY=placeholder poetry run pytest $(TEST_FILE) diff --git a/backend/app/api/assistants.py b/backend/app/api/assistants.py index 45d7e53f..01297c65 100644 --- a/backend/app/api/assistants.py +++ b/backend/app/api/assistants.py @@ -9,10 +9,7 @@ router = APIRouter() -FEATURED_PUBLIC_ASSISTANTS = [ - "ba721964-b7e4-474c-b817-fb089d94dc5f", - "dc3ec482-aafc-4d90-8a1a-afb9b2876cde", -] +FEATURED_PUBLIC_ASSISTANTS = [] class AssistantPayload(BaseModel): diff --git a/backend/packages/agent-executor/agent_executor/checkpoint.py b/backend/packages/agent-executor/agent_executor/checkpoint.py index ec4f8f64..a2c5ddca 100644 --- a/backend/packages/agent-executor/agent_executor/checkpoint.py +++ b/backend/packages/agent-executor/agent_executor/checkpoint.py @@ -1,7 +1,7 @@ import os import pickle from functools import partial -from typing import Any, Mapping, Sequence +from typing import Any, Mapping from langchain.pydantic_v1 import Field from langchain.schema.runnable import RunnableConfig @@ -35,7 +35,7 @@ class Config: arbitrary_types_allowed = True @property - def config_specs(self) -> Sequence[ConfigurableFieldSpec]: + def config_specs(self) -> list[ConfigurableFieldSpec]: return [ ConfigurableFieldSpec( id="user_id", @@ -43,6 +43,7 @@ def config_specs(self) -> Sequence[ConfigurableFieldSpec]: name="User ID", description=None, default=None, + is_shared=True, ), ConfigurableFieldSpec( id="thread_id", @@ -50,6 +51,7 @@ def config_specs(self) -> Sequence[ConfigurableFieldSpec]: name="Thread ID", description=None, default="", + is_shared=True, ), ] diff --git a/backend/packages/agent-executor/agent_executor/dnd.py b/backend/packages/agent-executor/agent_executor/dnd.py new file mode 100644 index 00000000..4fd39502 --- /dev/null +++ b/backend/packages/agent-executor/agent_executor/dnd.py @@ -0,0 +1,136 @@ +import json + +from langchain.prompts import ChatPromptTemplate, MessagesPlaceholder +from langchain.pydantic_v1 import BaseModel, Field +from langchain.utils.openai_functions import convert_pydantic_to_openai_function +from langchain_core.language_models import BaseChatModel +from langchain_core.messages import AIMessage, AnyMessage, HumanMessage +from permchain import BaseCheckpointAdapter, Channel, Pregel +from permchain.channels import LastValue, Topic + +character_system_msg = """You are a dungeon master for a game of dungeons and dragons. + +You are interacting with the first (and only) player in the game. \ +Your job is to collect all needed information about their character. This will be used in the quest. \ +Feel free to ask them as many questions as needed to get to the relevant information. +The relevant information is: +- Character's name +- Character's race (or species) +- Character's class +- Character's alignment + +Once you have gathered enough information, write that info to `notebook`.""" + + +class CharacterNotebook(BaseModel): + """Notebook to write information to""" + + player_info: str = Field( + description="Information about a player that you will remember over time" + ) + + +character_prompt = ChatPromptTemplate.from_messages( + [("system", character_system_msg), MessagesPlaceholder(variable_name="messages")] +) + +gameplay_system_msg = """You are a dungeon master for a game of dungeons and dragons. + +You are leading a quest of one person. Their character description is here: + +{character} + +A summary of the game state is here: + +{state}""" + +game_prompt = ChatPromptTemplate.from_messages( + [("system", gameplay_system_msg), MessagesPlaceholder(variable_name="messages")] +) + + +class StateNotebook(BaseModel): + """Notebook to write information to""" + + state: str = Field(description="Information about the current game state") + + +state_prompt = ChatPromptTemplate.from_messages( + [ + ("system", gameplay_system_msg), + MessagesPlaceholder(variable_name="messages"), + ( + "human", + "If any updates to the game state are neccessary, please update the state notebook. If none are, just say no.", + ), + ] +) + + +def _maybe_update_state(message: AnyMessage): + if "function_call" in message.additional_kwargs: + return Channel.write_to( + "messages", + state=json.loads(message.additional_kwargs["function_call"]["arguments"])[ + "state" + ], + ) + + +def _maybe_update_character(message: AnyMessage): + if "function_call" in message.additional_kwargs: + args = json.loads(message.additional_kwargs["function_call"]["arguments"]) + return Channel.write_to( + messages=AIMessage(content="Ready for the quest?"), + character=args["player_info"], + ) + + +def create_dnd_bot(llm: BaseChatModel, checkpoint: BaseCheckpointAdapter): + character_model = llm.bind( + functions=[convert_pydantic_to_openai_function(CharacterNotebook)], + ) + game_chain = game_prompt | llm | Channel.write_to("messages", check_update=True) + state_model = llm.bind( + functions=[convert_pydantic_to_openai_function(StateNotebook)], + stream=False, + ) + state_chain = ( + Channel.subscribe_to(["check_update"]).join(["messages", "character", "state"]) + | state_prompt + | state_model + | _maybe_update_state + ) + character_chain = ( + character_prompt + | character_model + | Channel.write_to("messages") + | _maybe_update_character + ) + + def _route_to_chain(_input): + messages = _input["messages"] + if not messages: + return + if not _input["character"] and isinstance(messages[-1], HumanMessage): + return character_chain + elif isinstance(messages[-1], HumanMessage): + return game_chain + + executor = ( + Channel.subscribe_to(["messages"]).join(["character", "state"]) + | _route_to_chain + ) + dnd = Pregel( + chains={"executor": executor, "update_state": state_chain}, + channels={ + "messages": Topic(AnyMessage, accumulate=True), + "character": LastValue(str), + "state": LastValue(str), + "check_update": LastValue(bool), + }, + input=["messages"], + output=["messages"], + checkpoint=checkpoint, + ) + return dnd diff --git a/backend/packages/agent-executor/agent_executor/permchain.py b/backend/packages/agent-executor/agent_executor/permchain.py index 1bee2808..bbf7d8e9 100644 --- a/backend/packages/agent-executor/agent_executor/permchain.py +++ b/backend/packages/agent-executor/agent_executor/permchain.py @@ -3,19 +3,7 @@ from typing import Sequence from langchain.schema.agent import AgentAction, AgentActionMessageLog, AgentFinish -from langchain.schema.messages import ( - AnyMessage, - AIMessage, - AIMessageChunk, - BaseMessage, - BaseMessageChunk, - ChatMessage, - ChatMessageChunk, - FunctionMessage, - FunctionMessageChunk, - HumanMessage, - HumanMessageChunk, -) +from langchain.schema.messages import AIMessage, AnyMessage, FunctionMessage from langchain.schema.runnable import ( Runnable, RunnableConfig, @@ -28,29 +16,13 @@ from permchain.checkpoint.base import BaseCheckpointAdapter -def map_chunk_to_msg(chunk: BaseMessageChunk) -> BaseMessage: - if not isinstance(chunk, BaseMessageChunk): - return chunk - args = {k: v for k, v in chunk.__dict__.items() if k != "type"} - if isinstance(chunk, HumanMessageChunk): - return HumanMessage(**args) - elif isinstance(chunk, AIMessageChunk): - return AIMessage(**args) - elif isinstance(chunk, FunctionMessageChunk): - return FunctionMessage(**args) - elif isinstance(chunk, ChatMessageChunk): - return ChatMessage(**args) - else: - raise ValueError(f"Unknown chunk type: {chunk}") - - def _create_agent_message( output: AgentAction | AgentFinish ) -> list[AnyMessage] | AnyMessage: if isinstance(output, AgentAction): if isinstance(output, AgentActionMessageLog): output.message_log[-1].additional_kwargs["agent"] = output - messages = [map_chunk_to_msg(m) for m in output.message_log] + messages = output.message_log output.message_log = [] # avoid circular reference for json dumps return messages else: diff --git a/backend/packages/gizmo-agent/gizmo_agent/main.py b/backend/packages/gizmo-agent/gizmo_agent/main.py index 8ebc4c8f..fe38a969 100644 --- a/backend/packages/gizmo-agent/gizmo_agent/main.py +++ b/backend/packages/gizmo-agent/gizmo_agent/main.py @@ -1,7 +1,10 @@ +import os from typing import Any, Mapping, Optional, Sequence from agent_executor.checkpoint import RedisCheckpoint +from agent_executor.dnd import create_dnd_bot from agent_executor.permchain import get_agent_executor +from langchain.chat_models import AzureChatOpenAI, ChatOpenAI from langchain.pydantic_v1 import BaseModel, Field from langchain.schema.messages import AnyMessage from langchain.schema.runnable import ( @@ -82,6 +85,27 @@ class AgentOutput(BaseModel): messages: Sequence[AnyMessage] = Field(..., extra={"widget": {"type": "chat"}}) +dnd_llm = ChatOpenAI( + model="gpt-3.5-turbo-1106", temperature=0, streaming=True +).configurable_alternatives( + ConfigurableField(id="llm", name="LLM"), + default_key="gpt-35-turbo", + azure_openai=AzureChatOpenAI( + temperature=0, + deployment_name=os.environ["AZURE_OPENAI_DEPLOYMENT_NAME"], + openai_api_base=os.environ["AZURE_OPENAI_API_BASE"], + openai_api_version=os.environ["AZURE_OPENAI_API_VERSION"], + openai_api_key=os.environ["AZURE_OPENAI_API_KEY"], + streaming=True, + ), +) + + +dnd_bot = create_dnd_bot(dnd_llm, checkpoint=RedisCheckpoint()).with_types( + input_type=AgentInput, output_type=AgentOutput +) + + agent = ( ConfigurableAgent( agent=GizmoAgentType.GPT_35_TURBO, @@ -92,7 +116,9 @@ class AgentOutput(BaseModel): .configurable_fields( agent=ConfigurableField(id="agent_type", name="Agent Type"), system_message=ConfigurableField(id="system_message", name="System Message"), - assistant_id=ConfigurableField(id="assistant_id", name="Assistant ID"), + assistant_id=ConfigurableField( + id="assistant_id", name="Assistant ID", is_shared=True + ), tools=ConfigurableFieldMultiOption( id="tools", name="Tools", @@ -100,6 +126,12 @@ class AgentOutput(BaseModel): default=[], ), ) + .configurable_alternatives( + ConfigurableField(id="type", name="Bot Type"), + default_key="agent", + prefix_keys=True, + dungeons_and_dragons=dnd_bot, + ) .with_types(input_type=AgentInput, output_type=AgentOutput) ) diff --git a/backend/poetry.lock b/backend/poetry.lock index 87d786ed..6983ba0b 100644 --- a/backend/poetry.lock +++ b/backend/poetry.lock @@ -30,111 +30,99 @@ files = [ [[package]] name = "aiohttp" -version = "3.8.6" +version = "3.9.1" description = "Async http client/server framework (asyncio)" optional = false -python-versions = ">=3.6" +python-versions = ">=3.8" files = [ - {file = "aiohttp-3.8.6-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:41d55fc043954cddbbd82503d9cc3f4814a40bcef30b3569bc7b5e34130718c1"}, - {file = "aiohttp-3.8.6-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:1d84166673694841d8953f0a8d0c90e1087739d24632fe86b1a08819168b4566"}, - {file = "aiohttp-3.8.6-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:253bf92b744b3170eb4c4ca2fa58f9c4b87aeb1df42f71d4e78815e6e8b73c9e"}, - {file = "aiohttp-3.8.6-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3fd194939b1f764d6bb05490987bfe104287bbf51b8d862261ccf66f48fb4096"}, - {file = "aiohttp-3.8.6-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:6c5f938d199a6fdbdc10bbb9447496561c3a9a565b43be564648d81e1102ac22"}, - {file = "aiohttp-3.8.6-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2817b2f66ca82ee699acd90e05c95e79bbf1dc986abb62b61ec8aaf851e81c93"}, - {file = "aiohttp-3.8.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0fa375b3d34e71ccccf172cab401cd94a72de7a8cc01847a7b3386204093bb47"}, - {file = "aiohttp-3.8.6-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9de50a199b7710fa2904be5a4a9b51af587ab24c8e540a7243ab737b45844543"}, - {file = "aiohttp-3.8.6-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:e1d8cb0b56b3587c5c01de3bf2f600f186da7e7b5f7353d1bf26a8ddca57f965"}, - {file = "aiohttp-3.8.6-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:8e31e9db1bee8b4f407b77fd2507337a0a80665ad7b6c749d08df595d88f1cf5"}, - {file = "aiohttp-3.8.6-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:7bc88fc494b1f0311d67f29fee6fd636606f4697e8cc793a2d912ac5b19aa38d"}, - {file = "aiohttp-3.8.6-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:ec00c3305788e04bf6d29d42e504560e159ccaf0be30c09203b468a6c1ccd3b2"}, - {file = "aiohttp-3.8.6-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:ad1407db8f2f49329729564f71685557157bfa42b48f4b93e53721a16eb813ed"}, - {file = "aiohttp-3.8.6-cp310-cp310-win32.whl", hash = "sha256:ccc360e87341ad47c777f5723f68adbb52b37ab450c8bc3ca9ca1f3e849e5fe2"}, - {file = "aiohttp-3.8.6-cp310-cp310-win_amd64.whl", hash = "sha256:93c15c8e48e5e7b89d5cb4613479d144fda8344e2d886cf694fd36db4cc86865"}, - {file = "aiohttp-3.8.6-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:6e2f9cc8e5328f829f6e1fb74a0a3a939b14e67e80832975e01929e320386b34"}, - {file = "aiohttp-3.8.6-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:e6a00ffcc173e765e200ceefb06399ba09c06db97f401f920513a10c803604ca"}, - {file = "aiohttp-3.8.6-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:41bdc2ba359032e36c0e9de5a3bd00d6fb7ea558a6ce6b70acedf0da86458321"}, - {file = "aiohttp-3.8.6-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:14cd52ccf40006c7a6cd34a0f8663734e5363fd981807173faf3a017e202fec9"}, - {file = "aiohttp-3.8.6-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:2d5b785c792802e7b275c420d84f3397668e9d49ab1cb52bd916b3b3ffcf09ad"}, - {file = "aiohttp-3.8.6-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:1bed815f3dc3d915c5c1e556c397c8667826fbc1b935d95b0ad680787896a358"}, - {file = "aiohttp-3.8.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:96603a562b546632441926cd1293cfcb5b69f0b4159e6077f7c7dbdfb686af4d"}, - {file = "aiohttp-3.8.6-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d76e8b13161a202d14c9584590c4df4d068c9567c99506497bdd67eaedf36403"}, - {file = "aiohttp-3.8.6-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:e3f1e3f1a1751bb62b4a1b7f4e435afcdade6c17a4fd9b9d43607cebd242924a"}, - {file = "aiohttp-3.8.6-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:76b36b3124f0223903609944a3c8bf28a599b2cc0ce0be60b45211c8e9be97f8"}, - {file = "aiohttp-3.8.6-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:a2ece4af1f3c967a4390c284797ab595a9f1bc1130ef8b01828915a05a6ae684"}, - {file = "aiohttp-3.8.6-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:16d330b3b9db87c3883e565340d292638a878236418b23cc8b9b11a054aaa887"}, - {file = "aiohttp-3.8.6-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:42c89579f82e49db436b69c938ab3e1559e5a4409eb8639eb4143989bc390f2f"}, - {file = "aiohttp-3.8.6-cp311-cp311-win32.whl", hash = "sha256:efd2fcf7e7b9d7ab16e6b7d54205beded0a9c8566cb30f09c1abe42b4e22bdcb"}, - {file = "aiohttp-3.8.6-cp311-cp311-win_amd64.whl", hash = "sha256:3b2ab182fc28e7a81f6c70bfbd829045d9480063f5ab06f6e601a3eddbbd49a0"}, - {file = "aiohttp-3.8.6-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:fdee8405931b0615220e5ddf8cd7edd8592c606a8e4ca2a00704883c396e4479"}, - {file = "aiohttp-3.8.6-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d25036d161c4fe2225d1abff2bd52c34ed0b1099f02c208cd34d8c05729882f0"}, - {file = "aiohttp-3.8.6-cp36-cp36m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5d791245a894be071d5ab04bbb4850534261a7d4fd363b094a7b9963e8cdbd31"}, - {file = "aiohttp-3.8.6-cp36-cp36m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0cccd1de239afa866e4ce5c789b3032442f19c261c7d8a01183fd956b1935349"}, - {file = "aiohttp-3.8.6-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1f13f60d78224f0dace220d8ab4ef1dbc37115eeeab8c06804fec11bec2bbd07"}, - {file = "aiohttp-3.8.6-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:8a9b5a0606faca4f6cc0d338359d6fa137104c337f489cd135bb7fbdbccb1e39"}, - {file = "aiohttp-3.8.6-cp36-cp36m-musllinux_1_1_aarch64.whl", hash = "sha256:13da35c9ceb847732bf5c6c5781dcf4780e14392e5d3b3c689f6d22f8e15ae31"}, - {file = "aiohttp-3.8.6-cp36-cp36m-musllinux_1_1_i686.whl", hash = "sha256:4d4cbe4ffa9d05f46a28252efc5941e0462792930caa370a6efaf491f412bc66"}, - {file = "aiohttp-3.8.6-cp36-cp36m-musllinux_1_1_ppc64le.whl", hash = "sha256:229852e147f44da0241954fc6cb910ba074e597f06789c867cb7fb0621e0ba7a"}, - {file = "aiohttp-3.8.6-cp36-cp36m-musllinux_1_1_s390x.whl", hash = "sha256:713103a8bdde61d13490adf47171a1039fd880113981e55401a0f7b42c37d071"}, - {file = "aiohttp-3.8.6-cp36-cp36m-musllinux_1_1_x86_64.whl", hash = "sha256:45ad816b2c8e3b60b510f30dbd37fe74fd4a772248a52bb021f6fd65dff809b6"}, - {file = "aiohttp-3.8.6-cp36-cp36m-win32.whl", hash = "sha256:2b8d4e166e600dcfbff51919c7a3789ff6ca8b3ecce16e1d9c96d95dd569eb4c"}, - {file = "aiohttp-3.8.6-cp36-cp36m-win_amd64.whl", hash = "sha256:0912ed87fee967940aacc5306d3aa8ba3a459fcd12add0b407081fbefc931e53"}, - {file = "aiohttp-3.8.6-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:e2a988a0c673c2e12084f5e6ba3392d76c75ddb8ebc6c7e9ead68248101cd446"}, - {file = "aiohttp-3.8.6-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ebf3fd9f141700b510d4b190094db0ce37ac6361a6806c153c161dc6c041ccda"}, - {file = "aiohttp-3.8.6-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3161ce82ab85acd267c8f4b14aa226047a6bee1e4e6adb74b798bd42c6ae1f80"}, - {file = "aiohttp-3.8.6-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d95fc1bf33a9a81469aa760617b5971331cdd74370d1214f0b3109272c0e1e3c"}, - {file = "aiohttp-3.8.6-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6c43ecfef7deaf0617cee936836518e7424ee12cb709883f2c9a1adda63cc460"}, - {file = "aiohttp-3.8.6-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ca80e1b90a05a4f476547f904992ae81eda5c2c85c66ee4195bb8f9c5fb47f28"}, - {file = "aiohttp-3.8.6-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:90c72ebb7cb3a08a7f40061079817133f502a160561d0675b0a6adf231382c92"}, - {file = "aiohttp-3.8.6-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:bb54c54510e47a8c7c8e63454a6acc817519337b2b78606c4e840871a3e15349"}, - {file = "aiohttp-3.8.6-cp37-cp37m-musllinux_1_1_ppc64le.whl", hash = "sha256:de6a1c9f6803b90e20869e6b99c2c18cef5cc691363954c93cb9adeb26d9f3ae"}, - {file = "aiohttp-3.8.6-cp37-cp37m-musllinux_1_1_s390x.whl", hash = "sha256:a3628b6c7b880b181a3ae0a0683698513874df63783fd89de99b7b7539e3e8a8"}, - {file = "aiohttp-3.8.6-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:fc37e9aef10a696a5a4474802930079ccfc14d9f9c10b4662169671ff034b7df"}, - {file = "aiohttp-3.8.6-cp37-cp37m-win32.whl", hash = "sha256:f8ef51e459eb2ad8e7a66c1d6440c808485840ad55ecc3cafefadea47d1b1ba2"}, - {file = "aiohttp-3.8.6-cp37-cp37m-win_amd64.whl", hash = "sha256:b2fe42e523be344124c6c8ef32a011444e869dc5f883c591ed87f84339de5976"}, - {file = "aiohttp-3.8.6-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:9e2ee0ac5a1f5c7dd3197de309adfb99ac4617ff02b0603fd1e65b07dc772e4b"}, - {file = "aiohttp-3.8.6-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:01770d8c04bd8db568abb636c1fdd4f7140b284b8b3e0b4584f070180c1e5c62"}, - {file = "aiohttp-3.8.6-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:3c68330a59506254b556b99a91857428cab98b2f84061260a67865f7f52899f5"}, - {file = "aiohttp-3.8.6-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:89341b2c19fb5eac30c341133ae2cc3544d40d9b1892749cdd25892bbc6ac951"}, - {file = "aiohttp-3.8.6-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:71783b0b6455ac8f34b5ec99d83e686892c50498d5d00b8e56d47f41b38fbe04"}, - {file = "aiohttp-3.8.6-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f628dbf3c91e12f4d6c8b3f092069567d8eb17814aebba3d7d60c149391aee3a"}, - {file = "aiohttp-3.8.6-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b04691bc6601ef47c88f0255043df6f570ada1a9ebef99c34bd0b72866c217ae"}, - {file = "aiohttp-3.8.6-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7ee912f7e78287516df155f69da575a0ba33b02dd7c1d6614dbc9463f43066e3"}, - {file = "aiohttp-3.8.6-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:9c19b26acdd08dd239e0d3669a3dddafd600902e37881f13fbd8a53943079dbc"}, - {file = "aiohttp-3.8.6-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:99c5ac4ad492b4a19fc132306cd57075c28446ec2ed970973bbf036bcda1bcc6"}, - {file = "aiohttp-3.8.6-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:f0f03211fd14a6a0aed2997d4b1c013d49fb7b50eeb9ffdf5e51f23cfe2c77fa"}, - {file = "aiohttp-3.8.6-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:8d399dade330c53b4106160f75f55407e9ae7505263ea86f2ccca6bfcbdb4921"}, - {file = "aiohttp-3.8.6-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:ec4fd86658c6a8964d75426517dc01cbf840bbf32d055ce64a9e63a40fd7b771"}, - {file = "aiohttp-3.8.6-cp38-cp38-win32.whl", hash = "sha256:33164093be11fcef3ce2571a0dccd9041c9a93fa3bde86569d7b03120d276c6f"}, - {file = "aiohttp-3.8.6-cp38-cp38-win_amd64.whl", hash = "sha256:bdf70bfe5a1414ba9afb9d49f0c912dc524cf60141102f3a11143ba3d291870f"}, - {file = "aiohttp-3.8.6-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:d52d5dc7c6682b720280f9d9db41d36ebe4791622c842e258c9206232251ab2b"}, - {file = "aiohttp-3.8.6-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:4ac39027011414dbd3d87f7edb31680e1f430834c8cef029f11c66dad0670aa5"}, - {file = "aiohttp-3.8.6-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:3f5c7ce535a1d2429a634310e308fb7d718905487257060e5d4598e29dc17f0b"}, - {file = "aiohttp-3.8.6-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b30e963f9e0d52c28f284d554a9469af073030030cef8693106d918b2ca92f54"}, - {file = "aiohttp-3.8.6-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:918810ef188f84152af6b938254911055a72e0f935b5fbc4c1a4ed0b0584aed1"}, - {file = "aiohttp-3.8.6-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:002f23e6ea8d3dd8d149e569fd580c999232b5fbc601c48d55398fbc2e582e8c"}, - {file = "aiohttp-3.8.6-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4fcf3eabd3fd1a5e6092d1242295fa37d0354b2eb2077e6eb670accad78e40e1"}, - {file = "aiohttp-3.8.6-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:255ba9d6d5ff1a382bb9a578cd563605aa69bec845680e21c44afc2670607a95"}, - {file = "aiohttp-3.8.6-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:d67f8baed00870aa390ea2590798766256f31dc5ed3ecc737debb6e97e2ede78"}, - {file = "aiohttp-3.8.6-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:86f20cee0f0a317c76573b627b954c412ea766d6ada1a9fcf1b805763ae7feeb"}, - {file = "aiohttp-3.8.6-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:39a312d0e991690ccc1a61f1e9e42daa519dcc34ad03eb6f826d94c1190190dd"}, - {file = "aiohttp-3.8.6-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:e827d48cf802de06d9c935088c2924e3c7e7533377d66b6f31ed175c1620e05e"}, - {file = "aiohttp-3.8.6-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:bd111d7fc5591ddf377a408ed9067045259ff2770f37e2d94e6478d0f3fc0c17"}, - {file = "aiohttp-3.8.6-cp39-cp39-win32.whl", hash = "sha256:caf486ac1e689dda3502567eb89ffe02876546599bbf915ec94b1fa424eeffd4"}, - {file = "aiohttp-3.8.6-cp39-cp39-win_amd64.whl", hash = "sha256:3f0e27e5b733803333bb2371249f41cf42bae8884863e8e8965ec69bebe53132"}, - {file = "aiohttp-3.8.6.tar.gz", hash = "sha256:b0cf2a4501bff9330a8a5248b4ce951851e415bdcce9dc158e76cfd55e15085c"}, + {file = "aiohttp-3.9.1-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:e1f80197f8b0b846a8d5cf7b7ec6084493950d0882cc5537fb7b96a69e3c8590"}, + {file = "aiohttp-3.9.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:c72444d17777865734aa1a4d167794c34b63e5883abb90356a0364a28904e6c0"}, + {file = "aiohttp-3.9.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:9b05d5cbe9dafcdc733262c3a99ccf63d2f7ce02543620d2bd8db4d4f7a22f83"}, + {file = "aiohttp-3.9.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5c4fa235d534b3547184831c624c0b7c1e262cd1de847d95085ec94c16fddcd5"}, + {file = "aiohttp-3.9.1-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:289ba9ae8e88d0ba16062ecf02dd730b34186ea3b1e7489046fc338bdc3361c4"}, + {file = "aiohttp-3.9.1-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:bff7e2811814fa2271be95ab6e84c9436d027a0e59665de60edf44e529a42c1f"}, + {file = "aiohttp-3.9.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:81b77f868814346662c96ab36b875d7814ebf82340d3284a31681085c051320f"}, + {file = "aiohttp-3.9.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3b9c7426923bb7bd66d409da46c41e3fb40f5caf679da624439b9eba92043fa6"}, + {file = "aiohttp-3.9.1-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:8d44e7bf06b0c0a70a20f9100af9fcfd7f6d9d3913e37754c12d424179b4e48f"}, + {file = "aiohttp-3.9.1-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:22698f01ff5653fe66d16ffb7658f582a0ac084d7da1323e39fd9eab326a1f26"}, + {file = "aiohttp-3.9.1-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:ca7ca5abfbfe8d39e653870fbe8d7710be7a857f8a8386fc9de1aae2e02ce7e4"}, + {file = "aiohttp-3.9.1-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:8d7f98fde213f74561be1d6d3fa353656197f75d4edfbb3d94c9eb9b0fc47f5d"}, + {file = "aiohttp-3.9.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:5216b6082c624b55cfe79af5d538e499cd5f5b976820eac31951fb4325974501"}, + {file = "aiohttp-3.9.1-cp310-cp310-win32.whl", hash = "sha256:0e7ba7ff228c0d9a2cd66194e90f2bca6e0abca810b786901a569c0de082f489"}, + {file = "aiohttp-3.9.1-cp310-cp310-win_amd64.whl", hash = "sha256:c7e939f1ae428a86e4abbb9a7c4732bf4706048818dfd979e5e2839ce0159f23"}, + {file = "aiohttp-3.9.1-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:df9cf74b9bc03d586fc53ba470828d7b77ce51b0582d1d0b5b2fb673c0baa32d"}, + {file = "aiohttp-3.9.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:ecca113f19d5e74048c001934045a2b9368d77b0b17691d905af18bd1c21275e"}, + {file = "aiohttp-3.9.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:8cef8710fb849d97c533f259103f09bac167a008d7131d7b2b0e3a33269185c0"}, + {file = "aiohttp-3.9.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bea94403a21eb94c93386d559bce297381609153e418a3ffc7d6bf772f59cc35"}, + {file = "aiohttp-3.9.1-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:91c742ca59045dce7ba76cab6e223e41d2c70d79e82c284a96411f8645e2afff"}, + {file = "aiohttp-3.9.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:6c93b7c2e52061f0925c3382d5cb8980e40f91c989563d3d32ca280069fd6a87"}, + {file = "aiohttp-3.9.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ee2527134f95e106cc1653e9ac78846f3a2ec1004cf20ef4e02038035a74544d"}, + {file = "aiohttp-3.9.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:11ff168d752cb41e8492817e10fb4f85828f6a0142b9726a30c27c35a1835f01"}, + {file = "aiohttp-3.9.1-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:b8c3a67eb87394386847d188996920f33b01b32155f0a94f36ca0e0c635bf3e3"}, + {file = "aiohttp-3.9.1-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:c7b5d5d64e2a14e35a9240b33b89389e0035e6de8dbb7ffa50d10d8b65c57449"}, + {file = "aiohttp-3.9.1-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:69985d50a2b6f709412d944ffb2e97d0be154ea90600b7a921f95a87d6f108a2"}, + {file = "aiohttp-3.9.1-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:c9110c06eaaac7e1f5562caf481f18ccf8f6fdf4c3323feab28a93d34cc646bd"}, + {file = "aiohttp-3.9.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:d737e69d193dac7296365a6dcb73bbbf53bb760ab25a3727716bbd42022e8d7a"}, + {file = "aiohttp-3.9.1-cp311-cp311-win32.whl", hash = "sha256:4ee8caa925aebc1e64e98432d78ea8de67b2272252b0a931d2ac3bd876ad5544"}, + {file = "aiohttp-3.9.1-cp311-cp311-win_amd64.whl", hash = "sha256:a34086c5cc285be878622e0a6ab897a986a6e8bf5b67ecb377015f06ed316587"}, + {file = "aiohttp-3.9.1-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:f800164276eec54e0af5c99feb9494c295118fc10a11b997bbb1348ba1a52065"}, + {file = "aiohttp-3.9.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:500f1c59906cd142d452074f3811614be04819a38ae2b3239a48b82649c08821"}, + {file = "aiohttp-3.9.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:0b0a6a36ed7e164c6df1e18ee47afbd1990ce47cb428739d6c99aaabfaf1b3af"}, + {file = "aiohttp-3.9.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:69da0f3ed3496808e8cbc5123a866c41c12c15baaaead96d256477edf168eb57"}, + {file = "aiohttp-3.9.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:176df045597e674fa950bf5ae536be85699e04cea68fa3a616cf75e413737eb5"}, + {file = "aiohttp-3.9.1-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b796b44111f0cab6bbf66214186e44734b5baab949cb5fb56154142a92989aeb"}, + {file = "aiohttp-3.9.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f27fdaadce22f2ef950fc10dcdf8048407c3b42b73779e48a4e76b3c35bca26c"}, + {file = "aiohttp-3.9.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:bcb6532b9814ea7c5a6a3299747c49de30e84472fa72821b07f5a9818bce0f66"}, + {file = "aiohttp-3.9.1-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:54631fb69a6e44b2ba522f7c22a6fb2667a02fd97d636048478db2fd8c4e98fe"}, + {file = "aiohttp-3.9.1-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:4b4c452d0190c5a820d3f5c0f3cd8a28ace48c54053e24da9d6041bf81113183"}, + {file = "aiohttp-3.9.1-cp312-cp312-musllinux_1_1_ppc64le.whl", hash = "sha256:cae4c0c2ca800c793cae07ef3d40794625471040a87e1ba392039639ad61ab5b"}, + {file = "aiohttp-3.9.1-cp312-cp312-musllinux_1_1_s390x.whl", hash = "sha256:565760d6812b8d78d416c3c7cfdf5362fbe0d0d25b82fed75d0d29e18d7fc30f"}, + {file = "aiohttp-3.9.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:54311eb54f3a0c45efb9ed0d0a8f43d1bc6060d773f6973efd90037a51cd0a3f"}, + {file = "aiohttp-3.9.1-cp312-cp312-win32.whl", hash = "sha256:85c3e3c9cb1d480e0b9a64c658cd66b3cfb8e721636ab8b0e746e2d79a7a9eed"}, + {file = "aiohttp-3.9.1-cp312-cp312-win_amd64.whl", hash = "sha256:11cb254e397a82efb1805d12561e80124928e04e9c4483587ce7390b3866d213"}, + {file = "aiohttp-3.9.1-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:8a22a34bc594d9d24621091d1b91511001a7eea91d6652ea495ce06e27381f70"}, + {file = "aiohttp-3.9.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:598db66eaf2e04aa0c8900a63b0101fdc5e6b8a7ddd805c56d86efb54eb66672"}, + {file = "aiohttp-3.9.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:2c9376e2b09895c8ca8b95362283365eb5c03bdc8428ade80a864160605715f1"}, + {file = "aiohttp-3.9.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:41473de252e1797c2d2293804e389a6d6986ef37cbb4a25208de537ae32141dd"}, + {file = "aiohttp-3.9.1-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9c5857612c9813796960c00767645cb5da815af16dafb32d70c72a8390bbf690"}, + {file = "aiohttp-3.9.1-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:ffcd828e37dc219a72c9012ec44ad2e7e3066bec6ff3aaa19e7d435dbf4032ca"}, + {file = "aiohttp-3.9.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:219a16763dc0294842188ac8a12262b5671817042b35d45e44fd0a697d8c8361"}, + {file = "aiohttp-3.9.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f694dc8a6a3112059258a725a4ebe9acac5fe62f11c77ac4dcf896edfa78ca28"}, + {file = "aiohttp-3.9.1-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:bcc0ea8d5b74a41b621ad4a13d96c36079c81628ccc0b30cfb1603e3dfa3a014"}, + {file = "aiohttp-3.9.1-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:90ec72d231169b4b8d6085be13023ece8fa9b1bb495e4398d847e25218e0f431"}, + {file = "aiohttp-3.9.1-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:cf2a0ac0615842b849f40c4d7f304986a242f1e68286dbf3bd7a835e4f83acfd"}, + {file = "aiohttp-3.9.1-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:0e49b08eafa4f5707ecfb321ab9592717a319e37938e301d462f79b4e860c32a"}, + {file = "aiohttp-3.9.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:2c59e0076ea31c08553e868cec02d22191c086f00b44610f8ab7363a11a5d9d8"}, + {file = "aiohttp-3.9.1-cp38-cp38-win32.whl", hash = "sha256:4831df72b053b1eed31eb00a2e1aff6896fb4485301d4ccb208cac264b648db4"}, + {file = "aiohttp-3.9.1-cp38-cp38-win_amd64.whl", hash = "sha256:3135713c5562731ee18f58d3ad1bf41e1d8883eb68b363f2ffde5b2ea4b84cc7"}, + {file = "aiohttp-3.9.1-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:cfeadf42840c1e870dc2042a232a8748e75a36b52d78968cda6736de55582766"}, + {file = "aiohttp-3.9.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:70907533db712f7aa791effb38efa96f044ce3d4e850e2d7691abd759f4f0ae0"}, + {file = "aiohttp-3.9.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:cdefe289681507187e375a5064c7599f52c40343a8701761c802c1853a504558"}, + {file = "aiohttp-3.9.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d7481f581251bb5558ba9f635db70908819caa221fc79ee52a7f58392778c636"}, + {file = "aiohttp-3.9.1-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:49f0c1b3c2842556e5de35f122fc0f0b721334ceb6e78c3719693364d4af8499"}, + {file = "aiohttp-3.9.1-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0d406b01a9f5a7e232d1b0d161b40c05275ffbcbd772dc18c1d5a570961a1ca4"}, + {file = "aiohttp-3.9.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8d8e4450e7fe24d86e86b23cc209e0023177b6d59502e33807b732d2deb6975f"}, + {file = "aiohttp-3.9.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3c0266cd6f005e99f3f51e583012de2778e65af6b73860038b968a0a8888487a"}, + {file = "aiohttp-3.9.1-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:ab221850108a4a063c5b8a70f00dd7a1975e5a1713f87f4ab26a46e5feac5a0e"}, + {file = "aiohttp-3.9.1-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:c88a15f272a0ad3d7773cf3a37cc7b7d077cbfc8e331675cf1346e849d97a4e5"}, + {file = "aiohttp-3.9.1-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:237533179d9747080bcaad4d02083ce295c0d2eab3e9e8ce103411a4312991a0"}, + {file = "aiohttp-3.9.1-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:02ab6006ec3c3463b528374c4cdce86434e7b89ad355e7bf29e2f16b46c7dd6f"}, + {file = "aiohttp-3.9.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:04fa38875e53eb7e354ece1607b1d2fdee2d175ea4e4d745f6ec9f751fe20c7c"}, + {file = "aiohttp-3.9.1-cp39-cp39-win32.whl", hash = "sha256:82eefaf1a996060602f3cc1112d93ba8b201dbf5d8fd9611227de2003dddb3b7"}, + {file = "aiohttp-3.9.1-cp39-cp39-win_amd64.whl", hash = "sha256:9b05d33ff8e6b269e30a7957bd3244ffbce2a7a35a81b81c382629b80af1a8bf"}, + {file = "aiohttp-3.9.1.tar.gz", hash = "sha256:8fc49a87ac269d4529da45871e2ffb6874e87779c3d0e2ccd813c0899221239d"}, ] [package.dependencies] aiosignal = ">=1.1.2" -async-timeout = ">=4.0.0a3,<5.0" +async-timeout = {version = ">=4.0,<5.0", markers = "python_version < \"3.11\""} attrs = ">=17.3.0" -charset-normalizer = ">=2.0,<4.0" frozenlist = ">=1.1.1" multidict = ">=4.5,<7.0" yarl = ">=1.0,<2.0" [package.extras] -speedups = ["Brotli", "aiodns", "cchardet"] +speedups = ["Brotli", "aiodns", "brotlicffi"] [[package]] name = "aiosignal" @@ -265,32 +253,32 @@ lxml = ["lxml"] [[package]] name = "boto3" -version = "1.29.2" +version = "1.33.2" description = "The AWS SDK for Python" optional = false python-versions = ">= 3.7" files = [ - {file = "boto3-1.29.2-py3-none-any.whl", hash = "sha256:6617ac176efb21485ebc3a058a3a97feb1300141421ae3d1809562c4cac1d5f9"}, - {file = "boto3-1.29.2.tar.gz", hash = "sha256:f3024bba9ac980007ba7b5f28a9734d111fb5466e2426ac76c5edbd6dedd8db2"}, + {file = "boto3-1.33.2-py3-none-any.whl", hash = "sha256:fc7c0dd5fa74ae0d57e11747695bdba4ad164e62dee35db15b43762c392fbd92"}, + {file = "boto3-1.33.2.tar.gz", hash = "sha256:70626598dd6698d6da8f2854a1ae5010f175572e2a465b2aa86685c745c1013c"}, ] [package.dependencies] -botocore = ">=1.32.2,<1.33.0" +botocore = ">=1.33.2,<1.34.0" jmespath = ">=0.7.1,<2.0.0" -s3transfer = ">=0.7.0,<0.8.0" +s3transfer = ">=0.8.0,<0.9.0" [package.extras] crt = ["botocore[crt] (>=1.21.0,<2.0a0)"] [[package]] name = "botocore" -version = "1.32.2" +version = "1.33.2" description = "Low-level, data-driven core of boto 3." optional = false python-versions = ">= 3.7" files = [ - {file = "botocore-1.32.2-py3-none-any.whl", hash = "sha256:a68a33193d8cd59e3b2142bff632e562afc02f9c4417e3dcc81a6e1b1f47148e"}, - {file = "botocore-1.32.2.tar.gz", hash = "sha256:0e231524e9b72169fe0b8d9310f47072c245fb712778e0669f53f264f0e49536"}, + {file = "botocore-1.33.2-py3-none-any.whl", hash = "sha256:5c46b7e8450efbf7ddc2a0016eee7225a5564583122e25a20ca92a29a105225c"}, + {file = "botocore-1.33.2.tar.gz", hash = "sha256:16a30faac6e6f17961c009defb74ab1a3508b8abc58fab98e7cf96af0d91ea84"}, ] [package.dependencies] @@ -302,7 +290,7 @@ urllib3 = [ ] [package.extras] -crt = ["awscrt (==0.19.12)"] +crt = ["awscrt (==0.19.17)"] [[package]] name = "brotli" @@ -450,13 +438,13 @@ beautifulsoup4 = "*" [[package]] name = "certifi" -version = "2023.7.22" +version = "2023.11.17" description = "Python package for providing Mozilla's CA Bundle." optional = false python-versions = ">=3.6" files = [ - {file = "certifi-2023.7.22-py3-none-any.whl", hash = "sha256:92d6037539857d8206b8f6ae472e8b77db8058fec5937a1ef3f54304089edbb9"}, - {file = "certifi-2023.7.22.tar.gz", hash = "sha256:539cc1d13202e33ca466e88b2807e29f4c13049d6d87031a3c110744495cb082"}, + {file = "certifi-2023.11.17-py3-none-any.whl", hash = "sha256:e036ab49d5b79556f99cfc2d9320b34cfbe5be05c5871b51de9329f0603b0474"}, + {file = "certifi-2023.11.17.tar.gz", hash = "sha256:9b469f3a900bf28dc19b8cfbf8019bf47f7fdd1a65a1d4ffb98fc14166beb4d1"}, ] [[package]] @@ -744,34 +732,34 @@ toml = ["tomli"] [[package]] name = "cryptography" -version = "41.0.5" +version = "41.0.7" description = "cryptography is a package which provides cryptographic recipes and primitives to Python developers." optional = false python-versions = ">=3.7" files = [ - {file = "cryptography-41.0.5-cp37-abi3-macosx_10_12_universal2.whl", hash = "sha256:da6a0ff8f1016ccc7477e6339e1d50ce5f59b88905585f77193ebd5068f1e797"}, - {file = "cryptography-41.0.5-cp37-abi3-macosx_10_12_x86_64.whl", hash = "sha256:b948e09fe5fb18517d99994184854ebd50b57248736fd4c720ad540560174ec5"}, - {file = "cryptography-41.0.5-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d38e6031e113b7421db1de0c1b1f7739564a88f1684c6b89234fbf6c11b75147"}, - {file = "cryptography-41.0.5-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e270c04f4d9b5671ebcc792b3ba5d4488bf7c42c3c241a3748e2599776f29696"}, - {file = "cryptography-41.0.5-cp37-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:ec3b055ff8f1dce8e6ef28f626e0972981475173d7973d63f271b29c8a2897da"}, - {file = "cryptography-41.0.5-cp37-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:7d208c21e47940369accfc9e85f0de7693d9a5d843c2509b3846b2db170dfd20"}, - {file = "cryptography-41.0.5-cp37-abi3-musllinux_1_1_aarch64.whl", hash = "sha256:8254962e6ba1f4d2090c44daf50a547cd5f0bf446dc658a8e5f8156cae0d8548"}, - {file = "cryptography-41.0.5-cp37-abi3-musllinux_1_1_x86_64.whl", hash = "sha256:a48e74dad1fb349f3dc1d449ed88e0017d792997a7ad2ec9587ed17405667e6d"}, - {file = "cryptography-41.0.5-cp37-abi3-win32.whl", hash = "sha256:d3977f0e276f6f5bf245c403156673db103283266601405376f075c849a0b936"}, - {file = "cryptography-41.0.5-cp37-abi3-win_amd64.whl", hash = "sha256:73801ac9736741f220e20435f84ecec75ed70eda90f781a148f1bad546963d81"}, - {file = "cryptography-41.0.5-pp310-pypy310_pp73-macosx_10_12_x86_64.whl", hash = "sha256:3be3ca726e1572517d2bef99a818378bbcf7d7799d5372a46c79c29eb8d166c1"}, - {file = "cryptography-41.0.5-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:e886098619d3815e0ad5790c973afeee2c0e6e04b4da90b88e6bd06e2a0b1b72"}, - {file = "cryptography-41.0.5-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:573eb7128cbca75f9157dcde974781209463ce56b5804983e11a1c462f0f4e88"}, - {file = "cryptography-41.0.5-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:0c327cac00f082013c7c9fb6c46b7cc9fa3c288ca702c74773968173bda421bf"}, - {file = "cryptography-41.0.5-pp38-pypy38_pp73-macosx_10_12_x86_64.whl", hash = "sha256:227ec057cd32a41c6651701abc0328135e472ed450f47c2766f23267b792a88e"}, - {file = "cryptography-41.0.5-pp38-pypy38_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:22892cc830d8b2c89ea60148227631bb96a7da0c1b722f2aac8824b1b7c0b6b8"}, - {file = "cryptography-41.0.5-pp38-pypy38_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:5a70187954ba7292c7876734183e810b728b4f3965fbe571421cb2434d279179"}, - {file = "cryptography-41.0.5-pp38-pypy38_pp73-win_amd64.whl", hash = "sha256:88417bff20162f635f24f849ab182b092697922088b477a7abd6664ddd82291d"}, - {file = "cryptography-41.0.5-pp39-pypy39_pp73-macosx_10_12_x86_64.whl", hash = "sha256:c707f7afd813478e2019ae32a7c49cd932dd60ab2d2a93e796f68236b7e1fbf1"}, - {file = "cryptography-41.0.5-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:580afc7b7216deeb87a098ef0674d6ee34ab55993140838b14c9b83312b37b86"}, - {file = "cryptography-41.0.5-pp39-pypy39_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:fba1e91467c65fe64a82c689dc6cf58151158993b13eb7a7f3f4b7f395636723"}, - {file = "cryptography-41.0.5-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:0d2a6a598847c46e3e321a7aef8af1436f11c27f1254933746304ff014664d84"}, - {file = "cryptography-41.0.5.tar.gz", hash = "sha256:392cb88b597247177172e02da6b7a63deeff1937fa6fec3bbf902ebd75d97ec7"}, + {file = "cryptography-41.0.7-cp37-abi3-macosx_10_12_universal2.whl", hash = "sha256:3c78451b78313fa81607fa1b3f1ae0a5ddd8014c38a02d9db0616133987b9cdf"}, + {file = "cryptography-41.0.7-cp37-abi3-macosx_10_12_x86_64.whl", hash = "sha256:928258ba5d6f8ae644e764d0f996d61a8777559f72dfeb2eea7e2fe0ad6e782d"}, + {file = "cryptography-41.0.7-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5a1b41bc97f1ad230a41657d9155113c7521953869ae57ac39ac7f1bb471469a"}, + {file = "cryptography-41.0.7-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:841df4caa01008bad253bce2a6f7b47f86dc9f08df4b433c404def869f590a15"}, + {file = "cryptography-41.0.7-cp37-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:5429ec739a29df2e29e15d082f1d9ad683701f0ec7709ca479b3ff2708dae65a"}, + {file = "cryptography-41.0.7-cp37-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:43f2552a2378b44869fe8827aa19e69512e3245a219104438692385b0ee119d1"}, + {file = "cryptography-41.0.7-cp37-abi3-musllinux_1_1_aarch64.whl", hash = "sha256:af03b32695b24d85a75d40e1ba39ffe7db7ffcb099fe507b39fd41a565f1b157"}, + {file = "cryptography-41.0.7-cp37-abi3-musllinux_1_1_x86_64.whl", hash = "sha256:49f0805fc0b2ac8d4882dd52f4a3b935b210935d500b6b805f321addc8177406"}, + {file = "cryptography-41.0.7-cp37-abi3-win32.whl", hash = "sha256:f983596065a18a2183e7f79ab3fd4c475205b839e02cbc0efbbf9666c4b3083d"}, + {file = "cryptography-41.0.7-cp37-abi3-win_amd64.whl", hash = "sha256:90452ba79b8788fa380dfb587cca692976ef4e757b194b093d845e8d99f612f2"}, + {file = "cryptography-41.0.7-pp310-pypy310_pp73-macosx_10_12_x86_64.whl", hash = "sha256:079b85658ea2f59c4f43b70f8119a52414cdb7be34da5d019a77bf96d473b960"}, + {file = "cryptography-41.0.7-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:b640981bf64a3e978a56167594a0e97db71c89a479da8e175d8bb5be5178c003"}, + {file = "cryptography-41.0.7-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:e3114da6d7f95d2dee7d3f4eec16dacff819740bbab931aff8648cb13c5ff5e7"}, + {file = "cryptography-41.0.7-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:d5ec85080cce7b0513cfd233914eb8b7bbd0633f1d1703aa28d1dd5a72f678ec"}, + {file = "cryptography-41.0.7-pp38-pypy38_pp73-macosx_10_12_x86_64.whl", hash = "sha256:7a698cb1dac82c35fcf8fe3417a3aaba97de16a01ac914b89a0889d364d2f6be"}, + {file = "cryptography-41.0.7-pp38-pypy38_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:37a138589b12069efb424220bf78eac59ca68b95696fc622b6ccc1c0a197204a"}, + {file = "cryptography-41.0.7-pp38-pypy38_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:68a2dec79deebc5d26d617bfdf6e8aab065a4f34934b22d3b5010df3ba36612c"}, + {file = "cryptography-41.0.7-pp38-pypy38_pp73-win_amd64.whl", hash = "sha256:09616eeaef406f99046553b8a40fbf8b1e70795a91885ba4c96a70793de5504a"}, + {file = "cryptography-41.0.7-pp39-pypy39_pp73-macosx_10_12_x86_64.whl", hash = "sha256:48a0476626da912a44cc078f9893f292f0b3e4c739caf289268168d8f4702a39"}, + {file = "cryptography-41.0.7-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:c7f3201ec47d5207841402594f1d7950879ef890c0c495052fa62f58283fde1a"}, + {file = "cryptography-41.0.7-pp39-pypy39_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:c5ca78485a255e03c32b513f8c2bc39fedb7f5c5f8535545bdc223a03b24f248"}, + {file = "cryptography-41.0.7-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:d6c391c021ab1f7a82da5d8d0b3cee2f4b2c455ec86c8aebbc84837a631ff309"}, + {file = "cryptography-41.0.7.tar.gz", hash = "sha256:13f93ce9bea8016c253b34afc6bd6a75993e5c40672ed5405a9c832f0d4a00bc"}, ] [package.dependencies] @@ -789,13 +777,13 @@ test-randomorder = ["pytest-randomly"] [[package]] name = "dataclasses-json" -version = "0.6.2" +version = "0.6.3" description = "Easily serialize dataclasses to and from JSON." optional = false python-versions = ">=3.7,<4.0" files = [ - {file = "dataclasses_json-0.6.2-py3-none-any.whl", hash = "sha256:71816ced3d0f55a2c5bc1a813ace1b8d4234e79a08744269a7cf84d6f7c06e99"}, - {file = "dataclasses_json-0.6.2.tar.gz", hash = "sha256:1b934c1bd63e775880946b8361a902d7de86e894bab8098eab27c010f95724d1"}, + {file = "dataclasses_json-0.6.3-py3-none-any.whl", hash = "sha256:4aeb343357997396f6bca1acae64e486c3a723d8f5c76301888abeccf0c45176"}, + {file = "dataclasses_json-0.6.3.tar.gz", hash = "sha256:35cb40aae824736fdf959801356641836365219cfe14caeb115c39136f775d2a"}, ] [package.dependencies] @@ -842,13 +830,13 @@ files = [ [[package]] name = "duckduckgo-search" -version = "3.9.5" +version = "3.9.9" description = "Search for words, documents, images, news, maps and text translation using the DuckDuckGo.com search engine." optional = false python-versions = ">=3.8" files = [ - {file = "duckduckgo_search-3.9.5-py3-none-any.whl", hash = "sha256:d96e97beeaa89da04ac84f425319a89ece625e834913953fa56a64c6295d1ad6"}, - {file = "duckduckgo_search-3.9.5.tar.gz", hash = "sha256:63eb56e544f2e9812d09f37b2d7851f9cb00948acba4892241f976358813bd2e"}, + {file = "duckduckgo_search-3.9.9-py3-none-any.whl", hash = "sha256:03f040ee7bd1a298e363bc578b14f9fea73777a09398d01ef75fc624ec2e8bf3"}, + {file = "duckduckgo_search-3.9.9.tar.gz", hash = "sha256:e4c4a1de246baf2ae9e5651b4aa362381573e9540d9e5829fa17ab7500f9a1f6"}, ] [package.dependencies] @@ -858,7 +846,7 @@ httpx = {version = ">=0.25.1", extras = ["brotli", "http2", "socks"]} lxml = ">=4.9.3" [package.extras] -dev = ["black (>=23.9.1)", "isort (>=5.12.0)", "pytest (>=7.4.2)", "pytest-asyncio (>=0.21.1)", "ruff (>=0.0.291)"] +dev = ["pytest (>=7.4.2)", "pytest-asyncio (>=0.21.1)", "ruff (>=0.1.6)"] [[package]] name = "emoji" @@ -876,13 +864,13 @@ dev = ["coverage", "coveralls", "pytest"] [[package]] name = "exceptiongroup" -version = "1.1.3" +version = "1.2.0" description = "Backport of PEP 654 (exception groups)" optional = false python-versions = ">=3.7" files = [ - {file = "exceptiongroup-1.1.3-py3-none-any.whl", hash = "sha256:343280667a4585d195ca1cf9cef84a4e178c4b6cf2274caef9859782b567d5e3"}, - {file = "exceptiongroup-1.1.3.tar.gz", hash = "sha256:097acd85d473d75af5bb98e41b61ff7fe35efe6675e4f9370ec6ec5126d160e9"}, + {file = "exceptiongroup-1.2.0-py3-none-any.whl", hash = "sha256:4bfd3996ac73b41e9b9628b04e079f193850720ea5945fc96a08633c66912f14"}, + {file = "exceptiongroup-1.2.0.tar.gz", hash = "sha256:91f5c769735f051a4290d52edd0858999b57e5876e9f85937691bd4c9fa3ed68"}, ] [package.extras] @@ -1214,13 +1202,13 @@ trio = ["trio (>=0.22.0,<0.23.0)"] [[package]] name = "httpx" -version = "0.25.1" +version = "0.25.2" description = "The next generation HTTP client." optional = false python-versions = ">=3.8" files = [ - {file = "httpx-0.25.1-py3-none-any.whl", hash = "sha256:fec7d6cc5c27c578a391f7e87b9aa7d3d8fbcd034f6399f9f79b45bcc12a866a"}, - {file = "httpx-0.25.1.tar.gz", hash = "sha256:ffd96d5cf901e63863d9f1b4b6807861dbea4d301613415d9e6e57ead15fc5d0"}, + {file = "httpx-0.25.2-py3-none-any.whl", hash = "sha256:a05d3d052d9b2dfce0e3896636467f8a5342fb2b902c819428e1ac65413ca118"}, + {file = "httpx-0.25.2.tar.gz", hash = "sha256:8b8fcaa0c8ea7b05edd69a094e63a2094c4efcb48129fb757361bc423c0ad9e8"}, ] [package.dependencies] @@ -1229,7 +1217,7 @@ brotli = {version = "*", optional = true, markers = "platform_python_implementat brotlicffi = {version = "*", optional = true, markers = "platform_python_implementation != \"CPython\" and extra == \"brotli\""} certifi = "*" h2 = {version = ">=3,<5", optional = true, markers = "extra == \"http2\""} -httpcore = "*" +httpcore = "==1.*" idna = "*" sniffio = "*" socksio = {version = "==1.*", optional = true, markers = "extra == \"socks\""} @@ -1286,13 +1274,13 @@ files = [ [[package]] name = "idna" -version = "3.4" +version = "3.6" description = "Internationalized Domain Names in Applications (IDNA)" optional = false python-versions = ">=3.5" files = [ - {file = "idna-3.4-py3-none-any.whl", hash = "sha256:90b77e79eaa3eba6de819a0c442c0b4ceefc341a7a2ab77d7562bf49f425c5c2"}, - {file = "idna-3.4.tar.gz", hash = "sha256:814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4"}, + {file = "idna-3.6-py3-none-any.whl", hash = "sha256:c05567e9c24a6b9faaa835c4821bad0590fbb9d5779e7caa6e1cc4978e7eb24f"}, + {file = "idna-3.6.tar.gz", hash = "sha256:9ecdbbd083b06798ae1e86adcbfe8ab1479cf864e4ee30fe4e46a003d12491ca"}, ] [[package]] @@ -1368,13 +1356,13 @@ requests = ">=2" [[package]] name = "langchain" -version = "0.0.338" +version = "0.0.342" description = "Building applications with LLMs through composability" optional = false python-versions = ">=3.8.1,<4.0" files = [ - {file = "langchain-0.0.338-py3-none-any.whl", hash = "sha256:d9fa750f01f99c0ce04bfac4c614a142702f7b7715928c6db74ea80f4514d3dd"}, - {file = "langchain-0.0.338.tar.gz", hash = "sha256:c928cceca770b5c62b48024de163aaca5ca0539b613e7726369f2671e2934e80"}, + {file = "langchain-0.0.342-py3-none-any.whl", hash = "sha256:83c37898226666e0176d093f57fa49e176486608ef4c617a65aadf0b038ba0ec"}, + {file = "langchain-0.0.342.tar.gz", hash = "sha256:06341ee0b034847cbcea4b40a0a26b270abb6fd1237437735187c44d30a7a24d"}, ] [package.dependencies] @@ -1383,6 +1371,7 @@ anyio = "<4.0" async-timeout = {version = ">=4.0.0,<5.0.0", markers = "python_version < \"3.11\""} dataclasses-json = ">=0.5.7,<0.7" jsonpatch = ">=1.33,<2.0" +langchain-core = ">=0.0.7,<0.1" langsmith = ">=0.0.63,<0.1.0" numpy = ">=1,<2" pydantic = ">=1,<3" @@ -1392,20 +1381,37 @@ SQLAlchemy = ">=1.4,<3" tenacity = ">=8.1.0,<9.0.0" [package.extras] -all = ["O365 (>=2.0.26,<3.0.0)", "aleph-alpha-client (>=2.15.0,<3.0.0)", "amadeus (>=8.1.0)", "arxiv (>=1.4,<2.0)", "atlassian-python-api (>=3.36.0,<4.0.0)", "awadb (>=0.3.9,<0.4.0)", "azure-ai-formrecognizer (>=3.2.1,<4.0.0)", "azure-ai-vision (>=0.11.1b1,<0.12.0)", "azure-cognitiveservices-speech (>=1.28.0,<2.0.0)", "azure-cosmos (>=4.4.0b1,<5.0.0)", "azure-identity (>=1.12.0,<2.0.0)", "beautifulsoup4 (>=4,<5)", "clarifai (>=9.1.0)", "clickhouse-connect (>=0.5.14,<0.6.0)", "cohere (>=4,<5)", "deeplake (>=3.8.3,<4.0.0)", "docarray[hnswlib] (>=0.32.0,<0.33.0)", "duckduckgo-search (>=3.8.3,<4.0.0)", "elasticsearch (>=8,<9)", "esprima (>=4.0.1,<5.0.0)", "faiss-cpu (>=1,<2)", "google-api-python-client (==2.70.0)", "google-auth (>=2.18.1,<3.0.0)", "google-search-results (>=2,<3)", "gptcache (>=0.1.7)", "html2text (>=2020.1.16,<2021.0.0)", "huggingface_hub (>=0,<1)", "jinja2 (>=3,<4)", "jq (>=1.4.1,<2.0.0)", "lancedb (>=0.1,<0.2)", "langkit (>=0.0.6,<0.1.0)", "lark (>=1.1.5,<2.0.0)", "librosa (>=0.10.0.post2,<0.11.0)", "lxml (>=4.9.2,<5.0.0)", "manifest-ml (>=0.0.1,<0.0.2)", "marqo (>=1.2.4,<2.0.0)", "momento (>=1.13.0,<2.0.0)", "nebula3-python (>=3.4.0,<4.0.0)", "neo4j (>=5.8.1,<6.0.0)", "networkx (>=2.6.3,<4)", "nlpcloud (>=1,<2)", "nltk (>=3,<4)", "nomic (>=1.0.43,<2.0.0)", "openai (<2)", "openlm (>=0.0.5,<0.0.6)", "opensearch-py (>=2.0.0,<3.0.0)", "pdfminer-six (>=20221105,<20221106)", "pexpect (>=4.8.0,<5.0.0)", "pgvector (>=0.1.6,<0.2.0)", "pinecone-client (>=2,<3)", "pinecone-text (>=0.4.2,<0.5.0)", "psycopg2-binary (>=2.9.5,<3.0.0)", "pymongo (>=4.3.3,<5.0.0)", "pyowm (>=3.3.0,<4.0.0)", "pypdf (>=3.4.0,<4.0.0)", "pytesseract (>=0.3.10,<0.4.0)", "python-arango (>=7.5.9,<8.0.0)", "pyvespa (>=0.33.0,<0.34.0)", "qdrant-client (>=1.3.1,<2.0.0)", "rdflib (>=6.3.2,<7.0.0)", "redis (>=4,<5)", "requests-toolbelt (>=1.0.0,<2.0.0)", "sentence-transformers (>=2,<3)", "singlestoredb (>=0.7.1,<0.8.0)", "tensorflow-text (>=2.11.0,<3.0.0)", "tigrisdb (>=1.0.0b6,<2.0.0)", "tiktoken (>=0.3.2,<0.6.0)", "torch (>=1,<3)", "transformers (>=4,<5)", "weaviate-client (>=3,<4)", "wikipedia (>=1,<2)", "wolframalpha (==5.0.0)"] -azure = ["azure-ai-formrecognizer (>=3.2.1,<4.0.0)", "azure-ai-vision (>=0.11.1b1,<0.12.0)", "azure-cognitiveservices-speech (>=1.28.0,<2.0.0)", "azure-core (>=1.26.4,<2.0.0)", "azure-cosmos (>=4.4.0b1,<5.0.0)", "azure-identity (>=1.12.0,<2.0.0)", "azure-search-documents (==11.4.0b8)", "openai (<2)"] +all = ["O365 (>=2.0.26,<3.0.0)", "aleph-alpha-client (>=2.15.0,<3.0.0)", "amadeus (>=8.1.0)", "arxiv (>=1.4,<2.0)", "atlassian-python-api (>=3.36.0,<4.0.0)", "awadb (>=0.3.9,<0.4.0)", "azure-ai-formrecognizer (>=3.2.1,<4.0.0)", "azure-ai-textanalytics (>=5.3.0,<6.0.0)", "azure-ai-vision (>=0.11.1b1,<0.12.0)", "azure-cognitiveservices-speech (>=1.28.0,<2.0.0)", "azure-cosmos (>=4.4.0b1,<5.0.0)", "azure-identity (>=1.12.0,<2.0.0)", "beautifulsoup4 (>=4,<5)", "clarifai (>=9.1.0)", "clickhouse-connect (>=0.5.14,<0.6.0)", "cohere (>=4,<5)", "deeplake (>=3.8.3,<4.0.0)", "docarray[hnswlib] (>=0.32.0,<0.33.0)", "duckduckgo-search (>=3.8.3,<4.0.0)", "elasticsearch (>=8,<9)", "esprima (>=4.0.1,<5.0.0)", "faiss-cpu (>=1,<2)", "google-api-python-client (==2.70.0)", "google-auth (>=2.18.1,<3.0.0)", "google-search-results (>=2,<3)", "gptcache (>=0.1.7)", "html2text (>=2020.1.16,<2021.0.0)", "huggingface_hub (>=0,<1)", "jinja2 (>=3,<4)", "jq (>=1.4.1,<2.0.0)", "lancedb (>=0.1,<0.2)", "langkit (>=0.0.6,<0.1.0)", "lark (>=1.1.5,<2.0.0)", "librosa (>=0.10.0.post2,<0.11.0)", "lxml (>=4.9.2,<5.0.0)", "manifest-ml (>=0.0.1,<0.0.2)", "marqo (>=1.2.4,<2.0.0)", "momento (>=1.13.0,<2.0.0)", "nebula3-python (>=3.4.0,<4.0.0)", "neo4j (>=5.8.1,<6.0.0)", "networkx (>=2.6.3,<4)", "nlpcloud (>=1,<2)", "nltk (>=3,<4)", "nomic (>=1.0.43,<2.0.0)", "openai (<2)", "openlm (>=0.0.5,<0.0.6)", "opensearch-py (>=2.0.0,<3.0.0)", "pdfminer-six (>=20221105,<20221106)", "pexpect (>=4.8.0,<5.0.0)", "pgvector (>=0.1.6,<0.2.0)", "pinecone-client (>=2,<3)", "pinecone-text (>=0.4.2,<0.5.0)", "psycopg2-binary (>=2.9.5,<3.0.0)", "pymongo (>=4.3.3,<5.0.0)", "pyowm (>=3.3.0,<4.0.0)", "pypdf (>=3.4.0,<4.0.0)", "pytesseract (>=0.3.10,<0.4.0)", "python-arango (>=7.5.9,<8.0.0)", "pyvespa (>=0.33.0,<0.34.0)", "qdrant-client (>=1.3.1,<2.0.0)", "rdflib (>=6.3.2,<7.0.0)", "redis (>=4,<5)", "requests-toolbelt (>=1.0.0,<2.0.0)", "sentence-transformers (>=2,<3)", "singlestoredb (>=0.7.1,<0.8.0)", "tensorflow-text (>=2.11.0,<3.0.0)", "tigrisdb (>=1.0.0b6,<2.0.0)", "tiktoken (>=0.3.2,<0.6.0)", "torch (>=1,<3)", "transformers (>=4,<5)", "weaviate-client (>=3,<4)", "wikipedia (>=1,<2)", "wolframalpha (==5.0.0)"] +azure = ["azure-ai-formrecognizer (>=3.2.1,<4.0.0)", "azure-ai-textanalytics (>=5.3.0,<6.0.0)", "azure-ai-vision (>=0.11.1b1,<0.12.0)", "azure-cognitiveservices-speech (>=1.28.0,<2.0.0)", "azure-core (>=1.26.4,<2.0.0)", "azure-cosmos (>=4.4.0b1,<5.0.0)", "azure-identity (>=1.12.0,<2.0.0)", "azure-search-documents (==11.4.0b8)", "openai (<2)"] clarifai = ["clarifai (>=9.1.0)"] cli = ["typer (>=0.9.0,<0.10.0)"] cohere = ["cohere (>=4,<5)"] docarray = ["docarray[hnswlib] (>=0.32.0,<0.33.0)"] embeddings = ["sentence-transformers (>=2,<3)"] -extended-testing = ["aiosqlite (>=0.19.0,<0.20.0)", "aleph-alpha-client (>=2.15.0,<3.0.0)", "anthropic (>=0.3.11,<0.4.0)", "arxiv (>=1.4,<2.0)", "assemblyai (>=0.17.0,<0.18.0)", "atlassian-python-api (>=3.36.0,<4.0.0)", "beautifulsoup4 (>=4,<5)", "bibtexparser (>=1.4.0,<2.0.0)", "cassio (>=0.1.0,<0.2.0)", "chardet (>=5.1.0,<6.0.0)", "dashvector (>=1.0.1,<2.0.0)", "esprima (>=4.0.1,<5.0.0)", "faiss-cpu (>=1,<2)", "feedparser (>=6.0.10,<7.0.0)", "fireworks-ai (>=0.6.0,<0.7.0)", "geopandas (>=0.13.1,<0.14.0)", "gitpython (>=3.1.32,<4.0.0)", "google-cloud-documentai (>=2.20.1,<3.0.0)", "gql (>=3.4.1,<4.0.0)", "html2text (>=2020.1.16,<2021.0.0)", "javelin-sdk (>=0.1.8,<0.2.0)", "jinja2 (>=3,<4)", "jq (>=1.4.1,<2.0.0)", "jsonschema (>1)", "lxml (>=4.9.2,<5.0.0)", "markdownify (>=0.11.6,<0.12.0)", "motor (>=3.3.1,<4.0.0)", "mwparserfromhell (>=0.6.4,<0.7.0)", "mwxml (>=0.3.3,<0.4.0)", "newspaper3k (>=0.2.8,<0.3.0)", "numexpr (>=2.8.6,<3.0.0)", "openai (<2)", "openapi-pydantic (>=0.3.2,<0.4.0)", "pandas (>=2.0.1,<3.0.0)", "pdfminer-six (>=20221105,<20221106)", "pgvector (>=0.1.6,<0.2.0)", "psychicapi (>=0.8.0,<0.9.0)", "py-trello (>=0.19.0,<0.20.0)", "pymupdf (>=1.22.3,<2.0.0)", "pypdf (>=3.4.0,<4.0.0)", "pypdfium2 (>=4.10.0,<5.0.0)", "pyspark (>=3.4.0,<4.0.0)", "rank-bm25 (>=0.2.2,<0.3.0)", "rapidfuzz (>=3.1.1,<4.0.0)", "rapidocr-onnxruntime (>=1.3.2,<2.0.0)", "requests-toolbelt (>=1.0.0,<2.0.0)", "rspace_client (>=2.5.0,<3.0.0)", "scikit-learn (>=1.2.2,<2.0.0)", "sqlite-vss (>=0.1.2,<0.2.0)", "streamlit (>=1.18.0,<2.0.0)", "sympy (>=1.12,<2.0)", "telethon (>=1.28.5,<2.0.0)", "timescale-vector (>=0.0.1,<0.0.2)", "tqdm (>=4.48.0)", "upstash-redis (>=0.15.0,<0.16.0)", "xata (>=1.0.0a7,<2.0.0)", "xmltodict (>=0.13.0,<0.14.0)"] +extended-testing = ["aiosqlite (>=0.19.0,<0.20.0)", "aleph-alpha-client (>=2.15.0,<3.0.0)", "anthropic (>=0.3.11,<0.4.0)", "arxiv (>=1.4,<2.0)", "assemblyai (>=0.17.0,<0.18.0)", "atlassian-python-api (>=3.36.0,<4.0.0)", "beautifulsoup4 (>=4,<5)", "bibtexparser (>=1.4.0,<2.0.0)", "cassio (>=0.1.0,<0.2.0)", "chardet (>=5.1.0,<6.0.0)", "dashvector (>=1.0.1,<2.0.0)", "databricks-vectorsearch (>=0.21,<0.22)", "esprima (>=4.0.1,<5.0.0)", "faiss-cpu (>=1,<2)", "feedparser (>=6.0.10,<7.0.0)", "fireworks-ai (>=0.6.0,<0.7.0)", "geopandas (>=0.13.1,<0.14.0)", "gitpython (>=3.1.32,<4.0.0)", "google-cloud-documentai (>=2.20.1,<3.0.0)", "gql (>=3.4.1,<4.0.0)", "html2text (>=2020.1.16,<2021.0.0)", "javelin-sdk (>=0.1.8,<0.2.0)", "jinja2 (>=3,<4)", "jq (>=1.4.1,<2.0.0)", "jsonschema (>1)", "lxml (>=4.9.2,<5.0.0)", "markdownify (>=0.11.6,<0.12.0)", "motor (>=3.3.1,<4.0.0)", "msal (>=1.25.0,<2.0.0)", "mwparserfromhell (>=0.6.4,<0.7.0)", "mwxml (>=0.3.3,<0.4.0)", "newspaper3k (>=0.2.8,<0.3.0)", "numexpr (>=2.8.6,<3.0.0)", "openai (<2)", "openapi-pydantic (>=0.3.2,<0.4.0)", "pandas (>=2.0.1,<3.0.0)", "pdfminer-six (>=20221105,<20221106)", "pgvector (>=0.1.6,<0.2.0)", "psychicapi (>=0.8.0,<0.9.0)", "py-trello (>=0.19.0,<0.20.0)", "pymupdf (>=1.22.3,<2.0.0)", "pypdf (>=3.4.0,<4.0.0)", "pypdfium2 (>=4.10.0,<5.0.0)", "pyspark (>=3.4.0,<4.0.0)", "rank-bm25 (>=0.2.2,<0.3.0)", "rapidfuzz (>=3.1.1,<4.0.0)", "rapidocr-onnxruntime (>=1.3.2,<2.0.0)", "requests-toolbelt (>=1.0.0,<2.0.0)", "rspace_client (>=2.5.0,<3.0.0)", "scikit-learn (>=1.2.2,<2.0.0)", "sqlite-vss (>=0.1.2,<0.2.0)", "streamlit (>=1.18.0,<2.0.0)", "sympy (>=1.12,<2.0)", "telethon (>=1.28.5,<2.0.0)", "timescale-vector (>=0.0.1,<0.0.2)", "tqdm (>=4.48.0)", "upstash-redis (>=0.15.0,<0.16.0)", "xata (>=1.0.0a7,<2.0.0)", "xmltodict (>=0.13.0,<0.14.0)"] javascript = ["esprima (>=4.0.1,<5.0.0)"] llms = ["clarifai (>=9.1.0)", "cohere (>=4,<5)", "huggingface_hub (>=0,<1)", "manifest-ml (>=0.0.1,<0.0.2)", "nlpcloud (>=1,<2)", "openai (<2)", "openlm (>=0.0.5,<0.0.6)", "torch (>=1,<3)", "transformers (>=4,<5)"] openai = ["openai (<2)", "tiktoken (>=0.3.2,<0.6.0)"] qdrant = ["qdrant-client (>=1.3.1,<2.0.0)"] text-helpers = ["chardet (>=5.1.0,<6.0.0)"] +[[package]] +name = "langchain-core" +version = "0.0.7" +description = "Building applications with LLMs through composability" +optional = false +python-versions = ">=3.8.1,<4.0" +files = [ + {file = "langchain_core-0.0.7-py3-none-any.whl", hash = "sha256:368ae70a1da56971642df0a9ede5f480d762224238ba84d0f9b2cd7c776150de"}, + {file = "langchain_core-0.0.7.tar.gz", hash = "sha256:2310df8b783194ec2dfe01c2864bd8b3ccb4adecb02b17cf1d63cc773c252b4a"}, +] + +[package.dependencies] +jsonpatch = ">=1.33,<2.0" +langsmith = ">=0.0.63,<0.1.0" +pydantic = ">=1,<3" +tenacity = ">=8.1.0,<9.0.0" + [[package]] name = "langchain-experimental" version = "0.0.37" @@ -1439,13 +1445,13 @@ six = "*" [[package]] name = "langserve" -version = "0.0.29" +version = "0.0.32" description = "" optional = false python-versions = ">=3.8.1,<4.0.0" files = [ - {file = "langserve-0.0.29-py3-none-any.whl", hash = "sha256:977e654ef818523afa420a5bf1374e8e6cd11d69a631c2feadc3a31e67626e8e"}, - {file = "langserve-0.0.29.tar.gz", hash = "sha256:fbcf64a50263a58b806b90cb79cea6b58e4561e3d769e3aa6b902f6322dcb5a0"}, + {file = "langserve-0.0.32-py3-none-any.whl", hash = "sha256:41cc522fcec22f1d4e2ec05bd8952783a297fbf57c65eb2ab5ad29dff03caa86"}, + {file = "langserve-0.0.32.tar.gz", hash = "sha256:8773fe87ec27c263756d4f2dcd2f0fc8a970ac90e475a517703821bd5ae1836d"}, ] [package.dependencies] @@ -1461,13 +1467,13 @@ server = ["fastapi (>=0.90.1,<1)", "sse-starlette (>=1.3.0,<2.0.0)"] [[package]] name = "langsmith" -version = "0.0.64" +version = "0.0.67" description = "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform." optional = false python-versions = ">=3.8.1,<4.0" files = [ - {file = "langsmith-0.0.64-py3-none-any.whl", hash = "sha256:461acdcd8332d1325c16dc57e8a2d5ec9d1578490a4eaabe14db74db74ceaf21"}, - {file = "langsmith-0.0.64.tar.gz", hash = "sha256:e78c02501c2cff24fff7bd2d28ff3765b21675c7f0fcf6a09932bc218603c36e"}, + {file = "langsmith-0.0.67-py3-none-any.whl", hash = "sha256:66a257b97dabd43a7e62af271b2ddb7566167ce4e446fd7b7760e97d6ce84a5e"}, + {file = "langsmith-0.0.67.tar.gz", hash = "sha256:cef00bac2e7455a5943f3afaea91c032db1a1f2adb83003159a71e884fb5a9a2"}, ] [package.dependencies] @@ -1871,13 +1877,13 @@ image = ["Pillow"] [[package]] name = "permchain" -version = "0.0.6" +version = "0.0.8" description = "permchain" optional = false python-versions = ">=3.8.1,<4.0" files = [ - {file = "permchain-0.0.6-py3-none-any.whl", hash = "sha256:420891760db90b5f5398e53ced5361f548712d79ac7957864c769a6534392c72"}, - {file = "permchain-0.0.6.tar.gz", hash = "sha256:505171943e068f567c0dc2f4692d8654d8444347a9e9965614033cd70d5982fd"}, + {file = "permchain-0.0.8-py3-none-any.whl", hash = "sha256:5e77b06264e20a70fb3431e9debf951d21181c4507db7b8db7425cb1a187a046"}, + {file = "permchain-0.0.8.tar.gz", hash = "sha256:be9f6d4dad6fd6850fdc4d7118cfca0f6069928360376c5191bdcb7a2d1e84c2"}, ] [package.dependencies] @@ -2513,46 +2519,46 @@ use-chardet-on-py3 = ["chardet (>=3.0.2,<6)"] [[package]] name = "ruff" -version = "0.1.5" +version = "0.1.6" description = "An extremely fast Python linter and code formatter, written in Rust." optional = false python-versions = ">=3.7" files = [ - {file = "ruff-0.1.5-py3-none-macosx_10_7_x86_64.whl", hash = "sha256:32d47fc69261c21a4c48916f16ca272bf2f273eb635d91c65d5cd548bf1f3d96"}, - {file = "ruff-0.1.5-py3-none-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl", hash = "sha256:171276c1df6c07fa0597fb946139ced1c2978f4f0b8254f201281729981f3c17"}, - {file = "ruff-0.1.5-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:17ef33cd0bb7316ca65649fc748acc1406dfa4da96a3d0cde6d52f2e866c7b39"}, - {file = "ruff-0.1.5-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:b2c205827b3f8c13b4a432e9585750b93fd907986fe1aec62b2a02cf4401eee6"}, - {file = "ruff-0.1.5-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:bb408e3a2ad8f6881d0f2e7ad70cddb3ed9f200eb3517a91a245bbe27101d379"}, - {file = "ruff-0.1.5-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:f20dc5e5905ddb407060ca27267c7174f532375c08076d1a953cf7bb016f5a24"}, - {file = "ruff-0.1.5-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:aafb9d2b671ed934998e881e2c0f5845a4295e84e719359c71c39a5363cccc91"}, - {file = "ruff-0.1.5-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:a4894dddb476597a0ba4473d72a23151b8b3b0b5f958f2cf4d3f1c572cdb7af7"}, - {file = "ruff-0.1.5-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a00a7ec893f665ed60008c70fe9eeb58d210e6b4d83ec6654a9904871f982a2a"}, - {file = "ruff-0.1.5-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:a8c11206b47f283cbda399a654fd0178d7a389e631f19f51da15cbe631480c5b"}, - {file = "ruff-0.1.5-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:fa29e67b3284b9a79b1a85ee66e293a94ac6b7bb068b307a8a373c3d343aa8ec"}, - {file = "ruff-0.1.5-py3-none-musllinux_1_2_i686.whl", hash = "sha256:9b97fd6da44d6cceb188147b68db69a5741fbc736465b5cea3928fdac0bc1aeb"}, - {file = "ruff-0.1.5-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:721f4b9d3b4161df8dc9f09aa8562e39d14e55a4dbaa451a8e55bdc9590e20f4"}, - {file = "ruff-0.1.5-py3-none-win32.whl", hash = "sha256:f80c73bba6bc69e4fdc73b3991db0b546ce641bdcd5b07210b8ad6f64c79f1ab"}, - {file = "ruff-0.1.5-py3-none-win_amd64.whl", hash = "sha256:c21fe20ee7d76206d290a76271c1af7a5096bc4c73ab9383ed2ad35f852a0087"}, - {file = "ruff-0.1.5-py3-none-win_arm64.whl", hash = "sha256:82bfcb9927e88c1ed50f49ac6c9728dab3ea451212693fe40d08d314663e412f"}, - {file = "ruff-0.1.5.tar.gz", hash = "sha256:5cbec0ef2ae1748fb194f420fb03fb2c25c3258c86129af7172ff8f198f125ab"}, + {file = "ruff-0.1.6-py3-none-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:88b8cdf6abf98130991cbc9f6438f35f6e8d41a02622cc5ee130a02a0ed28703"}, + {file = "ruff-0.1.6-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:5c549ed437680b6105a1299d2cd30e4964211606eeb48a0ff7a93ef70b902248"}, + {file = "ruff-0.1.6-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1cf5f701062e294f2167e66d11b092bba7af6a057668ed618a9253e1e90cfd76"}, + {file = "ruff-0.1.6-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:05991ee20d4ac4bb78385360c684e4b417edd971030ab12a4fbd075ff535050e"}, + {file = "ruff-0.1.6-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:87455a0c1f739b3c069e2f4c43b66479a54dea0276dd5d4d67b091265f6fd1dc"}, + {file = "ruff-0.1.6-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:683aa5bdda5a48cb8266fcde8eea2a6af4e5700a392c56ea5fb5f0d4bfdc0240"}, + {file = "ruff-0.1.6-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:137852105586dcbf80c1717facb6781555c4e99f520c9c827bd414fac67ddfb6"}, + {file = "ruff-0.1.6-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:bd98138a98d48a1c36c394fd6b84cd943ac92a08278aa8ac8c0fdefcf7138f35"}, + {file = "ruff-0.1.6-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3a0cd909d25f227ac5c36d4e7e681577275fb74ba3b11d288aff7ec47e3ae745"}, + {file = "ruff-0.1.6-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:e8fd1c62a47aa88a02707b5dd20c5ff20d035d634aa74826b42a1da77861b5ff"}, + {file = "ruff-0.1.6-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:fd89b45d374935829134a082617954120d7a1470a9f0ec0e7f3ead983edc48cc"}, + {file = "ruff-0.1.6-py3-none-musllinux_1_2_i686.whl", hash = "sha256:491262006e92f825b145cd1e52948073c56560243b55fb3b4ecb142f6f0e9543"}, + {file = "ruff-0.1.6-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:ea284789861b8b5ca9d5443591a92a397ac183d4351882ab52f6296b4fdd5462"}, + {file = "ruff-0.1.6-py3-none-win32.whl", hash = "sha256:1610e14750826dfc207ccbcdd7331b6bd285607d4181df9c1c6ae26646d6848a"}, + {file = "ruff-0.1.6-py3-none-win_amd64.whl", hash = "sha256:4558b3e178145491e9bc3b2ee3c4b42f19d19384eaa5c59d10acf6e8f8b57e33"}, + {file = "ruff-0.1.6-py3-none-win_arm64.whl", hash = "sha256:03910e81df0d8db0e30050725a5802441c2022ea3ae4fe0609b76081731accbc"}, + {file = "ruff-0.1.6.tar.gz", hash = "sha256:1b09f29b16c6ead5ea6b097ef2764b42372aebe363722f1605ecbcd2b9207184"}, ] [[package]] name = "s3transfer" -version = "0.7.0" +version = "0.8.1" description = "An Amazon S3 Transfer Manager" optional = false python-versions = ">= 3.7" files = [ - {file = "s3transfer-0.7.0-py3-none-any.whl", hash = "sha256:10d6923c6359175f264811ef4bf6161a3156ce8e350e705396a7557d6293c33a"}, - {file = "s3transfer-0.7.0.tar.gz", hash = "sha256:fd3889a66f5fe17299fe75b82eae6cf722554edca744ca5d5fe308b104883d2e"}, + {file = "s3transfer-0.8.1-py3-none-any.whl", hash = "sha256:d1c52af7bceca1650d0f27728b29bb4925184aead7b55bccacf893b79a108604"}, + {file = "s3transfer-0.8.1.tar.gz", hash = "sha256:e6cafd5643fc7b44fddfba1e5b521005675b0e07533ddad958a3554bc87d7330"}, ] [package.dependencies] -botocore = ">=1.12.36,<2.0a.0" +botocore = ">=1.33.2,<2.0a.0" [package.extras] -crt = ["botocore[crt] (>=1.20.29,<2.0a.0)"] +crt = ["botocore[crt] (>=1.33.2,<2.0a.0)"] [[package]] name = "sgmllib3k" @@ -2697,17 +2703,20 @@ sqlcipher = ["sqlcipher3-binary"] [[package]] name = "sse-starlette" -version = "1.6.5" -description = "\"SSE plugin for Starlette\"" +version = "1.8.2" +description = "SSE plugin for Starlette" optional = false python-versions = ">=3.8" files = [ - {file = "sse-starlette-1.6.5.tar.gz", hash = "sha256:819f2c421fb37067380fe3dcaba246c476b02651b7bb7601099a378ad802a0ac"}, - {file = "sse_starlette-1.6.5-py3-none-any.whl", hash = "sha256:68b6b7eb49be0c72a2af80a055994c13afcaa4761b29226beb208f954c25a642"}, + {file = "sse_starlette-1.8.2-py3-none-any.whl", hash = "sha256:70cc7ef5aca4abe8a25dec1284cce4fe644dd7bf0c406d3e852e516092b7f849"}, + {file = "sse_starlette-1.8.2.tar.gz", hash = "sha256:e0f9b8dec41adc092a0a6e0694334bd3cfd3084c44c497a6ebc1fb4bdd919acd"}, ] [package.dependencies] +anyio = "*" +fastapi = "*" starlette = "*" +uvicorn = "*" [[package]] name = "starlette" @@ -3259,85 +3268,101 @@ files = [ [[package]] name = "yarl" -version = "1.9.2" +version = "1.9.3" description = "Yet another URL library" optional = false python-versions = ">=3.7" files = [ - {file = "yarl-1.9.2-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:8c2ad583743d16ddbdf6bb14b5cd76bf43b0d0006e918809d5d4ddf7bde8dd82"}, - {file = "yarl-1.9.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:82aa6264b36c50acfb2424ad5ca537a2060ab6de158a5bd2a72a032cc75b9eb8"}, - {file = "yarl-1.9.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:c0c77533b5ed4bcc38e943178ccae29b9bcf48ffd1063f5821192f23a1bd27b9"}, - {file = "yarl-1.9.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ee4afac41415d52d53a9833ebae7e32b344be72835bbb589018c9e938045a560"}, - {file = "yarl-1.9.2-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9bf345c3a4f5ba7f766430f97f9cc1320786f19584acc7086491f45524a551ac"}, - {file = "yarl-1.9.2-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2a96c19c52ff442a808c105901d0bdfd2e28575b3d5f82e2f5fd67e20dc5f4ea"}, - {file = "yarl-1.9.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:891c0e3ec5ec881541f6c5113d8df0315ce5440e244a716b95f2525b7b9f3608"}, - {file = "yarl-1.9.2-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c3a53ba34a636a256d767c086ceb111358876e1fb6b50dfc4d3f4951d40133d5"}, - {file = "yarl-1.9.2-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:566185e8ebc0898b11f8026447eacd02e46226716229cea8db37496c8cdd26e0"}, - {file = "yarl-1.9.2-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:2b0738fb871812722a0ac2154be1f049c6223b9f6f22eec352996b69775b36d4"}, - {file = "yarl-1.9.2-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:32f1d071b3f362c80f1a7d322bfd7b2d11e33d2adf395cc1dd4df36c9c243095"}, - {file = "yarl-1.9.2-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:e9fdc7ac0d42bc3ea78818557fab03af6181e076a2944f43c38684b4b6bed8e3"}, - {file = "yarl-1.9.2-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:56ff08ab5df8429901ebdc5d15941b59f6253393cb5da07b4170beefcf1b2528"}, - {file = "yarl-1.9.2-cp310-cp310-win32.whl", hash = "sha256:8ea48e0a2f931064469bdabca50c2f578b565fc446f302a79ba6cc0ee7f384d3"}, - {file = "yarl-1.9.2-cp310-cp310-win_amd64.whl", hash = "sha256:50f33040f3836e912ed16d212f6cc1efb3231a8a60526a407aeb66c1c1956dde"}, - {file = "yarl-1.9.2-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:646d663eb2232d7909e6601f1a9107e66f9791f290a1b3dc7057818fe44fc2b6"}, - {file = "yarl-1.9.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:aff634b15beff8902d1f918012fc2a42e0dbae6f469fce134c8a0dc51ca423bb"}, - {file = "yarl-1.9.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:a83503934c6273806aed765035716216cc9ab4e0364f7f066227e1aaea90b8d0"}, - {file = "yarl-1.9.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b25322201585c69abc7b0e89e72790469f7dad90d26754717f3310bfe30331c2"}, - {file = "yarl-1.9.2-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:22a94666751778629f1ec4280b08eb11815783c63f52092a5953faf73be24191"}, - {file = "yarl-1.9.2-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8ec53a0ea2a80c5cd1ab397925f94bff59222aa3cf9c6da938ce05c9ec20428d"}, - {file = "yarl-1.9.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:159d81f22d7a43e6eabc36d7194cb53f2f15f498dbbfa8edc8a3239350f59fe7"}, - {file = "yarl-1.9.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:832b7e711027c114d79dffb92576acd1bd2decc467dec60e1cac96912602d0e6"}, - {file = "yarl-1.9.2-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:95d2ecefbcf4e744ea952d073c6922e72ee650ffc79028eb1e320e732898d7e8"}, - {file = "yarl-1.9.2-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:d4e2c6d555e77b37288eaf45b8f60f0737c9efa3452c6c44626a5455aeb250b9"}, - {file = "yarl-1.9.2-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:783185c75c12a017cc345015ea359cc801c3b29a2966c2655cd12b233bf5a2be"}, - {file = "yarl-1.9.2-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:b8cc1863402472f16c600e3e93d542b7e7542a540f95c30afd472e8e549fc3f7"}, - {file = "yarl-1.9.2-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:822b30a0f22e588b32d3120f6d41e4ed021806418b4c9f0bc3048b8c8cb3f92a"}, - {file = "yarl-1.9.2-cp311-cp311-win32.whl", hash = "sha256:a60347f234c2212a9f0361955007fcf4033a75bf600a33c88a0a8e91af77c0e8"}, - {file = "yarl-1.9.2-cp311-cp311-win_amd64.whl", hash = "sha256:be6b3fdec5c62f2a67cb3f8c6dbf56bbf3f61c0f046f84645cd1ca73532ea051"}, - {file = "yarl-1.9.2-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:38a3928ae37558bc1b559f67410df446d1fbfa87318b124bf5032c31e3447b74"}, - {file = "yarl-1.9.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ac9bb4c5ce3975aeac288cfcb5061ce60e0d14d92209e780c93954076c7c4367"}, - {file = "yarl-1.9.2-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3da8a678ca8b96c8606bbb8bfacd99a12ad5dd288bc6f7979baddd62f71c63ef"}, - {file = "yarl-1.9.2-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:13414591ff516e04fcdee8dc051c13fd3db13b673c7a4cb1350e6b2ad9639ad3"}, - {file = "yarl-1.9.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bf74d08542c3a9ea97bb8f343d4fcbd4d8f91bba5ec9d5d7f792dbe727f88938"}, - {file = "yarl-1.9.2-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6e7221580dc1db478464cfeef9b03b95c5852cc22894e418562997df0d074ccc"}, - {file = "yarl-1.9.2-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:494053246b119b041960ddcd20fd76224149cfea8ed8777b687358727911dd33"}, - {file = "yarl-1.9.2-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:52a25809fcbecfc63ac9ba0c0fb586f90837f5425edfd1ec9f3372b119585e45"}, - {file = "yarl-1.9.2-cp37-cp37m-musllinux_1_1_ppc64le.whl", hash = "sha256:e65610c5792870d45d7b68c677681376fcf9cc1c289f23e8e8b39c1485384185"}, - {file = "yarl-1.9.2-cp37-cp37m-musllinux_1_1_s390x.whl", hash = "sha256:1b1bba902cba32cdec51fca038fd53f8beee88b77efc373968d1ed021024cc04"}, - {file = "yarl-1.9.2-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:662e6016409828ee910f5d9602a2729a8a57d74b163c89a837de3fea050c7582"}, - {file = "yarl-1.9.2-cp37-cp37m-win32.whl", hash = "sha256:f364d3480bffd3aa566e886587eaca7c8c04d74f6e8933f3f2c996b7f09bee1b"}, - {file = "yarl-1.9.2-cp37-cp37m-win_amd64.whl", hash = "sha256:6a5883464143ab3ae9ba68daae8e7c5c95b969462bbe42e2464d60e7e2698368"}, - {file = "yarl-1.9.2-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:5610f80cf43b6202e2c33ba3ec2ee0a2884f8f423c8f4f62906731d876ef4fac"}, - {file = "yarl-1.9.2-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:b9a4e67ad7b646cd6f0938c7ebfd60e481b7410f574c560e455e938d2da8e0f4"}, - {file = "yarl-1.9.2-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:83fcc480d7549ccebe9415d96d9263e2d4226798c37ebd18c930fce43dfb9574"}, - {file = "yarl-1.9.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5fcd436ea16fee7d4207c045b1e340020e58a2597301cfbcfdbe5abd2356c2fb"}, - {file = "yarl-1.9.2-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:84e0b1599334b1e1478db01b756e55937d4614f8654311eb26012091be109d59"}, - {file = "yarl-1.9.2-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:3458a24e4ea3fd8930e934c129b676c27452e4ebda80fbe47b56d8c6c7a63a9e"}, - {file = "yarl-1.9.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:838162460b3a08987546e881a2bfa573960bb559dfa739e7800ceeec92e64417"}, - {file = "yarl-1.9.2-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f4e2d08f07a3d7d3e12549052eb5ad3eab1c349c53ac51c209a0e5991bbada78"}, - {file = "yarl-1.9.2-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:de119f56f3c5f0e2fb4dee508531a32b069a5f2c6e827b272d1e0ff5ac040333"}, - {file = "yarl-1.9.2-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:149ddea5abf329752ea5051b61bd6c1d979e13fbf122d3a1f9f0c8be6cb6f63c"}, - {file = "yarl-1.9.2-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:674ca19cbee4a82c9f54e0d1eee28116e63bc6fd1e96c43031d11cbab8b2afd5"}, - {file = "yarl-1.9.2-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:9b3152f2f5677b997ae6c804b73da05a39daa6a9e85a512e0e6823d81cdad7cc"}, - {file = "yarl-1.9.2-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:5415d5a4b080dc9612b1b63cba008db84e908b95848369aa1da3686ae27b6d2b"}, - {file = "yarl-1.9.2-cp38-cp38-win32.whl", hash = "sha256:f7a3d8146575e08c29ed1cd287068e6d02f1c7bdff8970db96683b9591b86ee7"}, - {file = "yarl-1.9.2-cp38-cp38-win_amd64.whl", hash = "sha256:63c48f6cef34e6319a74c727376e95626f84ea091f92c0250a98e53e62c77c72"}, - {file = "yarl-1.9.2-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:75df5ef94c3fdc393c6b19d80e6ef1ecc9ae2f4263c09cacb178d871c02a5ba9"}, - {file = "yarl-1.9.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:c027a6e96ef77d401d8d5a5c8d6bc478e8042f1e448272e8d9752cb0aff8b5c8"}, - {file = "yarl-1.9.2-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:f3b078dbe227f79be488ffcfc7a9edb3409d018e0952cf13f15fd6512847f3f7"}, - {file = "yarl-1.9.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:59723a029760079b7d991a401386390c4be5bfec1e7dd83e25a6a0881859e716"}, - {file = "yarl-1.9.2-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b03917871bf859a81ccb180c9a2e6c1e04d2f6a51d953e6a5cdd70c93d4e5a2a"}, - {file = "yarl-1.9.2-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c1012fa63eb6c032f3ce5d2171c267992ae0c00b9e164efe4d73db818465fac3"}, - {file = "yarl-1.9.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a74dcbfe780e62f4b5a062714576f16c2f3493a0394e555ab141bf0d746bb955"}, - {file = "yarl-1.9.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:8c56986609b057b4839968ba901944af91b8e92f1725d1a2d77cbac6972b9ed1"}, - {file = "yarl-1.9.2-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:2c315df3293cd521033533d242d15eab26583360b58f7ee5d9565f15fee1bef4"}, - {file = "yarl-1.9.2-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:b7232f8dfbd225d57340e441d8caf8652a6acd06b389ea2d3222b8bc89cbfca6"}, - {file = "yarl-1.9.2-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:53338749febd28935d55b41bf0bcc79d634881195a39f6b2f767870b72514caf"}, - {file = "yarl-1.9.2-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:066c163aec9d3d073dc9ffe5dd3ad05069bcb03fcaab8d221290ba99f9f69ee3"}, - {file = "yarl-1.9.2-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:8288d7cd28f8119b07dd49b7230d6b4562f9b61ee9a4ab02221060d21136be80"}, - {file = "yarl-1.9.2-cp39-cp39-win32.whl", hash = "sha256:b124e2a6d223b65ba8768d5706d103280914d61f5cae3afbc50fc3dfcc016623"}, - {file = "yarl-1.9.2-cp39-cp39-win_amd64.whl", hash = "sha256:61016e7d582bc46a5378ffdd02cd0314fb8ba52f40f9cf4d9a5e7dbef88dee18"}, - {file = "yarl-1.9.2.tar.gz", hash = "sha256:04ab9d4b9f587c06d801c2abfe9317b77cdf996c65a90d5e84ecc45010823571"}, + {file = "yarl-1.9.3-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:32435d134414e01d937cd9d6cc56e8413a8d4741dea36af5840c7750f04d16ab"}, + {file = "yarl-1.9.3-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:9a5211de242754b5e612557bca701f39f8b1a9408dff73c6db623f22d20f470e"}, + {file = "yarl-1.9.3-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:525cd69eff44833b01f8ef39aa33a9cc53a99ff7f9d76a6ef6a9fb758f54d0ff"}, + {file = "yarl-1.9.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:fc94441bcf9cb8c59f51f23193316afefbf3ff858460cb47b5758bf66a14d130"}, + {file = "yarl-1.9.3-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e36021db54b8a0475805acc1d6c4bca5d9f52c3825ad29ae2d398a9d530ddb88"}, + {file = "yarl-1.9.3-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e0f17d1df951336a02afc8270c03c0c6e60d1f9996fcbd43a4ce6be81de0bd9d"}, + {file = "yarl-1.9.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c5f3faeb8100a43adf3e7925d556801d14b5816a0ac9e75e22948e787feec642"}, + {file = "yarl-1.9.3-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:aed37db837ecb5962469fad448aaae0f0ee94ffce2062cf2eb9aed13328b5196"}, + {file = "yarl-1.9.3-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:721ee3fc292f0d069a04016ef2c3a25595d48c5b8ddc6029be46f6158d129c92"}, + {file = "yarl-1.9.3-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:b8bc5b87a65a4e64bc83385c05145ea901b613d0d3a434d434b55511b6ab0067"}, + {file = "yarl-1.9.3-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:dd952b9c64f3b21aedd09b8fe958e4931864dba69926d8a90c90d36ac4e28c9a"}, + {file = "yarl-1.9.3-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:c405d482c320a88ab53dcbd98d6d6f32ada074f2d965d6e9bf2d823158fa97de"}, + {file = "yarl-1.9.3-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:9df9a0d4c5624790a0dea2e02e3b1b3c69aed14bcb8650e19606d9df3719e87d"}, + {file = "yarl-1.9.3-cp310-cp310-win32.whl", hash = "sha256:d34c4f80956227f2686ddea5b3585e109c2733e2d4ef12eb1b8b4e84f09a2ab6"}, + {file = "yarl-1.9.3-cp310-cp310-win_amd64.whl", hash = "sha256:cf7a4e8de7f1092829caef66fd90eaf3710bc5efd322a816d5677b7664893c93"}, + {file = "yarl-1.9.3-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:d61a0ca95503867d4d627517bcfdc28a8468c3f1b0b06c626f30dd759d3999fd"}, + {file = "yarl-1.9.3-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:73cc83f918b69110813a7d95024266072d987b903a623ecae673d1e71579d566"}, + {file = "yarl-1.9.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:d81657b23e0edb84b37167e98aefb04ae16cbc5352770057893bd222cdc6e45f"}, + {file = "yarl-1.9.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:26a1a8443091c7fbc17b84a0d9f38de34b8423b459fb853e6c8cdfab0eacf613"}, + {file = "yarl-1.9.3-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:fe34befb8c765b8ce562f0200afda3578f8abb159c76de3ab354c80b72244c41"}, + {file = "yarl-1.9.3-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2c757f64afe53a422e45e3e399e1e3cf82b7a2f244796ce80d8ca53e16a49b9f"}, + {file = "yarl-1.9.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:72a57b41a0920b9a220125081c1e191b88a4cdec13bf9d0649e382a822705c65"}, + {file = "yarl-1.9.3-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:632c7aeb99df718765adf58eacb9acb9cbc555e075da849c1378ef4d18bf536a"}, + {file = "yarl-1.9.3-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:b0b8c06afcf2bac5a50b37f64efbde978b7f9dc88842ce9729c020dc71fae4ce"}, + {file = "yarl-1.9.3-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:1d93461e2cf76c4796355494f15ffcb50a3c198cc2d601ad8d6a96219a10c363"}, + {file = "yarl-1.9.3-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:4003f380dac50328c85e85416aca6985536812c082387255c35292cb4b41707e"}, + {file = "yarl-1.9.3-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:4d6d74a97e898c1c2df80339aa423234ad9ea2052f66366cef1e80448798c13d"}, + {file = "yarl-1.9.3-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:b61e64b06c3640feab73fa4ff9cb64bd8182de52e5dc13038e01cfe674ebc321"}, + {file = "yarl-1.9.3-cp311-cp311-win32.whl", hash = "sha256:29beac86f33d6c7ab1d79bd0213aa7aed2d2f555386856bb3056d5fdd9dab279"}, + {file = "yarl-1.9.3-cp311-cp311-win_amd64.whl", hash = "sha256:f7271d6bd8838c49ba8ae647fc06469137e1c161a7ef97d778b72904d9b68696"}, + {file = "yarl-1.9.3-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:dd318e6b75ca80bff0b22b302f83a8ee41c62b8ac662ddb49f67ec97e799885d"}, + {file = "yarl-1.9.3-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:c4b1efb11a8acd13246ffb0bee888dd0e8eb057f8bf30112e3e21e421eb82d4a"}, + {file = "yarl-1.9.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:c6f034386e5550b5dc8ded90b5e2ff7db21f0f5c7de37b6efc5dac046eb19c10"}, + {file = "yarl-1.9.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cd49a908cb6d387fc26acee8b7d9fcc9bbf8e1aca890c0b2fdfd706057546080"}, + {file = "yarl-1.9.3-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:aa4643635f26052401750bd54db911b6342eb1a9ac3e74f0f8b58a25d61dfe41"}, + {file = "yarl-1.9.3-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e741bd48e6a417bdfbae02e088f60018286d6c141639359fb8df017a3b69415a"}, + {file = "yarl-1.9.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7c86d0d0919952d05df880a1889a4f0aeb6868e98961c090e335671dea5c0361"}, + {file = "yarl-1.9.3-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3d5434b34100b504aabae75f0622ebb85defffe7b64ad8f52b8b30ec6ef6e4b9"}, + {file = "yarl-1.9.3-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:79e1df60f7c2b148722fb6cafebffe1acd95fd8b5fd77795f56247edaf326752"}, + {file = "yarl-1.9.3-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:44e91a669c43f03964f672c5a234ae0d7a4d49c9b85d1baa93dec28afa28ffbd"}, + {file = "yarl-1.9.3-cp312-cp312-musllinux_1_1_ppc64le.whl", hash = "sha256:3cfa4dbe17b2e6fca1414e9c3bcc216f6930cb18ea7646e7d0d52792ac196808"}, + {file = "yarl-1.9.3-cp312-cp312-musllinux_1_1_s390x.whl", hash = "sha256:88d2c3cc4b2f46d1ba73d81c51ec0e486f59cc51165ea4f789677f91a303a9a7"}, + {file = "yarl-1.9.3-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:cccdc02e46d2bd7cb5f38f8cc3d9db0d24951abd082b2f242c9e9f59c0ab2af3"}, + {file = "yarl-1.9.3-cp312-cp312-win32.whl", hash = "sha256:96758e56dceb8a70f8a5cff1e452daaeff07d1cc9f11e9b0c951330f0a2396a7"}, + {file = "yarl-1.9.3-cp312-cp312-win_amd64.whl", hash = "sha256:c4472fe53ebf541113e533971bd8c32728debc4c6d8cc177f2bff31d011ec17e"}, + {file = "yarl-1.9.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:126638ab961633f0940a06e1c9d59919003ef212a15869708dcb7305f91a6732"}, + {file = "yarl-1.9.3-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c99ddaddb2fbe04953b84d1651149a0d85214780e4d0ee824e610ab549d98d92"}, + {file = "yarl-1.9.3-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8dab30b21bd6fb17c3f4684868c7e6a9e8468078db00f599fb1c14e324b10fca"}, + {file = "yarl-1.9.3-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:828235a2a169160ee73a2fcfb8a000709edf09d7511fccf203465c3d5acc59e4"}, + {file = "yarl-1.9.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fc391e3941045fd0987c77484b2799adffd08e4b6735c4ee5f054366a2e1551d"}, + {file = "yarl-1.9.3-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:51382c72dd5377861b573bd55dcf680df54cea84147c8648b15ac507fbef984d"}, + {file = "yarl-1.9.3-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:28a108cb92ce6cf867690a962372996ca332d8cda0210c5ad487fe996e76b8bb"}, + {file = "yarl-1.9.3-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:8f18a7832ff85dfcd77871fe677b169b1bc60c021978c90c3bb14f727596e0ae"}, + {file = "yarl-1.9.3-cp37-cp37m-musllinux_1_1_ppc64le.whl", hash = "sha256:7eaf13af79950142ab2bbb8362f8d8d935be9aaf8df1df89c86c3231e4ff238a"}, + {file = "yarl-1.9.3-cp37-cp37m-musllinux_1_1_s390x.whl", hash = "sha256:66a6dbf6ca7d2db03cc61cafe1ee6be838ce0fbc97781881a22a58a7c5efef42"}, + {file = "yarl-1.9.3-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:1a0a4f3aaa18580038cfa52a7183c8ffbbe7d727fe581300817efc1e96d1b0e9"}, + {file = "yarl-1.9.3-cp37-cp37m-win32.whl", hash = "sha256:946db4511b2d815979d733ac6a961f47e20a29c297be0d55b6d4b77ee4b298f6"}, + {file = "yarl-1.9.3-cp37-cp37m-win_amd64.whl", hash = "sha256:2dad8166d41ebd1f76ce107cf6a31e39801aee3844a54a90af23278b072f1ccf"}, + {file = "yarl-1.9.3-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:bb72d2a94481e7dc7a0c522673db288f31849800d6ce2435317376a345728225"}, + {file = "yarl-1.9.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:9a172c3d5447b7da1680a1a2d6ecdf6f87a319d21d52729f45ec938a7006d5d8"}, + {file = "yarl-1.9.3-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:2dc72e891672343b99db6d497024bf8b985537ad6c393359dc5227ef653b2f17"}, + {file = "yarl-1.9.3-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b8d51817cf4b8d545963ec65ff06c1b92e5765aa98831678d0e2240b6e9fd281"}, + {file = "yarl-1.9.3-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:53ec65f7eee8655bebb1f6f1607760d123c3c115a324b443df4f916383482a67"}, + {file = "yarl-1.9.3-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:cfd77e8e5cafba3fb584e0f4b935a59216f352b73d4987be3af51f43a862c403"}, + {file = "yarl-1.9.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e73db54c967eb75037c178a54445c5a4e7461b5203b27c45ef656a81787c0c1b"}, + {file = "yarl-1.9.3-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:09c19e5f4404574fcfb736efecf75844ffe8610606f3fccc35a1515b8b6712c4"}, + {file = "yarl-1.9.3-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:6280353940f7e5e2efaaabd686193e61351e966cc02f401761c4d87f48c89ea4"}, + {file = "yarl-1.9.3-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:c25ec06e4241e162f5d1f57c370f4078797ade95c9208bd0c60f484834f09c96"}, + {file = "yarl-1.9.3-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:7217234b10c64b52cc39a8d82550342ae2e45be34f5bff02b890b8c452eb48d7"}, + {file = "yarl-1.9.3-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:4ce77d289f8d40905c054b63f29851ecbfd026ef4ba5c371a158cfe6f623663e"}, + {file = "yarl-1.9.3-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:5f74b015c99a5eac5ae589de27a1201418a5d9d460e89ccb3366015c6153e60a"}, + {file = "yarl-1.9.3-cp38-cp38-win32.whl", hash = "sha256:8a2538806be846ea25e90c28786136932ec385c7ff3bc1148e45125984783dc6"}, + {file = "yarl-1.9.3-cp38-cp38-win_amd64.whl", hash = "sha256:6465d36381af057d0fab4e0f24ef0e80ba61f03fe43e6eeccbe0056e74aadc70"}, + {file = "yarl-1.9.3-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:2f3c8822bc8fb4a347a192dd6a28a25d7f0ea3262e826d7d4ef9cc99cd06d07e"}, + {file = "yarl-1.9.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:b7831566595fe88ba17ea80e4b61c0eb599f84c85acaa14bf04dd90319a45b90"}, + {file = "yarl-1.9.3-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:ff34cb09a332832d1cf38acd0f604c068665192c6107a439a92abfd8acf90fe2"}, + {file = "yarl-1.9.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:fe8080b4f25dfc44a86bedd14bc4f9d469dfc6456e6f3c5d9077e81a5fedfba7"}, + {file = "yarl-1.9.3-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8535e111a064f3bdd94c0ed443105934d6f005adad68dd13ce50a488a0ad1bf3"}, + {file = "yarl-1.9.3-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0d155a092bf0ebf4a9f6f3b7a650dc5d9a5bbb585ef83a52ed36ba46f55cc39d"}, + {file = "yarl-1.9.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:778df71c8d0c8c9f1b378624b26431ca80041660d7be7c3f724b2c7a6e65d0d6"}, + {file = "yarl-1.9.3-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b9f9cafaf031c34d95c1528c16b2fa07b710e6056b3c4e2e34e9317072da5d1a"}, + {file = "yarl-1.9.3-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:ca6b66f69e30f6e180d52f14d91ac854b8119553b524e0e28d5291a724f0f423"}, + {file = "yarl-1.9.3-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:e0e7e83f31e23c5d00ff618045ddc5e916f9e613d33c5a5823bc0b0a0feb522f"}, + {file = "yarl-1.9.3-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:af52725c7c39b0ee655befbbab5b9a1b209e01bb39128dce0db226a10014aacc"}, + {file = "yarl-1.9.3-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:0ab5baaea8450f4a3e241ef17e3d129b2143e38a685036b075976b9c415ea3eb"}, + {file = "yarl-1.9.3-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:6d350388ba1129bc867c6af1cd17da2b197dff0d2801036d2d7d83c2d771a682"}, + {file = "yarl-1.9.3-cp39-cp39-win32.whl", hash = "sha256:e2a16ef5fa2382af83bef4a18c1b3bcb4284c4732906aa69422cf09df9c59f1f"}, + {file = "yarl-1.9.3-cp39-cp39-win_amd64.whl", hash = "sha256:d92d897cb4b4bf915fbeb5e604c7911021a8456f0964f3b8ebbe7f9188b9eabb"}, + {file = "yarl-1.9.3-py3-none-any.whl", hash = "sha256:271d63396460b6607b588555ea27a1a02b717ca2e3f2cf53bdde4013d7790929"}, + {file = "yarl-1.9.3.tar.gz", hash = "sha256:4a14907b597ec55740f63e52d7fee0e9ee09d5b9d57a4f399a7423268e457b57"}, ] [package.dependencies] @@ -3347,4 +3372,4 @@ multidict = ">=4.0" [metadata] lock-version = "2.0" python-versions = "^3.8.1" -content-hash = "12719c7283f8c9d8433c84c40d3ada12d4f5bcf0689adc63fde2d706184a9e03" +content-hash = "0fb23784c0634e2721c01fdd3ca1c07bf6805531b8678bd51406f591b9c58f1f" diff --git a/backend/pyproject.toml b/backend/pyproject.toml index 17bcdcef..f51f483f 100644 --- a/backend/pyproject.toml +++ b/backend/pyproject.toml @@ -23,7 +23,7 @@ redis = "^5.0.1" python-multipart = "^0.0.6" tiktoken = "^0.5.1" langchain = ">=0.0.338" -permchain = "0.0.6" +permchain = ">=0.0.8" pydantic = "<2.0" [tool.poetry.group.dev.dependencies] diff --git a/backend/requirements.txt b/backend/requirements.txt index c913915b..2e3e3e08 100644 --- a/backend/requirements.txt +++ b/backend/requirements.txt @@ -3,3 +3,5 @@ langchain-cli -e packages/agent-executor langchain>=0.0.331 langserve>=0.0.23 +permchain +python-multipart diff --git a/backend/ui/assets/index-338f04a9.js b/backend/ui/assets/index-338f04a9.js new file mode 100644 index 00000000..7c260fca --- /dev/null +++ b/backend/ui/assets/index-338f04a9.js @@ -0,0 +1,149 @@ +var mA=Object.defineProperty;var yA=(e,t,n)=>t in e?mA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var bn=(e,t,n)=>(yA(e,typeof t!="symbol"?t+"":t,n),n),_A=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var Hm=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)};var Wh=(e,t,n)=>(_A(e,t,"access private method"),n);function wA(e,t){for(var n=0;nr[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const u of i)if(u.type==="childList")for(const l of u.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const u={};return i.integrity&&(u.integrity=i.integrity),i.referrerPolicy&&(u.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?u.credentials="include":i.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function r(i){if(i.ep)return;i.ep=!0;const u=n(i);fetch(i.href,u)}})();var Mu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ky(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ab={exports:{}},yv={},lb={exports:{}},Gt={};/** + * @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 ep=Symbol.for("react.element"),xA=Symbol.for("react.portal"),bA=Symbol.for("react.fragment"),SA=Symbol.for("react.strict_mode"),EA=Symbol.for("react.profiler"),kA=Symbol.for("react.provider"),TA=Symbol.for("react.context"),CA=Symbol.for("react.forward_ref"),AA=Symbol.for("react.suspense"),OA=Symbol.for("react.memo"),RA=Symbol.for("react.lazy"),D_=Symbol.iterator;function PA(e){return e===null||typeof e!="object"?null:(e=D_&&e[D_]||e["@@iterator"],typeof e=="function"?e:null)}var sb={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},cb=Object.assign,fb={};function jc(e,t,n){this.props=e,this.context=t,this.refs=fb,this.updater=n||sb}jc.prototype.isReactComponent={};jc.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")};jc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function db(){}db.prototype=jc.prototype;function Vy(e,t,n){this.props=e,this.context=t,this.refs=fb,this.updater=n||sb}var Yy=Vy.prototype=new db;Yy.constructor=Vy;cb(Yy,jc.prototype);Yy.isPureReactComponent=!0;var M_=Array.isArray,pb=Object.prototype.hasOwnProperty,Qy={current:null},hb={key:!0,ref:!0,__self:!0,__source:!0};function gb(e,t,n){var r,i={},u=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(u=""+t.key),t)pb.call(t,r)&&!hb.hasOwnProperty(r)&&(i[r]=t[r]);var f=arguments.length-2;if(f===1)i.children=n;else if(1>>1,re=le[B];if(0>>1;Bi(we,Le))yei(ze,we)?(le[B]=ze,le[ye]=Le,B=ye):(le[B]=we,le[pe]=Le,B=pe);else if(yei(ze,Le))le[B]=ze,le[ye]=Le,B=ye;else break e}}return me}function i(le,me){var Le=le.sortIndex-me.sortIndex;return Le!==0?Le:le.id-me.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var l=Date,f=l.now();e.unstable_now=function(){return l.now()-f}}var d=[],h=[],m=1,v=null,_=3,x=!1,A=!1,R=!1,N=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function T(le){for(var me=n(h);me!==null;){if(me.callback===null)r(h);else if(me.startTime<=le)r(h),me.sortIndex=me.expirationTime,t(d,me);else break;me=n(h)}}function P(le){if(R=!1,T(le),!A)if(n(d)!==null)A=!0,lt(L);else{var me=n(h);me!==null&&Je(P,me.startTime-le)}}function L(le,me){A=!1,R&&(R=!1,k(Z),Z=-1),x=!0;var Le=_;try{for(T(me),v=n(d);v!==null&&(!(v.expirationTime>me)||le&&!ae());){var B=v.callback;if(typeof B=="function"){v.callback=null,_=v.priorityLevel;var re=B(v.expirationTime<=me);me=e.unstable_now(),typeof re=="function"?v.callback=re:v===n(d)&&r(d),T(me)}else r(d);v=n(d)}if(v!==null)var xe=!0;else{var pe=n(h);pe!==null&&Je(P,pe.startTime-me),xe=!1}return xe}finally{v=null,_=Le,x=!1}}var U=!1,G=null,Z=-1,Ee=5,K=-1;function ae(){return!(e.unstable_now()-Kle||125B?(le.sortIndex=Le,t(h,le),n(d)===null&&le===n(h)&&(R?(k(Z),Z=-1):R=!0,Je(P,Le-B))):(le.sortIndex=re,t(d,le),A||x||(A=!0,lt(L))),le},e.unstable_shouldYield=ae,e.unstable_wrapCallback=function(le){var me=_;return function(){var Le=_;_=me;try{return le.apply(this,arguments)}finally{_=Le}}}})(_b);yb.exports=_b;var BA=yb.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 wb=M,Yi=BA;function ke(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"),j0=Object.prototype.hasOwnProperty,HA=/^[: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]*$/,z_={},U_={};function WA(e){return j0.call(U_,e)?!0:j0.call(z_,e)?!1:HA.test(e)?U_[e]=!0:(z_[e]=!0,!1)}function GA(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 qA(e,t,n,r){if(t===null||typeof t>"u"||GA(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 di(e,t,n,r,i,u,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=l}var Nr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Nr[e]=new di(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 di(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Nr[e]=new di(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Nr[e]=new di(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 di(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Nr[e]=new di(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Nr[e]=new di(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Nr[e]=new di(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Nr[e]=new di(e,5,!1,e.toLowerCase(),null,!1,!1)});var Xy=/[\-:]([a-z])/g;function Jy(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(Xy,Jy);Nr[t]=new di(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(Xy,Jy);Nr[t]=new di(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(Xy,Jy);Nr[t]=new di(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Nr[e]=new di(e,1,!1,e.toLowerCase(),null,!1,!1)});Nr.xlinkHref=new di("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Nr[e]=new di(e,1,!1,e.toLowerCase(),null,!0,!0)});function e1(e,t,n,r){var i=Nr.hasOwnProperty(t)?Nr[t]:null;(i!==null?i.type!==0:r||!(2f||i[l]!==u[f]){var d=` +`+i[l].replace(" at new "," at ");return e.displayName&&d.includes("")&&(d=d.replace("",e.displayName)),d}while(1<=l&&0<=f);break}}}finally{qm=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?_d(e):""}function KA(e){switch(e.tag){case 5:return _d(e.type);case 16:return _d("Lazy");case 13:return _d("Suspense");case 19:return _d("SuspenseList");case 0:case 2:case 15:return e=Km(e.type,!1),e;case 11:return e=Km(e.type.render,!1),e;case 1:return e=Km(e.type,!0),e;default:return""}}function D0(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 sc:return"Fragment";case lc:return"Portal";case L0:return"Profiler";case t1:return"StrictMode";case N0:return"Suspense";case $0:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Sb:return(e.displayName||"Context")+".Consumer";case bb:return(e._context.displayName||"Context")+".Provider";case n1:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case r1:return t=e.displayName||null,t!==null?t:D0(e.type)||"Memo";case ka:t=e._payload,e=e._init;try{return D0(e(t))}catch{}}return null}function VA(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 D0(t);case 8:return t===t1?"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 Ua(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function kb(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function YA(e){var t=kb(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 i=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(l){r=""+l,u.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Kh(e){e._valueTracker||(e._valueTracker=YA(e))}function Tb(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=kb(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ig(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 M0(e,t){var n=t.checked;return Wn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function H_(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ua(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 Cb(e,t){t=t.checked,t!=null&&e1(e,"checked",t,!1)}function F0(e,t){Cb(e,t);var n=Ua(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")?z0(e,t.type,n):t.hasOwnProperty("defaultValue")&&z0(e,t.type,Ua(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function W_(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 z0(e,t,n){(t!=="number"||Ig(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var wd=Array.isArray;function wc(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Vh.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function $d(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ed={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},QA=["Webkit","ms","Moz","O"];Object.keys(Ed).forEach(function(e){QA.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ed[t]=Ed[e]})});function Pb(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ed.hasOwnProperty(e)&&Ed[e]?(""+t).trim():t+"px"}function Ib(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Pb(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var ZA=Wn({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 H0(e,t){if(t){if(ZA[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ke(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ke(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ke(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ke(62))}}function W0(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 G0=null;function i1(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var q0=null,xc=null,bc=null;function K_(e){if(e=rp(e)){if(typeof q0!="function")throw Error(ke(280));var t=e.stateNode;t&&(t=Sv(t),q0(e.stateNode,e.type,t))}}function jb(e){xc?bc?bc.push(e):bc=[e]:xc=e}function Lb(){if(xc){var e=xc,t=bc;if(bc=xc=null,K_(e),t)for(e=0;e>>=0,e===0?32:31-(lO(e)/sO|0)|0}var Yh=64,Qh=4194304;function xd(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 $g(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,u=e.pingedLanes,l=n&268435455;if(l!==0){var f=l&~i;f!==0?r=xd(f):(u&=l,u!==0&&(r=xd(u)))}else l=n&~i,l!==0?r=xd(l):u!==0&&(r=xd(u));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,u=t&-t,i>=u||i===16&&(u&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 tp(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ho(t),e[t]=n}function pO(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=Td),nw=String.fromCharCode(32),rw=!1;function eS(e,t){switch(e){case"keyup":return UO.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tS(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var cc=!1;function HO(e,t){switch(e){case"compositionend":return tS(t);case"keypress":return t.which!==32?null:(rw=!0,nw);case"textInput":return e=t.data,e===nw&&rw?null:e;default:return null}}function WO(e,t){if(cc)return e==="compositionend"||!d1&&eS(e,t)?(e=Xb(),xg=s1=Ra=null,cc=!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=aw(n)}}function oS(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?oS(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function uS(){for(var e=window,t=Ig();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ig(e.document)}return t}function p1(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 JO(e){var t=uS(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&oS(n.ownerDocument.documentElement,n)){if(r!==null&&p1(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 i=n.textContent.length,u=Math.min(r.start,i);r=r.end===void 0?u:Math.min(r.end,i),!e.extend&&u>r&&(i=r,r=u,u=i),i=lw(n,u);var l=lw(n,r);i&&l&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),u>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.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,fc=null,X0=null,Ad=null,J0=!1;function sw(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;J0||fc==null||fc!==Ig(r)||(r=fc,"selectionStart"in r&&p1(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}),Ad&&Bd(Ad,r)||(Ad=r,r=Fg(X0,"onSelect"),0hc||(e.current=oy[hc],oy[hc]=null,hc--)}function Cn(e,t){hc++,oy[hc]=e.current,e.current=t}var Ba={},Xr=Wa(Ba),Ti=Wa(!1),Kl=Ba;function Cc(e,t){var n=e.type.contextTypes;if(!n)return Ba;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},u;for(u in n)i[u]=t[u];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ci(e){return e=e.childContextTypes,e!=null}function Ug(){In(Ti),In(Xr)}function vw(e,t,n){if(Xr.current!==Ba)throw Error(ke(168));Cn(Xr,t),Cn(Ti,n)}function gS(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(ke(108,VA(e)||"Unknown",i));return Wn({},n,r)}function Bg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ba,Kl=Xr.current,Cn(Xr,e),Cn(Ti,Ti.current),!0}function mw(e,t,n){var r=e.stateNode;if(!r)throw Error(ke(169));n?(e=gS(e,t,Kl),r.__reactInternalMemoizedMergedChildContext=e,In(Ti),In(Xr),Cn(Xr,e)):In(Ti),Cn(Ti,n)}var Du=null,Ev=!1,a0=!1;function vS(e){Du===null?Du=[e]:Du.push(e)}function f3(e){Ev=!0,vS(e)}function Ga(){if(!a0&&Du!==null){a0=!0;var e=0,t=hn;try{var n=Du;for(hn=1;e>=l,i-=l,Fu=1<<32-Ho(t)+i|n<Z?(Ee=G,G=null):Ee=G.sibling;var K=_(k,G,T[Z],P);if(K===null){G===null&&(G=Ee);break}e&&G&&K.alternate===null&&t(k,G),E=u(K,E,Z),U===null?L=K:U.sibling=K,U=K,G=Ee}if(Z===T.length)return n(k,G),Dn&&Ll(k,Z),L;if(G===null){for(;ZZ?(Ee=G,G=null):Ee=G.sibling;var ae=_(k,G,K.value,P);if(ae===null){G===null&&(G=Ee);break}e&&G&&ae.alternate===null&&t(k,G),E=u(ae,E,Z),U===null?L=ae:U.sibling=ae,U=ae,G=Ee}if(K.done)return n(k,G),Dn&&Ll(k,Z),L;if(G===null){for(;!K.done;Z++,K=T.next())K=v(k,K.value,P),K!==null&&(E=u(K,E,Z),U===null?L=K:U.sibling=K,U=K);return Dn&&Ll(k,Z),L}for(G=r(k,G);!K.done;Z++,K=T.next())K=x(G,k,Z,K.value,P),K!==null&&(e&&K.alternate!==null&&G.delete(K.key===null?Z:K.key),E=u(K,E,Z),U===null?L=K:U.sibling=K,U=K);return e&&G.forEach(function(ne){return t(k,ne)}),Dn&&Ll(k,Z),L}function N(k,E,T,P){if(typeof T=="object"&&T!==null&&T.type===sc&&T.key===null&&(T=T.props.children),typeof T=="object"&&T!==null){switch(T.$$typeof){case qh:e:{for(var L=T.key,U=E;U!==null;){if(U.key===L){if(L=T.type,L===sc){if(U.tag===7){n(k,U.sibling),E=i(U,T.props.children),E.return=k,k=E;break e}}else if(U.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===ka&&Ew(L)===U.type){n(k,U.sibling),E=i(U,T.props),E.ref=ld(k,U,T),E.return=k,k=E;break e}n(k,U);break}else t(k,U);U=U.sibling}T.type===sc?(E=Gl(T.props.children,k.mode,P,T.key),E.return=k,k=E):(P=Og(T.type,T.key,T.props,null,k.mode,P),P.ref=ld(k,E,T),P.return=k,k=P)}return l(k);case lc:e:{for(U=T.key;E!==null;){if(E.key===U)if(E.tag===4&&E.stateNode.containerInfo===T.containerInfo&&E.stateNode.implementation===T.implementation){n(k,E.sibling),E=i(E,T.children||[]),E.return=k,k=E;break e}else{n(k,E);break}else t(k,E);E=E.sibling}E=g0(T,k.mode,P),E.return=k,k=E}return l(k);case ka:return U=T._init,N(k,E,U(T._payload),P)}if(wd(T))return A(k,E,T,P);if(rd(T))return R(k,E,T,P);rg(k,T)}return typeof T=="string"&&T!==""||typeof T=="number"?(T=""+T,E!==null&&E.tag===6?(n(k,E.sibling),E=i(E,T),E.return=k,k=E):(n(k,E),E=h0(T,k.mode,P),E.return=k,k=E),l(k)):n(k,E)}return N}var Oc=ES(!0),kS=ES(!1),ip={},hu=Wa(ip),qd=Wa(ip),Kd=Wa(ip);function Ul(e){if(e===ip)throw Error(ke(174));return e}function b1(e,t){switch(Cn(Kd,t),Cn(qd,e),Cn(hu,ip),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:B0(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=B0(t,e)}In(hu),Cn(hu,t)}function Rc(){In(hu),In(qd),In(Kd)}function TS(e){Ul(Kd.current);var t=Ul(hu.current),n=B0(t,e.type);t!==n&&(Cn(qd,e),Cn(hu,n))}function S1(e){qd.current===e&&(In(hu),In(qd))}var Bn=Wa(0);function Vg(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 l0=[];function E1(){for(var e=0;en?n:4,e(!0);var r=s0.transition;s0.transition={};try{e(!1),t()}finally{hn=n,s0.transition=r}}function BS(){return vo().memoizedState}function g3(e,t,n){var r=Fa(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},HS(e))WS(t,n);else if(n=wS(e,t,n,r),n!==null){var i=si();Wo(n,e,r,i),GS(n,t,r)}}function v3(e,t,n){var r=Fa(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(HS(e))WS(t,i);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var l=t.lastRenderedState,f=u(l,n);if(i.hasEagerState=!0,i.eagerState=f,Go(f,l)){var d=t.interleaved;d===null?(i.next=i,w1(t)):(i.next=d.next,d.next=i),t.interleaved=i;return}}catch{}finally{}n=wS(e,t,i,r),n!==null&&(i=si(),Wo(n,e,r,i),GS(n,t,r))}}function HS(e){var t=e.alternate;return e===Hn||t!==null&&t===Hn}function WS(e,t){Od=Yg=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function GS(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,u1(e,n)}}var Qg={readContext:go,useCallback:Kr,useContext:Kr,useEffect:Kr,useImperativeHandle:Kr,useInsertionEffect:Kr,useLayoutEffect:Kr,useMemo:Kr,useReducer:Kr,useRef:Kr,useState:Kr,useDebugValue:Kr,useDeferredValue:Kr,useTransition:Kr,useMutableSource:Kr,useSyncExternalStore:Kr,useId:Kr,unstable_isNewReconciler:!1},m3={readContext:go,useCallback:function(e,t){return su().memoizedState=[e,t===void 0?null:t],e},useContext:go,useEffect:Tw,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,kg(4194308,4,DS.bind(null,t,e),n)},useLayoutEffect:function(e,t){return kg(4194308,4,e,t)},useInsertionEffect:function(e,t){return kg(4,2,e,t)},useMemo:function(e,t){var n=su();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=su();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=g3.bind(null,Hn,e),[r.memoizedState,e]},useRef:function(e){var t=su();return e={current:e},t.memoizedState=e},useState:kw,useDebugValue:O1,useDeferredValue:function(e){return su().memoizedState=e},useTransition:function(){var e=kw(!1),t=e[0];return e=h3.bind(null,e[1]),su().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Hn,i=su();if(Dn){if(n===void 0)throw Error(ke(407));n=n()}else{if(n=t(),kr===null)throw Error(ke(349));Yl&30||OS(r,t,n)}i.memoizedState=n;var u={value:n,getSnapshot:t};return i.queue=u,Tw(PS.bind(null,r,u,e),[e]),r.flags|=2048,Qd(9,RS.bind(null,r,u,n,t),void 0,null),n},useId:function(){var e=su(),t=kr.identifierPrefix;if(Dn){var n=zu,r=Fu;n=(r&~(1<<32-Ho(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Vd++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[cu]=t,e[Gd]=r,eE(e,t,!1,!1),t.stateNode=e;e:{switch(l=W0(n,r),n){case"dialog":Rn("cancel",e),Rn("close",e),i=r;break;case"iframe":case"object":case"embed":Rn("load",e),i=r;break;case"video":case"audio":for(i=0;iIc&&(t.flags|=128,r=!0,sd(u,!1),t.lanes=4194304)}else{if(!r)if(e=Vg(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),sd(u,!0),u.tail===null&&u.tailMode==="hidden"&&!l.alternate&&!Dn)return Vr(t),null}else 2*ar()-u.renderingStartTime>Ic&&n!==1073741824&&(t.flags|=128,r=!0,sd(u,!1),t.lanes=4194304);u.isBackwards?(l.sibling=t.child,t.child=l):(n=u.last,n!==null?n.sibling=l:t.child=l,u.last=l)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=ar(),t.sibling=null,n=Bn.current,Cn(Bn,r?n&1|2:n&1),t):(Vr(t),null);case 22:case 23:return N1(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Wi&1073741824&&(Vr(t),t.subtreeFlags&6&&(t.flags|=8192)):Vr(t),null;case 24:return null;case 25:return null}throw Error(ke(156,t.tag))}function k3(e,t){switch(g1(t),t.tag){case 1:return Ci(t.type)&&Ug(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Rc(),In(Ti),In(Xr),E1(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return S1(t),null;case 13:if(In(Bn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ke(340));Ac()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return In(Bn),null;case 4:return Rc(),null;case 10:return _1(t.type._context),null;case 22:case 23:return N1(),null;case 24:return null;default:return null}}var og=!1,Yr=!1,T3=typeof WeakSet=="function"?WeakSet:Set,We=null;function yc(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 my(e,t,n){try{n()}catch(r){er(e,t,r)}}var Nw=!1;function C3(e,t){if(ey=Dg,e=uS(),p1(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 i=r.anchorOffset,u=r.focusNode;r=r.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var l=0,f=-1,d=-1,h=0,m=0,v=e,_=null;t:for(;;){for(var x;v!==n||i!==0&&v.nodeType!==3||(f=l+i),v!==u||r!==0&&v.nodeType!==3||(d=l+r),v.nodeType===3&&(l+=v.nodeValue.length),(x=v.firstChild)!==null;)_=v,v=x;for(;;){if(v===e)break t;if(_===n&&++h===i&&(f=l),_===u&&++m===r&&(d=l),(x=v.nextSibling)!==null)break;v=_,_=v.parentNode}v=x}n=f===-1||d===-1?null:{start:f,end:d}}else n=null}n=n||{start:0,end:0}}else n=null;for(ty={focusedElem:e,selectionRange:n},Dg=!1,We=t;We!==null;)if(t=We,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,We=e;else for(;We!==null;){t=We;try{var A=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(A!==null){var R=A.memoizedProps,N=A.memoizedState,k=t.stateNode,E=k.getSnapshotBeforeUpdate(t.elementType===t.type?R:zo(t.type,R),N);k.__reactInternalSnapshotBeforeUpdate=E}break;case 3:var T=t.stateNode.containerInfo;T.nodeType===1?T.textContent="":T.nodeType===9&&T.documentElement&&T.removeChild(T.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ke(163))}}catch(P){er(t,t.return,P)}if(e=t.sibling,e!==null){e.return=t.return,We=e;break}We=t.return}return A=Nw,Nw=!1,A}function Rd(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var u=i.destroy;i.destroy=void 0,u!==void 0&&my(t,n,u)}i=i.next}while(i!==r)}}function Cv(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 yy(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 rE(e){var t=e.alternate;t!==null&&(e.alternate=null,rE(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[cu],delete t[Gd],delete t[iy],delete t[s3],delete t[c3])),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 iE(e){return e.tag===5||e.tag===3||e.tag===4}function $w(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||iE(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 _y(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=zg));else if(r!==4&&(e=e.child,e!==null))for(_y(e,t,n),e=e.sibling;e!==null;)_y(e,t,n),e=e.sibling}function wy(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(wy(e,t,n),e=e.sibling;e!==null;)wy(e,t,n),e=e.sibling}var jr=null,Uo=!1;function xa(e,t,n){for(n=n.child;n!==null;)oE(e,t,n),n=n.sibling}function oE(e,t,n){if(pu&&typeof pu.onCommitFiberUnmount=="function")try{pu.onCommitFiberUnmount(_v,n)}catch{}switch(n.tag){case 5:Yr||yc(n,t);case 6:var r=jr,i=Uo;jr=null,xa(e,t,n),jr=r,Uo=i,jr!==null&&(Uo?(e=jr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):jr.removeChild(n.stateNode));break;case 18:jr!==null&&(Uo?(e=jr,n=n.stateNode,e.nodeType===8?u0(e.parentNode,n):e.nodeType===1&&u0(e,n),zd(e)):u0(jr,n.stateNode));break;case 4:r=jr,i=Uo,jr=n.stateNode.containerInfo,Uo=!0,xa(e,t,n),jr=r,Uo=i;break;case 0:case 11:case 14:case 15:if(!Yr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var u=i,l=u.destroy;u=u.tag,l!==void 0&&(u&2||u&4)&&my(n,t,l),i=i.next}while(i!==r)}xa(e,t,n);break;case 1:if(!Yr&&(yc(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(f){er(n,t,f)}xa(e,t,n);break;case 21:xa(e,t,n);break;case 22:n.mode&1?(Yr=(r=Yr)||n.memoizedState!==null,xa(e,t,n),Yr=r):xa(e,t,n);break;default:xa(e,t,n)}}function Dw(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new T3),t.forEach(function(r){var i=$3.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Mo(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=l),r&=~u}if(r=i,r=ar()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*O3(r/1960))-r,10e?16:e,Pa===null)var r=!1;else{if(e=Pa,Pa=null,Jg=0,en&6)throw Error(ke(331));var i=en;for(en|=4,We=e.current;We!==null;){var u=We,l=u.child;if(We.flags&16){var f=u.deletions;if(f!==null){for(var d=0;dar()-j1?Wl(e,0):I1|=n),Ai(e,t)}function pE(e,t){t===0&&(e.mode&1?(t=Qh,Qh<<=1,!(Qh&130023424)&&(Qh=4194304)):t=1);var n=si();e=qu(e,t),e!==null&&(tp(e,t,n),Ai(e,n))}function N3(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),pE(e,n)}function $3(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ke(314))}r!==null&&r.delete(t),pE(e,n)}var hE;hE=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ti.current)ki=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ki=!1,S3(e,t,n);ki=!!(e.flags&131072)}else ki=!1,Dn&&t.flags&1048576&&mS(t,Wg,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Tg(e,t),e=t.pendingProps;var i=Cc(t,Xr.current);Ec(t,n),i=T1(null,t,r,e,i,n);var u=C1();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ci(r)?(u=!0,Bg(t)):u=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,x1(t),i.updater=kv,t.stateNode=i,i._reactInternals=t,cy(t,r,e,n),t=py(null,t,r,!0,u,n)):(t.tag=0,Dn&&u&&h1(t),li(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Tg(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=M3(r),e=zo(r,e),i){case 0:t=dy(null,t,r,e,n);break e;case 1:t=Iw(null,t,r,e,n);break e;case 11:t=Rw(null,t,r,e,n);break e;case 14:t=Pw(null,t,r,zo(r.type,e),n);break e}throw Error(ke(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:zo(r,i),dy(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:zo(r,i),Iw(e,t,r,i,n);case 3:e:{if(ZS(t),e===null)throw Error(ke(387));r=t.pendingProps,u=t.memoizedState,i=u.element,xS(e,t),Kg(t,r,null,n);var l=t.memoizedState;if(r=l.element,u.isDehydrated)if(u={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){i=Pc(Error(ke(423)),t),t=jw(e,t,r,n,i);break e}else if(r!==i){i=Pc(Error(ke(424)),t),t=jw(e,t,r,n,i);break e}else for(Ki=$a(t.stateNode.containerInfo.firstChild),Vi=t,Dn=!0,Bo=null,n=kS(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ac(),r===i){t=Ku(e,t,n);break e}li(e,t,r,n)}t=t.child}return t;case 5:return TS(t),e===null&&ay(t),r=t.type,i=t.pendingProps,u=e!==null?e.memoizedProps:null,l=i.children,ny(r,i)?l=null:u!==null&&ny(r,u)&&(t.flags|=32),QS(e,t),li(e,t,l,n),t.child;case 6:return e===null&&ay(t),null;case 13:return XS(e,t,n);case 4:return b1(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Oc(t,null,r,n):li(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:zo(r,i),Rw(e,t,r,i,n);case 7:return li(e,t,t.pendingProps,n),t.child;case 8:return li(e,t,t.pendingProps.children,n),t.child;case 12:return li(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,u=t.memoizedProps,l=i.value,Cn(Gg,r._currentValue),r._currentValue=l,u!==null)if(Go(u.value,l)){if(u.children===i.children&&!Ti.current){t=Ku(e,t,n);break e}}else for(u=t.child,u!==null&&(u.return=t);u!==null;){var f=u.dependencies;if(f!==null){l=u.child;for(var d=f.firstContext;d!==null;){if(d.context===r){if(u.tag===1){d=Uu(-1,n&-n),d.tag=2;var h=u.updateQueue;if(h!==null){h=h.shared;var m=h.pending;m===null?d.next=d:(d.next=m.next,m.next=d),h.pending=d}}u.lanes|=n,d=u.alternate,d!==null&&(d.lanes|=n),ly(u.return,n,t),f.lanes|=n;break}d=d.next}}else if(u.tag===10)l=u.type===t.type?null:u.child;else if(u.tag===18){if(l=u.return,l===null)throw Error(ke(341));l.lanes|=n,f=l.alternate,f!==null&&(f.lanes|=n),ly(l,n,t),l=u.sibling}else l=u.child;if(l!==null)l.return=u;else for(l=u;l!==null;){if(l===t){l=null;break}if(u=l.sibling,u!==null){u.return=l.return,l=u;break}l=l.return}u=l}li(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ec(t,n),i=go(i),r=r(i),t.flags|=1,li(e,t,r,n),t.child;case 14:return r=t.type,i=zo(r,t.pendingProps),i=zo(r.type,i),Pw(e,t,r,i,n);case 15:return VS(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:zo(r,i),Tg(e,t),t.tag=1,Ci(r)?(e=!0,Bg(t)):e=!1,Ec(t,n),SS(t,r,i),cy(t,r,i,n),py(null,t,r,!0,e,n);case 19:return JS(e,t,n);case 22:return YS(e,t,n)}throw Error(ke(156,t.tag))};function gE(e,t){return Ub(e,t)}function D3(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 po(e,t,n,r){return new D3(e,t,n,r)}function D1(e){return e=e.prototype,!(!e||!e.isReactComponent)}function M3(e){if(typeof e=="function")return D1(e)?1:0;if(e!=null){if(e=e.$$typeof,e===n1)return 11;if(e===r1)return 14}return 2}function za(e,t){var n=e.alternate;return n===null?(n=po(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 Og(e,t,n,r,i,u){var l=2;if(r=e,typeof e=="function")D1(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case sc:return Gl(n.children,i,u,t);case t1:l=8,i|=8;break;case L0:return e=po(12,n,t,i|2),e.elementType=L0,e.lanes=u,e;case N0:return e=po(13,n,t,i),e.elementType=N0,e.lanes=u,e;case $0:return e=po(19,n,t,i),e.elementType=$0,e.lanes=u,e;case Eb:return Ov(n,i,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case bb:l=10;break e;case Sb:l=9;break e;case n1:l=11;break e;case r1:l=14;break e;case ka:l=16,r=null;break e}throw Error(ke(130,e==null?e:typeof e,""))}return t=po(l,n,t,i),t.elementType=e,t.type=r,t.lanes=u,t}function Gl(e,t,n,r){return e=po(7,e,r,t),e.lanes=n,e}function Ov(e,t,n,r){return e=po(22,e,r,t),e.elementType=Eb,e.lanes=n,e.stateNode={isHidden:!1},e}function h0(e,t,n){return e=po(6,e,null,t),e.lanes=n,e}function g0(e,t,n){return t=po(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function F3(e,t,n,r,i){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=Ym(0),this.expirationTimes=Ym(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ym(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function M1(e,t,n,r,i,u,l,f,d){return e=new F3(e,t,n,f,d),t===1?(t=1,u===!0&&(t|=8)):t=0,u=po(3,null,null,t),e.current=u,u.stateNode=e,u.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},x1(u),e}function z3(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(_E)}catch(e){console.error(e)}}_E(),mb.exports=Qi;var wE=mb.exports,Gw=wE;I0.createRoot=Gw.createRoot,I0.hydrateRoot=Gw.hydrateRoot;function G3({title:e,titleId:t,...n},r){return M.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?M.createElement("title",{id:t},e):null,M.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))}const q3=M.forwardRef(G3),K3=q3;function V3({title:e,titleId:t,...n},r){return M.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?M.createElement("title",{id:t},e):null,M.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12.75l6 6 9-13.5"}))}const Y3=M.forwardRef(V3),qw=Y3;function Q3({title:e,titleId:t,...n},r){return M.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?M.createElement("title",{id:t},e):null,M.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"}))}const Z3=M.forwardRef(Q3),X3=Z3;function J3({title:e,titleId:t,...n},r){return M.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?M.createElement("title",{id:t},e):null,M.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 12a.75.75 0 11-1.5 0 .75.75 0 011.5 0zM12.75 12a.75.75 0 11-1.5 0 .75.75 0 011.5 0zM18.75 12a.75.75 0 11-1.5 0 .75.75 0 011.5 0z"}))}const eR=M.forwardRef(J3),Kw=eR;function tR({title:e,titleId:t,...n},r){return M.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?M.createElement("title",{id:t},e):null,M.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.5 15h2.25m8.024-9.75c.011.05.028.1.052.148.591 1.2.924 2.55.924 3.977a8.96 8.96 0 01-.999 4.125m.023-8.25c-.076-.365.183-.75.575-.75h.908c.889 0 1.713.518 1.972 1.368.339 1.11.521 2.287.521 3.507 0 1.553-.295 3.036-.831 4.398C20.613 14.547 19.833 15 19 15h-1.053c-.472 0-.745-.556-.5-.96a8.95 8.95 0 00.303-.54m.023-8.25H16.48a4.5 4.5 0 01-1.423-.23l-3.114-1.04a4.5 4.5 0 00-1.423-.23H6.504c-.618 0-1.217.247-1.605.729A11.95 11.95 0 002.25 12c0 .434.023.863.068 1.285C2.427 14.306 3.346 15 4.372 15h3.126c.618 0 .991.724.725 1.282A7.471 7.471 0 007.5 19.5a2.25 2.25 0 002.25 2.25.75.75 0 00.75-.75v-.633c0-.573.11-1.14.322-1.672.304-.76.93-1.33 1.653-1.715a9.04 9.04 0 002.86-2.4c.498-.634 1.226-1.08 2.032-1.08h.384"}))}const nR=M.forwardRef(tR),rR=nR;function iR({title:e,titleId:t,...n},r){return M.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?M.createElement("title",{id:t},e):null,M.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.633 10.5c.806 0 1.533-.446 2.031-1.08a9.041 9.041 0 012.861-2.4c.723-.384 1.35-.956 1.653-1.715a4.498 4.498 0 00.322-1.672V3a.75.75 0 01.75-.75A2.25 2.25 0 0116.5 4.5c0 1.152-.26 2.243-.723 3.218-.266.558.107 1.282.725 1.282h3.126c1.026 0 1.945.694 2.054 1.715.045.422.068.85.068 1.285a11.95 11.95 0 01-2.649 7.521c-.388.482-.987.729-1.605.729H13.48c-.483 0-.964-.078-1.423-.23l-3.114-1.04a4.501 4.501 0 00-1.423-.23H5.904M14.25 9h2.25M5.904 18.75c.083.205.173.405.27.602.197.4-.078.898-.523.898h-.908c-.889 0-1.713-.518-1.972-1.368a12 12 0 01-.521-3.507c0-1.553.295-3.036.831-4.398C3.387 10.203 4.167 9.75 5 9.75h1.053c.472 0 .745.556.5.96a8.958 8.958 0 00-1.302 4.665c0 1.194.232 2.333.654 3.375z"}))}const oR=M.forwardRef(iR),uR=oR;function aR({title:e,titleId:t,...n},r){return M.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?M.createElement("title",{id:t},e):null,M.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"}))}const lR=M.forwardRef(aR),sR=lR;function cR({title:e,titleId:t,...n},r){return M.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?M.createElement("title",{id:t},e):null,M.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))}const fR=M.forwardRef(cR),xE=fR;function dR({title:e,titleId:t,...n},r){return M.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?M.createElement("title",{id:t},e):null,M.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.217 10.907a2.25 2.25 0 100 2.186m0-2.186c.18.324.283.696.283 1.093s-.103.77-.283 1.093m0-2.186l9.566-5.314m-9.566 7.5l9.566 5.314m0 0a2.25 2.25 0 103.935 2.186 2.25 2.25 0 00-3.935-2.186zm0-12.814a2.25 2.25 0 103.933-2.185 2.25 2.25 0 00-3.933 2.185z"}))}const pR=M.forwardRef(dR),hR=pR;function gR({title:e,titleId:t,...n},r){return M.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?M.createElement("title",{id:t},e):null,M.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.75 9.75l4.5 4.5m0-4.5l-4.5 4.5M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))}const vR=M.forwardRef(gR),mR=vR;function yR({title:e,titleId:t,...n},r){return M.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?M.createElement("title",{id:t},e):null,M.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))}const _R=M.forwardRef(yR),wR=_R;async function Vw(e){const{messages:t}=await fetch(`/threads/${e}/messages`,{headers:{Accept:"application/json"}}).then(n=>n.json());return t}function xR(e,t){const[n,r]=M.useState(null);return M.useEffect(()=>{async function i(){e&&r(await Vw(e))}return i(),()=>{r(null)}},[e]),M.useEffect(()=>{async function i(){e&&r(await Vw(e))}(t==null?void 0:t.status)!=="inflight"&&i()},[t==null?void 0:t.status]),t!=null&&t.merge?[...n??[],...t.messages??[]]:(t==null?void 0:t.messages)??n}function bR({title:e,titleId:t,...n},r){return M.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?M.createElement("title",{id:t},e):null,M.createElement("path",{fillRule:"evenodd",d:"M3.43 2.524A41.29 41.29 0 0110 2c2.236 0 4.43.18 6.57.524 1.437.231 2.43 1.49 2.43 2.902v5.148c0 1.413-.993 2.67-2.43 2.902a41.202 41.202 0 01-5.183.501.78.78 0 00-.528.224l-3.579 3.58A.75.75 0 016 17.25v-3.443a41.033 41.033 0 01-2.57-.33C1.993 13.244 1 11.986 1 10.573V5.426c0-1.413.993-2.67 2.43-2.902z",clipRule:"evenodd"}))}const SR=M.forwardRef(bR),ER=SR;function kR({title:e,titleId:t,...n},r){return M.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?M.createElement("title",{id:t},e):null,M.createElement("path",{d:"M3.105 2.289a.75.75 0 00-.826.95l1.414 4.925A1.5 1.5 0 005.135 9.25h6.115a.75.75 0 010 1.5H5.135a1.5 1.5 0 00-1.442 1.086l-1.414 4.926a.75.75 0 00.826.95 28.896 28.896 0 0015.293-7.154.75.75 0 000-1.115A28.897 28.897 0 003.105 2.289z"}))}const TR=M.forwardRef(kR),CR=TR;function bE(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;tf(u)))==null?void 0:l.classGroupId}const Yw=/^\[(.+)\]$/;function RR(e){if(Yw.test(e)){const t=Yw.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function PR(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return jR(Object.entries(e.classGroups),n).forEach(([u,l])=>{ky(l,r,u,t)}),r}function ky(e,t,n,r){e.forEach(i=>{if(typeof i=="string"){const u=i===""?t:Qw(t,i);u.classGroupId=n;return}if(typeof i=="function"){if(IR(i)){ky(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([u,l])=>{ky(l,Qw(t,u),n,r)})})}function Qw(e,t){let n=e;return t.split(B1).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function IR(e){return e.isThemeGetter}function jR(e,t){return t?e.map(([n,r])=>{const i=r.map(u=>typeof u=="string"?t+u:typeof u=="object"?Object.fromEntries(Object.entries(u).map(([l,f])=>[t+l,f])):u);return[n,i]}):e}function LR(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function i(u,l){n.set(u,l),t++,t>e&&(t=0,r=n,n=new Map)}return{get(u){let l=n.get(u);if(l!==void 0)return l;if((l=r.get(u))!==void 0)return i(u,l),l},set(u,l){n.has(u)?n.set(u,l):i(u,l)}}}const EE="!";function NR(e){const t=e.separator,n=t.length===1,r=t[0],i=t.length;return function(l){const f=[];let d=0,h=0,m;for(let R=0;Rh?m-h:void 0;return{modifiers:f,hasImportantModifier:_,baseClassName:x,maybePostfixModifierPosition:A}}}function $R(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t}function DR(e){return{cache:LR(e.cacheSize),splitModifiers:NR(e),...OR(e)}}const MR=/\s+/;function FR(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,u=new Set;return e.trim().split(MR).map(l=>{const{modifiers:f,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:m}=n(l);let v=r(m?h.substring(0,m):h),_=!!m;if(!v){if(!m)return{isTailwindClass:!1,originalClassName:l};if(v=r(h),!v)return{isTailwindClass:!1,originalClassName:l};_=!1}const x=$R(f).join(":");return{isTailwindClass:!0,modifierId:d?x+EE:x,classGroupId:v,originalClassName:l,hasPostfixModifier:_}}).reverse().filter(l=>{if(!l.isTailwindClass)return!0;const{modifierId:f,classGroupId:d,hasPostfixModifier:h}=l,m=f+d;return u.has(m)?!1:(u.add(m),i(d,h).forEach(v=>u.add(f+v)),!0)}).reverse().map(l=>l.originalClassName).join(" ")}function zR(){let e=0,t,n,r="";for(;ev(m),e());return n=DR(h),r=n.cache.get,i=n.cache.set,u=f,f(d)}function f(d){const h=r(d);if(h)return h;const m=FR(d,n);return i(d,m),m}return function(){return u(zR.apply(null,arguments))}}function On(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const TE=/^\[(?:([a-z-]+):)?(.+)\]$/i,BR=/^\d+\/\d+$/,HR=new Set(["px","full","screen"]),WR=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,GR=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,qR=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,KR=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Fo(e){return Bl(e)||HR.has(e)||BR.test(e)}function ba(e){return $c(e,"length",tP)}function Bl(e){return!!e&&!Number.isNaN(Number(e))}function lg(e){return $c(e,"number",Bl)}function fd(e){return!!e&&Number.isInteger(Number(e))}function VR(e){return e.endsWith("%")&&Bl(e.slice(0,-1))}function Pt(e){return TE.test(e)}function Sa(e){return WR.test(e)}const YR=new Set(["length","size","percentage"]);function QR(e){return $c(e,YR,CE)}function ZR(e){return $c(e,"position",CE)}const XR=new Set(["image","url"]);function JR(e){return $c(e,XR,rP)}function eP(e){return $c(e,"",nP)}function dd(){return!0}function $c(e,t,n){const r=TE.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function tP(e){return GR.test(e)}function CE(){return!1}function nP(e){return qR.test(e)}function rP(e){return KR.test(e)}function iP(){const e=On("colors"),t=On("spacing"),n=On("blur"),r=On("brightness"),i=On("borderColor"),u=On("borderRadius"),l=On("borderSpacing"),f=On("borderWidth"),d=On("contrast"),h=On("grayscale"),m=On("hueRotate"),v=On("invert"),_=On("gap"),x=On("gradientColorStops"),A=On("gradientColorStopPositions"),R=On("inset"),N=On("margin"),k=On("opacity"),E=On("padding"),T=On("saturate"),P=On("scale"),L=On("sepia"),U=On("skew"),G=On("space"),Z=On("translate"),Ee=()=>["auto","contain","none"],K=()=>["auto","hidden","clip","visible","scroll"],ae=()=>["auto",Pt,t],ne=()=>[Pt,t],Ie=()=>["",Fo,ba],Re=()=>["auto",Bl,Pt],Fe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],lt=()=>["solid","dashed","dotted","double","none"],Je=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],le=()=>["start","end","center","between","around","evenly","stretch"],me=()=>["","0",Pt],Le=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>[Bl,lg],re=()=>[Bl,Pt];return{cacheSize:500,separator:":",theme:{colors:[dd],spacing:[Fo,ba],blur:["none","",Sa,Pt],brightness:B(),borderColor:[e],borderRadius:["none","","full",Sa,Pt],borderSpacing:ne(),borderWidth:Ie(),contrast:B(),grayscale:me(),hueRotate:re(),invert:me(),gap:ne(),gradientColorStops:[e],gradientColorStopPositions:[VR,ba],inset:ae(),margin:ae(),opacity:B(),padding:ne(),saturate:B(),scale:B(),sepia:me(),skew:re(),space:ne(),translate:ne()},classGroups:{aspect:[{aspect:["auto","square","video",Pt]}],container:["container"],columns:[{columns:[Sa]}],"break-after":[{"break-after":Le()}],"break-before":[{"break-before":Le()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Fe(),Pt]}],overflow:[{overflow:K()}],"overflow-x":[{"overflow-x":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:Ee()}],"overscroll-x":[{"overscroll-x":Ee()}],"overscroll-y":[{"overscroll-y":Ee()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[R]}],"inset-x":[{"inset-x":[R]}],"inset-y":[{"inset-y":[R]}],start:[{start:[R]}],end:[{end:[R]}],top:[{top:[R]}],right:[{right:[R]}],bottom:[{bottom:[R]}],left:[{left:[R]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",fd,Pt]}],basis:[{basis:ae()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Pt]}],grow:[{grow:me()}],shrink:[{shrink:me()}],order:[{order:["first","last","none",fd,Pt]}],"grid-cols":[{"grid-cols":[dd]}],"col-start-end":[{col:["auto",{span:["full",fd,Pt]},Pt]}],"col-start":[{"col-start":Re()}],"col-end":[{"col-end":Re()}],"grid-rows":[{"grid-rows":[dd]}],"row-start-end":[{row:["auto",{span:[fd,Pt]},Pt]}],"row-start":[{"row-start":Re()}],"row-end":[{"row-end":Re()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Pt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Pt]}],gap:[{gap:[_]}],"gap-x":[{"gap-x":[_]}],"gap-y":[{"gap-y":[_]}],"justify-content":[{justify:["normal",...le()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...le(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...le(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[E]}],px:[{px:[E]}],py:[{py:[E]}],ps:[{ps:[E]}],pe:[{pe:[E]}],pt:[{pt:[E]}],pr:[{pr:[E]}],pb:[{pb:[E]}],pl:[{pl:[E]}],m:[{m:[N]}],mx:[{mx:[N]}],my:[{my:[N]}],ms:[{ms:[N]}],me:[{me:[N]}],mt:[{mt:[N]}],mr:[{mr:[N]}],mb:[{mb:[N]}],ml:[{ml:[N]}],"space-x":[{"space-x":[G]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[G]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",Pt,t]}],"min-w":[{"min-w":["min","max","fit",Pt,Fo]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[Sa]},Sa,Pt]}],h:[{h:[Pt,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",Fo,Pt]}],"max-h":[{"max-h":[Pt,t,"min","max","fit"]}],"font-size":[{text:["base",Sa,ba]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",lg]}],"font-family":[{font:[dd]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Pt]}],"line-clamp":[{"line-clamp":["none",Bl,lg]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Fo,Pt]}],"list-image":[{"list-image":["none",Pt]}],"list-style-type":[{list:["none","disc","decimal",Pt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[k]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[k]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...lt(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Fo,ba]}],"underline-offset":[{"underline-offset":["auto",Fo,Pt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:ne()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Pt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Pt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[k]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Fe(),ZR]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",QR]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},JR]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[A]}],"gradient-via-pos":[{via:[A]}],"gradient-to-pos":[{to:[A]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],rounded:[{rounded:[u]}],"rounded-s":[{"rounded-s":[u]}],"rounded-e":[{"rounded-e":[u]}],"rounded-t":[{"rounded-t":[u]}],"rounded-r":[{"rounded-r":[u]}],"rounded-b":[{"rounded-b":[u]}],"rounded-l":[{"rounded-l":[u]}],"rounded-ss":[{"rounded-ss":[u]}],"rounded-se":[{"rounded-se":[u]}],"rounded-ee":[{"rounded-ee":[u]}],"rounded-es":[{"rounded-es":[u]}],"rounded-tl":[{"rounded-tl":[u]}],"rounded-tr":[{"rounded-tr":[u]}],"rounded-br":[{"rounded-br":[u]}],"rounded-bl":[{"rounded-bl":[u]}],"border-w":[{border:[f]}],"border-w-x":[{"border-x":[f]}],"border-w-y":[{"border-y":[f]}],"border-w-s":[{"border-s":[f]}],"border-w-e":[{"border-e":[f]}],"border-w-t":[{"border-t":[f]}],"border-w-r":[{"border-r":[f]}],"border-w-b":[{"border-b":[f]}],"border-w-l":[{"border-l":[f]}],"border-opacity":[{"border-opacity":[k]}],"border-style":[{border:[...lt(),"hidden"]}],"divide-x":[{"divide-x":[f]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[f]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[k]}],"divide-style":[{divide:lt()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...lt()]}],"outline-offset":[{"outline-offset":[Fo,Pt]}],"outline-w":[{outline:[Fo,ba]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Ie()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[k]}],"ring-offset-w":[{"ring-offset":[Fo,ba]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Sa,eP]}],"shadow-color":[{shadow:[dd]}],opacity:[{opacity:[k]}],"mix-blend":[{"mix-blend":Je()}],"bg-blend":[{"bg-blend":Je()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",Sa,Pt]}],grayscale:[{grayscale:[h]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[v]}],saturate:[{saturate:[T]}],sepia:[{sepia:[L]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[h]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[v]}],"backdrop-opacity":[{"backdrop-opacity":[k]}],"backdrop-saturate":[{"backdrop-saturate":[T]}],"backdrop-sepia":[{"backdrop-sepia":[L]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Pt]}],duration:[{duration:re()}],ease:[{ease:["linear","in","out","in-out",Pt]}],delay:[{delay:re()}],animate:[{animate:["none","spin","ping","pulse","bounce",Pt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[P]}],"scale-x":[{"scale-x":[P]}],"scale-y":[{"scale-y":[P]}],rotate:[{rotate:[fd,Pt]}],"translate-x":[{"translate-x":[Z]}],"translate-y":[{"translate-y":[Z]}],"skew-x":[{"skew-x":[U]}],"skew-y":[{"skew-y":[U]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Pt]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Pt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ne()}],"scroll-mx":[{"scroll-mx":ne()}],"scroll-my":[{"scroll-my":ne()}],"scroll-ms":[{"scroll-ms":ne()}],"scroll-me":[{"scroll-me":ne()}],"scroll-mt":[{"scroll-mt":ne()}],"scroll-mr":[{"scroll-mr":ne()}],"scroll-mb":[{"scroll-mb":ne()}],"scroll-ml":[{"scroll-ml":ne()}],"scroll-p":[{"scroll-p":ne()}],"scroll-px":[{"scroll-px":ne()}],"scroll-py":[{"scroll-py":ne()}],"scroll-ps":[{"scroll-ps":ne()}],"scroll-pe":[{"scroll-pe":ne()}],"scroll-pt":[{"scroll-pt":ne()}],"scroll-pr":[{"scroll-pr":ne()}],"scroll-pb":[{"scroll-pb":ne()}],"scroll-pl":[{"scroll-pl":ne()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Pt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Fo,ba,lg]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const oP=UR(iP);function Qr(...e){return oP(AR(e))}function AE(e){const[t,n]=M.useState(!1),r=e.disabled||t;return Y.jsxs("form",{className:Qr("mt-2 flex rounded-md shadow-sm",r&&"opacity-50 cursor-not-allowed"),onSubmit:async i=>{if(i.preventDefault(),r)return;const u=i.target,l=u.message.value;l&&(n(!0),await e.onSubmit(l),n(!1),u.message.value="")},children:[Y.jsxs("div",{className:"relative flex flex-grow items-stretch focus-within:z-10",children:[Y.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",children:Y.jsx(ER,{className:"h-5 w-5 text-gray-400","aria-hidden":"true"})}),Y.jsx("input",{type:"text",name:"messsage",id:"message",autoFocus:!0,autoComplete:"off",className:"block w-full rounded-none rounded-l-md border-0 py-1.5 pl-10 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",placeholder:"Send a message",readOnly:r})]}),Y.jsxs("button",{type:"submit",disabled:r,className:"relative -ml-px inline-flex items-center gap-x-1.5 rounded-r-md px-3 py-2 text-sm font-semibold text-gray-900 ring-1 ring-inset ring-gray-300 hover:bg-gray-50 bg-white",children:[Y.jsx(CR,{className:"-ml-0.5 h-5 w-5 text-gray-400","aria-hidden":"true"}),t?"Sending...":"Send"]})]})}function OE(e){return typeof e=="object"?JSON.stringify(e,null,2):e}function H1(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let ts=H1();function RE(e){ts=e}const PE=/[&<>"']/,uP=new RegExp(PE.source,"g"),IE=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,aP=new RegExp(IE.source,"g"),lP={"&":"&","<":"<",">":">",'"':""","'":"'"},Zw=e=>lP[e];function Gi(e,t){if(t){if(PE.test(e))return e.replace(uP,Zw)}else if(IE.test(e))return e.replace(aP,Zw);return e}const sP=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function cP(e){return e.replace(sP,(t,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}const fP=/(^|[^\[])\^/g;function an(e,t){e=typeof e=="string"?e:e.source,t=t||"";const n={replace:(r,i)=>(i=typeof i=="object"&&"source"in i?i.source:i,i=i.replace(fP,"$1"),e=e.replace(r,i),n),getRegex:()=>new RegExp(e,t)};return n}function Xw(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const nv={exec:()=>null};function Jw(e,t){const n=e.replace(/\|/g,(u,l,f)=>{let d=!1,h=l;for(;--h>=0&&f[h]==="\\";)d=!d;return d?"|":" |"}),r=n.split(/ \|/);let i=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length{const u=i.match(/^\s+/);if(u===null)return i;const[l]=u;return l.length>=r.length?i.slice(r.length):i}).join(` +`)}class rv{constructor(t){bn(this,"options");bn(this,"rules");bn(this,"lexer");this.options=t||ts}space(t){const n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){const n=this.rules.block.code.exec(t);if(n){const r=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:sg(r,` +`)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const r=n[0],i=pP(r,n[3]||"");return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline._escapes,"$1"):n[2],text:i}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let r=n[2].trim();if(/#$/.test(r)){const i=sg(r,"#");(this.options.pedantic||!i||/ $/.test(i))&&(r=i.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(t){const n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:n[0]}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){const r=sg(n[0].replace(/^ *>[ \t]?/gm,""),` +`),i=this.lexer.state.top;this.lexer.state.top=!0;const u=this.lexer.blockTokens(r);return this.lexer.state.top=i,{type:"blockquote",raw:n[0],tokens:u,text:r}}}list(t){let n=this.rules.block.list.exec(t);if(n){let r=n[1].trim();const i=r.length>1,u={type:"list",raw:"",ordered:i,start:i?+r.slice(0,-1):"",loose:!1,items:[]};r=i?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=i?r:"[*+-]");const l=new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`);let f="",d="",h=!1;for(;t;){let m=!1;if(!(n=l.exec(t))||this.rules.block.hr.test(t))break;f=n[0],t=t.substring(f.length);let v=n[2].split(` +`,1)[0].replace(/^\t+/,k=>" ".repeat(3*k.length)),_=t.split(` +`,1)[0],x=0;this.options.pedantic?(x=2,d=v.trimStart()):(x=n[2].search(/[^ ]/),x=x>4?1:x,d=v.slice(x),x+=n[1].length);let A=!1;if(!v&&/^ *$/.test(_)&&(f+=_+` +`,t=t.substring(_.length+1),m=!0),!m){const k=new RegExp(`^ {0,${Math.min(3,x-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),E=new RegExp(`^ {0,${Math.min(3,x-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),T=new RegExp(`^ {0,${Math.min(3,x-1)}}(?:\`\`\`|~~~)`),P=new RegExp(`^ {0,${Math.min(3,x-1)}}#`);for(;t;){const L=t.split(` +`,1)[0];if(_=L,this.options.pedantic&&(_=_.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),T.test(_)||P.test(_)||k.test(_)||E.test(t))break;if(_.search(/[^ ]/)>=x||!_.trim())d+=` +`+_.slice(x);else{if(A||v.search(/[^ ]/)>=4||T.test(v)||P.test(v)||E.test(v))break;d+=` +`+_}!A&&!_.trim()&&(A=!0),f+=L+` +`,t=t.substring(L.length+1),v=_.slice(x)}}u.loose||(h?u.loose=!0:/\n *\n *$/.test(f)&&(h=!0));let R=null,N;this.options.gfm&&(R=/^\[[ xX]\] /.exec(d),R&&(N=R[0]!=="[ ] ",d=d.replace(/^\[[ xX]\] +/,""))),u.items.push({type:"list_item",raw:f,task:!!R,checked:N,loose:!1,text:d,tokens:[]}),u.raw+=f}u.items[u.items.length-1].raw=f.trimEnd(),u.items[u.items.length-1].text=d.trimEnd(),u.raw=u.raw.trimEnd();for(let m=0;mx.type==="space"),_=v.length>0&&v.some(x=>/\n.*\n/.test(x.raw));u.loose=_}if(u.loose)for(let m=0;m$/,"$1").replace(this.rules.inline._escapes,"$1"):"",u=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline._escapes,"$1"):n[3];return{type:"def",tag:r,raw:n[0],href:i,title:u}}}table(t){const n=this.rules.block.table.exec(t);if(n){if(!/[:|]/.test(n[2]))return;const r={type:"table",raw:n[0],header:Jw(n[1]).map(i=>({text:i,tokens:[]})),align:n[2].replace(/^\||\| *$/g,"").split("|"),rows:n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split(` +`):[]};if(r.header.length===r.align.length){let i=r.align.length,u,l,f,d;for(u=0;u({text:h,tokens:[]}));for(i=r.header.length,l=0;l/i.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){const n=this.rules.inline.link.exec(t);if(n){const r=n[2].trim();if(!this.options.pedantic&&/^$/.test(r))return;const l=sg(r.slice(0,-1),"\\");if((r.length-l.length)%2===0)return}else{const l=dP(n[2],"()");if(l>-1){const d=(n[0].indexOf("!")===0?5:4)+n[1].length+l;n[2]=n[2].substring(0,l),n[0]=n[0].substring(0,d).trim(),n[3]=""}}let i=n[2],u="";if(this.options.pedantic){const l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);l&&(i=l[1],u=l[3])}else u=n[3]?n[3].slice(1,-1):"";return i=i.trim(),/^$/.test(r)?i=i.slice(1):i=i.slice(1,-1)),ex(n,{href:i&&i.replace(this.rules.inline._escapes,"$1"),title:u&&u.replace(this.rules.inline._escapes,"$1")},n[0],this.lexer)}}reflink(t,n){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){let i=(r[2]||r[1]).replace(/\s+/g," ");if(i=n[i.toLowerCase()],!i){const u=r[0].charAt(0);return{type:"text",raw:u,text:u}}return ex(r,i,r[0],this.lexer)}}emStrong(t,n,r=""){let i=this.rules.inline.emStrong.lDelim.exec(t);if(!i||i[3]&&r.match(/[\p{L}\p{N}]/u))return;if(!(i[1]||i[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const l=[...i[0]].length-1;let f,d,h=l,m=0;const v=i[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(v.lastIndex=0,n=n.slice(-1*t.length+l);(i=v.exec(n))!=null;){if(f=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!f)continue;if(d=[...f].length,i[3]||i[4]){h+=d;continue}else if((i[5]||i[6])&&l%3&&!((l+d)%3)){m+=d;continue}if(h-=d,h>0)continue;d=Math.min(d,d+h+m);const _=[...i[0]][0].length,x=t.slice(0,l+i.index+_+d);if(Math.min(l,d)%2){const R=x.slice(1,-1);return{type:"em",raw:x,text:R,tokens:this.lexer.inlineTokens(R)}}const A=x.slice(2,-2);return{type:"strong",raw:x,text:A,tokens:this.lexer.inlineTokens(A)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let r=n[2].replace(/\n/g," ");const i=/[^ ]/.test(r),u=/^ /.test(r)&&/ $/.test(r);return i&&u&&(r=r.substring(1,r.length-1)),r=Gi(r,!0),{type:"codespan",raw:n[0],text:r}}}br(t){const n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t){const n=this.rules.inline.del.exec(t);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(t){const n=this.rules.inline.autolink.exec(t);if(n){let r,i;return n[2]==="@"?(r=Gi(n[1]),i="mailto:"+r):(r=Gi(n[1]),i=r),{type:"link",raw:n[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}url(t){let n;if(n=this.rules.inline.url.exec(t)){let r,i;if(n[2]==="@")r=Gi(n[0]),i="mailto:"+r;else{let u;do u=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0];while(u!==n[0]);r=Gi(n[0]),n[1]==="www."?i="http://"+n[0]:i=n[0]}return{type:"link",raw:n[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(t){const n=this.rules.inline.text.exec(t);if(n){let r;return this.lexer.state.inRawBlock?r=n[0]:r=Gi(n[0]),{type:"text",raw:n[0],text:r}}}}const rt={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:nv,lheading:/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};rt._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;rt._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;rt.def=an(rt.def).replace("label",rt._label).replace("title",rt._title).getRegex();rt.bullet=/(?:[*+-]|\d{1,9}[.)])/;rt.listItemStart=an(/^( *)(bull) */).replace("bull",rt.bullet).getRegex();rt.list=an(rt.list).replace(/bull/g,rt.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+rt.def.source+")").getRegex();rt._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";rt._comment=/|$)/;rt.html=an(rt.html,"i").replace("comment",rt._comment).replace("tag",rt._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();rt.lheading=an(rt.lheading).replace(/bull/g,rt.bullet).getRegex();rt.paragraph=an(rt._paragraph).replace("hr",rt.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",rt._tag).getRegex();rt.blockquote=an(rt.blockquote).replace("paragraph",rt.paragraph).getRegex();rt.normal={...rt};rt.gfm={...rt.normal,table:"^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"};rt.gfm.table=an(rt.gfm.table).replace("hr",rt.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",rt._tag).getRegex();rt.gfm.paragraph=an(rt._paragraph).replace("hr",rt.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",rt.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",rt._tag).getRegex();rt.pedantic={...rt.normal,html:an(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",rt._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:nv,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:an(rt.normal._paragraph).replace("hr",rt.hr).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",rt.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const je={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:nv,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,rDelimAst:/^[^_*]*?__[^_*]*?\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\*)[punct](\*+)(?=[\s]|$)|[^punct\s](\*+)(?!\*)(?=[punct\s]|$)|(?!\*)[punct\s](\*+)(?=[^punct\s])|[\s](\*+)(?!\*)(?=[punct])|(?!\*)[punct](\*+)(?!\*)(?=[punct])|[^punct\s](\*+)(?=[^punct\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\s]|$)|[^punct\s](_+)(?!_)(?=[punct\s]|$)|(?!_)[punct\s](_+)(?=[^punct\s])|[\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:nv,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`^|~";je.punctuation=an(je.punctuation,"u").replace(/punctuation/g,je._punctuation).getRegex();je.blockSkip=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g;je.anyPunctuation=/\\[punct]/g;je._escapes=/\\([punct])/g;je._comment=an(rt._comment).replace("(?:-->|$)","-->").getRegex();je.emStrong.lDelim=an(je.emStrong.lDelim,"u").replace(/punct/g,je._punctuation).getRegex();je.emStrong.rDelimAst=an(je.emStrong.rDelimAst,"gu").replace(/punct/g,je._punctuation).getRegex();je.emStrong.rDelimUnd=an(je.emStrong.rDelimUnd,"gu").replace(/punct/g,je._punctuation).getRegex();je.anyPunctuation=an(je.anyPunctuation,"gu").replace(/punct/g,je._punctuation).getRegex();je._escapes=an(je._escapes,"gu").replace(/punct/g,je._punctuation).getRegex();je._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;je._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;je.autolink=an(je.autolink).replace("scheme",je._scheme).replace("email",je._email).getRegex();je._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;je.tag=an(je.tag).replace("comment",je._comment).replace("attribute",je._attribute).getRegex();je._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;je._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;je._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;je.link=an(je.link).replace("label",je._label).replace("href",je._href).replace("title",je._title).getRegex();je.reflink=an(je.reflink).replace("label",je._label).replace("ref",rt._label).getRegex();je.nolink=an(je.nolink).replace("ref",rt._label).getRegex();je.reflinkSearch=an(je.reflinkSearch,"g").replace("reflink",je.reflink).replace("nolink",je.nolink).getRegex();je.normal={...je};je.pedantic={...je.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:an(/^!?\[(label)\]\((.*?)\)/).replace("label",je._label).getRegex(),reflink:an(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",je._label).getRegex()};je.gfm={...je.normal,escape:an(je.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\d+" ".repeat(h.length));let r,i,u,l;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(f=>(r=f.call({lexer:this},t,n))?(t=t.substring(r.raw.length),n.push(r),!0):!1))){if(r=this.tokenizer.space(t)){t=t.substring(r.raw.length),r.raw.length===1&&n.length>0?n[n.length-1].raw+=` +`:n.push(r);continue}if(r=this.tokenizer.code(t)){t=t.substring(r.raw.length),i=n[n.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=` +`+r.raw,i.text+=` +`+r.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text):n.push(r);continue}if(r=this.tokenizer.fences(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.heading(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.hr(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.blockquote(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.list(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.html(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.def(t)){t=t.substring(r.raw.length),i=n[n.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=` +`+r.raw,i.text+=` +`+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});continue}if(r=this.tokenizer.table(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.lheading(t)){t=t.substring(r.raw.length),n.push(r);continue}if(u=t,this.options.extensions&&this.options.extensions.startBlock){let f=1/0;const d=t.slice(1);let h;this.options.extensions.startBlock.forEach(m=>{h=m.call({lexer:this},d),typeof h=="number"&&h>=0&&(f=Math.min(f,h))}),f<1/0&&f>=0&&(u=t.substring(0,f+1))}if(this.state.top&&(r=this.tokenizer.paragraph(u))){i=n[n.length-1],l&&i.type==="paragraph"?(i.raw+=` +`+r.raw,i.text+=` +`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):n.push(r),l=u.length!==t.length,t=t.substring(r.raw.length);continue}if(r=this.tokenizer.text(t)){t=t.substring(r.raw.length),i=n[n.length-1],i&&i.type==="text"?(i.raw+=` +`+r.raw,i.text+=` +`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):n.push(r);continue}if(t){const f="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw new Error(f)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){let r,i,u,l=t,f,d,h;if(this.tokens.links){const m=Object.keys(this.tokens.links);if(m.length>0)for(;(f=this.tokenizer.rules.inline.reflinkSearch.exec(l))!=null;)m.includes(f[0].slice(f[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,f.index)+"["+"a".repeat(f[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(f=this.tokenizer.rules.inline.blockSkip.exec(l))!=null;)l=l.slice(0,f.index)+"["+"a".repeat(f[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(f=this.tokenizer.rules.inline.anyPunctuation.exec(l))!=null;)l=l.slice(0,f.index)+"++"+l.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(d||(h=""),d=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(m=>(r=m.call({lexer:this},t,n))?(t=t.substring(r.raw.length),n.push(r),!0):!1))){if(r=this.tokenizer.escape(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.tag(t)){t=t.substring(r.raw.length),i=n[n.length-1],i&&r.type==="text"&&i.type==="text"?(i.raw+=r.raw,i.text+=r.text):n.push(r);continue}if(r=this.tokenizer.link(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(r.raw.length),i=n[n.length-1],i&&r.type==="text"&&i.type==="text"?(i.raw+=r.raw,i.text+=r.text):n.push(r);continue}if(r=this.tokenizer.emStrong(t,l,h)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.codespan(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.br(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.del(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.autolink(t)){t=t.substring(r.raw.length),n.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(t))){t=t.substring(r.raw.length),n.push(r);continue}if(u=t,this.options.extensions&&this.options.extensions.startInline){let m=1/0;const v=t.slice(1);let _;this.options.extensions.startInline.forEach(x=>{_=x.call({lexer:this},v),typeof _=="number"&&_>=0&&(m=Math.min(m,_))}),m<1/0&&m>=0&&(u=t.substring(0,m+1))}if(r=this.tokenizer.inlineText(u)){t=t.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(h=r.raw.slice(-1)),d=!0,i=n[n.length-1],i&&i.type==="text"?(i.raw+=r.raw,i.text+=r.text):n.push(r);continue}if(t){const m="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(m);break}else throw new Error(m)}}return n}}class iv{constructor(t){bn(this,"options");this.options=t||ts}code(t,n,r){var u;const i=(u=(n||"").match(/^\S*/))==null?void 0:u[0];return t=t.replace(/\n$/,"")+` +`,i?'
'+(r?t:Gi(t,!0))+`
+`:"
"+(r?t:Gi(t,!0))+`
+`}blockquote(t){return`
+${t}
+`}html(t,n){return t}heading(t,n,r){return`${t} +`}hr(){return`
+`}list(t,n,r){const i=n?"ol":"ul",u=n&&r!==1?' start="'+r+'"':"";return"<"+i+u+`> +`+t+" +`}listitem(t,n,r){return`
  • ${t}
  • +`}checkbox(t){return"'}paragraph(t){return`

    ${t}

    +`}table(t,n){return n&&(n=`${n}`),` + +`+t+` +`+n+`
    +`}tablerow(t){return` +${t} +`}tablecell(t,n){const r=n.header?"th":"td";return(n.align?`<${r} align="${n.align}">`:`<${r}>`)+t+` +`}strong(t){return`${t}`}em(t){return`${t}`}codespan(t){return`${t}`}br(){return"
    "}del(t){return`${t}`}link(t,n,r){const i=Xw(t);if(i===null)return r;t=i;let u='",u}image(t,n,r){const i=Xw(t);if(i===null)return r;t=i;let u=`${r}0&&_.tokens[0].type==="paragraph"?(_.tokens[0].text=N+" "+_.tokens[0].text,_.tokens[0].tokens&&_.tokens[0].tokens.length>0&&_.tokens[0].tokens[0].type==="text"&&(_.tokens[0].tokens[0].text=N+" "+_.tokens[0].tokens[0].text)):_.tokens.unshift({type:"text",text:N+" "}):R+=N+" "}R+=this.parse(_.tokens,h),m+=this.renderer.listitem(R,A,!!x)}r+=this.renderer.list(m,f,d);continue}case"html":{const l=u;r+=this.renderer.html(l.text,l.block);continue}case"paragraph":{const l=u;r+=this.renderer.paragraph(this.parseInline(l.tokens));continue}case"text":{let l=u,f=l.tokens?this.parseInline(l.tokens):l.text;for(;i+1{r=r.concat(this.walkTokens(f[d],n))}):f.tokens&&(r=r.concat(this.walkTokens(f.tokens,n)))}}return r}use(...t){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{const i={...r};if(i.async=this.defaults.async||i.async||!1,r.extensions&&(r.extensions.forEach(u=>{if(!u.name)throw new Error("extension name required");if("renderer"in u){const l=n.renderers[u.name];l?n.renderers[u.name]=function(...f){let d=u.renderer.apply(this,f);return d===!1&&(d=l.apply(this,f)),d}:n.renderers[u.name]=u.renderer}if("tokenizer"in u){if(!u.level||u.level!=="block"&&u.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const l=n[u.level];l?l.unshift(u.tokenizer):n[u.level]=[u.tokenizer],u.start&&(u.level==="block"?n.startBlock?n.startBlock.push(u.start):n.startBlock=[u.start]:u.level==="inline"&&(n.startInline?n.startInline.push(u.start):n.startInline=[u.start]))}"childTokens"in u&&u.childTokens&&(n.childTokens[u.name]=u.childTokens)}),i.extensions=n),r.renderer){const u=this.defaults.renderer||new iv(this.defaults);for(const l in r.renderer){const f=r.renderer[l],d=l,h=u[d];u[d]=(...m)=>{let v=f.apply(u,m);return v===!1&&(v=h.apply(u,m)),v||""}}i.renderer=u}if(r.tokenizer){const u=this.defaults.tokenizer||new rv(this.defaults);for(const l in r.tokenizer){const f=r.tokenizer[l],d=l,h=u[d];u[d]=(...m)=>{let v=f.apply(u,m);return v===!1&&(v=h.apply(u,m)),v}}i.tokenizer=u}if(r.hooks){const u=this.defaults.hooks||new jd;for(const l in r.hooks){const f=r.hooks[l],d=l,h=u[d];jd.passThroughHooks.has(l)?u[d]=m=>{if(this.defaults.async)return Promise.resolve(f.call(u,m)).then(_=>h.call(u,_));const v=f.call(u,m);return h.call(u,v)}:u[d]=(...m)=>{let v=f.apply(u,m);return v===!1&&(v=h.apply(u,m)),v}}i.hooks=u}if(r.walkTokens){const u=this.defaults.walkTokens,l=r.walkTokens;i.walkTokens=function(f){let d=[];return d.push(l.call(this,f)),u&&(d=d.concat(u.call(this,f))),d}}this.defaults={...this.defaults,...i}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}}Jd=new WeakSet,Ty=function(t,n){return(r,i)=>{const u={...i},l={...this.defaults,...u};this.defaults.async===!0&&u.async===!1&&(l.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),l.async=!0);const f=Wh(this,mv,jE).call(this,!!l.silent,!!l.async);if(typeof r>"u"||r===null)return f(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return f(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(l.hooks&&(l.hooks.options=l),l.async)return Promise.resolve(l.hooks?l.hooks.preprocess(r):r).then(d=>t(d,l)).then(d=>l.walkTokens?Promise.all(this.walkTokens(d,l.walkTokens)).then(()=>d):d).then(d=>n(d,l)).then(d=>l.hooks?l.hooks.postprocess(d):d).catch(f);try{l.hooks&&(r=l.hooks.preprocess(r));const d=t(r,l);l.walkTokens&&this.walkTokens(d,l.walkTokens);let h=n(d,l);return l.hooks&&(h=l.hooks.postprocess(h)),h}catch(d){return f(d)}}},mv=new WeakSet,jE=function(t,n){return r=>{if(r.message+=` +Please report this to https://github.com/markedjs/marked.`,t){const i="

    An error occurred:

    "+Gi(r.message+"",!0)+"
    ";return n?Promise.resolve(i):i}if(n)return Promise.reject(r);throw r}};const Xl=new hP;function un(e,t){return Xl.parse(e,t)}un.options=un.setOptions=function(e){return Xl.setOptions(e),un.defaults=Xl.defaults,RE(un.defaults),un};un.getDefaults=H1;un.defaults=ts;un.use=function(...e){return Xl.use(...e),un.defaults=Xl.defaults,RE(un.defaults),un};un.walkTokens=function(e,t){return Xl.walkTokens(e,t)};un.parseInline=Xl.parseInline;un.Parser=du;un.parser=du.parse;un.Renderer=iv;un.TextRenderer=W1;un.Lexer=fu;un.lexer=fu.lex;un.Tokenizer=rv;un.Hooks=jd;un.parse=un;un.options;un.setOptions;un.use;un.walkTokens;un.parseInline;du.parse;fu.lex;/*! @license DOMPurify 3.0.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.6/LICENSE */const{entries:LE,setPrototypeOf:tx,isFrozen:gP,getPrototypeOf:vP,getOwnPropertyDescriptor:NE}=Object;let{freeze:ci,seal:qo,create:$E}=Object,{apply:Cy,construct:Ay}=typeof Reflect<"u"&&Reflect;ci||(ci=function(t){return t});qo||(qo=function(t){return t});Cy||(Cy=function(t,n,r){return t.apply(n,r)});Ay||(Ay=function(t,n){return new t(...n)});const cg=mo(Array.prototype.forEach),nx=mo(Array.prototype.pop),pd=mo(Array.prototype.push),Rg=mo(String.prototype.toLowerCase),v0=mo(String.prototype.toString),mP=mo(String.prototype.match),hd=mo(String.prototype.replace),yP=mo(String.prototype.indexOf),_P=mo(String.prototype.trim),Hi=mo(RegExp.prototype.test),gd=wP(TypeError);function mo(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:Rg;tx&&tx(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const u=n(i);u!==i&&(gP(t)||(t[r]=u),i=u)}e[i]=!0}return e}function uc(e){const t=$E(null);for(const[n,r]of LE(e))NE(e,n)!==void 0&&(t[n]=r);return t}function fg(e,t){for(;e!==null;){const r=NE(e,t);if(r){if(r.get)return mo(r.get);if(typeof r.value=="function")return mo(r.value)}e=vP(e)}function n(r){return console.warn("fallback value for",r),null}return n}const rx=ci(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),m0=ci(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),y0=ci(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),xP=ci(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),_0=ci(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),bP=ci(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ix=ci(["#text"]),ox=ci(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),w0=ci(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),ux=ci(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),dg=ci(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),SP=qo(/\{\{[\w\W]*|[\w\W]*\}\}/gm),EP=qo(/<%[\w\W]*|[\w\W]*%>/gm),kP=qo(/\${[\w\W]*}/gm),TP=qo(/^data-[\-\w.\u00B7-\uFFFF]/),CP=qo(/^aria-[\-\w]+$/),DE=qo(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),AP=qo(/^(?:\w+script|data):/i),OP=qo(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ME=qo(/^html$/i);var ax=Object.freeze({__proto__:null,MUSTACHE_EXPR:SP,ERB_EXPR:EP,TMPLIT_EXPR:kP,DATA_ATTR:TP,ARIA_ATTR:CP,IS_ALLOWED_URI:DE,IS_SCRIPT_OR_DATA:AP,ATTR_WHITESPACE:OP,DOCTYPE_NAME:ME});const RP=function(){return typeof window>"u"?null:window},PP=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const u="dompurify"+(r?"#"+r:"");try{return t.createPolicy(u,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+u+" could not be created."),null}};function FE(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:RP();const t=Ue=>FE(Ue);if(t.version="3.0.6",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:u,HTMLTemplateElement:l,Node:f,Element:d,NodeFilter:h,NamedNodeMap:m=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:v,DOMParser:_,trustedTypes:x}=e,A=d.prototype,R=fg(A,"cloneNode"),N=fg(A,"nextSibling"),k=fg(A,"childNodes"),E=fg(A,"parentNode");if(typeof l=="function"){const Ue=n.createElement("template");Ue.content&&Ue.content.ownerDocument&&(n=Ue.content.ownerDocument)}let T,P="";const{implementation:L,createNodeIterator:U,createDocumentFragment:G,getElementsByTagName:Z}=n,{importNode:Ee}=r;let K={};t.isSupported=typeof LE=="function"&&typeof E=="function"&&L&&L.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:ae,ERB_EXPR:ne,TMPLIT_EXPR:Ie,DATA_ATTR:Re,ARIA_ATTR:Fe,IS_SCRIPT_OR_DATA:lt,ATTR_WHITESPACE:Je}=ax;let{IS_ALLOWED_URI:le}=ax,me=null;const Le=It({},[...rx,...m0,...y0,..._0,...ix]);let B=null;const re=It({},[...ox,...w0,...ux,...dg]);let xe=Object.seal($E(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),pe=null,we=null,ye=!0,ze=!0,Qe=!1,tt=!0,_t=!1,it=!1,Ne=!1,wt=!1,gt=!1,et=!1,Et=!1,kt=!0,_n=!1;const gn="user-content-";let Ut=!0,jt=!1,Ze={},vn=null;const Te=It({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ge=null;const Vt=It({},["audio","video","img","source","image","track"]);let nn=null;const ln=It({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),fr="http://www.w3.org/1998/Math/MathML",Gn="http://www.w3.org/2000/svg",qn="http://www.w3.org/1999/xhtml";let dr=qn,Tr=!1,$=null;const z=It({},[fr,Gn,qn],v0);let q=null;const ue=["application/xhtml+xml","text/html"],ie="text/html";let Ae=null,$e=null;const ft=n.createElement("form"),Bt=function(Q){return Q instanceof RegExp||Q instanceof Function},nt=function(){let Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!($e&&$e===Q)){if((!Q||typeof Q!="object")&&(Q={}),Q=uc(Q),q=ue.indexOf(Q.PARSER_MEDIA_TYPE)===-1?q=ie:q=Q.PARSER_MEDIA_TYPE,Ae=q==="application/xhtml+xml"?v0:Rg,me="ALLOWED_TAGS"in Q?It({},Q.ALLOWED_TAGS,Ae):Le,B="ALLOWED_ATTR"in Q?It({},Q.ALLOWED_ATTR,Ae):re,$="ALLOWED_NAMESPACES"in Q?It({},Q.ALLOWED_NAMESPACES,v0):z,nn="ADD_URI_SAFE_ATTR"in Q?It(uc(ln),Q.ADD_URI_SAFE_ATTR,Ae):ln,Ge="ADD_DATA_URI_TAGS"in Q?It(uc(Vt),Q.ADD_DATA_URI_TAGS,Ae):Vt,vn="FORBID_CONTENTS"in Q?It({},Q.FORBID_CONTENTS,Ae):Te,pe="FORBID_TAGS"in Q?It({},Q.FORBID_TAGS,Ae):{},we="FORBID_ATTR"in Q?It({},Q.FORBID_ATTR,Ae):{},Ze="USE_PROFILES"in Q?Q.USE_PROFILES:!1,ye=Q.ALLOW_ARIA_ATTR!==!1,ze=Q.ALLOW_DATA_ATTR!==!1,Qe=Q.ALLOW_UNKNOWN_PROTOCOLS||!1,tt=Q.ALLOW_SELF_CLOSE_IN_ATTR!==!1,_t=Q.SAFE_FOR_TEMPLATES||!1,it=Q.WHOLE_DOCUMENT||!1,gt=Q.RETURN_DOM||!1,et=Q.RETURN_DOM_FRAGMENT||!1,Et=Q.RETURN_TRUSTED_TYPE||!1,wt=Q.FORCE_BODY||!1,kt=Q.SANITIZE_DOM!==!1,_n=Q.SANITIZE_NAMED_PROPS||!1,Ut=Q.KEEP_CONTENT!==!1,jt=Q.IN_PLACE||!1,le=Q.ALLOWED_URI_REGEXP||DE,dr=Q.NAMESPACE||qn,xe=Q.CUSTOM_ELEMENT_HANDLING||{},Q.CUSTOM_ELEMENT_HANDLING&&Bt(Q.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(xe.tagNameCheck=Q.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Q.CUSTOM_ELEMENT_HANDLING&&Bt(Q.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(xe.attributeNameCheck=Q.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Q.CUSTOM_ELEMENT_HANDLING&&typeof Q.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(xe.allowCustomizedBuiltInElements=Q.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),_t&&(ze=!1),et&&(gt=!0),Ze&&(me=It({},[...ix]),B=[],Ze.html===!0&&(It(me,rx),It(B,ox)),Ze.svg===!0&&(It(me,m0),It(B,w0),It(B,dg)),Ze.svgFilters===!0&&(It(me,y0),It(B,w0),It(B,dg)),Ze.mathMl===!0&&(It(me,_0),It(B,ux),It(B,dg))),Q.ADD_TAGS&&(me===Le&&(me=uc(me)),It(me,Q.ADD_TAGS,Ae)),Q.ADD_ATTR&&(B===re&&(B=uc(B)),It(B,Q.ADD_ATTR,Ae)),Q.ADD_URI_SAFE_ATTR&&It(nn,Q.ADD_URI_SAFE_ATTR,Ae),Q.FORBID_CONTENTS&&(vn===Te&&(vn=uc(vn)),It(vn,Q.FORBID_CONTENTS,Ae)),Ut&&(me["#text"]=!0),it&&It(me,["html","head","body"]),me.table&&(It(me,["tbody"]),delete pe.tbody),Q.TRUSTED_TYPES_POLICY){if(typeof Q.TRUSTED_TYPES_POLICY.createHTML!="function")throw gd('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Q.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw gd('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');T=Q.TRUSTED_TYPES_POLICY,P=T.createHTML("")}else T===void 0&&(T=PP(x,i)),T!==null&&typeof P=="string"&&(P=T.createHTML(""));ci&&ci(Q),$e=Q}},qt=It({},["mi","mo","mn","ms","mtext"]),Ht=It({},["foreignobject","desc","title","annotation-xml"]),En=It({},["title","style","font","a","script"]),$t=It({},m0);It($t,y0),It($t,xP);const An=It({},_0);It(An,bP);const rn=function(Q){let be=E(Q);(!be||!be.tagName)&&(be={namespaceURI:dr,tagName:"template"});const Me=Rg(Q.tagName),Xt=Rg(be.tagName);return $[Q.namespaceURI]?Q.namespaceURI===Gn?be.namespaceURI===qn?Me==="svg":be.namespaceURI===fr?Me==="svg"&&(Xt==="annotation-xml"||qt[Xt]):!!$t[Me]:Q.namespaceURI===fr?be.namespaceURI===qn?Me==="math":be.namespaceURI===Gn?Me==="math"&&Ht[Xt]:!!An[Me]:Q.namespaceURI===qn?be.namespaceURI===Gn&&!Ht[Xt]||be.namespaceURI===fr&&!qt[Xt]?!1:!An[Me]&&(En[Me]||!$t[Me]):!!(q==="application/xhtml+xml"&&$[Q.namespaceURI]):!1},sn=function(Q){pd(t.removed,{element:Q});try{Q.parentNode.removeChild(Q)}catch{Q.remove()}},lr=function(Q,be){try{pd(t.removed,{attribute:be.getAttributeNode(Q),from:be})}catch{pd(t.removed,{attribute:null,from:be})}if(be.removeAttribute(Q),Q==="is"&&!B[Q])if(gt||et)try{sn(be)}catch{}else try{be.setAttribute(Q,"")}catch{}},$r=function(Q){let be=null,Me=null;if(wt)Q=""+Q;else{const Kn=mP(Q,/^[\r\n\t ]+/);Me=Kn&&Kn[0]}q==="application/xhtml+xml"&&dr===qn&&(Q=''+Q+"");const Xt=T?T.createHTML(Q):Q;if(dr===qn)try{be=new _().parseFromString(Xt,q)}catch{}if(!be||!be.documentElement){be=L.createDocument(dr,"template",null);try{be.documentElement.innerHTML=Tr?P:Xt}catch{}}const xt=be.body||be.documentElement;return Q&&Me&&xt.insertBefore(n.createTextNode(Me),xt.childNodes[0]||null),dr===qn?Z.call(be,it?"html":"body")[0]:it?be.documentElement:xt},Dr=function(Q){return U.call(Q.ownerDocument||Q,Q,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT,null)},Jr=function(Q){return Q instanceof v&&(typeof Q.nodeName!="string"||typeof Q.textContent!="string"||typeof Q.removeChild!="function"||!(Q.attributes instanceof m)||typeof Q.removeAttribute!="function"||typeof Q.setAttribute!="function"||typeof Q.namespaceURI!="string"||typeof Q.insertBefore!="function"||typeof Q.hasChildNodes!="function")},pr=function(Q){return typeof f=="function"&&Q instanceof f},jn=function(Q,be,Me){K[Q]&&cg(K[Q],Xt=>{Xt.call(t,be,Me,$e)})},Ji=function(Q){let be=null;if(jn("beforeSanitizeElements",Q,null),Jr(Q))return sn(Q),!0;const Me=Ae(Q.nodeName);if(jn("uponSanitizeElement",Q,{tagName:Me,allowedTags:me}),Q.hasChildNodes()&&!pr(Q.firstElementChild)&&Hi(/<[/\w]/g,Q.innerHTML)&&Hi(/<[/\w]/g,Q.textContent))return sn(Q),!0;if(!me[Me]||pe[Me]){if(!pe[Me]&&vu(Me)&&(xe.tagNameCheck instanceof RegExp&&Hi(xe.tagNameCheck,Me)||xe.tagNameCheck instanceof Function&&xe.tagNameCheck(Me)))return!1;if(Ut&&!vn[Me]){const Xt=E(Q)||Q.parentNode,xt=k(Q)||Q.childNodes;if(xt&&Xt){const Kn=xt.length;for(let wn=Kn-1;wn>=0;--wn)Xt.insertBefore(R(xt[wn],!0),N(Q))}}return sn(Q),!0}return Q instanceof d&&!rn(Q)||(Me==="noscript"||Me==="noembed"||Me==="noframes")&&Hi(/<\/no(script|embed|frames)/i,Q.innerHTML)?(sn(Q),!0):(_t&&Q.nodeType===3&&(be=Q.textContent,cg([ae,ne,Ie],Xt=>{be=hd(be,Xt," ")}),Q.textContent!==be&&(pd(t.removed,{element:Q.cloneNode()}),Q.textContent=be)),jn("afterSanitizeElements",Q,null),!1)},pi=function(Q,be,Me){if(kt&&(be==="id"||be==="name")&&(Me in n||Me in ft))return!1;if(!(ze&&!we[be]&&Hi(Re,be))){if(!(ye&&Hi(Fe,be))){if(!B[be]||we[be]){if(!(vu(Q)&&(xe.tagNameCheck instanceof RegExp&&Hi(xe.tagNameCheck,Q)||xe.tagNameCheck instanceof Function&&xe.tagNameCheck(Q))&&(xe.attributeNameCheck instanceof RegExp&&Hi(xe.attributeNameCheck,be)||xe.attributeNameCheck instanceof Function&&xe.attributeNameCheck(be))||be==="is"&&xe.allowCustomizedBuiltInElements&&(xe.tagNameCheck instanceof RegExp&&Hi(xe.tagNameCheck,Me)||xe.tagNameCheck instanceof Function&&xe.tagNameCheck(Me))))return!1}else if(!nn[be]){if(!Hi(le,hd(Me,Je,""))){if(!((be==="src"||be==="xlink:href"||be==="href")&&Q!=="script"&&yP(Me,"data:")===0&&Ge[Q])){if(!(Qe&&!Hi(lt,hd(Me,Je,"")))){if(Me)return!1}}}}}}return!0},vu=function(Q){return Q.indexOf("-")>0},Yt=function(Q){jn("beforeSanitizeAttributes",Q,null);const{attributes:be}=Q;if(!be)return;const Me={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:B};let Xt=be.length;for(;Xt--;){const xt=be[Xt],{name:Kn,namespaceURI:wn,value:eo}=xt,hi=Ae(Kn);let cn=Kn==="value"?eo:_P(eo);if(Me.attrName=hi,Me.attrValue=cn,Me.keepAttr=!0,Me.forceKeepAttr=void 0,jn("uponSanitizeAttribute",Q,Me),cn=Me.attrValue,Me.forceKeepAttr||(lr(Kn,Q),!Me.keepAttr))continue;if(!tt&&Hi(/\/>/i,cn)){lr(Kn,Q);continue}_t&&cg([ae,ne,Ie],Ka=>{cn=hd(cn,Ka," ")});const qa=Ae(Q.nodeName);if(pi(qa,hi,cn)){if(_n&&(hi==="id"||hi==="name")&&(lr(Kn,Q),cn=gn+cn),T&&typeof x=="object"&&typeof x.getAttributeType=="function"&&!wn)switch(x.getAttributeType(qa,hi)){case"TrustedHTML":{cn=T.createHTML(cn);break}case"TrustedScriptURL":{cn=T.createScriptURL(cn);break}}try{wn?Q.setAttributeNS(wn,Kn,cn):Q.setAttribute(Kn,cn),nx(t.removed)}catch{}}}jn("afterSanitizeAttributes",Q,null)},Zt=function Ue(Q){let be=null;const Me=Dr(Q);for(jn("beforeSanitizeShadowDOM",Q,null);be=Me.nextNode();)jn("uponSanitizeShadowNode",be,null),!Ji(be)&&(be.content instanceof u&&Ue(be.content),Yt(be));jn("afterSanitizeShadowDOM",Q,null)};return t.sanitize=function(Ue){let Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},be=null,Me=null,Xt=null,xt=null;if(Tr=!Ue,Tr&&(Ue=""),typeof Ue!="string"&&!pr(Ue))if(typeof Ue.toString=="function"){if(Ue=Ue.toString(),typeof Ue!="string")throw gd("dirty is not a string, aborting")}else throw gd("toString is not a function");if(!t.isSupported)return Ue;if(Ne||nt(Q),t.removed=[],typeof Ue=="string"&&(jt=!1),jt){if(Ue.nodeName){const eo=Ae(Ue.nodeName);if(!me[eo]||pe[eo])throw gd("root node is forbidden and cannot be sanitized in-place")}}else if(Ue instanceof f)be=$r(""),Me=be.ownerDocument.importNode(Ue,!0),Me.nodeType===1&&Me.nodeName==="BODY"||Me.nodeName==="HTML"?be=Me:be.appendChild(Me);else{if(!gt&&!_t&&!it&&Ue.indexOf("<")===-1)return T&&Et?T.createHTML(Ue):Ue;if(be=$r(Ue),!be)return gt?null:Et?P:""}be&&wt&&sn(be.firstChild);const Kn=Dr(jt?Ue:be);for(;Xt=Kn.nextNode();)Ji(Xt)||(Xt.content instanceof u&&Zt(Xt.content),Yt(Xt));if(jt)return Ue;if(gt){if(et)for(xt=G.call(be.ownerDocument);be.firstChild;)xt.appendChild(be.firstChild);else xt=be;return(B.shadowroot||B.shadowrootmode)&&(xt=Ee.call(r,xt,!0)),xt}let wn=it?be.outerHTML:be.innerHTML;return it&&me["!doctype"]&&be.ownerDocument&&be.ownerDocument.doctype&&be.ownerDocument.doctype.name&&Hi(ME,be.ownerDocument.doctype.name)&&(wn=" +`+wn),_t&&cg([ae,ne,Ie],eo=>{wn=hd(wn,eo," ")}),T&&Et?T.createHTML(wn):wn},t.setConfig=function(){let Ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};nt(Ue),Ne=!0},t.clearConfig=function(){$e=null,Ne=!1},t.isValidAttribute=function(Ue,Q,be){$e||nt({});const Me=Ae(Ue),Xt=Ae(Q);return pi(Me,Xt,be)},t.addHook=function(Ue,Q){typeof Q=="function"&&(K[Ue]=K[Ue]||[],pd(K[Ue],Q))},t.removeHook=function(Ue){if(K[Ue])return nx(K[Ue])},t.removeHooks=function(Ue){K[Ue]&&(K[Ue]=[])},t.removeAllHooks=function(){K={}},t}var IP=FE();function jP(e){const[t,n]=M.useState(null),r=async i=>{n({score:i,inflight:!0}),await fetch("/runs/feedback",{method:"POST",body:JSON.stringify({run_id:e.runId,key:"user_score",score:i}),headers:{"Content-Type":"application/json"}}),n({score:i,inflight:!1})};return Y.jsxs("div",{className:"flex mt-2 gap-2 flex-row",children:[Y.jsx("button",{type:"button",className:"rounded-full p-1 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50",onClick:()=>r(1),children:(t==null?void 0:t.score)===1?t!=null&&t.inflight?Y.jsx(Kw,{className:"h-5 w-5","aria-hidden":"true"}):Y.jsx(qw,{className:"h-5 w-5","aria-hidden":"true"}):Y.jsx(uR,{className:"h-5 w-5","aria-hidden":"true"})}),Y.jsx("button",{type:"button",className:"rounded-full p-1 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50",onClick:()=>r(0),children:(t==null?void 0:t.score)===0?t!=null&&t.inflight?Y.jsx(Kw,{className:"h-5 w-5","aria-hidden":"true"}):Y.jsx(qw,{className:"h-5 w-5","aria-hidden":"true"}):Y.jsx(rR,{className:"h-5 w-5","aria-hidden":"true"})})]})}function LP(e){try{return JSON.parse(e)}catch{return{}}}function lx(e){return Y.jsxs(Y.Fragment,{children:[e.call&&Y.jsx("span",{className:"text-gray-900 whitespace-pre-wrap break-words mr-2",children:"Use"}),e.name&&Y.jsx("span",{className:"inline-flex items-center rounded-md bg-gray-50 px-2 py-1 text-sm font-medium text-gray-600 ring-1 ring-inset ring-gray-500/10 relative -top-[1px] mr-2",children:e.name}),!e.call&&Y.jsx("span",{className:Qr("inline-flex items-center rounded-md bg-gray-50 px-2 py-1 text-sm font-medium text-gray-600 ring-1 ring-inset ring-gray-500/10 cursor-pointer relative top-1",e.open&&"mb-2"),onClick:t=>{var n;t.preventDefault(),t.stopPropagation(),(n=e.setOpen)==null||n.call(e,!e.open)},children:Y.jsx(X3,{className:Qr("h-5 w-5 transition",e.open?"rotate-180":"")})}),e.args&&Y.jsx("div",{className:"text-gray-900 mt-2 whitespace-pre-wrap break-words",children:Y.jsx("div",{className:"ring-1 ring-gray-300 rounded",children:Y.jsx("table",{className:"divide-y divide-gray-300",children:Y.jsx("tbody",{children:Object.entries(LP(e.args)).map(([t,n],r)=>Y.jsxs("tr",{children:[Y.jsx("td",{className:Qr(r===0?"":"border-t border-transparent","py-1 px-3 table-cell text-sm border-r border-r-gray-300"),children:Y.jsx("div",{className:"font-medium text-gray-500",children:t})}),Y.jsx("td",{className:Qr(r===0?"":"border-t border-gray-200","py-1 px-3 table-cell"),children:OE(n)})]},r))})})})})]})}function NP(e){var r;const[t,n]=M.useState(!1);return Y.jsxs("div",{className:"flex flex-col mb-8",children:[Y.jsxs("div",{className:"leading-6 flex flex-row",children:[Y.jsx("div",{className:Qr("font-medium text-sm text-gray-400 uppercase mr-2 mt-1 w-24 flex flex-col",e.type==="function"&&"mt-2"),children:e.type}),Y.jsxs("div",{className:"flex-1",children:[e.type==="function"&&Y.jsx(lx,{call:!1,name:e.name,open:t,setOpen:n}),((r=e.additional_kwargs)==null?void 0:r.function_call)&&Y.jsx(lx,{call:!0,name:e.additional_kwargs.function_call.name,args:e.additional_kwargs.function_call.arguments}),e.type!=="function"||t?typeof e.content=="string"?Y.jsx("div",{className:"text-gray-900 prose",dangerouslySetInnerHTML:{__html:IP.sanitize(un(e.content)).trim()}}):Y.jsx("div",{className:"text-gray-900 prose",children:OE(e.content)}):!1]})]}),e.runId&&Y.jsx("div",{className:"mt-2 pl-[100px]",children:Y.jsx(jP,{runId:e.runId})})]})}function $P(e){var n,r,i;const t=xR(e.chat.thread_id,e.stream);return M.useEffect(()=>{var u;scrollTo({top:document.body.scrollHeight,behavior:(u=e.stream)!=null&&u.messages?"smooth":void 0})},[t]),Y.jsxs("div",{className:"flex-1 flex flex-col items-stretch pb-[76px] pt-2",children:[t==null?void 0:t.map((u,l)=>{var f,d;return M.createElement(NP,{...u,key:l,runId:l===t.length-1&&((f=e.stream)==null?void 0:f.status)==="done"?(d=e.stream)==null?void 0:d.run_id:void 0})}),(((n=e.stream)==null?void 0:n.status)==="inflight"||t===null)&&Y.jsx("div",{className:"leading-6 mb-2 animate-pulse font-black text-gray-400 text-lg",children:"..."}),((r=e.stream)==null?void 0:r.status)==="error"&&Y.jsx("div",{className:"flex items-center rounded-md bg-yellow-50 px-2 py-1 text-xs font-medium text-yellow-800 ring-1 ring-inset ring-yellow-600/20",children:"An error has occurred. Please try again."}),Y.jsx("div",{className:"fixed left-0 lg:left-72 bottom-0 right-0 p-4",children:Y.jsx(AE,{onSubmit:e.startStream,disabled:((i=e.stream)==null?void 0:i.status)==="inflight"})})]})}function DP(e){var t;return Y.jsxs(Y.Fragment,{children:[Y.jsxs("div",{onClick:()=>e.enterChat(null),className:Qr(e.currentChat===null?"bg-gray-50 text-indigo-600":"text-gray-700 hover:text-indigo-600 hover:bg-gray-50","group flex gap-x-3 rounded-md -mx-2 p-2 text-sm leading-6 font-semibold cursor-pointer"),children:[Y.jsx("span",{className:Qr(e.currentChat===null?"text-indigo-600 border-indigo-600":"text-gray-400 border-gray-200 group-hover:border-indigo-600 group-hover:text-indigo-600","flex h-6 w-6 shrink-0 items-center justify-center rounded-lg border text-[0.625rem] font-medium bg-white"),children:Y.jsx(xE,{className:"h-4 w-4"})}),Y.jsx("span",{className:"truncate",children:"New Chat"})]}),Y.jsx("div",{className:"text-xs font-semibold leading-6 text-gray-400 mt-4",children:"Your chats"}),Y.jsx("ul",{role:"list",className:"-mx-2 mt-2 space-y-1",children:((t=e.chats)==null?void 0:t.map(n=>{var r;return Y.jsx("li",{children:Y.jsxs("div",{onClick:()=>e.enterChat(n.thread_id),className:Qr(n===e.currentChat?"bg-gray-50 text-indigo-600":"text-gray-700 hover:text-indigo-600 hover:bg-gray-50","group flex gap-x-3 rounded-md p-2 text-sm leading-6 font-semibold cursor-pointer"),children:[Y.jsx("span",{className:Qr(n===e.currentChat?"text-indigo-600 border-indigo-600":"text-gray-400 border-gray-200 group-hover:border-indigo-600 group-hover:text-indigo-600","flex h-6 w-6 shrink-0 items-center justify-center rounded-lg border text-[0.625rem] font-medium bg-white"),children:((r=n.name)==null?void 0:r[0])??" "}),Y.jsx("span",{className:"truncate",children:n.name})]})},n.thread_id)}))??Y.jsx("li",{className:"leading-6 p-2 animate-pulse font-black text-gray-400 text-lg",children:"..."})})]})}var MP=Object.defineProperty,FP=(e,t,n)=>t in e?MP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,x0=(e,t,n)=>(FP(e,typeof t!="symbol"?t+"":t,n),n);let zP=class{constructor(){x0(this,"current",this.detect()),x0(this,"handoffState","pending"),x0(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Bu=new zP,yo=(e,t)=>{Bu.isServer?M.useEffect(e,t):M.useLayoutEffect(e,t)};function Hu(e){let t=M.useRef(e);return yo(()=>{t.current=e},[e]),t}function Lv(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function ns(){let e=[],t={addEventListener(n,r,i,u){return n.addEventListener(r,i,u),t.add(()=>n.removeEventListener(r,i,u))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return Lv(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,i){let u=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:u})})},group(n){let r=ns();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let i of e.splice(r,1))i()}},dispose(){for(let n of e.splice(0))n()}};return t}function G1(){let[e]=M.useState(ns);return M.useEffect(()=>()=>e.dispose(),[e]),e}let Mn=function(e){let t=Hu(e);return zt.useCallback((...n)=>t.current(...n),[t])};function UP(){let e=typeof document>"u";return"useSyncExternalStore"in Ld?(t=>t.useSyncExternalStore)(Ld)(()=>()=>{},()=>!1,()=>!e):!1}function Dc(){let e=UP(),[t,n]=M.useState(Bu.isHandoffComplete);return t&&Bu.isHandoffComplete===!1&&n(!1),M.useEffect(()=>{t!==!0&&n(!0)},[t]),M.useEffect(()=>Bu.handoff(),[]),e?!1:t}var sx;let Mc=(sx=zt.useId)!=null?sx:function(){let e=Dc(),[t,n]=zt.useState(e?()=>Bu.nextId():null);return yo(()=>{t===null&&n(Bu.nextId())},[t]),t!=null?""+t:void 0};function Zr(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Zr),r}function zE(e){return Bu.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let Oy=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Dl=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Dl||{}),UE=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(UE||{}),BP=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(BP||{});function HP(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Oy)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var BE=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(BE||{});function WP(e,t=0){var n;return e===((n=zE(e))==null?void 0:n.body)?!1:Zr(t,{0(){return e.matches(Oy)},1(){let r=e;for(;r!==null;){if(r.matches(Oy))return!0;r=r.parentElement}return!1}})}var GP=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(GP||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function ql(e){e==null||e.focus({preventScroll:!0})}let qP=["textarea","input"].join(",");function KP(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,qP))!=null?n:!1}function VP(e,t=n=>n){return e.slice().sort((n,r)=>{let i=t(n),u=t(r);if(i===null||u===null)return 0;let l=i.compareDocumentPosition(u);return l&Node.DOCUMENT_POSITION_FOLLOWING?-1:l&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Pg(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:i=[]}={}){let u=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,l=Array.isArray(e)?n?VP(e):e:HP(e);i.length>0&&l.length>1&&(l=l.filter(x=>!i.includes(x))),r=r??u.activeElement;let f=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,l.indexOf(r))-1;if(t&4)return Math.max(0,l.indexOf(r))+1;if(t&8)return l.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),h=t&32?{preventScroll:!0}:{},m=0,v=l.length,_;do{if(m>=v||m+v<=0)return 0;let x=d+m;if(t&16)x=(x+v)%v;else{if(x<0)return 3;if(x>=v)return 1}_=l[x],_==null||_.focus(h),m+=f}while(_!==u.activeElement);return t&6&&KP(_)&&_.select(),2}function pg(e,t,n){let r=Hu(t);M.useEffect(()=>{function i(u){r.current(u)}return document.addEventListener(e,i,n),()=>document.removeEventListener(e,i,n)},[e,n])}function HE(e,t,n){let r=Hu(t);M.useEffect(()=>{function i(u){r.current(u)}return window.addEventListener(e,i,n),()=>window.removeEventListener(e,i,n)},[e,n])}function YP(e,t,n=!0){let r=M.useRef(!1);M.useEffect(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function i(l,f){if(!r.current||l.defaultPrevented)return;let d=f(l);if(d===null||!d.getRootNode().contains(d)||!d.isConnected)return;let h=function m(v){return typeof v=="function"?m(v()):Array.isArray(v)||v instanceof Set?v:[v]}(e);for(let m of h){if(m===null)continue;let v=m instanceof HTMLElement?m:m.current;if(v!=null&&v.contains(d)||l.composed&&l.composedPath().includes(v))return}return!WP(d,BE.Loose)&&d.tabIndex!==-1&&l.preventDefault(),t(l,d)}let u=M.useRef(null);pg("pointerdown",l=>{var f,d;r.current&&(u.current=((d=(f=l.composedPath)==null?void 0:f.call(l))==null?void 0:d[0])||l.target)},!0),pg("mousedown",l=>{var f,d;r.current&&(u.current=((d=(f=l.composedPath)==null?void 0:f.call(l))==null?void 0:d[0])||l.target)},!0),pg("click",l=>{u.current&&(i(l,()=>u.current),u.current=null)},!0),pg("touchend",l=>i(l,()=>l.target instanceof HTMLElement?l.target:null),!0),HE("blur",l=>i(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}let WE=Symbol();function QP(e,t=!0){return Object.assign(e,{[WE]:t})}function Ko(...e){let t=M.useRef(e);M.useEffect(()=>{t.current=e},[e]);let n=Mn(r=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(r):i.current=r)});return e.every(r=>r==null||(r==null?void 0:r[WE]))?void 0:n}function ov(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var uv=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(uv||{}),Ia=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Ia||{});function _o({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:u=!0,name:l}){let f=GE(t,e);if(u)return hg(f,n,r,l);let d=i??0;if(d&2){let{static:h=!1,...m}=f;if(h)return hg(m,n,r,l)}if(d&1){let{unmount:h=!0,...m}=f;return Zr(h?0:1,{0(){return null},1(){return hg({...m,hidden:!0,style:{display:"none"}},n,r,l)}})}return hg(f,n,r,l)}function hg(e,t={},n,r){let{as:i=n,children:u,refName:l="ref",...f}=b0(e,["unmount","static"]),d=e.ref!==void 0?{[l]:e.ref}:{},h=typeof u=="function"?u(t):u;"className"in f&&f.className&&typeof f.className=="function"&&(f.className=f.className(t));let m={};if(t){let v=!1,_=[];for(let[x,A]of Object.entries(t))typeof A=="boolean"&&(v=!0),A===!0&&_.push(x);v&&(m["data-headlessui-state"]=_.join(" "))}if(i===M.Fragment&&Object.keys(cx(f)).length>0){if(!M.isValidElement(h)||Array.isArray(h)&&h.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(f).map(A=>` - ${A}`).join(` +`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(A=>` - ${A}`).join(` +`)].join(` +`));let v=h.props,_=typeof(v==null?void 0:v.className)=="function"?(...A)=>ov(v==null?void 0:v.className(...A),f.className):ov(v==null?void 0:v.className,f.className),x=_?{className:_}:{};return M.cloneElement(h,Object.assign({},GE(h.props,cx(b0(f,["ref"]))),m,d,ZP(h.ref,d.ref),x))}return M.createElement(i,Object.assign({},b0(f,["ref"]),i!==M.Fragment&&d,i!==M.Fragment&&m),h)}function ZP(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}}function GE(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](i,...u){let l=n[r];for(let f of l){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;f(i,...u)}}});return t}function Xi(e){var t;return Object.assign(M.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function cx(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function b0(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function XP(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&JP(n)?!1:r}function JP(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let eI="div";var av=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(av||{});function tI(e,t){let{features:n=1,...r}=e,i={ref:t,"aria-hidden":(n&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return _o({ourProps:i,theirProps:r,slot:{},defaultTag:eI,name:"Hidden"})}let Ry=Xi(tI),q1=M.createContext(null);q1.displayName="OpenClosedContext";var qi=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(qi||{});function K1(){return M.useContext(q1)}function nI({value:e,children:t}){return zt.createElement(q1.Provider,{value:e},t)}var qE=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(qE||{});function V1(e,t){let n=M.useRef([]),r=Mn(e);M.useEffect(()=>{let i=[...n.current];for(let[u,l]of t.entries())if(n.current[u]!==l){let f=r(t,i);return n.current=t,f}},[r,...t])}function rI(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function op(...e){return M.useMemo(()=>zE(...e),[...e])}var Sd=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Sd||{});function iI(){let e=M.useRef(0);return HE("keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function up(){let e=M.useRef(!1);return yo(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function KE(e,t,n,r){let i=Hu(n);M.useEffect(()=>{e=e??window;function u(l){i.current(l)}return e.addEventListener(t,u,r),()=>e.removeEventListener(t,u,r)},[e,t,r])}function oI(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}function VE(e){let t=Mn(e),n=M.useRef(!1);M.useEffect(()=>(n.current=!1,()=>{n.current=!0,Lv(()=>{n.current&&t()})}),[t])}function YE(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}let uI="div";var QE=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(QE||{});function aI(e,t){let n=M.useRef(null),r=Ko(n,t),{initialFocus:i,containers:u,features:l=30,...f}=e;Dc()||(l=1);let d=op(n);cI({ownerDocument:d},!!(l&16));let h=fI({ownerDocument:d,container:n,initialFocus:i},!!(l&2));dI({ownerDocument:d,container:n,containers:u,previousActiveElement:h},!!(l&8));let m=iI(),v=Mn(R=>{let N=n.current;N&&(k=>k())(()=>{Zr(m.current,{[Sd.Forwards]:()=>{Pg(N,Dl.First,{skipElements:[R.relatedTarget]})},[Sd.Backwards]:()=>{Pg(N,Dl.Last,{skipElements:[R.relatedTarget]})}})})}),_=G1(),x=M.useRef(!1),A={ref:r,onKeyDown(R){R.key=="Tab"&&(x.current=!0,_.requestAnimationFrame(()=>{x.current=!1}))},onBlur(R){let N=YE(u);n.current instanceof HTMLElement&&N.add(n.current);let k=R.relatedTarget;k instanceof HTMLElement&&k.dataset.headlessuiFocusGuard!=="true"&&(ZE(N,k)||(x.current?Pg(n.current,Zr(m.current,{[Sd.Forwards]:()=>Dl.Next,[Sd.Backwards]:()=>Dl.Previous})|Dl.WrapAround,{relativeTo:R.target}):R.target instanceof HTMLElement&&ql(R.target)))}};return zt.createElement(zt.Fragment,null,!!(l&4)&&zt.createElement(Ry,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:v,features:av.Focusable}),_o({ourProps:A,theirProps:f,defaultTag:uI,name:"FocusTrap"}),!!(l&4)&&zt.createElement(Ry,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:v,features:av.Focusable}))}let lI=Xi(aI),vd=Object.assign(lI,{features:QE}),Oa=[];oI(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&Oa[0]!==t.target&&(Oa.unshift(t.target),Oa=Oa.filter(n=>n!=null&&n.isConnected),Oa.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function sI(e=!0){let t=M.useRef(Oa.slice());return V1(([n],[r])=>{r===!0&&n===!1&&Lv(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=Oa.slice())},[e,Oa,t]),Mn(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function cI({ownerDocument:e},t){let n=sI(t);V1(()=>{t||(e==null?void 0:e.activeElement)===(e==null?void 0:e.body)&&ql(n())},[t]),VE(()=>{t&&ql(n())})}function fI({ownerDocument:e,container:t,initialFocus:n},r){let i=M.useRef(null),u=up();return V1(()=>{if(!r)return;let l=t.current;l&&Lv(()=>{if(!u.current)return;let f=e==null?void 0:e.activeElement;if(n!=null&&n.current){if((n==null?void 0:n.current)===f){i.current=f;return}}else if(l.contains(f)){i.current=f;return}n!=null&&n.current?ql(n.current):Pg(l,Dl.First)===UE.Error&&console.warn("There are no focusable elements inside the "),i.current=e==null?void 0:e.activeElement})},[r]),i}function dI({ownerDocument:e,container:t,containers:n,previousActiveElement:r},i){let u=up();KE(e==null?void 0:e.defaultView,"focus",l=>{if(!i||!u.current)return;let f=YE(n);t.current instanceof HTMLElement&&f.add(t.current);let d=r.current;if(!d)return;let h=l.target;h&&h instanceof HTMLElement?ZE(f,h)?(r.current=h,ql(h)):(l.preventDefault(),l.stopPropagation(),ql(d)):ql(r.current)},!0)}function ZE(e,t){for(let n of e)if(n.contains(t))return!0;return!1}let XE=M.createContext(!1);function pI(){return M.useContext(XE)}function Py(e){return zt.createElement(XE.Provider,{value:e.force},e.children)}function hI(e){let t=pI(),n=M.useContext(JE),r=op(e),[i,u]=M.useState(()=>{if(!t&&n!==null||Bu.isServer)return null;let l=r==null?void 0:r.getElementById("headlessui-portal-root");if(l)return l;if(r===null)return null;let f=r.createElement("div");return f.setAttribute("id","headlessui-portal-root"),r.body.appendChild(f)});return M.useEffect(()=>{i!==null&&(r!=null&&r.body.contains(i)||r==null||r.body.appendChild(i))},[i,r]),M.useEffect(()=>{t||n!==null&&u(n.current)},[n,u,t]),i}let gI=M.Fragment;function vI(e,t){let n=e,r=M.useRef(null),i=Ko(QP(m=>{r.current=m}),t),u=op(r),l=hI(r),[f]=M.useState(()=>{var m;return Bu.isServer?null:(m=u==null?void 0:u.createElement("div"))!=null?m:null}),d=M.useContext(Iy),h=Dc();return yo(()=>{!l||!f||l.contains(f)||(f.setAttribute("data-headlessui-portal",""),l.appendChild(f))},[l,f]),yo(()=>{if(f&&d)return d.register(f)},[d,f]),VE(()=>{var m;!l||!f||(f instanceof Node&&l.contains(f)&&l.removeChild(f),l.childNodes.length<=0&&((m=l.parentElement)==null||m.removeChild(l)))}),h?!l||!f?null:wE.createPortal(_o({ourProps:{ref:i},theirProps:n,defaultTag:gI,name:"Portal"}),f):null}let mI=M.Fragment,JE=M.createContext(null);function yI(e,t){let{target:n,...r}=e,i={ref:Ko(t)};return zt.createElement(JE.Provider,{value:n},_o({ourProps:i,theirProps:r,defaultTag:mI,name:"Popover.Group"}))}let Iy=M.createContext(null);function _I(){let e=M.useContext(Iy),t=M.useRef([]),n=Mn(u=>(t.current.push(u),e&&e.register(u),()=>r(u))),r=Mn(u=>{let l=t.current.indexOf(u);l!==-1&&t.current.splice(l,1),e&&e.unregister(u)}),i=M.useMemo(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,M.useMemo(()=>function({children:u}){return zt.createElement(Iy.Provider,{value:i},u)},[i])]}let wI=Xi(vI),xI=Xi(yI),jy=Object.assign(wI,{Group:xI}),e2=M.createContext(null);function t2(){let e=M.useContext(e2);if(e===null){let t=new Error("You used a component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,t2),t}return e}function bI(){let[e,t]=M.useState([]);return[e.length>0?e.join(" "):void 0,M.useMemo(()=>function(n){let r=Mn(u=>(t(l=>[...l,u]),()=>t(l=>{let f=l.slice(),d=f.indexOf(u);return d!==-1&&f.splice(d,1),f}))),i=M.useMemo(()=>({register:r,slot:n.slot,name:n.name,props:n.props}),[r,n.slot,n.name,n.props]);return zt.createElement(e2.Provider,{value:i},n.children)},[t])]}let SI="p";function EI(e,t){let n=Mc(),{id:r=`headlessui-description-${n}`,...i}=e,u=t2(),l=Ko(t);yo(()=>u.register(r),[r,u.register]);let f={ref:l,...u.props,id:r};return _o({ourProps:f,theirProps:i,slot:u.slot||{},defaultTag:SI,name:u.name||"Description"})}let kI=Xi(EI),TI=Object.assign(kI,{}),Y1=M.createContext(()=>{});Y1.displayName="StackContext";var Ly=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Ly||{});function CI(){return M.useContext(Y1)}function AI({children:e,onUpdate:t,type:n,element:r,enabled:i}){let u=CI(),l=Mn((...f)=>{t==null||t(...f),u(...f)});return yo(()=>{let f=i===void 0||i===!0;return f&&l(0,n,r),()=>{f&&l(1,n,r)}},[l,n,r,i]),zt.createElement(Y1.Provider,{value:l},e)}function OI(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const RI=typeof Object.is=="function"?Object.is:OI,{useState:PI,useEffect:II,useLayoutEffect:jI,useDebugValue:LI}=Ld;function NI(e,t,n){const r=t(),[{inst:i},u]=PI({inst:{value:r,getSnapshot:t}});return jI(()=>{i.value=r,i.getSnapshot=t,S0(i)&&u({inst:i})},[e,r,t]),II(()=>(S0(i)&&u({inst:i}),e(()=>{S0(i)&&u({inst:i})})),[e]),LI(r),r}function S0(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!RI(n,r)}catch{return!0}}function $I(e,t,n){return t()}const DI=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",MI=!DI,FI=MI?$I:NI,zI="useSyncExternalStore"in Ld?(e=>e.useSyncExternalStore)(Ld):FI;function UI(e){return zI(e.subscribe,e.getSnapshot,e.getSnapshot)}function BI(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(i){return r.add(i),()=>r.delete(i)},dispatch(i,...u){let l=t[i].call(n,...u);l&&(n=l,r.forEach(f=>f()))}}}function HI(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,i=r.clientWidth-r.offsetWidth,u=e-i;n.style(r,"paddingRight",`${u}px`)}}}function WI(){if(!rI())return{};let e;return{before(){e=window.pageYOffset},after({doc:t,d:n,meta:r}){function i(u){return r.containers.flatMap(l=>l()).some(l=>l.contains(u))}n.microTask(()=>{if(window.getComputedStyle(t.documentElement).scrollBehavior!=="auto"){let l=ns();l.style(t.documentElement,"scroll-behavior","auto"),n.add(()=>n.microTask(()=>l.dispose()))}n.style(t.body,"marginTop",`-${e}px`),window.scrollTo(0,0);let u=null;n.addEventListener(t,"click",l=>{if(l.target instanceof HTMLElement)try{let f=l.target.closest("a");if(!f)return;let{hash:d}=new URL(f.href),h=t.querySelector(d);h&&!i(h)&&(u=h)}catch{}},!0),n.addEventListener(t,"touchmove",l=>{l.target instanceof HTMLElement&&!i(l.target)&&l.preventDefault()},{passive:!1}),n.add(()=>{window.scrollTo(0,window.pageYOffset+e),u&&u.isConnected&&(u.scrollIntoView({block:"nearest"}),u=null)})})}}}function GI(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function qI(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Hl=BI(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:ns(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:qI(n)},i=[WI(),HI(),GI()];i.forEach(({before:u})=>u==null?void 0:u(r)),i.forEach(({after:u})=>u==null?void 0:u(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Hl.subscribe(()=>{let e=Hl.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",i=n.count!==0;(i&&!r||!i&&r)&&Hl.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Hl.dispatch("TEARDOWN",n)}});function KI(e,t,n){let r=UI(Hl),i=e?r.get(e):void 0,u=i?i.count>0:!1;return yo(()=>{if(!(!e||!t))return Hl.dispatch("PUSH",e,n),()=>Hl.dispatch("POP",e,n)},[t,e]),u}let E0=new Map,md=new Map;function fx(e,t=!0){yo(()=>{var n;if(!t)return;let r=typeof e=="function"?e():e.current;if(!r)return;function i(){var l;if(!r)return;let f=(l=md.get(r))!=null?l:1;if(f===1?md.delete(r):md.set(r,f-1),f!==1)return;let d=E0.get(r);d&&(d["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",d["aria-hidden"]),r.inert=d.inert,E0.delete(r))}let u=(n=md.get(r))!=null?n:0;return md.set(r,u+1),u!==0||(E0.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),i},[e,t])}function VI({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){var r;let i=M.useRef((r=n==null?void 0:n.current)!=null?r:null),u=op(i),l=Mn(()=>{var f;let d=[];for(let h of e)h!==null&&(h instanceof HTMLElement?d.push(h):"current"in h&&h.current instanceof HTMLElement&&d.push(h.current));if(t!=null&&t.current)for(let h of t.current)d.push(h);for(let h of(f=u==null?void 0:u.querySelectorAll("html > *, body > *"))!=null?f:[])h!==document.body&&h!==document.head&&h instanceof HTMLElement&&h.id!=="headlessui-portal-root"&&(h.contains(i.current)||d.some(m=>h.contains(m))||d.push(h));return d});return{resolveContainers:l,contains:Mn(f=>l().some(d=>d.contains(f))),mainTreeNodeRef:i,MainTreeNode:M.useMemo(()=>function(){return n!=null?null:zt.createElement(Ry,{features:av.Hidden,ref:i})},[i,n])}}var YI=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(YI||{}),QI=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(QI||{});let ZI={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},lv=M.createContext(null);lv.displayName="DialogContext";function ap(e){let t=M.useContext(lv);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,ap),n}return t}function XI(e,t,n=()=>[document.body]){KI(e,t,r=>{var i;return{containers:[...(i=r.containers)!=null?i:[],n]}})}function JI(e,t){return Zr(t.type,ZI,e,t)}let ej="div",tj=uv.RenderStrategy|uv.Static;function nj(e,t){var n;let r=Mc(),{id:i=`headlessui-dialog-${r}`,open:u,onClose:l,initialFocus:f,__demoMode:d=!1,...h}=e,[m,v]=M.useState(0),_=K1();u===void 0&&_!==null&&(u=(_&qi.Open)===qi.Open);let x=M.useRef(null),A=Ko(x,t),R=op(x),N=e.hasOwnProperty("open")||_!==null,k=e.hasOwnProperty("onClose");if(!N&&!k)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!N)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!k)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(typeof u!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${u}`);if(typeof l!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${l}`);let E=u?0:1,[T,P]=M.useReducer(JI,{titleId:null,descriptionId:null,panelRef:M.createRef()}),L=Mn(()=>l(!1)),U=Mn(tt=>P({type:0,id:tt})),G=Dc()?d?!1:E===0:!1,Z=m>1,Ee=M.useContext(lv)!==null,[K,ae]=_I(),{resolveContainers:ne,mainTreeNodeRef:Ie,MainTreeNode:Re}=VI({portals:K,defaultContainers:[(n=T.panelRef.current)!=null?n:x.current]}),Fe=Z?"parent":"leaf",lt=_!==null?(_&qi.Closing)===qi.Closing:!1,Je=(()=>Ee||lt?!1:G)(),le=M.useCallback(()=>{var tt,_t;return(_t=Array.from((tt=R==null?void 0:R.querySelectorAll("body > *"))!=null?tt:[]).find(it=>it.id==="headlessui-portal-root"?!1:it.contains(Ie.current)&&it instanceof HTMLElement))!=null?_t:null},[Ie]);fx(le,Je);let me=(()=>Z?!0:G)(),Le=M.useCallback(()=>{var tt,_t;return(_t=Array.from((tt=R==null?void 0:R.querySelectorAll("[data-headlessui-portal]"))!=null?tt:[]).find(it=>it.contains(Ie.current)&&it instanceof HTMLElement))!=null?_t:null},[Ie]);fx(Le,me);let B=(()=>!(!G||Z))();YP(ne,L,B);let re=(()=>!(Z||E!==0))();KE(R==null?void 0:R.defaultView,"keydown",tt=>{re&&(tt.defaultPrevented||tt.key===qE.Escape&&(tt.preventDefault(),tt.stopPropagation(),L()))});let xe=(()=>!(lt||E!==0||Ee))();XI(R,xe,ne),M.useEffect(()=>{if(E!==0||!x.current)return;let tt=new ResizeObserver(_t=>{for(let it of _t){let Ne=it.target.getBoundingClientRect();Ne.x===0&&Ne.y===0&&Ne.width===0&&Ne.height===0&&L()}});return tt.observe(x.current),()=>tt.disconnect()},[E,x,L]);let[pe,we]=bI(),ye=M.useMemo(()=>[{dialogState:E,close:L,setTitleId:U},T],[E,T,L,U]),ze=M.useMemo(()=>({open:E===0}),[E]),Qe={ref:A,id:i,role:"dialog","aria-modal":E===0?!0:void 0,"aria-labelledby":T.titleId,"aria-describedby":pe};return zt.createElement(AI,{type:"Dialog",enabled:E===0,element:x,onUpdate:Mn((tt,_t)=>{_t==="Dialog"&&Zr(tt,{[Ly.Add]:()=>v(it=>it+1),[Ly.Remove]:()=>v(it=>it-1)})})},zt.createElement(Py,{force:!0},zt.createElement(jy,null,zt.createElement(lv.Provider,{value:ye},zt.createElement(jy.Group,{target:x},zt.createElement(Py,{force:!1},zt.createElement(we,{slot:ze,name:"Dialog.Description"},zt.createElement(vd,{initialFocus:f,containers:ne,features:G?Zr(Fe,{parent:vd.features.RestoreFocus,leaf:vd.features.All&~vd.features.FocusLock}):vd.features.None},zt.createElement(ae,null,_o({ourProps:Qe,theirProps:h,slot:ze,defaultTag:ej,features:tj,visible:E===0,name:"Dialog"}))))))))),zt.createElement(Re,null))}let rj="div";function ij(e,t){let n=Mc(),{id:r=`headlessui-dialog-overlay-${n}`,...i}=e,[{dialogState:u,close:l}]=ap("Dialog.Overlay"),f=Ko(t),d=Mn(m=>{if(m.target===m.currentTarget){if(XP(m.currentTarget))return m.preventDefault();m.preventDefault(),m.stopPropagation(),l()}}),h=M.useMemo(()=>({open:u===0}),[u]);return _o({ourProps:{ref:f,id:r,"aria-hidden":!0,onClick:d},theirProps:i,slot:h,defaultTag:rj,name:"Dialog.Overlay"})}let oj="div";function uj(e,t){let n=Mc(),{id:r=`headlessui-dialog-backdrop-${n}`,...i}=e,[{dialogState:u},l]=ap("Dialog.Backdrop"),f=Ko(t);M.useEffect(()=>{if(l.panelRef.current===null)throw new Error("A component is being used, but a component is missing.")},[l.panelRef]);let d=M.useMemo(()=>({open:u===0}),[u]);return zt.createElement(Py,{force:!0},zt.createElement(jy,null,_o({ourProps:{ref:f,id:r,"aria-hidden":!0},theirProps:i,slot:d,defaultTag:oj,name:"Dialog.Backdrop"})))}let aj="div";function lj(e,t){let n=Mc(),{id:r=`headlessui-dialog-panel-${n}`,...i}=e,[{dialogState:u},l]=ap("Dialog.Panel"),f=Ko(t,l.panelRef),d=M.useMemo(()=>({open:u===0}),[u]),h=Mn(m=>{m.stopPropagation()});return _o({ourProps:{ref:f,id:r,onClick:h},theirProps:i,slot:d,defaultTag:aj,name:"Dialog.Panel"})}let sj="h2";function cj(e,t){let n=Mc(),{id:r=`headlessui-dialog-title-${n}`,...i}=e,[{dialogState:u,setTitleId:l}]=ap("Dialog.Title"),f=Ko(t);M.useEffect(()=>(l(r),()=>l(null)),[r,l]);let d=M.useMemo(()=>({open:u===0}),[u]);return _o({ourProps:{ref:f,id:r},theirProps:i,slot:d,defaultTag:sj,name:"Dialog.Title"})}let fj=Xi(nj),dj=Xi(uj),pj=Xi(lj),hj=Xi(ij),gj=Xi(cj),dx=Object.assign(fj,{Backdrop:dj,Panel:pj,Overlay:hj,Title:gj,Description:TI});function vj(e=0){let[t,n]=M.useState(e),r=up(),i=M.useCallback(d=>{r.current&&n(h=>h|d)},[t,r]),u=M.useCallback(d=>!!(t&d),[t]),l=M.useCallback(d=>{r.current&&n(h=>h&~d)},[n,r]),f=M.useCallback(d=>{r.current&&n(h=>h^d)},[n]);return{flags:t,addFlag:i,hasFlag:u,removeFlag:l,toggleFlag:f}}function mj(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function k0(e,...t){e&&t.length>0&&e.classList.add(...t)}function T0(e,...t){e&&t.length>0&&e.classList.remove(...t)}function yj(e,t){let n=ns();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:i}=getComputedStyle(e),[u,l]=[r,i].map(d=>{let[h=0]=d.split(",").filter(Boolean).map(m=>m.includes("ms")?parseFloat(m):parseFloat(m)*1e3).sort((m,v)=>v-m);return h}),f=u+l;if(f!==0){n.group(h=>{h.setTimeout(()=>{t(),h.dispose()},f),h.addEventListener(e,"transitionrun",m=>{m.target===m.currentTarget&&h.dispose()})});let d=n.addEventListener(e,"transitionend",h=>{h.target===h.currentTarget&&(t(),d())})}else t();return n.add(()=>t()),n.dispose}function _j(e,t,n,r){let i=n?"enter":"leave",u=ns(),l=r!==void 0?mj(r):()=>{};i==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let f=Zr(i,{enter:()=>t.enter,leave:()=>t.leave}),d=Zr(i,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),h=Zr(i,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return T0(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),k0(e,...t.base,...f,...h),u.nextFrame(()=>{T0(e,...t.base,...f,...h),k0(e,...t.base,...f,...d),yj(e,()=>(T0(e,...t.base,...f),k0(e,...t.base,...t.entered),l()))}),u.dispose}function wj({immediate:e,container:t,direction:n,classes:r,onStart:i,onStop:u}){let l=up(),f=G1(),d=Hu(n);yo(()=>{e&&(d.current="enter")},[e]),yo(()=>{let h=ns();f.add(h.dispose);let m=t.current;if(m&&d.current!=="idle"&&l.current)return h.dispose(),i.current(d.current),h.add(_j(m,r.current,d.current==="enter",()=>{h.dispose(),u.current(d.current)})),h.dispose},[n])}function Ea(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let Nv=M.createContext(null);Nv.displayName="TransitionContext";var xj=(e=>(e.Visible="visible",e.Hidden="hidden",e))(xj||{});function bj(){let e=M.useContext(Nv);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}function Sj(){let e=M.useContext($v);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}let $v=M.createContext(null);$v.displayName="NestingContext";function Dv(e){return"children"in e?Dv(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function n2(e,t){let n=Hu(e),r=M.useRef([]),i=up(),u=G1(),l=Mn((x,A=Ia.Hidden)=>{let R=r.current.findIndex(({el:N})=>N===x);R!==-1&&(Zr(A,{[Ia.Unmount](){r.current.splice(R,1)},[Ia.Hidden](){r.current[R].state="hidden"}}),u.microTask(()=>{var N;!Dv(r)&&i.current&&((N=n.current)==null||N.call(n))}))}),f=Mn(x=>{let A=r.current.find(({el:R})=>R===x);return A?A.state!=="visible"&&(A.state="visible"):r.current.push({el:x,state:"visible"}),()=>l(x,Ia.Unmount)}),d=M.useRef([]),h=M.useRef(Promise.resolve()),m=M.useRef({enter:[],leave:[],idle:[]}),v=Mn((x,A,R)=>{d.current.splice(0),t&&(t.chains.current[A]=t.chains.current[A].filter(([N])=>N!==x)),t==null||t.chains.current[A].push([x,new Promise(N=>{d.current.push(N)})]),t==null||t.chains.current[A].push([x,new Promise(N=>{Promise.all(m.current[A].map(([k,E])=>E)).then(()=>N())})]),A==="enter"?h.current=h.current.then(()=>t==null?void 0:t.wait.current).then(()=>R(A)):R(A)}),_=Mn((x,A,R)=>{Promise.all(m.current[A].splice(0).map(([N,k])=>k)).then(()=>{var N;(N=d.current.shift())==null||N()}).then(()=>R(A))});return M.useMemo(()=>({children:r,register:f,unregister:l,onStart:v,onStop:_,wait:h,chains:m}),[f,l,r,v,_,m,h])}function Ej(){}let kj=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function px(e){var t;let n={};for(let r of kj)n[r]=(t=e[r])!=null?t:Ej;return n}function Tj(e){let t=M.useRef(px(e));return M.useEffect(()=>{t.current=px(e)},[e]),t}let Cj="div",r2=uv.RenderStrategy;function Aj(e,t){var n,r;let{beforeEnter:i,afterEnter:u,beforeLeave:l,afterLeave:f,enter:d,enterFrom:h,enterTo:m,entered:v,leave:_,leaveFrom:x,leaveTo:A,...R}=e,N=M.useRef(null),k=Ko(N,t),E=(n=R.unmount)==null||n?Ia.Unmount:Ia.Hidden,{show:T,appear:P,initial:L}=bj(),[U,G]=M.useState(T?"visible":"hidden"),Z=Sj(),{register:Ee,unregister:K}=Z;M.useEffect(()=>Ee(N),[Ee,N]),M.useEffect(()=>{if(E===Ia.Hidden&&N.current){if(T&&U!=="visible"){G("visible");return}return Zr(U,{hidden:()=>K(N),visible:()=>Ee(N)})}},[U,N,Ee,K,T,E]);let ae=Hu({base:Ea(R.className),enter:Ea(d),enterFrom:Ea(h),enterTo:Ea(m),entered:Ea(v),leave:Ea(_),leaveFrom:Ea(x),leaveTo:Ea(A)}),ne=Tj({beforeEnter:i,afterEnter:u,beforeLeave:l,afterLeave:f}),Ie=Dc();M.useEffect(()=>{if(Ie&&U==="visible"&&N.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[N,U,Ie]);let Re=L&&!P,Fe=P&&T&&L,lt=(()=>!Ie||Re?"idle":T?"enter":"leave")(),Je=vj(0),le=Mn(xe=>Zr(xe,{enter:()=>{Je.addFlag(qi.Opening),ne.current.beforeEnter()},leave:()=>{Je.addFlag(qi.Closing),ne.current.beforeLeave()},idle:()=>{}})),me=Mn(xe=>Zr(xe,{enter:()=>{Je.removeFlag(qi.Opening),ne.current.afterEnter()},leave:()=>{Je.removeFlag(qi.Closing),ne.current.afterLeave()},idle:()=>{}})),Le=n2(()=>{G("hidden"),K(N)},Z);wj({immediate:Fe,container:N,classes:ae,direction:lt,onStart:Hu(xe=>{Le.onStart(N,xe,le)}),onStop:Hu(xe=>{Le.onStop(N,xe,me),xe==="leave"&&!Dv(Le)&&(G("hidden"),K(N))})});let B=R,re={ref:k};return Fe?B={...B,className:ov(R.className,...ae.current.enter,...ae.current.enterFrom)}:(B.className=ov(R.className,(r=N.current)==null?void 0:r.className),B.className===""&&delete B.className),zt.createElement($v.Provider,{value:Le},zt.createElement(nI,{value:Zr(U,{visible:qi.Open,hidden:qi.Closed})|Je.flags},_o({ourProps:re,theirProps:B,defaultTag:Cj,features:r2,visible:U==="visible",name:"Transition.Child"})))}function Oj(e,t){let{show:n,appear:r=!1,unmount:i=!0,...u}=e,l=M.useRef(null),f=Ko(l,t);Dc();let d=K1();if(n===void 0&&d!==null&&(n=(d&qi.Open)===qi.Open),![!0,!1].includes(n))throw new Error("A is used but it is missing a `show={true | false}` prop.");let[h,m]=M.useState(n?"visible":"hidden"),v=n2(()=>{m("hidden")}),[_,x]=M.useState(!0),A=M.useRef([n]);yo(()=>{_!==!1&&A.current[A.current.length-1]!==n&&(A.current.push(n),x(!1))},[A,n]);let R=M.useMemo(()=>({show:n,appear:r,initial:_}),[n,r,_]);M.useEffect(()=>{if(n)m("visible");else if(!Dv(v))m("hidden");else{let T=l.current;if(!T)return;let P=T.getBoundingClientRect();P.x===0&&P.y===0&&P.width===0&&P.height===0&&m("hidden")}},[n,v]);let N={unmount:i},k=Mn(()=>{var T;_&&x(!1),(T=e.beforeEnter)==null||T.call(e)}),E=Mn(()=>{var T;_&&x(!1),(T=e.beforeLeave)==null||T.call(e)});return zt.createElement($v.Provider,{value:v},zt.createElement(Nv.Provider,{value:R},_o({ourProps:{...N,as:M.Fragment,children:zt.createElement(i2,{ref:f,...N,...u,beforeEnter:k,beforeLeave:E})},theirProps:{},defaultTag:M.Fragment,features:r2,visible:h==="visible",name:"Transition"})))}function Rj(e,t){let n=M.useContext(Nv)!==null,r=K1()!==null;return zt.createElement(zt.Fragment,null,!n&&r?zt.createElement(Ny,{ref:t,...e}):zt.createElement(i2,{ref:t,...e}))}let Ny=Xi(Oj),i2=Xi(Aj),Pj=Xi(Rj),gg=Object.assign(Ny,{Child:Pj,Root:Ny});function Ij(e){return Y.jsxs(Y.Fragment,{children:[Y.jsx(gg.Root,{show:e.sidebarOpen,as:M.Fragment,children:Y.jsxs(dx,{as:"div",className:"relative z-50 lg:hidden",onClose:e.setSidebarOpen,children:[Y.jsx(gg.Child,{as:M.Fragment,enter:"transition-opacity ease-linear duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition-opacity ease-linear duration-300",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:Y.jsx("div",{className:"fixed inset-0 bg-gray-900/80"})}),Y.jsx("div",{className:"fixed inset-0 flex",children:Y.jsx(gg.Child,{as:M.Fragment,enter:"transition ease-in-out duration-300 transform",enterFrom:"-translate-x-full",enterTo:"translate-x-0",leave:"transition ease-in-out duration-300 transform",leaveFrom:"translate-x-0",leaveTo:"-translate-x-full",children:Y.jsxs(dx.Panel,{className:"relative mr-16 flex w-full max-w-xs flex-1",children:[Y.jsx(gg.Child,{as:M.Fragment,enter:"ease-in-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in-out duration-300",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:Y.jsx("div",{className:"absolute left-full top-0 flex w-16 justify-center pt-5",children:Y.jsxs("button",{type:"button",className:"-m-2.5 p-2.5",onClick:()=>e.setSidebarOpen(!1),children:[Y.jsx("span",{className:"sr-only",children:"Close sidebar"}),Y.jsx(wR,{className:"h-6 w-6 text-white","aria-hidden":"true"})]})})}),Y.jsx("div",{className:"flex grow flex-col gap-y-5 overflow-y-auto bg-white px-6 py-4",children:Y.jsx("nav",{className:"flex flex-1 flex-col",children:Y.jsx("ul",{role:"list",className:"flex flex-1 flex-col gap-y-7",children:Y.jsx("li",{children:e.sidebar})})})})]})})})]})}),Y.jsx("div",{className:"hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-72 lg:flex-col",children:Y.jsx("div",{className:"flex grow flex-col gap-y-5 overflow-y-auto border-r border-gray-200 bg-white px-6 py-4",children:Y.jsx("nav",{className:"flex flex-1 flex-col",children:Y.jsx("ul",{role:"list",className:"flex flex-1 flex-col gap-y-7",children:Y.jsx("li",{children:e.sidebar})})})})}),Y.jsxs("div",{className:"fixed left-0 right-0 top-0 z-40 flex items-center gap-x-6 bg-white px-4 py-4 shadow-sm sm:px-6",children:[Y.jsxs("button",{type:"button",className:"-m-2.5 p-2.5 text-gray-700 lg:hidden",onClick:()=>e.setSidebarOpen(!0),children:[Y.jsx("span",{className:"sr-only",children:"Open sidebar"}),Y.jsx(K3,{className:"h-6 w-6","aria-hidden":"true"})]}),Y.jsx("div",{className:"flex-1 text-sm font-semibold leading-6 text-gray-900 lg:pl-72",children:e.subtitle?Y.jsxs(Y.Fragment,{children:["OpenGPTs: ",Y.jsx("span",{className:"font-normal",children:e.subtitle})]}):"OpenGPTs"}),Y.jsx("div",{className:"inline-flex items-center rounded-md bg-pink-100 px-2 py-1 text-xs font-medium text-pink-700",children:"Research Preview: this is unauthenticated and all data can be found. Do not use with sensitive data"})]}),Y.jsx("main",{className:"pt-20 lg:pl-72 flex flex-col min-h-[calc(100%-56px)]",children:Y.jsx("div",{className:"px-4 sm:px-6 lg:px-8 flex-1",children:e.children})})]})}function hx(e){var t;return Y.jsx("li",{children:Y.jsxs("div",{onClick:()=>e.enterConfig(e.config.assistant_id),className:Qr(e.config===e.currentConfig?"bg-gray-50 text-indigo-600":"text-gray-700 hover:text-indigo-600 hover:bg-gray-50","group flex gap-x-3 rounded-md p-2 text-sm leading-6 font-semibold cursor-pointer"),children:[Y.jsx("span",{className:Qr(e.config===e.currentConfig?"text-indigo-600 border-indigo-600":"text-gray-400 border-gray-200 group-hover:border-indigo-600 group-hover:text-indigo-600","flex h-6 w-6 shrink-0 items-center justify-center rounded-lg border text-[0.625rem] font-medium bg-white"),children:((t=e.config.name)==null?void 0:t[0])??" "}),Y.jsx("span",{className:"truncate",children:e.config.name})]})},e.config.assistant_id)}function jj(e){var t,n;return Y.jsxs(Y.Fragment,{children:[Y.jsxs("div",{onClick:()=>e.enterConfig(null),className:Qr(e.currentConfig===null?"bg-gray-50 text-indigo-600":"text-gray-700 hover:text-indigo-600 hover:bg-gray-50","group flex gap-x-3 rounded-md -mx-2 p-2 text-sm leading-6 font-semibold cursor-pointer"),children:[Y.jsx("span",{className:Qr(e.currentConfig===null?"text-indigo-600 border-indigo-600":"text-gray-400 border-gray-200 group-hover:border-indigo-600 group-hover:text-indigo-600","flex h-6 w-6 shrink-0 items-center justify-center rounded-lg border text-[0.625rem] font-medium bg-white"),children:Y.jsx(xE,{className:"h-4 w-4"})}),Y.jsx("span",{className:"truncate",children:"New Bot"})]}),Y.jsx("div",{className:"text-xs font-semibold leading-6 text-gray-400 mt-4",children:"Your Saved Bots"}),Y.jsx("ul",{role:"list",className:"-mx-2 mt-2 space-y-1",children:((t=e.configs)==null?void 0:t.filter(r=>r.mine).map(r=>Y.jsx(hx,{config:r,currentConfig:e.currentConfig,enterConfig:e.enterConfig},r.assistant_id)))??Y.jsx("li",{className:"leading-6 p-2 animate-pulse font-black text-gray-400 text-lg",children:"..."})}),Y.jsx("div",{className:"text-xs font-semibold leading-6 text-gray-400 mt-4",children:"Public Bots"}),Y.jsx("ul",{role:"list",className:"-mx-2 mt-2 space-y-1",children:((n=e.configs)==null?void 0:n.filter(r=>!r.mine).map(r=>Y.jsx(hx,{config:r,currentConfig:e.currentConfig,enterConfig:e.enterConfig},r.assistant_id)))??Y.jsx("li",{className:"leading-6 p-2 animate-pulse font-black text-gray-400 text-lg",children:"..."})})]})}var o2={exports:{}},Lj="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Nj=Lj,$j=Nj;function u2(){}function a2(){}a2.resetWarningCache=u2;var Dj=function(){function e(r,i,u,l,f,d){if(d!==$j){var h=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 h.name="Invariant Violation",h}}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:a2,resetWarningCache:u2};return n.PropTypes=n,n};o2.exports=Dj();var Mj=o2.exports;const Sn=Ky(Mj);function Fc(e,t,n,r){function i(u){return u instanceof n?u:new n(function(l){l(u)})}return new(n||(n=Promise))(function(u,l){function f(m){try{h(r.next(m))}catch(v){l(v)}}function d(m){try{h(r.throw(m))}catch(v){l(v)}}function h(m){m.done?u(m.value):i(m.value).then(f,d)}h((r=r.apply(e,t||[])).next())})}function zc(e,t){var n={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},r,i,u,l;return l={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function f(h){return function(m){return d([h,m])}}function d(h){if(r)throw new TypeError("Generator is already executing.");for(;l&&(l=0,h[0]&&(n=0)),n;)try{if(r=1,i&&(u=h[0]&2?i.return:h[0]?i.throw||((u=i.return)&&u.call(i),0):i.next)&&!(u=u.call(i,h[1])).done)return u;switch(i=0,u&&(h=[h[0]&2,u.value]),h[0]){case 0:case 1:u=h;break;case 4:return n.label++,{value:h[1],done:!1};case 5:n.label++,i=h[1],h=[0];continue;case 7:h=n.ops.pop(),n.trys.pop();continue;default:if(u=n.trys,!(u=u.length>0&&u[u.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!u||h[1]>u[0]&&h[1]0)&&!(i=r.next()).done;)u.push(i.value)}catch(f){l={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return u}function vx(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,u;r0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function zj(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),i=Fj.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}var Uj=[".DS_Store","Thumbs.db"];function Bj(e){return Fc(this,void 0,void 0,function(){return zc(this,function(t){return sv(e)&&Hj(e.dataTransfer)?[2,Kj(e.dataTransfer,e.type)]:Wj(e)?[2,Gj(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,qj(e)]:[2,[]]})})}function Hj(e){return sv(e)}function Wj(e){return sv(e)&&sv(e.target)}function sv(e){return typeof e=="object"&&e!==null}function Gj(e){return $y(e.target.files).map(function(t){return lp(t)})}function qj(e){return Fc(this,void 0,void 0,function(){var t;return zc(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return lp(r)})]}})})}function Kj(e,t){return Fc(this,void 0,void 0,function(){var n,r;return zc(this,function(i){switch(i.label){case 0:return e.items?(n=$y(e.items).filter(function(u){return u.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(Vj))]):[3,2];case 1:return r=i.sent(),[2,mx(l2(r))];case 2:return[2,mx($y(e.files).map(function(u){return lp(u)}))]}})})}function mx(e){return e.filter(function(t){return Uj.indexOf(t.name)===-1})}function $y(e){if(e===null)return[];for(var t=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nn)return[!1,bx(n)];if(e.sizen)return[!1,bx(n)]}return[!0,null]}function Ml(e){return e!=null}function cL(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,u=e.multiple,l=e.maxFiles,f=e.validator;return!u&&t.length>1||u&&l>=1&&t.length>l?!1:t.every(function(d){var h=d2(d,n),m=Xd(h,1),v=m[0],_=p2(d,r,i),x=Xd(_,1),A=x[0],R=f?f(d):null;return v&&A&&!R})}function cv(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function vg(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Ex(e){e.preventDefault()}function fL(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function dL(e){return e.indexOf("Edge/")!==-1}function pL(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return fL(e)||dL(e)}function lu(){for(var e=arguments.length,t=new Array(e),n=0;n1?i-1:0),l=1;le.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function RL(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,u;for(u=0;u=0)&&(n[i]=e[i]);return n}var Q1=M.forwardRef(function(e,t){var n=e.children,r=fv(e,_L),i=y2(r),u=i.open,l=fv(i,wL);return M.useImperativeHandle(t,function(){return{open:u}},[u]),zt.createElement(M.Fragment,null,n(Un(Un({},l),{},{open:u})))});Q1.displayName="Dropzone";var m2={disabled:!1,getFilesFromEvent:Bj,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Q1.defaultProps=m2;Q1.propTypes={children:Sn.func,accept:Sn.objectOf(Sn.arrayOf(Sn.string)),multiple:Sn.bool,preventDropOnDocument:Sn.bool,noClick:Sn.bool,noKeyboard:Sn.bool,noDrag:Sn.bool,noDragEventsBubbling:Sn.bool,minSize:Sn.number,maxSize:Sn.number,maxFiles:Sn.number,disabled:Sn.bool,getFilesFromEvent:Sn.func,onFileDialogCancel:Sn.func,onFileDialogOpen:Sn.func,useFsAccessApi:Sn.bool,autoFocus:Sn.bool,onDragEnter:Sn.func,onDragLeave:Sn.func,onDragOver:Sn.func,onDrop:Sn.func,onDropAccepted:Sn.func,onDropRejected:Sn.func,onError:Sn.func,validator:Sn.func};var zy={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function y2(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Un(Un({},m2),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,u=t.maxSize,l=t.minSize,f=t.multiple,d=t.maxFiles,h=t.onDragEnter,m=t.onDragLeave,v=t.onDragOver,_=t.onDrop,x=t.onDropAccepted,A=t.onDropRejected,R=t.onFileDialogCancel,N=t.onFileDialogOpen,k=t.useFsAccessApi,E=t.autoFocus,T=t.preventDropOnDocument,P=t.noClick,L=t.noKeyboard,U=t.noDrag,G=t.noDragEventsBubbling,Z=t.onError,Ee=t.validator,K=M.useMemo(function(){return vL(n)},[n]),ae=M.useMemo(function(){return gL(n)},[n]),ne=M.useMemo(function(){return typeof N=="function"?N:Tx},[N]),Ie=M.useMemo(function(){return typeof R=="function"?R:Tx},[R]),Re=M.useRef(null),Fe=M.useRef(null),lt=M.useReducer(PL,zy),Je=C0(lt,2),le=Je[0],me=Je[1],Le=le.isFocused,B=le.isFileDialogActive,re=M.useRef(typeof window<"u"&&window.isSecureContext&&k&&hL()),xe=function(){!re.current&&B&&setTimeout(function(){if(Fe.current){var Ge=Fe.current.files;Ge.length||(me({type:"closeDialog"}),Ie())}},300)};M.useEffect(function(){return window.addEventListener("focus",xe,!1),function(){window.removeEventListener("focus",xe,!1)}},[Fe,B,Ie,re]);var pe=M.useRef([]),we=function(Ge){Re.current&&Re.current.contains(Ge.target)||(Ge.preventDefault(),pe.current=[])};M.useEffect(function(){return T&&(document.addEventListener("dragover",Ex,!1),document.addEventListener("drop",we,!1)),function(){T&&(document.removeEventListener("dragover",Ex),document.removeEventListener("drop",we))}},[Re,T]),M.useEffect(function(){return!r&&E&&Re.current&&Re.current.focus(),function(){}},[Re,E,r]);var ye=M.useCallback(function(Te){Z?Z(Te):console.error(Te)},[Z]),ze=M.useCallback(function(Te){Te.preventDefault(),Te.persist(),Ut(Te),pe.current=[].concat(SL(pe.current),[Te.target]),vg(Te)&&Promise.resolve(i(Te)).then(function(Ge){if(!(cv(Te)&&!G)){var Vt=Ge.length,nn=Vt>0&&cL({files:Ge,accept:K,minSize:l,maxSize:u,multiple:f,maxFiles:d,validator:Ee}),ln=Vt>0&&!nn;me({isDragAccept:nn,isDragReject:ln,isDragActive:!0,type:"setDraggedFiles"}),h&&h(Te)}}).catch(function(Ge){return ye(Ge)})},[i,h,ye,G,K,l,u,f,d,Ee]),Qe=M.useCallback(function(Te){Te.preventDefault(),Te.persist(),Ut(Te);var Ge=vg(Te);if(Ge&&Te.dataTransfer)try{Te.dataTransfer.dropEffect="copy"}catch{}return Ge&&v&&v(Te),!1},[v,G]),tt=M.useCallback(function(Te){Te.preventDefault(),Te.persist(),Ut(Te);var Ge=pe.current.filter(function(nn){return Re.current&&Re.current.contains(nn)}),Vt=Ge.indexOf(Te.target);Vt!==-1&&Ge.splice(Vt,1),pe.current=Ge,!(Ge.length>0)&&(me({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),vg(Te)&&m&&m(Te))},[Re,m,G]),_t=M.useCallback(function(Te,Ge){var Vt=[],nn=[];Te.forEach(function(ln){var fr=d2(ln,K),Gn=C0(fr,2),qn=Gn[0],dr=Gn[1],Tr=p2(ln,l,u),$=C0(Tr,2),z=$[0],q=$[1],ue=Ee?Ee(ln):null;if(qn&&z&&!ue)Vt.push(ln);else{var ie=[dr,q];ue&&(ie=ie.concat(ue)),nn.push({file:ln,errors:ie.filter(function(Ae){return Ae})})}}),(!f&&Vt.length>1||f&&d>=1&&Vt.length>d)&&(Vt.forEach(function(ln){nn.push({file:ln,errors:[sL]})}),Vt.splice(0)),me({acceptedFiles:Vt,fileRejections:nn,type:"setFiles"}),_&&_(Vt,nn,Ge),nn.length>0&&A&&A(nn,Ge),Vt.length>0&&x&&x(Vt,Ge)},[me,f,K,l,u,d,_,x,A,Ee]),it=M.useCallback(function(Te){Te.preventDefault(),Te.persist(),Ut(Te),pe.current=[],vg(Te)&&Promise.resolve(i(Te)).then(function(Ge){cv(Te)&&!G||_t(Ge,Te)}).catch(function(Ge){return ye(Ge)}),me({type:"reset"})},[i,_t,ye,G]),Ne=M.useCallback(function(){if(re.current){me({type:"openDialog"}),ne();var Te={multiple:f,types:ae};window.showOpenFilePicker(Te).then(function(Ge){return i(Ge)}).then(function(Ge){_t(Ge,null),me({type:"closeDialog"})}).catch(function(Ge){mL(Ge)?(Ie(Ge),me({type:"closeDialog"})):yL(Ge)?(re.current=!1,Fe.current?(Fe.current.value=null,Fe.current.click()):ye(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):ye(Ge)});return}Fe.current&&(me({type:"openDialog"}),ne(),Fe.current.value=null,Fe.current.click())},[me,ne,Ie,k,_t,ye,ae,f]),wt=M.useCallback(function(Te){!Re.current||!Re.current.isEqualNode(Te.target)||(Te.key===" "||Te.key==="Enter"||Te.keyCode===32||Te.keyCode===13)&&(Te.preventDefault(),Ne())},[Re,Ne]),gt=M.useCallback(function(){me({type:"focus"})},[]),et=M.useCallback(function(){me({type:"blur"})},[]),Et=M.useCallback(function(){P||(pL()?setTimeout(Ne,0):Ne())},[P,Ne]),kt=function(Ge){return r?null:Ge},_n=function(Ge){return L?null:kt(Ge)},gn=function(Ge){return U?null:kt(Ge)},Ut=function(Ge){G&&Ge.stopPropagation()},jt=M.useMemo(function(){return function(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ge=Te.refKey,Vt=Ge===void 0?"ref":Ge,nn=Te.role,ln=Te.onKeyDown,fr=Te.onFocus,Gn=Te.onBlur,qn=Te.onClick,dr=Te.onDragEnter,Tr=Te.onDragOver,$=Te.onDragLeave,z=Te.onDrop,q=fv(Te,xL);return Un(Un(Fy({onKeyDown:_n(lu(ln,wt)),onFocus:_n(lu(fr,gt)),onBlur:_n(lu(Gn,et)),onClick:kt(lu(qn,Et)),onDragEnter:gn(lu(dr,ze)),onDragOver:gn(lu(Tr,Qe)),onDragLeave:gn(lu($,tt)),onDrop:gn(lu(z,it)),role:typeof nn=="string"&&nn!==""?nn:"presentation"},Vt,Re),!r&&!L?{tabIndex:0}:{}),q)}},[Re,wt,gt,et,Et,ze,Qe,tt,it,L,U,r]),Ze=M.useCallback(function(Te){Te.stopPropagation()},[]),vn=M.useMemo(function(){return function(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ge=Te.refKey,Vt=Ge===void 0?"ref":Ge,nn=Te.onChange,ln=Te.onClick,fr=fv(Te,bL),Gn=Fy({accept:K,multiple:f,type:"file",style:{display:"none"},onChange:kt(lu(nn,it)),onClick:kt(lu(ln,Ze)),tabIndex:-1},Vt,Fe);return Un(Un({},Gn),fr)}},[Fe,n,f,it,r]);return Un(Un({},le),{},{isFocused:Le&&!r,getRootProps:jt,getInputProps:vn,rootRef:Re,inputRef:Fe,open:kt(Ne)})}function PL(e,t){switch(t.type){case"focus":return Un(Un({},e),{},{isFocused:!0});case"blur":return Un(Un({},e),{},{isFocused:!1});case"openDialog":return Un(Un({},zy),{},{isFileDialogActive:!0});case"closeDialog":return Un(Un({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Un(Un({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Un(Un({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Un({},zy);default:return e}}function Tx(){}var dv={exports:{}};/** + * @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 + */dv.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",f="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",h=500,m="__lodash_placeholder__",v=1,_=2,x=4,A=1,R=2,N=1,k=2,E=4,T=8,P=16,L=32,U=64,G=128,Z=256,Ee=512,K=30,ae="...",ne=800,Ie=16,Re=1,Fe=2,lt=3,Je=1/0,le=9007199254740991,me=17976931348623157e292,Le=0/0,B=4294967295,re=B-1,xe=B>>>1,pe=[["ary",G],["bind",N],["bindKey",k],["curry",T],["curryRight",P],["flip",Ee],["partial",L],["partialRight",U],["rearg",Z]],we="[object Arguments]",ye="[object Array]",ze="[object AsyncFunction]",Qe="[object Boolean]",tt="[object Date]",_t="[object DOMException]",it="[object Error]",Ne="[object Function]",wt="[object GeneratorFunction]",gt="[object Map]",et="[object Number]",Et="[object Null]",kt="[object Object]",_n="[object Promise]",gn="[object Proxy]",Ut="[object RegExp]",jt="[object Set]",Ze="[object String]",vn="[object Symbol]",Te="[object Undefined]",Ge="[object WeakMap]",Vt="[object WeakSet]",nn="[object ArrayBuffer]",ln="[object DataView]",fr="[object Float32Array]",Gn="[object Float64Array]",qn="[object Int8Array]",dr="[object Int16Array]",Tr="[object Int32Array]",$="[object Uint8Array]",z="[object Uint8ClampedArray]",q="[object Uint16Array]",ue="[object Uint32Array]",ie=/\b__p \+= '';/g,Ae=/\b(__p \+=) '' \+/g,$e=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ft=/&(?:amp|lt|gt|quot|#39);/g,Bt=/[&<>"']/g,nt=RegExp(ft.source),qt=RegExp(Bt.source),Ht=/<%-([\s\S]+?)%>/g,En=/<%([\s\S]+?)%>/g,$t=/<%=([\s\S]+?)%>/g,An=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rn=/^\w*$/,sn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,lr=/[\\^$.*+?()[\]{}|]/g,$r=RegExp(lr.source),Dr=/^\s+/,Jr=/\s/,pr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,jn=/\{\n\/\* \[wrapped with (.+)\] \*/,Ji=/,? & /,pi=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,vu=/[()=,{}\[\]\/\s]/,Yt=/\\(\\)?/g,Zt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ue=/\w*$/,Q=/^[-+]0x[0-9a-f]+$/i,be=/^0b[01]+$/i,Me=/^\[object .+?Constructor\]$/,Xt=/^0o[0-7]+$/i,xt=/^(?:0|[1-9]\d*)$/,Kn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wn=/($^)/,eo=/['\n\r\u2028\u2029\\]/g,hi="\\ud800-\\udfff",cn="\\u0300-\\u036f",qa="\\ufe20-\\ufe2f",Ka="\\u20d0-\\u20ff",Kc=cn+qa+Ka,Vc="\\u2700-\\u27bf",Yc="a-z\\xdf-\\xf6\\xf8-\\xff",fp="\\xac\\xb1\\xd7\\xf7",ei="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",qv="\\u2000-\\u206f",gi=" \\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",dp="A-Z\\xc0-\\xd6\\xd8-\\xde",Qc="\\ufe0e\\ufe0f",wo=fp+ei+qv+gi,Qu="['’]",Zc="["+hi+"]",kn="["+wo+"]",Oi="["+Kc+"]",rs="\\d+",Kv="["+Vc+"]",is="["+Yc+"]",pp="[^"+hi+wo+rs+Vc+Yc+dp+"]",os="\\ud83c[\\udffb-\\udfff]",us="(?:"+Oi+"|"+os+")",mu="[^"+hi+"]",Xc="(?:\\ud83c[\\udde6-\\uddff]){2}",as="[\\ud800-\\udbff][\\udc00-\\udfff]",yu="["+dp+"]",ls="\\u200d",ss="(?:"+is+"|"+pp+")",hp="(?:"+yu+"|"+pp+")",cs="(?:"+Qu+"(?:d|ll|m|re|s|t|ve))?",fs="(?:"+Qu+"(?:D|LL|M|RE|S|T|VE))?",Mr=us+"?",ds="["+Qc+"]?",Va="(?:"+ls+"(?:"+[mu,Xc,as].join("|")+")"+ds+Mr+")*",gp="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",vp="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",mp=ds+Mr+Va,Vv="(?:"+[Kv,Xc,as].join("|")+")"+mp,Yv="(?:"+[mu+Oi+"?",Oi,Xc,as,Zc].join("|")+")",Qv=RegExp(Qu,"g"),Zu=RegExp(Oi,"g"),Ya=RegExp(os+"(?="+os+")|"+Yv+mp,"g"),yp=RegExp([yu+"?"+is+"+"+cs+"(?="+[kn,yu,"$"].join("|")+")",hp+"+"+fs+"(?="+[kn,yu+ss,"$"].join("|")+")",yu+"?"+ss+"+"+cs,yu+"+"+fs,vp,gp,rs,Vv].join("|"),"g"),Vo=RegExp("["+ls+hi+Kc+Qc+"]"),ps=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Zv=["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"],Xu=-1,Dt={};Dt[fr]=Dt[Gn]=Dt[qn]=Dt[dr]=Dt[Tr]=Dt[$]=Dt[z]=Dt[q]=Dt[ue]=!0,Dt[we]=Dt[ye]=Dt[nn]=Dt[Qe]=Dt[ln]=Dt[tt]=Dt[it]=Dt[Ne]=Dt[gt]=Dt[et]=Dt[kt]=Dt[Ut]=Dt[jt]=Dt[Ze]=Dt[Ge]=!1;var mn={};mn[we]=mn[ye]=mn[nn]=mn[ln]=mn[Qe]=mn[tt]=mn[fr]=mn[Gn]=mn[qn]=mn[dr]=mn[Tr]=mn[gt]=mn[et]=mn[kt]=mn[Ut]=mn[jt]=mn[Ze]=mn[vn]=mn[$]=mn[z]=mn[q]=mn[ue]=!0,mn[it]=mn[Ne]=mn[Ge]=!1;var Yo={À:"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"},ee={"&":"&","<":"<",">":">",'"':""","'":"'"},ge={"&":"&","<":"<",">":">",""":'"',"'":"'"},he={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Oe=parseFloat,mt=parseInt,Wt=typeof Mu=="object"&&Mu&&Mu.Object===Object&&Mu,tr=typeof self=="object"&&self&&self.Object===Object&&self,yn=Wt||tr||Function("return this")(),fn=t&&!t.nodeType&&t,xo=fn&&!0&&e&&!e.nodeType&&e,_p=xo&&xo.exports===fn,Fr=_p&&Wt.process,Cr=function(){try{var V=xo&&xo.require&&xo.require("util").types;return V||Fr&&Fr.binding&&Fr.binding("util")}catch{}}(),wp=Cr&&Cr.isArrayBuffer,_u=Cr&&Cr.isDate,Qa=Cr&&Cr.isMap,Za=Cr&&Cr.isRegExp,tn=Cr&&Cr.isSet,xp=Cr&&Cr.isTypedArray;function zr(V,oe,te){switch(te.length){case 0:return V.call(oe);case 1:return V.call(oe,te[0]);case 2:return V.call(oe,te[0],te[1]);case 3:return V.call(oe,te[0],te[1],te[2])}return V.apply(oe,te)}function hs(V,oe,te,De){for(var vt=-1,Mt=V==null?0:V.length;++vt-1}function Ju(V,oe,te){for(var De=-1,vt=V==null?0:V.length;++De-1;);return te}function na(V,oe){for(var te=V.length;te--&&ta(oe,V[te],0)>-1;);return te}function nf(V,oe){for(var te=V.length,De=0;te--;)V[te]===oe&&++De;return De}var ra=Jc(Yo),il=Jc(ee);function ol(V){return"\\"+he[V]}function _s(V,oe){return V==null?n:V[oe]}function ji(V){return Vo.test(V)}function tm(V){return ps.test(V)}function nm(V){for(var oe,te=[];!(oe=V.next()).done;)te.push(oe.value);return te}function rf(V){var oe=-1,te=Array(V.size);return V.forEach(function(De,vt){te[++oe]=[vt,De]}),te}function Tp(V,oe){return function(te){return V(oe(te))}}function Qo(V,oe){for(var te=-1,De=V.length,vt=0,Mt=[];++te-1}function Hp(o,s){var p=this.__data__,y=bl(p,o);return y<0?(++this.size,p.push([o,s])):p[y][1]=s,this}no.prototype.clear=pf,no.prototype.delete=zp,no.prototype.get=Up,no.prototype.has=Bp,no.prototype.set=Hp;function Nn(o){var s=-1,p=o==null?0:o.length;for(this.clear();++s=s?o:s)),o}function Hr(o,s,p,y,S,I){var D,H=s&v,X=s&_,fe=s&x;if(p&&(D=S?p(o,y,S,I):p(o)),D!==n)return D;if(!zn(o))return o;var de=St(o);if(de){if(D=ma(o),!H)return Yn(o,D)}else{var _e=br(o),Pe=_e==Ne||_e==wt;if(wa(o))return gh(o,H);if(_e==kt||_e==we||Pe&&!S){if(D=X||Pe?{}:Eh(o),!H)return X?Gr(o,Yp(D,o)):vm(o,vf(D,o))}else{if(!mn[_e])return S?o:{};D=kh(o,_e,H)}}I||(I=new _i);var Ye=I.get(o);if(Ye)return Ye;I.set(o,D),b_(o)?o.forEach(function(ht){D.add(Hr(ht,s,p,ht,o,I))}):w_(o)&&o.forEach(function(ht,Ft){D.set(Ft,Hr(ht,s,p,Ft,o,I))});var pt=fe?X?Gf:Wf:X?bi:Sr,Rt=de?n:pt(o);return vi(Rt||o,function(ht,Ft){Rt&&(Ft=ht,ht=o[Ft]),xl(D,Ft,Hr(ht,s,p,Ft,o,I))}),D}function mf(o){var s=Sr(o);return function(p){return Os(p,o,s)}}function Os(o,s,p){var y=p.length;if(o==null)return!y;for(o=dn(o);y--;){var S=p[y],I=s[S],D=o[S];if(D===n&&!(S in o)||!I(D))return!1}return!0}function Sl(o,s,p){if(typeof o!="function")throw new Br(l);return Pl(function(){o.apply(n,p)},s)}function io(o,s,p,y){var S=-1,I=Pi,D=!0,H=o.length,X=[],fe=s.length;if(!H)return X;p&&(s=xn(s,ti(p))),y?(I=Ju,D=!1):s.length>=i&&(I=rl,D=!1,s=new nu(s));e:for(;++SS?0:S+p),y=y===n||y>S?S:Ot(y),y<0&&(y+=S),y=p>y?0:E_(y);p0&&p(H)?s>1?Qt(H,s-1,p,y,S):Ii(S,H):y||(S[S.length]=H)}return S}var Rs=Bs(),xf=Bs(!0);function uo(o,s){return o&&Rs(o,s,Sr)}function Ni(o,s){return o&&xf(o,s,Sr)}function sr(o,s){return Ri(s,function(p){return ju(o[p])})}function Ro(o,s){s=ao(s,o);for(var p=0,y=s.length;o!=null&&ps}function Qp(o,s){return o!=null&&Nt.call(o,s)}function Zp(o,s){return o!=null&&s in dn(o)}function Xp(o,s,p){return o>=nr(s,p)&&o=120&&de.length>=120)?new nu(D&&de):n}de=o[0];var _e=-1,Pe=H[0];e:for(;++_e-1;)H!==o&&oa.call(H,X,1),oa.call(o,X,1);return o}function ah(o,s){for(var p=o?s.length:0,y=p-1;p--;){var S=s[p];if(p==y||S!==I){var I=S;No(S)?oa.call(o,S,1):jf(o,S)}}return o}function Of(o,s){return o+pl(lf()*(s-o+1))}function Rf(o,s,p,y){for(var S=-1,I=Vn(dl((s-o)/(p||1)),0),D=te(I);I--;)D[y?I:++S]=o,o+=p;return D}function Ds(o,s){var p="";if(!o||s<1||s>le)return p;do s%2&&(p+=o),s=pl(s/2),s&&(o+=o);while(s);return p}function Ct(o,s){return Xf(Oh(o,s,Si),o+"")}function fm(o){return gf(ic(o))}function dm(o,s){var p=ic(o);return Ys(p,Ar(s,0,p.length))}function Tl(o,s,p,y){if(!zn(o))return o;s=ao(s,o);for(var S=-1,I=s.length,D=I-1,H=o;H!=null&&++SS?0:S+s),p=p>S?S:p,p<0&&(p+=S),S=s>p?0:p-s>>>0,s>>>=0;for(var I=te(S);++y>>1,D=o[I];D!==null&&!zi(D)&&(p?D<=s:D=i){var fe=s?null:bt(o);if(fe)return xu(fe);D=!1,S=rl,X=new nu}else X=s?[]:H;e:for(;++y=y?o:Rr(o,s,p)}var hh=Ip||function(o){return yn.clearTimeout(o)};function gh(o,s){if(s)return o.slice();var p=o.length,y=sl?sl(p):new o.constructor(p);return o.copy(y),y}function da(o){var s=new o.constructor(o.byteLength);return new ia(s).set(new ia(o)),s}function Us(o,s){var p=s?da(o.buffer):o.buffer;return new o.constructor(p,o.byteOffset,o.byteLength)}function gm(o){var s=new o.constructor(o.source,Ue.exec(o));return s.lastIndex=o.lastIndex,s}function Nf(o){return aa?dn(aa.call(o)):{}}function $f(o,s){var p=s?da(o.buffer):o.buffer;return new o.constructor(p,o.byteOffset,o.length)}function vh(o,s){if(o!==s){var p=o!==n,y=o===null,S=o===o,I=zi(o),D=s!==n,H=s===null,X=s===s,fe=zi(s);if(!H&&!fe&&!I&&o>s||I&&D&&X&&!H&&!fe||y&&D&&X||!p&&X||!S)return 1;if(!y&&!I&&!fe&&o=H)return X;var fe=p[y];return X*(fe=="desc"?-1:1)}}return o.index-s.index}function mh(o,s,p,y){for(var S=-1,I=o.length,D=p.length,H=-1,X=s.length,fe=Vn(I-D,0),de=te(X+fe),_e=!y;++H1?p[S-1]:n,D=S>2?p[2]:n;for(I=o.length>3&&typeof I=="function"?(S--,I):n,D&&Pr(p[0],p[1],D)&&(I=S<3?n:I,S=1),s=dn(s);++y-1?S[I?s[D]:D]:n}}function Ff(o){return Lo(function(s){var p=s.length,y=p,S=ii.prototype.thru;for(o&&s.reverse();y--;){var I=s[y];if(typeof I!="function")throw new Br(l);if(S&&!D&&ga(I)=="wrapper")var D=new ii([],!0)}for(y=D?y:p;++y1&&Kt.reverse(),de&&XH))return!1;var fe=I.get(o),de=I.get(s);if(fe&&de)return fe==s&&de==o;var _e=-1,Pe=!0,Ye=p&R?new nu:n;for(I.set(o,s),I.set(s,o);++_e1?"& ":"")+s[y],s=s.join(p>2?", ":" "),o.replace(pr,`{ +/* [wrapped with `+s+`] */ +`)}function wm(o){return St(o)||jl(o)||!!(Pp&&o&&o[Pp])}function No(o,s){var p=typeof o;return s=s??le,!!s&&(p=="number"||p!="symbol"&&xt.test(o))&&o>-1&&o%1==0&&o0){if(++s>=ne)return arguments[0]}else s=0;return o.apply(n,arguments)}}function Ys(o,s){var p=-1,y=o.length,S=y-1;for(s=s===n?y:s;++p1?o[s-1]:n;return p=typeof p=="function"?(o.pop(),p):n,l_(o,p)});function s_(o){var s=C(o);return s.__chain__=!0,s}function uk(o,s){return s(o),o}function $h(o,s){return s(o)}var ak=Lo(function(o){var s=o.length,p=s?o[0]:0,y=this.__wrapped__,S=function(I){return As(I,o)};return s>1||this.__actions__.length||!(y instanceof Tt)||!No(p)?this.thru(S):(y=y.slice(p,+p+(s?1:0)),y.__actions__.push({func:$h,args:[S],thisArg:n}),new ii(y,this.__chain__).thru(function(I){return s&&!I.length&&I.push(n),I}))});function lk(){return s_(this)}function sk(){return new ii(this.value(),this.__chain__)}function ck(){this.__values__===n&&(this.__values__=S_(this.value()));var o=this.__index__>=this.__values__.length,s=o?n:this.__values__[this.__index__++];return{done:o,value:s}}function fk(){return this}function dk(o){for(var s,p=this;p instanceof la;){var y=jh(p);y.__index__=0,y.__values__=n,s?S.__wrapped__=y:s=y;var S=y;p=p.__wrapped__}return S.__wrapped__=o,s}function pk(){var o=this.__wrapped__;if(o instanceof Tt){var s=o;return this.__actions__.length&&(s=new Tt(this)),s=s.reverse(),s.__actions__.push({func:$h,args:[Fi],thisArg:n}),new ii(s,this.__chain__)}return this.thru(Fi)}function hk(){return dh(this.__wrapped__,this.__actions__)}var gk=Tn(function(o,s,p){Nt.call(o,p)?++o[p]:Oo(o,p,1)});function vk(o,s,p){var y=St(o)?bp:yf;return p&&Pr(o,s,p)&&(s=n),y(o,ut(s,3))}function mk(o,s){var p=St(o)?Ri:wf;return p(o,ut(s,3))}var yk=Mf(F),_k=Mf(W);function wk(o,s){return Qt(Dh(o,s),1)}function xk(o,s){return Qt(Dh(o,s),Je)}function bk(o,s,p){return p=p===n?1:Ot(p),Qt(Dh(o,s),p)}function c_(o,s){var p=St(o)?vi:Ve;return p(o,ut(s,3))}function f_(o,s){var p=St(o)?Xv:El;return p(o,ut(s,3))}var Sk=Tn(function(o,s,p){Nt.call(o,p)?o[p].push(s):Oo(o,p,[s])});function Ek(o,s,p,y){o=xi(o)?o:ic(o),p=p&&!y?Ot(p):0;var S=o.length;return p<0&&(p=Vn(S+p,0)),Bh(o)?p<=S&&o.indexOf(s,p)>-1:!!S&&ta(o,s,p)>-1}var kk=Ct(function(o,s,p){var y=-1,S=typeof s=="function",I=xi(o)?te(o.length):[];return Ve(o,function(D){I[++y]=S?zr(s,D,p):Ou(D,s,p)}),I}),Tk=Tn(function(o,s,p){Oo(o,p,s)});function Dh(o,s){var p=St(o)?xn:kf;return p(o,ut(s,3))}function Ck(o,s,p,y){return o==null?[]:(St(s)||(s=s==null?[]:[s]),p=y?n:p,St(p)||(p=p==null?[]:[p]),ih(o,s,p))}var Ak=Tn(function(o,s,p){o[p?0:1].push(s)},function(){return[[],[]]});function Ok(o,s,p){var y=St(o)?gs:ef,S=arguments.length<3;return y(o,ut(s,4),p,S,Ve)}function Rk(o,s,p){var y=St(o)?Sp:ef,S=arguments.length<3;return y(o,ut(s,4),p,S,El)}function Pk(o,s){var p=St(o)?Ri:wf;return p(o,zh(ut(s,3)))}function Ik(o){var s=St(o)?gf:fm;return s(o)}function jk(o,s,p){(p?Pr(o,s,p):s===n)?s=1:s=Ot(s);var y=St(o)?Cs:dm;return y(o,s)}function Lk(o){var s=St(o)?Vp:sh;return s(o)}function Nk(o){if(o==null)return 0;if(xi(o))return Bh(o)?Li(o):o.length;var s=br(o);return s==gt||s==jt?o.size:Ef(o).length}function $k(o,s,p){var y=St(o)?ea:hm;return p&&Pr(o,s,p)&&(s=n),y(o,ut(s,3))}var Dk=Ct(function(o,s){if(o==null)return[];var p=s.length;return p>1&&Pr(o,s[0],s[1])?s=[]:p>2&&Pr(s[0],s[1],s[2])&&(s=[s[0]]),ih(o,Qt(s,1),[])}),Mh=fl||function(){return yn.Date.now()};function Mk(o,s){if(typeof s!="function")throw new Br(l);return o=Ot(o),function(){if(--o<1)return s.apply(this,arguments)}}function d_(o,s,p){return s=p?n:s,s=o&&s==null?o.length:s,Qn(o,G,n,n,n,n,s)}function p_(o,s){var p;if(typeof s!="function")throw new Br(l);return o=Ot(o),function(){return--o>0&&(p=s.apply(this,arguments)),o<=1&&(s=n),p}}var Rm=Ct(function(o,s,p){var y=N;if(p.length){var S=Qo(p,va(Rm));y|=L}return Qn(o,y,s,p,S)}),h_=Ct(function(o,s,p){var y=N|k;if(p.length){var S=Qo(p,va(h_));y|=L}return Qn(s,y,o,p,S)});function g_(o,s,p){s=p?n:s;var y=Qn(o,T,n,n,n,n,n,s);return y.placeholder=g_.placeholder,y}function v_(o,s,p){s=p?n:s;var y=Qn(o,P,n,n,n,n,n,s);return y.placeholder=v_.placeholder,y}function m_(o,s,p){var y,S,I,D,H,X,fe=0,de=!1,_e=!1,Pe=!0;if(typeof o!="function")throw new Br(l);s=so(s)||0,zn(p)&&(de=!!p.leading,_e="maxWait"in p,I=_e?Vn(so(p.maxWait)||0,s):I,Pe="trailing"in p?!!p.trailing:Pe);function Ye(ur){var Do=y,Nu=S;return y=S=n,fe=ur,D=o.apply(Nu,Do),D}function pt(ur){return fe=ur,H=Pl(Ft,s),de?Ye(ur):D}function Rt(ur){var Do=ur-X,Nu=ur-fe,$_=s-Do;return _e?nr($_,I-Nu):$_}function ht(ur){var Do=ur-X,Nu=ur-fe;return X===n||Do>=s||Do<0||_e&&Nu>=I}function Ft(){var ur=Mh();if(ht(ur))return Kt(ur);H=Pl(Ft,Rt(ur))}function Kt(ur){return H=n,Pe&&y?Ye(ur):(y=S=n,D)}function Ui(){H!==n&&hh(H),fe=0,y=X=S=H=n}function ai(){return H===n?D:Kt(Mh())}function Bi(){var ur=Mh(),Do=ht(ur);if(y=arguments,S=this,X=ur,Do){if(H===n)return pt(X);if(_e)return hh(H),H=Pl(Ft,s),Ye(X)}return H===n&&(H=Pl(Ft,s)),D}return Bi.cancel=Ui,Bi.flush=ai,Bi}var Fk=Ct(function(o,s){return Sl(o,1,s)}),zk=Ct(function(o,s,p){return Sl(o,so(s)||0,p)});function Uk(o){return Qn(o,Ee)}function Fh(o,s){if(typeof o!="function"||s!=null&&typeof s!="function")throw new Br(l);var p=function(){var y=arguments,S=s?s.apply(this,y):y[0],I=p.cache;if(I.has(S))return I.get(S);var D=o.apply(this,y);return p.cache=I.set(S,D)||I,D};return p.cache=new(Fh.Cache||Nn),p}Fh.Cache=Nn;function zh(o){if(typeof o!="function")throw new Br(l);return function(){var s=arguments;switch(s.length){case 0:return!o.call(this);case 1:return!o.call(this,s[0]);case 2:return!o.call(this,s[0],s[1]);case 3:return!o.call(this,s[0],s[1],s[2])}return!o.apply(this,s)}}function Bk(o){return p_(2,o)}var Hk=ph(function(o,s){s=s.length==1&&St(s[0])?xn(s[0],ti(ut())):xn(Qt(s,1),ti(ut()));var p=s.length;return Ct(function(y){for(var S=-1,I=nr(y.length,p);++S=s}),jl=bf(function(){return arguments}())?bf:function(o){return Jn(o)&&Nt.call(o,"callee")&&!wr.call(o,"callee")},St=te.isArray,iT=wp?ti(wp):kl;function xi(o){return o!=null&&Uh(o.length)&&!ju(o)}function or(o){return Jn(o)&&xi(o)}function oT(o){return o===!0||o===!1||Jn(o)&&Or(o)==Qe}var wa=rm||Bm,uT=_u?ti(_u):Sf;function aT(o){return Jn(o)&&o.nodeType===1&&!nd(o)}function lT(o){if(o==null)return!0;if(xi(o)&&(St(o)||typeof o=="string"||typeof o.splice=="function"||wa(o)||rc(o)||jl(o)))return!o.length;var s=br(o);if(s==gt||s==jt)return!o.size;if(ya(o))return!Ef(o).length;for(var p in o)if(Nt.call(o,p))return!1;return!0}function sT(o,s){return fa(o,s)}function cT(o,s,p){p=typeof p=="function"?p:n;var y=p?p(o,s):n;return y===n?fa(o,s,n,p):!!y}function Im(o){if(!Jn(o))return!1;var s=Or(o);return s==it||s==_t||typeof o.message=="string"&&typeof o.name=="string"&&!nd(o)}function fT(o){return typeof o=="number"&&xs(o)}function ju(o){if(!zn(o))return!1;var s=Or(o);return s==Ne||s==wt||s==ze||s==gn}function __(o){return typeof o=="number"&&o==Ot(o)}function Uh(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=le}function zn(o){var s=typeof o;return o!=null&&(s=="object"||s=="function")}function Jn(o){return o!=null&&typeof o=="object"}var w_=Qa?ti(Qa):js;function dT(o,s){return o===s||Ls(o,s,Zn(s))}function pT(o,s,p){return p=typeof p=="function"?p:n,Ls(o,s,Zn(s),p)}function hT(o){return x_(o)&&o!=+o}function gT(o){if(Ch(o))throw new vt(u);return $i(o)}function vT(o){return o===null}function mT(o){return o==null}function x_(o){return typeof o=="number"||Jn(o)&&Or(o)==et}function nd(o){if(!Jn(o)||Or(o)!=kt)return!1;var s=ko(o);if(s===null)return!0;var p=Nt.call(s,"constructor")&&s.constructor;return typeof p=="function"&&p instanceof p&&Zo.call(p)==Rp}var jm=Za?ti(Za):Ru;function yT(o){return __(o)&&o>=-le&&o<=le}var b_=tn?ti(tn):eh;function Bh(o){return typeof o=="string"||!St(o)&&Jn(o)&&Or(o)==Ze}function zi(o){return typeof o=="symbol"||Jn(o)&&Or(o)==vn}var rc=xp?ti(xp):sm;function _T(o){return o===n}function wT(o){return Jn(o)&&br(o)==Ge}function xT(o){return Jn(o)&&Or(o)==Vt}var bT=Ws(Ns),ST=Ws(function(o,s){return o<=s});function S_(o){if(!o)return[];if(xi(o))return Bh(o)?Ur(o):Yn(o);if(cl&&o[cl])return nm(o[cl]());var s=br(o),p=s==gt?rf:s==jt?xu:ic;return p(o)}function Lu(o){if(!o)return o===0?o:0;if(o=so(o),o===Je||o===-Je){var s=o<0?-1:1;return s*me}return o===o?o:0}function Ot(o){var s=Lu(o),p=s%1;return s===s?p?s-p:s:0}function E_(o){return o?Ar(Ot(o),0,B):0}function so(o){if(typeof o=="number")return o;if(zi(o))return Le;if(zn(o)){var s=typeof o.valueOf=="function"?o.valueOf():o;o=zn(s)?s+"":s}if(typeof o!="string")return o===0?o:+o;o=kp(o);var p=be.test(o);return p||Xt.test(o)?mt(o.slice(2),p?2:8):Q.test(o)?Le:+o}function k_(o){return ot(o,bi(o))}function ET(o){return o?Ar(Ot(o),-le,le):o===0?o:0}function on(o){return o==null?"":Wr(o)}var kT=ui(function(o,s){if(ya(s)||xi(s)){ot(s,Sr(s),o);return}for(var p in s)Nt.call(s,p)&&xl(o,p,s[p])}),T_=ui(function(o,s){ot(s,bi(s),o)}),Hh=ui(function(o,s,p,y){ot(s,bi(s),o,y)}),TT=ui(function(o,s,p,y){ot(s,Sr(s),o,y)}),CT=Lo(As);function AT(o,s){var p=ri(o);return s==null?p:vf(p,s)}var OT=Ct(function(o,s){o=dn(o);var p=-1,y=s.length,S=y>2?s[2]:n;for(S&&Pr(s[0],s[1],S)&&(y=1);++p1),I}),ot(o,Gf(o),p),y&&(p=Hr(p,v|_|x,mm));for(var S=s.length;S--;)jf(p,s[S]);return p});function KT(o,s){return A_(o,zh(ut(s)))}var VT=Lo(function(o,s){return o==null?{}:oh(o,s)});function A_(o,s){if(o==null)return{};var p=xn(Gf(o),function(y){return[y]});return s=ut(s),uh(o,p,function(y,S){return s(y,S[0])})}function YT(o,s,p){s=ao(s,o);var y=-1,S=s.length;for(S||(S=1,o=n);++ys){var y=o;o=s,s=y}if(p||o%1||s%1){var S=lf();return nr(o+S*(s-o+Oe("1e-"+((S+"").length-1))),s)}return Of(o,s)}var uC=jo(function(o,s,p){return s=s.toLowerCase(),o+(p?P_(s):s)});function P_(o){return $m(on(o).toLowerCase())}function I_(o){return o=on(o),o&&o.replace(Kn,ra).replace(Zu,"")}function aC(o,s,p){o=on(o),s=Wr(s);var y=o.length;p=p===n?y:Ar(Ot(p),0,y);var S=p;return p-=s.length,p>=0&&o.slice(p,S)==s}function lC(o){return o=on(o),o&&qt.test(o)?o.replace(Bt,il):o}function sC(o){return o=on(o),o&&$r.test(o)?o.replace(lr,"\\$&"):o}var cC=jo(function(o,s,p){return o+(p?"-":"")+s.toLowerCase()}),fC=jo(function(o,s,p){return o+(p?" ":"")+s.toLowerCase()}),dC=Df("toLowerCase");function pC(o,s,p){o=on(o),s=Ot(s);var y=s?Li(o):0;if(!s||y>=s)return o;var S=(s-y)/2;return xr(pl(S),p)+o+xr(dl(S),p)}function hC(o,s,p){o=on(o),s=Ot(s);var y=s?Li(o):0;return s&&y>>0,p?(o=on(o),o&&(typeof s=="string"||s!=null&&!jm(s))&&(s=Wr(s),!s&&ji(o))?Po(Ur(o),0,p):o.split(s,p)):[]}var xC=jo(function(o,s,p){return o+(p?" ":"")+$m(s)});function bC(o,s,p){return o=on(o),p=p==null?0:Ar(Ot(p),0,o.length),s=Wr(s),o.slice(p,p+s.length)==s}function SC(o,s,p){var y=C.templateSettings;p&&Pr(o,s,p)&&(s=n),o=on(o),s=Hh({},s,y,Bf);var S=Hh({},s.imports,y.imports,Bf),I=Sr(S),D=ms(S,I),H,X,fe=0,de=s.interpolate||wn,_e="__p += '",Pe=ws((s.escape||wn).source+"|"+de.source+"|"+(de===$t?Zt:wn).source+"|"+(s.evaluate||wn).source+"|$","g"),Ye="//# sourceURL="+(Nt.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Xu+"]")+` +`;o.replace(Pe,function(ht,Ft,Kt,Ui,ai,Bi){return Kt||(Kt=Ui),_e+=o.slice(fe,Bi).replace(eo,ol),Ft&&(H=!0,_e+=`' + +__e(`+Ft+`) + +'`),ai&&(X=!0,_e+=`'; +`+ai+`; +__p += '`),Kt&&(_e+=`' + +((__t = (`+Kt+`)) == null ? '' : __t) + +'`),fe=Bi+ht.length,ht}),_e+=`'; +`;var pt=Nt.call(s,"variable")&&s.variable;if(!pt)_e=`with (obj) { +`+_e+` +} +`;else if(vu.test(pt))throw new vt(f);_e=(X?_e.replace(ie,""):_e).replace(Ae,"$1").replace($e,"$1;"),_e="function("+(pt||"obj")+`) { +`+(pt?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(H?", __e = _.escape":"")+(X?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+_e+`return __p +}`;var Rt=L_(function(){return Mt(I,Ye+"return "+_e).apply(n,D)});if(Rt.source=_e,Im(Rt))throw Rt;return Rt}function EC(o){return on(o).toLowerCase()}function kC(o){return on(o).toUpperCase()}function TC(o,s,p){if(o=on(o),o&&(p||s===n))return kp(o);if(!o||!(s=Wr(s)))return o;var y=Ur(o),S=Ur(s),I=ys(y,S),D=na(y,S)+1;return Po(y,I,D).join("")}function CC(o,s,p){if(o=on(o),o&&(p||s===n))return o.slice(0,ni(o)+1);if(!o||!(s=Wr(s)))return o;var y=Ur(o),S=na(y,Ur(s))+1;return Po(y,0,S).join("")}function AC(o,s,p){if(o=on(o),o&&(p||s===n))return o.replace(Dr,"");if(!o||!(s=Wr(s)))return o;var y=Ur(o),S=ys(y,Ur(s));return Po(y,S).join("")}function OC(o,s){var p=K,y=ae;if(zn(s)){var S="separator"in s?s.separator:S;p="length"in s?Ot(s.length):p,y="omission"in s?Wr(s.omission):y}o=on(o);var I=o.length;if(ji(o)){var D=Ur(o);I=D.length}if(p>=I)return o;var H=p-Li(y);if(H<1)return y;var X=D?Po(D,0,H).join(""):o.slice(0,H);if(S===n)return X+y;if(D&&(H+=X.length-H),jm(S)){if(o.slice(H).search(S)){var fe,de=X;for(S.global||(S=ws(S.source,on(Ue.exec(S))+"g")),S.lastIndex=0;fe=S.exec(de);)var _e=fe.index;X=X.slice(0,_e===n?H:_e)}}else if(o.indexOf(Wr(S),H)!=H){var Pe=X.lastIndexOf(S);Pe>-1&&(X=X.slice(0,Pe))}return X+y}function RC(o){return o=on(o),o&&nt.test(o)?o.replace(ft,Lt):o}var PC=jo(function(o,s,p){return o+(p?" ":"")+s.toUpperCase()}),$m=Df("toUpperCase");function j_(o,s,p){return o=on(o),s=p?n:s,s===n?tm(o)?So(o):wu(o):o.match(s)||[]}var L_=Ct(function(o,s){try{return zr(o,n,s)}catch(p){return Im(p)?p:new vt(p)}}),IC=Lo(function(o,s){return vi(s,function(p){p=wi(p),Oo(o,p,Rm(o[p],o))}),o});function jC(o){var s=o==null?0:o.length,p=ut();return o=s?xn(o,function(y){if(typeof y[1]!="function")throw new Br(l);return[p(y[0]),y[1]]}):[],Ct(function(y){for(var S=-1;++Sle)return[];var p=B,y=nr(o,B);s=ut(s),o-=B;for(var S=Fn(y,s);++p0||s<0)?new Tt(p):(o<0?p=p.takeRight(-o):o&&(p=p.drop(o)),s!==n&&(s=Ot(s),p=s<0?p.dropRight(-s):p.take(s-o)),p)},Tt.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},Tt.prototype.toArray=function(){return this.take(B)},uo(Tt.prototype,function(o,s){var p=/^(?:filter|find|map|reject)|While$/.test(s),y=/^(?:head|last)$/.test(s),S=C[y?"take"+(s=="last"?"Right":""):s],I=y||/^find/.test(s);S&&(C.prototype[s]=function(){var D=this.__wrapped__,H=y?[1]:arguments,X=D instanceof Tt,fe=H[0],de=X||St(D),_e=function(Ft){var Kt=S.apply(C,Ii([Ft],H));return y&&Pe?Kt[0]:Kt};de&&p&&typeof fe=="function"&&fe.length!=1&&(X=de=!1);var Pe=this.__chain__,Ye=!!this.__actions__.length,pt=I&&!Pe,Rt=X&&!Ye;if(!I&&de){D=Rt?D:new Tt(this);var ht=o.apply(D,H);return ht.__actions__.push({func:$h,args:[_e],thisArg:n}),new ii(ht,Pe)}return pt&&Rt?o.apply(this,H):(ht=this.thru(_e),pt?y?ht.value()[0]:ht.value():ht)})}),vi(["pop","push","shift","sort","splice","unshift"],function(o){var s=to[o],p=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",y=/^(?:pop|shift)$/.test(o);C.prototype[o]=function(){var S=arguments;if(y&&!this.__chain__){var I=this.value();return s.apply(St(I)?I:[],S)}return this[p](function(D){return s.apply(St(D)?D:[],S)})}}),uo(Tt.prototype,function(o,s){var p=C[s];if(p){var y=p.name+"";Nt.call(Cu,y)||(Cu[y]=[]),Cu[y].push({name:s,func:p})}}),Cu[iu(n,k).name]=[{name:"wrapper",func:n}],Tt.prototype.clone=Dp,Tt.prototype.reverse=ff,Tt.prototype.value=Mp,C.prototype.at=ak,C.prototype.chain=lk,C.prototype.commit=sk,C.prototype.next=ck,C.prototype.plant=dk,C.prototype.reverse=pk,C.prototype.toJSON=C.prototype.valueOf=C.prototype.value=hk,C.prototype.first=C.prototype.head,cl&&(C.prototype[cl]=fk),C},_r=Su();xo?((xo.exports=_r)._=_r,fn._=_r):yn._=_r}).call(Mu)})(dv,dv.exports);var _2=dv.exports;const IL={flex:1,display:"flex",flexDirection:"column",alignItems:"center",padding:"20px",borderWidth:2,borderRadius:2,borderColor:"#eeeeee",borderStyle:"dashed",backgroundColor:"#fafafa",color:"#bdbdbd",outline:"none",transition:"border .24s ease-in-out"},jL={borderColor:"#2196f3"},LL={borderColor:"#00e676"},NL={borderColor:"#ff1744"};function $L(e){return Y.jsx("label",{htmlFor:e.id,className:"block font-medium leading-6 text-gray-400 mb-2",children:e.title})}function DL(e){const{getRootProps:t,getInputProps:n,fileRejections:r}=e.state,i=e.files.map((l,f)=>Y.jsxs("li",{children:[l.name," - ",l.size," bytes",Y.jsx("span",{className:"not-prose ml-2 inline-flex items-center rounded-full px-1 py-1 text-xs font-medium cursor-pointer bg-gray-50 text-gray-600 relative top-[1px]",onClick:()=>e.setFiles(d=>d.filter(h=>h!==l)),children:Y.jsx(mR,{className:"h-4 w-4"})})]},f)),u=M.useMemo(()=>({...IL,...e.state.isFocused?jL:{},...e.state.isDragAccept?LL:{},...e.state.isDragReject?NL:{}}),[e.state.isFocused,e.state.isDragAccept,e.state.isDragReject]);return Y.jsxs("section",{className:"",children:[Y.jsxs("aside",{children:[Y.jsx($L,{id:"files",title:"Files"}),Y.jsx("div",{className:"prose",children:Y.jsx("ul",{children:i})})]}),Y.jsxs("div",{...t({style:u}),children:[Y.jsx("input",{...n()}),Y.jsxs("p",{children:["Drag n' drop some files here, or click to select files.",Y.jsx("br",{}),"Accepted files: .txt, .csv, .html, .docx, .pdf.",Y.jsx("br",{}),"No file should exceed 10 MB."]}),r.length>0&&Y.jsx("div",{className:"flex items-center rounded-md bg-yellow-50 mt-4 px-2 py-1 text-xs font-medium text-yellow-800 ring-1 ring-inset ring-yellow-600/20 prose",children:Y.jsx("ul",{children:r.map((l,f)=>Y.jsxs("li",{className:"break-all",children:[l.file.name," - ",l.errors[0].message]},f))})})]})]})}function Z1(e){return Y.jsx("label",{htmlFor:e.id,className:"block font-medium leading-6 text-gray-400 mb-2",children:e.title})}function ML(e){return Y.jsxs("div",{children:[Y.jsx(Z1,{id:e.id,title:e.title}),Y.jsx("textarea",{rows:4,name:e.id,id:e.id,className:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",value:e.value,readOnly:e.readonly,disabled:e.readonly,onChange:t=>e.setValue(t.target.value)})]})}function Cx(e){var t;return Y.jsxs("div",{children:[Y.jsx(Z1,{id:e.id,title:e.title}),Y.jsxs("fieldset",{children:[Y.jsx("legend",{className:"sr-only",children:e.field.title}),Y.jsx("div",{className:"space-y-2",children:(t=_2.orderBy(e.field.enum))==null?void 0:t.map(n=>Y.jsxs("div",{className:"flex items-center",children:[Y.jsx("input",{id:`${e.id}-${n}`,name:e.id,type:"radio",checked:n===e.value,className:"h-4 w-4 border-gray-300 text-indigo-600 focus:ring-indigo-600",disabled:e.readonly,onChange:()=>e.setValue(n)}),Y.jsx("label",{htmlFor:`${e.id}-${n}`,className:"ml-3 block leading-6 text-gray-900",children:n})]},n))})]})]})}const FL={Retrieval:"Look up information in uploaded files.","DDG Search":"Search the web with [DuckDuckGo](https://pypi.org/project/duckduckgo-search/).","Search (Tavily)":"Uses the [Tavily](https://app.tavily.com/) search engine. Includes sources in the response.","Search (short answer, Tavily)":"Uses the [Tavily](https://app.tavily.com/) search engine. This returns only the answer, no supporting evidence.","You.com Search":"Uses [You.com](https://you.com/) search, optimized responses for LLMs.","SEC Filings (Kay.ai)":"Searches through SEC filings using [Kay.ai](https://www.kay.ai/).","Press Releases (Kay.ai)":"Searches through press releases using [Kay.ai](https://www.kay.ai/).",Arxiv:"Searches [Arxiv](https://arxiv.org/).",PubMed:"Searches [PubMed](https://pubmed.ncbi.nlm.nih.gov/).",Wikipedia:"Searches [Wikipedia](https://pypi.org/project/wikipedia/)."};function zL(e){var t,n,r;return Y.jsxs("fieldset",{children:[Y.jsx(Z1,{id:e.id,title:e.title??((t=e.field.items)==null?void 0:t.title)}),Y.jsx("div",{className:"space-y-2",children:(r=_2.orderBy((n=e.field.items)==null?void 0:n.enum))==null?void 0:r.map(i=>{var u;return Y.jsxs("div",{className:"relative flex items-start",children:[Y.jsx("div",{className:"flex h-6 items-center",children:Y.jsx("input",{id:`${e.id}-${i}`,"aria-describedby":"comments-description",name:`${e.id}-${i}`,type:"checkbox",checked:e.value.includes(i),className:"h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600",disabled:e.readonly,onChange:l=>{l.target.checked?e.setValue([...e.value,i]):e.setValue(e.value.filter(f=>f!==i))}})}),Y.jsxs("div",{className:"ml-3 text-sm leading-6",children:[Y.jsx("label",{htmlFor:`${e.id}-${i}`,className:"text-gray-900",children:i}),((u=e.descriptions)==null?void 0:u[i])&&Y.jsx("div",{className:"text-gray-500 prose prose-sm prose-a:text-gray-500",dangerouslySetInnerHTML:{__html:un(e.descriptions[i])}})]})]},i)})})]})}function UL(e){const t=window.location.href+"?shared_id="+e.assistantId;return Y.jsxs("div",{className:"flex rounded-md shadow-sm mb-4",children:[Y.jsxs("button",{type:"submit",className:"relative -ml-px inline-flex items-center gap-x-1.5 rounded-l-md px-3 py-2 text-sm font-semibold text-gray-900 border border-gray-300 hover:bg-gray-50 bg-white",onClick:async n=>{n.preventDefault(),n.stopPropagation(),await navigator.clipboard.writeText(t),window.alert("Copied to clipboard!")},children:[Y.jsx(hR,{className:"-ml-0.5 h-5 w-5 text-gray-400","aria-hidden":"true"}),"Copy Public Link"]}),Y.jsx("a",{className:"rounded-none rounded-r-md py-1.5 px-2 text-gray-900 border border-l-0 border-gray-300 text-sm leading-6 line-clamp-1 flex-1 underline",href:t,children:t})]})}function BL(e){var v,_,x,A,R,N,k;const[t,n]=M.useState(((v=e.config)==null?void 0:v.config)??e.configDefaults),[r,i]=M.useState([]),u=y2({multiple:!0,accept:{"text/*":[".txt",".csv",".htm",".html"],"application/pdf":[".pdf"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":[".docx"],"application/msword":[".doc"]},maxSize:1e7}),[l,f]=M.useState(((_=e.config)==null?void 0:_.public)??!1);M.useEffect(()=>{var E;n(((E=e.config)==null?void 0:E.config)??e.configDefaults)},[e.config,e.configDefaults]),M.useEffect(()=>{u.acceptedFiles.length>0&&(n(E=>{var T;return{configurable:{...E==null?void 0:E.configurable,tools:[...(((T=E==null?void 0:E.configurable)==null?void 0:T.tools)??[]).filter(P=>P!=="Retrieval"),"Retrieval"]}}}),i(E=>[...E.filter(T=>!u.acceptedFiles.includes(T)),...u.acceptedFiles]))},[u.acceptedFiles]);const[d,h]=M.useState(!1),m=!!e.config&&!d;return Y.jsxs(Y.Fragment,{children:[Y.jsx("div",{className:"flex gap-2 items-center justify-between font-semibold text-lg leading-6 text-gray-600 mb-4",children:Y.jsxs("span",{children:["Bot: ",((x=e.config)==null?void 0:x.name)??"New Bot"," ",Y.jsx("span",{className:"font-normal",children:e.config?"(read-only)":""})]})}),((A=e.config)==null?void 0:A.public)&&Y.jsx(UL,{assistantId:(R=e.config)==null?void 0:R.assistant_id}),Y.jsxs("form",{className:Qr("flex flex-col gap-8"),onSubmit:async E=>{E.preventDefault(),E.stopPropagation();const P=E.target.key.value;P&&(h(!0),await e.saveConfig(P,t,u.acceptedFiles,l),h(!1))},children:[Y.jsxs("div",{className:Qr("flex flex-col gap-8",m&&"opacity-50 cursor-not-allowed"),children:[Object.entries(((N=e.configSchema)==null?void 0:N.properties.configurable.properties)??{}).map(([E,T])=>{var L,U,G,Z,Ee;const P=T.title;if(((L=T.allOf)==null?void 0:L.length)===1&&(T=T.allOf[0]),E.split("/")[0].includes("==")){const[K,ae]=E.split("/")[0].split("==");if(((U=t==null?void 0:t.configurable)==null?void 0:U[K])!==ae)return null}if(T.type==="string"&&T.enum)return Y.jsx(Cx,{id:E,field:T,title:P,value:(G=t==null?void 0:t.configurable)==null?void 0:G[E],setValue:K=>n({...t,configurable:{...t.configurable,[E]:K}}),readonly:m},E);if(E==="type==agent/system_message")return Y.jsx(ML,{id:E,field:T,title:P,value:(Z=t==null?void 0:t.configurable)==null?void 0:Z[E],setValue:K=>n({...t,configurable:{...t.configurable,[E]:K}}),readonly:m},E);if(E==="type==agent/tools")return Y.jsx(zL,{id:E,field:T,title:P,value:(Ee=t==null?void 0:t.configurable)==null?void 0:Ee[E],setValue:K=>n({...t,configurable:{...t.configurable,[E]:K}}),readonly:m,descriptions:FL},E)}),!e.config&&((k=t==null?void 0:t.configurable)==null?void 0:k.type)==="agent"&&Y.jsx(DL,{state:u,files:r,setFiles:i}),Y.jsx(Cx,{id:"public",field:{type:"string",title:"public",description:"",enum:["Yes","No"]},title:"Create a public link?",value:l?"Yes":"No",setValue:E=>f(E==="Yes"),readonly:m})]}),!e.config&&Y.jsxs("div",{className:"flex flex-row",children:[Y.jsx("div",{className:"relative flex flex-grow items-stretch focus-within:z-10",children:Y.jsx("input",{type:"text",name:"key",id:"key",autoComplete:"off",className:"block w-full rounded-none rounded-l-md border-0 py-1.5 pl-4 text-gray-900 ring-1 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6 ring-inset ring-gray-300",placeholder:"Name your bot"})}),Y.jsx("button",{type:"submit",className:"inline-flex items-center px-4 py-2 border border-transparent text-sm leading-5 font-medium rounded-r-md shadow-sm text-white bg-indigo-600 hover:bg-indigo-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-600",children:d?"Saving...":"Save"})]})]})]})}function HL(e){var t;return Y.jsxs("div",{className:"flex flex-col items-stretch pb-[76px]",children:[Y.jsxs("div",{className:"flex-1 flex flex-col md:flex-row lg:items-stretch self-stretch",children:[Y.jsx("div",{className:"w-72 border-r border-gray-200 pr-6",children:Y.jsx(jj,{configs:e.configs,currentConfig:e.currentConfig,enterConfig:e.enterConfig})}),Y.jsx("main",{className:"flex-1",children:Y.jsx("div",{className:"px-4",children:Y.jsx(BL,{config:e.currentConfig,configSchema:e.configSchema,configDefaults:e.configDefaults,saveConfig:e.saveConfig},(t=e.currentConfig)==null?void 0:t.assistant_id)})})]}),e.currentConfig&&Y.jsx("div",{className:"fixed left-0 lg:left-72 bottom-0 right-0 p-4",children:Y.jsx(AE,{onSubmit:e.startChat})})]})}function WL(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n-1}var H$=B$,W$=Uv;function G$(e,t){var n=this.__data__,r=W$(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var q$=G$,K$=O$,V$=D$,Y$=z$,Q$=H$,Z$=q$;function Hc(e){var t=-1,n=e==null?0:e.length;for(this.clear();++tf))return!1;var h=u.get(e),m=u.get(t);if(h&&m)return h==t&&m==e;var v=-1,_=!0,x=n&z4?new $4:void 0;for(u.set(e,t),u.set(t,e);++v-1&&e%1==0&&e-1&&e%1==0&&e<=q5}var i_=K5,V5=sp,Y5=i_,Q5=cp,Z5="[object Arguments]",X5="[object Array]",J5="[object Boolean]",eM="[object Date]",tM="[object Error]",nM="[object Function]",rM="[object Map]",iM="[object Number]",oM="[object Object]",uM="[object RegExp]",aM="[object Set]",lM="[object String]",sM="[object WeakMap]",cM="[object ArrayBuffer]",fM="[object DataView]",dM="[object Float32Array]",pM="[object Float64Array]",hM="[object Int8Array]",gM="[object Int16Array]",vM="[object Int32Array]",mM="[object Uint8Array]",yM="[object Uint8ClampedArray]",_M="[object Uint16Array]",wM="[object Uint32Array]",Pn={};Pn[dM]=Pn[pM]=Pn[hM]=Pn[gM]=Pn[vM]=Pn[mM]=Pn[yM]=Pn[_M]=Pn[wM]=!0;Pn[Z5]=Pn[X5]=Pn[cM]=Pn[J5]=Pn[fM]=Pn[eM]=Pn[tM]=Pn[nM]=Pn[rM]=Pn[iM]=Pn[oM]=Pn[uM]=Pn[aM]=Pn[lM]=Pn[sM]=!1;function xM(e){return Q5(e)&&Y5(e.length)&&!!Pn[V5(e)]}var bM=xM;function SM(e){return function(t){return e(t)}}var N2=SM,gv={exports:{}};gv.exports;(function(e,t){var n=x2,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,u=i&&i.exports===r,l=u&&n.process,f=function(){try{var d=i&&i.require&&i.require("util").types;return d||l&&l.binding&&l.binding("util")}catch{}}();e.exports=f})(gv,gv.exports);var EM=gv.exports,kM=bM,TM=N2,Bx=EM,Hx=Bx&&Bx.isTypedArray,CM=Hx?TM(Hx):kM,$2=CM,AM=P5,OM=I2,RM=gu,PM=j2,IM=L2,jM=$2,LM=Object.prototype,NM=LM.hasOwnProperty;function $M(e,t){var n=RM(e),r=!n&&OM(e),i=!n&&!r&&PM(e),u=!n&&!r&&!i&&jM(e),l=n||r||i||u,f=l?AM(e.length,String):[],d=f.length;for(var h in e)(t||NM.call(e,h))&&!(l&&(h=="length"||i&&(h=="offset"||h=="parent")||u&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||IM(h,d)))&&f.push(h);return f}var DM=$M,MM=Object.prototype;function FM(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||MM;return e===n}var zM=FM;function UM(e,t){return function(n){return e(t(n))}}var BM=UM,HM=BM,WM=HM(Object.keys,Object),GM=WM,qM=zM,KM=GM,VM=Object.prototype,YM=VM.hasOwnProperty;function QM(e){if(!qM(e))return KM(e);var t=[];for(var n in Object(e))YM.call(e,n)&&n!="constructor"&&t.push(n);return t}var ZM=QM,XM=S2,JM=i_;function eF(e){return e!=null&&JM(e.length)&&!XM(e)}var o_=eF,tF=DM,nF=ZM,rF=o_;function iF(e){return rF(e)?tF(e):nF(e)}var u_=iF,oF=_5,uF=O5,aF=u_;function lF(e){return oF(e,aF,uF)}var sF=lF,Wx=sF,cF=1,fF=Object.prototype,dF=fF.hasOwnProperty;function pF(e,t,n,r,i,u){var l=n&cF,f=Wx(e),d=f.length,h=Wx(t),m=h.length;if(d!=m&&!l)return!1;for(var v=d;v--;){var _=f[v];if(!(l?_ in t:dF.call(t,_)))return!1}var x=u.get(e),A=u.get(t);if(x&&A)return x==t&&A==e;var R=!0;u.set(e,t),u.set(t,e);for(var N=l;++vt||u&&l&&d&&!f&&!h||r&&l&&d||!n&&d||!i)return 1;if(!r&&!u&&!h&&e=f)return d;var h=n[r];return d*(h=="desc"?-1:1)}}return e.index-t.index}var Rz=Oz,P0=w2,Pz=r_,Iz=rz,jz=Sz,Lz=kz,Nz=N2,$z=Rz,Dz=B2,Mz=gu;function Fz(e,t,n){t.length?t=P0(t,function(u){return Mz(u)?function(l){return Pz(l,u.length===1?u[0]:u)}:u}):t=[Dz];var r=-1;t=P0(t,Nz(Iz));var i=jz(e,function(u,l,f){var d=P0(t,function(h){return h(u)});return{criteria:d,index:++r,value:u}});return Lz(i,function(u,l){return $z(u,l,n)})}var zz=Fz,Uz=zz,ib=gu;function Bz(e,t,n,r){return e==null?[]:(ib(t)||(t=t==null?[]:[t]),n=r?void 0:n,ib(n)||(n=n==null?[]:[n]),Uz(e,t,n))}var Hz=Bz;const H2=Ky(Hz);function Wz(e,t){if(e=e??[],!Array.isArray(t)){const n=t;t=[...e.filter(r=>r.thread_id!==n.thread_id),n]}return H2(t,"updated_at","desc")}function Gz(){const[e,t]=M.useReducer(Wz,null),[n,r]=M.useState(null);M.useEffect(()=>{async function l(){const f=await fetch("/threads/",{headers:{Accept:"application/json"}}).then(d=>d.json());t(f)}l()},[]);const i=M.useCallback(async(l,f,d=crypto.randomUUID())=>{const h=await fetch(`/threads/${d}`,{method:"PUT",body:JSON.stringify({assistant_id:f,name:l}),headers:{"Content-Type":"application/json",Accept:"application/json"}}).then(m=>m.json());return t(h),r(h.thread_id),h},[]),u=M.useCallback(l=>{r(l)},[]);return{chats:e,currentChat:(e==null?void 0:e.find(l=>l.thread_id===n))||null,createChat:i,enterChat:u}}const qz=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(r,i,u){n.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:u})},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,i){if(1&i&&(r=n(r)),8&i||4&i&&typeof r=="object"&&r&&r.__esModule)return r;var u=Object.create(null);if(n.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:r}),2&i&&typeof r!="string")for(var l in r)n.d(u,l,(function(f){return r[f]}).bind(null,l));return u},n.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(i,"a",i),i},n.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},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(f){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(f)}var i=n(47),u=(typeof self>"u"?"undefined":r(self))=="object"&&self&&self.Object===Object&&self,l=i||u||Function("return this")();e.exports=l},function(e,t){function n(r){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i})(r)}e.exports=function(r){return r!=null&&n(r)=="object"}},function(e,t,n){var r=n(100),i=n(105);e.exports=function(u,l){var f=i(u,l);return r(f)?f:void 0}},function(e,t){function n(r){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i})(r)}e.exports=function(r){var i=n(r);return r!=null&&(i=="object"||i=="function")}},function(e,t,n){var r=n(52),i=n(37),u=n(7);e.exports=function(l){return u(l)?r(l):i(l)}},function(e,t,n){var r=n(17),i=n(34);e.exports=function(u){return u!=null&&i(u.length)&&!r(u)}},function(e,t,n){var r=n(9),i=n(101),u=n(102),l=r?r.toStringTag:void 0;e.exports=function(f){return f==null?f===void 0?"[object Undefined]":"[object Null]":l&&l in Object(f)?i(f):u(f)}},function(e,t,n){var r=n(2).Symbol;e.exports=r},function(e,t,n){var r=n(132),i=n(31),u=n(133),l=n(61),f=n(134),d=n(8),h=n(48),m=h(r),v=h(i),_=h(u),x=h(l),A=h(f),R=d;(r&&R(new r(new ArrayBuffer(1)))!="[object DataView]"||i&&R(new i)!="[object Map]"||u&&R(u.resolve())!="[object Promise]"||l&&R(new l)!="[object Set]"||f&&R(new f)!="[object WeakMap]")&&(R=function(N){var k=d(N),E=k=="[object Object]"?N.constructor:void 0,T=E?h(E):"";if(T)switch(T){case m:return"[object DataView]";case v:return"[object Map]";case _:return"[object Promise]";case x:return"[object Set]";case A:return"[object WeakMap]"}return k}),e.exports=R},function(e,t){function n(i){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u})(i)}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 i(v){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _})(v)}var u=n(2),l=n(121),f=i(t)=="object"&&t&&!t.nodeType&&t,d=f&&i(r)=="object"&&r&&!r.nodeType&&r,h=d&&d.exports===f?u.Buffer:void 0,m=(h?h.isBuffer:void 0)||l;r.exports=m}).call(this,n(14)(e))},function(e,t){var n,r,i=e.exports={};function u(){throw new Error("setTimeout has not been defined")}function l(){throw new Error("clearTimeout has not been defined")}function f(N){if(n===setTimeout)return setTimeout(N,0);if((n===u||!n)&&setTimeout)return n=setTimeout,setTimeout(N,0);try{return n(N,0)}catch{try{return n.call(null,N,0)}catch{return n.call(this,N,0)}}}(function(){try{n=typeof setTimeout=="function"?setTimeout:u}catch{n=u}try{r=typeof clearTimeout=="function"?clearTimeout:l}catch{r=l}})();var d,h=[],m=!1,v=-1;function _(){m&&d&&(m=!1,d.length?h=d.concat(h):v=-1,h.length&&x())}function x(){if(!m){var N=f(_);m=!0;for(var k=h.length;k;){for(d=h,h=[];++v1)for(var E=1;EN){var k=R;R=N,N=k}return R+""+N+""+(i.isUndefined(A)?"\0":A)}function h(v,_,x,A){var R=""+_,N=""+x;if(!v&&R>N){var k=R;R=N,N=k}var E={v:R,w:N};return A&&(E.name=A),E}function m(v,_){return d(v,_.v,_.w,_.name)}u.prototype._nodeCount=0,u.prototype._edgeCount=0,u.prototype.isDirected=function(){return this._isDirected},u.prototype.isMultigraph=function(){return this._isMultigraph},u.prototype.isCompound=function(){return this._isCompound},u.prototype.setGraph=function(v){return this._label=v,this},u.prototype.graph=function(){return this._label},u.prototype.setDefaultNodeLabel=function(v){return i.isFunction(v)||(v=i.constant(v)),this._defaultNodeLabelFn=v,this},u.prototype.nodeCount=function(){return this._nodeCount},u.prototype.nodes=function(){return i.keys(this._nodes)},u.prototype.sources=function(){var v=this;return i.filter(this.nodes(),function(_){return i.isEmpty(v._in[_])})},u.prototype.sinks=function(){var v=this;return i.filter(this.nodes(),function(_){return i.isEmpty(v._out[_])})},u.prototype.setNodes=function(v,_){var x=arguments,A=this;return i.each(v,function(R){x.length>1?A.setNode(R,_):A.setNode(R)}),this},u.prototype.setNode=function(v,_){return i.has(this._nodes,v)?(arguments.length>1&&(this._nodes[v]=_),this):(this._nodes[v]=arguments.length>1?_:this._defaultNodeLabelFn(v),this._isCompound&&(this._parent[v]="\0",this._children[v]={},this._children["\0"][v]=!0),this._in[v]={},this._preds[v]={},this._out[v]={},this._sucs[v]={},++this._nodeCount,this)},u.prototype.node=function(v){return this._nodes[v]},u.prototype.hasNode=function(v){return i.has(this._nodes,v)},u.prototype.removeNode=function(v){var _=this;if(i.has(this._nodes,v)){var x=function(A){_.removeEdge(_._edgeObjs[A])};delete this._nodes[v],this._isCompound&&(this._removeFromParentsChildList(v),delete this._parent[v],i.each(this.children(v),function(A){_.setParent(A)}),delete this._children[v]),i.each(i.keys(this._in[v]),x),delete this._in[v],delete this._preds[v],i.each(i.keys(this._out[v]),x),delete this._out[v],delete this._sucs[v],--this._nodeCount}return this},u.prototype.setParent=function(v,_){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(i.isUndefined(_))_="\0";else{for(var x=_+="";!i.isUndefined(x);x=this.parent(x))if(x===v)throw new Error("Setting "+_+" as parent of "+v+" would create a cycle");this.setNode(_)}return this.setNode(v),this._removeFromParentsChildList(v),this._parent[v]=_,this._children[_][v]=!0,this},u.prototype._removeFromParentsChildList=function(v){delete this._children[this._parent[v]][v]},u.prototype.parent=function(v){if(this._isCompound){var _=this._parent[v];if(_!=="\0")return _}},u.prototype.children=function(v){if(i.isUndefined(v)&&(v="\0"),this._isCompound){var _=this._children[v];if(_)return i.keys(_)}else{if(v==="\0")return this.nodes();if(this.hasNode(v))return[]}},u.prototype.predecessors=function(v){var _=this._preds[v];if(_)return i.keys(_)},u.prototype.successors=function(v){var _=this._sucs[v];if(_)return i.keys(_)},u.prototype.neighbors=function(v){var _=this.predecessors(v);if(_)return i.union(_,this.successors(v))},u.prototype.isLeaf=function(v){return(this.isDirected()?this.successors(v):this.neighbors(v)).length===0},u.prototype.filterNodes=function(v){var _=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});_.setGraph(this.graph());var x=this;i.each(this._nodes,function(R,N){v(N)&&_.setNode(N,R)}),i.each(this._edgeObjs,function(R){_.hasNode(R.v)&&_.hasNode(R.w)&&_.setEdge(R,x.edge(R))});var A={};return this._isCompound&&i.each(_.nodes(),function(R){_.setParent(R,function N(k){var E=x.parent(k);return E===void 0||_.hasNode(E)?(A[k]=E,E):E in A?A[E]:N(E)}(R))}),_},u.prototype.setDefaultEdgeLabel=function(v){return i.isFunction(v)||(v=i.constant(v)),this._defaultEdgeLabelFn=v,this},u.prototype.edgeCount=function(){return this._edgeCount},u.prototype.edges=function(){return i.values(this._edgeObjs)},u.prototype.setPath=function(v,_){var x=this,A=arguments;return i.reduce(v,function(R,N){return A.length>1?x.setEdge(R,N,_):x.setEdge(R,N),N}),this},u.prototype.setEdge=function(){var v,_,x,A,R=!1,N=arguments[0];r(N)==="object"&&N!==null&&"v"in N?(v=N.v,_=N.w,x=N.name,arguments.length===2&&(A=arguments[1],R=!0)):(v=N,_=arguments[1],x=arguments[3],arguments.length>2&&(A=arguments[2],R=!0)),v=""+v,_=""+_,i.isUndefined(x)||(x=""+x);var k=d(this._isDirected,v,_,x);if(i.has(this._edgeLabels,k))return R&&(this._edgeLabels[k]=A),this;if(!i.isUndefined(x)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(v),this.setNode(_),this._edgeLabels[k]=R?A:this._defaultEdgeLabelFn(v,_,x);var E=h(this._isDirected,v,_,x);return v=E.v,_=E.w,Object.freeze(E),this._edgeObjs[k]=E,l(this._preds[_],v),l(this._sucs[v],_),this._in[_][k]=E,this._out[v][k]=E,this._edgeCount++,this},u.prototype.edge=function(v,_,x){var A=arguments.length===1?m(this._isDirected,arguments[0]):d(this._isDirected,v,_,x);return this._edgeLabels[A]},u.prototype.hasEdge=function(v,_,x){var A=arguments.length===1?m(this._isDirected,arguments[0]):d(this._isDirected,v,_,x);return i.has(this._edgeLabels,A)},u.prototype.removeEdge=function(v,_,x){var A=arguments.length===1?m(this._isDirected,arguments[0]):d(this._isDirected,v,_,x),R=this._edgeObjs[A];return R&&(v=R.v,_=R.w,delete this._edgeLabels[A],delete this._edgeObjs[A],f(this._preds[_],v),f(this._sucs[v],_),delete this._in[_][A],delete this._out[v][A],this._edgeCount--),this},u.prototype.inEdges=function(v,_){var x=this._in[v];if(x){var A=i.values(x);return _?i.filter(A,function(R){return R.v===_}):A}},u.prototype.outEdges=function(v,_){var x=this._out[v];if(x){var A=i.values(x);return _?i.filter(A,function(R){return R.w===_}):A}},u.prototype.nodeEdges=function(v,_){var x=this.inEdges(v,_);if(x)return x.concat(this.outEdges(v,_))}},function(e,t,n){var r=n(15),i=n(95),u=n(96),l=n(97),f=n(98),d=n(99);function h(m){var v=this.__data__=new r(m);this.size=v.size}h.prototype.clear=i,h.prototype.delete=u,h.prototype.get=l,h.prototype.has=f,h.prototype.set=d,e.exports=h},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),i=n(113),u=n(115),l=n(116),f=n(117);function d(h){var m=-1,v=h==null?0:h.length;for(this.clear();++m-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 i(m){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v})(m)}var u=n(47),l=i(t)=="object"&&t&&!t.nodeType&&t,f=l&&i(r)=="object"&&r&&!r.nodeType&&r,d=f&&f.exports===l&&u.process,h=function(){try{var m=f&&f.require&&f.require("util").types;return m||d&&d.binding&&d.binding("util")}catch{}}();r.exports=h}).call(this,n(14)(e))},function(e,t,n){var r=n(23),i=n(123),u=Object.prototype.hasOwnProperty;e.exports=function(l){if(!r(l))return i(l);var f=[];for(var d in Object(l))u.call(l,d)&&d!="constructor"&&f.push(d);return f}},function(e,t,n){var r=n(56),i=n(57),u=Object.prototype.propertyIsEnumerable,l=Object.getOwnPropertySymbols,f=l?function(d){return d==null?[]:(d=Object(d),r(l(d),function(h){return u.call(d,h)}))}:i;e.exports=f},function(e,t){e.exports=function(n,r){for(var i=-1,u=r.length,l=n.length;++i-1&&i%1==0&&ix))return!1;var R=v.get(l);if(R&&v.get(f))return R==f;var N=-1,k=!0,E=2&d?new r:void 0;for(v.set(l,f),v.set(f,l);++N0&&(A=k.removeMin(),(R=N[A]).distance!==Number.POSITIVE_INFINITY);)x(A).forEach(E);return N}(l,String(f),d||u,h||function(m){return l.outEdges(m)})};var u=r.constant(1)},function(e,t,n){var r=n(1);function i(){this._arr=[],this._keyIndices={}}e.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map(function(u){return u.key})},i.prototype.has=function(u){return r.has(this._keyIndices,u)},i.prototype.priority=function(u){var l=this._keyIndices[u];if(l!==void 0)return this._arr[l].priority},i.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(u,l){var f=this._keyIndices;if(u=String(u),!r.has(f,u)){var d=this._arr,h=d.length;return f[u]=h,d.push({key:u,priority:l}),this._decrease(h),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var u=this._arr.pop();return delete this._keyIndices[u.key],this._heapify(0),u.key},i.prototype.decrease=function(u,l){var f=this._keyIndices[u];if(l>this._arr[f].priority)throw new Error("New priority is greater than current priority. Key: "+u+" Old: "+this._arr[f].priority+" New: "+l);this._arr[f].priority=l,this._decrease(f)},i.prototype._heapify=function(u){var l=this._arr,f=2*u,d=f+1,h=u;f>1].priority0&&R(k,ne))}catch(Ie){P.call(new U(ne),Ie)}}}function P(K){var ae=this;ae.triggered||(ae.triggered=!0,ae.def&&(ae=ae.def),ae.msg=K,ae.state=2,ae.chain.length>0&&R(k,ae))}function L(K,ae,ne,Ie){for(var Re=0;Re-1?pe=we:(xe=i.isUndefined(B)?void 0:K(B),i.isUndefined(xe)?pe=we:((pe=xe).path=h(l.join(xe.path,we.path)),pe.query=function(ye,ze){var Qe={};function tt(_t){i.forOwn(_t,function(it,Ne){Qe[Ne]=it})}return tt(d.parse(ye||"")),tt(d.parse(ze||"")),Object.keys(Qe).length===0?void 0:d.stringify(Qe)}(xe.query,we.query))),pe.fragment=void 0,(A.indexOf(pe.reference)===-1&&pe.path.indexOf("../")===0?"../":"")+m.serialize(pe)}function k(B){return x.indexOf(L(B))>-1}function E(B){return i.isUndefined(B.error)&&B.type!=="invalid"}function T(B,re){var xe=B;return re.forEach(function(pe){if(!(pe in xe))throw Error("JSON Pointer points to missing location: "+me(re));xe=xe[pe]}),xe}function P(B){return Object.keys(B).filter(function(re){return re!=="$ref"})}function L(B){var re;switch(B.uriDetails.reference){case"absolute":case"uri":re="remote";break;case"same-document":re="local";break;default:re=B.uriDetails.reference}return re}function U(B,re){var xe=_[B],pe=Promise.resolve(),we=i.cloneDeep(re.loaderOptions||{});return i.isUndefined(xe)?(i.isUndefined(we.processContent)&&(we.processContent=function(ye,ze){ze(void 0,JSON.parse(ye.text))}),pe=(pe=f.load(decodeURI(B),we)).then(function(ye){return _[B]={value:ye},ye}).catch(function(ye){throw _[B]={error:ye},ye})):pe=pe.then(function(){if(i.isError(xe.error))throw xe.error;return xe.value}),pe=pe.then(function(ye){return i.cloneDeep(ye)})}function G(B,re){var xe=!0;try{if(!i.isPlainObject(B))throw new Error("obj is not an Object");if(!i.isString(B.$ref))throw new Error("obj.$ref is not a String")}catch(pe){if(re)throw pe;xe=!1}return xe}function Z(B){return B.indexOf("://")!==-1||l.isAbsolute(B)?B:l.resolve(r.cwd(),B)}function Ee(B,re){B.error=re.message,B.missing=!0}function K(B){return m.parse(B)}function ae(B,re,xe){T(B,re.slice(0,re.length-1))[re[re.length-1]]=xe}function ne(B,re){var xe,pe;if(B=i.isUndefined(B)?{}:i.cloneDeep(B),!i.isObject(B))throw new TypeError("options must be an Object");if(!i.isUndefined(B.resolveCirculars)&&!i.isBoolean(B.resolveCirculars))throw new TypeError("options.resolveCirculars must be a Boolean");if(!(i.isUndefined(B.filter)||i.isArray(B.filter)||i.isFunction(B.filter)||i.isString(B.filter)))throw new TypeError("options.filter must be an Array, a Function of a String");if(!i.isUndefined(B.includeInvalid)&&!i.isBoolean(B.includeInvalid))throw new TypeError("options.includeInvalid must be a Boolean");if(!i.isUndefined(B.location)&&!i.isString(B.location))throw new TypeError("options.location must be a String");if(!i.isUndefined(B.refPreProcessor)&&!i.isFunction(B.refPreProcessor))throw new TypeError("options.refPreProcessor must be a Function");if(!i.isUndefined(B.refPostProcessor)&&!i.isFunction(B.refPostProcessor))throw new TypeError("options.refPostProcessor must be a Function");if(!i.isUndefined(B.subDocPath)&&!i.isArray(B.subDocPath)&&!Je(B.subDocPath))throw new TypeError("options.subDocPath must be an Array of path segments or a valid JSON Pointer");if(i.isUndefined(B.resolveCirculars)&&(B.resolveCirculars=!1),B.filter=function(we){var ye,ze;return i.isArray(we.filter)||i.isString(we.filter)?(ze=i.isString(we.filter)?[we.filter]:we.filter,ye=function(Qe){return ze.indexOf(Qe.type)>-1||ze.indexOf(L(Qe))>-1}):i.isFunction(we.filter)?ye=we.filter:i.isUndefined(we.filter)&&(ye=function(){return!0}),function(Qe,tt){return(Qe.type!=="invalid"||we.includeInvalid===!0)&&ye(Qe,tt)}}(B),i.isUndefined(B.location)&&(B.location=Z("./root.json")),(xe=B.location.split("#")).length>1&&(B.subDocPath="#"+xe[1]),pe=decodeURI(B.location)===B.location,B.location=N(B.location,void 0),pe&&(B.location=decodeURI(B.location)),B.subDocPath=function(we){var ye;return i.isArray(we.subDocPath)?ye=we.subDocPath:i.isString(we.subDocPath)?ye=le(we.subDocPath):i.isUndefined(we.subDocPath)&&(ye=[]),ye}(B),!i.isUndefined(re))try{T(re,B.subDocPath)}catch(we){throw we.message=we.message.replace("JSON Pointer","options.subDocPath"),we}return B}function Ie(B){if(!i.isArray(B))throw new TypeError("path must be an array");return B.map(function(re){return i.isString(re)||(re=JSON.stringify(re)),re.replace(/~1/g,"/").replace(/~0/g,"~")})}function Re(B){if(!i.isArray(B))throw new TypeError("path must be an array");return B.map(function(re){return i.isString(re)||(re=JSON.stringify(re)),re.replace(/~/g,"~0").replace(/\//g,"~1")})}function Fe(B,re){var xe={};if(!i.isArray(B)&&!i.isObject(B))throw new TypeError("obj must be an Array or an Object");return function pe(we,ye,ze,Qe){var tt=!0;function _t(it,Ne){ze.push(Ne),pe(we,it,ze,Qe),ze.pop()}i.isFunction(Qe)&&(tt=Qe(we,ye,ze)),we.indexOf(ye)===-1&&(we.push(ye),tt!==!1&&(i.isArray(ye)?ye.forEach(function(it,Ne){_t(it,Ne.toString())}):i.isObject(ye)&&i.forOwn(ye,function(it,Ne){_t(it,Ne)})),we.pop())}(function(pe,we){var ye,ze=[];return we.length>0&&(ye=pe,we.slice(0,we.length-1).forEach(function(Qe){Qe in ye&&(ye=ye[Qe],ze.push(ye))})),ze}(B,(re=ne(re,B)).subDocPath),T(B,re.subDocPath),i.cloneDeep(re.subDocPath),function(pe,we,ye){var ze,Qe,tt=!0;return G(we)&&(i.isUndefined(re.refPreProcessor)||(we=re.refPreProcessor(i.cloneDeep(we),ye)),ze=lt(we),i.isUndefined(re.refPostProcessor)||(ze=re.refPostProcessor(ze,ye)),re.filter(ze,ye)&&(Qe=me(ye),xe[Qe]=ze),P(we).length>0&&(tt=!1)),tt}),xe}function lt(B){var re,xe,pe,we={def:B};try{if(G(B,!0),re=B.$ref,pe=R[re],i.isUndefined(pe)&&(pe=R[re]=K(re)),we.uri=re,we.uriDetails=pe,i.isUndefined(pe.error)){we.type=L(we);try{["#","/"].indexOf(re[0])>-1?Je(re,!0):re.indexOf("#")>-1&&Je(pe.fragment,!0)}catch(ye){we.error=ye.message,we.type="invalid"}}else we.error=we.uriDetails.error,we.type="invalid";(xe=P(B)).length>0&&(we.warning="Extra JSON Reference properties will be ignored: "+xe.join(", "))}catch(ye){we.error=ye.message,we.type="invalid"}return we}function Je(B,re){var xe,pe=!0;try{if(!i.isString(B))throw new Error("ptr is not a String");if(B!==""){if(xe=B.charAt(0),["#","/"].indexOf(xe)===-1)throw new Error("ptr must start with a / or #/");if(xe==="#"&&B!=="#"&&B.charAt(1)!=="/")throw new Error("ptr must start with a / or #/");if(B.match(v))throw new Error("ptr has invalid token(s)")}}catch(we){if(re===!0)throw we;pe=!1}return pe}function le(B){try{Je(B,!0)}catch(xe){throw new Error("ptr must be a JSON Pointer: "+xe.message)}var re=B.split("/");return re.shift(),Ie(re)}function me(B,re){if(!i.isArray(B))throw new Error("path must be an Array");return(re!==!1?"#":"")+(B.length>0?"/":"")+Re(B).join("/")}function Le(B,re){var xe=Promise.resolve();return xe=xe.then(function(){if(!i.isArray(B)&&!i.isObject(B))throw new TypeError("obj must be an Array or an Object");re=ne(re,B),B=i.cloneDeep(B)}).then(function(){var pe={deps:{},docs:{},refs:{}};return function we(ye,ze,Qe){var tt,_t,it=Promise.resolve(),Ne=me(ze.subDocPath),wt=Z(ze.location),gt=l.dirname(ze.location),et=wt+Ne;return i.isUndefined(Qe.docs[wt])&&(Qe.docs[wt]=ye),i.isUndefined(Qe.deps[et])&&(Qe.deps[et]={},tt=Fe(ye,ze),i.forOwn(tt,function(Et,kt){var _n,gn,Ut=Z(ze.location)+kt,jt=Et.refdId=decodeURI(Z(k(Et)?N(gt,Et.uri):ze.location)+"#"+(Et.uri.indexOf("#")>-1?Et.uri.split("#")[1]:""));Qe.refs[Ut]=Et,E(Et)&&(Et.fqURI=jt,Qe.deps[et][kt===Ne?"#":kt.replace(Ne+"/","#/")]=jt,Ut.indexOf(jt+"/")!==0&&Ut!==jt?((_t=i.cloneDeep(ze)).subDocPath=i.isUndefined(Et.uriDetails.fragment)?[]:le(decodeURI(Et.uriDetails.fragment)),k(Et)?(delete _t.filter,_t.location=jt.split("#")[0],it=it.then((_n=Qe,gn=_t,function(){var Ze=Z(gn.location),vn=_n.docs[Ze];return i.isUndefined(vn)?U(Ze,gn).catch(function(Te){return _n.docs[Ze]=Te,Te}):Promise.resolve().then(function(){return vn})}))):it=it.then(function(){return ye}),it=it.then(function(Ze,vn,Te){return function(Ge){if(i.isError(Ge))Ee(Te,Ge);else try{return we(Ge,vn,Ze).catch(function(Vt){Ee(Te,Vt)})}catch(Vt){Ee(Te,Vt)}}}(Qe,_t,Et))):Et.circular=!0)})),it}(B,re,pe).then(function(){return pe})}).then(function(pe){var we={},ye=[],ze=[],Qe=new u.Graph,tt=Z(re.location),_t=tt+me(re.subDocPath),it=l.dirname(tt);return Object.keys(pe.deps).forEach(function(Ne){Qe.setNode(Ne)}),i.forOwn(pe.deps,function(Ne,wt){i.forOwn(Ne,function(gt){Qe.setEdge(wt,gt)})}),(ye=u.alg.findCycles(Qe)).forEach(function(Ne){Ne.forEach(function(wt){ze.indexOf(wt)===-1&&ze.push(wt)})}),i.forOwn(pe.deps,function(Ne,wt){i.forOwn(Ne,function(gt,et){var Et,kt=!1,_n=wt+et.slice(1),gn=pe.refs[wt+et.slice(1)],Ut=k(gn);ze.indexOf(gt)>-1&&ye.forEach(function(jt){kt||(Et=jt.indexOf(gt))>-1&&jt.forEach(function(Ze){kt||_n.indexOf(Ze+"/")===0&&(Ut&&Et!==jt.length-1&>[gt.length-1]==="#"||(kt=!0))})}),kt&&(gn.circular=!0)})}),i.forOwn(Object.keys(pe.deps).reverse(),function(Ne){var wt=pe.deps[Ne],gt=Ne.split("#"),et=pe.docs[gt[0]],Et=le(gt[1]);i.forOwn(wt,function(kt,_n){var gn=kt.split("#"),Ut=pe.docs[gn[0]],jt=Et.concat(le(_n)),Ze=pe.refs[gt[0]+me(jt)];if(i.isUndefined(Ze.error)&&i.isUndefined(Ze.missing))if(!re.resolveCirculars&&Ze.circular)Ze.value=i.cloneDeep(Ze.def);else{try{Ze.value=T(Ut,le(gn[1]))}catch(vn){return void Ee(Ze,vn)}gt[1]===""&&_n==="#"?pe.docs[gt[0]]=Ze.value:ae(et,jt,Ze.value)}})}),Object.keys(pe.refs).forEach(function(Ne){var wt,gt,et=pe.refs[Ne];et.type!=="invalid"&&(et.fqURI[et.fqURI.length-1]==="#"&&et.uri[et.uri.length-1]!=="#"&&(et.fqURI=et.fqURI.substr(0,et.fqURI.length-1)),wt=et.fqURI.split("/"),gt=et.uri.split("/"),i.times(gt.length-1,function(Et){var kt=gt[gt.length-Et-1],_n=gt[gt.length-Et],gn=wt.length-Et-1;kt!=="."&&kt!==".."&&_n!==".."&&(wt[gn]=kt)}),et.fqURI=wt.join("/"),et.fqURI.indexOf(tt)===0?et.fqURI=et.fqURI.replace(tt,""):et.fqURI.indexOf(it)===0&&(et.fqURI=et.fqURI.replace(it,"")),et.fqURI[0]==="/"&&(et.fqURI="."+et.fqURI)),Ne.indexOf(_t)===0&&function Et(kt,_n,gn){var Ut,jt=_n.split("#"),Ze=pe.refs[_n];we[jt[0]===re.location?"#"+jt[1]:me(re.subDocPath.concat(gn))]=Ze,!Ze.circular&&E(Ze)?(Ut=pe.deps[Ze.refdId],Ze.refdId.indexOf(kt)!==0&&Object.keys(Ut).forEach(function(vn){Et(Ze.refdId,Ze.refdId+vn.substr(1),gn.concat(le(vn)))})):!Ze.circular&&Ze.error&&(Ze.error=Ze.error.replace("options.subDocPath","JSON Pointer"),Ze.error.indexOf("#")>-1&&(Ze.error=Ze.error.replace(Ze.uri.substr(Ze.uri.indexOf("#")),Ze.uri)),Ze.error.indexOf("ENOENT:")!==0&&Ze.error.indexOf("Not Found")!==0||(Ze.error="JSON Pointer points to missing location: "+Ze.uri))}(_t,Ne,le(Ne.substr(_t.length)))}),i.forOwn(we,function(Ne,wt){delete Ne.refdId,Ne.circular&&Ne.type==="local"&&(Ne.value.$ref=Ne.fqURI,ae(pe.docs[tt],le(wt),Ne.value)),Ne.missing&&(Ne.error=Ne.error.split(": ")[0]+": "+Ne.def.$ref)}),{refs:we,resolved:pe.docs[tt]}})}typeof Promise>"u"&&n(83),e.exports.clearCache=function(){_={}},e.exports.decodePath=function(B){return Ie(B)},e.exports.encodePath=function(B){return Re(B)},e.exports.findRefs=function(B,re){return Fe(B,re)},e.exports.findRefsAt=function(B,re){return function(xe,pe){var we=Promise.resolve();return we=we.then(function(){if(!i.isString(xe))throw new TypeError("location must be a string");return i.isUndefined(pe)&&(pe={}),i.isObject(pe)&&(pe.location=xe),U((pe=ne(pe)).location,pe)}).then(function(ye){var ze=i.cloneDeep(_[pe.location]),Qe=i.cloneDeep(pe);return i.isUndefined(ze.refs)&&(delete Qe.filter,delete Qe.subDocPath,Qe.includeInvalid=!0,_[pe.location].refs=Fe(ye,Qe)),i.isUndefined(pe.filter)||(Qe.filter=pe.filter),{refs:Fe(ye,Qe),value:ye}})}(B,re)},e.exports.getRefDetails=function(B){return lt(B)},e.exports.isPtr=function(B,re){return Je(B,re)},e.exports.isRef=function(B,re){return function(xe,pe){return G(xe,pe)&<(xe).type!=="invalid"}(B,re)},e.exports.pathFromPtr=function(B){return le(B)},e.exports.pathToPtr=function(B,re){return me(B,re)},e.exports.resolveRefs=function(B,re){return Le(B,re)},e.exports.resolveRefsAt=function(B,re){return function(xe,pe){var we=Promise.resolve();return we=we.then(function(){if(!i.isString(xe))throw new TypeError("location must be a string");return i.isUndefined(pe)&&(pe={}),i.isObject(pe)&&(pe.location=xe),U((pe=ne(pe)).location,pe)}).then(function(ye){return Le(ye,pe).then(function(ze){return{refs:ze.refs,resolved:ze.resolved,value:ye}})})}(B,re)}}).call(this,n(13))},function(e,t,n){(function(r,i){var u;function l(f){return(l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(f)}/** + * @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 f="Expected a function",d="__lodash_placeholder__",h=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],m="[object Arguments]",v="[object Array]",_="[object Boolean]",x="[object Date]",A="[object Error]",R="[object Function]",N="[object GeneratorFunction]",k="[object Map]",E="[object Number]",T="[object Object]",P="[object RegExp]",L="[object Set]",U="[object String]",G="[object Symbol]",Z="[object WeakMap]",Ee="[object ArrayBuffer]",K="[object DataView]",ae="[object Float32Array]",ne="[object Float64Array]",Ie="[object Int8Array]",Re="[object Int16Array]",Fe="[object Int32Array]",lt="[object Uint8Array]",Je="[object Uint16Array]",le="[object Uint32Array]",me=/\b__p \+= '';/g,Le=/\b(__p \+=) '' \+/g,B=/(__e\(.*?\)|\b__t\)) \+\n'';/g,re=/&(?:amp|lt|gt|quot|#39);/g,xe=/[&<>"']/g,pe=RegExp(re.source),we=RegExp(xe.source),ye=/<%-([\s\S]+?)%>/g,ze=/<%([\s\S]+?)%>/g,Qe=/<%=([\s\S]+?)%>/g,tt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_t=/^\w*$/,it=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ne=/[\\^$.*+?()[\]{}|]/g,wt=RegExp(Ne.source),gt=/^\s+|\s+$/g,et=/^\s+/,Et=/\s+$/,kt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,_n=/\{\n\/\* \[wrapped with (.+)\] \*/,gn=/,? & /,Ut=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,jt=/\\(\\)?/g,Ze=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,vn=/\w*$/,Te=/^[-+]0x[0-9a-f]+$/i,Ge=/^0b[01]+$/i,Vt=/^\[object .+?Constructor\]$/,nn=/^0o[0-7]+$/i,ln=/^(?:0|[1-9]\d*)$/,fr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Gn=/($^)/,qn=/['\n\r\u2028\u2029\\]/g,dr="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Tr="\\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",$="[\\ud800-\\udfff]",z="["+Tr+"]",q="["+dr+"]",ue="\\d+",ie="[\\u2700-\\u27bf]",Ae="[a-z\\xdf-\\xf6\\xf8-\\xff]",$e="[^\\ud800-\\udfff"+Tr+ue+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ft="\\ud83c[\\udffb-\\udfff]",Bt="[^\\ud800-\\udfff]",nt="(?:\\ud83c[\\udde6-\\uddff]){2}",qt="[\\ud800-\\udbff][\\udc00-\\udfff]",Ht="[A-Z\\xc0-\\xd6\\xd8-\\xde]",En="(?:"+Ae+"|"+$e+")",$t="(?:"+Ht+"|"+$e+")",An="(?:"+q+"|"+ft+")?",rn="[\\ufe0e\\ufe0f]?"+An+("(?:\\u200d(?:"+[Bt,nt,qt].join("|")+")[\\ufe0e\\ufe0f]?"+An+")*"),sn="(?:"+[ie,nt,qt].join("|")+")"+rn,lr="(?:"+[Bt+q+"?",q,nt,qt,$].join("|")+")",$r=RegExp("['’]","g"),Dr=RegExp(q,"g"),Jr=RegExp(ft+"(?="+ft+")|"+lr+rn,"g"),pr=RegExp([Ht+"?"+Ae+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[z,Ht,"$"].join("|")+")",$t+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[z,Ht+En,"$"].join("|")+")",Ht+"?"+En+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Ht+"+(?:['’](?: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_])",ue,sn].join("|"),"g"),jn=RegExp("[\\u200d\\ud800-\\udfff"+dr+"\\ufe0e\\ufe0f]"),Ji=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,pi=["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"],vu=-1,Yt={};Yt[ae]=Yt[ne]=Yt[Ie]=Yt[Re]=Yt[Fe]=Yt[lt]=Yt["[object Uint8ClampedArray]"]=Yt[Je]=Yt[le]=!0,Yt[m]=Yt[v]=Yt[Ee]=Yt[_]=Yt[K]=Yt[x]=Yt[A]=Yt[R]=Yt[k]=Yt[E]=Yt[T]=Yt[P]=Yt[L]=Yt[U]=Yt[Z]=!1;var Zt={};Zt[m]=Zt[v]=Zt[Ee]=Zt[K]=Zt[_]=Zt[x]=Zt[ae]=Zt[ne]=Zt[Ie]=Zt[Re]=Zt[Fe]=Zt[k]=Zt[E]=Zt[T]=Zt[P]=Zt[L]=Zt[U]=Zt[G]=Zt[lt]=Zt["[object Uint8ClampedArray]"]=Zt[Je]=Zt[le]=!0,Zt[A]=Zt[R]=Zt[Z]=!1;var Ue={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Q=parseFloat,be=parseInt,Me=(r===void 0?"undefined":l(r))=="object"&&r&&r.Object===Object&&r,Xt=(typeof self>"u"?"undefined":l(self))=="object"&&self&&self.Object===Object&&self,xt=Me||Xt||Function("return this")(),Kn=l(t)=="object"&&t&&!t.nodeType&&t,wn=Kn&&l(i)=="object"&&i&&!i.nodeType&&i,eo=wn&&wn.exports===Kn,hi=eo&&Me.process,cn=function(){try{var ee=wn&&wn.require&&wn.require("util").types;return ee||hi&&hi.binding&&hi.binding("util")}catch{}}(),qa=cn&&cn.isArrayBuffer,Ka=cn&&cn.isDate,Kc=cn&&cn.isMap,Vc=cn&&cn.isRegExp,Yc=cn&&cn.isSet,fp=cn&&cn.isTypedArray;function ei(ee,ge,he){switch(he.length){case 0:return ee.call(ge);case 1:return ee.call(ge,he[0]);case 2:return ee.call(ge,he[0],he[1]);case 3:return ee.call(ge,he[0],he[1],he[2])}return ee.apply(ge,he)}function qv(ee,ge,he,Oe){for(var mt=-1,Wt=ee==null?0:ee.length;++mt-1}function Zc(ee,ge,he){for(var Oe=-1,mt=ee==null?0:ee.length;++Oe-1;);return he}function vp(ee,ge){for(var he=ee.length;he--&&mu(ge,ee[he],0)>-1;);return he}function mp(ee,ge){for(var he=ee.length,Oe=0;he--;)ee[he]===ge&&++Oe;return Oe}var Vv=ss({À:"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"}),Yv=ss({"&":"&","<":"<",">":">",'"':""","'":"'"});function Qv(ee){return"\\"+Ue[ee]}function Zu(ee){return jn.test(ee)}function Ya(ee){var ge=-1,he=Array(ee.size);return ee.forEach(function(Oe,mt){he[++ge]=[mt,Oe]}),he}function yp(ee,ge){return function(he){return ee(ge(he))}}function Vo(ee,ge){for(var he=-1,Oe=ee.length,mt=0,Wt=[];++he",""":'"',"'":"'"}),Yo=function ee(ge){var he,Oe=(ge=ge==null?xt:Yo.defaults(xt.Object(),ge,Yo.pick(xt,pi))).Array,mt=ge.Date,Wt=ge.Error,tr=ge.Function,yn=ge.Math,fn=ge.Object,xo=ge.RegExp,_p=ge.String,Fr=ge.TypeError,Cr=Oe.prototype,wp=tr.prototype,_u=fn.prototype,Qa=ge["__core-js_shared__"],Za=wp.toString,tn=_u.hasOwnProperty,xp=0,zr=(he=/[^.]+$/.exec(Qa&&Qa.keys&&Qa.keys.IE_PROTO||""))?"Symbol(src)_1."+he:"",hs=_u.toString,vi=Za.call(fn),Xv=xt._,bp=xo("^"+Za.call(tn).replace(Ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ri=eo?ge.Buffer:void 0,Pi=ge.Symbol,Ju=ge.Uint8Array,xn=Ri?Ri.allocUnsafe:void 0,Ii=yp(fn.getPrototypeOf,fn),gs=fn.create,Sp=_u.propertyIsEnumerable,ea=Cr.splice,Ep=Pi?Pi.isConcatSpreadable:void 0,Xa=Pi?Pi.iterator:void 0,wu=Pi?Pi.toStringTag:void 0,Ja=function(){try{var a=oo(fn,"defineProperty");return a({},"",{}),a}catch{}}(),vs=ge.clearTimeout!==xt.clearTimeout&&ge.clearTimeout,ta=mt&&mt.now!==xt.Date.now&&mt.now,Jv=ge.setTimeout!==xt.setTimeout&&ge.setTimeout,el=yn.ceil,tl=yn.floor,nl=fn.getOwnPropertySymbols,Jc=Ri?Ri.isBuffer:void 0,ef=ge.isFinite,em=Cr.join,tf=yp(fn.keys,fn),Fn=yn.max,yr=yn.min,kp=mt.now,ti=ge.parseInt,ms=yn.random,rl=Cr.reverse,ys=oo(ge,"DataView"),na=oo(ge,"Map"),nf=oo(ge,"Promise"),ra=oo(ge,"Set"),il=oo(ge,"WeakMap"),ol=oo(fn,"create"),_s=il&&new il,ji={},tm=Ru(ys),nm=Ru(na),rf=Ru(nf),Tp=Ru(ra),Qo=Ru(il),xu=Pi?Pi.prototype:void 0,ul=xu?xu.valueOf:void 0,Cp=xu?xu.toString:void 0;function O(a){if($n(a)&&!ot(a)&&!(a instanceof Lt)){if(a instanceof ni)return a;if(tn.call(a,"__wrapped__"))return eh(a)}return new ni(a)}var Li=function(){function a(){}return function(c){if(!pn(c))return{};if(gs)return gs(c);a.prototype=c;var g=new a;return a.prototype=void 0,g}}();function Ur(){}function ni(a,c){this.__wrapped__=a,this.__actions__=[],this.__chain__=!!c,this.__index__=0,this.__values__=void 0}function Lt(a){this.__wrapped__=a,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function bu(a){var c=-1,g=a==null?0:a.length;for(this.clear();++c=c?a:c)),a}function mi(a,c,g,w,b,j){var F,W=1&c,J=2&c,ce=4&c;if(g&&(F=b?g(a,w,b,j):g(a)),F!==void 0)return F;if(!pn(a))return a;var se=ot(a);if(se){if(F=function(ve){var Ce=ve.length,ct=new ve.constructor(Ce);return Ce&&typeof ve[0]=="string"&&tn.call(ve,"index")&&(ct.index=ve.index,ct.input=ve.input),ct}(a),!W)return Nn(a,F)}else{var Se=Qt(a),Be=Se==R||Se==N;if(ui(a))return no(a,W);if(Se==T||Se==m||Be&&!b){if(F=J||Be?{}:xf(a),!W)return J?function(ve,Ce){return ro(ve,wf(ve),Ce)}(a,function(ve,Ce){return ve&&ro(Ce,Xn(Ce),ve)}(F,a)):function(ve,Ce){return ro(ve,_f(ve),Ce)}(a,ws(F,a))}else{if(!Zt[Se])return b?a:{};F=function(ve,Ce,ct){var He=ve.constructor;switch(Ce){case Ee:return pf(ve);case _:case x:return new He(+ve);case K:return function(dt,At){var Xe=At?pf(dt.buffer):dt.buffer;return new dt.constructor(Xe,dt.byteOffset,dt.byteLength)}(ve,ct);case ae:case ne:case Ie:case Re:case Fe:case lt:case"[object Uint8ClampedArray]":case Je:case le:return zp(ve,ct);case k:return new He;case E:case U:return new He(ve);case P:return function(dt){var At=new dt.constructor(dt.source,vn.exec(dt));return At.lastIndex=dt.lastIndex,At}(ve);case L:return new He;case G:return Ke=ve,ul?fn(ul.call(Ke)):{}}var Ke}(a,Se,W)}}j||(j=new _r);var qe=j.get(a);if(qe)return qe;j.set(a,F),Al(a)?a.forEach(function(ve){F.add(mi(ve,c,g,ve,a,j))}):Mf(a)&&a.forEach(function(ve,Ce){F.set(Ce,mi(ve,c,g,Ce,a,j))});var st=se?void 0:(ce?J?mf:Hr:J?Xn:Zn)(a);return gi(st||a,function(ve,Ce){st&&(ve=a[Ce=ve]),Mt(F,Ce,mi(ve,c,g,Ce,a,j))}),F}function Eu(a,c,g){var w=g.length;if(a==null)return!w;for(a=fn(a);w--;){var b=g[w],j=c[b],F=a[b];if(F===void 0&&!(b in a)||!j(F))return!1}return!0}function al(a,c,g){if(typeof a!="function")throw new Fr(f);return kl(function(){a.apply(void 0,g)},c)}function Zo(a,c,g,w){var b=-1,j=Qu,F=!0,W=a.length,J=[],ce=c.length;if(!W)return J;g&&(c=kn(c,Mr(g))),w?(j=Zc,F=!1):c.length>=200&&(j=Va,F=!1,c=new Su(c));e:for(;++b-1},bo.prototype.set=function(a,c){var g=this.__data__,w=Ln(g,a);return w<0?(++this.size,g.push([a,c])):g[w][1]=c,this},So.prototype.clear=function(){this.size=0,this.__data__={hash:new bu,map:new(na||bo),string:new bu}},So.prototype.delete=function(a){var c=El(this,a).delete(a);return this.size-=c?1:0,c},So.prototype.get=function(a){return El(this,a).get(a)},So.prototype.has=function(a){return El(this,a).has(a)},So.prototype.set=function(a,c){var g=El(this,a),w=g.size;return g.set(a,c),this.size+=g.size==w?0:1,this},Su.prototype.add=Su.prototype.push=function(a){return this.__data__.set(a,"__lodash_hash_undefined__"),this},Su.prototype.has=function(a){return this.__data__.has(a)},_r.prototype.clear=function(){this.__data__=new bo,this.size=0},_r.prototype.delete=function(a){var c=this.__data__,g=c.delete(a);return this.size=c.size,g},_r.prototype.get=function(a){return this.__data__.get(a)},_r.prototype.has=function(a){return this.__data__.has(a)},_r.prototype.set=function(a,c){var g=this.__data__;if(g instanceof bo){var w=g.__data__;if(!na||w.length<199)return w.push([a,c]),this.size=++g.size,this;g=this.__data__=new So(w)}return g.set(a,c),this.size=g.size,this};var Nt=Wp(gr),Ap=Wp(ia,!0);function Op(a,c){var g=!0;return Nt(a,function(w,b,j){return g=!!c(w,b,j)}),g}function ku(a,c,g){for(var w=-1,b=a.length;++w0&&g(W)?c>1?hr(W,c-1,g,w,b):Oi(b,W):w||(b[b.length]=W)}return b}var of=Gp(),ll=Gp(!0);function gr(a,c){return a&&of(a,c,Zn)}function ia(a,c){return a&&ll(a,c,Zn)}function sl(a,c){return wo(c,function(g){return Io(a[g])})}function ko(a,c){for(var g=0,w=(c=eu(c,a)).length;a!=null&&gc}function Pp(a,c){return a!=null&&tn.call(a,c)}function cl(a,c){return a!=null&&c in fn(a)}function To(a,c,g){for(var w=g?Zc:Qu,b=a[0].length,j=a.length,F=j,W=Oe(j),J=1/0,ce=[];F--;){var se=a[F];F&&c&&(se=kn(se,Mr(c))),J=yr(se.length,J),W[F]=!g&&(c||b>=120&&se.length>=120)?new Su(F&&se):void 0}se=a[0];var Se=-1,Be=W[0];e:for(;++Se=qe)return st;var ve=J[ce];return st*(ve=="desc"?-1:1)}}return F.index-W.index}(b,j,g)})}function lf(a,c,g){for(var w=-1,b=c.length,j={};++w-1;)W!==a&&ea.call(W,J,1),ea.call(a,J,1);return a}function bs(a,c){for(var g=a?c.length:0,w=g-1;g--;){var b=c[g];if(g==w||b!==j){var j=b;Ni(b)?ea.call(a,b,1):la(a,b)}}return a}function Tu(a,c){return a+tl(ms()*(c-a+1))}function gl(a,c){var g="";if(!a||c<1||c>9007199254740991)return g;do c%2&&(g+=a),(c=tl(c/2))&&(a+=a);while(c);return g}function yt(a,c){return Sf(Xp(a,c,qr),a+"")}function vl(a){return oe(ma(a))}function ml(a,c){var g=ma(a);return js(g,to(c,0,g.length))}function Jo(a,c,g,w){if(!pn(a))return a;for(var b=-1,j=(c=eu(c,a)).length,F=j-1,W=a;W!=null&&++bb?0:b+c),(g=g>b?b:g)<0&&(g+=b),b=c>g?0:g-c>>>0,c>>>=0;for(var j=Oe(b);++w>>1,F=a[j];F!==null&&!xr(F)&&(g?F<=c:F=200){var ce=c?null:xl(a);if(ce)return ps(ce);F=!1,b=Va,J=new Su}else J=c?[]:W;e:for(;++w=w?a:yi(a,c,g)}var Fp=vs||function(a){return xt.clearTimeout(a)};function no(a,c){if(c)return a.slice();var g=a.length,w=xn?xn(g):new a.constructor(g);return a.copy(w),w}function pf(a){var c=new a.constructor(a.byteLength);return new Ju(c).set(new Ju(a)),c}function zp(a,c){var g=c?pf(a.buffer):a.buffer;return new a.constructor(g,a.byteOffset,a.length)}function Up(a,c){if(a!==c){var g=a!==void 0,w=a===null,b=a==a,j=xr(a),F=c!==void 0,W=c===null,J=c==c,ce=xr(c);if(!W&&!ce&&!j&&a>c||j&&F&&J&&!W&&!ce||w&&F&&J||!g&&J||!b)return 1;if(!w&&!j&&!ce&&a1?g[b-1]:void 0,F=b>2?g[2]:void 0;for(j=a.length>3&&typeof j=="function"?(b--,j):void 0,F&&sr(g[0],g[1],F)&&(j=b<3?void 0:j,b=1),c=fn(c);++w-1?b[j?c[F]:F]:void 0}}function qp(a){return Ar(function(c){var g=c.length,w=g,b=ni.prototype.thru;for(a&&c.reverse();w--;){var j=c[w];if(typeof j!="function")throw new Fr(f);if(b&&!F&&Sl(j)=="wrapper")var F=new ni([],!0)}for(w=F?w:g;++w1&&He.reverse(),se&&JW))return!1;var ce=j.get(a);if(ce&&j.get(c))return ce==c;var se=-1,Se=!0,Be=2&g?new Su:void 0;for(j.set(a,c),j.set(c,a);++se-1&&a%1==0&&a1?"& ":"")+j[W],j=j.join(F>2?", ":" "),b.replace(kt,`{ +/* [wrapped with `+j+`] */ +`)}(w,function(b,j){return gi(h,function(F){var W="_."+F[0];j&F[1]&&!Qu(b,W)&&b.push(W)}),b.sort()}(function(b){var j=b.match(_n);return j?j[1].split(gn):[]}(w),g)))}function Jp(a){var c=0,g=0;return function(){var w=kp(),b=16-(w-g);if(g=w,b>0){if(++c>=800)return arguments[0]}else c=0;return a.apply(void 0,arguments)}}function js(a,c){var g=-1,w=a.length,b=w-1;for(c=c===void 0?w:c;++g1?a[c-1]:void 0;return g=typeof g=="function"?(a.pop(),g):void 0,Ds(a,g)});function sh(a){var c=O(a);return c.__chain__=!0,c}function Rr(a,c){return c(a)}var hm=Ar(function(a){var c=a.length,g=c?a[0]:0,w=this.__wrapped__,b=function(j){return Br(j,a)};return!(c>1||this.__actions__.length)&&w instanceof Lt&&Ni(g)?((w=w.slice(g,+g+(c?1:0))).__actions__.push({func:Rr,args:[b],thisArg:void 0}),new ni(w,this.__chain__).thru(function(j){return c&&!j.length&&j.push(void 0),j})):this.thru(b)}),Ms=Es(function(a,c,g){tn.call(a,g)?++a[g]:Eo(a,g,1)}),Pf=_i(nh),ch=_i(Ns);function If(a,c){return(ot(a)?gi:Nt)(a,Ve(c,3))}function Wr(a,c){return(ot(a)?dp:Ap)(a,Ve(c,3))}var ru=Es(function(a,c,g){tn.call(a,g)?a[g].push(c):Eo(a,g,[c])}),jf=yt(function(a,c,g){var w=-1,b=typeof c=="function",j=Gr(a)?Oe(a.length):[];return Nt(a,function(F){j[++w]=b?ei(c,F,g):Xo(F,c,g)}),j}),fh=Es(function(a,c,g){Eo(a,g,c)});function Pu(a,c){return(ot(a)?kn:jp)(a,Ve(c,3))}var dh=Es(function(a,c,g){a[g?0:1].push(c)},function(){return[[],[]]}),Lf=yt(function(a,c){if(a==null)return[];var g=c.length;return g>1&&sr(a,c[0],c[1])?c=[]:g>2&&sr(c[0],c[1],c[2])&&(c=[c[0]]),$p(a,hr(c,1),[])}),Cl=ta||function(){return xt.Date.now()};function Fs(a,c,g){return c=g?void 0:c,Ao(a,128,void 0,void 0,void 0,void 0,c=a&&c==null?a.length:c)}function zs(a,c){var g;if(typeof c!="function")throw new Fr(f);return a=bt(a),function(){return--a>0&&(g=c.apply(this,arguments)),a<=1&&(c=void 0),g}}var ao=yt(function(a,c,g){var w=1;if(g.length){var b=Vo(g,io(ao));w|=32}return Ao(a,w,c,g,b)}),ph=yt(function(a,c,g){var w=3;if(g.length){var b=Vo(g,io(ph));w|=32}return Ao(c,w,a,g,b)});function Po(a,c,g){var w,b,j,F,W,J,ce=0,se=!1,Se=!1,Be=!0;if(typeof a!="function")throw new Fr(f);function qe(Ke){var dt=w,At=b;return w=b=void 0,ce=Ke,F=a.apply(At,dt)}function st(Ke){return ce=Ke,W=kl(Ce,c),se?qe(Ke):F}function ve(Ke){var dt=Ke-J;return J===void 0||dt>=c||dt<0||Se&&Ke-ce>=j}function Ce(){var Ke=Cl();if(ve(Ke))return ct(Ke);W=kl(Ce,function(dt){var At=c-(dt-J);return Se?yr(At,j-(dt-ce)):At}(Ke))}function ct(Ke){return W=void 0,Be&&w?qe(Ke):(w=b=void 0,F)}function He(){var Ke=Cl(),dt=ve(Ke);if(w=arguments,b=this,J=Ke,dt){if(W===void 0)return st(J);if(Se)return Fp(W),W=kl(Ce,c),qe(J)}return W===void 0&&(W=kl(Ce,c)),F}return c=Qn(c)||0,pn(g)&&(se=!!g.leading,j=(Se="maxWait"in g)?Fn(Qn(g.maxWait)||0,c):j,Be="trailing"in g?!!g.trailing:Be),He.cancel=function(){W!==void 0&&Fp(W),ce=0,w=J=b=W=void 0},He.flush=function(){return W===void 0?F:ct(Cl())},He}var hh=yt(function(a,c){return al(a,1,c)}),gh=yt(function(a,c,g){return al(a,Qn(c)||0,g)});function da(a,c){if(typeof a!="function"||c!=null&&typeof c!="function")throw new Fr(f);var g=function w(){var b=arguments,j=c?c.apply(this,b):b[0],F=w.cache;if(F.has(j))return F.get(j);var W=a.apply(this,b);return w.cache=F.set(j,W)||F,W};return g.cache=new(da.Cache||So),g}function Us(a){if(typeof a!="function")throw new Fr(f);return function(){var c=arguments;switch(c.length){case 0:return!a.call(this);case 1:return!a.call(this,c[0]);case 2:return!a.call(this,c[0],c[1]);case 3:return!a.call(this,c[0],c[1],c[2])}return!a.apply(this,c)}}da.Cache=So;var gm=am(function(a,c){var g=(c=c.length==1&&ot(c[0])?kn(c[0],Mr(Ve())):kn(hr(c,1),Mr(Ve()))).length;return yt(function(w){for(var b=-1,j=yr(w.length,g);++b=c}),Yn=Ip(function(){return arguments}())?Ip:function(a){return $n(a)&&tn.call(a,"callee")&&!Sp.call(a,"callee")},ot=Oe.isArray,vm=qa?Mr(qa):function(a){return $n(a)&&wr(a)==Ee};function Gr(a){return a!=null&&jo(a.length)&&!Io(a)}function Tn(a){return $n(a)&&Gr(a)}var ui=Jc||wi,_h=Ka?Mr(Ka):function(a){return $n(a)&&wr(a)==x};function Bs(a){if(!$n(a))return!1;var c=wr(a);return c==A||c=="[object DOMException]"||typeof a.message=="string"&&typeof a.name=="string"&&!iu(a)}function Io(a){if(!pn(a))return!1;var c=wr(a);return c==R||c==N||c=="[object AsyncFunction]"||c=="[object Proxy]"}function Df(a){return typeof a=="number"&&a==bt(a)}function jo(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=9007199254740991}function pn(a){var c=l(a);return a!=null&&(c=="object"||c=="function")}function $n(a){return a!=null&&l(a)=="object"}var Mf=Kc?Mr(Kc):function(a){return $n(a)&&Qt(a)==k};function Ff(a){return typeof a=="number"||$n(a)&&wr(a)==E}function iu(a){if(!$n(a)||wr(a)!=T)return!1;var c=Ii(a);if(c===null)return!0;var g=tn.call(c,"constructor")&&c.constructor;return typeof g=="function"&&g instanceof g&&Za.call(g)==vi}var Hs=Vc?Mr(Vc):function(a){return $n(a)&&wr(a)==P},Al=Yc?Mr(Yc):function(a){return $n(a)&&Qt(a)==L};function pa(a){return typeof a=="string"||!ot(a)&&$n(a)&&wr(a)==U}function xr(a){return l(a)=="symbol"||$n(a)&&wr(a)==G}var ha=fp?Mr(fp):function(a){return $n(a)&&jo(a.length)&&!!Yt[wr(a)]},wh=Cs(xs),Ws=Cs(function(a,c){return a<=c});function zf(a){if(!a)return[];if(Gr(a))return pa(a)?Dt(a):Nn(a);if(Xa&&a[Xa])return function(g){for(var w,b=[];!(w=g.next()).done;)b.push(w.value);return b}(a[Xa]());var c=Qt(a);return(c==k?Ya:c==L?ps:ma)(a)}function Mi(a){return a?(a=Qn(a))===1/0||a===-1/0?17976931348623157e292*(a<0?-1:1):a==a?a:0:a===0?a:0}function bt(a){var c=Mi(a),g=c%1;return c==c?g?c-g:c:0}function Uf(a){return a?to(bt(a),0,4294967295):0}function Qn(a){if(typeof a=="number")return a;if(xr(a))return NaN;if(pn(a)){var c=typeof a.valueOf=="function"?a.valueOf():a;a=pn(c)?c+"":c}if(typeof a!="string")return a===0?a:+a;a=a.replace(gt,"");var g=Ge.test(a);return g||nn.test(a)?be(a.slice(2),g?2:8):Te.test(a)?NaN:+a}function Bf(a){return ro(a,Xn(a))}function Jt(a){return a==null?"":C(a)}var mm=sa(function(a,c){if(Au(c)||Gr(c))ro(c,Zn(c),a);else for(var g in c)tn.call(c,g)&&Mt(a,g,c[g])}),Hf=sa(function(a,c){ro(c,Xn(c),a)}),Gs=sa(function(a,c,g,w){ro(c,Xn(c),a,w)}),ym=sa(function(a,c,g,w){ro(c,Zn(c),a,w)}),Lo=Ar(Br),Wf=yt(function(a,c){a=fn(a);var g=-1,w=c.length,b=w>2?c[2]:void 0;for(b&&sr(c[0],c[1],b)&&(w=1);++g1),j}),ro(a,mf(a),g),w&&(g=mi(g,7,Oo));for(var b=c.length;b--;)la(g,c[b]);return g}),br=Ar(function(a,c){return a==null?{}:function(g,w){return lf(g,w,function(b,j){return ga(g,j)})}(a,c)});function bh(a,c){if(a==null)return{};var g=kn(mf(a),function(w){return[w]});return c=Ve(c),lf(a,g,function(w,b){return c(w,b[0])})}var Sh=bl(Zn),qf=bl(Xn);function ma(a){return a==null?[]:ds(a,Zn(a))}var Eh=ca(function(a,c,g){return c=c.toLowerCase(),a+(g?kh(c):c)});function kh(a){return Yf(Jt(a).toLowerCase())}function Th(a){return(a=Jt(a))&&a.replace(fr,Vv).replace(Dr,"")}var wm=ca(function(a,c,g){return a+(g?"-":"")+c.toLowerCase()}),No=ca(function(a,c,g){return a+(g?" ":"")+c.toLowerCase()}),Pr=nu("toLowerCase"),Kf=ca(function(a,c,g){return a+(g?"_":"")+c.toLowerCase()}),xm=ca(function(a,c,g){return a+(g?" ":"")+Yf(c)}),Vf=ca(function(a,c,g){return a+(g?" ":"")+c.toUpperCase()}),Yf=nu("toUpperCase");function Ch(a,c,g){return a=Jt(a),(c=g?void 0:c)===void 0?function(w){return Ji.test(w)}(a)?function(w){return w.match(pr)||[]}(a):function(w){return w.match(Ut)||[]}(a):a.match(c)||[]}var ya=yt(function(a,c){try{return ei(a,void 0,c)}catch(g){return Bs(g)?g:new Wt(g)}}),Ah=Ar(function(a,c){return gi(c,function(g){g=$i(g),Eo(a,g,ao(a[g],a))}),a});function Vs(a){return function(){return a}}var bm=qp(),Sm=qp(!0);function qr(a){return a}function Qf(a){return pl(typeof a=="function"?a:mi(a,1))}var Oh=yt(function(a,c){return function(g){return Xo(g,a,c)}}),Rh=yt(function(a,c){return function(g){return Xo(a,g,c)}});function Zf(a,c,g){var w=Zn(c),b=sl(c,w);g!=null||pn(c)&&(b.length||!w.length)||(g=c,c=a,a=this,b=sl(c,Zn(c)));var j=!(pn(g)&&"chain"in g&&!g.chain),F=Io(a);return gi(b,function(W){var J=c[W];a[W]=J,F&&(a.prototype[W]=function(){var ce=this.__chain__;if(j||ce){var se=a(this.__wrapped__),Se=se.__actions__=Nn(this.__actions__);return Se.push({func:J,args:arguments,thisArg:a}),se.__chain__=ce,se}return J.apply(a,Oi([this.value()],arguments))})}),a}function Rl(){}var Ph=hf(kn),Pl=hf(Qc),Xf=hf(is);function Jf(a){return Ro(a)?ls($i(a)):function(c){return function(g){return ko(g,c)}}(a)}var Ih=gf(),Ys=gf(!0);function Qs(){return[]}function wi(){return!1}var Iu=Ts(function(a,c){return a+c},0),Em=wl("ceil"),jh=Ts(function(a,c){return a/c},1),km=wl("floor"),ed,Tm=Ts(function(a,c){return a*c},1),Cm=wl("round"),Am=Ts(function(a,c){return a-c},0);return O.after=function(a,c){if(typeof c!="function")throw new Fr(f);return a=bt(a),function(){if(--a<1)return c.apply(this,arguments)}},O.ary=Fs,O.assign=mm,O.assignIn=Hf,O.assignInWith=Gs,O.assignWith=ym,O.at=Lo,O.before=zs,O.bind=ao,O.bindAll=Ah,O.bindKey=ph,O.castArray=function(){if(!arguments.length)return[];var a=arguments[0];return ot(a)?a:[a]},O.chain=sh,O.chunk=function(a,c,g){c=(g?sr(a,c,g):c===void 0)?1:Fn(bt(c),0);var w=a==null?0:a.length;if(!w||c<1)return[];for(var b=0,j=0,F=Oe(el(w/c));bce?0:ce+W),(J=J===void 0||J>ce?ce:bt(J))<0&&(J+=ce),J=W>J?0:Uf(J);W>>0)?(a=Jt(a))&&(typeof c=="string"||c!=null&&!Hs(c))&&!(c=C(c))&&Zu(a)?tu(Dt(a),0,g):a.split(c,g):[]},O.spread=function(a,c){if(typeof a!="function")throw new Fr(f);return c=c==null?0:Fn(bt(c),0),yt(function(g){var w=g[c],b=tu(g,0,c);return w&&Oi(b,w),ei(a,this,b)})},O.tail=function(a){var c=a==null?0:a.length;return c?yi(a,1,c):[]},O.take=function(a,c,g){return a&&a.length?yi(a,0,(c=g||c===void 0?1:bt(c))<0?0:c):[]},O.takeRight=function(a,c,g){var w=a==null?0:a.length;return w?yi(a,(c=w-(c=g||c===void 0?1:bt(c)))<0?0:c,w):[]},O.takeRightWhile=function(a,c){return a&&a.length?Tt(a,Ve(c,3),!1,!0):[]},O.takeWhile=function(a,c){return a&&a.length?Tt(a,Ve(c,3)):[]},O.tap=function(a,c){return c(a),a},O.throttle=function(a,c,g){var w=!0,b=!0;if(typeof a!="function")throw new Fr(f);return pn(g)&&(w="leading"in g?!!g.leading:w,b="trailing"in g?!!g.trailing:b),Po(a,c,{leading:w,maxWait:c,trailing:b})},O.thru=Rr,O.toArray=zf,O.toPairs=Sh,O.toPairsIn=qf,O.toPath=function(a){return ot(a)?kn(a,$i):xr(a)?[a]:Nn(Ls(Jt(a)))},O.toPlainObject=Bf,O.transform=function(a,c,g){var w=ot(a),b=w||ui(a)||ha(a);if(c=Ve(c,4),g==null){var j=a&&a.constructor;g=b?w?new j:[]:pn(a)&&Io(j)?Li(Ii(a)):{}}return(b?gi:gr)(a,function(F,W,J){return c(g,F,W,J)}),g},O.unary=function(a){return Fs(a,1)},O.union=Af,O.unionBy=ah,O.unionWith=Of,O.uniq=function(a){return a&&a.length?ri(a):[]},O.uniqBy=function(a,c){return a&&a.length?ri(a,Ve(c,2)):[]},O.uniqWith=function(a,c){return c=typeof c=="function"?c:void 0,a&&a.length?ri(a,void 0,c):[]},O.unset=function(a,c){return a==null||la(a,c)},O.unzip=Rf,O.unzipWith=Ds,O.update=function(a,c,g){return a==null?a:ii(a,c,df(g))},O.updateWith=function(a,c,g,w){return w=typeof w=="function"?w:void 0,a==null?a:ii(a,c,df(g),w)},O.values=ma,O.valuesIn=function(a){return a==null?[]:ds(a,Xn(a))},O.without=Ct,O.words=Ch,O.wrap=function(a,c){return Nf(df(c),a)},O.xor=fm,O.xorBy=dm,O.xorWith=Tl,O.zip=lh,O.zipObject=function(a,c){return Mp(a||[],c||[],Mt)},O.zipObjectDeep=function(a,c){return Mp(a||[],c||[],Jo)},O.zipWith=pm,O.entries=Sh,O.entriesIn=qf,O.extend=Hf,O.extendWith=Gs,Zf(O,O),O.add=Iu,O.attempt=ya,O.camelCase=Eh,O.capitalize=kh,O.ceil=Em,O.clamp=function(a,c,g){return g===void 0&&(g=c,c=void 0),g!==void 0&&(g=(g=Qn(g))==g?g:0),c!==void 0&&(c=(c=Qn(c))==c?c:0),to(Qn(a),c,g)},O.clone=function(a){return mi(a,4)},O.cloneDeep=function(a){return mi(a,5)},O.cloneDeepWith=function(a,c){return mi(a,5,c=typeof c=="function"?c:void 0)},O.cloneWith=function(a,c){return mi(a,4,c=typeof c=="function"?c:void 0)},O.conformsTo=function(a,c){return c==null||Eu(a,c,Zn(c))},O.deburr=Th,O.defaultTo=function(a,c){return a==null||a!=a?c:a},O.divide=jh,O.endsWith=function(a,c,g){a=Jt(a),c=C(c);var w=a.length,b=g=g===void 0?w:to(bt(g),0,w);return(g-=c.length)>=0&&a.slice(g,b)==c},O.eq=Di,O.escape=function(a){return(a=Jt(a))&&we.test(a)?a.replace(xe,Yv):a},O.escapeRegExp=function(a){return(a=Jt(a))&&wt.test(a)?a.replace(Ne,"\\$&"):a},O.every=function(a,c,g){var w=ot(a)?Qc:Op;return g&&sr(a,c,g)&&(c=void 0),w(a,Ve(c,3))},O.find=Pf,O.findIndex=nh,O.findKey=function(a,c){return os(a,Ve(c,3),gr)},O.findLast=ch,O.findLastIndex=Ns,O.findLastKey=function(a,c){return os(a,Ve(c,3),ia)},O.floor=km,O.forEach=If,O.forEachRight=Wr,O.forIn=function(a,c){return a==null?a:of(a,Ve(c,3),Xn)},O.forInRight=function(a,c){return a==null?a:ll(a,Ve(c,3),Xn)},O.forOwn=function(a,c){return a&&gr(a,Ve(c,3))},O.forOwnRight=function(a,c){return a&&ia(a,Ve(c,3))},O.get=Ol,O.gt=mh,O.gte=yh,O.has=function(a,c){return a!=null&&Rs(a,c,Pp)},O.hasIn=ga,O.head=Tf,O.identity=qr,O.includes=function(a,c,g,w){a=Gr(a)?a:ma(a),g=g&&!w?bt(g):0;var b=a.length;return g<0&&(g=Fn(b+g,0)),pa(a)?g<=b&&a.indexOf(c,g)>-1:!!b&&mu(a,c,g)>-1},O.indexOf=function(a,c,g){var w=a==null?0:a.length;if(!w)return-1;var b=g==null?0:bt(g);return b<0&&(b=Fn(w+b,0)),mu(a,c,b)},O.inRange=function(a,c,g){return c=Mi(c),g===void 0?(g=c,c=0):g=Mi(g),function(w,b,j){return w>=yr(b,j)&&w=-9007199254740991&&a<=9007199254740991},O.isSet=Al,O.isString=pa,O.isSymbol=xr,O.isTypedArray=ha,O.isUndefined=function(a){return a===void 0},O.isWeakMap=function(a){return $n(a)&&Qt(a)==Z},O.isWeakSet=function(a){return $n(a)&&wr(a)=="[object WeakSet]"},O.join=function(a,c){return a==null?"":em.call(a,c)},O.kebabCase=wm,O.last=oi,O.lastIndexOf=function(a,c,g){var w=a==null?0:a.length;if(!w)return-1;var b=w;return g!==void 0&&(b=(b=bt(g))<0?Fn(w+b,0):yr(b,w-1)),c==c?function(j,F,W){for(var J=W+1;J--;)if(j[J]===F)return J;return J}(a,c,b):us(a,as,b,!0)},O.lowerCase=No,O.lowerFirst=Pr,O.lt=wh,O.lte=Ws,O.max=function(a){return a&&a.length?ku(a,qr,oa):void 0},O.maxBy=function(a,c){return a&&a.length?ku(a,Ve(c,2),oa):void 0},O.mean=function(a){return yu(a,qr)},O.meanBy=function(a,c){return yu(a,Ve(c,2))},O.min=function(a){return a&&a.length?ku(a,qr,xs):void 0},O.minBy=function(a,c){return a&&a.length?ku(a,Ve(c,2),xs):void 0},O.stubArray=Qs,O.stubFalse=wi,O.stubObject=function(){return{}},O.stubString=function(){return""},O.stubTrue=function(){return!0},O.multiply=Tm,O.nth=function(a,c){return a&&a.length?Np(a,bt(c)):void 0},O.noConflict=function(){return xt._===this&&(xt._=Xv),this},O.noop=Rl,O.now=Cl,O.pad=function(a,c,g){a=Jt(a);var w=(c=bt(c))?Xu(a):0;if(!c||w>=c)return a;var b=(c-w)/2;return _l(tl(b),g)+a+_l(el(b),g)},O.padEnd=function(a,c,g){a=Jt(a);var w=(c=bt(c))?Xu(a):0;return c&&wc){var w=a;a=c,c=w}if(g||a%1||c%1){var b=ms();return yr(a+b*(c-a+Q("1e-"+((b+"").length-1))),c)}return Tu(a,c)},O.reduce=function(a,c,g){var w=ot(a)?rs:hp,b=arguments.length<3;return w(a,Ve(c,4),g,b,Nt)},O.reduceRight=function(a,c,g){var w=ot(a)?Kv:hp,b=arguments.length<3;return w(a,Ve(c,4),g,b,Ap)},O.repeat=function(a,c,g){return c=(g?sr(a,c,g):c===void 0)?1:bt(c),gl(Jt(a),c)},O.replace=function(){var a=arguments,c=Jt(a[0]);return a.length<3?c:c.replace(a[1],a[2])},O.result=function(a,c,g){var w=-1,b=(c=eu(c,a)).length;for(b||(b=1,a=void 0);++w9007199254740991)return[];var g=4294967295,w=yr(a,4294967295);a-=4294967295;for(var b=fs(w,c=Ve(c));++g=j)return a;var W=g-Xu(w);if(W<1)return w;var J=F?tu(F,0,W).join(""):a.slice(0,W);if(b===void 0)return J+w;if(F&&(W+=J.length-W),Hs(b)){if(a.slice(W).search(b)){var ce,se=J;for(b.global||(b=xo(b.source,Jt(vn.exec(b))+"g")),b.lastIndex=0;ce=b.exec(se);)var Se=ce.index;J=J.slice(0,Se===void 0?W:Se)}}else if(a.indexOf(C(b),W)!=W){var Be=J.lastIndexOf(b);Be>-1&&(J=J.slice(0,Be))}return J+w},O.unescape=function(a){return(a=Jt(a))&&pe.test(a)?a.replace(re,mn):a},O.uniqueId=function(a){var c=++xp;return Jt(a)+c},O.upperCase=Vf,O.upperFirst=Yf,O.each=If,O.eachRight=Wr,O.first=Tf,Zf(O,(ed={},gr(O,function(a,c){tn.call(O.prototype,c)||(ed[c]=a)}),ed),{chain:!1}),O.VERSION="4.17.15",gi(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){O[a].placeholder=O}),gi(["drop","take"],function(a,c){Lt.prototype[a]=function(g){g=g===void 0?1:Fn(bt(g),0);var w=this.__filtered__&&!c?new Lt(this):this.clone();return w.__filtered__?w.__takeCount__=yr(g,w.__takeCount__):w.__views__.push({size:yr(g,4294967295),type:a+(w.__dir__<0?"Right":"")}),w},Lt.prototype[a+"Right"]=function(g){return this.reverse()[a](g).reverse()}}),gi(["filter","map","takeWhile"],function(a,c){var g=c+1,w=g==1||g==3;Lt.prototype[a]=function(b){var j=this.clone();return j.__iteratees__.push({iteratee:Ve(b,3),type:g}),j.__filtered__=j.__filtered__||w,j}}),gi(["head","last"],function(a,c){var g="take"+(c?"Right":"");Lt.prototype[a]=function(){return this[g](1).value()[0]}}),gi(["initial","tail"],function(a,c){var g="drop"+(c?"":"Right");Lt.prototype[a]=function(){return this.__filtered__?new Lt(this):this[g](1)}}),Lt.prototype.compact=function(){return this.filter(qr)},Lt.prototype.find=function(a){return this.filter(a).head()},Lt.prototype.findLast=function(a){return this.reverse().find(a)},Lt.prototype.invokeMap=yt(function(a,c){return typeof a=="function"?new Lt(this):this.map(function(g){return Xo(g,a,c)})}),Lt.prototype.reject=function(a){return this.filter(Us(Ve(a)))},Lt.prototype.slice=function(a,c){a=bt(a);var g=this;return g.__filtered__&&(a>0||c<0)?new Lt(g):(a<0?g=g.takeRight(-a):a&&(g=g.drop(a)),c!==void 0&&(g=(c=bt(c))<0?g.dropRight(-c):g.take(c-a)),g)},Lt.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},Lt.prototype.toArray=function(){return this.take(4294967295)},gr(Lt.prototype,function(a,c){var g=/^(?:filter|find|map|reject)|While$/.test(c),w=/^(?:head|last)$/.test(c),b=O[w?"take"+(c=="last"?"Right":""):c],j=w||/^find/.test(c);b&&(O.prototype[c]=function(){var F=this.__wrapped__,W=w?[1]:arguments,J=F instanceof Lt,ce=W[0],se=J||ot(F),Se=function(ct){var He=b.apply(O,Oi([ct],W));return w&&Be?He[0]:He};se&&g&&typeof ce=="function"&&ce.length!=1&&(J=se=!1);var Be=this.__chain__,qe=!!this.__actions__.length,st=j&&!Be,ve=J&&!qe;if(!j&&se){F=ve?F:new Lt(this);var Ce=a.apply(F,W);return Ce.__actions__.push({func:Rr,args:[Se],thisArg:void 0}),new ni(Ce,Be)}return st&&ve?a.apply(this,W):(Ce=this.thru(Se),st?w?Ce.value()[0]:Ce.value():Ce)})}),gi(["pop","push","shift","sort","splice","unshift"],function(a){var c=Cr[a],g=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",w=/^(?:pop|shift)$/.test(a);O.prototype[a]=function(){var b=arguments;if(w&&!this.__chain__){var j=this.value();return c.apply(ot(j)?j:[],b)}return this[g](function(F){return c.apply(ot(F)?F:[],b)})}}),gr(Lt.prototype,function(a,c){var g=O[c];if(g){var w=g.name+"";tn.call(ji,w)||(ji[w]=[]),ji[w].push({name:c,func:g})}}),ji[ks(void 0,2).name]=[{name:"wrapper",func:void 0}],Lt.prototype.clone=function(){var a=new Lt(this.__wrapped__);return a.__actions__=Nn(this.__actions__),a.__dir__=this.__dir__,a.__filtered__=this.__filtered__,a.__iteratees__=Nn(this.__iteratees__),a.__takeCount__=this.__takeCount__,a.__views__=Nn(this.__views__),a},Lt.prototype.reverse=function(){if(this.__filtered__){var a=new Lt(this);a.__dir__=-1,a.__filtered__=!0}else(a=this.clone()).__dir__*=-1;return a},Lt.prototype.value=function(){var a=this.__wrapped__.value(),c=this.__dir__,g=ot(a),w=c<0,b=g?a.length:0,j=function(At,Xe,at){for(var rr=-1,Ir=at.length;++rr=this.__values__.length;return{done:a,value:a?void 0:this.__values__[this.__index__++]}},O.prototype.plant=function(a){for(var c,g=this;g instanceof Ur;){var w=eh(g);w.__index__=0,w.__values__=void 0,c?b.__wrapped__=w:c=w;var b=w;g=g.__wrapped__}return b.__wrapped__=a,c},O.prototype.reverse=function(){var a=this.__wrapped__;if(a instanceof Lt){var c=a;return this.__actions__.length&&(c=new Lt(this)),(c=c.reverse()).__actions__.push({func:Rr,args:[Cf],thisArg:void 0}),new ni(c,this.__chain__)}return this.thru(Cf)},O.prototype.toJSON=O.prototype.valueOf=O.prototype.value=function(){return Dp(this.__wrapped__,this.__actions__)},O.prototype.first=O.prototype.head,Xa&&(O.prototype[Xa]=function(){return this}),O}();l(n(46))=="object"&&n(46)?(xt._=Yo,(u=(function(){return Yo}).call(t,n,t,i))===void 0||(i.exports=u)):wn?((wn.exports=Yo)._=Yo,Kn._=Yo):xt._=Yo}).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(i){return r(i,4)}},function(e,t,n){var r=n(29),i=n(33),u=n(49),l=n(118),f=n(124),d=n(127),h=n(128),m=n(129),v=n(130),_=n(59),x=n(131),A=n(10),R=n(135),N=n(136),k=n(141),E=n(0),T=n(12),P=n(142),L=n(5),U=n(144),G=n(6),Z={};Z["[object Arguments]"]=Z["[object Array]"]=Z["[object ArrayBuffer]"]=Z["[object DataView]"]=Z["[object Boolean]"]=Z["[object Date]"]=Z["[object Float32Array]"]=Z["[object Float64Array]"]=Z["[object Int8Array]"]=Z["[object Int16Array]"]=Z["[object Int32Array]"]=Z["[object Map]"]=Z["[object Number]"]=Z["[object Object]"]=Z["[object RegExp]"]=Z["[object Set]"]=Z["[object String]"]=Z["[object Symbol]"]=Z["[object Uint8Array]"]=Z["[object Uint8ClampedArray]"]=Z["[object Uint16Array]"]=Z["[object Uint32Array]"]=!0,Z["[object Error]"]=Z["[object Function]"]=Z["[object WeakMap]"]=!1,e.exports=function Ee(K,ae,ne,Ie,Re,Fe){var lt,Je=1&ae,le=2&ae,me=4&ae;if(ne&&(lt=Re?ne(K,Ie,Re,Fe):ne(K)),lt!==void 0)return lt;if(!L(K))return K;var Le=E(K);if(Le){if(lt=R(K),!Je)return h(K,lt)}else{var B=A(K),re=B=="[object Function]"||B=="[object GeneratorFunction]";if(T(K))return d(K,Je);if(B=="[object Object]"||B=="[object Arguments]"||re&&!Re){if(lt=le||re?{}:k(K),!Je)return le?v(K,f(lt,K)):m(K,l(lt,K))}else{if(!Z[B])return Re?K:{};lt=N(K,B,Je)}}Fe||(Fe=new r);var xe=Fe.get(K);if(xe)return xe;Fe.set(K,lt),U(K)?K.forEach(function(ye){lt.add(Ee(ye,ae,ne,ye,K,Fe))}):P(K)&&K.forEach(function(ye,ze){lt.set(ze,Ee(ye,ae,ne,ze,K,Fe))});var pe=me?le?x:_:le?keysIn:G,we=Le?void 0:pe(K);return i(we||K,function(ye,ze){we&&(ye=K[ze=ye]),u(lt,ze,Ee(ye,ae,ne,ze,K,Fe))}),lt}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(16),i=Array.prototype.splice;e.exports=function(u){var l=this.__data__,f=r(l,u);return!(f<0)&&(f==l.length-1?l.pop():i.call(l,f,1),--this.size,!0)}},function(e,t,n){var r=n(16);e.exports=function(i){var u=this.__data__,l=r(u,i);return l<0?void 0:u[l][1]}},function(e,t,n){var r=n(16);e.exports=function(i){return r(this.__data__,i)>-1}},function(e,t,n){var r=n(16);e.exports=function(i,u){var l=this.__data__,f=r(l,i);return f<0?(++this.size,l.push([i,u])):l[f][1]=u,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__,i=r.delete(n);return this.size=r.size,i}},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),i=n(31),u=n(32);e.exports=function(l,f){var d=this.__data__;if(d instanceof r){var h=d.__data__;if(!i||h.length<199)return h.push([l,f]),this.size=++d.size,this;d=this.__data__=new u(h)}return d.set(l,f),this.size=d.size,this}},function(e,t,n){var r=n(17),i=n(103),u=n(5),l=n(48),f=/^\[object .+?Constructor\]$/,d=Function.prototype,h=Object.prototype,m=d.toString,v=h.hasOwnProperty,_=RegExp("^"+m.call(v).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(x){return!(!u(x)||i(x))&&(r(x)?_:f).test(l(x))}},function(e,t,n){var r=n(9),i=Object.prototype,u=i.hasOwnProperty,l=i.toString,f=r?r.toStringTag:void 0;e.exports=function(d){var h=u.call(d,f),m=d[f];try{d[f]=void 0;var v=!0}catch{}var _=l.call(d);return v&&(h?d[f]=m:delete d[f]),_}},function(e,t){var n=Object.prototype.toString;e.exports=function(r){return n.call(r)}},function(e,t,n){var r,i=n(104),u=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(l){return!!u&&u in l}},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),i=n(15),u=n(31);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(u||i),string:new r}}},function(e,t,n){var r=n(108),i=n(109),u=n(110),l=n(111),f=n(112);function d(h){var m=-1,v=h==null?0:h.length;for(this.clear();++m0&&d(x)?f>1?u(x,f-1,d,h,m):r(m,x):h||(m[m.length]=x)}return m}},function(e,t,n){var r=n(9),i=n(21),u=n(0),l=r?r.isConcatSpreadable:void 0;e.exports=function(f){return u(f)||i(f)||!!(l&&f&&f[l])}},function(e,t,n){var r=n(25),i=n(195),u=n(197);e.exports=function(l,f){return u(i(l,f,r),l+"")}},function(e,t,n){var r=n(196),i=Math.max;e.exports=function(u,l,f){return l=i(l===void 0?u.length-1:l,0),function(){for(var d=arguments,h=-1,m=i(d.length-l,0),v=Array(m);++h0){if(++i>=800)return arguments[0]}else i=0;return r.apply(void 0,arguments)}}},function(e,t,n){var r=n(68),i=n(201),u=n(206),l=n(69),f=n(207),d=n(42);e.exports=function(h,m,v){var _=-1,x=i,A=h.length,R=!0,N=[],k=N;if(v)R=!1,x=u;else if(A>=200){var E=m?null:f(h);if(E)return d(E);R=!1,x=l,k=new r}else k=m?[]:N;e:for(;++_-1}},function(e,t,n){var r=n(203),i=n(204),u=n(205);e.exports=function(l,f,d){return f==f?u(l,f,d):r(l,i,d)}},function(e,t){e.exports=function(n,r,i,u){for(var l=n.length,f=i+(u?1:-1);u?f--:++f1||l.length===1&&u.hasEdge(l[0],l[0])})}},function(e,t,n){var r=n(1);e.exports=function(u,l,f){return function(d,h,m){var v={},_=d.nodes();return _.forEach(function(x){v[x]={},v[x][x]={distance:0},_.forEach(function(A){x!==A&&(v[x][A]={distance:Number.POSITIVE_INFINITY})}),m(x).forEach(function(A){var R=A.v===x?A.w:A.v,N=h(A);v[x][R]={distance:N,predecessor:x}})}),_.forEach(function(x){var A=v[x];_.forEach(function(R){var N=v[R];_.forEach(function(k){var E=N[x],T=A[k],P=N[k],L=E.distance+T.distance;L0;){if(d=v.removeMin(),r.has(m,d))h.setEdge(d,m[d]);else{if(x)throw new Error("Input graph is not connected: "+l);x=!0}l.nodeEdges(d).forEach(_)}return h}},function(e,t,n){(function(r){function i(f,d){for(var h=0,m=f.length-1;m>=0;m--){var v=f[m];v==="."?f.splice(m,1):v===".."?(f.splice(m,1),h++):h&&(f.splice(m,1),h--)}if(d)for(;h--;h)f.unshift("..");return f}function u(f,d){if(f.filter)return f.filter(d);for(var h=[],m=0;m=-1&&!d;h--){var m=h>=0?arguments[h]:r.cwd();if(typeof m!="string")throw new TypeError("Arguments to path.resolve must be strings");m&&(f=m+"/"+f,d=m.charAt(0)==="/")}return(d?"/":"")+(f=i(u(f.split("/"),function(v){return!!v}),!d).join("/"))||"."},t.normalize=function(f){var d=t.isAbsolute(f),h=l(f,-1)==="/";return(f=i(u(f.split("/"),function(m){return!!m}),!d).join("/"))||d||(f="."),f&&h&&(f+="/"),(d?"/":"")+f},t.isAbsolute=function(f){return f.charAt(0)==="/"},t.join=function(){var f=Array.prototype.slice.call(arguments,0);return t.normalize(u(f,function(d,h){if(typeof d!="string")throw new TypeError("Arguments to path.join must be strings");return d}).join("/"))},t.relative=function(f,d){function h(N){for(var k=0;k=0&&N[E]==="";E--);return k>E?[]:N.slice(k,E-k+1)}f=t.resolve(f).substr(1),d=t.resolve(d).substr(1);for(var m=h(f.split("/")),v=h(d.split("/")),_=Math.min(m.length,v.length),x=_,A=0;A<_;A++)if(m[A]!==v[A]){x=A;break}var R=[];for(A=x;A=1;--_)if((d=f.charCodeAt(_))===47){if(!v){m=_;break}}else v=!1;return m===-1?h?"/":".":h&&m===1?"/":f.slice(0,m)},t.basename=function(f,d){var h=function(m){typeof m!="string"&&(m+="");var v,_=0,x=-1,A=!0;for(v=m.length-1;v>=0;--v)if(m.charCodeAt(v)===47){if(!A){_=v+1;break}}else x===-1&&(A=!1,x=v+1);return x===-1?"":m.slice(_,x)}(f);return d&&h.substr(-1*d.length)===d&&(h=h.substr(0,h.length-d.length)),h},t.extname=function(f){typeof f!="string"&&(f+="");for(var d=-1,h=0,m=-1,v=!0,_=0,x=f.length-1;x>=0;--x){var A=f.charCodeAt(x);if(A!==47)m===-1&&(v=!1,m=x+1),A===46?d===-1?d=x:_!==1&&(_=1):d!==-1&&(_=-1);else if(!v){h=x+1;break}}return d===-1||m===-1||_===0||_===1&&d===m-1&&d===h+1?"":f.slice(d,m)};var l="ab".substr(-1)==="b"?function(f,d,h){return f.substr(d,h)}:function(f,d,h){return d<0&&(d=f.length+d),f.substr(d,h)}}).call(this,n(13))},function(e,t,n){function r(l){return(r=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})(l)}var i={file:n(225),http:n(81),https:n(81)},u=(typeof window>"u"?"undefined":r(window))==="object"||typeof importScripts=="function"?i.http:i.file;typeof Promise>"u"&&n(83),e.exports.load=function(l,f){var d=Promise.resolve();return f===void 0&&(f={}),d=(d=d.then(function(){if(l===void 0)throw new TypeError("location is required");if(typeof l!="string")throw new TypeError("location must be a string");if(f!==void 0){if(r(f)!=="object")throw new TypeError("options must be an object");if(f.processContent!==void 0&&typeof f.processContent!="function")throw new TypeError("options.processContent must be a function")}})).then(function(){return new Promise(function(h,m){(function(v){var _=function(A){return A!==void 0&&(A=A.indexOf("://")===-1?"":A.split("://")[0]),A}(v),x=i[_];if(x===void 0){if(_!=="")throw new Error("Unsupported scheme: "+_);x=u}return x})(l).load(l,f||{},function(v,_){v?m(v):h(_)})})}).then(function(h){return f.processContent?new Promise(function(m,v){r(h)!=="object"&&(h={text:h}),h.location=l,f.processContent(h,function(_,x){_?v(_):m(x)})}):r(h)==="object"?h.text:h})}},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 i=arguments[arguments.length-1];if(typeof i!="function")throw r;i(r)}},function(e,t,n){function r(P){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})(P)}var i;typeof window<"u"?i=window:typeof self<"u"?i=self:(console.warn("Using browser-only version of superagent in non-browser environment"),i=this);var u=n(227),l=n(228),f=n(82),d=n(229),h=n(231);function m(){}var v=t=e.exports=function(P,L){return typeof L=="function"?new t.Request("GET",P).end(L):arguments.length==1?new t.Request("GET",P):new t.Request(P,L)};t.Request=E,v.getXHR=function(){if(!(!i.XMLHttpRequest||i.location&&i.location.protocol=="file:"&&i.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 _="".trim?function(P){return P.trim()}:function(P){return P.replace(/(^\s*|\s*$)/g,"")};function x(P){if(!f(P))return P;var L=[];for(var U in P)A(L,U,P[U]);return L.join("&")}function A(P,L,U){if(U!=null)if(Array.isArray(U))U.forEach(function(Z){A(P,L,Z)});else if(f(U))for(var G in U)A(P,L+"["+G+"]",U[G]);else P.push(encodeURIComponent(L)+"="+encodeURIComponent(U));else U===null&&P.push(encodeURIComponent(L))}function R(P){for(var L,U,G={},Z=P.split("&"),Ee=0,K=Z.length;Ee=2&&P._responseTimeoutTimer&&clearTimeout(P._responseTimeoutTimer),ae==4){var ne;try{ne=L.status}catch{ne=0}if(!ne)return P.timedout||P._aborted?void 0:P.crossDomainError();P.emit("end")}};var G=function(ae,ne){ne.total>0&&(ne.percent=ne.loaded/ne.total*100),ne.direction=ae,P.emit("progress",ne)};if(this.hasListeners("progress"))try{L.onprogress=G.bind(null,"download"),L.upload&&(L.upload.onprogress=G.bind(null,"upload"))}catch{}try{this.username&&this.password?L.open(this.method,this.url,!0,this.username,this.password):L.open(this.method,this.url,!0)}catch(ae){return this.callback(ae)}if(this._withCredentials&&(L.withCredentials=!0),!this._formData&&this.method!="GET"&&this.method!="HEAD"&&typeof U!="string"&&!this._isHost(U)){var Z=this._header["content-type"],Ee=this._serializer||v.serialize[Z?Z.split(";")[0]:""];!Ee&&N(Z)&&(Ee=v.serialize["application/json"]),Ee&&(U=Ee(U))}for(var K in this.header)this.header[K]!=null&&this.header.hasOwnProperty(K)&&L.setRequestHeader(K,this.header[K]);return this._responseType&&(L.responseType=this._responseType),this.emit("request",this),L.send(U!==void 0?U:null),this},v.agent=function(){return new h},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(P){h.prototype[P.toLowerCase()]=function(L,U){var G=new v.Request(P,L);return this._setDefaults(G),U&&G.end(U),G}}),h.prototype.del=h.prototype.delete,v.get=function(P,L,U){var G=v("GET",P);return typeof L=="function"&&(U=L,L=null),L&&G.query(L),U&&G.end(U),G},v.head=function(P,L,U){var G=v("HEAD",P);return typeof L=="function"&&(U=L,L=null),L&&G.query(L),U&&G.end(U),G},v.options=function(P,L,U){var G=v("OPTIONS",P);return typeof L=="function"&&(U=L,L=null),L&&G.send(L),U&&G.end(U),G},v.del=T,v.delete=T,v.patch=function(P,L,U){var G=v("PATCH",P);return typeof L=="function"&&(U=L,L=null),L&&G.send(L),U&&G.end(U),G},v.post=function(P,L,U){var G=v("POST",P);return typeof L=="function"&&(U=L,L=null),L&&G.send(L),U&&G.end(U),G},v.put=function(P,L,U){var G=v("PUT",P);return typeof L=="function"&&(U=L,L=null),L&&G.send(L),U&&G.end(U),G}},function(e,t,n){function r(i){if(i)return function(u){for(var l in r.prototype)u[l]=r.prototype[l];return u}(i)}e.exports=r,r.prototype.on=r.prototype.addEventListener=function(i,u){return this._callbacks=this._callbacks||{},(this._callbacks["$"+i]=this._callbacks["$"+i]||[]).push(u),this},r.prototype.once=function(i,u){function l(){this.off(i,l),u.apply(this,arguments)}return l.fn=u,this.on(i,l),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(i,u){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var l,f=this._callbacks["$"+i];if(!f)return this;if(arguments.length==1)return delete this._callbacks["$"+i],this;for(var d=0;d=this._maxRetries)return!1;if(this._retryCallback)try{var h=this._retryCallback(f,d);if(h===!0)return!0;if(h===!1)return!1}catch(m){console.error(m)}return!!(d&&d.status&&d.status>=500&&d.status!=501||f&&(f.code&&~l.indexOf(f.code)||f.timeout&&f.code=="ECONNABORTED"||f.crossDomain))},u.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this._end()},u.prototype.then=function(f,d){if(!this._fullfilledPromise){var h=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(m,v){h.end(function(_,x){_?v(_):m(x)})})}return this._fullfilledPromise.then(f,d)},u.prototype.catch=function(f){return this.then(void 0,f)},u.prototype.use=function(f){return f(this),this},u.prototype.ok=function(f){if(typeof f!="function")throw Error("Callback required");return this._okCallback=f,this},u.prototype._isResponseOK=function(f){return!!f&&(this._okCallback?this._okCallback(f):f.status>=200&&f.status<300)},u.prototype.get=function(f){return this._header[f.toLowerCase()]},u.prototype.getHeader=u.prototype.get,u.prototype.set=function(f,d){if(i(f)){for(var h in f)this.set(h,f[h]);return this}return this._header[f.toLowerCase()]=d,this.header[f]=d,this},u.prototype.unset=function(f){return delete this._header[f.toLowerCase()],delete this.header[f],this},u.prototype.field=function(f,d){if(f==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()"),i(f)){for(var h in f)this.field(h,f[h]);return this}if(Array.isArray(d)){for(var m in d)this.field(f,d[m]);return this}if(d==null)throw new Error(".field(name, val) val can not be empty");return typeof d=="boolean"&&(d=""+d),this._getFormData().append(f,d),this},u.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},u.prototype._auth=function(f,d,h,m){switch(h.type){case"basic":this.set("Authorization","Basic "+m(f+":"+d));break;case"auto":this.username=f,this.password=d;break;case"bearer":this.set("Authorization","Bearer "+f)}return this},u.prototype.withCredentials=function(f){return f==null&&(f=!0),this._withCredentials=f,this},u.prototype.redirects=function(f){return this._maxRedirects=f,this},u.prototype.maxResponseSize=function(f){if(typeof f!="number")throw TypeError("Invalid argument");return this._maxResponseSize=f,this},u.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},u.prototype.send=function(f){var d=i(f),h=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()"),d&&!this._data)Array.isArray(f)?this._data=[]:this._isHost(f)||(this._data={});else if(f&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(d&&i(this._data))for(var m in f)this._data[m]=f[m];else typeof f=="string"?(h||this.type("form"),h=this._header["content-type"],this._data=h=="application/x-www-form-urlencoded"?this._data?this._data+"&"+f:f:(this._data||"")+f):this._data=f;return!d||this._isHost(f)||h||this.type("json"),this},u.prototype.sortQuery=function(f){return this._sort=f===void 0||f,this},u.prototype._finalizeQueryString=function(){var f=this._query.join("&");if(f&&(this.url+=(this.url.indexOf("?")>=0?"&":"?")+f),this._query.length=0,this._sort){var d=this.url.indexOf("?");if(d>=0){var h=this.url.substring(d+1).split("&");typeof this._sort=="function"?h.sort(this._sort):h.sort(),this.url=this.url.substring(0,d)+"?"+h.join("&")}}},u.prototype._appendQueryString=function(){console.trace("Unsupported")},u.prototype._timeoutError=function(f,d,h){if(!this._aborted){var m=new Error(f+d+"ms exceeded");m.timeout=d,m.code="ECONNABORTED",m.errno=h,this.timedout=!0,this.abort(),this.callback(m)}},u.prototype._setTimeouts=function(){var f=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){f._timeoutError("Timeout of ",f._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){f._timeoutError("Response timeout of ",f._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},function(e,t,n){var r=n(230);function i(u){if(u)return function(l){for(var f in i.prototype)l[f]=i.prototype[f];return l}(u)}e.exports=i,i.prototype.get=function(u){return this.header[u.toLowerCase()]},i.prototype._setHeaderProperties=function(u){var l=u["content-type"]||"";this.type=r.type(l);var f=r.params(l);for(var d in f)this[d]=f[d];this.links={};try{u.link&&(this.links=r.parseLinks(u.link))}catch{}},i.prototype._setStatusProperties=function(u){var l=u/100|0;this.status=this.statusCode=u,this.statusType=l,this.info=l==1,this.ok=l==2,this.redirect=l==3,this.clientError=l==4,this.serverError=l==5,this.error=(l==4||l==5)&&this.toError(),this.created=u==201,this.accepted=u==202,this.noContent=u==204,this.badRequest=u==400,this.unauthorized=u==401,this.notAcceptable=u==406,this.forbidden=u==403,this.notFound=u==404,this.unprocessableEntity=u==422}},function(e,t,n){t.type=function(r){return r.split(/ *; */).shift()},t.params=function(r){return r.split(/ *; */).reduce(function(i,u){var l=u.split(/ *= */),f=l.shift(),d=l.shift();return f&&d&&(i[f]=d),i},{})},t.parseLinks=function(r){return r.split(/ *, */).reduce(function(i,u){var l=u.split(/ *; */),f=l[0].slice(1,-1);return i[l[1].split(/ *= */)[1].slice(1,-1)]=f,i},{})},t.cleanHeader=function(r,i){return delete r["content-type"],delete r["content-length"],delete r["transfer-encoding"],delete r.host,i&&(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(i){r[i.fn].apply(r,i.arguments)})},e.exports=n},function(e,t,n){(function(r){var i=r!==void 0&&r||typeof self<"u"&&self||window,u=Function.prototype.apply;function l(f,d){this._id=f,this._clearFn=d}t.setTimeout=function(){return new l(u.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new l(u.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(f){f&&f.close()},l.prototype.unref=l.prototype.ref=function(){},l.prototype.close=function(){this._clearFn.call(i,this._id)},t.enroll=function(f,d){clearTimeout(f._idleTimeoutId),f._idleTimeout=d},t.unenroll=function(f){clearTimeout(f._idleTimeoutId),f._idleTimeout=-1},t._unrefActive=t.active=function(f){clearTimeout(f._idleTimeoutId);var d=f._idleTimeout;d>=0&&(f._idleTimeoutId=setTimeout(function(){f._onTimeout&&f._onTimeout()},d))},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,i){(function(u,l){if(!u.setImmediate){var f,d,h,m,v,_=1,x={},A=!1,R=u.document,N=Object.getPrototypeOf&&Object.getPrototypeOf(u);N=N&&N.setTimeout?N:u,{}.toString.call(u.process)==="[object process]"?f=function(T){i.nextTick(function(){E(T)})}:function(){if(u.postMessage&&!u.importScripts){var T=!0,P=u.onmessage;return u.onmessage=function(){T=!1},u.postMessage("","*"),u.onmessage=P,T}}()?(m="setImmediate$"+Math.random()+"$",v=function(T){T.source===u&&typeof T.data=="string"&&T.data.indexOf(m)===0&&E(+T.data.slice(m.length))},u.addEventListener?u.addEventListener("message",v,!1):u.attachEvent("onmessage",v),f=function(T){u.postMessage(m+T,"*")}):u.MessageChannel?((h=new MessageChannel).port1.onmessage=function(T){E(T.data)},f=function(T){h.port2.postMessage(T)}):R&&"onreadystatechange"in R.createElement("script")?(d=R.documentElement,f=function(T){var P=R.createElement("script");P.onreadystatechange=function(){E(T),P.onreadystatechange=null,d.removeChild(P),P=null},d.appendChild(P)}):f=function(T){setTimeout(E,0,T)},N.setImmediate=function(T){typeof T!="function"&&(T=new Function(""+T));for(var P=new Array(arguments.length-1),L=0;L"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(u,l){return Object.prototype.hasOwnProperty.call(u,l)}e.exports=function(u,l,f,d){l=l||"&",f=f||"=";var h={};if(typeof u!="string"||u.length===0)return h;var m=/\+/g;u=u.split(l);var v=1e3;d&&typeof d.maxKeys=="number"&&(v=d.maxKeys);var _=u.length;v>0&&_>v&&(_=v);for(var x=0;x<_;++x){var A,R,N,k,E=u[x].replace(m,"%20"),T=E.indexOf(f);T>=0?(A=E.substr(0,T),R=E.substr(T+1)):(A=E,R=""),N=decodeURIComponent(A),k=decodeURIComponent(R),r(h,N)?i(h[N])?h[N].push(k):h[N]=[h[N],k]:h[N]=k}return h};var i=Array.isArray||function(u){return Object.prototype.toString.call(u)==="[object Array]"}},function(e,t,n){function r(d){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h})(d)}var i=function(d){switch(r(d)){case"string":return d;case"boolean":return d?"true":"false";case"number":return isFinite(d)?d:"";default:return""}};e.exports=function(d,h,m,v){return h=h||"&",m=m||"=",d===null&&(d=void 0),r(d)==="object"?l(f(d),function(_){var x=encodeURIComponent(i(_))+m;return u(d[_])?l(d[_],function(A){return x+encodeURIComponent(i(A))}).join(h):x+encodeURIComponent(i(d[_]))}).join(h):v?encodeURIComponent(i(v))+m+encodeURIComponent(i(d)):""};var u=Array.isArray||function(d){return Object.prototype.toString.call(d)==="[object Array]"};function l(d,h){if(d.map)return d.map(h);for(var m=[],v=0;v1){z[0]=z[0].slice(0,-1);for(var ue=z.length-1,ie=1;ie= 0x80 (not a basic code point)","invalid-input":"Invalid input"},U=Math.floor,G=String.fromCharCode;function Z($){throw new RangeError(L[$])}function Ee($,z){var q=$.split("@"),ue="";q.length>1&&(ue=q[0]+"@",$=q[1]);var ie=function(Ae,$e){for(var ft=[],Bt=Ae.length;Bt--;)ft[Bt]=$e(Ae[Bt]);return ft}(($=$.replace(P,".")).split("."),z).join(".");return ue+ie}function K($){for(var z=[],q=0,ue=$.length;q=55296&&ie<=56319&&q>1,$+=U($/z);$>455;ue+=36)$=U($/35);return U(ue+36*$/($+38))},Ie=function($){var z,q=[],ue=$.length,ie=0,Ae=128,$e=72,ft=$.lastIndexOf("-");ft<0&&(ft=0);for(var Bt=0;Bt=128&&Z("not-basic"),q.push($.charCodeAt(Bt));for(var nt=ft>0?ft+1:0;nt=ue&&Z("invalid-input");var $t=(z=$.charCodeAt(nt++))-48<10?z-22:z-65<26?z-65:z-97<26?z-97:36;($t>=36||$t>U((k-ie)/Ht))&&Z("overflow"),ie+=$t*Ht;var An=En<=$e?1:En>=$e+26?26:En-$e;if($tU(k/rn)&&Z("overflow"),Ht*=rn}var sn=q.length+1;$e=ne(ie-qt,sn,qt==0),U(ie/sn)>k-Ae&&Z("overflow"),Ae+=U(ie/sn),ie%=sn,q.splice(ie++,0,Ae)}return String.fromCodePoint.apply(String,q)},Re=function($){var z=[],q=($=K($)).length,ue=128,ie=0,Ae=72,$e=!0,ft=!1,Bt=void 0;try{for(var nt,qt=$[Symbol.iterator]();!($e=(nt=qt.next()).done);$e=!0){var Ht=nt.value;Ht<128&&z.push(G(Ht))}}catch(xt){ft=!0,Bt=xt}finally{try{!$e&&qt.return&&qt.return()}finally{if(ft)throw Bt}}var En=z.length,$t=En;for(En&&z.push("-");$t=ue&&JrU((k-ie)/pr)&&Z("overflow"),ie+=(An-ue)*pr,ue=An;var jn=!0,Ji=!1,pi=void 0;try{for(var vu,Yt=$[Symbol.iterator]();!(jn=(vu=Yt.next()).done);jn=!0){var Zt=vu.value;if(Ztk&&Z("overflow"),Zt==ue){for(var Ue=ie,Q=36;;Q+=36){var be=Q<=Ae?1:Q>=Ae+26?26:Q-Ae;if(Ue>6|192).toString(16).toUpperCase()+"%"+(63&z|128).toString(16).toUpperCase():"%"+(z>>12|224).toString(16).toUpperCase()+"%"+(z>>6&63|128).toString(16).toUpperCase()+"%"+(63&z|128).toString(16).toUpperCase()}function me($){for(var z="",q=0,ue=$.length;q=194&&ie<224){if(ue-q>=6){var Ae=parseInt($.substr(q+4,2),16);z+=String.fromCharCode((31&ie)<<6|63&Ae)}else z+=$.substr(q,6);q+=6}else if(ie>=224){if(ue-q>=9){var $e=parseInt($.substr(q+4,2),16),ft=parseInt($.substr(q+7,2),16);z+=String.fromCharCode((15&ie)<<12|(63&$e)<<6|63&ft)}else z+=$.substr(q,9);q+=9}else z+=$.substr(q,3),q+=3}return z}function Le($,z){function q(ue){var ie=me(ue);return ie.match(z.UNRESERVED)?ie:ue}return $.scheme&&($.scheme=String($.scheme).replace(z.PCT_ENCODED,q).toLowerCase().replace(z.NOT_SCHEME,"")),$.userinfo!==void 0&&($.userinfo=String($.userinfo).replace(z.PCT_ENCODED,q).replace(z.NOT_USERINFO,le).replace(z.PCT_ENCODED,_)),$.host!==void 0&&($.host=String($.host).replace(z.PCT_ENCODED,q).toLowerCase().replace(z.NOT_HOST,le).replace(z.PCT_ENCODED,_)),$.path!==void 0&&($.path=String($.path).replace(z.PCT_ENCODED,q).replace($.scheme?z.NOT_PATH:z.NOT_PATH_NOSCHEME,le).replace(z.PCT_ENCODED,_)),$.query!==void 0&&($.query=String($.query).replace(z.PCT_ENCODED,q).replace(z.NOT_QUERY,le).replace(z.PCT_ENCODED,_)),$.fragment!==void 0&&($.fragment=String($.fragment).replace(z.PCT_ENCODED,q).replace(z.NOT_FRAGMENT,le).replace(z.PCT_ENCODED,_)),$}function B($){return $.replace(/^0*(.*)/,"$1")||"0"}function re($,z){var q=$.match(z.IPV4ADDRESS)||[],ue=N(q,2)[1];return ue?ue.split(".").map(B).join("."):$}function xe($,z){var q=$.match(z.IPV6ADDRESS)||[],ue=N(q,3),ie=ue[1],Ae=ue[2];if(ie){for(var $e=ie.toLowerCase().split("::").reverse(),ft=N($e,2),Bt=ft[0],nt=ft[1],qt=nt?nt.split(":").map(B):[],Ht=Bt.split(":").map(B),En=z.IPV4ADDRESS.test(Ht[Ht.length-1]),$t=En?7:8,An=Ht.length-$t,rn=Array($t),sn=0;sn<$t;++sn)rn[sn]=qt[sn]||Ht[An+sn]||"";En&&(rn[$t-1]=re(rn[$t-1],z));var lr=rn.reduce(function(pr,jn,Ji){if(!jn||jn==="0"){var pi=pr[pr.length-1];pi&&pi.index+pi.length===Ji?pi.length++:pr.push({index:Ji,length:1})}return pr},[]).sort(function(pr,jn){return jn.length-pr.length})[0],$r=void 0;if(lr&&lr.length>1){var Dr=rn.slice(0,lr.index),Jr=rn.slice(lr.index+lr.length);$r=Dr.join(":")+"::"+Jr.join(":")}else $r=rn.join(":");return Ae&&($r+="%"+Ae),$r}return $}var pe=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,we="".match(/(){0}/)[1]===void 0;function ye($){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},q={},ue=z.iri!==!1?R:A;z.reference==="suffix"&&($=(z.scheme?z.scheme+":":"")+"//"+$);var ie=$.match(pe);if(ie){we?(q.scheme=ie[1],q.userinfo=ie[3],q.host=ie[4],q.port=parseInt(ie[5],10),q.path=ie[6]||"",q.query=ie[7],q.fragment=ie[8],isNaN(q.port)&&(q.port=ie[5])):(q.scheme=ie[1]||void 0,q.userinfo=$.indexOf("@")!==-1?ie[3]:void 0,q.host=$.indexOf("//")!==-1?ie[4]:void 0,q.port=parseInt(ie[5],10),q.path=ie[6]||"",q.query=$.indexOf("?")!==-1?ie[7]:void 0,q.fragment=$.indexOf("#")!==-1?ie[8]:void 0,isNaN(q.port)&&(q.port=$.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?ie[4]:void 0)),q.host&&(q.host=xe(re(q.host,ue),ue)),q.scheme!==void 0||q.userinfo!==void 0||q.host!==void 0||q.port!==void 0||q.path||q.query!==void 0?q.scheme===void 0?q.reference="relative":q.fragment===void 0?q.reference="absolute":q.reference="uri":q.reference="same-document",z.reference&&z.reference!=="suffix"&&z.reference!==q.reference&&(q.error=q.error||"URI is not a "+z.reference+" reference.");var Ae=Je[(z.scheme||q.scheme||"").toLowerCase()];if(z.unicodeSupport||Ae&&Ae.unicodeSupport)Le(q,ue);else{if(q.host&&(z.domainHost||Ae&&Ae.domainHost))try{q.host=Fe(q.host.replace(ue.PCT_ENCODED,me).toLowerCase())}catch($e){q.error=q.error||"Host's domain name can not be converted to ASCII via punycode: "+$e}Le(q,A)}Ae&&Ae.parse&&Ae.parse(q,z)}else q.error=q.error||"URI can not be parsed.";return q}function ze($,z){var q=z.iri!==!1?R:A,ue=[];return $.userinfo!==void 0&&(ue.push($.userinfo),ue.push("@")),$.host!==void 0&&ue.push(xe(re(String($.host),q),q).replace(q.IPV6ADDRESS,function(ie,Ae,$e){return"["+Ae+($e?"%25"+$e:"")+"]"})),typeof $.port=="number"&&(ue.push(":"),ue.push($.port.toString(10))),ue.length?ue.join(""):void 0}var Qe=/^\.\.?\//,tt=/^\/\.(\/|$)/,_t=/^\/\.\.(\/|$)/,it=/^\/?(?:.|\n)*?(?=\/|$)/;function Ne($){for(var z=[];$.length;)if($.match(Qe))$=$.replace(Qe,"");else if($.match(tt))$=$.replace(tt,"/");else if($.match(_t))$=$.replace(_t,"/"),z.pop();else if($==="."||$==="..")$="";else{var q=$.match(it);if(!q)throw new Error("Unexpected dot segment condition");var ue=q[0];$=$.slice(ue.length),z.push(ue)}return z.join("")}function wt($){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},q=z.iri?R:A,ue=[],ie=Je[(z.scheme||$.scheme||"").toLowerCase()];if(ie&&ie.serialize&&ie.serialize($,z),$.host&&!q.IPV6ADDRESS.test($.host)){if(z.domainHost||ie&&ie.domainHost)try{$.host=z.iri?lt($.host):Fe($.host.replace(q.PCT_ENCODED,me).toLowerCase())}catch(ft){$.error=$.error||"Host's domain name can not be converted to "+(z.iri?"Unicode":"ASCII")+" via punycode: "+ft}}Le($,q),z.reference!=="suffix"&&$.scheme&&(ue.push($.scheme),ue.push(":"));var Ae=ze($,z);if(Ae!==void 0&&(z.reference!=="suffix"&&ue.push("//"),ue.push(Ae),$.path&&$.path.charAt(0)!=="/"&&ue.push("/")),$.path!==void 0){var $e=$.path;z.absolutePath||ie&&ie.absolutePath||($e=Ne($e)),Ae===void 0&&($e=$e.replace(/^\/\//,"/%2F")),ue.push($e)}return $.query!==void 0&&(ue.push("?"),ue.push($.query)),$.fragment!==void 0&&(ue.push("#"),ue.push($.fragment)),ue.join("")}function gt($,z){var q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ue=arguments[3],ie={};return ue||($=ye(wt($,q),q),z=ye(wt(z,q),q)),!(q=q||{}).tolerant&&z.scheme?(ie.scheme=z.scheme,ie.userinfo=z.userinfo,ie.host=z.host,ie.port=z.port,ie.path=Ne(z.path||""),ie.query=z.query):(z.userinfo!==void 0||z.host!==void 0||z.port!==void 0?(ie.userinfo=z.userinfo,ie.host=z.host,ie.port=z.port,ie.path=Ne(z.path||""),ie.query=z.query):(z.path?(z.path.charAt(0)==="/"?ie.path=Ne(z.path):($.userinfo===void 0&&$.host===void 0&&$.port===void 0||$.path?$.path?ie.path=$.path.slice(0,$.path.lastIndexOf("/")+1)+z.path:ie.path=z.path:ie.path="/"+z.path,ie.path=Ne(ie.path)),ie.query=z.query):(ie.path=$.path,z.query!==void 0?ie.query=z.query:ie.query=$.query),ie.userinfo=$.userinfo,ie.host=$.host,ie.port=$.port),ie.scheme=$.scheme),ie.fragment=z.fragment,ie}function et($,z){return $&&$.toString().replace(z&&z.iri?R.PCT_ENCODED:A.PCT_ENCODED,me)}var Et={scheme:"http",domainHost:!0,parse:function($,z){return $.host||($.error=$.error||"HTTP URIs must have a host."),$},serialize:function($,z){return $.port!==(String($.scheme).toLowerCase()!=="https"?80:443)&&$.port!==""||($.port=void 0),$.path||($.path="/"),$}},kt={scheme:"https",domainHost:Et.domainHost,parse:Et.parse,serialize:Et.serialize},_n={},gn="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Ut="[0-9A-Fa-f]",jt=m(m("%[EFef][0-9A-Fa-f]%"+Ut+Ut+"%"+Ut+Ut)+"|"+m("%[89A-Fa-f][0-9A-Fa-f]%"+Ut+Ut)+"|"+m("%"+Ut+Ut)),Ze=h("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),vn=new RegExp(gn,"g"),Te=new RegExp(jt,"g"),Ge=new RegExp(h("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',Ze),"g"),Vt=new RegExp(h("[^]",gn,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),nn=Vt;function ln($){var z=me($);return z.match(vn)?z:$}var fr={scheme:"mailto",parse:function($,z){var q=$,ue=q.to=q.path?q.path.split(","):[];if(q.path=void 0,q.query){for(var ie=!1,Ae={},$e=q.query.split("&"),ft=0,Bt=$e.length;ftt.resolved)}const vv=e=>typeof e=="object"&&e!==null&&e.toString()==={}.toString(),Gv=e=>JSON.parse(JSON.stringify(e)),a_=(e,t)=>{e=Gv(e);for(const n in t)if(t.hasOwnProperty(n)){const r=t[n],i=e[n];vv(r)&&vv(i)?e[n]=a_(i,r):e[n]=r}return e},W2=function(e,t){const n=e.replace(/^#\/definitions\//,"").split("/"),r=function(u,l){const f=u.shift();return f?l[f]?u.length?r(u,l[f]):l[f]:{}:{}},i=r(n,t);return vv(i)?Gv(i):i},Vz=function(e,t){const n=e.length;let r=-1,i={};for(;++r{if(typeof e.default<"u")return e.default;if(typeof e.allOf<"u"){const n=Vz(e.allOf,t);return ac(n,t)}else if(typeof e.$ref<"u"){const n=W2(e.$ref,t);return ac(n,t)}else if(e.type==="object"){if(!e.properties)return{};for(const n in e.properties)e.properties.hasOwnProperty(n)&&(e.properties[n]=ac(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 i=e.items.map(u=>ac(u,t));for(let u=i.length-1;u>=0&&!(typeof i[u]<"u");u--)u+1>n&&i.pop();return i.every(u=>typeof u>"u")?void 0:i}const r=ac(e.items,t);if(typeof r>"u")return[];{const i=[];for(let u=0;u"u"?t=e.definitions||{}:vv(e.definitions)&&(t=a_(t,e.definitions)),ac(Gv(e),t)}function Qz(){const[e,t]=M.useState({configSchema:null,configDefaults:null});return M.useEffect(()=>{async function n(){const r=await fetch("/runs/config_schema").then(i=>i.json()).then(Kz);t({configSchema:r,configDefaults:Yz(r)})}n()},[]),e}async function Zz(e,t){const n=e.getReader();let r;for(;!(r=await n.read()).done;)t(r.value)}function Xz(e){let t,n,r,i=!1;return function(l){t===void 0?(t=l,n=0,r=-1):t=e8(t,l);const f=t.length;let d=0;for(;n0){const d=i.decode(l.subarray(0,f)),h=f+(l[f+1]===32?2:1),m=i.decode(l.subarray(h));switch(d){case"data":r.data=r.data?r.data+` +`+m:m;break;case"event":r.event=m;break;case"id":e(r.id=m);break;case"retry":const v=parseInt(m,10);isNaN(v)||t(r.retry=v);break}}}}function e8(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function ob(){return{data:"",event:"",id:"",retry:void 0}}var t8=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 i=0,r=Object.getOwnPropertySymbols(e);i{const x=Object.assign({},r);x.accept||(x.accept=qy);let A;function R(){A.abort(),document.hidden||L()}d||document.addEventListener("visibilitychange",R);let N=n8,k=0;function E(){document.removeEventListener("visibilitychange",R),window.clearTimeout(k),A.abort()}n==null||n.addEventListener("abort",()=>{E(),v()});const T=h??window.fetch,P=i??i8;async function L(){var U;A=new AbortController;try{const G=await T(e,Object.assign(Object.assign({},m),{headers:x,signal:A.signal}));await P(G),await Zz(G.body,Xz(Jz(Z=>{Z?x[ub]=Z:delete x[ub]},Z=>{N=Z},u))),l==null||l(),E(),v()}catch(G){if(!A.signal.aborted)try{const Z=(U=f==null?void 0:f(G))!==null&&U!==void 0?U:N;window.clearTimeout(k),k=window.setTimeout(L,Z)}catch(Z){E(),_(Z)}}}L()})}function i8(e){const t=e.headers.get("content-type");if(!(t!=null&&t.startsWith(qy)))throw new Error(`Expected content-type to be ${qy}, Actual: ${t}`)}function o8(){const[e,t]=M.useState(null),[n,r]=M.useState(null),i=M.useCallback(async(l,f,d)=>{const h=new AbortController;r(h),t({status:"inflight",messages:l.messages,merge:!0}),await r8("/runs/stream",{signal:h.signal,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({input:l,assistant_id:f,thread_id:d}),openWhenHidden:!0,onmessage(m){if(m.event==="data"){const{messages:v}=JSON.parse(m.data);t(_=>({status:"inflight",messages:v,run_id:_==null?void 0:_.run_id}))}else if(m.event==="metadata"){const{run_id:v}=JSON.parse(m.data);t(_=>({status:"inflight",messages:_==null?void 0:_.messages,run_id:v}))}else m.event==="error"&&t(v=>({status:"error",messages:v==null?void 0:v.messages,run_id:v==null?void 0:v.run_id}))},onclose(){t(m=>({status:(m==null?void 0:m.status)==="error"?m.status:"done",messages:m==null?void 0:m.messages,run_id:m==null?void 0:m.run_id,merge:m==null?void 0:m.merge})),r(null)},onerror(m){throw t(v=>({status:"error",messages:v==null?void 0:v.messages,run_id:v==null?void 0:v.run_id,merge:v==null?void 0:v.merge})),r(null),m}})},[]),u=M.useCallback((l=!1)=>{n==null||n.abort(),r(null),l&&t(null)},[n]);return{startStream:i,stopStream:u,stream:e}}function u8(e,t){if(e=e??[],!Array.isArray(t)){const n=t;t=[...e.filter(r=>r.assistant_id!==n.assistant_id),n]}return H2(t,"updated_at","desc")}function a8(){const[e,t]=M.useReducer(u8,null),[n,r]=M.useState(null);M.useEffect(()=>{async function l(){const d=new URLSearchParams(window.location.search).get("shared_id"),[h,m]=await Promise.all([fetch("/assistants/",{headers:{Accept:"application/json"}}).then(v=>v.json()).then(v=>v.map(_=>({..._,mine:!0}))),fetch("/assistants/public/"+(d?`?shared_id=${d}`:""),{headers:{Accept:"application/json"}}).then(v=>v.json())]);t(h.concat(m)),m.find(v=>v.assistant_id===d)&&r(d)}l()},[]);const i=M.useCallback(async(l,f,d,h,m=crypto.randomUUID())=>{const v=d.reduce((x,A)=>(x.append("files",A),x),new FormData);v.append("config",JSON.stringify({configurable:{assistant_id:m}}));const[_]=await Promise.all([fetch(`/assistants/${m}`,{method:"PUT",body:JSON.stringify({name:l,config:f,public:h}),headers:{"Content-Type":"application/json",Accept:"application/json"}}).then(x=>x.json()),d.length?fetch("/ingest",{method:"POST",body:v}):Promise.resolve()]);t({..._,mine:!0}),r(_.assistant_id)},[]),u=M.useCallback(l=>{r(l)},[]);return{configs:e,currentConfig:(e==null?void 0:e.find(l=>l.assistant_id===n))||null,saveConfig:i,enterConfig:u}}function l8(){const[e,t]=M.useState(!1),{configSchema:n,configDefaults:r}=Qz(),{chats:i,currentChat:u,createChat:l,enterChat:f}=Gz(),{configs:d,currentConfig:h,saveConfig:m,enterConfig:v}=a8(),{startStream:_,stopStream:x,stream:A}=o8(),R=M.useCallback(async(P,L=u)=>{var G;!L||!((G=d==null?void 0:d.find(Z=>Z.assistant_id===L.assistant_id))!=null&&G.config)||await _({messages:[{content:P,additional_kwargs:{},type:"human",example:!1}]},L.assistant_id,L.thread_id)},[u,_,d]),N=M.useCallback(async P=>{if(!h)return;const L=await l(P,h.assistant_id);return R(P,L)},[l,R,h]),k=M.useCallback(async P=>{u&&(x==null||x(!0)),f(P),e&&t(!1)},[f,x,e,u]),E=u?Y.jsx($P,{chat:u,startStream:R,stopStream:x,stream:A}):Y.jsx(HL,{startChat:N,configSchema:n,configDefaults:r,configs:d,currentConfig:h,saveConfig:m,enterConfig:v}),T=d==null?void 0:d.find(P=>P.assistant_id===(u==null?void 0:u.assistant_id));return Y.jsx(Ij,{subtitle:T?Y.jsxs("span",{className:"inline-flex gap-1 items-center",children:[T.name,Y.jsx(sR,{className:"h-5 w-5 cursor-pointer text-indigo-600",onClick:()=>{f(null),v(T.assistant_id)}})]}):null,sidebarOpen:e,setSidebarOpen:t,sidebar:Y.jsx(DP,{chats:M.useMemo(()=>d===null||i===null?null:i.filter(P=>d.some(L=>L.assistant_id===P.assistant_id)),[i,d]),currentChat:u,enterChat:k}),children:n?E:null})}document.cookie.indexOf("user_id")===-1&&(document.cookie=`opengpts_user_id=${crypto.randomUUID()}`);I0.createRoot(document.getElementById("root")).render(Y.jsx(l8,{})); diff --git a/backend/ui/index.html b/backend/ui/index.html index b7158f1e..e58a97a2 100644 --- a/backend/ui/index.html +++ b/backend/ui/index.html @@ -6,7 +6,7 @@ OpenGPTs - + diff --git a/frontend/src/components/Chat.tsx b/frontend/src/components/Chat.tsx index 7fc7e896..4b4a4486 100644 --- a/frontend/src/components/Chat.tsx +++ b/frontend/src/components/Chat.tsx @@ -15,8 +15,9 @@ export function Chat(props: ChatProps) { useEffect(() => { scrollTo({ top: document.body.scrollHeight, - behavior: "smooth", + behavior: props.stream?.messages ? "smooth" : undefined, }); + // eslint-disable-next-line react-hooks/exhaustive-deps }, [messages]); return (
    diff --git a/frontend/src/components/Config.tsx b/frontend/src/components/Config.tsx index c9a92e61..b23611f7 100644 --- a/frontend/src/components/Config.tsx +++ b/frontend/src/components/Config.tsx @@ -2,6 +2,7 @@ import { useEffect, useState } from "react"; import { marked } from "marked"; import { ShareIcon } from "@heroicons/react/24/outline"; import { useDropzone } from "react-dropzone"; +import { orderBy } from "lodash"; import { ConfigListProps } from "../hooks/useConfigList"; import { SchemaField, Schemas } from "../hooks/useSchemas"; @@ -58,7 +59,7 @@ export default function SingleOptionField(props: {
    {props.field.title}
    - {props.field.enum?.map((option) => ( + {orderBy(props.field.enum)?.map((option) => (