diff --git a/.cspell.json b/.cspell.json index eb928335f59..b176301cc7d 100644 --- a/.cspell.json +++ b/.cspell.json @@ -24,6 +24,9 @@ "**/*.xml", "**/*.txt", ".gitignore", + "examples/README.md", + "examples/flex-flows/README.md", + "examples/prompty/README.md", "scripts/docs/_build/**", "src/promptflow-azure/promptflow/azure/_restclient/flow/**", "src/promptflow-azure/promptflow/azure/_restclient/swagger.json", @@ -188,6 +191,8 @@ "otel", "OTLP", "spawnv", + "arxiv", + "autogen", "spawnve", "addrs", "pywin", diff --git a/.github/workflows/promptflow-core-test.yml b/.github/workflows/promptflow-core-test.yml index 2b849086675..f59b4e5d3eb 100644 --- a/.github/workflows/promptflow-core-test.yml +++ b/.github/workflows/promptflow-core-test.yml @@ -34,18 +34,12 @@ jobs: with: python-version: ${{ matrix.python-version }} - uses: snok/install-poetry@v1 - - name: install promptflow-tracing - run: poetry install - working-directory: ${{ env.TRACING_DIRECTORY }} - - name: install promptflow-core - run: poetry install - working-directory: ${{ env.WORKING_DIRECTORY }} - name: install test dependency group - run: poetry install --only test + run: | + poetry install -E executor-service --with ci,test + poetry run pip show promptflow-tracing + poetry run pip show promptflow-core working-directory: ${{ env.WORKING_DIRECTORY }} - - name: install recording - run: poetry install - working-directory: ${{ env.RECORD_DIRECTORY }} - name: run core tests run: poetry run pytest ./tests/core --cov=promptflow --cov-config=pyproject.toml --cov-report=term --cov-report=html --cov-report=xml working-directory: ${{ env.WORKING_DIRECTORY }} @@ -74,18 +68,12 @@ jobs: with: python-version: ${{ matrix.python-version }} - uses: snok/install-poetry@v1 - - name: install promptflow-tracing - run: poetry install - working-directory: ${{ env.TRACING_DIRECTORY }} - - name: install promptflow-core[azureml-serving] - run: poetry install -E azureml-serving - working-directory: ${{ env.WORKING_DIRECTORY }} - name: install test dependency group - run: poetry install --only test + run: | + poetry install -E azureml-serving --with ci,test + poetry run pip show promptflow-tracing + poetry run pip show promptflow-core working-directory: ${{ env.WORKING_DIRECTORY }} - - name: install recording - run: poetry install - working-directory: ${{ env.RECORD_DIRECTORY }} - name: run azureml-serving tests run: poetry run pytest ./tests/azureml-serving --cov=promptflow --cov-config=pyproject.toml --cov-report=term --cov-report=html --cov-report=xml working-directory: ${{ env.WORKING_DIRECTORY }} diff --git a/.github/workflows/promptflow-sdk-cli-test.yml b/.github/workflows/promptflow-sdk-cli-test.yml index 5d85fec622f..6f1bc12874d 100644 --- a/.github/workflows/promptflow-sdk-cli-test.yml +++ b/.github/workflows/promptflow-sdk-cli-test.yml @@ -12,6 +12,12 @@ on: - .github/workflows/promptflow-sdk-cli-test.yml - src/promptflow-recording/** workflow_dispatch: + inputs: + filepath: + description: file or paths you want to trigger a test + required: true + default: "./tests/sdk_cli_test ./tests/sdk_pfs_test" + type: string env: IS_IN_CI_PIPELINE: "true" RECORD_DIRECTORY: ${{ github.workspace }}/src/promptflow-recording @@ -30,7 +36,9 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: set test mode - run: echo "PROMPT_FLOW_TEST_MODE=$(if [[ "${{ github.event_name }}" == "pull_request" ]]; then echo replay; else echo live; fi)" >> $GITHUB_ENV + run: | + echo "PROMPT_FLOW_TEST_MODE=$(if [[ "${{ github.event_name }}" == "pull_request" ]]; then echo replay; else echo live; fi)" >> $GITHUB_ENV + echo "FILE_PATHS=$(if [[ "${{ inputs.filepath }}" == "" ]]; then echo "./tests/sdk_cli_test ./tests/sdk_pfs_test"; else echo ${{ inputs.filepath }}; fi)" >> $GITHUB_ENV - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: @@ -39,15 +47,7 @@ jobs: - name: install test dependency group run: | set -xe - poetry install --only test - poetry run pip install ${{ env.TRACING_DIRECTORY }} - poetry run pip install ${{ env.CORE_DIRECTORY }}[azureml-serving] - poetry run pip install -e ${{ env.WORKING_DIRECTORY }}[pyarrow] - - echo "Need to install promptflow to avoid tool dependency issue" - poetry run pip install ${{ env.PROMPTFLOW_DIRECTORY }} - poetry run pip install ${{ env.TOOL_DIRECTORY }} - poetry run pip install -e ${{ env.RECORD_DIRECTORY }} + poetry install -E pyarrow --with ci,test poetry run pip show promptflow-tracing poetry run pip show promptflow-core @@ -71,7 +71,7 @@ jobs: cp ${{ github.workspace }}/src/promptflow/dev-connections.json.example ${{ github.workspace }}/src/promptflow/connections.json - name: run devkit tests run: | - poetry run pytest ./tests/sdk_cli_test ./tests/sdk_pfs_test -p promptflow --cov=promptflow --cov-config=pyproject.toml \ + poetry run pytest ${{ env.FILE_PATHS }} -p promptflow --cov=promptflow --cov-config=pyproject.toml \ --cov-report=term --cov-report=html --cov-report=xml -n auto -m "unittest or e2etest" \ --ignore-glob ./tests/sdk_cli_test/e2etests/test_executable.py working-directory: ${{ env.WORKING_DIRECTORY }} @@ -84,7 +84,7 @@ jobs: ${{ env.WORKING_DIRECTORY }}/*.xml ${{ env.WORKING_DIRECTORY }}/htmlcov/ ${{ env.WORKING_DIRECTORY }}/tests/sdk_cli_test/count.json - - run: poetry run pip install -e ${{ env.WORKING_DIRECTORY }}[executable] + - run: poetry install -E executable working-directory: ${{ env.WORKING_DIRECTORY }} - name: run devkit executable tests run: | diff --git a/.github/workflows/samples_connections.yml b/.github/workflows/samples_connections.yml index 3f39600de11..9ff9e437f1e 100644 --- a/.github/workflows/samples_connections.yml +++ b/.github/workflows/samples_connections.yml @@ -48,6 +48,11 @@ jobs: sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example mv .env.example .env fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi - name: Create run.yml working-directory: examples/connections run: | @@ -74,6 +79,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} @@ -84,6 +91,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} diff --git a/.github/workflows/samples_connections_connection.yml b/.github/workflows/samples_connections_connection.yml index 92333dd5f81..b76af61d909 100644 --- a/.github/workflows/samples_connections_connection.yml +++ b/.github/workflows/samples_connections_connection.yml @@ -34,6 +34,22 @@ jobs: python -m pip install --upgrade pip pip install -r ${{ github.workspace }}/examples/requirements.txt pip install -r ${{ github.workspace }}/examples/dev_requirements.txt + - name: setup .env file + working-directory: examples/connections + run: | + AOAI_API_KEY=${{ secrets.AOAI_API_KEY_TEST }} + AOAI_API_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} + AOAI_API_ENDPOINT=$(echo ${AOAI_API_ENDPOINT//\//\\/}) + if [[ -e .env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example + mv .env.example .env + fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi - name: Create Aoai Connection run: pf connection create -f ${{ github.workspace }}/examples/connections/azure_openai.yml --set api_key="${{ secrets.AOAI_API_KEY_TEST }}" api_base="${{ secrets.AOAI_API_ENDPOINT_TEST }}" - name: Test Notebook diff --git a/.github/workflows/samples_flex_flows_basic.yml b/.github/workflows/samples_flex_flows_basic.yml new file mode 100644 index 00000000000..f7d47c03461 --- /dev/null +++ b/.github/workflows/samples_flex_flows_basic.yml @@ -0,0 +1,110 @@ +# This code is autogenerated. +# Code is generated by running custom script: python3 readme.py +# Any manual changes to this file may cause incorrect behavior. +# Any manual changes will be overwritten if the code is regenerated. + +name: samples_flex_flows_basic +on: + schedule: + - cron: "30 20 * * *" # Every day starting at 4:30 BJT + pull_request: + branches: [ main ] + paths: [ examples/flex-flows/basic/**, examples/*requirements.txt, .github/workflows/samples_flex_flows_basic.yml ] + workflow_dispatch: + +env: + IS_IN_CI_PIPELINE: "true" + +jobs: + samples_flex_flows_basic: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Setup Python 3.9 environment + uses: actions/setup-python@v4 + with: + python-version: "3.9" + - name: Prepare requirements + working-directory: examples + run: | + if [[ -e requirements.txt ]]; then + python -m pip install --upgrade pip + pip install -r requirements.txt + fi + - name: Prepare dev requirements + working-directory: examples + run: | + python -m pip install --upgrade pip + pip install -r dev_requirements.txt + - name: Refine .env file + working-directory: examples/flex-flows/basic + run: | + AOAI_API_KEY=${{ secrets.AOAI_API_KEY_TEST }} + AOAI_API_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} + AOAI_API_ENDPOINT=$(echo ${AOAI_API_ENDPOINT//\//\\/}) + if [[ -e .env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example + mv .env.example .env + fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi + - name: Create run.yml + working-directory: examples/flex-flows/basic + run: | + gpt_base=${{ secrets.AOAI_API_ENDPOINT_TEST }} + gpt_base=$(echo ${gpt_base//\//\\/}) + if [[ -e run.yml ]]; then + sed -i -e "s/\${azure_open_ai_connection.api_key}/${{ secrets.AOAI_API_KEY_TEST }}/g" -e "s/\${azure_open_ai_connection.api_base}/$gpt_base/g" run.yml + fi + - name: Azure Login + uses: azure/login@v1 + with: + creds: ${{ secrets.AZURE_CREDENTIALS }} + - name: Extract Steps examples/flex-flows/basic/README.md + working-directory: ${{ github.workspace }} + run: | + python scripts/readme/extract_steps_from_readme.py -f examples/flex-flows/basic/README.md -o examples/flex-flows/basic + - name: Cat script + working-directory: examples/flex-flows/basic + run: | + cat bash_script.sh + - name: Run scripts against canary workspace (scheduled runs only) + if: github.event_name == 'schedule' + working-directory: examples/flex-flows/basic + run: | + export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} + export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} + export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} + export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} + bash bash_script.sh + - name: Run scripts against production workspace + if: github.event_name != 'schedule' + working-directory: examples/flex-flows/basic + run: | + export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} + export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} + export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} + export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} + bash bash_script.sh + - name: Pip List for Debug + if : ${{ always() }} + working-directory: examples/flex-flows/basic + run: | + pip list + - name: Upload artifact + if: ${{ always() }} + uses: actions/upload-artifact@v3 + with: + name: artifact + path: examples/flex-flows/basic/bash_script.sh \ No newline at end of file diff --git a/.github/workflows/samples_flex_flows_chat_basic.yml b/.github/workflows/samples_flex_flows_chat_basic.yml new file mode 100644 index 00000000000..fd7ff158a73 --- /dev/null +++ b/.github/workflows/samples_flex_flows_chat_basic.yml @@ -0,0 +1,110 @@ +# This code is autogenerated. +# Code is generated by running custom script: python3 readme.py +# Any manual changes to this file may cause incorrect behavior. +# Any manual changes will be overwritten if the code is regenerated. + +name: samples_flex_flows_chat_basic +on: + schedule: + - cron: "9 20 * * *" # Every day starting at 4:9 BJT + pull_request: + branches: [ main ] + paths: [ examples/flex-flows/chat-basic/**, examples/*requirements.txt, .github/workflows/samples_flex_flows_chat_basic.yml ] + workflow_dispatch: + +env: + IS_IN_CI_PIPELINE: "true" + +jobs: + samples_flex_flows_chat_basic: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Setup Python 3.9 environment + uses: actions/setup-python@v4 + with: + python-version: "3.9" + - name: Prepare requirements + working-directory: examples + run: | + if [[ -e requirements.txt ]]; then + python -m pip install --upgrade pip + pip install -r requirements.txt + fi + - name: Prepare dev requirements + working-directory: examples + run: | + python -m pip install --upgrade pip + pip install -r dev_requirements.txt + - name: Refine .env file + working-directory: examples/flex-flows/chat-basic + run: | + AOAI_API_KEY=${{ secrets.AOAI_API_KEY_TEST }} + AOAI_API_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} + AOAI_API_ENDPOINT=$(echo ${AOAI_API_ENDPOINT//\//\\/}) + if [[ -e .env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example + mv .env.example .env + fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi + - name: Create run.yml + working-directory: examples/flex-flows/chat-basic + run: | + gpt_base=${{ secrets.AOAI_API_ENDPOINT_TEST }} + gpt_base=$(echo ${gpt_base//\//\\/}) + if [[ -e run.yml ]]; then + sed -i -e "s/\${azure_open_ai_connection.api_key}/${{ secrets.AOAI_API_KEY_TEST }}/g" -e "s/\${azure_open_ai_connection.api_base}/$gpt_base/g" run.yml + fi + - name: Azure Login + uses: azure/login@v1 + with: + creds: ${{ secrets.AZURE_CREDENTIALS }} + - name: Extract Steps examples/flex-flows/chat-basic/README.md + working-directory: ${{ github.workspace }} + run: | + python scripts/readme/extract_steps_from_readme.py -f examples/flex-flows/chat-basic/README.md -o examples/flex-flows/chat-basic + - name: Cat script + working-directory: examples/flex-flows/chat-basic + run: | + cat bash_script.sh + - name: Run scripts against canary workspace (scheduled runs only) + if: github.event_name == 'schedule' + working-directory: examples/flex-flows/chat-basic + run: | + export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} + export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} + export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} + export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} + bash bash_script.sh + - name: Run scripts against production workspace + if: github.event_name != 'schedule' + working-directory: examples/flex-flows/chat-basic + run: | + export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} + export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} + export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} + export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} + bash bash_script.sh + - name: Pip List for Debug + if : ${{ always() }} + working-directory: examples/flex-flows/chat-basic + run: | + pip list + - name: Upload artifact + if: ${{ always() }} + uses: actions/upload-artifact@v3 + with: + name: artifact + path: examples/flex-flows/chat-basic/bash_script.sh \ No newline at end of file diff --git a/.github/workflows/samples_flex_flows_eval_checklist.yml b/.github/workflows/samples_flex_flows_eval_checklist.yml new file mode 100644 index 00000000000..1f765ba6510 --- /dev/null +++ b/.github/workflows/samples_flex_flows_eval_checklist.yml @@ -0,0 +1,110 @@ +# This code is autogenerated. +# Code is generated by running custom script: python3 readme.py +# Any manual changes to this file may cause incorrect behavior. +# Any manual changes will be overwritten if the code is regenerated. + +name: samples_flex_flows_eval_checklist +on: + schedule: + - cron: "56 22 * * *" # Every day starting at 6:56 BJT + pull_request: + branches: [ main ] + paths: [ examples/flex-flows/eval-checklist/**, examples/*requirements.txt, .github/workflows/samples_flex_flows_eval_checklist.yml ] + workflow_dispatch: + +env: + IS_IN_CI_PIPELINE: "true" + +jobs: + samples_flex_flows_eval_checklist: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Setup Python 3.9 environment + uses: actions/setup-python@v4 + with: + python-version: "3.9" + - name: Prepare requirements + working-directory: examples + run: | + if [[ -e requirements.txt ]]; then + python -m pip install --upgrade pip + pip install -r requirements.txt + fi + - name: Prepare dev requirements + working-directory: examples + run: | + python -m pip install --upgrade pip + pip install -r dev_requirements.txt + - name: Refine .env file + working-directory: examples/flex-flows/eval-checklist + run: | + AOAI_API_KEY=${{ secrets.AOAI_API_KEY_TEST }} + AOAI_API_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} + AOAI_API_ENDPOINT=$(echo ${AOAI_API_ENDPOINT//\//\\/}) + if [[ -e .env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example + mv .env.example .env + fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi + - name: Create run.yml + working-directory: examples/flex-flows/eval-checklist + run: | + gpt_base=${{ secrets.AOAI_API_ENDPOINT_TEST }} + gpt_base=$(echo ${gpt_base//\//\\/}) + if [[ -e run.yml ]]; then + sed -i -e "s/\${azure_open_ai_connection.api_key}/${{ secrets.AOAI_API_KEY_TEST }}/g" -e "s/\${azure_open_ai_connection.api_base}/$gpt_base/g" run.yml + fi + - name: Azure Login + uses: azure/login@v1 + with: + creds: ${{ secrets.AZURE_CREDENTIALS }} + - name: Extract Steps examples/flex-flows/eval-checklist/README.md + working-directory: ${{ github.workspace }} + run: | + python scripts/readme/extract_steps_from_readme.py -f examples/flex-flows/eval-checklist/README.md -o examples/flex-flows/eval-checklist + - name: Cat script + working-directory: examples/flex-flows/eval-checklist + run: | + cat bash_script.sh + - name: Run scripts against canary workspace (scheduled runs only) + if: github.event_name == 'schedule' + working-directory: examples/flex-flows/eval-checklist + run: | + export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} + export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} + export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} + export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} + bash bash_script.sh + - name: Run scripts against production workspace + if: github.event_name != 'schedule' + working-directory: examples/flex-flows/eval-checklist + run: | + export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} + export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} + export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} + export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} + bash bash_script.sh + - name: Pip List for Debug + if : ${{ always() }} + working-directory: examples/flex-flows/eval-checklist + run: | + pip list + - name: Upload artifact + if: ${{ always() }} + uses: actions/upload-artifact@v3 + with: + name: artifact + path: examples/flex-flows/eval-checklist/bash_script.sh \ No newline at end of file diff --git a/.github/workflows/samples_flex_flows_eval_code_quality.yml b/.github/workflows/samples_flex_flows_eval_code_quality.yml new file mode 100644 index 00000000000..ce03b9bbaaf --- /dev/null +++ b/.github/workflows/samples_flex_flows_eval_code_quality.yml @@ -0,0 +1,110 @@ +# This code is autogenerated. +# Code is generated by running custom script: python3 readme.py +# Any manual changes to this file may cause incorrect behavior. +# Any manual changes will be overwritten if the code is regenerated. + +name: samples_flex_flows_eval_code_quality +on: + schedule: + - cron: "6 22 * * *" # Every day starting at 6:6 BJT + pull_request: + branches: [ main ] + paths: [ examples/flex-flows/eval-code-quality/**, examples/*requirements.txt, .github/workflows/samples_flex_flows_eval_code_quality.yml ] + workflow_dispatch: + +env: + IS_IN_CI_PIPELINE: "true" + +jobs: + samples_flex_flows_eval_code_quality: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Setup Python 3.9 environment + uses: actions/setup-python@v4 + with: + python-version: "3.9" + - name: Prepare requirements + working-directory: examples + run: | + if [[ -e requirements.txt ]]; then + python -m pip install --upgrade pip + pip install -r requirements.txt + fi + - name: Prepare dev requirements + working-directory: examples + run: | + python -m pip install --upgrade pip + pip install -r dev_requirements.txt + - name: Refine .env file + working-directory: examples/flex-flows/eval-code-quality + run: | + AOAI_API_KEY=${{ secrets.AOAI_API_KEY_TEST }} + AOAI_API_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} + AOAI_API_ENDPOINT=$(echo ${AOAI_API_ENDPOINT//\//\\/}) + if [[ -e .env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example + mv .env.example .env + fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi + - name: Create run.yml + working-directory: examples/flex-flows/eval-code-quality + run: | + gpt_base=${{ secrets.AOAI_API_ENDPOINT_TEST }} + gpt_base=$(echo ${gpt_base//\//\\/}) + if [[ -e run.yml ]]; then + sed -i -e "s/\${azure_open_ai_connection.api_key}/${{ secrets.AOAI_API_KEY_TEST }}/g" -e "s/\${azure_open_ai_connection.api_base}/$gpt_base/g" run.yml + fi + - name: Azure Login + uses: azure/login@v1 + with: + creds: ${{ secrets.AZURE_CREDENTIALS }} + - name: Extract Steps examples/flex-flows/eval-code-quality/README.md + working-directory: ${{ github.workspace }} + run: | + python scripts/readme/extract_steps_from_readme.py -f examples/flex-flows/eval-code-quality/README.md -o examples/flex-flows/eval-code-quality + - name: Cat script + working-directory: examples/flex-flows/eval-code-quality + run: | + cat bash_script.sh + - name: Run scripts against canary workspace (scheduled runs only) + if: github.event_name == 'schedule' + working-directory: examples/flex-flows/eval-code-quality + run: | + export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} + export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} + export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} + export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} + bash bash_script.sh + - name: Run scripts against production workspace + if: github.event_name != 'schedule' + working-directory: examples/flex-flows/eval-code-quality + run: | + export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} + export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} + export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} + export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} + bash bash_script.sh + - name: Pip List for Debug + if : ${{ always() }} + working-directory: examples/flex-flows/eval-code-quality + run: | + pip list + - name: Upload artifact + if: ${{ always() }} + uses: actions/upload-artifact@v3 + with: + name: artifact + path: examples/flex-flows/eval-code-quality/bash_script.sh \ No newline at end of file diff --git a/.github/workflows/samples_flexflows_basic_flexflowquickstart.yml b/.github/workflows/samples_flexflows_basic_flexflowquickstart.yml new file mode 100644 index 00000000000..f3b9ade3963 --- /dev/null +++ b/.github/workflows/samples_flexflows_basic_flexflowquickstart.yml @@ -0,0 +1,64 @@ +# This code is autogenerated. +# Code is generated by running custom script: python3 readme.py +# Any manual changes to this file may cause incorrect behavior. +# Any manual changes will be overwritten if the code is regenerated. + +name: samples_flexflows_basic_flexflowquickstart +on: + schedule: + - cron: "55 20 * * *" # Every day starting at 4:55 BJT + pull_request: + branches: [ main ] + paths: [ examples/flex-flows/basic/**, examples/*requirements.txt, .github/workflows/samples_flexflows_basic_flexflowquickstart.yml ] + workflow_dispatch: + +env: + IS_IN_CI_PIPELINE: "true" + +jobs: + samples_flexflows_basic_flexflowquickstart: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Azure Login + uses: azure/login@v1 + with: + creds: ${{ secrets.AZURE_CREDENTIALS }} + - name: Setup Python 3.9 environment + uses: actions/setup-python@v4 + with: + python-version: "3.9" + - name: Prepare requirements + run: | + python -m pip install --upgrade pip + pip install -r ${{ github.workspace }}/examples/requirements.txt + pip install -r ${{ github.workspace }}/examples/dev_requirements.txt + - name: setup .env file + working-directory: examples/flex-flows/basic + run: | + AOAI_API_KEY=${{ secrets.AOAI_API_KEY_TEST }} + AOAI_API_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} + AOAI_API_ENDPOINT=$(echo ${AOAI_API_ENDPOINT//\//\\/}) + if [[ -e .env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example + mv .env.example .env + fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi + - name: Create Aoai Connection + run: pf connection create -f ${{ github.workspace }}/examples/connections/azure_openai.yml --set api_key="${{ secrets.AOAI_API_KEY_TEST }}" api_base="${{ secrets.AOAI_API_ENDPOINT_TEST }}" + - name: Test Notebook + working-directory: examples/flex-flows/basic + run: | + papermill -k python flex-flow-quickstart.ipynb flex-flow-quickstart.output.ipynb + - name: Upload artifact + if: ${{ always() }} + uses: actions/upload-artifact@v3 + with: + name: artifact + path: examples/flex-flows/basic diff --git a/.github/workflows/samples_flexflows_basic_flexflowquickstartazure.yml b/.github/workflows/samples_flexflows_basic_flexflowquickstartazure.yml new file mode 100644 index 00000000000..80809522575 --- /dev/null +++ b/.github/workflows/samples_flexflows_basic_flexflowquickstartazure.yml @@ -0,0 +1,54 @@ +# This code is autogenerated. +# Code is generated by running custom script: python3 readme.py +# Any manual changes to this file may cause incorrect behavior. +# Any manual changes will be overwritten if the code is regenerated. + +name: samples_flexflows_basic_flexflowquickstartazure +on: + schedule: + - cron: "10 22 * * *" # Every day starting at 6:10 BJT + pull_request: + branches: [ main ] + paths: [ examples/flex-flows/basic/**, examples/*requirements.txt, .github/workflows/samples_flexflows_basic_flexflowquickstartazure.yml ] + workflow_dispatch: + +env: + IS_IN_CI_PIPELINE: "true" + +jobs: + samples_flexflows_basic_flexflowquickstartazure: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Generate config.json for canary workspace (scheduled runs only) + if: github.event_name == 'schedule' + run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ github.workspace }}/examples/config.json + - name: Generate config.json for production workspace + if: github.event_name != 'schedule' + run: echo '${{ secrets.EXAMPLE_WORKSPACE_CONFIG_JSON_PROD }}' > ${{ github.workspace }}/examples/config.json + - name: Azure Login + uses: azure/login@v1 + with: + creds: ${{ secrets.AZURE_CREDENTIALS }} + - name: Setup Python 3.9 environment + uses: actions/setup-python@v4 + with: + python-version: "3.9" + - name: Prepare requirements + run: | + python -m pip install --upgrade pip + pip install -r ${{ github.workspace }}/examples/requirements.txt + pip install -r ${{ github.workspace }}/examples/dev_requirements.txt + - name: Create Aoai Connection + run: pf connection create -f ${{ github.workspace }}/examples/connections/azure_openai.yml --set api_key="${{ secrets.AOAI_API_KEY_TEST }}" api_base="${{ secrets.AOAI_API_ENDPOINT_TEST }}" + - name: Test Notebook + working-directory: examples/flex-flows/basic + run: | + papermill -k python flex-flow-quickstart-azure.ipynb flex-flow-quickstart-azure.output.ipynb + - name: Upload artifact + if: ${{ always() }} + uses: actions/upload-artifact@v3 + with: + name: artifact + path: examples/flex-flows/basic diff --git a/.github/workflows/samples_flows_chat_chat_basic.yml b/.github/workflows/samples_flows_chat_chat_basic.yml index 132b9a33bbe..7bc42561771 100644 --- a/.github/workflows/samples_flows_chat_chat_basic.yml +++ b/.github/workflows/samples_flows_chat_chat_basic.yml @@ -48,6 +48,11 @@ jobs: sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example mv .env.example .env fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi - name: Create run.yml working-directory: examples/flows/chat/chat-basic run: | @@ -74,6 +79,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} @@ -84,6 +91,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} diff --git a/.github/workflows/samples_flows_chat_chat_math_variant.yml b/.github/workflows/samples_flows_chat_chat_math_variant.yml index f9fb7f8c69c..831c4b11c2e 100644 --- a/.github/workflows/samples_flows_chat_chat_math_variant.yml +++ b/.github/workflows/samples_flows_chat_chat_math_variant.yml @@ -48,6 +48,11 @@ jobs: sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example mv .env.example .env fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi - name: Create run.yml working-directory: examples/flows/chat/chat-math-variant run: | @@ -74,6 +79,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} @@ -84,6 +91,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} diff --git a/.github/workflows/samples_flows_chat_chat_with_pdf.yml b/.github/workflows/samples_flows_chat_chat_with_pdf.yml index 78544acbfdb..33403cd6741 100644 --- a/.github/workflows/samples_flows_chat_chat_with_pdf.yml +++ b/.github/workflows/samples_flows_chat_chat_with_pdf.yml @@ -48,6 +48,11 @@ jobs: sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example mv .env.example .env fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi - name: Create AOAI Connection from ENV file working-directory: examples/flows/chat/chat-with-pdf run: | @@ -84,6 +89,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} @@ -94,6 +101,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} diff --git a/.github/workflows/samples_flows_chat_chat_with_wikipedia.yml b/.github/workflows/samples_flows_chat_chat_with_wikipedia.yml index d4e82bec6e3..fd02f184c7b 100644 --- a/.github/workflows/samples_flows_chat_chat_with_wikipedia.yml +++ b/.github/workflows/samples_flows_chat_chat_with_wikipedia.yml @@ -48,6 +48,11 @@ jobs: sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example mv .env.example .env fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi - name: Create run.yml working-directory: examples/flows/chat/chat-with-wikipedia run: | @@ -74,6 +79,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} @@ -84,6 +91,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} diff --git a/.github/workflows/samples_flows_chat_use_functions_with_chat_models.yml b/.github/workflows/samples_flows_chat_use_functions_with_chat_models.yml index e04f820b2fd..b5e4a232996 100644 --- a/.github/workflows/samples_flows_chat_use_functions_with_chat_models.yml +++ b/.github/workflows/samples_flows_chat_use_functions_with_chat_models.yml @@ -48,6 +48,11 @@ jobs: sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example mv .env.example .env fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi - name: Create run.yml working-directory: examples/flows/chat/use_functions_with_chat_models run: | @@ -74,6 +79,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} @@ -84,6 +91,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} diff --git a/.github/workflows/samples_flows_evaluation_eval_basic.yml b/.github/workflows/samples_flows_evaluation_eval_basic.yml index c92f24e02ba..2b3648750d5 100644 --- a/.github/workflows/samples_flows_evaluation_eval_basic.yml +++ b/.github/workflows/samples_flows_evaluation_eval_basic.yml @@ -48,6 +48,11 @@ jobs: sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example mv .env.example .env fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi - name: Create run.yml working-directory: examples/flows/evaluation/eval-basic run: | @@ -74,6 +79,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} @@ -84,6 +91,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} diff --git a/.github/workflows/samples_flows_evaluation_eval_chat_math.yml b/.github/workflows/samples_flows_evaluation_eval_chat_math.yml index b7881f872d9..b87208f9137 100644 --- a/.github/workflows/samples_flows_evaluation_eval_chat_math.yml +++ b/.github/workflows/samples_flows_evaluation_eval_chat_math.yml @@ -48,6 +48,11 @@ jobs: sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example mv .env.example .env fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi - name: Create run.yml working-directory: examples/flows/evaluation/eval-chat-math run: | @@ -74,6 +79,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} @@ -84,6 +91,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} diff --git a/.github/workflows/samples_flows_evaluation_eval_classification_accuracy.yml b/.github/workflows/samples_flows_evaluation_eval_classification_accuracy.yml index 109e77b5aee..61c2565810d 100644 --- a/.github/workflows/samples_flows_evaluation_eval_classification_accuracy.yml +++ b/.github/workflows/samples_flows_evaluation_eval_classification_accuracy.yml @@ -48,6 +48,11 @@ jobs: sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example mv .env.example .env fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi - name: Create run.yml working-directory: examples/flows/evaluation/eval-classification-accuracy run: | @@ -74,6 +79,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} @@ -84,6 +91,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} diff --git a/.github/workflows/samples_flows_evaluation_eval_entity_match_rate.yml b/.github/workflows/samples_flows_evaluation_eval_entity_match_rate.yml index 590bf74bbc0..f9e691ad694 100644 --- a/.github/workflows/samples_flows_evaluation_eval_entity_match_rate.yml +++ b/.github/workflows/samples_flows_evaluation_eval_entity_match_rate.yml @@ -48,6 +48,11 @@ jobs: sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example mv .env.example .env fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi - name: Create run.yml working-directory: examples/flows/evaluation/eval-entity-match-rate run: | @@ -74,6 +79,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} @@ -84,6 +91,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} diff --git a/.github/workflows/samples_flows_evaluation_eval_groundedness.yml b/.github/workflows/samples_flows_evaluation_eval_groundedness.yml index 25268ffbc9f..071718b41ed 100644 --- a/.github/workflows/samples_flows_evaluation_eval_groundedness.yml +++ b/.github/workflows/samples_flows_evaluation_eval_groundedness.yml @@ -48,6 +48,11 @@ jobs: sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example mv .env.example .env fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi - name: Create run.yml working-directory: examples/flows/evaluation/eval-groundedness run: | @@ -74,6 +79,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} @@ -84,6 +91,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} diff --git a/.github/workflows/samples_flows_evaluation_eval_perceived_intelligence.yml b/.github/workflows/samples_flows_evaluation_eval_perceived_intelligence.yml index 7cec59b0041..321d8a2616e 100644 --- a/.github/workflows/samples_flows_evaluation_eval_perceived_intelligence.yml +++ b/.github/workflows/samples_flows_evaluation_eval_perceived_intelligence.yml @@ -48,6 +48,11 @@ jobs: sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example mv .env.example .env fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi - name: Create run.yml working-directory: examples/flows/evaluation/eval-perceived-intelligence run: | @@ -74,6 +79,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} @@ -84,6 +91,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} diff --git a/.github/workflows/samples_flows_evaluation_eval_qna_non_rag.yml b/.github/workflows/samples_flows_evaluation_eval_qna_non_rag.yml index 7f1da8c1228..f05f861c943 100644 --- a/.github/workflows/samples_flows_evaluation_eval_qna_non_rag.yml +++ b/.github/workflows/samples_flows_evaluation_eval_qna_non_rag.yml @@ -48,6 +48,11 @@ jobs: sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example mv .env.example .env fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi - name: Create run.yml working-directory: examples/flows/evaluation/eval-qna-non-rag run: | @@ -74,6 +79,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} @@ -84,6 +91,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} diff --git a/.github/workflows/samples_flows_evaluation_eval_qna_rag_metrics.yml b/.github/workflows/samples_flows_evaluation_eval_qna_rag_metrics.yml index af18aadb29d..27200689cd8 100644 --- a/.github/workflows/samples_flows_evaluation_eval_qna_rag_metrics.yml +++ b/.github/workflows/samples_flows_evaluation_eval_qna_rag_metrics.yml @@ -48,6 +48,11 @@ jobs: sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example mv .env.example .env fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi - name: Create run.yml working-directory: examples/flows/evaluation/eval-qna-rag-metrics run: | @@ -74,6 +79,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} @@ -84,6 +91,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} diff --git a/.github/workflows/samples_flows_evaluation_eval_summarization.yml b/.github/workflows/samples_flows_evaluation_eval_summarization.yml index b444be8b77d..e99299f3d37 100644 --- a/.github/workflows/samples_flows_evaluation_eval_summarization.yml +++ b/.github/workflows/samples_flows_evaluation_eval_summarization.yml @@ -48,6 +48,11 @@ jobs: sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example mv .env.example .env fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi - name: Create run.yml working-directory: examples/flows/evaluation/eval-summarization run: | @@ -74,6 +79,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} @@ -84,6 +91,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} diff --git a/.github/workflows/samples_flows_standard_autonomous_agent.yml b/.github/workflows/samples_flows_standard_autonomous_agent.yml index ec8e9210841..f701be9d708 100644 --- a/.github/workflows/samples_flows_standard_autonomous_agent.yml +++ b/.github/workflows/samples_flows_standard_autonomous_agent.yml @@ -48,6 +48,11 @@ jobs: sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example mv .env.example .env fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi - name: Create run.yml working-directory: examples/flows/standard/autonomous-agent run: | @@ -74,6 +79,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} @@ -84,6 +91,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} diff --git a/.github/workflows/samples_flows_standard_basic.yml b/.github/workflows/samples_flows_standard_basic.yml index 5385627f8fc..e5d996919d3 100644 --- a/.github/workflows/samples_flows_standard_basic.yml +++ b/.github/workflows/samples_flows_standard_basic.yml @@ -48,6 +48,11 @@ jobs: sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example mv .env.example .env fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi - name: Create run.yml working-directory: examples/flows/standard/basic run: | @@ -74,6 +79,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} @@ -84,6 +91,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} diff --git a/.github/workflows/samples_flows_standard_basic_with_builtin_llm.yml b/.github/workflows/samples_flows_standard_basic_with_builtin_llm.yml index 39d4bd19673..80ba5c7d834 100644 --- a/.github/workflows/samples_flows_standard_basic_with_builtin_llm.yml +++ b/.github/workflows/samples_flows_standard_basic_with_builtin_llm.yml @@ -48,6 +48,11 @@ jobs: sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example mv .env.example .env fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi - name: Create run.yml working-directory: examples/flows/standard/basic-with-builtin-llm run: | @@ -77,6 +82,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} @@ -87,6 +94,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} diff --git a/.github/workflows/samples_flows_standard_basic_with_connection.yml b/.github/workflows/samples_flows_standard_basic_with_connection.yml index 6462b2de555..fda39607f8e 100644 --- a/.github/workflows/samples_flows_standard_basic_with_connection.yml +++ b/.github/workflows/samples_flows_standard_basic_with_connection.yml @@ -48,6 +48,11 @@ jobs: sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example mv .env.example .env fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi - name: Create run.yml working-directory: examples/flows/standard/basic-with-connection run: | @@ -77,6 +82,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} @@ -87,6 +94,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} diff --git a/.github/workflows/samples_flows_standard_conditional_flow_for_if_else.yml b/.github/workflows/samples_flows_standard_conditional_flow_for_if_else.yml index 57d8cf6de4f..8529bb41f22 100644 --- a/.github/workflows/samples_flows_standard_conditional_flow_for_if_else.yml +++ b/.github/workflows/samples_flows_standard_conditional_flow_for_if_else.yml @@ -48,6 +48,11 @@ jobs: sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example mv .env.example .env fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi - name: Create run.yml working-directory: examples/flows/standard/conditional-flow-for-if-else run: | @@ -74,6 +79,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} @@ -84,6 +91,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} diff --git a/.github/workflows/samples_flows_standard_conditional_flow_for_switch.yml b/.github/workflows/samples_flows_standard_conditional_flow_for_switch.yml index 448ad1d3905..c8dcefe7b45 100644 --- a/.github/workflows/samples_flows_standard_conditional_flow_for_switch.yml +++ b/.github/workflows/samples_flows_standard_conditional_flow_for_switch.yml @@ -48,6 +48,11 @@ jobs: sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example mv .env.example .env fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi - name: Create run.yml working-directory: examples/flows/standard/conditional-flow-for-switch run: | @@ -74,6 +79,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} @@ -84,6 +91,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} diff --git a/.github/workflows/samples_flows_standard_customer_intent_extraction.yml b/.github/workflows/samples_flows_standard_customer_intent_extraction.yml index d0131b48383..f5a06a441a3 100644 --- a/.github/workflows/samples_flows_standard_customer_intent_extraction.yml +++ b/.github/workflows/samples_flows_standard_customer_intent_extraction.yml @@ -48,6 +48,11 @@ jobs: sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example mv .env.example .env fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi - name: Create run.yml working-directory: examples/flows/standard/customer-intent-extraction run: | @@ -74,6 +79,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} @@ -84,6 +91,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} diff --git a/.github/workflows/samples_flows_standard_flow_with_additional_includes.yml b/.github/workflows/samples_flows_standard_flow_with_additional_includes.yml index 774f075025a..5a49124af91 100644 --- a/.github/workflows/samples_flows_standard_flow_with_additional_includes.yml +++ b/.github/workflows/samples_flows_standard_flow_with_additional_includes.yml @@ -48,6 +48,11 @@ jobs: sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example mv .env.example .env fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi - name: Create run.yml working-directory: examples/flows/standard/flow-with-additional-includes run: | @@ -77,6 +82,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} @@ -87,6 +94,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} diff --git a/.github/workflows/samples_flows_standard_flow_with_symlinks.yml b/.github/workflows/samples_flows_standard_flow_with_symlinks.yml index 4d0d129148e..04892bd7c0b 100644 --- a/.github/workflows/samples_flows_standard_flow_with_symlinks.yml +++ b/.github/workflows/samples_flows_standard_flow_with_symlinks.yml @@ -48,6 +48,11 @@ jobs: sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example mv .env.example .env fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi - name: Create run.yml working-directory: examples/flows/standard/flow-with-symlinks run: | @@ -77,6 +82,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} @@ -87,6 +94,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} diff --git a/.github/workflows/samples_flows_standard_gen_docstring.yml b/.github/workflows/samples_flows_standard_gen_docstring.yml index d6dc3640599..1e16c47c11a 100644 --- a/.github/workflows/samples_flows_standard_gen_docstring.yml +++ b/.github/workflows/samples_flows_standard_gen_docstring.yml @@ -48,6 +48,11 @@ jobs: sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example mv .env.example .env fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi - name: Create run.yml working-directory: examples/flows/standard/gen-docstring run: | @@ -74,6 +79,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} @@ -84,6 +91,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} diff --git a/.github/workflows/samples_flows_standard_maths_to_code.yml b/.github/workflows/samples_flows_standard_maths_to_code.yml index e87c8d1eb30..28c2d995c08 100644 --- a/.github/workflows/samples_flows_standard_maths_to_code.yml +++ b/.github/workflows/samples_flows_standard_maths_to_code.yml @@ -48,6 +48,11 @@ jobs: sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example mv .env.example .env fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi - name: Create run.yml working-directory: examples/flows/standard/maths-to-code run: | @@ -74,6 +79,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} @@ -84,6 +91,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} diff --git a/.github/workflows/samples_flows_standard_named_entity_recognition.yml b/.github/workflows/samples_flows_standard_named_entity_recognition.yml index 1f469a0e73d..367c0a077b9 100644 --- a/.github/workflows/samples_flows_standard_named_entity_recognition.yml +++ b/.github/workflows/samples_flows_standard_named_entity_recognition.yml @@ -48,6 +48,11 @@ jobs: sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example mv .env.example .env fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi - name: Create run.yml working-directory: examples/flows/standard/named-entity-recognition run: | @@ -74,6 +79,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} @@ -84,6 +91,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} diff --git a/.github/workflows/samples_flows_standard_web_classification.yml b/.github/workflows/samples_flows_standard_web_classification.yml index 903d77fc909..316be1a7314 100644 --- a/.github/workflows/samples_flows_standard_web_classification.yml +++ b/.github/workflows/samples_flows_standard_web_classification.yml @@ -48,6 +48,11 @@ jobs: sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example mv .env.example .env fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi - name: Create run.yml working-directory: examples/flows/standard/web-classification run: | @@ -74,6 +79,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} @@ -84,6 +91,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} diff --git a/.github/workflows/samples_getstarted_quickstart.yml b/.github/workflows/samples_getstarted_quickstart.yml index 0aeaeb39754..5e24857464a 100644 --- a/.github/workflows/samples_getstarted_quickstart.yml +++ b/.github/workflows/samples_getstarted_quickstart.yml @@ -34,6 +34,22 @@ jobs: python -m pip install --upgrade pip pip install -r ${{ github.workspace }}/examples/requirements.txt pip install -r ${{ github.workspace }}/examples/dev_requirements.txt + - name: setup .env file + working-directory: examples/tutorials/get-started + run: | + AOAI_API_KEY=${{ secrets.AOAI_API_KEY_TEST }} + AOAI_API_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} + AOAI_API_ENDPOINT=$(echo ${AOAI_API_ENDPOINT//\//\\/}) + if [[ -e .env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example + mv .env.example .env + fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi - name: Create Aoai Connection run: pf connection create -f ${{ github.workspace }}/examples/connections/azure_openai.yml --set api_key="${{ secrets.AOAI_API_KEY_TEST }}" api_base="${{ secrets.AOAI_API_ENDPOINT_TEST }}" - name: Test Notebook diff --git a/.github/workflows/samples_prompty_basic.yml b/.github/workflows/samples_prompty_basic.yml new file mode 100644 index 00000000000..f53332b4763 --- /dev/null +++ b/.github/workflows/samples_prompty_basic.yml @@ -0,0 +1,110 @@ +# This code is autogenerated. +# Code is generated by running custom script: python3 readme.py +# Any manual changes to this file may cause incorrect behavior. +# Any manual changes will be overwritten if the code is regenerated. + +name: samples_prompty_basic +on: + schedule: + - cron: "46 19 * * *" # Every day starting at 3:46 BJT + pull_request: + branches: [ main ] + paths: [ examples/prompty/basic/**, examples/*requirements.txt, .github/workflows/samples_prompty_basic.yml ] + workflow_dispatch: + +env: + IS_IN_CI_PIPELINE: "true" + +jobs: + samples_prompty_basic: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Setup Python 3.9 environment + uses: actions/setup-python@v4 + with: + python-version: "3.9" + - name: Prepare requirements + working-directory: examples + run: | + if [[ -e requirements.txt ]]; then + python -m pip install --upgrade pip + pip install -r requirements.txt + fi + - name: Prepare dev requirements + working-directory: examples + run: | + python -m pip install --upgrade pip + pip install -r dev_requirements.txt + - name: Refine .env file + working-directory: examples/prompty/basic + run: | + AOAI_API_KEY=${{ secrets.AOAI_API_KEY_TEST }} + AOAI_API_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} + AOAI_API_ENDPOINT=$(echo ${AOAI_API_ENDPOINT//\//\\/}) + if [[ -e .env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example + mv .env.example .env + fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi + - name: Create run.yml + working-directory: examples/prompty/basic + run: | + gpt_base=${{ secrets.AOAI_API_ENDPOINT_TEST }} + gpt_base=$(echo ${gpt_base//\//\\/}) + if [[ -e run.yml ]]; then + sed -i -e "s/\${azure_open_ai_connection.api_key}/${{ secrets.AOAI_API_KEY_TEST }}/g" -e "s/\${azure_open_ai_connection.api_base}/$gpt_base/g" run.yml + fi + - name: Azure Login + uses: azure/login@v1 + with: + creds: ${{ secrets.AZURE_CREDENTIALS }} + - name: Extract Steps examples/prompty/basic/README.md + working-directory: ${{ github.workspace }} + run: | + python scripts/readme/extract_steps_from_readme.py -f examples/prompty/basic/README.md -o examples/prompty/basic + - name: Cat script + working-directory: examples/prompty/basic + run: | + cat bash_script.sh + - name: Run scripts against canary workspace (scheduled runs only) + if: github.event_name == 'schedule' + working-directory: examples/prompty/basic + run: | + export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} + export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} + export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} + export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} + bash bash_script.sh + - name: Run scripts against production workspace + if: github.event_name != 'schedule' + working-directory: examples/prompty/basic + run: | + export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} + export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} + export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} + export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} + bash bash_script.sh + - name: Pip List for Debug + if : ${{ always() }} + working-directory: examples/prompty/basic + run: | + pip list + - name: Upload artifact + if: ${{ always() }} + uses: actions/upload-artifact@v3 + with: + name: artifact + path: examples/prompty/basic/bash_script.sh \ No newline at end of file diff --git a/.github/workflows/samples_prompty_basic_promptyquickstart.yml b/.github/workflows/samples_prompty_basic_promptyquickstart.yml new file mode 100644 index 00000000000..d8b0cfc6930 --- /dev/null +++ b/.github/workflows/samples_prompty_basic_promptyquickstart.yml @@ -0,0 +1,64 @@ +# This code is autogenerated. +# Code is generated by running custom script: python3 readme.py +# Any manual changes to this file may cause incorrect behavior. +# Any manual changes will be overwritten if the code is regenerated. + +name: samples_prompty_basic_promptyquickstart +on: + schedule: + - cron: "19 21 * * *" # Every day starting at 5:19 BJT + pull_request: + branches: [ main ] + paths: [ examples/prompty/basic/**, examples/*requirements.txt, .github/workflows/samples_prompty_basic_promptyquickstart.yml ] + workflow_dispatch: + +env: + IS_IN_CI_PIPELINE: "true" + +jobs: + samples_prompty_basic_promptyquickstart: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Azure Login + uses: azure/login@v1 + with: + creds: ${{ secrets.AZURE_CREDENTIALS }} + - name: Setup Python 3.9 environment + uses: actions/setup-python@v4 + with: + python-version: "3.9" + - name: Prepare requirements + run: | + python -m pip install --upgrade pip + pip install -r ${{ github.workspace }}/examples/requirements.txt + pip install -r ${{ github.workspace }}/examples/dev_requirements.txt + - name: setup .env file + working-directory: examples/prompty/basic + run: | + AOAI_API_KEY=${{ secrets.AOAI_API_KEY_TEST }} + AOAI_API_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} + AOAI_API_ENDPOINT=$(echo ${AOAI_API_ENDPOINT//\//\\/}) + if [[ -e .env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example + mv .env.example .env + fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi + - name: Create Aoai Connection + run: pf connection create -f ${{ github.workspace }}/examples/connections/azure_openai.yml --set api_key="${{ secrets.AOAI_API_KEY_TEST }}" api_base="${{ secrets.AOAI_API_ENDPOINT_TEST }}" + - name: Test Notebook + working-directory: examples/prompty/basic + run: | + papermill -k python prompty-quickstart.ipynb prompty-quickstart.output.ipynb + - name: Upload artifact + if: ${{ always() }} + uses: actions/upload-artifact@v3 + with: + name: artifact + path: examples/prompty/basic diff --git a/.github/workflows/samples_prompty_chat_basic.yml b/.github/workflows/samples_prompty_chat_basic.yml new file mode 100644 index 00000000000..3edea145a1b --- /dev/null +++ b/.github/workflows/samples_prompty_chat_basic.yml @@ -0,0 +1,110 @@ +# This code is autogenerated. +# Code is generated by running custom script: python3 readme.py +# Any manual changes to this file may cause incorrect behavior. +# Any manual changes will be overwritten if the code is regenerated. + +name: samples_prompty_chat_basic +on: + schedule: + - cron: "47 20 * * *" # Every day starting at 4:47 BJT + pull_request: + branches: [ main ] + paths: [ examples/prompty/chat-basic/**, examples/*requirements.txt, .github/workflows/samples_prompty_chat_basic.yml ] + workflow_dispatch: + +env: + IS_IN_CI_PIPELINE: "true" + +jobs: + samples_prompty_chat_basic: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Setup Python 3.9 environment + uses: actions/setup-python@v4 + with: + python-version: "3.9" + - name: Prepare requirements + working-directory: examples + run: | + if [[ -e requirements.txt ]]; then + python -m pip install --upgrade pip + pip install -r requirements.txt + fi + - name: Prepare dev requirements + working-directory: examples + run: | + python -m pip install --upgrade pip + pip install -r dev_requirements.txt + - name: Refine .env file + working-directory: examples/prompty/chat-basic + run: | + AOAI_API_KEY=${{ secrets.AOAI_API_KEY_TEST }} + AOAI_API_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} + AOAI_API_ENDPOINT=$(echo ${AOAI_API_ENDPOINT//\//\\/}) + if [[ -e .env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example + mv .env.example .env + fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi + - name: Create run.yml + working-directory: examples/prompty/chat-basic + run: | + gpt_base=${{ secrets.AOAI_API_ENDPOINT_TEST }} + gpt_base=$(echo ${gpt_base//\//\\/}) + if [[ -e run.yml ]]; then + sed -i -e "s/\${azure_open_ai_connection.api_key}/${{ secrets.AOAI_API_KEY_TEST }}/g" -e "s/\${azure_open_ai_connection.api_base}/$gpt_base/g" run.yml + fi + - name: Azure Login + uses: azure/login@v1 + with: + creds: ${{ secrets.AZURE_CREDENTIALS }} + - name: Extract Steps examples/prompty/chat-basic/README.md + working-directory: ${{ github.workspace }} + run: | + python scripts/readme/extract_steps_from_readme.py -f examples/prompty/chat-basic/README.md -o examples/prompty/chat-basic + - name: Cat script + working-directory: examples/prompty/chat-basic + run: | + cat bash_script.sh + - name: Run scripts against canary workspace (scheduled runs only) + if: github.event_name == 'schedule' + working-directory: examples/prompty/chat-basic + run: | + export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} + export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} + export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} + export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} + bash bash_script.sh + - name: Run scripts against production workspace + if: github.event_name != 'schedule' + working-directory: examples/prompty/chat-basic + run: | + export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} + export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} + export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} + export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} + bash bash_script.sh + - name: Pip List for Debug + if : ${{ always() }} + working-directory: examples/prompty/chat-basic + run: | + pip list + - name: Upload artifact + if: ${{ always() }} + uses: actions/upload-artifact@v3 + with: + name: artifact + path: examples/prompty/chat-basic/bash_script.sh \ No newline at end of file diff --git a/.github/workflows/samples_prompty_chatbasic_chatwithprompty.yml b/.github/workflows/samples_prompty_chatbasic_chatwithprompty.yml new file mode 100644 index 00000000000..fffc75e2082 --- /dev/null +++ b/.github/workflows/samples_prompty_chatbasic_chatwithprompty.yml @@ -0,0 +1,64 @@ +# This code is autogenerated. +# Code is generated by running custom script: python3 readme.py +# Any manual changes to this file may cause incorrect behavior. +# Any manual changes will be overwritten if the code is regenerated. + +name: samples_prompty_chatbasic_chatwithprompty +on: + schedule: + - cron: "51 19 * * *" # Every day starting at 3:51 BJT + pull_request: + branches: [ main ] + paths: [ examples/prompty/chat-basic/**, examples/*requirements.txt, .github/workflows/samples_prompty_chatbasic_chatwithprompty.yml ] + workflow_dispatch: + +env: + IS_IN_CI_PIPELINE: "true" + +jobs: + samples_prompty_chatbasic_chatwithprompty: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Azure Login + uses: azure/login@v1 + with: + creds: ${{ secrets.AZURE_CREDENTIALS }} + - name: Setup Python 3.9 environment + uses: actions/setup-python@v4 + with: + python-version: "3.9" + - name: Prepare requirements + run: | + python -m pip install --upgrade pip + pip install -r ${{ github.workspace }}/examples/requirements.txt + pip install -r ${{ github.workspace }}/examples/dev_requirements.txt + - name: setup .env file + working-directory: examples/prompty/chat-basic + run: | + AOAI_API_KEY=${{ secrets.AOAI_API_KEY_TEST }} + AOAI_API_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} + AOAI_API_ENDPOINT=$(echo ${AOAI_API_ENDPOINT//\//\\/}) + if [[ -e .env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example + mv .env.example .env + fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi + - name: Create Aoai Connection + run: pf connection create -f ${{ github.workspace }}/examples/connections/azure_openai.yml --set api_key="${{ secrets.AOAI_API_KEY_TEST }}" api_base="${{ secrets.AOAI_API_ENDPOINT_TEST }}" + - name: Test Notebook + working-directory: examples/prompty/chat-basic + run: | + papermill -k python chat-with-prompty.ipynb chat-with-prompty.output.ipynb + - name: Upload artifact + if: ${{ always() }} + uses: actions/upload-artifact@v3 + with: + name: artifact + path: examples/prompty/chat-basic diff --git a/.github/workflows/samples_prompty_eval_apology.yml b/.github/workflows/samples_prompty_eval_apology.yml new file mode 100644 index 00000000000..4c69e09f365 --- /dev/null +++ b/.github/workflows/samples_prompty_eval_apology.yml @@ -0,0 +1,110 @@ +# This code is autogenerated. +# Code is generated by running custom script: python3 readme.py +# Any manual changes to this file may cause incorrect behavior. +# Any manual changes will be overwritten if the code is regenerated. + +name: samples_prompty_eval_apology +on: + schedule: + - cron: "10 22 * * *" # Every day starting at 6:10 BJT + pull_request: + branches: [ main ] + paths: [ examples/prompty/eval-apology/**, examples/*requirements.txt, .github/workflows/samples_prompty_eval_apology.yml ] + workflow_dispatch: + +env: + IS_IN_CI_PIPELINE: "true" + +jobs: + samples_prompty_eval_apology: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Setup Python 3.9 environment + uses: actions/setup-python@v4 + with: + python-version: "3.9" + - name: Prepare requirements + working-directory: examples + run: | + if [[ -e requirements.txt ]]; then + python -m pip install --upgrade pip + pip install -r requirements.txt + fi + - name: Prepare dev requirements + working-directory: examples + run: | + python -m pip install --upgrade pip + pip install -r dev_requirements.txt + - name: Refine .env file + working-directory: examples/prompty/eval-apology + run: | + AOAI_API_KEY=${{ secrets.AOAI_API_KEY_TEST }} + AOAI_API_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} + AOAI_API_ENDPOINT=$(echo ${AOAI_API_ENDPOINT//\//\\/}) + if [[ -e .env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example + mv .env.example .env + fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi + - name: Create run.yml + working-directory: examples/prompty/eval-apology + run: | + gpt_base=${{ secrets.AOAI_API_ENDPOINT_TEST }} + gpt_base=$(echo ${gpt_base//\//\\/}) + if [[ -e run.yml ]]; then + sed -i -e "s/\${azure_open_ai_connection.api_key}/${{ secrets.AOAI_API_KEY_TEST }}/g" -e "s/\${azure_open_ai_connection.api_base}/$gpt_base/g" run.yml + fi + - name: Azure Login + uses: azure/login@v1 + with: + creds: ${{ secrets.AZURE_CREDENTIALS }} + - name: Extract Steps examples/prompty/eval-apology/README.md + working-directory: ${{ github.workspace }} + run: | + python scripts/readme/extract_steps_from_readme.py -f examples/prompty/eval-apology/README.md -o examples/prompty/eval-apology + - name: Cat script + working-directory: examples/prompty/eval-apology + run: | + cat bash_script.sh + - name: Run scripts against canary workspace (scheduled runs only) + if: github.event_name == 'schedule' + working-directory: examples/prompty/eval-apology + run: | + export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} + export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} + export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} + export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} + bash bash_script.sh + - name: Run scripts against production workspace + if: github.event_name != 'schedule' + working-directory: examples/prompty/eval-apology + run: | + export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} + export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} + export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} + export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} + bash bash_script.sh + - name: Pip List for Debug + if : ${{ always() }} + working-directory: examples/prompty/eval-apology + run: | + pip list + - name: Upload artifact + if: ${{ always() }} + uses: actions/upload-artifact@v3 + with: + name: artifact + path: examples/prompty/eval-apology/bash_script.sh \ No newline at end of file diff --git a/.github/workflows/samples_prompty_eval_basic.yml b/.github/workflows/samples_prompty_eval_basic.yml new file mode 100644 index 00000000000..e690e054a7c --- /dev/null +++ b/.github/workflows/samples_prompty_eval_basic.yml @@ -0,0 +1,110 @@ +# This code is autogenerated. +# Code is generated by running custom script: python3 readme.py +# Any manual changes to this file may cause incorrect behavior. +# Any manual changes will be overwritten if the code is regenerated. + +name: samples_prompty_eval_basic +on: + schedule: + - cron: "25 21 * * *" # Every day starting at 5:25 BJT + pull_request: + branches: [ main ] + paths: [ examples/prompty/eval-basic/**, examples/*requirements.txt, .github/workflows/samples_prompty_eval_basic.yml ] + workflow_dispatch: + +env: + IS_IN_CI_PIPELINE: "true" + +jobs: + samples_prompty_eval_basic: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Setup Python 3.9 environment + uses: actions/setup-python@v4 + with: + python-version: "3.9" + - name: Prepare requirements + working-directory: examples + run: | + if [[ -e requirements.txt ]]; then + python -m pip install --upgrade pip + pip install -r requirements.txt + fi + - name: Prepare dev requirements + working-directory: examples + run: | + python -m pip install --upgrade pip + pip install -r dev_requirements.txt + - name: Refine .env file + working-directory: examples/prompty/eval-basic + run: | + AOAI_API_KEY=${{ secrets.AOAI_API_KEY_TEST }} + AOAI_API_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} + AOAI_API_ENDPOINT=$(echo ${AOAI_API_ENDPOINT//\//\\/}) + if [[ -e .env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example + mv .env.example .env + fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi + - name: Create run.yml + working-directory: examples/prompty/eval-basic + run: | + gpt_base=${{ secrets.AOAI_API_ENDPOINT_TEST }} + gpt_base=$(echo ${gpt_base//\//\\/}) + if [[ -e run.yml ]]; then + sed -i -e "s/\${azure_open_ai_connection.api_key}/${{ secrets.AOAI_API_KEY_TEST }}/g" -e "s/\${azure_open_ai_connection.api_base}/$gpt_base/g" run.yml + fi + - name: Azure Login + uses: azure/login@v1 + with: + creds: ${{ secrets.AZURE_CREDENTIALS }} + - name: Extract Steps examples/prompty/eval-basic/README.md + working-directory: ${{ github.workspace }} + run: | + python scripts/readme/extract_steps_from_readme.py -f examples/prompty/eval-basic/README.md -o examples/prompty/eval-basic + - name: Cat script + working-directory: examples/prompty/eval-basic + run: | + cat bash_script.sh + - name: Run scripts against canary workspace (scheduled runs only) + if: github.event_name == 'schedule' + working-directory: examples/prompty/eval-basic + run: | + export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} + export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} + export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} + export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} + bash bash_script.sh + - name: Run scripts against production workspace + if: github.event_name != 'schedule' + working-directory: examples/prompty/eval-basic + run: | + export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} + export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} + export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} + export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} + bash bash_script.sh + - name: Pip List for Debug + if : ${{ always() }} + working-directory: examples/prompty/eval-basic + run: | + pip list + - name: Upload artifact + if: ${{ always() }} + uses: actions/upload-artifact@v3 + with: + name: artifact + path: examples/prompty/eval-basic/bash_script.sh \ No newline at end of file diff --git a/.github/workflows/samples_runmanagement_runmanagement.yml b/.github/workflows/samples_runmanagement_runmanagement.yml index afa13f6f3aa..6411a96a04a 100644 --- a/.github/workflows/samples_runmanagement_runmanagement.yml +++ b/.github/workflows/samples_runmanagement_runmanagement.yml @@ -34,6 +34,22 @@ jobs: python -m pip install --upgrade pip pip install -r ${{ github.workspace }}/examples/requirements.txt pip install -r ${{ github.workspace }}/examples/dev_requirements.txt + - name: setup .env file + working-directory: examples/tutorials/run-management + run: | + AOAI_API_KEY=${{ secrets.AOAI_API_KEY_TEST }} + AOAI_API_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} + AOAI_API_ENDPOINT=$(echo ${AOAI_API_ENDPOINT//\//\\/}) + if [[ -e .env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example + mv .env.example .env + fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi - name: Create Aoai Connection run: pf connection create -f ${{ github.workspace }}/examples/connections/azure_openai.yml --set api_key="${{ secrets.AOAI_API_KEY_TEST }}" api_base="${{ secrets.AOAI_API_ENDPOINT_TEST }}" - name: Test Notebook diff --git a/.github/workflows/samples_tools_use_cases_cascading_inputs_tool_showcase.yml b/.github/workflows/samples_tools_use_cases_cascading_inputs_tool_showcase.yml index 7f53b84b926..19ec7e657fe 100644 --- a/.github/workflows/samples_tools_use_cases_cascading_inputs_tool_showcase.yml +++ b/.github/workflows/samples_tools_use_cases_cascading_inputs_tool_showcase.yml @@ -48,6 +48,11 @@ jobs: sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example mv .env.example .env fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi - name: Create run.yml working-directory: examples/tools/use-cases/cascading-inputs-tool-showcase run: | @@ -74,6 +79,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} @@ -84,6 +91,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} diff --git a/.github/workflows/samples_tools_use_cases_custom_llm_tool_showcase.yml b/.github/workflows/samples_tools_use_cases_custom_llm_tool_showcase.yml index 01ba24cbe9f..a180436d95b 100644 --- a/.github/workflows/samples_tools_use_cases_custom_llm_tool_showcase.yml +++ b/.github/workflows/samples_tools_use_cases_custom_llm_tool_showcase.yml @@ -48,6 +48,11 @@ jobs: sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example mv .env.example .env fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi - name: Create run.yml working-directory: examples/tools/use-cases/custom_llm_tool_showcase run: | @@ -74,6 +79,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} @@ -84,6 +91,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} diff --git a/.github/workflows/samples_tools_use_cases_custom_strong_type_connection_package_tool_showcase.yml b/.github/workflows/samples_tools_use_cases_custom_strong_type_connection_package_tool_showcase.yml index 9705846f644..fa2381b5d86 100644 --- a/.github/workflows/samples_tools_use_cases_custom_strong_type_connection_package_tool_showcase.yml +++ b/.github/workflows/samples_tools_use_cases_custom_strong_type_connection_package_tool_showcase.yml @@ -48,6 +48,11 @@ jobs: sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example mv .env.example .env fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi - name: Create run.yml working-directory: examples/tools/use-cases/custom-strong-type-connection-package-tool-showcase run: | @@ -74,6 +79,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} @@ -84,6 +91,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} diff --git a/.github/workflows/samples_tools_use_cases_custom_strong_type_connection_script_tool_showcase.yml b/.github/workflows/samples_tools_use_cases_custom_strong_type_connection_script_tool_showcase.yml index 307db728697..86a851067e5 100644 --- a/.github/workflows/samples_tools_use_cases_custom_strong_type_connection_script_tool_showcase.yml +++ b/.github/workflows/samples_tools_use_cases_custom_strong_type_connection_script_tool_showcase.yml @@ -48,6 +48,11 @@ jobs: sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example mv .env.example .env fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi - name: Create run.yml working-directory: examples/tools/use-cases/custom-strong-type-connection-script-tool-showcase run: | @@ -74,6 +79,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} @@ -84,6 +91,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} diff --git a/.github/workflows/samples_tools_use_cases_dynamic_list_input_tool_showcase.yml b/.github/workflows/samples_tools_use_cases_dynamic_list_input_tool_showcase.yml index ecd70f2dc9f..e1634874782 100644 --- a/.github/workflows/samples_tools_use_cases_dynamic_list_input_tool_showcase.yml +++ b/.github/workflows/samples_tools_use_cases_dynamic_list_input_tool_showcase.yml @@ -48,6 +48,11 @@ jobs: sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example mv .env.example .env fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi - name: Create run.yml working-directory: examples/tools/use-cases/dynamic-list-input-tool-showcase run: | @@ -74,6 +79,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} @@ -84,6 +91,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} diff --git a/.github/workflows/samples_tracing_autogengroupchat_traceautogengroupchat.yml b/.github/workflows/samples_tracing_autogengroupchat_traceautogengroupchat.yml new file mode 100644 index 00000000000..881698533d2 --- /dev/null +++ b/.github/workflows/samples_tracing_autogengroupchat_traceautogengroupchat.yml @@ -0,0 +1,69 @@ +# This code is autogenerated. +# Code is generated by running custom script: python3 readme.py +# Any manual changes to this file may cause incorrect behavior. +# Any manual changes will be overwritten if the code is regenerated. + +name: samples_tracing_autogengroupchat_traceautogengroupchat +on: + schedule: + - cron: "11 20 * * *" # Every day starting at 4:11 BJT + pull_request: + branches: [ main ] + paths: [ examples/tutorials/tracing/autogen-groupchat/**, .github/workflows/samples_tracing_autogengroupchat_traceautogengroupchat.yml, examples/requirements.txt, examples/connections/azure_openai.yml ] + workflow_dispatch: + +env: + IS_IN_CI_PIPELINE: "true" + +jobs: + samples_tracing_autogengroupchat_traceautogengroupchat: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Azure Login + uses: azure/login@v1 + with: + creds: ${{ secrets.AZURE_CREDENTIALS }} + - name: Setup Python 3.9 environment + uses: actions/setup-python@v4 + with: + python-version: "3.9" + - name: Prepare requirements + run: | + python -m pip install --upgrade pip + pip install -r ${{ github.workspace }}/examples/requirements.txt + pip install -r ${{ github.workspace }}/examples/dev_requirements.txt + - name: setup .env file + working-directory: examples/tutorials/tracing/autogen-groupchat + run: | + AOAI_API_KEY=${{ secrets.AOAI_API_KEY_TEST }} + AOAI_API_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} + AOAI_API_ENDPOINT=$(echo ${AOAI_API_ENDPOINT//\//\\/}) + if [[ -e .env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example + mv .env.example .env + fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi + if [[ -e OAI_CONFIG_LIST.json.example ]]; then + echo "OAI_CONFIG_LIST replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" OAI_CONFIG_LIST.json.example + mv OAI_CONFIG_LIST.json.example OAI_CONFIG_LIST.json + fi + - name: Create Aoai Connection + run: pf connection create -f ${{ github.workspace }}/examples/connections/azure_openai.yml --set api_key="${{ secrets.AOAI_API_KEY_TEST }}" api_base="${{ secrets.AOAI_API_ENDPOINT_TEST }}" + - name: Test Notebook + working-directory: examples/tutorials/tracing/autogen-groupchat + run: | + papermill -k python trace-autogen-groupchat.ipynb trace-autogen-groupchat.output.ipynb + - name: Upload artifact + if: ${{ always() }} + uses: actions/upload-artifact@v3 + with: + name: artifact + path: examples/tutorials/tracing/autogen-groupchat diff --git a/.github/workflows/samples_tracing_customotlpcollector_otlptracecollector.yml b/.github/workflows/samples_tracing_customotlpcollector_otlptracecollector.yml new file mode 100644 index 00000000000..faa074d98ea --- /dev/null +++ b/.github/workflows/samples_tracing_customotlpcollector_otlptracecollector.yml @@ -0,0 +1,64 @@ +# This code is autogenerated. +# Code is generated by running custom script: python3 readme.py +# Any manual changes to this file may cause incorrect behavior. +# Any manual changes will be overwritten if the code is regenerated. + +name: samples_tracing_customotlpcollector_otlptracecollector +on: + schedule: + - cron: "22 21 * * *" # Every day starting at 5:22 BJT + pull_request: + branches: [ main ] + paths: [ examples/tutorials/tracing/custom-otlp-collector/**, .github/workflows/samples_tracing_customotlpcollector_otlptracecollector.yml, examples/requirements.txt, examples/connections/azure_openai.yml ] + workflow_dispatch: + +env: + IS_IN_CI_PIPELINE: "true" + +jobs: + samples_tracing_customotlpcollector_otlptracecollector: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Azure Login + uses: azure/login@v1 + with: + creds: ${{ secrets.AZURE_CREDENTIALS }} + - name: Setup Python 3.9 environment + uses: actions/setup-python@v4 + with: + python-version: "3.9" + - name: Prepare requirements + run: | + python -m pip install --upgrade pip + pip install -r ${{ github.workspace }}/examples/requirements.txt + pip install -r ${{ github.workspace }}/examples/dev_requirements.txt + - name: setup .env file + working-directory: examples/tutorials/tracing/custom-otlp-collector + run: | + AOAI_API_KEY=${{ secrets.AOAI_API_KEY_TEST }} + AOAI_API_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} + AOAI_API_ENDPOINT=$(echo ${AOAI_API_ENDPOINT//\//\\/}) + if [[ -e .env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example + mv .env.example .env + fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi + - name: Create Aoai Connection + run: pf connection create -f ${{ github.workspace }}/examples/connections/azure_openai.yml --set api_key="${{ secrets.AOAI_API_KEY_TEST }}" api_base="${{ secrets.AOAI_API_ENDPOINT_TEST }}" + - name: Test Notebook + working-directory: examples/tutorials/tracing/custom-otlp-collector + run: | + papermill -k python otlp-trace-collector.ipynb otlp-trace-collector.output.ipynb + - name: Upload artifact + if: ${{ always() }} + uses: actions/upload-artifact@v3 + with: + name: artifact + path: examples/tutorials/tracing/custom-otlp-collector diff --git a/.github/workflows/samples_tracing_langchain_tracelangchain.yml b/.github/workflows/samples_tracing_langchain_tracelangchain.yml new file mode 100644 index 00000000000..e3c910edd89 --- /dev/null +++ b/.github/workflows/samples_tracing_langchain_tracelangchain.yml @@ -0,0 +1,64 @@ +# This code is autogenerated. +# Code is generated by running custom script: python3 readme.py +# Any manual changes to this file may cause incorrect behavior. +# Any manual changes will be overwritten if the code is regenerated. + +name: samples_tracing_langchain_tracelangchain +on: + schedule: + - cron: "21 19 * * *" # Every day starting at 3:21 BJT + pull_request: + branches: [ main ] + paths: [ examples/tutorials/tracing/langchain/**, .github/workflows/samples_tracing_langchain_tracelangchain.yml, examples/requirements.txt, examples/connections/azure_openai.yml ] + workflow_dispatch: + +env: + IS_IN_CI_PIPELINE: "true" + +jobs: + samples_tracing_langchain_tracelangchain: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Azure Login + uses: azure/login@v1 + with: + creds: ${{ secrets.AZURE_CREDENTIALS }} + - name: Setup Python 3.9 environment + uses: actions/setup-python@v4 + with: + python-version: "3.9" + - name: Prepare requirements + run: | + python -m pip install --upgrade pip + pip install -r ${{ github.workspace }}/examples/requirements.txt + pip install -r ${{ github.workspace }}/examples/dev_requirements.txt + - name: setup .env file + working-directory: examples/tutorials/tracing/langchain + run: | + AOAI_API_KEY=${{ secrets.AOAI_API_KEY_TEST }} + AOAI_API_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} + AOAI_API_ENDPOINT=$(echo ${AOAI_API_ENDPOINT//\//\\/}) + if [[ -e .env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example + mv .env.example .env + fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi + - name: Create Aoai Connection + run: pf connection create -f ${{ github.workspace }}/examples/connections/azure_openai.yml --set api_key="${{ secrets.AOAI_API_KEY_TEST }}" api_base="${{ secrets.AOAI_API_ENDPOINT_TEST }}" + - name: Test Notebook + working-directory: examples/tutorials/tracing/langchain + run: | + papermill -k python trace-langchain.ipynb trace-langchain.output.ipynb + - name: Upload artifact + if: ${{ always() }} + uses: actions/upload-artifact@v3 + with: + name: artifact + path: examples/tutorials/tracing/langchain diff --git a/.github/workflows/samples_tutorials_e2e_development_chat_with_pdf.yml b/.github/workflows/samples_tutorials_e2e_development_chat_with_pdf.yml index d078e8bab60..c2b8df00363 100644 --- a/.github/workflows/samples_tutorials_e2e_development_chat_with_pdf.yml +++ b/.github/workflows/samples_tutorials_e2e_development_chat_with_pdf.yml @@ -54,6 +54,11 @@ jobs: sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example mv .env.example .env fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi - name: Create AOAI Connection from ENV file working-directory: examples/tutorials/e2e-development run: | @@ -90,6 +95,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} @@ -100,6 +107,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} diff --git a/.github/workflows/samples_tutorials_flow_deploy_azure_app_service.yml b/.github/workflows/samples_tutorials_flow_deploy_azure_app_service.yml index a353e7682a0..aa98df76f43 100644 --- a/.github/workflows/samples_tutorials_flow_deploy_azure_app_service.yml +++ b/.github/workflows/samples_tutorials_flow_deploy_azure_app_service.yml @@ -48,6 +48,11 @@ jobs: sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example mv .env.example .env fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi - name: Create run.yml working-directory: examples/tutorials/flow-deploy/azure-app-service run: | @@ -74,6 +79,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} @@ -84,6 +91,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} diff --git a/.github/workflows/samples_tutorials_flow_deploy_create_service_with_flow.yml b/.github/workflows/samples_tutorials_flow_deploy_create_service_with_flow.yml index 4976b5884f0..dfcf3338a0d 100644 --- a/.github/workflows/samples_tutorials_flow_deploy_create_service_with_flow.yml +++ b/.github/workflows/samples_tutorials_flow_deploy_create_service_with_flow.yml @@ -48,6 +48,11 @@ jobs: sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example mv .env.example .env fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi - name: Create run.yml working-directory: examples/tutorials/flow-deploy/create-service-with-flow run: | @@ -74,6 +79,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} @@ -84,6 +91,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} diff --git a/.github/workflows/samples_tutorials_flow_deploy_distribute_flow_as_executable_app.yml b/.github/workflows/samples_tutorials_flow_deploy_distribute_flow_as_executable_app.yml index c72fd439c44..f78641fa64a 100644 --- a/.github/workflows/samples_tutorials_flow_deploy_distribute_flow_as_executable_app.yml +++ b/.github/workflows/samples_tutorials_flow_deploy_distribute_flow_as_executable_app.yml @@ -48,6 +48,11 @@ jobs: sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example mv .env.example .env fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi - name: Create run.yml working-directory: examples/tutorials/flow-deploy/distribute-flow-as-executable-app run: | @@ -74,6 +79,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} @@ -84,6 +91,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} diff --git a/.github/workflows/samples_tutorials_flow_deploy_docker.yml b/.github/workflows/samples_tutorials_flow_deploy_docker.yml index fa503ff22fc..cdb7a7d6aff 100644 --- a/.github/workflows/samples_tutorials_flow_deploy_docker.yml +++ b/.github/workflows/samples_tutorials_flow_deploy_docker.yml @@ -48,6 +48,11 @@ jobs: sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example mv .env.example .env fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi - name: Create run.yml working-directory: examples/tutorials/flow-deploy/docker run: | @@ -74,6 +79,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} @@ -84,6 +91,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} diff --git a/.github/workflows/samples_tutorials_flow_deploy_kubernetes.yml b/.github/workflows/samples_tutorials_flow_deploy_kubernetes.yml index 48c506b7b18..c92ac56861a 100644 --- a/.github/workflows/samples_tutorials_flow_deploy_kubernetes.yml +++ b/.github/workflows/samples_tutorials_flow_deploy_kubernetes.yml @@ -48,6 +48,11 @@ jobs: sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example mv .env.example .env fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi - name: Create run.yml working-directory: examples/tutorials/flow-deploy/kubernetes run: | @@ -74,6 +79,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} @@ -84,6 +91,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} diff --git a/.github/workflows/samples_tutorials_flow_fine_tuning_evaluation_promptflow_quality_improvement.yml b/.github/workflows/samples_tutorials_flow_fine_tuning_evaluation_promptflow_quality_improvement.yml index 125ef7799d2..a57c4a2bb3a 100644 --- a/.github/workflows/samples_tutorials_flow_fine_tuning_evaluation_promptflow_quality_improvement.yml +++ b/.github/workflows/samples_tutorials_flow_fine_tuning_evaluation_promptflow_quality_improvement.yml @@ -48,6 +48,11 @@ jobs: sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example mv .env.example .env fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi - name: Create run.yml working-directory: examples/tutorials/flow-fine-tuning-evaluation run: | @@ -74,6 +79,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} @@ -84,6 +91,8 @@ jobs: run: | export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} diff --git a/.github/workflows/samples_tutorials_tracing.yml b/.github/workflows/samples_tutorials_tracing.yml new file mode 100644 index 00000000000..279495b93c4 --- /dev/null +++ b/.github/workflows/samples_tutorials_tracing.yml @@ -0,0 +1,110 @@ +# This code is autogenerated. +# Code is generated by running custom script: python3 readme.py +# Any manual changes to this file may cause incorrect behavior. +# Any manual changes will be overwritten if the code is regenerated. + +name: samples_tutorials_tracing +on: + schedule: + - cron: "18 22 * * *" # Every day starting at 6:18 BJT + pull_request: + branches: [ main ] + paths: [ examples/tutorials/tracing/**, examples/tutorials/tracing//**, .github/workflows/samples_tutorials_tracing.yml, examples/requirements.txt, examples/connections/azure_openai.yml ] + workflow_dispatch: + +env: + IS_IN_CI_PIPELINE: "true" + +jobs: + samples_tutorials_tracing: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Setup Python 3.9 environment + uses: actions/setup-python@v4 + with: + python-version: "3.9" + - name: Prepare requirements + working-directory: examples + run: | + if [[ -e requirements.txt ]]; then + python -m pip install --upgrade pip + pip install -r requirements.txt + fi + - name: Prepare dev requirements + working-directory: examples + run: | + python -m pip install --upgrade pip + pip install -r dev_requirements.txt + - name: Refine .env file + working-directory: examples/tutorials/tracing + run: | + AOAI_API_KEY=${{ secrets.AOAI_API_KEY_TEST }} + AOAI_API_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} + AOAI_API_ENDPOINT=$(echo ${AOAI_API_ENDPOINT//\//\\/}) + if [[ -e .env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example + mv .env.example .env + fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi + - name: Create run.yml + working-directory: examples/tutorials/tracing + run: | + gpt_base=${{ secrets.AOAI_API_ENDPOINT_TEST }} + gpt_base=$(echo ${gpt_base//\//\\/}) + if [[ -e run.yml ]]; then + sed -i -e "s/\${azure_open_ai_connection.api_key}/${{ secrets.AOAI_API_KEY_TEST }}/g" -e "s/\${azure_open_ai_connection.api_base}/$gpt_base/g" run.yml + fi + - name: Azure Login + uses: azure/login@v1 + with: + creds: ${{ secrets.AZURE_CREDENTIALS }} + - name: Extract Steps examples/tutorials/tracing/README.md + working-directory: ${{ github.workspace }} + run: | + python scripts/readme/extract_steps_from_readme.py -f examples/tutorials/tracing/README.md -o examples/tutorials/tracing + - name: Cat script + working-directory: examples/tutorials/tracing + run: | + cat bash_script.sh + - name: Run scripts against canary workspace (scheduled runs only) + if: github.event_name == 'schedule' + working-directory: examples/tutorials/tracing + run: | + export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} + export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} + export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} + export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} + bash bash_script.sh + - name: Run scripts against production workspace + if: github.event_name != 'schedule' + working-directory: examples/tutorials/tracing + run: | + export aoai_api_key=${{secrets.AOAI_API_KEY_TEST }} + export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ secrets.AOAI_API_ENDPOINT_TEST }} + export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} + export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} + export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_PROD }} + bash bash_script.sh + - name: Pip List for Debug + if : ${{ always() }} + working-directory: examples/tutorials/tracing + run: | + pip list + - name: Upload artifact + if: ${{ always() }} + uses: actions/upload-artifact@v3 + with: + name: artifact + path: examples/tutorials/tracing/bash_script.sh \ No newline at end of file diff --git a/.gitignore b/.gitignore index 641912b455b..36c50ebf596 100644 --- a/.gitignore +++ b/.gitignore @@ -194,4 +194,4 @@ src/promptflow-*/promptflow/__init__.py # Eclipse project files **/.project -**/.pydevproject \ No newline at end of file +**/.pydevproject diff --git a/README.md b/README.md index a986bfae8f2..a14c748a2d2 100644 --- a/README.md +++ b/README.md @@ -99,7 +99,7 @@ Prompt flow is a tool designed to **build high quality LLM apps**, the developme We also offer a VS Code extension (a flow designer) for an interactive flow development experience with UI. -vsc +vsc You can install it from the visualstudio marketplace. diff --git a/docs/concepts/concept-flows.md b/docs/concepts/concept-flows.md index 1c0c85d1112..ff58925b1a1 100644 --- a/docs/concepts/concept-flows.md +++ b/docs/concepts/concept-flows.md @@ -1,27 +1,43 @@ -While how LLMs work may be elusive to many developers, how LLM apps work is not - they essentially involve a series of calls to external services such as LLMs/databases/search engines, or intermediate data processing, all glued together. Thus LLM apps are merely Directed Acyclic Graphs (DAGs) of function calls. These DAGs are flows in prompt flow. +While how LLMs work may be elusive to many developers, how LLM apps work is not - they essentially involve a series of calls to external services such as LLMs/databases/search engines, or intermediate data processing, all glued together. # Flows +## Flex flow + +You can create LLM apps using a Python function or class as the entry point, which encapsulating your app logic. You can directly test or run these with pure code experience. Or you can define a `flow.flex.yaml` that points to these entries, which enables testing, running, or viewing traces via the [Promptflow VS Code Extension](https://marketplace.visualstudio.com/items?itemName=prompt-flow.prompt-flow). + +Our [examples](https://github.com/microsoft/promptflow/tree/main/examples/flex-flows) should also give you an idea how to write `flex flows`. + +## DAG flow + +Thus LLM apps can be defined as Directed Acyclic Graphs (DAGs) of function calls. These DAGs are flows in prompt flow. + A flow in prompt flow is a DAG of functions (we call them [tools](./concept-tools.md)). These functions/tools connected via input/output dependencies and executed based on the topology by prompt flow executor. -A flow is represented as a YAML file and can be visualized with our [Prompt flow for VS Code extension](https://marketplace.visualstudio.com/items?itemName=prompt-flow.prompt-flow). Here is an example: +A flow is represented as a YAML file and can be visualized with our [Prompt flow for VS Code extension](https://marketplace.visualstudio.com/items?itemName=prompt-flow.prompt-flow). Here is an example `flow.dag.yaml`: ![flow_dag](../media/how-to-guides/quick-start/flow_dag.png) +Please refer to our [examples](https://github.com/microsoft/promptflow/tree/main/examples/flows) to learn how to write a `DAG flow`. + ## Flow types -Prompt flow has three flow types: +Prompt flow examples organize flows by three categories: -- **Standard flow** and **Chat flow**: these two are for you to develop your LLM application. The primary difference between the two lies in the additional support provided by the "Chat Flow" for chat applications. For instance, you can define chat_history, chat_input, and chat_output for your flow. The prompt flow, in turn, will offer a chat-like experience (including conversation history) during the development of the flow. Moreover, it also provides a sample chat application for deployment purposes. +- **Standard flow** or **Chat flow**: these two are for you to develop your LLM application. The primary difference between the two lies in the additional support provided by the "Chat Flow" for chat applications. For instance, you can define `chat_history`, `chat_input`, and `chat_output` for your flow. The prompt flow, in turn, will offer a chat-like experience (including conversation history) during the development of the flow. Moreover, it also provides a sample chat application for deployment purposes. - **Evaluation flow** is for you to test/evaluate the quality of your LLM application (standard/chat flow). It usually run on the outputs of standard/chat flow, and compute some metrics that can be used to determine whether the standard/chat flow performs well. E.g. is the answer accurate? is the answer fact-based? -## When to use standard flow vs. chat flow? -As a general guideline, if you are building a chatbot that needs to maintain conversation history, try chat flow. In most other cases, standard flow should serve your needs. +Flex flow [examples](https://github.com/microsoft/promptflow/tree/main/examples/flex-flows): +- [basic](https://github.com/microsoft/promptflow/tree/main/examples/flex-flows/basic): A basic standard flow define using function entry that calls Azure OpenAI with connection info stored in environment variables. +- [chat-basic](https://github.com/microsoft/promptflow/tree/main/examples/flex-flows/chat-basic): A basic chat flow defined using class entry. It demonstrates how to create a chatbot that can remember previous interactions and use the conversation history to generate next message. +- [eval-code-quality](https://github.com/microsoft/promptflow/tree/main/examples/flex-flows/eval-code-quality): A example flow defined using function entry which shows how to evaluate the quality of code snippet. + +DAG flow [examples](https://github.com/microsoft/promptflow/tree/main/examples/flows): +- [basic](https://github.com/microsoft/promptflow/tree/main/examples/flows/standard/basic): A basic standard flow using custom python tool that calls Azure OpenAI with connection info stored in environment variables. +- [chat-basic](https://github.com/microsoft/promptflow/tree/main/examples/flows/chat/chat-basic): This example shows how to create a basic chat flow. It demonstrates how to create a chatbot that can remember previous interactions and use the conversation history to generate next message. +- [eval-basic](https://github.com/microsoft/promptflow/tree/main/examples/flows/evaluation/eval-basic): -Our examples should also give you an idea when to use what: -- [examples/flows/standard](https://github.com/microsoft/promptflow/tree/main/examples/flows/standard) -- [examples/flows/chat](https://github.com/microsoft/promptflow/tree/main/examples/flows/chat) ## Next steps diff --git a/docs/how-to-guides/develop-a-flow/index.md b/docs/how-to-guides/develop-a-flow/index.md index 5867e52c5c1..eb23ee252b8 100644 --- a/docs/how-to-guides/develop-a-flow/index.md +++ b/docs/how-to-guides/develop-a-flow/index.md @@ -3,7 +3,6 @@ We provide guides on how to develop a flow by writing a flow yaml from scratch i ```{toctree} :maxdepth: 1 -:hidden: init-and-test-a-flow develop-standard-flow diff --git a/docs/how-to-guides/index.md b/docs/how-to-guides/index.md index c4481cf628d..821b9a0a860 100644 --- a/docs/how-to-guides/index.md +++ b/docs/how-to-guides/index.md @@ -2,6 +2,12 @@ Simple and short articles grouped by topics, each introduces a core feature of prompt flow and how you can use it to address your specific use cases. +```{toctree} +:caption: Tracing +:maxdepth: 1 +tracing/index +``` + ```{toctree} :caption: Flow :maxdepth: 1 diff --git a/docs/how-to-guides/tracing/index.md b/docs/how-to-guides/tracing/index.md new file mode 100644 index 00000000000..684af9b119b --- /dev/null +++ b/docs/how-to-guides/tracing/index.md @@ -0,0 +1,120 @@ +# Tracing + +:::{admonition} Experimental feature +This is an experimental feature, and may change at any time. Learn [more](../faq.md#stable-vs-experimental). +::: + +Prompt flow provides the trace feature to capture and visualize the internal execution details for all flows. + +For `DAG flow`, user can track and visualize node level inputs/outputs of flow execution, it provides critical insights for developer to understand the internal details of execution. + +For `Flex flow` developers, who might use different frameworks (langchain, semantic kernel, OpenAI, kinds of agents) to create LLM based applications, prompt flow allow user to instrument their code in a [OpenTelemetry](https://opentelemetry.io/) compatible way, and visualize using UI provided by promptflow devkit. + +## Instrumenting user's code + +### Enable trace for LLM calls +Let's start with the simplest example, add single line code **`start_trace()`** to enable trace for LLM calls in your application. +```python +from openai import OpenAI +from promptflow.tracing import start_trace + +# start_trace() will print a url for trace detail visualization +start_trace() + +client = OpenAI() + +completion = client.chat.completions.create( + model="gpt-4", + messages=[ + {"role": "system", "content": "You are a poetic assistant, skilled in explaining complex programming concepts with creative flair."}, + {"role": "user", "content": "Compose a poem that explains the concept of recursion in programming."} + ] +) + +print(completion.choices[0].message) +``` + +Running above python script will produce below example output: +``` +Prompt flow service has started... +You can view the traces from local: http://localhost:/v1.0/ui/traces/?#collection=basic +``` + +Click the trace url, user will see a trace list that corresponding to each LLM calls: +![LLM-trace-list](../../media/trace/LLM-trace-list.png) + + +Click on one line record, the LLM detail will be displayed with chat window experience, together with other LLM call params: +![LLM-trace-detail](../../media/trace/LLM-trace-detail.png) + +Promptflow tracing works for more frameworks like `autogen` and `langchain`: + +1. Example: **[Add trace for Autogen](https://github.com/microsoft/promptflow/tree/main/examples/tutorials/tracing/autogen-groupchat/)** + +![autogen-trace-detail](../../media/trace/autogen-trace-detail.png) + +2. Example: **[Add trace for Langchain](https://github.com/microsoft/promptflow/tree/main/examples/tutorials/tracing/langchain)** + +![langchain-trace-detail](../../media/trace/langchain-trace-detail.png) + +### Trace on any function +A more common scenario is the application has complicated code structure, and developer would like to add trace on critical path that they would like to debug and monitor. + +See the **[math_to_code](https://github.com/microsoft/promptflow/tree/main/examples/tutorials/tracing/math_to_code.py)** example on how to use **`@trace`**. + +Execute below command will get an URL to display the trace records and trace details of each test. + +```python +from promptflow.tracing import trace +# trace your function +@trace +def code_gen(client: AzureOpenAI, question: str) -> str: + sys_prompt = ( + "I want you to act as a Math expert specializing in Algebra, Geometry, and Calculus. " + "Given the question, develop python code to model the user's question. " + "Make sure only reply the executable code, no other words." + ) + completion = client.chat.completions.create( + model=os.getenv("CHAT_DEPLOYMENT_NAME", "gpt-35-turbo"), + messages=[ + { + "role": "system", + "content": sys_prompt, + }, + {"role": "user", "content": question}, + ], + ) + raw_code = completion.choices[0].message.content + result = code_refine(raw_code) + return result +``` + +```shell +python math_to_code.py +``` + +## Trace visualization in flow test and batch run + +### Flow test +If your application is created with DAG flow, all flow test and batch run will be automatically enable trace function. Take the **[chat_with_pdf](https://github.com/microsoft/promptflow/tree/main/examples/flows/chat/chat-with-pdf/)** as example. + +Run `pf flow test --flow .`, each flow test will generate single line in the trace UI: +![flow-trace-record](../../media/trace/flow-trace-records.png) + +Click a record, the trace details will be visualized as tree view. + +![flow-trace-detail](../../media/trace/flow-trace-detail.png) + +### Evaluate against batch data +Keep using **[chat_with_pdf](https://github.com/microsoft/promptflow/tree/main/examples/flows/chat/chat-with-pdf)** as example, to trigger a batch run, you can use below commands: + +```shell +pf run create -f batch_run.yaml +``` +Or +```shell +pf run create --flow . --data "./data/bert-paper-qna.jsonl" --column-mapping chat_history='${data.chat_history}' pdf_url='${data.pdf_url}' question='${data.question}' +``` +Then you will get a run related trace URL, e.g. http://localhost:/v1.0/ui/traces?run=chat_with_pdf_20240226_181222_219335 + +![batch_run_record](../../media/trace/batch_run_record.png) \ No newline at end of file diff --git a/examples/tutorials/quick-start/media/vsc.png b/docs/media/readme/vsc.png similarity index 100% rename from examples/tutorials/quick-start/media/vsc.png rename to docs/media/readme/vsc.png diff --git a/docs/media/trace/LLM-trace-detail.png b/docs/media/trace/LLM-trace-detail.png new file mode 100644 index 00000000000..758bc7331f6 Binary files /dev/null and b/docs/media/trace/LLM-trace-detail.png differ diff --git a/docs/media/trace/LLM-trace-list.png b/docs/media/trace/LLM-trace-list.png new file mode 100644 index 00000000000..4049106d849 Binary files /dev/null and b/docs/media/trace/LLM-trace-list.png differ diff --git a/docs/media/trace/at-trace-detail.png b/docs/media/trace/at-trace-detail.png new file mode 100644 index 00000000000..d2155ac181e Binary files /dev/null and b/docs/media/trace/at-trace-detail.png differ diff --git a/docs/media/trace/autogen-trace-detail.png b/docs/media/trace/autogen-trace-detail.png new file mode 100644 index 00000000000..49a7783a25a Binary files /dev/null and b/docs/media/trace/autogen-trace-detail.png differ diff --git a/docs/media/trace/batch_run_record.png b/docs/media/trace/batch_run_record.png new file mode 100644 index 00000000000..df18d4e6a58 Binary files /dev/null and b/docs/media/trace/batch_run_record.png differ diff --git a/docs/media/trace/flow-trace-detail.png b/docs/media/trace/flow-trace-detail.png new file mode 100644 index 00000000000..3319e37619b Binary files /dev/null and b/docs/media/trace/flow-trace-detail.png differ diff --git a/docs/media/trace/flow-trace-records.png b/docs/media/trace/flow-trace-records.png new file mode 100644 index 00000000000..7b2e4480972 Binary files /dev/null and b/docs/media/trace/flow-trace-records.png differ diff --git a/docs/media/trace/langchain-trace-detail.png b/docs/media/trace/langchain-trace-detail.png new file mode 100644 index 00000000000..01590353ade Binary files /dev/null and b/docs/media/trace/langchain-trace-detail.png differ diff --git a/examples/README.md b/examples/README.md index 9ce7e31ca3b..f4846fcc2f7 100644 --- a/examples/README.md +++ b/examples/README.md @@ -33,6 +33,27 @@ | [docker](tutorials/flow-deploy/docker/README.md) | [![samples_tutorials_flow_deploy_docker](https://github.com/microsoft/promptflow/actions/workflows/samples_tutorials_flow_deploy_docker.yml/badge.svg?branch=main)](https://github.com/microsoft/promptflow/actions/workflows/samples_tutorials_flow_deploy_docker.yml) | This example demos how to deploy flow as a docker app | | [kubernetes](tutorials/flow-deploy/kubernetes/README.md) | [![samples_tutorials_flow_deploy_kubernetes](https://github.com/microsoft/promptflow/actions/workflows/samples_tutorials_flow_deploy_kubernetes.yml/badge.svg?branch=main)](https://github.com/microsoft/promptflow/actions/workflows/samples_tutorials_flow_deploy_kubernetes.yml) | This example demos how to deploy flow as a Kubernetes app | | [promptflow-quality-improvement](tutorials/flow-fine-tuning-evaluation/promptflow-quality-improvement.md) | [![samples_tutorials_flow_fine_tuning_evaluation_promptflow_quality_improvement](https://github.com/microsoft/promptflow/actions/workflows/samples_tutorials_flow_fine_tuning_evaluation_promptflow_quality_improvement.yml/badge.svg?branch=main)](https://github.com/microsoft/promptflow/actions/workflows/samples_tutorials_flow_fine_tuning_evaluation_promptflow_quality_improvement.yml) | This tutorial is designed to enhance your understanding of improving flow quality through prompt tuning and evaluation | +| [tracing](tutorials/tracing/README.md) | [![samples_tutorials_tracing](https://github.com/microsoft/promptflow/actions/workflows/samples_tutorials_tracing.yml/badge.svg?branch=main)](https://github.com/microsoft/promptflow/actions/workflows/samples_tutorials_tracing.yml) | Prompt flow provides the tracing feature to capture and visualize the internal execution details for all flows | + + +### Prompty ([prompty](prompty)) + +| path | status | description | +------|--------|------------- +| [basic](prompty/basic/README.md) | [![samples_prompty_basic](https://github.com/microsoft/promptflow/actions/workflows/samples_prompty_basic.yml/badge.svg?branch=main)](https://github.com/microsoft/promptflow/actions/workflows/samples_prompty_basic.yml) | A basic prompt that uses the chat API to answer questions, with connection configured using environment variables | +| [chat-basic](prompty/chat-basic/README.md) | [![samples_prompty_chat_basic](https://github.com/microsoft/promptflow/actions/workflows/samples_prompty_chat_basic.yml/badge.svg?branch=main)](https://github.com/microsoft/promptflow/actions/workflows/samples_prompty_chat_basic.yml) | A prompt that uses the chat API to answer questions with chat history, leveraging promptflow connection | +| [eval-apology](prompty/eval-apology/README.md) | [![samples_prompty_eval_apology](https://github.com/microsoft/promptflow/actions/workflows/samples_prompty_eval_apology.yml/badge.svg?branch=main)](https://github.com/microsoft/promptflow/actions/workflows/samples_prompty_eval_apology.yml) | A prompt that determines whether a chat conversation contains an apology from the assistant | +| [eval-basic](prompty/eval-basic/README.md) | [![samples_prompty_eval_basic](https://github.com/microsoft/promptflow/actions/workflows/samples_prompty_eval_basic.yml/badge.svg?branch=main)](https://github.com/microsoft/promptflow/actions/workflows/samples_prompty_eval_basic.yml) | Basic evaluator prompt for QA scenario | + + +### Flex Flows ([flex-flows](flex-flows)) + +| path | status | description | +------|--------|------------- +| [basic](flex-flows/basic/README.md) | [![samples_flex_flows_basic](https://github.com/microsoft/promptflow/actions/workflows/samples_flex_flows_basic.yml/badge.svg?branch=main)](https://github.com/microsoft/promptflow/actions/workflows/samples_flex_flows_basic.yml) | A basic standard flow define using function entry that calls Azure OpenAI with connection info stored in environment variables | +| [chat-basic](flex-flows/chat-basic/README.md) | [![samples_flex_flows_chat_basic](https://github.com/microsoft/promptflow/actions/workflows/samples_flex_flows_chat_basic.yml/badge.svg?branch=main)](https://github.com/microsoft/promptflow/actions/workflows/samples_flex_flows_chat_basic.yml) | A basic chat flow defined using class entry | +| [eval-checklist](flex-flows/eval-checklist/README.md) | [![samples_flex_flows_eval_checklist](https://github.com/microsoft/promptflow/actions/workflows/samples_flex_flows_eval_checklist.yml/badge.svg?branch=main)](https://github.com/microsoft/promptflow/actions/workflows/samples_flex_flows_eval_checklist.yml) | A example flow defined using class entry which demos how to evaluate the answer pass user specified check list | +| [eval-code-quality](flex-flows/eval-code-quality/README.md) | [![samples_flex_flows_eval_code_quality](https://github.com/microsoft/promptflow/actions/workflows/samples_flex_flows_eval_code_quality.yml/badge.svg?branch=main)](https://github.com/microsoft/promptflow/actions/workflows/samples_flex_flows_eval_code_quality.yml) | A example flow defined using function entry which shows how to evaluate the quality of code snippet | ### Flows ([flows](flows)) @@ -113,7 +134,14 @@ | [pipeline.ipynb](tutorials/run-flow-with-pipeline/pipeline.ipynb) | [![samples_runflowwithpipeline_pipeline](https://github.com/microsoft/promptflow/actions/workflows/samples_runflowwithpipeline_pipeline.yml/badge.svg?branch=main)](https://github.com/microsoft/promptflow/actions/workflows/samples_runflowwithpipeline_pipeline.yml) | Create pipeline using components to run a distributed job with tensorflow | | [cloud-run-management.ipynb](tutorials/run-management/cloud-run-management.ipynb) | [![samples_runmanagement_cloudrunmanagement](https://github.com/microsoft/promptflow/actions/workflows/samples_runmanagement_cloudrunmanagement.yml/badge.svg?branch=main)](https://github.com/microsoft/promptflow/actions/workflows/samples_runmanagement_cloudrunmanagement.yml) | Flow run management in Azure AI | | [run-management.ipynb](tutorials/run-management/run-management.ipynb) | [![samples_runmanagement_runmanagement](https://github.com/microsoft/promptflow/actions/workflows/samples_runmanagement_runmanagement.yml/badge.svg?branch=main)](https://github.com/microsoft/promptflow/actions/workflows/samples_runmanagement_runmanagement.yml) | Flow run management | +| [trace-autogen-groupchat.ipynb](tutorials/tracing/autogen-groupchat/trace-autogen-groupchat.ipynb) | [![samples_tracing_autogengroupchat_traceautogengroupchat](https://github.com/microsoft/promptflow/actions/workflows/samples_tracing_autogengroupchat_traceautogengroupchat.yml/badge.svg?branch=main)](https://github.com/microsoft/promptflow/actions/workflows/samples_tracing_autogengroupchat_traceautogengroupchat.yml) | Tracing LLM calls in autogen group chat application | +| [otlp-trace-collector.ipynb](tutorials/tracing/custom-otlp-collector/otlp-trace-collector.ipynb) | [![samples_tracing_customotlpcollector_otlptracecollector](https://github.com/microsoft/promptflow/actions/workflows/samples_tracing_customotlpcollector_otlptracecollector.yml/badge.svg?branch=main)](https://github.com/microsoft/promptflow/actions/workflows/samples_tracing_customotlpcollector_otlptracecollector.yml) | A tutorial on how to levarage custom OTLP collector. | +| [trace-langchain.ipynb](tutorials/tracing/langchain/trace-langchain.ipynb) | [![samples_tracing_langchain_tracelangchain](https://github.com/microsoft/promptflow/actions/workflows/samples_tracing_langchain_tracelangchain.yml/badge.svg?branch=main)](https://github.com/microsoft/promptflow/actions/workflows/samples_tracing_langchain_tracelangchain.yml) | Tracing LLM calls in langchain application | | [connection.ipynb](connections/connection.ipynb) | [![samples_connections_connection](https://github.com/microsoft/promptflow/actions/workflows/samples_connections_connection.yml/badge.svg?branch=main)](https://github.com/microsoft/promptflow/actions/workflows/samples_connections_connection.yml) | Manage various types of connections using sdk | +| [flex-flow-quickstart-azure.ipynb](flex-flows/basic/flex-flow-quickstart-azure.ipynb) | [![samples_flexflows_basic_flexflowquickstartazure](https://github.com/microsoft/promptflow/actions/workflows/samples_flexflows_basic_flexflowquickstartazure.yml/badge.svg?branch=main)](https://github.com/microsoft/promptflow/actions/workflows/samples_flexflows_basic_flexflowquickstartazure.yml) | A quickstart tutorial to run a flex flow and evaluate it in azure. | +| [flex-flow-quickstart.ipynb](flex-flows/basic/flex-flow-quickstart.ipynb) | [![samples_flexflows_basic_flexflowquickstart](https://github.com/microsoft/promptflow/actions/workflows/samples_flexflows_basic_flexflowquickstart.yml/badge.svg?branch=main)](https://github.com/microsoft/promptflow/actions/workflows/samples_flexflows_basic_flexflowquickstart.yml) | A quickstart tutorial to run a flex flow and evaluate it. | +| [prompty-quickstart.ipynb](prompty/basic/prompty-quickstart.ipynb) | [![samples_prompty_basic_promptyquickstart](https://github.com/microsoft/promptflow/actions/workflows/samples_prompty_basic_promptyquickstart.yml/badge.svg?branch=main)](https://github.com/microsoft/promptflow/actions/workflows/samples_prompty_basic_promptyquickstart.yml) | A quickstart tutorial to run a prompty and evaluate it. | +| [chat-with-prompty.ipynb](prompty/chat-basic/chat-with-prompty.ipynb) | [![samples_prompty_chatbasic_chatwithprompty](https://github.com/microsoft/promptflow/actions/workflows/samples_prompty_chatbasic_chatwithprompty.yml/badge.svg?branch=main)](https://github.com/microsoft/promptflow/actions/workflows/samples_prompty_chatbasic_chatwithprompty.yml) | A quickstart tutorial to run a chat prompty and evaluate it. | | [chat-with-pdf-azure.ipynb](flows/chat/chat-with-pdf/chat-with-pdf-azure.ipynb) | [![samples_flows_chat_chatwithpdf_chatwithpdfazure](https://github.com/microsoft/promptflow/actions/workflows/samples_flows_chat_chatwithpdf_chatwithpdfazure.yml/badge.svg?branch=main)](https://github.com/microsoft/promptflow/actions/workflows/samples_flows_chat_chatwithpdf_chatwithpdfazure.yml) | A tutorial of chat-with-pdf flow that executes in Azure AI | | [chat-with-pdf.ipynb](flows/chat/chat-with-pdf/chat-with-pdf.ipynb) | [![samples_flows_chat_chatwithpdf_chatwithpdf](https://github.com/microsoft/promptflow/actions/workflows/samples_flows_chat_chatwithpdf_chatwithpdf.yml/badge.svg?branch=main)](https://github.com/microsoft/promptflow/actions/workflows/samples_flows_chat_chatwithpdf_chatwithpdf.yml) | A tutorial of chat-with-pdf flow that allows user ask questions about the content of a PDF file and get answers | diff --git a/examples/flex-flows/.env.example b/examples/flex-flows/.env.example new file mode 100644 index 00000000000..4083fa3c5ad --- /dev/null +++ b/examples/flex-flows/.env.example @@ -0,0 +1,2 @@ +AZURE_OPENAI_API_KEY= +AZURE_OPENAI_ENDPOINT= diff --git a/examples/flex-flows/README.md b/examples/flex-flows/README.md new file mode 100644 index 00000000000..797211015ad --- /dev/null +++ b/examples/flex-flows/README.md @@ -0,0 +1,18 @@ +# Flex Flow + +You can learn more on flex flow with examples in this folder. + +## SDK examples + +| path | status | description | +------|--------|------------- +| [flex-flow-quickstart.ipynb](./basic/flex-flow-quickstart.ipynb) | [![samples_flexflows_basic_flexflowquickstart](https://github.com/microsoft/promptflow/actions/workflows/samples_flexflows_basic_flexflowquickstart.yml/badge.svg?branch=main)](https://github.com/microsoft/promptflow/actions/workflows/samples_flexflows_basic_flexflowquickstart.yml) | A quickstart tutorial to run a flex flow and evaluate it. | +| [flex-flow-quickstart-azure.ipynb](./basic/flex-flow-quickstart-azure.ipynb) | [![samples_flexflows_basic_flexflowquickstartazure](https://github.com/microsoft/promptflow/actions/workflows/samples_flexflows_basic_flexflowquickstartazure.yml/badge.svg?branch=main)](https://github.com/microsoft/promptflow/actions/workflows/samples_flexflows_basic_flexflowquickstartazure.yml) | A quickstart tutorial to run a flex flow and evaluate it in azure. | + +## CLI examples +| path | status | description | +------|--------|------------- +| [basic](./basic/README.md) | [![samples_flex_flows_basic](https://github.com/microsoft/promptflow/actions/workflows/samples_flex_flows_basic.yml/badge.svg?branch=main)](https://github.com/microsoft/promptflow/actions/workflows/samples_flex_flows_basic.yml) | A basic standard flow define using function entry that calls Azure OpenAI with connection info stored in environment variables | +| [chat-basic](./chat-basic/README.md) | [![samples_flex_flows_chat_basic](https://github.com/microsoft/promptflow/actions/workflows/samples_flex_flows_chat_basic.yml/badge.svg?branch=main)](https://github.com/microsoft/promptflow/actions/workflows/samples_flex_flows_chat_basic.yml) | A basic chat flow defined using class entry | +| [eval-checklist](./eval-checklist/README.md) | [![samples_flex_flows_eval_checklist](https://github.com/microsoft/promptflow/actions/workflows/samples_flex_flows_eval_checklist.yml/badge.svg?branch=main)](https://github.com/microsoft/promptflow/actions/workflows/samples_flex_flows_eval_checklist.yml) | A example flow defined using class entry which demos how to evaluate the answer pass user specified check list | +| [eval-code-quality](./eval-code-quality/README.md) | [![samples_flex_flows_eval_code_quality](https://github.com/microsoft/promptflow/actions/workflows/samples_flex_flows_eval_code_quality.yml/badge.svg?branch=main)](https://github.com/microsoft/promptflow/actions/workflows/samples_flex_flows_eval_code_quality.yml) | A example flow defined using function entry which shows how to evaluate the quality of code snippet | diff --git a/examples/flex-flows/basic/README.md b/examples/flex-flows/basic/README.md new file mode 100644 index 00000000000..7d8bca0847c --- /dev/null +++ b/examples/flex-flows/basic/README.md @@ -0,0 +1,110 @@ +# Basic standard flow +A basic standard flow define using function entry that calls Azure OpenAI with connection info stored in environment variables. + +## Prerequisites + +Install promptflow sdk and other dependencies: +```bash +pip install -r requirements.txt +``` + +## Run flow + +- Prepare your Azure Open AI resource follow this [instruction](https://learn.microsoft.com/en-us/azure/cognitive-services/openai/how-to/create-resource?pivots=web-portal) and get your `api_key` if you don't have one. + +- Setup environment variables + +Ensure you have put your azure open ai endpoint key in [.env](../.env) file. You can create one refer to this [example file](../.env.example). + +```bash +cat ../.env +``` + +- Run/Debug as normal Python file +```bash +python programmer.py +``` + +- Test flow with connection + +Storing connection info in .env with plaintext is not safe. We recommend to use `pf connection` to guard secrets like `api_key` from leak. + +- Show or create `open_ai_connection` +```bash +# create connection from `azure_openai.yml` file +# Override keys with --set to avoid yaml file changes +pf connection create --file ../../connections/azure_openai.yml --set api_key= api_base= + +# check if connection exists +pf connection show -n open_ai_connection +``` + +```bash +# test with default input value in flow.flex.yaml +pf flow test --flow . + +# test with flow inputs +pf flow test --flow . --inputs text="Java Hello World!" + +``` + +- Create run with multiple lines data +```bash +# using environment from .env file (loaded in user code: hello.py) +pf run create --flow . --data ./data.jsonl --column-mapping text='${data.text}' --stream +``` + +You can also skip providing `column-mapping` if provided data has same column name as the flow. +Reference [here](https://aka.ms/pf/column-mapping) for default behavior when `column-mapping` not provided in CLI. + +- List and show run meta +```bash +# list created run +pf run list + +# get a sample run name + +name=$(pf run list -r 10 | jq '.[] | select(.name | contains("basic_")) | .name'| head -n 1 | tr -d '"') +# show specific run detail +pf run show --name $name + +# show output +pf run show-details --name $name + +# visualize run in browser +pf run visualize --name $name +``` + +## Run flow in cloud with connection +- Assume we already have a connection named `open_ai_connection` in workspace. +```bash +# set default workspace +az account set -s +az configure --defaults group= workspace= +``` + +- Create run +```bash +# run with environment variable reference connection in azureml workspace +pfazure run create --flow . --data ./data.jsonl --column-mapping text='${data.text}' --stream +# run using yaml file +pfazure run create --file run.yml --stream +``` + +- List and show run meta +```bash +# list created run +pfazure run list -r 3 + +# get a sample run name +name=$(pfazure run list -r 100 | jq '.[] | select(.name | contains("basic_")) | .name'| head -n 1 | tr -d '"') + +# show specific run detail +pfazure run show --name $name + +# show output +pfazure run show-details --name $name + +# visualize run in browser +pfazure run visualize --name $name +``` diff --git a/examples/flex-flows/basic/data.jsonl b/examples/flex-flows/basic/data.jsonl new file mode 100644 index 00000000000..d71f1ca42a2 --- /dev/null +++ b/examples/flex-flows/basic/data.jsonl @@ -0,0 +1,3 @@ +{"text": "Python Hello World!"} +{"text": "C Hello World!"} +{"text": "C# Hello World!"} diff --git a/examples/flex-flows/basic/flex-flow-quickstart-azure.ipynb b/examples/flex-flows/basic/flex-flow-quickstart-azure.ipynb new file mode 100644 index 00000000000..644cdec9f7a --- /dev/null +++ b/examples/flex-flows/basic/flex-flow-quickstart-azure.ipynb @@ -0,0 +1,263 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Getting started with flex flow in Azure\n", + "\n", + "**Learning Objectives** - Upon completing this tutorial, you should be able to:\n", + "\n", + "- Write LLM application using notebook and visualize the trace of your application.\n", + "- Convert the application into a flow and batch run against multi lines of data.\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## 0. Install dependent packages" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "%%capture --no-stderr\n", + "%pip install -r ./requirements-azure.txt" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## 1. Connection to workspace" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Configure credential\n", + "\n", + "We are using `DefaultAzureCredential` to get access to workspace. \n", + "`DefaultAzureCredential` should be capable of handling most Azure SDK authentication scenarios. \n", + "\n", + "Reference for more available credentials if it does not work for you: [configure credential example](../../configuration.ipynb), [azure-identity reference doc](https://docs.microsoft.com/en-us/python/api/azure-identity/azure.identity?view=azure-python)." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "from azure.identity import DefaultAzureCredential, InteractiveBrowserCredential\n", + "\n", + "try:\n", + " credential = DefaultAzureCredential()\n", + " # Check if given credential can get token successfully.\n", + " credential.get_token(\"https://management.azure.com/.default\")\n", + "except Exception as ex:\n", + " # Fall back to InteractiveBrowserCredential in case DefaultAzureCredential not work\n", + " credential = InteractiveBrowserCredential()" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Get a handle to the workspace\n", + "\n", + "We use config file to connect to a workspace. The Azure ML workspace should be configured with computer cluster. [Check this notebook for configure a workspace](../../configuration.ipynb)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "from promptflow.azure import PFClient\n", + "\n", + "# Get a handle to workspace\n", + "pf = PFClient.from_config(credential=credential)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Create necessary connections\n", + "Connection helps securely store and manage secret keys or other sensitive credentials required for interacting with LLM and other external tools for example Azure Content Safety.\n", + "\n", + "In this notebook, we will use flow `basic` flex flow which uses connection `open_ai_connection` inside, we need to set up the connection if we haven't added it before.\n", + "\n", + "Prepare your Azure OpenAI resource follow this [instruction](https://learn.microsoft.com/en-us/azure/cognitive-services/openai/how-to/create-resource?pivots=web-portal) and get your `api_key` if you don't have one.\n", + "\n", + "Please go to [workspace portal](https://ml.azure.com/), click `Prompt flow` -> `Connections` -> `Create`, then follow the instruction to create your own connections. \n", + "Learn more on [connections](https://learn.microsoft.com/en-us/azure/machine-learning/prompt-flow/concept-connections?view=azureml-api-2)." + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## 2. Batch run the function as flow with multi-line data\n", + "\n", + "Create a [flow.flex.yaml](flow.flex.yaml) file to define a flow which entry pointing to the python function we defined.\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "# show the flow.flex.yaml content\n", + "with open(\"flow.flex.yaml\") as fin:\n", + " print(fin.read())" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Batch run with a data file (with multiple lines of test data)\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "flow = \".\" # path to the flow directory\n", + "data = \"./data.jsonl\" # path to the data file\n", + "\n", + "# create run with the flow and data\n", + "base_run = pf.run(\n", + " flow=flow,\n", + " data=data,\n", + " column_mapping={\n", + " \"text\": \"${data.text}\",\n", + " },\n", + " stream=True,\n", + ")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "details = pf.get_details(base_run)\n", + "details.head(10)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## 3. Evaluate your flow\n", + "Then you can use an evaluation method to evaluate your flow. The evaluation methods are also flows which usually using LLM assert the produced output matches certain expectation. " + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Run evaluation on the previous batch run\n", + "The **base_run** is the batch run we completed in step 2 above, for web-classification flow with \"data.jsonl\" as input." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "eval_flow = \"../eval-code-quality/flow.flex.yaml\"\n", + "\n", + "eval_run = pf.run(\n", + " flow=eval_flow,\n", + " data=\"./data.jsonl\", # path to the data file\n", + " run=base_run, # specify base_run as the run you want to evaluate\n", + " column_mapping={\n", + " \"code\": \"${run.outputs.output}\",\n", + " },\n", + " stream=True,\n", + ")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "details = pf.get_details(eval_run)\n", + "details.head(10)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "import json\n", + "\n", + "metrics = pf.get_metrics(eval_run)\n", + "print(json.dumps(metrics, indent=4))" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "pf.visualize([base_run, eval_run])" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Next Steps\n", + "\n", + "By now you've successfully run your first prompt flow and even did evaluation on it. That's great!\n", + "\n", + "You can check out more examples:\n", + "- [Basic Chat](../chat-basic/README.md): demonstrates how to create a chatbot that can remember previous interactions and use the conversation history to generate next message." + ] + } + ], + "metadata": { + "description": "A quickstart tutorial to run a flex flow and evaluate it in azure.", + "kernelspec": { + "display_name": "prompt_flow", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.11.5" + }, + "resources": "examples/requirements-azure.txt, examples/flex-flows/basic, examples/flex-flows/eval-code-quality" + }, + "nbformat": 4, + "nbformat_minor": 2 +} diff --git a/examples/flex-flows/basic/flex-flow-quickstart.ipynb b/examples/flex-flows/basic/flex-flow-quickstart.ipynb new file mode 100644 index 00000000000..232622c48cc --- /dev/null +++ b/examples/flex-flows/basic/flex-flow-quickstart.ipynb @@ -0,0 +1,334 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Getting started with flex flow\n", + "\n", + "**Learning Objectives** - Upon completing this tutorial, you should be able to:\n", + "\n", + "- Write LLM application using notebook and visualize the trace of your application.\n", + "- Convert the application into a flow and batch run against multi lines of data.\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## 0. Install dependent packages" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "%%capture --no-stderr\n", + "%pip install -r ./requirements.txt" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## 1. Trace your application with promptflow\n", + "\n", + "Assume we already have a python function that calls OpenAI API. " + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "with open(\"llm.py\") as fin:\n", + " print(fin.read())" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Note: before running below cell, please configure required environment variable `AZURE_OPENAI_API_KEY`, `AZURE_OPENAI_ENDPOINT` by create an `.env` file. Please refer to [.env.example](.env.example) as an template." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "# control the AOAI deployment (model) used in this example\n", + "deployment_name = \"gpt-35-turbo\"" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "from llm import my_llm_tool\n", + "\n", + "# pls configure `AZURE_OPENAI_API_KEY`, `AZURE_OPENAI_ENDPOINT` environment variables first\n", + "result = my_llm_tool(\n", + " prompt=\"Write a simple Hello, world! program that displays the greeting message when executed. Output code only.\",\n", + " deployment_name=deployment_name,\n", + ")\n", + "result" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Visualize trace by using start_trace\n", + "\n", + "Note we add `@trace` in the `my_llm_tool` function, re-run below cell will collect a trace in trace UI." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "from promptflow.tracing import start_trace\n", + "\n", + "# start a trace session, and print a url for user to check trace\n", + "start_trace()\n", + "# rerun the function, which will be recorded in the trace\n", + "result = my_llm_tool(\n", + " prompt=\"Write a simple Hello, world! program that displays the greeting message when executed. Output code only.\",\n", + " deployment_name=deployment_name,\n", + ")\n", + "result" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Now, let's add another layer of function call. In [programmer.py](programmer.py) there is a function called `write_simple_program`, which calls a new function called `load_prompt` and previous `my_llm_tool` function." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "# show the programmer.py content\n", + "with open(\"programmer.py\") as fin:\n", + " print(fin.read())" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "# call the flow entry function\n", + "from programmer import write_simple_program\n", + "\n", + "result = write_simple_program(\"Java Hello, world!\")\n", + "result" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Eval the result " + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "%load_ext autoreload\n", + "%autoreload 2\n", + "\n", + "import paths # add the code_quality module to the path\n", + "from code_quality import eval_code\n", + "\n", + "eval_result = eval_code(result)\n", + "eval_result" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## 2. Batch run the function as flow with multi-line data\n", + "\n", + "Create a [flow.flex.yaml](flow.flex.yaml) file to define a flow which entry pointing to the python function we defined.\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "# show the flow.flex.yaml content\n", + "with open(\"flow.flex.yaml\") as fin:\n", + " print(fin.read())" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Batch run with a data file (with multiple lines of test data)\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "from promptflow.client import PFClient\n", + "\n", + "pf = PFClient()" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "data = \"./data.jsonl\" # path to the data file\n", + "# create run with the flow function and data\n", + "base_run = pf.run(\n", + " flow=write_simple_program,\n", + " data=data,\n", + " column_mapping={\n", + " \"text\": \"${data.text}\",\n", + " },\n", + " stream=True,\n", + ")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "details = pf.get_details(base_run)\n", + "details.head(10)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## 3. Evaluate your flow\n", + "Then you can use an evaluation method to evaluate your flow. The evaluation methods are also flows which usually using LLM assert the produced output matches certain expectation. " + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Run evaluation on the previous batch run\n", + "The **base_run** is the batch run we completed in step 2 above, for web-classification flow with \"data.jsonl\" as input." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "# we can also run flow pointing to yaml file\n", + "eval_flow = \"../eval-code-quality/flow.flex.yaml\"\n", + "\n", + "eval_run = pf.run(\n", + " flow=eval_flow,\n", + " data=\"./data.jsonl\", # path to the data file\n", + " run=base_run, # specify base_run as the run you want to evaluate\n", + " column_mapping={\n", + " \"code\": \"${run.outputs.output}\",\n", + " },\n", + " stream=True,\n", + ")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "details = pf.get_details(eval_run)\n", + "details.head(10)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "import json\n", + "\n", + "metrics = pf.get_metrics(eval_run)\n", + "print(json.dumps(metrics, indent=4))" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "pf.visualize([base_run, eval_run])" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Next Steps\n", + "\n", + "By now you've successfully run your first prompt flow and even did evaluation on it. That's great!\n", + "\n", + "You can check out more examples:\n", + "- [Basic Chat](../chat-basic/README.md): demonstrates how to create a chatbot that can remember previous interactions and use the conversation history to generate next message." + ] + } + ], + "metadata": { + "description": "A quickstart tutorial to run a flex flow and evaluate it.", + "kernelspec": { + "display_name": "prompt_flow", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.9.18" + }, + "resources": "examples/requirements.txt, examples/flex-flows/basic" + }, + "nbformat": 4, + "nbformat_minor": 2 +} diff --git a/examples/flex-flows/basic/flow.flex.yaml b/examples/flex-flows/basic/flow.flex.yaml new file mode 100644 index 00000000000..fa95b3a516f --- /dev/null +++ b/examples/flex-flows/basic/flow.flex.yaml @@ -0,0 +1,10 @@ +$schema: https://azuremlschemas.azureedge.net/promptflow/latest/Flow.schema.json +entry: programmer:write_simple_program +environment: + # image: mcr.microsoft.com/azureml/promptflow/promptflow-python + python_requirements_txt: requirements.txt +environment_variables: + # environment variables from connection + AZURE_OPENAI_API_KEY: ${open_ai_connection.api_key} + AZURE_OPENAI_ENDPOINT: ${open_ai_connection.api_base} + AZURE_OPENAI_API_TYPE: azure diff --git a/examples/flex-flows/basic/hello.jinja2 b/examples/flex-flows/basic/hello.jinja2 new file mode 100644 index 00000000000..738367f7cf7 --- /dev/null +++ b/examples/flex-flows/basic/hello.jinja2 @@ -0,0 +1,3 @@ +system: +Write a simple {{text}} program. +Output code only. \ No newline at end of file diff --git a/examples/flex-flows/basic/llm.py b/examples/flex-flows/basic/llm.py new file mode 100644 index 00000000000..af1ac68667c --- /dev/null +++ b/examples/flex-flows/basic/llm.py @@ -0,0 +1,80 @@ +import os + +from dotenv import load_dotenv +from openai.version import VERSION as OPENAI_VERSION + +from promptflow.tracing import trace + + +def get_client(): + if OPENAI_VERSION.startswith("0."): + raise Exception( + "Please upgrade your OpenAI package to version >= 1.0.0 or using the command: pip install --upgrade openai." + ) + api_key = os.environ.get("OPENAI_API_KEY", None) + if api_key: + from openai import OpenAI + + return OpenAI() + else: + from openai import AzureOpenAI + + return AzureOpenAI( + api_version=os.environ.get("OPENAI_API_VERSION", "2023-07-01-preview") + ) + + +@trace +def my_llm_tool( + prompt: str, + # for AOAI, deployment name is customized by user, not model name. + deployment_name: str, + max_tokens: int = 120, + temperature: float = 1.0, + top_p: float = 1.0, + n: int = 1, + logprobs: int = None, + stop: list = None, + presence_penalty: float = 0, + frequency_penalty: float = 0, + logit_bias: dict = {}, + user: str = "", + **kwargs, +) -> str: + if "OPENAI_API_KEY" not in os.environ and "AZURE_OPENAI_API_KEY" not in os.environ: + # load environment variables from .env file + load_dotenv() + + if "OPENAI_API_KEY" not in os.environ and "AZURE_OPENAI_API_KEY" not in os.environ: + raise Exception( + "Please specify environment variables: OPENAI_API_KEY or AZURE_OPENAI_API_KEY" + ) + messages = [{"content": prompt, "role": "system"}] + response = get_client().chat.completions.create( + # prompt=prompt, + messages=messages, + model=deployment_name, + max_tokens=int(max_tokens), + temperature=float(temperature), + top_p=float(top_p), + n=int(n), + logprobs=int(logprobs) if logprobs else None, + # fix bug "[] is not valid under any of the given schemas-'stop'" + stop=stop if stop else None, + presence_penalty=float(presence_penalty), + frequency_penalty=float(frequency_penalty), + # Logit bias must be a dict if we passed it to openai api. + logit_bias=logit_bias if logit_bias else {}, + user=user, + ) + + # get first element because prompt is single. + return response.choices[0].message.content + + +if __name__ == "__main__": + result = my_llm_tool( + prompt="Write a simple Hello, world! program that displays the greeting message.", + deployment_name="text-davinci-003", + ) + print(result) diff --git a/examples/flex-flows/basic/paths.py b/examples/flex-flows/basic/paths.py new file mode 100644 index 00000000000..c2ea6db9ffb --- /dev/null +++ b/examples/flex-flows/basic/paths.py @@ -0,0 +1,6 @@ +import sys +import pathlib + +# Add the path to the evaluation code quality module +code_path = str(pathlib.Path(__file__).parent / "../eval-code-quality") +sys.path.insert(0, code_path) diff --git a/examples/flex-flows/basic/programmer.py b/examples/flex-flows/basic/programmer.py new file mode 100644 index 00000000000..db8467d773c --- /dev/null +++ b/examples/flex-flows/basic/programmer.py @@ -0,0 +1,41 @@ +from pathlib import Path +from typing import TypedDict + +from jinja2 import Template +from llm import my_llm_tool + +from promptflow.tracing import trace + +BASE_DIR = Path(__file__).absolute().parent + + +class Result(TypedDict): + output: str + + +@trace +def load_prompt(jinja2_template: str, text: str) -> str: + """Load prompt function.""" + with open(BASE_DIR / jinja2_template, "r", encoding="utf-8") as f: + prompt = Template( + f.read(), trim_blocks=True, keep_trailing_newline=True + ).render(text=text) + return prompt + + +@trace +def write_simple_program( + text: str = "Hello World!", deployment_name="gpt-35-turbo" +) -> Result: + """Ask LLM to write a simple program.""" + prompt = load_prompt("hello.jinja2", text) + output = my_llm_tool(prompt=prompt, deployment_name=deployment_name, max_tokens=120) + return Result(output=output) + + +if __name__ == "__main__": + from promptflow.tracing import start_trace + + start_trace() + result = write_simple_program("Hello, world!", "gpt-35-turbo") + print(result) diff --git a/examples/flex-flows/basic/requirements-azure.txt b/examples/flex-flows/basic/requirements-azure.txt new file mode 100644 index 00000000000..f72e46bfbb6 --- /dev/null +++ b/examples/flex-flows/basic/requirements-azure.txt @@ -0,0 +1 @@ +promptflow-azure diff --git a/examples/flex-flows/basic/requirements.txt b/examples/flex-flows/basic/requirements.txt new file mode 100644 index 00000000000..006ac2f55a8 --- /dev/null +++ b/examples/flex-flows/basic/requirements.txt @@ -0,0 +1,2 @@ +promptflow-core +python-dotenv diff --git a/examples/flex-flows/basic/run.yml b/examples/flex-flows/basic/run.yml new file mode 100644 index 00000000000..1838ebd4eb0 --- /dev/null +++ b/examples/flex-flows/basic/run.yml @@ -0,0 +1,5 @@ +$schema: https://azuremlschemas.azureedge.net/promptflow/latest/Run.schema.json +flow: . +data: data.jsonl +column_mapping: + text: ${data.text} diff --git a/examples/flex-flows/chat-basic/README.md b/examples/flex-flows/chat-basic/README.md new file mode 100644 index 00000000000..932f6de5cb2 --- /dev/null +++ b/examples/flex-flows/chat-basic/README.md @@ -0,0 +1,117 @@ +# Basic chat +A basic chat flow defined using class entry. It demonstrates how to create a chatbot that can remember previous interactions and use the conversation history to generate next message. + +## Prerequisites + +Install promptflow sdk and other dependencies in this folder: +```bash +pip install -r requirements.txt +``` + +## What you will learn + +In this flow, you will learn +- how to compose a chat flow. +- prompt template format of LLM tool chat api. Message delimiter is a separate line containing role name and colon: "system:", "user:", "assistant:". +See OpenAI Chat for more about message role. + ```jinja + system: + You are a chatbot having a conversation with a human. + + user: + {{question}} + ``` +- how to consume chat history in prompt. + ```jinja + {% for item in chat_history %} + user: + {{item.inputs.question}} + assistant: + {{item.outputs.answer}} + {% endfor %} + ``` + +## Run flow + +- Prepare your Azure Open AI resource follow this [instruction](https://learn.microsoft.com/en-us/azure/cognitive-services/openai/how-to/create-resource?pivots=web-portal) and get your `api_key` if you don't have one. + +- Setup connection + +Go to "Prompt flow" "Connections" tab. Click on "Create" button, select one of LLM tool supported connection types and fill in the configurations. + +Or use CLI to create connection: + +```bash +# Override keys with --set to avoid yaml file changes +pf connection create --file ../../connections/azure_openai.yml --set api_key= api_base= --name open_ai_connection +``` + +Note in [flow.flex.yaml](flow.flex.yaml) we are using connection named `open_ai_connection`. +```bash +# show registered connection +pf connection show --name open_ai_connection +``` + +- Run as normal Python file + +```bash +python flow.py +``` + +- Test flow +You'll need to write flow entry `flow.flex.yaml` to test with prompt flow. + +```bash +# run chat flow with default question in flow.flex.yaml +pf flow test --flow . --init connection=open_ai_connection + +# run chat flow with new question +pf flow test --flow . --init connection=open_ai_connection --inputs question="What's Azure Machine Learning?" + +pf flow test --flow . --init connection=open_ai_connection --inputs question="What is ChatGPT? Please explain with consise statement." +``` + +- Create run with multiple lines data + +```bash +pf run create --flow . --init connection=open_ai_connection --data ./data.jsonl --column-mapping question='${data.question}' --stream +``` + +You can also skip providing `column-mapping` if provided data has same column name as the flow. +Reference [here](https://aka.ms/pf/column-mapping) for default behavior when `column-mapping` not provided in CLI. + +- List and show run meta +```bash +# list created run +pf run list + +# get a sample run name + +name=$(pf run list -r 10 | jq '.[] | select(.name | contains("chat_basic_")) | .name'| head -n 1 | tr -d '"') +# show specific run detail +pf run show --name $name + +# show output +pf run show-details --name $name + +# visualize run in browser +pf run visualize --name $name +``` + +## Run flow in cloud + +- Assume we already have a connection named `open_ai_connection` in workspace. + +```bash +# set default workspace +az account set -s +az configure --defaults group= workspace= +``` + +- Create run + +```bash +# run with environment variable reference connection in azureml workspace +pfazure run create --flow . --init connection=open_ai_connection --data ./data.jsonl --column-mapping question='${data.question}' --stream +# run using yaml file +pfazure run create --file run.yml --stream diff --git a/examples/flex-flows/chat-basic/chat.jinja2 b/examples/flex-flows/chat-basic/chat.jinja2 new file mode 100644 index 00000000000..c5e811e1969 --- /dev/null +++ b/examples/flex-flows/chat-basic/chat.jinja2 @@ -0,0 +1,12 @@ +system: +You are a helpful assistant. + +{% for item in chat_history %} +user: +{{item.inputs.question}} +assistant: +{{item.outputs.answer}} +{% endfor %} + +user: +{{question}} \ No newline at end of file diff --git a/examples/flex-flows/chat-basic/data.jsonl b/examples/flex-flows/chat-basic/data.jsonl new file mode 100644 index 00000000000..34b2fb42025 --- /dev/null +++ b/examples/flex-flows/chat-basic/data.jsonl @@ -0,0 +1,2 @@ +{"question": "What is Prompt flow?", "statements": {"correctness": "should explain what's 'Prompt flow'"}} +{"question": "What is ChatGPT? Please explain with consise statement", "statements": { "correctness": "should explain what's ChatGPT", "consise": "It is a consise statement."}} \ No newline at end of file diff --git a/examples/flex-flows/chat-basic/flow.flex.yaml b/examples/flex-flows/chat-basic/flow.flex.yaml new file mode 100644 index 00000000000..ea0410185ec --- /dev/null +++ b/examples/flex-flows/chat-basic/flow.flex.yaml @@ -0,0 +1,5 @@ +$schema: https://azuremlschemas.azureedge.net/promptflow/latest/Flow.schema.json +entry: flow:ChatFlow +environment: + # image: mcr.microsoft.com/azureml/promptflow/promptflow-python + python_requirements_txt: requirements.txt diff --git a/examples/flex-flows/chat-basic/flow.py b/examples/flex-flows/chat-basic/flow.py new file mode 100644 index 00000000000..dafafe80841 --- /dev/null +++ b/examples/flex-flows/chat-basic/flow.py @@ -0,0 +1,59 @@ +from dataclasses import dataclass +from pathlib import Path + +from jinja2 import Template + +from promptflow.tracing import trace +from promptflow.connections import AzureOpenAIConnection +from promptflow.tools.aoai import chat + +BASE_DIR = Path(__file__).absolute().parent + + +@trace +def load_prompt(jinja2_template: str, question: str, chat_history: list) -> str: + """Load prompt function.""" + with open(BASE_DIR / jinja2_template, "r", encoding="utf-8") as f: + tmpl = Template(f.read(), trim_blocks=True, keep_trailing_newline=True) + prompt = tmpl.render(question=question, chat_history=chat_history) + return prompt + + +@dataclass +class Result: + answer: str + + +class ChatFlow: + def __init__(self, connection: AzureOpenAIConnection): + self.connection = connection + + def __call__( + self, question: str = "What is ChatGPT?", chat_history: list = None + ) -> Result: + """Flow entry function.""" + + chat_history = chat_history or [] + + prompt = load_prompt("chat.jinja2", question, chat_history) + + output = chat( + connection=self.connection, + prompt=prompt, + deployment_name="gpt-35-turbo", + max_tokens=256, + temperature=0.7, + ) + return Result(answer=output) + + +if __name__ == "__main__": + from promptflow.tracing import start_trace + from promptflow.client import PFClient + + start_trace() + pf = PFClient() + connection = pf.connections.get("open_ai_connection", with_secrets=True) + flow = ChatFlow(connection=connection) + result = flow("What's Azure Machine Learning?", []) + print(result) diff --git a/examples/flex-flows/chat-basic/requirements.txt b/examples/flex-flows/chat-basic/requirements.txt new file mode 100644 index 00000000000..55a002e12f8 --- /dev/null +++ b/examples/flex-flows/chat-basic/requirements.txt @@ -0,0 +1,2 @@ +promptflow-core +promptflow-tools \ No newline at end of file diff --git a/examples/flex-flows/chat-basic/run.yml b/examples/flex-flows/chat-basic/run.yml new file mode 100644 index 00000000000..4e419997bed --- /dev/null +++ b/examples/flex-flows/chat-basic/run.yml @@ -0,0 +1,7 @@ +$schema: https://azuremlschemas.azureedge.net/promptflow/latest/Run.schema.json +flow: . +data: data.jsonl +init: + connection: open_ai_connection +column_mapping: + question: ${data.question} diff --git a/examples/flex-flows/chat-basic/sample.json b/examples/flex-flows/chat-basic/sample.json new file mode 100644 index 00000000000..b1af8226725 --- /dev/null +++ b/examples/flex-flows/chat-basic/sample.json @@ -0,0 +1 @@ +{"question": "What is Prompt flow?"} \ No newline at end of file diff --git a/examples/flex-flows/eval-checklist/README.md b/examples/flex-flows/eval-checklist/README.md new file mode 100644 index 00000000000..e06ae496bd9 --- /dev/null +++ b/examples/flex-flows/eval-checklist/README.md @@ -0,0 +1,89 @@ +# Eval Check List +A example flow defined using class entry which demos how to evaluate the answer pass user specified check list. + +## Prerequisites + +Install promptflow sdk and other dependencies: +```bash +pip install -r requirements.txt +``` + +## Run flow + +- Prepare your Azure Open AI resource follow this [instruction](https://learn.microsoft.com/en-us/azure/cognitive-services/openai/how-to/create-resource?pivots=web-portal) and get your `api_key` if you don't have one. + +- Setup connection + +Go to "Prompt flow" "Connections" tab. Click on "Create" button, select one of LLM tool supported connection types and fill in the configurations. + +Or use CLI to create connection: + +```bash +# Override keys with --set to avoid yaml file changes +pf connection create --file ../../connections/azure_openai.yml --set api_key= api_base= --name open_ai_connection +``` + +Note in [flow.flex.yaml](flow.flex.yaml) we are using connection named `open_ai_connection`. + +```bash +# show registered connection +pf connection show --name open_ai_connection +``` + +- Run as normal Python file + +```bash +python check_list.py +``` + +- Test flow +You'll need to write flow entry `flow.flex.yaml` to test with prompt flow. + +```bash +pf flow test --flow . --init connection=open_ai_connection --inputs sample.json +``` + +- Create run with multiple lines data + +```bash +pf run create --flow . --init connection=open_ai_connection --data ./data.jsonl --stream +``` + +Reference [here](https://aka.ms/pf/column-mapping) for default behavior when `column-mapping` not provided in CLI. + +- List and show run meta + +```bash +# list created run +pf run list + +# get a sample run name + +name=$(pf run list -r 10 | jq '.[] | select(.name | contains("eval_checklist_")) | .name'| head -n 1 | tr -d '"') +# show specific run detail +pf run show --name $name + +# show output +pf run show-details --name $name + +# visualize run in browser +pf run visualize --name $name +``` + +## Run flow in cloud + +- Assume we already have a connection named `open_ai_connection` in workspace. + +```bash +# set default workspace +az account set -s +az configure --defaults group= workspace= +``` + +- Create run + +```bash +# run with environment variable reference connection in azureml workspace +pfazure run create --flow . --init connection=open_ai_connection --data ./data.jsonl --stream +# run using yaml file +pfazure run create --file run.yml --stream diff --git a/examples/flex-flows/eval-checklist/check_list.py b/examples/flex-flows/eval-checklist/check_list.py new file mode 100644 index 00000000000..b2cbcee702f --- /dev/null +++ b/examples/flex-flows/eval-checklist/check_list.py @@ -0,0 +1,91 @@ +import json +from pathlib import Path + +from jinja2 import Template + +from promptflow.tracing import trace +from promptflow.connections import AzureOpenAIConnection +from promptflow.tools.aoai import chat + +BASE_DIR = Path(__file__).absolute().parent + + +@trace +def load_prompt( + jinja2_template: str, answer: str, statement: str, examples: list +) -> str: + """Load prompt function.""" + with open(BASE_DIR / jinja2_template, "r", encoding="utf-8") as f: + tmpl = Template(f.read(), trim_blocks=True, keep_trailing_newline=True) + prompt = tmpl.render(answer=answer, statement=statement, examples=examples) + return prompt + + +@trace +def check(answer: str, statement: str, connection: AzureOpenAIConnection): + """Check the answer applies for the check statement.""" + examples = [ + { + "answer": "ChatGPT is a conversational AI model developed by OpenAI.", + "statement": "It contains a brief explanation of ChatGPT.", + "score": 5, + "explanation": "The statement is correct. The answer contains a brief explanation of ChatGPT.", + } + ] + + prompt = load_prompt("prompt.md", answer, statement, examples) + + output = chat( + connection=connection, + prompt=prompt, + deployment_name="gpt-35-turbo", + max_tokens=256, + temperature=0.7, + ) + output = json.loads(output) + return output + + +class EvalFlow: + def __init__(self, connection: AzureOpenAIConnection): + self.connection = connection + + def __call__(self, answer: str, statements: dict): + """Check the answer applies for a collection of check statement.""" + if isinstance(statements, str): + statements = json.loads(statements) + + results = {} + for key, statement in statements.items(): + r = check(answer=answer, statement=statement, connection=self.connection) + results[key] = r + return results + + +if __name__ == "__main__": + from promptflow.tracing import start_trace + from promptflow.client import PFClient + + start_trace() + + answer = """ChatGPT is a conversational AI model developed by OpenAI. + It is based on the GPT-3 architecture and is designed to generate human-like responses to text inputs. + ChatGPT is capable of understanding and responding to a wide range of topics and can be used for tasks such as + answering questions, generating creative content, and providing assistance with various tasks. + The model has been trained on a diverse range of internet text and is constantly being updated to improve its + performance and capabilities. ChatGPT is available through the OpenAI API and can be accessed by developers and + researchers to build applications and tools that leverage its capabilities.""" + statements = { + "correctness": "It contains a detailed explanation of ChatGPT.", + "consise": "It is a consise statement.", + } + + pf = PFClient() + connection = pf.connections.get("open_ai_connection", with_secrets=True) + flow = EvalFlow(connection=connection) + + result = flow( + answer=answer, + statements=statements, + ) + print(result) diff --git a/examples/flex-flows/eval-checklist/data.jsonl b/examples/flex-flows/eval-checklist/data.jsonl new file mode 100644 index 00000000000..9dbbec4fa07 --- /dev/null +++ b/examples/flex-flows/eval-checklist/data.jsonl @@ -0,0 +1 @@ +{"answer": "ChatGPT is a conversational AI model developed by OpenAI. It is based on the GPT-3 architecture and is designed to generate human-like responses to text inputs. ChatGPT is capable of understanding and responding to a wide range of topics and can be used for tasks such as answering questions, generating creative content, and providing assistance with various tasks. The model has been trained on a diverse range of internet text and is constantly being updated to improve its performance and capabilities. ChatGPT is available through the OpenAI API and can be accessed by developers and researchers to build applications and tools that leverage its capabilities.", "statements": { "correctness": "It contains a detailed explanation of ChatGPT." }} \ No newline at end of file diff --git a/examples/flex-flows/eval-checklist/flow.flex.yaml b/examples/flex-flows/eval-checklist/flow.flex.yaml new file mode 100644 index 00000000000..0a7e143fb74 --- /dev/null +++ b/examples/flex-flows/eval-checklist/flow.flex.yaml @@ -0,0 +1,6 @@ +$schema: https://azuremlschemas.azureedge.net/promptflow/latest/Flow.schema.json +# flow is defined as python function +entry: check_list:EvalFlow +environment: + # image: mcr.microsoft.com/azureml/promptflow/promptflow-python + python_requirements_txt: requirements.txt diff --git a/examples/flex-flows/eval-checklist/prompt.md b/examples/flex-flows/eval-checklist/prompt.md new file mode 100644 index 00000000000..af7cfd84aed --- /dev/null +++ b/examples/flex-flows/eval-checklist/prompt.md @@ -0,0 +1,21 @@ + +# system: +You are an AI assistant. +You task is to evaluate a score based on how the statement applies for the answer. + + +# user: +This score value should always be an integer between 1 and 5. So the score produced should be 1 or 2 or 3 or 4 or 5. + +Here are a few examples: +{% for ex in examples %} +answer: {{ex.answer}} +statement: {{ex.statement}} +OUTPUT: +{"score": "{{ex.score}}", "explanation":"{{ex.explanation}}"} +{% endfor %} + +For a given answer, valuate the answer based on how the statement applies for the answer: +answer: {{answer}} +statement: {{statement}} +OUTPUT: \ No newline at end of file diff --git a/examples/flex-flows/eval-checklist/requirements.txt b/examples/flex-flows/eval-checklist/requirements.txt new file mode 100644 index 00000000000..55a002e12f8 --- /dev/null +++ b/examples/flex-flows/eval-checklist/requirements.txt @@ -0,0 +1,2 @@ +promptflow-core +promptflow-tools \ No newline at end of file diff --git a/examples/flex-flows/eval-checklist/run.yml b/examples/flex-flows/eval-checklist/run.yml new file mode 100644 index 00000000000..f208b58bfc2 --- /dev/null +++ b/examples/flex-flows/eval-checklist/run.yml @@ -0,0 +1,6 @@ +$schema: https://azuremlschemas.azureedge.net/promptflow/latest/Run.schema.json +flow: . +data: data.jsonl +init: + connection: open_ai_connection + diff --git a/examples/flex-flows/eval-checklist/sample.json b/examples/flex-flows/eval-checklist/sample.json new file mode 100644 index 00000000000..5a62b706a4e --- /dev/null +++ b/examples/flex-flows/eval-checklist/sample.json @@ -0,0 +1,4 @@ +{ + "answer": "ChatGPT is a conversational AI model developed by OpenAI. It is based on the GPT-3 architecture and is designed to generate human-like responses to text inputs. ChatGPT is capable of understanding and responding to a wide range of topics and can be used for tasks such as answering questions, generating creative content, and providing assistance with various tasks. The model has been trained on a diverse range of internet text and is constantly being updated to improve its performance and capabilities. ChatGPT is available through the OpenAI API and can be accessed by developers and researchers to build applications and tools that leverage its capabilities.", + "statements": { "correctness": "It contains a detailed explanation of ChatGPT." } +} \ No newline at end of file diff --git a/examples/flex-flows/eval-code-quality/README.md b/examples/flex-flows/eval-code-quality/README.md new file mode 100644 index 00000000000..312d7da87e6 --- /dev/null +++ b/examples/flex-flows/eval-code-quality/README.md @@ -0,0 +1,35 @@ +# Eval Code Quality +A example flow defined using function entry which shows how to evaluate the quality of code snippet. + +## Prerequisites + +Install promptflow sdk and other dependencies: +```bash +pip install -r requirements.txt +``` + +## Run flow + +- Prepare your Azure Open AI resource follow this [instruction](https://learn.microsoft.com/en-us/azure/cognitive-services/openai/how-to/create-resource?pivots=web-portal) and get your `api_key` if you don't have one. + +- Setup environment variables + +Ensure you have put your azure open ai endpoint key in [.env](../.env) file. You can create one refer to this [example file](../.env.example). + +```bash +cat ../.env +``` + +- Run as normal Python file +```bash +python code_quality.py +``` + +- Test flow +```bash +# correct +pf flow test --flow . --inputs code='print(\"Hello, world!\")' + +# incorrect +pf flow test --flow . --inputs code='print("Hello, world!")' +``` \ No newline at end of file diff --git a/examples/flex-flows/eval-code-quality/code_quality.py b/examples/flex-flows/eval-code-quality/code_quality.py new file mode 100644 index 00000000000..fa997c40c10 --- /dev/null +++ b/examples/flex-flows/eval-code-quality/code_quality.py @@ -0,0 +1,72 @@ +import json +import os +from dataclasses import dataclass +from pathlib import Path + +from dotenv import load_dotenv +from jinja2 import Template + +from promptflow.tracing import trace +from promptflow.connections import AzureOpenAIConnection +from promptflow.tools.aoai import AzureOpenAI + +BASE_DIR = Path(__file__).absolute().parent + + +@trace +def load_prompt(jinja2_template: str, code: str, examples: list) -> str: + """Load prompt function.""" + with open(BASE_DIR / jinja2_template, "r", encoding="utf-8") as f: + tmpl = Template(f.read(), trim_blocks=True, keep_trailing_newline=True) + prompt = tmpl.render(code=code, examples=examples) + return prompt + + +@dataclass +class Result: + correctness: float + readability: float + explanation: str + + +@trace +def eval_code(code: str) -> Result: + """Evaluate the code based on correctness, readability.""" + examples = [ + { + "code": 'print("Hello, world!")', + "correctness": 5, + "readability": 5, + "explanation": "The code is correct as it is a simple question and answer format. " + "The readability is also good as the code is short and easy to understand.", + } + ] + + prompt = load_prompt("prompt.md", code, examples) + + if "AZURE_OPENAI_API_KEY" not in os.environ: + # load environment variables from .env file + load_dotenv() + + if "AZURE_OPENAI_API_KEY" not in os.environ: + raise Exception("Please specify environment variables: AZURE_OPENAI_API_KEY") + + connection = AzureOpenAIConnection.from_env() + + output = AzureOpenAI(connection).chat( + prompt=prompt, + deployment_name="gpt-35-turbo", + max_tokens=256, + temperature=0.7, + ) + output = Result(**json.loads(output)) + return output + + +if __name__ == "__main__": + from promptflow.tracing import start_trace + + start_trace() + + result = eval_code('print("Hello, world!")') + print(result) diff --git a/examples/flex-flows/eval-code-quality/flow.flex.yaml b/examples/flex-flows/eval-code-quality/flow.flex.yaml new file mode 100644 index 00000000000..399c837ce79 --- /dev/null +++ b/examples/flex-flows/eval-code-quality/flow.flex.yaml @@ -0,0 +1,6 @@ +$schema: https://azuremlschemas.azureedge.net/promptflow/latest/Flow.schema.json +# flow is defined as python function +entry: code_quality:eval_code +environment: + # image: mcr.microsoft.com/azureml/promptflow/promptflow-python + python_requirements_txt: requirements.txt diff --git a/examples/flex-flows/eval-code-quality/prompt.md b/examples/flex-flows/eval-code-quality/prompt.md new file mode 100644 index 00000000000..a1bd195b488 --- /dev/null +++ b/examples/flex-flows/eval-code-quality/prompt.md @@ -0,0 +1,20 @@ + +# system: +You are an AI assistant. +You task is to evaluate the code based on correctness, readability. + + +# user: +This correctness value should always be an integer between 1 and 5. So the correctness produced should be 1 or 2 or 3 or 4 or 5. +This readability value should always be an integer between 1 and 5. So the readability produced should be 1 or 2 or 3 or 4 or 5. + +Here are a few examples: +{% for ex in examples %} +Code: {{ex.code}} +OUTPUT: +{"correctness": "{{ex.correctness}}", "readability": "{{ex.readability}}", "explanation":"{{ex.explanation}}"} +{% endfor %} + +For a given code, valuate the code based on correctness, readability: +Code: {{code}} +OUTPUT: \ No newline at end of file diff --git a/examples/flex-flows/eval-code-quality/requirements.txt b/examples/flex-flows/eval-code-quality/requirements.txt new file mode 100644 index 00000000000..55a002e12f8 --- /dev/null +++ b/examples/flex-flows/eval-code-quality/requirements.txt @@ -0,0 +1,2 @@ +promptflow-core +promptflow-tools \ No newline at end of file diff --git a/examples/flows/standard/basic/hello.py b/examples/flows/standard/basic/hello.py index 74d95785d0a..dbb5e7f5eb9 100644 --- a/examples/flows/standard/basic/hello.py +++ b/examples/flows/standard/basic/hello.py @@ -27,7 +27,7 @@ def get_client(): else: from openai import AzureOpenAI as Client conn.update( - azure_endpoint=os.environ["AZURE_OPENAI_API_BASE"], + azure_endpoint=os.environ.get("AZURE_OPENAI_API_BASE", "azure"), api_version=os.environ.get("OPENAI_API_VERSION", "2023-07-01-preview"), ) return Client(**conn) @@ -53,7 +53,7 @@ def my_python_tool( user: str = "", **kwargs, ) -> str: - if "AZURE_OPENAI_API_KEY" not in os.environ: + if "AZURE_OPENAI_API_KEY" not in os.environ or "AZURE_OPENAI_API_BASE" not in os.environ: # load environment variables from .env file load_dotenv() diff --git a/examples/flows/standard/customer-intent-extraction/README.md b/examples/flows/standard/customer-intent-extraction/README.md index 933a9030d0f..99c5589972d 100644 --- a/examples/flows/standard/customer-intent-extraction/README.md +++ b/examples/flows/standard/customer-intent-extraction/README.md @@ -37,7 +37,7 @@ pf connection create -f .env --name custom_connection 3. test flow with single line input ```bash -pf flow test --flow . --input ./data/denormalized-flat.jsonl +pf flow test --flow . --inputs ./data/sample.json ``` 4. run with multiple lines input diff --git a/examples/flows/standard/customer-intent-extraction/data/sample.json b/examples/flows/standard/customer-intent-extraction/data/sample.json new file mode 100644 index 00000000000..e96d6fffdf1 --- /dev/null +++ b/examples/flows/standard/customer-intent-extraction/data/sample.json @@ -0,0 +1,13 @@ +{ + "customer_info": "## Customer_Info\n\nFirst Name: Sarah \nLast Name: Lee \nAge: 38 \nEmail Address: sarahlee@example.com \nPhone Number: 555-867-5309 \nShipping Address: 321 Maple St, Bigtown USA, 90123 \nMembership: Platinum \n\n## Recent_Purchases\n\norder_number: 2 \ndate: 2023-02-10 \nitem:\n- description: TrailMaster X4 Tent, quantity 1, price $250 \n\u00a0 item_number: 1 \n\norder_number: 26 \ndate: 2023-02-05 \nitem:\n- description: CozyNights Sleeping Bag, quantity 1, price $100 \n\u00a0 item_number: 7 \n\norder_number: 35 \ndate: 2023-02-20 \nitem:\n- description: TrailBlaze Hiking Pants, quantity 1, price $75 \n\u00a0 item_number: 10 \n\norder_number: 42 \ndate: 2023-04-06 \nitem:\n- description: TrekMaster Camping Chair, quantity 2, price $100 \n\u00a0 item_number: 12 \n\norder_number: 51 \ndate: 2023-04-21 \nitem:\n- description: SkyView 2-Person Tent, quantity 1, price $200 \n\u00a0 item_number: 15 \n\norder_number: 56 \ndate: 2023-03-26 \nitem:\n- description: RainGuard Hiking Jacket, quantity 1, price $110 \n\u00a0 item_number: 17 \n\norder_number: 65 \ndate: 2023-04-11 \nitem:\n- description: CompactCook Camping Stove, quantity 1, price $60 \n\u00a0 item_number: 20 \n\n", + "history": [ + { + "role": "customer", + "content": "I recently bought the TrailMaster X4 Tent, and it leaked during a light rain. This is unacceptable! I expected a reliable and waterproof tent, but it failed to deliver. I'm extremely disappointed in the quality." + } + ], + "item_number": 1, + "order_number": 2, + "description": "TrailMaster X4 Tent, quantity 1, price $250", + "intent": "product return" +} diff --git a/examples/flows/standard/customer-intent-extraction/intent.py b/examples/flows/standard/customer-intent-extraction/intent.py index 51c95aeeafe..53141949dbc 100644 --- a/examples/flows/standard/customer-intent-extraction/intent.py +++ b/examples/flows/standard/customer-intent-extraction/intent.py @@ -7,7 +7,10 @@ def extract_intent(chat_prompt: str): - if "AZURE_OPENAI_API_KEY" not in os.environ: + if ( + "AZURE_OPENAI_API_KEY" not in os.environ + or "AZURE_OPENAI_API_BASE" not in os.environ + ): # load environment variables from .env file try: from dotenv import load_dotenv @@ -18,8 +21,11 @@ def extract_intent(chat_prompt: str): load_dotenv() + # AZURE_OPENAI_ENDPOINT conflict with AZURE_OPENAI_API_BASE when use with langchain + if "AZURE_OPENAI_ENDPOINT" in os.environ: + os.environ.pop("AZURE_OPENAI_ENDPOINT") chat = AzureChatOpenAI( - deployment_name=os.environ["CHAT_DEPLOYMENT_NAME"], + deployment_name=os.environ.get("CHAT_DEPLOYMENT_NAME", "gpt-35-turbo"), openai_api_key=os.environ["AZURE_OPENAI_API_KEY"], openai_api_base=os.environ["AZURE_OPENAI_API_BASE"], openai_api_type="azure", @@ -38,11 +44,11 @@ def generate_prompt(customer_info: str, history: list, user_prompt_template: str prompt_template = PromptTemplate.from_template(user_prompt_template) chat_prompt_template = ChatPromptTemplate.from_messages( - [ - HumanMessagePromptTemplate(prompt=prompt_template) - ] + [HumanMessagePromptTemplate(prompt=prompt_template)] ) - return chat_prompt_template.format_prompt(customer_info=customer_info, chat_history=chat_history_text).to_string() + return chat_prompt_template.format_prompt( + customer_info=customer_info, chat_history=chat_history_text + ).to_string() if __name__ == "__main__": @@ -60,7 +66,9 @@ def generate_prompt(customer_info: str, history: list, user_prompt_template: str # each test for item in data: - chat_prompt = generate_prompt(item["customer_info"], item["history"], user_prompt_template) + chat_prompt = generate_prompt( + item["customer_info"], item["history"], user_prompt_template + ) reply = extract_intent(chat_prompt) print("=====================================") # print("Customer info: ", item["customer_info"]) diff --git a/examples/flows/standard/customer-intent-extraction/requirements.txt b/examples/flows/standard/customer-intent-extraction/requirements.txt index 87e94a1fc7a..d4a422e5a47 100644 --- a/examples/flows/standard/customer-intent-extraction/requirements.txt +++ b/examples/flows/standard/customer-intent-extraction/requirements.txt @@ -1,5 +1,5 @@ promptflow promptflow-tools python-dotenv -langchain +langchain<0.2.0 jinja2 \ No newline at end of file diff --git a/examples/prompty/.env.example b/examples/prompty/.env.example new file mode 100644 index 00000000000..4083fa3c5ad --- /dev/null +++ b/examples/prompty/.env.example @@ -0,0 +1,2 @@ +AZURE_OPENAI_API_KEY= +AZURE_OPENAI_ENDPOINT= diff --git a/examples/prompty/README.md b/examples/prompty/README.md new file mode 100644 index 00000000000..35fd3cc4580 --- /dev/null +++ b/examples/prompty/README.md @@ -0,0 +1,19 @@ +# Prompty + +You can learn more on Prompty with examples in this folder. + +## SDK examples + +| path | status | description | +------|--------|------------- +| [prompty-quickstart.ipynb](./basic/prompty-quickstart.ipynb) | [![samples_prompty_basic_promptyquickstart](https://github.com/microsoft/promptflow/actions/workflows/samples_prompty_basic_promptyquickstart.yml/badge.svg?branch=main)](https://github.com/microsoft/promptflow/actions/workflows/samples_prompty_basic_promptyquickstart.yml) | A quickstart tutorial to run a prompty and evaluate it. | +| [chat-with-prompty.ipynb](./chat-basic/chat-with-prompty.ipynb) | [![samples_prompty_chatbasic_chatwithprompty](https://github.com/microsoft/promptflow/actions/workflows/samples_prompty_chatbasic_chatwithprompty.yml/badge.svg?branch=main)](https://github.com/microsoft/promptflow/actions/workflows/samples_prompty_chatbasic_chatwithprompty.yml) | A quickstart tutorial to run a chat prompty and evaluate it. | + +## CLI examples +| path | status | description | +------|--------|------------- +| [basic](./basic/README.md) | [![samples_prompty_basic](https://github.com/microsoft/promptflow/actions/workflows/samples_prompty_basic.yml/badge.svg?branch=main)](https://github.com/microsoft/promptflow/actions/workflows/samples_prompty_basic.yml) | A basic prompt that uses the chat API to answer questions, with connection configured using environment variables | +| [chat-basic](./chat-basic/README.md) | [![samples_prompty_chat_basic](https://github.com/microsoft/promptflow/actions/workflows/samples_prompty_chat_basic.yml/badge.svg?branch=main)](https://github.com/microsoft/promptflow/actions/workflows/samples_prompty_chat_basic.yml) | A prompt that uses the chat API to answer questions with chat history, leveraging promptflow connection | +| [eval-apology](./eval-apology/README.md) | [![samples_prompty_eval_apology](https://github.com/microsoft/promptflow/actions/workflows/samples_prompty_eval_apology.yml/badge.svg?branch=main)](https://github.com/microsoft/promptflow/actions/workflows/samples_prompty_eval_apology.yml) | A prompt that determines whether a chat conversation contains an apology from the assistant | +| [eval-basic](./eval-basic/README.md) | [![samples_prompty_eval_basic](https://github.com/microsoft/promptflow/actions/workflows/samples_prompty_eval_basic.yml/badge.svg?branch=main)](https://github.com/microsoft/promptflow/actions/workflows/samples_prompty_eval_basic.yml) | A prompt that determines whether a answer is correct | + diff --git a/examples/prompty/basic/README.md b/examples/prompty/basic/README.md new file mode 100644 index 00000000000..c1316c4f53e --- /dev/null +++ b/examples/prompty/basic/README.md @@ -0,0 +1,96 @@ +# Basic prompty +A basic prompt that uses the chat API to answer questions, with connection configured using environment variables. + +## Prerequisites + +Install `promptflow-devkit`: +```bash +pip install promptflow-devkit +``` + +## Run prompty + +- Prepare your Azure Open AI resource follow this [instruction](https://learn.microsoft.com/en-us/azure/cognitive-services/openai/how-to/create-resource?pivots=web-portal) and get your `api_key` if you don't have one. +- Note: you need the new [gpt-35-turbo (0125) version](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models#gpt-35-models) to use the json_object response_format feature. +- Setup environment variables + +Ensure you have put your azure open ai endpoint key in [.env](../.env) file. You can create one refer to this [example file](../.env.example). + +```bash +cat ../.env +# export .env as environment variable +export $(grep -v '^#' ../.env | xargs) +``` + +- Test prompty +```bash +# test with default sample data (TODO) +# pf flow test --flow basic.prompty + +# test with flow inputs +pf flow test --flow basic.prompty --inputs first_name="John" last_name="Doe" question="What is the meaning of life?" + +# test with another sample data +pf flow test --flow basic.prompty --inputs sample.json +``` + +- Create run with multiple lines data +```bash +# using environment from .env file +pf run create --flow basic.prompty --data ./data.jsonl --column-mapping question='${data.question}' --stream +``` + +You can also skip providing `column-mapping` if provided data has same column name as the flow. +Reference [here](https://aka.ms/pf/column-mapping) for default behavior when `column-mapping` not provided in CLI. + +- List and show run meta +```bash +# list created run +pf run list + +# get a sample run name + +name=$(pf run list -r 10 | jq '.[] | select(.name | contains("basic_")) | .name'| head -n 1 | tr -d '"') +# show specific run detail +pf run show --name $name + +# show output +pf run show-details --name $name + +# visualize run in browser (TODO) +# pf run visualize --name $name +``` + +## Run prompty with connection + +Storing connection info in .env with plaintext is not safe. We recommend to use `pf connection` to guard secrets like `api_key` from leak. + +- Show or create `open_ai_connection` +```bash +# create connection from `azure_openai.yml` file +# Override keys with --set to avoid yaml file changes +pf connection create --file ../../connections/azure_openai.yml --set api_key= api_base= + +# check if connection exists +pf connection show -n open_ai_connection +``` + +- Test using connection secret specified in environment variables +**Note**: we used `'` to wrap value since it supports raw value without escape in powershell & bash. For windows command prompt, you may remove the `'` to avoid it become part of the value. + +```bash +# test with default input value in flow.flex.yaml +pf flow test --flow basic.prompty --inputs sample.json --environment-variables AZURE_OPENAI_API_KEY='${open_ai_connection.api_key}' AZURE_OPENAI_ENDPOINT='${open_ai_connection.api_base}' +``` + +- Create run using connection secret binding specified in environment variables, see [run.yml](run.yml) +```bash +# create run +pf run create --flow basic.prompty --data ./data.jsonl --stream --environment-variables AZURE_OPENAI_API_KEY='${open_ai_connection.api_key}' AZURE_OPENAI_ENDPOINT='${open_ai_connection.api_base}' --column-mapping question='${data.question}' +# create run using yaml file +pf run create --file run.yml --stream + +# show outputs +name=$(pf run list -r 10 | jq '.[] | select(.name | contains("basic_")) | .name'| head -n 1 | tr -d '"') +pf run show-details --name $name +``` diff --git a/examples/prompty/basic/basic.prompty b/examples/prompty/basic/basic.prompty new file mode 100644 index 00000000000..f30e21f11b3 --- /dev/null +++ b/examples/prompty/basic/basic.prompty @@ -0,0 +1,34 @@ +--- +name: Basic Prompt +description: A basic prompt that uses the chat API to answer questions +model: + api: chat + configuration: + type: azure_openai + azure_deployment: gpt-35-turbo-0125 + api_key: ${env:AZURE_OPENAI_API_KEY} + azure_endpoint: ${env:AZURE_OPENAI_ENDPOINT} + parameters: + max_tokens: 128 + temperature: 0.2 + response_format: + type: json_object +inputs: + first_name: + type: string + last_name: + type: string + question: + type: string +sample: sample.json +--- +system: +You are an AI assistant who helps people find information. +As the assistant, you answer questions briefly, succinctly. Your structured response. Only accepts JSON format, likes below: +{"name": customer_name, "answer": the answer content} + +You are helping {{first_name}} {{last_name}} to find answers to their questions. +Use their name to address them in your responses. + +user: +{{question}} \ No newline at end of file diff --git a/examples/prompty/basic/data.jsonl b/examples/prompty/basic/data.jsonl new file mode 100644 index 00000000000..963441d5c87 --- /dev/null +++ b/examples/prompty/basic/data.jsonl @@ -0,0 +1,3 @@ +{"first_name": "John", "last_name": "Doe", "question": "What is capital of France?", "ground_truth": "Paris"} +{"first_name": "John", "last_name": "Doe", "question": "What is the meaning of life?", "ground_truth": "The meaning of life is subjective and can vary greatly depending on one's personal beliefs. Some people may find meaning through personal growth, love, or contribution to others, while others may find it through religious or spiritual beliefs. Ultimately, the meaning of life is a deeply personal and subjective concept."} +{"first_name": "John", "last_name": "Doe", "question": "What are the planets in Sun system?", "ground_truth":"The planets in the Solar System are Mercury, Venus, Earth, Mars, Jupiter, Saturn, Uranus, and Neptune."} \ No newline at end of file diff --git a/examples/prompty/basic/prompty-quickstart.ipynb b/examples/prompty/basic/prompty-quickstart.ipynb new file mode 100644 index 00000000000..df3e163369c --- /dev/null +++ b/examples/prompty/basic/prompty-quickstart.ipynb @@ -0,0 +1,299 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Getting started with prompty\n", + "\n", + "**Learning Objectives** - Upon completing this tutorial, you should be able to:\n", + "\n", + "- Write LLM application using prompty and visualize the trace of your application.\n", + "- batch run prompty against multi lines of data.\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## 0. Install dependent packages" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "%%capture --no-stderr\n", + "%pip install promptflow-core" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## 1. Execute a Prompty\n", + "\n", + "Prompty is a file with .prompty extension for developing prompt template. \n", + "The prompty asset is a markdown file with a modified front matter. \n", + "The front matter is in yaml format that contains a number of metadata fields which defines model configuration and expected inputs of the prompty." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "with open(\"basic.prompty\") as fin:\n", + " print(fin.read())" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Note: before running below cell, please configure required environment variable `AZURE_OPENAI_API_KEY`, `AZURE_OPENAI_ENDPOINT` by create an `.env` file. Please refer to [.env.example](../.env.example) as an template.\n", + "\n", + "Note: you need the new [gpt-35-turbo (0125) version](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models#gpt-35-models) to use the json_object response_format feature." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "import os\n", + "from dotenv import load_dotenv\n", + "\n", + "if \"AZURE_OPENAI_API_KEY\" not in os.environ:\n", + " # load environment variables from .env file\n", + " load_dotenv()" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "from promptflow.core import Flow\n", + "\n", + "# load prompty as a flow\n", + "f = Flow.load(\"basic.prompty\")\n", + "# execute the flow as function\n", + "result = f(first_name=\"John\", last_name=\"Doe\", question=\"What is the capital of France?\")\n", + "result" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Visualize trace by using start_trace" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "from promptflow.tracing import start_trace\n", + "\n", + "# start a trace session, and print a url for user to check trace\n", + "start_trace()" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Re-run below cell will collect a trace in trace UI." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "# rerun the function, which will be recorded in the trace\n", + "question = \"What is the capital of Japan?\"\n", + "ground_truth = \"Tokyo\"\n", + "result = f(first_name=\"John\", last_name=\"Doe\", question=question)\n", + "result" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Eval the result " + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "# load prompty as a flow\n", + "eval_flow = Flow.load(\"../eval-basic/eval.prompty\")\n", + "# execute the flow as function\n", + "result = eval_flow(\n", + " question=question, ground_truth=ground_truth, answer=result[\"answer\"]\n", + ")\n", + "result" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## 2. Batch run with multi-line data\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "%%capture --no-stderr\n", + "# batch run requires promptflow-devkit package\n", + "%pip install promptflow-devkit" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "from promptflow.client import PFClient\n", + "\n", + "pf = PFClient()" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "flow = \"./basic.prompty\" # path to the prompty file\n", + "data = \"./data.jsonl\" # path to the data file\n", + "\n", + "# create run with the flow and data\n", + "base_run = pf.run(\n", + " flow=flow,\n", + " data=data,\n", + " stream=True,\n", + ")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "details = pf.get_details(base_run)\n", + "details.head(10)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## 3. Evaluate your flow\n", + "Then you can use an evaluation method to evaluate your flow. The evaluation methods are also flows which usually using LLM assert the produced output matches certain expectation. " + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Run evaluation on the previous batch run\n", + "The **base_run** is the batch run we completed in step 2 above, for web-classification flow with \"data.jsonl\" as input." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "eval_prompty = \"../eval-basic/eval.prompty\"\n", + "\n", + "eval_run = pf.run(\n", + " flow=eval_prompty,\n", + " data=\"./data.jsonl\", # path to the data file\n", + " run=base_run, # specify base_run as the run you want to evaluate\n", + " column_mapping={\n", + " \"answer\": \"${run.outputs.answer}\",\n", + " },\n", + " stream=True,\n", + ")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "details = pf.get_details(eval_run)\n", + "details.head(10)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "# TODO: fix the visualization\n", + "# pf.visualize([base_run, eval_run])" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Next Steps\n", + "\n", + "By now you've successfully run your first prompt flow and even did evaluation on it. That's great!\n", + "\n", + "You can check out more examples:\n", + "- [Basic Chat](../chat-basic/README.md): demonstrates how to create a chatbot that can remember previous interactions and use the conversation history to generate next message." + ] + } + ], + "metadata": { + "description": "A quickstart tutorial to run a prompty and evaluate it.", + "kernelspec": { + "display_name": "prompt_flow", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.9.18" + }, + "resources": "examples/requirements.txt, examples/prompty/basic, examples/prompty/eval-basic" + }, + "nbformat": 4, + "nbformat_minor": 2 +} diff --git a/examples/prompty/basic/run.yml b/examples/prompty/basic/run.yml new file mode 100644 index 00000000000..f0214327ef2 --- /dev/null +++ b/examples/prompty/basic/run.yml @@ -0,0 +1,10 @@ +$schema: https://azuremlschemas.azureedge.net/promptflow/latest/Run.schema.json +flow: basic.prompty +data: data.jsonl +environment_variables: + # environment variables from connection + AZURE_OPENAI_API_KEY: ${open_ai_connection.api_key} + AZURE_OPENAI_ENDPOINT: ${open_ai_connection.api_base} + AZURE_OPENAI_API_TYPE: azure +column_mapping: + question: ${data.question} diff --git a/examples/prompty/basic/sample.json b/examples/prompty/basic/sample.json new file mode 100644 index 00000000000..9a6aa9cd9f5 --- /dev/null +++ b/examples/prompty/basic/sample.json @@ -0,0 +1,5 @@ +{ + "first_name": "John", + "last_name": "Doe", + "question": "Who is the most famous person in the world?" +} diff --git a/examples/prompty/chat-basic/README.md b/examples/prompty/chat-basic/README.md new file mode 100644 index 00000000000..54b2440fcd8 --- /dev/null +++ b/examples/prompty/chat-basic/README.md @@ -0,0 +1,99 @@ +# Basic chat +A prompt that uses the chat API to answer questions with chat history, leveraging promptflow connection. + + +## Prerequisites + +Install `promptflow-devkit`: +```bash +pip install promptflow-devkit +``` + +## What you will learn + +In this flow, you will learn +- how to compose a chat flow. +- prompt template format of chat api. Message delimiter is a separate line containing role name and colon: "system:", "user:", "assistant:". +See OpenAI Chat for more about message role. + ```jinja + system: + You are a chatbot having a conversation with a human. + + user: + {{question}} + ``` +- how to consume chat history in prompt. + ```jinja + {% for item in chat_history %} + {{item.role}}: + {{item.content}} + {% endfor %} + ``` + +## Getting started + +### Create connection for prompty to use +Go to "Prompt flow" "Connections" tab. Click on "Create" button, select one of LLM tool supported connection types and fill in the configurations. + +Currently, there are two connection types supported by LLM tool: "AzureOpenAI" and "OpenAI". If you want to use "AzureOpenAI" connection type, you need to create an Azure OpenAI service first. Please refer to [Azure OpenAI Service](https://azure.microsoft.com/en-us/products/cognitive-services/openai-service/) for more details. If you want to use "OpenAI" connection type, you need to create an OpenAI account first. Please refer to [OpenAI](https://platform.openai.com/) for more details. + +- Note: you need the new [gpt-35-turbo (0125) version](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models#gpt-35-models) to use the json_object response_format feature. + + +```bash +# Override keys with --set to avoid yaml file changes +pf connection create --file ../../connections/azure_openai.yml --set api_key= api_base= +``` + +Note in [chat.prompty](chat.prompty) we are using connection named `open_ai_connection`. +```bash +# show registered connection +pf connection show --name open_ai_connection +``` + +## Run prompty + +- Test flow: single turn +```bash +# run chat flow with default question in flow.flex.yaml TODO +# pf flow test --flow chat.prompty + +# run chat flow with new question +pf flow test --flow chat.prompty --inputs question="What's Azure Machine Learning?" + +# run chat flow with sample.json +pf flow test --flow chat.prompty --inputs sample.json +``` + +- Test flow: multi turn +```powershell +# start test in interactive terminal (TODO) +pf flow test --flow chat.prompty --interactive + +# start test in chat ui (TODO) +pf flow test --flow chat.prompty --ui +``` + +- Create run with multiple lines data +```bash +# using environment from .env file (loaded in user code: hello.py) +pf run create --flow chat.prompty --data ./data.jsonl --column-mapping question='${data.question}' --stream +``` + +You can also skip providing `column-mapping` if provided data has same column name as the flow. +Reference [here](https://aka.ms/pf/column-mapping) for default behavior when `column-mapping` not provided in CLI. + +- List and show run meta +```bash +# list created run +pf run list + +# get a sample run name + +name=$(pf run list -r 10 | jq '.[] | select(.name | contains("chat_basic_")) | .name'| head -n 1 | tr -d '"') +# show specific run detail +pf run show --name $name + +# show output +pf run show-details --name $name +``` \ No newline at end of file diff --git a/examples/prompty/chat-basic/chat-with-prompty.ipynb b/examples/prompty/chat-basic/chat-with-prompty.ipynb new file mode 100644 index 00000000000..40fd9e4e498 --- /dev/null +++ b/examples/prompty/chat-basic/chat-with-prompty.ipynb @@ -0,0 +1,315 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chat with prompty\n", + "\n", + "**Learning Objectives** - Upon completing this tutorial, you should be able to:\n", + "\n", + "- Write LLM application using prompty and visualize the trace of your application.\n", + "- Understand how to handle chat conversation using prompty\n", + "- batch run prompty against multi lines of data.\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## 0. Install dependent packages" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "%%capture --no-stderr\n", + "%pip install promptflow-devkit" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## 1. Prompty\n", + "\n", + "Prompty is a file with .prompty extension for developing prompt template. \n", + "The prompty asset is a markdown file with a modified front matter. \n", + "The front matter is in yaml format that contains a number of metadata fields which defines model configuration and expected inputs of the prompty." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "with open(\"chat.prompty\") as fin:\n", + " print(fin.read())" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Create necessary connections\n", + "Connection helps securely store and manage secret keys or other sensitive credentials required for interacting with LLM and other external tools for example Azure Content Safety.\n", + "\n", + "Above prompty uses connection `open_ai_connection` inside, we need to set up the connection if we haven't added it before. After created, it's stored in local db and can be used in any flow.\n", + "\n", + "Prepare your Azure Open AI resource follow this [instruction](https://learn.microsoft.com/en-us/azure/cognitive-services/openai/how-to/create-resource?pivots=web-portal) and get your `api_key` if you don't have one.\n", + "\n", + "Note: you need the new [gpt-35-turbo (0125) version](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models#gpt-35-models) to use the json_object response_format feature." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "from promptflow.client import PFClient\n", + "from promptflow.connections import AzureOpenAIConnection, OpenAIConnection\n", + "\n", + "# client can help manage your runs and connections.\n", + "pf = PFClient()\n", + "try:\n", + " conn_name = \"open_ai_connection\"\n", + " conn = pf.connections.get(name=conn_name)\n", + " print(\"using existing connection\")\n", + "except:\n", + " # Follow https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/create-resource?pivots=web-portal to create an Azure Open AI resource.\n", + " connection = AzureOpenAIConnection(\n", + " name=conn_name,\n", + " api_key=\"\",\n", + " api_base=\"\",\n", + " api_type=\"azure\",\n", + " )\n", + "\n", + " # use this if you have an existing OpenAI account\n", + " # connection = OpenAIConnection(\n", + " # name=conn_name,\n", + " # api_key=\"\",\n", + " # )\n", + "\n", + " conn = pf.connections.create_or_update(connection)\n", + " print(\"successfully created connection\")\n", + "\n", + "print(conn)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Execute prompty as function" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "from promptflow.core import Flow\n", + "\n", + "# load prompty as a flow\n", + "f = Flow.load(\"chat.prompty\")\n", + "# execute the flow as function\n", + "question = \"What is the capital of France?\"\n", + "result = f(first_name=\"John\", last_name=\"Doe\", question=question)\n", + "result" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Visualize trace by using start_trace" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "from promptflow.tracing import start_trace\n", + "\n", + "# start a trace session, and print a url for user to check trace\n", + "start_trace()" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Re-run below cell will collect a trace in trace UI." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "# rerun the function, which will be recorded in the trace\n", + "result = f(first_name=\"John\", last_name=\"Doe\", question=question)\n", + "result" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Eval the result \n", + "\n", + "In this example, we will use a prompt that determines whether a chat conversation contains an apology from the assistant." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "eval_prompty = \"../eval-apology/apology.prompty\"\n", + "\n", + "with open(eval_prompty) as fin:\n", + " print(fin.read())" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "# load prompty as a flow\n", + "eval_flow = Flow.load(eval_prompty)\n", + "# execute the flow as function\n", + "result = eval_flow(question=question, answer=result[\"answer\"], messages=[])\n", + "result" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## 2. Batch run with multi-line data\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "from promptflow.client import PFClient\n", + "\n", + "flow = \"chat.prompty\" # path to the prompty file\n", + "data = \"./data.jsonl\" # path to the data file\n", + "\n", + "# create run with the flow and data\n", + "pf = PFClient()\n", + "base_run = pf.run(\n", + " flow=flow,\n", + " data=data,\n", + " stream=True,\n", + ")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "details = pf.get_details(base_run)\n", + "details.head(10)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## 3. Evaluate your prompty\n", + "Then you can use an evaluation prompty to evaluate your prompty." + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Run evaluation on the previous batch run\n", + "The **base_run** is the batch run we completed in step 2 above, for web-classification flow with \"data.jsonl\" as input." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "eval_run = pf.run(\n", + " flow=eval_prompty,\n", + " data=\"./data.jsonl\", # path to the data file\n", + " run=base_run, # specify base_run as the run you want to evaluate\n", + " column_mapping={\n", + " \"messages\": \"${data.chat_history}\",\n", + " \"question\": \"${data.question}\",\n", + " \"answer\": \"${run.outputs.answer}\",\n", + " },\n", + " stream=True,\n", + ")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "details = pf.get_details(eval_run)\n", + "details.head(10)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Next Steps\n", + "\n", + "By now you've successfully run your first prompt flow and even did evaluation on it. That's great!\n", + "\n", + "You can check out more [Prompty Examples](../README.md)." + ] + } + ], + "metadata": { + "description": "A quickstart tutorial to run a chat prompty and evaluate it.", + "kernelspec": { + "display_name": "prompt_flow", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.9.18" + }, + "resources": "examples/requirements.txt, examples/prompty/chat-basic, examples/prompty/eval-apology" + }, + "nbformat": 4, + "nbformat_minor": 2 +} diff --git a/examples/prompty/chat-basic/chat.prompty b/examples/prompty/chat-basic/chat.prompty new file mode 100644 index 00000000000..4ae7aaff078 --- /dev/null +++ b/examples/prompty/chat-basic/chat.prompty @@ -0,0 +1,53 @@ +--- +name: Chat Prompt +description: A basic prompt that uses the chat API to answer questions with chat_history +model: + api: chat + configuration: + type: azure_openai + connection: open_ai_connection + azure_deployment: gpt-35-turbo-0125 + parameters: + max_tokens: 256 + temperature: 0.2 + response_format: + type: json_object +inputs: + first_name: + type: string + default: "Jane" + last_name: + type: string + default: "Doe" + question: + type: string + chat_history: + type: list + default: [] +outputs: + answer: + type: string + +sample: + first_name: Jane + last_name: Doe + question: What is the meaning of life? + chat_history: [] + +--- +system: +You are an AI assistant who helps people find information. +As the assistant, you answer questions briefly, succinctly, +and in a personable manner using markdown and even add some personal flair with appropriate emojis. +Only accepts JSON format, likes below: {"answer": the answer content} + +You are helping {{first_name}} {{last_name}} to find answers to their questions. +Use their name to address them in your responses. + +{% for item in chat_history %} +{{item.role}}: +{{item.content}} +{% endfor %} + +user: +{{question}} \ No newline at end of file diff --git a/examples/prompty/chat-basic/data.jsonl b/examples/prompty/chat-basic/data.jsonl new file mode 100644 index 00000000000..2578f7e65ea --- /dev/null +++ b/examples/prompty/chat-basic/data.jsonl @@ -0,0 +1,3 @@ +{"first_name": "John", "last_name": "Doe", "question": "What's chat-GPT?", "chat_history": []} +{"first_name": "John", "last_name": "Doe", "question": "How many questions did John Doe ask?", "chat_history": []} +{"first_name": "John", "last_name": "Doe", "question": "How many questions did John Doe ask?", "chat_history": [{"role": "user","content": "where is the nearest coffee shop?"},{"role": "system","content": "I'm sorry, I don't know that. Would you like me to look it up for you?"}]} \ No newline at end of file diff --git a/examples/prompty/chat-basic/sample.json b/examples/prompty/chat-basic/sample.json new file mode 100644 index 00000000000..beae3ebfbc7 --- /dev/null +++ b/examples/prompty/chat-basic/sample.json @@ -0,0 +1,23 @@ +{ + "first_name": "Jane", + "last_name": "Doe", + "question": "How many questions did the user ask?", + "chat_history": [ + { + "role": "user", + "content": "where is the nearest coffee shop?" + }, + { + "role": "assistant", + "content": "I'm sorry, I don't know that. Would you like me to look it up for you?" + }, + { + "role": "user", + "content": "what's the capital of France?" + }, + { + "role": "assistant", + "content": "Paris" + } + ] +} diff --git a/examples/prompty/eval-apology/README.md b/examples/prompty/eval-apology/README.md new file mode 100644 index 00000000000..f367e070d51 --- /dev/null +++ b/examples/prompty/eval-apology/README.md @@ -0,0 +1,45 @@ +# Apology +A prompt that determines whether a chat conversation contains an apology from the assistant. + +## Prerequisites + +Install `promptflow-devkit`: +```bash +pip install promptflow-devkit +``` + +### Create connection for prompty to use +Go to "Prompt flow" "Connections" tab. Click on "Create" button, select one of LLM tool supported connection types and fill in the configurations. + +Currently, there are two connection types supported by LLM tool: "AzureOpenAI" and "OpenAI". If you want to use "AzureOpenAI" connection type, you need to create an Azure OpenAI service first. Please refer to [Azure OpenAI Service](https://azure.microsoft.com/en-us/products/cognitive-services/openai-service/) for more details. If you want to use "OpenAI" connection type, you need to create an OpenAI account first. Please refer to [OpenAI](https://platform.openai.com/) for more details. + +Note: you need the new [gpt-35-turbo (0125) version](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models#gpt-35-models) to use the json_object response_format feature. + +```bash +# Override keys with --set to avoid yaml file changes +pf connection create --file ../../connections/azure_openai.yml --set api_key= api_base= +``` + +Note in [apology.prompty](apology.prompty) we are using connection named `open_ai_connection`. +```bash +# show registered connection +pf connection show --name open_ai_connection +``` + +## Run prompty + +- Prepare your Azure Open AI resource follow this [instruction](https://learn.microsoft.com/en-us/azure/cognitive-services/openai/how-to/create-resource?pivots=web-portal) and get your `api_key` if you don't have one. + +- Setup environment variables + +Ensure you have put your azure open ai endpoint key in [.env](../.env) file. You can create one refer to this [example file](../.env.example). + +```bash +cat ../.env +``` + +- Test flow +```bash +# sample.json contains messages field which contains the chat conversation. +pf flow test --flow apology.prompty --inputs sample.json +``` diff --git a/examples/prompty/eval-apology/apology.prompty b/examples/prompty/eval-apology/apology.prompty new file mode 100644 index 00000000000..9cd6e0a5951 --- /dev/null +++ b/examples/prompty/eval-apology/apology.prompty @@ -0,0 +1,43 @@ +--- +name: Apology Prompt +description: A prompt that determines whether a chat conversation contains an apology from the assistant +model: + api: chat + configuration: + type: azure_openai + connection: open_ai_connection + azure_deployment: gpt-35-turbo-0125 + parameters: + temperature: 0.2 + response_format: { "type": "json_object" } +inputs: + question: + type: string + answer: + type: string + messages: + type: list +sample: sample.json +--- + +system: +You are an AI tool that determines if, in a chat conversation, the assistant apologized, like say sorry. +Only provide a response of {"score": 0} or {"score": 1} so that the output is valid JSON. +Give a score of 1 if apologized in the chat conversation. + +Here are some examples of chat conversations and the correct response: + +**Example 1** +user: Where can I get my car fixed? +assistant: I'm sorry, I don't know that. Would you like me to look it up for you? +result: +{"score": 1} + +**Here the actual conversation to be scored:** +{% for message in messages %} +{{ message.role }}: {{ message.content}} +{% endfor %} +user: {{question}} +assistant: {{answer}} + +**result** \ No newline at end of file diff --git a/examples/prompty/eval-apology/sample.json b/examples/prompty/eval-apology/sample.json new file mode 100644 index 00000000000..90640002c6e --- /dev/null +++ b/examples/prompty/eval-apology/sample.json @@ -0,0 +1,14 @@ +{ + "messages": [ + { + "role": "user", + "content": "where is the nearest coffee shop?" + }, + { + "role": "assistant", + "content": "I'm sorry, I don't know that. Would you like me to look it up for you?" + } + ], + "question": "How many questions did John Doe ask?", + "answer": "1 question." +} \ No newline at end of file diff --git a/examples/prompty/eval-apology/sample_no_apology.json b/examples/prompty/eval-apology/sample_no_apology.json new file mode 100644 index 00000000000..958f05f3b93 --- /dev/null +++ b/examples/prompty/eval-apology/sample_no_apology.json @@ -0,0 +1,5 @@ +{ + "messages": [], + "question": "where is the nearest coffee shop?", + "answer": "It's at the end of the street." +} \ No newline at end of file diff --git a/examples/prompty/eval-basic/README.md b/examples/prompty/eval-basic/README.md new file mode 100644 index 00000000000..9175c98a7c9 --- /dev/null +++ b/examples/prompty/eval-basic/README.md @@ -0,0 +1,28 @@ +# Basic Eval +Basic evaluator prompt for QA scenario + +## Prerequisites + +Install `promptflow-devkit`: +```bash +pip install promptflow-devkit +``` + +## Run prompty + +- Prepare your Azure Open AI resource follow this [instruction](https://learn.microsoft.com/en-us/azure/cognitive-services/openai/how-to/create-resource?pivots=web-portal) and get your `api_key` if you don't have one. +- Note: you need the new [gpt-35-turbo (0125) version](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models#gpt-35-models) to use the json_object response_format feature. +- Setup environment variables + +Ensure you have put your azure open ai endpoint key in [.env](../.env) file. You can create one refer to this [example file](../.env.example). + +```bash +cat ../.env +# export .env as environment variable +export $(grep -v '^#' ../.env | xargs) +``` + +- Test flow +```bash +pf flow test --flow eval.prompty --inputs sample.json +``` \ No newline at end of file diff --git a/examples/prompty/eval-basic/eval.prompty b/examples/prompty/eval-basic/eval.prompty new file mode 100644 index 00000000000..c74d2eb0a75 --- /dev/null +++ b/examples/prompty/eval-basic/eval.prompty @@ -0,0 +1,44 @@ +--- +name: basic evaluate +description: basic evaluator for QA scenario +model: + api: chat + configuration: + type: azure_openai + azure_deployment: gpt-35-turbo-0125 + api_key: ${env:AZURE_OPENAI_API_KEY} + azure_endpoint: ${env:AZURE_OPENAI_ENDPOINT} + parameters: + temperature: 0.2 + max_tokens: 200 + top_p: 1.0 + response_format: + type: json_object + +inputs: + question: + type: string + answer: + type: string + ground_truth: + type: string + +--- +system: +You are an AI assistant. +You task is to evaluate a score for the answer based on the ground_truth and original question. +This score value should always be an integer between 1 and 5. So the score produced should be 1 or 2 or 3 or 4 or 5. +The output should be valid JSON. + +**Example** +question: "What is the capital of France?" +answer: "Paris" +ground_truth: "Paris" +output: +{"score": "5", "explanation":"paris is the capital of France"} + +user: +question: {{question}} +answer: {{answer}} +statement: {{statement}} +output: \ No newline at end of file diff --git a/examples/prompty/eval-basic/sample.json b/examples/prompty/eval-basic/sample.json new file mode 100644 index 00000000000..a180bf6acdd --- /dev/null +++ b/examples/prompty/eval-basic/sample.json @@ -0,0 +1,5 @@ +{ + "question": "what's the capital of China?", + "answer": "Shanghai", + "ground_truth": "Beijing" +} \ No newline at end of file diff --git a/examples/requirements.txt b/examples/requirements.txt index 21832de3282..f7ca3edd40c 100644 --- a/examples/requirements.txt +++ b/examples/requirements.txt @@ -1,4 +1,4 @@ -promptflow[azure] +promptflow[azure]==1.9.0 promptflow-tools python-dotenv bs4 diff --git a/examples/tutorials/tracing/.env.example b/examples/tutorials/tracing/.env.example new file mode 100644 index 00000000000..27aef734264 --- /dev/null +++ b/examples/tutorials/tracing/.env.example @@ -0,0 +1,3 @@ +CHAT_DEPLOYMENT_NAME=gpt-35-turbo +AZURE_OPENAI_API_KEY= +AZURE_OPENAI_ENDPOINT= diff --git a/examples/tutorials/tracing/README.md b/examples/tutorials/tracing/README.md new file mode 100644 index 00000000000..1ac2c40bbdb --- /dev/null +++ b/examples/tutorials/tracing/README.md @@ -0,0 +1,112 @@ +--- +resources: examples/tutorials/tracing/ +--- + +## Tracing + +Prompt flow provides the tracing feature to capture and visualize the internal execution details for all flows. + +For `DAG flow`, user can track and visualize node level inputs/outputs of flow execution, it provides critical insights for developer to understand the internal details of execution. + +For `Flex flow` developers, who might use different frameworks (langchain, semantic kernel, OpenAI, kinds of agents) to create LLM based applications, prompt flow allow user to instrument their code in a [OpenTelemetry](https://opentelemetry.io/) compatible way, and visualize using UI provided by promptflow devkit. + +## Instrumenting user's code +#### Enable trace for LLM calls +Let's start with the simplest example, add single line code `start_trace()` to enable trace for LLM calls in your application. +```python +from openai import OpenAI +from promptflow.tracing import start_trace + +# start_trace() will print a url for trace detail visualization +start_trace() + +client = OpenAI() + +completion = client.chat.completions.create( + model="gpt-4", + messages=[ + {"role": "system", "content": "You are a poetic assistant, skilled in explaining complex programming concepts with creative flair."}, + {"role": "user", "content": "Compose a poem that explains the concept of recursion in programming."} + ] +) + +print(completion.choices[0].message) +``` + +With the trace url, user will see a trace list that corresponding to each LLM calls: +![LLM-trace-list](../../../docs/media/trace/LLM-trace-list.png) + +Click on line record, the LLM detail will be displayed with chat window experience, together with other LLM call params: +![LLM-trace-detail](../../../docs/media/trace/LLM-trace-detail.png) + +More examples of adding trace for [autogen](https://microsoft.github.io/autogen/) and [langchain](https://python.langchain.com/docs/get_started/introduction/): + +1. **[Add trace for Autogen](./autogen-groupchat/)** + +![autogen-trace-detail](../../../docs/media/trace/autogen-trace-detail.png) + +2. **[Add trace for Langchain](./langchain)** + +![langchain-trace-detail](../../../docs/media/trace/langchain-trace-detail.png) + +#### Trace for any function +More common scenario is the application has complicated code structure, and developer would like to add trace on critical path that they would like to debug and monitor. + +See the **[math_to_code](./math_to_code.py)** example on how to use `@trace`. + +```python +from promptflow.tracing import trace +# trace your function +@trace +def code_gen(client: AzureOpenAI, question: str) -> str: + sys_prompt = ( + "I want you to act as a Math expert specializing in Algebra, Geometry, and Calculus. " + "Given the question, develop python code to model the user's question. " + "Make sure only reply the executable code, no other words." + ) + completion = client.chat.completions.create( + model=os.getenv("CHAT_DEPLOYMENT_NAME", "gpt-35-turbo"), + messages=[ + { + "role": "system", + "content": sys_prompt, + }, + {"role": "user", "content": question}, + ], + ) + raw_code = completion.choices[0].message.content + result = code_refine(raw_code) + return result +``` + +Execute below command will get an URL to display the trace records and trace details of each test. + +```bash +python math_to_code.py +``` + +## Trace visualization in flow test and batch run +### Flow test + +If your application is created with DAG flow, all flow test and batch run will be automatically enable trace function. Take the **[chat_with_pdf](../../flows/chat/chat-with-pdf/)** as example. + +Run `pf flow test --flow .`, each flow test will generate single line in the trace UI: +![flow-trace-record](../../../docs/media/trace/flow-trace-records.png) + +Click a record, the trace details will be visualized as tree view. + +![flow-trace-detail](../../../docs/media/trace/flow-trace-detail.png) + +### Evaluate against batch data +Keep using **[chat_with_pdf](../../flows/chat/chat-with-pdf/)** as example, to trigger a batch run, you can use below commands: + +```shell +pf run create -f batch_run.yaml +``` +Or +```shell +pf run create --flow . --data "./data/bert-paper-qna.jsonl" --column-mapping chat_history='${data.chat_history}' pdf_url='${data.pdf_url}' question='${data.question}' +``` +Then you will get a run related trace URL, e.g. http://localhost:52008/v1.0/ui/traces?run=chat_with_pdf_variant_0_20240226_181222_219335 + +![batch_run_record](../../../docs/media/trace/batch_run_record.png) \ No newline at end of file diff --git a/examples/tutorials/tracing/autogen-groupchat/.gitignore b/examples/tutorials/tracing/autogen-groupchat/.gitignore new file mode 100644 index 00000000000..66c8ac382bd --- /dev/null +++ b/examples/tutorials/tracing/autogen-groupchat/.gitignore @@ -0,0 +1,2 @@ +OAI_CONFIG_LIST.json +groupchat \ No newline at end of file diff --git a/examples/tutorials/tracing/autogen-groupchat/OAI_CONFIG_LIST.json.example b/examples/tutorials/tracing/autogen-groupchat/OAI_CONFIG_LIST.json.example new file mode 100644 index 00000000000..62d8e334482 --- /dev/null +++ b/examples/tutorials/tracing/autogen-groupchat/OAI_CONFIG_LIST.json.example @@ -0,0 +1,16 @@ +[ + { + "model": "gpt-4", + "api_key": "", + "base_url": "", + "api_type": "azure", + "api_version": "2023-06-01-preview" + }, + { + "model": "gpt-35-turbo", + "api_key": "", + "base_url": "", + "api_type": "azure", + "api_version": "2023-06-01-preview" + } +] \ No newline at end of file diff --git a/examples/tutorials/tracing/autogen-groupchat/README.md b/examples/tutorials/tracing/autogen-groupchat/README.md new file mode 100644 index 00000000000..ef405b1909b --- /dev/null +++ b/examples/tutorials/tracing/autogen-groupchat/README.md @@ -0,0 +1,6 @@ +# Tracing existing application using promptflow: Auto Generated Agent Group Chat + +AutoGen offers conversable agents powered by LLM, tool or human, which can be used to perform tasks collectively via automated chat. This framework allows tool use and human participation through multi-agent conversation. +Please find documentation about this feature [here](https://microsoft.github.io/autogen/docs/Use-Cases/agent_chat). + +Check out this [notebook](./agentchat_groupchat.ipynb) for example. \ No newline at end of file diff --git a/examples/tutorials/tracing/autogen-groupchat/requirements.txt b/examples/tutorials/tracing/autogen-groupchat/requirements.txt new file mode 100644 index 00000000000..61335f84893 --- /dev/null +++ b/examples/tutorials/tracing/autogen-groupchat/requirements.txt @@ -0,0 +1,3 @@ +promptflow +pyautogen>=0.2.9 +pydantic>=2.6.0 \ No newline at end of file diff --git a/examples/tutorials/tracing/autogen-groupchat/trace-autogen-groupchat.ipynb b/examples/tutorials/tracing/autogen-groupchat/trace-autogen-groupchat.ipynb new file mode 100644 index 00000000000..cbbf9d91a79 --- /dev/null +++ b/examples/tutorials/tracing/autogen-groupchat/trace-autogen-groupchat.ipynb @@ -0,0 +1,218 @@ +{ + "cells": [ + { + "attachments": {}, + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Tracing existing application using promptflow: Auto Generated Agent Group Chat\n", + "\n", + "AutoGen offers conversable agents powered by LLM, tool or human, which can be used to perform tasks collectively via automated chat. This framework allows tool use and human participation through multi-agent conversation.\n", + "Please find documentation about this feature [here](https://microsoft.github.io/autogen/docs/Use-Cases/agent_chat).\n", + "\n", + "This notebook is modified based on https://github.com/microsoft/autogen/blob/main/notebook/agentchat_groupchat.ipynb. \n", + "\n", + "**Learning Objectives** - Upon completing this tutorial, you should be able to:\n", + "\n", + "- Trace LLM (OpenAI) Calls and visualize the trace of your application.\n", + "\n", + "## Requirements\n", + "\n", + "AutoGen requires `Python>=3.8`. To run this notebook example, please install required dependencies:" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "%%capture --no-stderr\n", + "%pip install -r ./requirements.txt" + ] + }, + { + "attachments": {}, + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Set your API Endpoint\n", + "\n", + "You can create the config file named [OAI_CONFIG_LIST.json](OAI_CONFIG_LIST.json) from example file: [OAI_CONFIG_LIST.json.example](OAI_CONFIG_LIST.json.example).\n", + "\n", + "Below code use the [`config_list_from_json`](https://microsoft.github.io/autogen/docs/reference/oai/openai_utils#config_list_from_json) function loads a list of configurations from an environment variable or a json file. \n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "import autogen\n", + "\n", + "# please ensure you have a json config file\n", + "env_or_file = \"OAI_CONFIG_LIST.json\"\n", + "\n", + "# filters the configs by models (you can filter by other keys as well). Only the gpt-4 models are kept in the list based on the filter condition.\n", + "\n", + "# gpt4\n", + "# config_list = autogen.config_list_from_json(\n", + "# env_or_file,\n", + "# filter_dict={\n", + "# \"model\": [\"gpt-4\", \"gpt-4-0314\", \"gpt4\", \"gpt-4-32k\", \"gpt-4-32k-0314\", \"gpt-4-32k-v0314\"],\n", + "# },\n", + "# )\n", + "\n", + "# gpt35\n", + "config_list = autogen.config_list_from_json(\n", + " env_or_file,\n", + " filter_dict={\n", + " \"model\": {\n", + " \"gpt-35-turbo\",\n", + " \"gpt-3.5-turbo\",\n", + " \"gpt-3.5-turbo-16k\",\n", + " \"gpt-3.5-turbo-0301\",\n", + " \"chatgpt-35-turbo-0301\",\n", + " \"gpt-35-turbo-v0301\",\n", + " },\n", + " },\n", + ")" + ] + }, + { + "attachments": {}, + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Construct Agents" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "import os\n", + "\n", + "os.environ[\"AUTOGEN_USE_DOCKER\"] = \"False\"\n", + "\n", + "llm_config = {\"config_list\": config_list, \"cache_seed\": 42}\n", + "user_proxy = autogen.UserProxyAgent(\n", + " name=\"User_proxy\",\n", + " system_message=\"A human admin.\",\n", + " code_execution_config={\n", + " \"last_n_messages\": 2,\n", + " \"work_dir\": \"groupchat\",\n", + " \"use_docker\": False,\n", + " }, # Please set use_docker=True if docker is available to run the generated code. Using docker is safer than running the generated code directly.\n", + " human_input_mode=\"TERMINATE\",\n", + ")\n", + "coder = autogen.AssistantAgent(\n", + " name=\"Coder\",\n", + " llm_config=llm_config,\n", + ")\n", + "pm = autogen.AssistantAgent(\n", + " name=\"Product_manager\",\n", + " system_message=\"Creative in software product ideas.\",\n", + " llm_config=llm_config,\n", + ")\n", + "groupchat = autogen.GroupChat(agents=[user_proxy, coder, pm], messages=[], max_round=12)\n", + "manager = autogen.GroupChatManager(groupchat=groupchat, llm_config=llm_config)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Start Chat with promptflow trace" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "from promptflow.tracing import start_trace\n", + "\n", + "# start a trace session, and print a url for user to check trace\n", + "# traces will be collected into below collection name\n", + "start_trace(collection=\"autogen-groupchat\")" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Open the url you get in start_trace output, when running below code, you will be able to see new traces in the UI. " + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "from opentelemetry import trace\n", + "import json\n", + "\n", + "\n", + "tracer = trace.get_tracer(\"my_tracer\")\n", + "# Create a root span\n", + "with tracer.start_as_current_span(\"autogen\") as span:\n", + " message = \"Find a latest paper about gpt-4 on arxiv and find its potential applications in software.\"\n", + " user_proxy.initiate_chat(\n", + " manager,\n", + " message=message,\n", + " clear_history=True,\n", + " )\n", + " span.set_attribute(\"custom\", \"custom attribute value\")\n", + " # recommend to store inputs and outputs as events\n", + " span.add_event(\n", + " \"promptflow.function.inputs\", {\"payload\": json.dumps(dict(message=message))}\n", + " )\n", + " span.add_event(\n", + " \"promptflow.function.output\", {\"payload\": json.dumps(user_proxy.last_message())}\n", + " )\n", + "# type exit to terminate the chat" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Next Steps\n", + "\n", + "By now you've successfully tracing LLM calls in your app using prompt flow.\n", + "\n", + "You can check out more examples:\n", + "- [Trace your flow](../../../flex-flows/basic/quickstart.ipynb): using promptflow @trace to structurally tracing your app and do evaluation on it with batch run." + ] + } + ], + "metadata": { + "description": "Tracing LLM calls in autogen group chat application", + "kernelspec": { + "display_name": "prompt_flow", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.10.13" + }, + "resources": "" + }, + "nbformat": 4, + "nbformat_minor": 2 +} diff --git a/examples/tutorials/tracing/custom-otlp-collector/llm.py b/examples/tutorials/tracing/custom-otlp-collector/llm.py new file mode 100644 index 00000000000..cdc72f92fe8 --- /dev/null +++ b/examples/tutorials/tracing/custom-otlp-collector/llm.py @@ -0,0 +1,51 @@ +import os + +from dotenv import load_dotenv +from openai.version import VERSION as OPENAI_VERSION + +from promptflow.tracing import trace + + +def get_client(): + if OPENAI_VERSION.startswith("0."): + raise Exception( + "Please upgrade your OpenAI package to version >= 1.0.0 or using the command: pip install --upgrade openai." + ) + api_key = os.environ.get("OPENAI_API_KEY", None) + if api_key: + from openai import OpenAI + + return OpenAI() + else: + from openai import AzureOpenAI + + return AzureOpenAI(api_version=os.environ.get("OPENAI_API_VERSION", "2023-07-01-preview")) + + +@trace +def my_llm_tool(prompt: str, deployment_name: str) -> str: + if "OPENAI_API_KEY" not in os.environ and "AZURE_OPENAI_API_KEY" not in os.environ: + # load environment variables from .env file + load_dotenv() + + if "OPENAI_API_KEY" not in os.environ and "AZURE_OPENAI_API_KEY" not in os.environ: + raise Exception("Please specify environment variables: OPENAI_API_KEY or AZURE_OPENAI_API_KEY") + messages = [ + {"role": "system", "content": "You are a helpful assistant."}, + {"role": "user", "content": prompt}, + ] + response = get_client().chat.completions.create( + messages=messages, + model=deployment_name, + ) + + # get first element because prompt is single. + return response.choices[0].message.content + + +if __name__ == "__main__": + result = my_llm_tool( + prompt="Write a simple Hello, world! program that displays the greeting message.", + deployment_name="text-davinci-003", + ) + print(result) diff --git a/examples/tutorials/tracing/custom-otlp-collector/otlp-trace-collector.ipynb b/examples/tutorials/tracing/custom-otlp-collector/otlp-trace-collector.ipynb new file mode 100644 index 00000000000..291d254191d --- /dev/null +++ b/examples/tutorials/tracing/custom-otlp-collector/otlp-trace-collector.ipynb @@ -0,0 +1,191 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Tracing with Custom OpenTelemetry Collector\n", + "\n", + "In certain scenario you might want to user your own [OpenTelemetry Collector](https://opentelemetry.io/docs/collector/) and keep your dependency mimimal.\n", + "\n", + "In such case you can avoid the dependency of [promptflow-devkit](https://pypi.org/project/promptflow-devkit/) which provides the default collector from promptflow, and only depdent on [promptflow-tracing](https://pypi.org/project/promptflow-tracing), \n", + "\n", + "\n", + "**Learning Objectives** - Upon completing this tutorial, you should be able to:\n", + "\n", + "- Trace LLM (OpenAI) Calls using Custom OpenTelemetry Collector.\n", + "\n", + "## 0. Install dependent packages" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "%%capture --no-stderr\n", + "%pip install -r ./requirements.txt" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# 1. Set up an OpenTelemetry collector\n", + "\n", + "Implement a simple collector that print the traces to stdout." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "import threading\n", + "from http.server import BaseHTTPRequestHandler, HTTPServer\n", + "\n", + "from opentelemetry.proto.collector.trace.v1.trace_service_pb2 import (\n", + " ExportTraceServiceRequest,\n", + ")\n", + "\n", + "\n", + "class OTLPCollector(BaseHTTPRequestHandler):\n", + " def do_POST(self):\n", + " content_length = int(self.headers[\"Content-Length\"])\n", + " post_data = self.rfile.read(content_length)\n", + "\n", + " traces_request = ExportTraceServiceRequest()\n", + " traces_request.ParseFromString(post_data)\n", + "\n", + " print(\"Received a POST request with data:\")\n", + " print(traces_request)\n", + "\n", + " self.send_response(200, \"Traces received\")\n", + " self.end_headers()\n", + " self.wfile.write(b\"Data received and printed to stdout.\\n\")\n", + "\n", + "\n", + "def run_server(port: int):\n", + " server_address = (\"\", port)\n", + " httpd = HTTPServer(server_address, OTLPCollector)\n", + " httpd.serve_forever()\n", + "\n", + "\n", + "def start_server(port: int):\n", + " server_thread = threading.Thread(target=run_server, args=(port,))\n", + " server_thread.daemon = True\n", + " server_thread.start()\n", + " print(f\"Server started on port {port}. Access http://localhost:{port}/\")\n", + " return server_thread" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "# invoke the collector service, serving on OTLP port\n", + "start_server(port=4318)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# 2. Trace your application with tracing\n", + "Assume we already have a Python function that calls OpenAI API\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "from llm import my_llm_tool\n", + "\n", + "deployment_name = \"gpt-35-turbo-16k\"" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Call `start_trace()`, and configure the OTLP exporter to above collector." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "from promptflow.tracing import start_trace\n", + "\n", + "start_trace()" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "from opentelemetry import trace\n", + "from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter\n", + "from opentelemetry.sdk.trace.export import BatchSpanProcessor\n", + "\n", + "tracer_provider = trace.get_tracer_provider()\n", + "otlp_span_exporter = OTLPSpanExporter()\n", + "tracer_provider.add_span_processor(BatchSpanProcessor(otlp_span_exporter))" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Visualize traces in the stdout." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "result = my_llm_tool(\n", + " prompt=\"Write a simple Hello, world! program that displays the greeting message when executed.\",\n", + " deployment_name=deployment_name,\n", + ")\n", + "result\n", + "# view the traces under this cell" + ] + } + ], + "metadata": { + "description": "A tutorial on how to levarage custom OTLP collector.", + "kernelspec": { + "display_name": "tracing-rel", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.9.17" + }, + "resources": "" + }, + "nbformat": 4, + "nbformat_minor": 2 +} diff --git a/examples/tutorials/tracing/custom-otlp-collector/requirements.txt b/examples/tutorials/tracing/custom-otlp-collector/requirements.txt new file mode 100644 index 00000000000..adc4a004819 --- /dev/null +++ b/examples/tutorials/tracing/custom-otlp-collector/requirements.txt @@ -0,0 +1,3 @@ +promptflow-tracing +python-dotenv +opentelemetry-exporter-otlp-proto-http \ No newline at end of file diff --git a/examples/tutorials/tracing/langchain/requirements.txt b/examples/tutorials/tracing/langchain/requirements.txt new file mode 100644 index 00000000000..fab24c4abd6 --- /dev/null +++ b/examples/tutorials/tracing/langchain/requirements.txt @@ -0,0 +1,4 @@ +promptflow +langchain>=0.1.5 +opentelemetry-instrumentation-langchain +python-dotenv \ No newline at end of file diff --git a/examples/tutorials/tracing/langchain/trace-langchain.ipynb b/examples/tutorials/tracing/langchain/trace-langchain.ipynb new file mode 100644 index 00000000000..f5bbc269895 --- /dev/null +++ b/examples/tutorials/tracing/langchain/trace-langchain.ipynb @@ -0,0 +1,167 @@ +{ + "cells": [ + { + "attachments": {}, + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Tracing LangChain apps using Prompt flow & OpenTelemery\n", + "\n", + "The tracing capability provided by Prompt flow is built on top of [OpenTelemetry](https://opentelemetry.io/) that gives you complete observability over your LLM applications. \n", + "And there is already a rich set of OpenTelemetry [instrumentation packages](https://opentelemetry.io/ecosystem/registry/?language=python&component=instrumentation) available in OpenTelemetry Eco System. \n", + "\n", + "In this example we will demo how to use [opentelemetry-instrumentation-langchain](https://github.com/traceloop/openllmetry/tree/main/packages/opentelemetry-instrumentation-langchain) package provided by [Traceloop](https://www.traceloop.com/) to instrument [LangChain](https://python.langchain.com/docs/get_started/quickstart) apps.\n", + "\n", + "\n", + "**Learning Objectives** - Upon completing this tutorial, you should be able to:\n", + "\n", + "- Trace `LangChain` applications and visualize the trace of your application in prompt flow.\n", + "\n", + "## Requirements\n", + "\n", + "To run this notebook example, please install required dependencies:" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "%%capture --no-stderr\n", + "%pip install -r ./requirements.txt" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Start tracing LangChain using promptflow\n", + "\n", + "Start trace using `promptflow.start_trace`, click the printed url to view the trace ui." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "from promptflow.tracing import start_trace\n", + "\n", + "# start a trace session, and print a url for user to check trace\n", + "start_trace()" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "By default, `opentelemetry-instrumentation-langchain` instrumentation logs prompts, completions, and embeddings to span attributes. This gives you a clear visibility into how your LLM application is working, and can make it easy to debug and evaluate the quality of the outputs." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "# enable langchain instrumentation\n", + "from opentelemetry.instrumentation.langchain import LangchainInstrumentor\n", + "\n", + "instrumentor = LangchainInstrumentor()\n", + "if not instrumentor.is_instrumented_by_opentelemetry:\n", + " instrumentor.instrument()" + ] + }, + { + "attachments": {}, + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Run a simple Lang Chain\n", + "\n", + "Below is an example targeting an AzureOpenAI resource. Please configure you `API_KEY` using an [.env](../.env) file, see [.env.example](../.env.example)." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "import os\n", + "\n", + "from langchain.chat_models import AzureChatOpenAI\n", + "from langchain.prompts.chat import ChatPromptTemplate\n", + "from langchain.chains import LLMChain\n", + "from dotenv import load_dotenv\n", + "\n", + "if \"AZURE_OPENAI_API_KEY\" not in os.environ:\n", + " # load environment variables from .env file\n", + " load_dotenv()\n", + "\n", + "llm = AzureChatOpenAI(\n", + " deployment_name=os.environ[\"CHAT_DEPLOYMENT_NAME\"],\n", + " openai_api_key=os.environ[\"AZURE_OPENAI_API_KEY\"],\n", + " azure_endpoint=os.environ[\"AZURE_OPENAI_ENDPOINT\"],\n", + " openai_api_type=\"azure\",\n", + " openai_api_version=\"2023-07-01-preview\",\n", + " temperature=0,\n", + ")\n", + "\n", + "prompt = ChatPromptTemplate.from_messages(\n", + " [\n", + " (\"system\", \"You are world class technical documentation writer.\"),\n", + " (\"user\", \"{input}\"),\n", + " ]\n", + ")\n", + "\n", + "chain = LLMChain(llm=llm, prompt=prompt, output_key=\"metrics\")\n", + "chain({\"input\": \"What is ChatGPT?\"})" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "You should be able to see traces of the chain in promptflow UI now. Check the cell with `start_trace` on the trace UI url." + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Next Steps\n", + "\n", + "By now you've successfully tracing LLM calls in your app using prompt flow.\n", + "\n", + "You can check out more examples:\n", + "- [Trace your flow](../../../flex-flows/basic/quickstart.ipynb): using promptflow @trace to structurally tracing your app and do evaluation on it with batch run." + ] + } + ], + "metadata": { + "description": "Tracing LLM calls in langchain application", + "kernelspec": { + "display_name": "prompt_flow", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.9.17" + }, + "resources": "" + }, + "nbformat": 4, + "nbformat_minor": 2 +} diff --git a/examples/tutorials/tracing/math_to_code.py b/examples/tutorials/tracing/math_to_code.py new file mode 100644 index 00000000000..780432061fb --- /dev/null +++ b/examples/tutorials/tracing/math_to_code.py @@ -0,0 +1,93 @@ +import ast +import os + +from dotenv import load_dotenv +from openai import AzureOpenAI + +from promptflow.tracing import start_trace, trace + + +@trace +def infinite_loop_check(code_snippet): + tree = ast.parse(code_snippet) + for node in ast.walk(tree): + if isinstance(node, ast.While): + if not node.orelse: + return True + return False + + +@trace +def syntax_error_check(code_snippet): + try: + ast.parse(code_snippet) + except SyntaxError: + return True + return False + + +@trace +def error_fix(code_snippet): + tree = ast.parse(code_snippet) + for node in ast.walk(tree): + if isinstance(node, ast.While): + if not node.orelse: + node.orelse = [ast.Pass()] + return ast.unparse(tree) + + +@trace +def code_refine(original_code: str) -> str: + original_code = original_code.replace("python", "").replace("`", "").strip() + fixed_code = None + + if infinite_loop_check(original_code): + fixed_code = error_fix(original_code) + else: + fixed_code = original_code + + if syntax_error_check(fixed_code): + fixed_code = error_fix(fixed_code) + + return fixed_code + + +@trace +def code_gen(client: AzureOpenAI, question: str) -> str: + sys_prompt = ( + "I want you to act as a math expert specializing in Algebra, Geometry, and Calculus. " + "Given the question, develop python code to model the user's question. " + "Make sure only reply the executable code, no other words." + ) + completion = client.chat.completions.create( + model=os.getenv("CHAT_DEPLOYMENT_NAME", "gpt-35-turbo"), + messages=[ + { + "role": "system", + "content": sys_prompt, + }, + {"role": "user", "content": question}, + ], + ) + raw_code = completion.choices[0].message.content + result = code_refine(raw_code) + return result + + +if __name__ == "__main__": + start_trace() + + if "AZURE_OPENAI_API_KEY" not in os.environ: + # load environment variables from .env file + load_dotenv() + + client = AzureOpenAI( + api_key=os.getenv("AZURE_OPENAI_API_KEY"), + azure_endpoint=os.getenv("AZURE_OPENAI_ENDPOINT"), + api_version="2023-12-01-preview", + ) + + question = "What is 37593 * 67?" + + code = code_gen(client, question) + print(code) diff --git a/scripts/docs/api_doc_templates/package.rst_t b/scripts/docs/api_doc_templates/package.rst_t index 2610d09c415..c3bcdbb28a2 100644 --- a/scripts/docs/api_doc_templates/package.rst_t +++ b/scripts/docs/api_doc_templates/package.rst_t @@ -16,7 +16,7 @@ {%- if is_namespace %} {{- [pkgname, "namespace"] | join(" ") | e | heading }} {% else %} -{{- [pkgname, ""] | join(" ") | e | heading }} +{{- [pkgname, "module"] | join(" ") | e | heading }} {% endif %} {%- if is_namespace %} diff --git a/scripts/docs/doc_generation.ps1 b/scripts/docs/doc_generation.ps1 index 571d28184e7..e481c2161eb 100644 --- a/scripts/docs/doc_generation.ps1 +++ b/scripts/docs/doc_generation.ps1 @@ -110,7 +110,7 @@ if($WithReferenceDoc){ $SubPkgRefDocPath = [System.IO.Path]::Combine($RefDocPath, $Item.Name) Write-Host "===============Build $Item Reference Doc===============" $TemplatePath = [System.IO.Path]::Combine($RepoRootPath, "scripts\docs\api_doc_templates") - sphinx-apidoc --module-first --no-headings --no-toc --implicit-namespaces "$SubPkgPath" -o "$SubPkgRefDocPath" -t $TemplatePath | Tee-Object -FilePath $SphinxApiDoc + sphinx-apidoc --separate --module-first --no-toc --implicit-namespaces "$SubPkgPath" -o "$SubPkgRefDocPath" -t $TemplatePath | Tee-Object -FilePath $SphinxApiDoc $SubPkgWarningsAndErrors = Select-String -Path $SphinxApiDoc -Pattern $WarningErrorPattern if($SubPkgWarningsAndErrors){ $ApidocWarningsAndErrors.AddRange($SubPkgWarningsAndErrors) diff --git a/scripts/readme/ghactions_driver/readme_templates/README.md.jinja2 b/scripts/readme/ghactions_driver/readme_templates/README.md.jinja2 index 8cdf3026a8c..fa9955bae8c 100644 --- a/scripts/readme/ghactions_driver/readme_templates/README.md.jinja2 +++ b/scripts/readme/ghactions_driver/readme_templates/README.md.jinja2 @@ -28,6 +28,20 @@ {% for tutorial in tutorials.readmes %}| [{{ tutorial.name }}]({{ tutorial.path }}) | [![{{tutorial.pipeline_name}}](https://github.com/microsoft/promptflow/actions/workflows/{{tutorial.yaml_name}}/badge.svg?branch={{branch}})](https://github.com/microsoft/promptflow/actions/workflows/{{tutorial.yaml_name}}) | {{ tutorial.description }} | {% endfor %} +### Prompty ([prompty](prompty)) + +| path | status | description | +------|--------|------------- +{% for flow in prompty.readmes %}| [{{ flow.name }}]({{ flow.path }}) | [![{{flow.pipeline_name}}](https://github.com/microsoft/promptflow/actions/workflows/{{flow.yaml_name}}/badge.svg?branch={{branch}})](https://github.com/microsoft/promptflow/actions/workflows/{{flow.yaml_name}}) | {{ flow.description }} | +{% endfor %} + +### Flex Flows ([flex-flows](flex-flows)) + +| path | status | description | +------|--------|------------- +{% for flow in flex_flows.readmes %}| [{{ flow.name }}]({{ flow.path }}) | [![{{flow.pipeline_name}}](https://github.com/microsoft/promptflow/actions/workflows/{{flow.yaml_name}}/badge.svg?branch={{branch}})](https://github.com/microsoft/promptflow/actions/workflows/{{flow.yaml_name}}) | {{ flow.description }} | +{% endfor %} + ### Flows ([flows](flows)) #### [Standard flows](flows/standard/) @@ -76,6 +90,10 @@ {% endfor %} {%- if connections.notebooks|length > 0 -%}{% for connection in connections.notebooks %}| [{{ connection.name }}]({{ connection.path }}) | [![{{connection.pipeline_name}}](https://github.com/microsoft/promptflow/actions/workflows/{{connection.yaml_name}}/badge.svg?branch={{branch}})](https://github.com/microsoft/promptflow/actions/workflows/{{connection.yaml_name}}) | {{ connection.description }} | {% endfor %}{% endif %} +{%- if flex_flows.notebooks|length > 0 -%}{% for flow in flex_flows.notebooks %}| [{{ flow.name }}]({{ flow.path }}) | [![{{flow.pipeline_name}}](https://github.com/microsoft/promptflow/actions/workflows/{{flow.yaml_name}}/badge.svg?branch={{branch}})](https://github.com/microsoft/promptflow/actions/workflows/{{flow.yaml_name}}) | {{ flow.description }} | +{% endfor %}{% endif %} +{%- if prompty.notebooks|length > 0 -%}{% for flow in prompty.notebooks %}| [{{ flow.name }}]({{ flow.path }}) | [![{{flow.pipeline_name}}](https://github.com/microsoft/promptflow/actions/workflows/{{flow.yaml_name}}/badge.svg?branch={{branch}})](https://github.com/microsoft/promptflow/actions/workflows/{{flow.yaml_name}}) | {{ flow.description }} | +{% endfor %}{% endif %} {%- if chats.notebooks|length > 0 -%}{% for chat in chats.notebooks %}| [{{ chat.name }}]({{ chat.path }}) | [![{{chat.pipeline_name}}](https://github.com/microsoft/promptflow/actions/workflows/{{chat.yaml_name}}/badge.svg?branch={{branch}})](https://github.com/microsoft/promptflow/actions/workflows/{{chat.yaml_name}}) | {{ chat.description }} | {% endfor %}{% endif %} {%- if evaluations.notebooks|length > 0 -%}{% for evaluation in evaluations.notebooks %}| [{{ evaluation.name }}]({{ evaluation.path }}) | [![{{evaluation.pipeline_name}}](https://github.com/microsoft/promptflow/actions/workflows/{{evaluation.yaml_name}}/badge.svg?branch={{branch}})](https://github.com/microsoft/promptflow/actions/workflows/{{evaluation.yaml_name}}) | {{ evaluation.description }} | diff --git a/scripts/readme/ghactions_driver/workflow_steps/step_create_env.yml.jinja2 b/scripts/readme/ghactions_driver/workflow_steps/step_create_env.yml.jinja2 index 86bf0f90334..863e53104ee 100644 --- a/scripts/readme/ghactions_driver/workflow_steps/step_create_env.yml.jinja2 +++ b/scripts/readme/ghactions_driver/workflow_steps/step_create_env.yml.jinja2 @@ -9,3 +9,8 @@ sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example mv .env.example .env fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi diff --git a/scripts/readme/ghactions_driver/workflow_steps/step_extract_steps_and_run.yml.jinja2 b/scripts/readme/ghactions_driver/workflow_steps/step_extract_steps_and_run.yml.jinja2 index b76dd517409..2d868e3c2ea 100644 --- a/scripts/readme/ghactions_driver/workflow_steps/step_extract_steps_and_run.yml.jinja2 +++ b/scripts/readme/ghactions_driver/workflow_steps/step_extract_steps_and_run.yml.jinja2 @@ -12,6 +12,8 @@ run: | export aoai_api_key=${{ '{{' }}secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ '{{' }} secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{ '{{' }}secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ '{{' }} secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ '{{' }} secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ '{{' }} secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ '{{' }} secrets.TEST_WORKSPACE_NAME_CANARY }} @@ -22,6 +24,8 @@ run: | export aoai_api_key=${{ '{{' }}secrets.AOAI_API_KEY_TEST }} export aoai_api_endpoint=${{ '{{' }} secrets.AOAI_API_ENDPOINT_TEST }} + export AZURE_OPENAI_API_KEY=${{ '{{' }}secrets.AOAI_API_KEY_TEST }} + export AZURE_OPENAI_ENDPOINT=${{ '{{' }} secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ '{{' }} secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ '{{' }} secrets.TEST_WORKSPACE_RG }} export test_workspace_name=${{ '{{' }} secrets.TEST_WORKSPACE_NAME_PROD }} diff --git a/scripts/readme/ghactions_driver/workflow_templates/autogen_workflow.yml.jinja2 b/scripts/readme/ghactions_driver/workflow_templates/autogen_workflow.yml.jinja2 new file mode 100644 index 00000000000..bab8cab1333 --- /dev/null +++ b/scripts/readme/ghactions_driver/workflow_templates/autogen_workflow.yml.jinja2 @@ -0,0 +1,53 @@ +{% extends "workflow_skeleton.yml.jinja2" %} +{% block steps %} +runs-on: ubuntu-latest +steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Azure Login + uses: azure/login@v1 + with: + creds: ${{ '{{' }} secrets.AZURE_CREDENTIALS }} + - name: Setup Python 3.9 environment + uses: actions/setup-python@v4 + with: + python-version: "3.9" + - name: Prepare requirements + run: | + python -m pip install --upgrade pip + pip install -r ${{ '{{' }} github.workspace }}/examples/requirements.txt + pip install -r ${{ '{{' }} github.workspace }}/examples/dev_requirements.txt + - name: setup .env file + working-directory: {{ gh_working_dir }} + run: | + AOAI_API_KEY=${{ '{{' }} secrets.AOAI_API_KEY_TEST }} + AOAI_API_ENDPOINT=${{ '{{' }} secrets.AOAI_API_ENDPOINT_TEST }} + AOAI_API_ENDPOINT=$(echo ${AOAI_API_ENDPOINT//\//\\/}) + if [[ -e .env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example + mv .env.example .env + fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi + if [[ -e OAI_CONFIG_LIST.json.example ]]; then + echo "OAI_CONFIG_LIST replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" OAI_CONFIG_LIST.json.example + mv OAI_CONFIG_LIST.json.example OAI_CONFIG_LIST.json + fi + - name: Create Aoai Connection + run: pf connection create -f ${{ '{{' }} github.workspace }}/examples/connections/azure_openai.yml --set api_key="${{ '{{' }} secrets.AOAI_API_KEY_TEST }}" api_base="${{ '{{' }} secrets.AOAI_API_ENDPOINT_TEST }}" + - name: Test Notebook + working-directory: {{ gh_working_dir }} + run: | + papermill -k python {{ name }}.ipynb {{ name }}.output.ipynb + - name: Upload artifact + if: ${{ '{{' }} always() }} + uses: actions/upload-artifact@v3 + with: + name: artifact + path: {{ gh_working_dir }} +{% endblock steps %} \ No newline at end of file diff --git a/scripts/readme/ghactions_driver/workflow_templates/basic_workflow.yml.jinja2 b/scripts/readme/ghactions_driver/workflow_templates/basic_workflow.yml.jinja2 index 5dda384f6f2..80370b7140f 100644 --- a/scripts/readme/ghactions_driver/workflow_templates/basic_workflow.yml.jinja2 +++ b/scripts/readme/ghactions_driver/workflow_templates/basic_workflow.yml.jinja2 @@ -17,6 +17,22 @@ steps: python -m pip install --upgrade pip pip install -r ${{ '{{' }} github.workspace }}/examples/requirements.txt pip install -r ${{ '{{' }} github.workspace }}/examples/dev_requirements.txt + - name: setup .env file + working-directory: {{ gh_working_dir }} + run: | + AOAI_API_KEY=${{ '{{' }} secrets.AOAI_API_KEY_TEST }} + AOAI_API_ENDPOINT=${{ '{{' }} secrets.AOAI_API_ENDPOINT_TEST }} + AOAI_API_ENDPOINT=$(echo ${AOAI_API_ENDPOINT//\//\\/}) + if [[ -e .env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" .env.example + mv .env.example .env + fi + if [[ -e ../.env.example ]]; then + echo "env replacement" + sed -i -e "s//$AOAI_API_KEY/g" -e "s//$AOAI_API_ENDPOINT/g" ../.env.example + mv ../.env.example ../.env + fi - name: Create Aoai Connection run: pf connection create -f ${{ '{{' }} github.workspace }}/examples/connections/azure_openai.yml --set api_key="${{ '{{' }} secrets.AOAI_API_KEY_TEST }}" api_base="${{ '{{' }} secrets.AOAI_API_ENDPOINT_TEST }}" - name: Test Notebook diff --git a/scripts/readme/readme.py b/scripts/readme/readme.py index e5f0c735de4..aacc2a87e95 100644 --- a/scripts/readme/readme.py +++ b/scripts/readme/readme.py @@ -74,6 +74,14 @@ def write_readme(workflow_telemetries, readme_telemetries): "readmes": [], "notebooks": [], } + flex_flows = { + "readmes": [], + "notebooks": [], + } + prompty = { + "readmes": [], + "notebooks": [], + } flows = { "readmes": [], "notebooks": [], @@ -166,6 +174,26 @@ def write_readme(workflow_telemetries, readme_telemetries): "description": description, } ) + elif gh_working_dir.startswith("examples/flex-flows"): + flex_flows["notebooks"].append( + { + "name": notebook_name, + "path": notebook_path, + "pipeline_name": pipeline_name, + "yaml_name": yaml_name, + "description": description, + } + ) + elif gh_working_dir.startswith("examples/prompty"): + prompty["notebooks"].append( + { + "name": notebook_name, + "path": notebook_path, + "pipeline_name": pipeline_name, + "yaml_name": yaml_name, + "description": description, + } + ) elif gh_working_dir.startswith("examples/tools/use-cases"): toolusecases["notebooks"].append( { @@ -257,6 +285,26 @@ def write_readme(workflow_telemetries, readme_telemetries): "description": description, } ) + elif readme_folder.startswith("examples/flex-flows"): + flex_flows["readmes"].append( + { + "name": notebook_name, + "path": notebook_path, + "pipeline_name": pipeline_name, + "yaml_name": yaml_name, + "description": description, + } + ) + elif readme_folder.startswith("examples/prompty"): + prompty["readmes"].append( + { + "name": notebook_name, + "path": notebook_path, + "pipeline_name": pipeline_name, + "yaml_name": yaml_name, + "description": description, + } + ) elif readme_folder.startswith("examples/tools/use-cases"): toolusecases["readmes"].append( { @@ -278,6 +326,8 @@ def write_readme(workflow_telemetries, readme_telemetries): replacement = { "branch": BRANCH, "tutorials": tutorials, + "flex_flows": flex_flows, + "prompty": prompty, "flows": flows, "evaluations": evaluations, "chats": chats, @@ -310,6 +360,8 @@ def main(check): input_glob_readme = [ "examples/flows/**/README.md", + "examples/flex-flows/**/README.md", + "examples/prompty/**/README.md", "examples/connections/**/README.md", "examples/tutorials/e2e-development/*.md", "examples/tutorials/flow-fine-tuning-evaluation/*.md", diff --git a/scripts/readme/workflow_generator.py b/scripts/readme/workflow_generator.py index 86e2217c86b..699faa85ce2 100644 --- a/scripts/readme/workflow_generator.py +++ b/scripts/readme/workflow_generator.py @@ -82,6 +82,8 @@ def write_notebook_workflow(notebook, name, output_telemetry=Telemetry()): template = env.get_template("pdf_workflow.yml.jinja2") elif "flowasfunction" in workflow_name: template = env.get_template("flow_as_function.yml.jinja2") + elif "traceautogengroupchat" in workflow_name: + template = env.get_template("autogen_workflow.yml.jinja2") content = template.render( { diff --git a/src/promptflow-azure/promptflow/azure/_entities/_flow.py b/src/promptflow-azure/promptflow/azure/_entities/_flow.py index d55fd23c6c8..082bf0c330c 100644 --- a/src/promptflow-azure/promptflow/azure/_entities/_flow.py +++ b/src/promptflow-azure/promptflow/azure/_entities/_flow.py @@ -11,6 +11,7 @@ import pydash from promptflow._constants import FlowLanguage +from promptflow._proxy import ProxyFactory from promptflow._sdk._constants import SERVICE_FLOW_TYPE_2_CLIENT_FLOW_TYPE, AzureFlowSource, FlowType from promptflow._sdk._utils import PromptflowIgnoreFile, load_yaml, remove_empty_element_from_dict from promptflow._utils.flow_utils import dump_flow_dag, load_flow_dag, resolve_flow_path @@ -134,7 +135,7 @@ def _remove_additional_includes(cls, flow_dag: dict): @classmethod def _resolve_signature(cls, code: Path, data: dict): """Resolve signature for flex flow. Return True if resolved.""" - from promptflow import PFClient + from promptflow.client import PFClient pf = PFClient() return pf.flows._update_signatures(code=code, data=data) @@ -160,6 +161,13 @@ def _try_build_local_code(self) -> Optional[Code]: # promptflow snapshot will always be uploaded to default storage code.datastore = DEFAULT_STORAGE dag_updated = self._resolve_requirements(flow_dir, flow_dag) or dag_updated + + # generate .promptflow/flow.json for csharp flow as it's required to infer signature for csharp flow + flow_directory, flow_file = resolve_flow_path(code.path) + # TODO: pass in init_kwargs to support csharp class init flex flow + ProxyFactory().create_inspector_proxy(self.language).prepare_metadata( + flow_file=flow_directory / flow_file, working_dir=flow_directory + ) dag_updated = self._resolve_signature(flow_dir, flow_dag) or dag_updated self._environment = self._resolve_environment(flow_dir, flow_dag) if dag_updated: diff --git a/src/promptflow-azure/promptflow/azure/_storage/cosmosdb/summary.py b/src/promptflow-azure/promptflow/azure/_storage/cosmosdb/summary.py index 63c6e4ab9e6..41cd398bb9b 100644 --- a/src/promptflow-azure/promptflow/azure/_storage/cosmosdb/summary.py +++ b/src/promptflow-azure/promptflow/azure/_storage/cosmosdb/summary.py @@ -27,7 +27,7 @@ @dataclass class SummaryLine: """ - This class represents an Item in Summary container + This class represents an Item in LineSummary container and each value for evaluations dict. """ id: str @@ -54,27 +54,6 @@ class SummaryLine: line_run_id: str = None -@dataclass -class LineEvaluation: - """ - This class represents an evaluation value in Summary container item. - - """ - - outputs: typing.Dict - trace_id: str - root_span_id: str - name: str - created_by: typing.Dict - collection_id: str - flow_id: str = None - # Only for batch run - batch_run_id: str = None - line_number: str = None - # Only for line run - line_run_id: str = None - - class Summary: def __init__(self, span: Span, collection_id: str, created_by: typing.Dict, logger: logging.Logger) -> None: self.span = span @@ -93,7 +72,7 @@ def persist(self, client: ContainerProxy): # For non root span, write a placeholder item to LineSummary table. self._persist_running_item(client) return - self._parse_inputs_outputs_from_events() + self._prepare_db_item() # Persist root span as a line run. self._persist_line_run(client) @@ -191,9 +170,8 @@ def _process_value(value): else: return _process_value(content) - def _persist_line_run(self, client: ContainerProxy): - attributes: dict = self.span.attributes - + def _prepare_db_item(self): + self._parse_inputs_outputs_from_events() session_id = self.session_id start_time = self.span.start_time.isoformat() end_time = self.span.end_time.isoformat() @@ -202,6 +180,7 @@ def _persist_line_run(self, client: ContainerProxy): # Convert ISO 8601 formatted strings to datetime objects latency = (self.span.end_time - self.span.start_time).total_seconds() # calculate `cumulative_token_count` + attributes: dict = self.span.attributes completion_token_count = int(attributes.get(SpanAttributeFieldName.COMPLETION_TOKEN_COUNT, 0)) prompt_token_count = int(attributes.get(SpanAttributeFieldName.PROMPT_TOKEN_COUNT, 0)) total_token_count = int(attributes.get(SpanAttributeFieldName.TOTAL_TOKEN_COUNT, 0)) @@ -237,10 +216,13 @@ def _persist_line_run(self, client: ContainerProxy): elif SpanAttributeFieldName.BATCH_RUN_ID in attributes and SpanAttributeFieldName.LINE_NUMBER in attributes: item.batch_run_id = attributes[SpanAttributeFieldName.BATCH_RUN_ID] item.line_number = attributes[SpanAttributeFieldName.LINE_NUMBER] + self.item = item - self.logger.info(f"Persist main run for LineSummary id: {item.id}") + def _persist_line_run(self, client: ContainerProxy): + + self.logger.info(f"Persist main run for LineSummary id: {self.item.id}") # Use upsert because we may create running item in advance. - return client.upsert_item(body=asdict(item)) + return client.upsert_item(body=asdict(self.item)) def _insert_evaluation_with_retry(self, client: ContainerProxy): for attempt in range(3): @@ -258,15 +240,6 @@ def _insert_evaluation_with_retry(self, client: ContainerProxy): def _insert_evaluation(self, client: ContainerProxy): attributes: dict = self.span.attributes - item = LineEvaluation( - trace_id=self.span.trace_id, - root_span_id=self.span.span_id, - collection_id=self.collection_id, - outputs=self.outputs, - name=self.span.name, - created_by=self.created_by, - ) - # None is the default value for the field. referenced_line_run_id = attributes.get(SpanAttributeFieldName.REFERENCED_LINE_RUN_ID, None) referenced_batch_run_id = attributes.get(SpanAttributeFieldName.REFERENCED_BATCH_RUN_ID, None) @@ -296,18 +269,18 @@ def _insert_evaluation(self, client: ContainerProxy): raise InsertEvaluationsRetriableException(f"Cannot find main run by parameter {parameters}.") if SpanAttributeFieldName.LINE_RUN_ID in attributes: - item.line_run_id = attributes[SpanAttributeFieldName.LINE_RUN_ID] key = self.span.name else: batch_run_id = attributes[SpanAttributeFieldName.BATCH_RUN_ID] - item.batch_run_id = batch_run_id - item.line_number = line_number # Use the batch run id, instead of the name, as the key in the evaluations dictionary. # Customers may execute the same evaluation flow multiple times for a batch run. # We should be able to save all evaluations, as customers use batch runs in a critical manner. key = batch_run_id - patch_operations = [{"op": "add", "path": f"/evaluations/{key}", "value": asdict(item)}] + item_dict = asdict(self.item) + # Remove unnecessary fields from the item + del item_dict["evaluations"] + patch_operations = [{"op": "add", "path": f"/evaluations/{key}", "value": item_dict}] self.logger.info(f"Insert evaluation for LineSummary main_id: {main_id}") return client.patch_item(item=main_id, partition_key=main_partition_key, patch_operations=patch_operations) diff --git a/src/promptflow-azure/promptflow/azure/_utils/_tracing.py b/src/promptflow-azure/promptflow/azure/_utils/_tracing.py index 719162c7561..faff2051af1 100644 --- a/src/promptflow-azure/promptflow/azure/_utils/_tracing.py +++ b/src/promptflow-azure/promptflow/azure/_utils/_tracing.py @@ -9,6 +9,7 @@ from azure.core.exceptions import ResourceNotFoundError from promptflow._constants import AzureWorkspaceKind, CosmosDBContainerName +from promptflow._sdk._tracing import PF_CONFIG_TRACE_LOCAL from promptflow._sdk._utils import extract_workspace_triad_from_trace_provider from promptflow._utils.logger_utils import get_cli_sdk_logger from promptflow.azure import PFClient @@ -63,6 +64,10 @@ def validate_trace_provider(value: str) -> None: 3. the resource is an Azure ML workspace or AI project 4. the workspace Cosmos DB is initialized """ + if value.lower() == PF_CONFIG_TRACE_LOCAL: + _logger.debug(f"trace.provider is set to {PF_CONFIG_TRACE_LOCAL!r}, it's valid and no need to validate.") + return + # valid workspace/project ARM resource ID; otherwise, a ValueError will be raised _logger.debug("Validating trace provider value...") try: diff --git a/src/promptflow-azure/promptflow/azure/operations/_flow_operations.py b/src/promptflow-azure/promptflow/azure/operations/_flow_operations.py index 27a5b6ad9d0..09cdf2b9ef1 100644 --- a/src/promptflow-azure/promptflow/azure/operations/_flow_operations.py +++ b/src/promptflow-azure/promptflow/azure/operations/_flow_operations.py @@ -475,8 +475,6 @@ def _resolve_arm_id_or_upload_dependencies(self, flow: Flow, ignore_tools_json=F @classmethod def _try_resolve_code_for_flow(cls, flow: Flow, ops: OperationOrchestrator, ignore_tools_json=False) -> None: - from promptflow._proxy import ProxyFactory - if flow.path: # remote path if flow.path.startswith("azureml://datastores"): @@ -491,13 +489,6 @@ def _try_resolve_code_for_flow(cls, flow: Flow, ops: OperationOrchestrator, igno if flow._code_uploaded: return - # generate .promptflow/flow.json for eager flow and .promptflow/flow.dag.yaml for non-eager flow - flow_directory, flow_file = resolve_flow_path(code.path) - ProxyFactory().get_executor_proxy_cls(flow.language).generate_flow_tools_json( - flow_file=flow_directory / flow_file, - working_dir=flow_directory, - ) - if ignore_tools_json: ignore_file = code._ignore_file if isinstance(ignore_file, PromptflowIgnoreFile): diff --git a/src/promptflow-azure/tests/sdk_cli_azure_test/e2etests/test_csharp_cli.py b/src/promptflow-azure/tests/sdk_cli_azure_test/e2etests/test_csharp_cli.py new file mode 100644 index 00000000000..ed014372187 --- /dev/null +++ b/src/promptflow-azure/tests/sdk_cli_azure_test/e2etests/test_csharp_cli.py @@ -0,0 +1,24 @@ +import os +import os.path +from typing import Callable + +import pytest + +from promptflow.azure import PFClient + + +def get_repo_base_path(): + return os.getenv("CSHARP_REPO_BASE_PATH", None) + + +@pytest.mark.usefixtures( + "use_secrets_config_file", "recording_injection", "setup_local_connection", "install_custom_tool_pkg" +) +@pytest.mark.cli_test +@pytest.mark.e2etest +@pytest.mark.skipif(get_repo_base_path() is None, reason="available locally only before csharp support go public") +class TestCSharpCli: + def test_eager_flow_run_without_yaml(self, pf: PFClient, randstr: Callable[[str], str]): + pf.run( + flow=f"{get_repo_base_path()}\\src\\PromptflowCSharp\\Sample\\Basic\\bin\\Debug\\net6.0", + ) diff --git a/src/promptflow-azure/tests/sdk_cli_azure_test/unittests/test_flow_entity.py b/src/promptflow-azure/tests/sdk_cli_azure_test/unittests/test_flow_entity.py index 9ba0ce5629d..91aed2fbe72 100644 --- a/src/promptflow-azure/tests/sdk_cli_azure_test/unittests/test_flow_entity.py +++ b/src/promptflow-azure/tests/sdk_cli_azure_test/unittests/test_flow_entity.py @@ -10,14 +10,15 @@ import pytest from _constants import PROMPTFLOW_ROOT from mock.mock import Mock -from sdk_cli_azure_test.conftest import FLOWS_DIR +from sdk_cli_azure_test.conftest import EAGER_FLOWS_DIR, FLOWS_DIR from promptflow import load_run from promptflow._sdk._vendor import get_upload_files_from_folder from promptflow._utils.flow_utils import load_flow_dag from promptflow.azure._constants._flow import ENVIRONMENT, PYTHON_REQUIREMENTS_TXT from promptflow.azure._entities._flow import Flow -from promptflow.exceptions import ValidationException +from promptflow.core._errors import GenerateFlowMetaJsonError +from promptflow.exceptions import UserErrorException, ValidationException RUNS_DIR = PROMPTFLOW_ROOT / "tests/test_configs/runs" @@ -242,3 +243,67 @@ def test_flow_resolve_environment(self): flow = load_flow(source=FLOWS_DIR / "flow_with_additional_include_req") with flow._build_code(): assert flow._environment == {"python_requirements_txt": ["tensorflow"]} + + @pytest.mark.parametrize( + "exception_type, data, error_message", + [ + ( + GenerateFlowMetaJsonError, + {"entry": "invalid_call:MyFlow"}, + "The input 'func_input' is of a complex python type", + ), + ( + GenerateFlowMetaJsonError, + {"entry": "invalid_init:MyFlow"}, + "The input 'obj_input' is of a complex python type", + ), + ( + GenerateFlowMetaJsonError, + {"entry": "invalid_output:MyFlow"}, + "The output 'obj_input' is of a complex python type", + ), + ( + UserErrorException, + { + "entry": "simple_callable_class:MyFlow", + "init": { + "obj_input": { + "type": "Object", + } + }, + }, + "'init.obj_input.type': 'Must be one of", + ), + ( + UserErrorException, + { + "entry": "simple_callable_class:MyFlow", + "inputs": { + "func_input": { + "type": "Object", + } + }, + }, + "'inputs.func_input.type': 'Must be one of", + ), + ( + UserErrorException, + { + "entry": "simple_callable_class:MyFlow", + "outputs": { + "func_input": { + "type": "Object", + } + }, + }, + "Provided signature of outputs does not match the entry", + ), + ], + ) + def test_flex_flow_run_unsupported_types(self, exception_type, data, error_message): + with pytest.raises(exception_type) as e: + Flow._resolve_signature( + code=Path(f"{EAGER_FLOWS_DIR}/invalid_illegal_input_type"), + data=data, + ) + assert error_message in str(e.value) diff --git a/src/promptflow-azure/tests/sdk_cli_azure_test/unittests/test_summary.py b/src/promptflow-azure/tests/sdk_cli_azure_test/unittests/test_summary.py index 0e1e63ebfa5..c56684d7aa8 100644 --- a/src/promptflow-azure/tests/sdk_cli_azure_test/unittests/test_summary.py +++ b/src/promptflow-azure/tests/sdk_cli_azure_test/unittests/test_summary.py @@ -4,14 +4,9 @@ import pytest -from promptflow._constants import OK_LINE_RUN_STATUS, SpanAttributeFieldName +from promptflow._constants import OK_LINE_RUN_STATUS, SpanAttributeFieldName, SpanStatusFieldName from promptflow._sdk.entities._trace import Span -from promptflow.azure._storage.cosmosdb.summary import ( - InsertEvaluationsRetriableException, - LineEvaluation, - Summary, - SummaryLine, -) +from promptflow.azure._storage.cosmosdb.summary import InsertEvaluationsRetriableException, Summary, SummaryLine @pytest.mark.unittest @@ -48,6 +43,16 @@ def setup_data(self): }, ] self.summary = Summary(test_span, self.FAKE_COLLECTION_ID, self.FAKE_CREATED_BY, self.FAKE_LOGGER) + # Just for assert purpose + self.summary.item = SummaryLine( + id="test_trace_id", + partition_key=self.FAKE_COLLECTION_ID, + collection_id=self.FAKE_COLLECTION_ID, + session_id="test_session_id", + line_run_id="line_run_id", + trace_id=self.summary.span.trace_id, + root_span_id=self.summary.span.span_id, + ) def test_aggregate_node_span_does_not_persist(self): mock_client = mock.Mock() @@ -56,30 +61,26 @@ def test_aggregate_node_span_does_not_persist(self): with mock.patch.multiple( self.summary, _persist_running_item=mock.DEFAULT, - _parse_inputs_outputs_from_events=mock.DEFAULT, _persist_line_run=mock.DEFAULT, _insert_evaluation_with_retry=mock.DEFAULT, ) as values: self.summary.persist(mock_client) values["_persist_running_item"].assert_not_called() - values["_parse_inputs_outputs_from_events"].assert_not_called() values["_persist_line_run"].assert_not_called() values["_insert_evaluation_with_retry"].assert_not_called() - def test_non_root_span_does_not_persist(self): + def test_non_root_span_persist_running_node(self): mock_client = mock.Mock() self.summary.span.parent_id = "parent_span_id" with mock.patch.multiple( self.summary, _persist_running_item=mock.DEFAULT, - _parse_inputs_outputs_from_events=mock.DEFAULT, _persist_line_run=mock.DEFAULT, _insert_evaluation_with_retry=mock.DEFAULT, ) as values: self.summary.persist(mock_client) values["_persist_running_item"].assert_called_once() - values["_parse_inputs_outputs_from_events"].assert_not_called() values["_persist_line_run"].assert_not_called() values["_insert_evaluation_with_retry"].assert_not_called() @@ -92,17 +93,15 @@ def test_root_span_persist_main_line(self): with mock.patch.multiple( self.summary, _persist_running_item=mock.DEFAULT, - _parse_inputs_outputs_from_events=mock.DEFAULT, _persist_line_run=mock.DEFAULT, _insert_evaluation_with_retry=mock.DEFAULT, ) as values: self.summary.persist(mock_client) values["_persist_running_item"].assert_not_called() - values["_parse_inputs_outputs_from_events"].assert_called_once() values["_persist_line_run"].assert_called_once() values["_insert_evaluation_with_retry"].assert_not_called() - def test_root_evaluation_span_insert(self): + def test_root_eval_span_persist_eval(self): mock_client = mock.Mock() self.summary.span.parent_id = None self.summary.span.attributes[SpanAttributeFieldName.LINE_RUN_ID] = "line_run_id" @@ -110,43 +109,97 @@ def test_root_evaluation_span_insert(self): with mock.patch.multiple( self.summary, _persist_running_item=mock.DEFAULT, - _parse_inputs_outputs_from_events=mock.DEFAULT, _persist_line_run=mock.DEFAULT, _insert_evaluation_with_retry=mock.DEFAULT, ) as values: self.summary.persist(mock_client) values["_persist_running_item"].assert_not_called() - values["_parse_inputs_outputs_from_events"].assert_called_once() values["_persist_line_run"].assert_called_once() values["_insert_evaluation_with_retry"].assert_called_once() - def test_insert_evaluation_not_found(self): - client = mock.Mock() + @pytest.mark.parametrize( + "run_id_dict, expected_line_run_id, expected_batch_run_id, expected_line_number", + [ + [{}, None, None, None], + [ + { + SpanAttributeFieldName.LINE_NUMBER: "1", + }, + None, + None, + None, + ], + [{SpanAttributeFieldName.BATCH_RUN_ID: "batch_run_id"}, None, None, None], + [ + { + SpanAttributeFieldName.BATCH_RUN_ID: "batch_run_id", + SpanAttributeFieldName.LINE_NUMBER: "1", + }, + None, + "batch_run_id", + "1", + ], + [{SpanAttributeFieldName.LINE_RUN_ID: "line_run_id"}, "line_run_id", None, None], + ], + ) + def test_prepare_db_item(self, run_id_dict, expected_line_run_id, expected_batch_run_id, expected_line_number): + self.summary.span.start_time = datetime.datetime.fromisoformat("2022-01-01T00:00:00") + self.summary.span.end_time = datetime.datetime.fromisoformat("2022-01-01T00:01:00") self.summary.span.attributes = { - SpanAttributeFieldName.REFERENCED_LINE_RUN_ID: "referenced_line_run_id", - SpanAttributeFieldName.LINE_RUN_ID: "line_run_id", + SpanAttributeFieldName.COMPLETION_TOKEN_COUNT: 10, + SpanAttributeFieldName.PROMPT_TOKEN_COUNT: 5, + SpanAttributeFieldName.TOTAL_TOKEN_COUNT: 15, + SpanAttributeFieldName.SPAN_TYPE: "span_type", } + self.summary.span.attributes.update(run_id_dict) + + self.summary._prepare_db_item() + + assert self.summary.item.id == self.summary.span.trace_id + assert self.summary.item.partition_key == self.summary.collection_id + assert self.summary.item.session_id == self.summary.session_id + assert self.summary.item.trace_id == self.summary.span.trace_id + assert self.summary.item.collection_id == self.summary.collection_id + assert self.summary.item.root_span_id == self.summary.span.span_id + assert self.summary.item.inputs == self.summary.inputs + assert self.summary.item.outputs == self.summary.outputs + assert self.summary.item.start_time == "2022-01-01T00:00:00" + assert self.summary.item.end_time == "2022-01-01T00:01:00" + assert self.summary.item.status == self.summary.span.status[SpanStatusFieldName.STATUS_CODE] + assert self.summary.item.latency == 60.0 + assert self.summary.item.name == self.summary.span.name + assert self.summary.item.kind == "span_type" + assert self.summary.item.cumulative_token_count == { + "completion": 10, + "prompt": 5, + "total": 15, + } + assert self.summary.item.created_by == self.summary.created_by + assert self.summary.item.line_run_id == expected_line_run_id + assert self.summary.item.batch_run_id == expected_batch_run_id + assert self.summary.item.line_number == expected_line_number - client.query_items.return_value = [] - with pytest.raises(InsertEvaluationsRetriableException): - self.summary._insert_evaluation(client) - client.query_items.assert_called_once() - client.patch_item.assert_not_called() - - def test_insert_evaluation_not_finished(self): + @pytest.mark.parametrize( + "return_value", + [ + [], # No item found + [{"id": "main_id"}], # Not finished + ], + ) + def test_insert_evaluation_no_action(self, return_value): client = mock.Mock() self.summary.span.attributes = { SpanAttributeFieldName.REFERENCED_LINE_RUN_ID: "referenced_line_run_id", SpanAttributeFieldName.LINE_RUN_ID: "line_run_id", } - client.query_items.return_value = [{"id": "main_id"}] + client.query_items.return_value = [] with pytest.raises(InsertEvaluationsRetriableException): self.summary._insert_evaluation(client) client.query_items.assert_called_once() client.patch_item.assert_not_called() - def test_insert_evaluation_query_line(self): + def test_insert_evaluation_query_line_run(self): client = mock.Mock() self.summary.span.attributes = { SpanAttributeFieldName.REFERENCED_LINE_RUN_ID: "referenced_line_run_id", @@ -168,18 +221,11 @@ def test_insert_evaluation_query_line(self): ], enable_cross_partition_query=True, ) + item_dict = asdict(self.summary.item) + del item_dict["evaluations"] - expected_item = LineEvaluation( - line_run_id="line_run_id", - collection_id=self.FAKE_COLLECTION_ID, - trace_id=self.summary.span.trace_id, - root_span_id=self.summary.span.span_id, - outputs=None, - name=self.summary.span.name, - created_by=self.FAKE_CREATED_BY, - ) expected_patch_operations = [ - {"op": "add", "path": f"/evaluations/{self.summary.span.name}", "value": asdict(expected_item)} + {"op": "add", "path": f"/evaluations/{self.summary.span.name}", "value": item_dict} ] client.patch_item.assert_called_once_with( item="main_id", @@ -212,17 +258,10 @@ def test_insert_evaluation_query_batch_run(self): enable_cross_partition_query=True, ) - expected_item = LineEvaluation( - batch_run_id="batch_run_id", - collection_id=self.FAKE_COLLECTION_ID, - line_number=1, - trace_id=self.summary.span.trace_id, - root_span_id=self.summary.span.span_id, - outputs=None, - name=self.summary.span.name, - created_by=self.FAKE_CREATED_BY, - ) - expected_patch_operations = [{"op": "add", "path": "/evaluations/batch_run_id", "value": asdict(expected_item)}] + item_dict = asdict(self.summary.item) + del item_dict["evaluations"] + + expected_patch_operations = [{"op": "add", "path": "/evaluations/batch_run_id", "value": item_dict}] client.patch_item.assert_called_once_with( item="main_id", partition_key="test_main_partition_key", @@ -231,81 +270,8 @@ def test_insert_evaluation_query_batch_run(self): def test_persist_line_run(self): client = mock.Mock() - self.summary.span.attributes.update( - { - SpanAttributeFieldName.LINE_RUN_ID: "line_run_id", - SpanAttributeFieldName.SPAN_TYPE: "promptflow.TraceType.Flow", - SpanAttributeFieldName.COMPLETION_TOKEN_COUNT: 10, - SpanAttributeFieldName.PROMPT_TOKEN_COUNT: 5, - SpanAttributeFieldName.TOTAL_TOKEN_COUNT: 15, - } - ) - expected_item = SummaryLine( - id="test_trace_id", - partition_key=self.FAKE_COLLECTION_ID, - collection_id=self.FAKE_COLLECTION_ID, - session_id="test_session_id", - line_run_id="line_run_id", - trace_id=self.summary.span.trace_id, - root_span_id=self.summary.span.span_id, - inputs=None, - outputs=None, - start_time="2022-01-01T00:00:00", - end_time="2022-01-01T00:01:00", - status=OK_LINE_RUN_STATUS, - latency=60.0, - name=self.summary.span.name, - kind="promptflow.TraceType.Flow", - created_by=self.FAKE_CREATED_BY, - cumulative_token_count={ - "completion": 10, - "prompt": 5, - "total": 15, - }, - ) - - self.summary._persist_line_run(client) - client.upsert_item.assert_called_once_with(body=asdict(expected_item)) - - def test_persist_batch_run(self): - client = mock.Mock() - self.summary.span.attributes.update( - { - SpanAttributeFieldName.BATCH_RUN_ID: "batch_run_id", - SpanAttributeFieldName.LINE_NUMBER: "1", - SpanAttributeFieldName.SPAN_TYPE: "promptflow.TraceType.Flow", - SpanAttributeFieldName.COMPLETION_TOKEN_COUNT: 10, - SpanAttributeFieldName.PROMPT_TOKEN_COUNT: 5, - SpanAttributeFieldName.TOTAL_TOKEN_COUNT: 15, - }, - ) - expected_item = SummaryLine( - id="test_trace_id", - partition_key=self.FAKE_COLLECTION_ID, - session_id="test_session_id", - collection_id=self.FAKE_COLLECTION_ID, - batch_run_id="batch_run_id", - line_number="1", - trace_id=self.summary.span.trace_id, - root_span_id=self.summary.span.span_id, - inputs=None, - outputs=None, - start_time="2022-01-01T00:00:00", - end_time="2022-01-01T00:01:00", - status=OK_LINE_RUN_STATUS, - latency=60.0, - name=self.summary.span.name, - created_by=self.FAKE_CREATED_BY, - kind="promptflow.TraceType.Flow", - cumulative_token_count={ - "completion": 10, - "prompt": 5, - "total": 15, - }, - ) - self.summary._persist_line_run(client) - client.upsert_item.assert_called_once_with(body=asdict(expected_item)) + client.upsert_item.assert_called_once_with(body=asdict(self.summary.item)) def test_insert_evaluation_with_retry_success(self): client = mock.Mock() diff --git a/src/promptflow-core/promptflow/_constants.py b/src/promptflow-core/promptflow/_constants.py index 09174303860..7d5d9b7a914 100644 --- a/src/promptflow-core/promptflow/_constants.py +++ b/src/promptflow-core/promptflow/_constants.py @@ -236,18 +236,6 @@ class ConnectionType(str, Enum): CUSTOM = "Custom" -class ConnectionAuthMode: - KEY = "key" - MEID_TOKEN = "meid_token" # Microsoft Entra ID - - -class ConnectionDefaultApiVersion: - AZURE_OPEN_AI = "2024-02-01" - COGNITIVE_SEARCH = "2023-11-01" - AZURE_CONTENT_SAFETY = "2023-10-01" - FORM_RECOGNIZER = "2023-07-31" - - class CustomStrongTypeConnectionConfigs: PREFIX = "promptflow.connection." TYPE = "custom_type" @@ -287,14 +275,21 @@ class AzureWorkspaceKind: HUB = "hub" PROJECT = "project" + # obj can be string or azure.ai.ml.entities.Workspace @staticmethod def is_workspace(obj) -> bool: + if isinstance(obj, str): + return obj == AzureWorkspaceKind.DEFAULT return obj._kind == AzureWorkspaceKind.DEFAULT @staticmethod def is_hub(obj) -> bool: + if isinstance(obj, str): + return obj == AzureWorkspaceKind.HUB return obj._kind == AzureWorkspaceKind.HUB @staticmethod def is_project(obj) -> bool: + if isinstance(obj, str): + return obj == AzureWorkspaceKind.PROJECT return obj._kind == AzureWorkspaceKind.PROJECT diff --git a/src/promptflow-core/promptflow/constants.py b/src/promptflow-core/promptflow/constants.py new file mode 100644 index 00000000000..ab36f969283 --- /dev/null +++ b/src/promptflow-core/promptflow/constants.py @@ -0,0 +1,19 @@ +# --------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# --------------------------------------------------------- + + +class ConnectionAuthMode: + """Promptflow connection auth_mode values.""" + + KEY = "key" + MEID_TOKEN = "meid_token" # Microsoft Entra ID + + +class ConnectionDefaultApiVersion: + """Promptflow connection default api version values.""" + + AZURE_OPEN_AI = "2024-02-01" + COGNITIVE_SEARCH = "2023-11-01" + AZURE_CONTENT_SAFETY = "2023-10-01" + FORM_RECOGNIZER = "2023-07-31" diff --git a/src/promptflow-core/promptflow/core/_connection.py b/src/promptflow-core/promptflow/core/_connection.py index 05409ea508a..5515788a1ef 100644 --- a/src/promptflow-core/promptflow/core/_connection.py +++ b/src/promptflow-core/promptflow/core/_connection.py @@ -7,16 +7,11 @@ from typing import Dict, List from promptflow._constants import CONNECTION_SCRUBBED_VALUE as SCRUBBED_VALUE -from promptflow._constants import ( - CONNECTION_SCRUBBED_VALUE_NO_CHANGE, - ConnectionAuthMode, - ConnectionDefaultApiVersion, - ConnectionType, - CustomStrongTypeConnectionConfigs, -) +from promptflow._constants import CONNECTION_SCRUBBED_VALUE_NO_CHANGE, ConnectionType, CustomStrongTypeConnectionConfigs from promptflow._core.token_provider import AzureTokenProvider from promptflow._utils.logger_utils import LoggerFactory from promptflow._utils.utils import in_jupyter_notebook +from promptflow.constants import ConnectionAuthMode, ConnectionDefaultApiVersion from promptflow.contracts.types import Secret from promptflow.core._errors import RequiredEnvironmentVariablesNotSetError from promptflow.exceptions import UserErrorException, ValidationException @@ -156,9 +151,9 @@ class AzureOpenAIConnection(_StrongTypeConnection): :type api_base: str :param api_type: The api type, default "azure". :type api_type: str - :param api_version: The api version, default ${ConnectionDefaultApiVersion.AZURE_OPEN_AI}. + :param api_version: The api version, default see: :obj:`~.constants.ConnectionDefaultApiVersion.AZURE_OPEN_AI` :type api_version: str - :param auth_mode: The auth mode, supported value ["key", "meid_token"]. + :param auth_mode: The auth mode, supported values see: :class:`~.constants.ConnectionAuthMode`. :type auth_mode: str :param name: Connection name. :type name: str @@ -238,9 +233,12 @@ def from_env(cls, name=None): Build connection from environment variables. Relevant environment variables: - - AZURE_OPENAI_ENDPOINT: The api base. - - AZURE_OPENAI_API_KEY: The api key. - - OPENAI_API_VERSION: Optional. The api version, default ${ConnectionDefaultApiVersion.AZURE_OPEN_AI}. + - AZURE_OPENAI_ENDPOINT: The api base. + - AZURE_OPENAI_API_KEY: The api key. + - OPENAI_API_VERSION: Optional. + + The api version default to :obj:`~.constants.ConnectionDefaultApiVersion.AZURE_OPEN_AI`. + """ # Env var name reference: https://github.com/openai/openai-python/blob/main/src/openai/lib/azure.py#L160 api_base = os.getenv("AZURE_OPENAI_ENDPOINT") @@ -458,7 +456,8 @@ class AzureContentSafetyConnection(_StrongTypeConnection): :type api_key: str :param endpoint: The api endpoint. :type endpoint: str - :param api_version: The api version, default ${ConnectionDefaultApiVersion.AZURE_CONTENT_SAFETY}. + :param api_version: The api version, + default see: :obj:`~.constants.ConnectionDefaultApiVersion.AZURE_CONTENT_SAFETY`. :type api_version: str :param api_type: The api type, default "Content Safety". :type api_type: str @@ -518,7 +517,7 @@ class FormRecognizerConnection(AzureContentSafetyConnection): :type api_key: str :param endpoint: The api endpoint. :type endpoint: str - :param api_version: The api version, default ${ConnectionDefaultApiVersion.FORM_RECOGNIZER}. + :param api_version: The api version, default see: :obj:`~.constants.ConnectionDefaultApiVersion.FORM_RECOGNIZER`. :type api_version: str :param api_type: The api type, default "Form Recognizer". :type api_type: str diff --git a/src/promptflow-core/promptflow/core/_connection_provider/_workspace_connection_provider.py b/src/promptflow-core/promptflow/core/_connection_provider/_workspace_connection_provider.py index d4233d193c7..b8c16b23a46 100644 --- a/src/promptflow-core/promptflow/core/_connection_provider/_workspace_connection_provider.py +++ b/src/promptflow-core/promptflow/core/_connection_provider/_workspace_connection_provider.py @@ -6,8 +6,9 @@ import requests -from promptflow._constants import AML_WORKSPACE_TEMPLATE, ConnectionAuthMode +from promptflow._constants import AML_WORKSPACE_TEMPLATE from promptflow._utils.retry_utils import http_retry_wrapper +from promptflow.constants import ConnectionAuthMode from promptflow.core._connection import CustomConnection, _Connection from promptflow.core._errors import ( AccessDeniedError, diff --git a/src/promptflow-core/promptflow/core/_flow.py b/src/promptflow-core/promptflow/core/_flow.py index 5346b27f361..63770bdec9a 100644 --- a/src/promptflow-core/promptflow/core/_flow.py +++ b/src/promptflow-core/promptflow/core/_flow.py @@ -23,7 +23,7 @@ update_dict_recursively, ) from promptflow.exceptions import UserErrorException -from promptflow.tracing import trace +from promptflow.tracing._experimental import enrich_prompt_template from promptflow.tracing._trace import _traced @@ -364,7 +364,6 @@ def _validate_inputs(self, input_values): raise MissingRequiredInputError(f"Missing required inputs: {missing_inputs}") return resolved_inputs - @trace def __call__(self, *args, **kwargs): """Calling flow as a function, the inputs should be provided with key word arguments. Returns the output of the prompty. @@ -377,6 +376,7 @@ def __call__(self, *args, **kwargs): """ if args: raise UserErrorException("Prompty can only be called with keyword arguments.") + enrich_prompt_template(self._template, variables=kwargs) # 1. Get connection connection = convert_model_configuration_to_connection(self._model.configuration) @@ -392,8 +392,7 @@ def __call__(self, *args, **kwargs): # 4. send request to open ai api_client = get_open_ai_client_by_connection(connection=connection) - traced_llm_call = _traced(send_request_to_llm) - response = traced_llm_call(api_client, self._model.api, params) + response = send_request_to_llm(api_client, self._model.api, params) return format_llm_response( response=response, api=self._model.api, @@ -418,7 +417,6 @@ class AsyncPrompty(Prompty): """ - @trace async def __call__(self, *args, **kwargs) -> Mapping[str, Any]: """Calling prompty as a function in async, the inputs should be provided with key word arguments. Returns the output of the prompty. @@ -431,6 +429,7 @@ async def __call__(self, *args, **kwargs) -> Mapping[str, Any]: """ if args: raise UserErrorException("Prompty can only be called with keyword arguments.") + enrich_prompt_template(self._template, variables=kwargs) # 1. Get connection connection = convert_model_configuration_to_connection(self._model.configuration) @@ -446,8 +445,7 @@ async def __call__(self, *args, **kwargs) -> Mapping[str, Any]: # 4. send request to open ai api_client = get_open_ai_client_by_connection(connection=connection, is_async=True) - traced_llm_call = _traced(send_request_to_llm) - response = await traced_llm_call(api_client, self._model.api, params) + response = await send_request_to_llm(api_client, self._model.api, params) return format_llm_response( response=response, api=self._model.api, diff --git a/src/promptflow-core/promptflow/executor/_errors.py b/src/promptflow-core/promptflow/executor/_errors.py index 5c2cfdbcbc4..3a1eeb23014 100644 --- a/src/promptflow-core/promptflow/executor/_errors.py +++ b/src/promptflow-core/promptflow/executor/_errors.py @@ -319,3 +319,7 @@ def __init__(self, init_kwargs, ex): init_kwargs=init_kwargs, ex=ex, ) + + +class InvalidFlexFlowEntry(ValidationException): + pass diff --git a/src/promptflow-core/promptflow/executor/_script_executor.py b/src/promptflow-core/promptflow/executor/_script_executor.py index 0da04ff61f1..4630251ad04 100644 --- a/src/promptflow-core/promptflow/executor/_script_executor.py +++ b/src/promptflow-core/promptflow/executor/_script_executor.py @@ -22,6 +22,8 @@ from promptflow.connections import ConnectionProvider from promptflow.contracts.flow import Flow from promptflow.contracts.tool import ConnectionType +from promptflow.exceptions import ErrorTarget +from promptflow.executor._errors import InvalidFlexFlowEntry from promptflow.executor._result import LineResult from promptflow.storage import AbstractRunStorage from promptflow.storage._run_storage import DefaultRunStorage @@ -238,8 +240,8 @@ def _parse_entry_func(self): if inspect.isfunction(self._entry): return self._entry return self._entry.__call__ + module_name, func_name = self._parse_flow_file() try: - module_name, func_name = self._parse_flow_file() module = importlib.import_module(module_name) except Exception as e: raise PythonLoadError( @@ -289,5 +291,12 @@ def _parse_flow_file(self): with open(self._working_dir / self._flow_file, "r", encoding="utf-8") as fin: flow_dag = load_yaml(fin) entry = flow_dag.get("entry", "") - module_name, func_name = entry.split(":") + try: + module_name, func_name = entry.split(":") + except Exception as e: + raise InvalidFlexFlowEntry( + message_format="Invalid entry '{entry}'.The entry should be in the format of ':'.", + entry=entry, + target=ErrorTarget.EXECUTOR, + ) from e return module_name, func_name diff --git a/src/promptflow-core/pyproject.toml b/src/promptflow-core/pyproject.toml index e0e8c5d06e7..039c39ec267 100644 --- a/src/promptflow-core/pyproject.toml +++ b/src/promptflow-core/pyproject.toml @@ -50,13 +50,13 @@ filetype = ">=1.2.0" # used to detect the mime type for multi-media input flask = ">=2.2.3,<4.0.0" # Serving endpoint requirements python-dateutil = ">=2.1.0,<3.0.0" # Contracts RunInfo # ========executor-service dependencies======== -fastapi = ">=0.109.0,<1.0.0" # used to build web executor server +fastapi = { version = ">=0.109.0,<1.0.0", optional = true } # used to build web executor server # ========azureml-serving dependencies======== # AzureML connection dependencies -azure-identity = ">=1.12.0,<2.0.0" -azure-ai-ml = ">=1.14.0,<2.0.0" +azure-identity = { version = ">=1.12.0,<2.0.0", optional = true } +azure-ai-ml = { version = ">=1.14.0,<2.0.0", optional = true } # MDC dependencies for monitoring -azureml-ai-monitoring = ">=0.1.0b3,<1.0.0" +azureml-ai-monitoring = { version = ">=0.1.0b3,<1.0.0", optional = true } [tool.poetry.extras] executor-service = ["fastapi"] @@ -65,6 +65,13 @@ azureml-serving = ["azure-identity", "azure-ai-ml", "azureml-ai-monitoring"] [tool.poetry.group.dev.dependencies] pre-commit = "*" import-linter = "*" +promptflow-tracing = {path = "../promptflow-tracing", develop = true} +promptflow-recording = {path = "../promptflow-recording", develop = true} + +[tool.poetry.group.ci.dependencies] +import-linter = "*" +promptflow-tracing = {path = "../promptflow-tracing"} +promptflow-recording = {path = "../promptflow-recording"} [tool.poetry.group.test.dependencies] pytest = "*" diff --git a/src/promptflow-core/tests/azureml-serving/unittests/test_workspace_connection_provider.py b/src/promptflow-core/tests/azureml-serving/unittests/test_workspace_connection_provider.py index d7a55e488cd..89147d5f611 100644 --- a/src/promptflow-core/tests/azureml-serving/unittests/test_workspace_connection_provider.py +++ b/src/promptflow-core/tests/azureml-serving/unittests/test_workspace_connection_provider.py @@ -5,7 +5,7 @@ import pytest -from promptflow._constants import ConnectionAuthMode +from promptflow.constants import ConnectionAuthMode from promptflow.core._connection_provider._models._models import ( WorkspaceConnectionPropertiesV2BasicResource, WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult, diff --git a/src/promptflow-core/tests/core/e2etests/test_eager_flow.py b/src/promptflow-core/tests/core/e2etests/test_eager_flow.py index 9815f7f7b83..dae8ee253a4 100644 --- a/src/promptflow-core/tests/core/e2etests/test_eager_flow.py +++ b/src/promptflow-core/tests/core/e2etests/test_eager_flow.py @@ -5,7 +5,7 @@ from promptflow._core.tool_meta_generator import PythonLoadError from promptflow.contracts.run_info import Status -from promptflow.executor._errors import FlowEntryInitializationError +from promptflow.executor._errors import FlowEntryInitializationError, InvalidFlexFlowEntry from promptflow.executor._result import LineResult from promptflow.executor._script_executor import ScriptExecutor from promptflow.executor.flow_executor import FlowExecutor @@ -133,7 +133,7 @@ def test_execute_init_func_with_user_error(self): [ ("callable_flow_with_init_exception", FlowEntryInitializationError, "Failed to initialize flow entry with"), ("invalid_illegal_entry", PythonLoadError, "Failed to load python module for"), - ("incorrect_entry", PythonLoadError, "Failed to load python module for"), + ("incorrect_entry", InvalidFlexFlowEntry, "Invalid entry"), ], ) def test_execute_func_with_user_error(self, flow_folder, expected_exception, expected_error_msg): diff --git a/src/promptflow-devkit/promptflow/_proxy/_base_executor_proxy.py b/src/promptflow-devkit/promptflow/_proxy/_base_executor_proxy.py index 5ec70cf0771..73665a2a680 100644 --- a/src/promptflow-devkit/promptflow/_proxy/_base_executor_proxy.py +++ b/src/promptflow-devkit/promptflow/_proxy/_base_executor_proxy.py @@ -26,6 +26,7 @@ from promptflow._utils.flow_utils import is_flex_flow, read_json_content, resolve_flow_path from promptflow._utils.logger_utils import bulk_logger from promptflow._utils.utils import load_json +from promptflow._utils.yaml_utils import load_yaml from promptflow.contracts.run_info import FlowRunInfo from promptflow.exceptions import ErrorTarget, ValidationException from promptflow.executor._errors import AggregationNodeExecutionTimeoutError, LineExecutionTimeoutError @@ -36,7 +37,6 @@ class AbstractExecutorProxy: - def __init__(self): self._should_apply_inputs_mapping = True self._allow_aggregation = True @@ -61,12 +61,6 @@ def allow_aggregation(self): """ return self._allow_aggregation - @classmethod - def dump_metadata(cls, flow_file: Path, working_dir: Path) -> NoReturn: - """Generate metadata for a specific flow.""" - cls.generate_flow_tools_json(flow_file, working_dir, dump=True) - cls.generate_flow_json(flow_file, working_dir, dump=True) - @classmethod def generate_flow_tools_json( cls, @@ -269,18 +263,30 @@ def dump_metadata(cls, flow_file: Path, working_dir: Path) -> NoReturn: # for cloud, they will assume that metadata has already been dumped into the flow directory so do nothing here return + def _get_interface_definition(self): + """ + Get type of interfaces of a flow. + + For dag flow, we can directly get type of ports from yaml. + For flex flow, we can also get type of ports from yaml in cloud as SDK will update the flow file before upload. + For local flex flow, python will infer type of ports from the function signature; + csharp depends on a flow.json generated with a dotnet command. + """ + _, flow_file = resolve_flow_path(flow_path=self.working_dir, check_flow_exist=False) + flow_data = load_yaml(flow_file) + port_definitions = {} + for key in ["inputs", "outputs", "init"]: + if key in flow_data: + port_definitions[key] = flow_data[key] + return port_definitions + def get_inputs_definition(self): """Get the inputs definition of an eager flow""" from promptflow.contracts.flow import FlowInputDefinition - _, flow_file = resolve_flow_path(flow_path=self.working_dir, check_flow_exist=False) - flow_meta = self.generate_flow_json( - flow_file=self.working_dir / flow_file, - working_dir=self.working_dir, - dump=False, - ) + input_definitions = self._get_interface_definition().get("inputs", {}) inputs = {} - for key, value in flow_meta.get("inputs", {}).items(): + for key, value in input_definitions.items(): # TODO: update this after we determine whether to accept list here or now _type = value.get("type") if isinstance(_type, list): @@ -325,7 +331,11 @@ def api_endpoint(self) -> str: @property def chat_output_name(self) -> Optional[str]: """The name of the chat output in the line result. Return None if the bonded flow is not a chat flow.""" - # TODO: implement this based on _generate_flow_json + outputs = self._get_interface_definition().get("outputs", {}) + for key, value in outputs.items(): + if value.get("is_chat_output", False): + return key + # no chat output found return None def exec_line( diff --git a/src/promptflow-devkit/promptflow/_proxy/_base_inspector_proxy.py b/src/promptflow-devkit/promptflow/_proxy/_base_inspector_proxy.py index e620557797f..7d1fd63426d 100644 --- a/src/promptflow-devkit/promptflow/_proxy/_base_inspector_proxy.py +++ b/src/promptflow-devkit/promptflow/_proxy/_base_inspector_proxy.py @@ -40,3 +40,22 @@ def get_entry_meta( ) -> Dict[str, Any]: """Generate meta data for a flow entry.""" raise NotImplementedError() + + def prepare_metadata( + self, + flow_file: Path, + working_dir: Path, + **kwargs, + ) -> None: + """Prepare metadata for a flow. + + This method will be called: + 1) before local flow test; + 2) before local run create; + 3) before flow upload. + + For dag flow, it will generate flow.tools.json; + For python flex flow, it will do nothing; + For csharp flex flow, it will generate metadata based on a dotnet command. + """ + return diff --git a/src/promptflow-devkit/promptflow/_proxy/_csharp_base_executor_proxy.py b/src/promptflow-devkit/promptflow/_proxy/_csharp_base_executor_proxy.py index 84741968d94..a9191a6dfea 100644 --- a/src/promptflow-devkit/promptflow/_proxy/_csharp_base_executor_proxy.py +++ b/src/promptflow-devkit/promptflow/_proxy/_csharp_base_executor_proxy.py @@ -39,8 +39,10 @@ def _construct_service_startup_command( yaml_path: str = "flow.dag.yaml", log_level: str = "Warning", assembly_folder: str = ".", + init_kwargs_path: str = None, + **kwargs, ) -> List[str]: - return [ + cmd = [ "dotnet", EXECUTOR_SERVICE_DLL, "--execution_service", @@ -57,3 +59,6 @@ def _construct_service_startup_command( "--error_file_path", error_file_path, ] + if init_kwargs_path: + cmd.extend(["--init", init_kwargs_path]) + return cmd diff --git a/src/promptflow-devkit/promptflow/_proxy/_csharp_executor_proxy.py b/src/promptflow-devkit/promptflow/_proxy/_csharp_executor_proxy.py index f3f3d597411..3f256e98f5e 100644 --- a/src/promptflow-devkit/promptflow/_proxy/_csharp_executor_proxy.py +++ b/src/promptflow-devkit/promptflow/_proxy/_csharp_executor_proxy.py @@ -1,6 +1,7 @@ # --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- +import json import platform import signal import socket @@ -9,9 +10,10 @@ from pathlib import Path from typing import NoReturn, Optional -from promptflow._core._errors import UnexpectedError -from promptflow._sdk._constants import OSType -from promptflow._utils.flow_utils import is_flex_flow +from promptflow._sdk._constants import FLOW_META_JSON, PROMPT_FLOW_DIR_NAME, OSType +from promptflow._utils.flow_utils import is_flex_flow as is_flex_flow_func +from promptflow._utils.flow_utils import read_json_content +from promptflow.exceptions import UserErrorException from promptflow.storage._run_storage import AbstractRunStorage from ._csharp_base_executor_proxy import CSharpBaseExecutorProxy @@ -27,12 +29,12 @@ def __init__( process, port: str, working_dir: Optional[Path] = None, - chat_output_name: Optional[str] = None, enable_stream_output: bool = False, + is_flex_flow: bool = False, ): self._process = process self._port = port - self._chat_output_name = chat_output_name + self._is_flex_flow = is_flex_flow super().__init__( working_dir=working_dir, enable_stream_output=enable_stream_output, @@ -46,10 +48,6 @@ def api_endpoint(self) -> str: def port(self) -> str: return self._port - @property - def chat_output_name(self) -> Optional[str]: - return self._chat_output_name - @classmethod def dump_metadata(cls, flow_file: Path, working_dir: Path) -> NoReturn: """In csharp, we need to generate metadata based on a dotnet command for now and the metadata will @@ -70,7 +68,7 @@ def dump_metadata(cls, flow_file: Path, working_dir: Path) -> NoReturn: cwd=working_dir, ) except subprocess.CalledProcessError as e: - raise UnexpectedError( + raise UserErrorException( message_format="Failed to generate flow meta for csharp flow.\n" "Command: {command}\n" "Working directory: {working_directory}\n" @@ -82,18 +80,14 @@ def dump_metadata(cls, flow_file: Path, working_dir: Path) -> NoReturn: output=e.output, ) - @classmethod - def get_outputs_definition(cls, flow_file: Path, working_dir: Path) -> dict: - # TODO: no outputs definition for eager flow for now - if is_flex_flow(flow_path=flow_file, working_dir=working_dir): - return {} - - # TODO: get this from self._get_flow_meta for both eager flow and non-eager flow then remove - # dependency on flow_file and working_dir - from promptflow.contracts.flow import Flow as DataplaneFlow - - dataplane_flow = DataplaneFlow.from_yaml(flow_file, working_dir=working_dir) - return dataplane_flow.outputs + def _get_interface_definition(self): + if not self._is_flex_flow: + return super()._get_interface_definition() + flow_json_path = self.working_dir / PROMPT_FLOW_DIR_NAME / FLOW_META_JSON + signatures = read_json_content(flow_json_path, "meta of tools") + for key in set(signatures.keys()) - {"inputs", "outputs", "init"}: + signatures.pop(key) + return signatures @classmethod async def create( @@ -107,11 +101,17 @@ async def create( **kwargs, ) -> "CSharpExecutorProxy": """Create a new executor""" - # TODO: support init_kwargs in csharp executor port = kwargs.get("port", None) log_path = kwargs.get("log_path", "") - init_error_file = Path(working_dir) / f"init_error_{str(uuid.uuid4())}.json" + target_uuid = str(uuid.uuid4()) + init_error_file = Path(working_dir) / f"init_error_{target_uuid}.json" init_error_file.touch() + if init_kwargs: + init_kwargs_path = Path(working_dir) / f"init_kwargs_{target_uuid}.json" + # TODO: complicated init_kwargs handling + init_kwargs_path.write_text(json.dumps(init_kwargs)) + else: + init_kwargs_path = None if port is None: # if port is not provided, find an available port and start a new execution service @@ -123,6 +123,7 @@ async def create( log_path=log_path, error_file_path=init_error_file, yaml_path=flow_file.as_posix(), + init_kwargs_path=init_kwargs_path.absolute().as_posix() if init_kwargs_path else None, ), creationflags=subprocess.CREATE_NEW_PROCESS_GROUP if platform.system() == OSType.WINDOWS else 0, ) @@ -130,26 +131,19 @@ async def create( # if port is provided, assume the execution service is already started process = None - outputs_definition = cls.get_outputs_definition(flow_file, working_dir=working_dir) - chat_output_name = next( - filter( - lambda key: outputs_definition[key].is_chat_output, - outputs_definition.keys(), - ), - None, - ) executor_proxy = cls( process=process, port=port, working_dir=working_dir, - # TODO: remove this from the constructor after can always be inferred from flow meta? - chat_output_name=chat_output_name, + is_flex_flow=is_flex_flow_func(flow_path=flow_file, working_dir=working_dir), enable_stream_output=kwargs.get("enable_stream_output", False), ) try: await executor_proxy.ensure_executor_startup(init_error_file) finally: Path(init_error_file).unlink() + if init_kwargs_path: + init_kwargs_path.unlink() return executor_proxy async def destroy(self): @@ -165,14 +159,6 @@ async def destroy(self): On the other hand, the subprocess for execution service is not started in detach mode; it wll exit when parent process exit. So we simply skip the destruction here. """ - - # TODO 3033484: update this after executor service support graceful shutdown - if not await self._all_generators_exhausted(): - raise UnexpectedError( - message_format="The executor service is still handling a stream request " - "whose response is not fully consumed yet." - ) - # process is not None, it means the executor service is started by the current executor proxy # and should be terminated when the executor proxy is destroyed if the service is still active if self._process and self._is_executor_active(): @@ -183,12 +169,18 @@ async def destroy(self): # for Linux and MacOS, Popen.terminate() will send SIGTERM to the process self._process.terminate() - # TODO: there is a potential issue that, graceful shutdown won't work for streaming chat flow for now - # because response will not be fully consumed before we destroy the executor proxy try: self._process.wait(timeout=5) except subprocess.TimeoutExpired: self._process.kill() + # TODO: pf.test won't work for streaming. Response will be fully consumed outside TestSubmitter context. + # We will still kill this process in case this is a true timeout but raise an error to indicate that + # we may meet runtime error when trying to consume the result. + if not await self._all_generators_exhausted(): + raise UserErrorException( + message_format="The executor service is still handling a stream request " + "whose response is not fully consumed yet." + ) def _is_executor_active(self): """Check if the process is still running and return False if it has exited""" diff --git a/src/promptflow-devkit/promptflow/_proxy/_csharp_inspector_proxy.py b/src/promptflow-devkit/promptflow/_proxy/_csharp_inspector_proxy.py index 3a7166eee3e..add58e124a8 100644 --- a/src/promptflow-devkit/promptflow/_proxy/_csharp_inspector_proxy.py +++ b/src/promptflow-devkit/promptflow/_proxy/_csharp_inspector_proxy.py @@ -1,7 +1,10 @@ +# --------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# --------------------------------------------------------- import json import re import subprocess -import tempfile +import uuid from collections import defaultdict from pathlib import Path from typing import Dict, List @@ -9,10 +12,10 @@ import pydash from promptflow._constants import FlowEntryRegex -from promptflow._core._errors import UnexpectedError -from promptflow._sdk._constants import ALL_CONNECTION_TYPES, FLOW_TOOLS_JSON, PROMPT_FLOW_DIR_NAME +from promptflow._sdk._constants import ALL_CONNECTION_TYPES, FLOW_META_JSON, FLOW_TOOLS_JSON, PROMPT_FLOW_DIR_NAME from promptflow._utils.flow_utils import is_flex_flow, read_json_content from promptflow._utils.yaml_utils import load_yaml +from promptflow.exceptions import UserErrorException from ._base_inspector_proxy import AbstractInspectorProxy @@ -55,7 +58,7 @@ def get_used_connection_names( def is_flex_flow_entry(self, entry: str) -> bool: """Check if the flow is a flex flow entry.""" - return isinstance(entry, str) and re.match(FlowEntryRegex.CSharp, entry) + return isinstance(entry, str) and re.match(FlowEntryRegex.CSharp, entry) is not None def get_entry_meta( self, @@ -63,39 +66,63 @@ def get_entry_meta( working_dir: Path, **kwargs, ) -> Dict[str, str]: - """In csharp, we need to generate metadata based on a dotnet command for now and the metadata will - always be dumped. - """ - # TODO: add tests for this - with tempfile.TemporaryDirectory() as temp_dir: - flow_file = Path(temp_dir) / "flow.dag.yaml" - flow_file.write_text(json.dumps({"entry": entry})) + """In csharp, the metadata will always be dumped at the beginning of each local run.""" + target_path = working_dir / PROMPT_FLOW_DIR_NAME / FLOW_META_JSON - # TODO: enable cache? - command = [ - "dotnet", - EXECUTOR_SERVICE_DLL, - "--flow_meta", - "--yaml_path", - flow_file.absolute().as_posix(), - "--assembly_folder", - ".", - ] - try: - subprocess.check_output( - command, - cwd=working_dir, - ) - except subprocess.CalledProcessError as e: - raise UnexpectedError( - message_format="Failed to generate flow meta for csharp flow.\n" - "Command: {command}\n" - "Working directory: {working_directory}\n" - "Return code: {return_code}\n" - "Output: {output}", - command=" ".join(command), - working_directory=working_dir.as_posix(), - return_code=e.returncode, - output=e.output, - ) - return json.loads((working_dir / PROMPT_FLOW_DIR_NAME / "flow.json").read_text()) + if target_path.is_file(): + entry_meta = read_json_content(target_path, "flow metadata") + for key in ["inputs", "outputs", "init"]: + if key not in entry_meta: + continue + for port_name, port in entry_meta[key].items(): + if "type" in port and isinstance(port["type"], list) and len(port["type"]) == 1: + port["type"] = port["type"][0] + entry_meta.pop("framework", None) + return entry_meta + raise UserErrorException("Flow metadata not found.") + + def prepare_metadata( + self, + flow_file: Path, + working_dir: Path, + **kwargs, + ) -> None: + init_kwargs = kwargs.get("init_kwargs", {}) + command = [ + "dotnet", + EXECUTOR_SERVICE_DLL, + "--flow_meta", + "--yaml_path", + flow_file.absolute().as_posix(), + "--assembly_folder", + ".", + ] + # csharp depends on init_kwargs to identify the target constructor + if init_kwargs: + temp_init_kwargs_file = working_dir / PROMPT_FLOW_DIR_NAME / f"init-{uuid.uuid4()}.json" + temp_init = {k: None for k in init_kwargs} + temp_init_kwargs_file.write_text(json.dumps(temp_init)) + command.extend(["--init", temp_init_kwargs_file.as_posix()]) + else: + temp_init_kwargs_file = None + + try: + subprocess.check_output( + command, + cwd=working_dir, + ) + except subprocess.CalledProcessError as e: + raise UserErrorException( + message_format="Failed to generate flow meta for csharp flow.\n" + "Command: {command}\n" + "Working directory: {working_directory}\n" + "Return code: {return_code}\n" + "Output: {output}", + command=" ".join(command), + working_directory=working_dir.as_posix(), + return_code=e.returncode, + output=e.output, + ) + finally: + if temp_init_kwargs_file: + temp_init_kwargs_file.unlink() diff --git a/src/promptflow-devkit/promptflow/_proxy/_python_inspector_proxy.py b/src/promptflow-devkit/promptflow/_proxy/_python_inspector_proxy.py index 39daa499fd0..b18d45f9519 100644 --- a/src/promptflow-devkit/promptflow/_proxy/_python_inspector_proxy.py +++ b/src/promptflow-devkit/promptflow/_proxy/_python_inspector_proxy.py @@ -5,7 +5,7 @@ from promptflow._constants import FlowEntryRegex from promptflow._core.entry_meta_generator import _generate_flow_meta from promptflow._sdk._constants import FLOW_META_JSON_GEN_TIMEOUT -from promptflow._utils.flow_utils import resolve_entry_file +from promptflow._utils.flow_utils import is_flex_flow, resolve_entry_file from ._base_inspector_proxy import AbstractInspectorProxy @@ -46,3 +46,18 @@ def get_entry_meta( timeout=timeout, load_in_subprocess=load_in_subprocess, ) + + def prepare_metadata( + self, + flow_file: Path, + working_dir: Path, + **kwargs, + ) -> None: + if not is_flex_flow(flow_path=flow_file, working_dir=working_dir): + from promptflow._sdk._utils import generate_flow_tools_json + + generate_flow_tools_json( + flow_directory=working_dir, + dump=True, + used_packages_only=True, + ) diff --git a/src/promptflow-devkit/promptflow/_sdk/_configuration.py b/src/promptflow-devkit/promptflow/_sdk/_configuration.py index 0bde2cfea41..a3b56541f3d 100644 --- a/src/promptflow-devkit/promptflow/_sdk/_configuration.py +++ b/src/promptflow-devkit/promptflow/_sdk/_configuration.py @@ -18,7 +18,7 @@ SERVICE_CONFIG_FILE, ) from promptflow._sdk._errors import MissingAzurePackage -from promptflow._sdk._tracing import PF_CONFIG_TRACE_FEATURE_DISABLE +from promptflow._sdk._tracing import PF_CONFIG_TRACE_FEATURE_DISABLE, PF_CONFIG_TRACE_LOCAL from promptflow._sdk._utils import call_from_extension, gen_uuid_by_compute_info, read_write_by_user from promptflow._utils.logger_utils import get_cli_sdk_logger from promptflow._utils.yaml_utils import dump_yaml, load_yaml @@ -223,6 +223,9 @@ def _validate(key: str, value: str) -> None: # disable trace feature, no need to validate if value.lower() == PF_CONFIG_TRACE_FEATURE_DISABLE: return + # enable trace feature, but disable local to cloud + if value.lower() == PF_CONFIG_TRACE_LOCAL: + return try: from promptflow.azure._utils._tracing import validate_trace_provider diff --git a/src/promptflow-devkit/promptflow/_sdk/_constants.py b/src/promptflow-devkit/promptflow/_sdk/_constants.py index 0d9d290b7c7..f4368a01a2e 100644 --- a/src/promptflow-devkit/promptflow/_sdk/_constants.py +++ b/src/promptflow-devkit/promptflow/_sdk/_constants.py @@ -12,10 +12,10 @@ CONNECTION_SCRUBBED_VALUE, CONNECTION_SCRUBBED_VALUE_NO_CHANGE, PROMPT_FLOW_DIR_NAME, - ConnectionAuthMode, ConnectionType, CustomStrongTypeConnectionConfigs, ) +from promptflow.constants import ConnectionAuthMode LOGGER_NAME = "promptflow" diff --git a/src/promptflow-devkit/promptflow/_sdk/_orchestrator/run_submitter.py b/src/promptflow-devkit/promptflow/_sdk/_orchestrator/run_submitter.py index 7c1e085a712..0e9f8a0f244 100644 --- a/src/promptflow-devkit/promptflow/_sdk/_orchestrator/run_submitter.py +++ b/src/promptflow-devkit/promptflow/_sdk/_orchestrator/run_submitter.py @@ -7,7 +7,8 @@ from pathlib import Path from typing import Union -from promptflow._constants import FlowLanguage, FlowType +from promptflow._constants import FlowType +from promptflow._proxy import ProxyFactory from promptflow._sdk._constants import REMOTE_URI_PREFIX, ContextAttributeKey, FlowRunProperties from promptflow._sdk.entities._flows import Flow, Prompty from promptflow._sdk.entities._run import Run @@ -115,13 +116,11 @@ def _submit_bulk_run( ) -> dict: logger.info(f"Submitting run {run.name}, log path: {local_storage.logger.file_path}") run_id = run.name - # for python, we can get metadata in-memory, so no need to dump them first - if flow.language != FlowLanguage.Python: - from promptflow._proxy import ProxyFactory - + # TODO: unify the logic for prompty and other flows + if not isinstance(flow, Prompty): # variants are resolved in the context, so we can't move this logic to Operations for now - ProxyFactory().get_executor_proxy_cls(flow.language).dump_metadata( - flow_file=Path(flow.path), working_dir=Path(flow.code) + ProxyFactory().create_inspector_proxy(flow.language).prepare_metadata( + flow_file=Path(flow.path), working_dir=Path(flow.code), init_kwargs=run.init ) with _change_working_dir(flow.code): diff --git a/src/promptflow-devkit/promptflow/_sdk/_orchestrator/test_submitter.py b/src/promptflow-devkit/promptflow/_sdk/_orchestrator/test_submitter.py index f95ae5a2f77..923f5b06284 100644 --- a/src/promptflow-devkit/promptflow/_sdk/_orchestrator/test_submitter.py +++ b/src/promptflow-devkit/promptflow/_sdk/_orchestrator/test_submitter.py @@ -16,7 +16,7 @@ from promptflow._proxy import ProxyFactory from promptflow._sdk._constants import PROMPT_FLOW_DIR_NAME from promptflow._sdk._utils import get_flow_name -from promptflow._sdk.entities._flows import Flow, FlowContext +from promptflow._sdk.entities._flows import Flow, FlowContext, Prompty from promptflow._sdk.operations._local_storage_operations import LoggerOperations from promptflow._utils.async_utils import async_run_allowing_running_loop from promptflow._utils.context_utils import _change_working_dir @@ -222,12 +222,12 @@ def init( # temp flow is generated, will use self.flow instead of self._origin_flow in the following context self._within_init_context = True - # Python flow may get metadata in-memory, so no need to dump them first - if self.flow.language != FlowLanguage.Python: + if not isinstance(self.flow, Prompty): # variant is resolve in the context, so we can't move this to Operations for now - ProxyFactory().get_executor_proxy_cls(self.flow.language).dump_metadata( + ProxyFactory().create_inspector_proxy(self.flow.language).prepare_metadata( flow_file=self.flow.path, working_dir=self.flow.code, + init_kwargs=init_kwargs, ) self._target_node = target_node diff --git a/src/promptflow-devkit/promptflow/_sdk/_service/apis/run.py b/src/promptflow-devkit/promptflow/_sdk/_service/apis/run.py index cc35fbfdbca..4a3c0780e6c 100644 --- a/src/promptflow-devkit/promptflow/_sdk/_service/apis/run.py +++ b/src/promptflow-devkit/promptflow/_sdk/_service/apis/run.py @@ -188,8 +188,12 @@ class Metrics(Resource): def get(self, name: str): run = get_client_from_request().runs.get(name=name) local_storage_op = LocalStorageOperations(run=run) - metrics = local_storage_op.load_metrics() - return jsonify(metrics) + try: + metrics = local_storage_op.load_metrics() + return jsonify(metrics) + except Exception as e: + api.logger.warning(f"Get {name} metrics failed with {e}") + return jsonify({}) @api.route("//visualize") diff --git a/src/promptflow-devkit/promptflow/_sdk/_service/static/chat-window/assets/index-Aqbm1HF0.js b/src/promptflow-devkit/promptflow/_sdk/_service/static/chat-window/assets/index-M0ZKx3xO.js similarity index 56% rename from src/promptflow-devkit/promptflow/_sdk/_service/static/chat-window/assets/index-Aqbm1HF0.js rename to src/promptflow-devkit/promptflow/_sdk/_service/static/chat-window/assets/index-M0ZKx3xO.js index 9e53a5f2e43..5d8c7ff66a5 100644 --- a/src/promptflow-devkit/promptflow/_sdk/_service/static/chat-window/assets/index-Aqbm1HF0.js +++ b/src/promptflow-devkit/promptflow/_sdk/_service/static/chat-window/assets/index-M0ZKx3xO.js @@ -1,5 +1,5 @@ (function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode('@layer rdg.MeasuringCell{.m1l09lto7-0-0-beta-39{contain:strict;grid-row:1;visibility:hidden}}@layer rdg.Cell{.c1wupbe7-0-0-beta-39{position:relative;padding-block:0;padding-inline:8px;border-inline-end:1px solid var(--rdg-border-color);border-block-end:1px solid var(--rdg-border-color);grid-row-start:var(--rdg-grid-row-start);background-color:inherit;white-space:nowrap;overflow:clip;text-overflow:ellipsis;outline:none}.c1wupbe7-0-0-beta-39[aria-selected=true]{outline:2px solid var(--rdg-selection-color);outline-offset:-2px}}@layer rdg.Cell{.cd0kgiy7-0-0-beta-39{position:sticky;z-index:1}}@layer rdg.Cell{.c1730fa47-0-0-beta-39{box-shadow:calc(2px * var(--rdg-sign)) 0 5px -2px #8888884d}}@layer rdg.CheckboxLabel{.c1hs68w07-0-0-beta-39{cursor:pointer;display:flex;align-items:center;justify-content:center;position:absolute;top:0;right:0;bottom:0;left:0;margin-inline-end:1px}}@layer rdg.CheckboxInput{.cojpd0n7-0-0-beta-39{all:unset}}@layer rdg.CheckboxIcon{.cwsfieb7-0-0-beta-39{content:"";inline-size:20px;block-size:20px;border:2px solid var(--rdg-border-color);background-color:var(--rdg-background-color)}.cojpd0n7-0-0-beta-39:checked+.cwsfieb7-0-0-beta-39{background-color:var(--rdg-checkbox-color);outline:4px solid var(--rdg-background-color);outline-offset:-6px}.cojpd0n7-0-0-beta-39:focus+.cwsfieb7-0-0-beta-39{border-color:var(--rdg-checkbox-focus-color)}}@layer rdg.CheckboxLabel{.c1fgadbl7-0-0-beta-39{cursor:default}.c1fgadbl7-0-0-beta-39 .cwsfieb7-0-0-beta-39{border-color:var(--rdg-checkbox-disabled-border-color);background-color:var(--rdg-checkbox-disabled-background-color)}}@layer rdg.GroupCellContent{.g1w3c5217-0-0-beta-39{outline:none}}@layer rdg.GroupCellCaret{.cm5tyhw7-0-0-beta-39{margin-inline-start:4px;stroke:currentColor;stroke-width:1.5px;fill:transparent;vertical-align:middle}.cm5tyhw7-0-0-beta-39>path{transition:d .1s}}@layer rdg.DragHandle{.cadd3bp7-0-0-beta-39{--rdg-drag-handle-size: 8px;z-index:0;cursor:move;inline-size:var(--rdg-drag-handle-size);block-size:var(--rdg-drag-handle-size);background-color:var(--rdg-selection-color);place-self:end}.cadd3bp7-0-0-beta-39:hover{--rdg-drag-handle-size: 16px;border:2px solid var(--rdg-selection-color);background-color:var(--rdg-background-color)}}@layer rdg.DragHandle{.ccmuez27-0-0-beta-39{z-index:1;position:sticky}}@layer rdg.EditCell{.c1tngyp17-0-0-beta-39{padding:0}}@layer rdg.SortableHeaderCell{.hizp7y17-0-0-beta-39{display:flex}}@layer rdg.SortableHeaderCellName{.h14cojrm7-0-0-beta-39{flex-grow:1;overflow:clip;text-overflow:ellipsis}}@layer rdg.HeaderCell{.celq7o97-0-0-beta-39{cursor:pointer}}@layer rdg.HeaderCell{.ceqw94e7-0-0-beta-39{touch-action:none}}@layer rdg.HeaderCell{.r12jy2ca7-0-0-beta-39{cursor:col-resize;position:absolute;inset-block-start:0;inset-inline-end:0;inset-block-end:0;inline-size:10px}}.c1j3os1p7-0-0-beta-39{opacity:.5}.c1ui3nad7-0-0-beta-39{background-color:var(--rdg-header-draggable-background-color)}@layer rdg.Row{.r1otpg647-0-0-beta-39{display:contents;line-height:var(--rdg-row-height);background-color:var(--rdg-background-color)}.r1otpg647-0-0-beta-39:hover{background-color:var(--rdg-row-hover-background-color)}.r1otpg647-0-0-beta-39[aria-selected=true]{background-color:var(--rdg-row-selected-background-color)}.r1otpg647-0-0-beta-39[aria-selected=true]:hover{background-color:var(--rdg-row-selected-hover-background-color)}}@layer rdg.FocusSink{.rel5gk27-0-0-beta-39{outline:2px solid var(--rdg-selection-color);outline-offset:-2px}}@layer rdg.FocusSink{.r1qymf1z7-0-0-beta-39:before{content:"";display:inline-block;height:100%;position:sticky;inset-inline-start:0;border-inline-start:2px solid var(--rdg-selection-color)}}@layer rdg.HeaderRow{.h197vzie7-0-0-beta-39{display:contents;line-height:var(--rdg-header-row-height);background-color:var(--rdg-header-background-color);font-weight:700}.h197vzie7-0-0-beta-39>.c1wupbe7-0-0-beta-39{z-index:2;position:sticky}.h197vzie7-0-0-beta-39>.cd0kgiy7-0-0-beta-39{z-index:3}}@layer rdg.Cell{.ccpfvsn7-0-0-beta-39{background-color:#ccf}}@layer rdg.Cell{.c1bmg16t7-0-0-beta-39{background-color:#ccf}.c1bmg16t7-0-0-beta-39.ccpfvsn7-0-0-beta-39{background-color:#99f}}@layer rdg.SortIcon{.a1mygwml7-0-0-beta-39{fill:currentColor}.a1mygwml7-0-0-beta-39>path{transition:d .1s}}@layer rdg{@layer Defaults,FocusSink,CheckboxInput,CheckboxIcon,CheckboxLabel,Cell,HeaderCell,SummaryCell,EditCell,Row,HeaderRow,SummaryRow,GroupedRow,Root;@layer Defaults{.r104f42s7-0-0-beta-39 *,.r104f42s7-0-0-beta-39 *:before,.r104f42s7-0-0-beta-39 *:after{box-sizing:inherit}}@layer Root{.r104f42s7-0-0-beta-39{--rdg-color: #000;--rdg-border-color: #ddd;--rdg-summary-border-color: #aaa;--rdg-background-color: hsl(0deg 0% 100%);--rdg-header-background-color: hsl(0deg 0% 97.5%);--rdg-header-draggable-background-color: hsl(0deg 0% 90.5%);--rdg-row-hover-background-color: hsl(0deg 0% 96%);--rdg-row-selected-background-color: hsl(207deg 76% 92%);--rdg-row-selected-hover-background-color: hsl(207deg 76% 88%);--rdg-checkbox-color: hsl(207deg 100% 29%);--rdg-checkbox-focus-color: hsl(207deg 100% 69%);--rdg-checkbox-disabled-border-color: #ccc;--rdg-checkbox-disabled-background-color: #ddd;--rdg-selection-color: #66afe9;--rdg-font-size: 14px;display:grid;color-scheme:var(--rdg-color-scheme, light dark);contain:content;content-visibility:auto;block-size:350px;border:1px solid var(--rdg-border-color);box-sizing:border-box;overflow:auto;background-color:var(--rdg-background-color);color:var(--rdg-color);font-size:var(--rdg-font-size)}.r104f42s7-0-0-beta-39:before{content:"";grid-column:1/-1;grid-row:1/-1}.r104f42s7-0-0-beta-39.rdg-dark{--rdg-color-scheme: dark;--rdg-color: #ddd;--rdg-border-color: #444;--rdg-summary-border-color: #555;--rdg-background-color: hsl(0deg 0% 13%);--rdg-header-background-color: hsl(0deg 0% 10.5%);--rdg-header-draggable-background-color: hsl(0deg 0% 17.5%);--rdg-row-hover-background-color: hsl(0deg 0% 9%);--rdg-row-selected-background-color: hsl(207deg 76% 42%);--rdg-row-selected-hover-background-color: hsl(207deg 76% 38%);--rdg-checkbox-color: hsl(207deg 100% 79%);--rdg-checkbox-focus-color: hsl(207deg 100% 89%);--rdg-checkbox-disabled-border-color: #000;--rdg-checkbox-disabled-background-color: #333}.r104f42s7-0-0-beta-39.rdg-light{--rdg-color-scheme: light}@media (prefers-color-scheme: dark){.r104f42s7-0-0-beta-39:not(.rdg-light){--rdg-color: #ddd;--rdg-border-color: #444;--rdg-summary-border-color: #555;--rdg-background-color: hsl(0deg 0% 13%);--rdg-header-background-color: hsl(0deg 0% 10.5%);--rdg-header-draggable-background-color: hsl(0deg 0% 17.5%);--rdg-row-hover-background-color: hsl(0deg 0% 9%);--rdg-row-selected-background-color: hsl(207deg 76% 42%);--rdg-row-selected-hover-background-color: hsl(207deg 76% 38%);--rdg-checkbox-color: hsl(207deg 100% 79%);--rdg-checkbox-focus-color: hsl(207deg 100% 89%);--rdg-checkbox-disabled-border-color: #000;--rdg-checkbox-disabled-background-color: #333}}}}@layer rdg.Root{.v7ly7s7-0-0-beta-39{-webkit-user-select:none;user-select:none}.v7ly7s7-0-0-beta-39 .r1otpg647-0-0-beta-39{cursor:move}}@layer rdg.FocusSink{.fc4f4zb7-0-0-beta-39{grid-column:1/-1;pointer-events:none;z-index:1}}@layer rdg.FocusSink{.fq51q037-0-0-beta-39{z-index:3}}@layer rdg.SummaryCell{.s1n3hxke7-0-0-beta-39{inset-block-start:var(--rdg-summary-row-top);inset-block-end:var(--rdg-summary-row-bottom)}}@layer rdg.SummaryRow{.snfqesz7-0-0-beta-39{line-height:var(--rdg-summary-row-height)}.snfqesz7-0-0-beta-39>.c1wupbe7-0-0-beta-39{position:sticky}}@layer rdg.SummaryRow{.t1jijrjz7-0-0-beta-39>.c1wupbe7-0-0-beta-39{z-index:2}.t1jijrjz7-0-0-beta-39>.cd0kgiy7-0-0-beta-39{z-index:3}}@layer rdg.SummaryRow{.t14bmecc7-0-0-beta-39>.c1wupbe7-0-0-beta-39{border-block-end:2px solid var(--rdg-summary-border-color)}}@layer rdg.SummaryRow{.b1odhhml7-0-0-beta-39>.c1wupbe7-0-0-beta-39{border-block-start:2px solid var(--rdg-summary-border-color)}}@layer rdg.GroupedRow{.gyxx7e97-0-0-beta-39:not([aria-selected=true]){background-color:var(--rdg-header-background-color)}.gyxx7e97-0-0-beta-39>.c1wupbe7-0-0-beta-39:not(:last-child):not(.c1730fa47-0-0-beta-39){border-inline-end:none}}@layer rdg.TextEditor{.tlmcuo07-0-0-beta-39{-webkit-appearance:none;-moz-appearance:none;appearance:none;box-sizing:border-box;inline-size:100%;block-size:100%;padding-block:0;padding-inline:6px;border:2px solid #ccc;vertical-align:top;color:var(--rdg-color);background-color:var(--rdg-background-color);font-family:inherit;font-size:var(--rdg-font-size)}.tlmcuo07-0-0-beta-39:focus{border-color:var(--rdg-selection-color);outline:none}.tlmcuo07-0-0-beta-39::placeholder{color:#999;opacity:1}}')),document.head.appendChild(r)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})(); -var Jwe=Object.defineProperty;var eke=(e,t,r)=>t in e?Jwe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var tke=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ze=(e,t,r)=>(eke(e,typeof t!="symbol"?t+"":t,r),r);var rbt=tke((pbt,z6)=>{function ure(e,t){for(var r=0;rn[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var Ts=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Mf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lre={exports:{}},PT={},cre={exports:{}},mr={};/** +var sAe=Object.defineProperty;var aAe=(e,t,r)=>t in e?sAe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var uAe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ze=(e,t,r)=>(aAe(e,typeof t!="symbol"?t+"":t,r),r);var mbt=uAe((Cbt,W6)=>{function gre(e,t){for(var r=0;rn[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var xs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Lf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vre={exports:{}},Gx={},mre={exports:{}},yr={};/** * @license React * react.production.min.js * @@ -7,7 +7,7 @@ var Jwe=Object.defineProperty;var eke=(e,t,r)=>t in e?Jwe(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var R_=Symbol.for("react.element"),rke=Symbol.for("react.portal"),nke=Symbol.for("react.fragment"),oke=Symbol.for("react.strict_mode"),ike=Symbol.for("react.profiler"),ske=Symbol.for("react.provider"),ake=Symbol.for("react.context"),uke=Symbol.for("react.forward_ref"),lke=Symbol.for("react.suspense"),cke=Symbol.for("react.memo"),fke=Symbol.for("react.lazy"),iP=Symbol.iterator;function dke(e){return e===null||typeof e!="object"?null:(e=iP&&e[iP]||e["@@iterator"],typeof e=="function"?e:null)}var fre={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},dre=Object.assign,hre={};function nv(e,t,r){this.props=e,this.context=t,this.refs=hre,this.updater=r||fre}nv.prototype.isReactComponent={};nv.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")};nv.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function pre(){}pre.prototype=nv.prototype;function H6(e,t,r){this.props=e,this.context=t,this.refs=hre,this.updater=r||fre}var $6=H6.prototype=new pre;$6.constructor=H6;dre($6,nv.prototype);$6.isPureReactComponent=!0;var sP=Array.isArray,gre=Object.prototype.hasOwnProperty,P6={current:null},vre={key:!0,ref:!0,__self:!0,__source:!0};function mre(e,t,r){var n,o={},i=null,s=null;if(t!=null)for(n in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)gre.call(t,n)&&!vre.hasOwnProperty(n)&&(o[n]=t[n]);var a=arguments.length-2;if(a===1)o.children=r;else if(1t in e?Jwe(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var mke=k,yke=Symbol.for("react.element"),bke=Symbol.for("react.fragment"),_ke=Object.prototype.hasOwnProperty,Eke=mke.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ske={key:!0,ref:!0,__self:!0,__source:!0};function yre(e,t,r){var n,o={},i=null,s=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(n in t)_ke.call(t,n)&&!Ske.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)o[n]===void 0&&(o[n]=t[n]);return{$$typeof:yke,type:e,key:i,ref:s,props:o,_owner:Eke.current}}PT.Fragment=bke;PT.jsx=yre;PT.jsxs=yre;lre.exports=PT;var C=lre.exports;const wke=Mf(C),kke=ure({__proto__:null,default:wke},[C]);var uP={},nk=void 0;try{nk=window}catch{}function W6(e,t){if(typeof nk<"u"){var r=nk.__packages__=nk.__packages__||{};if(!r[e]||!uP[e]){uP[e]=t;var n=r[e]=r[e]||[];n.push(t)}}}W6("@fluentui/set-version","6.0.0");var W3=function(e,t){return W3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},W3(e,t)};function pc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");W3(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Ee=function(){return Ee=Object.assign||function(t){for(var r,n=1,o=arguments.length;n=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,r,i):s(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}function ol(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n"u"?pm.none:pm.insertNode,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},t),this._classNameToArgs=(n=r==null?void 0:r.classNameToArgs)!==null&&n!==void 0?n:this._classNameToArgs,this._counter=(o=r==null?void 0:r.counter)!==null&&o!==void 0?o:this._counter,this._keyToClassName=(s=(i=this._config.classNameCache)!==null&&i!==void 0?i:r==null?void 0:r.keyToClassName)!==null&&s!==void 0?s:this._keyToClassName,this._preservedRules=(a=r==null?void 0:r.preservedRules)!==null&&a!==void 0?a:this._preservedRules,this._rules=(u=r==null?void 0:r.rules)!==null&&u!==void 0?u:this._rules}return e.getInstance=function(){if(Lp=u0[lP],!Lp||Lp._lastStyleElement&&Lp._lastStyleElement.ownerDocument!==document){var t=(u0==null?void 0:u0.FabricConfig)||{},r=new e(t.mergeStyles,t.serializedStylesheet);Lp=r,u0[lP]=r}return Lp},e.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},e.prototype.setConfig=function(t){this._config=Ee(Ee({},this._config),t)},e.prototype.onReset=function(t){var r=this;return this._onResetCallbacks.push(t),function(){r._onResetCallbacks=r._onResetCallbacks.filter(function(n){return n!==t})}},e.prototype.onInsertRule=function(t){var r=this;return this._onInsertRuleCallbacks.push(t),function(){r._onInsertRuleCallbacks=r._onInsertRuleCallbacks.filter(function(n){return n!==t})}},e.prototype.getClassName=function(t){var r=this._config.namespace,n=t||this._config.defaultPrefix;return"".concat(r?r+"-":"").concat(n,"-").concat(this._counter++)},e.prototype.cacheClassName=function(t,r,n,o){this._keyToClassName[r]=t,this._classNameToArgs[t]={args:n,rules:o}},e.prototype.classNameFromKey=function(t){return this._keyToClassName[t]},e.prototype.getClassNameCache=function(){return this._keyToClassName},e.prototype.argsFromClassName=function(t){var r=this._classNameToArgs[t];return r&&r.args},e.prototype.insertedRulesFromClassName=function(t){var r=this._classNameToArgs[t];return r&&r.rules},e.prototype.insertRule=function(t,r){var n=this._config.injectionMode,o=n!==pm.none?this._getStyleElement():void 0;if(r&&this._preservedRules.push(t),o)switch(n){case pm.insertNode:var i=o.sheet;try{i.insertRule(t,i.cssRules.length)}catch{}break;case pm.appendChild:o.appendChild(document.createTextNode(t));break}else this._rules.push(t);this._config.onInsertRule&&this._config.onInsertRule(t),this._onInsertRuleCallbacks.forEach(function(s){return s()})},e.prototype.getRules=function(t){return(t?this._preservedRules.join(""):"")+this._rules.join("")},e.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach(function(t){return t()})},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._getStyleElement=function(){var t=this;return!this._styleElement&&typeof document<"u"&&(this._styleElement=this._createStyleElement(),Tke||window.requestAnimationFrame(function(){t._styleElement=void 0})),this._styleElement},e.prototype._createStyleElement=function(){var t=document.head,r=document.createElement("style"),n=null;r.setAttribute("data-merge-styles","true");var o=this._config.cspSettings;if(o&&o.nonce&&r.setAttribute("nonce",o.nonce),this._lastStyleElement)n=this._lastStyleElement.nextElementSibling;else{var i=this._findPlaceholderStyleTag();i?n=i.nextElementSibling:n=t.childNodes[0]}return t.insertBefore(r,t.contains(n)?n:null),this._lastStyleElement=r,r},e.prototype._findPlaceholderStyleTag=function(){var t=document.head;return t?t.querySelector("style[data-merge-styles]"):null},e}();function bre(){for(var e=[],t=0;t=0)i(l.split(" "));else{var c=o.argsFromClassName(l);c?i(c):r.indexOf(l)===-1&&r.push(l)}else Array.isArray(l)?i(l):typeof l=="object"&&n.push(l)}}return i(e),{classes:r,objects:n}}function _re(e){G0!==e&&(G0=e)}function Ere(){return G0===void 0&&(G0=typeof document<"u"&&!!document.documentElement&&document.documentElement.getAttribute("dir")==="rtl"),G0}var G0;G0=Ere();function qT(){return{rtl:Ere()}}var cP={};function xke(e,t){var r=e[t];r.charAt(0)!=="-"&&(e[t]=cP[r]=cP[r]||r.replace(/([A-Z])/g,"-$1").toLowerCase())}var NS;function Ike(){var e;if(!NS){var t=typeof document<"u"?document:void 0,r=typeof navigator<"u"?navigator:void 0,n=(e=r==null?void 0:r.userAgent)===null||e===void 0?void 0:e.toLowerCase();t?NS={isWebkit:!!(t&&"WebkitAppearance"in t.documentElement.style),isMoz:!!(n&&n.indexOf("firefox")>-1),isOpera:!!(n&&n.indexOf("opera")>-1),isMs:!!(r&&(/rv:11.0/i.test(r.userAgent)||/Edge\/\d./i.test(navigator.userAgent)))}:NS={isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return NS}var fP={"user-select":1};function Nke(e,t){var r=Ike(),n=e[t];if(fP[n]){var o=e[t+1];fP[n]&&(r.isWebkit&&e.push("-webkit-"+n,o),r.isMoz&&e.push("-moz-"+n,o),r.isMs&&e.push("-ms-"+n,o),r.isOpera&&e.push("-o-"+n,o))}}var Cke=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function Rke(e,t){var r=e[t],n=e[t+1];if(typeof n=="number"){var o=Cke.indexOf(r)>-1,i=r.indexOf("--")>-1,s=o||i?"":"px";e[t+1]="".concat(n).concat(s)}}var CS,md="left",yd="right",Oke="@noflip",dP=(CS={},CS[md]=yd,CS[yd]=md,CS),hP={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function Dke(e,t,r){if(e.rtl){var n=t[r];if(!n)return;var o=t[r+1];if(typeof o=="string"&&o.indexOf(Oke)>=0)t[r+1]=o.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(n.indexOf(md)>=0)t[r]=n.replace(md,yd);else if(n.indexOf(yd)>=0)t[r]=n.replace(yd,md);else if(String(o).indexOf(md)>=0)t[r+1]=o.replace(md,yd);else if(String(o).indexOf(yd)>=0)t[r+1]=o.replace(yd,md);else if(dP[n])t[r]=dP[n];else if(hP[o])t[r+1]=hP[o];else switch(n){case"margin":case"padding":t[r+1]=Bke(o);break;case"box-shadow":t[r+1]=Fke(o,0);break}}}function Fke(e,t){var r=e.split(" "),n=parseInt(r[t],10);return r[0]=r[0].replace(String(n),String(n*-1)),r.join(" ")}function Bke(e){if(typeof e=="string"){var t=e.split(" ");if(t.length===4)return"".concat(t[0]," ").concat(t[3]," ").concat(t[2]," ").concat(t[1])}return e}function Mke(e){for(var t=[],r=0,n=0,o=0;or&&t.push(e.substring(r,o)),r=o+1);break}return r-1&&t.push([n.index,n.index+n[0].length,n[1].split(",").map(function(o){return":global(".concat(o.trim(),")")}).join(", ")]);return t.reverse().reduce(function(o,i){var s=i[0],a=i[1],u=i[2],l=o.slice(0,s),c=o.slice(a);return l+u+c},e)}function pP(e,t){return e.indexOf(":global(")>=0?e.replace(Sre,"$1"):e.indexOf(":")===0?t+e:e.indexOf("&")<0?t+" "+e:e}function gP(e,t,r,n){t===void 0&&(t={__order:[]}),r.indexOf("@")===0?(r=r+"{"+e,V0([n],t,r)):r.indexOf(",")>-1?zke(r).split(",").map(function(o){return o.trim()}).forEach(function(o){return V0([n],t,pP(o,e))}):V0([n],t,pP(r,e))}function V0(e,t,r){t===void 0&&(t={__order:[]}),r===void 0&&(r="&");var n=hu.getInstance(),o=t[r];o||(o={},t[r]=o,t.__order.push(r));for(var i=0,s=e;i0){r.subComponentStyles={};var d=r.subComponentStyles,h=function(g){if(n.hasOwnProperty(g)){var v=n[g];d[g]=function(y){return O_.apply(void 0,v.map(function(E){return typeof E=="function"?E(y):E}))}}};for(var l in n)h(l)}return r}function Mi(){for(var e=[],t=0;t"u")){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:K3}}var Cre=function(){function e(t,r){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=t||null,this._onErrorHandler=r,this._noop=function(){}}return e.prototype.dispose=function(){var t;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(t in this._timeoutIds)this._timeoutIds.hasOwnProperty(t)&&this.clearTimeout(parseInt(t,10));this._timeoutIds=null}if(this._immediateIds){for(t in this._immediateIds)this._immediateIds.hasOwnProperty(t)&&this.clearImmediate(parseInt(t,10));this._immediateIds=null}if(this._intervalIds){for(t in this._intervalIds)this._intervalIds.hasOwnProperty(t)&&this.clearInterval(parseInt(t,10));this._intervalIds=null}if(this._animationFrameIds){for(t in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(t)&&this.cancelAnimationFrame(parseInt(t,10));this._animationFrameIds=null}},e.prototype.setTimeout=function(t,r){var n=this,o=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),o=setTimeout(function(){try{n._timeoutIds&&delete n._timeoutIds[o],t.apply(n._parent)}catch(i){n._logError(i)}},r),this._timeoutIds[o]=!0),o},e.prototype.clearTimeout=function(t){this._timeoutIds&&this._timeoutIds[t]&&(clearTimeout(t),delete this._timeoutIds[t])},e.prototype.setImmediate=function(t,r){var n=this,o=0,i=lo(r);if(!this._isDisposed){this._immediateIds||(this._immediateIds={});var s=function(){try{n._immediateIds&&delete n._immediateIds[o],t.apply(n._parent)}catch(a){n._logError(a)}};o=i.setTimeout(s,0),this._immediateIds[o]=!0}return o},e.prototype.clearImmediate=function(t,r){var n=lo(r);this._immediateIds&&this._immediateIds[t]&&(n.clearTimeout(t),delete this._immediateIds[t])},e.prototype.setInterval=function(t,r){var n=this,o=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),o=setInterval(function(){try{t.apply(n._parent)}catch(i){n._logError(i)}},r),this._intervalIds[o]=!0),o},e.prototype.clearInterval=function(t){this._intervalIds&&this._intervalIds[t]&&(clearInterval(t),delete this._intervalIds[t])},e.prototype.throttle=function(t,r,n){var o=this;if(this._isDisposed)return this._noop;var i=r||0,s=!0,a=!0,u=0,l,c,f=null;n&&typeof n.leading=="boolean"&&(s=n.leading),n&&typeof n.trailing=="boolean"&&(a=n.trailing);var d=function(g){var v=Date.now(),y=v-u,E=s?i-y:i;return y>=i&&(!g||s)?(u=v,f&&(o.clearTimeout(f),f=null),l=t.apply(o._parent,c)):f===null&&a&&(f=o.setTimeout(d,E)),l},h=function(){for(var g=[],v=0;v=s&&(N=!0),c=T);var I=T-c,R=s-I,D=T-f,L=!1;return l!==null&&(D>=l&&g?L=!0:R=Math.min(R,l-D)),I>=s||L||N?y(T):(g===null||!x)&&u&&(g=o.setTimeout(E,R)),d},_=function(){return!!g},S=function(){_()&&v(Date.now())},b=function(){return _()&&y(Date.now()),d},A=function(){for(var x=[],T=0;T-1)for(var s=r.split(/[ ,]+/),a=0;a"u")){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}var PI,Ay=0,Ore=vr({overflow:"hidden !important"}),vP="data-is-scrollable",Kke=function(e,t){if(e){var r=0,n=null,o=function(s){s.targetTouches.length===1&&(r=s.targetTouches[0].clientY)},i=function(s){if(s.targetTouches.length===1&&(s.stopPropagation(),!!n)){var a=s.targetTouches[0].clientY-r,u=Fre(s.target);u&&(n=u),n.scrollTop===0&&a>0&&s.preventDefault(),n.scrollHeight-Math.ceil(n.scrollTop)<=n.clientHeight&&a<0&&s.preventDefault()}};t.on(e,"touchstart",o,{passive:!1}),t.on(e,"touchmove",i,{passive:!1}),n=e}},Gke=function(e,t){if(e){var r=function(n){n.stopPropagation()};t.on(e,"touchmove",r,{passive:!1})}},Dre=function(e){e.preventDefault()};function Vke(){var e=as();e&&e.body&&!Ay&&(e.body.classList.add(Ore),e.body.addEventListener("touchmove",Dre,{passive:!1,capture:!1})),Ay++}function Uke(){if(Ay>0){var e=as();e&&e.body&&Ay===1&&(e.body.classList.remove(Ore),e.body.removeEventListener("touchmove",Dre)),Ay--}}function Yke(){if(PI===void 0){var e=document.createElement("div");e.style.setProperty("width","100px"),e.style.setProperty("height","100px"),e.style.setProperty("overflow","scroll"),e.style.setProperty("position","absolute"),e.style.setProperty("top","-9999px"),document.body.appendChild(e),PI=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return PI}function Fre(e){for(var t=e,r=as(e);t&&t!==r.body;){if(t.getAttribute(vP)==="true")return t;t=t.parentElement}for(t=e;t&&t!==r.body;){if(t.getAttribute(vP)!=="false"){var n=getComputedStyle(t),o=n?n.getPropertyValue("overflow-y"):"";if(o&&(o==="scroll"||o==="auto"))return t}t=t.parentElement}return(!t||t===r.body)&&(t=lo(e)),t}var Xke=void 0;function Bre(e){console&&console.warn&&console.warn(e)}var qI="__globalSettings__",U6="__callbacks__",Qke=0,Mre=function(){function e(){}return e.getValue=function(t,r){var n=G3();return n[t]===void 0&&(n[t]=typeof r=="function"?r():r),n[t]},e.setValue=function(t,r){var n=G3(),o=n[U6],i=n[t];if(r!==i){n[t]=r;var s={oldValue:i,value:r,key:t};for(var a in o)o.hasOwnProperty(a)&&o[a](s)}return r},e.addChangeListener=function(t){var r=t.__id__,n=mP();r||(r=t.__id__=String(Qke++)),n[r]=t},e.removeChangeListener=function(t){var r=mP();delete r[t.__id__]},e}();function G3(){var e,t=lo(),r=t||{};return r[qI]||(r[qI]=(e={},e[U6]={},e)),r[qI]}function mP(){var e=G3();return e[U6]}var Wt={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pauseBreak:19,capslock:20,escape:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,del:46,zero:48,one:49,two:50,three:51,four:52,five:53,six:54,seven:55,eight:56,nine:57,colon:58,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftWindow:91,rightWindow:92,select:93,zero_numpad:96,one_numpad:97,two_numpad:98,three_numpad:99,four_numpad:100,five_numpad:101,six_numpad:102,seven_numpad:103,eight_numpad:104,nine_numpad:105,multiply:106,add:107,subtract:109,decimalPoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrollLock:145,semicolon:186,equalSign:187,comma:188,dash:189,period:190,forwardSlash:191,graveAccent:192,openBracket:219,backSlash:220,closeBracket:221,singleQuote:222},au=function(){function e(t,r,n,o){t===void 0&&(t=0),r===void 0&&(r=0),n===void 0&&(n=0),o===void 0&&(o=0),this.top=n,this.bottom=o,this.left=t,this.right=r}return Object.defineProperty(e.prototype,"width",{get:function(){return this.right-this.left},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!1,configurable:!0}),e.prototype.equals=function(t){return parseFloat(this.top.toFixed(4))===parseFloat(t.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(t.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(t.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(t.right.toFixed(4))},e}();function Zke(e){for(var t=[],r=1;r-1&&o._virtual.children.splice(i,1)}r._virtual.parent=n||void 0,n&&(n._virtual||(n._virtual={children:[]}),n._virtual.children.push(r))}var lAe="data-is-focusable",cAe="data-is-visible",fAe="data-focuszone-id",dAe="data-is-sub-focuszone";function hAe(e,t,r){return Vi(e,t,!0,!1,!1,r)}function pAe(e,t,r){return Ss(e,t,!0,!1,!0,r)}function gAe(e,t,r,n){return n===void 0&&(n=!0),Vi(e,t,n,!1,!1,r,!1,!0)}function vAe(e,t,r,n){return n===void 0&&(n=!0),Ss(e,t,n,!1,!0,r,!1,!0)}function mAe(e,t){var r=Vi(e,e,!0,!1,!1,!0,void 0,void 0,t);return r?($re(r),!0):!1}function Ss(e,t,r,n,o,i,s,a){if(!t||!s&&t===e)return null;var u=KT(t);if(o&&u&&(i||!(Xc(t)||X6(t)))){var l=Ss(e,t.lastElementChild,!0,!0,!0,i,s,a);if(l){if(a&&Bl(l,!0)||!a)return l;var c=Ss(e,l.previousElementSibling,!0,!0,!0,i,s,a);if(c)return c;for(var f=l.parentElement;f&&f!==t;){var d=Ss(e,f.previousElementSibling,!0,!0,!0,i,s,a);if(d)return d;f=f.parentElement}}}if(r&&u&&Bl(t,a))return t;var h=Ss(e,t.previousElementSibling,!0,!0,!0,i,s,a);return h||(n?null:Ss(e,t.parentElement,!0,!1,!1,i,s,a))}function Vi(e,t,r,n,o,i,s,a,u){if(!t||t===e&&o&&!s)return null;var l=u?zre:KT,c=l(t);if(r&&c&&Bl(t,a))return t;if(!o&&c&&(i||!(Xc(t)||X6(t)))){var f=Vi(e,t.firstElementChild,!0,!0,!1,i,s,a,u);if(f)return f}if(t===e)return null;var d=Vi(e,t.nextElementSibling,!0,!0,!1,i,s,a,u);return d||(n?null:Vi(e,t.parentElement,!1,!1,!0,i,s,a,u))}function KT(e){if(!e||!e.getAttribute)return!1;var t=e.getAttribute(cAe);return t!=null?t==="true":e.offsetHeight!==0||e.offsetParent!==null||e.isVisible===!0}function zre(e){return!!e&&KT(e)&&!e.hidden&&window.getComputedStyle(e).visibility!=="hidden"}function Bl(e,t){if(!e||e.disabled)return!1;var r=0,n=null;e&&e.getAttribute&&(n=e.getAttribute("tabIndex"),n&&(r=parseInt(n,10)));var o=e.getAttribute?e.getAttribute(lAe):null,i=n!==null&&r>=0,s=!!e&&o!=="false"&&(e.tagName==="A"||e.tagName==="BUTTON"||e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.tagName==="SELECT"||o==="true"||i);return t?r!==-1&&s:s}function Xc(e){return!!(e&&e.getAttribute&&e.getAttribute(fAe))}function X6(e){return!!(e&&e.getAttribute&&e.getAttribute(dAe)==="true")}function yAe(e){var t=as(e),r=t&&t.activeElement;return!!(r&&xs(e,r))}function Hre(e,t){return iAe(e,t)!=="true"}var RS=void 0;function $re(e){if(e){var t=lo(e);t&&(RS!==void 0&&t.cancelAnimationFrame(RS),RS=t.requestAnimationFrame(function(){e&&e.focus(),RS=void 0}))}}function bAe(e,t){for(var r=e,n=0,o=t;n(e.cacheSize||EAe)){var h=lo();!((u=h==null?void 0:h.FabricConfig)===null||u===void 0)&&u.enableClassNameCacheFullWarning&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is ".concat(r,"/").concat(n,".")),console.trace()),t.clear(),r=0,e.disableCaching=!0}return l[OS]};return i}function KI(e,t){return t=wAe(t),e.has(t)||e.set(t,new Map),e.get(t)}function yP(e,t){if(typeof t=="function"){var r=t.__cachedInputs__;if(r)for(var n=0,o=t.__cachedInputs__;n"u"?null:WeakMap;function AAe(){ik++}function ds(e,t,r){if(t===void 0&&(t=100),r===void 0&&(r=!1),!cb)return e;if(!bP){var n=hu.getInstance();n&&n.onReset&&hu.getInstance().onReset(AAe),bP=!0}var o,i=0,s=ik;return function(){for(var u=[],l=0;l0&&i>t)&&(o=_P(),i=0,s=ik),c=o;for(var f=0;f=0||u.indexOf("data-")===0||u.indexOf("aria-")===0;l&&(!r||(r==null?void 0:r.indexOf(u))===-1)&&(o[u]=e[u])}return o}function GT(e){zAe(e,{componentDidMount:VAe,componentDidUpdate:UAe,componentWillUnmount:YAe})}function VAe(){Zk(this.props.componentRef,this)}function UAe(e){e.componentRef!==this.props.componentRef&&(Zk(e.componentRef,null),Zk(this.props.componentRef,this))}function YAe(){Zk(this.props.componentRef,null)}function Zk(e,t){e&&(typeof e=="object"?e.current=t:typeof e=="function"&&e(t))}var Mu,XAe=(Mu={},Mu[Wt.up]=1,Mu[Wt.down]=1,Mu[Wt.left]=1,Mu[Wt.right]=1,Mu[Wt.home]=1,Mu[Wt.end]=1,Mu[Wt.tab]=1,Mu[Wt.pageUp]=1,Mu[Wt.pageDown]=1,Mu);function qre(e){return!!XAe[e]}var Si="ms-Fabric--isFocusVisible",SP="ms-Fabric--isFocusHidden";function wP(e,t){e&&(e.classList.add(t?Si:SP),e.classList.remove(t?SP:Si))}function VT(e,t,r){var n;r?r.forEach(function(o){return wP(o.current,e)}):wP((n=lo(t))===null||n===void 0?void 0:n.document.body,e)}var kP=new WeakMap,AP=new WeakMap;function TP(e,t){var r,n=kP.get(e);return n?r=n+t:r=1,kP.set(e,r),r}function QAe(e){var t=AP.get(e);if(t)return t;var r=function(s){return Wre(s,e.registeredProviders)},n=function(s){return Kre(s,e.registeredProviders)},o=function(s){return Gre(s,e.registeredProviders)},i=function(s){return Vre(s,e.registeredProviders)};return t={onMouseDown:r,onPointerDown:n,onKeyDown:o,onKeyUp:i},AP.set(e,t),t}var Jk=k.createContext(void 0);function ZAe(e){var t=k.useContext(Jk);k.useEffect(function(){var r,n,o,i,s=lo(e==null?void 0:e.current);if(!(!s||((r=s.FabricConfig)===null||r===void 0?void 0:r.disableFocusRects)===!0)){var a=s,u,l,c,f;if(!((n=t==null?void 0:t.providerRef)===null||n===void 0)&&n.current&&(!((i=(o=t==null?void 0:t.providerRef)===null||o===void 0?void 0:o.current)===null||i===void 0)&&i.addEventListener)){a=t.providerRef.current;var d=QAe(t);u=d.onMouseDown,l=d.onPointerDown,c=d.onKeyDown,f=d.onKeyUp}else u=Wre,l=Kre,c=Gre,f=Vre;var h=TP(a,1);return h<=1&&(a.addEventListener("mousedown",u,!0),a.addEventListener("pointerdown",l,!0),a.addEventListener("keydown",c,!0),a.addEventListener("keyup",f,!0)),function(){var g;!s||((g=s.FabricConfig)===null||g===void 0?void 0:g.disableFocusRects)===!0||(h=TP(a,-1),h===0&&(a.removeEventListener("mousedown",u,!0),a.removeEventListener("pointerdown",l,!0),a.removeEventListener("keydown",c,!0),a.removeEventListener("keyup",f,!0)))}}},[t,e])}var JAe=function(e){return ZAe(e.rootRef),null};function Wre(e,t){VT(!1,e.target,t)}function Kre(e,t){e.pointerType!=="mouse"&&VT(!1,e.target,t)}function Gre(e,t){qre(e.which)&&VT(!0,e.target,t)}function Vre(e,t){qre(e.which)&&VT(!0,e.target,t)}var Ure=function(e){var t=e.providerRef,r=e.layerRoot,n=k.useState([])[0],o=k.useContext(Jk),i=o!==void 0&&!r,s=k.useMemo(function(){return i?void 0:{providerRef:t,registeredProviders:n,registerProvider:function(a){n.push(a),o==null||o.registerProvider(a)},unregisterProvider:function(a){o==null||o.unregisterProvider(a);var u=n.indexOf(a);u>=0&&n.splice(u,1)}}},[t,n,o,i]);return k.useEffect(function(){if(s)return s.registerProvider(s.providerRef),function(){return s.unregisterProvider(s.providerRef)}},[s]),s?k.createElement(Jk.Provider,{value:s},e.children):k.createElement(k.Fragment,null,e.children)};function eTe(e){var t=null;try{var r=lo();t=r?r.localStorage.getItem(e):null}catch{}return t}var V1,xP="language";function tTe(e){if(e===void 0&&(e="sessionStorage"),V1===void 0){var t=as(),r=e==="localStorage"?eTe(xP):e==="sessionStorage"?Lre(xP):void 0;r&&(V1=r),V1===void 0&&t&&(V1=t.documentElement.getAttribute("lang")),V1===void 0&&(V1="en")}return V1}function IP(e){for(var t=[],r=1;r-1;e[n]=i?o:Yre(e[n]||{},o,r)}else e[n]=o}return r.pop(),e}var NP=function(){return!window||!window.navigator||!window.navigator.userAgent?!1:/iPad|iPhone|iPod/i.test(window.navigator.userAgent)},rTe=["TEMPLATE","STYLE","SCRIPT"];function Xre(e){var t=as(e);if(!t)return function(){};for(var r=[];e!==t.body&&e.parentElement;){for(var n=0,o=e.parentElement.children;n"u"||e){var r=lo(),n=(t=r==null?void 0:r.navigator)===null||t===void 0?void 0:t.userAgent;VI=!!n&&n.indexOf("Macintosh")!==-1}return!!VI}function oTe(e){var t=vg(function(r){var n=vg(function(o){return function(i){return r(i,o)}});return function(o,i){return e(o,i?n(i):r)}});return t}var iTe=vg(oTe);function sTe(e,t){return iTe(e)(t)}var aTe=["theme","styles"];function vc(e,t,r,n,o){n=n||{scope:"",fields:void 0};var i=n.scope,s=n.fields,a=s===void 0?aTe:s,u=k.forwardRef(function(c,f){var d=k.useRef(),h=LAe(a,i),g=h.styles;h.dir;var v=ov(h,["styles","dir"]),y=r?r(c):void 0,E=d.current&&d.current.__cachedInputs__||[],_=c.styles;if(!d.current||g!==E[1]||_!==E[2]){var S=function(b){return Ire(b,t,g,_)};S.__cachedInputs__=[t,g,_],S.__noStyleOverride__=!g&&!_,d.current=S}return k.createElement(e,Ee({ref:f},v,y,c,{styles:d.current}))});u.displayName="Styled".concat(e.displayName||e.name);var l=o?k.memo(u):u;return u.displayName&&(l.displayName=u.displayName),l}function D_(e,t){for(var r=Ee({},t),n=0,o=Object.keys(e);nn?" (+ ".concat(gm.length-n," more)"):"")),YI=void 0,gm=[]},r)))}function hTe(e,t,r,n,o){o===void 0&&(o=!1);var i=Ee({primaryButtonBorder:"transparent",errorText:n?"#F1707B":"#a4262c",messageText:n?"#F3F2F1":"#323130",messageLink:n?"#6CB8F6":"#005A9E",messageLinkHovered:n?"#82C7FF":"#004578",infoIcon:n?"#C8C6C4":"#605e5c",errorIcon:n?"#F1707B":"#A80000",blockingIcon:n?"#442726":"#FDE7E9",warningIcon:n?"#C8C6C4":"#797775",severeWarningIcon:n?"#FCE100":"#D83B01",successIcon:n?"#92C353":"#107C10",infoBackground:n?"#323130":"#f3f2f1",errorBackground:n?"#442726":"#FDE7E9",blockingBackground:n?"#442726":"#FDE7E9",warningBackground:n?"#433519":"#FFF4CE",severeWarningBackground:n?"#4F2A0F":"#FED9CC",successBackground:n?"#393D1B":"#DFF6DD",warningHighlight:n?"#fff100":"#ffb900",successText:n?"#92c353":"#107C10"},r),s=Qre(e,t,i,n);return pTe(s,o)}function Qre(e,t,r,n,o){var i={},s=e||{},a=s.white,u=s.black,l=s.themePrimary,c=s.themeDark,f=s.themeDarker,d=s.themeDarkAlt,h=s.themeLighter,g=s.neutralLight,v=s.neutralLighter,y=s.neutralDark,E=s.neutralQuaternary,_=s.neutralQuaternaryAlt,S=s.neutralPrimary,b=s.neutralSecondary,A=s.neutralSecondaryAlt,x=s.neutralTertiary,T=s.neutralTertiaryAlt,N=s.neutralLighterAlt,I=s.accent;return a&&(i.bodyBackground=a,i.bodyFrameBackground=a,i.accentButtonText=a,i.buttonBackground=a,i.primaryButtonText=a,i.primaryButtonTextHovered=a,i.primaryButtonTextPressed=a,i.inputBackground=a,i.inputForegroundChecked=a,i.listBackground=a,i.menuBackground=a,i.cardStandoutBackground=a),u&&(i.bodyTextChecked=u,i.buttonTextCheckedHovered=u),l&&(i.link=l,i.primaryButtonBackground=l,i.inputBackgroundChecked=l,i.inputIcon=l,i.inputFocusBorderAlt=l,i.menuIcon=l,i.menuHeader=l,i.accentButtonBackground=l),c&&(i.primaryButtonBackgroundPressed=c,i.inputBackgroundCheckedHovered=c,i.inputIconHovered=c),f&&(i.linkHovered=f),d&&(i.primaryButtonBackgroundHovered=d),h&&(i.inputPlaceholderBackgroundChecked=h),g&&(i.bodyBackgroundChecked=g,i.bodyFrameDivider=g,i.bodyDivider=g,i.variantBorder=g,i.buttonBackgroundCheckedHovered=g,i.buttonBackgroundPressed=g,i.listItemBackgroundChecked=g,i.listHeaderBackgroundPressed=g,i.menuItemBackgroundPressed=g,i.menuItemBackgroundChecked=g),v&&(i.bodyBackgroundHovered=v,i.buttonBackgroundHovered=v,i.buttonBackgroundDisabled=v,i.buttonBorderDisabled=v,i.primaryButtonBackgroundDisabled=v,i.disabledBackground=v,i.listItemBackgroundHovered=v,i.listHeaderBackgroundHovered=v,i.menuItemBackgroundHovered=v),E&&(i.primaryButtonTextDisabled=E,i.disabledSubtext=E),_&&(i.listItemBackgroundCheckedHovered=_),x&&(i.disabledBodyText=x,i.variantBorderHovered=(r==null?void 0:r.variantBorderHovered)||x,i.buttonTextDisabled=x,i.inputIconDisabled=x,i.disabledText=x),S&&(i.bodyText=S,i.actionLink=S,i.buttonText=S,i.inputBorderHovered=S,i.inputText=S,i.listText=S,i.menuItemText=S),N&&(i.bodyStandoutBackground=N,i.defaultStateBackground=N),y&&(i.actionLinkHovered=y,i.buttonTextHovered=y,i.buttonTextChecked=y,i.buttonTextPressed=y,i.inputTextHovered=y,i.menuItemTextHovered=y),b&&(i.bodySubtext=b,i.focusBorder=b,i.inputBorder=b,i.smallInputBorder=b,i.inputPlaceholderText=b),A&&(i.buttonBorder=A),T&&(i.disabledBodySubtext=T,i.disabledBorder=T,i.buttonBackgroundChecked=T,i.menuDivider=T),I&&(i.accentButtonBackground=I),t!=null&&t.elevation4&&(i.cardShadow=t.elevation4),!n&&(t!=null&&t.elevation8)?i.cardShadowHovered=t.elevation8:i.variantBorderHovered&&(i.cardShadowHovered="0 0 1px "+i.variantBorderHovered),i=Ee(Ee({},i),r),i}function pTe(e,t){var r="";return t===!0&&(r=" /* @deprecated */"),e.listTextColor=e.listText+r,e.menuItemBackgroundChecked+=r,e.warningHighlight+=r,e.warningText=e.messageText+r,e.successText+=r,e}function gTe(e,t){var r,n,o;t===void 0&&(t={});var i=IP({},e,t,{semanticColors:Qre(t.palette,t.effects,t.semanticColors,t.isInverted===void 0?e.isInverted:t.isInverted)});if(!((r=t.palette)===null||r===void 0)&&r.themePrimary&&!(!((n=t.palette)===null||n===void 0)&&n.accent)&&(i.palette.accent=t.palette.themePrimary),t.defaultFontStyle)for(var s=0,a=Object.keys(i.fonts);s"u"?global:window,BP=Ty&&Ty.CSPSettings&&Ty.CSPSettings.nonce,aa=lxe();function lxe(){var e=Ty.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]};return e.runState||(e=E0(E0({},e),{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),e.registeredThemableStyles||(e=E0(E0({},e),{registeredThemableStyles:[]})),Ty.__themeState__=e,e}function cxe(e,t){aa.loadStyles?aa.loadStyles(ene(e).styleString,e):pxe(e)}function fxe(e){aa.theme=e,hxe()}function dxe(e){e===void 0&&(e=3),(e===3||e===2)&&(MP(aa.registeredStyles),aa.registeredStyles=[]),(e===3||e===1)&&(MP(aa.registeredThemableStyles),aa.registeredThemableStyles=[])}function MP(e){e.forEach(function(t){var r=t&&t.styleElement;r&&r.parentElement&&r.parentElement.removeChild(r)})}function hxe(){if(aa.theme){for(var e=[],t=0,r=aa.registeredThemableStyles;t0&&(dxe(1),cxe([].concat.apply([],e)))}}function ene(e){var t=aa.theme,r=!1,n=(e||[]).map(function(o){var i=o.theme;if(i){r=!0;var s=t?t[i]:void 0,a=o.defaultValue||"inherit";return t&&!s&&console&&!(i in t)&&typeof DEBUG<"u"&&DEBUG&&console.warn('Theming value not provided for "'.concat(i,'". Falling back to "').concat(a,'".')),s||a}else return o.rawString});return{styleString:n.join(""),themable:r}}function pxe(e){if(!(typeof document>"u")){var t=document.getElementsByTagName("head")[0],r=document.createElement("style"),n=ene(e),o=n.styleString,i=n.themable;r.setAttribute("data-load-themed-styles","true"),BP&&r.setAttribute("nonce",BP),r.appendChild(document.createTextNode(o)),aa.perf.count++,t.appendChild(r);var s=document.createEvent("HTMLEvents");s.initEvent("styleinsert",!0,!1),s.args={newStyle:r},document.dispatchEvent(s);var a={styleElement:r,themableStyle:e};i?aa.registeredThemableStyles.push(a):aa.registeredStyles.push(a)}}var Xa=F_({}),gxe=[],X3="theme";function tne(){var e,t,r,n=lo();!((t=n==null?void 0:n.FabricConfig)===null||t===void 0)&&t.legacyTheme?mxe(n.FabricConfig.legacyTheme):cf.getSettings([X3]).theme||(!((r=n==null?void 0:n.FabricConfig)===null||r===void 0)&&r.theme&&(Xa=F_(n.FabricConfig.theme)),cf.applySettings((e={},e[X3]=Xa,e)))}tne();function vxe(e){return e===void 0&&(e=!1),e===!0&&(Xa=F_({},e)),Xa}function mxe(e,t){var r;return t===void 0&&(t=!1),Xa=F_(e,t),fxe(Ee(Ee(Ee(Ee({},Xa.palette),Xa.semanticColors),Xa.effects),yxe(Xa))),cf.applySettings((r={},r[X3]=Xa,r)),gxe.forEach(function(n){try{n(Xa)}catch{}}),Xa}function yxe(e){for(var t={},r=0,n=Object.keys(e.fonts);rt.bottom||e.leftt.right)}function tA(e,t){var r=[];return e.topt.bottom&&r.push(St.bottom),e.leftt.right&&r.push(St.right),r}function Ri(e,t){return e[St[t]]}function zP(e,t,r){return e[St[t]]=r,e}function fb(e,t){var r=sv(t);return(Ri(e,r.positiveEdge)+Ri(e,r.negativeEdge))/2}function XT(e,t){return e>0?t:t*-1}function Q3(e,t){return XT(e,Ri(t,e))}function Gl(e,t,r){var n=Ri(e,r)-Ri(t,r);return XT(r,n)}function _g(e,t,r,n){n===void 0&&(n=!0);var o=Ri(e,t)-r,i=zP(e,t,r);return n&&(i=zP(e,t*-1,Ri(e,t*-1)-o)),i}function db(e,t,r,n){return n===void 0&&(n=0),_g(e,r,Ri(t,r)+XT(r,n))}function _xe(e,t,r,n){n===void 0&&(n=0);var o=r*-1,i=XT(o,n);return _g(e,r*-1,Ri(t,r)+i)}function rA(e,t,r){var n=Q3(r,e);return n>Q3(r,t)}function Exe(e,t){for(var r=tA(e,t),n=0,o=0,i=r;o=n}function wxe(e,t,r,n,o,i,s){o===void 0&&(o=!1),s===void 0&&(s=0);var a=[St.left,St.right,St.bottom,St.top];Ji()&&(a[0]*=-1,a[1]*=-1);for(var u=e,l=n.targetEdge,c=n.alignmentEdge,f,d=l,h=c,g=0;g<4;g++){if(rA(u,r,l))return{elementRectangle:u,targetEdge:l,alignmentEdge:c};if(o&&Sxe(t,r,l,i)){switch(l){case St.bottom:u.bottom=r.bottom;break;case St.top:u.top=r.top;break}return{elementRectangle:u,targetEdge:l,alignmentEdge:c,forcedInBounds:!0}}else{var v=Exe(u,r);(!f||v0&&(a.indexOf(l*-1)>-1?l=l*-1:(c=l,l=a.slice(-1)[0]),u=nA(e,t,{targetEdge:l,alignmentEdge:c},s))}}return u=nA(e,t,{targetEdge:d,alignmentEdge:h},s),{elementRectangle:u,targetEdge:d,alignmentEdge:h}}function kxe(e,t,r,n){var o=e.alignmentEdge,i=e.targetEdge,s=e.elementRectangle,a=o*-1,u=nA(s,t,{targetEdge:i,alignmentEdge:a},r,n);return{elementRectangle:u,targetEdge:i,alignmentEdge:a}}function Axe(e,t,r,n,o,i,s,a,u){o===void 0&&(o=!1),s===void 0&&(s=0);var l=n.alignmentEdge,c=n.alignTargetEdge,f={elementRectangle:e,targetEdge:n.targetEdge,alignmentEdge:l};!a&&!u&&(f=wxe(e,t,r,n,o,i,s));var d=tA(f.elementRectangle,r),h=a?-f.targetEdge:void 0;if(d.length>0)if(c)if(f.alignmentEdge&&d.indexOf(f.alignmentEdge*-1)>-1){var g=kxe(f,t,s,u);if(Q6(g.elementRectangle,r))return g;f=QI(tA(g.elementRectangle,r),f,r,h)}else f=QI(d,f,r,h);else f=QI(d,f,r,h);return f}function QI(e,t,r,n){for(var o=0,i=e;oMath.abs(Gl(e,r,t*-1))?t*-1:t}function Txe(e,t,r){return r!==void 0&&Ri(e,t)===Ri(r,t)}function xxe(e,t,r,n,o,i,s,a){var u={},l=QT(t),c=i?r:r*-1,f=o||sv(r).positiveEdge;return(!s||Txe(e,Pxe(f),n))&&(f=nne(e,f,n)),u[St[c]]=Gl(e,l,c),u[St[f]]=Gl(e,l,f),a&&(u[St[c*-1]]=Gl(e,l,c*-1),u[St[f*-1]]=Gl(e,l,f*-1)),u}function Ixe(e){return Math.sqrt(e*e*2)}function Nxe(e,t,r){if(e===void 0&&(e=mo.bottomAutoEdge),r)return{alignmentEdge:r.alignmentEdge,isAuto:r.isAuto,targetEdge:r.targetEdge};var n=Ee({},jP[e]);return Ji()?(n.alignmentEdge&&n.alignmentEdge%2===0&&(n.alignmentEdge=n.alignmentEdge*-1),t!==void 0?jP[t]:n):n}function Cxe(e,t,r,n,o){return e.isAuto&&(e.alignmentEdge=one(e.targetEdge,t,r)),e.alignTargetEdge=o,e}function one(e,t,r){var n=fb(t,e),o=fb(r,e),i=sv(e),s=i.positiveEdge,a=i.negativeEdge;return n<=o?s:a}function Rxe(e,t,r,n,o,i,s,a,u){i===void 0&&(i=!1);var l=nA(e,t,n,o,u);return Q6(l,r)?{elementRectangle:l,targetEdge:n.targetEdge,alignmentEdge:n.alignmentEdge}:Axe(l,t,r,n,i,s,o,a,u)}function Oxe(e,t,r){var n=e.targetEdge*-1,o=new au(0,e.elementRectangle.width,0,e.elementRectangle.height),i={},s=nne(e.elementRectangle,e.alignmentEdge?e.alignmentEdge:sv(n).positiveEdge,r),a=Gl(e.elementRectangle,e.targetRectangle,n),u=a>Math.abs(Ri(t,n));return i[St[n]]=Ri(t,n),i[St[s]]=Gl(t,o,s),{elementPosition:Ee({},i),closestEdge:one(e.targetEdge,t,o),targetEdge:n,hideBeak:!u}}function Dxe(e,t){var r=t.targetRectangle,n=sv(t.targetEdge),o=n.positiveEdge,i=n.negativeEdge,s=fb(r,t.targetEdge),a=new au(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),u=new au(0,e,0,e);return u=_g(u,t.targetEdge*-1,-e/2),u=rne(u,t.targetEdge*-1,s-Q3(o,t.elementRectangle)),rA(u,a,o)?rA(u,a,i)||(u=db(u,a,i)):u=db(u,a,o),u}function QT(e){var t=e.getBoundingClientRect();return new au(t.left,t.right,t.top,t.bottom)}function Fxe(e){return new au(e.left,e.right,e.top,e.bottom)}function Bxe(e,t){var r;if(t){if(t.preventDefault){var n=t;r=new au(n.clientX,n.clientX,n.clientY,n.clientY)}else if(t.getBoundingClientRect)r=QT(t);else{var o=t,i=o.left||o.x,s=o.top||o.y,a=o.right||i,u=o.bottom||s;r=new au(i,a,s,u)}if(!Q6(r,e))for(var l=tA(r,e),c=0,f=l;c=n&&o&&l.top<=o&&l.bottom>=o&&(s={top:l.top,left:l.left,right:l.right,bottom:l.bottom,width:l.width,height:l.height})}return s}function Wxe(e,t){return qxe(e,t)}function Kxe(e,t,r){return ine(e,t,r)}function Gxe(e){return zxe(e)}function av(){var e=k.useRef();return e.current||(e.current=new Cre),k.useEffect(function(){return function(){var t;(t=e.current)===null||t===void 0||t.dispose(),e.current=void 0}},[]),e.current}function Ql(e){var t=k.useRef();return t.current===void 0&&(t.current={value:typeof e=="function"?e():e}),t.current.value}function Vxe(e){var t=k.useState(e),r=t[0],n=t[1],o=Ql(function(){return function(){n(!0)}}),i=Ql(function(){return function(){n(!1)}}),s=Ql(function(){return function(){n(function(a){return!a})}});return[r,{setTrue:o,setFalse:i,toggle:s}]}function ZI(e){var t=k.useRef(function(){throw new Error("Cannot call an event handler while rendering")});return yg(function(){t.current=e},[e]),Ql(function(){return function(){for(var r=[],n=0;n0&&l>u&&(a=l-u>1)}o!==a&&i(a)}}),function(){return r.dispose()}}),o}function Qxe(e){var t=e.originalElement,r=e.containsFocus;t&&r&&t!==lo()&&setTimeout(function(){var n;(n=t.focus)===null||n===void 0||n.call(t)},0)}function Zxe(e,t){var r=e.onRestoreFocus,n=r===void 0?Qxe:r,o=k.useRef(),i=k.useRef(!1);k.useEffect(function(){return o.current=as().activeElement,yAe(t.current)&&(i.current=!0),function(){var s;n==null||n({originalElement:o.current,containsFocus:i.current,documentContainsFocus:((s=as())===null||s===void 0?void 0:s.hasFocus())||!1}),o.current=void 0}},[]),hb(t,"focus",k.useCallback(function(){i.current=!0},[]),!0),hb(t,"blur",k.useCallback(function(s){t.current&&s.relatedTarget&&!t.current.contains(s.relatedTarget)&&(i.current=!1)},[]),!0)}function Jxe(e,t){var r=String(e["aria-modal"]).toLowerCase()==="true"&&e.enableAriaHiddenSiblings;k.useEffect(function(){if(r&&t.current){var n=Xre(t.current);return n}},[t,r])}var J6=k.forwardRef(function(e,t){var r=D_({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},e),n=k.useRef(),o=oc(n,t);Jxe(r,n),Zxe(r,n);var i=r.role,s=r.className,a=r.ariaLabel,u=r.ariaLabelledBy,l=r.ariaDescribedBy,c=r.style,f=r.children,d=r.onDismiss,h=Xxe(r,n),g=k.useCallback(function(y){switch(y.which){case Wt.escape:d&&(d(y),y.preventDefault(),y.stopPropagation());break}},[d]),v=B_();return hb(v,"keydown",g),k.createElement("div",Ee({ref:o},Ci(r,iv),{className:s,role:i,"aria-label":a,"aria-labelledby":u,"aria-describedby":l,onKeyDown:g,style:Ee({overflowY:h?"scroll":void 0,outline:"none"},c)}),f)});J6.displayName="Popup";var jp,e9e="CalloutContentBase",t9e=(jp={},jp[St.top]=Xm.slideUpIn10,jp[St.bottom]=Xm.slideDownIn10,jp[St.left]=Xm.slideLeftIn10,jp[St.right]=Xm.slideRightIn10,jp),HP={top:0,left:0},r9e={opacity:0,filter:"opacity(0)",pointerEvents:"none"},n9e=["role","aria-roledescription"],cne={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:mo.bottomAutoEdge},o9e=gc({disableCaching:!0});function i9e(e,t,r){var n=e.bounds,o=e.minPagePadding,i=o===void 0?cne.minPagePadding:o,s=e.target,a=k.useState(!1),u=a[0],l=a[1],c=k.useRef(),f=k.useCallback(function(){if(!c.current||u){var h=typeof n=="function"?r?n(s,r):void 0:n;!h&&r&&(h=Wxe(t.current,r),h={top:h.top+i,left:h.left+i,right:h.right-i,bottom:h.bottom-i,width:h.width-i*2,height:h.height-i*2}),c.current=h,u&&l(!1)}return c.current},[n,i,s,t,r,u]),d=av();return hb(r,"resize",d.debounce(function(){l(!0)},500,{leading:!0})),f}function s9e(e,t,r,n){var o,i=e.calloutMaxHeight,s=e.finalHeight,a=e.directionalHint,u=e.directionalHintFixed,l=e.hidden,c=e.gapSpace,f=e.beakWidth,d=e.isBeakVisible,h=k.useState(),g=h[0],v=h[1],y=(o=n==null?void 0:n.elementPosition)!==null&&o!==void 0?o:{},E=y.top,_=y.bottom,S=r!=null&&r.current?Gxe(r.current):void 0;return k.useEffect(function(){var b,A=(b=t())!==null&&b!==void 0?b:{},x=A.top,T=A.bottom,N;(n==null?void 0:n.targetEdge)===St.top&&(S!=null&&S.top)&&(T=S.top-Kxe(d,f,c)),typeof E=="number"&&T?N=T-E:typeof _=="number"&&typeof x=="number"&&T&&(N=T-x-_),!i&&!l||i&&N&&i>N?v(N):v(i||void 0)},[_,i,s,a,u,t,l,n,E,c,f,d,S]),g}function a9e(e,t,r,n,o,i){var s=k.useState(),a=s[0],u=s[1],l=k.useRef(0),c=k.useRef(),f=av(),d=e.hidden,h=e.target,g=e.finalHeight,v=e.calloutMaxHeight,y=e.onPositioned,E=e.directionalHint,_=e.hideOverflow,S=e.preferScrollResizePositioning,b=B_(),A=k.useRef(),x;A.current!==i.current&&(A.current=i.current,x=i.current?b==null?void 0:b.getComputedStyle(i.current):void 0);var T=x==null?void 0:x.overflowY;return k.useEffect(function(){if(d)u(void 0),l.current=0;else{var N=f.requestAnimationFrame(function(){var I,R;if(t.current&&r){var D=Ee(Ee({},e),{target:n.current,bounds:o()}),L=r.cloneNode(!0);L.style.maxHeight=v?"".concat(v):"",L.style.visibility="hidden",(I=r.parentElement)===null||I===void 0||I.appendChild(L);var M=c.current===h?a:void 0,q=_||T==="clip"||T==="hidden",z=S&&!q,B=g?$xe(D,t.current,L,M):Hxe(D,t.current,L,M,z);(R=r.parentElement)===null||R===void 0||R.removeChild(L),!a&&B||a&&B&&!f9e(a,B)&&l.current<5?(l.current++,u(B)):l.current>0&&(l.current=0,y==null||y(a))}},r);return c.current=h,function(){f.cancelAnimationFrame(N),c.current=void 0}}},[d,E,f,r,v,t,n,g,o,y,a,e,h,_,S,T]),a}function u9e(e,t,r){var n=e.hidden,o=e.setInitialFocus,i=av(),s=!!t;k.useEffect(function(){if(!n&&o&&s&&r){var a=i.requestAnimationFrame(function(){return mAe(r)},r);return function(){return i.cancelAnimationFrame(a)}}},[n,s,i,r,o])}function l9e(e,t,r,n,o){var i=e.hidden,s=e.onDismiss,a=e.preventDismissOnScroll,u=e.preventDismissOnResize,l=e.preventDismissOnLostFocus,c=e.dismissOnTargetClick,f=e.shouldDismissOnWindowFocus,d=e.preventDismissOnEvent,h=k.useRef(!1),g=av(),v=Ql([function(){h.current=!0},function(){h.current=!1}]),y=!!t;return k.useEffect(function(){var E=function(T){y&&!a&&b(T)},_=function(T){!u&&!(d&&d(T))&&(s==null||s(T))},S=function(T){l||b(T)},b=function(T){var N=T.composedPath?T.composedPath():[],I=N.length>0?N[0]:T.target,R=r.current&&!xs(r.current,I);if(R&&h.current){h.current=!1;return}if(!n.current&&R||T.target!==o&&R&&(!n.current||"stopPropagation"in n.current||c||I!==n.current&&!xs(n.current,I))){if(d&&d(T))return;s==null||s(T)}},A=function(T){f&&(d&&!d(T)||!d&&!l)&&!(o!=null&&o.document.hasFocus())&&T.relatedTarget===null&&(s==null||s(T))},x=new Promise(function(T){g.setTimeout(function(){if(!i&&o){var N=[Pl(o,"scroll",E,!0),Pl(o,"resize",_,!0),Pl(o.document.documentElement,"focus",S,!0),Pl(o.document.documentElement,"click",S,!0),Pl(o,"blur",A,!0)];T(function(){N.forEach(function(I){return I()})})}},0)});return function(){x.then(function(T){return T()})}},[i,g,r,n,o,s,f,c,l,u,a,y,d]),v}var fne=k.memo(k.forwardRef(function(e,t){var r=D_(cne,e),n=r.styles,o=r.style,i=r.ariaLabel,s=r.ariaDescribedBy,a=r.ariaLabelledBy,u=r.className,l=r.isBeakVisible,c=r.children,f=r.beakWidth,d=r.calloutWidth,h=r.calloutMaxWidth,g=r.calloutMinWidth,v=r.doNotLayer,y=r.finalHeight,E=r.hideOverflow,_=E===void 0?!!y:E,S=r.backgroundColor,b=r.calloutMaxHeight,A=r.onScroll,x=r.shouldRestoreFocus,T=x===void 0?!0:x,N=r.target,I=r.hidden,R=r.onLayerMounted,D=r.popupProps,L=k.useRef(null),M=k.useRef(null),q=oc(M,D==null?void 0:D.ref),z=k.useState(null),B=z[0],P=z[1],K=k.useCallback(function(Ne){P(Ne)},[]),U=oc(L,t),X=une(r.target,{current:B}),J=X[0],ee=X[1],se=i9e(r,J,ee),pe=a9e(r,L,B,J,se,q),_e=s9e(r,se,J,pe),Te=l9e(r,pe,L,J,ee),me=Te[0],Ae=Te[1],ve=(pe==null?void 0:pe.elementPosition.top)&&(pe==null?void 0:pe.elementPosition.bottom),we=Ee(Ee({},pe==null?void 0:pe.elementPosition),{maxHeight:_e});if(ve&&(we.bottom=void 0),u9e(r,pe,B),k.useEffect(function(){I||R==null||R()},[I]),!ee)return null;var De=_,Qe=l&&!!N,Ke=o9e(n,{theme:r.theme,className:u,overflowYHidden:De,calloutWidth:d,positions:pe,beakWidth:f,backgroundColor:S,calloutMaxWidth:h,calloutMinWidth:g,doNotLayer:v}),st=Ee(Ee({maxHeight:b||"100%"},o),De&&{overflowY:"hidden"}),He=r.hidden?{visibility:"hidden"}:void 0;return k.createElement("div",{ref:U,className:Ke.container,style:He},k.createElement("div",Ee({},Ci(r,iv,n9e),{className:s1(Ke.root,pe&&pe.targetEdge&&t9e[pe.targetEdge]),style:pe?Ee({},we):r9e,tabIndex:-1,ref:K}),Qe&&k.createElement("div",{className:Ke.beak,style:c9e(pe)}),Qe&&k.createElement("div",{className:Ke.beakCurtain}),k.createElement(J6,Ee({role:r.role,"aria-roledescription":r["aria-roledescription"],ariaDescribedBy:s,ariaLabel:i,ariaLabelledBy:a,className:Ke.calloutMain,onDismiss:r.onDismiss,onMouseDown:me,onMouseUp:Ae,onRestoreFocus:r.onRestoreFocus,onScroll:A,shouldRestoreFocus:T,style:st},D,{ref:q}),c)))}),function(e,t){return!t.shouldUpdateWhenHidden&&e.hidden&&t.hidden?!0:V6(e,t)});function c9e(e){var t,r,n=Ee(Ee({},(t=e==null?void 0:e.beakPosition)===null||t===void 0?void 0:t.elementPosition),{display:!((r=e==null?void 0:e.beakPosition)===null||r===void 0)&&r.hideBeak?"none":void 0});return!n.top&&!n.bottom&&!n.left&&!n.right&&(n.left=HP.left,n.top=HP.top),n}function f9e(e,t){return $P(e.elementPosition,t.elementPosition)&&$P(e.beakPosition.elementPosition,t.beakPosition.elementPosition)}function $P(e,t){for(var r in t)if(t.hasOwnProperty(r)){var n=e[r],o=t[r];if(n!==void 0&&o!==void 0){if(n.toFixed(2)!==o.toFixed(2))return!1}else return!1}return!0}fne.displayName=e9e;function d9e(e){return{height:e,width:e}}var h9e={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},p9e=function(e){var t,r=e.theme,n=e.className,o=e.overflowYHidden,i=e.calloutWidth,s=e.beakWidth,a=e.backgroundColor,u=e.calloutMaxWidth,l=e.calloutMinWidth,c=e.doNotLayer,f=mc(h9e,r),d=r.semanticColors,h=r.effects;return{container:[f.container,{position:"relative"}],root:[f.root,r.fonts.medium,{position:"absolute",display:"flex",zIndex:c?bg.Layer:void 0,boxSizing:"border-box",borderRadius:h.roundedCorner2,boxShadow:h.elevation16,selectors:(t={},t[U0]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},t)},sxe(),n,!!i&&{width:i},!!u&&{maxWidth:u},!!l&&{minWidth:l}],beak:[f.beak,{position:"absolute",backgroundColor:d.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},d9e(s),a&&{backgroundColor:a}],beakCurtain:[f.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:d.menuBackground,borderRadius:h.roundedCorner2}],calloutMain:[f.calloutMain,{backgroundColor:d.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:h.roundedCorner2},o&&{overflowY:"hidden"},a&&{backgroundColor:a}]}},g9e=vc(fne,p9e,void 0,{scope:"CalloutContent"});const dne=k.createContext(void 0),v9e=()=>()=>{};dne.Provider;function m9e(){var e;return(e=k.useContext(dne))!==null&&e!==void 0?e:v9e}var hne={exports:{}},Ta={},pne={exports:{}},gne={};/** + */var AAe=k,kAe=Symbol.for("react.element"),xAe=Symbol.for("react.fragment"),TAe=Object.prototype.hasOwnProperty,IAe=AAe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,CAe={key:!0,ref:!0,__self:!0,__source:!0};function kre(e,t,r){var n,o={},i=null,s=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(n in t)TAe.call(t,n)&&!CAe.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)o[n]===void 0&&(o[n]=t[n]);return{$$typeof:kAe,type:e,key:i,ref:s,props:o,_owner:IAe.current}}Gx.Fragment=xAe;Gx.jsx=kre;Gx.jsxs=kre;vre.exports=Gx;var N=vre.exports;const NAe=Lf(N),RAe=gre({__proto__:null,default:NAe},[N]);var vP={},aA=void 0;try{aA=window}catch{}function Y6(e,t){if(typeof aA<"u"){var r=aA.__packages__=aA.__packages__||{};if(!r[e]||!vP[e]){vP[e]=t;var n=r[e]=r[e]||[];n.push(t)}}}Y6("@fluentui/set-version","6.0.0");var U3=function(e,t){return U3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},U3(e,t)};function yc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");U3(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var _e=function(){return _e=Object.assign||function(t){for(var r,n=1,o=arguments.length;n=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,r,i):s(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}function il(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n"u"?gm.none:gm.insertNode,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},t),this._classNameToArgs=(n=r==null?void 0:r.classNameToArgs)!==null&&n!==void 0?n:this._classNameToArgs,this._counter=(o=r==null?void 0:r.counter)!==null&&o!==void 0?o:this._counter,this._keyToClassName=(s=(i=this._config.classNameCache)!==null&&i!==void 0?i:r==null?void 0:r.keyToClassName)!==null&&s!==void 0?s:this._keyToClassName,this._preservedRules=(a=r==null?void 0:r.preservedRules)!==null&&a!==void 0?a:this._preservedRules,this._rules=(u=r==null?void 0:r.rules)!==null&&u!==void 0?u:this._rules}return e.getInstance=function(){if(jp=l0[mP],!jp||jp._lastStyleElement&&jp._lastStyleElement.ownerDocument!==document){var t=(l0==null?void 0:l0.FabricConfig)||{},r=new e(t.mergeStyles,t.serializedStylesheet);jp=r,l0[mP]=r}return jp},e.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},e.prototype.setConfig=function(t){this._config=_e(_e({},this._config),t)},e.prototype.onReset=function(t){var r=this;return this._onResetCallbacks.push(t),function(){r._onResetCallbacks=r._onResetCallbacks.filter(function(n){return n!==t})}},e.prototype.onInsertRule=function(t){var r=this;return this._onInsertRuleCallbacks.push(t),function(){r._onInsertRuleCallbacks=r._onInsertRuleCallbacks.filter(function(n){return n!==t})}},e.prototype.getClassName=function(t){var r=this._config.namespace,n=t||this._config.defaultPrefix;return"".concat(r?r+"-":"").concat(n,"-").concat(this._counter++)},e.prototype.cacheClassName=function(t,r,n,o){this._keyToClassName[r]=t,this._classNameToArgs[t]={args:n,rules:o}},e.prototype.classNameFromKey=function(t){return this._keyToClassName[t]},e.prototype.getClassNameCache=function(){return this._keyToClassName},e.prototype.argsFromClassName=function(t){var r=this._classNameToArgs[t];return r&&r.args},e.prototype.insertedRulesFromClassName=function(t){var r=this._classNameToArgs[t];return r&&r.rules},e.prototype.insertRule=function(t,r){var n=this._config.injectionMode,o=n!==gm.none?this._getStyleElement():void 0;if(r&&this._preservedRules.push(t),o)switch(n){case gm.insertNode:var i=o.sheet;try{i.insertRule(t,i.cssRules.length)}catch{}break;case gm.appendChild:o.appendChild(document.createTextNode(t));break}else this._rules.push(t);this._config.onInsertRule&&this._config.onInsertRule(t),this._onInsertRuleCallbacks.forEach(function(s){return s()})},e.prototype.getRules=function(t){return(t?this._preservedRules.join(""):"")+this._rules.join("")},e.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach(function(t){return t()})},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._getStyleElement=function(){var t=this;return!this._styleElement&&typeof document<"u"&&(this._styleElement=this._createStyleElement(),DAe||window.requestAnimationFrame(function(){t._styleElement=void 0})),this._styleElement},e.prototype._createStyleElement=function(){var t=document.head,r=document.createElement("style"),n=null;r.setAttribute("data-merge-styles","true");var o=this._config.cspSettings;if(o&&o.nonce&&r.setAttribute("nonce",o.nonce),this._lastStyleElement)n=this._lastStyleElement.nextElementSibling;else{var i=this._findPlaceholderStyleTag();i?n=i.nextElementSibling:n=t.childNodes[0]}return t.insertBefore(r,t.contains(n)?n:null),this._lastStyleElement=r,r},e.prototype._findPlaceholderStyleTag=function(){var t=document.head;return t?t.querySelector("style[data-merge-styles]"):null},e}();function xre(){for(var e=[],t=0;t=0)i(l.split(" "));else{var c=o.argsFromClassName(l);c?i(c):r.indexOf(l)===-1&&r.push(l)}else Array.isArray(l)?i(l):typeof l=="object"&&n.push(l)}}return i(e),{classes:r,objects:n}}function Tre(e){V0!==e&&(V0=e)}function Ire(){return V0===void 0&&(V0=typeof document<"u"&&!!document.documentElement&&document.documentElement.getAttribute("dir")==="rtl"),V0}var V0;V0=Ire();function Vx(){return{rtl:Ire()}}var yP={};function FAe(e,t){var r=e[t];r.charAt(0)!=="-"&&(e[t]=yP[r]=yP[r]||r.replace(/([A-Z])/g,"-$1").toLowerCase())}var OS;function BAe(){var e;if(!OS){var t=typeof document<"u"?document:void 0,r=typeof navigator<"u"?navigator:void 0,n=(e=r==null?void 0:r.userAgent)===null||e===void 0?void 0:e.toLowerCase();t?OS={isWebkit:!!(t&&"WebkitAppearance"in t.documentElement.style),isMoz:!!(n&&n.indexOf("firefox")>-1),isOpera:!!(n&&n.indexOf("opera")>-1),isMs:!!(r&&(/rv:11.0/i.test(r.userAgent)||/Edge\/\d./i.test(navigator.userAgent)))}:OS={isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return OS}var bP={"user-select":1};function MAe(e,t){var r=BAe(),n=e[t];if(bP[n]){var o=e[t+1];bP[n]&&(r.isWebkit&&e.push("-webkit-"+n,o),r.isMoz&&e.push("-moz-"+n,o),r.isMs&&e.push("-ms-"+n,o),r.isOpera&&e.push("-o-"+n,o))}}var LAe=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function jAe(e,t){var r=e[t],n=e[t+1];if(typeof n=="number"){var o=LAe.indexOf(r)>-1,i=r.indexOf("--")>-1,s=o||i?"":"px";e[t+1]="".concat(n).concat(s)}}var DS,md="left",yd="right",zAe="@noflip",_P=(DS={},DS[md]=yd,DS[yd]=md,DS),EP={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function HAe(e,t,r){if(e.rtl){var n=t[r];if(!n)return;var o=t[r+1];if(typeof o=="string"&&o.indexOf(zAe)>=0)t[r+1]=o.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(n.indexOf(md)>=0)t[r]=n.replace(md,yd);else if(n.indexOf(yd)>=0)t[r]=n.replace(yd,md);else if(String(o).indexOf(md)>=0)t[r+1]=o.replace(md,yd);else if(String(o).indexOf(yd)>=0)t[r+1]=o.replace(yd,md);else if(_P[n])t[r]=_P[n];else if(EP[o])t[r+1]=EP[o];else switch(n){case"margin":case"padding":t[r+1]=PAe(o);break;case"box-shadow":t[r+1]=$Ae(o,0);break}}}function $Ae(e,t){var r=e.split(" "),n=parseInt(r[t],10);return r[0]=r[0].replace(String(n),String(n*-1)),r.join(" ")}function PAe(e){if(typeof e=="string"){var t=e.split(" ");if(t.length===4)return"".concat(t[0]," ").concat(t[3]," ").concat(t[2]," ").concat(t[1])}return e}function qAe(e){for(var t=[],r=0,n=0,o=0;or&&t.push(e.substring(r,o)),r=o+1);break}return r-1&&t.push([n.index,n.index+n[0].length,n[1].split(",").map(function(o){return":global(".concat(o.trim(),")")}).join(", ")]);return t.reverse().reduce(function(o,i){var s=i[0],a=i[1],u=i[2],l=o.slice(0,s),c=o.slice(a);return l+u+c},e)}function SP(e,t){return e.indexOf(":global(")>=0?e.replace(Cre,"$1"):e.indexOf(":")===0?t+e:e.indexOf("&")<0?t+" "+e:e}function wP(e,t,r,n){t===void 0&&(t={__order:[]}),r.indexOf("@")===0?(r=r+"{"+e,U0([n],t,r)):r.indexOf(",")>-1?GAe(r).split(",").map(function(o){return o.trim()}).forEach(function(o){return U0([n],t,SP(o,e))}):U0([n],t,SP(r,e))}function U0(e,t,r){t===void 0&&(t={__order:[]}),r===void 0&&(r="&");var n=hu.getInstance(),o=t[r];o||(o={},t[r]=o,t.__order.push(r));for(var i=0,s=e;i0){r.subComponentStyles={};var d=r.subComponentStyles,h=function(g){if(n.hasOwnProperty(g)){var v=n[g];d[g]=function(y){return B_.apply(void 0,v.map(function(E){return typeof E=="function"?E(y):E}))}}};for(var l in n)h(l)}return r}function hi(){for(var e=[],t=0;t"u")){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:Y3}}var Lre=function(){function e(t,r){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=t||null,this._onErrorHandler=r,this._noop=function(){}}return e.prototype.dispose=function(){var t;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(t in this._timeoutIds)this._timeoutIds.hasOwnProperty(t)&&this.clearTimeout(parseInt(t,10));this._timeoutIds=null}if(this._immediateIds){for(t in this._immediateIds)this._immediateIds.hasOwnProperty(t)&&this.clearImmediate(parseInt(t,10));this._immediateIds=null}if(this._intervalIds){for(t in this._intervalIds)this._intervalIds.hasOwnProperty(t)&&this.clearInterval(parseInt(t,10));this._intervalIds=null}if(this._animationFrameIds){for(t in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(t)&&this.cancelAnimationFrame(parseInt(t,10));this._animationFrameIds=null}},e.prototype.setTimeout=function(t,r){var n=this,o=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),o=setTimeout(function(){try{n._timeoutIds&&delete n._timeoutIds[o],t.apply(n._parent)}catch(i){n._logError(i)}},r),this._timeoutIds[o]=!0),o},e.prototype.clearTimeout=function(t){this._timeoutIds&&this._timeoutIds[t]&&(clearTimeout(t),delete this._timeoutIds[t])},e.prototype.setImmediate=function(t,r){var n=this,o=0,i=co(r);if(!this._isDisposed){this._immediateIds||(this._immediateIds={});var s=function(){try{n._immediateIds&&delete n._immediateIds[o],t.apply(n._parent)}catch(a){n._logError(a)}};o=i.setTimeout(s,0),this._immediateIds[o]=!0}return o},e.prototype.clearImmediate=function(t,r){var n=co(r);this._immediateIds&&this._immediateIds[t]&&(n.clearTimeout(t),delete this._immediateIds[t])},e.prototype.setInterval=function(t,r){var n=this,o=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),o=setInterval(function(){try{t.apply(n._parent)}catch(i){n._logError(i)}},r),this._intervalIds[o]=!0),o},e.prototype.clearInterval=function(t){this._intervalIds&&this._intervalIds[t]&&(clearInterval(t),delete this._intervalIds[t])},e.prototype.throttle=function(t,r,n){var o=this;if(this._isDisposed)return this._noop;var i=r||0,s=!0,a=!0,u=0,l,c,f=null;n&&typeof n.leading=="boolean"&&(s=n.leading),n&&typeof n.trailing=="boolean"&&(a=n.trailing);var d=function(g){var v=Date.now(),y=v-u,E=s?i-y:i;return y>=i&&(!g||s)?(u=v,f&&(o.clearTimeout(f),f=null),l=t.apply(o._parent,c)):f===null&&a&&(f=o.setTimeout(d,E)),l},h=function(){for(var g=[],v=0;v=s&&(C=!0),c=x);var I=x-c,R=s-I,D=x-f,L=!1;return l!==null&&(D>=l&&g?L=!0:R=Math.min(R,l-D)),I>=s||L||C?y(x):(g===null||!T)&&u&&(g=o.setTimeout(E,R)),d},_=function(){return!!g},S=function(){_()&&v(Date.now())},b=function(){return _()&&y(Date.now()),d},A=function(){for(var T=[],x=0;x-1)for(var s=r.split(/[ ,]+/),a=0;a"u")){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}var GI,Ty=0,zre=mr({overflow:"hidden !important"}),AP="data-is-scrollable",ZAe=function(e,t){if(e){var r=0,n=null,o=function(s){s.targetTouches.length===1&&(r=s.targetTouches[0].clientY)},i=function(s){if(s.targetTouches.length===1&&(s.stopPropagation(),!!n)){var a=s.targetTouches[0].clientY-r,u=$re(s.target);u&&(n=u),n.scrollTop===0&&a>0&&s.preventDefault(),n.scrollHeight-Math.ceil(n.scrollTop)<=n.clientHeight&&a<0&&s.preventDefault()}};t.on(e,"touchstart",o,{passive:!1}),t.on(e,"touchmove",i,{passive:!1}),n=e}},JAe=function(e,t){if(e){var r=function(n){n.stopPropagation()};t.on(e,"touchmove",r,{passive:!1})}},Hre=function(e){e.preventDefault()};function eke(){var e=as();e&&e.body&&!Ty&&(e.body.classList.add(zre),e.body.addEventListener("touchmove",Hre,{passive:!1,capture:!1})),Ty++}function tke(){if(Ty>0){var e=as();e&&e.body&&Ty===1&&(e.body.classList.remove(zre),e.body.removeEventListener("touchmove",Hre)),Ty--}}function rke(){if(GI===void 0){var e=document.createElement("div");e.style.setProperty("width","100px"),e.style.setProperty("height","100px"),e.style.setProperty("overflow","scroll"),e.style.setProperty("position","absolute"),e.style.setProperty("top","-9999px"),document.body.appendChild(e),GI=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return GI}function $re(e){for(var t=e,r=as(e);t&&t!==r.body;){if(t.getAttribute(AP)==="true")return t;t=t.parentElement}for(t=e;t&&t!==r.body;){if(t.getAttribute(AP)!=="false"){var n=getComputedStyle(t),o=n?n.getPropertyValue("overflow-y"):"";if(o&&(o==="scroll"||o==="auto"))return t}t=t.parentElement}return(!t||t===r.body)&&(t=co(e)),t}var nke=void 0;function Pre(e){console&&console.warn&&console.warn(e)}var VI="__globalSettings__",J6="__callbacks__",oke=0,qre=function(){function e(){}return e.getValue=function(t,r){var n=X3();return n[t]===void 0&&(n[t]=typeof r=="function"?r():r),n[t]},e.setValue=function(t,r){var n=X3(),o=n[J6],i=n[t];if(r!==i){n[t]=r;var s={oldValue:i,value:r,key:t};for(var a in o)o.hasOwnProperty(a)&&o[a](s)}return r},e.addChangeListener=function(t){var r=t.__id__,n=kP();r||(r=t.__id__=String(oke++)),n[r]=t},e.removeChangeListener=function(t){var r=kP();delete r[t.__id__]},e}();function X3(){var e,t=co(),r=t||{};return r[VI]||(r[VI]=(e={},e[J6]={},e)),r[VI]}function kP(){var e=X3();return e[J6]}var Kt={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pauseBreak:19,capslock:20,escape:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,del:46,zero:48,one:49,two:50,three:51,four:52,five:53,six:54,seven:55,eight:56,nine:57,colon:58,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftWindow:91,rightWindow:92,select:93,zero_numpad:96,one_numpad:97,two_numpad:98,three_numpad:99,four_numpad:100,five_numpad:101,six_numpad:102,seven_numpad:103,eight_numpad:104,nine_numpad:105,multiply:106,add:107,subtract:109,decimalPoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrollLock:145,semicolon:186,equalSign:187,comma:188,dash:189,period:190,forwardSlash:191,graveAccent:192,openBracket:219,backSlash:220,closeBracket:221,singleQuote:222},au=function(){function e(t,r,n,o){t===void 0&&(t=0),r===void 0&&(r=0),n===void 0&&(n=0),o===void 0&&(o=0),this.top=n,this.bottom=o,this.left=t,this.right=r}return Object.defineProperty(e.prototype,"width",{get:function(){return this.right-this.left},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!1,configurable:!0}),e.prototype.equals=function(t){return parseFloat(this.top.toFixed(4))===parseFloat(t.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(t.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(t.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(t.right.toFixed(4))},e}();function ike(e){for(var t=[],r=1;r-1&&o._virtual.children.splice(i,1)}r._virtual.parent=n||void 0,n&&(n._virtual||(n._virtual={children:[]}),n._virtual.children.push(r))}var vke="data-is-focusable",mke="data-is-visible",yke="data-focuszone-id",bke="data-is-sub-focuszone";function _ke(e,t,r){return Vi(e,t,!0,!1,!1,r)}function Eke(e,t,r){return Ss(e,t,!0,!1,!0,r)}function Ske(e,t,r,n){return n===void 0&&(n=!0),Vi(e,t,n,!1,!1,r,!1,!0)}function wke(e,t,r,n){return n===void 0&&(n=!0),Ss(e,t,n,!1,!0,r,!1,!0)}function Ake(e,t){var r=Vi(e,e,!0,!1,!1,!0,void 0,void 0,t);return r?(Ure(r),!0):!1}function Ss(e,t,r,n,o,i,s,a){if(!t||!s&&t===e)return null;var u=Yx(t);if(o&&u&&(i||!(Qc(t)||tL(t)))){var l=Ss(e,t.lastElementChild,!0,!0,!0,i,s,a);if(l){if(a&&jl(l,!0)||!a)return l;var c=Ss(e,l.previousElementSibling,!0,!0,!0,i,s,a);if(c)return c;for(var f=l.parentElement;f&&f!==t;){var d=Ss(e,f.previousElementSibling,!0,!0,!0,i,s,a);if(d)return d;f=f.parentElement}}}if(r&&u&&jl(t,a))return t;var h=Ss(e,t.previousElementSibling,!0,!0,!0,i,s,a);return h||(n?null:Ss(e,t.parentElement,!0,!1,!1,i,s,a))}function Vi(e,t,r,n,o,i,s,a,u){if(!t||t===e&&o&&!s)return null;var l=u?Gre:Yx,c=l(t);if(r&&c&&jl(t,a))return t;if(!o&&c&&(i||!(Qc(t)||tL(t)))){var f=Vi(e,t.firstElementChild,!0,!0,!1,i,s,a,u);if(f)return f}if(t===e)return null;var d=Vi(e,t.nextElementSibling,!0,!0,!1,i,s,a,u);return d||(n?null:Vi(e,t.parentElement,!1,!1,!0,i,s,a,u))}function Yx(e){if(!e||!e.getAttribute)return!1;var t=e.getAttribute(mke);return t!=null?t==="true":e.offsetHeight!==0||e.offsetParent!==null||e.isVisible===!0}function Gre(e){return!!e&&Yx(e)&&!e.hidden&&window.getComputedStyle(e).visibility!=="hidden"}function jl(e,t){if(!e||e.disabled)return!1;var r=0,n=null;e&&e.getAttribute&&(n=e.getAttribute("tabIndex"),n&&(r=parseInt(n,10)));var o=e.getAttribute?e.getAttribute(vke):null,i=n!==null&&r>=0,s=!!e&&o!=="false"&&(e.tagName==="A"||e.tagName==="BUTTON"||e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.tagName==="SELECT"||o==="true"||i);return t?r!==-1&&s:s}function Qc(e){return!!(e&&e.getAttribute&&e.getAttribute(yke))}function tL(e){return!!(e&&e.getAttribute&&e.getAttribute(bke)==="true")}function kke(e){var t=as(e),r=t&&t.activeElement;return!!(r&&Ts(e,r))}function Vre(e,t){return dke(e,t)!=="true"}var FS=void 0;function Ure(e){if(e){var t=co(e);t&&(FS!==void 0&&t.cancelAnimationFrame(FS),FS=t.requestAnimationFrame(function(){e&&e.focus(),FS=void 0}))}}function xke(e,t){for(var r=e,n=0,o=t;n(e.cacheSize||Ike)){var h=co();!((u=h==null?void 0:h.FabricConfig)===null||u===void 0)&&u.enableClassNameCacheFullWarning&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is ".concat(r,"/").concat(n,".")),console.trace()),t.clear(),r=0,e.disableCaching=!0}return l[BS]};return i}function YI(e,t){return t=Nke(t),e.has(t)||e.set(t,new Map),e.get(t)}function xP(e,t){if(typeof t=="function"){var r=t.__cachedInputs__;if(r)for(var n=0,o=t.__cachedInputs__;n"u"?null:WeakMap;function Oke(){lA++}function ds(e,t,r){if(t===void 0&&(t=100),r===void 0&&(r=!1),!hb)return e;if(!TP){var n=hu.getInstance();n&&n.onReset&&hu.getInstance().onReset(Oke),TP=!0}var o,i=0,s=lA;return function(){for(var u=[],l=0;l0&&i>t)&&(o=IP(),i=0,s=lA),c=o;for(var f=0;f=0||u.indexOf("data-")===0||u.indexOf("aria-")===0;l&&(!r||(r==null?void 0:r.indexOf(u))===-1)&&(o[u]=e[u])}return o}function Xx(e){Gke(e,{componentDidMount:exe,componentDidUpdate:txe,componentWillUnmount:rxe})}function exe(){nk(this.props.componentRef,this)}function txe(e){e.componentRef!==this.props.componentRef&&(nk(e.componentRef,null),nk(this.props.componentRef,this))}function rxe(){nk(this.props.componentRef,null)}function nk(e,t){e&&(typeof e=="object"?e.current=t:typeof e=="function"&&e(t))}var Lu,nxe=(Lu={},Lu[Kt.up]=1,Lu[Kt.down]=1,Lu[Kt.left]=1,Lu[Kt.right]=1,Lu[Kt.home]=1,Lu[Kt.end]=1,Lu[Kt.tab]=1,Lu[Kt.pageUp]=1,Lu[Kt.pageDown]=1,Lu);function Xre(e){return!!nxe[e]}var wi="ms-Fabric--isFocusVisible",NP="ms-Fabric--isFocusHidden";function RP(e,t){e&&(e.classList.add(t?wi:NP),e.classList.remove(t?NP:wi))}function Qx(e,t,r){var n;r?r.forEach(function(o){return RP(o.current,e)}):RP((n=co(t))===null||n===void 0?void 0:n.document.body,e)}var OP=new WeakMap,DP=new WeakMap;function FP(e,t){var r,n=OP.get(e);return n?r=n+t:r=1,OP.set(e,r),r}function oxe(e){var t=DP.get(e);if(t)return t;var r=function(s){return Qre(s,e.registeredProviders)},n=function(s){return Zre(s,e.registeredProviders)},o=function(s){return Jre(s,e.registeredProviders)},i=function(s){return ene(s,e.registeredProviders)};return t={onMouseDown:r,onPointerDown:n,onKeyDown:o,onKeyUp:i},DP.set(e,t),t}var ok=k.createContext(void 0);function ixe(e){var t=k.useContext(ok);k.useEffect(function(){var r,n,o,i,s=co(e==null?void 0:e.current);if(!(!s||((r=s.FabricConfig)===null||r===void 0?void 0:r.disableFocusRects)===!0)){var a=s,u,l,c,f;if(!((n=t==null?void 0:t.providerRef)===null||n===void 0)&&n.current&&(!((i=(o=t==null?void 0:t.providerRef)===null||o===void 0?void 0:o.current)===null||i===void 0)&&i.addEventListener)){a=t.providerRef.current;var d=oxe(t);u=d.onMouseDown,l=d.onPointerDown,c=d.onKeyDown,f=d.onKeyUp}else u=Qre,l=Zre,c=Jre,f=ene;var h=FP(a,1);return h<=1&&(a.addEventListener("mousedown",u,!0),a.addEventListener("pointerdown",l,!0),a.addEventListener("keydown",c,!0),a.addEventListener("keyup",f,!0)),function(){var g;!s||((g=s.FabricConfig)===null||g===void 0?void 0:g.disableFocusRects)===!0||(h=FP(a,-1),h===0&&(a.removeEventListener("mousedown",u,!0),a.removeEventListener("pointerdown",l,!0),a.removeEventListener("keydown",c,!0),a.removeEventListener("keyup",f,!0)))}}},[t,e])}var sxe=function(e){return ixe(e.rootRef),null};function Qre(e,t){Qx(!1,e.target,t)}function Zre(e,t){e.pointerType!=="mouse"&&Qx(!1,e.target,t)}function Jre(e,t){Xre(e.which)&&Qx(!0,e.target,t)}function ene(e,t){Xre(e.which)&&Qx(!0,e.target,t)}var tne=function(e){var t=e.providerRef,r=e.layerRoot,n=k.useState([])[0],o=k.useContext(ok),i=o!==void 0&&!r,s=k.useMemo(function(){return i?void 0:{providerRef:t,registeredProviders:n,registerProvider:function(a){n.push(a),o==null||o.registerProvider(a)},unregisterProvider:function(a){o==null||o.unregisterProvider(a);var u=n.indexOf(a);u>=0&&n.splice(u,1)}}},[t,n,o,i]);return k.useEffect(function(){if(s)return s.registerProvider(s.providerRef),function(){return s.unregisterProvider(s.providerRef)}},[s]),s?k.createElement(ok.Provider,{value:s},e.children):k.createElement(k.Fragment,null,e.children)};function axe(e){var t=null;try{var r=co();t=r?r.localStorage.getItem(e):null}catch{}return t}var G1,BP="language";function uxe(e){if(e===void 0&&(e="sessionStorage"),G1===void 0){var t=as(),r=e==="localStorage"?axe(BP):e==="sessionStorage"?Wre(BP):void 0;r&&(G1=r),G1===void 0&&t&&(G1=t.documentElement.getAttribute("lang")),G1===void 0&&(G1="en")}return G1}function MP(e){for(var t=[],r=1;r-1;e[n]=i?o:rne(e[n]||{},o,r)}else e[n]=o}return r.pop(),e}var LP=function(){return!window||!window.navigator||!window.navigator.userAgent?!1:/iPad|iPhone|iPod/i.test(window.navigator.userAgent)},lxe=["TEMPLATE","STYLE","SCRIPT"];function nne(e){var t=as(e);if(!t)return function(){};for(var r=[];e!==t.body&&e.parentElement;){for(var n=0,o=e.parentElement.children;n"u"||e){var r=co(),n=(t=r==null?void 0:r.navigator)===null||t===void 0?void 0:t.userAgent;QI=!!n&&n.indexOf("Macintosh")!==-1}return!!QI}function fxe(e){var t=yg(function(r){var n=yg(function(o){return function(i){return r(i,o)}});return function(o,i){return e(o,i?n(i):r)}});return t}var dxe=yg(fxe);function hxe(e,t){return dxe(e)(t)}var pxe=["theme","styles"];function _c(e,t,r,n,o){n=n||{scope:"",fields:void 0};var i=n.scope,s=n.fields,a=s===void 0?pxe:s,u=k.forwardRef(function(c,f){var d=k.useRef(),h=Wke(a,i),g=h.styles;h.dir;var v=av(h,["styles","dir"]),y=r?r(c):void 0,E=d.current&&d.current.__cachedInputs__||[],_=c.styles;if(!d.current||g!==E[1]||_!==E[2]){var S=function(b){return Bre(b,t,g,_)};S.__cachedInputs__=[t,g,_],S.__noStyleOverride__=!g&&!_,d.current=S}return k.createElement(e,_e({ref:f},v,y,c,{styles:d.current}))});u.displayName="Styled".concat(e.displayName||e.name);var l=o?k.memo(u):u;return u.displayName&&(l.displayName=u.displayName),l}function M_(e,t){for(var r=_e({},t),n=0,o=Object.keys(e);nn?" (+ ".concat(vm.length-n," more)"):"")),JI=void 0,vm=[]},r)))}function _xe(e,t,r,n,o){o===void 0&&(o=!1);var i=_e({primaryButtonBorder:"transparent",errorText:n?"#F1707B":"#a4262c",messageText:n?"#F3F2F1":"#323130",messageLink:n?"#6CB8F6":"#005A9E",messageLinkHovered:n?"#82C7FF":"#004578",infoIcon:n?"#C8C6C4":"#605e5c",errorIcon:n?"#F1707B":"#A80000",blockingIcon:n?"#442726":"#FDE7E9",warningIcon:n?"#C8C6C4":"#797775",severeWarningIcon:n?"#FCE100":"#D83B01",successIcon:n?"#92C353":"#107C10",infoBackground:n?"#323130":"#f3f2f1",errorBackground:n?"#442726":"#FDE7E9",blockingBackground:n?"#442726":"#FDE7E9",warningBackground:n?"#433519":"#FFF4CE",severeWarningBackground:n?"#4F2A0F":"#FED9CC",successBackground:n?"#393D1B":"#DFF6DD",warningHighlight:n?"#fff100":"#ffb900",successText:n?"#92c353":"#107C10"},r),s=one(e,t,i,n);return Exe(s,o)}function one(e,t,r,n,o){var i={},s=e||{},a=s.white,u=s.black,l=s.themePrimary,c=s.themeDark,f=s.themeDarker,d=s.themeDarkAlt,h=s.themeLighter,g=s.neutralLight,v=s.neutralLighter,y=s.neutralDark,E=s.neutralQuaternary,_=s.neutralQuaternaryAlt,S=s.neutralPrimary,b=s.neutralSecondary,A=s.neutralSecondaryAlt,T=s.neutralTertiary,x=s.neutralTertiaryAlt,C=s.neutralLighterAlt,I=s.accent;return a&&(i.bodyBackground=a,i.bodyFrameBackground=a,i.accentButtonText=a,i.buttonBackground=a,i.primaryButtonText=a,i.primaryButtonTextHovered=a,i.primaryButtonTextPressed=a,i.inputBackground=a,i.inputForegroundChecked=a,i.listBackground=a,i.menuBackground=a,i.cardStandoutBackground=a),u&&(i.bodyTextChecked=u,i.buttonTextCheckedHovered=u),l&&(i.link=l,i.primaryButtonBackground=l,i.inputBackgroundChecked=l,i.inputIcon=l,i.inputFocusBorderAlt=l,i.menuIcon=l,i.menuHeader=l,i.accentButtonBackground=l),c&&(i.primaryButtonBackgroundPressed=c,i.inputBackgroundCheckedHovered=c,i.inputIconHovered=c),f&&(i.linkHovered=f),d&&(i.primaryButtonBackgroundHovered=d),h&&(i.inputPlaceholderBackgroundChecked=h),g&&(i.bodyBackgroundChecked=g,i.bodyFrameDivider=g,i.bodyDivider=g,i.variantBorder=g,i.buttonBackgroundCheckedHovered=g,i.buttonBackgroundPressed=g,i.listItemBackgroundChecked=g,i.listHeaderBackgroundPressed=g,i.menuItemBackgroundPressed=g,i.menuItemBackgroundChecked=g),v&&(i.bodyBackgroundHovered=v,i.buttonBackgroundHovered=v,i.buttonBackgroundDisabled=v,i.buttonBorderDisabled=v,i.primaryButtonBackgroundDisabled=v,i.disabledBackground=v,i.listItemBackgroundHovered=v,i.listHeaderBackgroundHovered=v,i.menuItemBackgroundHovered=v),E&&(i.primaryButtonTextDisabled=E,i.disabledSubtext=E),_&&(i.listItemBackgroundCheckedHovered=_),T&&(i.disabledBodyText=T,i.variantBorderHovered=(r==null?void 0:r.variantBorderHovered)||T,i.buttonTextDisabled=T,i.inputIconDisabled=T,i.disabledText=T),S&&(i.bodyText=S,i.actionLink=S,i.buttonText=S,i.inputBorderHovered=S,i.inputText=S,i.listText=S,i.menuItemText=S),C&&(i.bodyStandoutBackground=C,i.defaultStateBackground=C),y&&(i.actionLinkHovered=y,i.buttonTextHovered=y,i.buttonTextChecked=y,i.buttonTextPressed=y,i.inputTextHovered=y,i.menuItemTextHovered=y),b&&(i.bodySubtext=b,i.focusBorder=b,i.inputBorder=b,i.smallInputBorder=b,i.inputPlaceholderText=b),A&&(i.buttonBorder=A),x&&(i.disabledBodySubtext=x,i.disabledBorder=x,i.buttonBackgroundChecked=x,i.menuDivider=x),I&&(i.accentButtonBackground=I),t!=null&&t.elevation4&&(i.cardShadow=t.elevation4),!n&&(t!=null&&t.elevation8)?i.cardShadowHovered=t.elevation8:i.variantBorderHovered&&(i.cardShadowHovered="0 0 1px "+i.variantBorderHovered),i=_e(_e({},i),r),i}function Exe(e,t){var r="";return t===!0&&(r=" /* @deprecated */"),e.listTextColor=e.listText+r,e.menuItemBackgroundChecked+=r,e.warningHighlight+=r,e.warningText=e.messageText+r,e.successText+=r,e}function Sxe(e,t){var r,n,o;t===void 0&&(t={});var i=MP({},e,t,{semanticColors:one(t.palette,t.effects,t.semanticColors,t.isInverted===void 0?e.isInverted:t.isInverted)});if(!((r=t.palette)===null||r===void 0)&&r.themePrimary&&!(!((n=t.palette)===null||n===void 0)&&n.accent)&&(i.palette.accent=t.palette.themePrimary),t.defaultFontStyle)for(var s=0,a=Object.keys(i.fonts);s"u"?global:window,qP=Iy&&Iy.CSPSettings&&Iy.CSPSettings.nonce,ua=vTe();function vTe(){var e=Iy.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]};return e.runState||(e=S0(S0({},e),{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),e.registeredThemableStyles||(e=S0(S0({},e),{registeredThemableStyles:[]})),Iy.__themeState__=e,e}function mTe(e,t){ua.loadStyles?ua.loadStyles(ane(e).styleString,e):ETe(e)}function yTe(e){ua.theme=e,_Te()}function bTe(e){e===void 0&&(e=3),(e===3||e===2)&&(WP(ua.registeredStyles),ua.registeredStyles=[]),(e===3||e===1)&&(WP(ua.registeredThemableStyles),ua.registeredThemableStyles=[])}function WP(e){e.forEach(function(t){var r=t&&t.styleElement;r&&r.parentElement&&r.parentElement.removeChild(r)})}function _Te(){if(ua.theme){for(var e=[],t=0,r=ua.registeredThemableStyles;t0&&(bTe(1),mTe([].concat.apply([],e)))}}function ane(e){var t=ua.theme,r=!1,n=(e||[]).map(function(o){var i=o.theme;if(i){r=!0;var s=t?t[i]:void 0,a=o.defaultValue||"inherit";return t&&!s&&console&&!(i in t)&&typeof DEBUG<"u"&&DEBUG&&console.warn('Theming value not provided for "'.concat(i,'". Falling back to "').concat(a,'".')),s||a}else return o.rawString});return{styleString:n.join(""),themable:r}}function ETe(e){if(!(typeof document>"u")){var t=document.getElementsByTagName("head")[0],r=document.createElement("style"),n=ane(e),o=n.styleString,i=n.themable;r.setAttribute("data-load-themed-styles","true"),qP&&r.setAttribute("nonce",qP),r.appendChild(document.createTextNode(o)),ua.perf.count++,t.appendChild(r);var s=document.createEvent("HTMLEvents");s.initEvent("styleinsert",!0,!1),s.args={newStyle:r},document.dispatchEvent(s);var a={styleElement:r,themableStyle:e};i?ua.registeredThemableStyles.push(a):ua.registeredStyles.push(a)}}var Xa=L_({}),STe=[],eF="theme";function une(){var e,t,r,n=co();!((t=n==null?void 0:n.FabricConfig)===null||t===void 0)&&t.legacyTheme?ATe(n.FabricConfig.legacyTheme):ff.getSettings([eF]).theme||(!((r=n==null?void 0:n.FabricConfig)===null||r===void 0)&&r.theme&&(Xa=L_(n.FabricConfig.theme)),ff.applySettings((e={},e[eF]=Xa,e)))}une();function wTe(e){return e===void 0&&(e=!1),e===!0&&(Xa=L_({},e)),Xa}function ATe(e,t){var r;return t===void 0&&(t=!1),Xa=L_(e,t),yTe(_e(_e(_e(_e({},Xa.palette),Xa.semanticColors),Xa.effects),kTe(Xa))),ff.applySettings((r={},r[eF]=Xa,r)),STe.forEach(function(n){try{n(Xa)}catch{}}),Xa}function kTe(e){for(var t={},r=0,n=Object.keys(e.fonts);rt.bottom||e.leftt.right)}function sk(e,t){var r=[];return e.topt.bottom&&r.push(wt.bottom),e.leftt.right&&r.push(wt.right),r}function Oi(e,t){return e[wt[t]]}function VP(e,t,r){return e[wt[t]]=r,e}function pb(e,t){var r=lv(t);return(Oi(e,r.positiveEdge)+Oi(e,r.negativeEdge))/2}function eT(e,t){return e>0?t:t*-1}function tF(e,t){return eT(e,Oi(t,e))}function Yl(e,t,r){var n=Oi(e,r)-Oi(t,r);return eT(r,n)}function Sg(e,t,r,n){n===void 0&&(n=!0);var o=Oi(e,t)-r,i=VP(e,t,r);return n&&(i=VP(e,t*-1,Oi(e,t*-1)-o)),i}function gb(e,t,r,n){return n===void 0&&(n=0),Sg(e,r,Oi(t,r)+eT(r,n))}function TTe(e,t,r,n){n===void 0&&(n=0);var o=r*-1,i=eT(o,n);return Sg(e,r*-1,Oi(t,r)+i)}function ak(e,t,r){var n=tF(r,e);return n>tF(r,t)}function ITe(e,t){for(var r=sk(e,t),n=0,o=0,i=r;o=n}function NTe(e,t,r,n,o,i,s){o===void 0&&(o=!1),s===void 0&&(s=0);var a=[wt.left,wt.right,wt.bottom,wt.top];Ji()&&(a[0]*=-1,a[1]*=-1);for(var u=e,l=n.targetEdge,c=n.alignmentEdge,f,d=l,h=c,g=0;g<4;g++){if(ak(u,r,l))return{elementRectangle:u,targetEdge:l,alignmentEdge:c};if(o&&CTe(t,r,l,i)){switch(l){case wt.bottom:u.bottom=r.bottom;break;case wt.top:u.top=r.top;break}return{elementRectangle:u,targetEdge:l,alignmentEdge:c,forcedInBounds:!0}}else{var v=ITe(u,r);(!f||v0&&(a.indexOf(l*-1)>-1?l=l*-1:(c=l,l=a.slice(-1)[0]),u=uk(e,t,{targetEdge:l,alignmentEdge:c},s))}}return u=uk(e,t,{targetEdge:d,alignmentEdge:h},s),{elementRectangle:u,targetEdge:d,alignmentEdge:h}}function RTe(e,t,r,n){var o=e.alignmentEdge,i=e.targetEdge,s=e.elementRectangle,a=o*-1,u=uk(s,t,{targetEdge:i,alignmentEdge:a},r,n);return{elementRectangle:u,targetEdge:i,alignmentEdge:a}}function OTe(e,t,r,n,o,i,s,a,u){o===void 0&&(o=!1),s===void 0&&(s=0);var l=n.alignmentEdge,c=n.alignTargetEdge,f={elementRectangle:e,targetEdge:n.targetEdge,alignmentEdge:l};!a&&!u&&(f=NTe(e,t,r,n,o,i,s));var d=sk(f.elementRectangle,r),h=a?-f.targetEdge:void 0;if(d.length>0)if(c)if(f.alignmentEdge&&d.indexOf(f.alignmentEdge*-1)>-1){var g=RTe(f,t,s,u);if(rL(g.elementRectangle,r))return g;f=t2(sk(g.elementRectangle,r),f,r,h)}else f=t2(d,f,r,h);else f=t2(d,f,r,h);return f}function t2(e,t,r,n){for(var o=0,i=e;oMath.abs(Yl(e,r,t*-1))?t*-1:t}function DTe(e,t,r){return r!==void 0&&Oi(e,t)===Oi(r,t)}function FTe(e,t,r,n,o,i,s,a){var u={},l=tT(t),c=i?r:r*-1,f=o||lv(r).positiveEdge;return(!s||DTe(e,YTe(f),n))&&(f=cne(e,f,n)),u[wt[c]]=Yl(e,l,c),u[wt[f]]=Yl(e,l,f),a&&(u[wt[c*-1]]=Yl(e,l,c*-1),u[wt[f*-1]]=Yl(e,l,f*-1)),u}function BTe(e){return Math.sqrt(e*e*2)}function MTe(e,t,r){if(e===void 0&&(e=yo.bottomAutoEdge),r)return{alignmentEdge:r.alignmentEdge,isAuto:r.isAuto,targetEdge:r.targetEdge};var n=_e({},GP[e]);return Ji()?(n.alignmentEdge&&n.alignmentEdge%2===0&&(n.alignmentEdge=n.alignmentEdge*-1),t!==void 0?GP[t]:n):n}function LTe(e,t,r,n,o){return e.isAuto&&(e.alignmentEdge=fne(e.targetEdge,t,r)),e.alignTargetEdge=o,e}function fne(e,t,r){var n=pb(t,e),o=pb(r,e),i=lv(e),s=i.positiveEdge,a=i.negativeEdge;return n<=o?s:a}function jTe(e,t,r,n,o,i,s,a,u){i===void 0&&(i=!1);var l=uk(e,t,n,o,u);return rL(l,r)?{elementRectangle:l,targetEdge:n.targetEdge,alignmentEdge:n.alignmentEdge}:OTe(l,t,r,n,i,s,o,a,u)}function zTe(e,t,r){var n=e.targetEdge*-1,o=new au(0,e.elementRectangle.width,0,e.elementRectangle.height),i={},s=cne(e.elementRectangle,e.alignmentEdge?e.alignmentEdge:lv(n).positiveEdge,r),a=Yl(e.elementRectangle,e.targetRectangle,n),u=a>Math.abs(Oi(t,n));return i[wt[n]]=Oi(t,n),i[wt[s]]=Yl(t,o,s),{elementPosition:_e({},i),closestEdge:fne(e.targetEdge,t,o),targetEdge:n,hideBeak:!u}}function HTe(e,t){var r=t.targetRectangle,n=lv(t.targetEdge),o=n.positiveEdge,i=n.negativeEdge,s=pb(r,t.targetEdge),a=new au(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),u=new au(0,e,0,e);return u=Sg(u,t.targetEdge*-1,-e/2),u=lne(u,t.targetEdge*-1,s-tF(o,t.elementRectangle)),ak(u,a,o)?ak(u,a,i)||(u=gb(u,a,i)):u=gb(u,a,o),u}function tT(e){var t=e.getBoundingClientRect();return new au(t.left,t.right,t.top,t.bottom)}function $Te(e){return new au(e.left,e.right,e.top,e.bottom)}function PTe(e,t){var r;if(t){if(t.preventDefault){var n=t;r=new au(n.clientX,n.clientX,n.clientY,n.clientY)}else if(t.getBoundingClientRect)r=tT(t);else{var o=t,i=o.left||o.x,s=o.top||o.y,a=o.right||i,u=o.bottom||s;r=new au(i,a,s,u)}if(!rL(r,e))for(var l=sk(r,e),c=0,f=l;c=n&&o&&l.top<=o&&l.bottom>=o&&(s={top:l.top,left:l.left,right:l.right,bottom:l.bottom,width:l.width,height:l.height})}return s}function QTe(e,t){return XTe(e,t)}function ZTe(e,t,r){return dne(e,t,r)}function JTe(e){return GTe(e)}function cv(){var e=k.useRef();return e.current||(e.current=new Lre),k.useEffect(function(){return function(){var t;(t=e.current)===null||t===void 0||t.dispose(),e.current=void 0}},[]),e.current}function ec(e){var t=k.useRef();return t.current===void 0&&(t.current={value:typeof e=="function"?e():e}),t.current.value}function e9e(e){var t=k.useState(e),r=t[0],n=t[1],o=ec(function(){return function(){n(!0)}}),i=ec(function(){return function(){n(!1)}}),s=ec(function(){return function(){n(function(a){return!a})}});return[r,{setTrue:o,setFalse:i,toggle:s}]}function r2(e){var t=k.useRef(function(){throw new Error("Cannot call an event handler while rendering")});return _g(function(){t.current=e},[e]),ec(function(){return function(){for(var r=[],n=0;n0&&l>u&&(a=l-u>1)}o!==a&&i(a)}}),function(){return r.dispose()}}),o}function o9e(e){var t=e.originalElement,r=e.containsFocus;t&&r&&t!==co()&&setTimeout(function(){var n;(n=t.focus)===null||n===void 0||n.call(t)},0)}function i9e(e,t){var r=e.onRestoreFocus,n=r===void 0?o9e:r,o=k.useRef(),i=k.useRef(!1);k.useEffect(function(){return o.current=as().activeElement,kke(t.current)&&(i.current=!0),function(){var s;n==null||n({originalElement:o.current,containsFocus:i.current,documentContainsFocus:((s=as())===null||s===void 0?void 0:s.hasFocus())||!1}),o.current=void 0}},[]),vb(t,"focus",k.useCallback(function(){i.current=!0},[]),!0),vb(t,"blur",k.useCallback(function(s){t.current&&s.relatedTarget&&!t.current.contains(s.relatedTarget)&&(i.current=!1)},[]),!0)}function s9e(e,t){var r=String(e["aria-modal"]).toLowerCase()==="true"&&e.enableAriaHiddenSiblings;k.useEffect(function(){if(r&&t.current){var n=nne(t.current);return n}},[t,r])}var oL=k.forwardRef(function(e,t){var r=M_({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},e),n=k.useRef(),o=ac(n,t);s9e(r,n),i9e(r,n);var i=r.role,s=r.className,a=r.ariaLabel,u=r.ariaLabelledBy,l=r.ariaDescribedBy,c=r.style,f=r.children,d=r.onDismiss,h=n9e(r,n),g=k.useCallback(function(y){switch(y.which){case Kt.escape:d&&(d(y),y.preventDefault(),y.stopPropagation());break}},[d]),v=j_();return vb(v,"keydown",g),k.createElement("div",_e({ref:o},Ri(r,uv),{className:s,role:i,"aria-label":a,"aria-labelledby":u,"aria-describedby":l,onKeyDown:g,style:_e({overflowY:h?"scroll":void 0,outline:"none"},c)}),f)});oL.displayName="Popup";var zp,a9e="CalloutContentBase",u9e=(zp={},zp[wt.top]=Qm.slideUpIn10,zp[wt.bottom]=Qm.slideDownIn10,zp[wt.left]=Qm.slideLeftIn10,zp[wt.right]=Qm.slideRightIn10,zp),UP={top:0,left:0},l9e={opacity:0,filter:"opacity(0)",pointerEvents:"none"},c9e=["role","aria-roledescription"],mne={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:yo.bottomAutoEdge},f9e=bc({disableCaching:!0});function d9e(e,t,r){var n=e.bounds,o=e.minPagePadding,i=o===void 0?mne.minPagePadding:o,s=e.target,a=k.useState(!1),u=a[0],l=a[1],c=k.useRef(),f=k.useCallback(function(){if(!c.current||u){var h=typeof n=="function"?r?n(s,r):void 0:n;!h&&r&&(h=QTe(t.current,r),h={top:h.top+i,left:h.left+i,right:h.right-i,bottom:h.bottom-i,width:h.width-i*2,height:h.height-i*2}),c.current=h,u&&l(!1)}return c.current},[n,i,s,t,r,u]),d=cv();return vb(r,"resize",d.debounce(function(){l(!0)},500,{leading:!0})),f}function h9e(e,t,r,n){var o,i=e.calloutMaxHeight,s=e.finalHeight,a=e.directionalHint,u=e.directionalHintFixed,l=e.hidden,c=e.gapSpace,f=e.beakWidth,d=e.isBeakVisible,h=k.useState(),g=h[0],v=h[1],y=(o=n==null?void 0:n.elementPosition)!==null&&o!==void 0?o:{},E=y.top,_=y.bottom,S=r!=null&&r.current?JTe(r.current):void 0;return k.useEffect(function(){var b,A=(b=t())!==null&&b!==void 0?b:{},T=A.top,x=A.bottom,C;(n==null?void 0:n.targetEdge)===wt.top&&(S!=null&&S.top)&&(x=S.top-ZTe(d,f,c)),typeof E=="number"&&x?C=x-E:typeof _=="number"&&typeof T=="number"&&x&&(C=x-T-_),!i&&!l||i&&C&&i>C?v(C):v(i||void 0)},[_,i,s,a,u,t,l,n,E,c,f,d,S]),g}function p9e(e,t,r,n,o,i){var s=k.useState(),a=s[0],u=s[1],l=k.useRef(0),c=k.useRef(),f=cv(),d=e.hidden,h=e.target,g=e.finalHeight,v=e.calloutMaxHeight,y=e.onPositioned,E=e.directionalHint,_=e.hideOverflow,S=e.preferScrollResizePositioning,b=j_(),A=k.useRef(),T;A.current!==i.current&&(A.current=i.current,T=i.current?b==null?void 0:b.getComputedStyle(i.current):void 0);var x=T==null?void 0:T.overflowY;return k.useEffect(function(){if(d)u(void 0),l.current=0;else{var C=f.requestAnimationFrame(function(){var I,R;if(t.current&&r){var D=_e(_e({},e),{target:n.current,bounds:o()}),L=r.cloneNode(!0);L.style.maxHeight=v?"".concat(v):"",L.style.visibility="hidden",(I=r.parentElement)===null||I===void 0||I.appendChild(L);var M=c.current===h?a:void 0,q=_||x==="clip"||x==="hidden",z=S&&!q,F=g?UTe(D,t.current,L,M):VTe(D,t.current,L,M,z);(R=r.parentElement)===null||R===void 0||R.removeChild(L),!a&&F||a&&F&&!y9e(a,F)&&l.current<5?(l.current++,u(F)):l.current>0&&(l.current=0,y==null||y(a))}},r);return c.current=h,function(){f.cancelAnimationFrame(C),c.current=void 0}}},[d,E,f,r,v,t,n,g,o,y,a,e,h,_,S,x]),a}function g9e(e,t,r){var n=e.hidden,o=e.setInitialFocus,i=cv(),s=!!t;k.useEffect(function(){if(!n&&o&&s&&r){var a=i.requestAnimationFrame(function(){return Ake(r)},r);return function(){return i.cancelAnimationFrame(a)}}},[n,s,i,r,o])}function v9e(e,t,r,n,o){var i=e.hidden,s=e.onDismiss,a=e.preventDismissOnScroll,u=e.preventDismissOnResize,l=e.preventDismissOnLostFocus,c=e.dismissOnTargetClick,f=e.shouldDismissOnWindowFocus,d=e.preventDismissOnEvent,h=k.useRef(!1),g=cv(),v=ec([function(){h.current=!0},function(){h.current=!1}]),y=!!t;return k.useEffect(function(){var E=function(x){y&&!a&&b(x)},_=function(x){!u&&!(d&&d(x))&&(s==null||s(x))},S=function(x){l||b(x)},b=function(x){var C=x.composedPath?x.composedPath():[],I=C.length>0?C[0]:x.target,R=r.current&&!Ts(r.current,I);if(R&&h.current){h.current=!1;return}if(!n.current&&R||x.target!==o&&R&&(!n.current||"stopPropagation"in n.current||c||I!==n.current&&!Ts(n.current,I))){if(d&&d(x))return;s==null||s(x)}},A=function(x){f&&(d&&!d(x)||!d&&!l)&&!(o!=null&&o.document.hasFocus())&&x.relatedTarget===null&&(s==null||s(x))},T=new Promise(function(x){g.setTimeout(function(){if(!i&&o){var C=[Kl(o,"scroll",E,!0),Kl(o,"resize",_,!0),Kl(o.document.documentElement,"focus",S,!0),Kl(o.document.documentElement,"click",S,!0),Kl(o,"blur",A,!0)];x(function(){C.forEach(function(I){return I()})})}},0)});return function(){T.then(function(x){return x()})}},[i,g,r,n,o,s,f,c,l,u,a,y,d]),v}var yne=k.memo(k.forwardRef(function(e,t){var r=M_(mne,e),n=r.styles,o=r.style,i=r.ariaLabel,s=r.ariaDescribedBy,a=r.ariaLabelledBy,u=r.className,l=r.isBeakVisible,c=r.children,f=r.beakWidth,d=r.calloutWidth,h=r.calloutMaxWidth,g=r.calloutMinWidth,v=r.doNotLayer,y=r.finalHeight,E=r.hideOverflow,_=E===void 0?!!y:E,S=r.backgroundColor,b=r.calloutMaxHeight,A=r.onScroll,T=r.shouldRestoreFocus,x=T===void 0?!0:T,C=r.target,I=r.hidden,R=r.onLayerMounted,D=r.popupProps,L=k.useRef(null),M=k.useRef(null),q=ac(M,D==null?void 0:D.ref),z=k.useState(null),F=z[0],$=z[1],K=k.useCallback(function(Ze){$(Ze)},[]),U=ac(L,t),X=gne(r.target,{current:F}),J=X[0],ee=X[1],fe=d9e(r,J,ee),ge=p9e(r,L,F,J,fe,q),Se=h9e(r,fe,J,ge),Ee=v9e(r,ge,L,J,ee),ve=Ee[0],we=Ee[1],me=(ge==null?void 0:ge.elementPosition.top)&&(ge==null?void 0:ge.elementPosition.bottom),xe=_e(_e({},ge==null?void 0:ge.elementPosition),{maxHeight:Se});if(me&&(xe.bottom=void 0),g9e(r,ge,F),k.useEffect(function(){I||R==null||R()},[I]),!ee)return null;var He=_,it=l&&!!C,Oe=f9e(n,{theme:r.theme,className:u,overflowYHidden:He,calloutWidth:d,positions:ge,beakWidth:f,backgroundColor:S,calloutMaxWidth:h,calloutMinWidth:g,doNotLayer:v}),Qe=_e(_e({maxHeight:b||"100%"},o),He&&{overflowY:"hidden"}),Fe=r.hidden?{visibility:"hidden"}:void 0;return k.createElement("div",{ref:U,className:Oe.container,style:Fe},k.createElement("div",_e({},Ri(r,uv,c9e),{className:i1(Oe.root,ge&&ge.targetEdge&&u9e[ge.targetEdge]),style:ge?_e({},xe):l9e,tabIndex:-1,ref:K}),it&&k.createElement("div",{className:Oe.beak,style:m9e(ge)}),it&&k.createElement("div",{className:Oe.beakCurtain}),k.createElement(oL,_e({role:r.role,"aria-roledescription":r["aria-roledescription"],ariaDescribedBy:s,ariaLabel:i,ariaLabelledBy:a,className:Oe.calloutMain,onDismiss:r.onDismiss,onMouseDown:ve,onMouseUp:we,onRestoreFocus:r.onRestoreFocus,onScroll:A,shouldRestoreFocus:x,style:Qe},D,{ref:q}),c)))}),function(e,t){return!t.shouldUpdateWhenHidden&&e.hidden&&t.hidden?!0:Z6(e,t)});function m9e(e){var t,r,n=_e(_e({},(t=e==null?void 0:e.beakPosition)===null||t===void 0?void 0:t.elementPosition),{display:!((r=e==null?void 0:e.beakPosition)===null||r===void 0)&&r.hideBeak?"none":void 0});return!n.top&&!n.bottom&&!n.left&&!n.right&&(n.left=UP.left,n.top=UP.top),n}function y9e(e,t){return YP(e.elementPosition,t.elementPosition)&&YP(e.beakPosition.elementPosition,t.beakPosition.elementPosition)}function YP(e,t){for(var r in t)if(t.hasOwnProperty(r)){var n=e[r],o=t[r];if(n!==void 0&&o!==void 0){if(n.toFixed(2)!==o.toFixed(2))return!1}else return!1}return!0}yne.displayName=a9e;function b9e(e){return{height:e,width:e}}var _9e={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},E9e=function(e){var t,r=e.theme,n=e.className,o=e.overflowYHidden,i=e.calloutWidth,s=e.beakWidth,a=e.backgroundColor,u=e.calloutMaxWidth,l=e.calloutMinWidth,c=e.doNotLayer,f=Ec(_9e,r),d=r.semanticColors,h=r.effects;return{container:[f.container,{position:"relative"}],root:[f.root,r.fonts.medium,{position:"absolute",display:"flex",zIndex:c?Eg.Layer:void 0,boxSizing:"border-box",borderRadius:h.roundedCorner2,boxShadow:h.elevation16,selectors:(t={},t[Y0]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},t)},hTe(),n,!!i&&{width:i},!!u&&{maxWidth:u},!!l&&{minWidth:l}],beak:[f.beak,{position:"absolute",backgroundColor:d.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},b9e(s),a&&{backgroundColor:a}],beakCurtain:[f.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:d.menuBackground,borderRadius:h.roundedCorner2}],calloutMain:[f.calloutMain,{backgroundColor:d.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:h.roundedCorner2},o&&{overflowY:"hidden"},a&&{backgroundColor:a}]}},S9e=_c(yne,E9e,void 0,{scope:"CalloutContent"});const bne=k.createContext(void 0),w9e=()=>()=>{};bne.Provider;function A9e(){var e;return(e=k.useContext(bne))!==null&&e!==void 0?e:w9e}var _ne={exports:{}},xa={},Ene={exports:{}},Sne={};/** * @license React * scheduler.production.min.js * @@ -24,7 +24,7 @@ var Jwe=Object.defineProperty;var eke=(e,t,r)=>t in e?Jwe(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(K,U){var X=K.length;K.push(U);e:for(;0>>1,ee=K[J];if(0>>1;Jo(_e,X))Teo(me,_e)?(K[J]=me,K[Te]=X,J=Te):(K[J]=_e,K[pe]=X,J=pe);else if(Teo(me,X))K[J]=me,K[Te]=X,J=Te;else break e}}return U}function o(K,U){var X=K.sortIndex-U.sortIndex;return X!==0?X:K.id-U.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var u=[],l=[],c=1,f=null,d=3,h=!1,g=!1,v=!1,y=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(K){for(var U=r(l);U!==null;){if(U.callback===null)n(l);else if(U.startTime<=K)n(l),U.sortIndex=U.expirationTime,t(u,U);else break;U=r(l)}}function b(K){if(v=!1,S(K),!g)if(r(u)!==null)g=!0,B(A);else{var U=r(l);U!==null&&P(b,U.startTime-K)}}function A(K,U){g=!1,v&&(v=!1,E(N),N=-1),h=!0;var X=d;try{for(S(U),f=r(u);f!==null&&(!(f.expirationTime>U)||K&&!D());){var J=f.callback;if(typeof J=="function"){f.callback=null,d=f.priorityLevel;var ee=J(f.expirationTime<=U);U=e.unstable_now(),typeof ee=="function"?f.callback=ee:f===r(u)&&n(u),S(U)}else n(u);f=r(u)}if(f!==null)var se=!0;else{var pe=r(l);pe!==null&&P(b,pe.startTime-U),se=!1}return se}finally{f=null,d=X,h=!1}}var x=!1,T=null,N=-1,I=5,R=-1;function D(){return!(e.unstable_now()-RK||125J?(K.sortIndex=X,t(l,K),r(u)===null&&K===r(l)&&(v?(E(N),N=-1):v=!0,P(b,X-J))):(K.sortIndex=ee,t(u,K),g||h||(g=!0,B(A))),K},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(K){var U=d;return function(){var X=d;d=U;try{return K.apply(this,arguments)}finally{d=X}}}})(gne);pne.exports=gne;var Z3=pne.exports;/** + */(function(e){function t(K,U){var X=K.length;K.push(U);e:for(;0>>1,ee=K[J];if(0>>1;Jo(Se,X))Eeo(ve,Se)?(K[J]=ve,K[Ee]=X,J=Ee):(K[J]=Se,K[ge]=X,J=ge);else if(Eeo(ve,X))K[J]=ve,K[Ee]=X,J=Ee;else break e}}return U}function o(K,U){var X=K.sortIndex-U.sortIndex;return X!==0?X:K.id-U.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var u=[],l=[],c=1,f=null,d=3,h=!1,g=!1,v=!1,y=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(K){for(var U=r(l);U!==null;){if(U.callback===null)n(l);else if(U.startTime<=K)n(l),U.sortIndex=U.expirationTime,t(u,U);else break;U=r(l)}}function b(K){if(v=!1,S(K),!g)if(r(u)!==null)g=!0,F(A);else{var U=r(l);U!==null&&$(b,U.startTime-K)}}function A(K,U){g=!1,v&&(v=!1,E(C),C=-1),h=!0;var X=d;try{for(S(U),f=r(u);f!==null&&(!(f.expirationTime>U)||K&&!D());){var J=f.callback;if(typeof J=="function"){f.callback=null,d=f.priorityLevel;var ee=J(f.expirationTime<=U);U=e.unstable_now(),typeof ee=="function"?f.callback=ee:f===r(u)&&n(u),S(U)}else n(u);f=r(u)}if(f!==null)var fe=!0;else{var ge=r(l);ge!==null&&$(b,ge.startTime-U),fe=!1}return fe}finally{f=null,d=X,h=!1}}var T=!1,x=null,C=-1,I=5,R=-1;function D(){return!(e.unstable_now()-RK||125J?(K.sortIndex=X,t(l,K),r(u)===null&&K===r(l)&&(v?(E(C),C=-1):v=!0,$(b,X-J))):(K.sortIndex=ee,t(u,K),g||h||(g=!0,F(A))),K},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(K){var U=d;return function(){var X=d;d=U;try{return K.apply(this,arguments)}finally{d=X}}}})(Sne);Ene.exports=Sne;var rF=Ene.exports;/** * @license React * react-dom.production.min.js * @@ -32,50 +32,50 @@ var Jwe=Object.defineProperty;var eke=(e,t,r)=>t in e?Jwe(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var vne=k,_a=Z3;function Ge(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),J3=Object.prototype.hasOwnProperty,y9e=/^[: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]*$/,PP={},qP={};function b9e(e){return J3.call(qP,e)?!0:J3.call(PP,e)?!1:y9e.test(e)?qP[e]=!0:(PP[e]=!0,!1)}function _9e(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function E9e(e,t,r,n){if(t===null||typeof t>"u"||_9e(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.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 hs(e,t,r,n,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var fi={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){fi[e]=new hs(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];fi[t]=new hs(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){fi[e]=new hs(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){fi[e]=new hs(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){fi[e]=new hs(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){fi[e]=new hs(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){fi[e]=new hs(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){fi[e]=new hs(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){fi[e]=new hs(e,5,!1,e.toLowerCase(),null,!1,!1)});var eL=/[\-:]([a-z])/g;function tL(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(eL,tL);fi[t]=new hs(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(eL,tL);fi[t]=new hs(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(eL,tL);fi[t]=new hs(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){fi[e]=new hs(e,1,!1,e.toLowerCase(),null,!1,!1)});fi.xlinkHref=new hs("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){fi[e]=new hs(e,1,!1,e.toLowerCase(),null,!0,!0)});function rL(e,t,r,n){var o=fi.hasOwnProperty(t)?fi[t]:null;(o!==null?o.type!==0:n||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),nF=Object.prototype.hasOwnProperty,k9e=/^[: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]*$/,XP={},QP={};function x9e(e){return nF.call(QP,e)?!0:nF.call(XP,e)?!1:k9e.test(e)?QP[e]=!0:(XP[e]=!0,!1)}function T9e(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function I9e(e,t,r,n){if(t===null||typeof t>"u"||T9e(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.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 hs(e,t,r,n,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var fi={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){fi[e]=new hs(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];fi[t]=new hs(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){fi[e]=new hs(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){fi[e]=new hs(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){fi[e]=new hs(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){fi[e]=new hs(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){fi[e]=new hs(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){fi[e]=new hs(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){fi[e]=new hs(e,5,!1,e.toLowerCase(),null,!1,!1)});var iL=/[\-:]([a-z])/g;function sL(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(iL,sL);fi[t]=new hs(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(iL,sL);fi[t]=new hs(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(iL,sL);fi[t]=new hs(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){fi[e]=new hs(e,1,!1,e.toLowerCase(),null,!1,!1)});fi.xlinkHref=new hs("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){fi[e]=new hs(e,1,!1,e.toLowerCase(),null,!0,!0)});function aL(e,t,r,n){var o=fi.hasOwnProperty(t)?fi[t]:null;(o!==null?o.type!==0:n||!(2a||o[s]!==i[a]){var u=` -`+o[s].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=s&&0<=a);break}}}finally{e2=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Qm(e):""}function S9e(e){switch(e.tag){case 5:return Qm(e.type);case 16:return Qm("Lazy");case 13:return Qm("Suspense");case 19:return Qm("SuspenseList");case 0:case 2:case 15:return e=t2(e.type,!1),e;case 11:return e=t2(e.type.render,!1),e;case 1:return e=t2(e.type,!0),e;default:return""}}function nF(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w0:return"Fragment";case S0:return"Portal";case eF:return"Profiler";case nL:return"StrictMode";case tF:return"Suspense";case rF:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case bne:return(e.displayName||"Context")+".Consumer";case yne:return(e._context.displayName||"Context")+".Provider";case oL:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case iL:return t=e.displayName||null,t!==null?t:nF(e.type)||"Memo";case Ed:t=e._payload,e=e._init;try{return nF(e(t))}catch{}}return null}function w9e(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return nF(t);case 8:return t===nL?"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 a1(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ene(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function k9e(e){var t=Ene(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){n=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function BS(e){e._valueTracker||(e._valueTracker=k9e(e))}function Sne(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Ene(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function oA(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 oF(e,t){var r=t.checked;return Vn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function KP(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=a1(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function wne(e,t){t=t.checked,t!=null&&rL(e,"checked",t,!1)}function iF(e,t){wne(e,t);var r=a1(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?sF(e,t.type,r):t.hasOwnProperty("defaultValue")&&sF(e,t.type,a1(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function GP(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function sF(e,t,r){(t!=="number"||oA(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Zm=Array.isArray;function Y0(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=MS.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function gb(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var xy={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},A9e=["Webkit","ms","Moz","O"];Object.keys(xy).forEach(function(e){A9e.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),xy[t]=xy[e]})});function xne(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||xy.hasOwnProperty(e)&&xy[e]?(""+t).trim():t+"px"}function Ine(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=xne(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var T9e=Vn({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 lF(e,t){if(t){if(T9e[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ge(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ge(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ge(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ge(62))}}function cF(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 fF=null;function sL(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var dF=null,X0=null,Q0=null;function YP(e){if(e=j_(e)){if(typeof dF!="function")throw Error(Ge(280));var t=e.stateNode;t&&(t=nx(t),dF(e.stateNode,e.type,t))}}function Nne(e){X0?Q0?Q0.push(e):Q0=[e]:X0=e}function Cne(){if(X0){var e=X0,t=Q0;if(Q0=X0=null,YP(e),t)for(e=0;e>>=0,e===0?32:31-(L9e(e)/j9e|0)|0}var LS=64,jS=4194304;function Jm(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 uA(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,s=r&268435455;if(s!==0){var a=s&~o;a!==0?n=Jm(a):(i&=s,i!==0&&(n=Jm(i)))}else s=r&~o,s!==0?n=Jm(s):i!==0&&(n=Jm(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function M_(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-el(t),e[t]=r}function P9e(e,t){var r=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 n=e.eventTimes;for(e=e.expirationTimes;0=Ny),oq=" ",iq=!1;function Xne(e,t){switch(e){case"keyup":return v5e.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qne(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var k0=!1;function y5e(e,t){switch(e){case"compositionend":return Qne(t);case"keypress":return t.which!==32?null:(iq=!0,oq);case"textInput":return e=t.data,e===oq&&iq?null:e;default:return null}}function b5e(e,t){if(k0)return e==="compositionend"||!pL&&Xne(e,t)?(e=Une(),ak=fL=Dd=null,k0=!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:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=lq(r)}}function toe(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?toe(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function roe(){for(var e=window,t=oA();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=oA(e.document)}return t}function gL(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 I5e(e){var t=roe(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&toe(r.ownerDocument.documentElement,r)){if(n!==null&&gL(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=cq(r,i);var s=cq(r,n);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,A0=null,yF=null,Ry=null,bF=!1;function fq(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;bF||A0==null||A0!==oA(n)||(n=A0,"selectionStart"in n&&gL(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Ry&&Eb(Ry,n)||(Ry=n,n=fA(yF,"onSelect"),0I0||(e.current=AF[I0],AF[I0]=null,I0--)}function dn(e,t){I0++,AF[I0]=e.current,e.current=t}var u1={},Oi=I1(u1),Cs=I1(!1),$h=u1;function Sg(e,t){var r=e.type.contextTypes;if(!r)return u1;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Rs(e){return e=e.childContextTypes,e!=null}function hA(){kn(Cs),kn(Oi)}function yq(e,t,r){if(Oi.current!==u1)throw Error(Ge(168));dn(Oi,t),dn(Cs,r)}function foe(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(Ge(108,w9e(e)||"Unknown",o));return Vn({},r,n)}function pA(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||u1,$h=Oi.current,dn(Oi,e),dn(Cs,Cs.current),!0}function bq(e,t,r){var n=e.stateNode;if(!n)throw Error(Ge(169));r?(e=foe(e,t,$h),n.__reactInternalMemoizedMergedChildContext=e,kn(Cs),kn(Oi),dn(Oi,e)):kn(Cs),dn(Cs,r)}var Jc=null,ox=!1,g2=!1;function doe(e){Jc===null?Jc=[e]:Jc.push(e)}function H5e(e){ox=!0,doe(e)}function N1(){if(!g2&&Jc!==null){g2=!0;var e=0,t=Yr;try{var r=Jc;for(Yr=1;e>=s,o-=s,rf=1<<32-el(t)+o|r<N?(I=T,T=null):I=T.sibling;var R=d(E,T,S[N],b);if(R===null){T===null&&(T=I);break}e&&T&&R.alternate===null&&t(E,T),_=i(R,_,N),x===null?A=R:x.sibling=R,x=R,T=I}if(N===S.length)return r(E,T),Rn&&Z1(E,N),A;if(T===null){for(;NN?(I=T,T=null):I=T.sibling;var D=d(E,T,R.value,b);if(D===null){T===null&&(T=I);break}e&&T&&D.alternate===null&&t(E,T),_=i(D,_,N),x===null?A=D:x.sibling=D,x=D,T=I}if(R.done)return r(E,T),Rn&&Z1(E,N),A;if(T===null){for(;!R.done;N++,R=S.next())R=f(E,R.value,b),R!==null&&(_=i(R,_,N),x===null?A=R:x.sibling=R,x=R);return Rn&&Z1(E,N),A}for(T=n(E,T);!R.done;N++,R=S.next())R=h(T,E,N,R.value,b),R!==null&&(e&&R.alternate!==null&&T.delete(R.key===null?N:R.key),_=i(R,_,N),x===null?A=R:x.sibling=R,x=R);return e&&T.forEach(function(L){return t(E,L)}),Rn&&Z1(E,N),A}function y(E,_,S,b){if(typeof S=="object"&&S!==null&&S.type===w0&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case FS:e:{for(var A=S.key,x=_;x!==null;){if(x.key===A){if(A=S.type,A===w0){if(x.tag===7){r(E,x.sibling),_=o(x,S.props.children),_.return=E,E=_;break e}}else if(x.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===Ed&&Tq(A)===x.type){r(E,x.sibling),_=o(x,S.props),_.ref=Em(E,x,S),_.return=E,E=_;break e}r(E,x);break}else t(E,x);x=x.sibling}S.type===w0?(_=Ch(S.props.children,E.mode,b,S.key),_.return=E,E=_):(b=gk(S.type,S.key,S.props,null,E.mode,b),b.ref=Em(E,_,S),b.return=E,E=b)}return s(E);case S0:e:{for(x=S.key;_!==null;){if(_.key===x)if(_.tag===4&&_.stateNode.containerInfo===S.containerInfo&&_.stateNode.implementation===S.implementation){r(E,_.sibling),_=o(_,S.children||[]),_.return=E,E=_;break e}else{r(E,_);break}else t(E,_);_=_.sibling}_=w2(S,E.mode,b),_.return=E,E=_}return s(E);case Ed:return x=S._init,y(E,_,x(S._payload),b)}if(Zm(S))return g(E,_,S,b);if(vm(S))return v(E,_,S,b);KS(E,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,_!==null&&_.tag===6?(r(E,_.sibling),_=o(_,S),_.return=E,E=_):(r(E,_),_=S2(S,E.mode,b),_.return=E,E=_),s(E)):r(E,_)}return y}var kg=_oe(!0),Eoe=_oe(!1),z_={},Jl=I1(z_),Ab=I1(z_),Tb=I1(z_);function bh(e){if(e===z_)throw Error(Ge(174));return e}function kL(e,t){switch(dn(Tb,t),dn(Ab,e),dn(Jl,z_),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:uF(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=uF(t,e)}kn(Jl),dn(Jl,t)}function Ag(){kn(Jl),kn(Ab),kn(Tb)}function Soe(e){bh(Tb.current);var t=bh(Jl.current),r=uF(t,e.type);t!==r&&(dn(Ab,e),dn(Jl,r))}function AL(e){Ab.current===e&&(kn(Jl),kn(Ab))}var $n=I1(0);function _A(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.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 v2=[];function TL(){for(var e=0;er?r:4,e(!0);var n=m2.transition;m2.transition={};try{e(!1),t()}finally{Yr=r,m2.transition=n}}function joe(){return gu().memoizedState}function W5e(e,t,r){var n=Vd(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},zoe(e))Hoe(t,r);else if(r=voe(e,t,r,n),r!==null){var o=os();tl(r,e,n,o),$oe(r,t,n)}}function K5e(e,t,r){var n=Vd(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(zoe(e))Hoe(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,r);if(o.hasEagerState=!0,o.eagerState=a,il(a,s)){var u=t.interleaved;u===null?(o.next=o,SL(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}r=voe(e,t,o,n),r!==null&&(o=os(),tl(r,e,n,o),$oe(r,t,n))}}function zoe(e){var t=e.alternate;return e===Wn||t!==null&&t===Wn}function Hoe(e,t){Oy=EA=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function $oe(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,uL(e,r)}}var SA={readContext:pu,useCallback:mi,useContext:mi,useEffect:mi,useImperativeHandle:mi,useInsertionEffect:mi,useLayoutEffect:mi,useMemo:mi,useReducer:mi,useRef:mi,useState:mi,useDebugValue:mi,useDeferredValue:mi,useTransition:mi,useMutableSource:mi,useSyncExternalStore:mi,useId:mi,unstable_isNewReconciler:!1},G5e={readContext:pu,useCallback:function(e,t){return Nl().memoizedState=[e,t===void 0?null:t],e},useContext:pu,useEffect:Iq,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,fk(4194308,4,Doe.bind(null,t,e),r)},useLayoutEffect:function(e,t){return fk(4194308,4,e,t)},useInsertionEffect:function(e,t){return fk(4,2,e,t)},useMemo:function(e,t){var r=Nl();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Nl();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=W5e.bind(null,Wn,e),[n.memoizedState,e]},useRef:function(e){var t=Nl();return e={current:e},t.memoizedState=e},useState:xq,useDebugValue:RL,useDeferredValue:function(e){return Nl().memoizedState=e},useTransition:function(){var e=xq(!1),t=e[0];return e=q5e.bind(null,e[1]),Nl().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Wn,o=Nl();if(Rn){if(r===void 0)throw Error(Ge(407));r=r()}else{if(r=t(),Yo===null)throw Error(Ge(349));qh&30||Aoe(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,Iq(xoe.bind(null,n,i,e),[e]),n.flags|=2048,Nb(9,Toe.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=Nl(),t=Yo.identifierPrefix;if(Rn){var r=nf,n=rf;r=(n&~(1<<32-el(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=xb++,0")&&(u=u.replace("",e.displayName)),u}while(1<=s&&0<=a);break}}}finally{o2=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Zm(e):""}function C9e(e){switch(e.tag){case 5:return Zm(e.type);case 16:return Zm("Lazy");case 13:return Zm("Suspense");case 19:return Zm("SuspenseList");case 0:case 2:case 15:return e=i2(e.type,!1),e;case 11:return e=i2(e.type.render,!1),e;case 1:return e=i2(e.type,!0),e;default:return""}}function aF(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 A0:return"Fragment";case w0:return"Portal";case oF:return"Profiler";case uL:return"StrictMode";case iF:return"Suspense";case sF:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case xne:return(e.displayName||"Context")+".Consumer";case kne:return(e._context.displayName||"Context")+".Provider";case lL:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case cL:return t=e.displayName||null,t!==null?t:aF(e.type)||"Memo";case Ed:t=e._payload,e=e._init;try{return aF(e(t))}catch{}}return null}function N9e(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 aF(t);case 8:return t===uL?"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 s1(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ine(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function R9e(e){var t=Ine(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){n=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function jS(e){e._valueTracker||(e._valueTracker=R9e(e))}function Cne(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Ine(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function lk(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 uF(e,t){var r=t.checked;return Gn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function JP(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=s1(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Nne(e,t){t=t.checked,t!=null&&aL(e,"checked",t,!1)}function lF(e,t){Nne(e,t);var r=s1(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?cF(e,t.type,r):t.hasOwnProperty("defaultValue")&&cF(e,t.type,s1(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function eq(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function cF(e,t,r){(t!=="number"||lk(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Jm=Array.isArray;function X0(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=zS.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function yb(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Cy={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},O9e=["Webkit","ms","Moz","O"];Object.keys(Cy).forEach(function(e){O9e.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Cy[t]=Cy[e]})});function Fne(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Cy.hasOwnProperty(e)&&Cy[e]?(""+t).trim():t+"px"}function Bne(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=Fne(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var D9e=Gn({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 hF(e,t){if(t){if(D9e[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 pF(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 gF=null;function fL(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var vF=null,Q0=null,Z0=null;function nq(e){if(e=$_(e)){if(typeof vF!="function")throw Error(Ke(280));var t=e.stateNode;t&&(t=aT(t),vF(e.stateNode,e.type,t))}}function Mne(e){Q0?Z0?Z0.push(e):Z0=[e]:Q0=e}function Lne(){if(Q0){var e=Q0,t=Z0;if(Z0=Q0=null,nq(e),t)for(e=0;e>>=0,e===0?32:31-(W9e(e)/K9e|0)|0}var HS=64,$S=4194304;function ey(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 hk(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,s=r&268435455;if(s!==0){var a=s&~o;a!==0?n=ey(a):(i&=s,i!==0&&(n=ey(i)))}else s=r&~o,s!==0?n=ey(s):i!==0&&(n=ey(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function z_(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-tl(t),e[t]=r}function Y9e(e,t){var r=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 n=e.eventTimes;for(e=e.expirationTimes;0=Ry),dq=" ",hq=!1;function noe(e,t){switch(e){case"keyup":return w5e.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ooe(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var k0=!1;function k5e(e,t){switch(e){case"compositionend":return ooe(t);case"keypress":return t.which!==32?null:(hq=!0,dq);case"textInput":return e=t.data,e===dq&&hq?null:e;default:return null}}function x5e(e,t){if(k0)return e==="compositionend"||!bL&&noe(e,t)?(e=toe(),fA=vL=Dd=null,k0=!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:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=mq(r)}}function uoe(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?uoe(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function loe(){for(var e=window,t=lk();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=lk(e.document)}return t}function _L(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 B5e(e){var t=loe(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&uoe(r.ownerDocument.documentElement,r)){if(n!==null&&_L(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=yq(r,i);var s=yq(r,n);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,x0=null,SF=null,Dy=null,wF=!1;function bq(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;wF||x0==null||x0!==lk(n)||(n=x0,"selectionStart"in n&&_L(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Dy&&Ab(Dy,n)||(Dy=n,n=vk(SF,"onSelect"),0C0||(e.current=CF[C0],CF[C0]=null,C0--)}function dn(e,t){C0++,CF[C0]=e.current,e.current=t}var a1={},Di=T1(a1),Rs=T1(!1),Hh=a1;function Ag(e,t){var r=e.type.contextTypes;if(!r)return a1;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Os(e){return e=e.childContextTypes,e!=null}function yk(){wn(Rs),wn(Di)}function xq(e,t,r){if(Di.current!==a1)throw Error(Ke(168));dn(Di,t),dn(Rs,r)}function yoe(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(Ke(108,N9e(e)||"Unknown",o));return Gn({},r,n)}function bk(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||a1,Hh=Di.current,dn(Di,e),dn(Rs,Rs.current),!0}function Tq(e,t,r){var n=e.stateNode;if(!n)throw Error(Ke(169));r?(e=yoe(e,t,Hh),n.__reactInternalMemoizedMergedChildContext=e,wn(Rs),wn(Di),dn(Di,e)):wn(Rs),dn(Rs,r)}var ef=null,uT=!1,b2=!1;function boe(e){ef===null?ef=[e]:ef.push(e)}function V5e(e){uT=!0,boe(e)}function I1(){if(!b2&&ef!==null){b2=!0;var e=0,t=Xr;try{var r=ef;for(Xr=1;e>=s,o-=s,nf=1<<32-tl(t)+o|r<C?(I=x,x=null):I=x.sibling;var R=d(E,x,S[C],b);if(R===null){x===null&&(x=I);break}e&&x&&R.alternate===null&&t(E,x),_=i(R,_,C),T===null?A=R:T.sibling=R,T=R,x=I}if(C===S.length)return r(E,x),Nn&&Q1(E,C),A;if(x===null){for(;CC?(I=x,x=null):I=x.sibling;var D=d(E,x,R.value,b);if(D===null){x===null&&(x=I);break}e&&x&&D.alternate===null&&t(E,x),_=i(D,_,C),T===null?A=D:T.sibling=D,T=D,x=I}if(R.done)return r(E,x),Nn&&Q1(E,C),A;if(x===null){for(;!R.done;C++,R=S.next())R=f(E,R.value,b),R!==null&&(_=i(R,_,C),T===null?A=R:T.sibling=R,T=R);return Nn&&Q1(E,C),A}for(x=n(E,x);!R.done;C++,R=S.next())R=h(x,E,C,R.value,b),R!==null&&(e&&R.alternate!==null&&x.delete(R.key===null?C:R.key),_=i(R,_,C),T===null?A=R:T.sibling=R,T=R);return e&&x.forEach(function(L){return t(E,L)}),Nn&&Q1(E,C),A}function y(E,_,S,b){if(typeof S=="object"&&S!==null&&S.type===A0&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case LS:e:{for(var A=S.key,T=_;T!==null;){if(T.key===A){if(A=S.type,A===A0){if(T.tag===7){r(E,T.sibling),_=o(T,S.props.children),_.return=E,E=_;break e}}else if(T.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===Ed&&Fq(A)===T.type){r(E,T.sibling),_=o(T,S.props),_.ref=Sm(E,T,S),_.return=E,E=_;break e}r(E,T);break}else t(E,T);T=T.sibling}S.type===A0?(_=Ch(S.props.children,E.mode,b,S.key),_.return=E,E=_):(b=bA(S.type,S.key,S.props,null,E.mode,b),b.ref=Sm(E,_,S),b.return=E,E=b)}return s(E);case w0:e:{for(T=S.key;_!==null;){if(_.key===T)if(_.tag===4&&_.stateNode.containerInfo===S.containerInfo&&_.stateNode.implementation===S.implementation){r(E,_.sibling),_=o(_,S.children||[]),_.return=E,E=_;break e}else{r(E,_);break}else t(E,_);_=_.sibling}_=T2(S,E.mode,b),_.return=E,E=_}return s(E);case Ed:return T=S._init,y(E,_,T(S._payload),b)}if(Jm(S))return g(E,_,S,b);if(mm(S))return v(E,_,S,b);US(E,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,_!==null&&_.tag===6?(r(E,_.sibling),_=o(_,S),_.return=E,E=_):(r(E,_),_=x2(S,E.mode,b),_.return=E,E=_),s(E)):r(E,_)}return y}var xg=Toe(!0),Ioe=Toe(!1),P_={},rc=T1(P_),Ib=T1(P_),Cb=T1(P_);function yh(e){if(e===P_)throw Error(Ke(174));return e}function CL(e,t){switch(dn(Cb,t),dn(Ib,e),dn(rc,P_),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:dF(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=dF(t,e)}wn(rc),dn(rc,t)}function Tg(){wn(rc),wn(Ib),wn(Cb)}function Coe(e){yh(Cb.current);var t=yh(rc.current),r=dF(t,e.type);t!==r&&(dn(Ib,e),dn(rc,r))}function NL(e){Ib.current===e&&(wn(rc),wn(Ib))}var Hn=T1(0);function kk(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.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 _2=[];function RL(){for(var e=0;e<_2.length;e++)_2[e]._workInProgressVersionPrimary=null;_2.length=0}var pA=jf.ReactCurrentDispatcher,E2=jf.ReactCurrentBatchConfig,Ph=0,qn=null,Do=null,Wo=null,xk=!1,Fy=!1,Nb=0,Y5e=0;function yi(){throw Error(Ke(321))}function OL(e,t){if(t===null)return!1;for(var r=0;rr?r:4,e(!0);var n=E2.transition;E2.transition={};try{e(!1),t()}finally{Xr=r,E2.transition=n}}function Koe(){return gu().memoizedState}function Q5e(e,t,r){var n=Vd(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Goe(e))Voe(t,r);else if(r=woe(e,t,r,n),r!==null){var o=os();rl(r,e,n,o),Uoe(r,t,n)}}function Z5e(e,t,r){var n=Vd(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Goe(e))Voe(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,r);if(o.hasEagerState=!0,o.eagerState=a,sl(a,s)){var u=t.interleaved;u===null?(o.next=o,TL(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}r=woe(e,t,o,n),r!==null&&(o=os(),rl(r,e,n,o),Uoe(r,t,n))}}function Goe(e){var t=e.alternate;return e===qn||t!==null&&t===qn}function Voe(e,t){Fy=xk=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Uoe(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,hL(e,r)}}var Tk={readContext:pu,useCallback:yi,useContext:yi,useEffect:yi,useImperativeHandle:yi,useInsertionEffect:yi,useLayoutEffect:yi,useMemo:yi,useReducer:yi,useRef:yi,useState:yi,useDebugValue:yi,useDeferredValue:yi,useTransition:yi,useMutableSource:yi,useSyncExternalStore:yi,useId:yi,unstable_isNewReconciler:!1},J5e={readContext:pu,useCallback:function(e,t){return Ol().memoizedState=[e,t===void 0?null:t],e},useContext:pu,useEffect:Mq,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,gA(4194308,4,Hoe.bind(null,t,e),r)},useLayoutEffect:function(e,t){return gA(4194308,4,e,t)},useInsertionEffect:function(e,t){return gA(4,2,e,t)},useMemo:function(e,t){var r=Ol();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Ol();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=Q5e.bind(null,qn,e),[n.memoizedState,e]},useRef:function(e){var t=Ol();return e={current:e},t.memoizedState=e},useState:Bq,useDebugValue:ML,useDeferredValue:function(e){return Ol().memoizedState=e},useTransition:function(){var e=Bq(!1),t=e[0];return e=X5e.bind(null,e[1]),Ol().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=qn,o=Ol();if(Nn){if(r===void 0)throw Error(Ke(407));r=r()}else{if(r=t(),Yo===null)throw Error(Ke(349));Ph&30||Ooe(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,Mq(Foe.bind(null,n,i,e),[e]),n.flags|=2048,Ob(9,Doe.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=Ol(),t=Yo.identifierPrefix;if(Nn){var r=of,n=nf;r=(n&~(1<<32-tl(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Nb++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=s.createElement(r,{is:n.is}):(e=s.createElement(r),r==="select"&&(s=e,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):e=s.createElementNS(e,r),e[ql]=t,e[kb]=n,Xoe(e,t,!1,!1),t.stateNode=e;e:{switch(s=cF(r,n),r){case"dialog":En("cancel",e),En("close",e),o=n;break;case"iframe":case"object":case"embed":En("load",e),o=n;break;case"video":case"audio":for(o=0;oxg&&(t.flags|=128,n=!0,Sm(i,!1),t.lanes=4194304)}else{if(!n)if(e=_A(s),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Sm(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Rn)return yi(t),null}else 2*uo()-i.renderingStartTime>xg&&r!==1073741824&&(t.flags|=128,n=!0,Sm(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(r=i.last,r!==null?r.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=uo(),t.sibling=null,r=$n.current,dn($n,n?r&1|2:r&1),t):(yi(t),null);case 22:case 23:return LL(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Zs&1073741824&&(yi(t),t.subtreeFlags&6&&(t.flags|=8192)):yi(t),null;case 24:return null;case 25:return null}throw Error(Ge(156,t.tag))}function eIe(e,t){switch(mL(t),t.tag){case 1:return Rs(t.type)&&hA(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ag(),kn(Cs),kn(Oi),TL(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return AL(t),null;case 13:if(kn($n),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ge(340));wg()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return kn($n),null;case 4:return Ag(),null;case 10:return EL(t.type._context),null;case 22:case 23:return LL(),null;case 24:return null;default:return null}}var VS=!1,Ai=!1,tIe=typeof WeakSet=="function"?WeakSet:Set,pt=null;function O0(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Zn(e,t,n)}else r.current=null}function LF(e,t,r){try{r()}catch(n){Zn(e,t,n)}}var Lq=!1;function rIe(e,t){if(_F=lA,e=roe(),gL(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var s=0,a=-1,u=-1,l=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==r||o!==0&&f.nodeType!==3||(a=s+o),f!==i||n!==0&&f.nodeType!==3||(u=s+n),f.nodeType===3&&(s+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===r&&++l===o&&(a=s),d===i&&++c===n&&(u=s),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}r=a===-1||u===-1?null:{start:a,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(EF={focusedElem:e,selectionRange:r},lA=!1,pt=t;pt!==null;)if(t=pt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,pt=e;else for(;pt!==null;){t=pt;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var v=g.memoizedProps,y=g.memoizedState,E=t.stateNode,_=E.getSnapshotBeforeUpdate(t.elementType===t.type?v:Ku(t.type,v),y);E.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ge(163))}}catch(b){Zn(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,pt=e;break}pt=t.return}return g=Lq,Lq=!1,g}function Dy(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&LF(t,r,i)}o=o.next}while(o!==n)}}function ax(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function jF(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function Joe(e){var t=e.alternate;t!==null&&(e.alternate=null,Joe(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ql],delete t[kb],delete t[kF],delete t[j5e],delete t[z5e])),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 eie(e){return e.tag===5||e.tag===3||e.tag===4}function jq(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||eie(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 zF(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=dA));else if(n!==4&&(e=e.child,e!==null))for(zF(e,t,r),e=e.sibling;e!==null;)zF(e,t,r),e=e.sibling}function HF(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(HF(e,t,r),e=e.sibling;e!==null;)HF(e,t,r),e=e.sibling}var ri=null,Uu=!1;function sd(e,t,r){for(r=r.child;r!==null;)tie(e,t,r),r=r.sibling}function tie(e,t,r){if(Zl&&typeof Zl.onCommitFiberUnmount=="function")try{Zl.onCommitFiberUnmount(JT,r)}catch{}switch(r.tag){case 5:Ai||O0(r,t);case 6:var n=ri,o=Uu;ri=null,sd(e,t,r),ri=n,Uu=o,ri!==null&&(Uu?(e=ri,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):ri.removeChild(r.stateNode));break;case 18:ri!==null&&(Uu?(e=ri,r=r.stateNode,e.nodeType===8?p2(e.parentNode,r):e.nodeType===1&&p2(e,r),bb(e)):p2(ri,r.stateNode));break;case 4:n=ri,o=Uu,ri=r.stateNode.containerInfo,Uu=!0,sd(e,t,r),ri=n,Uu=o;break;case 0:case 11:case 14:case 15:if(!Ai&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&LF(r,t,s),o=o.next}while(o!==n)}sd(e,t,r);break;case 1:if(!Ai&&(O0(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){Zn(r,t,a)}sd(e,t,r);break;case 21:sd(e,t,r);break;case 22:r.mode&1?(Ai=(n=Ai)||r.memoizedState!==null,sd(e,t,r),Ai=n):sd(e,t,r);break;default:sd(e,t,r)}}function zq(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new tIe),t.forEach(function(n){var o=fIe.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function ju(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=s),n&=~i}if(n=o,n=uo()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*oIe(n/1960))-n,10e?16:e,Fd===null)var n=!1;else{if(e=Fd,Fd=null,AA=0,Ar&6)throw Error(Ge(331));var o=Ar;for(Ar|=4,pt=e.current;pt!==null;){var i=pt,s=i.child;if(pt.flags&16){var a=i.deletions;if(a!==null){for(var u=0;uuo()-BL?Nh(e,0):FL|=r),Os(e,t)}function lie(e,t){t===0&&(e.mode&1?(t=jS,jS<<=1,!(jS&130023424)&&(jS=4194304)):t=1);var r=os();e=mf(e,t),e!==null&&(M_(e,t,r),Os(e,r))}function cIe(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),lie(e,r)}function fIe(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Ge(314))}n!==null&&n.delete(t),lie(e,r)}var cie;cie=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Cs.current)Is=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Is=!1,Z5e(e,t,r);Is=!!(e.flags&131072)}else Is=!1,Rn&&t.flags&1048576&&hoe(t,vA,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;dk(e,t),e=t.pendingProps;var o=Sg(t,Oi.current);J0(t,r),o=IL(null,t,n,e,o,r);var i=NL();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Rs(n)?(i=!0,pA(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,wL(t),o.updater=ix,t.stateNode=o,o._reactInternals=t,CF(t,n,e,r),t=DF(null,t,n,!0,i,r)):(t.tag=0,Rn&&i&&vL(t),Ki(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(dk(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=hIe(n),e=Ku(n,e),o){case 0:t=OF(null,t,n,e,r);break e;case 1:t=Fq(null,t,n,e,r);break e;case 11:t=Oq(null,t,n,e,r);break e;case 14:t=Dq(null,t,n,Ku(n.type,e),r);break e}throw Error(Ge(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ku(n,o),OF(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ku(n,o),Fq(e,t,n,o,r);case 3:e:{if(Voe(t),e===null)throw Error(Ge(387));n=t.pendingProps,i=t.memoizedState,o=i.element,moe(e,t),bA(t,n,null,r);var s=t.memoizedState;if(n=s.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Tg(Error(Ge(423)),t),t=Bq(e,t,n,r,o);break e}else if(n!==o){o=Tg(Error(Ge(424)),t),t=Bq(e,t,n,r,o);break e}else for(ua=Wd(t.stateNode.containerInfo.firstChild),da=t,Rn=!0,Yu=null,r=Eoe(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(wg(),n===o){t=yf(e,t,r);break e}Ki(e,t,n,r)}t=t.child}return t;case 5:return Soe(t),e===null&&xF(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,SF(n,o)?s=null:i!==null&&SF(n,i)&&(t.flags|=32),Goe(e,t),Ki(e,t,s,r),t.child;case 6:return e===null&&xF(t),null;case 13:return Uoe(e,t,r);case 4:return kL(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=kg(t,null,n,r):Ki(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ku(n,o),Oq(e,t,n,o,r);case 7:return Ki(e,t,t.pendingProps,r),t.child;case 8:return Ki(e,t,t.pendingProps.children,r),t.child;case 12:return Ki(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,dn(mA,n._currentValue),n._currentValue=s,i!==null)if(il(i.value,s)){if(i.children===o.children&&!Cs.current){t=yf(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var u=a.firstContext;u!==null;){if(u.context===n){if(i.tag===1){u=ff(-1,r&-r),u.tag=2;var l=i.updateQueue;if(l!==null){l=l.shared;var c=l.pending;c===null?u.next=u:(u.next=c.next,c.next=u),l.pending=u}}i.lanes|=r,u=i.alternate,u!==null&&(u.lanes|=r),IF(i.return,r,t),a.lanes|=r;break}u=u.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(Ge(341));s.lanes|=r,a=s.alternate,a!==null&&(a.lanes|=r),IF(s,r,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Ki(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,J0(t,r),o=pu(o),n=n(o),t.flags|=1,Ki(e,t,n,r),t.child;case 14:return n=t.type,o=Ku(n,t.pendingProps),o=Ku(n.type,o),Dq(e,t,n,o,r);case 15:return Woe(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ku(n,o),dk(e,t),t.tag=1,Rs(n)?(e=!0,pA(t)):e=!1,J0(t,r),boe(t,n,o),CF(t,n,o,r),DF(null,t,n,!0,e,r);case 19:return Yoe(e,t,r);case 22:return Koe(e,t,r)}throw Error(Ge(156,t.tag))};function fie(e,t){return Lne(e,t)}function dIe(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nu(e,t,r,n){return new dIe(e,t,r,n)}function zL(e){return e=e.prototype,!(!e||!e.isReactComponent)}function hIe(e){if(typeof e=="function")return zL(e)?1:0;if(e!=null){if(e=e.$$typeof,e===oL)return 11;if(e===iL)return 14}return 2}function Ud(e,t){var r=e.alternate;return r===null?(r=nu(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function gk(e,t,r,n,o,i){var s=2;if(n=e,typeof e=="function")zL(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case w0:return Ch(r.children,o,i,t);case nL:s=8,o|=8;break;case eF:return e=nu(12,r,t,o|2),e.elementType=eF,e.lanes=i,e;case tF:return e=nu(13,r,t,o),e.elementType=tF,e.lanes=i,e;case rF:return e=nu(19,r,t,o),e.elementType=rF,e.lanes=i,e;case _ne:return lx(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case yne:s=10;break e;case bne:s=9;break e;case oL:s=11;break e;case iL:s=14;break e;case Ed:s=16,n=null;break e}throw Error(Ge(130,e==null?e:typeof e,""))}return t=nu(s,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function Ch(e,t,r,n){return e=nu(7,e,n,t),e.lanes=r,e}function lx(e,t,r,n){return e=nu(22,e,n,t),e.elementType=_ne,e.lanes=r,e.stateNode={isHidden:!1},e}function S2(e,t,r){return e=nu(6,e,null,t),e.lanes=r,e}function w2(e,t,r){return t=nu(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function pIe(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=n2(0),this.expirationTimes=n2(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=n2(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function HL(e,t,r,n,o,i,s,a,u){return e=new pIe(e,t,r,a,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=nu(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},wL(i),e}function gIe(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(gie)}catch(e){console.error(e)}}gie(),hne.exports=Ta;var li=hne.exports;const ty=Mf(li);var _Ie=gc(),EIe=ds(function(e,t){return F_(Ee(Ee({},e),{rtl:t}))}),SIe=function(e){var t=e.theme,r=e.dir,n=Ji(t)?"rtl":"ltr",o=Ji()?"rtl":"ltr",i=r||n;return{rootDir:i!==n||i!==o?i:r,needsTheme:i!==n}},vie=k.forwardRef(function(e,t){var r=e.className,n=e.theme,o=e.applyTheme,i=e.applyThemeToBody,s=e.styles,a=_Ie(s,{theme:n,applyTheme:o,className:r}),u=k.useRef(null);return kIe(i,a,u),k.createElement(k.Fragment,null,wIe(e,a,u,t))});vie.displayName="FabricBase";function wIe(e,t,r,n){var o=t.root,i=e.as,s=i===void 0?"div":i,a=e.dir,u=e.theme,l=Ci(e,iv,["dir"]),c=SIe(e),f=c.rootDir,d=c.needsTheme,h=k.createElement(Ure,{providerRef:r},k.createElement(s,Ee({dir:f},l,{className:o,ref:oc(r,n)})));return d&&(h=k.createElement(MAe,{settings:{theme:EIe(u,a==="rtl")}},h)),h}function kIe(e,t,r){var n=t.bodyThemed;return k.useEffect(function(){if(e){var o=as(r.current);if(o)return o.body.classList.add(n),function(){o.body.classList.remove(n)}}},[n,e,r]),r}var k2={fontFamily:"inherit"},AIe={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},TIe=function(e){var t=e.applyTheme,r=e.className,n=e.preventBlanketFontInheritance,o=e.theme,i=mc(AIe,o);return{root:[i.root,o.fonts.medium,{color:o.palette.neutralPrimary},!n&&{"& button":k2,"& input":k2,"& textarea":k2},t&&{color:o.semanticColors.bodyText,backgroundColor:o.semanticColors.bodyBackground},r],bodyThemed:[{backgroundColor:o.semanticColors.bodyBackground}]}},xIe=vc(vie,TIe,void 0,{scope:"Fabric"}),My={},WL={},mie="fluent-default-layer-host",IIe="#".concat(mie);function NIe(e,t){My[e]||(My[e]=[]),My[e].push(t);var r=WL[e];if(r)for(var n=0,o=r;n=0&&(r.splice(n,1),r.length===0&&delete My[e])}var o=WL[e];if(o)for(var i=0,s=o;i0&&t.current.naturalHeight>0||t.current.complete&&WIe.test(i):!1;f&&u(Yi.loaded)}}),k.useEffect(function(){r==null||r(a)},[a]);var l=k.useCallback(function(f){n==null||n(f),i&&u(Yi.loaded)},[i,n]),c=k.useCallback(function(f){o==null||o(f),u(Yi.error)},[o]);return[a,l,c]}var Eie=k.forwardRef(function(e,t){var r=k.useRef(),n=k.useRef(),o=GIe(e,n),i=o[0],s=o[1],a=o[2],u=Ci(e,GAe,["width","height"]),l=e.src,c=e.alt,f=e.width,d=e.height,h=e.shouldFadeIn,g=h===void 0?!0:h,v=e.shouldStartVisible,y=e.className,E=e.imageFit,_=e.role,S=e.maximizeFrame,b=e.styles,A=e.theme,x=e.loading,T=VIe(e,i,n,r),N=qIe(b,{theme:A,className:y,width:f,height:d,maximizeFrame:S,shouldFadeIn:g,shouldStartVisible:v,isLoaded:i===Yi.loaded||i===Yi.notLoaded&&e.shouldStartVisible,isLandscape:T===Rb.landscape,isCenter:E===ks.center,isCenterContain:E===ks.centerContain,isCenterCover:E===ks.centerCover,isContain:E===ks.contain,isCover:E===ks.cover,isNone:E===ks.none,isError:i===Yi.error,isNotImageFit:E===void 0});return k.createElement("div",{className:N.root,style:{width:f,height:d},ref:r},k.createElement("img",Ee({},u,{onLoad:s,onError:a,key:KIe+e.src||"",className:N.image,ref:oc(n,t),src:l,alt:c,role:_,loading:x})))});Eie.displayName="ImageBase";function VIe(e,t,r,n){var o=k.useRef(t),i=k.useRef();return(i===void 0||o.current===Yi.notLoaded&&t===Yi.loaded)&&(i.current=UIe(e,t,r,n)),o.current=t,i.current}function UIe(e,t,r,n){var o=e.imageFit,i=e.width,s=e.height;if(e.coverStyle!==void 0)return e.coverStyle;if(t===Yi.loaded&&(o===ks.cover||o===ks.contain||o===ks.centerContain||o===ks.centerCover)&&r.current&&n.current){var a=void 0;typeof i=="number"&&typeof s=="number"&&o!==ks.centerContain&&o!==ks.centerCover?a=i/s:a=n.current.clientWidth/n.current.clientHeight;var u=r.current.naturalWidth/r.current.naturalHeight;if(u>a)return Rb.landscape}return Rb.portrait}var YIe={root:"ms-Image",rootMaximizeFrame:"ms-Image--maximizeFrame",image:"ms-Image-image",imageCenter:"ms-Image-image--center",imageContain:"ms-Image-image--contain",imageCover:"ms-Image-image--cover",imageCenterContain:"ms-Image-image--centerContain",imageCenterCover:"ms-Image-image--centerCover",imageNone:"ms-Image-image--none",imageLandscape:"ms-Image-image--landscape",imagePortrait:"ms-Image-image--portrait"},XIe=function(e){var t=e.className,r=e.width,n=e.height,o=e.maximizeFrame,i=e.isLoaded,s=e.shouldFadeIn,a=e.shouldStartVisible,u=e.isLandscape,l=e.isCenter,c=e.isContain,f=e.isCover,d=e.isCenterContain,h=e.isCenterCover,g=e.isNone,v=e.isError,y=e.isNotImageFit,E=e.theme,_=mc(YIe,E),S={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},b=lo(),A=b!==void 0&&b.navigator.msMaxTouchPoints===void 0,x=c&&u||f&&!u?{width:"100%",height:"auto"}:{width:"auto",height:"100%"};return{root:[_.root,E.fonts.medium,{overflow:"hidden"},o&&[_.rootMaximizeFrame,{height:"100%",width:"100%"}],i&&s&&!a&&Xm.fadeIn400,(l||c||f||d||h)&&{position:"relative"},t],image:[_.image,{display:"block",opacity:0},i&&["is-loaded",{opacity:1}],l&&[_.imageCenter,S],c&&[_.imageContain,A&&{width:"100%",height:"100%",objectFit:"contain"},!A&&x,!A&&S],f&&[_.imageCover,A&&{width:"100%",height:"100%",objectFit:"cover"},!A&&x,!A&&S],d&&[_.imageCenterContain,u&&{maxWidth:"100%"},!u&&{maxHeight:"100%"},S],h&&[_.imageCenterCover,u&&{maxHeight:"100%"},!u&&{maxWidth:"100%"},S],g&&[_.imageNone,{width:"auto",height:"auto"}],y&&[!!r&&!n&&{height:"auto",width:"100%"},!r&&!!n&&{height:"100%",width:"auto"},!!r&&!!n&&{height:"100%",width:"100%"}],u&&_.imageLandscape,!u&&_.imagePortrait,!i&&"is-notLoaded",s&&"is-fadeIn",v&&"is-error"]}},Sie=vc(Eie,XIe,void 0,{scope:"Image"},!0);Sie.displayName="Image";var Ly=Mi({root:{display:"inline-block"},placeholder:["ms-Icon-placeHolder",{width:"1em"}],image:["ms-Icon-imageContainer",{overflow:"hidden"}]}),QIe="ms-Icon",ZIe=function(e){var t=e.className,r=e.iconClassName,n=e.isPlaceholder,o=e.isImage,i=e.styles;return{root:[n&&Ly.placeholder,Ly.root,o&&Ly.image,r,t,i&&i.root,i&&i.imageContainer]}},wie=ds(function(e){var t=fTe(e)||{subset:{},code:void 0},r=t.code,n=t.subset;return r?{children:r,iconClassName:n.className,fontFamily:n.fontFace&&n.fontFace.fontFamily,mergeImageProps:n.mergeImageProps}:null},void 0,!0),JIe=function(e){var t=e.iconName,r=e.className,n=e.style,o=n===void 0?{}:n,i=wie(t)||{},s=i.iconClassName,a=i.children,u=i.fontFamily,l=i.mergeImageProps,c=Ci(e,ho),f=e["aria-label"]||e.title,d=e["aria-label"]||e["aria-labelledby"]||e.title?{role:l?void 0:"img"}:{"aria-hidden":!0},h=a;return l&&typeof a=="object"&&typeof a.props=="object"&&f&&(h=k.cloneElement(a,{alt:f})),k.createElement("i",Ee({"data-icon-name":t},d,c,l?{title:void 0,"aria-label":void 0}:{},{className:s1(QIe,Ly.root,s,!t&&Ly.placeholder,r),style:Ee({fontFamily:u},o)}),h)};ds(function(e,t,r){return JIe({iconName:e,className:t,"aria-label":r})});var e2e=gc({cacheSize:100}),t2e=function(e){pc(t,e);function t(r){var n=e.call(this,r)||this;return n._onImageLoadingStateChange=function(o){n.props.imageProps&&n.props.imageProps.onLoadingStateChange&&n.props.imageProps.onLoadingStateChange(o),o===Yi.error&&n.setState({imageLoadError:!0})},n.state={imageLoadError:!1},n}return t.prototype.render=function(){var r=this.props,n=r.children,o=r.className,i=r.styles,s=r.iconName,a=r.imageErrorAs,u=r.theme,l=typeof s=="string"&&s.length===0,c=!!this.props.imageProps||this.props.iconType===IA.image||this.props.iconType===IA.Image,f=wie(s)||{},d=f.iconClassName,h=f.children,g=f.mergeImageProps,v=e2e(i,{theme:u,className:o,iconClassName:d,isImage:c,isPlaceholder:l}),y=c?"span":"i",E=Ci(this.props,ho,["aria-label"]),_=this.state.imageLoadError,S=Ee(Ee({},this.props.imageProps),{onLoadingStateChange:this._onImageLoadingStateChange}),b=_&&a||Sie,A=this.props["aria-label"]||this.props.ariaLabel,x=S.alt||A||this.props.title,T=!!(x||this.props["aria-labelledby"]||S["aria-label"]||S["aria-labelledby"]),N=T?{role:c||g?void 0:"img","aria-label":c||g?void 0:x}:{"aria-hidden":!0},I=h;return g&&h&&typeof h=="object"&&x&&(I=k.cloneElement(h,{alt:x})),k.createElement(y,Ee({"data-icon-name":s},N,E,g?{title:void 0,"aria-label":void 0}:{},{className:v.root}),c?k.createElement(b,Ee({},S)):n||I)},t}(k.Component),Ig=vc(t2e,ZIe,void 0,{scope:"Icon"},!0);Ig.displayName="Icon";var KF={none:0,all:1,inputOnly:2},Wi;(function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"})(Wi||(Wi={}));var QS="data-is-focusable",r2e="data-disable-click-on-enter",A2="data-focuszone-id",Tl="tabindex",T2="data-no-vertical-wrap",x2="data-no-horizontal-wrap",I2=999999999,km=-999999999,N2,n2e="ms-FocusZone";function o2e(e,t){var r;typeof MouseEvent=="function"?r=new MouseEvent("click",{ctrlKey:t==null?void 0:t.ctrlKey,metaKey:t==null?void 0:t.metaKey,shiftKey:t==null?void 0:t.shiftKey,altKey:t==null?void 0:t.altKey,bubbles:t==null?void 0:t.bubbles,cancelable:t==null?void 0:t.cancelable}):(r=document.createEvent("MouseEvents"),r.initMouseEvent("click",t?t.bubbles:!1,t?t.cancelable:!1,window,0,0,0,0,0,t?t.ctrlKey:!1,t?t.altKey:!1,t?t.shiftKey:!1,t?t.metaKey:!1,0,null)),e.dispatchEvent(r)}function i2e(){return N2||(N2=vr({selectors:{":focus":{outline:"none"}}},n2e)),N2}var Am={},ZS=new Set,s2e=["text","number","password","email","tel","url","search","textarea"],Wc=!1,a2e=function(e){pc(t,e);function t(r){var n=this,o,i,s,a;n=e.call(this,r)||this,n._root=k.createRef(),n._mergedRef=lTe(),n._onFocus=function(l){if(!n._portalContainsElement(l.target)){var c=n.props,f=c.onActiveElementChanged,d=c.doNotAllowFocusEventToPropagate,h=c.stopFocusPropagation,g=c.onFocusNotification,v=c.onFocus,y=c.shouldFocusInnerElementWhenReceivedFocus,E=c.defaultTabbableElement,_=n._isImmediateDescendantOfZone(l.target),S;if(_)S=l.target;else for(var b=l.target;b&&b!==n._root.current;){if(Bl(b)&&n._isImmediateDescendantOfZone(b)){S=b;break}b=Dl(b,Wc)}if(y&&l.target===n._root.current){var A=E&&typeof E=="function"&&n._root.current&&E(n._root.current);A&&Bl(A)?(S=A,A.focus()):(n.focus(!0),n._activeElement&&(S=null))}var x=!n._activeElement;S&&S!==n._activeElement&&((_||x)&&n._setFocusAlignment(S,!0,!0),n._activeElement=S,x&&n._updateTabIndexes()),f&&f(n._activeElement,l),(h||d)&&l.stopPropagation(),v?v(l):g&&g()}},n._onBlur=function(){n._setParkedFocus(!1)},n._onMouseDown=function(l){if(!n._portalContainsElement(l.target)){var c=n.props.disabled;if(!c){for(var f=l.target,d=[];f&&f!==n._root.current;)d.push(f),f=Dl(f,Wc);for(;d.length&&(f=d.pop(),f&&Bl(f)&&n._setActiveElement(f,!0),!Xc(f)););}}},n._onKeyDown=function(l,c){if(!n._portalContainsElement(l.target)){var f=n.props,d=f.direction,h=f.disabled,g=f.isInnerZoneKeystroke,v=f.pagingSupportDisabled,y=f.shouldEnterInnerZone;if(!h&&(n.props.onKeyDown&&n.props.onKeyDown(l),!l.isDefaultPrevented()&&!(n._getDocument().activeElement===n._root.current&&n._isInnerZone))){if((y&&y(l)||g&&g(l))&&n._isImmediateDescendantOfZone(l.target)){var E=n._getFirstInnerZone();if(E){if(!E.focus(!0))return}else if(X6(l.target)){if(!n.focusElement(Vi(l.target,l.target.firstChild,!0)))return}else return}else{if(l.altKey)return;switch(l.which){case Wt.space:if(n._shouldRaiseClicksOnSpace&&n._tryInvokeClickForFocusable(l.target,l))break;return;case Wt.left:if(d!==Wi.vertical&&(n._preventDefaultWhenHandled(l),n._moveFocusLeft(c)))break;return;case Wt.right:if(d!==Wi.vertical&&(n._preventDefaultWhenHandled(l),n._moveFocusRight(c)))break;return;case Wt.up:if(d!==Wi.horizontal&&(n._preventDefaultWhenHandled(l),n._moveFocusUp()))break;return;case Wt.down:if(d!==Wi.horizontal&&(n._preventDefaultWhenHandled(l),n._moveFocusDown()))break;return;case Wt.pageDown:if(!v&&n._moveFocusPaging(!0))break;return;case Wt.pageUp:if(!v&&n._moveFocusPaging(!1))break;return;case Wt.tab:if(n.props.allowTabKey||n.props.handleTabKey===KF.all||n.props.handleTabKey===KF.inputOnly&&n._isElementInput(l.target)){var _=!1;if(n._processingTabKey=!0,d===Wi.vertical||!n._shouldWrapFocus(n._activeElement,x2))_=l.shiftKey?n._moveFocusUp():n._moveFocusDown();else{var S=Ji(c)?!l.shiftKey:l.shiftKey;_=S?n._moveFocusLeft(c):n._moveFocusRight(c)}if(n._processingTabKey=!1,_)break;n.props.shouldResetActiveElementWhenTabFromZone&&(n._activeElement=null)}return;case Wt.home:if(n._isContentEditableElement(l.target)||n._isElementInput(l.target)&&!n._shouldInputLoseFocus(l.target,!1))return!1;var b=n._root.current&&n._root.current.firstChild;if(n._root.current&&b&&n.focusElement(Vi(n._root.current,b,!0)))break;return;case Wt.end:if(n._isContentEditableElement(l.target)||n._isElementInput(l.target)&&!n._shouldInputLoseFocus(l.target,!0))return!1;var A=n._root.current&&n._root.current.lastChild;if(n._root.current&&n.focusElement(Ss(n._root.current,A,!0,!0,!0)))break;return;case Wt.enter:if(n._shouldRaiseClicksOnEnter&&n._tryInvokeClickForFocusable(l.target,l))break;return;default:return}}l.preventDefault(),l.stopPropagation()}}},n._getHorizontalDistanceFromCenter=function(l,c,f){var d=n._focusAlignment.left||n._focusAlignment.x||0,h=Math.floor(f.top),g=Math.floor(c.bottom),v=Math.floor(f.bottom),y=Math.floor(c.top),E=l&&h>g,_=!l&&v=f.left&&d<=f.left+f.width?0:Math.abs(f.left+f.width/2-d):n._shouldWrapFocus(n._activeElement,T2)?I2:km},GT(n),n._id=Hh("FocusZone"),n._focusAlignment={left:0,top:0},n._processingTabKey=!1;var u=(i=(o=r.shouldRaiseClicks)!==null&&o!==void 0?o:t.defaultProps.shouldRaiseClicks)!==null&&i!==void 0?i:!0;return n._shouldRaiseClicksOnEnter=(s=r.shouldRaiseClicksOnEnter)!==null&&s!==void 0?s:u,n._shouldRaiseClicksOnSpace=(a=r.shouldRaiseClicksOnSpace)!==null&&a!==void 0?a:u,n}return t.getOuterZones=function(){return ZS.size},t._onKeyDownCapture=function(r){r.which===Wt.tab&&ZS.forEach(function(n){return n._updateTabIndexes()})},t.prototype.componentDidMount=function(){var r=this._root.current;if(Am[this._id]=this,r){for(var n=Dl(r,Wc);n&&n!==this._getDocument().body&&n.nodeType===1;){if(Xc(n)){this._isInnerZone=!0;break}n=Dl(n,Wc)}this._isInnerZone||(ZS.add(this),this._root.current&&this._root.current.addEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&typeof this.props.defaultTabbableElement=="string"?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},t.prototype.componentDidUpdate=function(){var r=this._root.current,n=this._getDocument();if((this._activeElement&&!xs(this._root.current,this._activeElement,Wc)||this._defaultFocusElement&&!xs(this._root.current,this._defaultFocusElement,Wc))&&(this._activeElement=null,this._defaultFocusElement=null,this._updateTabIndexes()),!this.props.preventFocusRestoration&&n&&this._lastIndexPath&&(n.activeElement===n.body||n.activeElement===null||n.activeElement===r)){var o=bAe(r,this._lastIndexPath);o?(this._setActiveElement(o,!0),o.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},t.prototype.componentWillUnmount=function(){delete Am[this._id],this._isInnerZone||(ZS.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},t.prototype.render=function(){var r=this,n=this.props,o=n.as,i=n.elementType,s=n.rootProps,a=n.ariaDescribedBy,u=n.ariaLabelledBy,l=n.className,c=Ci(this.props,ho),f=o||i||"div";this._evaluateFocusBeforeRender();var d=vxe();return k.createElement(f,Ee({"aria-labelledby":u,"aria-describedby":a},c,s,{className:s1(i2e(),l),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(h){return r._onKeyDown(h,d)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},t.prototype.focus=function(r,n){if(r===void 0&&(r=!1),n===void 0&&(n=!1),this._root.current)if(!r&&this._root.current.getAttribute(QS)==="true"&&this._isInnerZone){var o=this._getOwnerZone(this._root.current);if(o!==this._root.current){var i=Am[o.getAttribute(A2)];return!!i&&i.focusElement(this._root.current)}return!1}else{if(!r&&this._activeElement&&xs(this._root.current,this._activeElement)&&Bl(this._activeElement)&&(!n||zre(this._activeElement)))return this._activeElement.focus(),!0;var s=this._root.current.firstChild;return this.focusElement(Vi(this._root.current,s,!0,void 0,void 0,void 0,void 0,void 0,n))}return!1},t.prototype.focusLast=function(){if(this._root.current){var r=this._root.current&&this._root.current.lastChild;return this.focusElement(Ss(this._root.current,r,!0,!0,!0))}return!1},t.prototype.focusElement=function(r,n){var o=this.props,i=o.onBeforeFocus,s=o.shouldReceiveFocus;return s&&!s(r)||i&&!i(r)?!1:r?(this._setActiveElement(r,n),this._activeElement&&this._activeElement.focus(),!0):!1},t.prototype.setFocusAlignment=function(r){this._focusAlignment=r},Object.defineProperty(t.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),t.prototype._evaluateFocusBeforeRender=function(){var r=this._root.current,n=this._getDocument();if(n){var o=n.activeElement;if(o!==r){var i=xs(r,o,!1);this._lastIndexPath=i?_Ae(r,o):void 0}}},t.prototype._setParkedFocus=function(r){var n=this._root.current;n&&this._isParked!==r&&(this._isParked=r,r?(this.props.allowFocusRoot||(this._parkedTabIndex=n.getAttribute("tabindex"),n.setAttribute("tabindex","-1")),n.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(n.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):n.removeAttribute("tabindex")))},t.prototype._setActiveElement=function(r,n){var o=this._activeElement;this._activeElement=r,o&&(Xc(o)&&this._updateTabIndexes(o),o.tabIndex=-1),this._activeElement&&((!this._focusAlignment||n)&&this._setFocusAlignment(r,!0,!0),this._activeElement.tabIndex=0)},t.prototype._preventDefaultWhenHandled=function(r){this.props.preventDefaultWhenHandled&&r.preventDefault()},t.prototype._tryInvokeClickForFocusable=function(r,n){var o=r;if(o===this._root.current)return!1;do{if(o.tagName==="BUTTON"||o.tagName==="A"||o.tagName==="INPUT"||o.tagName==="TEXTAREA"||o.tagName==="SUMMARY")return!1;if(this._isImmediateDescendantOfZone(o)&&o.getAttribute(QS)==="true"&&o.getAttribute(r2e)!=="true")return o2e(o,n),!0;o=Dl(o,Wc)}while(o!==this._root.current);return!1},t.prototype._getFirstInnerZone=function(r){if(r=r||this._activeElement||this._root.current,!r)return null;if(Xc(r))return Am[r.getAttribute(A2)];for(var n=r.firstElementChild;n;){if(Xc(n))return Am[n.getAttribute(A2)];var o=this._getFirstInnerZone(n);if(o)return o;n=n.nextElementSibling}return null},t.prototype._moveFocus=function(r,n,o,i){i===void 0&&(i=!0);var s=this._activeElement,a=-1,u=void 0,l=!1,c=this.props.direction===Wi.bidirectional;if(!s||!this._root.current||this._isElementInput(s)&&!this._shouldInputLoseFocus(s,r))return!1;var f=c?s.getBoundingClientRect():null;do if(s=r?Vi(this._root.current,s):Ss(this._root.current,s),c){if(s){var d=s.getBoundingClientRect(),h=n(f,d);if(h===-1&&a===-1){u=s;break}if(h>-1&&(a===-1||h=0&&h<0)break}}else{u=s;break}while(s);if(u&&u!==this._activeElement)l=!0,this.focusElement(u);else if(this.props.isCircularNavigation&&i)return r?this.focusElement(Vi(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(Ss(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return l},t.prototype._moveFocusDown=function(){var r=this,n=-1,o=this._focusAlignment.left||this._focusAlignment.x||0;return this._moveFocus(!0,function(i,s){var a=-1,u=Math.floor(s.top),l=Math.floor(i.bottom);return u=l||u===n)&&(n=u,o>=s.left&&o<=s.left+s.width?a=0:a=Math.abs(s.left+s.width/2-o)),a)})?(this._setFocusAlignment(this._activeElement,!1,!0),!0):!1},t.prototype._moveFocusUp=function(){var r=this,n=-1,o=this._focusAlignment.left||this._focusAlignment.x||0;return this._moveFocus(!1,function(i,s){var a=-1,u=Math.floor(s.bottom),l=Math.floor(s.top),c=Math.floor(i.top);return u>c?r._shouldWrapFocus(r._activeElement,T2)?I2:km:((n===-1&&u<=c||l===n)&&(n=l,o>=s.left&&o<=s.left+s.width?a=0:a=Math.abs(s.left+s.width/2-o)),a)})?(this._setFocusAlignment(this._activeElement,!1,!0),!0):!1},t.prototype._moveFocusLeft=function(r){var n=this,o=this._shouldWrapFocus(this._activeElement,x2);return this._moveFocus(Ji(r),function(i,s){var a=-1,u;return Ji(r)?u=parseFloat(s.top.toFixed(3))parseFloat(i.top.toFixed(3)),u&&s.right<=i.right&&n.props.direction!==Wi.vertical?a=i.right-s.right:o||(a=km),a},void 0,o)?(this._setFocusAlignment(this._activeElement,!0,!1),!0):!1},t.prototype._moveFocusRight=function(r){var n=this,o=this._shouldWrapFocus(this._activeElement,x2);return this._moveFocus(!Ji(r),function(i,s){var a=-1,u;return Ji(r)?u=parseFloat(s.bottom.toFixed(3))>parseFloat(i.top.toFixed(3)):u=parseFloat(s.top.toFixed(3))=i.left&&n.props.direction!==Wi.vertical?a=s.left-i.left:o||(a=km),a},void 0,o)?(this._setFocusAlignment(this._activeElement,!0,!1),!0):!1},t.prototype._moveFocusPaging=function(r,n){n===void 0&&(n=!0);var o=this._activeElement;if(!o||!this._root.current||this._isElementInput(o)&&!this._shouldInputLoseFocus(o,r))return!1;var i=Fre(o);if(!i)return!1;var s=-1,a=void 0,u=-1,l=-1,c=i.clientHeight,f=o.getBoundingClientRect();do if(o=r?Vi(this._root.current,o):Ss(this._root.current,o),o){var d=o.getBoundingClientRect(),h=Math.floor(d.top),g=Math.floor(f.bottom),v=Math.floor(d.bottom),y=Math.floor(f.top),E=this._getHorizontalDistanceFromCenter(r,f,d),_=r&&h>g+c,S=!r&&v-1&&(r&&h>u?(u=h,s=E,a=o):!r&&v-1){var o=r.selectionStart,i=r.selectionEnd,s=o!==i,a=r.value,u=r.readOnly;if(s||o>0&&!n&&!u||o!==a.length&&n&&!u||this.props.handleTabKey&&!(this.props.shouldInputLoseFocusOnArrowKey&&this.props.shouldInputLoseFocusOnArrowKey(r)))return!1}return!0},t.prototype._shouldWrapFocus=function(r,n){return this.props.checkForNoWrap?Hre(r,n):!0},t.prototype._portalContainsElement=function(r){return r&&!!this._root.current&&aAe(r,this._root.current)},t.prototype._getDocument=function(){return as(this._root.current)},t.defaultProps={isCircularNavigation:!1,direction:Wi.bidirectional,shouldRaiseClicks:!0},t}(k.Component),wi;(function(e){e[e.Normal=0]="Normal",e[e.Divider=1]="Divider",e[e.Header=2]="Header",e[e.Section=3]="Section"})(wi||(wi={}));function Ng(e){return e.canCheck?!!(e.isChecked||e.checked):typeof e.isChecked=="boolean"?e.isChecked:typeof e.checked=="boolean"?e.checked:null}function bf(e){return!!(e.subMenuProps||e.items)}function Vl(e){return!!(e.isDisabled||e.disabled)}function kie(e){var t=Ng(e),r=t!==null;return r?"menuitemcheckbox":"menuitem"}var Vq=function(e){var t=e.item,r=e.classNames,n=t.iconProps;return k.createElement(Ig,Ee({},n,{className:r.icon}))},u2e=function(e){var t=e.item,r=e.hasIcons;return r?t.onRenderIcon?t.onRenderIcon(e,Vq):Vq(e):null},l2e=function(e){var t=e.onCheckmarkClick,r=e.item,n=e.classNames,o=Ng(r);if(t){var i=function(s){return t(r,s)};return k.createElement(Ig,{iconName:r.canCheck!==!1&&o?"CheckMark":"",className:n.checkmarkIcon,onClick:i})}return null},c2e=function(e){var t=e.item,r=e.classNames;return t.text||t.name?k.createElement("span",{className:r.label},t.text||t.name):null},f2e=function(e){var t=e.item,r=e.classNames;return t.secondaryText?k.createElement("span",{className:r.secondaryText},t.secondaryText):null},d2e=function(e){var t=e.item,r=e.classNames,n=e.theme;return bf(t)?k.createElement(Ig,Ee({iconName:Ji(n)?"ChevronLeft":"ChevronRight"},t.submenuIconProps,{className:r.subMenuIcon})):null},h2e=function(e){pc(t,e);function t(r){var n=e.call(this,r)||this;return n.openSubMenu=function(){var o=n.props,i=o.item,s=o.openSubMenu,a=o.getSubmenuTarget;if(a){var u=a();bf(i)&&s&&u&&s(i,u)}},n.dismissSubMenu=function(){var o=n.props,i=o.item,s=o.dismissSubMenu;bf(i)&&s&&s()},n.dismissMenu=function(o){var i=n.props.dismissMenu;i&&i(void 0,o)},GT(n),n}return t.prototype.render=function(){var r=this.props,n=r.item,o=r.classNames,i=n.onRenderContent||this._renderLayout;return k.createElement("div",{className:n.split?o.linkContentMenu:o.linkContent},i(this.props,{renderCheckMarkIcon:l2e,renderItemIcon:u2e,renderItemName:c2e,renderSecondaryText:f2e,renderSubMenuIcon:d2e}))},t.prototype._renderLayout=function(r,n){return k.createElement(k.Fragment,null,n.renderCheckMarkIcon(r),n.renderItemIcon(r),n.renderItemName(r),n.renderSecondaryText(r),n.renderSubMenuIcon(r))},t}(k.Component),p2e=ds(function(e){return Mi({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:e.palette.neutralTertiaryAlt}})}),wd=36,Uq=Jre(0,Zre),g2e=ds(function(e){var t,r,n,o,i,s=e.semanticColors,a=e.fonts,u=e.palette,l=s.menuItemBackgroundHovered,c=s.menuItemTextHovered,f=s.menuItemBackgroundPressed,d=s.bodyDivider,h={item:[a.medium,{color:s.bodyText,position:"relative",boxSizing:"border-box"}],divider:{display:"block",height:"1px",backgroundColor:d,position:"relative"},root:[DP(e),a.medium,{color:s.bodyText,backgroundColor:"transparent",border:"none",width:"100%",height:wd,lineHeight:wd,display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:s.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:(t={},t[U0]={color:"GrayText",opacity:1},t)},rootHovered:{backgroundColor:l,color:c,selectors:{".ms-ContextualMenu-icon":{color:u.themeDarkAlt},".ms-ContextualMenu-submenuIcon":{color:u.neutralPrimary}}},rootFocused:{backgroundColor:u.white},rootChecked:{selectors:{".ms-ContextualMenu-checkmarkIcon":{color:u.neutralPrimary}}},rootPressed:{backgroundColor:f,selectors:{".ms-ContextualMenu-icon":{color:u.themeDark},".ms-ContextualMenu-submenuIcon":{color:u.neutralPrimary}}},rootExpanded:{backgroundColor:f,color:s.bodyTextChecked,selectors:(r={".ms-ContextualMenu-submenuIcon":(n={},n[U0]={color:"inherit"},n)},r[U0]=Ee({},ixe()),r)},linkContent:{whiteSpace:"nowrap",height:"inherit",display:"flex",alignItems:"center",maxWidth:"100%"},anchorLink:{padding:"0px 8px 0 4px",textRendering:"auto",color:"inherit",letterSpacing:"normal",wordSpacing:"normal",textTransform:"none",textIndent:"0px",textShadow:"none",textDecoration:"none",boxSizing:"border-box"},label:{margin:"0 4px",verticalAlign:"middle",display:"inline-block",flexGrow:"1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},secondaryText:{color:e.palette.neutralSecondary,paddingLeft:"20px",textAlign:"right"},icon:{display:"inline-block",minHeight:"1px",maxHeight:wd,fontSize:_d.medium,width:_d.medium,margin:"0 4px",verticalAlign:"middle",flexShrink:"0",selectors:(o={},o[Uq]={fontSize:_d.large,width:_d.large},o)},iconColor:{color:s.menuIcon},iconDisabled:{color:s.disabledBodyText},checkmarkIcon:{color:s.bodySubtext},subMenuIcon:{height:wd,lineHeight:wd,color:u.neutralSecondary,textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:_d.small,selectors:(i={":hover":{color:u.neutralPrimary},":active":{color:u.neutralPrimary}},i[Uq]={fontSize:_d.medium},i)},splitButtonFlexContainer:[DP(e),{display:"flex",height:wd,flexWrap:"nowrap",justifyContent:"center",alignItems:"flex-start"}]};return O_(h)}),Yq="28px",v2e=Jre(0,Zre),m2e=ds(function(e){var t;return Mi(p2e(e),{wrapper:{position:"absolute",right:28,selectors:(t={},t[v2e]={right:32},t)},divider:{height:16,width:1}})}),y2e={item:"ms-ContextualMenu-item",divider:"ms-ContextualMenu-divider",root:"ms-ContextualMenu-link",isChecked:"is-checked",isExpanded:"is-expanded",isDisabled:"is-disabled",linkContent:"ms-ContextualMenu-linkContent",linkContentMenu:"ms-ContextualMenu-linkContent",icon:"ms-ContextualMenu-icon",iconColor:"ms-ContextualMenu-iconColor",checkmarkIcon:"ms-ContextualMenu-checkmarkIcon",subMenuIcon:"ms-ContextualMenu-submenuIcon",label:"ms-ContextualMenu-itemText",secondaryText:"ms-ContextualMenu-secondaryText",splitMenu:"ms-ContextualMenu-splitMenu",screenReaderText:"ms-ContextualMenu-screenReaderText"},b2e=ds(function(e,t,r,n,o,i,s,a,u,l,c,f){var d,h,g,v,y=g2e(e),E=mc(y2e,e);return Mi({item:[E.item,y.item,s],divider:[E.divider,y.divider,a],root:[E.root,y.root,n&&[E.isChecked,y.rootChecked],o&&y.anchorLink,r&&[E.isExpanded,y.rootExpanded],t&&[E.isDisabled,y.rootDisabled],!t&&!r&&[{selectors:(d={":hover":y.rootHovered,":active":y.rootPressed},d[".".concat(Si," &:focus, .").concat(Si," &:focus:hover")]=y.rootFocused,d[".".concat(Si," &:hover")]={background:"inherit;"},d)}],f],splitPrimary:[y.root,{width:"calc(100% - ".concat(Yq,")")},n&&["is-checked",y.rootChecked],(t||c)&&["is-disabled",y.rootDisabled],!(t||c)&&!n&&[{selectors:(h={":hover":y.rootHovered},h[":hover ~ .".concat(E.splitMenu)]=y.rootHovered,h[":active"]=y.rootPressed,h[".".concat(Si," &:focus, .").concat(Si," &:focus:hover")]=y.rootFocused,h[".".concat(Si," &:hover")]={background:"inherit;"},h)}]],splitMenu:[E.splitMenu,y.root,{flexBasis:"0",padding:"0 8px",minWidth:Yq},r&&["is-expanded",y.rootExpanded],t&&["is-disabled",y.rootDisabled],!t&&!r&&[{selectors:(g={":hover":y.rootHovered,":active":y.rootPressed},g[".".concat(Si," &:focus, .").concat(Si," &:focus:hover")]=y.rootFocused,g[".".concat(Si," &:hover")]={background:"inherit;"},g)}]],anchorLink:y.anchorLink,linkContent:[E.linkContent,y.linkContent],linkContentMenu:[E.linkContentMenu,y.linkContent,{justifyContent:"center"}],icon:[E.icon,i&&y.iconColor,y.icon,u,t&&[E.isDisabled,y.iconDisabled]],iconColor:y.iconColor,checkmarkIcon:[E.checkmarkIcon,i&&y.checkmarkIcon,y.icon,u],subMenuIcon:[E.subMenuIcon,y.subMenuIcon,l,r&&{color:e.palette.neutralPrimary},t&&[y.iconDisabled]],label:[E.label,y.label],secondaryText:[E.secondaryText,y.secondaryText],splitContainer:[y.splitButtonFlexContainer,!t&&!n&&[{selectors:(v={},v[".".concat(Si," &:focus, .").concat(Si," &:focus:hover")]=y.rootFocused,v)}]],screenReaderText:[E.screenReaderText,y.screenReaderText,axe,{visibility:"hidden"}]})}),Aie=function(e){var t=e.theme,r=e.disabled,n=e.expanded,o=e.checked,i=e.isAnchorLink,s=e.knownIcon,a=e.itemClassName,u=e.dividerClassName,l=e.iconClassName,c=e.subMenuClassName,f=e.primaryDisabled,d=e.className;return b2e(t,r,n,o,i,s,a,u,l,c,f,d)},Ob=vc(h2e,Aie,void 0,{scope:"ContextualMenuItem"}),KL=function(e){pc(t,e);function t(r){var n=e.call(this,r)||this;return n._onItemMouseEnter=function(o){var i=n.props,s=i.item,a=i.onItemMouseEnter;a&&a(s,o,o.currentTarget)},n._onItemClick=function(o){var i=n.props,s=i.item,a=i.onItemClickBase;a&&a(s,o,o.currentTarget)},n._onItemMouseLeave=function(o){var i=n.props,s=i.item,a=i.onItemMouseLeave;a&&a(s,o)},n._onItemKeyDown=function(o){var i=n.props,s=i.item,a=i.onItemKeyDown;a&&a(s,o)},n._onItemMouseMove=function(o){var i=n.props,s=i.item,a=i.onItemMouseMove;a&&a(s,o,o.currentTarget)},n._getSubmenuTarget=function(){},GT(n),n}return t.prototype.shouldComponentUpdate=function(r){return!V6(r,this.props)},t}(k.Component),_2e="ktp",Xq="-",E2e="data-ktp-target",S2e="data-ktp-execute-target",w2e="ktp-layer-id",Cl;(function(e){e.KEYTIP_ADDED="keytipAdded",e.KEYTIP_REMOVED="keytipRemoved",e.KEYTIP_UPDATED="keytipUpdated",e.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",e.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",e.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",e.ENTER_KEYTIP_MODE="enterKeytipMode",e.EXIT_KEYTIP_MODE="exitKeytipMode"})(Cl||(Cl={}));var k2e=function(){function e(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return e.getInstance=function(){return this._instance},e.prototype.init=function(t){this.delayUpdatingKeytipChange=t},e.prototype.register=function(t,r){r===void 0&&(r=!1);var n=t;r||(n=this.addParentOverflow(t),this.sequenceMapping[n.keySequences.toString()]=n);var o=this._getUniqueKtp(n);if(r?this.persistedKeytips[o.uniqueID]=o:this.keytips[o.uniqueID]=o,this.inKeytipMode||!this.delayUpdatingKeytipChange){var i=r?Cl.PERSISTED_KEYTIP_ADDED:Cl.KEYTIP_ADDED;bd.raise(this,i,{keytip:n,uniqueID:o.uniqueID})}return o.uniqueID},e.prototype.update=function(t,r){var n=this.addParentOverflow(t),o=this._getUniqueKtp(n,r),i=this.keytips[r];i&&(o.keytip.visible=i.keytip.visible,this.keytips[r]=o,delete this.sequenceMapping[i.keytip.keySequences.toString()],this.sequenceMapping[o.keytip.keySequences.toString()]=o.keytip,(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&bd.raise(this,Cl.KEYTIP_UPDATED,{keytip:o.keytip,uniqueID:o.uniqueID}))},e.prototype.unregister=function(t,r,n){n===void 0&&(n=!1),n?delete this.persistedKeytips[r]:delete this.keytips[r],!n&&delete this.sequenceMapping[t.keySequences.toString()];var o=n?Cl.PERSISTED_KEYTIP_REMOVED:Cl.KEYTIP_REMOVED;(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&bd.raise(this,o,{keytip:t,uniqueID:r})},e.prototype.enterKeytipMode=function(){bd.raise(this,Cl.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){bd.raise(this,Cl.EXIT_KEYTIP_MODE)},e.prototype.getKeytips=function(){var t=this;return Object.keys(this.keytips).map(function(r){return t.keytips[r].keytip})},e.prototype.addParentOverflow=function(t){var r=ol([],t.keySequences,!0);if(r.pop(),r.length!==0){var n=this.sequenceMapping[r.toString()];if(n&&n.overflowSetSequence)return Ee(Ee({},t),{overflowSetSequence:n.overflowSetSequence})}return t},e.prototype.menuExecute=function(t,r){bd.raise(this,Cl.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:t,keytipSequences:r})},e.prototype._getUniqueKtp=function(t,r){return r===void 0&&(r=Hh()),{keytip:Ee({},t),uniqueID:r}},e._instance=new e,e}();function Tie(e){return e.reduce(function(t,r){return t+Xq+r.split("").join(Xq)},_2e)}function A2e(e,t){var r=t.length,n=ol([],t,!0).pop(),o=ol([],e,!0);return Jke(o,r-1,n)}function T2e(e){var t=" "+w2e;return e.length?t+" "+Tie(e):t}function x2e(e){var t=k.useRef(),r=e.keytipProps?Ee({disabled:e.disabled},e.keytipProps):void 0,n=Ql(k2e.getInstance()),o=Z6(e);yg(function(){t.current&&r&&((o==null?void 0:o.keytipProps)!==e.keytipProps||(o==null?void 0:o.disabled)!==e.disabled)&&n.update(r,t.current)}),yg(function(){return r&&(t.current=n.register(r)),function(){r&&n.unregister(r,t.current)}},[]);var i={ariaDescribedBy:void 0,keytipId:void 0};return r&&(i=I2e(n,r,e.ariaDescribedBy)),i}function I2e(e,t,r){var n=e.addParentOverflow(t),o=WT(r,T2e(n.keySequences)),i=ol([],n.keySequences,!0);n.overflowSetSequence&&(i=A2e(i,n.overflowSetSequence));var s=Tie(i);return{ariaDescribedBy:o,keytipId:s}}var GL=function(e){var t,r=e.children,n=ov(e,["children"]),o=x2e(n),i=o.keytipId,s=o.ariaDescribedBy;return r((t={},t[E2e]=i,t[S2e]=i,t["aria-describedby"]=s,t))},N2e=function(e){pc(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._anchor=k.createRef(),r._getMemoizedMenuButtonKeytipProps=ds(function(n){return Ee(Ee({},n),{hasMenu:!0})}),r._getSubmenuTarget=function(){return r._anchor.current?r._anchor.current:void 0},r._onItemClick=function(n){var o=r.props,i=o.item,s=o.onItemClick;s&&s(i,n)},r._renderAriaDescription=function(n,o){return n?k.createElement("span",{id:r._ariaDescriptionId,className:o},n):null},r}return t.prototype.render=function(){var r=this,n=this.props,o=n.item,i=n.classNames,s=n.index,a=n.focusableElementIndex,u=n.totalItemCount,l=n.hasCheckmarks,c=n.hasIcons,f=n.expandedMenuItemKey,d=n.onItemClick,h=n.openSubMenu,g=n.dismissSubMenu,v=n.dismissMenu,y=Ob;this.props.item.contextualMenuItemAs&&(y=Qu(this.props.item.contextualMenuItemAs,y)),this.props.contextualMenuItemAs&&(y=Qu(this.props.contextualMenuItemAs,y));var E=o.rel;o.target&&o.target.toLowerCase()==="_blank"&&(E=E||"nofollow noopener noreferrer");var _=bf(o),S=Ci(o,KAe),b=Vl(o),A=o.itemProps,x=o.ariaDescription,T=o.keytipProps;T&&_&&(T=this._getMemoizedMenuButtonKeytipProps(T)),x&&(this._ariaDescriptionId=Hh());var N=WT(o.ariaDescribedBy,x?this._ariaDescriptionId:void 0,S["aria-describedby"]),I={"aria-describedby":N};return k.createElement("div",null,k.createElement(GL,{keytipProps:o.keytipProps,ariaDescribedBy:N,disabled:b},function(R){return k.createElement("a",Ee({},I,S,R,{ref:r._anchor,href:o.href,target:o.target,rel:E,className:i.root,role:"menuitem","aria-haspopup":_||void 0,"aria-expanded":_?o.key===f:void 0,"aria-posinset":a+1,"aria-setsize":u,"aria-disabled":Vl(o),style:o.style,onClick:r._onItemClick,onMouseEnter:r._onItemMouseEnter,onMouseLeave:r._onItemMouseLeave,onMouseMove:r._onItemMouseMove,onKeyDown:_?r._onItemKeyDown:void 0}),k.createElement(y,Ee({componentRef:o.componentRef,item:o,classNames:i,index:s,onCheckmarkClick:l&&d?d:void 0,hasIcons:c,openSubMenu:h,dismissSubMenu:g,dismissMenu:v,getSubmenuTarget:r._getSubmenuTarget},A)),r._renderAriaDescription(x,i.screenReaderText))}))},t}(KL),C2e=function(e){pc(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._btn=k.createRef(),r._getMemoizedMenuButtonKeytipProps=ds(function(n){return Ee(Ee({},n),{hasMenu:!0})}),r._renderAriaDescription=function(n,o){return n?k.createElement("span",{id:r._ariaDescriptionId,className:o},n):null},r._getSubmenuTarget=function(){return r._btn.current?r._btn.current:void 0},r}return t.prototype.render=function(){var r=this,n=this.props,o=n.item,i=n.classNames,s=n.index,a=n.focusableElementIndex,u=n.totalItemCount,l=n.hasCheckmarks,c=n.hasIcons,f=n.contextualMenuItemAs,d=n.expandedMenuItemKey,h=n.onItemMouseDown,g=n.onItemClick,v=n.openSubMenu,y=n.dismissSubMenu,E=n.dismissMenu,_=Ob;o.contextualMenuItemAs&&(_=Qu(o.contextualMenuItemAs,_)),f&&(_=Qu(f,_));var S=Ng(o),b=S!==null,A=kie(o),x=bf(o),T=o.itemProps,N=o.ariaLabel,I=o.ariaDescription,R=Ci(o,mg);delete R.disabled;var D=o.role||A;I&&(this._ariaDescriptionId=Hh());var L=WT(o.ariaDescribedBy,I?this._ariaDescriptionId:void 0,R["aria-describedby"]),M={className:i.root,onClick:this._onItemClick,onKeyDown:x?this._onItemKeyDown:void 0,onMouseEnter:this._onItemMouseEnter,onMouseLeave:this._onItemMouseLeave,onMouseDown:function(z){return h?h(o,z):void 0},onMouseMove:this._onItemMouseMove,href:o.href,title:o.title,"aria-label":N,"aria-describedby":L,"aria-haspopup":x||void 0,"aria-expanded":x?o.key===d:void 0,"aria-posinset":a+1,"aria-setsize":u,"aria-disabled":Vl(o),"aria-checked":(D==="menuitemcheckbox"||D==="menuitemradio")&&b?!!S:void 0,"aria-selected":D==="menuitem"&&b?!!S:void 0,role:D,style:o.style},q=o.keytipProps;return q&&x&&(q=this._getMemoizedMenuButtonKeytipProps(q)),k.createElement(GL,{keytipProps:q,ariaDescribedBy:L,disabled:Vl(o)},function(z){return k.createElement("button",Ee({ref:r._btn},R,M,z),k.createElement(_,Ee({componentRef:o.componentRef,item:o,classNames:i,index:s,onCheckmarkClick:l&&g?g:void 0,hasIcons:c,openSubMenu:v,dismissSubMenu:y,dismissMenu:E,getSubmenuTarget:r._getSubmenuTarget},T)),r._renderAriaDescription(I,i.screenReaderText))})},t}(KL),R2e=function(e){var t=e.theme,r=e.getClassNames,n=e.className;if(!t)throw new Error("Theme is undefined or null.");if(r){var o=r(t);return{wrapper:[o.wrapper],divider:[o.divider]}}return{wrapper:[{display:"inline-flex",height:"100%",alignItems:"center"},n],divider:[{width:1,height:"100%",backgroundColor:t.palette.neutralTertiaryAlt}]}},O2e=gc(),xie=k.forwardRef(function(e,t){var r=e.styles,n=e.theme,o=e.getClassNames,i=e.className,s=O2e(r,{theme:n,getClassNames:o,className:i});return k.createElement("span",{className:s.wrapper,ref:t},k.createElement("span",{className:s.divider}))});xie.displayName="VerticalDividerBase";var D2e=vc(xie,R2e,void 0,{scope:"VerticalDivider"}),F2e=500,B2e=function(e){pc(t,e);function t(r){var n=e.call(this,r)||this;return n._getMemoizedMenuButtonKeytipProps=ds(function(o){return Ee(Ee({},o),{hasMenu:!0})}),n._onItemKeyDown=function(o){var i=n.props,s=i.item,a=i.onItemKeyDown;o.which===Wt.enter?(n._executeItemClick(o),o.preventDefault(),o.stopPropagation()):a&&a(s,o)},n._getSubmenuTarget=function(){return n._splitButton},n._renderAriaDescription=function(o,i){return o?k.createElement("span",{id:n._ariaDescriptionId,className:i},o):null},n._onItemMouseEnterPrimary=function(o){var i=n.props,s=i.item,a=i.onItemMouseEnter;a&&a(Ee(Ee({},s),{subMenuProps:void 0,items:void 0}),o,n._splitButton)},n._onItemMouseEnterIcon=function(o){var i=n.props,s=i.item,a=i.onItemMouseEnter;a&&a(s,o,n._splitButton)},n._onItemMouseMovePrimary=function(o){var i=n.props,s=i.item,a=i.onItemMouseMove;a&&a(Ee(Ee({},s),{subMenuProps:void 0,items:void 0}),o,n._splitButton)},n._onItemMouseMoveIcon=function(o){var i=n.props,s=i.item,a=i.onItemMouseMove;a&&a(s,o,n._splitButton)},n._onIconItemClick=function(o){var i=n.props,s=i.item,a=i.onItemClickBase;a&&a(s,o,n._splitButton?n._splitButton:o.currentTarget)},n._executeItemClick=function(o){var i=n.props,s=i.item,a=i.executeItemClick,u=i.onItemClick;if(!(s.disabled||s.isDisabled)){if(n._processingTouch&&!s.canCheck&&u)return u(s,o);a&&a(s,o)}},n._onTouchStart=function(o){n._splitButton&&!("onpointerdown"in n._splitButton)&&n._handleTouchAndPointerEvent(o)},n._onPointerDown=function(o){o.pointerType==="touch"&&(n._handleTouchAndPointerEvent(o),o.preventDefault(),o.stopImmediatePropagation())},n._async=new Cre(n),n._events=new bd(n),n._dismissLabelId=Hh(),n}return t.prototype.componentDidMount=function(){this._splitButton&&"onpointerdown"in this._splitButton&&this._events.on(this._splitButton,"pointerdown",this._onPointerDown,!0)},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.render=function(){var r=this,n,o=this.props,i=o.item,s=o.classNames,a=o.index,u=o.focusableElementIndex,l=o.totalItemCount,c=o.hasCheckmarks,f=o.hasIcons,d=o.onItemMouseLeave,h=o.expandedMenuItemKey,g=bf(i),v=i.keytipProps;v&&(v=this._getMemoizedMenuButtonKeytipProps(v));var y=i.ariaDescription;y&&(this._ariaDescriptionId=Hh());var E=(n=Ng(i))!==null&&n!==void 0?n:void 0;return k.createElement(GL,{keytipProps:v,disabled:Vl(i)},function(_){return k.createElement("div",{"data-ktp-target":_["data-ktp-target"],ref:function(S){return r._splitButton=S},role:kie(i),"aria-label":i.ariaLabel,className:s.splitContainer,"aria-disabled":Vl(i),"aria-expanded":g?i.key===h:void 0,"aria-haspopup":!0,"aria-describedby":WT(i.ariaDescribedBy,y?r._ariaDescriptionId:void 0,_["aria-describedby"]),"aria-checked":E,"aria-posinset":u+1,"aria-setsize":l,onMouseEnter:r._onItemMouseEnterPrimary,onMouseLeave:d?d.bind(r,Ee(Ee({},i),{subMenuProps:null,items:null})):void 0,onMouseMove:r._onItemMouseMovePrimary,onKeyDown:r._onItemKeyDown,onClick:r._executeItemClick,onTouchStart:r._onTouchStart,tabIndex:0,"data-is-focusable":!0,"aria-roledescription":i["aria-roledescription"]},r._renderSplitPrimaryButton(i,s,a,c,f),r._renderSplitDivider(i),r._renderSplitIconButton(i,s,a,_),r._renderAriaDescription(y,s.screenReaderText))})},t.prototype._renderSplitPrimaryButton=function(r,n,o,i,s){var a=this.props,u=a.contextualMenuItemAs,l=u===void 0?Ob:u,c=a.onItemClick,f={key:r.key,disabled:Vl(r)||r.primaryDisabled,name:r.name,text:r.text||r.name,secondaryText:r.secondaryText,className:n.splitPrimary,canCheck:r.canCheck,isChecked:r.isChecked,checked:r.checked,iconProps:r.iconProps,id:this._dismissLabelId,onRenderIcon:r.onRenderIcon,data:r.data,"data-is-focusable":!1},d=r.itemProps;return k.createElement("button",Ee({},Ci(f,mg)),k.createElement(l,Ee({"data-is-focusable":!1,item:f,classNames:n,index:o,onCheckmarkClick:i&&c?c:void 0,hasIcons:s},d)))},t.prototype._renderSplitDivider=function(r){var n=r.getSplitButtonVerticalDividerClassNames||m2e;return k.createElement(D2e,{getClassNames:n})},t.prototype._renderSplitIconButton=function(r,n,o,i){var s=this.props,a=s.onItemMouseLeave,u=s.onItemMouseDown,l=s.openSubMenu,c=s.dismissSubMenu,f=s.dismissMenu,d=Ob;this.props.item.contextualMenuItemAs&&(d=Qu(this.props.item.contextualMenuItemAs,d)),this.props.contextualMenuItemAs&&(d=Qu(this.props.contextualMenuItemAs,d));var h={onClick:this._onIconItemClick,disabled:Vl(r),className:n.splitMenu,subMenuProps:r.subMenuProps,submenuIconProps:r.submenuIconProps,split:!0,key:r.key,"aria-labelledby":this._dismissLabelId},g=Ee(Ee({},Ci(h,mg)),{onMouseEnter:this._onItemMouseEnterIcon,onMouseLeave:a?a.bind(this,r):void 0,onMouseDown:function(y){return u?u(r,y):void 0},onMouseMove:this._onItemMouseMoveIcon,"data-is-focusable":!1,"data-ktp-execute-target":i["data-ktp-execute-target"],"aria-haspopup":!0}),v=r.itemProps;return k.createElement("button",Ee({},g),k.createElement(d,Ee({componentRef:r.componentRef,item:h,classNames:n,index:o,hasIcons:!1,openSubMenu:l,dismissSubMenu:c,dismissMenu:f,getSubmenuTarget:this._getSubmenuTarget},v)))},t.prototype._handleTouchAndPointerEvent=function(r){var n=this,o=this.props.onTap;o&&o(r),this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout(function(){n._processingTouch=!1,n._lastTouchTimeoutId=void 0},F2e)},t}(KL),Cg;(function(e){e[e.small=0]="small",e[e.medium=1]="medium",e[e.large=2]="large",e[e.xLarge=3]="xLarge",e[e.xxLarge=4]="xxLarge",e[e.xxxLarge=5]="xxxLarge",e[e.unknown=999]="unknown"})(Cg||(Cg={}));var M2e=[479,639,1023,1365,1919,99999999],C2,Iie;function Nie(){var e;return(e=C2??Iie)!==null&&e!==void 0?e:Cg.large}function L2e(e){try{return e.document.documentElement.clientWidth}catch{return e.innerWidth}}function j2e(e){var t=Cg.small;if(e){try{for(;L2e(e)>M2e[t];)t++}catch{t=Nie()}Iie=t}else throw new Error("Content was rendered in a server environment without providing a default responsive mode. Call setResponsiveMode to define what the responsive mode is.");return t}var Cie=function(e,t){var r=k.useState(Nie()),n=r[0],o=r[1],i=k.useCallback(function(){var a=j2e(lo(e.current));n!==a&&o(a)},[e,n]),s=B_();return hb(s,"resize",i),k.useEffect(function(){t===void 0&&i()},[t]),t??n},z2e=k.createContext({}),H2e=gc(),$2e=gc(),P2e={items:[],shouldFocusOnMount:!0,gapSpace:0,directionalHint:mo.bottomAutoEdge,beakWidth:16};function Qq(e){for(var t=0,r=0,n=e;r0){var Nt=0;return k.createElement("li",{role:"presentation",key:Z.key||Me.key||"section-".concat(H)},k.createElement("div",Ee({},ue),k.createElement("ul",{className:Q.list,role:"presentation"},Z.topDivider&&Ke(H,Y,!0,!0),ie&&Qe(ie,Me.key||H,Y,Me.title),Z.items.map(function(Et,yt){var qt=ve(Et,yt,Nt,Qq(Z.items),$,F,Q);if(Et.itemType!==wi.Divider&&Et.itemType!==wi.Header){var Hr=Et.customOnRenderListLength?Et.customOnRenderListLength:1;Nt+=Hr}return qt}),Z.bottomDivider&&Ke(H,Y,!1,!0))))}}},Qe=function(Me,Y,Q,H){return k.createElement("li",{role:"presentation",title:H,key:Y,className:Q.item},Me)},Ke=function(Me,Y,Q,H){return H||Me>0?k.createElement("li",{role:"separator",key:"separator-"+Me+(Q===void 0?"":Q?"-top":"-bottom"),className:Y.divider,"aria-hidden":"true"}):null},st=function(Me,Y,Q,H,$,F,Z){if(Me.onRender)return Me.onRender(Ee({"aria-posinset":H+1,"aria-setsize":$},Me),u);var ie=o.contextualMenuItemAs,ue={item:Me,classNames:Y,index:Q,focusableElementIndex:H,totalItemCount:$,hasCheckmarks:F,hasIcons:Z,contextualMenuItemAs:ie,onItemMouseEnter:X,onItemMouseLeave:ee,onItemMouseMove:J,onItemMouseDown:eNe,executeItemClick:_e,onItemKeyDown:K,expandedMenuItemKey:g,openSubMenu:v,dismissSubMenu:E,dismissMenu:u};if(Me.href){var ne=N2e;return Me.contextualMenuItemWrapperAs&&(ne=Qu(Me.contextualMenuItemWrapperAs,ne)),k.createElement(ne,Ee({},ue,{onItemClick:pe}))}if(Me.split&&bf(Me)){var ye=B2e;return Me.contextualMenuItemWrapperAs&&(ye=Qu(Me.contextualMenuItemWrapperAs,ye)),k.createElement(ye,Ee({},ue,{onItemClick:se,onItemClickBase:Te,onTap:R}))}var qe=C2e;return Me.contextualMenuItemWrapperAs&&(qe=Qu(Me.contextualMenuItemWrapperAs,qe)),k.createElement(qe,Ee({},ue,{onItemClick:se,onItemClickBase:Te}))},He=function(Me,Y,Q,H,$,F){var Z=Ob;Me.contextualMenuItemAs&&(Z=Qu(Me.contextualMenuItemAs,Z)),o.contextualMenuItemAs&&(Z=Qu(o.contextualMenuItemAs,Z));var ie=Me.itemProps,ue=Me.id,ne=ie&&Ci(ie,iv);return k.createElement("div",Ee({id:ue,className:Q.header},ne,{style:Me.style}),k.createElement(Z,Ee({item:Me,classNames:Y,index:H,onCheckmarkClick:$?se:void 0,hasIcons:F},ie)))},Ne=o.isBeakVisible,$e=o.items,Dt=o.labelElementId,$t=o.id,Gt=o.className,_t=o.beakWidth,tt=o.directionalHint,rt=o.directionalHintForRTL,ur=o.alignTargetEdge,he=o.gapSpace,le=o.coverTarget,ae=o.ariaLabel,ge=o.doNotLayer,Re=o.target,je=o.bounds,ke=o.useTargetWidth,Ce=o.useTargetAsMinWidth,Pe=o.directionalHintFixed,ut=o.shouldFocusOnMount,vt=o.shouldFocusOnContainer,xt=o.title,fr=o.styles,xr=o.theme,Ft=o.calloutProps,Pr=o.onRenderSubMenu,cn=Pr===void 0?Jq:Pr,Jt=o.onRenderMenuList,It=Jt===void 0?function(Me,Y){return me(Me,Wr)}:Jt,qr=o.focusZoneProps,Ir=o.getMenuClassNames,Wr=Ir?Ir(xr,Gt):H2e(fr,{theme:xr,className:Gt}),pr=Rt($e);function Rt(Me){for(var Y=0,Q=Me;Y0){var po=Qq($e),Fa=Wr.subComponentStyles?Wr.subComponentStyles.callout:void 0;return k.createElement(z2e.Consumer,null,function(Me){return k.createElement(_ie,Ee({styles:Fa,onRestoreFocus:d},Ft,{target:Re||Me.target,isBeakVisible:Ne,beakWidth:_t,directionalHint:tt,directionalHintForRTL:rt,gapSpace:he,coverTarget:le,doNotLayer:ge,className:s1("ms-ContextualMenu-Callout",Ft&&Ft.className),setInitialFocus:ut,onDismiss:o.onDismiss||Me.onDismiss,onScroll:T,bounds:je,directionalHintFixed:Pe,alignTargetEdge:ur,hidden:o.hidden||Me.hidden,ref:t}),k.createElement("div",{style:xo,ref:i,id:$t,className:Wr.container,tabIndex:vt?0:-1,onKeyDown:P,onKeyUp:B,onFocusCapture:A,"aria-label":ae,"aria-labelledby":Dt,role:"menu"},xt&&k.createElement("div",{className:Wr.title}," ",xt," "),$e&&$e.length?Ae(It({ariaLabel:ae,items:$e,totalItemCount:po,hasCheckmarks:Ue,hasIcons:pr,defaultMenuItemRenderer:function(Y){return we(Y,Wr)},labelElementId:Dt},function(Y,Q){return me(Y,Wr)}),ft):null,Kr&&cn(Kr,Jq)),k.createElement(JAe,null))})}else return null}),function(e,t){return!t.shouldUpdateWhenHidden&&e.hidden&&t.hidden?!0:V6(e,t)});Fie.displayName="ContextualMenuBase";function Zq(e){return e.which===Wt.alt||e.key==="Meta"}function eNe(e,t){var r;(r=e.onMouseDown)===null||r===void 0||r.call(e,e,t)}function Jq(e,t){throw Error("ContextualMenuBase: onRenderSubMenu callback is null or undefined. Please ensure to set `onRenderSubMenu` property either manually or with `styled` helper.")}function Bie(e,t){for(var r=0,n=t;r=(B||Cg.small)&&k.createElement(bie,Ee({ref:me},xt),k.createElement(J6,Ee({role:Pe?"alertdialog":"dialog",ariaLabelledBy:D,ariaDescribedBy:M,onDismiss:T,shouldRestoreFocus:!_,enableAriaHiddenSiblings:J,"aria-modal":!K},ee),k.createElement("div",{className:vt.root,role:K?void 0:"document"},!K&&k.createElement(lNe,Ee({"aria-hidden":!0,isDarkThemed:x,onClick:S?void 0:T,allowTouchBodyScroll:u},I)),U?k.createElement(fNe,{handleSelector:U.dragHandleSelector||"#".concat(ve),preventDragSelector:"button",onStart:cn,onDragChange:Jt,onStop:It,position:_t},pr):pr)))||null});$ie.displayName="Modal";var Pie=vc($ie,oNe,void 0,{scope:"Modal",fields:["theme","styles","enableAriaHiddenSiblings"]});Pie.displayName="Modal";function vNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons"',src:"url('".concat(e,"fabric-icons-a13498cf.woff') format('woff')")},icons:{GlobalNavButton:"",ChevronDown:"",ChevronUp:"",Edit:"",Add:"",Cancel:"",More:"",Settings:"",Mail:"",Filter:"",Search:"",Share:"",BlockedSite:"",FavoriteStar:"",FavoriteStarFill:"",CheckMark:"",Delete:"",ChevronLeft:"",ChevronRight:"",Calendar:"",Megaphone:"",Undo:"",Flag:"",Page:"",Pinned:"",View:"",Clear:"",Download:"",Upload:"",Folder:"",Sort:"",AlignRight:"",AlignLeft:"",Tag:"",AddFriend:"",Info:"",SortLines:"",List:"",CircleRing:"",Heart:"",HeartFill:"",Tiles:"",Embed:"",Glimmer:"",Ascending:"",Descending:"",SortUp:"",SortDown:"",SyncToPC:"",LargeGrid:"",SkypeCheck:"",SkypeClock:"",SkypeMinus:"",ClearFilter:"",Flow:"",StatusCircleCheckmark:"",MoreVertical:""}};wo(r,t)}function mNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-0"',src:"url('".concat(e,"fabric-icons-0-467ee27f.woff') format('woff')")},icons:{PageLink:"",CommentSolid:"",ChangeEntitlements:"",Installation:"",WebAppBuilderModule:"",WebAppBuilderFragment:"",WebAppBuilderSlot:"",BullseyeTargetEdit:"",WebAppBuilderFragmentCreate:"",PageData:"",PageHeaderEdit:"",ProductList:"",UnpublishContent:"",DependencyAdd:"",DependencyRemove:"",EntitlementPolicy:"",EntitlementRedemption:"",SchoolDataSyncLogo:"",PinSolid12:"",PinSolidOff12:"",AddLink:"",SharepointAppIcon16:"",DataflowsLink:"",TimePicker:"",UserWarning:"",ComplianceAudit:"",InternetSharing:"",Brightness:"",MapPin:"",Airplane:"",Tablet:"",QuickNote:"",Video:"",People:"",Phone:"",Pin:"",Shop:"",Stop:"",Link:"",AllApps:"",Zoom:"",ZoomOut:"",Microphone:"",Camera:"",Attach:"",Send:"",FavoriteList:"",PageSolid:"",Forward:"",Back:"",Refresh:"",Lock:"",ReportHacked:"",EMI:"",MiniLink:"",Blocked:"",ReadingMode:"",Favicon:"",Remove:"",Checkbox:"",CheckboxComposite:"",CheckboxFill:"",CheckboxIndeterminate:"",CheckboxCompositeReversed:"",BackToWindow:"",FullScreen:"",Print:"",Up:"",Down:"",OEM:"",Save:"",ReturnKey:"",Cloud:"",Flashlight:"",CommandPrompt:"",Sad:"",RealEstate:"",SIPMove:"",EraseTool:"",GripperTool:"",Dialpad:"",PageLeft:"",PageRight:"",MultiSelect:"",KeyboardClassic:"",Play:"",Pause:"",InkingTool:"",Emoji2:"",GripperBarHorizontal:"",System:"",Personalize:"",SearchAndApps:"",Globe:"",EaseOfAccess:"",ContactInfo:"",Unpin:"",Contact:"",Memo:"",IncomingCall:""}};wo(r,t)}function yNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-1"',src:"url('".concat(e,"fabric-icons-1-4d521695.woff') format('woff')")},icons:{Paste:"",WindowsLogo:"",Error:"",GripperBarVertical:"",Unlock:"",Slideshow:"",Trim:"",AutoEnhanceOn:"",AutoEnhanceOff:"",Color:"",SaveAs:"",Light:"",Filters:"",AspectRatio:"",Contrast:"",Redo:"",Crop:"",PhotoCollection:"",Album:"",Rotate:"",PanoIndicator:"",Translate:"",RedEye:"",ViewOriginal:"",ThumbnailView:"",Package:"",Telemarketer:"",Warning:"",Financial:"",Education:"",ShoppingCart:"",Train:"",Move:"",TouchPointer:"",Merge:"",TurnRight:"",Ferry:"",Highlight:"",PowerButton:"",Tab:"",Admin:"",TVMonitor:"",Speakers:"",Game:"",HorizontalTabKey:"",UnstackSelected:"",StackIndicator:"",Nav2DMapView:"",StreetsideSplitMinimize:"",Car:"",Bus:"",EatDrink:"",SeeDo:"",LocationCircle:"",Home:"",SwitcherStartEnd:"",ParkingLocation:"",IncidentTriangle:"",Touch:"",MapDirections:"",CaretHollow:"",CaretSolid:"",History:"",Location:"",MapLayers:"",SearchNearby:"",Work:"",Recent:"",Hotel:"",Bank:"",LocationDot:"",Dictionary:"",ChromeBack:"",FolderOpen:"",PinnedFill:"",RevToggleKey:"",USB:"",Previous:"",Next:"",Sync:"",Help:"",Emoji:"",MailForward:"",ClosePane:"",OpenPane:"",PreviewLink:"",ZoomIn:"",Bookmarks:"",Document:"",ProtectedDocument:"",OpenInNewWindow:"",MailFill:"",ViewAll:"",Switch:"",Rename:"",Go:"",Remote:"",SelectAll:"",Orientation:"",Import:""}};wo(r,t)}function bNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-2"',src:"url('".concat(e,"fabric-icons-2-63c99abf.woff') format('woff')")},icons:{Picture:"",ChromeClose:"",ShowResults:"",Message:"",CalendarDay:"",CalendarWeek:"",MailReplyAll:"",Read:"",Cut:"",PaymentCard:"",Copy:"",Important:"",MailReply:"",GotoToday:"",Font:"",FontColor:"",FolderFill:"",Permissions:"",DisableUpdates:"",Unfavorite:"",Italic:"",Underline:"",Bold:"",MoveToFolder:"",Dislike:"",Like:"",AlignCenter:"",OpenFile:"",ClearSelection:"",FontDecrease:"",FontIncrease:"",FontSize:"",CellPhone:"",RepeatOne:"",RepeatAll:"",Calculator:"",Library:"",PostUpdate:"",NewFolder:"",CalendarReply:"",UnsyncFolder:"",SyncFolder:"",BlockContact:"",Accept:"",BulletedList:"",Preview:"",News:"",Chat:"",Group:"",World:"",Comment:"",DockLeft:"",DockRight:"",Repair:"",Accounts:"",Street:"",RadioBullet:"",Stopwatch:"",Clock:"",WorldClock:"",AlarmClock:"",Photo:"",ActionCenter:"",Hospital:"",Timer:"",FullCircleMask:"",LocationFill:"",ChromeMinimize:"",ChromeRestore:"",Annotation:"",Fingerprint:"",Handwriting:"",ChromeFullScreen:"",Completed:"",Label:"",FlickDown:"",FlickUp:"",FlickLeft:"",FlickRight:"",MiniExpand:"",MiniContract:"",Streaming:"",MusicInCollection:"",OneDriveLogo:"",CompassNW:"",Code:"",LightningBolt:"",CalculatorMultiply:"",CalculatorAddition:"",CalculatorSubtract:"",CalculatorPercentage:"",CalculatorEqualTo:"",PrintfaxPrinterFile:"",StorageOptical:"",Communications:"",Headset:"",Health:"",Webcam2:"",FrontCamera:"",ChevronUpSmall:""}};wo(r,t)}function _Ne(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-3"',src:"url('".concat(e,"fabric-icons-3-089e217a.woff') format('woff')")},icons:{ChevronDownSmall:"",ChevronLeftSmall:"",ChevronRightSmall:"",ChevronUpMed:"",ChevronDownMed:"",ChevronLeftMed:"",ChevronRightMed:"",Devices2:"",PC1:"",PresenceChickletVideo:"",Reply:"",HalfAlpha:"",ConstructionCone:"",DoubleChevronLeftMed:"",Volume0:"",Volume1:"",Volume2:"",Volume3:"",Chart:"",Robot:"",Manufacturing:"",LockSolid:"",FitPage:"",FitWidth:"",BidiLtr:"",BidiRtl:"",RightDoubleQuote:"",Sunny:"",CloudWeather:"",Cloudy:"",PartlyCloudyDay:"",PartlyCloudyNight:"",ClearNight:"",RainShowersDay:"",Rain:"",Thunderstorms:"",RainSnow:"",Snow:"",BlowingSnow:"",Frigid:"",Fog:"",Squalls:"",Duststorm:"",Unknown:"",Precipitation:"",Ribbon:"",AreaChart:"",Assign:"",FlowChart:"",CheckList:"",Diagnostic:"",Generate:"",LineChart:"",Equalizer:"",BarChartHorizontal:"",BarChartVertical:"",Freezing:"",FunnelChart:"",Processing:"",Quantity:"",ReportDocument:"",StackColumnChart:"",SnowShowerDay:"",HailDay:"",WorkFlow:"",HourGlass:"",StoreLogoMed20:"",TimeSheet:"",TriangleSolid:"",UpgradeAnalysis:"",VideoSolid:"",RainShowersNight:"",SnowShowerNight:"",Teamwork:"",HailNight:"",PeopleAdd:"",Glasses:"",DateTime2:"",Shield:"",Header1:"",PageAdd:"",NumberedList:"",PowerBILogo:"",Info2:"",MusicInCollectionFill:"",Asterisk:"",ErrorBadge:"",CircleFill:"",Record2:"",AllAppsMirrored:"",BookmarksMirrored:"",BulletedListMirrored:"",CaretHollowMirrored:"",CaretSolidMirrored:"",ChromeBackMirrored:"",ClearSelectionMirrored:"",ClosePaneMirrored:"",DockLeftMirrored:"",DoubleChevronLeftMedMirrored:"",GoMirrored:""}};wo(r,t)}function ENe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-4"',src:"url('".concat(e,"fabric-icons-4-a656cc0a.woff') format('woff')")},icons:{HelpMirrored:"",ImportMirrored:"",ImportAllMirrored:"",ListMirrored:"",MailForwardMirrored:"",MailReplyMirrored:"",MailReplyAllMirrored:"",MiniContractMirrored:"",MiniExpandMirrored:"",OpenPaneMirrored:"",ParkingLocationMirrored:"",SendMirrored:"",ShowResultsMirrored:"",ThumbnailViewMirrored:"",Media:"",Devices3:"",Focus:"",VideoLightOff:"",Lightbulb:"",StatusTriangle:"",VolumeDisabled:"",Puzzle:"",EmojiNeutral:"",EmojiDisappointed:"",HomeSolid:"",Ringer:"",PDF:"",HeartBroken:"",StoreLogo16:"",MultiSelectMirrored:"",Broom:"",AddToShoppingList:"",Cocktails:"",Wines:"",Articles:"",Cycling:"",DietPlanNotebook:"",Pill:"",ExerciseTracker:"",HandsFree:"",Medical:"",Running:"",Weights:"",Trackers:"",AddNotes:"",AllCurrency:"",BarChart4:"",CirclePlus:"",Coffee:"",Cotton:"",Market:"",Money:"",PieDouble:"",PieSingle:"",RemoveFilter:"",Savings:"",Sell:"",StockDown:"",StockUp:"",Lamp:"",Source:"",MSNVideos:"",Cricket:"",Golf:"",Baseball:"",Soccer:"",MoreSports:"",AutoRacing:"",CollegeHoops:"",CollegeFootball:"",ProFootball:"",ProHockey:"",Rugby:"",SubstitutionsIn:"",Tennis:"",Arrivals:"",Design:"",Website:"",Drop:"",HistoricalWeather:"",SkiResorts:"",Snowflake:"",BusSolid:"",FerrySolid:"",AirplaneSolid:"",TrainSolid:"",Ticket:"",WifiWarning4:"",Devices4:"",AzureLogo:"",BingLogo:"",MSNLogo:"",OutlookLogoInverse:"",OfficeLogo:"",SkypeLogo:"",Door:"",EditMirrored:"",GiftCard:"",DoubleBookmark:"",StatusErrorFull:""}};wo(r,t)}function SNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-5"',src:"url('".concat(e,"fabric-icons-5-f95ba260.woff') format('woff')")},icons:{Certificate:"",FastForward:"",Rewind:"",Photo2:"",OpenSource:"",Movers:"",CloudDownload:"",Family:"",WindDirection:"",Bug:"",SiteScan:"",BrowserScreenShot:"",F12DevTools:"",CSS:"",JS:"",DeliveryTruck:"",ReminderPerson:"",ReminderGroup:"",ReminderTime:"",TabletMode:"",Umbrella:"",NetworkTower:"",CityNext:"",CityNext2:"",Section:"",OneNoteLogoInverse:"",ToggleFilled:"",ToggleBorder:"",SliderThumb:"",ToggleThumb:"",Documentation:"",Badge:"",Giftbox:"",VisualStudioLogo:"",HomeGroup:"",ExcelLogoInverse:"",WordLogoInverse:"",PowerPointLogoInverse:"",Cafe:"",SpeedHigh:"",Commitments:"",ThisPC:"",MusicNote:"",MicOff:"",PlaybackRate1x:"",EdgeLogo:"",CompletedSolid:"",AlbumRemove:"",MessageFill:"",TabletSelected:"",MobileSelected:"",LaptopSelected:"",TVMonitorSelected:"",DeveloperTools:"",Shapes:"",InsertTextBox:"",LowerBrightness:"",WebComponents:"",OfflineStorage:"",DOM:"",CloudUpload:"",ScrollUpDown:"",DateTime:"",Event:"",Cake:"",Org:"",PartyLeader:"",DRM:"",CloudAdd:"",AppIconDefault:"",Photo2Add:"",Photo2Remove:"",Calories:"",POI:"",AddTo:"",RadioBtnOff:"",RadioBtnOn:"",ExploreContent:"",Product:"",ProgressLoopInner:"",ProgressLoopOuter:"",Blocked2:"",FangBody:"",Toolbox:"",PageHeader:"",ChatInviteFriend:"",Brush:"",Shirt:"",Crown:"",Diamond:"",ScaleUp:"",QRCode:"",Feedback:"",SharepointLogoInverse:"",YammerLogo:"",Hide:"",Uneditable:"",ReturnToSession:"",OpenFolderHorizontal:"",CalendarMirrored:""}};wo(r,t)}function wNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-6"',src:"url('".concat(e,"fabric-icons-6-ef6fd590.woff') format('woff')")},icons:{SwayLogoInverse:"",OutOfOffice:"",Trophy:"",ReopenPages:"",EmojiTabSymbols:"",AADLogo:"",AccessLogo:"",AdminALogoInverse32:"",AdminCLogoInverse32:"",AdminDLogoInverse32:"",AdminELogoInverse32:"",AdminLLogoInverse32:"",AdminMLogoInverse32:"",AdminOLogoInverse32:"",AdminPLogoInverse32:"",AdminSLogoInverse32:"",AdminYLogoInverse32:"",DelveLogoInverse:"",ExchangeLogoInverse:"",LyncLogo:"",OfficeVideoLogoInverse:"",SocialListeningLogo:"",VisioLogoInverse:"",Balloons:"",Cat:"",MailAlert:"",MailCheck:"",MailLowImportance:"",MailPause:"",MailRepeat:"",SecurityGroup:"",Table:"",VoicemailForward:"",VoicemailReply:"",Waffle:"",RemoveEvent:"",EventInfo:"",ForwardEvent:"",WipePhone:"",AddOnlineMeeting:"",JoinOnlineMeeting:"",RemoveLink:"",PeopleBlock:"",PeopleRepeat:"",PeopleAlert:"",PeoplePause:"",TransferCall:"",AddPhone:"",UnknownCall:"",NoteReply:"",NoteForward:"",NotePinned:"",RemoveOccurrence:"",Timeline:"",EditNote:"",CircleHalfFull:"",Room:"",Unsubscribe:"",Subscribe:"",HardDrive:"",RecurringTask:"",TaskManager:"",TaskManagerMirrored:"",Combine:"",Split:"",DoubleChevronUp:"",DoubleChevronLeft:"",DoubleChevronRight:"",TextBox:"",TextField:"",NumberField:"",Dropdown:"",PenWorkspace:"",BookingsLogo:"",ClassNotebookLogoInverse:"",DelveAnalyticsLogo:"",DocsLogoInverse:"",Dynamics365Logo:"",DynamicSMBLogo:"",OfficeAssistantLogo:"",OfficeStoreLogo:"",OneNoteEduLogoInverse:"",PlannerLogo:"",PowerApps:"",Suitcase:"",ProjectLogoInverse:"",CaretLeft8:"",CaretRight8:"",CaretUp8:"",CaretDown8:"",CaretLeftSolid8:"",CaretRightSolid8:"",CaretUpSolid8:"",CaretDownSolid8:"",ClearFormatting:"",Superscript:"",Subscript:"",Strikethrough:"",Export:"",ExportMirrored:""}};wo(r,t)}function kNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-7"',src:"url('".concat(e,"fabric-icons-7-2b97bb99.woff') format('woff')")},icons:{SingleBookmark:"",SingleBookmarkSolid:"",DoubleChevronDown:"",FollowUser:"",ReplyAll:"",WorkforceManagement:"",RecruitmentManagement:"",Questionnaire:"",ManagerSelfService:"",ProductionFloorManagement:"",ProductRelease:"",ProductVariant:"",ReplyMirrored:"",ReplyAllMirrored:"",Medal:"",AddGroup:"",QuestionnaireMirrored:"",CloudImportExport:"",TemporaryUser:"",CaretSolid16:"",GroupedDescending:"",GroupedAscending:"",AwayStatus:"",MyMoviesTV:"",GenericScan:"",AustralianRules:"",WifiEthernet:"",TrackersMirrored:"",DateTimeMirrored:"",StopSolid:"",DoubleChevronUp12:"",DoubleChevronDown12:"",DoubleChevronLeft12:"",DoubleChevronRight12:"",CalendarAgenda:"",ConnectVirtualMachine:"",AddEvent:"",AssetLibrary:"",DataConnectionLibrary:"",DocLibrary:"",FormLibrary:"",FormLibraryMirrored:"",ReportLibrary:"",ReportLibraryMirrored:"",ContactCard:"",CustomList:"",CustomListMirrored:"",IssueTracking:"",IssueTrackingMirrored:"",PictureLibrary:"",OfficeAddinsLogo:"",OfflineOneDriveParachute:"",OfflineOneDriveParachuteDisabled:"",TriangleSolidUp12:"",TriangleSolidDown12:"",TriangleSolidLeft12:"",TriangleSolidRight12:"",TriangleUp12:"",TriangleDown12:"",TriangleLeft12:"",TriangleRight12:"",ArrowUpRight8:"",ArrowDownRight8:"",DocumentSet:"",GoToDashboard:"",DelveAnalytics:"",ArrowUpRightMirrored8:"",ArrowDownRightMirrored8:"",CompanyDirectory:"",OpenEnrollment:"",CompanyDirectoryMirrored:"",OneDriveAdd:"",ProfileSearch:"",Header2:"",Header3:"",Header4:"",RingerSolid:"",Eyedropper:"",MarketDown:"",CalendarWorkWeek:"",SidePanel:"",GlobeFavorite:"",CaretTopLeftSolid8:"",CaretTopRightSolid8:"",ViewAll2:"",DocumentReply:"",PlayerSettings:"",ReceiptForward:"",ReceiptReply:"",ReceiptCheck:"",Fax:"",RecurringEvent:"",ReplyAlt:"",ReplyAllAlt:"",EditStyle:"",EditMail:"",Lifesaver:"",LifesaverLock:"",InboxCheck:"",FolderSearch:""}};wo(r,t)}function ANe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-8"',src:"url('".concat(e,"fabric-icons-8-6fdf1528.woff') format('woff')")},icons:{CollapseMenu:"",ExpandMenu:"",Boards:"",SunAdd:"",SunQuestionMark:"",LandscapeOrientation:"",DocumentSearch:"",PublicCalendar:"",PublicContactCard:"",PublicEmail:"",PublicFolder:"",WordDocument:"",PowerPointDocument:"",ExcelDocument:"",GroupedList:"",ClassroomLogo:"",Sections:"",EditPhoto:"",Starburst:"",ShareiOS:"",AirTickets:"",PencilReply:"",Tiles2:"",SkypeCircleCheck:"",SkypeCircleClock:"",SkypeCircleMinus:"",SkypeMessage:"",ClosedCaption:"",ATPLogo:"",OfficeFormsLogoInverse:"",RecycleBin:"",EmptyRecycleBin:"",Hide2:"",Breadcrumb:"",BirthdayCake:"",TimeEntry:"",CRMProcesses:"",PageEdit:"",PageArrowRight:"",PageRemove:"",Database:"",DataManagementSettings:"",CRMServices:"",EditContact:"",ConnectContacts:"",AppIconDefaultAdd:"",AppIconDefaultList:"",ActivateOrders:"",DeactivateOrders:"",ProductCatalog:"",ScatterChart:"",AccountActivity:"",DocumentManagement:"",CRMReport:"",KnowledgeArticle:"",Relationship:"",HomeVerify:"",ZipFolder:"",SurveyQuestions:"",TextDocument:"",TextDocumentShared:"",PageCheckedOut:"",PageShared:"",SaveAndClose:"",Script:"",Archive:"",ActivityFeed:"",Compare:"",EventDate:"",ArrowUpRight:"",CaretRight:"",SetAction:"",ChatBot:"",CaretSolidLeft:"",CaretSolidDown:"",CaretSolidRight:"",CaretSolidUp:"",PowerAppsLogo:"",PowerApps2Logo:"",SearchIssue:"",SearchIssueMirrored:"",FabricAssetLibrary:"",FabricDataConnectionLibrary:"",FabricDocLibrary:"",FabricFormLibrary:"",FabricFormLibraryMirrored:"",FabricReportLibrary:"",FabricReportLibraryMirrored:"",FabricPublicFolder:"",FabricFolderSearch:"",FabricMovetoFolder:"",FabricUnsyncFolder:"",FabricSyncFolder:"",FabricOpenFolderHorizontal:"",FabricFolder:"",FabricFolderFill:"",FabricNewFolder:"",FabricPictureLibrary:"",PhotoVideoMedia:"",AddFavorite:""}};wo(r,t)}function TNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-9"',src:"url('".concat(e,"fabric-icons-9-c6162b42.woff') format('woff')")},icons:{AddFavoriteFill:"",BufferTimeBefore:"",BufferTimeAfter:"",BufferTimeBoth:"",PublishContent:"",ClipboardList:"",ClipboardListMirrored:"",CannedChat:"",SkypeForBusinessLogo:"",TabCenter:"",PageCheckedin:"",PageList:"",ReadOutLoud:"",CaretBottomLeftSolid8:"",CaretBottomRightSolid8:"",FolderHorizontal:"",MicrosoftStaffhubLogo:"",GiftboxOpen:"",StatusCircleOuter:"",StatusCircleInner:"",StatusCircleRing:"",StatusTriangleOuter:"",StatusTriangleInner:"",StatusTriangleExclamation:"",StatusCircleExclamation:"",StatusCircleErrorX:"",StatusCircleInfo:"",StatusCircleBlock:"",StatusCircleBlock2:"",StatusCircleQuestionMark:"",StatusCircleSync:"",Toll:"",ExploreContentSingle:"",CollapseContent:"",CollapseContentSingle:"",InfoSolid:"",GroupList:"",ProgressRingDots:"",CaloriesAdd:"",BranchFork:"",MuteChat:"",AddHome:"",AddWork:"",MobileReport:"",ScaleVolume:"",HardDriveGroup:"",FastMode:"",ToggleLeft:"",ToggleRight:"",TriangleShape:"",RectangleShape:"",CubeShape:"",Trophy2:"",BucketColor:"",BucketColorFill:"",Taskboard:"",SingleColumn:"",DoubleColumn:"",TripleColumn:"",ColumnLeftTwoThirds:"",ColumnRightTwoThirds:"",AccessLogoFill:"",AnalyticsLogo:"",AnalyticsQuery:"",NewAnalyticsQuery:"",AnalyticsReport:"",WordLogo:"",WordLogoFill:"",ExcelLogo:"",ExcelLogoFill:"",OneNoteLogo:"",OneNoteLogoFill:"",OutlookLogo:"",OutlookLogoFill:"",PowerPointLogo:"",PowerPointLogoFill:"",PublisherLogo:"",PublisherLogoFill:"",ScheduleEventAction:"",FlameSolid:"",ServerProcesses:"",Server:"",SaveAll:"",LinkedInLogo:"",Decimals:"",SidePanelMirrored:"",ProtectRestrict:"",Blog:"",UnknownMirrored:"",PublicContactCardMirrored:"",GridViewSmall:"",GridViewMedium:"",GridViewLarge:"",Step:"",StepInsert:"",StepShared:"",StepSharedAdd:"",StepSharedInsert:"",ViewDashboard:"",ViewList:""}};wo(r,t)}function xNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-10"',src:"url('".concat(e,"fabric-icons-10-c4ded8e4.woff') format('woff')")},icons:{ViewListGroup:"",ViewListTree:"",TriggerAuto:"",TriggerUser:"",PivotChart:"",StackedBarChart:"",StackedLineChart:"",BuildQueue:"",BuildQueueNew:"",UserFollowed:"",ContactLink:"",Stack:"",Bullseye:"",VennDiagram:"",FiveTileGrid:"",FocalPoint:"",Insert:"",RingerRemove:"",TeamsLogoInverse:"",TeamsLogo:"",TeamsLogoFill:"",SkypeForBusinessLogoFill:"",SharepointLogo:"",SharepointLogoFill:"",DelveLogo:"",DelveLogoFill:"",OfficeVideoLogo:"",OfficeVideoLogoFill:"",ExchangeLogo:"",ExchangeLogoFill:"",Signin:"",DocumentApproval:"",CloneToDesktop:"",InstallToDrive:"",Blur:"",Build:"",ProcessMetaTask:"",BranchFork2:"",BranchLocked:"",BranchCommit:"",BranchCompare:"",BranchMerge:"",BranchPullRequest:"",BranchSearch:"",BranchShelveset:"",RawSource:"",MergeDuplicate:"",RowsGroup:"",RowsChild:"",Deploy:"",Redeploy:"",ServerEnviroment:"",VisioDiagram:"",HighlightMappedShapes:"",TextCallout:"",IconSetsFlag:"",VisioLogo:"",VisioLogoFill:"",VisioDocument:"",TimelineProgress:"",TimelineDelivery:"",Backlog:"",TeamFavorite:"",TaskGroup:"",TaskGroupMirrored:"",ScopeTemplate:"",AssessmentGroupTemplate:"",NewTeamProject:"",CommentAdd:"",CommentNext:"",CommentPrevious:"",ShopServer:"",LocaleLanguage:"",QueryList:"",UserSync:"",UserPause:"",StreamingOff:"",ArrowTallUpLeft:"",ArrowTallUpRight:"",ArrowTallDownLeft:"",ArrowTallDownRight:"",FieldEmpty:"",FieldFilled:"",FieldChanged:"",FieldNotChanged:"",RingerOff:"",PlayResume:"",BulletedList2:"",BulletedList2Mirrored:"",ImageCrosshair:"",GitGraph:"",Repo:"",RepoSolid:"",FolderQuery:"",FolderList:"",FolderListMirrored:"",LocationOutline:"",POISolid:"",CalculatorNotEqualTo:"",BoxSubtractSolid:""}};wo(r,t)}function INe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-11"',src:"url('".concat(e,"fabric-icons-11-2a8393d6.woff') format('woff')")},icons:{BoxAdditionSolid:"",BoxMultiplySolid:"",BoxPlaySolid:"",BoxCheckmarkSolid:"",CirclePauseSolid:"",CirclePause:"",MSNVideosSolid:"",CircleStopSolid:"",CircleStop:"",NavigateBack:"",NavigateBackMirrored:"",NavigateForward:"",NavigateForwardMirrored:"",UnknownSolid:"",UnknownMirroredSolid:"",CircleAddition:"",CircleAdditionSolid:"",FilePDB:"",FileTemplate:"",FileSQL:"",FileJAVA:"",FileASPX:"",FileCSS:"",FileSass:"",FileLess:"",FileHTML:"",JavaScriptLanguage:"",CSharpLanguage:"",CSharp:"",VisualBasicLanguage:"",VB:"",CPlusPlusLanguage:"",CPlusPlus:"",FSharpLanguage:"",FSharp:"",TypeScriptLanguage:"",PythonLanguage:"",PY:"",CoffeeScript:"",MarkDownLanguage:"",FullWidth:"",FullWidthEdit:"",Plug:"",PlugSolid:"",PlugConnected:"",PlugDisconnected:"",UnlockSolid:"",Variable:"",Parameter:"",CommentUrgent:"",Storyboard:"",DiffInline:"",DiffSideBySide:"",ImageDiff:"",ImagePixel:"",FileBug:"",FileCode:"",FileComment:"",BusinessHoursSign:"",FileImage:"",FileSymlink:"",AutoFillTemplate:"",WorkItem:"",WorkItemBug:"",LogRemove:"",ColumnOptions:"",Packages:"",BuildIssue:"",AssessmentGroup:"",VariableGroup:"",FullHistory:"",Wheelchair:"",SingleColumnEdit:"",DoubleColumnEdit:"",TripleColumnEdit:"",ColumnLeftTwoThirdsEdit:"",ColumnRightTwoThirdsEdit:"",StreamLogo:"",PassiveAuthentication:"",AlertSolid:"",MegaphoneSolid:"",TaskSolid:"",ConfigurationSolid:"",BugSolid:"",CrownSolid:"",Trophy2Solid:"",QuickNoteSolid:"",ConstructionConeSolid:"",PageListSolid:"",PageListMirroredSolid:"",StarburstSolid:"",ReadingModeSolid:"",SadSolid:"",HealthSolid:"",ShieldSolid:"",GiftBoxSolid:"",ShoppingCartSolid:"",MailSolid:"",ChatSolid:"",RibbonSolid:""}};wo(r,t)}function NNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-12"',src:"url('".concat(e,"fabric-icons-12-7e945a1e.woff') format('woff')")},icons:{FinancialSolid:"",FinancialMirroredSolid:"",HeadsetSolid:"",PermissionsSolid:"",ParkingSolid:"",ParkingMirroredSolid:"",DiamondSolid:"",AsteriskSolid:"",OfflineStorageSolid:"",BankSolid:"",DecisionSolid:"",Parachute:"",ParachuteSolid:"",FiltersSolid:"",ColorSolid:"",ReviewSolid:"",ReviewRequestSolid:"",ReviewRequestMirroredSolid:"",ReviewResponseSolid:"",FeedbackRequestSolid:"",FeedbackRequestMirroredSolid:"",FeedbackResponseSolid:"",WorkItemBar:"",WorkItemBarSolid:"",Separator:"",NavigateExternalInline:"",PlanView:"",TimelineMatrixView:"",EngineeringGroup:"",ProjectCollection:"",CaretBottomRightCenter8:"",CaretBottomLeftCenter8:"",CaretTopRightCenter8:"",CaretTopLeftCenter8:"",DonutChart:"",ChevronUnfold10:"",ChevronFold10:"",DoubleChevronDown8:"",DoubleChevronUp8:"",DoubleChevronLeft8:"",DoubleChevronRight8:"",ChevronDownEnd6:"",ChevronUpEnd6:"",ChevronLeftEnd6:"",ChevronRightEnd6:"",ContextMenu:"",AzureAPIManagement:"",AzureServiceEndpoint:"",VSTSLogo:"",VSTSAltLogo1:"",VSTSAltLogo2:"",FileTypeSolution:"",WordLogoInverse16:"",WordLogo16:"",WordLogoFill16:"",PowerPointLogoInverse16:"",PowerPointLogo16:"",PowerPointLogoFill16:"",ExcelLogoInverse16:"",ExcelLogo16:"",ExcelLogoFill16:"",OneNoteLogoInverse16:"",OneNoteLogo16:"",OneNoteLogoFill16:"",OutlookLogoInverse16:"",OutlookLogo16:"",OutlookLogoFill16:"",PublisherLogoInverse16:"",PublisherLogo16:"",PublisherLogoFill16:"",VisioLogoInverse16:"",VisioLogo16:"",VisioLogoFill16:"",TestBeaker:"",TestBeakerSolid:"",TestExploreSolid:"",TestAutoSolid:"",TestUserSolid:"",TestImpactSolid:"",TestPlan:"",TestStep:"",TestParameter:"",TestSuite:"",TestCase:"",Sprint:"",SignOut:"",TriggerApproval:"",Rocket:"",AzureKeyVault:"",Onboarding:"",Transition:"",LikeSolid:"",DislikeSolid:"",CRMCustomerInsightsApp:"",EditCreate:"",PlayReverseResume:"",PlayReverse:"",SearchData:"",UnSetColor:"",DeclineCall:""}};wo(r,t)}function CNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-13"',src:"url('".concat(e,"fabric-icons-13-c3989a02.woff') format('woff')")},icons:{RectangularClipping:"",TeamsLogo16:"",TeamsLogoFill16:"",Spacer:"",SkypeLogo16:"",SkypeForBusinessLogo16:"",SkypeForBusinessLogoFill16:"",FilterSolid:"",MailUndelivered:"",MailTentative:"",MailTentativeMirrored:"",MailReminder:"",ReceiptUndelivered:"",ReceiptTentative:"",ReceiptTentativeMirrored:"",Inbox:"",IRMReply:"",IRMReplyMirrored:"",IRMForward:"",IRMForwardMirrored:"",VoicemailIRM:"",EventAccepted:"",EventTentative:"",EventTentativeMirrored:"",EventDeclined:"",IDBadge:"",BackgroundColor:"",OfficeFormsLogoInverse16:"",OfficeFormsLogo:"",OfficeFormsLogoFill:"",OfficeFormsLogo16:"",OfficeFormsLogoFill16:"",OfficeFormsLogoInverse24:"",OfficeFormsLogo24:"",OfficeFormsLogoFill24:"",PageLock:"",NotExecuted:"",NotImpactedSolid:"",FieldReadOnly:"",FieldRequired:"",BacklogBoard:"",ExternalBuild:"",ExternalTFVC:"",ExternalXAML:"",IssueSolid:"",DefectSolid:"",LadybugSolid:"",NugetLogo:"",TFVCLogo:"",ProjectLogo32:"",ProjectLogoFill32:"",ProjectLogo16:"",ProjectLogoFill16:"",SwayLogo32:"",SwayLogoFill32:"",SwayLogo16:"",SwayLogoFill16:"",ClassNotebookLogo32:"",ClassNotebookLogoFill32:"",ClassNotebookLogo16:"",ClassNotebookLogoFill16:"",ClassNotebookLogoInverse32:"",ClassNotebookLogoInverse16:"",StaffNotebookLogo32:"",StaffNotebookLogoFill32:"",StaffNotebookLogo16:"",StaffNotebookLogoFill16:"",StaffNotebookLogoInverted32:"",StaffNotebookLogoInverted16:"",KaizalaLogo:"",TaskLogo:"",ProtectionCenterLogo32:"",GallatinLogo:"",Globe2:"",Guitar:"",Breakfast:"",Brunch:"",BeerMug:"",Vacation:"",Teeth:"",Taxi:"",Chopsticks:"",SyncOccurence:"",UnsyncOccurence:"",GIF:"",PrimaryCalendar:"",SearchCalendar:"",VideoOff:"",MicrosoftFlowLogo:"",BusinessCenterLogo:"",ToDoLogoBottom:"",ToDoLogoTop:"",EditSolid12:"",EditSolidMirrored12:"",UneditableSolid12:"",UneditableSolidMirrored12:"",UneditableMirrored:"",AdminALogo32:"",AdminALogoFill32:"",ToDoLogoInverse:""}};wo(r,t)}function RNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-14"',src:"url('".concat(e,"fabric-icons-14-5cf58db8.woff') format('woff')")},icons:{Snooze:"",WaffleOffice365:"",ImageSearch:"",NewsSearch:"",VideoSearch:"",R:"",FontColorA:"",FontColorSwatch:"",LightWeight:"",NormalWeight:"",SemiboldWeight:"",GroupObject:"",UngroupObject:"",AlignHorizontalLeft:"",AlignHorizontalCenter:"",AlignHorizontalRight:"",AlignVerticalTop:"",AlignVerticalCenter:"",AlignVerticalBottom:"",HorizontalDistributeCenter:"",VerticalDistributeCenter:"",Ellipse:"",Line:"",Octagon:"",Hexagon:"",Pentagon:"",RightTriangle:"",HalfCircle:"",QuarterCircle:"",ThreeQuarterCircle:"","6PointStar":"","12PointStar":"",ArrangeBringToFront:"",ArrangeSendToBack:"",ArrangeSendBackward:"",ArrangeBringForward:"",BorderDash:"",BorderDot:"",LineStyle:"",LineThickness:"",WindowEdit:"",HintText:"",MediaAdd:"",AnchorLock:"",AutoHeight:"",ChartSeries:"",ChartXAngle:"",ChartYAngle:"",Combobox:"",LineSpacing:"",Padding:"",PaddingTop:"",PaddingBottom:"",PaddingLeft:"",PaddingRight:"",NavigationFlipper:"",AlignJustify:"",TextOverflow:"",VisualsFolder:"",VisualsStore:"",PictureCenter:"",PictureFill:"",PicturePosition:"",PictureStretch:"",PictureTile:"",Slider:"",SliderHandleSize:"",DefaultRatio:"",NumberSequence:"",GUID:"",ReportAdd:"",DashboardAdd:"",MapPinSolid:"",WebPublish:"",PieSingleSolid:"",BlockedSolid:"",DrillDown:"",DrillDownSolid:"",DrillExpand:"",DrillShow:"",SpecialEvent:"",OneDriveFolder16:"",FunctionalManagerDashboard:"",BIDashboard:"",CodeEdit:"",RenewalCurrent:"",RenewalFuture:"",SplitObject:"",BulkUpload:"",DownloadDocument:"",GreetingCard:"",Flower:"",WaitlistConfirm:"",WaitlistConfirmMirrored:"",LaptopSecure:"",DragObject:"",EntryView:"",EntryDecline:"",ContactCardSettings:"",ContactCardSettingsMirrored:""}};wo(r,t)}function ONe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-15"',src:"url('".concat(e,"fabric-icons-15-3807251b.woff') format('woff')")},icons:{CalendarSettings:"",CalendarSettingsMirrored:"",HardDriveLock:"",HardDriveUnlock:"",AccountManagement:"",ReportWarning:"",TransitionPop:"",TransitionPush:"",TransitionEffect:"",LookupEntities:"",ExploreData:"",AddBookmark:"",SearchBookmark:"",DrillThrough:"",MasterDatabase:"",CertifiedDatabase:"",MaximumValue:"",MinimumValue:"",VisualStudioIDELogo32:"",PasteAsText:"",PasteAsCode:"",BrowserTab:"",BrowserTabScreenshot:"",DesktopScreenshot:"",FileYML:"",ClipboardSolid:"",FabricUserFolder:"",FabricNetworkFolder:"",BullseyeTarget:"",AnalyticsView:"",Video360Generic:"",Untag:"",Leave:"",Trending12:"",Blocked12:"",Warning12:"",CheckedOutByOther12:"",CheckedOutByYou12:"",CircleShapeSolid:"",SquareShapeSolid:"",TriangleShapeSolid:"",DropShapeSolid:"",RectangleShapeSolid:"",ZoomToFit:"",InsertColumnsLeft:"",InsertColumnsRight:"",InsertRowsAbove:"",InsertRowsBelow:"",DeleteColumns:"",DeleteRows:"",DeleteRowsMirrored:"",DeleteTable:"",AccountBrowser:"",VersionControlPush:"",StackedColumnChart2:"",TripleColumnWide:"",QuadColumn:"",WhiteBoardApp16:"",WhiteBoardApp32:"",PinnedSolid:"",InsertSignatureLine:"",ArrangeByFrom:"",Phishing:"",CreateMailRule:"",PublishCourse:"",DictionaryRemove:"",UserRemove:"",UserEvent:"",Encryption:"",PasswordField:"",OpenInNewTab:"",Hide3:"",VerifiedBrandSolid:"",MarkAsProtected:"",AuthenticatorApp:"",WebTemplate:"",DefenderTVM:"",MedalSolid:"",D365TalentLearn:"",D365TalentInsight:"",D365TalentHRCore:"",BacklogList:"",ButtonControl:"",TableGroup:"",MountainClimbing:"",TagUnknown:"",TagUnknownMirror:"",TagUnknown12:"",TagUnknown12Mirror:"",Link12:"",Presentation:"",Presentation12:"",Lock12:"",BuildDefinition:"",ReleaseDefinition:"",SaveTemplate:"",UserGauge:"",BlockedSiteSolid12:"",TagSolid:"",OfficeChat:""}};wo(r,t)}function DNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-16"',src:"url('".concat(e,"fabric-icons-16-9cf93f3b.woff') format('woff')")},icons:{OfficeChatSolid:"",MailSchedule:"",WarningSolid:"",Blocked2Solid:"",SkypeCircleArrow:"",SkypeArrow:"",SyncStatus:"",SyncStatusSolid:"",ProjectDocument:"",ToDoLogoOutline:"",VisioOnlineLogoFill32:"",VisioOnlineLogo32:"",VisioOnlineLogoCloud32:"",VisioDiagramSync:"",Event12:"",EventDateMissed12:"",UserOptional:"",ResponsesMenu:"",DoubleDownArrow:"",DistributeDown:"",BookmarkReport:"",FilterSettings:"",GripperDotsVertical:"",MailAttached:"",AddIn:"",LinkedDatabase:"",TableLink:"",PromotedDatabase:"",BarChartVerticalFilter:"",BarChartVerticalFilterSolid:"",MicOff2:"",MicrosoftTranslatorLogo:"",ShowTimeAs:"",FileRequest:"",WorkItemAlert:"",PowerBILogo16:"",PowerBILogoBackplate16:"",BulletedListText:"",BulletedListBullet:"",BulletedListTextMirrored:"",BulletedListBulletMirrored:"",NumberedListText:"",NumberedListNumber:"",NumberedListTextMirrored:"",NumberedListNumberMirrored:"",RemoveLinkChain:"",RemoveLinkX:"",FabricTextHighlight:"",ClearFormattingA:"",ClearFormattingEraser:"",Photo2Fill:"",IncreaseIndentText:"",IncreaseIndentArrow:"",DecreaseIndentText:"",DecreaseIndentArrow:"",IncreaseIndentTextMirrored:"",IncreaseIndentArrowMirrored:"",DecreaseIndentTextMirrored:"",DecreaseIndentArrowMirrored:"",CheckListText:"",CheckListCheck:"",CheckListTextMirrored:"",CheckListCheckMirrored:"",NumberSymbol:"",Coupon:"",VerifiedBrand:"",ReleaseGate:"",ReleaseGateCheck:"",ReleaseGateError:"",M365InvoicingLogo:"",RemoveFromShoppingList:"",ShieldAlert:"",FabricTextHighlightComposite:"",Dataflows:"",GenericScanFilled:"",DiagnosticDataBarTooltip:"",SaveToMobile:"",Orientation2:"",ScreenCast:"",ShowGrid:"",SnapToGrid:"",ContactList:"",NewMail:"",EyeShadow:"",FabricFolderConfirm:"",InformationBarriers:"",CommentActive:"",ColumnVerticalSectionEdit:"",WavingHand:"",ShakeDevice:"",SmartGlassRemote:"",Rotate90Clockwise:"",Rotate90CounterClockwise:"",CampaignTemplate:"",ChartTemplate:"",PageListFilter:"",SecondaryNav:"",ColumnVerticalSection:"",SkypeCircleSlash:"",SkypeSlash:""}};wo(r,t)}function FNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-17"',src:"url('".concat(e,"fabric-icons-17-0c4ed701.woff') format('woff')")},icons:{CustomizeToolbar:"",DuplicateRow:"",RemoveFromTrash:"",MailOptions:"",Childof:"",Footer:"",Header:"",BarChartVerticalFill:"",StackedColumnChart2Fill:"",PlainText:"",AccessibiltyChecker:"",DatabaseSync:"",ReservationOrders:"",TabOneColumn:"",TabTwoColumn:"",TabThreeColumn:"",BulletedTreeList:"",MicrosoftTranslatorLogoGreen:"",MicrosoftTranslatorLogoBlue:"",InternalInvestigation:"",AddReaction:"",ContactHeart:"",VisuallyImpaired:"",EventToDoLogo:"",Variable2:"",ModelingView:"",DisconnectVirtualMachine:"",ReportLock:"",Uneditable2:"",Uneditable2Mirrored:"",BarChartVerticalEdit:"",GlobalNavButtonActive:"",PollResults:"",Rerun:"",QandA:"",QandAMirror:"",BookAnswers:"",AlertSettings:"",TrimStart:"",TrimEnd:"",TableComputed:"",DecreaseIndentLegacy:"",IncreaseIndentLegacy:"",SizeLegacy:""}};wo(r,t)}var BNe=function(){U1("trash","delete"),U1("onedrive","onedrivelogo"),U1("alertsolid12","eventdatemissed12"),U1("sixpointstar","6pointstar"),U1("twelvepointstar","12pointstar"),U1("toggleon","toggleleft"),U1("toggleoff","toggleright")};W6("@fluentui/font-icons-mdl2","8.5.28");var MNe="".concat(bxe,"/assets/icons/"),$p=lo();function LNe(e,t){var r,n;e===void 0&&(e=((r=$p==null?void 0:$p.FabricConfig)===null||r===void 0?void 0:r.iconBaseUrl)||((n=$p==null?void 0:$p.FabricConfig)===null||n===void 0?void 0:n.fontBaseUrl)||MNe),[vNe,mNe,yNe,bNe,_Ne,ENe,SNe,wNe,kNe,ANe,TNe,xNe,INe,NNe,CNe,RNe,ONe,DNe,FNe].forEach(function(o){return o(e,t)}),BNe()}var VL=Ee;function vk(e,t){for(var r=[],n=2;n0)throw new Error("Any module using getSlots must use withSlots. Please see withSlots javadoc for more info.");return $Ne(t[s],u,n[s],n.slots&&n.slots[s],n._defaultStyles&&n._defaultStyles[s],n.theme)};a.isSlot=!0,r[s]=a}};for(var i in t)o(i);return r}function zNe(e,t){var r,n;return typeof t=="string"||typeof t=="number"||typeof t=="boolean"?n=(r={},r[e]=t,r):n=t,n}function HNe(e,t){for(var r=[],n=2;n2)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if(r.length===2)return{rowGap:R2(tg(r[0],t)),columnGap:R2(tg(r[1],t))};var n=R2(tg(e,t));return{rowGap:n,columnGap:n}},tW=function(e,t){if(e===void 0||typeof e=="number"||e==="")return e;var r=e.split(" ");return r.length<2?tg(e,t):r.reduce(function(n,o){return tg(n,t)+" "+tg(o,t)})},Pp={start:"flex-start",end:"flex-end"},GF={root:"ms-Stack",inner:"ms-Stack-inner",child:"ms-Stack-child"},UNe=function(e,t,r){var n,o,i,s,a,u,l,c,f,d,h,g,v,y=e.className,E=e.disableShrink,_=e.enableScopedSelectors,S=e.grow,b=e.horizontal,A=e.horizontalAlign,x=e.reversed,T=e.verticalAlign,N=e.verticalFill,I=e.wrap,R=mc(GF,t),D=r&&r.childrenGap?r.childrenGap:e.gap,L=r&&r.maxHeight?r.maxHeight:e.maxHeight,M=r&&r.maxWidth?r.maxWidth:e.maxWidth,q=r&&r.padding?r.padding:e.padding,z=VNe(D,t),B=z.rowGap,P=z.columnGap,K="".concat(-.5*P.value).concat(P.unit),U="".concat(-.5*B.value).concat(B.unit),X={textOverflow:"ellipsis"},J="> "+(_?"."+GF.child:"*"),ee=(n={},n["".concat(J,":not(.").concat(Vie.root,")")]={flexShrink:0},n);return I?{root:[R.root,{flexWrap:"wrap",maxWidth:M,maxHeight:L,width:"auto",overflow:"visible",height:"100%"},A&&(o={},o[b?"justifyContent":"alignItems"]=Pp[A]||A,o),T&&(i={},i[b?"alignItems":"justifyContent"]=Pp[T]||T,i),y,{display:"flex"},b&&{height:N?"100%":"auto"}],inner:[R.inner,(s={display:"flex",flexWrap:"wrap",marginLeft:K,marginRight:K,marginTop:U,marginBottom:U,overflow:"visible",boxSizing:"border-box",padding:tW(q,t),width:P.value===0?"100%":"calc(100% + ".concat(P.value).concat(P.unit,")"),maxWidth:"100vw"},s[J]=Ee({margin:"".concat(.5*B.value).concat(B.unit," ").concat(.5*P.value).concat(P.unit)},X),s),E&&ee,A&&(a={},a[b?"justifyContent":"alignItems"]=Pp[A]||A,a),T&&(u={},u[b?"alignItems":"justifyContent"]=Pp[T]||T,u),b&&(l={flexDirection:x?"row-reverse":"row",height:B.value===0?"100%":"calc(100% + ".concat(B.value).concat(B.unit,")")},l[J]={maxWidth:P.value===0?"100%":"calc(100% - ".concat(P.value).concat(P.unit,")")},l),!b&&(c={flexDirection:x?"column-reverse":"column",height:"calc(100% + ".concat(B.value).concat(B.unit,")")},c[J]={maxHeight:B.value===0?"100%":"calc(100% - ".concat(B.value).concat(B.unit,")")},c)]}:{root:[R.root,(f={display:"flex",flexDirection:b?x?"row-reverse":"row":x?"column-reverse":"column",flexWrap:"nowrap",width:"auto",height:N?"100%":"auto",maxWidth:M,maxHeight:L,padding:tW(q,t),boxSizing:"border-box"},f[J]=X,f),E&&ee,S&&{flexGrow:S===!0?1:S},A&&(d={},d[b?"justifyContent":"alignItems"]=Pp[A]||A,d),T&&(h={},h[b?"alignItems":"justifyContent"]=Pp[T]||T,h),b&&P.value>0&&(g={},g[x?"".concat(J,":not(:last-child)"):"".concat(J,":not(:first-child)")]={marginLeft:"".concat(P.value).concat(P.unit)},g),!b&&B.value>0&&(v={},v[x?"".concat(J,":not(:last-child)"):"".concat(J,":not(:first-child)")]={marginTop:"".concat(B.value).concat(B.unit)},v),y]}},YNe=function(e){var t=e.as,r=t===void 0?"div":t,n=e.disableShrink,o=n===void 0?!1:n,i=e.doNotRenderFalsyValues,s=i===void 0?!1:i,a=e.enableScopedSelectors,u=a===void 0?!1:a,l=e.wrap,c=ov(e,["as","disableShrink","doNotRenderFalsyValues","enableScopedSelectors","wrap"]),f=Yie(e.children,{disableShrink:o,enableScopedSelectors:u,doNotRenderFalsyValues:s}),d=Ci(c,ho),h=Wie(e,{root:r,inner:"div"});return l?vk(h.root,Ee({},d),vk(h.inner,null,f)):vk(h.root,Ee({},d),f)};function Yie(e,t){var r=t.disableShrink,n=t.enableScopedSelectors,o=t.doNotRenderFalsyValues,i=k.Children.toArray(e);return i=k.Children.map(i,function(s){if(!s)return o?null:s;if(!k.isValidElement(s))return s;if(s.type===k.Fragment)return s.props.children?Yie(s.props.children,{disableShrink:r,enableScopedSelectors:n,doNotRenderFalsyValues:o}):null;var a=s,u={};XNe(s)&&(u={shrink:!r});var l=a.props.className;return k.cloneElement(a,Ee(Ee(Ee(Ee({},u),a.props),l&&{className:l}),n&&{className:s1(GF.child,l)}))}),i}function XNe(e){return!!e&&typeof e=="object"&&!!e.type&&e.type.displayName===Uie.displayName}var QNe={Item:Uie},ZNe=Kie(YNe,{displayName:"Stack",styles:UNe,statics:QNe});const l1=function(){if(typeof globalThis<"u")return globalThis;if(typeof global<"u")return global;if(typeof self<"u")return self;if(typeof window<"u")return window;try{return new Function("return this")()}catch{return{}}}();l1.trustedTypes===void 0&&(l1.trustedTypes={createPolicy:(e,t)=>t});const Xie={configurable:!1,enumerable:!1,writable:!1};l1.FAST===void 0&&Reflect.defineProperty(l1,"FAST",Object.assign({value:Object.create(null)},Xie));const Db=l1.FAST;if(Db.getById===void 0){const e=Object.create(null);Reflect.defineProperty(Db,"getById",Object.assign({value(t,r){let n=e[t];return n===void 0&&(n=r?e[t]=r():null),n}},Xie))}const jy=Object.freeze([]);function Qie(){const e=new WeakMap;return function(t){let r=e.get(t);if(r===void 0){let n=Reflect.getPrototypeOf(t);for(;r===void 0&&n!==null;)r=e.get(n),n=Reflect.getPrototypeOf(n);r=r===void 0?[]:r.slice(0),e.set(t,r)}return r}}const O2=l1.FAST.getById(1,()=>{const e=[],t=[];function r(){if(t.length)throw t.shift()}function n(s){try{s.call()}catch(a){t.push(a),setTimeout(r,0)}}function o(){let a=0;for(;a1024){for(let u=0,l=e.length-a;ue});let D2=Zie;const zy=`fast-${Math.random().toString(36).substring(2,8)}`,Jie=`${zy}{`,UL=`}${zy}`,en=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(e){if(D2!==Zie)throw new Error("The HTML policy can only be set once.");D2=e},createHTML(e){return D2.createHTML(e)},isMarker(e){return e&&e.nodeType===8&&e.data.startsWith(zy)},extractDirectiveIndexFromMarker(e){return parseInt(e.data.replace(`${zy}:`,""))},createInterpolationPlaceholder(e){return`${Jie}${e}${UL}`},createCustomAttributePlaceholder(e,t){return`${e}="${this.createInterpolationPlaceholder(t)}"`},createBlockPlaceholder(e){return``},queueUpdate:O2.enqueue,processUpdates:O2.process,nextUpdate(){return new Promise(O2.enqueue)},setAttribute(e,t,r){r==null?e.removeAttribute(t):e.setAttribute(t,r)},setBooleanAttribute(e,t,r){r?e.setAttribute(t,""):e.removeAttribute(t)},removeChildNodes(e){for(let t=e.firstChild;t!==null;t=e.firstChild)e.removeChild(t)},createTemplateWalker(e){return document.createTreeWalker(e,133,null,!1)}});class VF{constructor(t,r){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=t,this.sub1=r}has(t){return this.spillover===void 0?this.sub1===t||this.sub2===t:this.spillover.indexOf(t)!==-1}subscribe(t){const r=this.spillover;if(r===void 0){if(this.has(t))return;if(this.sub1===void 0){this.sub1=t;return}if(this.sub2===void 0){this.sub2=t;return}this.spillover=[this.sub1,this.sub2,t],this.sub1=void 0,this.sub2=void 0}else r.indexOf(t)===-1&&r.push(t)}unsubscribe(t){const r=this.spillover;if(r===void 0)this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0);else{const n=r.indexOf(t);n!==-1&&r.splice(n,1)}}notify(t){const r=this.spillover,n=this.source;if(r===void 0){const o=this.sub1,i=this.sub2;o!==void 0&&o.handleChange(n,t),i!==void 0&&i.handleChange(n,t)}else for(let o=0,i=r.length;o{const e=/(:|&&|\|\||if)/,t=new WeakMap,r=en.queueUpdate;let n,o=l=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function i(l){let c=l.$fastController||t.get(l);return c===void 0&&(Array.isArray(l)?c=o(l):t.set(l,c=new ese(l))),c}const s=Qie();class a{constructor(c){this.name=c,this.field=`_${c}`,this.callback=`${c}Changed`}getValue(c){return n!==void 0&&n.watch(c,this.name),c[this.field]}setValue(c,f){const d=this.field,h=c[d];if(h!==f){c[d]=f;const g=c[this.callback];typeof g=="function"&&g.call(c,h,f),i(c).notify(this.name)}}}class u extends VF{constructor(c,f,d=!1){super(c,f),this.binding=c,this.isVolatileBinding=d,this.needsRefresh=!0,this.needsQueue=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}observe(c,f){this.needsRefresh&&this.last!==null&&this.disconnect();const d=n;n=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const h=this.binding(c,f);return n=d,h}disconnect(){if(this.last!==null){let c=this.first;for(;c!==void 0;)c.notifier.unsubscribe(this,c.propertyName),c=c.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(c,f){const d=this.last,h=i(c),g=d===null?this.first:{};if(g.propertySource=c,g.propertyName=f,g.notifier=h,h.subscribe(this,f),d!==null){if(!this.needsRefresh){let v;n=void 0,v=d.propertySource[d.propertyName],n=this,c===v&&(this.needsRefresh=!0)}d.next=g}this.last=g}handleChange(){this.needsQueue&&(this.needsQueue=!1,r(this))}call(){this.last!==null&&(this.needsQueue=!0,this.notify(this))}records(){let c=this.first;return{next:()=>{const f=c;return f===void 0?{value:void 0,done:!0}:(c=c.next,{value:f,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(l){o=l},getNotifier:i,track(l,c){n!==void 0&&n.watch(l,c)},trackVolatile(){n!==void 0&&(n.needsRefresh=!0)},notify(l,c){i(l).notify(c)},defineProperty(l,c){typeof c=="string"&&(c=new a(c)),s(l).push(c),Reflect.defineProperty(l,c.name,{enumerable:!0,get:function(){return c.getValue(this)},set:function(f){c.setValue(this,f)}})},getAccessors:s,binding(l,c,f=this.isVolatileBinding(l)){return new u(l,c,f)},isVolatileBinding(l){return e.test(l.toString())}})});function cv(e,t){Xo.defineProperty(e,t)}const rW=Db.getById(3,()=>{let e=null;return{get(){return e},set(t){e=t}}});class Fb{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return rW.get()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(t){rW.set(t)}}Xo.defineProperty(Fb.prototype,"index");Xo.defineProperty(Fb.prototype,"length");const Hy=Object.seal(new Fb);class YL{constructor(){this.targetIndex=0}}class tse extends YL{constructor(){super(...arguments),this.createPlaceholder=en.createInterpolationPlaceholder}}class rse extends YL{constructor(t,r,n){super(),this.name=t,this.behavior=r,this.options=n}createPlaceholder(t){return en.createCustomAttributePlaceholder(this.name,t)}createBehavior(t){return new this.behavior(t,this.options)}}function JNe(e,t){this.source=e,this.context=t,this.bindingObserver===null&&(this.bindingObserver=Xo.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(e,t))}function eCe(e,t){this.source=e,this.context=t,this.target.addEventListener(this.targetName,this)}function tCe(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function rCe(){this.bindingObserver.disconnect(),this.source=null,this.context=null;const e=this.target.$fastView;e!==void 0&&e.isComposed&&(e.unbind(),e.needsBindOnly=!0)}function nCe(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function oCe(e){en.setAttribute(this.target,this.targetName,e)}function iCe(e){en.setBooleanAttribute(this.target,this.targetName,e)}function sCe(e){if(e==null&&(e=""),e.create){this.target.textContent="";let t=this.target.$fastView;t===void 0?t=e.create():this.target.$fastTemplate!==e&&(t.isComposed&&(t.remove(),t.unbind()),t=e.create()),t.isComposed?t.needsBindOnly&&(t.needsBindOnly=!1,t.bind(this.source,this.context)):(t.isComposed=!0,t.bind(this.source,this.context),t.insertBefore(this.target),this.target.$fastView=t,this.target.$fastTemplate=e)}else{const t=this.target.$fastView;t!==void 0&&t.isComposed&&(t.isComposed=!1,t.remove(),t.needsBindOnly?t.needsBindOnly=!1:t.unbind()),this.target.textContent=e}}function aCe(e){this.target[this.targetName]=e}function uCe(e){const t=this.classVersions||Object.create(null),r=this.target;let n=this.version||0;if(e!=null&&e.length){const o=e.split(/\s+/);for(let i=0,s=o.length;ien.createHTML(r(n,o))}break;case"?":this.cleanedTargetName=t.substr(1),this.updateTarget=iCe;break;case"@":this.cleanedTargetName=t.substr(1),this.bind=eCe,this.unbind=nCe;break;default:this.cleanedTargetName=t,t==="class"&&(this.updateTarget=uCe);break}}targetAtContent(){this.updateTarget=sCe,this.unbind=rCe}createBehavior(t){return new lCe(t,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class lCe{constructor(t,r,n,o,i,s,a){this.source=null,this.context=null,this.bindingObserver=null,this.target=t,this.binding=r,this.isBindingVolatile=n,this.bind=o,this.unbind=i,this.updateTarget=s,this.targetName=a}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(t){Fb.setEvent(t);const r=this.binding(this.source,this.context);Fb.setEvent(null),r!==!0&&t.preventDefault()}}let F2=null;class QL{addFactory(t){t.targetIndex=this.targetIndex,this.behaviorFactories.push(t)}captureContentBinding(t){t.targetAtContent(),this.addFactory(t)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){F2=this}static borrow(t){const r=F2||new QL;return r.directives=t,r.reset(),F2=null,r}}function cCe(e){if(e.length===1)return e[0];let t;const r=e.length,n=e.map(s=>typeof s=="string"?()=>s:(t=s.targetName||t,s.binding)),o=(s,a)=>{let u="";for(let l=0;la),l.targetName=s.name):l=cCe(u),l!==null&&(t.removeAttributeNode(s),o--,i--,e.addFactory(l))}}function dCe(e,t,r){const n=nse(e,t.textContent);if(n!==null){let o=t;for(let i=0,s=n.length;i0}const r=this.fragment.cloneNode(!0),n=this.viewBehaviorFactories,o=new Array(this.behaviorCount),i=en.createTemplateWalker(r);let s=0,a=this.targetOffset,u=i.nextNode();for(let l=n.length;s=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function H_(e,...t){const r=[];let n="";for(let o=0,i=e.length-1;ou}if(typeof a=="function"&&(a=new XL(a)),a instanceof tse){const u=gCe.exec(s);u!==null&&(a.targetName=u[2])}a instanceof YL?(n+=a.createPlaceholder(r.length),r.push(a)):n+=a}return n+=e[e.length-1],new oW(n,r)}class Ds{constructor(){this.targets=new WeakSet}addStylesTo(t){this.targets.add(t)}removeStylesFrom(t){this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=this.behaviors===null?t:this.behaviors.concat(t),this}}Ds.create=(()=>{if(en.supportsAdoptedStyleSheets){const e=new Map;return t=>new vCe(t,e)}return e=>new bCe(e)})();function ZL(e){return e.map(t=>t instanceof Ds?ZL(t.styles):[t]).reduce((t,r)=>t.concat(r),[])}function ose(e){return e.map(t=>t instanceof Ds?t.behaviors:null).reduce((t,r)=>r===null?t:(t===null&&(t=[]),t.concat(r)),null)}let ise=(e,t)=>{e.adoptedStyleSheets=[...e.adoptedStyleSheets,...t]},sse=(e,t)=>{e.adoptedStyleSheets=e.adoptedStyleSheets.filter(r=>t.indexOf(r)===-1)};if(en.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),ise=(e,t)=>{e.adoptedStyleSheets.push(...t)},sse=(e,t)=>{for(const r of t){const n=e.adoptedStyleSheets.indexOf(r);n!==-1&&e.adoptedStyleSheets.splice(n,1)}}}catch{}class vCe extends Ds{constructor(t,r){super(),this.styles=t,this.styleSheetCache=r,this._styleSheets=void 0,this.behaviors=ose(t)}get styleSheets(){if(this._styleSheets===void 0){const t=this.styles,r=this.styleSheetCache;this._styleSheets=ZL(t).map(n=>{if(n instanceof CSSStyleSheet)return n;let o=r.get(n);return o===void 0&&(o=new CSSStyleSheet,o.replaceSync(n),r.set(n,o)),o})}return this._styleSheets}addStylesTo(t){ise(t,this.styleSheets),super.addStylesTo(t)}removeStylesFrom(t){sse(t,this.styleSheets),super.removeStylesFrom(t)}}let mCe=0;function yCe(){return`fast-style-class-${++mCe}`}class bCe extends Ds{constructor(t){super(),this.styles=t,this.behaviors=null,this.behaviors=ose(t),this.styleSheets=ZL(t),this.styleClass=yCe()}addStylesTo(t){const r=this.styleSheets,n=this.styleClass;t=this.normalizeTarget(t);for(let o=0;o{n.add(t);const o=t[this.fieldName];switch(r){case"reflect":const i=this.converter;en.setAttribute(t,this.attribute,i!==void 0?i.toView(o):o);break;case"boolean":en.setBooleanAttribute(t,this.attribute,o);break}n.delete(t)})}static collect(t,...r){const n=[];r.push(NA.locate(t));for(let o=0,i=r.length;o1&&(r.property=i),NA.locate(o.constructor).push(r)}if(arguments.length>1){r={},n(e,t);return}return r=e===void 0?{}:e,n}const iW={mode:"open"},sW={},UF=Db.getById(4,()=>{const e=new Map;return Object.freeze({register(t){return e.has(t.type)?!1:(e.set(t.type,t),!0)},getByType(t){return e.get(t)}})});class px{constructor(t,r=t.definition){typeof r=="string"&&(r={name:r}),this.type=t,this.name=r.name,this.template=r.template;const n=CA.collect(t,r.attributes),o=new Array(n.length),i={},s={};for(let a=0,u=n.length;a0){const i=this.boundObservables=Object.create(null);for(let s=0,a=o.length;sn.name===r),this.source=t,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(jy),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let t=this.getNodes();return this.options.filter!==void 0&&(t=t.filter(this.options.filter)),t}updateTarget(t){this.source[this.options.property]=t}}class ACe extends kCe{constructor(t,r){super(t,r)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}function TCe(e){return typeof e=="string"&&(e={property:e}),new rse("fast-slotted",ACe,e)}class xCe{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}const ICe=(e,t)=>H_` +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function A2(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function BF(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var rIe=typeof WeakMap=="function"?WeakMap:Map;function Yoe(e,t,r){r=df(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Ck||(Ck=!0,KF=n),BF(e,t)},r}function Xoe(e,t,r){r=df(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var o=t.value;r.payload=function(){return n(o)},r.callback=function(){BF(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){BF(e,t),typeof n!="function"&&(Gd===null?Gd=new Set([this]):Gd.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),r}function Lq(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new rIe;var o=new Set;n.set(t,o)}else o=n.get(t),o===void 0&&(o=new Set,n.set(t,o));o.has(r)||(o.add(r),e=vIe.bind(null,e,t,r),t.then(e,e))}function jq(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function zq(e,t,r,n,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=df(-1,1),t.tag=2,Kd(r,t,1))),r.lanes|=1),e)}var nIe=jf.ReactCurrentOwner,Is=!1;function Ki(e,t,r,n){t.child=e===null?Ioe(t,null,r,n):xg(t,e.child,r,n)}function Hq(e,t,r,n,o){r=r.render;var i=t.ref;return eg(t,o),n=DL(e,t,r,n,i,o),r=FL(),e!==null&&!Is?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,bf(e,t,o)):(Nn&&r&&EL(t),t.flags|=1,Ki(e,t,n,o),t.child)}function $q(e,t,r,n,o){if(e===null){var i=r.type;return typeof i=="function"&&!WL(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,Qoe(e,t,i,n,o)):(e=bA(r.type,null,n,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(r=r.compare,r=r!==null?r:Ab,r(s,n)&&e.ref===t.ref)return bf(e,t,o)}return t.flags|=1,e=Ud(i,n),e.ref=t.ref,e.return=t,t.child=e}function Qoe(e,t,r,n,o){if(e!==null){var i=e.memoizedProps;if(Ab(i,n)&&e.ref===t.ref)if(Is=!1,t.pendingProps=n=i,(e.lanes&o)!==0)e.flags&131072&&(Is=!0);else return t.lanes=e.lanes,bf(e,t,o)}return MF(e,t,r,n,o)}function Zoe(e,t,r){var n=t.pendingProps,o=n.children,i=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},dn(F0,Js),Js|=r;else{if(!(r&1073741824))return e=i!==null?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,dn(F0,Js),Js|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=i!==null?i.baseLanes:r,dn(F0,Js),Js|=n}else i!==null?(n=i.baseLanes|r,t.memoizedState=null):n=r,dn(F0,Js),Js|=n;return Ki(e,t,o,r),t.child}function Joe(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function MF(e,t,r,n,o){var i=Os(r)?Hh:Di.current;return i=Ag(t,i),eg(t,o),r=DL(e,t,r,n,i,o),n=FL(),e!==null&&!Is?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,bf(e,t,o)):(Nn&&n&&EL(t),t.flags|=1,Ki(e,t,r,o),t.child)}function Pq(e,t,r,n,o){if(Os(r)){var i=!0;bk(t)}else i=!1;if(eg(t,o),t.stateNode===null)vA(e,t),xoe(t,r,n),FF(t,r,n,o),n=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var u=s.context,l=r.contextType;typeof l=="object"&&l!==null?l=pu(l):(l=Os(r)?Hh:Di.current,l=Ag(t,l));var c=r.getDerivedStateFromProps,f=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==n||u!==l)&&Dq(t,s,n,l),Sd=!1;var d=t.memoizedState;s.state=d,Ak(t,n,s,o),u=t.memoizedState,a!==n||d!==u||Rs.current||Sd?(typeof c=="function"&&(DF(t,r,c,n),u=t.memoizedState),(a=Sd||Oq(t,r,a,n,d,u,l))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=u),s.props=n,s.state=u,s.context=l,n=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{s=t.stateNode,Aoe(e,t),a=t.memoizedProps,l=t.type===t.elementType?a:Gu(t.type,a),s.props=l,f=t.pendingProps,d=s.context,u=r.contextType,typeof u=="object"&&u!==null?u=pu(u):(u=Os(r)?Hh:Di.current,u=Ag(t,u));var h=r.getDerivedStateFromProps;(c=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==f||d!==u)&&Dq(t,s,n,u),Sd=!1,d=t.memoizedState,s.state=d,Ak(t,n,s,o);var g=t.memoizedState;a!==f||d!==g||Rs.current||Sd?(typeof h=="function"&&(DF(t,r,h,n),g=t.memoizedState),(l=Sd||Oq(t,r,l,n,d,g,u)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(n,g,u),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(n,g,u)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=g),s.props=n,s.state=g,s.context=u,n=l):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),n=!1)}return LF(e,t,r,n,i,o)}function LF(e,t,r,n,o,i){Joe(e,t);var s=(t.flags&128)!==0;if(!n&&!s)return o&&Tq(t,r,!1),bf(e,t,i);n=t.stateNode,nIe.current=t;var a=s&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&s?(t.child=xg(t,e.child,null,i),t.child=xg(t,null,a,i)):Ki(e,t,a,i),t.memoizedState=n.state,o&&Tq(t,r,!0),t.child}function eie(e){var t=e.stateNode;t.pendingContext?xq(e,t.pendingContext,t.pendingContext!==t.context):t.context&&xq(e,t.context,!1),CL(e,t.containerInfo)}function qq(e,t,r,n,o){return kg(),wL(o),t.flags|=256,Ki(e,t,r,n),t.child}var jF={dehydrated:null,treeContext:null,retryLane:0};function zF(e){return{baseLanes:e,cachePool:null,transitions:null}}function tie(e,t,r){var n=t.pendingProps,o=Hn.current,i=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),dn(Hn,o&1),e===null)return RF(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=n.children,e=n.fallback,i?(n=t.mode,i=t.child,s={mode:"hidden",children:s},!(n&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=hT(s,n,0,null),e=Ch(e,n,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=zF(r),t.memoizedState=jF,e):LL(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return oIe(e,t,s,n,a,o,r);if(i){i=n.fallback,s=t.mode,o=e.child,a=o.sibling;var u={mode:"hidden",children:n.children};return!(s&1)&&t.child!==o?(n=t.child,n.childLanes=0,n.pendingProps=u,t.deletions=null):(n=Ud(o,u),n.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=Ud(a,i):(i=Ch(i,s,r,null),i.flags|=2),i.return=t,n.return=t,n.sibling=i,t.child=n,n=i,i=t.child,s=e.child.memoizedState,s=s===null?zF(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~r,t.memoizedState=jF,n}return i=e.child,e=i.sibling,n=Ud(i,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function LL(e,t){return t=hT({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function YS(e,t,r,n){return n!==null&&wL(n),xg(t,e.child,null,r),e=LL(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function oIe(e,t,r,n,o,i,s){if(r)return t.flags&256?(t.flags&=-257,n=A2(Error(Ke(422))),YS(e,t,s,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=n.fallback,o=t.mode,n=hT({mode:"visible",children:n.children},o,0,null),i=Ch(i,o,s,null),i.flags|=2,n.return=t,i.return=t,n.sibling=i,t.child=n,t.mode&1&&xg(t,e.child,null,s),t.child.memoizedState=zF(s),t.memoizedState=jF,i);if(!(t.mode&1))return YS(e,t,s,null);if(o.data==="$!"){if(n=o.nextSibling&&o.nextSibling.dataset,n)var a=n.dgst;return n=a,i=Error(Ke(419)),n=A2(i,n,void 0),YS(e,t,s,n)}if(a=(s&e.childLanes)!==0,Is||a){if(n=Yo,n!==null){switch(s&-s){case 4:o=2;break;case 16:o=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(n.suspendedLanes|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,yf(e,o),rl(n,e,o,-1))}return qL(),n=A2(Error(Ke(421))),YS(e,t,s,n)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=mIe.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,la=Wd(o.nextSibling),ha=t,Nn=!0,Xu=null,e!==null&&(Za[Ja++]=nf,Za[Ja++]=of,Za[Ja++]=$h,nf=e.id,of=e.overflow,$h=t),t=LL(t,n.children),t.flags|=4096,t)}function Wq(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),OF(e.return,t,r)}function k2(e,t,r,n,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=o)}function rie(e,t,r){var n=t.pendingProps,o=n.revealOrder,i=n.tail;if(Ki(e,t,n.children,r),n=Hn.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Wq(e,r,t);else if(e.tag===19)Wq(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(dn(Hn,n),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;r!==null;)e=r.alternate,e!==null&&kk(e)===null&&(o=r),r=r.sibling;r=o,r===null?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),k2(t,!1,o,r,i);break;case"backwards":for(r=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&kk(e)===null){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}k2(t,!0,r,null,i);break;case"together":k2(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function vA(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function bf(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),qh|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Ke(153));if(t.child!==null){for(e=t.child,r=Ud(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Ud(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function iIe(e,t,r){switch(t.tag){case 3:eie(t),kg();break;case 5:Coe(t);break;case 1:Os(t.type)&&bk(t);break;case 4:CL(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,o=t.memoizedProps.value;dn(Sk,n._currentValue),n._currentValue=o;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(dn(Hn,Hn.current&1),t.flags|=128,null):r&t.child.childLanes?tie(e,t,r):(dn(Hn,Hn.current&1),e=bf(e,t,r),e!==null?e.sibling:null);dn(Hn,Hn.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return rie(e,t,r);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),dn(Hn,Hn.current),n)break;return null;case 22:case 23:return t.lanes=0,Zoe(e,t,r)}return bf(e,t,r)}var nie,HF,oie,iie;nie=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};HF=function(){};oie=function(e,t,r,n){var o=e.memoizedProps;if(o!==n){e=t.stateNode,yh(rc.current);var i=null;switch(r){case"input":o=uF(e,o),n=uF(e,n),i=[];break;case"select":o=Gn({},o,{value:void 0}),n=Gn({},n,{value:void 0}),i=[];break;case"textarea":o=fF(e,o),n=fF(e,n),i=[];break;default:typeof o.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=mk)}hF(r,n);var s;r=null;for(l in o)if(!n.hasOwnProperty(l)&&o.hasOwnProperty(l)&&o[l]!=null)if(l==="style"){var a=o[l];for(s in a)a.hasOwnProperty(s)&&(r||(r={}),r[s]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(mb.hasOwnProperty(l)?i||(i=[]):(i=i||[]).push(l,null));for(l in n){var u=n[l];if(a=o!=null?o[l]:void 0,n.hasOwnProperty(l)&&u!==a&&(u!=null||a!=null))if(l==="style")if(a){for(s in a)!a.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(r||(r={}),r[s]="");for(s in u)u.hasOwnProperty(s)&&a[s]!==u[s]&&(r||(r={}),r[s]=u[s])}else r||(i||(i=[]),i.push(l,r)),r=u;else l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(i=i||[]).push(l,u)):l==="children"?typeof u!="string"&&typeof u!="number"||(i=i||[]).push(l,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(mb.hasOwnProperty(l)?(u!=null&&l==="onScroll"&&_n("scroll",e),i||a===u||(i=[])):(i=i||[]).push(l,u))}r&&(i=i||[]).push("style",r);var l=i;(t.updateQueue=l)&&(t.flags|=4)}};iie=function(e,t,r,n){r!==n&&(t.flags|=4)};function wm(e,t){if(!Nn)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function bi(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags&14680064,n|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function sIe(e,t,r){var n=t.pendingProps;switch(SL(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return bi(t),null;case 1:return Os(t.type)&&yk(),bi(t),null;case 3:return n=t.stateNode,Tg(),wn(Rs),wn(Di),RL(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(VS(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Xu!==null&&(UF(Xu),Xu=null))),HF(e,t),bi(t),null;case 5:NL(t);var o=yh(Cb.current);if(r=t.type,e!==null&&t.stateNode!=null)oie(e,t,r,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(Ke(166));return bi(t),null}if(e=yh(rc.current),VS(t)){n=t.stateNode,r=t.type;var i=t.memoizedProps;switch(n[Gl]=t,n[Tb]=i,e=(t.mode&1)!==0,r){case"dialog":_n("cancel",n),_n("close",n);break;case"iframe":case"object":case"embed":_n("load",n);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=s.createElement(r,{is:n.is}):(e=s.createElement(r),r==="select"&&(s=e,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):e=s.createElementNS(e,r),e[Gl]=t,e[Tb]=n,nie(e,t,!1,!1),t.stateNode=e;e:{switch(s=pF(r,n),r){case"dialog":_n("cancel",e),_n("close",e),o=n;break;case"iframe":case"object":case"embed":_n("load",e),o=n;break;case"video":case"audio":for(o=0;oCg&&(t.flags|=128,n=!0,wm(i,!1),t.lanes=4194304)}else{if(!n)if(e=kk(s),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),wm(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Nn)return bi(t),null}else 2*lo()-i.renderingStartTime>Cg&&r!==1073741824&&(t.flags|=128,n=!0,wm(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(r=i.last,r!==null?r.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=lo(),t.sibling=null,r=Hn.current,dn(Hn,n?r&1|2:r&1),t):(bi(t),null);case 22:case 23:return PL(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Js&1073741824&&(bi(t),t.subtreeFlags&6&&(t.flags|=8192)):bi(t),null;case 24:return null;case 25:return null}throw Error(Ke(156,t.tag))}function aIe(e,t){switch(SL(t),t.tag){case 1:return Os(t.type)&&yk(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Tg(),wn(Rs),wn(Di),RL(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return NL(t),null;case 13:if(wn(Hn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ke(340));kg()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return wn(Hn),null;case 4:return Tg(),null;case 10:return xL(t.type._context),null;case 22:case 23:return PL(),null;case 24:return null;default:return null}}var XS=!1,xi=!1,uIe=typeof WeakSet=="function"?WeakSet:Set,gt=null;function D0(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Qn(e,t,n)}else r.current=null}function $F(e,t,r){try{r()}catch(n){Qn(e,t,n)}}var Kq=!1;function lIe(e,t){if(AF=pk,e=loe(),_L(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var s=0,a=-1,u=-1,l=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==r||o!==0&&f.nodeType!==3||(a=s+o),f!==i||n!==0&&f.nodeType!==3||(u=s+n),f.nodeType===3&&(s+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===r&&++l===o&&(a=s),d===i&&++c===n&&(u=s),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}r=a===-1||u===-1?null:{start:a,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(kF={focusedElem:e,selectionRange:r},pk=!1,gt=t;gt!==null;)if(t=gt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,gt=e;else for(;gt!==null;){t=gt;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var v=g.memoizedProps,y=g.memoizedState,E=t.stateNode,_=E.getSnapshotBeforeUpdate(t.elementType===t.type?v:Gu(t.type,v),y);E.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ke(163))}}catch(b){Qn(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,gt=e;break}gt=t.return}return g=Kq,Kq=!1,g}function By(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&$F(t,r,i)}o=o.next}while(o!==n)}}function fT(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function PF(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function sie(e){var t=e.alternate;t!==null&&(e.alternate=null,sie(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Gl],delete t[Tb],delete t[IF],delete t[K5e],delete t[G5e])),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 aie(e){return e.tag===5||e.tag===3||e.tag===4}function Gq(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||aie(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 qF(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=mk));else if(n!==4&&(e=e.child,e!==null))for(qF(e,t,r),e=e.sibling;e!==null;)qF(e,t,r),e=e.sibling}function WF(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(WF(e,t,r),e=e.sibling;e!==null;)WF(e,t,r),e=e.sibling}var ri=null,Yu=!1;function sd(e,t,r){for(r=r.child;r!==null;)uie(e,t,r),r=r.sibling}function uie(e,t,r){if(tc&&typeof tc.onCommitFiberUnmount=="function")try{tc.onCommitFiberUnmount(nT,r)}catch{}switch(r.tag){case 5:xi||D0(r,t);case 6:var n=ri,o=Yu;ri=null,sd(e,t,r),ri=n,Yu=o,ri!==null&&(Yu?(e=ri,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):ri.removeChild(r.stateNode));break;case 18:ri!==null&&(Yu?(e=ri,r=r.stateNode,e.nodeType===8?y2(e.parentNode,r):e.nodeType===1&&y2(e,r),Sb(e)):y2(ri,r.stateNode));break;case 4:n=ri,o=Yu,ri=r.stateNode.containerInfo,Yu=!0,sd(e,t,r),ri=n,Yu=o;break;case 0:case 11:case 14:case 15:if(!xi&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&$F(r,t,s),o=o.next}while(o!==n)}sd(e,t,r);break;case 1:if(!xi&&(D0(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){Qn(r,t,a)}sd(e,t,r);break;case 21:sd(e,t,r);break;case 22:r.mode&1?(xi=(n=xi)||r.memoizedState!==null,sd(e,t,r),xi=n):sd(e,t,r);break;default:sd(e,t,r)}}function Vq(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new uIe),t.forEach(function(n){var o=yIe.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function zu(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=s),n&=~i}if(n=o,n=lo()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*fIe(n/1960))-n,10e?16:e,Fd===null)var n=!1;else{if(e=Fd,Fd=null,Nk=0,Tr&6)throw Error(Ke(331));var o=Tr;for(Tr|=4,gt=e.current;gt!==null;){var i=gt,s=i.child;if(gt.flags&16){var a=i.deletions;if(a!==null){for(var u=0;ulo()-HL?Ih(e,0):zL|=r),Ds(e,t)}function vie(e,t){t===0&&(e.mode&1?(t=$S,$S<<=1,!($S&130023424)&&($S=4194304)):t=1);var r=os();e=yf(e,t),e!==null&&(z_(e,t,r),Ds(e,r))}function mIe(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),vie(e,r)}function yIe(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Ke(314))}n!==null&&n.delete(t),vie(e,r)}var mie;mie=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Rs.current)Is=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Is=!1,iIe(e,t,r);Is=!!(e.flags&131072)}else Is=!1,Nn&&t.flags&1048576&&_oe(t,Ek,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;vA(e,t),e=t.pendingProps;var o=Ag(t,Di.current);eg(t,r),o=DL(null,t,n,e,o,r);var i=FL();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Os(n)?(i=!0,bk(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,IL(t),o.updater=lT,t.stateNode=o,o._reactInternals=t,FF(t,n,e,r),t=LF(null,t,n,!0,i,r)):(t.tag=0,Nn&&i&&EL(t),Ki(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(vA(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=_Ie(n),e=Gu(n,e),o){case 0:t=MF(null,t,n,e,r);break e;case 1:t=Pq(null,t,n,e,r);break e;case 11:t=Hq(null,t,n,e,r);break e;case 14:t=$q(null,t,n,Gu(n.type,e),r);break e}throw Error(Ke(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Gu(n,o),MF(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Gu(n,o),Pq(e,t,n,o,r);case 3:e:{if(eie(t),e===null)throw Error(Ke(387));n=t.pendingProps,i=t.memoizedState,o=i.element,Aoe(e,t),Ak(t,n,null,r);var s=t.memoizedState;if(n=s.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Ig(Error(Ke(423)),t),t=qq(e,t,n,r,o);break e}else if(n!==o){o=Ig(Error(Ke(424)),t),t=qq(e,t,n,r,o);break e}else for(la=Wd(t.stateNode.containerInfo.firstChild),ha=t,Nn=!0,Xu=null,r=Ioe(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(kg(),n===o){t=bf(e,t,r);break e}Ki(e,t,n,r)}t=t.child}return t;case 5:return Coe(t),e===null&&RF(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,xF(n,o)?s=null:i!==null&&xF(n,i)&&(t.flags|=32),Joe(e,t),Ki(e,t,s,r),t.child;case 6:return e===null&&RF(t),null;case 13:return tie(e,t,r);case 4:return CL(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=xg(t,null,n,r):Ki(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Gu(n,o),Hq(e,t,n,o,r);case 7:return Ki(e,t,t.pendingProps,r),t.child;case 8:return Ki(e,t,t.pendingProps.children,r),t.child;case 12:return Ki(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,dn(Sk,n._currentValue),n._currentValue=s,i!==null)if(sl(i.value,s)){if(i.children===o.children&&!Rs.current){t=bf(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var u=a.firstContext;u!==null;){if(u.context===n){if(i.tag===1){u=df(-1,r&-r),u.tag=2;var l=i.updateQueue;if(l!==null){l=l.shared;var c=l.pending;c===null?u.next=u:(u.next=c.next,c.next=u),l.pending=u}}i.lanes|=r,u=i.alternate,u!==null&&(u.lanes|=r),OF(i.return,r,t),a.lanes|=r;break}u=u.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(Ke(341));s.lanes|=r,a=s.alternate,a!==null&&(a.lanes|=r),OF(s,r,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Ki(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,eg(t,r),o=pu(o),n=n(o),t.flags|=1,Ki(e,t,n,r),t.child;case 14:return n=t.type,o=Gu(n,t.pendingProps),o=Gu(n.type,o),$q(e,t,n,o,r);case 15:return Qoe(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Gu(n,o),vA(e,t),t.tag=1,Os(n)?(e=!0,bk(t)):e=!1,eg(t,r),xoe(t,n,o),FF(t,n,o,r),LF(null,t,n,!0,e,r);case 19:return rie(e,t,r);case 22:return Zoe(e,t,r)}throw Error(Ke(156,t.tag))};function yie(e,t){return Wne(e,t)}function bIe(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nu(e,t,r,n){return new bIe(e,t,r,n)}function WL(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _Ie(e){if(typeof e=="function")return WL(e)?1:0;if(e!=null){if(e=e.$$typeof,e===lL)return 11;if(e===cL)return 14}return 2}function Ud(e,t){var r=e.alternate;return r===null?(r=nu(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function bA(e,t,r,n,o,i){var s=2;if(n=e,typeof e=="function")WL(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case A0:return Ch(r.children,o,i,t);case uL:s=8,o|=8;break;case oF:return e=nu(12,r,t,o|2),e.elementType=oF,e.lanes=i,e;case iF:return e=nu(13,r,t,o),e.elementType=iF,e.lanes=i,e;case sF:return e=nu(19,r,t,o),e.elementType=sF,e.lanes=i,e;case Tne:return hT(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case kne:s=10;break e;case xne:s=9;break e;case lL:s=11;break e;case cL:s=14;break e;case Ed:s=16,n=null;break e}throw Error(Ke(130,e==null?e:typeof e,""))}return t=nu(s,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function Ch(e,t,r,n){return e=nu(7,e,n,t),e.lanes=r,e}function hT(e,t,r,n){return e=nu(22,e,n,t),e.elementType=Tne,e.lanes=r,e.stateNode={isHidden:!1},e}function x2(e,t,r){return e=nu(6,e,null,t),e.lanes=r,e}function T2(e,t,r){return t=nu(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function EIe(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=a2(0),this.expirationTimes=a2(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=a2(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function KL(e,t,r,n,o,i,s,a,u){return e=new EIe(e,t,r,a,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=nu(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},IL(i),e}function SIe(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Sie)}catch(e){console.error(e)}}Sie(),_ne.exports=xa;var li=_ne.exports;const ry=Lf(li);var TIe=bc(),IIe=ds(function(e,t){return L_(_e(_e({},e),{rtl:t}))}),CIe=function(e){var t=e.theme,r=e.dir,n=Ji(t)?"rtl":"ltr",o=Ji()?"rtl":"ltr",i=r||n;return{rootDir:i!==n||i!==o?i:r,needsTheme:i!==n}},wie=k.forwardRef(function(e,t){var r=e.className,n=e.theme,o=e.applyTheme,i=e.applyThemeToBody,s=e.styles,a=TIe(s,{theme:n,applyTheme:o,className:r}),u=k.useRef(null);return RIe(i,a,u),k.createElement(k.Fragment,null,NIe(e,a,u,t))});wie.displayName="FabricBase";function NIe(e,t,r,n){var o=t.root,i=e.as,s=i===void 0?"div":i,a=e.dir,u=e.theme,l=Ri(e,uv,["dir"]),c=CIe(e),f=c.rootDir,d=c.needsTheme,h=k.createElement(tne,{providerRef:r},k.createElement(s,_e({dir:f},l,{className:o,ref:ac(r,n)})));return d&&(h=k.createElement(qke,{settings:{theme:IIe(u,a==="rtl")}},h)),h}function RIe(e,t,r){var n=t.bodyThemed;return k.useEffect(function(){if(e){var o=as(r.current);if(o)return o.body.classList.add(n),function(){o.body.classList.remove(n)}}},[n,e,r]),r}var I2={fontFamily:"inherit"},OIe={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},DIe=function(e){var t=e.applyTheme,r=e.className,n=e.preventBlanketFontInheritance,o=e.theme,i=Ec(OIe,o);return{root:[i.root,o.fonts.medium,{color:o.palette.neutralPrimary},!n&&{"& button":I2,"& input":I2,"& textarea":I2},t&&{color:o.semanticColors.bodyText,backgroundColor:o.semanticColors.bodyBackground},r],bodyThemed:[{backgroundColor:o.semanticColors.bodyBackground}]}},FIe=_c(wie,DIe,void 0,{scope:"Fabric"}),jy={},YL={},Aie="fluent-default-layer-host",BIe="#".concat(Aie);function MIe(e,t){jy[e]||(jy[e]=[]),jy[e].push(t);var r=YL[e];if(r)for(var n=0,o=r;n=0&&(r.splice(n,1),r.length===0&&delete jy[e])}var o=YL[e];if(o)for(var i=0,s=o;i0&&t.current.naturalHeight>0||t.current.complete&&QIe.test(i):!1;f&&u(Yi.loaded)}}),k.useEffect(function(){r==null||r(a)},[a]);var l=k.useCallback(function(f){n==null||n(f),i&&u(Yi.loaded)},[i,n]),c=k.useCallback(function(f){o==null||o(f),u(Yi.error)},[o]);return[a,l,c]}var Iie=k.forwardRef(function(e,t){var r=k.useRef(),n=k.useRef(),o=JIe(e,n),i=o[0],s=o[1],a=o[2],u=Ri(e,Jke,["width","height"]),l=e.src,c=e.alt,f=e.width,d=e.height,h=e.shouldFadeIn,g=h===void 0?!0:h,v=e.shouldStartVisible,y=e.className,E=e.imageFit,_=e.role,S=e.maximizeFrame,b=e.styles,A=e.theme,T=e.loading,x=e2e(e,i,n,r),C=XIe(b,{theme:A,className:y,width:f,height:d,maximizeFrame:S,shouldFadeIn:g,shouldStartVisible:v,isLoaded:i===Yi.loaded||i===Yi.notLoaded&&e.shouldStartVisible,isLandscape:x===Fb.landscape,isCenter:E===As.center,isCenterContain:E===As.centerContain,isCenterCover:E===As.centerCover,isContain:E===As.contain,isCover:E===As.cover,isNone:E===As.none,isError:i===Yi.error,isNotImageFit:E===void 0});return k.createElement("div",{className:C.root,style:{width:f,height:d},ref:r},k.createElement("img",_e({},u,{onLoad:s,onError:a,key:ZIe+e.src||"",className:C.image,ref:ac(n,t),src:l,alt:c,role:_,loading:T})))});Iie.displayName="ImageBase";function e2e(e,t,r,n){var o=k.useRef(t),i=k.useRef();return(i===void 0||o.current===Yi.notLoaded&&t===Yi.loaded)&&(i.current=t2e(e,t,r,n)),o.current=t,i.current}function t2e(e,t,r,n){var o=e.imageFit,i=e.width,s=e.height;if(e.coverStyle!==void 0)return e.coverStyle;if(t===Yi.loaded&&(o===As.cover||o===As.contain||o===As.centerContain||o===As.centerCover)&&r.current&&n.current){var a=void 0;typeof i=="number"&&typeof s=="number"&&o!==As.centerContain&&o!==As.centerCover?a=i/s:a=n.current.clientWidth/n.current.clientHeight;var u=r.current.naturalWidth/r.current.naturalHeight;if(u>a)return Fb.landscape}return Fb.portrait}var r2e={root:"ms-Image",rootMaximizeFrame:"ms-Image--maximizeFrame",image:"ms-Image-image",imageCenter:"ms-Image-image--center",imageContain:"ms-Image-image--contain",imageCover:"ms-Image-image--cover",imageCenterContain:"ms-Image-image--centerContain",imageCenterCover:"ms-Image-image--centerCover",imageNone:"ms-Image-image--none",imageLandscape:"ms-Image-image--landscape",imagePortrait:"ms-Image-image--portrait"},n2e=function(e){var t=e.className,r=e.width,n=e.height,o=e.maximizeFrame,i=e.isLoaded,s=e.shouldFadeIn,a=e.shouldStartVisible,u=e.isLandscape,l=e.isCenter,c=e.isContain,f=e.isCover,d=e.isCenterContain,h=e.isCenterCover,g=e.isNone,v=e.isError,y=e.isNotImageFit,E=e.theme,_=Ec(r2e,E),S={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},b=co(),A=b!==void 0&&b.navigator.msMaxTouchPoints===void 0,T=c&&u||f&&!u?{width:"100%",height:"auto"}:{width:"auto",height:"100%"};return{root:[_.root,E.fonts.medium,{overflow:"hidden"},o&&[_.rootMaximizeFrame,{height:"100%",width:"100%"}],i&&s&&!a&&Qm.fadeIn400,(l||c||f||d||h)&&{position:"relative"},t],image:[_.image,{display:"block",opacity:0},i&&["is-loaded",{opacity:1}],l&&[_.imageCenter,S],c&&[_.imageContain,A&&{width:"100%",height:"100%",objectFit:"contain"},!A&&T,!A&&S],f&&[_.imageCover,A&&{width:"100%",height:"100%",objectFit:"cover"},!A&&T,!A&&S],d&&[_.imageCenterContain,u&&{maxWidth:"100%"},!u&&{maxHeight:"100%"},S],h&&[_.imageCenterCover,u&&{maxHeight:"100%"},!u&&{maxWidth:"100%"},S],g&&[_.imageNone,{width:"auto",height:"auto"}],y&&[!!r&&!n&&{height:"auto",width:"100%"},!r&&!!n&&{height:"100%",width:"auto"},!!r&&!!n&&{height:"100%",width:"100%"}],u&&_.imageLandscape,!u&&_.imagePortrait,!i&&"is-notLoaded",s&&"is-fadeIn",v&&"is-error"]}},Cie=_c(Iie,n2e,void 0,{scope:"Image"},!0);Cie.displayName="Image";var zy=hi({root:{display:"inline-block"},placeholder:["ms-Icon-placeHolder",{width:"1em"}],image:["ms-Icon-imageContainer",{overflow:"hidden"}]}),o2e="ms-Icon",i2e=function(e){var t=e.className,r=e.iconClassName,n=e.isPlaceholder,o=e.isImage,i=e.styles;return{root:[n&&zy.placeholder,zy.root,o&&zy.image,r,t,i&&i.root,i&&i.imageContainer]}},Nie=ds(function(e){var t=yxe(e)||{subset:{},code:void 0},r=t.code,n=t.subset;return r?{children:r,iconClassName:n.className,fontFamily:n.fontFace&&n.fontFace.fontFamily,mergeImageProps:n.mergeImageProps}:null},void 0,!0),s2e=function(e){var t=e.iconName,r=e.className,n=e.style,o=n===void 0?{}:n,i=Nie(t)||{},s=i.iconClassName,a=i.children,u=i.fontFamily,l=i.mergeImageProps,c=Ri(e,po),f=e["aria-label"]||e.title,d=e["aria-label"]||e["aria-labelledby"]||e.title?{role:l?void 0:"img"}:{"aria-hidden":!0},h=a;return l&&typeof a=="object"&&typeof a.props=="object"&&f&&(h=k.cloneElement(a,{alt:f})),k.createElement("i",_e({"data-icon-name":t},d,c,l?{title:void 0,"aria-label":void 0}:{},{className:i1(o2e,zy.root,s,!t&&zy.placeholder,r),style:_e({fontFamily:u},o)}),h)};ds(function(e,t,r){return s2e({iconName:e,className:t,"aria-label":r})});var a2e=bc({cacheSize:100}),u2e=function(e){yc(t,e);function t(r){var n=e.call(this,r)||this;return n._onImageLoadingStateChange=function(o){n.props.imageProps&&n.props.imageProps.onLoadingStateChange&&n.props.imageProps.onLoadingStateChange(o),o===Yi.error&&n.setState({imageLoadError:!0})},n.state={imageLoadError:!1},n}return t.prototype.render=function(){var r=this.props,n=r.children,o=r.className,i=r.styles,s=r.iconName,a=r.imageErrorAs,u=r.theme,l=typeof s=="string"&&s.length===0,c=!!this.props.imageProps||this.props.iconType===Dk.image||this.props.iconType===Dk.Image,f=Nie(s)||{},d=f.iconClassName,h=f.children,g=f.mergeImageProps,v=a2e(i,{theme:u,className:o,iconClassName:d,isImage:c,isPlaceholder:l}),y=c?"span":"i",E=Ri(this.props,po,["aria-label"]),_=this.state.imageLoadError,S=_e(_e({},this.props.imageProps),{onLoadingStateChange:this._onImageLoadingStateChange}),b=_&&a||Cie,A=this.props["aria-label"]||this.props.ariaLabel,T=S.alt||A||this.props.title,x=!!(T||this.props["aria-labelledby"]||S["aria-label"]||S["aria-labelledby"]),C=x?{role:c||g?void 0:"img","aria-label":c||g?void 0:T}:{"aria-hidden":!0},I=h;return g&&h&&typeof h=="object"&&T&&(I=k.cloneElement(h,{alt:T})),k.createElement(y,_e({"data-icon-name":s},C,E,g?{title:void 0,"aria-label":void 0}:{},{className:v.root}),c?k.createElement(b,_e({},S)):n||I)},t}(k.Component),Ng=_c(u2e,i2e,void 0,{scope:"Icon"},!0);Ng.displayName="Icon";var YF={none:0,all:1,inputOnly:2},Wi;(function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"})(Wi||(Wi={}));var ew="data-is-focusable",l2e="data-disable-click-on-enter",C2="data-focuszone-id",Cl="tabindex",N2="data-no-vertical-wrap",R2="data-no-horizontal-wrap",O2=999999999,km=-999999999,D2,c2e="ms-FocusZone";function f2e(e,t){var r;typeof MouseEvent=="function"?r=new MouseEvent("click",{ctrlKey:t==null?void 0:t.ctrlKey,metaKey:t==null?void 0:t.metaKey,shiftKey:t==null?void 0:t.shiftKey,altKey:t==null?void 0:t.altKey,bubbles:t==null?void 0:t.bubbles,cancelable:t==null?void 0:t.cancelable}):(r=document.createEvent("MouseEvents"),r.initMouseEvent("click",t?t.bubbles:!1,t?t.cancelable:!1,window,0,0,0,0,0,t?t.ctrlKey:!1,t?t.altKey:!1,t?t.shiftKey:!1,t?t.metaKey:!1,0,null)),e.dispatchEvent(r)}function d2e(){return D2||(D2=mr({selectors:{":focus":{outline:"none"}}},c2e)),D2}var xm={},tw=new Set,h2e=["text","number","password","email","tel","url","search","textarea"],Kc=!1,p2e=function(e){yc(t,e);function t(r){var n=this,o,i,s,a;n=e.call(this,r)||this,n._root=k.createRef(),n._mergedRef=vxe(),n._onFocus=function(l){if(!n._portalContainsElement(l.target)){var c=n.props,f=c.onActiveElementChanged,d=c.doNotAllowFocusEventToPropagate,h=c.stopFocusPropagation,g=c.onFocusNotification,v=c.onFocus,y=c.shouldFocusInnerElementWhenReceivedFocus,E=c.defaultTabbableElement,_=n._isImmediateDescendantOfZone(l.target),S;if(_)S=l.target;else for(var b=l.target;b&&b!==n._root.current;){if(jl(b)&&n._isImmediateDescendantOfZone(b)){S=b;break}b=Ml(b,Kc)}if(y&&l.target===n._root.current){var A=E&&typeof E=="function"&&n._root.current&&E(n._root.current);A&&jl(A)?(S=A,A.focus()):(n.focus(!0),n._activeElement&&(S=null))}var T=!n._activeElement;S&&S!==n._activeElement&&((_||T)&&n._setFocusAlignment(S,!0,!0),n._activeElement=S,T&&n._updateTabIndexes()),f&&f(n._activeElement,l),(h||d)&&l.stopPropagation(),v?v(l):g&&g()}},n._onBlur=function(){n._setParkedFocus(!1)},n._onMouseDown=function(l){if(!n._portalContainsElement(l.target)){var c=n.props.disabled;if(!c){for(var f=l.target,d=[];f&&f!==n._root.current;)d.push(f),f=Ml(f,Kc);for(;d.length&&(f=d.pop(),f&&jl(f)&&n._setActiveElement(f,!0),!Qc(f)););}}},n._onKeyDown=function(l,c){if(!n._portalContainsElement(l.target)){var f=n.props,d=f.direction,h=f.disabled,g=f.isInnerZoneKeystroke,v=f.pagingSupportDisabled,y=f.shouldEnterInnerZone;if(!h&&(n.props.onKeyDown&&n.props.onKeyDown(l),!l.isDefaultPrevented()&&!(n._getDocument().activeElement===n._root.current&&n._isInnerZone))){if((y&&y(l)||g&&g(l))&&n._isImmediateDescendantOfZone(l.target)){var E=n._getFirstInnerZone();if(E){if(!E.focus(!0))return}else if(tL(l.target)){if(!n.focusElement(Vi(l.target,l.target.firstChild,!0)))return}else return}else{if(l.altKey)return;switch(l.which){case Kt.space:if(n._shouldRaiseClicksOnSpace&&n._tryInvokeClickForFocusable(l.target,l))break;return;case Kt.left:if(d!==Wi.vertical&&(n._preventDefaultWhenHandled(l),n._moveFocusLeft(c)))break;return;case Kt.right:if(d!==Wi.vertical&&(n._preventDefaultWhenHandled(l),n._moveFocusRight(c)))break;return;case Kt.up:if(d!==Wi.horizontal&&(n._preventDefaultWhenHandled(l),n._moveFocusUp()))break;return;case Kt.down:if(d!==Wi.horizontal&&(n._preventDefaultWhenHandled(l),n._moveFocusDown()))break;return;case Kt.pageDown:if(!v&&n._moveFocusPaging(!0))break;return;case Kt.pageUp:if(!v&&n._moveFocusPaging(!1))break;return;case Kt.tab:if(n.props.allowTabKey||n.props.handleTabKey===YF.all||n.props.handleTabKey===YF.inputOnly&&n._isElementInput(l.target)){var _=!1;if(n._processingTabKey=!0,d===Wi.vertical||!n._shouldWrapFocus(n._activeElement,R2))_=l.shiftKey?n._moveFocusUp():n._moveFocusDown();else{var S=Ji(c)?!l.shiftKey:l.shiftKey;_=S?n._moveFocusLeft(c):n._moveFocusRight(c)}if(n._processingTabKey=!1,_)break;n.props.shouldResetActiveElementWhenTabFromZone&&(n._activeElement=null)}return;case Kt.home:if(n._isContentEditableElement(l.target)||n._isElementInput(l.target)&&!n._shouldInputLoseFocus(l.target,!1))return!1;var b=n._root.current&&n._root.current.firstChild;if(n._root.current&&b&&n.focusElement(Vi(n._root.current,b,!0)))break;return;case Kt.end:if(n._isContentEditableElement(l.target)||n._isElementInput(l.target)&&!n._shouldInputLoseFocus(l.target,!0))return!1;var A=n._root.current&&n._root.current.lastChild;if(n._root.current&&n.focusElement(Ss(n._root.current,A,!0,!0,!0)))break;return;case Kt.enter:if(n._shouldRaiseClicksOnEnter&&n._tryInvokeClickForFocusable(l.target,l))break;return;default:return}}l.preventDefault(),l.stopPropagation()}}},n._getHorizontalDistanceFromCenter=function(l,c,f){var d=n._focusAlignment.left||n._focusAlignment.x||0,h=Math.floor(f.top),g=Math.floor(c.bottom),v=Math.floor(f.bottom),y=Math.floor(c.top),E=l&&h>g,_=!l&&v=f.left&&d<=f.left+f.width?0:Math.abs(f.left+f.width/2-d):n._shouldWrapFocus(n._activeElement,N2)?O2:km},Xx(n),n._id=zh("FocusZone"),n._focusAlignment={left:0,top:0},n._processingTabKey=!1;var u=(i=(o=r.shouldRaiseClicks)!==null&&o!==void 0?o:t.defaultProps.shouldRaiseClicks)!==null&&i!==void 0?i:!0;return n._shouldRaiseClicksOnEnter=(s=r.shouldRaiseClicksOnEnter)!==null&&s!==void 0?s:u,n._shouldRaiseClicksOnSpace=(a=r.shouldRaiseClicksOnSpace)!==null&&a!==void 0?a:u,n}return t.getOuterZones=function(){return tw.size},t._onKeyDownCapture=function(r){r.which===Kt.tab&&tw.forEach(function(n){return n._updateTabIndexes()})},t.prototype.componentDidMount=function(){var r=this._root.current;if(xm[this._id]=this,r){for(var n=Ml(r,Kc);n&&n!==this._getDocument().body&&n.nodeType===1;){if(Qc(n)){this._isInnerZone=!0;break}n=Ml(n,Kc)}this._isInnerZone||(tw.add(this),this._root.current&&this._root.current.addEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&typeof this.props.defaultTabbableElement=="string"?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},t.prototype.componentDidUpdate=function(){var r=this._root.current,n=this._getDocument();if((this._activeElement&&!Ts(this._root.current,this._activeElement,Kc)||this._defaultFocusElement&&!Ts(this._root.current,this._defaultFocusElement,Kc))&&(this._activeElement=null,this._defaultFocusElement=null,this._updateTabIndexes()),!this.props.preventFocusRestoration&&n&&this._lastIndexPath&&(n.activeElement===n.body||n.activeElement===null||n.activeElement===r)){var o=xke(r,this._lastIndexPath);o?(this._setActiveElement(o,!0),o.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},t.prototype.componentWillUnmount=function(){delete xm[this._id],this._isInnerZone||(tw.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},t.prototype.render=function(){var r=this,n=this.props,o=n.as,i=n.elementType,s=n.rootProps,a=n.ariaDescribedBy,u=n.ariaLabelledBy,l=n.className,c=Ri(this.props,po),f=o||i||"div";this._evaluateFocusBeforeRender();var d=wTe();return k.createElement(f,_e({"aria-labelledby":u,"aria-describedby":a},c,s,{className:i1(d2e(),l),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(h){return r._onKeyDown(h,d)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},t.prototype.focus=function(r,n){if(r===void 0&&(r=!1),n===void 0&&(n=!1),this._root.current)if(!r&&this._root.current.getAttribute(ew)==="true"&&this._isInnerZone){var o=this._getOwnerZone(this._root.current);if(o!==this._root.current){var i=xm[o.getAttribute(C2)];return!!i&&i.focusElement(this._root.current)}return!1}else{if(!r&&this._activeElement&&Ts(this._root.current,this._activeElement)&&jl(this._activeElement)&&(!n||Gre(this._activeElement)))return this._activeElement.focus(),!0;var s=this._root.current.firstChild;return this.focusElement(Vi(this._root.current,s,!0,void 0,void 0,void 0,void 0,void 0,n))}return!1},t.prototype.focusLast=function(){if(this._root.current){var r=this._root.current&&this._root.current.lastChild;return this.focusElement(Ss(this._root.current,r,!0,!0,!0))}return!1},t.prototype.focusElement=function(r,n){var o=this.props,i=o.onBeforeFocus,s=o.shouldReceiveFocus;return s&&!s(r)||i&&!i(r)?!1:r?(this._setActiveElement(r,n),this._activeElement&&this._activeElement.focus(),!0):!1},t.prototype.setFocusAlignment=function(r){this._focusAlignment=r},Object.defineProperty(t.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),t.prototype._evaluateFocusBeforeRender=function(){var r=this._root.current,n=this._getDocument();if(n){var o=n.activeElement;if(o!==r){var i=Ts(r,o,!1);this._lastIndexPath=i?Tke(r,o):void 0}}},t.prototype._setParkedFocus=function(r){var n=this._root.current;n&&this._isParked!==r&&(this._isParked=r,r?(this.props.allowFocusRoot||(this._parkedTabIndex=n.getAttribute("tabindex"),n.setAttribute("tabindex","-1")),n.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(n.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):n.removeAttribute("tabindex")))},t.prototype._setActiveElement=function(r,n){var o=this._activeElement;this._activeElement=r,o&&(Qc(o)&&this._updateTabIndexes(o),o.tabIndex=-1),this._activeElement&&((!this._focusAlignment||n)&&this._setFocusAlignment(r,!0,!0),this._activeElement.tabIndex=0)},t.prototype._preventDefaultWhenHandled=function(r){this.props.preventDefaultWhenHandled&&r.preventDefault()},t.prototype._tryInvokeClickForFocusable=function(r,n){var o=r;if(o===this._root.current)return!1;do{if(o.tagName==="BUTTON"||o.tagName==="A"||o.tagName==="INPUT"||o.tagName==="TEXTAREA"||o.tagName==="SUMMARY")return!1;if(this._isImmediateDescendantOfZone(o)&&o.getAttribute(ew)==="true"&&o.getAttribute(l2e)!=="true")return f2e(o,n),!0;o=Ml(o,Kc)}while(o!==this._root.current);return!1},t.prototype._getFirstInnerZone=function(r){if(r=r||this._activeElement||this._root.current,!r)return null;if(Qc(r))return xm[r.getAttribute(C2)];for(var n=r.firstElementChild;n;){if(Qc(n))return xm[n.getAttribute(C2)];var o=this._getFirstInnerZone(n);if(o)return o;n=n.nextElementSibling}return null},t.prototype._moveFocus=function(r,n,o,i){i===void 0&&(i=!0);var s=this._activeElement,a=-1,u=void 0,l=!1,c=this.props.direction===Wi.bidirectional;if(!s||!this._root.current||this._isElementInput(s)&&!this._shouldInputLoseFocus(s,r))return!1;var f=c?s.getBoundingClientRect():null;do if(s=r?Vi(this._root.current,s):Ss(this._root.current,s),c){if(s){var d=s.getBoundingClientRect(),h=n(f,d);if(h===-1&&a===-1){u=s;break}if(h>-1&&(a===-1||h=0&&h<0)break}}else{u=s;break}while(s);if(u&&u!==this._activeElement)l=!0,this.focusElement(u);else if(this.props.isCircularNavigation&&i)return r?this.focusElement(Vi(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(Ss(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return l},t.prototype._moveFocusDown=function(){var r=this,n=-1,o=this._focusAlignment.left||this._focusAlignment.x||0;return this._moveFocus(!0,function(i,s){var a=-1,u=Math.floor(s.top),l=Math.floor(i.bottom);return u=l||u===n)&&(n=u,o>=s.left&&o<=s.left+s.width?a=0:a=Math.abs(s.left+s.width/2-o)),a)})?(this._setFocusAlignment(this._activeElement,!1,!0),!0):!1},t.prototype._moveFocusUp=function(){var r=this,n=-1,o=this._focusAlignment.left||this._focusAlignment.x||0;return this._moveFocus(!1,function(i,s){var a=-1,u=Math.floor(s.bottom),l=Math.floor(s.top),c=Math.floor(i.top);return u>c?r._shouldWrapFocus(r._activeElement,N2)?O2:km:((n===-1&&u<=c||l===n)&&(n=l,o>=s.left&&o<=s.left+s.width?a=0:a=Math.abs(s.left+s.width/2-o)),a)})?(this._setFocusAlignment(this._activeElement,!1,!0),!0):!1},t.prototype._moveFocusLeft=function(r){var n=this,o=this._shouldWrapFocus(this._activeElement,R2);return this._moveFocus(Ji(r),function(i,s){var a=-1,u;return Ji(r)?u=parseFloat(s.top.toFixed(3))parseFloat(i.top.toFixed(3)),u&&s.right<=i.right&&n.props.direction!==Wi.vertical?a=i.right-s.right:o||(a=km),a},void 0,o)?(this._setFocusAlignment(this._activeElement,!0,!1),!0):!1},t.prototype._moveFocusRight=function(r){var n=this,o=this._shouldWrapFocus(this._activeElement,R2);return this._moveFocus(!Ji(r),function(i,s){var a=-1,u;return Ji(r)?u=parseFloat(s.bottom.toFixed(3))>parseFloat(i.top.toFixed(3)):u=parseFloat(s.top.toFixed(3))=i.left&&n.props.direction!==Wi.vertical?a=s.left-i.left:o||(a=km),a},void 0,o)?(this._setFocusAlignment(this._activeElement,!0,!1),!0):!1},t.prototype._moveFocusPaging=function(r,n){n===void 0&&(n=!0);var o=this._activeElement;if(!o||!this._root.current||this._isElementInput(o)&&!this._shouldInputLoseFocus(o,r))return!1;var i=$re(o);if(!i)return!1;var s=-1,a=void 0,u=-1,l=-1,c=i.clientHeight,f=o.getBoundingClientRect();do if(o=r?Vi(this._root.current,o):Ss(this._root.current,o),o){var d=o.getBoundingClientRect(),h=Math.floor(d.top),g=Math.floor(f.bottom),v=Math.floor(d.bottom),y=Math.floor(f.top),E=this._getHorizontalDistanceFromCenter(r,f,d),_=r&&h>g+c,S=!r&&v-1&&(r&&h>u?(u=h,s=E,a=o):!r&&v-1){var o=r.selectionStart,i=r.selectionEnd,s=o!==i,a=r.value,u=r.readOnly;if(s||o>0&&!n&&!u||o!==a.length&&n&&!u||this.props.handleTabKey&&!(this.props.shouldInputLoseFocusOnArrowKey&&this.props.shouldInputLoseFocusOnArrowKey(r)))return!1}return!0},t.prototype._shouldWrapFocus=function(r,n){return this.props.checkForNoWrap?Vre(r,n):!0},t.prototype._portalContainsElement=function(r){return r&&!!this._root.current&&pke(r,this._root.current)},t.prototype._getDocument=function(){return as(this._root.current)},t.defaultProps={isCircularNavigation:!1,direction:Wi.bidirectional,shouldRaiseClicks:!0},t}(k.Component),Ai;(function(e){e[e.Normal=0]="Normal",e[e.Divider=1]="Divider",e[e.Header=2]="Header",e[e.Section=3]="Section"})(Ai||(Ai={}));function Rg(e){return e.canCheck?!!(e.isChecked||e.checked):typeof e.isChecked=="boolean"?e.isChecked:typeof e.checked=="boolean"?e.checked:null}function _f(e){return!!(e.subMenuProps||e.items)}function Xl(e){return!!(e.isDisabled||e.disabled)}function Rie(e){var t=Rg(e),r=t!==null;return r?"menuitemcheckbox":"menuitem"}var tW=function(e){var t=e.item,r=e.classNames,n=t.iconProps;return k.createElement(Ng,_e({},n,{className:r.icon}))},g2e=function(e){var t=e.item,r=e.hasIcons;return r?t.onRenderIcon?t.onRenderIcon(e,tW):tW(e):null},v2e=function(e){var t=e.onCheckmarkClick,r=e.item,n=e.classNames,o=Rg(r);if(t){var i=function(s){return t(r,s)};return k.createElement(Ng,{iconName:r.canCheck!==!1&&o?"CheckMark":"",className:n.checkmarkIcon,onClick:i})}return null},m2e=function(e){var t=e.item,r=e.classNames;return t.text||t.name?k.createElement("span",{className:r.label},t.text||t.name):null},y2e=function(e){var t=e.item,r=e.classNames;return t.secondaryText?k.createElement("span",{className:r.secondaryText},t.secondaryText):null},b2e=function(e){var t=e.item,r=e.classNames,n=e.theme;return _f(t)?k.createElement(Ng,_e({iconName:Ji(n)?"ChevronLeft":"ChevronRight"},t.submenuIconProps,{className:r.subMenuIcon})):null},_2e=function(e){yc(t,e);function t(r){var n=e.call(this,r)||this;return n.openSubMenu=function(){var o=n.props,i=o.item,s=o.openSubMenu,a=o.getSubmenuTarget;if(a){var u=a();_f(i)&&s&&u&&s(i,u)}},n.dismissSubMenu=function(){var o=n.props,i=o.item,s=o.dismissSubMenu;_f(i)&&s&&s()},n.dismissMenu=function(o){var i=n.props.dismissMenu;i&&i(void 0,o)},Xx(n),n}return t.prototype.render=function(){var r=this.props,n=r.item,o=r.classNames,i=n.onRenderContent||this._renderLayout;return k.createElement("div",{className:n.split?o.linkContentMenu:o.linkContent},i(this.props,{renderCheckMarkIcon:v2e,renderItemIcon:g2e,renderItemName:m2e,renderSecondaryText:y2e,renderSubMenuIcon:b2e}))},t.prototype._renderLayout=function(r,n){return k.createElement(k.Fragment,null,n.renderCheckMarkIcon(r),n.renderItemIcon(r),n.renderItemName(r),n.renderSecondaryText(r),n.renderSubMenuIcon(r))},t}(k.Component),E2e=ds(function(e){return hi({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:e.palette.neutralTertiaryAlt}})}),wd=36,rW=sne(0,ine),S2e=ds(function(e){var t,r,n,o,i,s=e.semanticColors,a=e.fonts,u=e.palette,l=s.menuItemBackgroundHovered,c=s.menuItemTextHovered,f=s.menuItemBackgroundPressed,d=s.bodyDivider,h={item:[a.medium,{color:s.bodyText,position:"relative",boxSizing:"border-box"}],divider:{display:"block",height:"1px",backgroundColor:d,position:"relative"},root:[$P(e),a.medium,{color:s.bodyText,backgroundColor:"transparent",border:"none",width:"100%",height:wd,lineHeight:wd,display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:s.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:(t={},t[Y0]={color:"GrayText",opacity:1},t)},rootHovered:{backgroundColor:l,color:c,selectors:{".ms-ContextualMenu-icon":{color:u.themeDarkAlt},".ms-ContextualMenu-submenuIcon":{color:u.neutralPrimary}}},rootFocused:{backgroundColor:u.white},rootChecked:{selectors:{".ms-ContextualMenu-checkmarkIcon":{color:u.neutralPrimary}}},rootPressed:{backgroundColor:f,selectors:{".ms-ContextualMenu-icon":{color:u.themeDark},".ms-ContextualMenu-submenuIcon":{color:u.neutralPrimary}}},rootExpanded:{backgroundColor:f,color:s.bodyTextChecked,selectors:(r={".ms-ContextualMenu-submenuIcon":(n={},n[Y0]={color:"inherit"},n)},r[Y0]=_e({},dTe()),r)},linkContent:{whiteSpace:"nowrap",height:"inherit",display:"flex",alignItems:"center",maxWidth:"100%"},anchorLink:{padding:"0px 8px 0 4px",textRendering:"auto",color:"inherit",letterSpacing:"normal",wordSpacing:"normal",textTransform:"none",textIndent:"0px",textShadow:"none",textDecoration:"none",boxSizing:"border-box"},label:{margin:"0 4px",verticalAlign:"middle",display:"inline-block",flexGrow:"1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},secondaryText:{color:e.palette.neutralSecondary,paddingLeft:"20px",textAlign:"right"},icon:{display:"inline-block",minHeight:"1px",maxHeight:wd,fontSize:_d.medium,width:_d.medium,margin:"0 4px",verticalAlign:"middle",flexShrink:"0",selectors:(o={},o[rW]={fontSize:_d.large,width:_d.large},o)},iconColor:{color:s.menuIcon},iconDisabled:{color:s.disabledBodyText},checkmarkIcon:{color:s.bodySubtext},subMenuIcon:{height:wd,lineHeight:wd,color:u.neutralSecondary,textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:_d.small,selectors:(i={":hover":{color:u.neutralPrimary},":active":{color:u.neutralPrimary}},i[rW]={fontSize:_d.medium},i)},splitButtonFlexContainer:[$P(e),{display:"flex",height:wd,flexWrap:"nowrap",justifyContent:"center",alignItems:"flex-start"}]};return B_(h)}),nW="28px",w2e=sne(0,ine),A2e=ds(function(e){var t;return hi(E2e(e),{wrapper:{position:"absolute",right:28,selectors:(t={},t[w2e]={right:32},t)},divider:{height:16,width:1}})}),k2e={item:"ms-ContextualMenu-item",divider:"ms-ContextualMenu-divider",root:"ms-ContextualMenu-link",isChecked:"is-checked",isExpanded:"is-expanded",isDisabled:"is-disabled",linkContent:"ms-ContextualMenu-linkContent",linkContentMenu:"ms-ContextualMenu-linkContent",icon:"ms-ContextualMenu-icon",iconColor:"ms-ContextualMenu-iconColor",checkmarkIcon:"ms-ContextualMenu-checkmarkIcon",subMenuIcon:"ms-ContextualMenu-submenuIcon",label:"ms-ContextualMenu-itemText",secondaryText:"ms-ContextualMenu-secondaryText",splitMenu:"ms-ContextualMenu-splitMenu",screenReaderText:"ms-ContextualMenu-screenReaderText"},x2e=ds(function(e,t,r,n,o,i,s,a,u,l,c,f){var d,h,g,v,y=S2e(e),E=Ec(k2e,e);return hi({item:[E.item,y.item,s],divider:[E.divider,y.divider,a],root:[E.root,y.root,n&&[E.isChecked,y.rootChecked],o&&y.anchorLink,r&&[E.isExpanded,y.rootExpanded],t&&[E.isDisabled,y.rootDisabled],!t&&!r&&[{selectors:(d={":hover":y.rootHovered,":active":y.rootPressed},d[".".concat(wi," &:focus, .").concat(wi," &:focus:hover")]=y.rootFocused,d[".".concat(wi," &:hover")]={background:"inherit;"},d)}],f],splitPrimary:[y.root,{width:"calc(100% - ".concat(nW,")")},n&&["is-checked",y.rootChecked],(t||c)&&["is-disabled",y.rootDisabled],!(t||c)&&!n&&[{selectors:(h={":hover":y.rootHovered},h[":hover ~ .".concat(E.splitMenu)]=y.rootHovered,h[":active"]=y.rootPressed,h[".".concat(wi," &:focus, .").concat(wi," &:focus:hover")]=y.rootFocused,h[".".concat(wi," &:hover")]={background:"inherit;"},h)}]],splitMenu:[E.splitMenu,y.root,{flexBasis:"0",padding:"0 8px",minWidth:nW},r&&["is-expanded",y.rootExpanded],t&&["is-disabled",y.rootDisabled],!t&&!r&&[{selectors:(g={":hover":y.rootHovered,":active":y.rootPressed},g[".".concat(wi," &:focus, .").concat(wi," &:focus:hover")]=y.rootFocused,g[".".concat(wi," &:hover")]={background:"inherit;"},g)}]],anchorLink:y.anchorLink,linkContent:[E.linkContent,y.linkContent],linkContentMenu:[E.linkContentMenu,y.linkContent,{justifyContent:"center"}],icon:[E.icon,i&&y.iconColor,y.icon,u,t&&[E.isDisabled,y.iconDisabled]],iconColor:y.iconColor,checkmarkIcon:[E.checkmarkIcon,i&&y.checkmarkIcon,y.icon,u],subMenuIcon:[E.subMenuIcon,y.subMenuIcon,l,r&&{color:e.palette.neutralPrimary},t&&[y.iconDisabled]],label:[E.label,y.label],secondaryText:[E.secondaryText,y.secondaryText],splitContainer:[y.splitButtonFlexContainer,!t&&!n&&[{selectors:(v={},v[".".concat(wi," &:focus, .").concat(wi," &:focus:hover")]=y.rootFocused,v)}]],screenReaderText:[E.screenReaderText,y.screenReaderText,pTe,{visibility:"hidden"}]})}),Oie=function(e){var t=e.theme,r=e.disabled,n=e.expanded,o=e.checked,i=e.isAnchorLink,s=e.knownIcon,a=e.itemClassName,u=e.dividerClassName,l=e.iconClassName,c=e.subMenuClassName,f=e.primaryDisabled,d=e.className;return x2e(t,r,n,o,i,s,a,u,l,c,f,d)},Bb=_c(_2e,Oie,void 0,{scope:"ContextualMenuItem"}),XL=function(e){yc(t,e);function t(r){var n=e.call(this,r)||this;return n._onItemMouseEnter=function(o){var i=n.props,s=i.item,a=i.onItemMouseEnter;a&&a(s,o,o.currentTarget)},n._onItemClick=function(o){var i=n.props,s=i.item,a=i.onItemClickBase;a&&a(s,o,o.currentTarget)},n._onItemMouseLeave=function(o){var i=n.props,s=i.item,a=i.onItemMouseLeave;a&&a(s,o)},n._onItemKeyDown=function(o){var i=n.props,s=i.item,a=i.onItemKeyDown;a&&a(s,o)},n._onItemMouseMove=function(o){var i=n.props,s=i.item,a=i.onItemMouseMove;a&&a(s,o,o.currentTarget)},n._getSubmenuTarget=function(){},Xx(n),n}return t.prototype.shouldComponentUpdate=function(r){return!Z6(r,this.props)},t}(k.Component),T2e="ktp",oW="-",I2e="data-ktp-target",C2e="data-ktp-execute-target",N2e="ktp-layer-id",Dl;(function(e){e.KEYTIP_ADDED="keytipAdded",e.KEYTIP_REMOVED="keytipRemoved",e.KEYTIP_UPDATED="keytipUpdated",e.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",e.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",e.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",e.ENTER_KEYTIP_MODE="enterKeytipMode",e.EXIT_KEYTIP_MODE="exitKeytipMode"})(Dl||(Dl={}));var R2e=function(){function e(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return e.getInstance=function(){return this._instance},e.prototype.init=function(t){this.delayUpdatingKeytipChange=t},e.prototype.register=function(t,r){r===void 0&&(r=!1);var n=t;r||(n=this.addParentOverflow(t),this.sequenceMapping[n.keySequences.toString()]=n);var o=this._getUniqueKtp(n);if(r?this.persistedKeytips[o.uniqueID]=o:this.keytips[o.uniqueID]=o,this.inKeytipMode||!this.delayUpdatingKeytipChange){var i=r?Dl.PERSISTED_KEYTIP_ADDED:Dl.KEYTIP_ADDED;bd.raise(this,i,{keytip:n,uniqueID:o.uniqueID})}return o.uniqueID},e.prototype.update=function(t,r){var n=this.addParentOverflow(t),o=this._getUniqueKtp(n,r),i=this.keytips[r];i&&(o.keytip.visible=i.keytip.visible,this.keytips[r]=o,delete this.sequenceMapping[i.keytip.keySequences.toString()],this.sequenceMapping[o.keytip.keySequences.toString()]=o.keytip,(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&bd.raise(this,Dl.KEYTIP_UPDATED,{keytip:o.keytip,uniqueID:o.uniqueID}))},e.prototype.unregister=function(t,r,n){n===void 0&&(n=!1),n?delete this.persistedKeytips[r]:delete this.keytips[r],!n&&delete this.sequenceMapping[t.keySequences.toString()];var o=n?Dl.PERSISTED_KEYTIP_REMOVED:Dl.KEYTIP_REMOVED;(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&bd.raise(this,o,{keytip:t,uniqueID:r})},e.prototype.enterKeytipMode=function(){bd.raise(this,Dl.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){bd.raise(this,Dl.EXIT_KEYTIP_MODE)},e.prototype.getKeytips=function(){var t=this;return Object.keys(this.keytips).map(function(r){return t.keytips[r].keytip})},e.prototype.addParentOverflow=function(t){var r=il([],t.keySequences,!0);if(r.pop(),r.length!==0){var n=this.sequenceMapping[r.toString()];if(n&&n.overflowSetSequence)return _e(_e({},t),{overflowSetSequence:n.overflowSetSequence})}return t},e.prototype.menuExecute=function(t,r){bd.raise(this,Dl.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:t,keytipSequences:r})},e.prototype._getUniqueKtp=function(t,r){return r===void 0&&(r=zh()),{keytip:_e({},t),uniqueID:r}},e._instance=new e,e}();function Die(e){return e.reduce(function(t,r){return t+oW+r.split("").join(oW)},T2e)}function O2e(e,t){var r=t.length,n=il([],t,!0).pop(),o=il([],e,!0);return ske(o,r-1,n)}function D2e(e){var t=" "+N2e;return e.length?t+" "+Die(e):t}function F2e(e){var t=k.useRef(),r=e.keytipProps?_e({disabled:e.disabled},e.keytipProps):void 0,n=ec(R2e.getInstance()),o=nL(e);_g(function(){t.current&&r&&((o==null?void 0:o.keytipProps)!==e.keytipProps||(o==null?void 0:o.disabled)!==e.disabled)&&n.update(r,t.current)}),_g(function(){return r&&(t.current=n.register(r)),function(){r&&n.unregister(r,t.current)}},[]);var i={ariaDescribedBy:void 0,keytipId:void 0};return r&&(i=B2e(n,r,e.ariaDescribedBy)),i}function B2e(e,t,r){var n=e.addParentOverflow(t),o=Ux(r,D2e(n.keySequences)),i=il([],n.keySequences,!0);n.overflowSetSequence&&(i=O2e(i,n.overflowSetSequence));var s=Die(i);return{ariaDescribedBy:o,keytipId:s}}var QL=function(e){var t,r=e.children,n=av(e,["children"]),o=F2e(n),i=o.keytipId,s=o.ariaDescribedBy;return r((t={},t[I2e]=i,t[C2e]=i,t["aria-describedby"]=s,t))},M2e=function(e){yc(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._anchor=k.createRef(),r._getMemoizedMenuButtonKeytipProps=ds(function(n){return _e(_e({},n),{hasMenu:!0})}),r._getSubmenuTarget=function(){return r._anchor.current?r._anchor.current:void 0},r._onItemClick=function(n){var o=r.props,i=o.item,s=o.onItemClick;s&&s(i,n)},r._renderAriaDescription=function(n,o){return n?k.createElement("span",{id:r._ariaDescriptionId,className:o},n):null},r}return t.prototype.render=function(){var r=this,n=this.props,o=n.item,i=n.classNames,s=n.index,a=n.focusableElementIndex,u=n.totalItemCount,l=n.hasCheckmarks,c=n.hasIcons,f=n.expandedMenuItemKey,d=n.onItemClick,h=n.openSubMenu,g=n.dismissSubMenu,v=n.dismissMenu,y=Bb;this.props.item.contextualMenuItemAs&&(y=Zu(this.props.item.contextualMenuItemAs,y)),this.props.contextualMenuItemAs&&(y=Zu(this.props.contextualMenuItemAs,y));var E=o.rel;o.target&&o.target.toLowerCase()==="_blank"&&(E=E||"nofollow noopener noreferrer");var _=_f(o),S=Ri(o,Zke),b=Xl(o),A=o.itemProps,T=o.ariaDescription,x=o.keytipProps;x&&_&&(x=this._getMemoizedMenuButtonKeytipProps(x)),T&&(this._ariaDescriptionId=zh());var C=Ux(o.ariaDescribedBy,T?this._ariaDescriptionId:void 0,S["aria-describedby"]),I={"aria-describedby":C};return k.createElement("div",null,k.createElement(QL,{keytipProps:o.keytipProps,ariaDescribedBy:C,disabled:b},function(R){return k.createElement("a",_e({},I,S,R,{ref:r._anchor,href:o.href,target:o.target,rel:E,className:i.root,role:"menuitem","aria-haspopup":_||void 0,"aria-expanded":_?o.key===f:void 0,"aria-posinset":a+1,"aria-setsize":u,"aria-disabled":Xl(o),style:o.style,onClick:r._onItemClick,onMouseEnter:r._onItemMouseEnter,onMouseLeave:r._onItemMouseLeave,onMouseMove:r._onItemMouseMove,onKeyDown:_?r._onItemKeyDown:void 0}),k.createElement(y,_e({componentRef:o.componentRef,item:o,classNames:i,index:s,onCheckmarkClick:l&&d?d:void 0,hasIcons:c,openSubMenu:h,dismissSubMenu:g,dismissMenu:v,getSubmenuTarget:r._getSubmenuTarget},A)),r._renderAriaDescription(T,i.screenReaderText))}))},t}(XL),L2e=function(e){yc(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._btn=k.createRef(),r._getMemoizedMenuButtonKeytipProps=ds(function(n){return _e(_e({},n),{hasMenu:!0})}),r._renderAriaDescription=function(n,o){return n?k.createElement("span",{id:r._ariaDescriptionId,className:o},n):null},r._getSubmenuTarget=function(){return r._btn.current?r._btn.current:void 0},r}return t.prototype.render=function(){var r=this,n=this.props,o=n.item,i=n.classNames,s=n.index,a=n.focusableElementIndex,u=n.totalItemCount,l=n.hasCheckmarks,c=n.hasIcons,f=n.contextualMenuItemAs,d=n.expandedMenuItemKey,h=n.onItemMouseDown,g=n.onItemClick,v=n.openSubMenu,y=n.dismissSubMenu,E=n.dismissMenu,_=Bb;o.contextualMenuItemAs&&(_=Zu(o.contextualMenuItemAs,_)),f&&(_=Zu(f,_));var S=Rg(o),b=S!==null,A=Rie(o),T=_f(o),x=o.itemProps,C=o.ariaLabel,I=o.ariaDescription,R=Ri(o,bg);delete R.disabled;var D=o.role||A;I&&(this._ariaDescriptionId=zh());var L=Ux(o.ariaDescribedBy,I?this._ariaDescriptionId:void 0,R["aria-describedby"]),M={className:i.root,onClick:this._onItemClick,onKeyDown:T?this._onItemKeyDown:void 0,onMouseEnter:this._onItemMouseEnter,onMouseLeave:this._onItemMouseLeave,onMouseDown:function(z){return h?h(o,z):void 0},onMouseMove:this._onItemMouseMove,href:o.href,title:o.title,"aria-label":C,"aria-describedby":L,"aria-haspopup":T||void 0,"aria-expanded":T?o.key===d:void 0,"aria-posinset":a+1,"aria-setsize":u,"aria-disabled":Xl(o),"aria-checked":(D==="menuitemcheckbox"||D==="menuitemradio")&&b?!!S:void 0,"aria-selected":D==="menuitem"&&b?!!S:void 0,role:D,style:o.style},q=o.keytipProps;return q&&T&&(q=this._getMemoizedMenuButtonKeytipProps(q)),k.createElement(QL,{keytipProps:q,ariaDescribedBy:L,disabled:Xl(o)},function(z){return k.createElement("button",_e({ref:r._btn},R,M,z),k.createElement(_,_e({componentRef:o.componentRef,item:o,classNames:i,index:s,onCheckmarkClick:l&&g?g:void 0,hasIcons:c,openSubMenu:v,dismissSubMenu:y,dismissMenu:E,getSubmenuTarget:r._getSubmenuTarget},x)),r._renderAriaDescription(I,i.screenReaderText))})},t}(XL),j2e=function(e){var t=e.theme,r=e.getClassNames,n=e.className;if(!t)throw new Error("Theme is undefined or null.");if(r){var o=r(t);return{wrapper:[o.wrapper],divider:[o.divider]}}return{wrapper:[{display:"inline-flex",height:"100%",alignItems:"center"},n],divider:[{width:1,height:"100%",backgroundColor:t.palette.neutralTertiaryAlt}]}},z2e=bc(),Fie=k.forwardRef(function(e,t){var r=e.styles,n=e.theme,o=e.getClassNames,i=e.className,s=z2e(r,{theme:n,getClassNames:o,className:i});return k.createElement("span",{className:s.wrapper,ref:t},k.createElement("span",{className:s.divider}))});Fie.displayName="VerticalDividerBase";var H2e=_c(Fie,j2e,void 0,{scope:"VerticalDivider"}),$2e=500,P2e=function(e){yc(t,e);function t(r){var n=e.call(this,r)||this;return n._getMemoizedMenuButtonKeytipProps=ds(function(o){return _e(_e({},o),{hasMenu:!0})}),n._onItemKeyDown=function(o){var i=n.props,s=i.item,a=i.onItemKeyDown;o.which===Kt.enter?(n._executeItemClick(o),o.preventDefault(),o.stopPropagation()):a&&a(s,o)},n._getSubmenuTarget=function(){return n._splitButton},n._renderAriaDescription=function(o,i){return o?k.createElement("span",{id:n._ariaDescriptionId,className:i},o):null},n._onItemMouseEnterPrimary=function(o){var i=n.props,s=i.item,a=i.onItemMouseEnter;a&&a(_e(_e({},s),{subMenuProps:void 0,items:void 0}),o,n._splitButton)},n._onItemMouseEnterIcon=function(o){var i=n.props,s=i.item,a=i.onItemMouseEnter;a&&a(s,o,n._splitButton)},n._onItemMouseMovePrimary=function(o){var i=n.props,s=i.item,a=i.onItemMouseMove;a&&a(_e(_e({},s),{subMenuProps:void 0,items:void 0}),o,n._splitButton)},n._onItemMouseMoveIcon=function(o){var i=n.props,s=i.item,a=i.onItemMouseMove;a&&a(s,o,n._splitButton)},n._onIconItemClick=function(o){var i=n.props,s=i.item,a=i.onItemClickBase;a&&a(s,o,n._splitButton?n._splitButton:o.currentTarget)},n._executeItemClick=function(o){var i=n.props,s=i.item,a=i.executeItemClick,u=i.onItemClick;if(!(s.disabled||s.isDisabled)){if(n._processingTouch&&!s.canCheck&&u)return u(s,o);a&&a(s,o)}},n._onTouchStart=function(o){n._splitButton&&!("onpointerdown"in n._splitButton)&&n._handleTouchAndPointerEvent(o)},n._onPointerDown=function(o){o.pointerType==="touch"&&(n._handleTouchAndPointerEvent(o),o.preventDefault(),o.stopImmediatePropagation())},n._async=new Lre(n),n._events=new bd(n),n._dismissLabelId=zh(),n}return t.prototype.componentDidMount=function(){this._splitButton&&"onpointerdown"in this._splitButton&&this._events.on(this._splitButton,"pointerdown",this._onPointerDown,!0)},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.render=function(){var r=this,n,o=this.props,i=o.item,s=o.classNames,a=o.index,u=o.focusableElementIndex,l=o.totalItemCount,c=o.hasCheckmarks,f=o.hasIcons,d=o.onItemMouseLeave,h=o.expandedMenuItemKey,g=_f(i),v=i.keytipProps;v&&(v=this._getMemoizedMenuButtonKeytipProps(v));var y=i.ariaDescription;y&&(this._ariaDescriptionId=zh());var E=(n=Rg(i))!==null&&n!==void 0?n:void 0;return k.createElement(QL,{keytipProps:v,disabled:Xl(i)},function(_){return k.createElement("div",{"data-ktp-target":_["data-ktp-target"],ref:function(S){return r._splitButton=S},role:Rie(i),"aria-label":i.ariaLabel,className:s.splitContainer,"aria-disabled":Xl(i),"aria-expanded":g?i.key===h:void 0,"aria-haspopup":!0,"aria-describedby":Ux(i.ariaDescribedBy,y?r._ariaDescriptionId:void 0,_["aria-describedby"]),"aria-checked":E,"aria-posinset":u+1,"aria-setsize":l,onMouseEnter:r._onItemMouseEnterPrimary,onMouseLeave:d?d.bind(r,_e(_e({},i),{subMenuProps:null,items:null})):void 0,onMouseMove:r._onItemMouseMovePrimary,onKeyDown:r._onItemKeyDown,onClick:r._executeItemClick,onTouchStart:r._onTouchStart,tabIndex:0,"data-is-focusable":!0,"aria-roledescription":i["aria-roledescription"]},r._renderSplitPrimaryButton(i,s,a,c,f),r._renderSplitDivider(i),r._renderSplitIconButton(i,s,a,_),r._renderAriaDescription(y,s.screenReaderText))})},t.prototype._renderSplitPrimaryButton=function(r,n,o,i,s){var a=this.props,u=a.contextualMenuItemAs,l=u===void 0?Bb:u,c=a.onItemClick,f={key:r.key,disabled:Xl(r)||r.primaryDisabled,name:r.name,text:r.text||r.name,secondaryText:r.secondaryText,className:n.splitPrimary,canCheck:r.canCheck,isChecked:r.isChecked,checked:r.checked,iconProps:r.iconProps,id:this._dismissLabelId,onRenderIcon:r.onRenderIcon,data:r.data,"data-is-focusable":!1},d=r.itemProps;return k.createElement("button",_e({},Ri(f,bg)),k.createElement(l,_e({"data-is-focusable":!1,item:f,classNames:n,index:o,onCheckmarkClick:i&&c?c:void 0,hasIcons:s},d)))},t.prototype._renderSplitDivider=function(r){var n=r.getSplitButtonVerticalDividerClassNames||A2e;return k.createElement(H2e,{getClassNames:n})},t.prototype._renderSplitIconButton=function(r,n,o,i){var s=this.props,a=s.onItemMouseLeave,u=s.onItemMouseDown,l=s.openSubMenu,c=s.dismissSubMenu,f=s.dismissMenu,d=Bb;this.props.item.contextualMenuItemAs&&(d=Zu(this.props.item.contextualMenuItemAs,d)),this.props.contextualMenuItemAs&&(d=Zu(this.props.contextualMenuItemAs,d));var h={onClick:this._onIconItemClick,disabled:Xl(r),className:n.splitMenu,subMenuProps:r.subMenuProps,submenuIconProps:r.submenuIconProps,split:!0,key:r.key,"aria-labelledby":this._dismissLabelId},g=_e(_e({},Ri(h,bg)),{onMouseEnter:this._onItemMouseEnterIcon,onMouseLeave:a?a.bind(this,r):void 0,onMouseDown:function(y){return u?u(r,y):void 0},onMouseMove:this._onItemMouseMoveIcon,"data-is-focusable":!1,"data-ktp-execute-target":i["data-ktp-execute-target"],"aria-haspopup":!0}),v=r.itemProps;return k.createElement("button",_e({},g),k.createElement(d,_e({componentRef:r.componentRef,item:h,classNames:n,index:o,hasIcons:!1,openSubMenu:l,dismissSubMenu:c,dismissMenu:f,getSubmenuTarget:this._getSubmenuTarget},v)))},t.prototype._handleTouchAndPointerEvent=function(r){var n=this,o=this.props.onTap;o&&o(r),this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout(function(){n._processingTouch=!1,n._lastTouchTimeoutId=void 0},$2e)},t}(XL),Og;(function(e){e[e.small=0]="small",e[e.medium=1]="medium",e[e.large=2]="large",e[e.xLarge=3]="xLarge",e[e.xxLarge=4]="xxLarge",e[e.xxxLarge=5]="xxxLarge",e[e.unknown=999]="unknown"})(Og||(Og={}));var q2e=[479,639,1023,1365,1919,99999999],F2,Bie;function Mie(){var e;return(e=F2??Bie)!==null&&e!==void 0?e:Og.large}function W2e(e){try{return e.document.documentElement.clientWidth}catch{return e.innerWidth}}function K2e(e){var t=Og.small;if(e){try{for(;W2e(e)>q2e[t];)t++}catch{t=Mie()}Bie=t}else throw new Error("Content was rendered in a server environment without providing a default responsive mode. Call setResponsiveMode to define what the responsive mode is.");return t}var Lie=function(e,t){var r=k.useState(Mie()),n=r[0],o=r[1],i=k.useCallback(function(){var a=K2e(co(e.current));n!==a&&o(a)},[e,n]),s=j_();return vb(s,"resize",i),k.useEffect(function(){t===void 0&&i()},[t]),t??n},G2e=k.createContext({}),V2e=bc(),U2e=bc(),Y2e={items:[],shouldFocusOnMount:!0,gapSpace:0,directionalHint:yo.bottomAutoEdge,beakWidth:16};function iW(e){for(var t=0,r=0,n=e;r0){var Rt=0;return k.createElement("li",{role:"presentation",key:Z.key||Le.key||"section-".concat(H)},k.createElement("div",_e({},ae),k.createElement("ul",{className:Q.list,role:"presentation"},Z.topDivider&&Oe(H,Y,!0,!0),ie&&it(ie,Le.key||H,Y,Le.title),Z.items.map(function(St,_t){var Wt=me(St,_t,Rt,iW(Z.items),P,B,Q);if(St.itemType!==Ai.Divider&&St.itemType!==Ai.Header){var $r=St.customOnRenderListLength?St.customOnRenderListLength:1;Rt+=$r}return Wt}),Z.bottomDivider&&Oe(H,Y,!1,!0))))}}},it=function(Le,Y,Q,H){return k.createElement("li",{role:"presentation",title:H,key:Y,className:Q.item},Le)},Oe=function(Le,Y,Q,H){return H||Le>0?k.createElement("li",{role:"separator",key:"separator-"+Le+(Q===void 0?"":Q?"-top":"-bottom"),className:Y.divider,"aria-hidden":"true"}):null},Qe=function(Le,Y,Q,H,P,B,Z){if(Le.onRender)return Le.onRender(_e({"aria-posinset":H+1,"aria-setsize":P},Le),u);var ie=o.contextualMenuItemAs,ae={item:Le,classNames:Y,index:Q,focusableElementIndex:H,totalItemCount:P,hasCheckmarks:B,hasIcons:Z,contextualMenuItemAs:ie,onItemMouseEnter:X,onItemMouseLeave:ee,onItemMouseMove:J,onItemMouseDown:aCe,executeItemClick:Se,onItemKeyDown:K,expandedMenuItemKey:g,openSubMenu:v,dismissSubMenu:E,dismissMenu:u};if(Le.href){var ne=M2e;return Le.contextualMenuItemWrapperAs&&(ne=Zu(Le.contextualMenuItemWrapperAs,ne)),k.createElement(ne,_e({},ae,{onItemClick:ge}))}if(Le.split&&_f(Le)){var ye=P2e;return Le.contextualMenuItemWrapperAs&&(ye=Zu(Le.contextualMenuItemWrapperAs,ye)),k.createElement(ye,_e({},ae,{onItemClick:fe,onItemClickBase:Ee,onTap:R}))}var qe=L2e;return Le.contextualMenuItemWrapperAs&&(qe=Zu(Le.contextualMenuItemWrapperAs,qe)),k.createElement(qe,_e({},ae,{onItemClick:fe,onItemClickBase:Ee}))},Fe=function(Le,Y,Q,H,P,B){var Z=Bb;Le.contextualMenuItemAs&&(Z=Zu(Le.contextualMenuItemAs,Z)),o.contextualMenuItemAs&&(Z=Zu(o.contextualMenuItemAs,Z));var ie=Le.itemProps,ae=Le.id,ne=ie&&Ri(ie,uv);return k.createElement("div",_e({id:ae,className:Q.header},ne,{style:Le.style}),k.createElement(Z,_e({item:Le,classNames:Y,index:H,onCheckmarkClick:P?fe:void 0,hasIcons:B},ie)))},Ze=o.isBeakVisible,$e=o.items,Ge=o.labelElementId,kt=o.id,$t=o.className,bt=o.beakWidth,Je=o.directionalHint,ot=o.directionalHintForRTL,ir=o.alignTargetEdge,he=o.gapSpace,ue=o.coverTarget,se=o.ariaLabel,pe=o.doNotLayer,Ne=o.target,Be=o.bounds,Ae=o.useTargetWidth,Ie=o.useTargetAsMinWidth,Pe=o.directionalHintFixed,lt=o.shouldFocusOnMount,mt=o.shouldFocusOnContainer,Ct=o.title,dr=o.styles,Cr=o.theme,Bt=o.calloutProps,qr=o.onRenderSubMenu,cn=qr===void 0?aW:qr,er=o.onRenderMenuList,Nt=er===void 0?function(Le,Y){return ve(Le,Kr)}:er,Wr=o.focusZoneProps,Nr=o.getMenuClassNames,Kr=Nr?Nr(Cr,$t):V2e(dr,{theme:Cr,className:$t}),gr=Dt($e);function Dt(Le){for(var Y=0,Q=Le;Y0){var go=iW($e),Fa=Kr.subComponentStyles?Kr.subComponentStyles.callout:void 0;return k.createElement(G2e.Consumer,null,function(Le){return k.createElement(Tie,_e({styles:Fa,onRestoreFocus:d},Bt,{target:Ne||Le.target,isBeakVisible:Ze,beakWidth:bt,directionalHint:Je,directionalHintForRTL:ot,gapSpace:he,coverTarget:ue,doNotLayer:pe,className:i1("ms-ContextualMenu-Callout",Bt&&Bt.className),setInitialFocus:lt,onDismiss:o.onDismiss||Le.onDismiss,onScroll:x,bounds:Be,directionalHintFixed:Pe,alignTargetEdge:ir,hidden:o.hidden||Le.hidden,ref:t}),k.createElement("div",{style:Io,ref:i,id:kt,className:Kr.container,tabIndex:mt?0:-1,onKeyDown:$,onKeyUp:F,onFocusCapture:A,"aria-label":se,"aria-labelledby":Ge,role:"menu"},Ct&&k.createElement("div",{className:Kr.title}," ",Ct," "),$e&&$e.length?we(Nt({ariaLabel:se,items:$e,totalItemCount:go,hasCheckmarks:Ue,hasIcons:gr,defaultMenuItemRenderer:function(Y){return xe(Y,Kr)},labelElementId:Ge},function(Y,Q){return ve(Y,Kr)}),dt):null,Gr&&cn(Gr,aW)),k.createElement(sxe,null))})}else return null}),function(e,t){return!t.shouldUpdateWhenHidden&&e.hidden&&t.hidden?!0:Z6(e,t)});$ie.displayName="ContextualMenuBase";function sW(e){return e.which===Kt.alt||e.key==="Meta"}function aCe(e,t){var r;(r=e.onMouseDown)===null||r===void 0||r.call(e,e,t)}function aW(e,t){throw Error("ContextualMenuBase: onRenderSubMenu callback is null or undefined. Please ensure to set `onRenderSubMenu` property either manually or with `styled` helper.")}function Pie(e,t){for(var r=0,n=t;r=(F||Og.small)&&k.createElement(xie,_e({ref:ve},Ct),k.createElement(oL,_e({role:Pe?"alertdialog":"dialog",ariaLabelledBy:D,ariaDescribedBy:M,onDismiss:x,shouldRestoreFocus:!_,enableAriaHiddenSiblings:J,"aria-modal":!K},ee),k.createElement("div",{className:mt.root,role:K?void 0:"document"},!K&&k.createElement(vCe,_e({"aria-hidden":!0,isDarkThemed:T,onClick:S?void 0:x,allowTouchBodyScroll:u},I)),U?k.createElement(yCe,{handleSelector:U.dragHandleSelector||"#".concat(me),preventDragSelector:"button",onStart:cn,onDragChange:er,onStop:Nt,position:bt},gr):gr)))||null});Uie.displayName="Modal";var Yie=_c(Uie,fCe,void 0,{scope:"Modal",fields:["theme","styles","enableAriaHiddenSiblings"]});Yie.displayName="Modal";function wCe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons"',src:"url('".concat(e,"fabric-icons-a13498cf.woff') format('woff')")},icons:{GlobalNavButton:"",ChevronDown:"",ChevronUp:"",Edit:"",Add:"",Cancel:"",More:"",Settings:"",Mail:"",Filter:"",Search:"",Share:"",BlockedSite:"",FavoriteStar:"",FavoriteStarFill:"",CheckMark:"",Delete:"",ChevronLeft:"",ChevronRight:"",Calendar:"",Megaphone:"",Undo:"",Flag:"",Page:"",Pinned:"",View:"",Clear:"",Download:"",Upload:"",Folder:"",Sort:"",AlignRight:"",AlignLeft:"",Tag:"",AddFriend:"",Info:"",SortLines:"",List:"",CircleRing:"",Heart:"",HeartFill:"",Tiles:"",Embed:"",Glimmer:"",Ascending:"",Descending:"",SortUp:"",SortDown:"",SyncToPC:"",LargeGrid:"",SkypeCheck:"",SkypeClock:"",SkypeMinus:"",ClearFilter:"",Flow:"",StatusCircleCheckmark:"",MoreVertical:""}};Ao(r,t)}function ACe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-0"',src:"url('".concat(e,"fabric-icons-0-467ee27f.woff') format('woff')")},icons:{PageLink:"",CommentSolid:"",ChangeEntitlements:"",Installation:"",WebAppBuilderModule:"",WebAppBuilderFragment:"",WebAppBuilderSlot:"",BullseyeTargetEdit:"",WebAppBuilderFragmentCreate:"",PageData:"",PageHeaderEdit:"",ProductList:"",UnpublishContent:"",DependencyAdd:"",DependencyRemove:"",EntitlementPolicy:"",EntitlementRedemption:"",SchoolDataSyncLogo:"",PinSolid12:"",PinSolidOff12:"",AddLink:"",SharepointAppIcon16:"",DataflowsLink:"",TimePicker:"",UserWarning:"",ComplianceAudit:"",InternetSharing:"",Brightness:"",MapPin:"",Airplane:"",Tablet:"",QuickNote:"",Video:"",People:"",Phone:"",Pin:"",Shop:"",Stop:"",Link:"",AllApps:"",Zoom:"",ZoomOut:"",Microphone:"",Camera:"",Attach:"",Send:"",FavoriteList:"",PageSolid:"",Forward:"",Back:"",Refresh:"",Lock:"",ReportHacked:"",EMI:"",MiniLink:"",Blocked:"",ReadingMode:"",Favicon:"",Remove:"",Checkbox:"",CheckboxComposite:"",CheckboxFill:"",CheckboxIndeterminate:"",CheckboxCompositeReversed:"",BackToWindow:"",FullScreen:"",Print:"",Up:"",Down:"",OEM:"",Save:"",ReturnKey:"",Cloud:"",Flashlight:"",CommandPrompt:"",Sad:"",RealEstate:"",SIPMove:"",EraseTool:"",GripperTool:"",Dialpad:"",PageLeft:"",PageRight:"",MultiSelect:"",KeyboardClassic:"",Play:"",Pause:"",InkingTool:"",Emoji2:"",GripperBarHorizontal:"",System:"",Personalize:"",SearchAndApps:"",Globe:"",EaseOfAccess:"",ContactInfo:"",Unpin:"",Contact:"",Memo:"",IncomingCall:""}};Ao(r,t)}function kCe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-1"',src:"url('".concat(e,"fabric-icons-1-4d521695.woff') format('woff')")},icons:{Paste:"",WindowsLogo:"",Error:"",GripperBarVertical:"",Unlock:"",Slideshow:"",Trim:"",AutoEnhanceOn:"",AutoEnhanceOff:"",Color:"",SaveAs:"",Light:"",Filters:"",AspectRatio:"",Contrast:"",Redo:"",Crop:"",PhotoCollection:"",Album:"",Rotate:"",PanoIndicator:"",Translate:"",RedEye:"",ViewOriginal:"",ThumbnailView:"",Package:"",Telemarketer:"",Warning:"",Financial:"",Education:"",ShoppingCart:"",Train:"",Move:"",TouchPointer:"",Merge:"",TurnRight:"",Ferry:"",Highlight:"",PowerButton:"",Tab:"",Admin:"",TVMonitor:"",Speakers:"",Game:"",HorizontalTabKey:"",UnstackSelected:"",StackIndicator:"",Nav2DMapView:"",StreetsideSplitMinimize:"",Car:"",Bus:"",EatDrink:"",SeeDo:"",LocationCircle:"",Home:"",SwitcherStartEnd:"",ParkingLocation:"",IncidentTriangle:"",Touch:"",MapDirections:"",CaretHollow:"",CaretSolid:"",History:"",Location:"",MapLayers:"",SearchNearby:"",Work:"",Recent:"",Hotel:"",Bank:"",LocationDot:"",Dictionary:"",ChromeBack:"",FolderOpen:"",PinnedFill:"",RevToggleKey:"",USB:"",Previous:"",Next:"",Sync:"",Help:"",Emoji:"",MailForward:"",ClosePane:"",OpenPane:"",PreviewLink:"",ZoomIn:"",Bookmarks:"",Document:"",ProtectedDocument:"",OpenInNewWindow:"",MailFill:"",ViewAll:"",Switch:"",Rename:"",Go:"",Remote:"",SelectAll:"",Orientation:"",Import:""}};Ao(r,t)}function xCe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-2"',src:"url('".concat(e,"fabric-icons-2-63c99abf.woff') format('woff')")},icons:{Picture:"",ChromeClose:"",ShowResults:"",Message:"",CalendarDay:"",CalendarWeek:"",MailReplyAll:"",Read:"",Cut:"",PaymentCard:"",Copy:"",Important:"",MailReply:"",GotoToday:"",Font:"",FontColor:"",FolderFill:"",Permissions:"",DisableUpdates:"",Unfavorite:"",Italic:"",Underline:"",Bold:"",MoveToFolder:"",Dislike:"",Like:"",AlignCenter:"",OpenFile:"",ClearSelection:"",FontDecrease:"",FontIncrease:"",FontSize:"",CellPhone:"",RepeatOne:"",RepeatAll:"",Calculator:"",Library:"",PostUpdate:"",NewFolder:"",CalendarReply:"",UnsyncFolder:"",SyncFolder:"",BlockContact:"",Accept:"",BulletedList:"",Preview:"",News:"",Chat:"",Group:"",World:"",Comment:"",DockLeft:"",DockRight:"",Repair:"",Accounts:"",Street:"",RadioBullet:"",Stopwatch:"",Clock:"",WorldClock:"",AlarmClock:"",Photo:"",ActionCenter:"",Hospital:"",Timer:"",FullCircleMask:"",LocationFill:"",ChromeMinimize:"",ChromeRestore:"",Annotation:"",Fingerprint:"",Handwriting:"",ChromeFullScreen:"",Completed:"",Label:"",FlickDown:"",FlickUp:"",FlickLeft:"",FlickRight:"",MiniExpand:"",MiniContract:"",Streaming:"",MusicInCollection:"",OneDriveLogo:"",CompassNW:"",Code:"",LightningBolt:"",CalculatorMultiply:"",CalculatorAddition:"",CalculatorSubtract:"",CalculatorPercentage:"",CalculatorEqualTo:"",PrintfaxPrinterFile:"",StorageOptical:"",Communications:"",Headset:"",Health:"",Webcam2:"",FrontCamera:"",ChevronUpSmall:""}};Ao(r,t)}function TCe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-3"',src:"url('".concat(e,"fabric-icons-3-089e217a.woff') format('woff')")},icons:{ChevronDownSmall:"",ChevronLeftSmall:"",ChevronRightSmall:"",ChevronUpMed:"",ChevronDownMed:"",ChevronLeftMed:"",ChevronRightMed:"",Devices2:"",PC1:"",PresenceChickletVideo:"",Reply:"",HalfAlpha:"",ConstructionCone:"",DoubleChevronLeftMed:"",Volume0:"",Volume1:"",Volume2:"",Volume3:"",Chart:"",Robot:"",Manufacturing:"",LockSolid:"",FitPage:"",FitWidth:"",BidiLtr:"",BidiRtl:"",RightDoubleQuote:"",Sunny:"",CloudWeather:"",Cloudy:"",PartlyCloudyDay:"",PartlyCloudyNight:"",ClearNight:"",RainShowersDay:"",Rain:"",Thunderstorms:"",RainSnow:"",Snow:"",BlowingSnow:"",Frigid:"",Fog:"",Squalls:"",Duststorm:"",Unknown:"",Precipitation:"",Ribbon:"",AreaChart:"",Assign:"",FlowChart:"",CheckList:"",Diagnostic:"",Generate:"",LineChart:"",Equalizer:"",BarChartHorizontal:"",BarChartVertical:"",Freezing:"",FunnelChart:"",Processing:"",Quantity:"",ReportDocument:"",StackColumnChart:"",SnowShowerDay:"",HailDay:"",WorkFlow:"",HourGlass:"",StoreLogoMed20:"",TimeSheet:"",TriangleSolid:"",UpgradeAnalysis:"",VideoSolid:"",RainShowersNight:"",SnowShowerNight:"",Teamwork:"",HailNight:"",PeopleAdd:"",Glasses:"",DateTime2:"",Shield:"",Header1:"",PageAdd:"",NumberedList:"",PowerBILogo:"",Info2:"",MusicInCollectionFill:"",Asterisk:"",ErrorBadge:"",CircleFill:"",Record2:"",AllAppsMirrored:"",BookmarksMirrored:"",BulletedListMirrored:"",CaretHollowMirrored:"",CaretSolidMirrored:"",ChromeBackMirrored:"",ClearSelectionMirrored:"",ClosePaneMirrored:"",DockLeftMirrored:"",DoubleChevronLeftMedMirrored:"",GoMirrored:""}};Ao(r,t)}function ICe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-4"',src:"url('".concat(e,"fabric-icons-4-a656cc0a.woff') format('woff')")},icons:{HelpMirrored:"",ImportMirrored:"",ImportAllMirrored:"",ListMirrored:"",MailForwardMirrored:"",MailReplyMirrored:"",MailReplyAllMirrored:"",MiniContractMirrored:"",MiniExpandMirrored:"",OpenPaneMirrored:"",ParkingLocationMirrored:"",SendMirrored:"",ShowResultsMirrored:"",ThumbnailViewMirrored:"",Media:"",Devices3:"",Focus:"",VideoLightOff:"",Lightbulb:"",StatusTriangle:"",VolumeDisabled:"",Puzzle:"",EmojiNeutral:"",EmojiDisappointed:"",HomeSolid:"",Ringer:"",PDF:"",HeartBroken:"",StoreLogo16:"",MultiSelectMirrored:"",Broom:"",AddToShoppingList:"",Cocktails:"",Wines:"",Articles:"",Cycling:"",DietPlanNotebook:"",Pill:"",ExerciseTracker:"",HandsFree:"",Medical:"",Running:"",Weights:"",Trackers:"",AddNotes:"",AllCurrency:"",BarChart4:"",CirclePlus:"",Coffee:"",Cotton:"",Market:"",Money:"",PieDouble:"",PieSingle:"",RemoveFilter:"",Savings:"",Sell:"",StockDown:"",StockUp:"",Lamp:"",Source:"",MSNVideos:"",Cricket:"",Golf:"",Baseball:"",Soccer:"",MoreSports:"",AutoRacing:"",CollegeHoops:"",CollegeFootball:"",ProFootball:"",ProHockey:"",Rugby:"",SubstitutionsIn:"",Tennis:"",Arrivals:"",Design:"",Website:"",Drop:"",HistoricalWeather:"",SkiResorts:"",Snowflake:"",BusSolid:"",FerrySolid:"",AirplaneSolid:"",TrainSolid:"",Ticket:"",WifiWarning4:"",Devices4:"",AzureLogo:"",BingLogo:"",MSNLogo:"",OutlookLogoInverse:"",OfficeLogo:"",SkypeLogo:"",Door:"",EditMirrored:"",GiftCard:"",DoubleBookmark:"",StatusErrorFull:""}};Ao(r,t)}function CCe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-5"',src:"url('".concat(e,"fabric-icons-5-f95ba260.woff') format('woff')")},icons:{Certificate:"",FastForward:"",Rewind:"",Photo2:"",OpenSource:"",Movers:"",CloudDownload:"",Family:"",WindDirection:"",Bug:"",SiteScan:"",BrowserScreenShot:"",F12DevTools:"",CSS:"",JS:"",DeliveryTruck:"",ReminderPerson:"",ReminderGroup:"",ReminderTime:"",TabletMode:"",Umbrella:"",NetworkTower:"",CityNext:"",CityNext2:"",Section:"",OneNoteLogoInverse:"",ToggleFilled:"",ToggleBorder:"",SliderThumb:"",ToggleThumb:"",Documentation:"",Badge:"",Giftbox:"",VisualStudioLogo:"",HomeGroup:"",ExcelLogoInverse:"",WordLogoInverse:"",PowerPointLogoInverse:"",Cafe:"",SpeedHigh:"",Commitments:"",ThisPC:"",MusicNote:"",MicOff:"",PlaybackRate1x:"",EdgeLogo:"",CompletedSolid:"",AlbumRemove:"",MessageFill:"",TabletSelected:"",MobileSelected:"",LaptopSelected:"",TVMonitorSelected:"",DeveloperTools:"",Shapes:"",InsertTextBox:"",LowerBrightness:"",WebComponents:"",OfflineStorage:"",DOM:"",CloudUpload:"",ScrollUpDown:"",DateTime:"",Event:"",Cake:"",Org:"",PartyLeader:"",DRM:"",CloudAdd:"",AppIconDefault:"",Photo2Add:"",Photo2Remove:"",Calories:"",POI:"",AddTo:"",RadioBtnOff:"",RadioBtnOn:"",ExploreContent:"",Product:"",ProgressLoopInner:"",ProgressLoopOuter:"",Blocked2:"",FangBody:"",Toolbox:"",PageHeader:"",ChatInviteFriend:"",Brush:"",Shirt:"",Crown:"",Diamond:"",ScaleUp:"",QRCode:"",Feedback:"",SharepointLogoInverse:"",YammerLogo:"",Hide:"",Uneditable:"",ReturnToSession:"",OpenFolderHorizontal:"",CalendarMirrored:""}};Ao(r,t)}function NCe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-6"',src:"url('".concat(e,"fabric-icons-6-ef6fd590.woff') format('woff')")},icons:{SwayLogoInverse:"",OutOfOffice:"",Trophy:"",ReopenPages:"",EmojiTabSymbols:"",AADLogo:"",AccessLogo:"",AdminALogoInverse32:"",AdminCLogoInverse32:"",AdminDLogoInverse32:"",AdminELogoInverse32:"",AdminLLogoInverse32:"",AdminMLogoInverse32:"",AdminOLogoInverse32:"",AdminPLogoInverse32:"",AdminSLogoInverse32:"",AdminYLogoInverse32:"",DelveLogoInverse:"",ExchangeLogoInverse:"",LyncLogo:"",OfficeVideoLogoInverse:"",SocialListeningLogo:"",VisioLogoInverse:"",Balloons:"",Cat:"",MailAlert:"",MailCheck:"",MailLowImportance:"",MailPause:"",MailRepeat:"",SecurityGroup:"",Table:"",VoicemailForward:"",VoicemailReply:"",Waffle:"",RemoveEvent:"",EventInfo:"",ForwardEvent:"",WipePhone:"",AddOnlineMeeting:"",JoinOnlineMeeting:"",RemoveLink:"",PeopleBlock:"",PeopleRepeat:"",PeopleAlert:"",PeoplePause:"",TransferCall:"",AddPhone:"",UnknownCall:"",NoteReply:"",NoteForward:"",NotePinned:"",RemoveOccurrence:"",Timeline:"",EditNote:"",CircleHalfFull:"",Room:"",Unsubscribe:"",Subscribe:"",HardDrive:"",RecurringTask:"",TaskManager:"",TaskManagerMirrored:"",Combine:"",Split:"",DoubleChevronUp:"",DoubleChevronLeft:"",DoubleChevronRight:"",TextBox:"",TextField:"",NumberField:"",Dropdown:"",PenWorkspace:"",BookingsLogo:"",ClassNotebookLogoInverse:"",DelveAnalyticsLogo:"",DocsLogoInverse:"",Dynamics365Logo:"",DynamicSMBLogo:"",OfficeAssistantLogo:"",OfficeStoreLogo:"",OneNoteEduLogoInverse:"",PlannerLogo:"",PowerApps:"",Suitcase:"",ProjectLogoInverse:"",CaretLeft8:"",CaretRight8:"",CaretUp8:"",CaretDown8:"",CaretLeftSolid8:"",CaretRightSolid8:"",CaretUpSolid8:"",CaretDownSolid8:"",ClearFormatting:"",Superscript:"",Subscript:"",Strikethrough:"",Export:"",ExportMirrored:""}};Ao(r,t)}function RCe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-7"',src:"url('".concat(e,"fabric-icons-7-2b97bb99.woff') format('woff')")},icons:{SingleBookmark:"",SingleBookmarkSolid:"",DoubleChevronDown:"",FollowUser:"",ReplyAll:"",WorkforceManagement:"",RecruitmentManagement:"",Questionnaire:"",ManagerSelfService:"",ProductionFloorManagement:"",ProductRelease:"",ProductVariant:"",ReplyMirrored:"",ReplyAllMirrored:"",Medal:"",AddGroup:"",QuestionnaireMirrored:"",CloudImportExport:"",TemporaryUser:"",CaretSolid16:"",GroupedDescending:"",GroupedAscending:"",AwayStatus:"",MyMoviesTV:"",GenericScan:"",AustralianRules:"",WifiEthernet:"",TrackersMirrored:"",DateTimeMirrored:"",StopSolid:"",DoubleChevronUp12:"",DoubleChevronDown12:"",DoubleChevronLeft12:"",DoubleChevronRight12:"",CalendarAgenda:"",ConnectVirtualMachine:"",AddEvent:"",AssetLibrary:"",DataConnectionLibrary:"",DocLibrary:"",FormLibrary:"",FormLibraryMirrored:"",ReportLibrary:"",ReportLibraryMirrored:"",ContactCard:"",CustomList:"",CustomListMirrored:"",IssueTracking:"",IssueTrackingMirrored:"",PictureLibrary:"",OfficeAddinsLogo:"",OfflineOneDriveParachute:"",OfflineOneDriveParachuteDisabled:"",TriangleSolidUp12:"",TriangleSolidDown12:"",TriangleSolidLeft12:"",TriangleSolidRight12:"",TriangleUp12:"",TriangleDown12:"",TriangleLeft12:"",TriangleRight12:"",ArrowUpRight8:"",ArrowDownRight8:"",DocumentSet:"",GoToDashboard:"",DelveAnalytics:"",ArrowUpRightMirrored8:"",ArrowDownRightMirrored8:"",CompanyDirectory:"",OpenEnrollment:"",CompanyDirectoryMirrored:"",OneDriveAdd:"",ProfileSearch:"",Header2:"",Header3:"",Header4:"",RingerSolid:"",Eyedropper:"",MarketDown:"",CalendarWorkWeek:"",SidePanel:"",GlobeFavorite:"",CaretTopLeftSolid8:"",CaretTopRightSolid8:"",ViewAll2:"",DocumentReply:"",PlayerSettings:"",ReceiptForward:"",ReceiptReply:"",ReceiptCheck:"",Fax:"",RecurringEvent:"",ReplyAlt:"",ReplyAllAlt:"",EditStyle:"",EditMail:"",Lifesaver:"",LifesaverLock:"",InboxCheck:"",FolderSearch:""}};Ao(r,t)}function OCe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-8"',src:"url('".concat(e,"fabric-icons-8-6fdf1528.woff') format('woff')")},icons:{CollapseMenu:"",ExpandMenu:"",Boards:"",SunAdd:"",SunQuestionMark:"",LandscapeOrientation:"",DocumentSearch:"",PublicCalendar:"",PublicContactCard:"",PublicEmail:"",PublicFolder:"",WordDocument:"",PowerPointDocument:"",ExcelDocument:"",GroupedList:"",ClassroomLogo:"",Sections:"",EditPhoto:"",Starburst:"",ShareiOS:"",AirTickets:"",PencilReply:"",Tiles2:"",SkypeCircleCheck:"",SkypeCircleClock:"",SkypeCircleMinus:"",SkypeMessage:"",ClosedCaption:"",ATPLogo:"",OfficeFormsLogoInverse:"",RecycleBin:"",EmptyRecycleBin:"",Hide2:"",Breadcrumb:"",BirthdayCake:"",TimeEntry:"",CRMProcesses:"",PageEdit:"",PageArrowRight:"",PageRemove:"",Database:"",DataManagementSettings:"",CRMServices:"",EditContact:"",ConnectContacts:"",AppIconDefaultAdd:"",AppIconDefaultList:"",ActivateOrders:"",DeactivateOrders:"",ProductCatalog:"",ScatterChart:"",AccountActivity:"",DocumentManagement:"",CRMReport:"",KnowledgeArticle:"",Relationship:"",HomeVerify:"",ZipFolder:"",SurveyQuestions:"",TextDocument:"",TextDocumentShared:"",PageCheckedOut:"",PageShared:"",SaveAndClose:"",Script:"",Archive:"",ActivityFeed:"",Compare:"",EventDate:"",ArrowUpRight:"",CaretRight:"",SetAction:"",ChatBot:"",CaretSolidLeft:"",CaretSolidDown:"",CaretSolidRight:"",CaretSolidUp:"",PowerAppsLogo:"",PowerApps2Logo:"",SearchIssue:"",SearchIssueMirrored:"",FabricAssetLibrary:"",FabricDataConnectionLibrary:"",FabricDocLibrary:"",FabricFormLibrary:"",FabricFormLibraryMirrored:"",FabricReportLibrary:"",FabricReportLibraryMirrored:"",FabricPublicFolder:"",FabricFolderSearch:"",FabricMovetoFolder:"",FabricUnsyncFolder:"",FabricSyncFolder:"",FabricOpenFolderHorizontal:"",FabricFolder:"",FabricFolderFill:"",FabricNewFolder:"",FabricPictureLibrary:"",PhotoVideoMedia:"",AddFavorite:""}};Ao(r,t)}function DCe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-9"',src:"url('".concat(e,"fabric-icons-9-c6162b42.woff') format('woff')")},icons:{AddFavoriteFill:"",BufferTimeBefore:"",BufferTimeAfter:"",BufferTimeBoth:"",PublishContent:"",ClipboardList:"",ClipboardListMirrored:"",CannedChat:"",SkypeForBusinessLogo:"",TabCenter:"",PageCheckedin:"",PageList:"",ReadOutLoud:"",CaretBottomLeftSolid8:"",CaretBottomRightSolid8:"",FolderHorizontal:"",MicrosoftStaffhubLogo:"",GiftboxOpen:"",StatusCircleOuter:"",StatusCircleInner:"",StatusCircleRing:"",StatusTriangleOuter:"",StatusTriangleInner:"",StatusTriangleExclamation:"",StatusCircleExclamation:"",StatusCircleErrorX:"",StatusCircleInfo:"",StatusCircleBlock:"",StatusCircleBlock2:"",StatusCircleQuestionMark:"",StatusCircleSync:"",Toll:"",ExploreContentSingle:"",CollapseContent:"",CollapseContentSingle:"",InfoSolid:"",GroupList:"",ProgressRingDots:"",CaloriesAdd:"",BranchFork:"",MuteChat:"",AddHome:"",AddWork:"",MobileReport:"",ScaleVolume:"",HardDriveGroup:"",FastMode:"",ToggleLeft:"",ToggleRight:"",TriangleShape:"",RectangleShape:"",CubeShape:"",Trophy2:"",BucketColor:"",BucketColorFill:"",Taskboard:"",SingleColumn:"",DoubleColumn:"",TripleColumn:"",ColumnLeftTwoThirds:"",ColumnRightTwoThirds:"",AccessLogoFill:"",AnalyticsLogo:"",AnalyticsQuery:"",NewAnalyticsQuery:"",AnalyticsReport:"",WordLogo:"",WordLogoFill:"",ExcelLogo:"",ExcelLogoFill:"",OneNoteLogo:"",OneNoteLogoFill:"",OutlookLogo:"",OutlookLogoFill:"",PowerPointLogo:"",PowerPointLogoFill:"",PublisherLogo:"",PublisherLogoFill:"",ScheduleEventAction:"",FlameSolid:"",ServerProcesses:"",Server:"",SaveAll:"",LinkedInLogo:"",Decimals:"",SidePanelMirrored:"",ProtectRestrict:"",Blog:"",UnknownMirrored:"",PublicContactCardMirrored:"",GridViewSmall:"",GridViewMedium:"",GridViewLarge:"",Step:"",StepInsert:"",StepShared:"",StepSharedAdd:"",StepSharedInsert:"",ViewDashboard:"",ViewList:""}};Ao(r,t)}function FCe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-10"',src:"url('".concat(e,"fabric-icons-10-c4ded8e4.woff') format('woff')")},icons:{ViewListGroup:"",ViewListTree:"",TriggerAuto:"",TriggerUser:"",PivotChart:"",StackedBarChart:"",StackedLineChart:"",BuildQueue:"",BuildQueueNew:"",UserFollowed:"",ContactLink:"",Stack:"",Bullseye:"",VennDiagram:"",FiveTileGrid:"",FocalPoint:"",Insert:"",RingerRemove:"",TeamsLogoInverse:"",TeamsLogo:"",TeamsLogoFill:"",SkypeForBusinessLogoFill:"",SharepointLogo:"",SharepointLogoFill:"",DelveLogo:"",DelveLogoFill:"",OfficeVideoLogo:"",OfficeVideoLogoFill:"",ExchangeLogo:"",ExchangeLogoFill:"",Signin:"",DocumentApproval:"",CloneToDesktop:"",InstallToDrive:"",Blur:"",Build:"",ProcessMetaTask:"",BranchFork2:"",BranchLocked:"",BranchCommit:"",BranchCompare:"",BranchMerge:"",BranchPullRequest:"",BranchSearch:"",BranchShelveset:"",RawSource:"",MergeDuplicate:"",RowsGroup:"",RowsChild:"",Deploy:"",Redeploy:"",ServerEnviroment:"",VisioDiagram:"",HighlightMappedShapes:"",TextCallout:"",IconSetsFlag:"",VisioLogo:"",VisioLogoFill:"",VisioDocument:"",TimelineProgress:"",TimelineDelivery:"",Backlog:"",TeamFavorite:"",TaskGroup:"",TaskGroupMirrored:"",ScopeTemplate:"",AssessmentGroupTemplate:"",NewTeamProject:"",CommentAdd:"",CommentNext:"",CommentPrevious:"",ShopServer:"",LocaleLanguage:"",QueryList:"",UserSync:"",UserPause:"",StreamingOff:"",ArrowTallUpLeft:"",ArrowTallUpRight:"",ArrowTallDownLeft:"",ArrowTallDownRight:"",FieldEmpty:"",FieldFilled:"",FieldChanged:"",FieldNotChanged:"",RingerOff:"",PlayResume:"",BulletedList2:"",BulletedList2Mirrored:"",ImageCrosshair:"",GitGraph:"",Repo:"",RepoSolid:"",FolderQuery:"",FolderList:"",FolderListMirrored:"",LocationOutline:"",POISolid:"",CalculatorNotEqualTo:"",BoxSubtractSolid:""}};Ao(r,t)}function BCe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-11"',src:"url('".concat(e,"fabric-icons-11-2a8393d6.woff') format('woff')")},icons:{BoxAdditionSolid:"",BoxMultiplySolid:"",BoxPlaySolid:"",BoxCheckmarkSolid:"",CirclePauseSolid:"",CirclePause:"",MSNVideosSolid:"",CircleStopSolid:"",CircleStop:"",NavigateBack:"",NavigateBackMirrored:"",NavigateForward:"",NavigateForwardMirrored:"",UnknownSolid:"",UnknownMirroredSolid:"",CircleAddition:"",CircleAdditionSolid:"",FilePDB:"",FileTemplate:"",FileSQL:"",FileJAVA:"",FileASPX:"",FileCSS:"",FileSass:"",FileLess:"",FileHTML:"",JavaScriptLanguage:"",CSharpLanguage:"",CSharp:"",VisualBasicLanguage:"",VB:"",CPlusPlusLanguage:"",CPlusPlus:"",FSharpLanguage:"",FSharp:"",TypeScriptLanguage:"",PythonLanguage:"",PY:"",CoffeeScript:"",MarkDownLanguage:"",FullWidth:"",FullWidthEdit:"",Plug:"",PlugSolid:"",PlugConnected:"",PlugDisconnected:"",UnlockSolid:"",Variable:"",Parameter:"",CommentUrgent:"",Storyboard:"",DiffInline:"",DiffSideBySide:"",ImageDiff:"",ImagePixel:"",FileBug:"",FileCode:"",FileComment:"",BusinessHoursSign:"",FileImage:"",FileSymlink:"",AutoFillTemplate:"",WorkItem:"",WorkItemBug:"",LogRemove:"",ColumnOptions:"",Packages:"",BuildIssue:"",AssessmentGroup:"",VariableGroup:"",FullHistory:"",Wheelchair:"",SingleColumnEdit:"",DoubleColumnEdit:"",TripleColumnEdit:"",ColumnLeftTwoThirdsEdit:"",ColumnRightTwoThirdsEdit:"",StreamLogo:"",PassiveAuthentication:"",AlertSolid:"",MegaphoneSolid:"",TaskSolid:"",ConfigurationSolid:"",BugSolid:"",CrownSolid:"",Trophy2Solid:"",QuickNoteSolid:"",ConstructionConeSolid:"",PageListSolid:"",PageListMirroredSolid:"",StarburstSolid:"",ReadingModeSolid:"",SadSolid:"",HealthSolid:"",ShieldSolid:"",GiftBoxSolid:"",ShoppingCartSolid:"",MailSolid:"",ChatSolid:"",RibbonSolid:""}};Ao(r,t)}function MCe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-12"',src:"url('".concat(e,"fabric-icons-12-7e945a1e.woff') format('woff')")},icons:{FinancialSolid:"",FinancialMirroredSolid:"",HeadsetSolid:"",PermissionsSolid:"",ParkingSolid:"",ParkingMirroredSolid:"",DiamondSolid:"",AsteriskSolid:"",OfflineStorageSolid:"",BankSolid:"",DecisionSolid:"",Parachute:"",ParachuteSolid:"",FiltersSolid:"",ColorSolid:"",ReviewSolid:"",ReviewRequestSolid:"",ReviewRequestMirroredSolid:"",ReviewResponseSolid:"",FeedbackRequestSolid:"",FeedbackRequestMirroredSolid:"",FeedbackResponseSolid:"",WorkItemBar:"",WorkItemBarSolid:"",Separator:"",NavigateExternalInline:"",PlanView:"",TimelineMatrixView:"",EngineeringGroup:"",ProjectCollection:"",CaretBottomRightCenter8:"",CaretBottomLeftCenter8:"",CaretTopRightCenter8:"",CaretTopLeftCenter8:"",DonutChart:"",ChevronUnfold10:"",ChevronFold10:"",DoubleChevronDown8:"",DoubleChevronUp8:"",DoubleChevronLeft8:"",DoubleChevronRight8:"",ChevronDownEnd6:"",ChevronUpEnd6:"",ChevronLeftEnd6:"",ChevronRightEnd6:"",ContextMenu:"",AzureAPIManagement:"",AzureServiceEndpoint:"",VSTSLogo:"",VSTSAltLogo1:"",VSTSAltLogo2:"",FileTypeSolution:"",WordLogoInverse16:"",WordLogo16:"",WordLogoFill16:"",PowerPointLogoInverse16:"",PowerPointLogo16:"",PowerPointLogoFill16:"",ExcelLogoInverse16:"",ExcelLogo16:"",ExcelLogoFill16:"",OneNoteLogoInverse16:"",OneNoteLogo16:"",OneNoteLogoFill16:"",OutlookLogoInverse16:"",OutlookLogo16:"",OutlookLogoFill16:"",PublisherLogoInverse16:"",PublisherLogo16:"",PublisherLogoFill16:"",VisioLogoInverse16:"",VisioLogo16:"",VisioLogoFill16:"",TestBeaker:"",TestBeakerSolid:"",TestExploreSolid:"",TestAutoSolid:"",TestUserSolid:"",TestImpactSolid:"",TestPlan:"",TestStep:"",TestParameter:"",TestSuite:"",TestCase:"",Sprint:"",SignOut:"",TriggerApproval:"",Rocket:"",AzureKeyVault:"",Onboarding:"",Transition:"",LikeSolid:"",DislikeSolid:"",CRMCustomerInsightsApp:"",EditCreate:"",PlayReverseResume:"",PlayReverse:"",SearchData:"",UnSetColor:"",DeclineCall:""}};Ao(r,t)}function LCe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-13"',src:"url('".concat(e,"fabric-icons-13-c3989a02.woff') format('woff')")},icons:{RectangularClipping:"",TeamsLogo16:"",TeamsLogoFill16:"",Spacer:"",SkypeLogo16:"",SkypeForBusinessLogo16:"",SkypeForBusinessLogoFill16:"",FilterSolid:"",MailUndelivered:"",MailTentative:"",MailTentativeMirrored:"",MailReminder:"",ReceiptUndelivered:"",ReceiptTentative:"",ReceiptTentativeMirrored:"",Inbox:"",IRMReply:"",IRMReplyMirrored:"",IRMForward:"",IRMForwardMirrored:"",VoicemailIRM:"",EventAccepted:"",EventTentative:"",EventTentativeMirrored:"",EventDeclined:"",IDBadge:"",BackgroundColor:"",OfficeFormsLogoInverse16:"",OfficeFormsLogo:"",OfficeFormsLogoFill:"",OfficeFormsLogo16:"",OfficeFormsLogoFill16:"",OfficeFormsLogoInverse24:"",OfficeFormsLogo24:"",OfficeFormsLogoFill24:"",PageLock:"",NotExecuted:"",NotImpactedSolid:"",FieldReadOnly:"",FieldRequired:"",BacklogBoard:"",ExternalBuild:"",ExternalTFVC:"",ExternalXAML:"",IssueSolid:"",DefectSolid:"",LadybugSolid:"",NugetLogo:"",TFVCLogo:"",ProjectLogo32:"",ProjectLogoFill32:"",ProjectLogo16:"",ProjectLogoFill16:"",SwayLogo32:"",SwayLogoFill32:"",SwayLogo16:"",SwayLogoFill16:"",ClassNotebookLogo32:"",ClassNotebookLogoFill32:"",ClassNotebookLogo16:"",ClassNotebookLogoFill16:"",ClassNotebookLogoInverse32:"",ClassNotebookLogoInverse16:"",StaffNotebookLogo32:"",StaffNotebookLogoFill32:"",StaffNotebookLogo16:"",StaffNotebookLogoFill16:"",StaffNotebookLogoInverted32:"",StaffNotebookLogoInverted16:"",KaizalaLogo:"",TaskLogo:"",ProtectionCenterLogo32:"",GallatinLogo:"",Globe2:"",Guitar:"",Breakfast:"",Brunch:"",BeerMug:"",Vacation:"",Teeth:"",Taxi:"",Chopsticks:"",SyncOccurence:"",UnsyncOccurence:"",GIF:"",PrimaryCalendar:"",SearchCalendar:"",VideoOff:"",MicrosoftFlowLogo:"",BusinessCenterLogo:"",ToDoLogoBottom:"",ToDoLogoTop:"",EditSolid12:"",EditSolidMirrored12:"",UneditableSolid12:"",UneditableSolidMirrored12:"",UneditableMirrored:"",AdminALogo32:"",AdminALogoFill32:"",ToDoLogoInverse:""}};Ao(r,t)}function jCe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-14"',src:"url('".concat(e,"fabric-icons-14-5cf58db8.woff') format('woff')")},icons:{Snooze:"",WaffleOffice365:"",ImageSearch:"",NewsSearch:"",VideoSearch:"",R:"",FontColorA:"",FontColorSwatch:"",LightWeight:"",NormalWeight:"",SemiboldWeight:"",GroupObject:"",UngroupObject:"",AlignHorizontalLeft:"",AlignHorizontalCenter:"",AlignHorizontalRight:"",AlignVerticalTop:"",AlignVerticalCenter:"",AlignVerticalBottom:"",HorizontalDistributeCenter:"",VerticalDistributeCenter:"",Ellipse:"",Line:"",Octagon:"",Hexagon:"",Pentagon:"",RightTriangle:"",HalfCircle:"",QuarterCircle:"",ThreeQuarterCircle:"","6PointStar":"","12PointStar":"",ArrangeBringToFront:"",ArrangeSendToBack:"",ArrangeSendBackward:"",ArrangeBringForward:"",BorderDash:"",BorderDot:"",LineStyle:"",LineThickness:"",WindowEdit:"",HintText:"",MediaAdd:"",AnchorLock:"",AutoHeight:"",ChartSeries:"",ChartXAngle:"",ChartYAngle:"",Combobox:"",LineSpacing:"",Padding:"",PaddingTop:"",PaddingBottom:"",PaddingLeft:"",PaddingRight:"",NavigationFlipper:"",AlignJustify:"",TextOverflow:"",VisualsFolder:"",VisualsStore:"",PictureCenter:"",PictureFill:"",PicturePosition:"",PictureStretch:"",PictureTile:"",Slider:"",SliderHandleSize:"",DefaultRatio:"",NumberSequence:"",GUID:"",ReportAdd:"",DashboardAdd:"",MapPinSolid:"",WebPublish:"",PieSingleSolid:"",BlockedSolid:"",DrillDown:"",DrillDownSolid:"",DrillExpand:"",DrillShow:"",SpecialEvent:"",OneDriveFolder16:"",FunctionalManagerDashboard:"",BIDashboard:"",CodeEdit:"",RenewalCurrent:"",RenewalFuture:"",SplitObject:"",BulkUpload:"",DownloadDocument:"",GreetingCard:"",Flower:"",WaitlistConfirm:"",WaitlistConfirmMirrored:"",LaptopSecure:"",DragObject:"",EntryView:"",EntryDecline:"",ContactCardSettings:"",ContactCardSettingsMirrored:""}};Ao(r,t)}function zCe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-15"',src:"url('".concat(e,"fabric-icons-15-3807251b.woff') format('woff')")},icons:{CalendarSettings:"",CalendarSettingsMirrored:"",HardDriveLock:"",HardDriveUnlock:"",AccountManagement:"",ReportWarning:"",TransitionPop:"",TransitionPush:"",TransitionEffect:"",LookupEntities:"",ExploreData:"",AddBookmark:"",SearchBookmark:"",DrillThrough:"",MasterDatabase:"",CertifiedDatabase:"",MaximumValue:"",MinimumValue:"",VisualStudioIDELogo32:"",PasteAsText:"",PasteAsCode:"",BrowserTab:"",BrowserTabScreenshot:"",DesktopScreenshot:"",FileYML:"",ClipboardSolid:"",FabricUserFolder:"",FabricNetworkFolder:"",BullseyeTarget:"",AnalyticsView:"",Video360Generic:"",Untag:"",Leave:"",Trending12:"",Blocked12:"",Warning12:"",CheckedOutByOther12:"",CheckedOutByYou12:"",CircleShapeSolid:"",SquareShapeSolid:"",TriangleShapeSolid:"",DropShapeSolid:"",RectangleShapeSolid:"",ZoomToFit:"",InsertColumnsLeft:"",InsertColumnsRight:"",InsertRowsAbove:"",InsertRowsBelow:"",DeleteColumns:"",DeleteRows:"",DeleteRowsMirrored:"",DeleteTable:"",AccountBrowser:"",VersionControlPush:"",StackedColumnChart2:"",TripleColumnWide:"",QuadColumn:"",WhiteBoardApp16:"",WhiteBoardApp32:"",PinnedSolid:"",InsertSignatureLine:"",ArrangeByFrom:"",Phishing:"",CreateMailRule:"",PublishCourse:"",DictionaryRemove:"",UserRemove:"",UserEvent:"",Encryption:"",PasswordField:"",OpenInNewTab:"",Hide3:"",VerifiedBrandSolid:"",MarkAsProtected:"",AuthenticatorApp:"",WebTemplate:"",DefenderTVM:"",MedalSolid:"",D365TalentLearn:"",D365TalentInsight:"",D365TalentHRCore:"",BacklogList:"",ButtonControl:"",TableGroup:"",MountainClimbing:"",TagUnknown:"",TagUnknownMirror:"",TagUnknown12:"",TagUnknown12Mirror:"",Link12:"",Presentation:"",Presentation12:"",Lock12:"",BuildDefinition:"",ReleaseDefinition:"",SaveTemplate:"",UserGauge:"",BlockedSiteSolid12:"",TagSolid:"",OfficeChat:""}};Ao(r,t)}function HCe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-16"',src:"url('".concat(e,"fabric-icons-16-9cf93f3b.woff') format('woff')")},icons:{OfficeChatSolid:"",MailSchedule:"",WarningSolid:"",Blocked2Solid:"",SkypeCircleArrow:"",SkypeArrow:"",SyncStatus:"",SyncStatusSolid:"",ProjectDocument:"",ToDoLogoOutline:"",VisioOnlineLogoFill32:"",VisioOnlineLogo32:"",VisioOnlineLogoCloud32:"",VisioDiagramSync:"",Event12:"",EventDateMissed12:"",UserOptional:"",ResponsesMenu:"",DoubleDownArrow:"",DistributeDown:"",BookmarkReport:"",FilterSettings:"",GripperDotsVertical:"",MailAttached:"",AddIn:"",LinkedDatabase:"",TableLink:"",PromotedDatabase:"",BarChartVerticalFilter:"",BarChartVerticalFilterSolid:"",MicOff2:"",MicrosoftTranslatorLogo:"",ShowTimeAs:"",FileRequest:"",WorkItemAlert:"",PowerBILogo16:"",PowerBILogoBackplate16:"",BulletedListText:"",BulletedListBullet:"",BulletedListTextMirrored:"",BulletedListBulletMirrored:"",NumberedListText:"",NumberedListNumber:"",NumberedListTextMirrored:"",NumberedListNumberMirrored:"",RemoveLinkChain:"",RemoveLinkX:"",FabricTextHighlight:"",ClearFormattingA:"",ClearFormattingEraser:"",Photo2Fill:"",IncreaseIndentText:"",IncreaseIndentArrow:"",DecreaseIndentText:"",DecreaseIndentArrow:"",IncreaseIndentTextMirrored:"",IncreaseIndentArrowMirrored:"",DecreaseIndentTextMirrored:"",DecreaseIndentArrowMirrored:"",CheckListText:"",CheckListCheck:"",CheckListTextMirrored:"",CheckListCheckMirrored:"",NumberSymbol:"",Coupon:"",VerifiedBrand:"",ReleaseGate:"",ReleaseGateCheck:"",ReleaseGateError:"",M365InvoicingLogo:"",RemoveFromShoppingList:"",ShieldAlert:"",FabricTextHighlightComposite:"",Dataflows:"",GenericScanFilled:"",DiagnosticDataBarTooltip:"",SaveToMobile:"",Orientation2:"",ScreenCast:"",ShowGrid:"",SnapToGrid:"",ContactList:"",NewMail:"",EyeShadow:"",FabricFolderConfirm:"",InformationBarriers:"",CommentActive:"",ColumnVerticalSectionEdit:"",WavingHand:"",ShakeDevice:"",SmartGlassRemote:"",Rotate90Clockwise:"",Rotate90CounterClockwise:"",CampaignTemplate:"",ChartTemplate:"",PageListFilter:"",SecondaryNav:"",ColumnVerticalSection:"",SkypeCircleSlash:"",SkypeSlash:""}};Ao(r,t)}function $Ce(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-17"',src:"url('".concat(e,"fabric-icons-17-0c4ed701.woff') format('woff')")},icons:{CustomizeToolbar:"",DuplicateRow:"",RemoveFromTrash:"",MailOptions:"",Childof:"",Footer:"",Header:"",BarChartVerticalFill:"",StackedColumnChart2Fill:"",PlainText:"",AccessibiltyChecker:"",DatabaseSync:"",ReservationOrders:"",TabOneColumn:"",TabTwoColumn:"",TabThreeColumn:"",BulletedTreeList:"",MicrosoftTranslatorLogoGreen:"",MicrosoftTranslatorLogoBlue:"",InternalInvestigation:"",AddReaction:"",ContactHeart:"",VisuallyImpaired:"",EventToDoLogo:"",Variable2:"",ModelingView:"",DisconnectVirtualMachine:"",ReportLock:"",Uneditable2:"",Uneditable2Mirrored:"",BarChartVerticalEdit:"",GlobalNavButtonActive:"",PollResults:"",Rerun:"",QandA:"",QandAMirror:"",BookAnswers:"",AlertSettings:"",TrimStart:"",TrimEnd:"",TableComputed:"",DecreaseIndentLegacy:"",IncreaseIndentLegacy:"",SizeLegacy:""}};Ao(r,t)}var PCe=function(){V1("trash","delete"),V1("onedrive","onedrivelogo"),V1("alertsolid12","eventdatemissed12"),V1("sixpointstar","6pointstar"),V1("twelvepointstar","12pointstar"),V1("toggleon","toggleleft"),V1("toggleoff","toggleright")};Y6("@fluentui/font-icons-mdl2","8.5.28");var qCe="".concat(xTe,"/assets/icons/"),Pp=co();function WCe(e,t){var r,n;e===void 0&&(e=((r=Pp==null?void 0:Pp.FabricConfig)===null||r===void 0?void 0:r.iconBaseUrl)||((n=Pp==null?void 0:Pp.FabricConfig)===null||n===void 0?void 0:n.fontBaseUrl)||qCe),[wCe,ACe,kCe,xCe,TCe,ICe,CCe,NCe,RCe,OCe,DCe,FCe,BCe,MCe,LCe,jCe,zCe,HCe,$Ce].forEach(function(o){return o(e,t)}),PCe()}var ZL=_e;function _A(e,t){for(var r=[],n=2;n0)throw new Error("Any module using getSlots must use withSlots. Please see withSlots javadoc for more info.");return UCe(t[s],u,n[s],n.slots&&n.slots[s],n._defaultStyles&&n._defaultStyles[s],n.theme)};a.isSlot=!0,r[s]=a}};for(var i in t)o(i);return r}function GCe(e,t){var r,n;return typeof t=="string"||typeof t=="number"||typeof t=="boolean"?n=(r={},r[e]=t,r):n=t,n}function VCe(e,t){for(var r=[],n=2;n2)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if(r.length===2)return{rowGap:B2(rg(r[0],t)),columnGap:B2(rg(r[1],t))};var n=B2(rg(e,t));return{rowGap:n,columnGap:n}},lW=function(e,t){if(e===void 0||typeof e=="number"||e==="")return e;var r=e.split(" ");return r.length<2?rg(e,t):r.reduce(function(n,o){return rg(n,t)+" "+rg(o,t)})},qp={start:"flex-start",end:"flex-end"},XF={root:"ms-Stack",inner:"ms-Stack-inner",child:"ms-Stack-child"},tNe=function(e,t,r){var n,o,i,s,a,u,l,c,f,d,h,g,v,y=e.className,E=e.disableShrink,_=e.enableScopedSelectors,S=e.grow,b=e.horizontal,A=e.horizontalAlign,T=e.reversed,x=e.verticalAlign,C=e.verticalFill,I=e.wrap,R=Ec(XF,t),D=r&&r.childrenGap?r.childrenGap:e.gap,L=r&&r.maxHeight?r.maxHeight:e.maxHeight,M=r&&r.maxWidth?r.maxWidth:e.maxWidth,q=r&&r.padding?r.padding:e.padding,z=eNe(D,t),F=z.rowGap,$=z.columnGap,K="".concat(-.5*$.value).concat($.unit),U="".concat(-.5*F.value).concat(F.unit),X={textOverflow:"ellipsis"},J="> "+(_?"."+XF.child:"*"),ee=(n={},n["".concat(J,":not(.").concat(ese.root,")")]={flexShrink:0},n);return I?{root:[R.root,{flexWrap:"wrap",maxWidth:M,maxHeight:L,width:"auto",overflow:"visible",height:"100%"},A&&(o={},o[b?"justifyContent":"alignItems"]=qp[A]||A,o),x&&(i={},i[b?"alignItems":"justifyContent"]=qp[x]||x,i),y,{display:"flex"},b&&{height:C?"100%":"auto"}],inner:[R.inner,(s={display:"flex",flexWrap:"wrap",marginLeft:K,marginRight:K,marginTop:U,marginBottom:U,overflow:"visible",boxSizing:"border-box",padding:lW(q,t),width:$.value===0?"100%":"calc(100% + ".concat($.value).concat($.unit,")"),maxWidth:"100vw"},s[J]=_e({margin:"".concat(.5*F.value).concat(F.unit," ").concat(.5*$.value).concat($.unit)},X),s),E&&ee,A&&(a={},a[b?"justifyContent":"alignItems"]=qp[A]||A,a),x&&(u={},u[b?"alignItems":"justifyContent"]=qp[x]||x,u),b&&(l={flexDirection:T?"row-reverse":"row",height:F.value===0?"100%":"calc(100% + ".concat(F.value).concat(F.unit,")")},l[J]={maxWidth:$.value===0?"100%":"calc(100% - ".concat($.value).concat($.unit,")")},l),!b&&(c={flexDirection:T?"column-reverse":"column",height:"calc(100% + ".concat(F.value).concat(F.unit,")")},c[J]={maxHeight:F.value===0?"100%":"calc(100% - ".concat(F.value).concat(F.unit,")")},c)]}:{root:[R.root,(f={display:"flex",flexDirection:b?T?"row-reverse":"row":T?"column-reverse":"column",flexWrap:"nowrap",width:"auto",height:C?"100%":"auto",maxWidth:M,maxHeight:L,padding:lW(q,t),boxSizing:"border-box"},f[J]=X,f),E&&ee,S&&{flexGrow:S===!0?1:S},A&&(d={},d[b?"justifyContent":"alignItems"]=qp[A]||A,d),x&&(h={},h[b?"alignItems":"justifyContent"]=qp[x]||x,h),b&&$.value>0&&(g={},g[T?"".concat(J,":not(:last-child)"):"".concat(J,":not(:first-child)")]={marginLeft:"".concat($.value).concat($.unit)},g),!b&&F.value>0&&(v={},v[T?"".concat(J,":not(:last-child)"):"".concat(J,":not(:first-child)")]={marginTop:"".concat(F.value).concat(F.unit)},v),y]}},rNe=function(e){var t=e.as,r=t===void 0?"div":t,n=e.disableShrink,o=n===void 0?!1:n,i=e.doNotRenderFalsyValues,s=i===void 0?!1:i,a=e.enableScopedSelectors,u=a===void 0?!1:a,l=e.wrap,c=av(e,["as","disableShrink","doNotRenderFalsyValues","enableScopedSelectors","wrap"]),f=rse(e.children,{disableShrink:o,enableScopedSelectors:u,doNotRenderFalsyValues:s}),d=Ri(c,po),h=Qie(e,{root:r,inner:"div"});return l?_A(h.root,_e({},d),_A(h.inner,null,f)):_A(h.root,_e({},d),f)};function rse(e,t){var r=t.disableShrink,n=t.enableScopedSelectors,o=t.doNotRenderFalsyValues,i=k.Children.toArray(e);return i=k.Children.map(i,function(s){if(!s)return o?null:s;if(!k.isValidElement(s))return s;if(s.type===k.Fragment)return s.props.children?rse(s.props.children,{disableShrink:r,enableScopedSelectors:n,doNotRenderFalsyValues:o}):null;var a=s,u={};nNe(s)&&(u={shrink:!r});var l=a.props.className;return k.cloneElement(a,_e(_e(_e(_e({},u),a.props),l&&{className:l}),n&&{className:i1(XF.child,l)}))}),i}function nNe(e){return!!e&&typeof e=="object"&&!!e.type&&e.type.displayName===tse.displayName}var oNe={Item:tse},iNe=Zie(rNe,{displayName:"Stack",styles:tNe,statics:oNe});const u1=function(){if(typeof globalThis<"u")return globalThis;if(typeof global<"u")return global;if(typeof self<"u")return self;if(typeof window<"u")return window;try{return new Function("return this")()}catch{return{}}}();u1.trustedTypes===void 0&&(u1.trustedTypes={createPolicy:(e,t)=>t});const nse={configurable:!1,enumerable:!1,writable:!1};u1.FAST===void 0&&Reflect.defineProperty(u1,"FAST",Object.assign({value:Object.create(null)},nse));const Mb=u1.FAST;if(Mb.getById===void 0){const e=Object.create(null);Reflect.defineProperty(Mb,"getById",Object.assign({value(t,r){let n=e[t];return n===void 0&&(n=r?e[t]=r():null),n}},nse))}const Hy=Object.freeze([]);function ose(){const e=new WeakMap;return function(t){let r=e.get(t);if(r===void 0){let n=Reflect.getPrototypeOf(t);for(;r===void 0&&n!==null;)r=e.get(n),n=Reflect.getPrototypeOf(n);r=r===void 0?[]:r.slice(0),e.set(t,r)}return r}}const M2=u1.FAST.getById(1,()=>{const e=[],t=[];function r(){if(t.length)throw t.shift()}function n(s){try{s.call()}catch(a){t.push(a),setTimeout(r,0)}}function o(){let a=0;for(;a1024){for(let u=0,l=e.length-a;ue});let L2=ise;const $y=`fast-${Math.random().toString(36).substring(2,8)}`,sse=`${$y}{`,JL=`}${$y}`,tn=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(e){if(L2!==ise)throw new Error("The HTML policy can only be set once.");L2=e},createHTML(e){return L2.createHTML(e)},isMarker(e){return e&&e.nodeType===8&&e.data.startsWith($y)},extractDirectiveIndexFromMarker(e){return parseInt(e.data.replace(`${$y}:`,""))},createInterpolationPlaceholder(e){return`${sse}${e}${JL}`},createCustomAttributePlaceholder(e,t){return`${e}="${this.createInterpolationPlaceholder(t)}"`},createBlockPlaceholder(e){return``},queueUpdate:M2.enqueue,processUpdates:M2.process,nextUpdate(){return new Promise(M2.enqueue)},setAttribute(e,t,r){r==null?e.removeAttribute(t):e.setAttribute(t,r)},setBooleanAttribute(e,t,r){r?e.setAttribute(t,""):e.removeAttribute(t)},removeChildNodes(e){for(let t=e.firstChild;t!==null;t=e.firstChild)e.removeChild(t)},createTemplateWalker(e){return document.createTreeWalker(e,133,null,!1)}});class QF{constructor(t,r){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=t,this.sub1=r}has(t){return this.spillover===void 0?this.sub1===t||this.sub2===t:this.spillover.indexOf(t)!==-1}subscribe(t){const r=this.spillover;if(r===void 0){if(this.has(t))return;if(this.sub1===void 0){this.sub1=t;return}if(this.sub2===void 0){this.sub2=t;return}this.spillover=[this.sub1,this.sub2,t],this.sub1=void 0,this.sub2=void 0}else r.indexOf(t)===-1&&r.push(t)}unsubscribe(t){const r=this.spillover;if(r===void 0)this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0);else{const n=r.indexOf(t);n!==-1&&r.splice(n,1)}}notify(t){const r=this.spillover,n=this.source;if(r===void 0){const o=this.sub1,i=this.sub2;o!==void 0&&o.handleChange(n,t),i!==void 0&&i.handleChange(n,t)}else for(let o=0,i=r.length;o{const e=/(:|&&|\|\||if)/,t=new WeakMap,r=tn.queueUpdate;let n,o=l=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function i(l){let c=l.$fastController||t.get(l);return c===void 0&&(Array.isArray(l)?c=o(l):t.set(l,c=new ase(l))),c}const s=ose();class a{constructor(c){this.name=c,this.field=`_${c}`,this.callback=`${c}Changed`}getValue(c){return n!==void 0&&n.watch(c,this.name),c[this.field]}setValue(c,f){const d=this.field,h=c[d];if(h!==f){c[d]=f;const g=c[this.callback];typeof g=="function"&&g.call(c,h,f),i(c).notify(this.name)}}}class u extends QF{constructor(c,f,d=!1){super(c,f),this.binding=c,this.isVolatileBinding=d,this.needsRefresh=!0,this.needsQueue=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}observe(c,f){this.needsRefresh&&this.last!==null&&this.disconnect();const d=n;n=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const h=this.binding(c,f);return n=d,h}disconnect(){if(this.last!==null){let c=this.first;for(;c!==void 0;)c.notifier.unsubscribe(this,c.propertyName),c=c.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(c,f){const d=this.last,h=i(c),g=d===null?this.first:{};if(g.propertySource=c,g.propertyName=f,g.notifier=h,h.subscribe(this,f),d!==null){if(!this.needsRefresh){let v;n=void 0,v=d.propertySource[d.propertyName],n=this,c===v&&(this.needsRefresh=!0)}d.next=g}this.last=g}handleChange(){this.needsQueue&&(this.needsQueue=!1,r(this))}call(){this.last!==null&&(this.needsQueue=!0,this.notify(this))}records(){let c=this.first;return{next:()=>{const f=c;return f===void 0?{value:void 0,done:!0}:(c=c.next,{value:f,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(l){o=l},getNotifier:i,track(l,c){n!==void 0&&n.watch(l,c)},trackVolatile(){n!==void 0&&(n.needsRefresh=!0)},notify(l,c){i(l).notify(c)},defineProperty(l,c){typeof c=="string"&&(c=new a(c)),s(l).push(c),Reflect.defineProperty(l,c.name,{enumerable:!0,get:function(){return c.getValue(this)},set:function(f){c.setValue(this,f)}})},getAccessors:s,binding(l,c,f=this.isVolatileBinding(l)){return new u(l,c,f)},isVolatileBinding(l){return e.test(l.toString())}})});function hv(e,t){Xo.defineProperty(e,t)}const cW=Mb.getById(3,()=>{let e=null;return{get(){return e},set(t){e=t}}});class Lb{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return cW.get()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(t){cW.set(t)}}Xo.defineProperty(Lb.prototype,"index");Xo.defineProperty(Lb.prototype,"length");const Py=Object.seal(new Lb);class e8{constructor(){this.targetIndex=0}}class use extends e8{constructor(){super(...arguments),this.createPlaceholder=tn.createInterpolationPlaceholder}}class lse extends e8{constructor(t,r,n){super(),this.name=t,this.behavior=r,this.options=n}createPlaceholder(t){return tn.createCustomAttributePlaceholder(this.name,t)}createBehavior(t){return new this.behavior(t,this.options)}}function sNe(e,t){this.source=e,this.context=t,this.bindingObserver===null&&(this.bindingObserver=Xo.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(e,t))}function aNe(e,t){this.source=e,this.context=t,this.target.addEventListener(this.targetName,this)}function uNe(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function lNe(){this.bindingObserver.disconnect(),this.source=null,this.context=null;const e=this.target.$fastView;e!==void 0&&e.isComposed&&(e.unbind(),e.needsBindOnly=!0)}function cNe(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function fNe(e){tn.setAttribute(this.target,this.targetName,e)}function dNe(e){tn.setBooleanAttribute(this.target,this.targetName,e)}function hNe(e){if(e==null&&(e=""),e.create){this.target.textContent="";let t=this.target.$fastView;t===void 0?t=e.create():this.target.$fastTemplate!==e&&(t.isComposed&&(t.remove(),t.unbind()),t=e.create()),t.isComposed?t.needsBindOnly&&(t.needsBindOnly=!1,t.bind(this.source,this.context)):(t.isComposed=!0,t.bind(this.source,this.context),t.insertBefore(this.target),this.target.$fastView=t,this.target.$fastTemplate=e)}else{const t=this.target.$fastView;t!==void 0&&t.isComposed&&(t.isComposed=!1,t.remove(),t.needsBindOnly?t.needsBindOnly=!1:t.unbind()),this.target.textContent=e}}function pNe(e){this.target[this.targetName]=e}function gNe(e){const t=this.classVersions||Object.create(null),r=this.target;let n=this.version||0;if(e!=null&&e.length){const o=e.split(/\s+/);for(let i=0,s=o.length;itn.createHTML(r(n,o))}break;case"?":this.cleanedTargetName=t.substr(1),this.updateTarget=dNe;break;case"@":this.cleanedTargetName=t.substr(1),this.bind=aNe,this.unbind=cNe;break;default:this.cleanedTargetName=t,t==="class"&&(this.updateTarget=gNe);break}}targetAtContent(){this.updateTarget=hNe,this.unbind=lNe}createBehavior(t){return new vNe(t,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class vNe{constructor(t,r,n,o,i,s,a){this.source=null,this.context=null,this.bindingObserver=null,this.target=t,this.binding=r,this.isBindingVolatile=n,this.bind=o,this.unbind=i,this.updateTarget=s,this.targetName=a}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(t){Lb.setEvent(t);const r=this.binding(this.source,this.context);Lb.setEvent(null),r!==!0&&t.preventDefault()}}let j2=null;class r8{addFactory(t){t.targetIndex=this.targetIndex,this.behaviorFactories.push(t)}captureContentBinding(t){t.targetAtContent(),this.addFactory(t)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){j2=this}static borrow(t){const r=j2||new r8;return r.directives=t,r.reset(),j2=null,r}}function mNe(e){if(e.length===1)return e[0];let t;const r=e.length,n=e.map(s=>typeof s=="string"?()=>s:(t=s.targetName||t,s.binding)),o=(s,a)=>{let u="";for(let l=0;la),l.targetName=s.name):l=mNe(u),l!==null&&(t.removeAttributeNode(s),o--,i--,e.addFactory(l))}}function bNe(e,t,r){const n=cse(e,t.textContent);if(n!==null){let o=t;for(let i=0,s=n.length;i0}const r=this.fragment.cloneNode(!0),n=this.viewBehaviorFactories,o=new Array(this.behaviorCount),i=tn.createTemplateWalker(r);let s=0,a=this.targetOffset,u=i.nextNode();for(let l=n.length;s=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function q_(e,...t){const r=[];let n="";for(let o=0,i=e.length-1;ou}if(typeof a=="function"&&(a=new t8(a)),a instanceof use){const u=SNe.exec(s);u!==null&&(a.targetName=u[2])}a instanceof e8?(n+=a.createPlaceholder(r.length),r.push(a)):n+=a}return n+=e[e.length-1],new dW(n,r)}class Fs{constructor(){this.targets=new WeakSet}addStylesTo(t){this.targets.add(t)}removeStylesFrom(t){this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=this.behaviors===null?t:this.behaviors.concat(t),this}}Fs.create=(()=>{if(tn.supportsAdoptedStyleSheets){const e=new Map;return t=>new wNe(t,e)}return e=>new xNe(e)})();function n8(e){return e.map(t=>t instanceof Fs?n8(t.styles):[t]).reduce((t,r)=>t.concat(r),[])}function fse(e){return e.map(t=>t instanceof Fs?t.behaviors:null).reduce((t,r)=>r===null?t:(t===null&&(t=[]),t.concat(r)),null)}let dse=(e,t)=>{e.adoptedStyleSheets=[...e.adoptedStyleSheets,...t]},hse=(e,t)=>{e.adoptedStyleSheets=e.adoptedStyleSheets.filter(r=>t.indexOf(r)===-1)};if(tn.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),dse=(e,t)=>{e.adoptedStyleSheets.push(...t)},hse=(e,t)=>{for(const r of t){const n=e.adoptedStyleSheets.indexOf(r);n!==-1&&e.adoptedStyleSheets.splice(n,1)}}}catch{}class wNe extends Fs{constructor(t,r){super(),this.styles=t,this.styleSheetCache=r,this._styleSheets=void 0,this.behaviors=fse(t)}get styleSheets(){if(this._styleSheets===void 0){const t=this.styles,r=this.styleSheetCache;this._styleSheets=n8(t).map(n=>{if(n instanceof CSSStyleSheet)return n;let o=r.get(n);return o===void 0&&(o=new CSSStyleSheet,o.replaceSync(n),r.set(n,o)),o})}return this._styleSheets}addStylesTo(t){dse(t,this.styleSheets),super.addStylesTo(t)}removeStylesFrom(t){hse(t,this.styleSheets),super.removeStylesFrom(t)}}let ANe=0;function kNe(){return`fast-style-class-${++ANe}`}class xNe extends Fs{constructor(t){super(),this.styles=t,this.behaviors=null,this.behaviors=fse(t),this.styleSheets=n8(t),this.styleClass=kNe()}addStylesTo(t){const r=this.styleSheets,n=this.styleClass;t=this.normalizeTarget(t);for(let o=0;o{n.add(t);const o=t[this.fieldName];switch(r){case"reflect":const i=this.converter;tn.setAttribute(t,this.attribute,i!==void 0?i.toView(o):o);break;case"boolean":tn.setBooleanAttribute(t,this.attribute,o);break}n.delete(t)})}static collect(t,...r){const n=[];r.push(Fk.locate(t));for(let o=0,i=r.length;o1&&(r.property=i),Fk.locate(o.constructor).push(r)}if(arguments.length>1){r={},n(e,t);return}return r=e===void 0?{}:e,n}const hW={mode:"open"},pW={},ZF=Mb.getById(4,()=>{const e=new Map;return Object.freeze({register(t){return e.has(t.type)?!1:(e.set(t.type,t),!0)},getByType(t){return e.get(t)}})});class yT{constructor(t,r=t.definition){typeof r=="string"&&(r={name:r}),this.type=t,this.name=r.name,this.template=r.template;const n=Bk.collect(t,r.attributes),o=new Array(n.length),i={},s={};for(let a=0,u=n.length;a0){const i=this.boundObservables=Object.create(null);for(let s=0,a=o.length;sn.name===r),this.source=t,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(Hy),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let t=this.getNodes();return this.options.filter!==void 0&&(t=t.filter(this.options.filter)),t}updateTarget(t){this.source[this.options.property]=t}}class ONe extends RNe{constructor(t,r){super(t,r)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}function DNe(e){return typeof e=="string"&&(e={property:e}),new lse("fast-slotted",ONe,e)}class FNe{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}const BNe=(e,t)=>q_` t.end?"end":void 0} > - + ${t.end||""} -`,NCe=(e,t)=>H_` +`,MNe=(e,t)=>q_` ${t.start||""} -`;H_` - +`;q_` + -`;H_` - +`;q_` + @@ -92,7 +92,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */function Sr(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,r,i):s(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}const L2=new Map;"metadata"in Reflect||(Reflect.metadata=function(e,t){return function(r){Reflect.defineMetadata(e,t,r)}},Reflect.defineMetadata=function(e,t,r){let n=L2.get(r);n===void 0&&L2.set(r,n=new Map),n.set(e,t)},Reflect.getOwnMetadata=function(e,t){const r=L2.get(t);if(r!==void 0)return r.get(e)});class CCe{constructor(t,r){this.container=t,this.key=r}instance(t){return this.registerResolver(0,t)}singleton(t){return this.registerResolver(1,t)}transient(t){return this.registerResolver(2,t)}callback(t){return this.registerResolver(3,t)}cachedCallback(t){return this.registerResolver(3,cse(t))}aliasTo(t){return this.registerResolver(5,t)}registerResolver(t,r){const{container:n,key:o}=this;return this.container=this.key=void 0,n.registerResolver(o,new eu(o,t,r))}}function xm(e){const t=e.slice(),r=Object.keys(e),n=r.length;let o;for(let i=0;inull,responsibleForOwnerRequests:!1,defaultResolver:RCe.singleton})}),uW=new Map;function lW(e){return t=>Reflect.getOwnMetadata(e,t)}let cW=null;const zn=Object.freeze({createContainer(e){return new $y(null,Object.assign({},j2.default,e))},findResponsibleContainer(e){const t=e.$$container$$;return t&&t.responsibleForOwnerRequests?t:zn.findParentContainer(e)},findParentContainer(e){const t=new CustomEvent(lse,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return e.dispatchEvent(t),t.detail.container||zn.getOrCreateDOMContainer()},getOrCreateDOMContainer(e,t){return e?e.$$container$$||new $y(e,Object.assign({},j2.default,t,{parentLocator:zn.findParentContainer})):cW||(cW=new $y(null,Object.assign({},j2.default,t,{parentLocator:()=>null})))},getDesignParamtypes:lW("design:paramtypes"),getAnnotationParamtypes:lW("di:paramtypes"),getOrCreateAnnotationParamTypes(e){let t=this.getAnnotationParamtypes(e);return t===void 0&&Reflect.defineMetadata("di:paramtypes",t=[],e),t},getDependencies(e){let t=uW.get(e);if(t===void 0){const r=e.inject;if(r===void 0){const n=zn.getDesignParamtypes(e),o=zn.getAnnotationParamtypes(e);if(n===void 0)if(o===void 0){const i=Object.getPrototypeOf(e);typeof i=="function"&&i!==Function.prototype?t=xm(zn.getDependencies(i)):t=[]}else t=xm(o);else if(o===void 0)t=xm(n);else{t=xm(n);let i=o.length,s;for(let l=0;l{const c=zn.findResponsibleContainer(this).get(r),f=this[o];c!==f&&(this[o]=i,a.notify(t))};a.subscribe({handleChange:u},"isConnected")}return i}})},createInterface(e,t){const r=typeof e=="function"?e:t,n=typeof e=="string"?e:e&&"friendlyName"in e&&e.friendlyName||pW,o=typeof e=="string"?!1:e&&"respectConnection"in e&&e.respectConnection||!1,i=function(s,a,u){if(s==null||new.target!==void 0)throw new Error(`No registration for interface: '${i.friendlyName}'`);if(a)zn.defineProperty(s,a,i,o);else{const l=zn.getOrCreateAnnotationParamTypes(s);l[u]=i}};return i.$isInterface=!0,i.friendlyName=n??"(anonymous)",r!=null&&(i.register=function(s,a){return r(new CCe(s,a??i))}),i.toString=function(){return`InterfaceSymbol<${i.friendlyName}>`},i},inject(...e){return function(t,r,n){if(typeof n=="number"){const o=zn.getOrCreateAnnotationParamTypes(t),i=e[0];i!==void 0&&(o[n]=i)}else if(r)zn.defineProperty(t,r,e[0]);else{const o=n?zn.getOrCreateAnnotationParamTypes(n.value):zn.getOrCreateAnnotationParamTypes(t);let i;for(let s=0;s{n.composedPath()[0]!==this.owner&&(n.detail.container=this,n.stopImmediatePropagation())})}get parent(){return this._parent===void 0&&(this._parent=this.config.parentLocator(this.owner)),this._parent}get depth(){return this.parent===null?0:this.parent.depth+1}get responsibleForOwnerRequests(){return this.config.responsibleForOwnerRequests}registerWithContext(t,...r){return this.context=t,this.register(...r),this.context=null,this}register(...t){if(++this.registerDepth===100)throw new Error("Unable to autoregister dependency");let r,n,o,i,s;const a=this.context;for(let u=0,l=t.length;uthis}))}jitRegister(t,r){if(typeof t!="function")throw new Error(`Attempted to jitRegister something that is not a constructor: '${t}'. Did you forget to register this dependency?`);if(zCe.has(t.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${t.name}. Did you forget to add @inject(Key)`);if(mk(t)){const n=t.register(r);if(!(n instanceof Object)||n.resolve==null){const o=r.resolvers.get(t);if(o!=null)return o;throw new Error("A valid resolver was not returned from the static register method")}return n}else{if(t.$isInterface)throw new Error(`Attempted to jitRegister an interface: ${t.friendlyName}`);{const n=this.config.defaultResolver(t,r);return r.resolvers.set(t,n),n}}}}const H2=new WeakMap;function cse(e){return function(t,r,n){if(H2.has(n))return H2.get(n);const o=e(t,r,n);return H2.set(n,o),o}}const Bb=Object.freeze({instance(e,t){return new eu(e,0,t)},singleton(e,t){return new eu(e,1,t)},transient(e,t){return new eu(e,2,t)},callback(e,t){return new eu(e,3,t)},cachedCallback(e,t){return new eu(e,3,cse(t))},aliasTo(e,t){return new eu(t,5,e)}});function JS(e){if(e==null)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function hW(e,t,r){if(e instanceof eu&&e.strategy===4){const n=e.state;let o=n.length;const i=new Array(o);for(;o--;)i[o]=n[o].resolve(t,r);return i}return[e.resolve(t,r)]}const pW="(anonymous)";function gW(e){return typeof e=="object"&&e!==null||typeof e=="function"}const HCe=function(){const e=new WeakMap;let t=!1,r="",n=0;return function(o){return t=e.get(o),t===void 0&&(r=o.toString(),n=r.length,t=n>=29&&n<=100&&r.charCodeAt(n-1)===125&&r.charCodeAt(n-2)<=32&&r.charCodeAt(n-3)===93&&r.charCodeAt(n-4)===101&&r.charCodeAt(n-5)===100&&r.charCodeAt(n-6)===111&&r.charCodeAt(n-7)===99&&r.charCodeAt(n-8)===32&&r.charCodeAt(n-9)===101&&r.charCodeAt(n-10)===118&&r.charCodeAt(n-11)===105&&r.charCodeAt(n-12)===116&&r.charCodeAt(n-13)===97&&r.charCodeAt(n-14)===110&&r.charCodeAt(n-15)===88,e.set(o,t)),t}}(),ew={};function fse(e){switch(typeof e){case"number":return e>=0&&(e|0)===e;case"string":{const t=ew[e];if(t!==void 0)return t;const r=e.length;if(r===0)return ew[e]=!1;let n=0;for(let o=0;o1||n<48||n>57)return ew[e]=!1;return ew[e]=!0}default:return!1}}function vW(e){return`${e.toLowerCase()}:presentation`}const tw=new Map,dse=Object.freeze({define(e,t,r){const n=vW(e);tw.get(n)===void 0?tw.set(n,t):tw.set(n,!1),r.register(Bb.instance(n,t))},forTag(e,t){const r=vW(e),n=tw.get(r);return n===!1?zn.findResponsibleContainer(t).get(r):n||null}});class $Ce{constructor(t,r){this.template=t||null,this.styles=r===void 0?null:Array.isArray(r)?Ds.create(r):r instanceof Ds?r:Ds.create([r])}applyTo(t){const r=t.$fastController;r.template===null&&(r.template=this.template),r.styles===null&&(r.styles=this.styles)}}class Gh extends gx{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return this._presentation===void 0&&(this._presentation=dse.forTag(this.tagName,this)),this._presentation}templateChanged(){this.template!==void 0&&(this.$fastController.template=this.template)}stylesChanged(){this.styles!==void 0&&(this.$fastController.styles=this.styles)}connectedCallback(){this.$presentation!==null&&this.$presentation.applyTo(this),super.connectedCallback()}static compose(t){return(r={})=>new PCe(this===Gh?class extends Gh{}:this,t,r)}}Sr([cv],Gh.prototype,"template",void 0);Sr([cv],Gh.prototype,"styles",void 0);function Im(e,t,r){return typeof e=="function"?e(t,r):e}class PCe{constructor(t,r,n){this.type=t,this.elementDefinition=r,this.overrideDefinition=n,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(t,r){const n=this.definition,o=this.overrideDefinition,s=`${n.prefix||r.elementPrefix}-${n.baseName}`;r.tryDefineElement({name:s,type:this.type,baseClass:this.elementDefinition.baseClass,callback:a=>{const u=new $Ce(Im(n.template,a,n),Im(n.styles,a,n));a.definePresentation(u);let l=Im(n.shadowOptions,a,n);a.shadowRootMode&&(l?o.shadowOptions||(l.mode=a.shadowRootMode):l!==null&&(l={mode:a.shadowRootMode})),a.defineElement({elementOptions:Im(n.elementOptions,a,n),shadowOptions:l,attributes:Im(n.attributes,a,n)})}})}}function hse(e,...t){const r=NA.locate(e);t.forEach(n=>{Object.getOwnPropertyNames(n.prototype).forEach(i=>{i!=="constructor"&&Object.defineProperty(e.prototype,i,Object.getOwnPropertyDescriptor(n.prototype,i))}),NA.locate(n).forEach(i=>r.push(i))})}function qCe(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function WCe(){const e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}let Y1;function KCe(){if(typeof Y1=="boolean")return Y1;if(!qCe())return Y1=!1,Y1;const e=document.createElement("style"),t=WCe();t!==null&&e.setAttribute("nonce",t),document.head.appendChild(e);try{e.sheet.insertRule("foo:focus-visible {color:inherit}",0),Y1=!0}catch{Y1=!1}finally{document.head.removeChild(e)}return Y1}var mW;(function(e){e[e.alt=18]="alt",e[e.arrowDown=40]="arrowDown",e[e.arrowLeft=37]="arrowLeft",e[e.arrowRight=39]="arrowRight",e[e.arrowUp=38]="arrowUp",e[e.back=8]="back",e[e.backSlash=220]="backSlash",e[e.break=19]="break",e[e.capsLock=20]="capsLock",e[e.closeBracket=221]="closeBracket",e[e.colon=186]="colon",e[e.colon2=59]="colon2",e[e.comma=188]="comma",e[e.ctrl=17]="ctrl",e[e.delete=46]="delete",e[e.end=35]="end",e[e.enter=13]="enter",e[e.equals=187]="equals",e[e.equals2=61]="equals2",e[e.equals3=107]="equals3",e[e.escape=27]="escape",e[e.forwardSlash=191]="forwardSlash",e[e.function1=112]="function1",e[e.function10=121]="function10",e[e.function11=122]="function11",e[e.function12=123]="function12",e[e.function2=113]="function2",e[e.function3=114]="function3",e[e.function4=115]="function4",e[e.function5=116]="function5",e[e.function6=117]="function6",e[e.function7=118]="function7",e[e.function8=119]="function8",e[e.function9=120]="function9",e[e.home=36]="home",e[e.insert=45]="insert",e[e.menu=93]="menu",e[e.minus=189]="minus",e[e.minus2=109]="minus2",e[e.numLock=144]="numLock",e[e.numPad0=96]="numPad0",e[e.numPad1=97]="numPad1",e[e.numPad2=98]="numPad2",e[e.numPad3=99]="numPad3",e[e.numPad4=100]="numPad4",e[e.numPad5=101]="numPad5",e[e.numPad6=102]="numPad6",e[e.numPad7=103]="numPad7",e[e.numPad8=104]="numPad8",e[e.numPad9=105]="numPad9",e[e.numPadDivide=111]="numPadDivide",e[e.numPadDot=110]="numPadDot",e[e.numPadMinus=109]="numPadMinus",e[e.numPadMultiply=106]="numPadMultiply",e[e.numPadPlus=107]="numPadPlus",e[e.openBracket=219]="openBracket",e[e.pageDown=34]="pageDown",e[e.pageUp=33]="pageUp",e[e.period=190]="period",e[e.print=44]="print",e[e.quote=222]="quote",e[e.scrollLock=145]="scrollLock",e[e.shift=16]="shift",e[e.space=32]="space",e[e.tab=9]="tab",e[e.tilde=192]="tilde",e[e.windowsLeft=91]="windowsLeft",e[e.windowsOpera=219]="windowsOpera",e[e.windowsRight=92]="windowsRight"})(mW||(mW={}));const GCe="Enter";class ko{}Sr([br({attribute:"aria-atomic"})],ko.prototype,"ariaAtomic",void 0);Sr([br({attribute:"aria-busy"})],ko.prototype,"ariaBusy",void 0);Sr([br({attribute:"aria-controls"})],ko.prototype,"ariaControls",void 0);Sr([br({attribute:"aria-current"})],ko.prototype,"ariaCurrent",void 0);Sr([br({attribute:"aria-describedby"})],ko.prototype,"ariaDescribedby",void 0);Sr([br({attribute:"aria-details"})],ko.prototype,"ariaDetails",void 0);Sr([br({attribute:"aria-disabled"})],ko.prototype,"ariaDisabled",void 0);Sr([br({attribute:"aria-errormessage"})],ko.prototype,"ariaErrormessage",void 0);Sr([br({attribute:"aria-flowto"})],ko.prototype,"ariaFlowto",void 0);Sr([br({attribute:"aria-haspopup"})],ko.prototype,"ariaHaspopup",void 0);Sr([br({attribute:"aria-hidden"})],ko.prototype,"ariaHidden",void 0);Sr([br({attribute:"aria-invalid"})],ko.prototype,"ariaInvalid",void 0);Sr([br({attribute:"aria-keyshortcuts"})],ko.prototype,"ariaKeyshortcuts",void 0);Sr([br({attribute:"aria-label"})],ko.prototype,"ariaLabel",void 0);Sr([br({attribute:"aria-labelledby"})],ko.prototype,"ariaLabelledby",void 0);Sr([br({attribute:"aria-live"})],ko.prototype,"ariaLive",void 0);Sr([br({attribute:"aria-owns"})],ko.prototype,"ariaOwns",void 0);Sr([br({attribute:"aria-relevant"})],ko.prototype,"ariaRelevant",void 0);Sr([br({attribute:"aria-roledescription"})],ko.prototype,"ariaRoledescription",void 0);const VCe=(e,t)=>H_` +***************************************************************************** */function wr(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,r,i):s(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}const $2=new Map;"metadata"in Reflect||(Reflect.metadata=function(e,t){return function(r){Reflect.defineMetadata(e,t,r)}},Reflect.defineMetadata=function(e,t,r){let n=$2.get(r);n===void 0&&$2.set(r,n=new Map),n.set(e,t)},Reflect.getOwnMetadata=function(e,t){const r=$2.get(t);if(r!==void 0)return r.get(e)});class LNe{constructor(t,r){this.container=t,this.key=r}instance(t){return this.registerResolver(0,t)}singleton(t){return this.registerResolver(1,t)}transient(t){return this.registerResolver(2,t)}callback(t){return this.registerResolver(3,t)}cachedCallback(t){return this.registerResolver(3,mse(t))}aliasTo(t){return this.registerResolver(5,t)}registerResolver(t,r){const{container:n,key:o}=this;return this.container=this.key=void 0,n.registerResolver(o,new eu(o,t,r))}}function Im(e){const t=e.slice(),r=Object.keys(e),n=r.length;let o;for(let i=0;inull,responsibleForOwnerRequests:!1,defaultResolver:jNe.singleton})}),vW=new Map;function mW(e){return t=>Reflect.getOwnMetadata(e,t)}let yW=null;const jn=Object.freeze({createContainer(e){return new qy(null,Object.assign({},P2.default,e))},findResponsibleContainer(e){const t=e.$$container$$;return t&&t.responsibleForOwnerRequests?t:jn.findParentContainer(e)},findParentContainer(e){const t=new CustomEvent(vse,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return e.dispatchEvent(t),t.detail.container||jn.getOrCreateDOMContainer()},getOrCreateDOMContainer(e,t){return e?e.$$container$$||new qy(e,Object.assign({},P2.default,t,{parentLocator:jn.findParentContainer})):yW||(yW=new qy(null,Object.assign({},P2.default,t,{parentLocator:()=>null})))},getDesignParamtypes:mW("design:paramtypes"),getAnnotationParamtypes:mW("di:paramtypes"),getOrCreateAnnotationParamTypes(e){let t=this.getAnnotationParamtypes(e);return t===void 0&&Reflect.defineMetadata("di:paramtypes",t=[],e),t},getDependencies(e){let t=vW.get(e);if(t===void 0){const r=e.inject;if(r===void 0){const n=jn.getDesignParamtypes(e),o=jn.getAnnotationParamtypes(e);if(n===void 0)if(o===void 0){const i=Object.getPrototypeOf(e);typeof i=="function"&&i!==Function.prototype?t=Im(jn.getDependencies(i)):t=[]}else t=Im(o);else if(o===void 0)t=Im(n);else{t=Im(n);let i=o.length,s;for(let l=0;l{const c=jn.findResponsibleContainer(this).get(r),f=this[o];c!==f&&(this[o]=i,a.notify(t))};a.subscribe({handleChange:u},"isConnected")}return i}})},createInterface(e,t){const r=typeof e=="function"?e:t,n=typeof e=="string"?e:e&&"friendlyName"in e&&e.friendlyName||SW,o=typeof e=="string"?!1:e&&"respectConnection"in e&&e.respectConnection||!1,i=function(s,a,u){if(s==null||new.target!==void 0)throw new Error(`No registration for interface: '${i.friendlyName}'`);if(a)jn.defineProperty(s,a,i,o);else{const l=jn.getOrCreateAnnotationParamTypes(s);l[u]=i}};return i.$isInterface=!0,i.friendlyName=n??"(anonymous)",r!=null&&(i.register=function(s,a){return r(new LNe(s,a??i))}),i.toString=function(){return`InterfaceSymbol<${i.friendlyName}>`},i},inject(...e){return function(t,r,n){if(typeof n=="number"){const o=jn.getOrCreateAnnotationParamTypes(t),i=e[0];i!==void 0&&(o[n]=i)}else if(r)jn.defineProperty(t,r,e[0]);else{const o=n?jn.getOrCreateAnnotationParamTypes(n.value):jn.getOrCreateAnnotationParamTypes(t);let i;for(let s=0;s{n.composedPath()[0]!==this.owner&&(n.detail.container=this,n.stopImmediatePropagation())})}get parent(){return this._parent===void 0&&(this._parent=this.config.parentLocator(this.owner)),this._parent}get depth(){return this.parent===null?0:this.parent.depth+1}get responsibleForOwnerRequests(){return this.config.responsibleForOwnerRequests}registerWithContext(t,...r){return this.context=t,this.register(...r),this.context=null,this}register(...t){if(++this.registerDepth===100)throw new Error("Unable to autoregister dependency");let r,n,o,i,s;const a=this.context;for(let u=0,l=t.length;uthis}))}jitRegister(t,r){if(typeof t!="function")throw new Error(`Attempted to jitRegister something that is not a constructor: '${t}'. Did you forget to register this dependency?`);if(GNe.has(t.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${t.name}. Did you forget to add @inject(Key)`);if(EA(t)){const n=t.register(r);if(!(n instanceof Object)||n.resolve==null){const o=r.resolvers.get(t);if(o!=null)return o;throw new Error("A valid resolver was not returned from the static register method")}return n}else{if(t.$isInterface)throw new Error(`Attempted to jitRegister an interface: ${t.friendlyName}`);{const n=this.config.defaultResolver(t,r);return r.resolvers.set(t,n),n}}}}const W2=new WeakMap;function mse(e){return function(t,r,n){if(W2.has(n))return W2.get(n);const o=e(t,r,n);return W2.set(n,o),o}}const jb=Object.freeze({instance(e,t){return new eu(e,0,t)},singleton(e,t){return new eu(e,1,t)},transient(e,t){return new eu(e,2,t)},callback(e,t){return new eu(e,3,t)},cachedCallback(e,t){return new eu(e,3,mse(t))},aliasTo(e,t){return new eu(t,5,e)}});function rw(e){if(e==null)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function EW(e,t,r){if(e instanceof eu&&e.strategy===4){const n=e.state;let o=n.length;const i=new Array(o);for(;o--;)i[o]=n[o].resolve(t,r);return i}return[e.resolve(t,r)]}const SW="(anonymous)";function wW(e){return typeof e=="object"&&e!==null||typeof e=="function"}const VNe=function(){const e=new WeakMap;let t=!1,r="",n=0;return function(o){return t=e.get(o),t===void 0&&(r=o.toString(),n=r.length,t=n>=29&&n<=100&&r.charCodeAt(n-1)===125&&r.charCodeAt(n-2)<=32&&r.charCodeAt(n-3)===93&&r.charCodeAt(n-4)===101&&r.charCodeAt(n-5)===100&&r.charCodeAt(n-6)===111&&r.charCodeAt(n-7)===99&&r.charCodeAt(n-8)===32&&r.charCodeAt(n-9)===101&&r.charCodeAt(n-10)===118&&r.charCodeAt(n-11)===105&&r.charCodeAt(n-12)===116&&r.charCodeAt(n-13)===97&&r.charCodeAt(n-14)===110&&r.charCodeAt(n-15)===88,e.set(o,t)),t}}(),nw={};function yse(e){switch(typeof e){case"number":return e>=0&&(e|0)===e;case"string":{const t=nw[e];if(t!==void 0)return t;const r=e.length;if(r===0)return nw[e]=!1;let n=0;for(let o=0;o1||n<48||n>57)return nw[e]=!1;return nw[e]=!0}default:return!1}}function AW(e){return`${e.toLowerCase()}:presentation`}const ow=new Map,bse=Object.freeze({define(e,t,r){const n=AW(e);ow.get(n)===void 0?ow.set(n,t):ow.set(n,!1),r.register(jb.instance(n,t))},forTag(e,t){const r=AW(e),n=ow.get(r);return n===!1?jn.findResponsibleContainer(t).get(r):n||null}});class UNe{constructor(t,r){this.template=t||null,this.styles=r===void 0?null:Array.isArray(r)?Fs.create(r):r instanceof Fs?r:Fs.create([r])}applyTo(t){const r=t.$fastController;r.template===null&&(r.template=this.template),r.styles===null&&(r.styles=this.styles)}}class Kh extends bT{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return this._presentation===void 0&&(this._presentation=bse.forTag(this.tagName,this)),this._presentation}templateChanged(){this.template!==void 0&&(this.$fastController.template=this.template)}stylesChanged(){this.styles!==void 0&&(this.$fastController.styles=this.styles)}connectedCallback(){this.$presentation!==null&&this.$presentation.applyTo(this),super.connectedCallback()}static compose(t){return(r={})=>new YNe(this===Kh?class extends Kh{}:this,t,r)}}wr([hv],Kh.prototype,"template",void 0);wr([hv],Kh.prototype,"styles",void 0);function Cm(e,t,r){return typeof e=="function"?e(t,r):e}class YNe{constructor(t,r,n){this.type=t,this.elementDefinition=r,this.overrideDefinition=n,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(t,r){const n=this.definition,o=this.overrideDefinition,s=`${n.prefix||r.elementPrefix}-${n.baseName}`;r.tryDefineElement({name:s,type:this.type,baseClass:this.elementDefinition.baseClass,callback:a=>{const u=new UNe(Cm(n.template,a,n),Cm(n.styles,a,n));a.definePresentation(u);let l=Cm(n.shadowOptions,a,n);a.shadowRootMode&&(l?o.shadowOptions||(l.mode=a.shadowRootMode):l!==null&&(l={mode:a.shadowRootMode})),a.defineElement({elementOptions:Cm(n.elementOptions,a,n),shadowOptions:l,attributes:Cm(n.attributes,a,n)})}})}}function _se(e,...t){const r=Fk.locate(e);t.forEach(n=>{Object.getOwnPropertyNames(n.prototype).forEach(i=>{i!=="constructor"&&Object.defineProperty(e.prototype,i,Object.getOwnPropertyDescriptor(n.prototype,i))}),Fk.locate(n).forEach(i=>r.push(i))})}function XNe(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function QNe(){const e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}let U1;function ZNe(){if(typeof U1=="boolean")return U1;if(!XNe())return U1=!1,U1;const e=document.createElement("style"),t=QNe();t!==null&&e.setAttribute("nonce",t),document.head.appendChild(e);try{e.sheet.insertRule("foo:focus-visible {color:inherit}",0),U1=!0}catch{U1=!1}finally{document.head.removeChild(e)}return U1}var kW;(function(e){e[e.alt=18]="alt",e[e.arrowDown=40]="arrowDown",e[e.arrowLeft=37]="arrowLeft",e[e.arrowRight=39]="arrowRight",e[e.arrowUp=38]="arrowUp",e[e.back=8]="back",e[e.backSlash=220]="backSlash",e[e.break=19]="break",e[e.capsLock=20]="capsLock",e[e.closeBracket=221]="closeBracket",e[e.colon=186]="colon",e[e.colon2=59]="colon2",e[e.comma=188]="comma",e[e.ctrl=17]="ctrl",e[e.delete=46]="delete",e[e.end=35]="end",e[e.enter=13]="enter",e[e.equals=187]="equals",e[e.equals2=61]="equals2",e[e.equals3=107]="equals3",e[e.escape=27]="escape",e[e.forwardSlash=191]="forwardSlash",e[e.function1=112]="function1",e[e.function10=121]="function10",e[e.function11=122]="function11",e[e.function12=123]="function12",e[e.function2=113]="function2",e[e.function3=114]="function3",e[e.function4=115]="function4",e[e.function5=116]="function5",e[e.function6=117]="function6",e[e.function7=118]="function7",e[e.function8=119]="function8",e[e.function9=120]="function9",e[e.home=36]="home",e[e.insert=45]="insert",e[e.menu=93]="menu",e[e.minus=189]="minus",e[e.minus2=109]="minus2",e[e.numLock=144]="numLock",e[e.numPad0=96]="numPad0",e[e.numPad1=97]="numPad1",e[e.numPad2=98]="numPad2",e[e.numPad3=99]="numPad3",e[e.numPad4=100]="numPad4",e[e.numPad5=101]="numPad5",e[e.numPad6=102]="numPad6",e[e.numPad7=103]="numPad7",e[e.numPad8=104]="numPad8",e[e.numPad9=105]="numPad9",e[e.numPadDivide=111]="numPadDivide",e[e.numPadDot=110]="numPadDot",e[e.numPadMinus=109]="numPadMinus",e[e.numPadMultiply=106]="numPadMultiply",e[e.numPadPlus=107]="numPadPlus",e[e.openBracket=219]="openBracket",e[e.pageDown=34]="pageDown",e[e.pageUp=33]="pageUp",e[e.period=190]="period",e[e.print=44]="print",e[e.quote=222]="quote",e[e.scrollLock=145]="scrollLock",e[e.shift=16]="shift",e[e.space=32]="space",e[e.tab=9]="tab",e[e.tilde=192]="tilde",e[e.windowsLeft=91]="windowsLeft",e[e.windowsOpera=219]="windowsOpera",e[e.windowsRight=92]="windowsRight"})(kW||(kW={}));const JNe="Enter";class ko{}wr([_r({attribute:"aria-atomic"})],ko.prototype,"ariaAtomic",void 0);wr([_r({attribute:"aria-busy"})],ko.prototype,"ariaBusy",void 0);wr([_r({attribute:"aria-controls"})],ko.prototype,"ariaControls",void 0);wr([_r({attribute:"aria-current"})],ko.prototype,"ariaCurrent",void 0);wr([_r({attribute:"aria-describedby"})],ko.prototype,"ariaDescribedby",void 0);wr([_r({attribute:"aria-details"})],ko.prototype,"ariaDetails",void 0);wr([_r({attribute:"aria-disabled"})],ko.prototype,"ariaDisabled",void 0);wr([_r({attribute:"aria-errormessage"})],ko.prototype,"ariaErrormessage",void 0);wr([_r({attribute:"aria-flowto"})],ko.prototype,"ariaFlowto",void 0);wr([_r({attribute:"aria-haspopup"})],ko.prototype,"ariaHaspopup",void 0);wr([_r({attribute:"aria-hidden"})],ko.prototype,"ariaHidden",void 0);wr([_r({attribute:"aria-invalid"})],ko.prototype,"ariaInvalid",void 0);wr([_r({attribute:"aria-keyshortcuts"})],ko.prototype,"ariaKeyshortcuts",void 0);wr([_r({attribute:"aria-label"})],ko.prototype,"ariaLabel",void 0);wr([_r({attribute:"aria-labelledby"})],ko.prototype,"ariaLabelledby",void 0);wr([_r({attribute:"aria-live"})],ko.prototype,"ariaLive",void 0);wr([_r({attribute:"aria-owns"})],ko.prototype,"ariaOwns",void 0);wr([_r({attribute:"aria-relevant"})],ko.prototype,"ariaRelevant",void 0);wr([_r({attribute:"aria-roledescription"})],ko.prototype,"ariaRoledescription",void 0);const eRe=(e,t)=>q_` -`,yW="form-associated-proxy",bW="ElementInternals",_W=bW in window&&"setFormValue"in window[bW].prototype,EW=new WeakMap;function UCe(e){const t=class extends e{constructor(...r){super(...r),this.dirtyValue=!1,this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}static get formAssociated(){return _W}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){const r=this.proxy.labels,n=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),o=r?n.concat(Array.from(r)):n;return Object.freeze(o)}else return jy}valueChanged(r,n){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(r,n){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(r,n){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),en.queueUpdate(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(r,n){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(r,n){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),en.queueUpdate(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!_W)return null;let r=EW.get(this);return r||(r=this.attachInternals(),EW.set(this,r)),r}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}disconnectedCallback(){super.disconnectedCallback(),this.proxyEventsToBlock.forEach(r=>this.proxy.removeEventListener(r,this.stopPropagation)),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(r,n,o){this.elementInternals?this.elementInternals.setValidity(r,n,o):typeof n=="string"&&this.proxy.setCustomValidity(n)}formDisabledCallback(r){this.disabled=r}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){var r;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(n=>this.proxy.addEventListener(n,this.stopPropagation)),this.proxy.disabled=this.disabled,this.proxy.required=this.required,typeof this.name=="string"&&(this.proxy.name=this.name),typeof this.value=="string"&&(this.proxy.value=this.value),this.proxy.setAttribute("slot",yW),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",yW)),(r=this.shadowRoot)===null||r===void 0||r.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){var r;this.removeChild(this.proxy),(r=this.shadowRoot)===null||r===void 0||r.removeChild(this.proxySlot)}validate(r){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,r)}setFormValue(r,n){this.elementInternals&&this.elementInternals.setFormValue(r,n||r)}_keypressHandler(r){switch(r.key){case GCe:if(this.form instanceof HTMLFormElement){const n=this.form.querySelector("[type=submit]");n==null||n.click()}break}}stopPropagation(r){r.stopPropagation()}};return br({mode:"boolean"})(t.prototype,"disabled"),br({mode:"fromView",attribute:"value"})(t.prototype,"initialValue"),br({attribute:"current-value"})(t.prototype,"currentValue"),br(t.prototype,"name"),br({mode:"boolean"})(t.prototype,"required"),cv(t.prototype,"value"),t}class YCe extends Gh{}class XCe extends UCe(YCe){constructor(){super(...arguments),this.proxy=document.createElement("input")}}let fl=class extends XCe{constructor(){super(...arguments),this.handleClick=t=>{var r;this.disabled&&((r=this.defaultSlottedContent)===null||r===void 0?void 0:r.length)<=1&&t.stopPropagation()},this.handleSubmission=()=>{if(!this.form)return;const t=this.proxy.isConnected;t||this.attachProxy(),typeof this.form.requestSubmit=="function"?this.form.requestSubmit(this.proxy):this.proxy.click(),t||this.detachProxy()},this.handleFormReset=()=>{var t;(t=this.form)===null||t===void 0||t.reset()},this.handleUnsupportedDelegatesFocus=()=>{var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(!((t=this.$fastController.definition.shadowOptions)===null||t===void 0)&&t.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}formactionChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formAction=this.formaction)}formenctypeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formEnctype=this.formenctype)}formmethodChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formMethod=this.formmethod)}formnovalidateChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formNoValidate=this.formnovalidate)}formtargetChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formTarget=this.formtarget)}typeChanged(t,r){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),r==="submit"&&this.addEventListener("click",this.handleSubmission),t==="submit"&&this.removeEventListener("click",this.handleSubmission),r==="reset"&&this.addEventListener("click",this.handleFormReset),t==="reset"&&this.removeEventListener("click",this.handleFormReset)}validate(){super.validate(this.control)}connectedCallback(){var t;super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus();const r=Array.from((t=this.control)===null||t===void 0?void 0:t.children);r&&r.forEach(n=>{n.addEventListener("click",this.handleClick)})}disconnectedCallback(){var t;super.disconnectedCallback();const r=Array.from((t=this.control)===null||t===void 0?void 0:t.children);r&&r.forEach(n=>{n.removeEventListener("click",this.handleClick)})}};Sr([br({mode:"boolean"})],fl.prototype,"autofocus",void 0);Sr([br({attribute:"form"})],fl.prototype,"formId",void 0);Sr([br],fl.prototype,"formaction",void 0);Sr([br],fl.prototype,"formenctype",void 0);Sr([br],fl.prototype,"formmethod",void 0);Sr([br({mode:"boolean"})],fl.prototype,"formnovalidate",void 0);Sr([br],fl.prototype,"formtarget",void 0);Sr([br],fl.prototype,"type",void 0);Sr([cv],fl.prototype,"defaultSlottedContent",void 0);class vx{}Sr([br({attribute:"aria-expanded"})],vx.prototype,"ariaExpanded",void 0);Sr([br({attribute:"aria-pressed"})],vx.prototype,"ariaPressed",void 0);hse(vx,ko);hse(fl,xCe,vx);function YF(e){const t=e.parentElement;if(t)return t;{const r=e.getRootNode();if(r.host instanceof HTMLElement)return r.host}return null}function QCe(e,t){let r=t;for(;r!==null;){if(r===e)return!0;r=YF(r)}return!1}const of=document.createElement("div");function ZCe(e){return e instanceof gx}class e8{setProperty(t,r){en.queueUpdate(()=>this.target.setProperty(t,r))}removeProperty(t){en.queueUpdate(()=>this.target.removeProperty(t))}}class JCe extends e8{constructor(t){super();const r=new CSSStyleSheet;this.target=r.cssRules[r.insertRule(":host{}")].style,t.$fastController.addStyles(Ds.create([r]))}}class eRe extends e8{constructor(){super();const t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,t]}}class tRe extends e8{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);const{sheet:t}=this.style;if(t){const r=t.insertRule(":root{}",t.cssRules.length);this.target=t.cssRules[r].style}}}class pse{constructor(t){this.store=new Map,this.target=null;const r=t.$fastController;this.style=document.createElement("style"),r.addStyles(this.style),Xo.getNotifier(r).subscribe(this,"isConnected"),this.handleChange(r,"isConnected")}targetChanged(){if(this.target!==null)for(const[t,r]of this.store.entries())this.target.setProperty(t,r)}setProperty(t,r){this.store.set(t,r),en.queueUpdate(()=>{this.target!==null&&this.target.setProperty(t,r)})}removeProperty(t){this.store.delete(t),en.queueUpdate(()=>{this.target!==null&&this.target.removeProperty(t)})}handleChange(t,r){const{sheet:n}=this.style;if(n){const o=n.insertRule(":host{}",n.cssRules.length);this.target=n.cssRules[o].style}else this.target=null}}Sr([cv],pse.prototype,"target",void 0);class rRe{constructor(t){this.target=t.style}setProperty(t,r){en.queueUpdate(()=>this.target.setProperty(t,r))}removeProperty(t){en.queueUpdate(()=>this.target.removeProperty(t))}}class Po{setProperty(t,r){Po.properties[t]=r;for(const n of Po.roots.values())F0.getOrCreate(Po.normalizeRoot(n)).setProperty(t,r)}removeProperty(t){delete Po.properties[t];for(const r of Po.roots.values())F0.getOrCreate(Po.normalizeRoot(r)).removeProperty(t)}static registerRoot(t){const{roots:r}=Po;if(!r.has(t)){r.add(t);const n=F0.getOrCreate(this.normalizeRoot(t));for(const o in Po.properties)n.setProperty(o,Po.properties[o])}}static unregisterRoot(t){const{roots:r}=Po;if(r.has(t)){r.delete(t);const n=F0.getOrCreate(Po.normalizeRoot(t));for(const o in Po.properties)n.removeProperty(o)}}static normalizeRoot(t){return t===of?document:t}}Po.roots=new Set;Po.properties={};const $2=new WeakMap,nRe=en.supportsAdoptedStyleSheets?JCe:pse,F0=Object.freeze({getOrCreate(e){if($2.has(e))return $2.get(e);let t;return e===of?t=new Po:e instanceof Document?t=en.supportsAdoptedStyleSheets?new eRe:new tRe:ZCe(e)?t=new nRe(e):t=new rRe(e),$2.set(e,t),t}});class Xi extends use{constructor(t){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=t.name,t.cssCustomPropertyName!==null&&(this.cssCustomProperty=`--${t.cssCustomPropertyName}`,this.cssVar=`var(${this.cssCustomProperty})`),this.id=Xi.uniqueId(),Xi.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(t){return new Xi({name:typeof t=="string"?t:t.name,cssCustomPropertyName:typeof t=="string"?t:t.cssCustomPropertyName===void 0?t.name:t.cssCustomPropertyName})}static isCSSDesignToken(t){return typeof t.cssCustomProperty=="string"}static isDerivedDesignTokenValue(t){return typeof t=="function"}static getTokenById(t){return Xi.tokensById.get(t)}getOrCreateSubscriberSet(t=this){return this.subscribers.get(t)||this.subscribers.set(t,new Set)&&this.subscribers.get(t)}createCSS(){return this.cssVar||""}getValueFor(t){const r=ao.getOrCreate(t).get(this);if(r!==void 0)return r;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${t} or an ancestor of ${t}.`)}setValueFor(t,r){return this._appliedTo.add(t),r instanceof Xi&&(r=this.alias(r)),ao.getOrCreate(t).set(this,r),this}deleteValueFor(t){return this._appliedTo.delete(t),ao.existsFor(t)&&ao.getOrCreate(t).delete(this),this}withDefault(t){return this.setValueFor(of,t),this}subscribe(t,r){const n=this.getOrCreateSubscriberSet(r);r&&!ao.existsFor(r)&&ao.getOrCreate(r),n.has(t)||n.add(t)}unsubscribe(t,r){const n=this.subscribers.get(r||this);n&&n.has(t)&&n.delete(t)}notify(t){const r=Object.freeze({token:this,target:t});this.subscribers.has(this)&&this.subscribers.get(this).forEach(n=>n.handleChange(r)),this.subscribers.has(t)&&this.subscribers.get(t).forEach(n=>n.handleChange(r))}alias(t){return r=>t.getValueFor(r)}}Xi.uniqueId=(()=>{let e=0;return()=>(e++,e.toString(16))})();Xi.tokensById=new Map;class oRe{startReflection(t,r){t.subscribe(this,r),this.handleChange({token:t,target:r})}stopReflection(t,r){t.unsubscribe(this,r),this.remove(t,r)}handleChange(t){const{token:r,target:n}=t;this.add(r,n)}add(t,r){F0.getOrCreate(r).setProperty(t.cssCustomProperty,this.resolveCSSValue(ao.getOrCreate(r).get(t)))}remove(t,r){F0.getOrCreate(r).removeProperty(t.cssCustomProperty)}resolveCSSValue(t){return t&&typeof t.createCSS=="function"?t.createCSS():t}}class iRe{constructor(t,r,n){this.source=t,this.token=r,this.node=n,this.dependencies=new Set,this.observer=Xo.binding(t,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){this.node.store.set(this.token,this.observer.observe(this.node.target,Hy))}}class sRe{constructor(){this.values=new Map}set(t,r){this.values.get(t)!==r&&(this.values.set(t,r),Xo.getNotifier(this).notify(t.id))}get(t){return Xo.track(this,t.id),this.values.get(t)}delete(t){this.values.delete(t)}all(){return this.values.entries()}}const Nm=new WeakMap,Cm=new WeakMap;class ao{constructor(t){this.target=t,this.store=new sRe,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(r,n)=>{const o=Xi.getTokenById(n);if(o&&(o.notify(this.target),Xi.isCSSDesignToken(o))){const i=this.parent,s=this.isReflecting(o);if(i){const a=i.get(o),u=r.get(o);a!==u&&!s?this.reflectToCSS(o):a===u&&s&&this.stopReflectToCSS(o)}else s||this.reflectToCSS(o)}}},Nm.set(t,this),Xo.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),t instanceof gx?t.$fastController.addBehaviors([this]):t.isConnected&&this.bind()}static getOrCreate(t){return Nm.get(t)||new ao(t)}static existsFor(t){return Nm.has(t)}static findParent(t){if(of!==t.target){let r=YF(t.target);for(;r!==null;){if(Nm.has(r))return Nm.get(r);r=YF(r)}return ao.getOrCreate(of)}return null}static findClosestAssignedNode(t,r){let n=r;do{if(n.has(t))return n;n=n.parent?n.parent:n.target!==of?ao.getOrCreate(of):null}while(n!==null);return null}get parent(){return Cm.get(this)||null}has(t){return this.assignedValues.has(t)}get(t){const r=this.store.get(t);if(r!==void 0)return r;const n=this.getRaw(t);if(n!==void 0)return this.hydrate(t,n),this.get(t)}getRaw(t){var r;return this.assignedValues.has(t)?this.assignedValues.get(t):(r=ao.findClosestAssignedNode(t,this))===null||r===void 0?void 0:r.getRaw(t)}set(t,r){Xi.isDerivedDesignTokenValue(this.assignedValues.get(t))&&this.tearDownBindingObserver(t),this.assignedValues.set(t,r),Xi.isDerivedDesignTokenValue(r)?this.setupBindingObserver(t,r):this.store.set(t,r)}delete(t){this.assignedValues.delete(t),this.tearDownBindingObserver(t);const r=this.getRaw(t);r?this.hydrate(t,r):this.store.delete(t)}bind(){const t=ao.findParent(this);t&&t.appendChild(this);for(const r of this.assignedValues.keys())r.notify(this.target)}unbind(){this.parent&&Cm.get(this).removeChild(this)}appendChild(t){t.parent&&Cm.get(t).removeChild(t);const r=this.children.filter(n=>t.contains(n));Cm.set(t,this),this.children.push(t),r.forEach(n=>t.appendChild(n)),Xo.getNotifier(this.store).subscribe(t);for(const[n,o]of this.store.all())t.hydrate(n,this.bindingObservers.has(n)?this.getRaw(n):o)}removeChild(t){const r=this.children.indexOf(t);return r!==-1&&this.children.splice(r,1),Xo.getNotifier(this.store).unsubscribe(t),t.parent===this?Cm.delete(t):!1}contains(t){return QCe(this.target,t.target)}reflectToCSS(t){this.isReflecting(t)||(this.reflecting.add(t),ao.cssCustomPropertyReflector.startReflection(t,this.target))}stopReflectToCSS(t){this.isReflecting(t)&&(this.reflecting.delete(t),ao.cssCustomPropertyReflector.stopReflection(t,this.target))}isReflecting(t){return this.reflecting.has(t)}handleChange(t,r){const n=Xi.getTokenById(r);n&&this.hydrate(n,this.getRaw(n))}hydrate(t,r){if(!this.has(t)){const n=this.bindingObservers.get(t);Xi.isDerivedDesignTokenValue(r)?n?n.source!==r&&(this.tearDownBindingObserver(t),this.setupBindingObserver(t,r)):this.setupBindingObserver(t,r):(n&&this.tearDownBindingObserver(t),this.store.set(t,r))}}setupBindingObserver(t,r){const n=new iRe(r,t,this);return this.bindingObservers.set(t,n),n}tearDownBindingObserver(t){return this.bindingObservers.has(t)?(this.bindingObservers.get(t).disconnect(),this.bindingObservers.delete(t),!0):!1}}ao.cssCustomPropertyReflector=new oRe;Sr([cv],ao.prototype,"children",void 0);function aRe(e){return Xi.from(e)}const gse=Object.freeze({create:aRe,notifyConnection(e){return!e.isConnected||!ao.existsFor(e)?!1:(ao.getOrCreate(e).bind(),!0)},notifyDisconnection(e){return e.isConnected||!ao.existsFor(e)?!1:(ao.getOrCreate(e).unbind(),!0)},registerRoot(e=of){Po.registerRoot(e)},unregisterRoot(e=of){Po.unregisterRoot(e)}}),P2=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),q2=new Map,yk=new Map;let rg=null;const Rm=zn.createInterface(e=>e.cachedCallback(t=>(rg===null&&(rg=new mse(null,t)),rg))),vse=Object.freeze({tagFor(e){return yk.get(e)},responsibleFor(e){const t=e.$$designSystem$$;return t||zn.findResponsibleContainer(e).get(Rm)},getOrCreate(e){if(!e)return rg===null&&(rg=zn.getOrCreateDOMContainer().get(Rm)),rg;const t=e.$$designSystem$$;if(t)return t;const r=zn.getOrCreateDOMContainer(e);if(r.has(Rm,!1))return r.get(Rm);{const n=new mse(e,r);return r.register(Bb.instance(Rm,n)),n}}});function uRe(e,t,r){return typeof e=="string"?{name:e,type:t,callback:r}:e}class mse{constructor(t,r){this.owner=t,this.container=r,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>P2.definitionCallbackOnly,t!==null&&(t.$$designSystem$$=this)}withPrefix(t){return this.prefix=t,this}withShadowRootMode(t){return this.shadowRootMode=t,this}withElementDisambiguation(t){return this.disambiguate=t,this}withDesignTokenRoot(t){return this.designTokenRoot=t,this}register(...t){const r=this.container,n=[],o=this.disambiguate,i=this.shadowRootMode,s={elementPrefix:this.prefix,tryDefineElement(a,u,l){const c=uRe(a,u,l),{name:f,callback:d,baseClass:h}=c;let{type:g}=c,v=f,y=q2.get(v),E=!0;for(;y;){const _=o(v,g,y);switch(_){case P2.ignoreDuplicate:return;case P2.definitionCallbackOnly:E=!1,y=void 0;break;default:v=_,y=q2.get(v);break}}E&&((yk.has(g)||g===Gh)&&(g=class extends g{}),q2.set(v,g),yk.set(g,v),h&&yk.set(h,v)),n.push(new lRe(r,v,g,i,d,E))}};this.designTokensInitialized||(this.designTokensInitialized=!0,this.designTokenRoot!==null&&gse.registerRoot(this.designTokenRoot)),r.registerWithContext(s,...t);for(const a of n)a.callback(a),a.willDefine&&a.definition!==null&&a.definition.define();return this}}class lRe{constructor(t,r,n,o,i,s){this.container=t,this.name=r,this.type=n,this.shadowRootMode=o,this.callback=i,this.willDefine=s,this.definition=null}definePresentation(t){dse.define(this.name,t,this.container)}defineElement(t){this.definition=new px(this.type,Object.assign(Object.assign({},t),{name:this.name}))}tagFor(t){return vse.tagFor(t)}}const cRe="not-allowed",fRe=":host([hidden]){display:none}";function dRe(e){return`${fRe}:host{display:${e}}`}const mx=KCe()?"focus-visible":"focus";function hRe(e){return vse.getOrCreate(e).withPrefix("vscode")}function pRe(e){window.addEventListener("load",()=>{new MutationObserver(()=>{SW(e)}).observe(document.body,{attributes:!0,attributeFilter:["class"]}),SW(e)})}function SW(e){const t=getComputedStyle(document.body),r=document.querySelector("body");if(r){const n=r.getAttribute("data-vscode-theme-kind");for(const[o,i]of e){let s=t.getPropertyValue(o).toString();if(n==="vscode-high-contrast")s.length===0&&i.name.includes("background")&&(s="transparent"),i.name==="button-icon-hover-background"&&(s="transparent");else if(n==="vscode-high-contrast-light"){if(s.length===0&&i.name.includes("background"))switch(i.name){case"button-primary-hover-background":s="#0F4A85";break;case"button-secondary-hover-background":s="transparent";break;case"button-icon-hover-background":s="transparent";break}}else i.name==="contrast-active-border"&&(s="transparent");i.setValueFor(r,s)}}}const wW=new Map;let kW=!1;function ht(e,t){const r=gse.create(e);if(t){if(t.includes("--fake-vscode-token")){const n="id"+Math.random().toString(16).slice(2);t=`${t}-${n}`}wW.set(t,r)}return kW||(pRe(wW),kW=!0),r}ht("background","--vscode-editor-background").withDefault("#1e1e1e");const Yd=ht("border-width").withDefault(1),gRe=ht("contrast-active-border","--vscode-contrastActiveBorder").withDefault("#f38518");ht("contrast-border","--vscode-contrastBorder").withDefault("#6fc3df");ht("corner-radius").withDefault(0);const vRe=ht("corner-radius-round").withDefault(2),AW=ht("design-unit").withDefault(4),mRe=ht("disabled-opacity").withDefault(.4),yx=ht("focus-border","--vscode-focusBorder").withDefault("#007fd4"),yRe=ht("font-family","--vscode-font-family").withDefault("-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol");ht("font-weight","--vscode-font-weight").withDefault("400");const bRe=ht("foreground","--vscode-foreground").withDefault("#cccccc");ht("input-height").withDefault("26");ht("input-min-width").withDefault("100px");const _Re=ht("type-ramp-base-font-size","--vscode-font-size").withDefault("13px"),ERe=ht("type-ramp-base-line-height").withDefault("normal");ht("type-ramp-minus1-font-size").withDefault("11px");ht("type-ramp-minus1-line-height").withDefault("16px");ht("type-ramp-minus2-font-size").withDefault("9px");ht("type-ramp-minus2-line-height").withDefault("16px");ht("type-ramp-plus1-font-size").withDefault("16px");ht("type-ramp-plus1-line-height").withDefault("24px");ht("scrollbarWidth").withDefault("10px");ht("scrollbarHeight").withDefault("10px");ht("scrollbar-slider-background","--vscode-scrollbarSlider-background").withDefault("#79797966");ht("scrollbar-slider-hover-background","--vscode-scrollbarSlider-hoverBackground").withDefault("#646464b3");ht("scrollbar-slider-active-background","--vscode-scrollbarSlider-activeBackground").withDefault("#bfbfbf66");ht("badge-background","--vscode-badge-background").withDefault("#4d4d4d");ht("badge-foreground","--vscode-badge-foreground").withDefault("#ffffff");const SRe=ht("button-border","--vscode-button-border").withDefault("transparent"),TW=ht("button-icon-background").withDefault("transparent"),wRe=ht("button-icon-corner-radius").withDefault("5px"),kRe=ht("button-icon-outline-offset").withDefault(0),xW=ht("button-icon-hover-background","--fake-vscode-token").withDefault("rgba(90, 93, 94, 0.31)"),ARe=ht("button-icon-padding").withDefault("3px"),ng=ht("button-primary-background","--vscode-button-background").withDefault("#0e639c"),yse=ht("button-primary-foreground","--vscode-button-foreground").withDefault("#ffffff"),bse=ht("button-primary-hover-background","--vscode-button-hoverBackground").withDefault("#1177bb"),W2=ht("button-secondary-background","--vscode-button-secondaryBackground").withDefault("#3a3d41"),TRe=ht("button-secondary-foreground","--vscode-button-secondaryForeground").withDefault("#ffffff"),xRe=ht("button-secondary-hover-background","--vscode-button-secondaryHoverBackground").withDefault("#45494e"),IRe=ht("button-padding-horizontal").withDefault("11px"),NRe=ht("button-padding-vertical").withDefault("4px");ht("checkbox-background","--vscode-checkbox-background").withDefault("#3c3c3c");ht("checkbox-border","--vscode-checkbox-border").withDefault("#3c3c3c");ht("checkbox-corner-radius").withDefault(3);ht("checkbox-foreground","--vscode-checkbox-foreground").withDefault("#f0f0f0");ht("list-active-selection-background","--vscode-list-activeSelectionBackground").withDefault("#094771");ht("list-active-selection-foreground","--vscode-list-activeSelectionForeground").withDefault("#ffffff");ht("list-hover-background","--vscode-list-hoverBackground").withDefault("#2a2d2e");ht("divider-background","--vscode-settings-dropdownListBorder").withDefault("#454545");ht("dropdown-background","--vscode-dropdown-background").withDefault("#3c3c3c");ht("dropdown-border","--vscode-dropdown-border").withDefault("#3c3c3c");ht("dropdown-foreground","--vscode-dropdown-foreground").withDefault("#f0f0f0");ht("dropdown-list-max-height").withDefault("200px");ht("input-background","--vscode-input-background").withDefault("#3c3c3c");ht("input-foreground","--vscode-input-foreground").withDefault("#cccccc");ht("input-placeholder-foreground","--vscode-input-placeholderForeground").withDefault("#cccccc");ht("link-active-foreground","--vscode-textLink-activeForeground").withDefault("#3794ff");ht("link-foreground","--vscode-textLink-foreground").withDefault("#3794ff");ht("progress-background","--vscode-progressBar-background").withDefault("#0e70c0");ht("panel-tab-active-border","--vscode-panelTitle-activeBorder").withDefault("#e7e7e7");ht("panel-tab-active-foreground","--vscode-panelTitle-activeForeground").withDefault("#e7e7e7");ht("panel-tab-foreground","--vscode-panelTitle-inactiveForeground").withDefault("#e7e7e799");ht("panel-view-background","--vscode-panel-background").withDefault("#1e1e1e");ht("panel-view-border","--vscode-panel-border").withDefault("#80808059");ht("tag-corner-radius").withDefault("2px");const CRe=$_` - ${dRe("inline-flex")} :host { +`,xW="form-associated-proxy",TW="ElementInternals",IW=TW in window&&"setFormValue"in window[TW].prototype,CW=new WeakMap;function tRe(e){const t=class extends e{constructor(...r){super(...r),this.dirtyValue=!1,this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}static get formAssociated(){return IW}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){const r=this.proxy.labels,n=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),o=r?n.concat(Array.from(r)):n;return Object.freeze(o)}else return Hy}valueChanged(r,n){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(r,n){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(r,n){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),tn.queueUpdate(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(r,n){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(r,n){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),tn.queueUpdate(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!IW)return null;let r=CW.get(this);return r||(r=this.attachInternals(),CW.set(this,r)),r}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}disconnectedCallback(){super.disconnectedCallback(),this.proxyEventsToBlock.forEach(r=>this.proxy.removeEventListener(r,this.stopPropagation)),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(r,n,o){this.elementInternals?this.elementInternals.setValidity(r,n,o):typeof n=="string"&&this.proxy.setCustomValidity(n)}formDisabledCallback(r){this.disabled=r}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){var r;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(n=>this.proxy.addEventListener(n,this.stopPropagation)),this.proxy.disabled=this.disabled,this.proxy.required=this.required,typeof this.name=="string"&&(this.proxy.name=this.name),typeof this.value=="string"&&(this.proxy.value=this.value),this.proxy.setAttribute("slot",xW),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",xW)),(r=this.shadowRoot)===null||r===void 0||r.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){var r;this.removeChild(this.proxy),(r=this.shadowRoot)===null||r===void 0||r.removeChild(this.proxySlot)}validate(r){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,r)}setFormValue(r,n){this.elementInternals&&this.elementInternals.setFormValue(r,n||r)}_keypressHandler(r){switch(r.key){case JNe:if(this.form instanceof HTMLFormElement){const n=this.form.querySelector("[type=submit]");n==null||n.click()}break}}stopPropagation(r){r.stopPropagation()}};return _r({mode:"boolean"})(t.prototype,"disabled"),_r({mode:"fromView",attribute:"value"})(t.prototype,"initialValue"),_r({attribute:"current-value"})(t.prototype,"currentValue"),_r(t.prototype,"name"),_r({mode:"boolean"})(t.prototype,"required"),hv(t.prototype,"value"),t}class rRe extends Kh{}class nRe extends tRe(rRe){constructor(){super(...arguments),this.proxy=document.createElement("input")}}let hl=class extends nRe{constructor(){super(...arguments),this.handleClick=t=>{var r;this.disabled&&((r=this.defaultSlottedContent)===null||r===void 0?void 0:r.length)<=1&&t.stopPropagation()},this.handleSubmission=()=>{if(!this.form)return;const t=this.proxy.isConnected;t||this.attachProxy(),typeof this.form.requestSubmit=="function"?this.form.requestSubmit(this.proxy):this.proxy.click(),t||this.detachProxy()},this.handleFormReset=()=>{var t;(t=this.form)===null||t===void 0||t.reset()},this.handleUnsupportedDelegatesFocus=()=>{var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(!((t=this.$fastController.definition.shadowOptions)===null||t===void 0)&&t.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}formactionChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formAction=this.formaction)}formenctypeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formEnctype=this.formenctype)}formmethodChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formMethod=this.formmethod)}formnovalidateChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formNoValidate=this.formnovalidate)}formtargetChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formTarget=this.formtarget)}typeChanged(t,r){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),r==="submit"&&this.addEventListener("click",this.handleSubmission),t==="submit"&&this.removeEventListener("click",this.handleSubmission),r==="reset"&&this.addEventListener("click",this.handleFormReset),t==="reset"&&this.removeEventListener("click",this.handleFormReset)}validate(){super.validate(this.control)}connectedCallback(){var t;super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus();const r=Array.from((t=this.control)===null||t===void 0?void 0:t.children);r&&r.forEach(n=>{n.addEventListener("click",this.handleClick)})}disconnectedCallback(){var t;super.disconnectedCallback();const r=Array.from((t=this.control)===null||t===void 0?void 0:t.children);r&&r.forEach(n=>{n.removeEventListener("click",this.handleClick)})}};wr([_r({mode:"boolean"})],hl.prototype,"autofocus",void 0);wr([_r({attribute:"form"})],hl.prototype,"formId",void 0);wr([_r],hl.prototype,"formaction",void 0);wr([_r],hl.prototype,"formenctype",void 0);wr([_r],hl.prototype,"formmethod",void 0);wr([_r({mode:"boolean"})],hl.prototype,"formnovalidate",void 0);wr([_r],hl.prototype,"formtarget",void 0);wr([_r],hl.prototype,"type",void 0);wr([hv],hl.prototype,"defaultSlottedContent",void 0);class _T{}wr([_r({attribute:"aria-expanded"})],_T.prototype,"ariaExpanded",void 0);wr([_r({attribute:"aria-pressed"})],_T.prototype,"ariaPressed",void 0);_se(_T,ko);_se(hl,FNe,_T);function JF(e){const t=e.parentElement;if(t)return t;{const r=e.getRootNode();if(r.host instanceof HTMLElement)return r.host}return null}function oRe(e,t){let r=t;for(;r!==null;){if(r===e)return!0;r=JF(r)}return!1}const sf=document.createElement("div");function iRe(e){return e instanceof bT}class i8{setProperty(t,r){tn.queueUpdate(()=>this.target.setProperty(t,r))}removeProperty(t){tn.queueUpdate(()=>this.target.removeProperty(t))}}class sRe extends i8{constructor(t){super();const r=new CSSStyleSheet;this.target=r.cssRules[r.insertRule(":host{}")].style,t.$fastController.addStyles(Fs.create([r]))}}class aRe extends i8{constructor(){super();const t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,t]}}class uRe extends i8{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);const{sheet:t}=this.style;if(t){const r=t.insertRule(":root{}",t.cssRules.length);this.target=t.cssRules[r].style}}}class Ese{constructor(t){this.store=new Map,this.target=null;const r=t.$fastController;this.style=document.createElement("style"),r.addStyles(this.style),Xo.getNotifier(r).subscribe(this,"isConnected"),this.handleChange(r,"isConnected")}targetChanged(){if(this.target!==null)for(const[t,r]of this.store.entries())this.target.setProperty(t,r)}setProperty(t,r){this.store.set(t,r),tn.queueUpdate(()=>{this.target!==null&&this.target.setProperty(t,r)})}removeProperty(t){this.store.delete(t),tn.queueUpdate(()=>{this.target!==null&&this.target.removeProperty(t)})}handleChange(t,r){const{sheet:n}=this.style;if(n){const o=n.insertRule(":host{}",n.cssRules.length);this.target=n.cssRules[o].style}else this.target=null}}wr([hv],Ese.prototype,"target",void 0);class lRe{constructor(t){this.target=t.style}setProperty(t,r){tn.queueUpdate(()=>this.target.setProperty(t,r))}removeProperty(t){tn.queueUpdate(()=>this.target.removeProperty(t))}}class Po{setProperty(t,r){Po.properties[t]=r;for(const n of Po.roots.values())B0.getOrCreate(Po.normalizeRoot(n)).setProperty(t,r)}removeProperty(t){delete Po.properties[t];for(const r of Po.roots.values())B0.getOrCreate(Po.normalizeRoot(r)).removeProperty(t)}static registerRoot(t){const{roots:r}=Po;if(!r.has(t)){r.add(t);const n=B0.getOrCreate(this.normalizeRoot(t));for(const o in Po.properties)n.setProperty(o,Po.properties[o])}}static unregisterRoot(t){const{roots:r}=Po;if(r.has(t)){r.delete(t);const n=B0.getOrCreate(Po.normalizeRoot(t));for(const o in Po.properties)n.removeProperty(o)}}static normalizeRoot(t){return t===sf?document:t}}Po.roots=new Set;Po.properties={};const K2=new WeakMap,cRe=tn.supportsAdoptedStyleSheets?sRe:Ese,B0=Object.freeze({getOrCreate(e){if(K2.has(e))return K2.get(e);let t;return e===sf?t=new Po:e instanceof Document?t=tn.supportsAdoptedStyleSheets?new aRe:new uRe:iRe(e)?t=new cRe(e):t=new lRe(e),K2.set(e,t),t}});class Xi extends gse{constructor(t){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=t.name,t.cssCustomPropertyName!==null&&(this.cssCustomProperty=`--${t.cssCustomPropertyName}`,this.cssVar=`var(${this.cssCustomProperty})`),this.id=Xi.uniqueId(),Xi.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(t){return new Xi({name:typeof t=="string"?t:t.name,cssCustomPropertyName:typeof t=="string"?t:t.cssCustomPropertyName===void 0?t.name:t.cssCustomPropertyName})}static isCSSDesignToken(t){return typeof t.cssCustomProperty=="string"}static isDerivedDesignTokenValue(t){return typeof t=="function"}static getTokenById(t){return Xi.tokensById.get(t)}getOrCreateSubscriberSet(t=this){return this.subscribers.get(t)||this.subscribers.set(t,new Set)&&this.subscribers.get(t)}createCSS(){return this.cssVar||""}getValueFor(t){const r=uo.getOrCreate(t).get(this);if(r!==void 0)return r;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${t} or an ancestor of ${t}.`)}setValueFor(t,r){return this._appliedTo.add(t),r instanceof Xi&&(r=this.alias(r)),uo.getOrCreate(t).set(this,r),this}deleteValueFor(t){return this._appliedTo.delete(t),uo.existsFor(t)&&uo.getOrCreate(t).delete(this),this}withDefault(t){return this.setValueFor(sf,t),this}subscribe(t,r){const n=this.getOrCreateSubscriberSet(r);r&&!uo.existsFor(r)&&uo.getOrCreate(r),n.has(t)||n.add(t)}unsubscribe(t,r){const n=this.subscribers.get(r||this);n&&n.has(t)&&n.delete(t)}notify(t){const r=Object.freeze({token:this,target:t});this.subscribers.has(this)&&this.subscribers.get(this).forEach(n=>n.handleChange(r)),this.subscribers.has(t)&&this.subscribers.get(t).forEach(n=>n.handleChange(r))}alias(t){return r=>t.getValueFor(r)}}Xi.uniqueId=(()=>{let e=0;return()=>(e++,e.toString(16))})();Xi.tokensById=new Map;class fRe{startReflection(t,r){t.subscribe(this,r),this.handleChange({token:t,target:r})}stopReflection(t,r){t.unsubscribe(this,r),this.remove(t,r)}handleChange(t){const{token:r,target:n}=t;this.add(r,n)}add(t,r){B0.getOrCreate(r).setProperty(t.cssCustomProperty,this.resolveCSSValue(uo.getOrCreate(r).get(t)))}remove(t,r){B0.getOrCreate(r).removeProperty(t.cssCustomProperty)}resolveCSSValue(t){return t&&typeof t.createCSS=="function"?t.createCSS():t}}class dRe{constructor(t,r,n){this.source=t,this.token=r,this.node=n,this.dependencies=new Set,this.observer=Xo.binding(t,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){this.node.store.set(this.token,this.observer.observe(this.node.target,Py))}}class hRe{constructor(){this.values=new Map}set(t,r){this.values.get(t)!==r&&(this.values.set(t,r),Xo.getNotifier(this).notify(t.id))}get(t){return Xo.track(this,t.id),this.values.get(t)}delete(t){this.values.delete(t)}all(){return this.values.entries()}}const Nm=new WeakMap,Rm=new WeakMap;class uo{constructor(t){this.target=t,this.store=new hRe,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(r,n)=>{const o=Xi.getTokenById(n);if(o&&(o.notify(this.target),Xi.isCSSDesignToken(o))){const i=this.parent,s=this.isReflecting(o);if(i){const a=i.get(o),u=r.get(o);a!==u&&!s?this.reflectToCSS(o):a===u&&s&&this.stopReflectToCSS(o)}else s||this.reflectToCSS(o)}}},Nm.set(t,this),Xo.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),t instanceof bT?t.$fastController.addBehaviors([this]):t.isConnected&&this.bind()}static getOrCreate(t){return Nm.get(t)||new uo(t)}static existsFor(t){return Nm.has(t)}static findParent(t){if(sf!==t.target){let r=JF(t.target);for(;r!==null;){if(Nm.has(r))return Nm.get(r);r=JF(r)}return uo.getOrCreate(sf)}return null}static findClosestAssignedNode(t,r){let n=r;do{if(n.has(t))return n;n=n.parent?n.parent:n.target!==sf?uo.getOrCreate(sf):null}while(n!==null);return null}get parent(){return Rm.get(this)||null}has(t){return this.assignedValues.has(t)}get(t){const r=this.store.get(t);if(r!==void 0)return r;const n=this.getRaw(t);if(n!==void 0)return this.hydrate(t,n),this.get(t)}getRaw(t){var r;return this.assignedValues.has(t)?this.assignedValues.get(t):(r=uo.findClosestAssignedNode(t,this))===null||r===void 0?void 0:r.getRaw(t)}set(t,r){Xi.isDerivedDesignTokenValue(this.assignedValues.get(t))&&this.tearDownBindingObserver(t),this.assignedValues.set(t,r),Xi.isDerivedDesignTokenValue(r)?this.setupBindingObserver(t,r):this.store.set(t,r)}delete(t){this.assignedValues.delete(t),this.tearDownBindingObserver(t);const r=this.getRaw(t);r?this.hydrate(t,r):this.store.delete(t)}bind(){const t=uo.findParent(this);t&&t.appendChild(this);for(const r of this.assignedValues.keys())r.notify(this.target)}unbind(){this.parent&&Rm.get(this).removeChild(this)}appendChild(t){t.parent&&Rm.get(t).removeChild(t);const r=this.children.filter(n=>t.contains(n));Rm.set(t,this),this.children.push(t),r.forEach(n=>t.appendChild(n)),Xo.getNotifier(this.store).subscribe(t);for(const[n,o]of this.store.all())t.hydrate(n,this.bindingObservers.has(n)?this.getRaw(n):o)}removeChild(t){const r=this.children.indexOf(t);return r!==-1&&this.children.splice(r,1),Xo.getNotifier(this.store).unsubscribe(t),t.parent===this?Rm.delete(t):!1}contains(t){return oRe(this.target,t.target)}reflectToCSS(t){this.isReflecting(t)||(this.reflecting.add(t),uo.cssCustomPropertyReflector.startReflection(t,this.target))}stopReflectToCSS(t){this.isReflecting(t)&&(this.reflecting.delete(t),uo.cssCustomPropertyReflector.stopReflection(t,this.target))}isReflecting(t){return this.reflecting.has(t)}handleChange(t,r){const n=Xi.getTokenById(r);n&&this.hydrate(n,this.getRaw(n))}hydrate(t,r){if(!this.has(t)){const n=this.bindingObservers.get(t);Xi.isDerivedDesignTokenValue(r)?n?n.source!==r&&(this.tearDownBindingObserver(t),this.setupBindingObserver(t,r)):this.setupBindingObserver(t,r):(n&&this.tearDownBindingObserver(t),this.store.set(t,r))}}setupBindingObserver(t,r){const n=new dRe(r,t,this);return this.bindingObservers.set(t,n),n}tearDownBindingObserver(t){return this.bindingObservers.has(t)?(this.bindingObservers.get(t).disconnect(),this.bindingObservers.delete(t),!0):!1}}uo.cssCustomPropertyReflector=new fRe;wr([hv],uo.prototype,"children",void 0);function pRe(e){return Xi.from(e)}const Sse=Object.freeze({create:pRe,notifyConnection(e){return!e.isConnected||!uo.existsFor(e)?!1:(uo.getOrCreate(e).bind(),!0)},notifyDisconnection(e){return e.isConnected||!uo.existsFor(e)?!1:(uo.getOrCreate(e).unbind(),!0)},registerRoot(e=sf){Po.registerRoot(e)},unregisterRoot(e=sf){Po.unregisterRoot(e)}}),G2=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),V2=new Map,SA=new Map;let ng=null;const Om=jn.createInterface(e=>e.cachedCallback(t=>(ng===null&&(ng=new Ase(null,t)),ng))),wse=Object.freeze({tagFor(e){return SA.get(e)},responsibleFor(e){const t=e.$$designSystem$$;return t||jn.findResponsibleContainer(e).get(Om)},getOrCreate(e){if(!e)return ng===null&&(ng=jn.getOrCreateDOMContainer().get(Om)),ng;const t=e.$$designSystem$$;if(t)return t;const r=jn.getOrCreateDOMContainer(e);if(r.has(Om,!1))return r.get(Om);{const n=new Ase(e,r);return r.register(jb.instance(Om,n)),n}}});function gRe(e,t,r){return typeof e=="string"?{name:e,type:t,callback:r}:e}class Ase{constructor(t,r){this.owner=t,this.container=r,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>G2.definitionCallbackOnly,t!==null&&(t.$$designSystem$$=this)}withPrefix(t){return this.prefix=t,this}withShadowRootMode(t){return this.shadowRootMode=t,this}withElementDisambiguation(t){return this.disambiguate=t,this}withDesignTokenRoot(t){return this.designTokenRoot=t,this}register(...t){const r=this.container,n=[],o=this.disambiguate,i=this.shadowRootMode,s={elementPrefix:this.prefix,tryDefineElement(a,u,l){const c=gRe(a,u,l),{name:f,callback:d,baseClass:h}=c;let{type:g}=c,v=f,y=V2.get(v),E=!0;for(;y;){const _=o(v,g,y);switch(_){case G2.ignoreDuplicate:return;case G2.definitionCallbackOnly:E=!1,y=void 0;break;default:v=_,y=V2.get(v);break}}E&&((SA.has(g)||g===Kh)&&(g=class extends g{}),V2.set(v,g),SA.set(g,v),h&&SA.set(h,v)),n.push(new vRe(r,v,g,i,d,E))}};this.designTokensInitialized||(this.designTokensInitialized=!0,this.designTokenRoot!==null&&Sse.registerRoot(this.designTokenRoot)),r.registerWithContext(s,...t);for(const a of n)a.callback(a),a.willDefine&&a.definition!==null&&a.definition.define();return this}}class vRe{constructor(t,r,n,o,i,s){this.container=t,this.name=r,this.type=n,this.shadowRootMode=o,this.callback=i,this.willDefine=s,this.definition=null}definePresentation(t){bse.define(this.name,t,this.container)}defineElement(t){this.definition=new yT(this.type,Object.assign(Object.assign({},t),{name:this.name}))}tagFor(t){return wse.tagFor(t)}}const mRe="not-allowed",yRe=":host([hidden]){display:none}";function bRe(e){return`${yRe}:host{display:${e}}`}const ET=ZNe()?"focus-visible":"focus";function _Re(e){return wse.getOrCreate(e).withPrefix("vscode")}function ERe(e){window.addEventListener("load",()=>{new MutationObserver(()=>{NW(e)}).observe(document.body,{attributes:!0,attributeFilter:["class"]}),NW(e)})}function NW(e){const t=getComputedStyle(document.body),r=document.querySelector("body");if(r){const n=r.getAttribute("data-vscode-theme-kind");for(const[o,i]of e){let s=t.getPropertyValue(o).toString();if(n==="vscode-high-contrast")s.length===0&&i.name.includes("background")&&(s="transparent"),i.name==="button-icon-hover-background"&&(s="transparent");else if(n==="vscode-high-contrast-light"){if(s.length===0&&i.name.includes("background"))switch(i.name){case"button-primary-hover-background":s="#0F4A85";break;case"button-secondary-hover-background":s="transparent";break;case"button-icon-hover-background":s="transparent";break}}else i.name==="contrast-active-border"&&(s="transparent");i.setValueFor(r,s)}}}const RW=new Map;let OW=!1;function pt(e,t){const r=Sse.create(e);if(t){if(t.includes("--fake-vscode-token")){const n="id"+Math.random().toString(16).slice(2);t=`${t}-${n}`}RW.set(t,r)}return OW||(ERe(RW),OW=!0),r}pt("background","--vscode-editor-background").withDefault("#1e1e1e");const Yd=pt("border-width").withDefault(1),SRe=pt("contrast-active-border","--vscode-contrastActiveBorder").withDefault("#f38518");pt("contrast-border","--vscode-contrastBorder").withDefault("#6fc3df");pt("corner-radius").withDefault(0);const wRe=pt("corner-radius-round").withDefault(2),DW=pt("design-unit").withDefault(4),ARe=pt("disabled-opacity").withDefault(.4),ST=pt("focus-border","--vscode-focusBorder").withDefault("#007fd4"),kRe=pt("font-family","--vscode-font-family").withDefault("-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol");pt("font-weight","--vscode-font-weight").withDefault("400");const xRe=pt("foreground","--vscode-foreground").withDefault("#cccccc");pt("input-height").withDefault("26");pt("input-min-width").withDefault("100px");const TRe=pt("type-ramp-base-font-size","--vscode-font-size").withDefault("13px"),IRe=pt("type-ramp-base-line-height").withDefault("normal");pt("type-ramp-minus1-font-size").withDefault("11px");pt("type-ramp-minus1-line-height").withDefault("16px");pt("type-ramp-minus2-font-size").withDefault("9px");pt("type-ramp-minus2-line-height").withDefault("16px");pt("type-ramp-plus1-font-size").withDefault("16px");pt("type-ramp-plus1-line-height").withDefault("24px");pt("scrollbarWidth").withDefault("10px");pt("scrollbarHeight").withDefault("10px");pt("scrollbar-slider-background","--vscode-scrollbarSlider-background").withDefault("#79797966");pt("scrollbar-slider-hover-background","--vscode-scrollbarSlider-hoverBackground").withDefault("#646464b3");pt("scrollbar-slider-active-background","--vscode-scrollbarSlider-activeBackground").withDefault("#bfbfbf66");pt("badge-background","--vscode-badge-background").withDefault("#4d4d4d");pt("badge-foreground","--vscode-badge-foreground").withDefault("#ffffff");const CRe=pt("button-border","--vscode-button-border").withDefault("transparent"),FW=pt("button-icon-background").withDefault("transparent"),NRe=pt("button-icon-corner-radius").withDefault("5px"),RRe=pt("button-icon-outline-offset").withDefault(0),BW=pt("button-icon-hover-background","--fake-vscode-token").withDefault("rgba(90, 93, 94, 0.31)"),ORe=pt("button-icon-padding").withDefault("3px"),og=pt("button-primary-background","--vscode-button-background").withDefault("#0e639c"),kse=pt("button-primary-foreground","--vscode-button-foreground").withDefault("#ffffff"),xse=pt("button-primary-hover-background","--vscode-button-hoverBackground").withDefault("#1177bb"),U2=pt("button-secondary-background","--vscode-button-secondaryBackground").withDefault("#3a3d41"),DRe=pt("button-secondary-foreground","--vscode-button-secondaryForeground").withDefault("#ffffff"),FRe=pt("button-secondary-hover-background","--vscode-button-secondaryHoverBackground").withDefault("#45494e"),BRe=pt("button-padding-horizontal").withDefault("11px"),MRe=pt("button-padding-vertical").withDefault("4px");pt("checkbox-background","--vscode-checkbox-background").withDefault("#3c3c3c");pt("checkbox-border","--vscode-checkbox-border").withDefault("#3c3c3c");pt("checkbox-corner-radius").withDefault(3);pt("checkbox-foreground","--vscode-checkbox-foreground").withDefault("#f0f0f0");pt("list-active-selection-background","--vscode-list-activeSelectionBackground").withDefault("#094771");pt("list-active-selection-foreground","--vscode-list-activeSelectionForeground").withDefault("#ffffff");pt("list-hover-background","--vscode-list-hoverBackground").withDefault("#2a2d2e");pt("divider-background","--vscode-settings-dropdownListBorder").withDefault("#454545");pt("dropdown-background","--vscode-dropdown-background").withDefault("#3c3c3c");pt("dropdown-border","--vscode-dropdown-border").withDefault("#3c3c3c");pt("dropdown-foreground","--vscode-dropdown-foreground").withDefault("#f0f0f0");pt("dropdown-list-max-height").withDefault("200px");pt("input-background","--vscode-input-background").withDefault("#3c3c3c");pt("input-foreground","--vscode-input-foreground").withDefault("#cccccc");pt("input-placeholder-foreground","--vscode-input-placeholderForeground").withDefault("#cccccc");pt("link-active-foreground","--vscode-textLink-activeForeground").withDefault("#3794ff");pt("link-foreground","--vscode-textLink-foreground").withDefault("#3794ff");pt("progress-background","--vscode-progressBar-background").withDefault("#0e70c0");pt("panel-tab-active-border","--vscode-panelTitle-activeBorder").withDefault("#e7e7e7");pt("panel-tab-active-foreground","--vscode-panelTitle-activeForeground").withDefault("#e7e7e7");pt("panel-tab-foreground","--vscode-panelTitle-inactiveForeground").withDefault("#e7e7e799");pt("panel-view-background","--vscode-panel-background").withDefault("#1e1e1e");pt("panel-view-border","--vscode-panel-border").withDefault("#80808059");pt("tag-corner-radius").withDefault("2px");const LRe=W_` + ${bRe("inline-flex")} :host { outline: none; - font-family: ${yRe}; - font-size: ${_Re}; - line-height: ${ERe}; - color: ${yse}; - background: ${ng}; - border-radius: calc(${vRe} * 1px); + font-family: ${kRe}; + font-size: ${TRe}; + line-height: ${IRe}; + color: ${kse}; + background: ${og}; + border-radius: calc(${wRe} * 1px); fill: currentColor; cursor: pointer; } @@ -156,11 +156,11 @@ PERFORMANCE OF THIS SOFTWARE. display: inline-flex; justify-content: center; align-items: center; - padding: ${NRe} ${IRe}; + padding: ${MRe} ${BRe}; white-space: wrap; outline: none; text-decoration: none; - border: calc(${Yd} * 1px) solid ${SRe}; + border: calc(${Yd} * 1px) solid ${CRe}; color: inherit; border-radius: inherit; fill: inherit; @@ -168,22 +168,22 @@ PERFORMANCE OF THIS SOFTWARE. font-family: inherit; } :host(:hover) { - background: ${bse}; + background: ${xse}; } :host(:active) { - background: ${ng}; + background: ${og}; } - .control:${mx} { - outline: calc(${Yd} * 1px) solid ${yx}; + .control:${ET} { + outline: calc(${Yd} * 1px) solid ${ST}; outline-offset: calc(${Yd} * 2px); } .control::-moz-focus-inner { border: 0; } :host([disabled]) { - opacity: ${mRe}; - background: ${ng}; - cursor: ${cRe}; + opacity: ${ARe}; + background: ${og}; + cursor: ${mRe}; } .content { display: flex; @@ -193,212 +193,212 @@ PERFORMANCE OF THIS SOFTWARE. } ::slotted(svg), ::slotted(span) { - width: calc(${AW} * 4px); - height: calc(${AW} * 4px); + width: calc(${DW} * 4px); + height: calc(${DW} * 4px); } .start { margin-inline-end: 8px; } -`,RRe=$_` +`,jRe=W_` :host([appearance='primary']) { - background: ${ng}; - color: ${yse}; + background: ${og}; + color: ${kse}; } :host([appearance='primary']:hover) { - background: ${bse}; + background: ${xse}; } :host([appearance='primary']:active) .control:active { - background: ${ng}; + background: ${og}; } - :host([appearance='primary']) .control:${mx} { - outline: calc(${Yd} * 1px) solid ${yx}; + :host([appearance='primary']) .control:${ET} { + outline: calc(${Yd} * 1px) solid ${ST}; outline-offset: calc(${Yd} * 2px); } :host([appearance='primary'][disabled]) { - background: ${ng}; + background: ${og}; } -`,ORe=$_` +`,zRe=W_` :host([appearance='secondary']) { - background: ${W2}; - color: ${TRe}; + background: ${U2}; + color: ${DRe}; } :host([appearance='secondary']:hover) { - background: ${xRe}; + background: ${FRe}; } :host([appearance='secondary']:active) .control:active { - background: ${W2}; + background: ${U2}; } - :host([appearance='secondary']) .control:${mx} { - outline: calc(${Yd} * 1px) solid ${yx}; + :host([appearance='secondary']) .control:${ET} { + outline: calc(${Yd} * 1px) solid ${ST}; outline-offset: calc(${Yd} * 2px); } :host([appearance='secondary'][disabled]) { - background: ${W2}; + background: ${U2}; } -`,DRe=$_` +`,HRe=W_` :host([appearance='icon']) { - background: ${TW}; - border-radius: ${wRe}; - color: ${bRe}; + background: ${FW}; + border-radius: ${NRe}; + color: ${xRe}; } :host([appearance='icon']:hover) { - background: ${xW}; - outline: 1px dotted ${gRe}; + background: ${BW}; + outline: 1px dotted ${SRe}; outline-offset: -1px; } :host([appearance='icon']) .control { - padding: ${ARe}; + padding: ${ORe}; border: none; } :host([appearance='icon']:active) .control:active { - background: ${xW}; + background: ${BW}; } - :host([appearance='icon']) .control:${mx} { - outline: calc(${Yd} * 1px) solid ${yx}; - outline-offset: ${kRe}; + :host([appearance='icon']) .control:${ET} { + outline: calc(${Yd} * 1px) solid ${ST}; + outline-offset: ${RRe}; } :host([appearance='icon'][disabled]) { - background: ${TW}; + background: ${FW}; } -`,FRe=(e,t)=>$_` - ${CRe} - ${RRe} - ${ORe} - ${DRe} -`;let _se=class extends fl{connectedCallback(){if(super.connectedCallback(),!this.appearance){const t=this.getAttribute("appearance");this.appearance=t}}attributeChangedCallback(t,r,n){t==="appearance"&&n==="icon"&&(this.getAttribute("aria-label")||(this.ariaLabel="Icon Button")),t==="aria-label"&&(this.ariaLabel=n),t==="disabled"&&(this.disabled=n!==null)}};Ake([br],_se.prototype,"appearance",void 0);const BRe=_se.compose({baseName:"button",template:VCe,styles:FRe,shadowOptions:{delegatesFocus:!0}});var Ese,IW=li;Ese=IW.createRoot,IW.hydrateRoot;const MRe=["Top","Right","Bottom","Left"];function P_(e,t,...r){const[n,o=n,i=n,s=o]=r,a=[n,o,i,s],u={};for(let l=0;ltypeof e=="string"&&/(\d+(\w+|%))/.test(e),rw=e=>typeof e=="number"&&!Number.isNaN(e),KRe=e=>e==="initial",NW=e=>e==="auto",GRe=e=>e==="none",VRe=["content","fit-content","max-content","min-content"],K2=e=>VRe.some(t=>e===t)||WRe(e);function URe(...e){const t=e.length===1,r=e.length===2,n=e.length===3;if(t){const[o]=e;if(KRe(o))return{flexGrow:0,flexShrink:1,flexBasis:"auto"};if(NW(o))return{flexGrow:1,flexShrink:1,flexBasis:"auto"};if(GRe(o))return{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(rw(o))return{flexGrow:o,flexShrink:1,flexBasis:0};if(K2(o))return{flexGrow:1,flexShrink:1,flexBasis:o}}if(r){const[o,i]=e;if(rw(i))return{flexGrow:o,flexShrink:i,flexBasis:0};if(K2(i))return{flexGrow:o,flexShrink:1,flexBasis:i}}if(n){const[o,i,s]=e;if(rw(o)&&rw(i)&&(NW(s)||K2(s)))return{flexGrow:o,flexShrink:i,flexBasis:s}}return{}}function YRe(e,t=e){return{columnGap:e,rowGap:t}}const XRe=/var\(.*\)/gi;function QRe(e){return e===void 0||typeof e=="number"||typeof e=="string"&&!XRe.test(e)}const ZRe=/^[a-zA-Z0-9\-_\\#;]+$/,JRe=/^-moz-initial$|^auto$|^initial$|^inherit$|^revert$|^unset$|^span \d+$|^\d.*/;function G2(e){return e!==void 0&&typeof e=="string"&&ZRe.test(e)&&!JRe.test(e)}function eOe(...e){if(e.some(i=>!QRe(i)))return{};const t=e[0]!==void 0?e[0]:"auto",r=e[1]!==void 0?e[1]:G2(t)?t:"auto",n=e[2]!==void 0?e[2]:G2(t)?t:"auto",o=e[3]!==void 0?e[3]:G2(r)?r:"auto";return{gridRowStart:t,gridColumnStart:r,gridRowEnd:n,gridColumnEnd:o}}function tOe(...e){return P_("margin","",...e)}function rOe(e,t=e){return{marginBlockStart:e,marginBlockEnd:t}}function nOe(e,t=e){return{marginInlineStart:e,marginInlineEnd:t}}function oOe(...e){return P_("padding","",...e)}function iOe(e,t=e){return{paddingBlockStart:e,paddingBlockEnd:t}}function sOe(e,t=e){return{paddingInlineStart:e,paddingInlineEnd:t}}function aOe(e,t=e){return{overflowX:e,overflowY:t}}function uOe(...e){const[t,r=t,n=t,o=r]=e;return{top:t,right:r,bottom:n,left:o}}function lOe(e,t,r){return{outlineWidth:e,...t&&{outlineStyle:t},...r&&{outlineColor:r}}}function cOe(...e){return dOe(e)?{transitionDelay:e[0],transitionDuration:e[0],transitionProperty:e[0],transitionTimingFunction:e[0]}:hOe(e).reduce((r,[n,o="0s",i="0s",s="ease"],a)=>(a===0?(r.transitionProperty=n,r.transitionDuration=o,r.transitionDelay=i,r.transitionTimingFunction=s):(r.transitionProperty+=`, ${n}`,r.transitionDuration+=`, ${o}`,r.transitionDelay+=`, ${i}`,r.transitionTimingFunction+=`, ${s}`),r),{})}const fOe=["-moz-initial","inherit","initial","revert","unset"];function dOe(e){return e.length===1&&fOe.includes(e[0])}function hOe(e){return e.length===1&&Array.isArray(e[0])?e[0]:[e]}function pOe(e,...t){if(t.length===0)return vOe(e)?{textDecorationStyle:e}:{textDecorationLine:e};const[r,n,o]=t;return{textDecorationLine:e,...r&&{textDecorationStyle:r},...n&&{textDecorationColor:n},...o&&{textDecorationThickness:o}}}const gOe=["dashed","dotted","double","solid","wavy"];function vOe(e){return gOe.includes(e)}const V2=typeof window>"u"?global:window,U2="@griffel/";function mOe(e,t){return V2[Symbol.for(U2+e)]||(V2[Symbol.for(U2+e)]=t),V2[Symbol.for(U2+e)]}const JF=mOe("DEFINITION_LOOKUP_TABLE",{}),bk="data-make-styles-bucket",eB="f",tB=7,t8="___",yOe=t8.length+tB,bOe=0,_Oe=1,EOe={all:1,animation:1,background:1,backgroundPosition:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockStart:1,borderBottom:1,borderColor:1,borderImage:1,borderInline:1,borderInlineEnd:1,borderInlineStart:1,borderLeft:1,borderRadius:1,borderRight:1,borderStyle:1,borderTop:1,borderWidth:1,caret:1,columns:1,columnRule:1,containIntrinsicSize:1,container:1,flex:1,flexFlow:1,font:1,gap:1,grid:1,gridArea:1,gridColumn:1,gridRow:1,gridTemplate:1,inset:1,insetBlock:1,insetInline:1,lineClamp:1,listStyle:1,margin:1,marginBlock:1,marginInline:1,mask:1,maskBorder:1,motion:1,offset:1,outline:1,overflow:1,overscrollBehavior:1,padding:1,paddingBlock:1,paddingInline:1,placeItems:1,placeContent:1,placeSelf:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginInline:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingInline:1,scrollSnapMargin:1,scrollTimeline:1,textDecoration:1,textEmphasis:1,transition:1};function Rg(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function SOe(e){const t=e.length;if(t===tB)return e;for(let r=t;r0&&(t+=c.slice(0,f)),r+=d,n[l]=d}}}if(r==="")return t.slice(0,-1);const o=CW[r];if(o!==void 0)return t+o;const i=[];for(let l=0;li.cssText):n}}}const AOe=["r","d","l","v","w","f","i","h","a","s","k","t","m","c"],RW=AOe.reduce((e,t,r)=>(e[t]=r,e),{});function TOe(e,t,r,n,o={}){const i=e==="m",s=i?e+o.m:e;if(!n.stylesheets[s]){const a=t&&t.createElement("style"),u=kOe(a,e,{...n.styleElementAttributes,...i&&{media:o.m}});n.stylesheets[s]=u,t&&a&&t.head.insertBefore(a,xOe(t,r,e,n,o))}return n.stylesheets[s]}function xOe(e,t,r,n,o){const i=RW[r];let s=c=>i-RW[c.getAttribute(bk)],a=e.head.querySelectorAll(`[${bk}]`);if(r==="m"&&o){const c=e.head.querySelectorAll(`[${bk}="${r}"]`);c.length&&(a=c,s=f=>n.compareMediaQueries(o.m,f.media))}const u=a.length;let l=u-1;for(;l>=0;){const c=a.item(l);if(s(c)>0)return c.nextSibling;l--}return u>0?a.item(0):t?t.nextSibling:null}function OW(e,t){try{e.insertRule(t)}catch{}}let IOe=0;const NOe=(e,t)=>et?1:0;function COe(e=typeof document>"u"?void 0:document,t={}){const{unstable_filterCSSRule:r,insertionPoint:n,styleElementAttributes:o,compareMediaQueries:i=NOe}=t,s={insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(o),compareMediaQueries:i,id:`d${IOe++}`,insertCSSRules(a){for(const u in a){const l=a[u];for(let c=0,f=l.length;c{const e={};return function(r,n){e[r.id]===void 0&&(r.insertCSSRules(n),e[r.id]=!0)}};function kse(e){return e.reduce(function(t,r){var n=r[0],o=r[1];return t[n]=o,t[o]=n,t},{})}function ROe(e){return typeof e=="boolean"}function OOe(e){return typeof e=="function"}function ry(e){return typeof e=="number"}function DOe(e){return e===null||typeof e>"u"}function FOe(e){return e&&typeof e=="object"}function BOe(e){return typeof e=="string"}function _k(e,t){return e.indexOf(t)!==-1}function MOe(e){return parseFloat(e)===0?e:e[0]==="-"?e.slice(1):"-"+e}function nw(e,t,r,n){return t+MOe(r)+n}function LOe(e){var t=e.indexOf(".");if(t===-1)e=100-parseFloat(e)+"%";else{var r=e.length-t-2;e=100-parseFloat(e),e=e.toFixed(r)+"%"}return e}function Ase(e){return e.replace(/ +/g," ").split(" ").map(function(t){return t.trim()}).filter(Boolean).reduce(function(t,r){var n=t.list,o=t.state,i=(r.match(/\(/g)||[]).length,s=(r.match(/\)/g)||[]).length;return o.parensDepth>0?n[n.length-1]=n[n.length-1]+" "+r:n.push(r),o.parensDepth+=i-s,{list:n,state:o}},{list:[],state:{parensDepth:0}}).list}function DW(e){var t=Ase(e);if(t.length<=3||t.length>4)return e;var r=t[0],n=t[1],o=t[2],i=t[3];return[r,i,o,n].join(" ")}function jOe(e){return!ROe(e)&&!DOe(e)}function zOe(e){for(var t=[],r=0,n=0,o=!1;n0?es(fv,--Ea):0,Og--,Pn===10&&(Og=1,Ex--),Pn}function lu(){return Pn=Ea2||OA(Pn)>3?"":" "}function s4e(e){for(;lu();)switch(OA(Pn)){case 0:Eh(jse(Ea-1),e);break;case 2:Eh(Sk(Pn),e);break;default:Eh(_x(Pn),e)}return e}function a4e(e,t){for(;--t&&lu()&&!(Pn<48||Pn>102||Pn>57&&Pn<65||Pn>70&&Pn<97););return wx(e,Ek()+(t<6&&Rh()==32&&lu()==32))}function nB(e){for(;lu();)switch(Pn){case e:return Ea;case 34:case 39:e!==34&&e!==39&&nB(Pn);break;case 40:e===41&&nB(e);break;case 92:lu();break}return Ea}function u4e(e,t){for(;lu()&&e+Pn!==57;)if(e+Pn===84&&Rh()===47)break;return"/*"+wx(t,Ea-1)+"*"+_x(e===47?e:lu())}function jse(e){for(;!OA(Rh());)lu();return wx(e,Ea)}function zse(e){return Lse(wk("",null,null,null,[""],e=Mse(e),0,[0],e))}function wk(e,t,r,n,o,i,s,a,u){for(var l=0,c=0,f=s,d=0,h=0,g=0,v=1,y=1,E=1,_=0,S="",b=o,A=i,x=n,T=S;y;)switch(g=_,_=lu()){case 40:if(g!=108&&es(T,f-1)==58){Dse(T+=Es(Sk(_),"&","&\f"),"&\f")!=-1&&(E=-1);break}case 34:case 39:case 91:T+=Sk(_);break;case 9:case 10:case 13:case 32:T+=i4e(g);break;case 92:T+=a4e(Ek()-1,7);continue;case 47:switch(Rh()){case 42:case 47:Eh(l4e(u4e(lu(),Ek()),t,r,u),u);break;default:T+="/"}break;case 123*v:a[l++]=Ml(T)*E;case 125*v:case 59:case 0:switch(_){case 0:case 125:y=0;case 59+c:E==-1&&(T=Es(T,/\f/g,"")),h>0&&Ml(T)-f&&Eh(h>32?MW(T+";",n,r,f-1,u):MW(Es(T," ","")+";",n,r,f-2,u),u);break;case 59:T+=";";default:if(Eh(x=BW(T,t,r,l,c,o,a,S,b=[],A=[],f,i),i),_===123)if(c===0)wk(T,t,x,x,b,i,f,a,A);else switch(d===99&&es(T,3)===110?100:d){case 100:case 108:case 109:case 115:wk(e,x,x,n&&Eh(BW(e,x,x,0,0,o,a,S,o,b=[],f,A),A),o,A,f,a,n?b:A);break;default:wk(T,x,x,x,[""],A,0,a,A)}}l=c=h=0,v=E=1,S=T="",f=s;break;case 58:f=1+Ml(T),h=g;default:if(v<1){if(_==123)--v;else if(_==125&&v++==0&&n4e()==125)continue}switch(T+=_x(_),_*v){case 38:E=c>0?1:(T+="\f",-1);break;case 44:a[l++]=(Ml(T)-1)*E,E=1;break;case 64:Rh()===45&&(T+=Sk(lu())),d=Rh(),c=f=Ml(S=T+=jse(Ek())),_++;break;case 45:g===45&&Ml(T)==2&&(v=0)}}return i}function BW(e,t,r,n,o,i,s,a,u,l,c,f){for(var d=o-1,h=o===0?i:[""],g=Fse(h),v=0,y=0,E=0;v0?h[_]+" "+S:Es(S,/&\f/g,h[_])))&&(u[E++]=b);return Sx(e,t,r,o===0?bx:a,u,l,c,f)}function l4e(e,t,r,n){return Sx(e,t,r,Nse,_x(r4e()),Mb(e,2,-2),0,n)}function MW(e,t,r,n,o){return Sx(e,t,r,n8,Mb(e,0,n),Mb(e,n+1,-1),n,o)}function Dg(e,t){for(var r="",n=0;n{switch(e.type){case bx:if(typeof e.props=="string")return;e.props=e.props.map(t=>t.indexOf(":global(")===-1?t:o4e(t).reduce((r,n,o,i)=>{if(n==="")return r;if(n===":"&&i[o+1]==="global"){const s=i[o+2].slice(1,-1)+" ";return r.unshift(s),i[o+1]="",i[o+2]="",r}return r.push(n),r},[]).join(""))}};function qse(e,t,r){switch(e4e(e,t)){case 5103:return zu+"print-"+e+e;case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:return zu+e+e;case 4215:if(es(e,9)===102||es(e,t+1)===116)return zu+e+e;break;case 4789:return Py+e+e;case 5349:case 4246:case 6968:return zu+e+Py+e+e;case 6187:if(!Ose(e,/grab/))return Es(Es(Es(e,/(zoom-|grab)/,zu+"$1"),/(image-set)/,zu+"$1"),e,"")+e;case 5495:case 3959:return Es(e,/(image-set\([^]*)/,zu+"$1$`$1");case 4095:case 3583:case 4068:case 2532:return Es(e,/(.+)-inline(.+)/,zu+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ml(e)-1-t>6)switch(es(e,t+1)){case 102:if(es(e,t+3)===108)return Es(e,/(.+:)(.+)-([^]+)/,"$1"+zu+"$2-$3$1"+Py+(es(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Dse(e,"stretch")?qse(Es(e,"stretch","fill-available"),t)+e:e}break}return e}function Wse(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case n8:e.return=qse(e.value,e.length);return;case bx:if(e.length)return t4e(e.props,function(o){switch(Ose(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Dg([X2(e,{props:[Es(o,/:(read-\w+)/,":"+Py+"$1")]})],n);case"::placeholder":return Dg([X2(e,{props:[Es(o,/:(plac\w+)/,":"+zu+"input-$1")]}),X2(e,{props:[Es(o,/:(plac\w+)/,":"+Py+"$1")]})],n)}return""})}}function f4e(e){switch(e.type){case"@container":case UOe:case XOe:case Cse:return!0}return!1}const d4e=e=>{f4e(e)&&Array.isArray(e.children)&&e.children.sort((t,r)=>t.props[0]>r.props[0]?1:-1)};function h4e(){}function p4e(e,t){const r=[];return Dg(zse(e),$se([c4e,t?d4e:h4e,Wse,Hse,Pse(n=>r.push(n))])),r}const g4e=/,( *[^ &])/g;function v4e(e){return"&"+Ise(e.replace(g4e,",&$1"))}function LW(e,t,r){let n=t;return r.length>0&&(n=r.reduceRight((o,i)=>`${v4e(i)} { ${o} }`,t)),`${e}{${n}}`}function jW(e){const{className:t,media:r,layer:n,selectors:o,support:i,property:s,rtlClassName:a,rtlProperty:u,rtlValue:l,value:c,container:f}=e,d=`.${t}`,h=Array.isArray(c)?`${c.map(v=>`${ny(s)}: ${v}`).join(";")};`:`${ny(s)}: ${c};`;let g=LW(d,h,o);if(u&&a){const v=`.${a}`,y=Array.isArray(l)?`${l.map(E=>`${ny(u)}: ${E}`).join(";")};`:`${ny(u)}: ${l};`;g+=LW(v,y,o)}return r&&(g=`@media ${r} { ${g} }`),n&&(g=`@layer ${n} { ${g} }`),i&&(g=`@supports ${i} { ${g} }`),f&&(g=`@container ${f} { ${g} }`),p4e(g,!0)}function m4e(e){let t="";for(const r in e){const n=e[r];typeof n!="string"&&typeof n!="number"||(t+=ny(r)+":"+n+";")}return t}function zW(e){let t="";for(const r in e)t+=`${r}{${m4e(e[r])}}`;return t}function HW(e,t){const r=`@keyframes ${e} {${t}}`,n=[];return Dg(zse(r),$se([Hse,Wse,Pse(o=>n.push(o))])),n}function $W(e,t){return e.length===0?t:`${e} and ${t}`}function y4e(e){return e.substr(0,6)==="@media"}function b4e(e){return e.substr(0,6)==="@layer"}const _4e=/^(:|\[|>|&)/;function E4e(e){return _4e.test(e)}function S4e(e){return e.substr(0,9)==="@supports"}function w4e(e){return e.substring(0,10)==="@container"}function k4e(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}const PW={"us-w":"w","us-v":"i",nk:"l",si:"v",cu:"f",ve:"h",ti:"a"};function qW(e,t,r,n,o){if(r)return"m";if(t||n)return"t";if(o)return"c";if(e.length>0){const i=e[0].trim();if(i.charCodeAt(0)===58)return PW[i.slice(4,8)]||PW[i.slice(3,5)]||"d"}return"d"}function ow({container:e,media:t,layer:r,property:n,selector:o,support:i,value:s}){const a=Rg(o+e+t+r+i+n+s.trim());return eB+a}function WW(e,t,r,n,o){const i=e+t+r+n+o,s=Rg(i),a=s.charCodeAt(0);return a>=48&&a<=57?String.fromCharCode(a+17)+s.slice(1):s}function KW(e){return e.replace(/>\s+/g,">")}function A4e(e,t){const r=JSON.stringify(t,null,2);" ".repeat(2)+""," ".repeat(4)+""," ".repeat(6)+`"${e}": ${r.split(` +`,$Re=(e,t)=>W_` + ${LRe} + ${jRe} + ${zRe} + ${HRe} +`;let Tse=class extends hl{connectedCallback(){if(super.connectedCallback(),!this.appearance){const t=this.getAttribute("appearance");this.appearance=t}}attributeChangedCallback(t,r,n){t==="appearance"&&n==="icon"&&(this.getAttribute("aria-label")||(this.ariaLabel="Icon Button")),t==="aria-label"&&(this.ariaLabel=n),t==="disabled"&&(this.disabled=n!==null)}};OAe([_r],Tse.prototype,"appearance",void 0);const PRe=Tse.compose({baseName:"button",template:eRe,styles:$Re,shadowOptions:{delegatesFocus:!0}});var Ise,MW=li;Ise=MW.createRoot,MW.hydrateRoot;const qRe=["Top","Right","Bottom","Left"];function K_(e,t,...r){const[n,o=n,i=n,s=o]=r,a=[n,o,i,s],u={};for(let l=0;ltypeof e=="string"&&/(\d+(\w+|%))/.test(e),iw=e=>typeof e=="number"&&!Number.isNaN(e),ZRe=e=>e==="initial",LW=e=>e==="auto",JRe=e=>e==="none",eOe=["content","fit-content","max-content","min-content"],Y2=e=>eOe.some(t=>e===t)||QRe(e);function tOe(...e){const t=e.length===1,r=e.length===2,n=e.length===3;if(t){const[o]=e;if(ZRe(o))return{flexGrow:0,flexShrink:1,flexBasis:"auto"};if(LW(o))return{flexGrow:1,flexShrink:1,flexBasis:"auto"};if(JRe(o))return{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(iw(o))return{flexGrow:o,flexShrink:1,flexBasis:0};if(Y2(o))return{flexGrow:1,flexShrink:1,flexBasis:o}}if(r){const[o,i]=e;if(iw(i))return{flexGrow:o,flexShrink:i,flexBasis:0};if(Y2(i))return{flexGrow:o,flexShrink:1,flexBasis:i}}if(n){const[o,i,s]=e;if(iw(o)&&iw(i)&&(LW(s)||Y2(s)))return{flexGrow:o,flexShrink:i,flexBasis:s}}return{}}function rOe(e,t=e){return{columnGap:e,rowGap:t}}const nOe=/var\(.*\)/gi;function oOe(e){return e===void 0||typeof e=="number"||typeof e=="string"&&!nOe.test(e)}const iOe=/^[a-zA-Z0-9\-_\\#;]+$/,sOe=/^-moz-initial$|^auto$|^initial$|^inherit$|^revert$|^unset$|^span \d+$|^\d.*/;function X2(e){return e!==void 0&&typeof e=="string"&&iOe.test(e)&&!sOe.test(e)}function aOe(...e){if(e.some(i=>!oOe(i)))return{};const t=e[0]!==void 0?e[0]:"auto",r=e[1]!==void 0?e[1]:X2(t)?t:"auto",n=e[2]!==void 0?e[2]:X2(t)?t:"auto",o=e[3]!==void 0?e[3]:X2(r)?r:"auto";return{gridRowStart:t,gridColumnStart:r,gridRowEnd:n,gridColumnEnd:o}}function uOe(...e){return K_("margin","",...e)}function lOe(e,t=e){return{marginBlockStart:e,marginBlockEnd:t}}function cOe(e,t=e){return{marginInlineStart:e,marginInlineEnd:t}}function fOe(...e){return K_("padding","",...e)}function dOe(e,t=e){return{paddingBlockStart:e,paddingBlockEnd:t}}function hOe(e,t=e){return{paddingInlineStart:e,paddingInlineEnd:t}}function pOe(e,t=e){return{overflowX:e,overflowY:t}}function gOe(...e){const[t,r=t,n=t,o=r]=e;return{top:t,right:r,bottom:n,left:o}}function vOe(e,t,r){return{outlineWidth:e,...t&&{outlineStyle:t},...r&&{outlineColor:r}}}function mOe(...e){return bOe(e)?{transitionDelay:e[0],transitionDuration:e[0],transitionProperty:e[0],transitionTimingFunction:e[0]}:_Oe(e).reduce((r,[n,o="0s",i="0s",s="ease"],a)=>(a===0?(r.transitionProperty=n,r.transitionDuration=o,r.transitionDelay=i,r.transitionTimingFunction=s):(r.transitionProperty+=`, ${n}`,r.transitionDuration+=`, ${o}`,r.transitionDelay+=`, ${i}`,r.transitionTimingFunction+=`, ${s}`),r),{})}const yOe=["-moz-initial","inherit","initial","revert","unset"];function bOe(e){return e.length===1&&yOe.includes(e[0])}function _Oe(e){return e.length===1&&Array.isArray(e[0])?e[0]:[e]}function EOe(e,...t){if(t.length===0)return wOe(e)?{textDecorationStyle:e}:{textDecorationLine:e};const[r,n,o]=t;return{textDecorationLine:e,...r&&{textDecorationStyle:r},...n&&{textDecorationColor:n},...o&&{textDecorationThickness:o}}}const SOe=["dashed","dotted","double","solid","wavy"];function wOe(e){return SOe.includes(e)}const Q2=typeof window>"u"?global:window,Z2="@griffel/";function AOe(e,t){return Q2[Symbol.for(Z2+e)]||(Q2[Symbol.for(Z2+e)]=t),Q2[Symbol.for(Z2+e)]}const nB=AOe("DEFINITION_LOOKUP_TABLE",{}),wA="data-make-styles-bucket",oB="f",iB=7,s8="___",kOe=s8.length+iB,xOe=0,TOe=1,IOe={all:1,animation:1,background:1,backgroundPosition:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockStart:1,borderBottom:1,borderColor:1,borderImage:1,borderInline:1,borderInlineEnd:1,borderInlineStart:1,borderLeft:1,borderRadius:1,borderRight:1,borderStyle:1,borderTop:1,borderWidth:1,caret:1,columns:1,columnRule:1,containIntrinsicSize:1,container:1,flex:1,flexFlow:1,font:1,gap:1,grid:1,gridArea:1,gridColumn:1,gridRow:1,gridTemplate:1,inset:1,insetBlock:1,insetInline:1,lineClamp:1,listStyle:1,margin:1,marginBlock:1,marginInline:1,mask:1,maskBorder:1,motion:1,offset:1,outline:1,overflow:1,overscrollBehavior:1,padding:1,paddingBlock:1,paddingInline:1,placeItems:1,placeContent:1,placeSelf:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginInline:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingInline:1,scrollSnapMargin:1,scrollTimeline:1,textDecoration:1,textEmphasis:1,transition:1};function Dg(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function COe(e){const t=e.length;if(t===iB)return e;for(let r=t;r0&&(t+=c.slice(0,f)),r+=d,n[l]=d}}}if(r==="")return t.slice(0,-1);const o=jW[r];if(o!==void 0)return t+o;const i=[];for(let l=0;li.cssText):n}}}const OOe=["r","d","l","v","w","f","i","h","a","s","k","t","m","c"],zW=OOe.reduce((e,t,r)=>(e[t]=r,e),{});function DOe(e,t,r,n,o={}){const i=e==="m",s=i?e+o.m:e;if(!n.stylesheets[s]){const a=t&&t.createElement("style"),u=ROe(a,e,{...n.styleElementAttributes,...i&&{media:o.m}});n.stylesheets[s]=u,t&&a&&t.head.insertBefore(a,FOe(t,r,e,n,o))}return n.stylesheets[s]}function FOe(e,t,r,n,o){const i=zW[r];let s=c=>i-zW[c.getAttribute(wA)],a=e.head.querySelectorAll(`[${wA}]`);if(r==="m"&&o){const c=e.head.querySelectorAll(`[${wA}="${r}"]`);c.length&&(a=c,s=f=>n.compareMediaQueries(o.m,f.media))}const u=a.length;let l=u-1;for(;l>=0;){const c=a.item(l);if(s(c)>0)return c.nextSibling;l--}return u>0?a.item(0):t?t.nextSibling:null}function HW(e,t){try{e.insertRule(t)}catch{}}let BOe=0;const MOe=(e,t)=>et?1:0;function LOe(e=typeof document>"u"?void 0:document,t={}){const{unstable_filterCSSRule:r,insertionPoint:n,styleElementAttributes:o,compareMediaQueries:i=MOe}=t,s={insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(o),compareMediaQueries:i,id:`d${BOe++}`,insertCSSRules(a){for(const u in a){const l=a[u];for(let c=0,f=l.length;c{const e={};return function(r,n){e[r.id]===void 0&&(r.insertCSSRules(n),e[r.id]=!0)}};function Rse(e){return e.reduce(function(t,r){var n=r[0],o=r[1];return t[n]=o,t[o]=n,t},{})}function jOe(e){return typeof e=="boolean"}function zOe(e){return typeof e=="function"}function ny(e){return typeof e=="number"}function HOe(e){return e===null||typeof e>"u"}function $Oe(e){return e&&typeof e=="object"}function POe(e){return typeof e=="string"}function AA(e,t){return e.indexOf(t)!==-1}function qOe(e){return parseFloat(e)===0?e:e[0]==="-"?e.slice(1):"-"+e}function sw(e,t,r,n){return t+qOe(r)+n}function WOe(e){var t=e.indexOf(".");if(t===-1)e=100-parseFloat(e)+"%";else{var r=e.length-t-2;e=100-parseFloat(e),e=e.toFixed(r)+"%"}return e}function Ose(e){return e.replace(/ +/g," ").split(" ").map(function(t){return t.trim()}).filter(Boolean).reduce(function(t,r){var n=t.list,o=t.state,i=(r.match(/\(/g)||[]).length,s=(r.match(/\)/g)||[]).length;return o.parensDepth>0?n[n.length-1]=n[n.length-1]+" "+r:n.push(r),o.parensDepth+=i-s,{list:n,state:o}},{list:[],state:{parensDepth:0}}).list}function $W(e){var t=Ose(e);if(t.length<=3||t.length>4)return e;var r=t[0],n=t[1],o=t[2],i=t[3];return[r,i,o,n].join(" ")}function KOe(e){return!jOe(e)&&!HOe(e)}function GOe(e){for(var t=[],r=0,n=0,o=!1;n0?es(pv,--Ea):0,Fg--,$n===10&&(Fg=1,kT--),$n}function lu(){return $n=Ea2||Lk($n)>3?"":" "}function h4e(e){for(;lu();)switch(Lk($n)){case 0:_h(Kse(Ea-1),e);break;case 2:_h(xA($n),e);break;default:_h(AT($n),e)}return e}function p4e(e,t){for(;--t&&lu()&&!($n<48||$n>102||$n>57&&$n<65||$n>70&&$n<97););return TT(e,kA()+(t<6&&Nh()==32&&lu()==32))}function aB(e){for(;lu();)switch($n){case e:return Ea;case 34:case 39:e!==34&&e!==39&&aB($n);break;case 40:e===41&&aB(e);break;case 92:lu();break}return Ea}function g4e(e,t){for(;lu()&&e+$n!==57;)if(e+$n===84&&Nh()===47)break;return"/*"+TT(t,Ea-1)+"*"+AT(e===47?e:lu())}function Kse(e){for(;!Lk(Nh());)lu();return TT(e,Ea)}function Gse(e){return Wse(TA("",null,null,null,[""],e=qse(e),0,[0],e))}function TA(e,t,r,n,o,i,s,a,u){for(var l=0,c=0,f=s,d=0,h=0,g=0,v=1,y=1,E=1,_=0,S="",b=o,A=i,T=n,x=S;y;)switch(g=_,_=lu()){case 40:if(g!=108&&es(x,f-1)==58){Hse(x+=Es(xA(_),"&","&\f"),"&\f")!=-1&&(E=-1);break}case 34:case 39:case 91:x+=xA(_);break;case 9:case 10:case 13:case 32:x+=d4e(g);break;case 92:x+=p4e(kA()-1,7);continue;case 47:switch(Nh()){case 42:case 47:_h(v4e(g4e(lu(),kA()),t,r,u),u);break;default:x+="/"}break;case 123*v:a[l++]=zl(x)*E;case 125*v:case 59:case 0:switch(_){case 0:case 125:y=0;case 59+c:E==-1&&(x=Es(x,/\f/g,"")),h>0&&zl(x)-f&&_h(h>32?WW(x+";",n,r,f-1,u):WW(Es(x," ","")+";",n,r,f-2,u),u);break;case 59:x+=";";default:if(_h(T=qW(x,t,r,l,c,o,a,S,b=[],A=[],f,i),i),_===123)if(c===0)TA(x,t,T,T,b,i,f,a,A);else switch(d===99&&es(x,3)===110?100:d){case 100:case 108:case 109:case 115:TA(e,T,T,n&&_h(qW(e,T,T,0,0,o,a,S,o,b=[],f,A),A),o,A,f,a,n?b:A);break;default:TA(x,T,T,T,[""],A,0,a,A)}}l=c=h=0,v=E=1,S=x="",f=s;break;case 58:f=1+zl(x),h=g;default:if(v<1){if(_==123)--v;else if(_==125&&v++==0&&c4e()==125)continue}switch(x+=AT(_),_*v){case 38:E=c>0?1:(x+="\f",-1);break;case 44:a[l++]=(zl(x)-1)*E,E=1;break;case 64:Nh()===45&&(x+=xA(lu())),d=Nh(),c=f=zl(S=x+=Kse(kA())),_++;break;case 45:g===45&&zl(x)==2&&(v=0)}}return i}function qW(e,t,r,n,o,i,s,a,u,l,c,f){for(var d=o-1,h=o===0?i:[""],g=$se(h),v=0,y=0,E=0;v0?h[_]+" "+S:Es(S,/&\f/g,h[_])))&&(u[E++]=b);return xT(e,t,r,o===0?wT:a,u,l,c,f)}function v4e(e,t,r,n){return xT(e,t,r,Mse,AT(l4e()),zb(e,2,-2),0,n)}function WW(e,t,r,n,o){return xT(e,t,r,u8,zb(e,0,n),zb(e,n+1,-1),n,o)}function Bg(e,t){for(var r="",n=0;n{switch(e.type){case wT:if(typeof e.props=="string")return;e.props=e.props.map(t=>t.indexOf(":global(")===-1?t:f4e(t).reduce((r,n,o,i)=>{if(n==="")return r;if(n===":"&&i[o+1]==="global"){const s=i[o+2].slice(1,-1)+" ";return r.unshift(s),i[o+1]="",i[o+2]="",r}return r.push(n),r},[]).join(""))}};function Xse(e,t,r){switch(a4e(e,t)){case 5103:return Hu+"print-"+e+e;case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:return Hu+e+e;case 4215:if(es(e,9)===102||es(e,t+1)===116)return Hu+e+e;break;case 4789:return Wy+e+e;case 5349:case 4246:case 6968:return Hu+e+Wy+e+e;case 6187:if(!zse(e,/grab/))return Es(Es(Es(e,/(zoom-|grab)/,Hu+"$1"),/(image-set)/,Hu+"$1"),e,"")+e;case 5495:case 3959:return Es(e,/(image-set\([^]*)/,Hu+"$1$`$1");case 4095:case 3583:case 4068:case 2532:return Es(e,/(.+)-inline(.+)/,Hu+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(zl(e)-1-t>6)switch(es(e,t+1)){case 102:if(es(e,t+3)===108)return Es(e,/(.+:)(.+)-([^]+)/,"$1"+Hu+"$2-$3$1"+Wy+(es(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Hse(e,"stretch")?Xse(Es(e,"stretch","fill-available"),t)+e:e}break}return e}function Qse(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case u8:e.return=Xse(e.value,e.length);return;case wT:if(e.length)return u4e(e.props,function(o){switch(zse(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Bg([eC(e,{props:[Es(o,/:(read-\w+)/,":"+Wy+"$1")]})],n);case"::placeholder":return Bg([eC(e,{props:[Es(o,/:(plac\w+)/,":"+Hu+"input-$1")]}),eC(e,{props:[Es(o,/:(plac\w+)/,":"+Wy+"$1")]})],n)}return""})}}function y4e(e){switch(e.type){case"@container":case t4e:case n4e:case Lse:return!0}return!1}const b4e=e=>{y4e(e)&&Array.isArray(e.children)&&e.children.sort((t,r)=>t.props[0]>r.props[0]?1:-1)};function _4e(){}function E4e(e,t){const r=[];return Bg(Gse(e),Use([m4e,t?b4e:_4e,Qse,Vse,Yse(n=>r.push(n))])),r}const S4e=/,( *[^ &])/g;function w4e(e){return"&"+Bse(e.replace(S4e,",&$1"))}function KW(e,t,r){let n=t;return r.length>0&&(n=r.reduceRight((o,i)=>`${w4e(i)} { ${o} }`,t)),`${e}{${n}}`}function GW(e){const{className:t,media:r,layer:n,selectors:o,support:i,property:s,rtlClassName:a,rtlProperty:u,rtlValue:l,value:c,container:f}=e,d=`.${t}`,h=Array.isArray(c)?`${c.map(v=>`${oy(s)}: ${v}`).join(";")};`:`${oy(s)}: ${c};`;let g=KW(d,h,o);if(u&&a){const v=`.${a}`,y=Array.isArray(l)?`${l.map(E=>`${oy(u)}: ${E}`).join(";")};`:`${oy(u)}: ${l};`;g+=KW(v,y,o)}return r&&(g=`@media ${r} { ${g} }`),n&&(g=`@layer ${n} { ${g} }`),i&&(g=`@supports ${i} { ${g} }`),f&&(g=`@container ${f} { ${g} }`),E4e(g,!0)}function A4e(e){let t="";for(const r in e){const n=e[r];typeof n!="string"&&typeof n!="number"||(t+=oy(r)+":"+n+";")}return t}function VW(e){let t="";for(const r in e)t+=`${r}{${A4e(e[r])}}`;return t}function UW(e,t){const r=`@keyframes ${e} {${t}}`,n=[];return Bg(Gse(r),Use([Vse,Qse,Yse(o=>n.push(o))])),n}function YW(e,t){return e.length===0?t:`${e} and ${t}`}function k4e(e){return e.substr(0,6)==="@media"}function x4e(e){return e.substr(0,6)==="@layer"}const T4e=/^(:|\[|>|&)/;function I4e(e){return T4e.test(e)}function C4e(e){return e.substr(0,9)==="@supports"}function N4e(e){return e.substring(0,10)==="@container"}function R4e(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}const XW={"us-w":"w","us-v":"i",nk:"l",si:"v",cu:"f",ve:"h",ti:"a"};function QW(e,t,r,n,o){if(r)return"m";if(t||n)return"t";if(o)return"c";if(e.length>0){const i=e[0].trim();if(i.charCodeAt(0)===58)return XW[i.slice(4,8)]||XW[i.slice(3,5)]||"d"}return"d"}function aw({container:e,media:t,layer:r,property:n,selector:o,support:i,value:s}){const a=Dg(o+e+t+r+i+n+s.trim());return oB+a}function ZW(e,t,r,n,o){const i=e+t+r+n+o,s=Dg(i),a=s.charCodeAt(0);return a>=48&&a<=57?String.fromCharCode(a+17)+s.slice(1):s}function JW(e){return e.replace(/>\s+/g,">")}function O4e(e,t){const r=JSON.stringify(t,null,2);" ".repeat(2)+""," ".repeat(4)+""," ".repeat(6)+`"${e}": ${r.split(` `).map((n,o)=>" ".repeat(o===0?0:6)+n).join(` -`)}`," ".repeat(4)+""," ".repeat(2)+"",e.indexOf("&")}function GW(e,t,r,n){e[t]=n?[r,n]:r}function VW(e,t){return t?[e,t]:e}function Q2(e,t,r,n,o){var i;let s;t==="m"&&o&&(s={m:o}),(i=e[t])!==null&&i!==void 0||(e[t]=[]),r&&e[t].push(VW(r,s)),n&&e[t].push(VW(n,s))}function eh(e,t=[],r="",n="",o="",i="",s={},a={},u){for(const l in e){if(EOe.hasOwnProperty(l)){e[l];continue}const c=e[l];if(c!=null){if(typeof c=="string"||typeof c=="number"){const f=KW(t.join("")),d=WW(f,i,r,o,l),h=ow({container:i,media:r,layer:n,value:c.toString(),support:o,selector:f,property:l}),g=u&&{key:l,value:u}||rB(l,c),v=g.key!==l||g.value!==c,y=v?ow({container:i,value:g.value.toString(),property:g.key,selector:f,media:r,layer:n,support:o}):void 0,E=v?{rtlClassName:y,rtlProperty:g.key,rtlValue:g.value}:void 0,_=qW(t,n,r,o,i),[S,b]=jW({className:h,media:r,layer:n,selectors:t,property:l,support:o,container:i,value:c,...E});GW(s,d,h,y),Q2(a,_,S,b,r)}else if(l==="animationName"){const f=Array.isArray(c)?c:[c],d=[],h=[];for(const g of f){const v=zW(g),y=zW(xse(g)),E=eB+Rg(v);let _;const S=HW(E,v);let b=[];v===y?_=E:(_=eB+Rg(y),b=HW(_,y));for(let A=0;A(x??"").toString()).join(";"),support:o,selector:f,property:l}),g=c.map(x=>rB(l,x));if(!!g.some(x=>x.key!==g[0].key))continue;const y=g[0].key!==l||g.some((x,T)=>x.value!==c[T]),E=y?ow({container:i,value:g.map(x=>{var T;return((T=x==null?void 0:x.value)!==null&&T!==void 0?T:"").toString()}).join(";"),property:g[0].key,selector:f,layer:n,media:r,support:o}):void 0,_=y?{rtlClassName:E,rtlProperty:g[0].key,rtlValue:g.map(x=>x.value)}:void 0,S=qW(t,n,r,o,i),[b,A]=jW({className:h,media:r,layer:n,selectors:t,property:l,support:o,container:i,value:c,..._});GW(s,d,h,E),Q2(a,S,b,A,r)}else if(k4e(c))if(E4e(l))eh(c,t.concat(Ise(l)),r,n,o,i,s,a);else if(y4e(l)){const f=$W(r,l.slice(6).trim());eh(c,t,f,n,o,i,s,a)}else if(b4e(l)){const f=(n?`${n}.`:"")+l.slice(6).trim();eh(c,t,r,f,o,i,s,a)}else if(S4e(l)){const f=$W(o,l.slice(9).trim());eh(c,t,r,n,f,i,s,a)}else if(w4e(l)){const f=l.slice(10).trim();eh(c,t,r,n,o,f,s,a)}else A4e(l,c)}}return[s,a]}function T4e(e){const t={},r={};for(const n in e){const o=e[n],[i,s]=eh(o);t[n]=i,Object.keys(s).forEach(a=>{r[a]=(r[a]||[]).concat(s[a])})}return[t,r]}function x4e(e,t=r8){const r=t();let n=null,o=null,i=null,s=null;function a(u){const{dir:l,renderer:c}=u;n===null&&([n,o]=T4e(e));const f=l==="ltr";return f?i===null&&(i=RA(n,l)):s===null&&(s=RA(n,l)),r(c,o),f?i:s}return a}function Kse(e,t,r=r8){const n=r();let o=null,i=null;function s(a){const{dir:u,renderer:l}=a,c=u==="ltr";return c?o===null&&(o=RA(e,u)):i===null&&(i=RA(e,u)),n(l,t),c?o:i}return s}function I4e(e,t,r,n=r8){const o=n();function i(s){const{dir:a,renderer:u}=s,l=a==="ltr"?e:t||e;return o(u,Array.isArray(r)?{r}:r),l}return i}const Ye={border:jRe,borderLeft:zRe,borderBottom:HRe,borderRight:$Re,borderTop:PRe,borderColor:ZF,borderStyle:QF,borderRadius:qRe,borderWidth:XF,flex:URe,gap:YRe,gridArea:eOe,margin:tOe,marginBlock:rOe,marginInline:nOe,padding:oOe,paddingBlock:iOe,paddingInline:sOe,overflow:aOe,inset:uOe,outline:lOe,transition:cOe,textDecoration:pOe};function N4e(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}const UW=lb.useInsertionEffect?lb.useInsertionEffect:void 0,o8=()=>{const e={};return function(r,n){if(UW&&N4e()){UW(()=>{r.insertCSSRules(n)},[r,n]);return}e[r.id]===void 0&&(r.insertCSSRules(n),e[r.id]=!0)}},C4e=k.createContext(COe());function W_(){return k.useContext(C4e)}const Gse=k.createContext("ltr"),R4e=({children:e,dir:t})=>k.createElement(Gse.Provider,{value:t},e);function i8(){return k.useContext(Gse)}function wr(e){const t=x4e(e,o8);return function(){const n=i8(),o=W_();return t({dir:n,renderer:o})}}function wt(e,t){const r=Kse(e,t,o8);return function(){const o=i8(),i=W_();return r({dir:o,renderer:i})}}function Tn(e,t,r){const n=I4e(e,t,r,o8);return function(){const i=i8(),s=W_();return n({dir:i,renderer:s})}}function O4e(e,t){if(t){const r=Object.keys(t).reduce((n,o)=>`${n}--${o}: ${t[o]}; `,"");return`${e} { ${r} }`}return`${e} {}`}const Vse=Symbol("fui.slotRenderFunction"),kx=Symbol("fui.slotElementType");function Er(e,t){const{defaultProps:r,elementType:n}=t,o=D4e(e),i={...r,...o,[kx]:n};return o&&typeof o.children=="function"&&(i[Vse]=o.children,i.children=r==null?void 0:r.children),i}function un(e,t){if(!(e===null||e===void 0&&!t.renderByDefault))return Er(e,t)}function D4e(e){return typeof e=="string"||typeof e=="number"||Array.isArray(e)||k.isValidElement(e)?{children:e}:e}function YW(e){return!!(e!=null&&e.hasOwnProperty(kx))}function s8(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&!k.isValidElement(e)}const mn=(...e)=>{const t={};for(const r of e){const n=Array.isArray(r)?r:Object.keys(r);for(const o of n)t[o]=1}return t},F4e=mn(["onAuxClick","onAnimationEnd","onAnimationStart","onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),B4e=mn(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),M4e=mn(["itemID","itemProp","itemRef","itemScope","itemType"]),Ao=mn(B4e,F4e,M4e),L4e=mn(Ao,["form"]),Use=mn(Ao,["height","loop","muted","preload","src","width"]),j4e=mn(Use,["poster"]),z4e=mn(Ao,["start"]),H4e=mn(Ao,["value"]),$4e=mn(Ao,["download","href","hrefLang","media","rel","target","type"]),P4e=mn(Ao,["dateTime"]),Ax=mn(Ao,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),q4e=mn(Ax,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),W4e=mn(Ax,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),K4e=mn(Ax,["form","multiple","required"]),G4e=mn(Ao,["selected","value"]),V4e=mn(Ao,["cellPadding","cellSpacing"]),U4e=Ao,Y4e=mn(Ao,["colSpan","rowSpan","scope"]),X4e=mn(Ao,["colSpan","headers","rowSpan","scope"]),Q4e=mn(Ao,["span"]),Z4e=mn(Ao,["span"]),J4e=mn(Ao,["disabled","form"]),eDe=mn(Ao,["acceptCharset","action","encType","encType","method","noValidate","target"]),tDe=mn(Ao,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),rDe=mn(Ao,["alt","crossOrigin","height","src","srcSet","useMap","width"]),nDe=mn(Ao,["open","onCancel","onClose"]);function oDe(e,t,r){const n=Array.isArray(t),o={},i=Object.keys(e);for(const s of i)(!n&&t[s]||n&&t.indexOf(s)>=0||s.indexOf("data-")===0||s.indexOf("aria-")===0)&&(!r||(r==null?void 0:r.indexOf(s))===-1)&&(o[s]=e[s]);return o}const iDe={label:L4e,audio:Use,video:j4e,ol:z4e,li:H4e,a:$4e,button:Ax,input:q4e,textarea:W4e,select:K4e,option:G4e,table:V4e,tr:U4e,th:Y4e,td:X4e,colGroup:Q4e,col:Z4e,fieldset:J4e,form:eDe,iframe:tDe,img:rDe,time:P4e,dialog:nDe};function Yse(e,t,r){const n=e&&iDe[e]||Ao;return n.as=1,oDe(t,n,r)}const Xse=({primarySlotTagName:e,props:t,excludedPropNames:r})=>({root:{style:t.style,className:t.className},primary:Yse(e,t,[...r||[],"style","className"])}),yn=(e,t,r)=>{var n;return Yse((n=t.as)!==null&&n!==void 0?n:e,t,r)};function K_(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}function sDe(e,t){const r=k.useRef(void 0),n=k.useCallback((i,s)=>(r.current!==void 0&&t(r.current),r.current=e(i,s),r.current),[t,e]),o=k.useCallback(()=>{r.current!==void 0&&(t(r.current),r.current=void 0)},[t]);return k.useEffect(()=>o,[o]),[n,o]}function aDe(e){return typeof e=="function"}const Ef=e=>{const[t,r]=k.useState(()=>e.defaultState===void 0?e.initialState:uDe(e.defaultState)?e.defaultState():e.defaultState),n=k.useRef(e.state);k.useEffect(()=>{n.current=e.state},[e.state]);const o=k.useCallback(i=>{aDe(i)&&i(n.current)},[]);return lDe(e.state)?[e.state,o]:[t,r]};function uDe(e){return typeof e=="function"}const lDe=e=>{const[t]=k.useState(()=>e!==void 0);return t},Qse={current:0},cDe=k.createContext(void 0);function Zse(){var e;return(e=k.useContext(cDe))!==null&&e!==void 0?e:Qse}function fDe(){const e=Zse()!==Qse,[t,r]=k.useState(e);return K_()&&e&&k.useLayoutEffect(()=>{r(!1)},[]),t}const ic=K_()?k.useLayoutEffect:k.useEffect,ar=e=>{const t=k.useRef(()=>{throw new Error("Cannot call an event handler while rendering")});return ic(()=>{t.current=e},[e]),k.useCallback((...r)=>{const n=t.current;return n(...r)},[t])};function dDe(){const e=k.useRef(!0);return e.current?(e.current=!1,!0):e.current}const Jse=k.createContext(void 0);Jse.Provider;function hDe(){return k.useContext(Jse)||""}function Ia(e="fui-",t){const r=Zse(),n=hDe(),o=lb.useId;if(o){const i=o(),s=k.useMemo(()=>i.replace(/:/g,""),[i]);return t||`${n}${e}${s}`}return k.useMemo(()=>t||`${n}${e}${++r.current}`,[n,e,t,r])}function di(...e){const t=k.useCallback(r=>{t.current=r;for(const n of e)typeof n=="function"?n(r):n&&(n.current=r)},[...e]);return t}const eae=k.createContext(void 0),pDe=eae.Provider,tae=k.createContext(void 0),gDe="",vDe=tae.Provider;function mDe(){var e;return(e=k.useContext(tae))!==null&&e!==void 0?e:gDe}const rae=k.createContext(void 0),yDe={},bDe=rae.Provider;function _De(){var e;return(e=k.useContext(rae))!==null&&e!==void 0?e:yDe}const nae=k.createContext(void 0),EDe={targetDocument:typeof document=="object"?document:void 0,dir:"ltr"},SDe=nae.Provider;function Na(){var e;return(e=k.useContext(nae))!==null&&e!==void 0?e:EDe}const oae=k.createContext(void 0),wDe=oae.Provider;function iae(){var e;return(e=k.useContext(oae))!==null&&e!==void 0?e:{}}const a8=k.createContext(void 0),kDe=()=>{},ADe=a8.Provider,bn=e=>{var t,r;return(r=(t=k.useContext(a8))===null||t===void 0?void 0:t[e])!==null&&r!==void 0?r:kDe},sae=k.createContext(void 0);sae.Provider;function TDe(){return k.useContext(sae)}const aae=k.createContext(void 0);aae.Provider;function xDe(){return k.useContext(aae)}const uae=k.createContext(void 0);uae.Provider;function IDe(){var e;return(e=k.useContext(uae))!==null&&e!==void 0?e:{announce:()=>{}}}const lae=(e,t)=>!!(e!=null&&e.contains(t)),NDe=e=>{const{targetDocument:t}=Na(),r=t==null?void 0:t.defaultView,{refs:n,callback:o,element:i,disabled:s,disabledFocusOnIframe:a,contains:u=lae}=e,l=k.useRef(void 0);RDe({element:i,disabled:a||s,callback:o,refs:n,contains:u});const c=k.useRef(!1),f=ar(h=>{if(c.current){c.current=!1;return}const g=h.composedPath()[0];n.every(y=>!u(y.current||null,g))&&!s&&o(h)}),d=ar(h=>{c.current=n.some(g=>u(g.current||null,h.target))});k.useEffect(()=>{if(s)return;let h=CDe(r);const g=v=>{if(v===h){h=void 0;return}f(v)};return i==null||i.addEventListener("click",g,!0),i==null||i.addEventListener("touchstart",g,!0),i==null||i.addEventListener("contextmenu",g,!0),i==null||i.addEventListener("mousedown",d,!0),l.current=r==null?void 0:r.setTimeout(()=>{h=void 0},1),()=>{i==null||i.removeEventListener("click",g,!0),i==null||i.removeEventListener("touchstart",g,!0),i==null||i.removeEventListener("contextmenu",g,!0),i==null||i.removeEventListener("mousedown",d,!0),r==null||r.clearTimeout(l.current),h=void 0}},[f,i,s,d,r])},CDe=e=>{if(e){var t,r;if(typeof e.window=="object"&&e.window===e)return e.event;var n;return(n=(r=e.ownerDocument)===null||r===void 0||(t=r.defaultView)===null||t===void 0?void 0:t.event)!==null&&n!==void 0?n:void 0}},Z2="fuiframefocus",RDe=e=>{const{disabled:t,element:r,callback:n,contains:o=lae,pollDuration:i=1e3,refs:s}=e,a=k.useRef(),u=ar(l=>{s.every(f=>!o(f.current||null,l.target))&&!t&&n(l)});k.useEffect(()=>{if(!t)return r==null||r.addEventListener(Z2,u,!0),()=>{r==null||r.removeEventListener(Z2,u,!0)}},[r,t,u]),k.useEffect(()=>{var l;if(!t)return a.current=r==null||(l=r.defaultView)===null||l===void 0?void 0:l.setInterval(()=>{const c=r==null?void 0:r.activeElement;if((c==null?void 0:c.tagName)==="IFRAME"||(c==null?void 0:c.tagName)==="WEBVIEW"){const f=new CustomEvent(Z2,{bubbles:!0});c.dispatchEvent(f)}},i),()=>{var c;r==null||(c=r.defaultView)===null||c===void 0||c.clearTimeout(a.current)}},[r,t,i])},ODe=e=>{const{refs:t,callback:r,element:n,disabled:o,contains:i}=e,s=ar(a=>{const u=i||((f,d)=>!!(f!=null&&f.contains(d))),l=a.composedPath()[0];t.every(f=>!u(f.current||null,l))&&!o&&r(a)});k.useEffect(()=>{if(!o)return n==null||n.addEventListener("wheel",s),n==null||n.addEventListener("touchmove",s),()=>{n==null||n.removeEventListener("wheel",s),n==null||n.removeEventListener("touchmove",s)}},[s,n,o])};function u8(){return sDe(setTimeout,clearTimeout)}function Nn(e,t){return(...r)=>{e==null||e(...r),t==null||t(...r)}}function Lb(e,t){var r;const n=e;var o;return!!(!(n==null||(r=n.ownerDocument)===null||r===void 0)&&r.defaultView&&n instanceof n.ownerDocument.defaultView[(o=t==null?void 0:t.constructorName)!==null&&o!==void 0?o:"HTMLElement"])}function cae(e){return!!e.type.isFluentTriggerComponent}function l8(e,t){return typeof e=="function"?e(t):e?fae(e,t):e||null}function fae(e,t){if(!k.isValidElement(e)||e.type===k.Fragment)throw new Error("A trigger element must be a single element for this component. Please ensure that you're not using React Fragments.");if(cae(e)){const r=fae(e.props.children,t);return k.cloneElement(e,void 0,r)}else return k.cloneElement(e,t)}function Tx(e){return k.isValidElement(e)?cae(e)?Tx(e.props.children):e:null}function DDe(e){return e&&!!e._virtual}function FDe(e){return DDe(e)&&e._virtual.parent||null}function dae(e,t={}){if(!e)return null;if(!t.skipVirtual){const r=FDe(e);if(r)return r}return(e==null?void 0:e.parentNode)||null}function XW(e,t){if(!e||!t)return!1;if(e===t)return!0;{const r=new WeakSet;for(;t;){const n=dae(t,{skipVirtual:r.has(t)});if(r.add(t),n===e)return!0;t=n}}return!1}function QW(e,t){if(!e)return;const r=e;r._virtual||(r._virtual={}),r._virtual.parent=t}function BDe(e,t){return{...t,[kx]:e}}function hae(e,t){return function(n,o,i,s,a){return YW(o)?t(BDe(n,o),null,i,s,a):YW(n)?t(n,o,i,s,a):e(n,o,i,s,a)}}function pae(e){const{as:t,[kx]:r,[Vse]:n,...o}=e,i=o,s=typeof r=="string"?t??r:r;return typeof s!="string"&&t&&(i.as=t),{elementType:s,props:i,renderFunction:n}}const Oh=kke,MDe=(e,t,r)=>{const{elementType:n,renderFunction:o,props:i}=pae(e),s={...i,...t};return o?Oh.jsx(k.Fragment,{children:o(n,s)},r):Oh.jsx(n,s,r)},LDe=(e,t,r)=>{const{elementType:n,renderFunction:o,props:i}=pae(e),s={...i,...t};return o?Oh.jsx(k.Fragment,{children:o(n,{...s,children:Oh.jsxs(k.Fragment,{children:s.children},void 0)})},r):Oh.jsxs(n,s,r)},nt=hae(Oh.jsx,MDe),Un=hae(Oh.jsxs,LDe),oB=k.createContext(void 0),jDe={},zDe=oB.Provider,HDe=()=>k.useContext(oB)?k.useContext(oB):jDe,$De=wt({root:{mc9l5x:"f1w7gpdv",Bg96gwp:"fez10in",ycbfsm:"fg4l7m0"},rtl:{Bz10aip:"f13rod7r"}},{d:[".f1w7gpdv{display:inline;}",".fez10in{line-height:0;}",".f13rod7r{-webkit-transform:scaleX(-1);-moz-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1);}"],t:["@media (forced-colors: active){.fg4l7m0{forced-color-adjust:auto;}}"]}),PDe=(e,t)=>{const{title:r,primaryFill:n="currentColor",...o}=e,i={...o,title:void 0,fill:n},s=$De(),a=HDe();return i.className=Xe(s.root,(t==null?void 0:t.flipInRtl)&&(a==null?void 0:a.textDirection)==="rtl"&&s.rtl,i.className),r&&(i["aria-label"]=r),!i["aria-label"]&&!i["aria-labelledby"]?i["aria-hidden"]=!0:i.role="img",i},Xr=(e,t,r,n)=>{const o=t==="1em"?"20":t,i=k.forwardRef((s,a)=>{const u={...PDe(s,{flipInRtl:n==null?void 0:n.flipInRtl}),ref:a,width:t,height:t,viewBox:`0 0 ${o} ${o}`,xmlns:"http://www.w3.org/2000/svg"};return k.createElement("svg",u,...r.map(l=>k.createElement("path",{d:l,fill:u.fill})))});return i.displayName=e,i},qDe=Xr("CheckmarkFilled","1em",["M7.03 13.9 3.56 10a.75.75 0 0 0-1.12 1l4 4.5c.29.32.79.34 1.09.03l10.5-10.5a.75.75 0 0 0-1.06-1.06l-9.94 9.94Z"]),WDe=Xr("CheckmarkCircleFilled","1em",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm3.36 5.65a.5.5 0 0 0-.64-.06l-.07.06L9 11.3 7.35 9.65l-.07-.06a.5.5 0 0 0-.7.7l.07.07 2 2 .07.06c.17.11.4.11.56 0l.07-.06 4-4 .07-.08a.5.5 0 0 0-.06-.63Z"]),KDe=Xr("ChevronDownRegular","1em",["M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z"]),GDe=Xr("ChevronRightRegular","1em",["M7.65 4.15c.2-.2.5-.2.7 0l5.49 5.46c.21.22.21.57 0 .78l-5.49 5.46a.5.5 0 0 1-.7-.7L12.8 10 7.65 4.85a.5.5 0 0 1 0-.7Z"]),gae=Xr("DismissRegular","1em",["m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"]),VDe=Xr("ErrorCircleFilled","1em",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 10.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5ZM10 6a.5.5 0 0 0-.5.41v4.68a.5.5 0 0 0 1 0V6.41A.5.5 0 0 0 10 6Z"]),UDe=Xr("InfoFilled","1em",["M18 10a8 8 0 1 0-16 0 8 8 0 0 0 16 0ZM9.5 8.91a.5.5 0 0 1 1 0V13.6a.5.5 0 0 1-1 0V8.9Zm-.25-2.16a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0Z"]),YDe=Xr("WarningFilled","1em",["M8.68 2.79a1.5 1.5 0 0 1 2.64 0l6.5 12A1.5 1.5 0 0 1 16.5 17h-13a1.5 1.5 0 0 1-1.32-2.21l6.5-12ZM10.5 7.5a.5.5 0 0 0-1 0v4a.5.5 0 0 0 1 0v-4Zm.25 6.25a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z"]),XDe=Xr("ArrowExpand20Regular","20",["M3.5 3a.5.5 0 0 0-.5.5v4a.5.5 0 0 0 1 0V4.7l3.15 3.15a.5.5 0 1 0 .7-.7L4.71 4H7.5a.5.5 0 0 0 0-1h-4Zm0 14a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 1 0v2.8l3.15-3.15a.5.5 0 0 1 .7.7L4.71 16H7.5a.5.5 0 0 1 0 1h-4ZM17 3.5a.5.5 0 0 0-.5-.5h-4a.5.5 0 0 0 0 1h2.8l-3.15 3.15a.5.5 0 0 0 .7.7L16 4.71V7.5a.5.5 0 0 0 1 0v-4ZM16.5 17a.5.5 0 0 0 .5-.5v-4a.5.5 0 0 0-1 0v2.8l-3.15-3.15a.5.5 0 0 0-.7.7L15.29 16H12.5a.5.5 0 0 0 0 1h4Z"]),QDe=Xr("ArrowUpload20Regular","20",["M15 3a.5.5 0 0 0 .09-.99H4a.5.5 0 0 0-.09.98L4 3h11ZM9.5 18a.5.5 0 0 0 .5-.41V5.7l3.64 3.65c.17.18.44.2.64.06l.07-.06a.5.5 0 0 0 .06-.63l-.06-.07-4.5-4.5A.5.5 0 0 0 9.6 4h-.1a.5.5 0 0 0-.4.19L4.64 8.65a.5.5 0 0 0 .64.76l.07-.06L9 5.71V17.5c0 .28.22.5.5.5Z"]),ZDe=Xr("ArrowUpload24Regular","24",["M18.25 3.51a.75.75 0 1 0 0-1.5h-13a.75.75 0 1 0 0 1.5h13ZM11.65 22h.1c.38 0 .7-.28.74-.64l.01-.1V7.56l3.72 3.72c.27.27.68.29.98.07l.08-.07a.75.75 0 0 0 .07-.98l-.07-.08-5-5a.75.75 0 0 0-.97-.07l-.09.07-5 5a.75.75 0 0 0 .98 1.13l.08-.07L11 7.58v13.67c0 .38.28.7.65.75Z"]),vae=Xr("Attach16Regular","16",["M2.28 7.97a.5.5 0 0 0 .86.36l4.6-4.6A2.5 2.5 0 0 1 12 5.5a2.5 2.5 0 0 1-.73 1.77l-5.3 5.3a1 1 0 0 1-1.71-.7 1 1 0 0 1 .3-.71l5.3-5.3a.5.5 0 0 0-.7-.7l-5.32 5.29a2 2 0 1 0 2.83 2.83l5.3-5.3A3.49 3.49 0 0 0 9.5 2c-.9 0-1.8.34-2.48 1.02l-4.6 4.6a.5.5 0 0 0-.14.35Z"]),JDe=Xr("ChatAdd16Regular","16",["M1 7a6 6 0 0 1 11.95-.8c-.34-.1-.69-.16-1.05-.19a5 5 0 1 0-9.2 3.54.5.5 0 0 1 .05.4l-.5 1.78 1.65-.56a.5.5 0 0 1 .43.06c.5.32 1.07.55 1.68.67.03.36.1.71.18 1.05-.79-.11-1.53-.37-2.2-.75l-2.33.77a.5.5 0 0 1-.64-.6l.71-2.5A5.98 5.98 0 0 1 1 7Zm15 4.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Zm-4-2a.5.5 0 0 0-1 0V11H9.5a.5.5 0 0 0 0 1H11v1.5a.5.5 0 0 0 1 0V12h1.5a.5.5 0 0 0 0-1H12V9.5Z"]),e3e=Xr("Checkmark12Filled","12",["M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z"]),t3e=Xr("CheckmarkCircle12Filled","12",["M1 6a5 5 0 1 1 10 0A5 5 0 0 1 1 6Zm7.35-.9a.5.5 0 1 0-.7-.7L5.5 6.54 4.35 5.4a.5.5 0 1 0-.7.7l1.5 1.5c.2.2.5.2.7 0l2.5-2.5Z"]),r3e=Xr("ChevronLeft16Regular","16",["M10.35 3.15c.2.2.2.5 0 .7L6.21 8l4.14 4.15a.5.5 0 0 1-.7.7l-4.5-4.5a.5.5 0 0 1 0-.7l4.5-4.5c.2-.2.5-.2.7 0Z"]),n3e=Xr("ChevronRight16Regular","16",["M5.65 3.15a.5.5 0 0 0 0 .7L9.79 8l-4.14 4.15a.5.5 0 0 0 .7.7l4.5-4.5a.5.5 0 0 0 0-.7l-4.5-4.5a.5.5 0 0 0-.7 0Z"]),mae=Xr("Copy20Regular","20",["M8 2a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h6a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8ZM7 4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V4ZM4 6a2 2 0 0 1 1-1.73V14.5A2.5 2.5 0 0 0 7.5 17h6.23A2 2 0 0 1 12 18H7.5A3.5 3.5 0 0 1 4 14.5V6Z"]),yae=Xr("CopyArrowRight20Regular","20",["M8 2a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h1.2c-.08-.32-.15-.66-.18-1H8a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v5.02c.34.03.68.1 1 .19V4a2 2 0 0 0-2-2H8Zm-.5 15h2.1c.18.36.4.7.66 1H7.5A3.5 3.5 0 0 1 4 14.5V6a2 2 0 0 1 1-1.73V14.5A2.5 2.5 0 0 0 7.5 17Zm7-7a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9Zm2.35 4.85a.5.5 0 0 0 .15-.35.5.5 0 0 0-.15-.35l-2-2a.5.5 0 0 0-.7.7L15.29 14H12.5a.5.5 0 0 0 0 1h2.8l-1.15 1.15a.5.5 0 0 0 .7.7l2-2Z"]),bae=Xr("Dismiss20Regular","20",["m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"]),_ae=Xr("Dismiss24Regular","24",["m4.4 4.55.07-.08a.75.75 0 0 1 .98-.07l.08.07L12 10.94l6.47-6.47a.75.75 0 1 1 1.06 1.06L13.06 12l6.47 6.47c.27.27.3.68.07.98l-.07.08a.75.75 0 0 1-.98.07l-.08-.07L12 13.06l-6.47 6.47a.75.75 0 0 1-1.06-1.06L10.94 12 4.47 5.53a.75.75 0 0 1-.07-.98l.07-.08-.07.08Z"]),o3e=Xr("ErrorCircle12Filled","12",["M6 11A5 5 0 1 0 6 1a5 5 0 0 0 0 10Zm-.75-2.75a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0Zm.26-4.84a.5.5 0 0 1 .98 0l.01.09v2.59a.5.5 0 0 1-1 0V3.41Z"]),oy=Xr("Info16Regular","16",["M8.5 7.5a.5.5 0 1 0-1 0v3a.5.5 0 0 0 1 0v-3Zm.25-2a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1ZM2 8a6 6 0 1 1 12 0A6 6 0 0 1 2 8Z"]),i3e=Xr("Open20Regular","20",["M6 4a2 2 0 0 0-2 2v8c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2v-2.5a.5.5 0 0 1 1 0V14a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h2.5a.5.5 0 0 1 0 1H6Zm5-.5c0-.28.22-.5.5-.5h5c.28 0 .5.22.5.5v5a.5.5 0 0 1-1 0V4.7l-4.15 4.15a.5.5 0 0 1-.7-.7L15.29 4H11.5a.5.5 0 0 1-.5-.5Z"]),s3e=Xr("PanelLeftContract20Regular","20",["M10.82 10.5h3.68a.5.5 0 0 0 0-1h-3.68l1-.87a.5.5 0 1 0-.66-.76l-2 1.75a.5.5 0 0 0 0 .76l2 1.75a.5.5 0 1 0 .66-.76l-1-.87ZM4 4a2 2 0 0 0-2 2v8c0 1.1.9 2 2 2h12a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H4ZM3 6a1 1 0 0 1 1-1h3v10H4a1 1 0 0 1-1-1V6Zm5 9V5h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H8Z"]),a3e=Xr("PanelRightContract20Regular","20",["m9.18 10.5-1 .87a.5.5 0 1 0 .66.76l2-1.75a.5.5 0 0 0 0-.76l-2-1.75a.5.5 0 1 0-.66.76l1 .87H5.5a.5.5 0 0 0 0 1h3.68ZM16 16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v8c0 1.1.9 2 2 2h12Zm1-2a1 1 0 0 1-1 1h-3V5h3a1 1 0 0 1 1 1v8Zm-5-9v10H4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h8Z"]),u3e=Xr("Send16Filled","16",["M1.72 1.05a.5.5 0 0 0-.71.55l1.4 4.85c.06.18.21.32.4.35l5.69.95c.27.06.27.44 0 .5l-5.69.95a.5.5 0 0 0-.4.35l-1.4 4.85a.5.5 0 0 0 .71.55l13-6.5a.5.5 0 0 0 0-.9l-13-6.5Z"],{flipInRtl:!0}),l3e=Xr("Warning12Filled","12",["M5.21 1.46a.9.9 0 0 1 1.58 0l4.09 7.17a.92.92 0 0 1-.79 1.37H1.91a.92.92 0 0 1-.79-1.37l4.1-7.17ZM5.5 4.5v1a.5.5 0 0 0 1 0v-1a.5.5 0 0 0-1 0ZM6 6.75a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"]),Eae=Xr("ZoomIn20Regular","20",["M11.5 8.5A.5.5 0 0 0 11 8H9V6a.5.5 0 0 0-1 0v2H6a.5.5 0 0 0 0 1h2v2a.5.5 0 0 0 1 0V9h2a.5.5 0 0 0 .5-.5ZM8.5 3a5.5 5.5 0 0 1 4.23 9.02l4.12 4.13a.5.5 0 0 1-.63.76l-.07-.06-4.13-4.12A5.5 5.5 0 1 1 8.5 3Zm0 1a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Z"]),c3e=(e,t)=>nt(SDe,{value:t.provider,children:nt(pDe,{value:t.theme,children:nt(vDe,{value:t.themeClassName,children:nt(ADe,{value:t.customStyleHooks_unstable,children:nt(bDe,{value:t.tooltip,children:nt(R4e,{dir:t.textDirection,children:nt(zDe,{value:t.iconDirection,children:nt(wDe,{value:t.overrides_unstable,children:Un(e.root,{children:[K_()?null:nt("style",{dangerouslySetInnerHTML:{__html:e.serverStyleProps.cssRule},...e.serverStyleProps.attributes}),e.root.children]})})})})})})})})});/*! +`)}`," ".repeat(4)+""," ".repeat(2)+"",e.indexOf("&")}function eK(e,t,r,n){e[t]=n?[r,n]:r}function tK(e,t){return t?[e,t]:e}function tC(e,t,r,n,o){var i;let s;t==="m"&&o&&(s={m:o}),(i=e[t])!==null&&i!==void 0||(e[t]=[]),r&&e[t].push(tK(r,s)),n&&e[t].push(tK(n,s))}function J1(e,t=[],r="",n="",o="",i="",s={},a={},u){for(const l in e){if(IOe.hasOwnProperty(l)){e[l];continue}const c=e[l];if(c!=null){if(typeof c=="string"||typeof c=="number"){const f=JW(t.join("")),d=ZW(f,i,r,o,l),h=aw({container:i,media:r,layer:n,value:c.toString(),support:o,selector:f,property:l}),g=u&&{key:l,value:u}||sB(l,c),v=g.key!==l||g.value!==c,y=v?aw({container:i,value:g.value.toString(),property:g.key,selector:f,media:r,layer:n,support:o}):void 0,E=v?{rtlClassName:y,rtlProperty:g.key,rtlValue:g.value}:void 0,_=QW(t,n,r,o,i),[S,b]=GW({className:h,media:r,layer:n,selectors:t,property:l,support:o,container:i,value:c,...E});eK(s,d,h,y),tC(a,_,S,b,r)}else if(l==="animationName"){const f=Array.isArray(c)?c:[c],d=[],h=[];for(const g of f){const v=VW(g),y=VW(Fse(g)),E=oB+Dg(v);let _;const S=UW(E,v);let b=[];v===y?_=E:(_=oB+Dg(y),b=UW(_,y));for(let A=0;A(T??"").toString()).join(";"),support:o,selector:f,property:l}),g=c.map(T=>sB(l,T));if(!!g.some(T=>T.key!==g[0].key))continue;const y=g[0].key!==l||g.some((T,x)=>T.value!==c[x]),E=y?aw({container:i,value:g.map(T=>{var x;return((x=T==null?void 0:T.value)!==null&&x!==void 0?x:"").toString()}).join(";"),property:g[0].key,selector:f,layer:n,media:r,support:o}):void 0,_=y?{rtlClassName:E,rtlProperty:g[0].key,rtlValue:g.map(T=>T.value)}:void 0,S=QW(t,n,r,o,i),[b,A]=GW({className:h,media:r,layer:n,selectors:t,property:l,support:o,container:i,value:c,..._});eK(s,d,h,E),tC(a,S,b,A,r)}else if(R4e(c))if(I4e(l))J1(c,t.concat(Bse(l)),r,n,o,i,s,a);else if(k4e(l)){const f=YW(r,l.slice(6).trim());J1(c,t,f,n,o,i,s,a)}else if(x4e(l)){const f=(n?`${n}.`:"")+l.slice(6).trim();J1(c,t,r,f,o,i,s,a)}else if(C4e(l)){const f=YW(o,l.slice(9).trim());J1(c,t,r,n,f,i,s,a)}else if(N4e(l)){const f=l.slice(10).trim();J1(c,t,r,n,o,f,s,a)}else O4e(l,c)}}return[s,a]}function D4e(e){const t={},r={};for(const n in e){const o=e[n],[i,s]=J1(o);t[n]=i,Object.keys(s).forEach(a=>{r[a]=(r[a]||[]).concat(s[a])})}return[t,r]}function F4e(e,t=a8){const r=t();let n=null,o=null,i=null,s=null;function a(u){const{dir:l,renderer:c}=u;n===null&&([n,o]=D4e(e));const f=l==="ltr";return f?i===null&&(i=Mk(n,l)):s===null&&(s=Mk(n,l)),r(c,o),f?i:s}return a}function Zse(e,t,r=a8){const n=r();let o=null,i=null;function s(a){const{dir:u,renderer:l}=a,c=u==="ltr";return c?o===null&&(o=Mk(e,u)):i===null&&(i=Mk(e,u)),n(l,t),c?o:i}return s}function B4e(e,t,r,n=a8){const o=n();function i(s){const{dir:a,renderer:u}=s,l=a==="ltr"?e:t||e;return o(u,Array.isArray(r)?{r}:r),l}return i}const Ye={border:KRe,borderLeft:GRe,borderBottom:VRe,borderRight:URe,borderTop:YRe,borderColor:rB,borderStyle:tB,borderRadius:XRe,borderWidth:eB,flex:tOe,gap:rOe,gridArea:aOe,margin:uOe,marginBlock:lOe,marginInline:cOe,padding:fOe,paddingBlock:dOe,paddingInline:hOe,overflow:pOe,inset:gOe,outline:vOe,transition:mOe,textDecoration:EOe};function M4e(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}const rK=db.useInsertionEffect?db.useInsertionEffect:void 0,l8=()=>{const e={};return function(r,n){if(rK&&M4e()){rK(()=>{r.insertCSSRules(n)},[r,n]);return}e[r.id]===void 0&&(r.insertCSSRules(n),e[r.id]=!0)}},L4e=k.createContext(LOe());function V_(){return k.useContext(L4e)}const Jse=k.createContext("ltr"),j4e=({children:e,dir:t})=>k.createElement(Jse.Provider,{value:t},e);function c8(){return k.useContext(Jse)}function Ar(e){const t=F4e(e,l8);return function(){const n=c8(),o=V_();return t({dir:n,renderer:o})}}function At(e,t){const r=Zse(e,t,l8);return function(){const o=c8(),i=V_();return r({dir:o,renderer:i})}}function kn(e,t,r){const n=B4e(e,t,r,l8);return function(){const i=c8(),s=V_();return n({dir:i,renderer:s})}}function z4e(e,t){if(t){const r=Object.keys(t).reduce((n,o)=>`${n}--${o}: ${t[o]}; `,"");return`${e} { ${r} }`}return`${e} {}`}const eae=Symbol("fui.slotRenderFunction"),IT=Symbol("fui.slotElementType");function Sr(e,t){const{defaultProps:r,elementType:n}=t,o=H4e(e),i={...r,...o,[IT]:n};return o&&typeof o.children=="function"&&(i[eae]=o.children,i.children=r==null?void 0:r.children),i}function un(e,t){if(!(e===null||e===void 0&&!t.renderByDefault))return Sr(e,t)}function H4e(e){return typeof e=="string"||typeof e=="number"||Array.isArray(e)||k.isValidElement(e)?{children:e}:e}function nK(e){return!!(e!=null&&e.hasOwnProperty(IT))}function f8(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&!k.isValidElement(e)}const vn=(...e)=>{const t={};for(const r of e){const n=Array.isArray(r)?r:Object.keys(r);for(const o of n)t[o]=1}return t},$4e=vn(["onAuxClick","onAnimationEnd","onAnimationStart","onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),P4e=vn(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),q4e=vn(["itemID","itemProp","itemRef","itemScope","itemType"]),xo=vn(P4e,$4e,q4e),W4e=vn(xo,["form"]),tae=vn(xo,["height","loop","muted","preload","src","width"]),K4e=vn(tae,["poster"]),G4e=vn(xo,["start"]),V4e=vn(xo,["value"]),U4e=vn(xo,["download","href","hrefLang","media","rel","target","type"]),Y4e=vn(xo,["dateTime"]),CT=vn(xo,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),X4e=vn(CT,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),Q4e=vn(CT,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),Z4e=vn(CT,["form","multiple","required"]),J4e=vn(xo,["selected","value"]),eDe=vn(xo,["cellPadding","cellSpacing"]),tDe=xo,rDe=vn(xo,["colSpan","rowSpan","scope"]),nDe=vn(xo,["colSpan","headers","rowSpan","scope"]),oDe=vn(xo,["span"]),iDe=vn(xo,["span"]),sDe=vn(xo,["disabled","form"]),aDe=vn(xo,["acceptCharset","action","encType","encType","method","noValidate","target"]),uDe=vn(xo,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),lDe=vn(xo,["alt","crossOrigin","height","src","srcSet","useMap","width"]),cDe=vn(xo,["open","onCancel","onClose"]);function fDe(e,t,r){const n=Array.isArray(t),o={},i=Object.keys(e);for(const s of i)(!n&&t[s]||n&&t.indexOf(s)>=0||s.indexOf("data-")===0||s.indexOf("aria-")===0)&&(!r||(r==null?void 0:r.indexOf(s))===-1)&&(o[s]=e[s]);return o}const dDe={label:W4e,audio:tae,video:K4e,ol:G4e,li:V4e,a:U4e,button:CT,input:X4e,textarea:Q4e,select:Z4e,option:J4e,table:eDe,tr:tDe,th:rDe,td:nDe,colGroup:oDe,col:iDe,fieldset:sDe,form:aDe,iframe:uDe,img:lDe,time:Y4e,dialog:cDe};function rae(e,t,r){const n=e&&dDe[e]||xo;return n.as=1,fDe(t,n,r)}const nae=({primarySlotTagName:e,props:t,excludedPropNames:r})=>({root:{style:t.style,className:t.className},primary:rae(e,t,[...r||[],"style","className"])}),mn=(e,t,r)=>{var n;return rae((n=t.as)!==null&&n!==void 0?n:e,t,r)};function U_(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}function hDe(e,t){const r=k.useRef(void 0),n=k.useCallback((i,s)=>(r.current!==void 0&&t(r.current),r.current=e(i,s),r.current),[t,e]),o=k.useCallback(()=>{r.current!==void 0&&(t(r.current),r.current=void 0)},[t]);return k.useEffect(()=>o,[o]),[n,o]}function pDe(e){return typeof e=="function"}const Sf=e=>{const[t,r]=k.useState(()=>e.defaultState===void 0?e.initialState:gDe(e.defaultState)?e.defaultState():e.defaultState),n=k.useRef(e.state);k.useEffect(()=>{n.current=e.state},[e.state]);const o=k.useCallback(i=>{pDe(i)&&i(n.current)},[]);return vDe(e.state)?[e.state,o]:[t,r]};function gDe(e){return typeof e=="function"}const vDe=e=>{const[t]=k.useState(()=>e!==void 0);return t},oae={current:0},mDe=k.createContext(void 0);function iae(){var e;return(e=k.useContext(mDe))!==null&&e!==void 0?e:oae}function yDe(){const e=iae()!==oae,[t,r]=k.useState(e);return U_()&&e&&k.useLayoutEffect(()=>{r(!1)},[]),t}const uc=U_()?k.useLayoutEffect:k.useEffect,lr=e=>{const t=k.useRef(()=>{throw new Error("Cannot call an event handler while rendering")});return uc(()=>{t.current=e},[e]),k.useCallback((...r)=>{const n=t.current;return n(...r)},[t])};function bDe(){const e=k.useRef(!0);return e.current?(e.current=!1,!0):e.current}const sae=k.createContext(void 0);sae.Provider;function _De(){return k.useContext(sae)||""}function Ia(e="fui-",t){const r=iae(),n=_De(),o=db.useId;if(o){const i=o(),s=k.useMemo(()=>i.replace(/:/g,""),[i]);return t||`${n}${e}${s}`}return k.useMemo(()=>t||`${n}${e}${++r.current}`,[n,e,t,r])}function di(...e){const t=k.useCallback(r=>{t.current=r;for(const n of e)typeof n=="function"?n(r):n&&(n.current=r)},[...e]);return t}const aae=k.createContext(void 0),EDe=aae.Provider,uae=k.createContext(void 0),SDe="",wDe=uae.Provider;function ADe(){var e;return(e=k.useContext(uae))!==null&&e!==void 0?e:SDe}const lae=k.createContext(void 0),kDe={},xDe=lae.Provider;function TDe(){var e;return(e=k.useContext(lae))!==null&&e!==void 0?e:kDe}const cae=k.createContext(void 0),IDe={targetDocument:typeof document=="object"?document:void 0,dir:"ltr"},CDe=cae.Provider;function Ca(){var e;return(e=k.useContext(cae))!==null&&e!==void 0?e:IDe}const fae=k.createContext(void 0),NDe=fae.Provider;function dae(){var e;return(e=k.useContext(fae))!==null&&e!==void 0?e:{}}const d8=k.createContext(void 0),RDe=()=>{},ODe=d8.Provider,yn=e=>{var t,r;return(r=(t=k.useContext(d8))===null||t===void 0?void 0:t[e])!==null&&r!==void 0?r:RDe},hae=k.createContext(void 0);hae.Provider;function DDe(){return k.useContext(hae)}const pae=k.createContext(void 0);pae.Provider;function FDe(){return k.useContext(pae)}const gae=k.createContext(void 0);gae.Provider;function BDe(){var e;return(e=k.useContext(gae))!==null&&e!==void 0?e:{announce:()=>{}}}const vae=(e,t)=>!!(e!=null&&e.contains(t)),MDe=e=>{const{targetDocument:t}=Ca(),r=t==null?void 0:t.defaultView,{refs:n,callback:o,element:i,disabled:s,disabledFocusOnIframe:a,contains:u=vae}=e,l=k.useRef(void 0);jDe({element:i,disabled:a||s,callback:o,refs:n,contains:u});const c=k.useRef(!1),f=lr(h=>{if(c.current){c.current=!1;return}const g=h.composedPath()[0];n.every(y=>!u(y.current||null,g))&&!s&&o(h)}),d=lr(h=>{c.current=n.some(g=>u(g.current||null,h.target))});k.useEffect(()=>{if(s)return;let h=LDe(r);const g=v=>{if(v===h){h=void 0;return}f(v)};return i==null||i.addEventListener("click",g,!0),i==null||i.addEventListener("touchstart",g,!0),i==null||i.addEventListener("contextmenu",g,!0),i==null||i.addEventListener("mousedown",d,!0),l.current=r==null?void 0:r.setTimeout(()=>{h=void 0},1),()=>{i==null||i.removeEventListener("click",g,!0),i==null||i.removeEventListener("touchstart",g,!0),i==null||i.removeEventListener("contextmenu",g,!0),i==null||i.removeEventListener("mousedown",d,!0),r==null||r.clearTimeout(l.current),h=void 0}},[f,i,s,d,r])},LDe=e=>{if(e){var t,r;if(typeof e.window=="object"&&e.window===e)return e.event;var n;return(n=(r=e.ownerDocument)===null||r===void 0||(t=r.defaultView)===null||t===void 0?void 0:t.event)!==null&&n!==void 0?n:void 0}},rC="fuiframefocus",jDe=e=>{const{disabled:t,element:r,callback:n,contains:o=vae,pollDuration:i=1e3,refs:s}=e,a=k.useRef(),u=lr(l=>{s.every(f=>!o(f.current||null,l.target))&&!t&&n(l)});k.useEffect(()=>{if(!t)return r==null||r.addEventListener(rC,u,!0),()=>{r==null||r.removeEventListener(rC,u,!0)}},[r,t,u]),k.useEffect(()=>{var l;if(!t)return a.current=r==null||(l=r.defaultView)===null||l===void 0?void 0:l.setInterval(()=>{const c=r==null?void 0:r.activeElement;if((c==null?void 0:c.tagName)==="IFRAME"||(c==null?void 0:c.tagName)==="WEBVIEW"){const f=new CustomEvent(rC,{bubbles:!0});c.dispatchEvent(f)}},i),()=>{var c;r==null||(c=r.defaultView)===null||c===void 0||c.clearTimeout(a.current)}},[r,t,i])},zDe=e=>{const{refs:t,callback:r,element:n,disabled:o,contains:i}=e,s=lr(a=>{const u=i||((f,d)=>!!(f!=null&&f.contains(d))),l=a.composedPath()[0];t.every(f=>!u(f.current||null,l))&&!o&&r(a)});k.useEffect(()=>{if(!o)return n==null||n.addEventListener("wheel",s),n==null||n.addEventListener("touchmove",s),()=>{n==null||n.removeEventListener("wheel",s),n==null||n.removeEventListener("touchmove",s)}},[s,n,o])};function h8(){return hDe(setTimeout,clearTimeout)}function In(e,t){return(...r)=>{e==null||e(...r),t==null||t(...r)}}function Hb(e,t){var r;const n=e;var o;return!!(!(n==null||(r=n.ownerDocument)===null||r===void 0)&&r.defaultView&&n instanceof n.ownerDocument.defaultView[(o=t==null?void 0:t.constructorName)!==null&&o!==void 0?o:"HTMLElement"])}function mae(e){return!!e.type.isFluentTriggerComponent}function p8(e,t){return typeof e=="function"?e(t):e?yae(e,t):e||null}function yae(e,t){if(!k.isValidElement(e)||e.type===k.Fragment)throw new Error("A trigger element must be a single element for this component. Please ensure that you're not using React Fragments.");if(mae(e)){const r=yae(e.props.children,t);return k.cloneElement(e,void 0,r)}else return k.cloneElement(e,t)}function NT(e){return k.isValidElement(e)?mae(e)?NT(e.props.children):e:null}function HDe(e){return e&&!!e._virtual}function $De(e){return HDe(e)&&e._virtual.parent||null}function bae(e,t={}){if(!e)return null;if(!t.skipVirtual){const r=$De(e);if(r)return r}return(e==null?void 0:e.parentNode)||null}function oK(e,t){if(!e||!t)return!1;if(e===t)return!0;{const r=new WeakSet;for(;t;){const n=bae(t,{skipVirtual:r.has(t)});if(r.add(t),n===e)return!0;t=n}}return!1}function iK(e,t){if(!e)return;const r=e;r._virtual||(r._virtual={}),r._virtual.parent=t}function PDe(e,t){return{...t,[IT]:e}}function _ae(e,t){return function(n,o,i,s,a){return nK(o)?t(PDe(n,o),null,i,s,a):nK(n)?t(n,o,i,s,a):e(n,o,i,s,a)}}function Eae(e){const{as:t,[IT]:r,[eae]:n,...o}=e,i=o,s=typeof r=="string"?t??r:r;return typeof s!="string"&&t&&(i.as=t),{elementType:s,props:i,renderFunction:n}}const Rh=RAe,qDe=(e,t,r)=>{const{elementType:n,renderFunction:o,props:i}=Eae(e),s={...i,...t};return o?Rh.jsx(k.Fragment,{children:o(n,s)},r):Rh.jsx(n,s,r)},WDe=(e,t,r)=>{const{elementType:n,renderFunction:o,props:i}=Eae(e),s={...i,...t};return o?Rh.jsx(k.Fragment,{children:o(n,{...s,children:Rh.jsxs(k.Fragment,{children:s.children},void 0)})},r):Rh.jsxs(n,s,r)},nt=_ae(Rh.jsx,qDe),Vn=_ae(Rh.jsxs,WDe),uB=k.createContext(void 0),KDe={},GDe=uB.Provider,VDe=()=>k.useContext(uB)?k.useContext(uB):KDe,UDe=At({root:{mc9l5x:"f1w7gpdv",Bg96gwp:"fez10in",ycbfsm:"fg4l7m0"},rtl:{Bz10aip:"f13rod7r"}},{d:[".f1w7gpdv{display:inline;}",".fez10in{line-height:0;}",".f13rod7r{-webkit-transform:scaleX(-1);-moz-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1);}"],t:["@media (forced-colors: active){.fg4l7m0{forced-color-adjust:auto;}}"]}),YDe=(e,t)=>{const{title:r,primaryFill:n="currentColor",...o}=e,i={...o,title:void 0,fill:n},s=UDe(),a=VDe();return i.className=Xe(s.root,(t==null?void 0:t.flipInRtl)&&(a==null?void 0:a.textDirection)==="rtl"&&s.rtl,i.className),r&&(i["aria-label"]=r),!i["aria-label"]&&!i["aria-labelledby"]?i["aria-hidden"]=!0:i.role="img",i},Qr=(e,t,r,n)=>{const o=t==="1em"?"20":t,i=k.forwardRef((s,a)=>{const u={...YDe(s,{flipInRtl:n==null?void 0:n.flipInRtl}),ref:a,width:t,height:t,viewBox:`0 0 ${o} ${o}`,xmlns:"http://www.w3.org/2000/svg"};return k.createElement("svg",u,...r.map(l=>k.createElement("path",{d:l,fill:u.fill})))});return i.displayName=e,i},XDe=Qr("CheckmarkFilled","1em",["M7.03 13.9 3.56 10a.75.75 0 0 0-1.12 1l4 4.5c.29.32.79.34 1.09.03l10.5-10.5a.75.75 0 0 0-1.06-1.06l-9.94 9.94Z"]),QDe=Qr("CheckmarkCircleFilled","1em",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm3.36 5.65a.5.5 0 0 0-.64-.06l-.07.06L9 11.3 7.35 9.65l-.07-.06a.5.5 0 0 0-.7.7l.07.07 2 2 .07.06c.17.11.4.11.56 0l.07-.06 4-4 .07-.08a.5.5 0 0 0-.06-.63Z"]),ZDe=Qr("ChevronDownRegular","1em",["M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z"]),JDe=Qr("ChevronRightRegular","1em",["M7.65 4.15c.2-.2.5-.2.7 0l5.49 5.46c.21.22.21.57 0 .78l-5.49 5.46a.5.5 0 0 1-.7-.7L12.8 10 7.65 4.85a.5.5 0 0 1 0-.7Z"]),Sae=Qr("DismissRegular","1em",["m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"]),e3e=Qr("ErrorCircleFilled","1em",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 10.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5ZM10 6a.5.5 0 0 0-.5.41v4.68a.5.5 0 0 0 1 0V6.41A.5.5 0 0 0 10 6Z"]),t3e=Qr("InfoFilled","1em",["M18 10a8 8 0 1 0-16 0 8 8 0 0 0 16 0ZM9.5 8.91a.5.5 0 0 1 1 0V13.6a.5.5 0 0 1-1 0V8.9Zm-.25-2.16a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0Z"]),r3e=Qr("WarningFilled","1em",["M8.68 2.79a1.5 1.5 0 0 1 2.64 0l6.5 12A1.5 1.5 0 0 1 16.5 17h-13a1.5 1.5 0 0 1-1.32-2.21l6.5-12ZM10.5 7.5a.5.5 0 0 0-1 0v4a.5.5 0 0 0 1 0v-4Zm.25 6.25a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z"]),n3e=Qr("ArrowExpand20Regular","20",["M3.5 3a.5.5 0 0 0-.5.5v4a.5.5 0 0 0 1 0V4.7l3.15 3.15a.5.5 0 1 0 .7-.7L4.71 4H7.5a.5.5 0 0 0 0-1h-4Zm0 14a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 1 0v2.8l3.15-3.15a.5.5 0 0 1 .7.7L4.71 16H7.5a.5.5 0 0 1 0 1h-4ZM17 3.5a.5.5 0 0 0-.5-.5h-4a.5.5 0 0 0 0 1h2.8l-3.15 3.15a.5.5 0 0 0 .7.7L16 4.71V7.5a.5.5 0 0 0 1 0v-4ZM16.5 17a.5.5 0 0 0 .5-.5v-4a.5.5 0 0 0-1 0v2.8l-3.15-3.15a.5.5 0 0 0-.7.7L15.29 16H12.5a.5.5 0 0 0 0 1h4Z"]),o3e=Qr("ArrowUpload20Regular","20",["M15 3a.5.5 0 0 0 .09-.99H4a.5.5 0 0 0-.09.98L4 3h11ZM9.5 18a.5.5 0 0 0 .5-.41V5.7l3.64 3.65c.17.18.44.2.64.06l.07-.06a.5.5 0 0 0 .06-.63l-.06-.07-4.5-4.5A.5.5 0 0 0 9.6 4h-.1a.5.5 0 0 0-.4.19L4.64 8.65a.5.5 0 0 0 .64.76l.07-.06L9 5.71V17.5c0 .28.22.5.5.5Z"]),i3e=Qr("ArrowUpload24Regular","24",["M18.25 3.51a.75.75 0 1 0 0-1.5h-13a.75.75 0 1 0 0 1.5h13ZM11.65 22h.1c.38 0 .7-.28.74-.64l.01-.1V7.56l3.72 3.72c.27.27.68.29.98.07l.08-.07a.75.75 0 0 0 .07-.98l-.07-.08-5-5a.75.75 0 0 0-.97-.07l-.09.07-5 5a.75.75 0 0 0 .98 1.13l.08-.07L11 7.58v13.67c0 .38.28.7.65.75Z"]),wae=Qr("Attach16Regular","16",["M2.28 7.97a.5.5 0 0 0 .86.36l4.6-4.6A2.5 2.5 0 0 1 12 5.5a2.5 2.5 0 0 1-.73 1.77l-5.3 5.3a1 1 0 0 1-1.71-.7 1 1 0 0 1 .3-.71l5.3-5.3a.5.5 0 0 0-.7-.7l-5.32 5.29a2 2 0 1 0 2.83 2.83l5.3-5.3A3.49 3.49 0 0 0 9.5 2c-.9 0-1.8.34-2.48 1.02l-4.6 4.6a.5.5 0 0 0-.14.35Z"]),s3e=Qr("ChatAdd16Regular","16",["M1 7a6 6 0 0 1 11.95-.8c-.34-.1-.69-.16-1.05-.19a5 5 0 1 0-9.2 3.54.5.5 0 0 1 .05.4l-.5 1.78 1.65-.56a.5.5 0 0 1 .43.06c.5.32 1.07.55 1.68.67.03.36.1.71.18 1.05-.79-.11-1.53-.37-2.2-.75l-2.33.77a.5.5 0 0 1-.64-.6l.71-2.5A5.98 5.98 0 0 1 1 7Zm15 4.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Zm-4-2a.5.5 0 0 0-1 0V11H9.5a.5.5 0 0 0 0 1H11v1.5a.5.5 0 0 0 1 0V12h1.5a.5.5 0 0 0 0-1H12V9.5Z"]),a3e=Qr("Checkmark12Filled","12",["M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z"]),u3e=Qr("CheckmarkCircle12Filled","12",["M1 6a5 5 0 1 1 10 0A5 5 0 0 1 1 6Zm7.35-.9a.5.5 0 1 0-.7-.7L5.5 6.54 4.35 5.4a.5.5 0 1 0-.7.7l1.5 1.5c.2.2.5.2.7 0l2.5-2.5Z"]),l3e=Qr("ChevronLeft16Regular","16",["M10.35 3.15c.2.2.2.5 0 .7L6.21 8l4.14 4.15a.5.5 0 0 1-.7.7l-4.5-4.5a.5.5 0 0 1 0-.7l4.5-4.5c.2-.2.5-.2.7 0Z"]),c3e=Qr("ChevronRight16Regular","16",["M5.65 3.15a.5.5 0 0 0 0 .7L9.79 8l-4.14 4.15a.5.5 0 0 0 .7.7l4.5-4.5a.5.5 0 0 0 0-.7l-4.5-4.5a.5.5 0 0 0-.7 0Z"]),Aae=Qr("Copy20Regular","20",["M8 2a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h6a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8ZM7 4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V4ZM4 6a2 2 0 0 1 1-1.73V14.5A2.5 2.5 0 0 0 7.5 17h6.23A2 2 0 0 1 12 18H7.5A3.5 3.5 0 0 1 4 14.5V6Z"]),kae=Qr("CopyArrowRight20Regular","20",["M8 2a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h1.2c-.08-.32-.15-.66-.18-1H8a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v5.02c.34.03.68.1 1 .19V4a2 2 0 0 0-2-2H8Zm-.5 15h2.1c.18.36.4.7.66 1H7.5A3.5 3.5 0 0 1 4 14.5V6a2 2 0 0 1 1-1.73V14.5A2.5 2.5 0 0 0 7.5 17Zm7-7a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9Zm2.35 4.85a.5.5 0 0 0 .15-.35.5.5 0 0 0-.15-.35l-2-2a.5.5 0 0 0-.7.7L15.29 14H12.5a.5.5 0 0 0 0 1h2.8l-1.15 1.15a.5.5 0 0 0 .7.7l2-2Z"]),xae=Qr("Dismiss20Regular","20",["m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"]),Tae=Qr("Dismiss24Regular","24",["m4.4 4.55.07-.08a.75.75 0 0 1 .98-.07l.08.07L12 10.94l6.47-6.47a.75.75 0 1 1 1.06 1.06L13.06 12l6.47 6.47c.27.27.3.68.07.98l-.07.08a.75.75 0 0 1-.98.07l-.08-.07L12 13.06l-6.47 6.47a.75.75 0 0 1-1.06-1.06L10.94 12 4.47 5.53a.75.75 0 0 1-.07-.98l.07-.08-.07.08Z"]),f3e=Qr("ErrorCircle12Filled","12",["M6 11A5 5 0 1 0 6 1a5 5 0 0 0 0 10Zm-.75-2.75a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0Zm.26-4.84a.5.5 0 0 1 .98 0l.01.09v2.59a.5.5 0 0 1-1 0V3.41Z"]),iy=Qr("Info16Regular","16",["M8.5 7.5a.5.5 0 1 0-1 0v3a.5.5 0 0 0 1 0v-3Zm.25-2a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1ZM2 8a6 6 0 1 1 12 0A6 6 0 0 1 2 8Z"]),d3e=Qr("Open20Regular","20",["M6 4a2 2 0 0 0-2 2v8c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2v-2.5a.5.5 0 0 1 1 0V14a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h2.5a.5.5 0 0 1 0 1H6Zm5-.5c0-.28.22-.5.5-.5h5c.28 0 .5.22.5.5v5a.5.5 0 0 1-1 0V4.7l-4.15 4.15a.5.5 0 0 1-.7-.7L15.29 4H11.5a.5.5 0 0 1-.5-.5Z"]),h3e=Qr("PanelLeftContract20Regular","20",["M10.82 10.5h3.68a.5.5 0 0 0 0-1h-3.68l1-.87a.5.5 0 1 0-.66-.76l-2 1.75a.5.5 0 0 0 0 .76l2 1.75a.5.5 0 1 0 .66-.76l-1-.87ZM4 4a2 2 0 0 0-2 2v8c0 1.1.9 2 2 2h12a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H4ZM3 6a1 1 0 0 1 1-1h3v10H4a1 1 0 0 1-1-1V6Zm5 9V5h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H8Z"]),p3e=Qr("PanelRightContract20Regular","20",["m9.18 10.5-1 .87a.5.5 0 1 0 .66.76l2-1.75a.5.5 0 0 0 0-.76l-2-1.75a.5.5 0 1 0-.66.76l1 .87H5.5a.5.5 0 0 0 0 1h3.68ZM16 16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v8c0 1.1.9 2 2 2h12Zm1-2a1 1 0 0 1-1 1h-3V5h3a1 1 0 0 1 1 1v8Zm-5-9v10H4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h8Z"]),g3e=Qr("Send16Filled","16",["M1.72 1.05a.5.5 0 0 0-.71.55l1.4 4.85c.06.18.21.32.4.35l5.69.95c.27.06.27.44 0 .5l-5.69.95a.5.5 0 0 0-.4.35l-1.4 4.85a.5.5 0 0 0 .71.55l13-6.5a.5.5 0 0 0 0-.9l-13-6.5Z"],{flipInRtl:!0}),v3e=Qr("Warning12Filled","12",["M5.21 1.46a.9.9 0 0 1 1.58 0l4.09 7.17a.92.92 0 0 1-.79 1.37H1.91a.92.92 0 0 1-.79-1.37l4.1-7.17ZM5.5 4.5v1a.5.5 0 0 0 1 0v-1a.5.5 0 0 0-1 0ZM6 6.75a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"]),Iae=Qr("ZoomIn20Regular","20",["M11.5 8.5A.5.5 0 0 0 11 8H9V6a.5.5 0 0 0-1 0v2H6a.5.5 0 0 0 0 1h2v2a.5.5 0 0 0 1 0V9h2a.5.5 0 0 0 .5-.5ZM8.5 3a5.5 5.5 0 0 1 4.23 9.02l4.12 4.13a.5.5 0 0 1-.63.76l-.07-.06-4.13-4.12A5.5 5.5 0 1 1 8.5 3Zm0 1a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Z"]),m3e=(e,t)=>nt(CDe,{value:t.provider,children:nt(EDe,{value:t.theme,children:nt(wDe,{value:t.themeClassName,children:nt(ODe,{value:t.customStyleHooks_unstable,children:nt(xDe,{value:t.tooltip,children:nt(j4e,{dir:t.textDirection,children:nt(GDe,{value:t.iconDirection,children:nt(NDe,{value:t.overrides_unstable,children:Vn(e.root,{children:[U_()?null:nt("style",{dangerouslySetInnerHTML:{__html:e.serverStyleProps.cssRule},...e.serverStyleProps.attributes}),e.root.children]})})})})})})})})});/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */const f3e=typeof WeakRef<"u";class Sae{constructor(t){f3e&&typeof t=="object"?this._weakRef=new WeakRef(t):this._instance=t}deref(){var t,r,n;let o;return this._weakRef?(o=(t=this._weakRef)===null||t===void 0?void 0:t.deref(),o||delete this._weakRef):(o=this._instance,!((n=(r=o)===null||r===void 0?void 0:r.isDisposed)===null||n===void 0)&&n.call(r)&&delete this._instance),o}}/*! + */const y3e=typeof WeakRef<"u";class Cae{constructor(t){y3e&&typeof t=="object"?this._weakRef=new WeakRef(t):this._instance=t}deref(){var t,r,n;let o;return this._weakRef?(o=(t=this._weakRef)===null||t===void 0?void 0:t.deref(),o||delete this._weakRef):(o=this._instance,!((n=(r=o)===null||r===void 0?void 0:r.isDisposed)===null||n===void 0)&&n.call(r)&&delete this._instance),o}}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */const Sf="keyborg:focusin";function d3e(e){const t=e.HTMLElement,r=t.prototype.focus;let n=!1;return t.prototype.focus=function(){n=!0},e.document.createElement("button").focus(),t.prototype.focus=r,n}let J2=!1;function wf(e){const t=e.focus;t.__keyborgNativeFocus?t.__keyborgNativeFocus.call(e):e.focus()}function h3e(e){const t=e;J2||(J2=d3e(t));const r=t.HTMLElement.prototype.focus;if(r.__keyborgNativeFocus)return;t.HTMLElement.prototype.focus=s;const n=a=>{const u=a.relatedTarget,l=a.currentTarget;l.contains(u)||(l.removeEventListener("focusin",o),l.removeEventListener("focusout",n))},o=a=>{var u;let l=a.target;if(!l)return;l.shadowRoot&&(l.shadowRoot.addEventListener("focusin",o),l.shadowRoot.addEventListener("focusout",n),l=a.composedPath()[0]);const c={relatedTarget:a.relatedTarget||void 0},f=new CustomEvent(Sf,{cancelable:!0,bubbles:!0,composed:!0,detail:c});f.details=c,(J2||i.lastFocusedProgrammatically)&&(c.isFocusedProgrammatically=l===((u=i.lastFocusedProgrammatically)===null||u===void 0?void 0:u.deref()),i.lastFocusedProgrammatically=void 0),l.dispatchEvent(f)},i=t.__keyborgData={focusInHandler:o};t.document.addEventListener("focusin",t.__keyborgData.focusInHandler,!0);function s(){const a=t.__keyborgData;return a&&(a.lastFocusedProgrammatically=new Sae(this)),r.apply(this,arguments)}s.__keyborgNativeFocus=r}function p3e(e){const t=e,r=t.HTMLElement.prototype,n=r.focus.__keyborgNativeFocus,o=t.__keyborgData;o&&(t.document.removeEventListener("focusin",o.focusInHandler,!0),delete t.__keyborgData),n&&(r.focus=n)}/*! + */const wf="keyborg:focusin";function b3e(e){const t=e.HTMLElement,r=t.prototype.focus;let n=!1;return t.prototype.focus=function(){n=!0},e.document.createElement("button").focus(),t.prototype.focus=r,n}let nC=!1;function Af(e){const t=e.focus;t.__keyborgNativeFocus?t.__keyborgNativeFocus.call(e):e.focus()}function _3e(e){const t=e;nC||(nC=b3e(t));const r=t.HTMLElement.prototype.focus;if(r.__keyborgNativeFocus)return;t.HTMLElement.prototype.focus=s;const n=a=>{const u=a.relatedTarget,l=a.currentTarget;l.contains(u)||(l.removeEventListener("focusin",o),l.removeEventListener("focusout",n))},o=a=>{var u;let l=a.target;if(!l)return;l.shadowRoot&&(l.shadowRoot.addEventListener("focusin",o),l.shadowRoot.addEventListener("focusout",n),l=a.composedPath()[0]);const c={relatedTarget:a.relatedTarget||void 0},f=new CustomEvent(wf,{cancelable:!0,bubbles:!0,composed:!0,detail:c});f.details=c,(nC||i.lastFocusedProgrammatically)&&(c.isFocusedProgrammatically=l===((u=i.lastFocusedProgrammatically)===null||u===void 0?void 0:u.deref()),i.lastFocusedProgrammatically=void 0),l.dispatchEvent(f)},i=t.__keyborgData={focusInHandler:o};t.document.addEventListener("focusin",t.__keyborgData.focusInHandler,!0);function s(){const a=t.__keyborgData;return a&&(a.lastFocusedProgrammatically=new Cae(this)),r.apply(this,arguments)}s.__keyborgNativeFocus=r}function E3e(e){const t=e,r=t.HTMLElement.prototype,n=r.focus.__keyborgNativeFocus,o=t.__keyborgData;o&&(t.document.removeEventListener("focusin",o.focusInHandler,!0),delete t.__keyborgData),n&&(r.focus=n)}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */const g3e=500;let wae=0;class v3e{constructor(){this.__keyborgCoreRefs={},this._isNavigatingWithKeyboard=!1}add(t){const r=t.id;r in this.__keyborgCoreRefs||(this.__keyborgCoreRefs[r]=new Sae(t))}remove(t){delete this.__keyborgCoreRefs[t],Object.keys(this.__keyborgCoreRefs).length===0&&(this._isNavigatingWithKeyboard=!1)}setVal(t){if(this._isNavigatingWithKeyboard!==t){this._isNavigatingWithKeyboard=t;for(const r of Object.keys(this.__keyborgCoreRefs)){const o=this.__keyborgCoreRefs[r].deref();o?o.update(t):this.remove(r)}}}getVal(){return this._isNavigatingWithKeyboard}}const Rl=new v3e;class m3e{constructor(t,r){this._onFocusIn=o=>{if(this._isMouseUsedTimer||Rl.getVal())return;const i=o.detail;i.relatedTarget&&(i.isFocusedProgrammatically||i.isFocusedProgrammatically===void 0||Rl.setVal(!0))},this._onMouseDown=o=>{if(o.buttons===0||o.clientX===0&&o.clientY===0&&o.screenX===0&&o.screenY===0)return;const i=this._win;i&&(this._isMouseUsedTimer&&i.clearTimeout(this._isMouseUsedTimer),this._isMouseUsedTimer=i.setTimeout(()=>{delete this._isMouseUsedTimer},1e3)),Rl.setVal(!1)},this._onKeyDown=o=>{var i,s;const a=Rl.getVal(),u=o.keyCode,l=this._triggerKeys;if(!a&&(!l||l.has(u))){const c=(i=this._win)===null||i===void 0?void 0:i.document.activeElement;if(c&&(c.tagName==="INPUT"||c.tagName==="TEXTAREA"||c.contentEditable==="true"))return;Rl.setVal(!0)}else a&&(!((s=this._dismissKeys)===null||s===void 0)&&s.has(u))&&this._scheduleDismiss()},this.id="c"+ ++wae,this._win=t;const n=t.document;if(r){const o=r.triggerKeys,i=r.dismissKeys;o!=null&&o.length&&(this._triggerKeys=new Set(o)),i!=null&&i.length&&(this._dismissKeys=new Set(i))}n.addEventListener(Sf,this._onFocusIn,!0),n.addEventListener("mousedown",this._onMouseDown,!0),t.addEventListener("keydown",this._onKeyDown,!0),h3e(t),Rl.add(this)}dispose(){const t=this._win;if(t){this._isMouseUsedTimer&&(t.clearTimeout(this._isMouseUsedTimer),this._isMouseUsedTimer=void 0),this._dismissTimer&&(t.clearTimeout(this._dismissTimer),this._dismissTimer=void 0),p3e(t);const r=t.document;r.removeEventListener(Sf,this._onFocusIn,!0),r.removeEventListener("mousedown",this._onMouseDown,!0),t.removeEventListener("keydown",this._onKeyDown,!0),delete this._win,Rl.remove(this.id)}}isDisposed(){return!!this._win}update(t){var r,n;const o=(n=(r=this._win)===null||r===void 0?void 0:r.__keyborg)===null||n===void 0?void 0:n.refs;if(o)for(const i of Object.keys(o))G_.update(o[i],t)}_scheduleDismiss(){const t=this._win;if(t){this._dismissTimer&&(t.clearTimeout(this._dismissTimer),this._dismissTimer=void 0);const r=t.document.activeElement;this._dismissTimer=t.setTimeout(()=>{this._dismissTimer=void 0;const n=t.document.activeElement;r&&n&&r===n&&Rl.setVal(!1)},g3e)}}}class G_{constructor(t,r){this._cb=[],this._id="k"+ ++wae,this._win=t;const n=t.__keyborg;n?(this._core=n.core,n.refs[this._id]=this):(this._core=new m3e(t,r),t.__keyborg={core:this._core,refs:{[this._id]:this}})}static create(t,r){return new G_(t,r)}static dispose(t){t.dispose()}static update(t,r){t._cb.forEach(n=>n(r))}dispose(){var t;const r=(t=this._win)===null||t===void 0?void 0:t.__keyborg;r!=null&&r.refs[this._id]&&(delete r.refs[this._id],Object.keys(r.refs).length===0&&(r.core.dispose(),delete this._win.__keyborg)),this._cb=[],delete this._core,delete this._win}isNavigatingWithKeyboard(){return Rl.getVal()}subscribe(t){this._cb.push(t)}unsubscribe(t){const r=this._cb.indexOf(t);r>=0&&this._cb.splice(r,1)}setVal(t){Rl.setVal(t)}}function kae(e,t){return G_.create(e,t)}function Aae(e){G_.dispose(e)}/*! + */const S3e=500;let Nae=0;class w3e{constructor(){this.__keyborgCoreRefs={},this._isNavigatingWithKeyboard=!1}add(t){const r=t.id;r in this.__keyborgCoreRefs||(this.__keyborgCoreRefs[r]=new Cae(t))}remove(t){delete this.__keyborgCoreRefs[t],Object.keys(this.__keyborgCoreRefs).length===0&&(this._isNavigatingWithKeyboard=!1)}setVal(t){if(this._isNavigatingWithKeyboard!==t){this._isNavigatingWithKeyboard=t;for(const r of Object.keys(this.__keyborgCoreRefs)){const o=this.__keyborgCoreRefs[r].deref();o?o.update(t):this.remove(r)}}}getVal(){return this._isNavigatingWithKeyboard}}const Fl=new w3e;class A3e{constructor(t,r){this._onFocusIn=o=>{if(this._isMouseUsedTimer||Fl.getVal())return;const i=o.detail;i.relatedTarget&&(i.isFocusedProgrammatically||i.isFocusedProgrammatically===void 0||Fl.setVal(!0))},this._onMouseDown=o=>{if(o.buttons===0||o.clientX===0&&o.clientY===0&&o.screenX===0&&o.screenY===0)return;const i=this._win;i&&(this._isMouseUsedTimer&&i.clearTimeout(this._isMouseUsedTimer),this._isMouseUsedTimer=i.setTimeout(()=>{delete this._isMouseUsedTimer},1e3)),Fl.setVal(!1)},this._onKeyDown=o=>{var i,s;const a=Fl.getVal(),u=o.keyCode,l=this._triggerKeys;if(!a&&(!l||l.has(u))){const c=(i=this._win)===null||i===void 0?void 0:i.document.activeElement;if(c&&(c.tagName==="INPUT"||c.tagName==="TEXTAREA"||c.contentEditable==="true"))return;Fl.setVal(!0)}else a&&(!((s=this._dismissKeys)===null||s===void 0)&&s.has(u))&&this._scheduleDismiss()},this.id="c"+ ++Nae,this._win=t;const n=t.document;if(r){const o=r.triggerKeys,i=r.dismissKeys;o!=null&&o.length&&(this._triggerKeys=new Set(o)),i!=null&&i.length&&(this._dismissKeys=new Set(i))}n.addEventListener(wf,this._onFocusIn,!0),n.addEventListener("mousedown",this._onMouseDown,!0),t.addEventListener("keydown",this._onKeyDown,!0),_3e(t),Fl.add(this)}dispose(){const t=this._win;if(t){this._isMouseUsedTimer&&(t.clearTimeout(this._isMouseUsedTimer),this._isMouseUsedTimer=void 0),this._dismissTimer&&(t.clearTimeout(this._dismissTimer),this._dismissTimer=void 0),E3e(t);const r=t.document;r.removeEventListener(wf,this._onFocusIn,!0),r.removeEventListener("mousedown",this._onMouseDown,!0),t.removeEventListener("keydown",this._onKeyDown,!0),delete this._win,Fl.remove(this.id)}}isDisposed(){return!!this._win}update(t){var r,n;const o=(n=(r=this._win)===null||r===void 0?void 0:r.__keyborg)===null||n===void 0?void 0:n.refs;if(o)for(const i of Object.keys(o))Y_.update(o[i],t)}_scheduleDismiss(){const t=this._win;if(t){this._dismissTimer&&(t.clearTimeout(this._dismissTimer),this._dismissTimer=void 0);const r=t.document.activeElement;this._dismissTimer=t.setTimeout(()=>{this._dismissTimer=void 0;const n=t.document.activeElement;r&&n&&r===n&&Fl.setVal(!1)},S3e)}}}class Y_{constructor(t,r){this._cb=[],this._id="k"+ ++Nae,this._win=t;const n=t.__keyborg;n?(this._core=n.core,n.refs[this._id]=this):(this._core=new A3e(t,r),t.__keyborg={core:this._core,refs:{[this._id]:this}})}static create(t,r){return new Y_(t,r)}static dispose(t){t.dispose()}static update(t,r){t._cb.forEach(n=>n(r))}dispose(){var t;const r=(t=this._win)===null||t===void 0?void 0:t.__keyborg;r!=null&&r.refs[this._id]&&(delete r.refs[this._id],Object.keys(r.refs).length===0&&(r.core.dispose(),delete this._win.__keyborg)),this._cb=[],delete this._core,delete this._win}isNavigatingWithKeyboard(){return Fl.getVal()}subscribe(t){this._cb.push(t)}unsubscribe(t){const r=this._cb.indexOf(t);r>=0&&this._cb.splice(r,1)}setVal(t){Fl.setVal(t)}}function Rae(e,t){return Y_.create(e,t)}function Oae(e){Y_.dispose(e)}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */const df="data-tabster",Tae="data-tabster-dummy",y3e="tabster:deloser",xae="tabster:modalizer:active",Iae="tabster:modalizer:inactive",b3e="tabster:modalizer:focusin",_3e="tabster:modalizer:focusout",E3e="tabster:modalizer:beforefocusout",iB="tabster:mover",Nae="tabster:focusin",Cae="tabster:focusout",Rae="tabster:movefocus",c8=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","*[tabindex]","*[contenteditable]"].join(", "),S3e={Any:0,Accessible:1,Focusable:2},w3e={History:0,DeloserDefault:1,RootDefault:2,DeloserFirst:3,RootFirst:4},Uc={Invisible:0,PartiallyVisible:1,Visible:2},jb={Source:0,Target:1},th={Both:0,Vertical:1,Horizontal:2,Grid:3,GridLinear:4},k3e={Unlimited:0,Limited:1,LimitedTrapFocus:2},Oae={Auto:0,Inside:1,Outside:2};var lh=Object.freeze({__proto__:null,TabsterAttributeName:df,TabsterDummyInputAttributeName:Tae,DeloserEventName:y3e,ModalizerActiveEventName:xae,ModalizerInactiveEventName:Iae,ModalizerFocusInEventName:b3e,ModalizerFocusOutEventName:_3e,ModalizerBeforeFocusOutEventName:E3e,MoverEventName:iB,FocusInEventName:Nae,FocusOutEventName:Cae,MoveFocusEventName:Rae,FocusableSelector:c8,ObservedElementAccesibilities:S3e,RestoreFocusOrders:w3e,Visibilities:Uc,RestorerTypes:jb,MoverDirections:th,GroupperTabbabilities:k3e,SysDummyInputsPositions:Oae});/*! + */const hf="data-tabster",Dae="data-tabster-dummy",k3e="tabster:deloser",Fae="tabster:modalizer:active",Bae="tabster:modalizer:inactive",x3e="tabster:modalizer:focusin",T3e="tabster:modalizer:focusout",I3e="tabster:modalizer:beforefocusout",lB="tabster:mover",Mae="tabster:focusin",Lae="tabster:focusout",jae="tabster:movefocus",g8=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","*[tabindex]","*[contenteditable]"].join(", "),C3e={Any:0,Accessible:1,Focusable:2},N3e={History:0,DeloserDefault:1,RootDefault:2,DeloserFirst:3,RootFirst:4},Yc={Invisible:0,PartiallyVisible:1,Visible:2},$b={Source:0,Target:1},eh={Both:0,Vertical:1,Horizontal:2,Grid:3,GridLinear:4},R3e={Unlimited:0,Limited:1,LimitedTrapFocus:2},zae={Auto:0,Inside:1,Outside:2};var uh=Object.freeze({__proto__:null,TabsterAttributeName:hf,TabsterDummyInputAttributeName:Dae,DeloserEventName:k3e,ModalizerActiveEventName:Fae,ModalizerInactiveEventName:Bae,ModalizerFocusInEventName:x3e,ModalizerFocusOutEventName:T3e,ModalizerBeforeFocusOutEventName:I3e,MoverEventName:lB,FocusInEventName:Mae,FocusOutEventName:Lae,MoveFocusEventName:jae,FocusableSelector:g8,ObservedElementAccesibilities:C3e,RestoreFocusOrders:N3e,Visibilities:Yc,RestorerTypes:$b,MoverDirections:eh,GroupperTabbabilities:R3e,SysDummyInputsPositions:zae});/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */function ha(e,t){var r;return(r=e.storageEntry(t))===null||r===void 0?void 0:r.tabster}function Dae(e,t,r){var n,o;const i=r||e._noop?void 0:t.getAttribute(df);let s=e.storageEntry(t),a;if(i)if(i!==((n=s==null?void 0:s.attr)===null||n===void 0?void 0:n.string))try{const f=JSON.parse(i);if(typeof f!="object")throw new Error(`Value is not a JSON object, got '${i}'.`);a={string:i,object:f}}catch{}else return;else if(!s)return;s||(s=e.storageEntry(t,!0)),s.tabster||(s.tabster={});const u=s.tabster||{},l=((o=s.attr)===null||o===void 0?void 0:o.object)||{},c=(a==null?void 0:a.object)||{};for(const f of Object.keys(l))if(!c[f]){if(f==="root"){const d=u[f];d&&e.root.onRoot(d,!0)}switch(f){case"deloser":case"root":case"groupper":case"modalizer":case"restorer":case"mover":const d=u[f];d&&(d.dispose(),delete u[f]);break;case"observed":delete u[f],e.observedElement&&e.observedElement.onObservedElementUpdate(t);break;case"focusable":case"outline":case"uncontrolled":case"sys":delete u[f];break}}for(const f of Object.keys(c)){const d=c.sys;switch(f){case"deloser":u.deloser?u.deloser.setProps(c.deloser):e.deloser&&(u.deloser=e.deloser.createDeloser(t,c.deloser));break;case"root":u.root?u.root.setProps(c.root):u.root=e.root.createRoot(t,c.root,d),e.root.onRoot(u.root);break;case"modalizer":u.modalizer?u.modalizer.setProps(c.modalizer):e.modalizer&&(u.modalizer=e.modalizer.createModalizer(t,c.modalizer,d));break;case"restorer":u.restorer?u.restorer.setProps(c.restorer):e.restorer&&c.restorer&&(u.restorer=e.restorer.createRestorer(t,c.restorer));break;case"focusable":u.focusable=c.focusable;break;case"groupper":u.groupper?u.groupper.setProps(c.groupper):e.groupper&&(u.groupper=e.groupper.createGroupper(t,c.groupper,d));break;case"mover":u.mover?u.mover.setProps(c.mover):e.mover&&(u.mover=e.mover.createMover(t,c.mover,d));break;case"observed":e.observedElement&&(u.observed=c.observed,e.observedElement.onObservedElementUpdate(t));break;case"uncontrolled":u.uncontrolled=c.uncontrolled;break;case"outline":e.outline&&(u.outline=c.outline);break;case"sys":u.sys=c.sys;break;default:console.error(`Unknown key '${f}' in data-tabster attribute value.`)}}a?s.attr=a:(Object.keys(u).length===0&&(delete s.tabster,delete s.attr),e.storageEntry(t,!1))}/*! + */function pa(e,t){var r;return(r=e.storageEntry(t))===null||r===void 0?void 0:r.tabster}function Hae(e,t,r){var n,o;const i=r||e._noop?void 0:t.getAttribute(hf);let s=e.storageEntry(t),a;if(i)if(i!==((n=s==null?void 0:s.attr)===null||n===void 0?void 0:n.string))try{const f=JSON.parse(i);if(typeof f!="object")throw new Error(`Value is not a JSON object, got '${i}'.`);a={string:i,object:f}}catch{}else return;else if(!s)return;s||(s=e.storageEntry(t,!0)),s.tabster||(s.tabster={});const u=s.tabster||{},l=((o=s.attr)===null||o===void 0?void 0:o.object)||{},c=(a==null?void 0:a.object)||{};for(const f of Object.keys(l))if(!c[f]){if(f==="root"){const d=u[f];d&&e.root.onRoot(d,!0)}switch(f){case"deloser":case"root":case"groupper":case"modalizer":case"restorer":case"mover":const d=u[f];d&&(d.dispose(),delete u[f]);break;case"observed":delete u[f],e.observedElement&&e.observedElement.onObservedElementUpdate(t);break;case"focusable":case"outline":case"uncontrolled":case"sys":delete u[f];break}}for(const f of Object.keys(c)){const d=c.sys;switch(f){case"deloser":u.deloser?u.deloser.setProps(c.deloser):e.deloser&&(u.deloser=e.deloser.createDeloser(t,c.deloser));break;case"root":u.root?u.root.setProps(c.root):u.root=e.root.createRoot(t,c.root,d),e.root.onRoot(u.root);break;case"modalizer":u.modalizer?u.modalizer.setProps(c.modalizer):e.modalizer&&(u.modalizer=e.modalizer.createModalizer(t,c.modalizer,d));break;case"restorer":u.restorer?u.restorer.setProps(c.restorer):e.restorer&&c.restorer&&(u.restorer=e.restorer.createRestorer(t,c.restorer));break;case"focusable":u.focusable=c.focusable;break;case"groupper":u.groupper?u.groupper.setProps(c.groupper):e.groupper&&(u.groupper=e.groupper.createGroupper(t,c.groupper,d));break;case"mover":u.mover?u.mover.setProps(c.mover):e.mover&&(u.mover=e.mover.createMover(t,c.mover,d));break;case"observed":e.observedElement&&(u.observed=c.observed,e.observedElement.onObservedElementUpdate(t));break;case"uncontrolled":u.uncontrolled=c.uncontrolled;break;case"outline":e.outline&&(u.outline=c.outline);break;case"sys":u.sys=c.sys;break;default:console.error(`Unknown key '${f}' in data-tabster attribute value.`)}}a?s.attr=a:(Object.keys(u).length===0&&(delete s.tabster,delete s.attr),e.storageEntry(t,!1))}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */function A3e(e){const t=e();try{if(t.EventTarget)return new t.EventTarget}catch(r){if(!(r instanceof TypeError))throw r}return t.document.createElement("div")}/*! + */function O3e(e){const t=e();try{if(t.EventTarget)return new t.EventTarget}catch(r){if(!(r instanceof TypeError))throw r}return t.document.createElement("div")}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */let sB;const ZW=typeof DOMRect<"u"?DOMRect:class{constructor(e,t,r,n){this.left=e||0,this.top=t||0,this.right=(e||0)+(r||0),this.bottom=(t||0)+(n||0)}};let T3e=0;try{document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT),sB=!1}catch{sB=!0}const eN=100;function jf(e){const t=e();let r=t.__tabsterInstanceContext;return r||(r={elementByUId:{},basics:{Promise:t.Promise||void 0,WeakRef:t.WeakRef||void 0},containerBoundingRectCache:{},lastContainerBoundingRectCacheId:0,fakeWeakRefs:[],fakeWeakRefsStarted:!1},t.__tabsterInstanceContext=r),r}function x3e(e){const t=e.__tabsterInstanceContext;t&&(t.elementByUId={},delete t.WeakRef,t.containerBoundingRectCache={},t.containerBoundingRectCacheTimer&&e.clearTimeout(t.containerBoundingRectCacheTimer),t.fakeWeakRefsTimer&&e.clearTimeout(t.fakeWeakRefsTimer),t.fakeWeakRefs=[],delete e.__tabsterInstanceContext)}function I3e(e){const t=e.__tabsterInstanceContext;return new((t==null?void 0:t.basics.WeakMap)||WeakMap)}function N3e(e){return!!e.querySelector(c8)}class Fae{constructor(t){this._target=t}deref(){return this._target}static cleanup(t,r){return t._target?r||!d8(t._target.ownerDocument,t._target)?(delete t._target,!0):!1:!0}}class cu{constructor(t,r,n){const o=jf(t);let i;o.WeakRef?i=new o.WeakRef(r):(i=new Fae(r),o.fakeWeakRefs.push(i)),this._ref=i,this._data=n}get(){const t=this._ref;let r;return t&&(r=t.deref(),r||delete this._ref),r}getData(){return this._data}}function Bae(e,t){const r=jf(e);r.fakeWeakRefs=r.fakeWeakRefs.filter(n=>!Fae.cleanup(n,t))}function Mae(e){const t=jf(e);t.fakeWeakRefsStarted||(t.fakeWeakRefsStarted=!0,t.WeakRef=B3e(t)),t.fakeWeakRefsTimer||(t.fakeWeakRefsTimer=e().setTimeout(()=>{t.fakeWeakRefsTimer=void 0,Bae(e),Mae(e)},2*60*1e3))}function C3e(e){const t=jf(e);t.fakeWeakRefsStarted=!1,t.fakeWeakRefsTimer&&(e().clearTimeout(t.fakeWeakRefsTimer),t.fakeWeakRefsTimer=void 0,t.fakeWeakRefs=[])}function f8(e,t,r){if(t.nodeType!==Node.ELEMENT_NODE)return;const n=sB?r:{acceptNode:r};return e.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,n,!1)}function Lae(e,t){let r=t.__tabsterCacheId;const n=jf(e),o=r?n.containerBoundingRectCache[r]:void 0;if(o)return o.rect;const i=t.ownerDocument&&t.ownerDocument.documentElement;if(!i)return new ZW;let s=0,a=0,u=i.clientWidth,l=i.clientHeight;if(t!==i){const f=t.getBoundingClientRect();s=Math.max(s,f.left),a=Math.max(a,f.top),u=Math.min(u,f.right),l=Math.min(l,f.bottom)}const c=new ZW(s{n.containerBoundingRectCacheTimer=void 0;for(const f of Object.keys(n.containerBoundingRectCache))delete n.containerBoundingRectCache[f].element.__tabsterCacheId;n.containerBoundingRectCache={}},50)),c}function JW(e,t,r){const n=jae(t);if(!n)return!1;const o=Lae(e,n),i=t.getBoundingClientRect(),s=i.height*(1-r),a=Math.max(0,o.top-i.top),u=Math.max(0,i.bottom-o.bottom),l=a+u;return l===0||l<=s}function R3e(e,t,r){const n=jae(t);if(n){const o=Lae(e,n),i=t.getBoundingClientRect();r?n.scrollTop+=i.top-o.top:n.scrollTop+=i.bottom-o.bottom}}function jae(e){const t=e.ownerDocument;if(t){for(let r=e.parentElement;r;r=r.parentElement)if(r.scrollWidth>r.clientWidth||r.scrollHeight>r.clientHeight)return r;return t.documentElement}return null}function O3e(e){e.__shouldIgnoreFocus=!0}function zae(e){return!!e.__shouldIgnoreFocus}function D3e(e){const t=new Uint32Array(4);if(e.crypto&&e.crypto.getRandomValues)e.crypto.getRandomValues(t);else if(e.msCrypto&&e.msCrypto.getRandomValues)e.msCrypto.getRandomValues(t);else for(let n=0;n{if(this._fixedTarget){const d=this._fixedTarget.get();d&&wf(d);return}const f=this.input;if(this.onFocusIn&&f){const d=c.relatedTarget;this.onFocusIn(this,this._isBackward(!0,f,d),d)}},this._focusOut=c=>{if(this._fixedTarget)return;this.useDefaultAction=!1;const f=this.input;if(this.onFocusOut&&f){const d=c.relatedTarget;this.onFocusOut(this,this._isBackward(!1,f,d),d)}};const a=t(),u=a.document.createElement("i");u.tabIndex=0,u.setAttribute("role","none"),u.setAttribute(Tae,""),u.setAttribute("aria-hidden","true");const l=u.style;l.position="fixed",l.width=l.height="1px",l.opacity="0.001",l.zIndex="-1",l.setProperty("content-visibility","hidden"),O3e(u),this.input=u,this.isFirst=n.isFirst,this.isOutside=r,this._isPhantom=(s=n.isPhantom)!==null&&s!==void 0?s:!1,this._fixedTarget=i,u.addEventListener("focusin",this._focusIn),u.addEventListener("focusout",this._focusOut),u.__tabsterDummyContainer=o,this._isPhantom&&(this._disposeTimer=a.setTimeout(()=>{delete this._disposeTimer,this.dispose()},0),this._clearDisposeTimeout=()=>{this._disposeTimer&&(a.clearTimeout(this._disposeTimer),delete this._disposeTimer),delete this._clearDisposeTimeout})}dispose(){var t;this._clearDisposeTimeout&&this._clearDisposeTimeout();const r=this.input;r&&(delete this._fixedTarget,delete this.onFocusIn,delete this.onFocusOut,delete this.input,r.removeEventListener("focusin",this._focusIn),r.removeEventListener("focusout",this._focusOut),delete r.__tabsterDummyContainer,(t=r.parentElement)===null||t===void 0||t.removeChild(r))}setTopLeft(t,r){var n;const o=(n=this.input)===null||n===void 0?void 0:n.style;o&&(o.top=`${t}px`,o.left=`${r}px`)}_isBackward(t,r,n){return t&&!n?!this.isFirst:!!(n&&r.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING)}}const h8={Root:1,Modalizer:2,Mover:3,Groupper:4};class zb{constructor(t,r,n,o,i,s){this._element=r,this._instance=new j3e(t,r,this,n,o,i,s)}_setHandlers(t,r){this._onFocusIn=t,this._onFocusOut=r}moveOut(t){var r;(r=this._instance)===null||r===void 0||r.moveOut(t)}moveOutWithDefaultAction(t,r){var n;(n=this._instance)===null||n===void 0||n.moveOutWithDefaultAction(t,r)}getHandler(t){return t?this._onFocusIn:this._onFocusOut}setTabbable(t){var r;(r=this._instance)===null||r===void 0||r.setTabbable(this,t)}dispose(){this._instance&&(this._instance.dispose(this),delete this._instance),delete this._onFocusIn,delete this._onFocusOut}static moveWithPhantomDummy(t,r,n,o,i){var s;const u=new DA(t.getWindow,!0,{isPhantom:!0,isFirst:!0}).input;if(u){let l,c;if(r.tagName==="BODY")l=r,c=n&&o||!n&&!o?r.firstElementChild:null;else{n&&(!o||o&&!t.focusable.isFocusable(r,!1,!0,!0))?(l=r,c=o?r.firstElementChild:null):(l=r.parentElement,c=n&&o||!n&&!o?r:r.nextElementSibling);let f,d;do f=n&&o||!n&&!o?c==null?void 0:c.previousElementSibling:c,d=(s=f==null?void 0:f.__tabsterDummyContainer)===null||s===void 0?void 0:s.get(),d===r?c=n&&o||!n&&!o?f:f==null?void 0:f.nextElementSibling:d=void 0;while(d)}l&&og({by:"root",owner:l,next:null,relatedEvent:i})&&(l.insertBefore(u,c),wf(u))}}static addPhantomDummyWithTarget(t,r,n,o){const s=new DA(t.getWindow,!0,{isPhantom:!0,isFirst:!0},void 0,new cu(t.getWindow,o)).input;if(s){let a,u;N3e(r)&&!n?(a=r,u=r.firstElementChild):(a=r.parentElement,u=n?r:r.nextElementSibling),a==null||a.insertBefore(s,u)}}}class L3e{constructor(t){this._updateQueue=new Set,this._lastUpdateQueueTime=0,this._changedParents=new WeakSet,this._dummyElements=[],this._dummyCallbacks=new WeakMap,this._domChanged=r=>{var n;this._changedParents.has(r)||(this._changedParents.add(r),!this._updateDummyInputsTimer&&(this._updateDummyInputsTimer=(n=this._win)===null||n===void 0?void 0:n.call(this).setTimeout(()=>{delete this._updateDummyInputsTimer;for(const o of this._dummyElements){const i=o.get();if(i){const s=this._dummyCallbacks.get(i);if(s){const a=i.parentElement;(!a||this._changedParents.has(a))&&s()}}}this._changedParents=new WeakSet},eN)))},this._win=t}add(t,r){!this._dummyCallbacks.has(t)&&this._win&&(this._dummyElements.push(new cu(this._win,t)),this._dummyCallbacks.set(t,r),this.domChanged=this._domChanged)}remove(t){this._dummyElements=this._dummyElements.filter(r=>{const n=r.get();return n&&n!==t}),this._dummyCallbacks.delete(t),this._dummyElements.length===0&&delete this.domChanged}dispose(){var t;const r=(t=this._win)===null||t===void 0?void 0:t.call(this);this._updateTimer&&(r==null||r.clearTimeout(this._updateTimer),delete this._updateTimer),this._updateDummyInputsTimer&&(r==null||r.clearTimeout(this._updateDummyInputsTimer),delete this._updateDummyInputsTimer),this._changedParents=new WeakSet,this._dummyCallbacks=new WeakMap,this._dummyElements=[],this._updateQueue.clear(),delete this.domChanged,delete this._win}updatePositions(t){this._win&&(this._updateQueue.add(t),this._lastUpdateQueueTime=Date.now(),this._scheduledUpdatePositions())}_scheduledUpdatePositions(){var t;this._updateTimer||(this._updateTimer=(t=this._win)===null||t===void 0?void 0:t.call(this).setTimeout(()=>{if(delete this._updateTimer,this._lastUpdateQueueTime+eN<=Date.now()){const r=new Map,n=[];for(const o of this._updateQueue)n.push(o(r));this._updateQueue.clear();for(const o of n)o();r.clear()}else this._scheduledUpdatePositions()},eN))}}class j3e{constructor(t,r,n,o,i,s,a){this._wrappers=[],this._isOutside=!1,this._transformElements=new Set,this._onFocusIn=(h,g,v)=>{this._onFocus(!0,h,g,v)},this._onFocusOut=(h,g,v)=>{this._onFocus(!1,h,g,v)},this.moveOut=h=>{var g;const v=this._firstDummy,y=this._lastDummy;if(v&&y){this._ensurePosition();const E=v.input,_=y.input,S=(g=this._element)===null||g===void 0?void 0:g.get();if(E&&_&&S){let b;h?(E.tabIndex=0,b=E):(_.tabIndex=0,b=_),b&&wf(b)}}},this.moveOutWithDefaultAction=(h,g)=>{var v;const y=this._firstDummy,E=this._lastDummy;if(y&&E){this._ensurePosition();const _=y.input,S=E.input,b=(v=this._element)===null||v===void 0?void 0:v.get();if(_&&S&&b){let A;h?!y.isOutside&&this._tabster.focusable.isFocusable(b,!0,!0,!0)?A=b:(y.useDefaultAction=!0,_.tabIndex=0,A=_):(E.useDefaultAction=!0,S.tabIndex=0,A=S),A&&og({by:"root",owner:b,next:null,relatedEvent:g})&&wf(A)}}},this.setTabbable=(h,g)=>{var v,y;for(const _ of this._wrappers)if(_.manager===h){_.tabbable=g;break}const E=this._getCurrent();if(E){const _=E.tabbable?0:-1;let S=(v=this._firstDummy)===null||v===void 0?void 0:v.input;S&&(S.tabIndex=_),S=(y=this._lastDummy)===null||y===void 0?void 0:y.input,S&&(S.tabIndex=_)}},this._addDummyInputs=()=>{this._addTimer||(this._addTimer=this._getWindow().setTimeout(()=>{delete this._addTimer,this._ensurePosition(),this._addTransformOffsets()},0))},this._addTransformOffsets=()=>{this._tabster._dummyObserver.updatePositions(this._computeTransformOffsets)},this._computeTransformOffsets=h=>{var g,v;const y=((g=this._firstDummy)===null||g===void 0?void 0:g.input)||((v=this._lastDummy)===null||v===void 0?void 0:v.input),E=this._transformElements,_=new Set;let S=0,b=0;const A=this._getWindow();for(let x=y;x&&x.nodeType===Node.ELEMENT_NODE;x=x.parentElement){let T=h.get(x);if(T===void 0){const N=A.getComputedStyle(x).transform;N&&N!=="none"&&(T={scrollTop:x.scrollTop,scrollLeft:x.scrollLeft}),h.set(x,T||null)}T&&(_.add(x),E.has(x)||x.addEventListener("scroll",this._addTransformOffsets),S+=T.scrollTop,b+=T.scrollLeft)}for(const x of E)_.has(x)||x.removeEventListener("scroll",this._addTransformOffsets);return this._transformElements=_,()=>{var x,T;(x=this._firstDummy)===null||x===void 0||x.setTopLeft(S,b),(T=this._lastDummy)===null||T===void 0||T.setTopLeft(S,b)}};const u=r.get();if(!u)throw new Error("No element");this._tabster=t,this._getWindow=t.getWindow,this._callForDefaultAction=a;const l=u.__tabsterDummy;if((l||this)._wrappers.push({manager:n,priority:o,tabbable:!0}),l)return l;u.__tabsterDummy=this;const c=i==null?void 0:i.dummyInputsPosition,f=u.tagName;this._isOutside=c?c===Oae.Outside:(s||f==="UL"||f==="OL"||f==="TABLE")&&!(f==="LI"||f==="TD"||f==="TH"),this._firstDummy=new DA(this._getWindow,this._isOutside,{isFirst:!0},r),this._lastDummy=new DA(this._getWindow,this._isOutside,{isFirst:!1},r);const d=this._firstDummy.input;d&&t._dummyObserver.add(d,this._addDummyInputs),this._firstDummy.onFocusIn=this._onFocusIn,this._firstDummy.onFocusOut=this._onFocusOut,this._lastDummy.onFocusIn=this._onFocusIn,this._lastDummy.onFocusOut=this._onFocusOut,this._element=r,this._addDummyInputs()}dispose(t,r){var n,o,i,s;if((this._wrappers=this._wrappers.filter(u=>u.manager!==t&&!r)).length===0){delete((n=this._element)===null||n===void 0?void 0:n.get()).__tabsterDummy;for(const c of this._transformElements)c.removeEventListener("scroll",this._addTransformOffsets);this._transformElements.clear();const u=this._getWindow();this._addTimer&&(u.clearTimeout(this._addTimer),delete this._addTimer);const l=(o=this._firstDummy)===null||o===void 0?void 0:o.input;l&&this._tabster._dummyObserver.remove(l),(i=this._firstDummy)===null||i===void 0||i.dispose(),(s=this._lastDummy)===null||s===void 0||s.dispose()}}_onFocus(t,r,n,o){var i;const s=this._getCurrent();s&&(!r.useDefaultAction||this._callForDefaultAction)&&((i=s.manager.getHandler(t))===null||i===void 0||i(r,n,o))}_getCurrent(){return this._wrappers.sort((t,r)=>t.tabbable!==r.tabbable?t.tabbable?-1:1:t.priority-r.priority),this._wrappers[0]}_ensurePosition(){var t,r,n;const o=(t=this._element)===null||t===void 0?void 0:t.get(),i=(r=this._firstDummy)===null||r===void 0?void 0:r.input,s=(n=this._lastDummy)===null||n===void 0?void 0:n.input;if(!(!o||!i||!s))if(this._isOutside){const a=o.parentElement;if(a){const u=o.nextElementSibling;u!==s&&a.insertBefore(s,u),o.previousElementSibling!==i&&a.insertBefore(i,o)}}else{o.lastElementChild!==s&&o.appendChild(s);const a=o.firstElementChild;a&&a!==i&&o.insertBefore(i,a)}}}function $ae(e){let t=null;for(let r=e.lastElementChild;r;r=r.lastElementChild)t=r;return t||void 0}function c1(e,t,r){const n=document.createEvent("HTMLEvents");return n.initEvent(t,!0,!0),n.details=r,e.dispatchEvent(n),!n.defaultPrevented}function og(e){return c1(e.owner,Rae,e)}function tN(e,t,r,n){const o=e.storageEntry(t,!0);let i=!1;if(!o.aug){if(n===void 0)return i;o.aug={}}if(n===void 0){if(r in o.aug){const s=o.aug[r];delete o.aug[r],s===null?t.removeAttribute(r):t.setAttribute(r,s),i=!0}}else{let s;r in o.aug||(s=t.getAttribute(r)),s!==void 0&&s!==n&&(o.aug[r]=s,n===null?t.removeAttribute(r):t.setAttribute(r,n),i=!0)}return n===void 0&&Object.keys(o.aug).length===0&&(delete o.aug,e.storageEntry(t,!1)),i}/*! + */let cB;const sK=typeof DOMRect<"u"?DOMRect:class{constructor(e,t,r,n){this.left=e||0,this.top=t||0,this.right=(e||0)+(r||0),this.bottom=(t||0)+(n||0)}};let D3e=0;try{document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT),cB=!1}catch{cB=!0}const oC=100;function zf(e){const t=e();let r=t.__tabsterInstanceContext;return r||(r={elementByUId:{},basics:{Promise:t.Promise||void 0,WeakRef:t.WeakRef||void 0},containerBoundingRectCache:{},lastContainerBoundingRectCacheId:0,fakeWeakRefs:[],fakeWeakRefsStarted:!1},t.__tabsterInstanceContext=r),r}function F3e(e){const t=e.__tabsterInstanceContext;t&&(t.elementByUId={},delete t.WeakRef,t.containerBoundingRectCache={},t.containerBoundingRectCacheTimer&&e.clearTimeout(t.containerBoundingRectCacheTimer),t.fakeWeakRefsTimer&&e.clearTimeout(t.fakeWeakRefsTimer),t.fakeWeakRefs=[],delete e.__tabsterInstanceContext)}function B3e(e){const t=e.__tabsterInstanceContext;return new((t==null?void 0:t.basics.WeakMap)||WeakMap)}function M3e(e){return!!e.querySelector(g8)}class $ae{constructor(t){this._target=t}deref(){return this._target}static cleanup(t,r){return t._target?r||!m8(t._target.ownerDocument,t._target)?(delete t._target,!0):!1:!0}}class cu{constructor(t,r,n){const o=zf(t);let i;o.WeakRef?i=new o.WeakRef(r):(i=new $ae(r),o.fakeWeakRefs.push(i)),this._ref=i,this._data=n}get(){const t=this._ref;let r;return t&&(r=t.deref(),r||delete this._ref),r}getData(){return this._data}}function Pae(e,t){const r=zf(e);r.fakeWeakRefs=r.fakeWeakRefs.filter(n=>!$ae.cleanup(n,t))}function qae(e){const t=zf(e);t.fakeWeakRefsStarted||(t.fakeWeakRefsStarted=!0,t.WeakRef=P3e(t)),t.fakeWeakRefsTimer||(t.fakeWeakRefsTimer=e().setTimeout(()=>{t.fakeWeakRefsTimer=void 0,Pae(e),qae(e)},2*60*1e3))}function L3e(e){const t=zf(e);t.fakeWeakRefsStarted=!1,t.fakeWeakRefsTimer&&(e().clearTimeout(t.fakeWeakRefsTimer),t.fakeWeakRefsTimer=void 0,t.fakeWeakRefs=[])}function v8(e,t,r){if(t.nodeType!==Node.ELEMENT_NODE)return;const n=cB?r:{acceptNode:r};return e.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,n,!1)}function Wae(e,t){let r=t.__tabsterCacheId;const n=zf(e),o=r?n.containerBoundingRectCache[r]:void 0;if(o)return o.rect;const i=t.ownerDocument&&t.ownerDocument.documentElement;if(!i)return new sK;let s=0,a=0,u=i.clientWidth,l=i.clientHeight;if(t!==i){const f=t.getBoundingClientRect();s=Math.max(s,f.left),a=Math.max(a,f.top),u=Math.min(u,f.right),l=Math.min(l,f.bottom)}const c=new sK(s{n.containerBoundingRectCacheTimer=void 0;for(const f of Object.keys(n.containerBoundingRectCache))delete n.containerBoundingRectCache[f].element.__tabsterCacheId;n.containerBoundingRectCache={}},50)),c}function aK(e,t,r){const n=Kae(t);if(!n)return!1;const o=Wae(e,n),i=t.getBoundingClientRect(),s=i.height*(1-r),a=Math.max(0,o.top-i.top),u=Math.max(0,i.bottom-o.bottom),l=a+u;return l===0||l<=s}function j3e(e,t,r){const n=Kae(t);if(n){const o=Wae(e,n),i=t.getBoundingClientRect();r?n.scrollTop+=i.top-o.top:n.scrollTop+=i.bottom-o.bottom}}function Kae(e){const t=e.ownerDocument;if(t){for(let r=e.parentElement;r;r=r.parentElement)if(r.scrollWidth>r.clientWidth||r.scrollHeight>r.clientHeight)return r;return t.documentElement}return null}function z3e(e){e.__shouldIgnoreFocus=!0}function Gae(e){return!!e.__shouldIgnoreFocus}function H3e(e){const t=new Uint32Array(4);if(e.crypto&&e.crypto.getRandomValues)e.crypto.getRandomValues(t);else if(e.msCrypto&&e.msCrypto.getRandomValues)e.msCrypto.getRandomValues(t);else for(let n=0;n{if(this._fixedTarget){const d=this._fixedTarget.get();d&&Af(d);return}const f=this.input;if(this.onFocusIn&&f){const d=c.relatedTarget;this.onFocusIn(this,this._isBackward(!0,f,d),d)}},this._focusOut=c=>{if(this._fixedTarget)return;this.useDefaultAction=!1;const f=this.input;if(this.onFocusOut&&f){const d=c.relatedTarget;this.onFocusOut(this,this._isBackward(!1,f,d),d)}};const a=t(),u=a.document.createElement("i");u.tabIndex=0,u.setAttribute("role","none"),u.setAttribute(Dae,""),u.setAttribute("aria-hidden","true");const l=u.style;l.position="fixed",l.width=l.height="1px",l.opacity="0.001",l.zIndex="-1",l.setProperty("content-visibility","hidden"),z3e(u),this.input=u,this.isFirst=n.isFirst,this.isOutside=r,this._isPhantom=(s=n.isPhantom)!==null&&s!==void 0?s:!1,this._fixedTarget=i,u.addEventListener("focusin",this._focusIn),u.addEventListener("focusout",this._focusOut),u.__tabsterDummyContainer=o,this._isPhantom&&(this._disposeTimer=a.setTimeout(()=>{delete this._disposeTimer,this.dispose()},0),this._clearDisposeTimeout=()=>{this._disposeTimer&&(a.clearTimeout(this._disposeTimer),delete this._disposeTimer),delete this._clearDisposeTimeout})}dispose(){var t;this._clearDisposeTimeout&&this._clearDisposeTimeout();const r=this.input;r&&(delete this._fixedTarget,delete this.onFocusIn,delete this.onFocusOut,delete this.input,r.removeEventListener("focusin",this._focusIn),r.removeEventListener("focusout",this._focusOut),delete r.__tabsterDummyContainer,(t=r.parentElement)===null||t===void 0||t.removeChild(r))}setTopLeft(t,r){var n;const o=(n=this.input)===null||n===void 0?void 0:n.style;o&&(o.top=`${t}px`,o.left=`${r}px`)}_isBackward(t,r,n){return t&&!n?!this.isFirst:!!(n&&r.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING)}}const y8={Root:1,Modalizer:2,Mover:3,Groupper:4};class Pb{constructor(t,r,n,o,i,s){this._element=r,this._instance=new K3e(t,r,this,n,o,i,s)}_setHandlers(t,r){this._onFocusIn=t,this._onFocusOut=r}moveOut(t){var r;(r=this._instance)===null||r===void 0||r.moveOut(t)}moveOutWithDefaultAction(t,r){var n;(n=this._instance)===null||n===void 0||n.moveOutWithDefaultAction(t,r)}getHandler(t){return t?this._onFocusIn:this._onFocusOut}setTabbable(t){var r;(r=this._instance)===null||r===void 0||r.setTabbable(this,t)}dispose(){this._instance&&(this._instance.dispose(this),delete this._instance),delete this._onFocusIn,delete this._onFocusOut}static moveWithPhantomDummy(t,r,n,o,i){var s;const u=new jk(t.getWindow,!0,{isPhantom:!0,isFirst:!0}).input;if(u){let l,c;if(r.tagName==="BODY")l=r,c=n&&o||!n&&!o?r.firstElementChild:null;else{n&&(!o||o&&!t.focusable.isFocusable(r,!1,!0,!0))?(l=r,c=o?r.firstElementChild:null):(l=r.parentElement,c=n&&o||!n&&!o?r:r.nextElementSibling);let f,d;do f=n&&o||!n&&!o?c==null?void 0:c.previousElementSibling:c,d=(s=f==null?void 0:f.__tabsterDummyContainer)===null||s===void 0?void 0:s.get(),d===r?c=n&&o||!n&&!o?f:f==null?void 0:f.nextElementSibling:d=void 0;while(d)}l&&ig({by:"root",owner:l,next:null,relatedEvent:i})&&(l.insertBefore(u,c),Af(u))}}static addPhantomDummyWithTarget(t,r,n,o){const s=new jk(t.getWindow,!0,{isPhantom:!0,isFirst:!0},void 0,new cu(t.getWindow,o)).input;if(s){let a,u;M3e(r)&&!n?(a=r,u=r.firstElementChild):(a=r.parentElement,u=n?r:r.nextElementSibling),a==null||a.insertBefore(s,u)}}}class W3e{constructor(t){this._updateQueue=new Set,this._lastUpdateQueueTime=0,this._changedParents=new WeakSet,this._dummyElements=[],this._dummyCallbacks=new WeakMap,this._domChanged=r=>{var n;this._changedParents.has(r)||(this._changedParents.add(r),!this._updateDummyInputsTimer&&(this._updateDummyInputsTimer=(n=this._win)===null||n===void 0?void 0:n.call(this).setTimeout(()=>{delete this._updateDummyInputsTimer;for(const o of this._dummyElements){const i=o.get();if(i){const s=this._dummyCallbacks.get(i);if(s){const a=i.parentElement;(!a||this._changedParents.has(a))&&s()}}}this._changedParents=new WeakSet},oC)))},this._win=t}add(t,r){!this._dummyCallbacks.has(t)&&this._win&&(this._dummyElements.push(new cu(this._win,t)),this._dummyCallbacks.set(t,r),this.domChanged=this._domChanged)}remove(t){this._dummyElements=this._dummyElements.filter(r=>{const n=r.get();return n&&n!==t}),this._dummyCallbacks.delete(t),this._dummyElements.length===0&&delete this.domChanged}dispose(){var t;const r=(t=this._win)===null||t===void 0?void 0:t.call(this);this._updateTimer&&(r==null||r.clearTimeout(this._updateTimer),delete this._updateTimer),this._updateDummyInputsTimer&&(r==null||r.clearTimeout(this._updateDummyInputsTimer),delete this._updateDummyInputsTimer),this._changedParents=new WeakSet,this._dummyCallbacks=new WeakMap,this._dummyElements=[],this._updateQueue.clear(),delete this.domChanged,delete this._win}updatePositions(t){this._win&&(this._updateQueue.add(t),this._lastUpdateQueueTime=Date.now(),this._scheduledUpdatePositions())}_scheduledUpdatePositions(){var t;this._updateTimer||(this._updateTimer=(t=this._win)===null||t===void 0?void 0:t.call(this).setTimeout(()=>{if(delete this._updateTimer,this._lastUpdateQueueTime+oC<=Date.now()){const r=new Map,n=[];for(const o of this._updateQueue)n.push(o(r));this._updateQueue.clear();for(const o of n)o();r.clear()}else this._scheduledUpdatePositions()},oC))}}class K3e{constructor(t,r,n,o,i,s,a){this._wrappers=[],this._isOutside=!1,this._transformElements=new Set,this._onFocusIn=(h,g,v)=>{this._onFocus(!0,h,g,v)},this._onFocusOut=(h,g,v)=>{this._onFocus(!1,h,g,v)},this.moveOut=h=>{var g;const v=this._firstDummy,y=this._lastDummy;if(v&&y){this._ensurePosition();const E=v.input,_=y.input,S=(g=this._element)===null||g===void 0?void 0:g.get();if(E&&_&&S){let b;h?(E.tabIndex=0,b=E):(_.tabIndex=0,b=_),b&&Af(b)}}},this.moveOutWithDefaultAction=(h,g)=>{var v;const y=this._firstDummy,E=this._lastDummy;if(y&&E){this._ensurePosition();const _=y.input,S=E.input,b=(v=this._element)===null||v===void 0?void 0:v.get();if(_&&S&&b){let A;h?!y.isOutside&&this._tabster.focusable.isFocusable(b,!0,!0,!0)?A=b:(y.useDefaultAction=!0,_.tabIndex=0,A=_):(E.useDefaultAction=!0,S.tabIndex=0,A=S),A&&ig({by:"root",owner:b,next:null,relatedEvent:g})&&Af(A)}}},this.setTabbable=(h,g)=>{var v,y;for(const _ of this._wrappers)if(_.manager===h){_.tabbable=g;break}const E=this._getCurrent();if(E){const _=E.tabbable?0:-1;let S=(v=this._firstDummy)===null||v===void 0?void 0:v.input;S&&(S.tabIndex=_),S=(y=this._lastDummy)===null||y===void 0?void 0:y.input,S&&(S.tabIndex=_)}},this._addDummyInputs=()=>{this._addTimer||(this._addTimer=this._getWindow().setTimeout(()=>{delete this._addTimer,this._ensurePosition(),this._addTransformOffsets()},0))},this._addTransformOffsets=()=>{this._tabster._dummyObserver.updatePositions(this._computeTransformOffsets)},this._computeTransformOffsets=h=>{var g,v;const y=((g=this._firstDummy)===null||g===void 0?void 0:g.input)||((v=this._lastDummy)===null||v===void 0?void 0:v.input),E=this._transformElements,_=new Set;let S=0,b=0;const A=this._getWindow();for(let T=y;T&&T.nodeType===Node.ELEMENT_NODE;T=T.parentElement){let x=h.get(T);if(x===void 0){const C=A.getComputedStyle(T).transform;C&&C!=="none"&&(x={scrollTop:T.scrollTop,scrollLeft:T.scrollLeft}),h.set(T,x||null)}x&&(_.add(T),E.has(T)||T.addEventListener("scroll",this._addTransformOffsets),S+=x.scrollTop,b+=x.scrollLeft)}for(const T of E)_.has(T)||T.removeEventListener("scroll",this._addTransformOffsets);return this._transformElements=_,()=>{var T,x;(T=this._firstDummy)===null||T===void 0||T.setTopLeft(S,b),(x=this._lastDummy)===null||x===void 0||x.setTopLeft(S,b)}};const u=r.get();if(!u)throw new Error("No element");this._tabster=t,this._getWindow=t.getWindow,this._callForDefaultAction=a;const l=u.__tabsterDummy;if((l||this)._wrappers.push({manager:n,priority:o,tabbable:!0}),l)return l;u.__tabsterDummy=this;const c=i==null?void 0:i.dummyInputsPosition,f=u.tagName;this._isOutside=c?c===zae.Outside:(s||f==="UL"||f==="OL"||f==="TABLE")&&!(f==="LI"||f==="TD"||f==="TH"),this._firstDummy=new jk(this._getWindow,this._isOutside,{isFirst:!0},r),this._lastDummy=new jk(this._getWindow,this._isOutside,{isFirst:!1},r);const d=this._firstDummy.input;d&&t._dummyObserver.add(d,this._addDummyInputs),this._firstDummy.onFocusIn=this._onFocusIn,this._firstDummy.onFocusOut=this._onFocusOut,this._lastDummy.onFocusIn=this._onFocusIn,this._lastDummy.onFocusOut=this._onFocusOut,this._element=r,this._addDummyInputs()}dispose(t,r){var n,o,i,s;if((this._wrappers=this._wrappers.filter(u=>u.manager!==t&&!r)).length===0){delete((n=this._element)===null||n===void 0?void 0:n.get()).__tabsterDummy;for(const c of this._transformElements)c.removeEventListener("scroll",this._addTransformOffsets);this._transformElements.clear();const u=this._getWindow();this._addTimer&&(u.clearTimeout(this._addTimer),delete this._addTimer);const l=(o=this._firstDummy)===null||o===void 0?void 0:o.input;l&&this._tabster._dummyObserver.remove(l),(i=this._firstDummy)===null||i===void 0||i.dispose(),(s=this._lastDummy)===null||s===void 0||s.dispose()}}_onFocus(t,r,n,o){var i;const s=this._getCurrent();s&&(!r.useDefaultAction||this._callForDefaultAction)&&((i=s.manager.getHandler(t))===null||i===void 0||i(r,n,o))}_getCurrent(){return this._wrappers.sort((t,r)=>t.tabbable!==r.tabbable?t.tabbable?-1:1:t.priority-r.priority),this._wrappers[0]}_ensurePosition(){var t,r,n;const o=(t=this._element)===null||t===void 0?void 0:t.get(),i=(r=this._firstDummy)===null||r===void 0?void 0:r.input,s=(n=this._lastDummy)===null||n===void 0?void 0:n.input;if(!(!o||!i||!s))if(this._isOutside){const a=o.parentElement;if(a){const u=o.nextElementSibling;u!==s&&a.insertBefore(s,u),o.previousElementSibling!==i&&a.insertBefore(i,o)}}else{o.lastElementChild!==s&&o.appendChild(s);const a=o.firstElementChild;a&&a!==i&&o.insertBefore(i,a)}}}function Uae(e){let t=null;for(let r=e.lastElementChild;r;r=r.lastElementChild)t=r;return t||void 0}function l1(e,t,r){const n=document.createEvent("HTMLEvents");return n.initEvent(t,!0,!0),n.details=r,e.dispatchEvent(n),!n.defaultPrevented}function ig(e){return l1(e.owner,jae,e)}function iC(e,t,r,n){const o=e.storageEntry(t,!0);let i=!1;if(!o.aug){if(n===void 0)return i;o.aug={}}if(n===void 0){if(r in o.aug){const s=o.aug[r];delete o.aug[r],s===null?t.removeAttribute(r):t.setAttribute(r,s),i=!0}}else{let s;r in o.aug||(s=t.getAttribute(r)),s!==void 0&&s!==n&&(o.aug[r]=s,n===null?t.removeAttribute(r):t.setAttribute(r,n),i=!0)}return n===void 0&&Object.keys(o.aug).length===0&&(delete o.aug,e.storageEntry(t,!1)),i}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */function Pae(e,t){const r=JSON.stringify(e);return t===!0?r:{[df]:r}}function z3e(e,t){for(const r of Object.keys(t)){const n=t[r];n?e[r]=n:delete e[r]}}function H3e(e,t,r){let n;if(r){const o=e.getAttribute(df);if(o)try{n=JSON.parse(o)}catch{}}n||(n={}),z3e(n,t),Object.keys(n).length>0?e.setAttribute(df,Pae(n,!0)):e.removeAttribute(df)}class tK extends zb{constructor(t,r,n,o){super(t,r,h8.Root,o,void 0,!0),this._onDummyInputFocus=i=>{var s;if(i.useDefaultAction)this._setFocused(!1);else{this._tabster.keyboardNavigation.setNavigatingWithKeyboard(!0);const a=this._element.get();if(a){this._setFocused(!0);const u=this._tabster.focusedElement.getFirstOrLastTabbable(i.isFirst,{container:a,ignoreAccessibility:!0});if(u){wf(u);return}}(s=i.input)===null||s===void 0||s.blur()}},this._setHandlers(this._onDummyInputFocus),this._tabster=t,this._setFocused=n}}class $3e extends xx{constructor(t,r,n,o,i){super(t,r,o),this._isFocused=!1,this._setFocused=u=>{var l;if(this._setFocusedTimer&&(this._tabster.getWindow().clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),this._isFocused===u)return;const c=this._element.get();c&&(u?(this._isFocused=!0,(l=this._dummyManager)===null||l===void 0||l.setTabbable(!1),c1(this._tabster.root.eventTarget,"focus",{element:c})):this._setFocusedTimer=this._tabster.getWindow().setTimeout(()=>{var f;delete this._setFocusedTimer,this._isFocused=!1,(f=this._dummyManager)===null||f===void 0||f.setTabbable(!0),c1(this._tabster.root.eventTarget,"blur",{element:c})},0))},this._onFocusIn=u=>{const l=this._tabster.getParent,c=this._element.get();let f=u.target;do{if(f===c){this._setFocused(!0);return}f=f&&l(f)}while(f)},this._onFocusOut=()=>{this._setFocused(!1)},this._onDispose=n;const s=t.getWindow;this.uid=kk(s,r),this._sys=i,(t.controlTab||t.rootDummyInputs)&&this.addDummyInputs();const a=s();a.document.addEventListener("focusin",this._onFocusIn),a.document.addEventListener("focusout",this._onFocusOut),this._add()}addDummyInputs(){this._dummyManager||(this._dummyManager=new tK(this._tabster,this._element,this._setFocused,this._sys))}dispose(){var t;this._onDispose(this);const r=this._tabster.getWindow();r.document.removeEventListener("focusin",this._onFocusIn),r.document.removeEventListener("focusout",this._onFocusOut),this._setFocusedTimer&&(r.clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),(t=this._dummyManager)===null||t===void 0||t.dispose(),this._remove()}moveOutWithDefaultAction(t,r){const n=this._dummyManager;if(n)n.moveOutWithDefaultAction(t,r);else{const o=this.getElement();o&&tK.moveWithPhantomDummy(this._tabster,o,!0,t,r)}}_add(){}_remove(){}}class Bo{constructor(t,r){this._autoRootWaiting=!1,this._roots={},this._forceDummy=!1,this.rootById={},this._autoRootCreate=()=>{var n;const o=this._win().document,i=o.body;if(i){this._autoRootUnwait(o);const s=this._autoRoot;if(s)return H3e(i,{root:s},!0),Dae(this._tabster,i),(n=ha(this._tabster,i))===null||n===void 0?void 0:n.root}else this._autoRootWaiting||(this._autoRootWaiting=!0,o.addEventListener("readystatechange",this._autoRootCreate))},this._onRootDispose=n=>{delete this._roots[n.id]},this._tabster=t,this._win=t.getWindow,this._autoRoot=r,this.eventTarget=A3e(this._win),t.queueInit(()=>{this._autoRoot&&this._autoRootCreate()})}_autoRootUnwait(t){t.removeEventListener("readystatechange",this._autoRootCreate),this._autoRootWaiting=!1}dispose(){const t=this._win();this._autoRootUnwait(t.document),delete this._autoRoot,Object.keys(this._roots).forEach(r=>{this._roots[r]&&(this._roots[r].dispose(),delete this._roots[r])}),this.rootById={}}createRoot(t,r,n){const o=new $3e(this._tabster,t,this._onRootDispose,r,n);return this._roots[o.id]=o,this._forceDummy&&o.addDummyInputs(),o}addDummyInputs(){this._forceDummy=!0;const t=this._roots;for(const r of Object.keys(t))t[r].addDummyInputs()}static getRootByUId(t,r){const n=t().__tabsterInstance;return n&&n.root.rootById[r]}static getTabsterContext(t,r,n){n===void 0&&(n={});var o,i,s,a;if(!r.ownerDocument)return;const{checkRtl:u,referenceElement:l}=n,c=t.getParent;t.drainInitQueue();let f,d,h,g,v=!1,y,E,_,S,b=l||r;const A={};for(;b&&(!f||u);){const T=ha(t,b);if(u&&_===void 0){const L=b.dir;L&&(_=L.toLowerCase()==="rtl")}if(!T){b=c(b);continue}const N=b.tagName;(T.uncontrolled||N==="IFRAME"||N==="WEBVIEW")&&(S=b),!g&&(!((o=T.focusable)===null||o===void 0)&&o.excludeFromMover)&&!h&&(v=!0);const I=T.modalizer,R=T.groupper,D=T.mover;!d&&I&&(d=I),!h&&R&&(!d||I)&&(d?(!R.isActive()&&R.getProps().tabbability&&d.userId!==((i=t.modalizer)===null||i===void 0?void 0:i.activeId)&&(d=void 0,h=R),E=R):h=R),!g&&D&&(!d||I)&&(!R||b!==r)&&(g=D,y=!!h&&h!==R),T.root&&(f=T.root),!((s=T.focusable)===null||s===void 0)&&s.ignoreKeydown&&Object.assign(A,T.focusable.ignoreKeydown),b=c(b)}if(!f){const T=t.root;T._autoRoot&&!((a=r.ownerDocument)===null||a===void 0)&&a.body&&(f=T._autoRootCreate())}return h&&!g&&(y=!0),f?{root:f,modalizer:d,groupper:h,mover:g,groupperBeforeMover:y,modalizerInGroupper:E,rtl:u?!!_:void 0,uncontrolled:S,excludedFromMover:v,ignoreKeydown:T=>!!A[T.key]}:void 0}static getRoot(t,r){var n;const o=t.getParent;for(let i=r;i;i=o(i)){const s=(n=ha(t,i))===null||n===void 0?void 0:n.root;if(s)return s}}onRoot(t,r){r?delete this.rootById[t.uid]:this.rootById[t.uid]=t}}/*! + */function Yae(e,t){const r=JSON.stringify(e);return t===!0?r:{[hf]:r}}function G3e(e,t){for(const r of Object.keys(t)){const n=t[r];n?e[r]=n:delete e[r]}}function V3e(e,t,r){let n;if(r){const o=e.getAttribute(hf);if(o)try{n=JSON.parse(o)}catch{}}n||(n={}),G3e(n,t),Object.keys(n).length>0?e.setAttribute(hf,Yae(n,!0)):e.removeAttribute(hf)}class lK extends Pb{constructor(t,r,n,o){super(t,r,y8.Root,o,void 0,!0),this._onDummyInputFocus=i=>{var s;if(i.useDefaultAction)this._setFocused(!1);else{this._tabster.keyboardNavigation.setNavigatingWithKeyboard(!0);const a=this._element.get();if(a){this._setFocused(!0);const u=this._tabster.focusedElement.getFirstOrLastTabbable(i.isFirst,{container:a,ignoreAccessibility:!0});if(u){Af(u);return}}(s=i.input)===null||s===void 0||s.blur()}},this._setHandlers(this._onDummyInputFocus),this._tabster=t,this._setFocused=n}}class U3e extends RT{constructor(t,r,n,o,i){super(t,r,o),this._isFocused=!1,this._setFocused=u=>{var l;if(this._setFocusedTimer&&(this._tabster.getWindow().clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),this._isFocused===u)return;const c=this._element.get();c&&(u?(this._isFocused=!0,(l=this._dummyManager)===null||l===void 0||l.setTabbable(!1),l1(this._tabster.root.eventTarget,"focus",{element:c})):this._setFocusedTimer=this._tabster.getWindow().setTimeout(()=>{var f;delete this._setFocusedTimer,this._isFocused=!1,(f=this._dummyManager)===null||f===void 0||f.setTabbable(!0),l1(this._tabster.root.eventTarget,"blur",{element:c})},0))},this._onFocusIn=u=>{const l=this._tabster.getParent,c=this._element.get();let f=u.target;do{if(f===c){this._setFocused(!0);return}f=f&&l(f)}while(f)},this._onFocusOut=()=>{this._setFocused(!1)},this._onDispose=n;const s=t.getWindow;this.uid=IA(s,r),this._sys=i,(t.controlTab||t.rootDummyInputs)&&this.addDummyInputs();const a=s();a.document.addEventListener("focusin",this._onFocusIn),a.document.addEventListener("focusout",this._onFocusOut),this._add()}addDummyInputs(){this._dummyManager||(this._dummyManager=new lK(this._tabster,this._element,this._setFocused,this._sys))}dispose(){var t;this._onDispose(this);const r=this._tabster.getWindow();r.document.removeEventListener("focusin",this._onFocusIn),r.document.removeEventListener("focusout",this._onFocusOut),this._setFocusedTimer&&(r.clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),(t=this._dummyManager)===null||t===void 0||t.dispose(),this._remove()}moveOutWithDefaultAction(t,r){const n=this._dummyManager;if(n)n.moveOutWithDefaultAction(t,r);else{const o=this.getElement();o&&lK.moveWithPhantomDummy(this._tabster,o,!0,t,r)}}_add(){}_remove(){}}class Mo{constructor(t,r){this._autoRootWaiting=!1,this._roots={},this._forceDummy=!1,this.rootById={},this._autoRootCreate=()=>{var n;const o=this._win().document,i=o.body;if(i){this._autoRootUnwait(o);const s=this._autoRoot;if(s)return V3e(i,{root:s},!0),Hae(this._tabster,i),(n=pa(this._tabster,i))===null||n===void 0?void 0:n.root}else this._autoRootWaiting||(this._autoRootWaiting=!0,o.addEventListener("readystatechange",this._autoRootCreate))},this._onRootDispose=n=>{delete this._roots[n.id]},this._tabster=t,this._win=t.getWindow,this._autoRoot=r,this.eventTarget=O3e(this._win),t.queueInit(()=>{this._autoRoot&&this._autoRootCreate()})}_autoRootUnwait(t){t.removeEventListener("readystatechange",this._autoRootCreate),this._autoRootWaiting=!1}dispose(){const t=this._win();this._autoRootUnwait(t.document),delete this._autoRoot,Object.keys(this._roots).forEach(r=>{this._roots[r]&&(this._roots[r].dispose(),delete this._roots[r])}),this.rootById={}}createRoot(t,r,n){const o=new U3e(this._tabster,t,this._onRootDispose,r,n);return this._roots[o.id]=o,this._forceDummy&&o.addDummyInputs(),o}addDummyInputs(){this._forceDummy=!0;const t=this._roots;for(const r of Object.keys(t))t[r].addDummyInputs()}static getRootByUId(t,r){const n=t().__tabsterInstance;return n&&n.root.rootById[r]}static getTabsterContext(t,r,n){n===void 0&&(n={});var o,i,s,a;if(!r.ownerDocument)return;const{checkRtl:u,referenceElement:l}=n,c=t.getParent;t.drainInitQueue();let f,d,h,g,v=!1,y,E,_,S,b=l||r;const A={};for(;b&&(!f||u);){const x=pa(t,b);if(u&&_===void 0){const L=b.dir;L&&(_=L.toLowerCase()==="rtl")}if(!x){b=c(b);continue}const C=b.tagName;(x.uncontrolled||C==="IFRAME"||C==="WEBVIEW")&&(S=b),!g&&(!((o=x.focusable)===null||o===void 0)&&o.excludeFromMover)&&!h&&(v=!0);const I=x.modalizer,R=x.groupper,D=x.mover;!d&&I&&(d=I),!h&&R&&(!d||I)&&(d?(!R.isActive()&&R.getProps().tabbability&&d.userId!==((i=t.modalizer)===null||i===void 0?void 0:i.activeId)&&(d=void 0,h=R),E=R):h=R),!g&&D&&(!d||I)&&(!R||b!==r)&&(g=D,y=!!h&&h!==R),x.root&&(f=x.root),!((s=x.focusable)===null||s===void 0)&&s.ignoreKeydown&&Object.assign(A,x.focusable.ignoreKeydown),b=c(b)}if(!f){const x=t.root;x._autoRoot&&!((a=r.ownerDocument)===null||a===void 0)&&a.body&&(f=x._autoRootCreate())}return h&&!g&&(y=!0),f?{root:f,modalizer:d,groupper:h,mover:g,groupperBeforeMover:y,modalizerInGroupper:E,rtl:u?!!_:void 0,uncontrolled:S,excludedFromMover:v,ignoreKeydown:x=>!!A[x.key]}:void 0}static getRoot(t,r){var n;const o=t.getParent;for(let i=r;i;i=o(i)){const s=(n=pa(t,i))===null||n===void 0?void 0:n.root;if(s)return s}}onRoot(t,r){r?delete this.rootById[t.uid]:this.rootById[t.uid]=t}}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */class qae{constructor(){this._callbacks=[]}dispose(){this._callbacks=[],delete this._val}subscribe(t){const r=this._callbacks;r.indexOf(t)<0&&r.push(t)}subscribeFirst(t){const r=this._callbacks,n=r.indexOf(t);n>=0&&r.splice(n,1),r.unshift(t)}unsubscribe(t){const r=this._callbacks.indexOf(t);r>=0&&this._callbacks.splice(r,1)}setVal(t,r){this._val!==t&&(this._val=t,this._callCallbacks(t,r))}getVal(){return this._val}trigger(t,r){this._callCallbacks(t,r)}_callCallbacks(t,r){this._callbacks.forEach(n=>n(t,r))}}/*! + */class Xae{constructor(){this._callbacks=[]}dispose(){this._callbacks=[],delete this._val}subscribe(t){const r=this._callbacks;r.indexOf(t)<0&&r.push(t)}subscribeFirst(t){const r=this._callbacks,n=r.indexOf(t);n>=0&&r.splice(n,1),r.unshift(t)}unsubscribe(t){const r=this._callbacks.indexOf(t);r>=0&&this._callbacks.splice(r,1)}setVal(t,r){this._val!==t&&(this._val=t,this._callCallbacks(t,r))}getVal(){return this._val}trigger(t,r){this._callCallbacks(t,r)}_callCallbacks(t,r){this._callbacks.forEach(n=>n(t,r))}}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */class P3e{constructor(t){this._tabster=t}dispose(){}getProps(t){const r=ha(this._tabster,t);return r&&r.focusable||{}}isFocusable(t,r,n,o){return Hae(t,c8)&&(r||t.tabIndex!==-1)?(n||this.isVisible(t))&&(o||this.isAccessible(t)):!1}isVisible(t){if(!t.ownerDocument||t.nodeType!==Node.ELEMENT_NODE||t.offsetParent===null&&t.ownerDocument.body!==t)return!1;const r=t.ownerDocument.defaultView;if(!r)return!1;const n=t.ownerDocument.body.getBoundingClientRect();return!(n.width===0&&n.height===0||r.getComputedStyle(t).visibility==="hidden")}isAccessible(t){var r;for(let n=t;n;n=n.parentElement){const o=ha(this._tabster,n);if(this._isHidden(n)||!((r=o==null?void 0:o.focusable)===null||r===void 0?void 0:r.ignoreAriaDisabled)&&this._isDisabled(n))return!1}return!0}_isDisabled(t){return t.hasAttribute("disabled")}_isHidden(t){var r;const n=t.getAttribute("aria-hidden");return!!(n&&n.toLowerCase()==="true"&&!(!((r=this._tabster.modalizer)===null||r===void 0)&&r.isAugmented(t)))}findFirst(t,r){return this.findElement({...t},r)}findLast(t,r){return this.findElement({isBackward:!0,...t},r)}findNext(t,r){return this.findElement({...t},r)}findPrev(t,r){return this.findElement({...t,isBackward:!0},r)}findDefault(t,r){return this.findElement({...t,acceptCondition:n=>this.isFocusable(n,t.includeProgrammaticallyFocusable)&&!!this.getProps(n).isDefault},r)||null}findAll(t){return this._findElements(!0,t)||[]}findElement(t,r){const n=this._findElements(!1,t,r);return n&&n[0]}_findElements(t,r,n){var o,i,s;const{container:a,currentElement:u=null,includeProgrammaticallyFocusable:l,useActiveModalizer:c,ignoreAccessibility:f,modalizerId:d,isBackward:h,onElement:g}=r;n||(n={});const v=[];let{acceptCondition:y}=r;const E=!!y;if(!a)return null;y||(y=A=>this.isFocusable(A,l,!1,f));const _={container:a,modalizerUserId:d===void 0&&c?(o=this._tabster.modalizer)===null||o===void 0?void 0:o.activeId:d||((s=(i=Bo.getTabsterContext(this._tabster,a))===null||i===void 0?void 0:i.modalizer)===null||s===void 0?void 0:s.userId),from:u||a,isBackward:h,acceptCondition:y,hasCustomCondition:E,includeProgrammaticallyFocusable:l,ignoreAccessibility:f,cachedGrouppers:{}},S=f8(a.ownerDocument,a,A=>this._acceptElement(A,_));if(!S)return null;const b=A=>{var x,T;const N=(x=_.foundElement)!==null&&x!==void 0?x:_.foundBackward;return N&&v.push(N),t?N&&(_.found=!1,delete _.foundElement,delete _.foundBackward,delete _.fromCtx,_.from=N,g&&!g(N))?!1:!!(N||A):(N&&n&&(n.uncontrolled=(T=Bo.getTabsterContext(this._tabster,N))===null||T===void 0?void 0:T.uncontrolled),!!(A&&!N))};if(u||(n.outOfDOMOrder=!0),u)S.currentNode=u;else if(h){const A=$ae(a);if(!A)return null;if(this._acceptElement(A,_)===NodeFilter.FILTER_ACCEPT&&!b(!0))return _.skippedFocusable&&(n.outOfDOMOrder=!0),v;S.currentNode=A}do h?S.previousNode():S.nextNode();while(b());return _.skippedFocusable&&(n.outOfDOMOrder=!0),v.length?v:null}_acceptElement(t,r){var n,o,i,s;if(r.found)return NodeFilter.FILTER_ACCEPT;const a=r.foundBackward;if(a&&(t===a||!a.contains(t)))return r.found=!0,r.foundElement=a,NodeFilter.FILTER_ACCEPT;const u=r.container;if(t===u)return NodeFilter.FILTER_SKIP;if(!u.contains(t)||t.__tabsterDummyContainer||!((n=r.rejectElementsFrom)===null||n===void 0)&&n.contains(t))return NodeFilter.FILTER_REJECT;const l=r.currentCtx=Bo.getTabsterContext(this._tabster,t);if(!l)return NodeFilter.FILTER_SKIP;if(zae(t))return this.isFocusable(t,void 0,!0,!0)&&(r.skippedFocusable=!0),NodeFilter.FILTER_SKIP;if(!r.hasCustomCondition&&(t.tagName==="IFRAME"||t.tagName==="WEBVIEW"))return((o=l.modalizer)===null||o===void 0?void 0:o.userId)===((i=this._tabster.modalizer)===null||i===void 0?void 0:i.activeId)?(r.found=!0,r.rejectElementsFrom=r.foundElement=t,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT;if(!r.ignoreAccessibility&&!this.isAccessible(t))return this.isFocusable(t,!1,!0,!0)&&(r.skippedFocusable=!0),NodeFilter.FILTER_REJECT;let c,f=r.fromCtx;f||(f=r.fromCtx=Bo.getTabsterContext(this._tabster,r.from));const d=f==null?void 0:f.mover;let h=l.groupper,g=l.mover;if(c=(s=this._tabster.modalizer)===null||s===void 0?void 0:s.acceptElement(t,r),c!==void 0&&(r.skippedFocusable=!0),c===void 0&&(h||g||d)){const v=h==null?void 0:h.getElement(),y=d==null?void 0:d.getElement();let E=g==null?void 0:g.getElement();E&&(y!=null&&y.contains(E))&&u.contains(y)&&(!v||!g||y.contains(v))&&(g=d,E=y),v&&(v===u||!u.contains(v))&&(h=void 0),E&&!u.contains(E)&&(g=void 0),h&&g&&(E&&v&&!v.contains(E)?g=void 0:h=void 0),h&&(c=h.acceptElement(t,r)),g&&(c=g.acceptElement(t,r))}return c===void 0&&(c=r.acceptCondition(t)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,c===NodeFilter.FILTER_SKIP&&this.isFocusable(t,!1,!0,!0)&&(r.skippedFocusable=!0)),c===NodeFilter.FILTER_ACCEPT&&!r.found&&(r.isBackward?(r.foundBackward=t,c=NodeFilter.FILTER_SKIP):(r.found=!0,r.foundElement=t)),c}}/*! + */class Y3e{constructor(t){this._tabster=t}dispose(){}getProps(t){const r=pa(this._tabster,t);return r&&r.focusable||{}}isFocusable(t,r,n,o){return Vae(t,g8)&&(r||t.tabIndex!==-1)?(n||this.isVisible(t))&&(o||this.isAccessible(t)):!1}isVisible(t){if(!t.ownerDocument||t.nodeType!==Node.ELEMENT_NODE||t.offsetParent===null&&t.ownerDocument.body!==t)return!1;const r=t.ownerDocument.defaultView;if(!r)return!1;const n=t.ownerDocument.body.getBoundingClientRect();return!(n.width===0&&n.height===0||r.getComputedStyle(t).visibility==="hidden")}isAccessible(t){var r;for(let n=t;n;n=n.parentElement){const o=pa(this._tabster,n);if(this._isHidden(n)||!((r=o==null?void 0:o.focusable)===null||r===void 0?void 0:r.ignoreAriaDisabled)&&this._isDisabled(n))return!1}return!0}_isDisabled(t){return t.hasAttribute("disabled")}_isHidden(t){var r;const n=t.getAttribute("aria-hidden");return!!(n&&n.toLowerCase()==="true"&&!(!((r=this._tabster.modalizer)===null||r===void 0)&&r.isAugmented(t)))}findFirst(t,r){return this.findElement({...t},r)}findLast(t,r){return this.findElement({isBackward:!0,...t},r)}findNext(t,r){return this.findElement({...t},r)}findPrev(t,r){return this.findElement({...t,isBackward:!0},r)}findDefault(t,r){return this.findElement({...t,acceptCondition:n=>this.isFocusable(n,t.includeProgrammaticallyFocusable)&&!!this.getProps(n).isDefault},r)||null}findAll(t){return this._findElements(!0,t)||[]}findElement(t,r){const n=this._findElements(!1,t,r);return n&&n[0]}_findElements(t,r,n){var o,i,s;const{container:a,currentElement:u=null,includeProgrammaticallyFocusable:l,useActiveModalizer:c,ignoreAccessibility:f,modalizerId:d,isBackward:h,onElement:g}=r;n||(n={});const v=[];let{acceptCondition:y}=r;const E=!!y;if(!a)return null;y||(y=A=>this.isFocusable(A,l,!1,f));const _={container:a,modalizerUserId:d===void 0&&c?(o=this._tabster.modalizer)===null||o===void 0?void 0:o.activeId:d||((s=(i=Mo.getTabsterContext(this._tabster,a))===null||i===void 0?void 0:i.modalizer)===null||s===void 0?void 0:s.userId),from:u||a,isBackward:h,acceptCondition:y,hasCustomCondition:E,includeProgrammaticallyFocusable:l,ignoreAccessibility:f,cachedGrouppers:{}},S=v8(a.ownerDocument,a,A=>this._acceptElement(A,_));if(!S)return null;const b=A=>{var T,x;const C=(T=_.foundElement)!==null&&T!==void 0?T:_.foundBackward;return C&&v.push(C),t?C&&(_.found=!1,delete _.foundElement,delete _.foundBackward,delete _.fromCtx,_.from=C,g&&!g(C))?!1:!!(C||A):(C&&n&&(n.uncontrolled=(x=Mo.getTabsterContext(this._tabster,C))===null||x===void 0?void 0:x.uncontrolled),!!(A&&!C))};if(u||(n.outOfDOMOrder=!0),u)S.currentNode=u;else if(h){const A=Uae(a);if(!A)return null;if(this._acceptElement(A,_)===NodeFilter.FILTER_ACCEPT&&!b(!0))return _.skippedFocusable&&(n.outOfDOMOrder=!0),v;S.currentNode=A}do h?S.previousNode():S.nextNode();while(b());return _.skippedFocusable&&(n.outOfDOMOrder=!0),v.length?v:null}_acceptElement(t,r){var n,o,i,s;if(r.found)return NodeFilter.FILTER_ACCEPT;const a=r.foundBackward;if(a&&(t===a||!a.contains(t)))return r.found=!0,r.foundElement=a,NodeFilter.FILTER_ACCEPT;const u=r.container;if(t===u)return NodeFilter.FILTER_SKIP;if(!u.contains(t)||t.__tabsterDummyContainer||!((n=r.rejectElementsFrom)===null||n===void 0)&&n.contains(t))return NodeFilter.FILTER_REJECT;const l=r.currentCtx=Mo.getTabsterContext(this._tabster,t);if(!l)return NodeFilter.FILTER_SKIP;if(Gae(t))return this.isFocusable(t,void 0,!0,!0)&&(r.skippedFocusable=!0),NodeFilter.FILTER_SKIP;if(!r.hasCustomCondition&&(t.tagName==="IFRAME"||t.tagName==="WEBVIEW"))return((o=l.modalizer)===null||o===void 0?void 0:o.userId)===((i=this._tabster.modalizer)===null||i===void 0?void 0:i.activeId)?(r.found=!0,r.rejectElementsFrom=r.foundElement=t,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT;if(!r.ignoreAccessibility&&!this.isAccessible(t))return this.isFocusable(t,!1,!0,!0)&&(r.skippedFocusable=!0),NodeFilter.FILTER_REJECT;let c,f=r.fromCtx;f||(f=r.fromCtx=Mo.getTabsterContext(this._tabster,r.from));const d=f==null?void 0:f.mover;let h=l.groupper,g=l.mover;if(c=(s=this._tabster.modalizer)===null||s===void 0?void 0:s.acceptElement(t,r),c!==void 0&&(r.skippedFocusable=!0),c===void 0&&(h||g||d)){const v=h==null?void 0:h.getElement(),y=d==null?void 0:d.getElement();let E=g==null?void 0:g.getElement();E&&(y!=null&&y.contains(E))&&u.contains(y)&&(!v||!g||y.contains(v))&&(g=d,E=y),v&&(v===u||!u.contains(v))&&(h=void 0),E&&!u.contains(E)&&(g=void 0),h&&g&&(E&&v&&!v.contains(E)?g=void 0:h=void 0),h&&(c=h.acceptElement(t,r)),g&&(c=g.acceptElement(t,r))}return c===void 0&&(c=r.acceptCondition(t)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,c===NodeFilter.FILTER_SKIP&&this.isFocusable(t,!1,!0,!0)&&(r.skippedFocusable=!0)),c===NodeFilter.FILTER_ACCEPT&&!r.found&&(r.isBackward?(r.foundBackward=t,c=NodeFilter.FILTER_SKIP):(r.found=!0,r.foundElement=t)),c}}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */const Or={Tab:9,Enter:13,Esc:27,Space:32,PageUp:33,PageDown:34,End:35,Home:36,Left:37,Up:38,Right:39,Down:40};/*! + */const Dr={Tab:9,Enter:13,Esc:27,Space:32,PageUp:33,PageDown:34,End:35,Home:36,Left:37,Up:38,Right:39,Down:40};/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */function q3e(e,t){var r;const n=e.getParent;let o=t;do{const i=(r=ha(e,o))===null||r===void 0?void 0:r.uncontrolled;if(i&&e.uncontrolled.isUncontrolledCompletely(o,!!i.completely))return o;o=n(o)}while(o)}class so extends qae{constructor(t,r){super(),this._init=()=>{const n=this._win(),o=n.document;o.addEventListener(Sf,this._onFocusIn,!0),o.addEventListener("focusout",this._onFocusOut,!0),n.addEventListener("keydown",this._onKeyDown,!0);const i=o.activeElement;i&&i!==o.body&&this._setFocusedElement(i),this.subscribe(this._onChanged)},this._onFocusIn=n=>{this._setFocusedElement(n.target,n.details.relatedTarget,n.details.isFocusedProgrammatically)},this._onFocusOut=n=>{this._setFocusedElement(void 0,n.relatedTarget)},this._validateFocusedElement=n=>{},this._onKeyDown=n=>{if(n.keyCode!==Or.Tab||n.ctrlKey)return;const o=this.getVal();if(!o||!o.ownerDocument||o.contentEditable==="true")return;const i=this._tabster,s=i.controlTab,a=Bo.getTabsterContext(i,o);if(!a||a.ignoreKeydown(n))return;const u=n.shiftKey,l=so.findNextTabbable(i,a,void 0,o,void 0,u,!0),c=a.root.getElement();if(!c)return;const f=l==null?void 0:l.element,d=q3e(i,o);if(f){const h=l.uncontrolled;if(a.uncontrolled||h!=null&&h.contains(o)){if(!l.outOfDOMOrder&&h===a.uncontrolled||d&&!d.contains(f))return;zb.addPhantomDummyWithTarget(i,o,u,f);return}if(h||f.tagName==="IFRAME"){og({by:"root",owner:c,next:f,relatedEvent:n})&&zb.moveWithPhantomDummy(this._tabster,h??f,!1,u,n);return}(s||l!=null&&l.outOfDOMOrder)&&og({by:"root",owner:c,next:f,relatedEvent:n})&&(n.preventDefault(),n.stopImmediatePropagation(),wf(f))}else!d&&og({by:"root",owner:c,next:null,relatedEvent:n})&&a.root.moveOutWithDefaultAction(u,n)},this._onChanged=(n,o)=>{var i,s;if(n)c1(n,Nae,o);else{const a=(i=this._lastVal)===null||i===void 0?void 0:i.get();if(a){const u={...o},l=Bo.getTabsterContext(this._tabster,a),c=(s=l==null?void 0:l.modalizer)===null||s===void 0?void 0:s.userId;c&&(u.modalizerId=c),c1(a,Cae,u)}}},this._tabster=t,this._win=r,t.queueInit(this._init)}dispose(){super.dispose();const t=this._win();t.document.removeEventListener(Sf,this._onFocusIn,!0),t.document.removeEventListener("focusout",this._onFocusOut,!0),t.removeEventListener("keydown",this._onKeyDown,!0),this.unsubscribe(this._onChanged),delete so._lastResetElement,delete this._nextVal,delete this._lastVal}static forgetMemorized(t,r){var n,o;let i=so._lastResetElement,s=i&&i.get();s&&r.contains(s)&&delete so._lastResetElement,s=(o=(n=t._nextVal)===null||n===void 0?void 0:n.element)===null||o===void 0?void 0:o.get(),s&&r.contains(s)&&delete t._nextVal,i=t._lastVal,s=i&&i.get(),s&&r.contains(s)&&delete t._lastVal}getFocusedElement(){return this.getVal()}getLastFocusedElement(){var t;let r=(t=this._lastVal)===null||t===void 0?void 0:t.get();return(!r||r&&!d8(r.ownerDocument,r))&&(this._lastVal=r=void 0),r}focus(t,r,n){return this._tabster.focusable.isFocusable(t,r,!1,n)?(t.focus(),!0):!1}focusDefault(t){const r=this._tabster.focusable.findDefault({container:t});return r?(this._tabster.focusedElement.focus(r),!0):!1}getFirstOrLastTabbable(t,r){var n;const{container:o,ignoreAccessibility:i}=r;let s;if(o){const a=Bo.getTabsterContext(this._tabster,o);a&&(s=(n=so.findNextTabbable(this._tabster,a,o,void 0,void 0,!t,i))===null||n===void 0?void 0:n.element)}return s&&!(o!=null&&o.contains(s))&&(s=void 0),s||void 0}_focusFirstOrLast(t,r){const n=this.getFirstOrLastTabbable(t,r);return n?(this.focus(n,!1,!0),!0):!1}focusFirst(t){return this._focusFirstOrLast(!0,t)}focusLast(t){return this._focusFirstOrLast(!1,t)}resetFocus(t){if(!this._tabster.focusable.isVisible(t))return!1;if(this._tabster.focusable.isFocusable(t,!0,!0,!0))this.focus(t);else{const r=t.getAttribute("tabindex"),n=t.getAttribute("aria-hidden");t.tabIndex=-1,t.setAttribute("aria-hidden","true"),so._lastResetElement=new cu(this._win,t),this.focus(t,!0,!0),this._setOrRemoveAttribute(t,"tabindex",r),this._setOrRemoveAttribute(t,"aria-hidden",n)}return!0}_setOrRemoveAttribute(t,r,n){n===null?t.removeAttribute(r):t.setAttribute(r,n)}_setFocusedElement(t,r,n){var o,i;if(this._tabster._noop)return;const s={relatedTarget:r};if(t){const u=(o=so._lastResetElement)===null||o===void 0?void 0:o.get();if(so._lastResetElement=void 0,u===t||zae(t))return;s.isFocusedProgrammatically=n;const l=Bo.getTabsterContext(this._tabster,t),c=(i=l==null?void 0:l.modalizer)===null||i===void 0?void 0:i.userId;c&&(s.modalizerId=c)}const a=this._nextVal={element:t?new cu(this._win,t):void 0,details:s};t&&t!==this._val&&this._validateFocusedElement(t),this._nextVal===a&&this.setVal(t,s),this._nextVal=void 0}setVal(t,r){super.setVal(t,r),t&&(this._lastVal=new cu(this._win,t))}static findNextTabbable(t,r,n,o,i,s,a){const u=n||r.root.getElement();if(!u)return null;let l=null;const c=so._isTabbingTimer,f=t.getWindow();c&&f.clearTimeout(c),so.isTabbing=!0,so._isTabbingTimer=f.setTimeout(()=>{delete so._isTabbingTimer,so.isTabbing=!1},0);const d=r.modalizer,h=r.groupper,g=r.mover,v=y=>{var E;if(l=y.findNextTabbable(o,i,s,a),o&&!(l!=null&&l.element)){const _=y!==d&&((E=y.getElement())===null||E===void 0?void 0:E.parentElement);if(_){const S=Bo.getTabsterContext(t,o,{referenceElement:_});if(S){const b=y.getElement(),A=s?b:b&&$ae(b)||b;A&&(l=so.findNextTabbable(t,S,n,A,_,s,a),l&&(l.outOfDOMOrder=!0))}}}};if(h&&g)v(r.groupperBeforeMover?h:g);else if(h)v(h);else if(g)v(g);else if(d)v(d);else{const y={container:u,currentElement:o,referenceElement:i,ignoreAccessibility:a,useActiveModalizer:!0},E={};l={element:t.focusable[s?"findPrev":"findNext"](y,E),outOfDOMOrder:E.outOfDOMOrder,uncontrolled:E.uncontrolled}}return l}}so.isTabbing=!1;/*! + */function X3e(e,t){var r;const n=e.getParent;let o=t;do{const i=(r=pa(e,o))===null||r===void 0?void 0:r.uncontrolled;if(i&&e.uncontrolled.isUncontrolledCompletely(o,!!i.completely))return o;o=n(o)}while(o)}class ao extends Xae{constructor(t,r){super(),this._init=()=>{const n=this._win(),o=n.document;o.addEventListener(wf,this._onFocusIn,!0),o.addEventListener("focusout",this._onFocusOut,!0),n.addEventListener("keydown",this._onKeyDown,!0);const i=o.activeElement;i&&i!==o.body&&this._setFocusedElement(i),this.subscribe(this._onChanged)},this._onFocusIn=n=>{this._setFocusedElement(n.target,n.details.relatedTarget,n.details.isFocusedProgrammatically)},this._onFocusOut=n=>{this._setFocusedElement(void 0,n.relatedTarget)},this._validateFocusedElement=n=>{},this._onKeyDown=n=>{if(n.keyCode!==Dr.Tab||n.ctrlKey)return;const o=this.getVal();if(!o||!o.ownerDocument||o.contentEditable==="true")return;const i=this._tabster,s=i.controlTab,a=Mo.getTabsterContext(i,o);if(!a||a.ignoreKeydown(n))return;const u=n.shiftKey,l=ao.findNextTabbable(i,a,void 0,o,void 0,u,!0),c=a.root.getElement();if(!c)return;const f=l==null?void 0:l.element,d=X3e(i,o);if(f){const h=l.uncontrolled;if(a.uncontrolled||h!=null&&h.contains(o)){if(!l.outOfDOMOrder&&h===a.uncontrolled||d&&!d.contains(f))return;Pb.addPhantomDummyWithTarget(i,o,u,f);return}if(h||f.tagName==="IFRAME"){ig({by:"root",owner:c,next:f,relatedEvent:n})&&Pb.moveWithPhantomDummy(this._tabster,h??f,!1,u,n);return}(s||l!=null&&l.outOfDOMOrder)&&ig({by:"root",owner:c,next:f,relatedEvent:n})&&(n.preventDefault(),n.stopImmediatePropagation(),Af(f))}else!d&&ig({by:"root",owner:c,next:null,relatedEvent:n})&&a.root.moveOutWithDefaultAction(u,n)},this._onChanged=(n,o)=>{var i,s;if(n)l1(n,Mae,o);else{const a=(i=this._lastVal)===null||i===void 0?void 0:i.get();if(a){const u={...o},l=Mo.getTabsterContext(this._tabster,a),c=(s=l==null?void 0:l.modalizer)===null||s===void 0?void 0:s.userId;c&&(u.modalizerId=c),l1(a,Lae,u)}}},this._tabster=t,this._win=r,t.queueInit(this._init)}dispose(){super.dispose();const t=this._win();t.document.removeEventListener(wf,this._onFocusIn,!0),t.document.removeEventListener("focusout",this._onFocusOut,!0),t.removeEventListener("keydown",this._onKeyDown,!0),this.unsubscribe(this._onChanged),delete ao._lastResetElement,delete this._nextVal,delete this._lastVal}static forgetMemorized(t,r){var n,o;let i=ao._lastResetElement,s=i&&i.get();s&&r.contains(s)&&delete ao._lastResetElement,s=(o=(n=t._nextVal)===null||n===void 0?void 0:n.element)===null||o===void 0?void 0:o.get(),s&&r.contains(s)&&delete t._nextVal,i=t._lastVal,s=i&&i.get(),s&&r.contains(s)&&delete t._lastVal}getFocusedElement(){return this.getVal()}getLastFocusedElement(){var t;let r=(t=this._lastVal)===null||t===void 0?void 0:t.get();return(!r||r&&!m8(r.ownerDocument,r))&&(this._lastVal=r=void 0),r}focus(t,r,n){return this._tabster.focusable.isFocusable(t,r,!1,n)?(t.focus(),!0):!1}focusDefault(t){const r=this._tabster.focusable.findDefault({container:t});return r?(this._tabster.focusedElement.focus(r),!0):!1}getFirstOrLastTabbable(t,r){var n;const{container:o,ignoreAccessibility:i}=r;let s;if(o){const a=Mo.getTabsterContext(this._tabster,o);a&&(s=(n=ao.findNextTabbable(this._tabster,a,o,void 0,void 0,!t,i))===null||n===void 0?void 0:n.element)}return s&&!(o!=null&&o.contains(s))&&(s=void 0),s||void 0}_focusFirstOrLast(t,r){const n=this.getFirstOrLastTabbable(t,r);return n?(this.focus(n,!1,!0),!0):!1}focusFirst(t){return this._focusFirstOrLast(!0,t)}focusLast(t){return this._focusFirstOrLast(!1,t)}resetFocus(t){if(!this._tabster.focusable.isVisible(t))return!1;if(this._tabster.focusable.isFocusable(t,!0,!0,!0))this.focus(t);else{const r=t.getAttribute("tabindex"),n=t.getAttribute("aria-hidden");t.tabIndex=-1,t.setAttribute("aria-hidden","true"),ao._lastResetElement=new cu(this._win,t),this.focus(t,!0,!0),this._setOrRemoveAttribute(t,"tabindex",r),this._setOrRemoveAttribute(t,"aria-hidden",n)}return!0}_setOrRemoveAttribute(t,r,n){n===null?t.removeAttribute(r):t.setAttribute(r,n)}_setFocusedElement(t,r,n){var o,i;if(this._tabster._noop)return;const s={relatedTarget:r};if(t){const u=(o=ao._lastResetElement)===null||o===void 0?void 0:o.get();if(ao._lastResetElement=void 0,u===t||Gae(t))return;s.isFocusedProgrammatically=n;const l=Mo.getTabsterContext(this._tabster,t),c=(i=l==null?void 0:l.modalizer)===null||i===void 0?void 0:i.userId;c&&(s.modalizerId=c)}const a=this._nextVal={element:t?new cu(this._win,t):void 0,details:s};t&&t!==this._val&&this._validateFocusedElement(t),this._nextVal===a&&this.setVal(t,s),this._nextVal=void 0}setVal(t,r){super.setVal(t,r),t&&(this._lastVal=new cu(this._win,t))}static findNextTabbable(t,r,n,o,i,s,a){const u=n||r.root.getElement();if(!u)return null;let l=null;const c=ao._isTabbingTimer,f=t.getWindow();c&&f.clearTimeout(c),ao.isTabbing=!0,ao._isTabbingTimer=f.setTimeout(()=>{delete ao._isTabbingTimer,ao.isTabbing=!1},0);const d=r.modalizer,h=r.groupper,g=r.mover,v=y=>{var E;if(l=y.findNextTabbable(o,i,s,a),o&&!(l!=null&&l.element)){const _=y!==d&&((E=y.getElement())===null||E===void 0?void 0:E.parentElement);if(_){const S=Mo.getTabsterContext(t,o,{referenceElement:_});if(S){const b=y.getElement(),A=s?b:b&&Uae(b)||b;A&&(l=ao.findNextTabbable(t,S,n,A,_,s,a),l&&(l.outOfDOMOrder=!0))}}}};if(h&&g)v(r.groupperBeforeMover?h:g);else if(h)v(h);else if(g)v(g);else if(d)v(d);else{const y={container:u,currentElement:o,referenceElement:i,ignoreAccessibility:a,useActiveModalizer:!0},E={};l={element:t.focusable[s?"findPrev":"findNext"](y,E),outOfDOMOrder:E.outOfDOMOrder,uncontrolled:E.uncontrolled}}return l}}ao.isTabbing=!1;/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */class W3e extends qae{constructor(t){super(),this._onChange=r=>{this.setVal(r,void 0)},this._keyborg=kae(t()),this._keyborg.subscribe(this._onChange)}dispose(){super.dispose(),this._keyborg&&(this._keyborg.unsubscribe(this._onChange),Aae(this._keyborg),delete this._keyborg)}setNavigatingWithKeyboard(t){var r;(r=this._keyborg)===null||r===void 0||r.setVal(t)}isNavigatingWithKeyboard(){var t;return!!(!((t=this._keyborg)===null||t===void 0)&&t.isNavigatingWithKeyboard())}}/*! + */class Q3e extends Xae{constructor(t){super(),this._onChange=r=>{this.setVal(r,void 0)},this._keyborg=Rae(t()),this._keyborg.subscribe(this._onChange)}dispose(){super.dispose(),this._keyborg&&(this._keyborg.unsubscribe(this._onChange),Oae(this._keyborg),delete this._keyborg)}setNavigatingWithKeyboard(t){var r;(r=this._keyborg)===null||r===void 0||r.setVal(t)}isNavigatingWithKeyboard(){var t;return!!(!((t=this._keyborg)===null||t===void 0)&&t.isNavigatingWithKeyboard())}}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */let K3e=0;const rN="aria-hidden";class G3e extends zb{constructor(t,r,n){super(r,t,h8.Modalizer,n),this._setHandlers((o,i)=>{var s,a,u;const l=t.get(),c=l&&((s=Bo.getRoot(r,l))===null||s===void 0?void 0:s.getElement()),f=o.input;let d;if(c&&f){const h=(a=f.__tabsterDummyContainer)===null||a===void 0?void 0:a.get(),g=Bo.getTabsterContext(r,h||f);g&&(d=(u=so.findNextTabbable(r,g,c,f,void 0,i,!0))===null||u===void 0?void 0:u.element),d&&wf(d)}})}}class V3e extends xx{constructor(t,r,n,o,i,s){super(t,r,o),this._wasFocused=0,this.userId=o.id,this._onDispose=n,this._activeElements=s,t.controlTab||(this.dummyManager=new G3e(this._element,t,i))}makeActive(t){if(this._isActive!==t){this._isActive=t;const r=this.getElement();if(r){const n=this._activeElements,o=n.map(i=>i.get()).indexOf(r);t?o<0&&n.push(new cu(this._tabster.getWindow,r)):o>=0&&n.splice(o,1)}this.triggerFocusEvent(t?xae:Iae)}}focused(t){return t||(this._wasFocused=++K3e),this._wasFocused}setProps(t){t.id&&(this.userId=t.id),this._props={...t}}dispose(){var t;this.makeActive(!1),this._onDispose(this),(t=this.dummyManager)===null||t===void 0||t.dispose(),delete this.dummyManager,this._activeElements=[],this._remove()}isActive(){return!!this._isActive}contains(t){var r;return!!(!((r=this.getElement())===null||r===void 0)&&r.contains(t))}findNextTabbable(t,r,n,o){var i,s;if(!this.getElement())return null;const u=this._tabster;let l=null,c=!1,f;const d=t&&((i=Bo.getRoot(u,t))===null||i===void 0?void 0:i.getElement());if(d){const h={container:d,currentElement:t,referenceElement:r,ignoreAccessibility:o,useActiveModalizer:!0},g={};l=u.focusable[n?"findPrev":"findNext"](h,g),!l&&this._props.isTrapped&&(!((s=u.modalizer)===null||s===void 0)&&s.activeId)?(l=u.focusable[n?"findLast":"findFirst"]({container:d,ignoreAccessibility:o,useActiveModalizer:!0},g),c=!0):c=!!g.outOfDOMOrder,f=g.uncontrolled}return{element:l,uncontrolled:f,outOfDOMOrder:c}}triggerFocusEvent(t,r){const n=this.getElement();let o=!1;if(n){const i=r?this._activeElements.map(s=>s.get()):[n];for(const s of i)s&&!c1(s,t,{id:this.userId,element:n,eventName:t})&&(o=!0)}return o}_remove(){}}class U3e{constructor(t,r,n){this._onModalizerDispose=i=>{const s=i.id,a=i.userId,u=this._parts[a];delete this._modalizers[s],u&&(delete u[s],Object.keys(u).length===0&&(delete this._parts[a],this.activeId===a&&this.setActive(void 0)))},this._onKeyDown=i=>{var s;if(i.keyCode!==Or.Esc)return;const a=this._tabster,u=a.focusedElement.getFocusedElement();if(u){const l=Bo.getTabsterContext(a,u),c=l==null?void 0:l.modalizer;if(l&&!l.groupper&&(c!=null&&c.isActive())&&!l.ignoreKeydown(i)){const f=c.userId;if(f){const d=this._parts[f];if(d){const h=Object.keys(d).map(g=>{var v;const y=d[g],E=y.getElement();let _;return E&&(_=(v=ha(this._tabster,E))===null||v===void 0?void 0:v.groupper),y&&E&&_?{el:E,focusedSince:y.focused(!0)}:{focusedSince:0}}).filter(g=>g.focusedSince>0).sort((g,v)=>g.focusedSince>v.focusedSince?-1:g.focusedSince{var a,u;const l=i&&Bo.getTabsterContext(this._tabster,i);if(!l||!i)return;const c=this._augMap;for(let d=i;d;d=d.parentElement)c.has(d)&&(c.delete(d),tN(this._tabster,d,rN));const f=l.modalizer;if((u=f||((a=ha(this._tabster,i))===null||a===void 0?void 0:a.modalizer))===null||u===void 0||u.focused(),(f==null?void 0:f.userId)===this.activeId){this.currentIsOthersAccessible=f==null?void 0:f.getProps().isOthersAccessible;return}if(s.isFocusedProgrammatically||this.currentIsOthersAccessible||f!=null&&f.getProps().isAlwaysAccessible)this.setActive(f);else{const d=this._win();d.clearTimeout(this._restoreModalizerFocusTimer),this._restoreModalizerFocusTimer=d.setTimeout(()=>this._restoreModalizerFocus(i),100)}},this._tabster=t,this._win=t.getWindow,this._modalizers={},this._parts={},this._augMap=new WeakMap,this._aug=[],this._alwaysAccessibleSelector=r,this._accessibleCheck=n,this.activeElements=[],t.controlTab||t.root.addDummyInputs(),this._win().addEventListener("keydown",this._onKeyDown,!0),t.queueInit(()=>{this._tabster.focusedElement.subscribe(this._onFocus)})}dispose(){const t=this._win();t.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._modalizers).forEach(r=>{this._modalizers[r]&&(this._modalizers[r].dispose(),delete this._modalizers[r])}),t.clearTimeout(this._restoreModalizerFocusTimer),t.clearTimeout(this._hiddenUpdateTimer),this._parts={},delete this.activeId,this.activeElements=[],this._augMap=new WeakMap,this._aug=[],this._tabster.focusedElement.unsubscribe(this._onFocus)}createModalizer(t,r,n){var o;const i=new V3e(this._tabster,t,this._onModalizerDispose,r,n,this.activeElements),s=i.id,a=r.id;this._modalizers[s]=i;let u=this._parts[a];return u||(u=this._parts[a]={}),u[s]=i,t.contains((o=this._tabster.focusedElement.getFocusedElement())!==null&&o!==void 0?o:null)&&(a!==this.activeId?this.setActive(i):i.makeActive(!0)),i}isAugmented(t){return this._augMap.has(t)}hiddenUpdate(){this._hiddenUpdateTimer||(this._hiddenUpdateTimer=this._win().setTimeout(()=>{delete this._hiddenUpdateTimer,this._hiddenUpdate()},250))}setActive(t){const r=t==null?void 0:t.userId,n=this.activeId;if(n!==r){if(this.activeId=r,n){const o=this._parts[n];if(o)for(const i of Object.keys(o))o[i].makeActive(!1)}if(r){const o=this._parts[r];if(o)for(const i of Object.keys(o))o[i].makeActive(!0)}this.currentIsOthersAccessible=t==null?void 0:t.getProps().isOthersAccessible,this.hiddenUpdate()}}focus(t,r,n){const o=Bo.getTabsterContext(this._tabster,t),i=o==null?void 0:o.modalizer;if(i){this.setActive(i);const s=i.getProps(),a=i.getElement();if(a){if(r===void 0&&(r=s.isNoFocusFirst),!r&&this._tabster.keyboardNavigation.isNavigatingWithKeyboard()&&this._tabster.focusedElement.focusFirst({container:a})||(n===void 0&&(n=s.isNoFocusDefault),!n&&this._tabster.focusedElement.focusDefault(a)))return!0;this._tabster.focusedElement.resetFocus(a)}}return!1}acceptElement(t,r){var n;const o=r.modalizerUserId,i=(n=r.currentCtx)===null||n===void 0?void 0:n.modalizer;if(o)for(const a of this.activeElements){const u=a.get();if(u&&(t.contains(u)||u===t))return NodeFilter.FILTER_SKIP}const s=o===(i==null?void 0:i.userId)||!o&&(i!=null&&i.getProps().isAlwaysAccessible)?void 0:NodeFilter.FILTER_SKIP;return s!==void 0&&(r.skippedFocusable=!0),s}_hiddenUpdate(){var t;const r=this._tabster,n=r.getWindow().document.body,o=this.activeId,i=this._parts,s=[],a=[],u=this._alwaysAccessibleSelector,l=u?Array.from(n.querySelectorAll(u)):[],c=[];for(const E of Object.keys(i)){const _=i[E];for(const S of Object.keys(_)){const b=_[S],A=b.getElement(),T=b.getProps().isAlwaysAccessible;A&&(E===o?(c.push(A),this.currentIsOthersAccessible||s.push(A)):T?l.push(A):a.push(A))}}const f=this._augMap,d=s.length>0?[...s,...l]:void 0,h=[],g=new WeakMap,v=(E,_)=>{var S;const b=E.tagName;if(b==="SCRIPT"||b==="STYLE")return;let A=!1;f.has(E)?_?A=!0:(f.delete(E),tN(r,E,rN)):_&&!(!((S=this._accessibleCheck)===null||S===void 0)&&S.call(this,E,c))&&tN(r,E,rN,"true")&&(f.set(E,!0),A=!0),A&&(h.push(new cu(r.getWindow,E)),g.set(E,!0))},y=E=>{for(let _=E.firstElementChild;_;_=_.nextElementSibling){let S=!1,b=!1;if(d){for(const A of d){if(_===A){S=!0;break}if(_.contains(A)){b=!0;break}}b?y(_):S||v(_,!0)}else v(_,!1)}};d||l.forEach(E=>v(E,!1)),a.forEach(E=>v(E,!0)),n&&y(n),(t=this._aug)===null||t===void 0||t.map(E=>E.get()).forEach(E=>{E&&!g.get(E)&&v(E,!1)}),this._aug=h,this._augMap=g}_restoreModalizerFocus(t){const r=t==null?void 0:t.ownerDocument;if(!t||!r)return;const n=Bo.getTabsterContext(this._tabster,t),o=n==null?void 0:n.modalizer,i=this.activeId;if(!o&&!i||o&&i===o.userId)return;const s=n==null?void 0:n.root.getElement();if(s){let a=this._tabster.focusable.findFirst({container:s,useActiveModalizer:!0});if(a){if(t.compareDocumentPosition(a)&document.DOCUMENT_POSITION_PRECEDING&&(a=this._tabster.focusable.findLast({container:s,useActiveModalizer:!0}),!a))throw new Error("Something went wrong.");this._tabster.focusedElement.focus(a);return}}t.blur()}}/*! + */let Z3e=0;const sC="aria-hidden";class J3e extends Pb{constructor(t,r,n){super(r,t,y8.Modalizer,n),this._setHandlers((o,i)=>{var s,a,u;const l=t.get(),c=l&&((s=Mo.getRoot(r,l))===null||s===void 0?void 0:s.getElement()),f=o.input;let d;if(c&&f){const h=(a=f.__tabsterDummyContainer)===null||a===void 0?void 0:a.get(),g=Mo.getTabsterContext(r,h||f);g&&(d=(u=ao.findNextTabbable(r,g,c,f,void 0,i,!0))===null||u===void 0?void 0:u.element),d&&Af(d)}})}}class eFe extends RT{constructor(t,r,n,o,i,s){super(t,r,o),this._wasFocused=0,this.userId=o.id,this._onDispose=n,this._activeElements=s,t.controlTab||(this.dummyManager=new J3e(this._element,t,i))}makeActive(t){if(this._isActive!==t){this._isActive=t;const r=this.getElement();if(r){const n=this._activeElements,o=n.map(i=>i.get()).indexOf(r);t?o<0&&n.push(new cu(this._tabster.getWindow,r)):o>=0&&n.splice(o,1)}this.triggerFocusEvent(t?Fae:Bae)}}focused(t){return t||(this._wasFocused=++Z3e),this._wasFocused}setProps(t){t.id&&(this.userId=t.id),this._props={...t}}dispose(){var t;this.makeActive(!1),this._onDispose(this),(t=this.dummyManager)===null||t===void 0||t.dispose(),delete this.dummyManager,this._activeElements=[],this._remove()}isActive(){return!!this._isActive}contains(t){var r;return!!(!((r=this.getElement())===null||r===void 0)&&r.contains(t))}findNextTabbable(t,r,n,o){var i,s;if(!this.getElement())return null;const u=this._tabster;let l=null,c=!1,f;const d=t&&((i=Mo.getRoot(u,t))===null||i===void 0?void 0:i.getElement());if(d){const h={container:d,currentElement:t,referenceElement:r,ignoreAccessibility:o,useActiveModalizer:!0},g={};l=u.focusable[n?"findPrev":"findNext"](h,g),!l&&this._props.isTrapped&&(!((s=u.modalizer)===null||s===void 0)&&s.activeId)?(l=u.focusable[n?"findLast":"findFirst"]({container:d,ignoreAccessibility:o,useActiveModalizer:!0},g),c=!0):c=!!g.outOfDOMOrder,f=g.uncontrolled}return{element:l,uncontrolled:f,outOfDOMOrder:c}}triggerFocusEvent(t,r){const n=this.getElement();let o=!1;if(n){const i=r?this._activeElements.map(s=>s.get()):[n];for(const s of i)s&&!l1(s,t,{id:this.userId,element:n,eventName:t})&&(o=!0)}return o}_remove(){}}class tFe{constructor(t,r,n){this._onModalizerDispose=i=>{const s=i.id,a=i.userId,u=this._parts[a];delete this._modalizers[s],u&&(delete u[s],Object.keys(u).length===0&&(delete this._parts[a],this.activeId===a&&this.setActive(void 0)))},this._onKeyDown=i=>{var s;if(i.keyCode!==Dr.Esc)return;const a=this._tabster,u=a.focusedElement.getFocusedElement();if(u){const l=Mo.getTabsterContext(a,u),c=l==null?void 0:l.modalizer;if(l&&!l.groupper&&(c!=null&&c.isActive())&&!l.ignoreKeydown(i)){const f=c.userId;if(f){const d=this._parts[f];if(d){const h=Object.keys(d).map(g=>{var v;const y=d[g],E=y.getElement();let _;return E&&(_=(v=pa(this._tabster,E))===null||v===void 0?void 0:v.groupper),y&&E&&_?{el:E,focusedSince:y.focused(!0)}:{focusedSince:0}}).filter(g=>g.focusedSince>0).sort((g,v)=>g.focusedSince>v.focusedSince?-1:g.focusedSince{var a,u;const l=i&&Mo.getTabsterContext(this._tabster,i);if(!l||!i)return;const c=this._augMap;for(let d=i;d;d=d.parentElement)c.has(d)&&(c.delete(d),iC(this._tabster,d,sC));const f=l.modalizer;if((u=f||((a=pa(this._tabster,i))===null||a===void 0?void 0:a.modalizer))===null||u===void 0||u.focused(),(f==null?void 0:f.userId)===this.activeId){this.currentIsOthersAccessible=f==null?void 0:f.getProps().isOthersAccessible;return}if(s.isFocusedProgrammatically||this.currentIsOthersAccessible||f!=null&&f.getProps().isAlwaysAccessible)this.setActive(f);else{const d=this._win();d.clearTimeout(this._restoreModalizerFocusTimer),this._restoreModalizerFocusTimer=d.setTimeout(()=>this._restoreModalizerFocus(i),100)}},this._tabster=t,this._win=t.getWindow,this._modalizers={},this._parts={},this._augMap=new WeakMap,this._aug=[],this._alwaysAccessibleSelector=r,this._accessibleCheck=n,this.activeElements=[],t.controlTab||t.root.addDummyInputs(),this._win().addEventListener("keydown",this._onKeyDown,!0),t.queueInit(()=>{this._tabster.focusedElement.subscribe(this._onFocus)})}dispose(){const t=this._win();t.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._modalizers).forEach(r=>{this._modalizers[r]&&(this._modalizers[r].dispose(),delete this._modalizers[r])}),t.clearTimeout(this._restoreModalizerFocusTimer),t.clearTimeout(this._hiddenUpdateTimer),this._parts={},delete this.activeId,this.activeElements=[],this._augMap=new WeakMap,this._aug=[],this._tabster.focusedElement.unsubscribe(this._onFocus)}createModalizer(t,r,n){var o;const i=new eFe(this._tabster,t,this._onModalizerDispose,r,n,this.activeElements),s=i.id,a=r.id;this._modalizers[s]=i;let u=this._parts[a];return u||(u=this._parts[a]={}),u[s]=i,t.contains((o=this._tabster.focusedElement.getFocusedElement())!==null&&o!==void 0?o:null)&&(a!==this.activeId?this.setActive(i):i.makeActive(!0)),i}isAugmented(t){return this._augMap.has(t)}hiddenUpdate(){this._hiddenUpdateTimer||(this._hiddenUpdateTimer=this._win().setTimeout(()=>{delete this._hiddenUpdateTimer,this._hiddenUpdate()},250))}setActive(t){const r=t==null?void 0:t.userId,n=this.activeId;if(n!==r){if(this.activeId=r,n){const o=this._parts[n];if(o)for(const i of Object.keys(o))o[i].makeActive(!1)}if(r){const o=this._parts[r];if(o)for(const i of Object.keys(o))o[i].makeActive(!0)}this.currentIsOthersAccessible=t==null?void 0:t.getProps().isOthersAccessible,this.hiddenUpdate()}}focus(t,r,n){const o=Mo.getTabsterContext(this._tabster,t),i=o==null?void 0:o.modalizer;if(i){this.setActive(i);const s=i.getProps(),a=i.getElement();if(a){if(r===void 0&&(r=s.isNoFocusFirst),!r&&this._tabster.keyboardNavigation.isNavigatingWithKeyboard()&&this._tabster.focusedElement.focusFirst({container:a})||(n===void 0&&(n=s.isNoFocusDefault),!n&&this._tabster.focusedElement.focusDefault(a)))return!0;this._tabster.focusedElement.resetFocus(a)}}return!1}acceptElement(t,r){var n;const o=r.modalizerUserId,i=(n=r.currentCtx)===null||n===void 0?void 0:n.modalizer;if(o)for(const a of this.activeElements){const u=a.get();if(u&&(t.contains(u)||u===t))return NodeFilter.FILTER_SKIP}const s=o===(i==null?void 0:i.userId)||!o&&(i!=null&&i.getProps().isAlwaysAccessible)?void 0:NodeFilter.FILTER_SKIP;return s!==void 0&&(r.skippedFocusable=!0),s}_hiddenUpdate(){var t;const r=this._tabster,n=r.getWindow().document.body,o=this.activeId,i=this._parts,s=[],a=[],u=this._alwaysAccessibleSelector,l=u?Array.from(n.querySelectorAll(u)):[],c=[];for(const E of Object.keys(i)){const _=i[E];for(const S of Object.keys(_)){const b=_[S],A=b.getElement(),x=b.getProps().isAlwaysAccessible;A&&(E===o?(c.push(A),this.currentIsOthersAccessible||s.push(A)):x?l.push(A):a.push(A))}}const f=this._augMap,d=s.length>0?[...s,...l]:void 0,h=[],g=new WeakMap,v=(E,_)=>{var S;const b=E.tagName;if(b==="SCRIPT"||b==="STYLE")return;let A=!1;f.has(E)?_?A=!0:(f.delete(E),iC(r,E,sC)):_&&!(!((S=this._accessibleCheck)===null||S===void 0)&&S.call(this,E,c))&&iC(r,E,sC,"true")&&(f.set(E,!0),A=!0),A&&(h.push(new cu(r.getWindow,E)),g.set(E,!0))},y=E=>{for(let _=E.firstElementChild;_;_=_.nextElementSibling){let S=!1,b=!1;if(d){for(const A of d){if(_===A){S=!0;break}if(_.contains(A)){b=!0;break}}b?y(_):S||v(_,!0)}else v(_,!1)}};d||l.forEach(E=>v(E,!1)),a.forEach(E=>v(E,!0)),n&&y(n),(t=this._aug)===null||t===void 0||t.map(E=>E.get()).forEach(E=>{E&&!g.get(E)&&v(E,!1)}),this._aug=h,this._augMap=g}_restoreModalizerFocus(t){const r=t==null?void 0:t.ownerDocument;if(!t||!r)return;const n=Mo.getTabsterContext(this._tabster,t),o=n==null?void 0:n.modalizer,i=this.activeId;if(!o&&!i||o&&i===o.userId)return;const s=n==null?void 0:n.root.getElement();if(s){let a=this._tabster.focusable.findFirst({container:s,useActiveModalizer:!0});if(a){if(t.compareDocumentPosition(a)&document.DOCUMENT_POSITION_PRECEDING&&(a=this._tabster.focusable.findLast({container:s,useActiveModalizer:!0}),!a))throw new Error("Something went wrong.");this._tabster.focusedElement.focus(a);return}}t.blur()}}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */const Y3e=["input","textarea","*[contenteditable]"].join(", ");class X3e extends zb{constructor(t,r,n,o){super(r,t,h8.Mover,o),this._onFocusDummyInput=i=>{var s,a;const u=this._element.get(),l=i.input;if(u&&l){const c=Bo.getTabsterContext(this._tabster,u);let f;c&&(f=(s=so.findNextTabbable(this._tabster,c,void 0,l,void 0,!i.isFirst,!0))===null||s===void 0?void 0:s.element);const d=(a=this._getMemorized())===null||a===void 0?void 0:a.get();d&&(f=d),f&&wf(f)}},this._tabster=r,this._getMemorized=n,this._setHandlers(this._onFocusDummyInput)}}const nN=1,rK=2,nK=3;class Q3e extends xx{constructor(t,r,n,o,i){var s;super(t,r,o),this._visible={},this._onIntersection=u=>{for(const l of u){const c=l.target,f=kk(this._win,c);let d,h=this._fullyVisible;if(l.intersectionRatio>=.25?(d=l.intersectionRatio>=.75?Uc.Visible:Uc.PartiallyVisible,d===Uc.Visible&&(h=f)):d=Uc.Invisible,this._visible[f]!==d){d===void 0?(delete this._visible[f],h===f&&delete this._fullyVisible):(this._visible[f]=d,this._fullyVisible=h);const g=this.getState(c);g&&c1(c,iB,g)}}},this._win=t.getWindow,this.visibilityTolerance=(s=o.visibilityTolerance)!==null&&s!==void 0?s:.8,(this._props.trackState||this._props.visibilityAware)&&(this._intersectionObserver=new IntersectionObserver(this._onIntersection,{threshold:[0,.25,.5,.75,1]}),this._observeState()),this._onDispose=n;const a=()=>o.memorizeCurrent?this._current:void 0;t.controlTab||(this.dummyManager=new X3e(this._element,t,a,i))}dispose(){var t;this._onDispose(this),this._intersectionObserver&&(this._intersectionObserver.disconnect(),delete this._intersectionObserver),delete this._current,delete this._fullyVisible,delete this._allElements,delete this._updateQueue,this._unobserve&&(this._unobserve(),delete this._unobserve);const r=this._win();this._setCurrentTimer&&(r.clearTimeout(this._setCurrentTimer),delete this._setCurrentTimer),this._updateTimer&&(r.clearTimeout(this._updateTimer),delete this._updateTimer),(t=this.dummyManager)===null||t===void 0||t.dispose(),delete this.dummyManager}setCurrent(t){t?this._current=new cu(this._win,t):this._current=void 0,(this._props.trackState||this._props.visibilityAware)&&!this._setCurrentTimer&&(this._setCurrentTimer=this._win().setTimeout(()=>{var r;delete this._setCurrentTimer;const n=[];this._current!==this._prevCurrent&&(n.push(this._current),n.push(this._prevCurrent),this._prevCurrent=this._current);for(const o of n){const i=o==null?void 0:o.get();if(i&&((r=this._allElements)===null||r===void 0?void 0:r.get(i))===this){const s=this._props;if(i&&(s.visibilityAware!==void 0||s.trackState)){const a=this.getState(i);a&&c1(i,iB,a)}}}}))}getCurrent(){var t;return((t=this._current)===null||t===void 0?void 0:t.get())||null}findNextTabbable(t,r,n,o){var i;const s=this.getElement(),a=s&&((i=t==null?void 0:t.__tabsterDummyContainer)===null||i===void 0?void 0:i.get())===s;if(!s)return null;let u=null,l=!1,c;if(this._props.tabbable||a||t&&!s.contains(t)){const f={currentElement:t,referenceElement:r,container:s,ignoreAccessibility:o,useActiveModalizer:!0},d={};u=this._tabster.focusable[n?"findPrev":"findNext"](f,d),l=!!d.outOfDOMOrder,c=d.uncontrolled}return{element:u,uncontrolled:c,outOfDOMOrder:l}}acceptElement(t,r){var n,o,i;if(!so.isTabbing)return!((n=r.currentCtx)===null||n===void 0)&&n.excludedFromMover?NodeFilter.FILTER_REJECT:void 0;const{memorizeCurrent:s,visibilityAware:a,hasDefault:u=!0}=this._props,l=this.getElement();if(l&&(s||a||u)&&(!l.contains(r.from)||((o=r.from.__tabsterDummyContainer)===null||o===void 0?void 0:o.get())===l)){let c;if(s){const f=(i=this._current)===null||i===void 0?void 0:i.get();f&&r.acceptCondition(f)&&(c=f)}if(!c&&u&&(c=this._tabster.focusable.findDefault({container:l,useActiveModalizer:!0})),!c&&a&&(c=this._tabster.focusable.findElement({container:l,useActiveModalizer:!0,isBackward:r.isBackward,acceptCondition:f=>{var d;const h=kk(this._win,f),g=this._visible[h];return l!==f&&!!(!((d=this._allElements)===null||d===void 0)&&d.get(f))&&r.acceptCondition(f)&&(g===Uc.Visible||g===Uc.PartiallyVisible&&(a===Uc.PartiallyVisible||!this._fullyVisible))}})),c)return r.found=!0,r.foundElement=c,r.rejectElementsFrom=l,r.skippedFocusable=!0,NodeFilter.FILTER_ACCEPT}}_observeState(){const t=this.getElement();if(this._unobserve||!t||typeof MutationObserver>"u")return;const r=this._win(),n=this._allElements=new WeakMap,o=this._tabster.focusable;let i=this._updateQueue=[];const s=new MutationObserver(h=>{for(const g of h){const v=g.target,y=g.removedNodes,E=g.addedNodes;if(g.type==="attributes")g.attributeName==="tabindex"&&i.push({element:v,type:rK});else{for(let _=0;_{var v,y;const E=n.get(h);E&&g&&((v=this._intersectionObserver)===null||v===void 0||v.unobserve(h),n.delete(h)),!E&&!g&&(n.set(h,this),(y=this._intersectionObserver)===null||y===void 0||y.observe(h))},u=h=>{const g=o.isFocusable(h);n.get(h)?g||a(h,!0):g&&a(h)},l=h=>{const{mover:g}=d(h);if(g&&g!==this)if(g.getElement()===h&&o.isFocusable(h))a(h);else return;const v=f8(r.document,h,y=>{const{mover:E,groupper:_}=d(y);if(E&&E!==this)return NodeFilter.FILTER_REJECT;const S=_==null?void 0:_.getFirst(!0);return _&&_.getElement()!==y&&S&&S!==y?NodeFilter.FILTER_REJECT:(o.isFocusable(y)&&a(y),NodeFilter.FILTER_SKIP)});if(v)for(v.currentNode=h;v.nextNode(););},c=h=>{n.get(h)&&a(h,!0);for(let v=h.firstElementChild;v;v=v.nextElementSibling)c(v)},f=()=>{!this._updateTimer&&i.length&&(this._updateTimer=r.setTimeout(()=>{delete this._updateTimer;for(const{element:h,type:g}of i)switch(g){case rK:u(h);break;case nN:l(h);break;case nK:c(h);break}i=this._updateQueue=[]},0))},d=h=>{const g={};for(let v=h;v;v=v.parentElement){const y=ha(this._tabster,v);if(y&&(y.groupper&&!g.groupper&&(g.groupper=y.groupper),y.mover)){g.mover=y.mover;break}}return g};i.push({element:t,type:nN}),f(),s.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["tabindex"]}),this._unobserve=()=>{s.disconnect()}}getState(t){const r=kk(this._win,t);if(r in this._visible){const n=this._visible[r]||Uc.Invisible;return{isCurrent:this._current?this._current.get()===t:void 0,visibility:n}}}}function Z3e(e,t,r,n,o,i,s,a){const u=r{this._win().addEventListener("keydown",this._onKeyDown,!0),this._tabster.focusedElement.subscribe(this._onFocus)},this._onMoverDispose=n=>{delete this._movers[n.id]},this._onFocus=n=>{var o;let i=n,s=n;for(let a=n==null?void 0:n.parentElement;a;a=a.parentElement){const u=(o=ha(this._tabster,a))===null||o===void 0?void 0:o.mover;u&&(u.setCurrent(s),i=void 0),!i&&this._tabster.focusable.isFocusable(a)&&(i=s=a)}},this._onKeyDown=async n=>{var o,i,s,a;this._ignoredInputTimer&&(this._win().clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),(o=this._ignoredInputResolve)===null||o===void 0||o.call(this,!1);let u=n.keyCode;if(n.ctrlKey||n.altKey||n.shiftKey||n.metaKey)return;switch(u){case Or.Down:case Or.Right:case Or.Up:case Or.Left:case Or.PageDown:case Or.PageUp:case Or.Home:case Or.End:break;default:return}const l=this._tabster,c=l.focusedElement.getFocusedElement();if(!c||await this._isIgnoredInput(c,u))return;const f=Bo.getTabsterContext(l,c,{checkRtl:!0});if(!f||!f.mover||f.excludedFromMover||f.ignoreKeydown(n))return;const d=f.mover,h=d.getElement();if(f.groupperBeforeMover){const L=f.groupper;if(L&&!L.isActive(!0)){for(let M=(i=L.getElement())===null||i===void 0?void 0:i.parentElement;M&&M!==h;M=M.parentElement)if(!((a=(s=ha(l,M))===null||s===void 0?void 0:s.groupper)===null||a===void 0)&&a.isActive(!0))return}else return}if(!h)return;const g=l.focusable,v=d.getProps(),y=v.direction||th.Both,E=y===th.Both,_=E||y===th.Vertical,S=E||y===th.Horizontal,b=y===th.GridLinear,A=b||y===th.Grid,x=v.cyclic;let T,N,I,R=0,D=0;if(A&&(I=c.getBoundingClientRect(),R=Math.ceil(I.left),D=Math.floor(I.right)),f.rtl&&(u===Or.Right?u=Or.Left:u===Or.Left&&(u=Or.Right)),u===Or.Down&&_||u===Or.Right&&(S||A))if(T=g.findNext({currentElement:c,container:h,useActiveModalizer:!0}),T&&A){const L=Math.ceil(T.getBoundingClientRect().left);!b&&D>L&&(T=void 0)}else!T&&x&&(T=g.findFirst({container:h,useActiveModalizer:!0}));else if(u===Or.Up&&_||u===Or.Left&&(S||A))if(T=g.findPrev({currentElement:c,container:h,useActiveModalizer:!0}),T&&A){const L=Math.floor(T.getBoundingClientRect().right);!b&&L>R&&(T=void 0)}else!T&&x&&(T=g.findLast({container:h,useActiveModalizer:!0}));else if(u===Or.Home)A?g.findElement({container:h,currentElement:c,useActiveModalizer:!0,isBackward:!0,acceptCondition:L=>{var M;if(!g.isFocusable(L))return!1;const q=Math.ceil((M=L.getBoundingClientRect().left)!==null&&M!==void 0?M:0);return L!==c&&R<=q?!0:(T=L,!1)}}):T=g.findFirst({container:h,useActiveModalizer:!0});else if(u===Or.End)A?g.findElement({container:h,currentElement:c,useActiveModalizer:!0,acceptCondition:L=>{var M;if(!g.isFocusable(L))return!1;const q=Math.ceil((M=L.getBoundingClientRect().left)!==null&&M!==void 0?M:0);return L!==c&&R>=q?!0:(T=L,!1)}}):T=g.findLast({container:h,useActiveModalizer:!0});else if(u===Or.PageUp){if(g.findElement({currentElement:c,container:h,useActiveModalizer:!0,isBackward:!0,acceptCondition:L=>g.isFocusable(L)?JW(this._win,L,d.visibilityTolerance)?(T=L,!1):!0:!1}),A&&T){const L=Math.ceil(T.getBoundingClientRect().left);g.findElement({currentElement:T,container:h,useActiveModalizer:!0,acceptCondition:M=>{if(!g.isFocusable(M))return!1;const q=Math.ceil(M.getBoundingClientRect().left);return R=q?!0:(T=M,!1)}})}N=!1}else if(u===Or.PageDown){if(g.findElement({currentElement:c,container:h,useActiveModalizer:!0,acceptCondition:L=>g.isFocusable(L)?JW(this._win,L,d.visibilityTolerance)?(T=L,!1):!0:!1}),A&&T){const L=Math.ceil(T.getBoundingClientRect().left);g.findElement({currentElement:T,container:h,useActiveModalizer:!0,isBackward:!0,acceptCondition:M=>{if(!g.isFocusable(M))return!1;const q=Math.ceil(M.getBoundingClientRect().left);return R>q||L<=q?!0:(T=M,!1)}})}N=!0}else if(A){const L=u===Or.Up,M=R,q=Math.ceil(I.top),z=D,B=Math.floor(I.bottom);let P,K,U=0;g.findAll({container:h,currentElement:c,isBackward:L,onElement:X=>{const J=X.getBoundingClientRect(),ee=Math.ceil(J.left),se=Math.ceil(J.top),pe=Math.floor(J.right),_e=Math.floor(J.bottom);if(L&&q<_e||!L&&B>se)return!0;const Te=Math.ceil(Math.min(z,pe))-Math.floor(Math.max(M,ee)),me=Math.ceil(Math.min(z-M,pe-ee));if(Te>0&&me>=Te){const Ae=Te/me;Ae>U&&(P=X,U=Ae)}else if(U===0){const Ae=Z3e(M,q,z,B,ee,se,pe,_e);(K===void 0||Ae0)return!1;return!0}}),T=P}T&&og({by:"mover",owner:h,next:T,relatedEvent:n})&&(N!==void 0&&R3e(this._win,T,N),n.preventDefault(),n.stopImmediatePropagation(),wf(T))},this._tabster=t,this._win=r,this._movers={},t.queueInit(this._init)}dispose(){var t;const r=this._win();this._tabster.focusedElement.unsubscribe(this._onFocus),(t=this._ignoredInputResolve)===null||t===void 0||t.call(this,!1),this._ignoredInputTimer&&(r.clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),r.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._movers).forEach(n=>{this._movers[n]&&(this._movers[n].dispose(),delete this._movers[n])})}createMover(t,r,n){const o=new Q3e(this._tabster,t,this._onMoverDispose,r,n);return this._movers[o.id]=o,o}async _isIgnoredInput(t,r){var n;if(t.getAttribute("aria-expanded")==="true"&&t.hasAttribute("aria-activedescendant"))return!0;if(Hae(t,Y3e)){let o=0,i=0,s=0,a;if(t.tagName==="INPUT"||t.tagName==="TEXTAREA"){const u=t.type;if(s=(t.value||"").length,u==="email"||u==="number"){if(s){const c=(n=t.ownerDocument.defaultView)===null||n===void 0?void 0:n.getSelection();if(c){const f=c.toString().length,d=r===Or.Left||r===Or.Up;if(c.modify("extend",d?"backward":"forward","character"),f!==c.toString().length)return c.modify("extend",d?"forward":"backward","character"),!0;s=0}}}else{const c=t.selectionStart;if(c===null)return u==="hidden";o=c||0,i=t.selectionEnd||0}}else t.contentEditable==="true"&&(a=new(F3e(this._win))(u=>{this._ignoredInputResolve=g=>{delete this._ignoredInputResolve,u(g)};const l=this._win();this._ignoredInputTimer&&l.clearTimeout(this._ignoredInputTimer);const{anchorNode:c,focusNode:f,anchorOffset:d,focusOffset:h}=l.getSelection()||{};this._ignoredInputTimer=l.setTimeout(()=>{var g,v,y;delete this._ignoredInputTimer;const{anchorNode:E,focusNode:_,anchorOffset:S,focusOffset:b}=l.getSelection()||{};if(E!==c||_!==f||S!==d||b!==h){(g=this._ignoredInputResolve)===null||g===void 0||g.call(this,!1);return}if(o=S||0,i=b||0,s=((v=t.textContent)===null||v===void 0?void 0:v.length)||0,E&&_&&t.contains(E)&&t.contains(_)&&E!==t){let A=!1;const x=T=>{if(T===E)A=!0;else if(T===_)return!0;const N=T.textContent;if(N&&!T.firstChild){const R=N.length;A?_!==E&&(i+=R):(o+=R,i+=R)}let I=!1;for(let R=T.firstChild;R&&!I;R=R.nextSibling)I=x(R);return I};x(t)}(y=this._ignoredInputResolve)===null||y===void 0||y.call(this,!0)},0)}));if(a&&!await a||o!==i||o>0&&(r===Or.Left||r===Or.Up||r===Or.Home)||o{var s,a;const u=this._element.get(),l=i.input;if(u&&l){const c=Mo.getTabsterContext(this._tabster,u);let f;c&&(f=(s=ao.findNextTabbable(this._tabster,c,void 0,l,void 0,!i.isFirst,!0))===null||s===void 0?void 0:s.element);const d=(a=this._getMemorized())===null||a===void 0?void 0:a.get();d&&(f=d),f&&Af(f)}},this._tabster=r,this._getMemorized=n,this._setHandlers(this._onFocusDummyInput)}}const aC=1,cK=2,fK=3;class oFe extends RT{constructor(t,r,n,o,i){var s;super(t,r,o),this._visible={},this._onIntersection=u=>{for(const l of u){const c=l.target,f=IA(this._win,c);let d,h=this._fullyVisible;if(l.intersectionRatio>=.25?(d=l.intersectionRatio>=.75?Yc.Visible:Yc.PartiallyVisible,d===Yc.Visible&&(h=f)):d=Yc.Invisible,this._visible[f]!==d){d===void 0?(delete this._visible[f],h===f&&delete this._fullyVisible):(this._visible[f]=d,this._fullyVisible=h);const g=this.getState(c);g&&l1(c,lB,g)}}},this._win=t.getWindow,this.visibilityTolerance=(s=o.visibilityTolerance)!==null&&s!==void 0?s:.8,(this._props.trackState||this._props.visibilityAware)&&(this._intersectionObserver=new IntersectionObserver(this._onIntersection,{threshold:[0,.25,.5,.75,1]}),this._observeState()),this._onDispose=n;const a=()=>o.memorizeCurrent?this._current:void 0;t.controlTab||(this.dummyManager=new nFe(this._element,t,a,i))}dispose(){var t;this._onDispose(this),this._intersectionObserver&&(this._intersectionObserver.disconnect(),delete this._intersectionObserver),delete this._current,delete this._fullyVisible,delete this._allElements,delete this._updateQueue,this._unobserve&&(this._unobserve(),delete this._unobserve);const r=this._win();this._setCurrentTimer&&(r.clearTimeout(this._setCurrentTimer),delete this._setCurrentTimer),this._updateTimer&&(r.clearTimeout(this._updateTimer),delete this._updateTimer),(t=this.dummyManager)===null||t===void 0||t.dispose(),delete this.dummyManager}setCurrent(t){t?this._current=new cu(this._win,t):this._current=void 0,(this._props.trackState||this._props.visibilityAware)&&!this._setCurrentTimer&&(this._setCurrentTimer=this._win().setTimeout(()=>{var r;delete this._setCurrentTimer;const n=[];this._current!==this._prevCurrent&&(n.push(this._current),n.push(this._prevCurrent),this._prevCurrent=this._current);for(const o of n){const i=o==null?void 0:o.get();if(i&&((r=this._allElements)===null||r===void 0?void 0:r.get(i))===this){const s=this._props;if(i&&(s.visibilityAware!==void 0||s.trackState)){const a=this.getState(i);a&&l1(i,lB,a)}}}}))}getCurrent(){var t;return((t=this._current)===null||t===void 0?void 0:t.get())||null}findNextTabbable(t,r,n,o){var i;const s=this.getElement(),a=s&&((i=t==null?void 0:t.__tabsterDummyContainer)===null||i===void 0?void 0:i.get())===s;if(!s)return null;let u=null,l=!1,c;if(this._props.tabbable||a||t&&!s.contains(t)){const f={currentElement:t,referenceElement:r,container:s,ignoreAccessibility:o,useActiveModalizer:!0},d={};u=this._tabster.focusable[n?"findPrev":"findNext"](f,d),l=!!d.outOfDOMOrder,c=d.uncontrolled}return{element:u,uncontrolled:c,outOfDOMOrder:l}}acceptElement(t,r){var n,o,i;if(!ao.isTabbing)return!((n=r.currentCtx)===null||n===void 0)&&n.excludedFromMover?NodeFilter.FILTER_REJECT:void 0;const{memorizeCurrent:s,visibilityAware:a,hasDefault:u=!0}=this._props,l=this.getElement();if(l&&(s||a||u)&&(!l.contains(r.from)||((o=r.from.__tabsterDummyContainer)===null||o===void 0?void 0:o.get())===l)){let c;if(s){const f=(i=this._current)===null||i===void 0?void 0:i.get();f&&r.acceptCondition(f)&&(c=f)}if(!c&&u&&(c=this._tabster.focusable.findDefault({container:l,useActiveModalizer:!0})),!c&&a&&(c=this._tabster.focusable.findElement({container:l,useActiveModalizer:!0,isBackward:r.isBackward,acceptCondition:f=>{var d;const h=IA(this._win,f),g=this._visible[h];return l!==f&&!!(!((d=this._allElements)===null||d===void 0)&&d.get(f))&&r.acceptCondition(f)&&(g===Yc.Visible||g===Yc.PartiallyVisible&&(a===Yc.PartiallyVisible||!this._fullyVisible))}})),c)return r.found=!0,r.foundElement=c,r.rejectElementsFrom=l,r.skippedFocusable=!0,NodeFilter.FILTER_ACCEPT}}_observeState(){const t=this.getElement();if(this._unobserve||!t||typeof MutationObserver>"u")return;const r=this._win(),n=this._allElements=new WeakMap,o=this._tabster.focusable;let i=this._updateQueue=[];const s=new MutationObserver(h=>{for(const g of h){const v=g.target,y=g.removedNodes,E=g.addedNodes;if(g.type==="attributes")g.attributeName==="tabindex"&&i.push({element:v,type:cK});else{for(let _=0;_{var v,y;const E=n.get(h);E&&g&&((v=this._intersectionObserver)===null||v===void 0||v.unobserve(h),n.delete(h)),!E&&!g&&(n.set(h,this),(y=this._intersectionObserver)===null||y===void 0||y.observe(h))},u=h=>{const g=o.isFocusable(h);n.get(h)?g||a(h,!0):g&&a(h)},l=h=>{const{mover:g}=d(h);if(g&&g!==this)if(g.getElement()===h&&o.isFocusable(h))a(h);else return;const v=v8(r.document,h,y=>{const{mover:E,groupper:_}=d(y);if(E&&E!==this)return NodeFilter.FILTER_REJECT;const S=_==null?void 0:_.getFirst(!0);return _&&_.getElement()!==y&&S&&S!==y?NodeFilter.FILTER_REJECT:(o.isFocusable(y)&&a(y),NodeFilter.FILTER_SKIP)});if(v)for(v.currentNode=h;v.nextNode(););},c=h=>{n.get(h)&&a(h,!0);for(let v=h.firstElementChild;v;v=v.nextElementSibling)c(v)},f=()=>{!this._updateTimer&&i.length&&(this._updateTimer=r.setTimeout(()=>{delete this._updateTimer;for(const{element:h,type:g}of i)switch(g){case cK:u(h);break;case aC:l(h);break;case fK:c(h);break}i=this._updateQueue=[]},0))},d=h=>{const g={};for(let v=h;v;v=v.parentElement){const y=pa(this._tabster,v);if(y&&(y.groupper&&!g.groupper&&(g.groupper=y.groupper),y.mover)){g.mover=y.mover;break}}return g};i.push({element:t,type:aC}),f(),s.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["tabindex"]}),this._unobserve=()=>{s.disconnect()}}getState(t){const r=IA(this._win,t);if(r in this._visible){const n=this._visible[r]||Yc.Invisible;return{isCurrent:this._current?this._current.get()===t:void 0,visibility:n}}}}function iFe(e,t,r,n,o,i,s,a){const u=r{this._win().addEventListener("keydown",this._onKeyDown,!0),this._tabster.focusedElement.subscribe(this._onFocus)},this._onMoverDispose=n=>{delete this._movers[n.id]},this._onFocus=n=>{var o;let i=n,s=n;for(let a=n==null?void 0:n.parentElement;a;a=a.parentElement){const u=(o=pa(this._tabster,a))===null||o===void 0?void 0:o.mover;u&&(u.setCurrent(s),i=void 0),!i&&this._tabster.focusable.isFocusable(a)&&(i=s=a)}},this._onKeyDown=async n=>{var o,i,s,a;this._ignoredInputTimer&&(this._win().clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),(o=this._ignoredInputResolve)===null||o===void 0||o.call(this,!1);let u=n.keyCode;if(n.ctrlKey||n.altKey||n.shiftKey||n.metaKey)return;switch(u){case Dr.Down:case Dr.Right:case Dr.Up:case Dr.Left:case Dr.PageDown:case Dr.PageUp:case Dr.Home:case Dr.End:break;default:return}const l=this._tabster,c=l.focusedElement.getFocusedElement();if(!c||await this._isIgnoredInput(c,u))return;const f=Mo.getTabsterContext(l,c,{checkRtl:!0});if(!f||!f.mover||f.excludedFromMover||f.ignoreKeydown(n))return;const d=f.mover,h=d.getElement();if(f.groupperBeforeMover){const L=f.groupper;if(L&&!L.isActive(!0)){for(let M=(i=L.getElement())===null||i===void 0?void 0:i.parentElement;M&&M!==h;M=M.parentElement)if(!((a=(s=pa(l,M))===null||s===void 0?void 0:s.groupper)===null||a===void 0)&&a.isActive(!0))return}else return}if(!h)return;const g=l.focusable,v=d.getProps(),y=v.direction||eh.Both,E=y===eh.Both,_=E||y===eh.Vertical,S=E||y===eh.Horizontal,b=y===eh.GridLinear,A=b||y===eh.Grid,T=v.cyclic;let x,C,I,R=0,D=0;if(A&&(I=c.getBoundingClientRect(),R=Math.ceil(I.left),D=Math.floor(I.right)),f.rtl&&(u===Dr.Right?u=Dr.Left:u===Dr.Left&&(u=Dr.Right)),u===Dr.Down&&_||u===Dr.Right&&(S||A))if(x=g.findNext({currentElement:c,container:h,useActiveModalizer:!0}),x&&A){const L=Math.ceil(x.getBoundingClientRect().left);!b&&D>L&&(x=void 0)}else!x&&T&&(x=g.findFirst({container:h,useActiveModalizer:!0}));else if(u===Dr.Up&&_||u===Dr.Left&&(S||A))if(x=g.findPrev({currentElement:c,container:h,useActiveModalizer:!0}),x&&A){const L=Math.floor(x.getBoundingClientRect().right);!b&&L>R&&(x=void 0)}else!x&&T&&(x=g.findLast({container:h,useActiveModalizer:!0}));else if(u===Dr.Home)A?g.findElement({container:h,currentElement:c,useActiveModalizer:!0,isBackward:!0,acceptCondition:L=>{var M;if(!g.isFocusable(L))return!1;const q=Math.ceil((M=L.getBoundingClientRect().left)!==null&&M!==void 0?M:0);return L!==c&&R<=q?!0:(x=L,!1)}}):x=g.findFirst({container:h,useActiveModalizer:!0});else if(u===Dr.End)A?g.findElement({container:h,currentElement:c,useActiveModalizer:!0,acceptCondition:L=>{var M;if(!g.isFocusable(L))return!1;const q=Math.ceil((M=L.getBoundingClientRect().left)!==null&&M!==void 0?M:0);return L!==c&&R>=q?!0:(x=L,!1)}}):x=g.findLast({container:h,useActiveModalizer:!0});else if(u===Dr.PageUp){if(g.findElement({currentElement:c,container:h,useActiveModalizer:!0,isBackward:!0,acceptCondition:L=>g.isFocusable(L)?aK(this._win,L,d.visibilityTolerance)?(x=L,!1):!0:!1}),A&&x){const L=Math.ceil(x.getBoundingClientRect().left);g.findElement({currentElement:x,container:h,useActiveModalizer:!0,acceptCondition:M=>{if(!g.isFocusable(M))return!1;const q=Math.ceil(M.getBoundingClientRect().left);return R=q?!0:(x=M,!1)}})}C=!1}else if(u===Dr.PageDown){if(g.findElement({currentElement:c,container:h,useActiveModalizer:!0,acceptCondition:L=>g.isFocusable(L)?aK(this._win,L,d.visibilityTolerance)?(x=L,!1):!0:!1}),A&&x){const L=Math.ceil(x.getBoundingClientRect().left);g.findElement({currentElement:x,container:h,useActiveModalizer:!0,isBackward:!0,acceptCondition:M=>{if(!g.isFocusable(M))return!1;const q=Math.ceil(M.getBoundingClientRect().left);return R>q||L<=q?!0:(x=M,!1)}})}C=!0}else if(A){const L=u===Dr.Up,M=R,q=Math.ceil(I.top),z=D,F=Math.floor(I.bottom);let $,K,U=0;g.findAll({container:h,currentElement:c,isBackward:L,onElement:X=>{const J=X.getBoundingClientRect(),ee=Math.ceil(J.left),fe=Math.ceil(J.top),ge=Math.floor(J.right),Se=Math.floor(J.bottom);if(L&&qfe)return!0;const Ee=Math.ceil(Math.min(z,ge))-Math.floor(Math.max(M,ee)),ve=Math.ceil(Math.min(z-M,ge-ee));if(Ee>0&&ve>=Ee){const we=Ee/ve;we>U&&($=X,U=we)}else if(U===0){const we=iFe(M,q,z,F,ee,fe,ge,Se);(K===void 0||we0)return!1;return!0}}),x=$}x&&ig({by:"mover",owner:h,next:x,relatedEvent:n})&&(C!==void 0&&j3e(this._win,x,C),n.preventDefault(),n.stopImmediatePropagation(),Af(x))},this._tabster=t,this._win=r,this._movers={},t.queueInit(this._init)}dispose(){var t;const r=this._win();this._tabster.focusedElement.unsubscribe(this._onFocus),(t=this._ignoredInputResolve)===null||t===void 0||t.call(this,!1),this._ignoredInputTimer&&(r.clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),r.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._movers).forEach(n=>{this._movers[n]&&(this._movers[n].dispose(),delete this._movers[n])})}createMover(t,r,n){const o=new oFe(this._tabster,t,this._onMoverDispose,r,n);return this._movers[o.id]=o,o}async _isIgnoredInput(t,r){var n;if(t.getAttribute("aria-expanded")==="true"&&t.hasAttribute("aria-activedescendant"))return!0;if(Vae(t,rFe)){let o=0,i=0,s=0,a;if(t.tagName==="INPUT"||t.tagName==="TEXTAREA"){const u=t.type;if(s=(t.value||"").length,u==="email"||u==="number"){if(s){const c=(n=t.ownerDocument.defaultView)===null||n===void 0?void 0:n.getSelection();if(c){const f=c.toString().length,d=r===Dr.Left||r===Dr.Up;if(c.modify("extend",d?"backward":"forward","character"),f!==c.toString().length)return c.modify("extend",d?"forward":"backward","character"),!0;s=0}}}else{const c=t.selectionStart;if(c===null)return u==="hidden";o=c||0,i=t.selectionEnd||0}}else t.contentEditable==="true"&&(a=new($3e(this._win))(u=>{this._ignoredInputResolve=g=>{delete this._ignoredInputResolve,u(g)};const l=this._win();this._ignoredInputTimer&&l.clearTimeout(this._ignoredInputTimer);const{anchorNode:c,focusNode:f,anchorOffset:d,focusOffset:h}=l.getSelection()||{};this._ignoredInputTimer=l.setTimeout(()=>{var g,v,y;delete this._ignoredInputTimer;const{anchorNode:E,focusNode:_,anchorOffset:S,focusOffset:b}=l.getSelection()||{};if(E!==c||_!==f||S!==d||b!==h){(g=this._ignoredInputResolve)===null||g===void 0||g.call(this,!1);return}if(o=S||0,i=b||0,s=((v=t.textContent)===null||v===void 0?void 0:v.length)||0,E&&_&&t.contains(E)&&t.contains(_)&&E!==t){let A=!1;const T=x=>{if(x===E)A=!0;else if(x===_)return!0;const C=x.textContent;if(C&&!x.firstChild){const R=C.length;A?_!==E&&(i+=R):(o+=R,i+=R)}let I=!1;for(let R=x.firstChild;R&&!I;R=R.nextSibling)I=T(R);return I};T(t)}(y=this._ignoredInputResolve)===null||y===void 0||y.call(this,!0)},0)}));if(a&&!await a||o!==i||o>0&&(r===Dr.Left||r===Dr.Up||r===Dr.Home)||o"u")return()=>{};const o=t.getWindow;let i;const s=c=>{var f,d,h,g,v;for(const y of c){const E=y.target,_=y.removedNodes,S=y.addedNodes;if(y.type==="attributes")y.attributeName===df&&r(t,E);else{for(let b=0;b<_.length;b++)a(_[b],!0),(d=(f=t._dummyObserver).domChanged)===null||d===void 0||d.call(f,E);for(let b=0;bu(h,f));if(d)for(;d.nextNode(););}function u(c,f){var d;if(!c.getAttribute)return NodeFilter.FILTER_SKIP;const h=c.__tabsterElementUID;return h&&i&&(f?delete i[h]:(d=i[h])!==null&&d!==void 0||(i[h]=new cu(o,c))),(ha(t,c)||c.hasAttribute(df))&&r(t,c,f),NodeFilter.FILTER_SKIP}const l=new MutationObserver(s);return n&&a(o().document.body),l.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[df]}),()=>{l.disconnect()}}/*! + */function aFe(e,t,r,n){if(typeof MutationObserver>"u")return()=>{};const o=t.getWindow;let i;const s=c=>{var f,d,h,g,v;for(const y of c){const E=y.target,_=y.removedNodes,S=y.addedNodes;if(y.type==="attributes")y.attributeName===hf&&r(t,E);else{for(let b=0;b<_.length;b++)a(_[b],!0),(d=(f=t._dummyObserver).domChanged)===null||d===void 0||d.call(f,E);for(let b=0;bu(h,f));if(d)for(;d.nextNode(););}function u(c,f){var d;if(!c.getAttribute)return NodeFilter.FILTER_SKIP;const h=c.__tabsterElementUID;return h&&i&&(f?delete i[h]:(d=i[h])!==null&&d!==void 0||(i[h]=new cu(o,c))),(pa(t,c)||c.hasAttribute(hf))&&r(t,c,f),NodeFilter.FILTER_SKIP}const l=new MutationObserver(s);return n&&a(o().document.body),l.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[hf]}),()=>{l.disconnect()}}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */class tFe{constructor(t){this._isUncontrolledCompletely=t}isUncontrolledCompletely(t,r){var n;const o=(n=this._isUncontrolledCompletely)===null||n===void 0?void 0:n.call(this,t,r);return o===void 0?r:o}}/*! + */class uFe{constructor(t){this._isUncontrolledCompletely=t}isUncontrolledCompletely(t,r){var n;const o=(n=this._isUncontrolledCompletely)===null||n===void 0?void 0:n.call(this,t,r);return o===void 0?r:o}}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */const FA="restorer:restorefocus",rFe=10;class nFe extends xx{constructor(t,r,n){var o;if(super(t,r,n),this._hasFocus=!1,this._onFocusOut=i=>{var s;const a=(s=this._element)===null||s===void 0?void 0:s.get();a&&i.relatedTarget===null&&a.dispatchEvent(new Event(FA,{bubbles:!0})),a&&!a.contains(i.relatedTarget)&&(this._hasFocus=!1)},this._onFocusIn=()=>{this._hasFocus=!0},this._props.type===jb.Source){const i=(o=this._element)===null||o===void 0?void 0:o.get();i==null||i.addEventListener("focusout",this._onFocusOut),i==null||i.addEventListener("focusin",this._onFocusIn)}}dispose(){var t,r;if(this._props.type===jb.Source){const n=(t=this._element)===null||t===void 0?void 0:t.get();n==null||n.removeEventListener("focusout",this._onFocusOut),n==null||n.removeEventListener("focusin",this._onFocusIn),this._hasFocus&&((r=this._tabster.getWindow().document.body)===null||r===void 0||r.dispatchEvent(new Event(FA,{bubbles:!0})))}}}class oFe{constructor(t){this._history=[],this._restoreFocusTimeout=0,this._onRestoreFocus=r=>{const n=this._getWindow();this._restoreFocusTimeout&&n.clearTimeout(this._restoreFocusTimeout),this._restoreFocusTimeout=n.setTimeout(()=>this._restoreFocus(r.target))},this._onFocusIn=r=>{var n;if(!r)return;const o=ha(this._tabster,r);((n=o==null?void 0:o.restorer)===null||n===void 0?void 0:n.getProps().type)===jb.Target&&this._addToHistory(r)},this._restoreFocus=r=>{var n,o,i;const s=this._getWindow().document;if(s.activeElement!==s.body||!this._keyboardNavState.isNavigatingWithKeyboard()&&s.body.contains(r))return;let a=this._history.pop();for(;a&&!s.body.contains((o=(n=a.get())===null||n===void 0?void 0:n.parentElement)!==null&&o!==void 0?o:null);)a=this._history.pop();(i=a==null?void 0:a.get())===null||i===void 0||i.focus()},this._tabster=t,this._getWindow=t.getWindow,this._getWindow().addEventListener(FA,this._onRestoreFocus),this._keyboardNavState=t.keyboardNavigation,this._focusedElementState=t.focusedElement,this._focusedElementState.subscribe(this._onFocusIn)}dispose(){const t=this._getWindow();this._focusedElementState.unsubscribe(this._onFocusIn),t.removeEventListener(FA,this._onRestoreFocus),this._restoreFocusTimeout&&t.clearTimeout(this._restoreFocusTimeout)}_addToHistory(t){var r;((r=this._history[this._history.length-1])===null||r===void 0?void 0:r.get())!==t&&(this._history.length>rFe&&this._history.shift(),this._history.push(new cu(this._getWindow,t)))}createRestorer(t,r){const n=new nFe(this._tabster,t,r);return r.type===jb.Target&&t.ownerDocument.activeElement===t&&this._addToHistory(t),n}}/*! + */const zk="restorer:restorefocus",lFe=10;class cFe extends RT{constructor(t,r,n){var o;if(super(t,r,n),this._hasFocus=!1,this._onFocusOut=i=>{var s;const a=(s=this._element)===null||s===void 0?void 0:s.get();a&&i.relatedTarget===null&&a.dispatchEvent(new Event(zk,{bubbles:!0})),a&&!a.contains(i.relatedTarget)&&(this._hasFocus=!1)},this._onFocusIn=()=>{this._hasFocus=!0},this._props.type===$b.Source){const i=(o=this._element)===null||o===void 0?void 0:o.get();i==null||i.addEventListener("focusout",this._onFocusOut),i==null||i.addEventListener("focusin",this._onFocusIn)}}dispose(){var t,r;if(this._props.type===$b.Source){const n=(t=this._element)===null||t===void 0?void 0:t.get();n==null||n.removeEventListener("focusout",this._onFocusOut),n==null||n.removeEventListener("focusin",this._onFocusIn),this._hasFocus&&((r=this._tabster.getWindow().document.body)===null||r===void 0||r.dispatchEvent(new Event(zk,{bubbles:!0})))}}}class fFe{constructor(t){this._history=[],this._restoreFocusTimeout=0,this._onRestoreFocus=r=>{const n=this._getWindow();this._restoreFocusTimeout&&n.clearTimeout(this._restoreFocusTimeout),this._restoreFocusTimeout=n.setTimeout(()=>this._restoreFocus(r.target))},this._onFocusIn=r=>{var n;if(!r)return;const o=pa(this._tabster,r);((n=o==null?void 0:o.restorer)===null||n===void 0?void 0:n.getProps().type)===$b.Target&&this._addToHistory(r)},this._restoreFocus=r=>{var n,o,i;const s=this._getWindow().document;if(s.activeElement!==s.body||!this._keyboardNavState.isNavigatingWithKeyboard()&&s.body.contains(r))return;let a=this._history.pop();for(;a&&!s.body.contains((o=(n=a.get())===null||n===void 0?void 0:n.parentElement)!==null&&o!==void 0?o:null);)a=this._history.pop();(i=a==null?void 0:a.get())===null||i===void 0||i.focus()},this._tabster=t,this._getWindow=t.getWindow,this._getWindow().addEventListener(zk,this._onRestoreFocus),this._keyboardNavState=t.keyboardNavigation,this._focusedElementState=t.focusedElement,this._focusedElementState.subscribe(this._onFocusIn)}dispose(){const t=this._getWindow();this._focusedElementState.unsubscribe(this._onFocusIn),t.removeEventListener(zk,this._onRestoreFocus),this._restoreFocusTimeout&&t.clearTimeout(this._restoreFocusTimeout)}_addToHistory(t){var r;((r=this._history[this._history.length-1])===null||r===void 0?void 0:r.get())!==t&&(this._history.length>lFe&&this._history.shift(),this._history.push(new cu(this._getWindow,t)))}createRestorer(t,r){const n=new cFe(this._tabster,t,r);return r.type===$b.Target&&t.ownerDocument.activeElement===t&&this._addToHistory(t),n}}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */class iFe{constructor(t){this.keyboardNavigation=t.keyboardNavigation,this.focusedElement=t.focusedElement,this.focusable=t.focusable,this.root=t.root,this.uncontrolled=t.uncontrolled,this.core=t}}class sFe{constructor(t,r){var n,o;this._forgetMemorizedElements=[],this._wrappers=new Set,this._initQueue=[],this._version="5.2.0",this._noop=!1,this.getWindow=()=>{if(!this._win)throw new Error("Using disposed Tabster.");return this._win},this._storage=I3e(t),this._win=t;const i=this.getWindow;this.keyboardNavigation=new W3e(i),this.focusedElement=new so(this,i),this.focusable=new P3e(this),this.root=new Bo(this,r==null?void 0:r.autoRoot),this.uncontrolled=new tFe((r==null?void 0:r.checkUncontrolledCompletely)||(r==null?void 0:r.checkUncontrolledTrappingFocus)),this.controlTab=(n=r==null?void 0:r.controlTab)!==null&&n!==void 0?n:!0,this.rootDummyInputs=!!(r!=null&&r.rootDummyInputs),this._dummyObserver=new L3e(i),this.getParent=(o=r==null?void 0:r.getParent)!==null&&o!==void 0?o:s=>s.parentElement,this.internal={stopObserver:()=>{this._unobserve&&(this._unobserve(),delete this._unobserve)},resumeObserver:s=>{if(!this._unobserve){const a=i().document;this._unobserve=eFe(a,this,Dae,s)}}},Mae(i),this.queueInit(()=>{this.internal.resumeObserver(!0)})}_mergeProps(t){var r;t&&(this.getParent=(r=t.getParent)!==null&&r!==void 0?r:this.getParent)}createTabster(t,r){const n=new iFe(this);return t||this._wrappers.add(n),this._mergeProps(r),n}disposeTabster(t,r){r?this._wrappers.clear():this._wrappers.delete(t),this._wrappers.size===0&&this.dispose()}dispose(){var t,r,n,o,i,s,a,u;this.internal.stopObserver();const l=this._win;l==null||l.clearTimeout(this._initTimer),delete this._initTimer,this._initQueue=[],this._forgetMemorizedElements=[],l&&this._forgetMemorizedTimer&&(l.clearTimeout(this._forgetMemorizedTimer),delete this._forgetMemorizedTimer),(t=this.outline)===null||t===void 0||t.dispose(),(r=this.crossOrigin)===null||r===void 0||r.dispose(),(n=this.deloser)===null||n===void 0||n.dispose(),(o=this.groupper)===null||o===void 0||o.dispose(),(i=this.mover)===null||i===void 0||i.dispose(),(s=this.modalizer)===null||s===void 0||s.dispose(),(a=this.observedElement)===null||a===void 0||a.dispose(),(u=this.restorer)===null||u===void 0||u.dispose(),this.keyboardNavigation.dispose(),this.focusable.dispose(),this.focusedElement.dispose(),this.root.dispose(),this._dummyObserver.dispose(),C3e(this.getWindow),eK(this.getWindow),this._storage=new WeakMap,this._wrappers.clear(),l&&(x3e(l),delete l.__tabsterInstance,delete this._win)}storageEntry(t,r){const n=this._storage;let o=n.get(t);return o?r===!1&&Object.keys(o).length===0&&n.delete(t):r===!0&&(o={},n.set(t,o)),o}forceCleanup(){this._win&&(this._forgetMemorizedElements.push(this._win.document.body),!this._forgetMemorizedTimer&&(this._forgetMemorizedTimer=this._win.setTimeout(()=>{delete this._forgetMemorizedTimer;for(let t=this._forgetMemorizedElements.shift();t;t=this._forgetMemorizedElements.shift())eK(this.getWindow,t),so.forgetMemorized(this.focusedElement,t)},0),Bae(this.getWindow,!0)))}queueInit(t){var r;this._win&&(this._initQueue.push(t),this._initTimer||(this._initTimer=(r=this._win)===null||r===void 0?void 0:r.setTimeout(()=>{delete this._initTimer,this.drainInitQueue()},0)))}drainInitQueue(){if(!this._win)return;const t=this._initQueue;this._initQueue=[],t.forEach(r=>r())}}function aFe(e,t){let r=dFe(e);return r?r.createTabster(!1,t):(r=new sFe(e,t),e.__tabsterInstance=r,r.createTabster())}function uFe(e){const t=e.core;return t.mover||(t.mover=new J3e(t,t.getWindow)),t.mover}function lFe(e,t,r){const n=e.core;return n.modalizer||(n.modalizer=new U3e(n,t,r)),n.modalizer}function cFe(e){const t=e.core;return t.restorer||(t.restorer=new oFe(t)),t.restorer}function fFe(e,t){e.core.disposeTabster(e,t)}function dFe(e){return e.__tabsterInstance}const Ix=()=>{const{targetDocument:e}=Na(),t=(e==null?void 0:e.defaultView)||void 0,r=k.useMemo(()=>t?aFe(t,{autoRoot:{},controlTab:!1,getParent:dae,checkUncontrolledTrappingFocus:n=>{var o;return!!(!((o=n.firstElementChild)===null||o===void 0)&&o.hasAttribute("data-is-focus-trap-zone-bumper"))}}):null,[t]);return ic(()=>()=>{r&&fFe(r)},[r]),r},BA=e=>(Ix(),Pae(e)),Wae=(e={})=>{const{circular:t,axis:r,memorizeCurrent:n,tabbable:o,ignoreDefaultKeydown:i,unstable_hasDefault:s}=e,a=Ix();return a&&uFe(a),BA({mover:{cyclic:!!t,direction:hFe(r??"vertical"),memorizeCurrent:n,tabbable:o,hasDefault:s},...i&&{focusable:{ignoreKeydown:i}}})};function hFe(e){switch(e){case"horizontal":return lh.MoverDirections.Horizontal;case"grid":return lh.MoverDirections.Grid;case"grid-linear":return lh.MoverDirections.GridLinear;case"both":return lh.MoverDirections.Both;case"vertical":default:return lh.MoverDirections.Vertical}}const Kae=()=>{const e=Ix(),{targetDocument:t}=Na(),r=k.useCallback((a,u)=>(e==null?void 0:e.focusable.findAll({container:a,acceptCondition:u}))||[],[e]),n=k.useCallback(a=>e==null?void 0:e.focusable.findFirst({container:a}),[e]),o=k.useCallback(a=>e==null?void 0:e.focusable.findLast({container:a}),[e]),i=k.useCallback((a,u={})=>{if(!e||!t)return null;const{container:l=t.body}=u;return e.focusable.findNext({currentElement:a,container:l})},[e,t]),s=k.useCallback((a,u={})=>{if(!e||!t)return null;const{container:l=t.body}=u;return e.focusable.findPrev({currentElement:a,container:l})},[e,t]);return{findAllFocusable:r,findFirstFocusable:n,findLastFocusable:o,findNextFocusable:i,findPrevFocusable:s}},oK="data-fui-focus-visible";function pFe(e,t){if(Gae(e))return()=>{};const r={current:void 0},n=kae(t);function o(u){n.isNavigatingWithKeyboard()&&Lb(u)&&(r.current=u,u.setAttribute(oK,""))}function i(){r.current&&(r.current.removeAttribute(oK),r.current=void 0)}n.subscribe(u=>{u||i()});const s=u=>{i();const l=u.composedPath()[0];o(l)},a=u=>{(!u.relatedTarget||Lb(u.relatedTarget)&&!e.contains(u.relatedTarget))&&i()};return e.addEventListener(Sf,s),e.addEventListener("focusout",a),e.focusVisible=!0,o(t.document.activeElement),()=>{i(),e.removeEventListener(Sf,s),e.removeEventListener("focusout",a),delete e.focusVisible,Aae(n)}}function Gae(e){return e?e.focusVisible?!0:Gae(e==null?void 0:e.parentElement):!1}function Vae(e={}){const t=Na(),r=k.useRef(null);var n;const o=(n=e.targetDocument)!==null&&n!==void 0?n:t.targetDocument;return k.useEffect(()=>{if(o!=null&&o.defaultView&&r.current)return pFe(r.current,o.defaultView)},[r,o]),r}const Nx=(e={})=>{const{trapFocus:t,alwaysFocusable:r,legacyTrapFocus:n}=e,o=Ix();o&&(lFe(o),cFe(o));const i=Ia("modal-",e.id),s=BA({restorer:{type:lh.RestorerTypes.Source},...t&&{modalizer:{id:i,isOthersAccessible:!t,isAlwaysAccessible:r,isTrapped:n&&t}}}),a=BA({restorer:{type:lh.RestorerTypes.Target}});return{modalAttributes:s,triggerAttributes:a}},Oe={2:"#050505",4:"#0a0a0a",6:"#0f0f0f",8:"#141414",10:"#1a1a1a",12:"#1f1f1f",14:"#242424",16:"#292929",18:"#2e2e2e",20:"#333333",22:"#383838",24:"#3d3d3d",26:"#424242",28:"#474747",30:"#4d4d4d",32:"#525252",34:"#575757",36:"#5c5c5c",38:"#616161",40:"#666666",42:"#6b6b6b",44:"#707070",46:"#757575",48:"#7a7a7a",50:"#808080",52:"#858585",54:"#8a8a8a",56:"#8f8f8f",58:"#949494",60:"#999999",62:"#9e9e9e",64:"#a3a3a3",66:"#a8a8a8",68:"#adadad",70:"#b3b3b3",72:"#b8b8b8",74:"#bdbdbd",76:"#c2c2c2",78:"#c7c7c7",80:"#cccccc",82:"#d1d1d1",84:"#d6d6d6",86:"#dbdbdb",88:"#e0e0e0",90:"#e6e6e6",92:"#ebebeb",94:"#f0f0f0",96:"#f5f5f5",98:"#fafafa"},ki={5:"rgba(255, 255, 255, 0.05)",10:"rgba(255, 255, 255, 0.1)",20:"rgba(255, 255, 255, 0.2)",30:"rgba(255, 255, 255, 0.3)",40:"rgba(255, 255, 255, 0.4)",50:"rgba(255, 255, 255, 0.5)",60:"rgba(255, 255, 255, 0.6)",70:"rgba(255, 255, 255, 0.7)",80:"rgba(255, 255, 255, 0.8)",90:"rgba(255, 255, 255, 0.9)"},Qa={5:"rgba(0, 0, 0, 0.05)",10:"rgba(0, 0, 0, 0.1)",20:"rgba(0, 0, 0, 0.2)",30:"rgba(0, 0, 0, 0.3)",40:"rgba(0, 0, 0, 0.4)",50:"rgba(0, 0, 0, 0.5)",60:"rgba(0, 0, 0, 0.6)",70:"rgba(0, 0, 0, 0.7)",80:"rgba(0, 0, 0, 0.8)",90:"rgba(0, 0, 0, 0.9)"},gFe={5:"rgba(26, 26, 26, 0.05)",10:"rgba(26, 26, 26, 0.1)",20:"rgba(26, 26, 26, 0.2)",30:"rgba(26, 26, 26, 0.3)",40:"rgba(26, 26, 26, 0.4)",50:"rgba(26, 26, 26, 0.5)",60:"rgba(26, 26, 26, 0.6)",70:"rgba(26, 26, 26, 0.7)",80:"rgba(26, 26, 26, 0.8)",90:"rgba(26, 26, 26, 0.9)"},vFe={5:"rgba(31, 31, 31, 0.05)",10:"rgba(31, 31, 31, 0.1)",20:"rgba(31, 31, 31, 0.2)",30:"rgba(31, 31, 31, 0.3)",40:"rgba(31, 31, 31, 0.4)",50:"rgba(31, 31, 31, 0.5)",60:"rgba(31, 31, 31, 0.6)",70:"rgba(31, 31, 31, 0.7)",80:"rgba(31, 31, 31, 0.8)",90:"rgba(31, 31, 31, 0.9)"},iK={5:"rgba(36, 36, 36, 0.05)",10:"rgba(36, 36, 36, 0.1)",20:"rgba(36, 36, 36, 0.2)",30:"rgba(36, 36, 36, 0.3)",40:"rgba(36, 36, 36, 0.4)",50:"rgba(36, 36, 36, 0.5)",60:"rgba(36, 36, 36, 0.6)",70:"rgba(36, 36, 36, 0.7)",80:"rgba(36, 36, 36, 0.8)",90:"rgba(36, 36, 36, 0.9)"},Xt="#ffffff",aB="#000000",mFe={shade50:"#130204",shade40:"#230308",shade30:"#420610",shade20:"#590815",shade10:"#690a19",primary:"#750b1c",tint10:"#861b2c",tint20:"#962f3f",tint30:"#ac4f5e",tint40:"#d69ca5",tint50:"#e9c7cd",tint60:"#f9f0f2"},Uae={shade50:"#200205",shade40:"#3b0509",shade30:"#6e0811",shade20:"#960b18",shade10:"#b10e1c",primary:"#c50f1f",tint10:"#cc2635",tint20:"#d33f4c",tint30:"#dc626d",tint40:"#eeacb2",tint50:"#f6d1d5",tint60:"#fdf3f4"},yFe={shade50:"#210809",shade40:"#3f1011",shade30:"#751d1f",shade20:"#9f282b",shade10:"#bc2f32",primary:"#d13438",tint10:"#d7494c",tint20:"#dc5e62",tint30:"#e37d80",tint40:"#f1bbbc",tint50:"#f8dadb",tint60:"#fdf6f6"},bFe={shade50:"#230900",shade40:"#411200",shade30:"#7a2101",shade20:"#a62d01",shade10:"#c43501",primary:"#da3b01",tint10:"#de501c",tint20:"#e36537",tint30:"#e9835e",tint40:"#f4bfab",tint50:"#f9dcd1",tint60:"#fdf6f3"},_Fe={shade50:"#200d03",shade40:"#3d1805",shade30:"#712d09",shade20:"#9a3d0c",shade10:"#b6480e",primary:"#ca5010",tint10:"#d06228",tint20:"#d77440",tint30:"#df8e64",tint40:"#efc4ad",tint50:"#f7dfd2",tint60:"#fdf7f4"},EFe={shade50:"#271002",shade40:"#4a1e04",shade30:"#8a3707",shade20:"#bc4b09",shade10:"#de590b",primary:"#f7630c",tint10:"#f87528",tint20:"#f98845",tint30:"#faa06b",tint40:"#fdcfb4",tint50:"#fee5d7",tint60:"#fff9f5"},SFe={shade50:"#291600",shade40:"#4d2a00",shade30:"#8f4e00",shade20:"#c26a00",shade10:"#e67e00",primary:"#ff8c00",tint10:"#ff9a1f",tint20:"#ffa83d",tint30:"#ffba66",tint40:"#ffddb3",tint50:"#ffedd6",tint60:"#fffaf5"},wFe={shade50:"#251a00",shade40:"#463100",shade30:"#835b00",shade20:"#b27c00",shade10:"#d39300",primary:"#eaa300",tint10:"#edad1c",tint20:"#efb839",tint30:"#f2c661",tint40:"#f9e2ae",tint50:"#fcefd3",tint60:"#fefbf4"},kFe={primary:"#fde300",shade10:"#e4cc00",shade20:"#c0ad00",shade30:"#817400",shade40:"#4c4400",shade50:"#282400",tint10:"#fde61e",tint20:"#fdea3d",tint30:"#feee66",tint40:"#fef7b2",tint50:"#fffad6",tint60:"#fffef5"},AFe={shade50:"#1f1900",shade40:"#3a2f00",shade30:"#6c5700",shade20:"#937700",shade10:"#ae8c00",primary:"#c19c00",tint10:"#c8a718",tint20:"#d0b232",tint30:"#dac157",tint40:"#ecdfa5",tint50:"#f5eece",tint60:"#fdfbf2"},TFe={shade50:"#181202",shade40:"#2e2103",shade30:"#553e06",shade20:"#745408",shade10:"#89640a",primary:"#986f0b",tint10:"#a47d1e",tint20:"#b18c34",tint30:"#c1a256",tint40:"#e0cea2",tint50:"#efe4cb",tint60:"#fbf8f2"},xFe={shade50:"#170e07",shade40:"#2b1a0e",shade30:"#50301a",shade20:"#6c4123",shade10:"#804d29",primary:"#8e562e",tint10:"#9c663f",tint20:"#a97652",tint30:"#bb8f6f",tint40:"#ddc3b0",tint50:"#edded3",tint60:"#faf7f4"},IFe={shade50:"#0c1501",shade40:"#162702",shade30:"#294903",shade20:"#376304",shade10:"#427505",primary:"#498205",tint10:"#599116",tint20:"#6ba02b",tint30:"#85b44c",tint40:"#bdd99b",tint50:"#dbebc7",tint60:"#f6faf0"},NFe={shade50:"#002111",shade40:"#003d20",shade30:"#00723b",shade20:"#009b51",shade10:"#00b85f",primary:"#00cc6a",tint10:"#19d279",tint20:"#34d889",tint30:"#5ae0a0",tint40:"#a8f0cd",tint50:"#cff7e4",tint60:"#f3fdf8"},CFe={shade50:"#031a02",shade40:"#063004",shade30:"#0b5a08",shade20:"#0e7a0b",shade10:"#11910d",primary:"#13a10e",tint10:"#27ac22",tint20:"#3db838",tint30:"#5ec75a",tint40:"#a7e3a5",tint50:"#cef0cd",tint60:"#f2fbf2"},Yae={shade50:"#031403",shade40:"#052505",shade30:"#094509",shade20:"#0c5e0c",shade10:"#0e700e",primary:"#107c10",tint10:"#218c21",tint20:"#359b35",tint30:"#54b054",tint40:"#9fd89f",tint50:"#c9eac9",tint60:"#f1faf1"},RFe={shade50:"#021102",shade40:"#032003",shade30:"#063b06",shade20:"#085108",shade10:"#0a5f0a",primary:"#0b6a0b",tint10:"#1a7c1a",tint20:"#2d8e2d",tint30:"#4da64d",tint40:"#9ad29a",tint50:"#c6e7c6",tint60:"#f0f9f0"},OFe={shade50:"#001d1f",shade40:"#00373a",shade30:"#00666d",shade20:"#008b94",shade10:"#00a5af",primary:"#00b7c3",tint10:"#18bfca",tint20:"#32c8d1",tint30:"#58d3db",tint40:"#a6e9ed",tint50:"#cef3f5",tint60:"#f2fcfd"},DFe={shade50:"#001516",shade40:"#012728",shade30:"#02494c",shade20:"#026467",shade10:"#037679",primary:"#038387",tint10:"#159195",tint20:"#2aa0a4",tint30:"#4cb4b7",tint40:"#9bd9db",tint50:"#c7ebec",tint60:"#f0fafa"},FFe={shade50:"#000f12",shade40:"#001b22",shade30:"#00333f",shade20:"#004555",shade10:"#005265",primary:"#005b70",tint10:"#0f6c81",tint20:"#237d92",tint30:"#4496a9",tint40:"#94c8d4",tint50:"#c3e1e8",tint60:"#eff7f9"},BFe={shade50:"#001322",shade40:"#002440",shade30:"#004377",shade20:"#005ba1",shade10:"#006cbf",primary:"#0078d4",tint10:"#1a86d9",tint20:"#3595de",tint30:"#5caae5",tint40:"#a9d3f2",tint50:"#d0e7f8",tint60:"#f3f9fd"},MFe={shade50:"#000c16",shade40:"#00172a",shade30:"#002c4e",shade20:"#003b6a",shade10:"#00467e",primary:"#004e8c",tint10:"#125e9a",tint20:"#286fa8",tint30:"#4a89ba",tint40:"#9abfdc",tint50:"#c7dced",tint60:"#f0f6fa"},LFe={shade50:"#0d1126",shade40:"#182047",shade30:"#2c3c85",shade20:"#3c51b4",shade10:"#4760d5",primary:"#4f6bed",tint10:"#637cef",tint20:"#778df1",tint30:"#93a4f4",tint40:"#c8d1fa",tint50:"#e1e6fc",tint60:"#f7f9fe"},jFe={shade50:"#00061d",shade40:"#000c36",shade30:"#001665",shade20:"#001e89",shade10:"#0023a2",primary:"#0027b4",tint10:"#173bbd",tint20:"#3050c6",tint30:"#546fd2",tint40:"#a3b2e8",tint50:"#ccd5f3",tint60:"#f2f4fc"},zFe={shade50:"#120f25",shade40:"#221d46",shade30:"#3f3682",shade20:"#5649b0",shade10:"#6656d1",primary:"#7160e8",tint10:"#8172eb",tint20:"#9184ee",tint30:"#a79cf1",tint40:"#d2ccf8",tint50:"#e7e4fb",tint60:"#f9f8fe"},HFe={shade50:"#0f0717",shade40:"#1c0e2b",shade30:"#341a51",shade20:"#46236e",shade10:"#532982",primary:"#5c2e91",tint10:"#6b3f9e",tint20:"#7c52ab",tint30:"#9470bd",tint40:"#c6b1de",tint50:"#e0d3ed",tint60:"#f7f4fb"},$Fe={shade50:"#160418",shade40:"#29072e",shade30:"#4c0d55",shade20:"#671174",shade10:"#7a1589",primary:"#881798",tint10:"#952aa4",tint20:"#a33fb1",tint30:"#b55fc1",tint40:"#d9a7e0",tint50:"#eaceef",tint60:"#faf2fb"},PFe={shade50:"#1f091d",shade40:"#3a1136",shade30:"#6d2064",shade20:"#932b88",shade10:"#af33a1",primary:"#c239b3",tint10:"#c94cbc",tint20:"#d161c4",tint30:"#da7ed0",tint40:"#edbbe7",tint50:"#f5daf2",tint60:"#fdf5fc"},qFe={shade50:"#1c0b1f",shade40:"#35153a",shade30:"#63276d",shade20:"#863593",shade10:"#9f3faf",primary:"#b146c2",tint10:"#ba58c9",tint20:"#c36bd1",tint30:"#cf87da",tint40:"#e6bfed",tint50:"#f2dcf5",tint60:"#fcf6fd"},WFe={shade50:"#24091b",shade40:"#441232",shade30:"#80215d",shade20:"#ad2d7e",shade10:"#cd3595",primary:"#e43ba6",tint10:"#e750b0",tint20:"#ea66ba",tint30:"#ef85c8",tint40:"#f7c0e3",tint50:"#fbddf0",tint60:"#fef6fb"},KFe={shade50:"#1f0013",shade40:"#390024",shade30:"#6b0043",shade20:"#91005a",shade10:"#ac006b",primary:"#bf0077",tint10:"#c71885",tint20:"#ce3293",tint30:"#d957a8",tint40:"#eca5d1",tint50:"#f5cee6",tint60:"#fcf2f9"},GFe={shade50:"#13000c",shade40:"#240017",shade30:"#43002b",shade20:"#5a003b",shade10:"#6b0045",primary:"#77004d",tint10:"#87105d",tint20:"#98246f",tint30:"#ad4589",tint40:"#d696c0",tint50:"#e9c4dc",tint60:"#faf0f6"},VFe={shade50:"#141313",shade40:"#252323",shade30:"#444241",shade20:"#5d5958",shade10:"#6e6968",primary:"#7a7574",tint10:"#8a8584",tint20:"#9a9594",tint30:"#afabaa",tint40:"#d7d4d4",tint50:"#eae8e8",tint60:"#faf9f9"},UFe={shade50:"#0f0e0e",shade40:"#1c1b1a",shade30:"#343231",shade20:"#474443",shade10:"#54514f",primary:"#5d5a58",tint10:"#706d6b",tint20:"#84817e",tint30:"#9e9b99",tint40:"#cecccb",tint50:"#e5e4e3",tint60:"#f8f8f8"},YFe={shade50:"#111314",shade40:"#1f2426",shade30:"#3b4447",shade20:"#505c60",shade10:"#5f6d71",primary:"#69797e",tint10:"#79898d",tint20:"#89989d",tint30:"#a0adb2",tint40:"#cdd6d8",tint50:"#e4e9ea",tint60:"#f8f9fa"},XFe={shade50:"#090a0b",shade40:"#111315",shade30:"#202427",shade20:"#2b3135",shade10:"#333a3f",primary:"#394146",tint10:"#4d565c",tint20:"#626c72",tint30:"#808a90",tint40:"#bcc3c7",tint50:"#dbdfe1",tint60:"#f6f7f8"},Mr={red:yFe,green:Yae,darkOrange:bFe,yellow:kFe,berry:PFe,lightGreen:CFe,marigold:wFe},Xd={darkRed:mFe,cranberry:Uae,pumpkin:_Fe,peach:SFe,gold:AFe,brass:TFe,brown:xFe,forest:IFe,seafoam:NFe,darkGreen:RFe,lightTeal:OFe,teal:DFe,steel:FFe,blue:BFe,royalBlue:MFe,cornflower:LFe,navy:jFe,lavender:zFe,purple:HFe,grape:$Fe,lilac:qFe,pink:WFe,magenta:KFe,plum:GFe,beige:VFe,mink:UFe,platinum:YFe,anchor:XFe},Jr={cranberry:Uae,green:Yae,orange:EFe},Xae=["red","green","darkOrange","yellow","berry","lightGreen","marigold"],Qae=["darkRed","cranberry","pumpkin","peach","gold","brass","brown","forest","seafoam","darkGreen","lightTeal","teal","steel","blue","royalBlue","cornflower","navy","lavender","purple","grape","lilac","pink","magenta","plum","beige","mink","platinum","anchor"],yc={success:"green",warning:"orange",danger:"cranberry"},V_=Xae.reduce((e,t)=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),n={[`colorPalette${r}Background1`]:Mr[t].tint60,[`colorPalette${r}Background2`]:Mr[t].tint40,[`colorPalette${r}Background3`]:Mr[t].primary,[`colorPalette${r}Foreground1`]:Mr[t].shade10,[`colorPalette${r}Foreground2`]:Mr[t].shade30,[`colorPalette${r}Foreground3`]:Mr[t].primary,[`colorPalette${r}BorderActive`]:Mr[t].primary,[`colorPalette${r}Border1`]:Mr[t].tint40,[`colorPalette${r}Border2`]:Mr[t].primary};return Object.assign(e,n)},{});V_.colorPaletteYellowForeground1=Mr.yellow.shade30;V_.colorPaletteRedForegroundInverted=Mr.red.tint20;V_.colorPaletteGreenForegroundInverted=Mr.green.tint20;V_.colorPaletteYellowForegroundInverted=Mr.yellow.tint40;const QFe=Qae.reduce((e,t)=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),n={[`colorPalette${r}Background2`]:Xd[t].tint40,[`colorPalette${r}Foreground2`]:Xd[t].shade30,[`colorPalette${r}BorderActive`]:Xd[t].primary};return Object.assign(e,n)},{}),ZFe={...V_,...QFe},Cx=Object.entries(yc).reduce((e,[t,r])=>{const n=t.slice(0,1).toUpperCase()+t.slice(1),o={[`colorStatus${n}Background1`]:Jr[r].tint60,[`colorStatus${n}Background2`]:Jr[r].tint40,[`colorStatus${n}Background3`]:Jr[r].primary,[`colorStatus${n}Foreground1`]:Jr[r].shade10,[`colorStatus${n}Foreground2`]:Jr[r].shade30,[`colorStatus${n}Foreground3`]:Jr[r].primary,[`colorStatus${n}ForegroundInverted`]:Jr[r].tint30,[`colorStatus${n}BorderActive`]:Jr[r].primary,[`colorStatus${n}Border1`]:Jr[r].tint40,[`colorStatus${n}Border2`]:Jr[r].primary};return Object.assign(e,o)},{});Cx.colorStatusWarningForeground1=Jr[yc.warning].shade20;Cx.colorStatusWarningForeground3=Jr[yc.warning].shade20;Cx.colorStatusWarningBorder2=Jr[yc.warning].shade20;const JFe=e=>({colorNeutralForeground1:Oe[14],colorNeutralForeground1Hover:Oe[14],colorNeutralForeground1Pressed:Oe[14],colorNeutralForeground1Selected:Oe[14],colorNeutralForeground2:Oe[26],colorNeutralForeground2Hover:Oe[14],colorNeutralForeground2Pressed:Oe[14],colorNeutralForeground2Selected:Oe[14],colorNeutralForeground2BrandHover:e[80],colorNeutralForeground2BrandPressed:e[70],colorNeutralForeground2BrandSelected:e[80],colorNeutralForeground3:Oe[38],colorNeutralForeground3Hover:Oe[26],colorNeutralForeground3Pressed:Oe[26],colorNeutralForeground3Selected:Oe[26],colorNeutralForeground3BrandHover:e[80],colorNeutralForeground3BrandPressed:e[70],colorNeutralForeground3BrandSelected:e[80],colorNeutralForeground4:Oe[44],colorNeutralForegroundDisabled:Oe[74],colorNeutralForegroundInvertedDisabled:ki[40],colorBrandForegroundLink:e[70],colorBrandForegroundLinkHover:e[60],colorBrandForegroundLinkPressed:e[40],colorBrandForegroundLinkSelected:e[70],colorNeutralForeground2Link:Oe[26],colorNeutralForeground2LinkHover:Oe[14],colorNeutralForeground2LinkPressed:Oe[14],colorNeutralForeground2LinkSelected:Oe[14],colorCompoundBrandForeground1:e[80],colorCompoundBrandForeground1Hover:e[70],colorCompoundBrandForeground1Pressed:e[60],colorBrandForeground1:e[80],colorBrandForeground2:e[70],colorBrandForeground2Hover:e[60],colorBrandForeground2Pressed:e[30],colorNeutralForeground1Static:Oe[14],colorNeutralForegroundStaticInverted:Xt,colorNeutralForegroundInverted:Xt,colorNeutralForegroundInvertedHover:Xt,colorNeutralForegroundInvertedPressed:Xt,colorNeutralForegroundInvertedSelected:Xt,colorNeutralForegroundInverted2:Xt,colorNeutralForegroundOnBrand:Xt,colorNeutralForegroundInvertedLink:Xt,colorNeutralForegroundInvertedLinkHover:Xt,colorNeutralForegroundInvertedLinkPressed:Xt,colorNeutralForegroundInvertedLinkSelected:Xt,colorBrandForegroundInverted:e[100],colorBrandForegroundInvertedHover:e[110],colorBrandForegroundInvertedPressed:e[100],colorBrandForegroundOnLight:e[80],colorBrandForegroundOnLightHover:e[70],colorBrandForegroundOnLightPressed:e[50],colorBrandForegroundOnLightSelected:e[60],colorNeutralBackground1:Xt,colorNeutralBackground1Hover:Oe[96],colorNeutralBackground1Pressed:Oe[88],colorNeutralBackground1Selected:Oe[92],colorNeutralBackground2:Oe[98],colorNeutralBackground2Hover:Oe[94],colorNeutralBackground2Pressed:Oe[86],colorNeutralBackground2Selected:Oe[90],colorNeutralBackground3:Oe[96],colorNeutralBackground3Hover:Oe[92],colorNeutralBackground3Pressed:Oe[84],colorNeutralBackground3Selected:Oe[88],colorNeutralBackground4:Oe[94],colorNeutralBackground4Hover:Oe[98],colorNeutralBackground4Pressed:Oe[96],colorNeutralBackground4Selected:Xt,colorNeutralBackground5:Oe[92],colorNeutralBackground5Hover:Oe[96],colorNeutralBackground5Pressed:Oe[94],colorNeutralBackground5Selected:Oe[98],colorNeutralBackground6:Oe[90],colorNeutralBackgroundInverted:Oe[16],colorNeutralBackgroundStatic:Oe[20],colorNeutralBackgroundAlpha:ki[50],colorNeutralBackgroundAlpha2:ki[80],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:Oe[96],colorSubtleBackgroundPressed:Oe[88],colorSubtleBackgroundSelected:Oe[92],colorSubtleBackgroundLightAlphaHover:ki[70],colorSubtleBackgroundLightAlphaPressed:ki[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:Qa[10],colorSubtleBackgroundInvertedPressed:Qa[30],colorSubtleBackgroundInvertedSelected:Qa[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:Oe[94],colorNeutralBackgroundInvertedDisabled:ki[10],colorNeutralStencil1:Oe[90],colorNeutralStencil2:Oe[98],colorNeutralStencil1Alpha:Qa[10],colorNeutralStencil2Alpha:Qa[5],colorBackgroundOverlay:Qa[40],colorScrollbarOverlay:Qa[50],colorBrandBackground:e[80],colorBrandBackgroundHover:e[70],colorBrandBackgroundPressed:e[40],colorBrandBackgroundSelected:e[60],colorCompoundBrandBackground:e[80],colorCompoundBrandBackgroundHover:e[70],colorCompoundBrandBackgroundPressed:e[60],colorBrandBackgroundStatic:e[80],colorBrandBackground2:e[160],colorBrandBackground2Hover:e[150],colorBrandBackground2Pressed:e[130],colorBrandBackgroundInverted:Xt,colorBrandBackgroundInvertedHover:e[160],colorBrandBackgroundInvertedPressed:e[140],colorBrandBackgroundInvertedSelected:e[150],colorNeutralStrokeAccessible:Oe[38],colorNeutralStrokeAccessibleHover:Oe[34],colorNeutralStrokeAccessiblePressed:Oe[30],colorNeutralStrokeAccessibleSelected:e[80],colorNeutralStroke1:Oe[82],colorNeutralStroke1Hover:Oe[78],colorNeutralStroke1Pressed:Oe[70],colorNeutralStroke1Selected:Oe[74],colorNeutralStroke2:Oe[88],colorNeutralStroke3:Oe[94],colorNeutralStrokeSubtle:Oe[88],colorNeutralStrokeOnBrand:Xt,colorNeutralStrokeOnBrand2:Xt,colorNeutralStrokeOnBrand2Hover:Xt,colorNeutralStrokeOnBrand2Pressed:Xt,colorNeutralStrokeOnBrand2Selected:Xt,colorBrandStroke1:e[80],colorBrandStroke2:e[140],colorBrandStroke2Hover:e[120],colorBrandStroke2Pressed:e[80],colorBrandStroke2Contrast:e[140],colorCompoundBrandStroke:e[80],colorCompoundBrandStrokeHover:e[70],colorCompoundBrandStrokePressed:e[60],colorNeutralStrokeDisabled:Oe[88],colorNeutralStrokeInvertedDisabled:ki[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:Qa[5],colorNeutralStrokeAlpha2:ki[20],colorStrokeFocus1:Xt,colorStrokeFocus2:aB,colorNeutralShadowAmbient:"rgba(0,0,0,0.12)",colorNeutralShadowKey:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.06)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.07)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.20)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.24)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"}),Zae={borderRadiusNone:"0",borderRadiusSmall:"2px",borderRadiusMedium:"4px",borderRadiusLarge:"6px",borderRadiusXLarge:"8px",borderRadiusCircular:"10000px"},Jae={curveAccelerateMax:"cubic-bezier(0.9,0.1,1,0.2)",curveAccelerateMid:"cubic-bezier(1,0,1,1)",curveAccelerateMin:"cubic-bezier(0.8,0,0.78,1)",curveDecelerateMax:"cubic-bezier(0.1,0.9,0.2,1)",curveDecelerateMid:"cubic-bezier(0,0,0,1)",curveDecelerateMin:"cubic-bezier(0.33,0,0.1,1)",curveEasyEaseMax:"cubic-bezier(0.8,0,0.2,1)",curveEasyEase:"cubic-bezier(0.33,0,0.67,1)",curveLinear:"cubic-bezier(0,0,1,1)"},eue={durationUltraFast:"50ms",durationFaster:"100ms",durationFast:"150ms",durationNormal:"200ms",durationGentle:"250ms",durationSlow:"300ms",durationSlower:"400ms",durationUltraSlow:"500ms"},tue={fontSizeBase100:"10px",fontSizeBase200:"12px",fontSizeBase300:"14px",fontSizeBase400:"16px",fontSizeBase500:"20px",fontSizeBase600:"24px",fontSizeHero700:"28px",fontSizeHero800:"32px",fontSizeHero900:"40px",fontSizeHero1000:"68px"},rue={lineHeightBase100:"14px",lineHeightBase200:"16px",lineHeightBase300:"20px",lineHeightBase400:"22px",lineHeightBase500:"28px",lineHeightBase600:"32px",lineHeightHero700:"36px",lineHeightHero800:"40px",lineHeightHero900:"52px",lineHeightHero1000:"92px"},nue={fontWeightRegular:400,fontWeightMedium:500,fontWeightSemibold:600,fontWeightBold:700},oue={fontFamilyBase:"'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif",fontFamilyMonospace:"Consolas, 'Courier New', Courier, monospace",fontFamilyNumeric:"Bahnschrift, 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif"},Qn={none:"0",xxs:"2px",xs:"4px",sNudge:"6px",s:"8px",mNudge:"10px",m:"12px",l:"16px",xl:"20px",xxl:"24px",xxxl:"32px"},iue={spacingHorizontalNone:Qn.none,spacingHorizontalXXS:Qn.xxs,spacingHorizontalXS:Qn.xs,spacingHorizontalSNudge:Qn.sNudge,spacingHorizontalS:Qn.s,spacingHorizontalMNudge:Qn.mNudge,spacingHorizontalM:Qn.m,spacingHorizontalL:Qn.l,spacingHorizontalXL:Qn.xl,spacingHorizontalXXL:Qn.xxl,spacingHorizontalXXXL:Qn.xxxl},sue={spacingVerticalNone:Qn.none,spacingVerticalXXS:Qn.xxs,spacingVerticalXS:Qn.xs,spacingVerticalSNudge:Qn.sNudge,spacingVerticalS:Qn.s,spacingVerticalMNudge:Qn.mNudge,spacingVerticalM:Qn.m,spacingVerticalL:Qn.l,spacingVerticalXL:Qn.xl,spacingVerticalXXL:Qn.xxl,spacingVerticalXXXL:Qn.xxxl},aue={strokeWidthThin:"1px",strokeWidthThick:"2px",strokeWidthThicker:"3px",strokeWidthThickest:"4px"},zt={colorNeutralForeground1:"var(--colorNeutralForeground1)",colorNeutralForeground1Hover:"var(--colorNeutralForeground1Hover)",colorNeutralForeground1Pressed:"var(--colorNeutralForeground1Pressed)",colorNeutralForeground1Selected:"var(--colorNeutralForeground1Selected)",colorNeutralForeground2:"var(--colorNeutralForeground2)",colorNeutralForeground2Hover:"var(--colorNeutralForeground2Hover)",colorNeutralForeground2Pressed:"var(--colorNeutralForeground2Pressed)",colorNeutralForeground2Selected:"var(--colorNeutralForeground2Selected)",colorNeutralForeground2BrandHover:"var(--colorNeutralForeground2BrandHover)",colorNeutralForeground2BrandPressed:"var(--colorNeutralForeground2BrandPressed)",colorNeutralForeground2BrandSelected:"var(--colorNeutralForeground2BrandSelected)",colorNeutralForeground3:"var(--colorNeutralForeground3)",colorNeutralForeground3Hover:"var(--colorNeutralForeground3Hover)",colorNeutralForeground3Pressed:"var(--colorNeutralForeground3Pressed)",colorNeutralForeground3Selected:"var(--colorNeutralForeground3Selected)",colorNeutralForeground3BrandHover:"var(--colorNeutralForeground3BrandHover)",colorNeutralForeground3BrandPressed:"var(--colorNeutralForeground3BrandPressed)",colorNeutralForeground3BrandSelected:"var(--colorNeutralForeground3BrandSelected)",colorNeutralForeground4:"var(--colorNeutralForeground4)",colorNeutralForegroundDisabled:"var(--colorNeutralForegroundDisabled)",colorBrandForegroundLink:"var(--colorBrandForegroundLink)",colorBrandForegroundLinkHover:"var(--colorBrandForegroundLinkHover)",colorBrandForegroundLinkPressed:"var(--colorBrandForegroundLinkPressed)",colorBrandForegroundLinkSelected:"var(--colorBrandForegroundLinkSelected)",colorNeutralForeground2Link:"var(--colorNeutralForeground2Link)",colorNeutralForeground2LinkHover:"var(--colorNeutralForeground2LinkHover)",colorNeutralForeground2LinkPressed:"var(--colorNeutralForeground2LinkPressed)",colorNeutralForeground2LinkSelected:"var(--colorNeutralForeground2LinkSelected)",colorCompoundBrandForeground1:"var(--colorCompoundBrandForeground1)",colorCompoundBrandForeground1Hover:"var(--colorCompoundBrandForeground1Hover)",colorCompoundBrandForeground1Pressed:"var(--colorCompoundBrandForeground1Pressed)",colorNeutralForegroundOnBrand:"var(--colorNeutralForegroundOnBrand)",colorNeutralForegroundInverted:"var(--colorNeutralForegroundInverted)",colorNeutralForegroundInvertedHover:"var(--colorNeutralForegroundInvertedHover)",colorNeutralForegroundInvertedPressed:"var(--colorNeutralForegroundInvertedPressed)",colorNeutralForegroundInvertedSelected:"var(--colorNeutralForegroundInvertedSelected)",colorNeutralForegroundInverted2:"var(--colorNeutralForegroundInverted2)",colorNeutralForegroundStaticInverted:"var(--colorNeutralForegroundStaticInverted)",colorNeutralForegroundInvertedLink:"var(--colorNeutralForegroundInvertedLink)",colorNeutralForegroundInvertedLinkHover:"var(--colorNeutralForegroundInvertedLinkHover)",colorNeutralForegroundInvertedLinkPressed:"var(--colorNeutralForegroundInvertedLinkPressed)",colorNeutralForegroundInvertedLinkSelected:"var(--colorNeutralForegroundInvertedLinkSelected)",colorNeutralForegroundInvertedDisabled:"var(--colorNeutralForegroundInvertedDisabled)",colorBrandForeground1:"var(--colorBrandForeground1)",colorBrandForeground2:"var(--colorBrandForeground2)",colorBrandForeground2Hover:"var(--colorBrandForeground2Hover)",colorBrandForeground2Pressed:"var(--colorBrandForeground2Pressed)",colorNeutralForeground1Static:"var(--colorNeutralForeground1Static)",colorBrandForegroundInverted:"var(--colorBrandForegroundInverted)",colorBrandForegroundInvertedHover:"var(--colorBrandForegroundInvertedHover)",colorBrandForegroundInvertedPressed:"var(--colorBrandForegroundInvertedPressed)",colorBrandForegroundOnLight:"var(--colorBrandForegroundOnLight)",colorBrandForegroundOnLightHover:"var(--colorBrandForegroundOnLightHover)",colorBrandForegroundOnLightPressed:"var(--colorBrandForegroundOnLightPressed)",colorBrandForegroundOnLightSelected:"var(--colorBrandForegroundOnLightSelected)",colorNeutralBackground1:"var(--colorNeutralBackground1)",colorNeutralBackground1Hover:"var(--colorNeutralBackground1Hover)",colorNeutralBackground1Pressed:"var(--colorNeutralBackground1Pressed)",colorNeutralBackground1Selected:"var(--colorNeutralBackground1Selected)",colorNeutralBackground2:"var(--colorNeutralBackground2)",colorNeutralBackground2Hover:"var(--colorNeutralBackground2Hover)",colorNeutralBackground2Pressed:"var(--colorNeutralBackground2Pressed)",colorNeutralBackground2Selected:"var(--colorNeutralBackground2Selected)",colorNeutralBackground3:"var(--colorNeutralBackground3)",colorNeutralBackground3Hover:"var(--colorNeutralBackground3Hover)",colorNeutralBackground3Pressed:"var(--colorNeutralBackground3Pressed)",colorNeutralBackground3Selected:"var(--colorNeutralBackground3Selected)",colorNeutralBackground4:"var(--colorNeutralBackground4)",colorNeutralBackground4Hover:"var(--colorNeutralBackground4Hover)",colorNeutralBackground4Pressed:"var(--colorNeutralBackground4Pressed)",colorNeutralBackground4Selected:"var(--colorNeutralBackground4Selected)",colorNeutralBackground5:"var(--colorNeutralBackground5)",colorNeutralBackground5Hover:"var(--colorNeutralBackground5Hover)",colorNeutralBackground5Pressed:"var(--colorNeutralBackground5Pressed)",colorNeutralBackground5Selected:"var(--colorNeutralBackground5Selected)",colorNeutralBackground6:"var(--colorNeutralBackground6)",colorNeutralBackgroundInverted:"var(--colorNeutralBackgroundInverted)",colorNeutralBackgroundStatic:"var(--colorNeutralBackgroundStatic)",colorNeutralBackgroundAlpha:"var(--colorNeutralBackgroundAlpha)",colorNeutralBackgroundAlpha2:"var(--colorNeutralBackgroundAlpha2)",colorSubtleBackground:"var(--colorSubtleBackground)",colorSubtleBackgroundHover:"var(--colorSubtleBackgroundHover)",colorSubtleBackgroundPressed:"var(--colorSubtleBackgroundPressed)",colorSubtleBackgroundSelected:"var(--colorSubtleBackgroundSelected)",colorSubtleBackgroundLightAlphaHover:"var(--colorSubtleBackgroundLightAlphaHover)",colorSubtleBackgroundLightAlphaPressed:"var(--colorSubtleBackgroundLightAlphaPressed)",colorSubtleBackgroundLightAlphaSelected:"var(--colorSubtleBackgroundLightAlphaSelected)",colorSubtleBackgroundInverted:"var(--colorSubtleBackgroundInverted)",colorSubtleBackgroundInvertedHover:"var(--colorSubtleBackgroundInvertedHover)",colorSubtleBackgroundInvertedPressed:"var(--colorSubtleBackgroundInvertedPressed)",colorSubtleBackgroundInvertedSelected:"var(--colorSubtleBackgroundInvertedSelected)",colorTransparentBackground:"var(--colorTransparentBackground)",colorTransparentBackgroundHover:"var(--colorTransparentBackgroundHover)",colorTransparentBackgroundPressed:"var(--colorTransparentBackgroundPressed)",colorTransparentBackgroundSelected:"var(--colorTransparentBackgroundSelected)",colorNeutralBackgroundDisabled:"var(--colorNeutralBackgroundDisabled)",colorNeutralBackgroundInvertedDisabled:"var(--colorNeutralBackgroundInvertedDisabled)",colorNeutralStencil1:"var(--colorNeutralStencil1)",colorNeutralStencil2:"var(--colorNeutralStencil2)",colorNeutralStencil1Alpha:"var(--colorNeutralStencil1Alpha)",colorNeutralStencil2Alpha:"var(--colorNeutralStencil2Alpha)",colorBackgroundOverlay:"var(--colorBackgroundOverlay)",colorScrollbarOverlay:"var(--colorScrollbarOverlay)",colorBrandBackground:"var(--colorBrandBackground)",colorBrandBackgroundHover:"var(--colorBrandBackgroundHover)",colorBrandBackgroundPressed:"var(--colorBrandBackgroundPressed)",colorBrandBackgroundSelected:"var(--colorBrandBackgroundSelected)",colorCompoundBrandBackground:"var(--colorCompoundBrandBackground)",colorCompoundBrandBackgroundHover:"var(--colorCompoundBrandBackgroundHover)",colorCompoundBrandBackgroundPressed:"var(--colorCompoundBrandBackgroundPressed)",colorBrandBackgroundStatic:"var(--colorBrandBackgroundStatic)",colorBrandBackground2:"var(--colorBrandBackground2)",colorBrandBackground2Hover:"var(--colorBrandBackground2Hover)",colorBrandBackground2Pressed:"var(--colorBrandBackground2Pressed)",colorBrandBackgroundInverted:"var(--colorBrandBackgroundInverted)",colorBrandBackgroundInvertedHover:"var(--colorBrandBackgroundInvertedHover)",colorBrandBackgroundInvertedPressed:"var(--colorBrandBackgroundInvertedPressed)",colorBrandBackgroundInvertedSelected:"var(--colorBrandBackgroundInvertedSelected)",colorNeutralStrokeAccessible:"var(--colorNeutralStrokeAccessible)",colorNeutralStrokeAccessibleHover:"var(--colorNeutralStrokeAccessibleHover)",colorNeutralStrokeAccessiblePressed:"var(--colorNeutralStrokeAccessiblePressed)",colorNeutralStrokeAccessibleSelected:"var(--colorNeutralStrokeAccessibleSelected)",colorNeutralStroke1:"var(--colorNeutralStroke1)",colorNeutralStroke1Hover:"var(--colorNeutralStroke1Hover)",colorNeutralStroke1Pressed:"var(--colorNeutralStroke1Pressed)",colorNeutralStroke1Selected:"var(--colorNeutralStroke1Selected)",colorNeutralStroke2:"var(--colorNeutralStroke2)",colorNeutralStroke3:"var(--colorNeutralStroke3)",colorNeutralStrokeSubtle:"var(--colorNeutralStrokeSubtle)",colorNeutralStrokeOnBrand:"var(--colorNeutralStrokeOnBrand)",colorNeutralStrokeOnBrand2:"var(--colorNeutralStrokeOnBrand2)",colorNeutralStrokeOnBrand2Hover:"var(--colorNeutralStrokeOnBrand2Hover)",colorNeutralStrokeOnBrand2Pressed:"var(--colorNeutralStrokeOnBrand2Pressed)",colorNeutralStrokeOnBrand2Selected:"var(--colorNeutralStrokeOnBrand2Selected)",colorBrandStroke1:"var(--colorBrandStroke1)",colorBrandStroke2:"var(--colorBrandStroke2)",colorBrandStroke2Hover:"var(--colorBrandStroke2Hover)",colorBrandStroke2Pressed:"var(--colorBrandStroke2Pressed)",colorBrandStroke2Contrast:"var(--colorBrandStroke2Contrast)",colorCompoundBrandStroke:"var(--colorCompoundBrandStroke)",colorCompoundBrandStrokeHover:"var(--colorCompoundBrandStrokeHover)",colorCompoundBrandStrokePressed:"var(--colorCompoundBrandStrokePressed)",colorNeutralStrokeDisabled:"var(--colorNeutralStrokeDisabled)",colorNeutralStrokeInvertedDisabled:"var(--colorNeutralStrokeInvertedDisabled)",colorTransparentStroke:"var(--colorTransparentStroke)",colorTransparentStrokeInteractive:"var(--colorTransparentStrokeInteractive)",colorTransparentStrokeDisabled:"var(--colorTransparentStrokeDisabled)",colorNeutralStrokeAlpha:"var(--colorNeutralStrokeAlpha)",colorNeutralStrokeAlpha2:"var(--colorNeutralStrokeAlpha2)",colorStrokeFocus1:"var(--colorStrokeFocus1)",colorStrokeFocus2:"var(--colorStrokeFocus2)",colorNeutralShadowAmbient:"var(--colorNeutralShadowAmbient)",colorNeutralShadowKey:"var(--colorNeutralShadowKey)",colorNeutralShadowAmbientLighter:"var(--colorNeutralShadowAmbientLighter)",colorNeutralShadowKeyLighter:"var(--colorNeutralShadowKeyLighter)",colorNeutralShadowAmbientDarker:"var(--colorNeutralShadowAmbientDarker)",colorNeutralShadowKeyDarker:"var(--colorNeutralShadowKeyDarker)",colorBrandShadowAmbient:"var(--colorBrandShadowAmbient)",colorBrandShadowKey:"var(--colorBrandShadowKey)",colorPaletteRedBackground1:"var(--colorPaletteRedBackground1)",colorPaletteRedBackground2:"var(--colorPaletteRedBackground2)",colorPaletteRedBackground3:"var(--colorPaletteRedBackground3)",colorPaletteRedBorderActive:"var(--colorPaletteRedBorderActive)",colorPaletteRedBorder1:"var(--colorPaletteRedBorder1)",colorPaletteRedBorder2:"var(--colorPaletteRedBorder2)",colorPaletteRedForeground1:"var(--colorPaletteRedForeground1)",colorPaletteRedForeground2:"var(--colorPaletteRedForeground2)",colorPaletteRedForeground3:"var(--colorPaletteRedForeground3)",colorPaletteRedForegroundInverted:"var(--colorPaletteRedForegroundInverted)",colorPaletteGreenBackground1:"var(--colorPaletteGreenBackground1)",colorPaletteGreenBackground2:"var(--colorPaletteGreenBackground2)",colorPaletteGreenBackground3:"var(--colorPaletteGreenBackground3)",colorPaletteGreenBorderActive:"var(--colorPaletteGreenBorderActive)",colorPaletteGreenBorder1:"var(--colorPaletteGreenBorder1)",colorPaletteGreenBorder2:"var(--colorPaletteGreenBorder2)",colorPaletteGreenForeground1:"var(--colorPaletteGreenForeground1)",colorPaletteGreenForeground2:"var(--colorPaletteGreenForeground2)",colorPaletteGreenForeground3:"var(--colorPaletteGreenForeground3)",colorPaletteGreenForegroundInverted:"var(--colorPaletteGreenForegroundInverted)",colorPaletteDarkOrangeBackground1:"var(--colorPaletteDarkOrangeBackground1)",colorPaletteDarkOrangeBackground2:"var(--colorPaletteDarkOrangeBackground2)",colorPaletteDarkOrangeBackground3:"var(--colorPaletteDarkOrangeBackground3)",colorPaletteDarkOrangeBorderActive:"var(--colorPaletteDarkOrangeBorderActive)",colorPaletteDarkOrangeBorder1:"var(--colorPaletteDarkOrangeBorder1)",colorPaletteDarkOrangeBorder2:"var(--colorPaletteDarkOrangeBorder2)",colorPaletteDarkOrangeForeground1:"var(--colorPaletteDarkOrangeForeground1)",colorPaletteDarkOrangeForeground2:"var(--colorPaletteDarkOrangeForeground2)",colorPaletteDarkOrangeForeground3:"var(--colorPaletteDarkOrangeForeground3)",colorPaletteYellowBackground1:"var(--colorPaletteYellowBackground1)",colorPaletteYellowBackground2:"var(--colorPaletteYellowBackground2)",colorPaletteYellowBackground3:"var(--colorPaletteYellowBackground3)",colorPaletteYellowBorderActive:"var(--colorPaletteYellowBorderActive)",colorPaletteYellowBorder1:"var(--colorPaletteYellowBorder1)",colorPaletteYellowBorder2:"var(--colorPaletteYellowBorder2)",colorPaletteYellowForeground1:"var(--colorPaletteYellowForeground1)",colorPaletteYellowForeground2:"var(--colorPaletteYellowForeground2)",colorPaletteYellowForeground3:"var(--colorPaletteYellowForeground3)",colorPaletteYellowForegroundInverted:"var(--colorPaletteYellowForegroundInverted)",colorPaletteBerryBackground1:"var(--colorPaletteBerryBackground1)",colorPaletteBerryBackground2:"var(--colorPaletteBerryBackground2)",colorPaletteBerryBackground3:"var(--colorPaletteBerryBackground3)",colorPaletteBerryBorderActive:"var(--colorPaletteBerryBorderActive)",colorPaletteBerryBorder1:"var(--colorPaletteBerryBorder1)",colorPaletteBerryBorder2:"var(--colorPaletteBerryBorder2)",colorPaletteBerryForeground1:"var(--colorPaletteBerryForeground1)",colorPaletteBerryForeground2:"var(--colorPaletteBerryForeground2)",colorPaletteBerryForeground3:"var(--colorPaletteBerryForeground3)",colorPaletteMarigoldBackground1:"var(--colorPaletteMarigoldBackground1)",colorPaletteMarigoldBackground2:"var(--colorPaletteMarigoldBackground2)",colorPaletteMarigoldBackground3:"var(--colorPaletteMarigoldBackground3)",colorPaletteMarigoldBorderActive:"var(--colorPaletteMarigoldBorderActive)",colorPaletteMarigoldBorder1:"var(--colorPaletteMarigoldBorder1)",colorPaletteMarigoldBorder2:"var(--colorPaletteMarigoldBorder2)",colorPaletteMarigoldForeground1:"var(--colorPaletteMarigoldForeground1)",colorPaletteMarigoldForeground2:"var(--colorPaletteMarigoldForeground2)",colorPaletteMarigoldForeground3:"var(--colorPaletteMarigoldForeground3)",colorPaletteLightGreenBackground1:"var(--colorPaletteLightGreenBackground1)",colorPaletteLightGreenBackground2:"var(--colorPaletteLightGreenBackground2)",colorPaletteLightGreenBackground3:"var(--colorPaletteLightGreenBackground3)",colorPaletteLightGreenBorderActive:"var(--colorPaletteLightGreenBorderActive)",colorPaletteLightGreenBorder1:"var(--colorPaletteLightGreenBorder1)",colorPaletteLightGreenBorder2:"var(--colorPaletteLightGreenBorder2)",colorPaletteLightGreenForeground1:"var(--colorPaletteLightGreenForeground1)",colorPaletteLightGreenForeground2:"var(--colorPaletteLightGreenForeground2)",colorPaletteLightGreenForeground3:"var(--colorPaletteLightGreenForeground3)",colorPaletteAnchorBackground2:"var(--colorPaletteAnchorBackground2)",colorPaletteAnchorBorderActive:"var(--colorPaletteAnchorBorderActive)",colorPaletteAnchorForeground2:"var(--colorPaletteAnchorForeground2)",colorPaletteBeigeBackground2:"var(--colorPaletteBeigeBackground2)",colorPaletteBeigeBorderActive:"var(--colorPaletteBeigeBorderActive)",colorPaletteBeigeForeground2:"var(--colorPaletteBeigeForeground2)",colorPaletteBlueBackground2:"var(--colorPaletteBlueBackground2)",colorPaletteBlueBorderActive:"var(--colorPaletteBlueBorderActive)",colorPaletteBlueForeground2:"var(--colorPaletteBlueForeground2)",colorPaletteBrassBackground2:"var(--colorPaletteBrassBackground2)",colorPaletteBrassBorderActive:"var(--colorPaletteBrassBorderActive)",colorPaletteBrassForeground2:"var(--colorPaletteBrassForeground2)",colorPaletteBrownBackground2:"var(--colorPaletteBrownBackground2)",colorPaletteBrownBorderActive:"var(--colorPaletteBrownBorderActive)",colorPaletteBrownForeground2:"var(--colorPaletteBrownForeground2)",colorPaletteCornflowerBackground2:"var(--colorPaletteCornflowerBackground2)",colorPaletteCornflowerBorderActive:"var(--colorPaletteCornflowerBorderActive)",colorPaletteCornflowerForeground2:"var(--colorPaletteCornflowerForeground2)",colorPaletteCranberryBackground2:"var(--colorPaletteCranberryBackground2)",colorPaletteCranberryBorderActive:"var(--colorPaletteCranberryBorderActive)",colorPaletteCranberryForeground2:"var(--colorPaletteCranberryForeground2)",colorPaletteDarkGreenBackground2:"var(--colorPaletteDarkGreenBackground2)",colorPaletteDarkGreenBorderActive:"var(--colorPaletteDarkGreenBorderActive)",colorPaletteDarkGreenForeground2:"var(--colorPaletteDarkGreenForeground2)",colorPaletteDarkRedBackground2:"var(--colorPaletteDarkRedBackground2)",colorPaletteDarkRedBorderActive:"var(--colorPaletteDarkRedBorderActive)",colorPaletteDarkRedForeground2:"var(--colorPaletteDarkRedForeground2)",colorPaletteForestBackground2:"var(--colorPaletteForestBackground2)",colorPaletteForestBorderActive:"var(--colorPaletteForestBorderActive)",colorPaletteForestForeground2:"var(--colorPaletteForestForeground2)",colorPaletteGoldBackground2:"var(--colorPaletteGoldBackground2)",colorPaletteGoldBorderActive:"var(--colorPaletteGoldBorderActive)",colorPaletteGoldForeground2:"var(--colorPaletteGoldForeground2)",colorPaletteGrapeBackground2:"var(--colorPaletteGrapeBackground2)",colorPaletteGrapeBorderActive:"var(--colorPaletteGrapeBorderActive)",colorPaletteGrapeForeground2:"var(--colorPaletteGrapeForeground2)",colorPaletteLavenderBackground2:"var(--colorPaletteLavenderBackground2)",colorPaletteLavenderBorderActive:"var(--colorPaletteLavenderBorderActive)",colorPaletteLavenderForeground2:"var(--colorPaletteLavenderForeground2)",colorPaletteLightTealBackground2:"var(--colorPaletteLightTealBackground2)",colorPaletteLightTealBorderActive:"var(--colorPaletteLightTealBorderActive)",colorPaletteLightTealForeground2:"var(--colorPaletteLightTealForeground2)",colorPaletteLilacBackground2:"var(--colorPaletteLilacBackground2)",colorPaletteLilacBorderActive:"var(--colorPaletteLilacBorderActive)",colorPaletteLilacForeground2:"var(--colorPaletteLilacForeground2)",colorPaletteMagentaBackground2:"var(--colorPaletteMagentaBackground2)",colorPaletteMagentaBorderActive:"var(--colorPaletteMagentaBorderActive)",colorPaletteMagentaForeground2:"var(--colorPaletteMagentaForeground2)",colorPaletteMinkBackground2:"var(--colorPaletteMinkBackground2)",colorPaletteMinkBorderActive:"var(--colorPaletteMinkBorderActive)",colorPaletteMinkForeground2:"var(--colorPaletteMinkForeground2)",colorPaletteNavyBackground2:"var(--colorPaletteNavyBackground2)",colorPaletteNavyBorderActive:"var(--colorPaletteNavyBorderActive)",colorPaletteNavyForeground2:"var(--colorPaletteNavyForeground2)",colorPalettePeachBackground2:"var(--colorPalettePeachBackground2)",colorPalettePeachBorderActive:"var(--colorPalettePeachBorderActive)",colorPalettePeachForeground2:"var(--colorPalettePeachForeground2)",colorPalettePinkBackground2:"var(--colorPalettePinkBackground2)",colorPalettePinkBorderActive:"var(--colorPalettePinkBorderActive)",colorPalettePinkForeground2:"var(--colorPalettePinkForeground2)",colorPalettePlatinumBackground2:"var(--colorPalettePlatinumBackground2)",colorPalettePlatinumBorderActive:"var(--colorPalettePlatinumBorderActive)",colorPalettePlatinumForeground2:"var(--colorPalettePlatinumForeground2)",colorPalettePlumBackground2:"var(--colorPalettePlumBackground2)",colorPalettePlumBorderActive:"var(--colorPalettePlumBorderActive)",colorPalettePlumForeground2:"var(--colorPalettePlumForeground2)",colorPalettePumpkinBackground2:"var(--colorPalettePumpkinBackground2)",colorPalettePumpkinBorderActive:"var(--colorPalettePumpkinBorderActive)",colorPalettePumpkinForeground2:"var(--colorPalettePumpkinForeground2)",colorPalettePurpleBackground2:"var(--colorPalettePurpleBackground2)",colorPalettePurpleBorderActive:"var(--colorPalettePurpleBorderActive)",colorPalettePurpleForeground2:"var(--colorPalettePurpleForeground2)",colorPaletteRoyalBlueBackground2:"var(--colorPaletteRoyalBlueBackground2)",colorPaletteRoyalBlueBorderActive:"var(--colorPaletteRoyalBlueBorderActive)",colorPaletteRoyalBlueForeground2:"var(--colorPaletteRoyalBlueForeground2)",colorPaletteSeafoamBackground2:"var(--colorPaletteSeafoamBackground2)",colorPaletteSeafoamBorderActive:"var(--colorPaletteSeafoamBorderActive)",colorPaletteSeafoamForeground2:"var(--colorPaletteSeafoamForeground2)",colorPaletteSteelBackground2:"var(--colorPaletteSteelBackground2)",colorPaletteSteelBorderActive:"var(--colorPaletteSteelBorderActive)",colorPaletteSteelForeground2:"var(--colorPaletteSteelForeground2)",colorPaletteTealBackground2:"var(--colorPaletteTealBackground2)",colorPaletteTealBorderActive:"var(--colorPaletteTealBorderActive)",colorPaletteTealForeground2:"var(--colorPaletteTealForeground2)",colorStatusSuccessBackground1:"var(--colorStatusSuccessBackground1)",colorStatusSuccessBackground2:"var(--colorStatusSuccessBackground2)",colorStatusSuccessBackground3:"var(--colorStatusSuccessBackground3)",colorStatusSuccessForeground1:"var(--colorStatusSuccessForeground1)",colorStatusSuccessForeground2:"var(--colorStatusSuccessForeground2)",colorStatusSuccessForeground3:"var(--colorStatusSuccessForeground3)",colorStatusSuccessForegroundInverted:"var(--colorStatusSuccessForegroundInverted)",colorStatusSuccessBorderActive:"var(--colorStatusSuccessBorderActive)",colorStatusSuccessBorder1:"var(--colorStatusSuccessBorder1)",colorStatusSuccessBorder2:"var(--colorStatusSuccessBorder2)",colorStatusWarningBackground1:"var(--colorStatusWarningBackground1)",colorStatusWarningBackground2:"var(--colorStatusWarningBackground2)",colorStatusWarningBackground3:"var(--colorStatusWarningBackground3)",colorStatusWarningForeground1:"var(--colorStatusWarningForeground1)",colorStatusWarningForeground2:"var(--colorStatusWarningForeground2)",colorStatusWarningForeground3:"var(--colorStatusWarningForeground3)",colorStatusWarningForegroundInverted:"var(--colorStatusWarningForegroundInverted)",colorStatusWarningBorderActive:"var(--colorStatusWarningBorderActive)",colorStatusWarningBorder1:"var(--colorStatusWarningBorder1)",colorStatusWarningBorder2:"var(--colorStatusWarningBorder2)",colorStatusDangerBackground1:"var(--colorStatusDangerBackground1)",colorStatusDangerBackground2:"var(--colorStatusDangerBackground2)",colorStatusDangerBackground3:"var(--colorStatusDangerBackground3)",colorStatusDangerForeground1:"var(--colorStatusDangerForeground1)",colorStatusDangerForeground2:"var(--colorStatusDangerForeground2)",colorStatusDangerForeground3:"var(--colorStatusDangerForeground3)",colorStatusDangerForegroundInverted:"var(--colorStatusDangerForegroundInverted)",colorStatusDangerBorderActive:"var(--colorStatusDangerBorderActive)",colorStatusDangerBorder1:"var(--colorStatusDangerBorder1)",colorStatusDangerBorder2:"var(--colorStatusDangerBorder2)",borderRadiusNone:"var(--borderRadiusNone)",borderRadiusSmall:"var(--borderRadiusSmall)",borderRadiusMedium:"var(--borderRadiusMedium)",borderRadiusLarge:"var(--borderRadiusLarge)",borderRadiusXLarge:"var(--borderRadiusXLarge)",borderRadiusCircular:"var(--borderRadiusCircular)",fontFamilyBase:"var(--fontFamilyBase)",fontFamilyMonospace:"var(--fontFamilyMonospace)",fontFamilyNumeric:"var(--fontFamilyNumeric)",fontSizeBase100:"var(--fontSizeBase100)",fontSizeBase200:"var(--fontSizeBase200)",fontSizeBase300:"var(--fontSizeBase300)",fontSizeBase400:"var(--fontSizeBase400)",fontSizeBase500:"var(--fontSizeBase500)",fontSizeBase600:"var(--fontSizeBase600)",fontSizeHero700:"var(--fontSizeHero700)",fontSizeHero800:"var(--fontSizeHero800)",fontSizeHero900:"var(--fontSizeHero900)",fontSizeHero1000:"var(--fontSizeHero1000)",fontWeightRegular:"var(--fontWeightRegular)",fontWeightMedium:"var(--fontWeightMedium)",fontWeightSemibold:"var(--fontWeightSemibold)",fontWeightBold:"var(--fontWeightBold)",lineHeightBase100:"var(--lineHeightBase100)",lineHeightBase200:"var(--lineHeightBase200)",lineHeightBase300:"var(--lineHeightBase300)",lineHeightBase400:"var(--lineHeightBase400)",lineHeightBase500:"var(--lineHeightBase500)",lineHeightBase600:"var(--lineHeightBase600)",lineHeightHero700:"var(--lineHeightHero700)",lineHeightHero800:"var(--lineHeightHero800)",lineHeightHero900:"var(--lineHeightHero900)",lineHeightHero1000:"var(--lineHeightHero1000)",shadow2:"var(--shadow2)",shadow4:"var(--shadow4)",shadow8:"var(--shadow8)",shadow16:"var(--shadow16)",shadow28:"var(--shadow28)",shadow64:"var(--shadow64)",shadow2Brand:"var(--shadow2Brand)",shadow4Brand:"var(--shadow4Brand)",shadow8Brand:"var(--shadow8Brand)",shadow16Brand:"var(--shadow16Brand)",shadow28Brand:"var(--shadow28Brand)",shadow64Brand:"var(--shadow64Brand)",strokeWidthThin:"var(--strokeWidthThin)",strokeWidthThick:"var(--strokeWidthThick)",strokeWidthThicker:"var(--strokeWidthThicker)",strokeWidthThickest:"var(--strokeWidthThickest)",spacingHorizontalNone:"var(--spacingHorizontalNone)",spacingHorizontalXXS:"var(--spacingHorizontalXXS)",spacingHorizontalXS:"var(--spacingHorizontalXS)",spacingHorizontalSNudge:"var(--spacingHorizontalSNudge)",spacingHorizontalS:"var(--spacingHorizontalS)",spacingHorizontalMNudge:"var(--spacingHorizontalMNudge)",spacingHorizontalM:"var(--spacingHorizontalM)",spacingHorizontalL:"var(--spacingHorizontalL)",spacingHorizontalXL:"var(--spacingHorizontalXL)",spacingHorizontalXXL:"var(--spacingHorizontalXXL)",spacingHorizontalXXXL:"var(--spacingHorizontalXXXL)",spacingVerticalNone:"var(--spacingVerticalNone)",spacingVerticalXXS:"var(--spacingVerticalXXS)",spacingVerticalXS:"var(--spacingVerticalXS)",spacingVerticalSNudge:"var(--spacingVerticalSNudge)",spacingVerticalS:"var(--spacingVerticalS)",spacingVerticalMNudge:"var(--spacingVerticalMNudge)",spacingVerticalM:"var(--spacingVerticalM)",spacingVerticalL:"var(--spacingVerticalL)",spacingVerticalXL:"var(--spacingVerticalXL)",spacingVerticalXXL:"var(--spacingVerticalXXL)",spacingVerticalXXXL:"var(--spacingVerticalXXXL)",durationUltraFast:"var(--durationUltraFast)",durationFaster:"var(--durationFaster)",durationFast:"var(--durationFast)",durationNormal:"var(--durationNormal)",durationGentle:"var(--durationGentle)",durationSlow:"var(--durationSlow)",durationSlower:"var(--durationSlower)",durationUltraSlow:"var(--durationUltraSlow)",curveAccelerateMax:"var(--curveAccelerateMax)",curveAccelerateMid:"var(--curveAccelerateMid)",curveAccelerateMin:"var(--curveAccelerateMin)",curveDecelerateMax:"var(--curveDecelerateMax)",curveDecelerateMid:"var(--curveDecelerateMid)",curveDecelerateMin:"var(--curveDecelerateMin)",curveEasyEaseMax:"var(--curveEasyEaseMax)",curveEasyEase:"var(--curveEasyEase)",curveLinear:"var(--curveLinear)"};function MA(e,t,r=""){return{[`shadow2${r}`]:`0 0 2px ${e}, 0 1px 2px ${t}`,[`shadow4${r}`]:`0 0 2px ${e}, 0 2px 4px ${t}`,[`shadow8${r}`]:`0 0 2px ${e}, 0 4px 8px ${t}`,[`shadow16${r}`]:`0 0 2px ${e}, 0 8px 16px ${t}`,[`shadow28${r}`]:`0 0 8px ${e}, 0 14px 28px ${t}`,[`shadow64${r}`]:`0 0 8px ${e}, 0 32px 64px ${t}`}}const eBe=e=>{const t=JFe(e);return{...Zae,...tue,...rue,...oue,...nue,...aue,...iue,...sue,...eue,...Jae,...t,...ZFe,...Cx,...MA(t.colorNeutralShadowAmbient,t.colorNeutralShadowKey),...MA(t.colorBrandShadowAmbient,t.colorBrandShadowKey,"Brand")}},uue={10:"#2b2b40",20:"#2f2f4a",30:"#333357",40:"#383966",50:"#3d3e78",60:"#444791",70:"#4f52b2",80:"#5b5fc7",90:"#7579eb",100:"#7f85f5",110:"#9299f7",120:"#aab1fa",130:"#b6bcfa",140:"#c5cbfa",150:"#dce0fa",160:"#e8ebfa"},tBe=eBe(uue),bc=Xae.reduce((e,t)=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),n={[`colorPalette${r}Background1`]:Mr[t].shade40,[`colorPalette${r}Background2`]:Mr[t].shade30,[`colorPalette${r}Background3`]:Mr[t].primary,[`colorPalette${r}Foreground1`]:Mr[t].tint30,[`colorPalette${r}Foreground2`]:Mr[t].tint40,[`colorPalette${r}Foreground3`]:Mr[t].tint20,[`colorPalette${r}BorderActive`]:Mr[t].tint30,[`colorPalette${r}Border1`]:Mr[t].primary,[`colorPalette${r}Border2`]:Mr[t].tint20};return Object.assign(e,n)},{});bc.colorPaletteRedForeground3=Mr.red.tint30;bc.colorPaletteRedBorder2=Mr.red.tint30;bc.colorPaletteGreenForeground3=Mr.green.tint40;bc.colorPaletteGreenBorder2=Mr.green.tint40;bc.colorPaletteDarkOrangeForeground3=Mr.darkOrange.tint30;bc.colorPaletteDarkOrangeBorder2=Mr.darkOrange.tint30;bc.colorPaletteRedForegroundInverted=Mr.red.primary;bc.colorPaletteGreenForegroundInverted=Mr.green.primary;bc.colorPaletteYellowForegroundInverted=Mr.yellow.shade30;const p8=Qae.reduce((e,t)=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),n={[`colorPalette${r}Background2`]:Xd[t].shade30,[`colorPalette${r}Foreground2`]:Xd[t].tint40,[`colorPalette${r}BorderActive`]:Xd[t].tint30};return Object.assign(e,n)},{});p8.colorPaletteDarkRedBackground2=Xd.darkRed.shade20;p8.colorPalettePlumBackground2=Xd.plum.shade20;const rBe={...bc,...p8},dv=Object.entries(yc).reduce((e,[t,r])=>{const n=t.slice(0,1).toUpperCase()+t.slice(1),o={[`colorStatus${n}Background1`]:Jr[r].shade40,[`colorStatus${n}Background2`]:Jr[r].shade30,[`colorStatus${n}Background3`]:Jr[r].primary,[`colorStatus${n}Foreground1`]:Jr[r].tint30,[`colorStatus${n}Foreground2`]:Jr[r].tint40,[`colorStatus${n}Foreground3`]:Jr[r].tint20,[`colorStatus${n}BorderActive`]:Jr[r].tint30,[`colorStatus${n}ForegroundInverted`]:Jr[r].shade10,[`colorStatus${n}Border1`]:Jr[r].primary,[`colorStatus${n}Border2`]:Jr[r].tint20};return Object.assign(e,o)},{});dv.colorStatusDangerForeground3=Jr[yc.danger].tint30;dv.colorStatusDangerBorder2=Jr[yc.danger].tint30;dv.colorStatusSuccessForeground3=Jr[yc.success].tint40;dv.colorStatusSuccessBorder2=Jr[yc.success].tint40;dv.colorStatusWarningForegroundInverted=Jr[yc.warning].shade20;const nBe=e=>({colorNeutralForeground1:Xt,colorNeutralForeground1Hover:Xt,colorNeutralForeground1Pressed:Xt,colorNeutralForeground1Selected:Xt,colorNeutralForeground2:Oe[84],colorNeutralForeground2Hover:Xt,colorNeutralForeground2Pressed:Xt,colorNeutralForeground2Selected:Xt,colorNeutralForeground2BrandHover:e[100],colorNeutralForeground2BrandPressed:e[90],colorNeutralForeground2BrandSelected:e[100],colorNeutralForeground3:Oe[68],colorNeutralForeground3Hover:Oe[84],colorNeutralForeground3Pressed:Oe[84],colorNeutralForeground3Selected:Oe[84],colorNeutralForeground3BrandHover:e[100],colorNeutralForeground3BrandPressed:e[90],colorNeutralForeground3BrandSelected:e[100],colorNeutralForeground4:Oe[60],colorNeutralForegroundDisabled:Oe[36],colorNeutralForegroundInvertedDisabled:ki[40],colorBrandForegroundLink:e[100],colorBrandForegroundLinkHover:e[110],colorBrandForegroundLinkPressed:e[90],colorBrandForegroundLinkSelected:e[100],colorNeutralForeground2Link:Oe[84],colorNeutralForeground2LinkHover:Xt,colorNeutralForeground2LinkPressed:Xt,colorNeutralForeground2LinkSelected:Xt,colorCompoundBrandForeground1:e[100],colorCompoundBrandForeground1Hover:e[110],colorCompoundBrandForeground1Pressed:e[90],colorBrandForeground1:e[100],colorBrandForeground2:e[120],colorBrandForeground2Hover:e[130],colorBrandForeground2Pressed:e[160],colorNeutralForeground1Static:Oe[14],colorNeutralForegroundStaticInverted:Xt,colorNeutralForegroundInverted:Oe[14],colorNeutralForegroundInvertedHover:Oe[14],colorNeutralForegroundInvertedPressed:Oe[14],colorNeutralForegroundInvertedSelected:Oe[14],colorNeutralForegroundInverted2:Oe[14],colorNeutralForegroundOnBrand:Xt,colorNeutralForegroundInvertedLink:Xt,colorNeutralForegroundInvertedLinkHover:Xt,colorNeutralForegroundInvertedLinkPressed:Xt,colorNeutralForegroundInvertedLinkSelected:Xt,colorBrandForegroundInverted:e[80],colorBrandForegroundInvertedHover:e[70],colorBrandForegroundInvertedPressed:e[60],colorBrandForegroundOnLight:e[80],colorBrandForegroundOnLightHover:e[70],colorBrandForegroundOnLightPressed:e[50],colorBrandForegroundOnLightSelected:e[60],colorNeutralBackground1:Oe[16],colorNeutralBackground1Hover:Oe[24],colorNeutralBackground1Pressed:Oe[12],colorNeutralBackground1Selected:Oe[22],colorNeutralBackground2:Oe[14],colorNeutralBackground2Hover:Oe[22],colorNeutralBackground2Pressed:Oe[10],colorNeutralBackground2Selected:Oe[20],colorNeutralBackground3:Oe[12],colorNeutralBackground3Hover:Oe[20],colorNeutralBackground3Pressed:Oe[8],colorNeutralBackground3Selected:Oe[18],colorNeutralBackground4:Oe[8],colorNeutralBackground4Hover:Oe[16],colorNeutralBackground4Pressed:Oe[4],colorNeutralBackground4Selected:Oe[14],colorNeutralBackground5:Oe[4],colorNeutralBackground5Hover:Oe[12],colorNeutralBackground5Pressed:aB,colorNeutralBackground5Selected:Oe[10],colorNeutralBackground6:Oe[20],colorNeutralBackgroundInverted:Xt,colorNeutralBackgroundStatic:Oe[24],colorNeutralBackgroundAlpha:gFe[50],colorNeutralBackgroundAlpha2:vFe[70],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:Oe[22],colorSubtleBackgroundPressed:Oe[18],colorSubtleBackgroundSelected:Oe[20],colorSubtleBackgroundLightAlphaHover:iK[80],colorSubtleBackgroundLightAlphaPressed:iK[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:Qa[10],colorSubtleBackgroundInvertedPressed:Qa[30],colorSubtleBackgroundInvertedSelected:Qa[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:Oe[8],colorNeutralBackgroundInvertedDisabled:ki[10],colorNeutralStencil1:Oe[34],colorNeutralStencil2:Oe[20],colorNeutralStencil1Alpha:ki[10],colorNeutralStencil2Alpha:ki[5],colorBackgroundOverlay:Qa[50],colorScrollbarOverlay:ki[60],colorBrandBackground:e[70],colorBrandBackgroundHover:e[80],colorBrandBackgroundPressed:e[40],colorBrandBackgroundSelected:e[60],colorCompoundBrandBackground:e[100],colorCompoundBrandBackgroundHover:e[110],colorCompoundBrandBackgroundPressed:e[90],colorBrandBackgroundStatic:e[80],colorBrandBackground2:e[20],colorBrandBackground2Hover:e[40],colorBrandBackground2Pressed:e[10],colorBrandBackgroundInverted:Xt,colorBrandBackgroundInvertedHover:e[160],colorBrandBackgroundInvertedPressed:e[140],colorBrandBackgroundInvertedSelected:e[150],colorNeutralStrokeAccessible:Oe[68],colorNeutralStrokeAccessibleHover:Oe[74],colorNeutralStrokeAccessiblePressed:Oe[70],colorNeutralStrokeAccessibleSelected:e[100],colorNeutralStroke1:Oe[40],colorNeutralStroke1Hover:Oe[46],colorNeutralStroke1Pressed:Oe[42],colorNeutralStroke1Selected:Oe[44],colorNeutralStroke2:Oe[32],colorNeutralStroke3:Oe[24],colorNeutralStrokeSubtle:Oe[4],colorNeutralStrokeOnBrand:Oe[16],colorNeutralStrokeOnBrand2:Xt,colorNeutralStrokeOnBrand2Hover:Xt,colorNeutralStrokeOnBrand2Pressed:Xt,colorNeutralStrokeOnBrand2Selected:Xt,colorBrandStroke1:e[100],colorBrandStroke2:e[50],colorBrandStroke2Hover:e[50],colorBrandStroke2Pressed:e[30],colorBrandStroke2Contrast:e[50],colorCompoundBrandStroke:e[90],colorCompoundBrandStrokeHover:e[100],colorCompoundBrandStrokePressed:e[80],colorNeutralStrokeDisabled:Oe[26],colorNeutralStrokeInvertedDisabled:ki[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:ki[10],colorNeutralStrokeAlpha2:ki[20],colorStrokeFocus1:aB,colorStrokeFocus2:Xt,colorNeutralShadowAmbient:"rgba(0,0,0,0.24)",colorNeutralShadowKey:"rgba(0,0,0,0.28)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.12)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.40)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.48)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"}),oBe=e=>{const t=nBe(e);return{...Zae,...tue,...rue,...oue,...nue,...aue,...iue,...sue,...eue,...Jae,...t,...rBe,...dv,...MA(t.colorNeutralShadowAmbient,t.colorNeutralShadowKey),...MA(t.colorBrandShadowAmbient,t.colorBrandShadowKey,"Brand")}},iBe=oBe(uue),lue={root:"fui-FluentProvider"},sBe=Kse({root:{sj55zd:"f19n0e5",De3pzq:"fxugw4r",fsow6f:["f1o700av","fes3tcz"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}"]}),aBe=e=>{const t=W_(),r=sBe({dir:e.dir,renderer:t});return e.root.className=Xe(lue.root,e.themeClassName,r.root,e.root.className),e},uBe=k.useInsertionEffect?k.useInsertionEffect:ic,lBe=(e,t)=>{if(!e)return;const r=e.createElement("style");return Object.keys(t).forEach(n=>{r.setAttribute(n,t[n])}),e.head.appendChild(r),r},cBe=(e,t)=>{const r=e.sheet;r&&(r.cssRules.length>0&&r.deleteRule(0),r.insertRule(t,0))},fBe=e=>{const{targetDocument:t,theme:r,rendererAttributes:n}=e,o=k.useRef(),i=Ia(lue.root),s=n,a=k.useMemo(()=>O4e(`.${i}`,r),[r,i]);return dBe(t,i),uBe(()=>{const u=t==null?void 0:t.getElementById(i);return u?o.current=u:(o.current=lBe(t,{...s,id:i}),o.current&&cBe(o.current,a)),()=>{var l;(l=o.current)===null||l===void 0||l.remove()}},[i,t,a,s]),{styleTagId:i,rule:a}};function dBe(e,t){k.useState(()=>{if(!e)return;const r=e.getElementById(t);r&&e.head.append(r)})}const hBe={},pBe=(e,t)=>{const r=Na(),n=gBe(),o=iae(),i=k.useContext(a8)||hBe,{applyStylesToPortals:s=!0,customStyleHooks_unstable:a,dir:u=r.dir,targetDocument:l=r.targetDocument,theme:c,overrides_unstable:f={}}=e,d=oN(n,c),h=oN(o,f),g=oN(i,a),v=W_();var y;const{styleTagId:E,rule:_}=fBe({theme:d,targetDocument:l,rendererAttributes:(y=v.styleElementAttributes)!==null&&y!==void 0?y:{}});return{applyStylesToPortals:s,customStyleHooks_unstable:g,dir:u,targetDocument:l,theme:d,overrides_unstable:h,themeClassName:E,components:{root:"div"},root:Er(yn("div",{...e,dir:u,ref:di(t,Vae({targetDocument:l}))}),{elementType:"div"}),serverStyleProps:{cssRule:_,attributes:{...v.styleElementAttributes,id:E}}}};function oN(e,t){return e&&t?{...e,...t}:e||t}function gBe(){return k.useContext(eae)}function vBe(e){const{applyStylesToPortals:t,customStyleHooks_unstable:r,dir:n,root:o,targetDocument:i,theme:s,themeClassName:a,overrides_unstable:u}=e,l=k.useMemo(()=>({dir:n,targetDocument:i}),[n,i]),[c]=k.useState(()=>({})),f=k.useMemo(()=>({textDirection:n}),[n]);return{customStyleHooks_unstable:r,overrides_unstable:u,provider:l,textDirection:n,iconDirection:f,tooltip:c,theme:s,themeClassName:t?o.className:a}}const cue=k.forwardRef((e,t)=>{const r=pBe(e,t);aBe(r);const n=vBe(r);return c3e(r,n)});cue.displayName="FluentProvider";const mBe=e=>r=>{const n=k.useRef(r.value),o=k.useRef(0),i=k.useRef();return i.current||(i.current={value:n,version:o,listeners:[]}),ic(()=>{n.current=r.value,o.current+=1,Z3.unstable_runWithPriority(Z3.unstable_NormalPriority,()=>{i.current.listeners.forEach(s=>{s([o.current,r.value])})})},[r.value]),k.createElement(e,{value:i.current},r.children)},hv=e=>{const t=k.createContext({value:{current:e},version:{current:-1},listeners:[]});return t.Provider=mBe(t.Provider),delete t.Consumer,t},Ko=(e,t)=>{const r=k.useContext(e),{value:{current:n},version:{current:o},listeners:i}=r,s=t(n),[a,u]=k.useReducer((l,c)=>{if(!c)return[n,s];if(c[0]<=o)return iw(l[1],s)?l:[n,s];try{if(iw(l[0],c[1]))return l;const f=t(c[1]);return iw(l[1],f)?l:[c[1],f]}catch{}return[l[0],l[1]]},[n,s]);return iw(a[1],s)||u(void 0),ic(()=>(i.push(u),()=>{const l=i.indexOf(u);i.splice(l,1)}),[i]),a[1]};function yBe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const iw=typeof Object.is=="function"?Object.is:yBe;function g8(e){const t=k.useContext(e);return t.version?t.version.current!==-1:!1}const fue=hv(void 0),bBe={openItems:[],collapsible:!1,multiple:!1,navigation:void 0,requestToggle(){}},{Provider:_Be}=fue,Hb=e=>Ko(fue,(t=bBe)=>e(t)),EBe=(e,t)=>nt(e.root,{children:nt(_Be,{value:t.accordion,children:e.root.children})}),SBe=(e,t)=>{const{openItems:r,defaultOpenItems:n,multiple:o=!1,collapsible:i=!1,onToggle:s,navigation:a}=e,[u,l]=Ef({state:k.useMemo(()=>ABe(r),[r]),defaultState:()=>wBe({defaultOpenItems:n,multiple:o}),initialState:[]}),c=Wae({circular:a==="circular",tabbable:!0}),f=ar(d=>{const h=kBe(d.value,u,o,i);s==null||s(d.event,{value:d.value,openItems:h}),l(h)});return{collapsible:i,multiple:o,navigation:a,openItems:u,requestToggle:f,components:{root:"div"},root:Er(yn("div",{...e,...a?c:void 0,ref:t}),{elementType:"div"})}};function wBe({defaultOpenItems:e,multiple:t}){return e!==void 0?Array.isArray(e)?t?e:[e[0]]:[e]:[]}function kBe(e,t,r,n){if(r)if(t.includes(e)){if(t.length>1||n)return t.filter(o=>o!==e)}else return[...t,e].sort();else return t[0]===e&&n?[]:[e];return t}function ABe(e){if(e!==void 0)return Array.isArray(e)?e:[e]}function TBe(e){const{navigation:t,openItems:r,requestToggle:n,multiple:o,collapsible:i}=e;return{accordion:{navigation:t,openItems:r,requestToggle:n,collapsible:i,multiple:o}}}const xBe={root:"fui-Accordion"},IBe=e=>(e.root.className=Xe(xBe.root,e.root.className),e),v8=k.forwardRef((e,t)=>{const r=SBe(e,t),n=TBe(r);return IBe(r),bn("useAccordionStyles_unstable")(r),EBe(r,n)});v8.displayName="Accordion";const NBe=(e,t)=>{const{value:r,disabled:n=!1}=e,o=Hb(a=>a.requestToggle),i=Hb(a=>a.openItems.includes(r)),s=ar(a=>o({event:a,value:r}));return{open:i,value:r,disabled:n,onHeaderClick:s,components:{root:"div"},root:Er(yn("div",{ref:t,...e}),{elementType:"div"})}};function CBe(e){const{disabled:t,open:r,value:n,onHeaderClick:o}=e;return{accordionItem:k.useMemo(()=>({disabled:t,open:r,value:n,onHeaderClick:o}),[t,r,n,o])}}const due=k.createContext(void 0),RBe={open:!1,disabled:!1,value:void 0,onHeaderClick(){}},{Provider:OBe}=due,hue=()=>{var e;return(e=k.useContext(due))!==null&&e!==void 0?e:RBe},DBe=(e,t)=>nt(e.root,{children:nt(OBe,{value:t.accordionItem,children:e.root.children})}),FBe={root:"fui-AccordionItem"},BBe=e=>(e.root.className=Xe(FBe.root,e.root.className),e),pue=k.forwardRef((e,t)=>{const r=NBe(e,t),n=CBe(r);return BBe(r),bn("useAccordionItemStyles_unstable")(r),DBe(r,n)});pue.displayName="AccordionItem";const ig="Enter",sf=" ",MBe="Tab",sK="ArrowDown",iN="ArrowUp",LBe="End",jBe="Home",zBe="PageDown",HBe="PageUp",$Be="Backspace",PBe="Delete",Rx="Escape";function $b(e,t){const{disabled:r,disabledFocusable:n=!1,["aria-disabled"]:o,onClick:i,onKeyDown:s,onKeyUp:a,...u}=t??{},l=typeof o=="string"?o==="true":o,c=r||n||l,f=ar(g=>{c?(g.preventDefault(),g.stopPropagation()):i==null||i(g)}),d=ar(g=>{if(s==null||s(g),g.isDefaultPrevented())return;const v=g.key;if(c&&(v===ig||v===sf)){g.preventDefault(),g.stopPropagation();return}if(v===sf){g.preventDefault();return}else v===ig&&(g.preventDefault(),g.currentTarget.click())}),h=ar(g=>{if(a==null||a(g),g.isDefaultPrevented())return;const v=g.key;if(c&&(v===ig||v===sf)){g.preventDefault(),g.stopPropagation();return}v===sf&&(g.preventDefault(),g.currentTarget.click())});if(e==="button"||e===void 0)return{...u,disabled:r&&!n,"aria-disabled":n?!0:l,onClick:n?void 0:f,onKeyUp:n?void 0:a,onKeyDown:n?void 0:s};{const g={role:"button",tabIndex:r&&!n?void 0:0,...u,onClick:f,onKeyUp:h,onKeyDown:d,"aria-disabled":r||n||l};return e==="a"&&c&&(g.href=void 0),g}}const qBe=(e,t)=>{const{icon:r,button:n,expandIcon:o,inline:i=!1,size:s="medium",expandIconPosition:a="start"}=e,{value:u,disabled:l,open:c}=hue(),f=Hb(y=>y.requestToggle),d=Hb(y=>!y.collapsible&&y.openItems.length===1&&c),{dir:h}=Na();let g;a==="end"?g=c?-90:90:g=c?90:h!=="rtl"?0:180;const v=Er(n,{elementType:"button",defaultProps:{disabled:l,disabledFocusable:d,"aria-expanded":c,type:"button"}});return v.onClick=ar(y=>{if(s8(n)){var E;(E=n.onClick)===null||E===void 0||E.call(n,y)}y.defaultPrevented||f({value:u,event:y})}),{disabled:l,open:c,size:s,inline:i,expandIconPosition:a,components:{root:"div",button:"button",expandIcon:"span",icon:"div"},root:Er(yn("div",{ref:t,...e}),{elementType:"div"}),icon:un(r,{elementType:"div"}),expandIcon:un(o,{renderByDefault:!0,defaultProps:{children:k.createElement(GDe,{style:{transform:`rotate(${g}deg)`}}),"aria-hidden":!0},elementType:"span"}),button:$b(v.as,v)}},WBe=k.createContext(void 0),{Provider:KBe}=WBe,GBe=(e,t)=>nt(KBe,{value:t.accordionHeader,children:nt(e.root,{children:Un(e.button,{children:[e.expandIconPosition==="start"&&e.expandIcon&&nt(e.expandIcon,{}),e.icon&&nt(e.icon,{}),e.root.children,e.expandIconPosition==="end"&&e.expandIcon&&nt(e.expandIcon,{})]})})}),sw={root:"fui-AccordionHeader",button:"fui-AccordionHeader__button",expandIcon:"fui-AccordionHeader__expandIcon",icon:"fui-AccordionHeader__icon"},VBe=wt({resetButton:{B7ck84d:"f1e4lqlz",De3pzq:"f1u2r49w",sj55zd:"f1ym3bx4",Bahqtrf:"f1mo0ibp",Be2twd7:"fjoy568",Bg96gwp:"fytdu2e",B68tc82:"f1mtd64y",Bmxbyg5:"f1y7q3j9",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1cnd47f","fhxju0i"],Bv0vk6g:"f37px4s",fsow6f:"fgusgyc"},focusIndicator:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bb7d1vk:"f226i61",zhwhgb:["f13kzufm","fsx75g8"],dhy2o1:"flujwa2",Gfyso:["fsx75g8","f13kzufm"],Bm4h7ae:"f15bsgw9",B7ys5i9:"f14e48fq",Busjfv9:"f18yb2kv",Bhk32uz:"fd6o370",Bf4ptjt:"fh1cnn4",kclons:["fy7oxxb","f184ne2d"],Bhdgwq3:"fpukqih",Blkhhs4:["f184ne2d","fy7oxxb"],Bqtpl0w:"frrh606",clg4pj:["f1v5zibi","fo2hd23"],hgwjuy:"ful5kiu",Bonggc9:["fo2hd23","f1v5zibi"],B1tsrr9:["f1jqcqds","ftffrms"],Dah5zi:["ftffrms","f1jqcqds"],Bkh64rk:["f2e7qr6","fsr1zz6"],qqdqy8:["fsr1zz6","f2e7qr6"],B6dhp37:"f1dvezut",i03rao:["fd0oaoj","f1cwg4i8"],Boxcth7:"fjvm52t",Bsom6fd:["f1cwg4i8","fd0oaoj"],J0r882:"f57olzd",Bule8hv:["f4stah7","fs1por5"],Bjwuhne:"f480a47",Ghsupd:["fs1por5","f4stah7"]},root:{sj55zd:"f19n0e5",De3pzq:"f1c21dwh",B6of3ja:"f1hu3pq6",t21cq0:["f11qmguv","f1tyq0we"],jrapky:"f19f4twv",Frg6f3:["f1tyq0we","f11qmguv"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"]},rootDisabled:{Bcmaq0h:"fwrgwhw",sj55zd:"f1s2aq7o"},rootInline:{mc9l5x:"f14t3ns0"},button:{qhf8xq:"f10pi13n",a9b677:"fly5x3f",B4j52fo:"f5ogflp",Bekrc4i:["f1hqa2wf","finvdd3"],Bn0qgzm:"f1f09k3d",ibv6hh:["finvdd3","f1hqa2wf"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],z8tnut:"f1g0x7ka",z189sj:["fw5db7e","f1uw59to"],Byoj8tv:"f1qch9an",uwmqm3:["f1ng84yb","f11gcy0p"],sshi5w:"f5pgtk9",mc9l5x:"f22iagw",Bt984gj:"f122n59",Bceei9c:"f1k6fduh",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B7ck84d:"f1ewtqcl"},buttonSmall:{sshi5w:"f1nxs5xn",Be2twd7:"fy9rknc"},buttonLarge:{Bg96gwp:"faaz57k",Be2twd7:"fod5ikn"},buttonExtraLarge:{Bg96gwp:"f106mvju",Be2twd7:"f1pp30po"},buttonInline:{mc9l5x:"ftuwxu6"},buttonExpandIconEndNoIcon:{uwmqm3:["f1uw59to","fw5db7e"]},buttonExpandIconEnd:{z189sj:["f11gcy0p","f1ng84yb"]},buttonDisabled:{Bceei9c:"fdrzuqr"},expandIcon:{Bqenvij:"f1l02sjl",mc9l5x:"f22iagw",Bt984gj:"f122n59",Bg96gwp:"f106mvju",Be2twd7:"f1pp30po"},expandIconStart:{z189sj:["f1vdfbxk","f1f5gg8d"]},expandIconEnd:{Bh6795r:"fqerorx",Bnnss6s:"f1neuvcm",xawz:"flqd7gy",mc9l5x:"f22iagw",Brf1p80:"f9c4gz4",uwmqm3:["f1f5gg8d","f1vdfbxk"]},icon:{Bqenvij:"f1l02sjl",mc9l5x:"f22iagw",Bt984gj:"f122n59",z189sj:["f1vdfbxk","f1f5gg8d"],Bg96gwp:"f106mvju",Be2twd7:"f1pp30po"}},{d:[".f1e4lqlz{box-sizing:content-box;}",".f1u2r49w{background-color:inherit;}",".f1ym3bx4{color:inherit;}",".f1mo0ibp{font-family:inherit;}",".fjoy568{font-size:inherit;}",".fytdu2e{line-height:normal;}",".f1mtd64y{overflow-x:visible;}",".f1y7q3j9{overflow-y:visible;}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".f37px4s{-webkit-appearance:button;}",".fgusgyc{text-align:unset;}",".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}",".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}",".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}",".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}",'.f15bsgw9[data-fui-focus-visible]::after{content:"";}',".f14e48fq[data-fui-focus-visible]::after{position:absolute;}",".f18yb2kv[data-fui-focus-visible]::after{pointer-events:none;}",".fd6o370[data-fui-focus-visible]::after{z-index:1;}",".fh1cnn4[data-fui-focus-visible]::after{border-top-style:solid;}",".fy7oxxb[data-fui-focus-visible]::after{border-right-style:solid;}",".f184ne2d[data-fui-focus-visible]::after{border-left-style:solid;}",".fpukqih[data-fui-focus-visible]::after{border-bottom-style:solid;}",".frrh606[data-fui-focus-visible]::after{border-top-width:2px;}",".f1v5zibi[data-fui-focus-visible]::after{border-right-width:2px;}",".fo2hd23[data-fui-focus-visible]::after{border-left-width:2px;}",".ful5kiu[data-fui-focus-visible]::after{border-bottom-width:2px;}",".f1jqcqds[data-fui-focus-visible]::after{border-bottom-right-radius:var(--borderRadiusMedium);}",".ftffrms[data-fui-focus-visible]::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f2e7qr6[data-fui-focus-visible]::after{border-top-right-radius:var(--borderRadiusMedium);}",".fsr1zz6[data-fui-focus-visible]::after{border-top-left-radius:var(--borderRadiusMedium);}",".f1dvezut[data-fui-focus-visible]::after{border-top-color:var(--colorStrokeFocus2);}",".fd0oaoj[data-fui-focus-visible]::after{border-right-color:var(--colorStrokeFocus2);}",".f1cwg4i8[data-fui-focus-visible]::after{border-left-color:var(--colorStrokeFocus2);}",".fjvm52t[data-fui-focus-visible]::after{border-bottom-color:var(--colorStrokeFocus2);}",".f57olzd[data-fui-focus-visible]::after{top:calc(2px * -1);}",".f4stah7[data-fui-focus-visible]::after{right:calc(2px * -1);}",".fs1por5[data-fui-focus-visible]::after{left:calc(2px * -1);}",".f480a47[data-fui-focus-visible]::after{bottom:calc(2px * -1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1hu3pq6{margin-top:0;}",".f11qmguv{margin-right:0;}",".f1tyq0we{margin-left:0;}",".f19f4twv{margin-bottom:0;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".fwrgwhw{background-image:none;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f14t3ns0{display:inline-block;}",".f10pi13n{position:relative;}",".fly5x3f{width:100%;}",".f5ogflp{border-top-width:1px;}",".f1hqa2wf{border-right-width:1px;}",".finvdd3{border-left-width:1px;}",".f1f09k3d{border-bottom-width:1px;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f5pgtk9{min-height:44px;}",".f22iagw{display:flex;}",".f122n59{align-items:center;}",".f1k6fduh{cursor:pointer;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1ewtqcl{box-sizing:border-box;}",".f1nxs5xn{min-height:32px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".f106mvju{line-height:var(--lineHeightBase500);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".ftuwxu6{display:inline-flex;}",".fdrzuqr{cursor:not-allowed;}",".f1l02sjl{height:100%;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".fqerorx{flex-grow:1;}",".f1neuvcm{flex-shrink:1;}",".flqd7gy{flex-basis:0%;}",".f9c4gz4{justify-content:flex-end;}"],f:[".ftqa4ok:focus{outline-style:none;}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],m:[["@media (forced-colors: active){.f226i61[data-fui-focus-visible]::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f13kzufm[data-fui-focus-visible]::after{border-right-color:Highlight;}.fsx75g8[data-fui-focus-visible]::after{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.flujwa2[data-fui-focus-visible]::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}]]}),UBe=e=>{const t=VBe();return e.root.className=Xe(sw.root,t.root,e.inline&&t.rootInline,e.disabled&&t.rootDisabled,e.root.className),e.button.className=Xe(sw.button,t.resetButton,t.button,t.focusIndicator,e.expandIconPosition==="end"&&!e.icon&&t.buttonExpandIconEndNoIcon,e.expandIconPosition==="end"&&t.buttonExpandIconEnd,e.inline&&t.buttonInline,e.size==="small"&&t.buttonSmall,e.size==="large"&&t.buttonLarge,e.size==="extra-large"&&t.buttonExtraLarge,e.disabled&&t.buttonDisabled,e.button.className),e.expandIcon&&(e.expandIcon.className=Xe(sw.expandIcon,t.expandIcon,e.expandIconPosition==="start"&&t.expandIconStart,e.expandIconPosition==="end"&&t.expandIconEnd,e.expandIcon.className)),e.icon&&(e.icon.className=Xe(sw.icon,t.icon,e.icon.className)),e};function YBe(e){const{disabled:t,expandIconPosition:r,open:n,size:o}=e;return{accordionHeader:k.useMemo(()=>({disabled:t,expandIconPosition:r,open:n,size:o}),[t,r,n,o])}}const gue=k.forwardRef((e,t)=>{const r=qBe(e,t),n=YBe(r);return UBe(r),bn("useAccordionHeaderStyles_unstable")(r),GBe(r,n)});gue.displayName="AccordionHeader";const XBe=(e,t)=>{const{open:r}=hue(),n=BA({focusable:{excludeFromMover:!0}}),o=Hb(i=>i.navigation);return{open:r,components:{root:"div"},root:Er(yn("div",{ref:t,...e,...o&&n}),{elementType:"div"})}},QBe=e=>e.open?nt(e.root,{children:e.root.children}):null,ZBe={root:"fui-AccordionPanel"},JBe=wt({root:{B6of3ja:"f1hu3pq6",t21cq0:["fkujibs","f199hnxi"],jrapky:"f19f4twv",Frg6f3:["f199hnxi","fkujibs"]}},{d:[".f1hu3pq6{margin-top:0;}",".fkujibs{margin-right:var(--spacingHorizontalM);}",".f199hnxi{margin-left:var(--spacingHorizontalM);}",".f19f4twv{margin-bottom:0;}"]}),eMe=e=>{const t=JBe();return e.root.className=Xe(ZBe.root,t.root,e.root.className),e},vue=k.forwardRef((e,t)=>{const r=XBe(e,t);return eMe(r),bn("useAccordionPanelStyles_unstable")(r),QBe(r)});vue.displayName="AccordionPanel";const tMe=(e,t)=>{const{shape:r="circular",size:n="medium",iconPosition:o="before",appearance:i="filled",color:s="brand"}=e;return{shape:r,size:n,iconPosition:o,appearance:i,color:s,components:{root:"div",icon:"span"},root:Er(yn("div",{ref:t,...e}),{elementType:"div"}),icon:un(e.icon,{elementType:"span"})}},aK={root:"fui-Badge",icon:"fui-Badge__icon"},rMe=Tn("r1l7mb74","rntuq2r",[".r1l7mb74{display:inline-flex;box-sizing:border-box;align-items:center;justify-content:center;position:relative;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase200);height:20px;width:20px;min-width:max-content;padding:0 calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));border-radius:var(--borderRadiusCircular);border-color:var(--colorTransparentStroke);}",'.r1l7mb74::after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;border-style:solid;border-color:inherit;border-width:var(--strokeWidthThin);border-radius:inherit;}',".rntuq2r{display:inline-flex;box-sizing:border-box;align-items:center;justify-content:center;position:relative;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase200);height:20px;width:20px;min-width:max-content;padding:0 calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));border-radius:var(--borderRadiusCircular);border-color:var(--colorTransparentStroke);}",'.rntuq2r::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-style:solid;border-color:inherit;border-width:var(--strokeWidthThin);border-radius:inherit;}']),nMe=wt({fontSmallToTiny:{Bahqtrf:"fk6fouc",Be2twd7:"f13mqy1h",Bhrd7zp:"fl43uef",Bg96gwp:"fcpl73t"},tiny:{a9b677:"f16dn6v3",Bqenvij:"f3mu39s",Be2twd7:"f130uwy9",Bg96gwp:"fod1mrr",Bf4jedk:"f18p0k4z",z8tnut:"f1q8r6hh",z189sj:["fio2s09","fkiw60q"],Byoj8tv:"f9yu9nh",uwmqm3:["fkiw60q","fio2s09"]},"extra-small":{a9b677:"fpd43o0",Bqenvij:"f30q22z",Be2twd7:"f1tccstq",Bg96gwp:"f1y3arg5",Bf4jedk:"f18p0k4z",z8tnut:"f1q8r6hh",z189sj:["fio2s09","fkiw60q"],Byoj8tv:"f9yu9nh",uwmqm3:["fkiw60q","fio2s09"]},small:{a9b677:"fjw5fx7",Bqenvij:"fd461yt",z8tnut:"f1g0x7ka",z189sj:["fps1v9c","f17ae1jz"],Byoj8tv:"f1qch9an",uwmqm3:["f17ae1jz","fps1v9c"]},medium:{},large:{a9b677:"fq4mcun",Bqenvij:"frvgh55",z8tnut:"f1g0x7ka",z189sj:["f17a92cs","f1pe0i86"],Byoj8tv:"f1qch9an",uwmqm3:["f1pe0i86","f17a92cs"]},"extra-large":{a9b677:"f1szoe96",Bqenvij:"f1d2rq10",z8tnut:"f1g0x7ka",z189sj:["fqznh8f","f1xile11"],Byoj8tv:"f1qch9an",uwmqm3:["f1xile11","fqznh8f"]},square:{Bbmb7ep:["fzi6hpg","fyowgf4"],Beyfa6y:["fyowgf4","fzi6hpg"],B7oj6ja:["f3fg2lr","f13av6d4"],Btl43ni:["f13av6d4","f3fg2lr"]},rounded:{Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"]},roundedSmallToTiny:{Bbmb7ep:["f1g3puop","fi2rrw2"],Beyfa6y:["fi2rrw2","f1g3puop"],B7oj6ja:["f1rstyi9","f1s4nn1u"],Btl43ni:["f1s4nn1u","f1rstyi9"]},circular:{},borderGhost:{ap17g6:"f10ludwy"},filled:{},"filled-brand":{De3pzq:"ffp7eso",sj55zd:"f1phragk"},"filled-danger":{De3pzq:"fdl5y0r",sj55zd:"f1phragk"},"filled-important":{De3pzq:"f1c73kur",sj55zd:"fr0bkrk"},"filled-informative":{De3pzq:"f3vzo32",sj55zd:"f11d4kpn"},"filled-severe":{De3pzq:"f1s438gw",sj55zd:"f1phragk"},"filled-subtle":{De3pzq:"fxugw4r",sj55zd:"f19n0e5"},"filled-success":{De3pzq:"flxk52p",sj55zd:"f1phragk"},"filled-warning":{De3pzq:"ffq97bm",sj55zd:"ff5vbop"},ghost:{},"ghost-brand":{sj55zd:"f16muhyy"},"ghost-danger":{sj55zd:"f1whyuy6"},"ghost-important":{sj55zd:"f19n0e5"},"ghost-informative":{sj55zd:"f11d4kpn"},"ghost-severe":{sj55zd:"f1l8vj45"},"ghost-subtle":{sj55zd:"fonrgv7"},"ghost-success":{sj55zd:"f1m7fhi8"},"ghost-warning":{sj55zd:"fpti2h4"},outline:{g2u3we:"f23ftbb",h3c5rm:["f1gkuv52","f1p1bl80"],B9xav0g:"fioka3i",zhjwy3:["f1p1bl80","f1gkuv52"]},"outline-brand":{sj55zd:"f16muhyy"},"outline-danger":{sj55zd:"f1whyuy6",g2u3we:"fyqpifd",h3c5rm:["f3ukxca","f1k7dugc"],B9xav0g:"f1njxb2b",zhjwy3:["f1k7dugc","f3ukxca"]},"outline-important":{sj55zd:"f11d4kpn",g2u3we:"fq0vr37",h3c5rm:["f1byw159","f11cr0be"],B9xav0g:"f1c1zstj",zhjwy3:["f11cr0be","f1byw159"]},"outline-informative":{sj55zd:"f11d4kpn",g2u3we:"f68mrw8",h3c5rm:["f7pw515","fw35ms5"],B9xav0g:"frpde29",zhjwy3:["fw35ms5","f7pw515"]},"outline-severe":{sj55zd:"f1l8vj45"},"outline-subtle":{sj55zd:"fonrgv7"},"outline-success":{sj55zd:"f1m7fhi8",g2u3we:"f1mmhl11",h3c5rm:["f1tjpp2f","f1ocn5n7"],B9xav0g:"f1gjv25d",zhjwy3:["f1ocn5n7","f1tjpp2f"]},"outline-warning":{sj55zd:"fpti2h4"},tint:{},"tint-brand":{De3pzq:"f16xkysk",sj55zd:"faj9fo0",g2u3we:"f161y7kd",h3c5rm:["f1c8dzaj","f1sl6hi9"],B9xav0g:"f1619yhw",zhjwy3:["f1sl6hi9","f1c8dzaj"]},"tint-danger":{De3pzq:"ff0poqj",sj55zd:"f1hcrxcs",g2u3we:"f1oqjm8o",h3c5rm:["fkgrb8g","frb5wm0"],B9xav0g:"f1iai1ph",zhjwy3:["frb5wm0","fkgrb8g"]},"tint-important":{De3pzq:"f945g0u",sj55zd:"fr0bkrk",g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},"tint-informative":{De3pzq:"f1ctqxl6",sj55zd:"f11d4kpn",g2u3we:"f68mrw8",h3c5rm:["f7pw515","fw35ms5"],B9xav0g:"frpde29",zhjwy3:["fw35ms5","f7pw515"]},"tint-severe":{De3pzq:"f1xzsg4",sj55zd:"f1k5f75o",g2u3we:"fxy9dsj",h3c5rm:["f54u6j2","fcm23ze"],B9xav0g:"f4vf0uq",zhjwy3:["fcm23ze","f54u6j2"]},"tint-subtle":{De3pzq:"fxugw4r",sj55zd:"f11d4kpn",g2u3we:"f68mrw8",h3c5rm:["f7pw515","fw35ms5"],B9xav0g:"frpde29",zhjwy3:["fw35ms5","f7pw515"]},"tint-success":{De3pzq:"f2vsrz6",sj55zd:"ffmvakt",g2u3we:"fdmic9h",h3c5rm:["f196y6m","fetptd8"],B9xav0g:"f1pev5xq",zhjwy3:["fetptd8","f196y6m"]},"tint-warning":{De3pzq:"f10s6hli",sj55zd:"f42v8de",g2u3we:"fn9i3n",h3c5rm:["f1aw8cx4","f51if14"],B9xav0g:"fvq8iai",zhjwy3:["f51if14","f1aw8cx4"]}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f13mqy1h{font-size:var(--fontSizeBase100);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fcpl73t{line-height:var(--lineHeightBase100);}",".f16dn6v3{width:6px;}",".f3mu39s{height:6px;}",".f130uwy9{font-size:4px;}",".fod1mrr{line-height:4px;}",".f18p0k4z{min-width:unset;}",".f1q8r6hh{padding-top:unset;}",".fio2s09{padding-right:unset;}",".fkiw60q{padding-left:unset;}",".f9yu9nh{padding-bottom:unset;}",".fpd43o0{width:10px;}",".f30q22z{height:10px;}",".f1tccstq{font-size:6px;}",".f1y3arg5{line-height:6px;}",".fjw5fx7{width:16px;}",".fd461yt{height:16px;}",".f1g0x7ka{padding-top:0;}",".fps1v9c{padding-right:calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",".f17ae1jz{padding-left:calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",".f1qch9an{padding-bottom:0;}",".fq4mcun{width:24px;}",".frvgh55{height:24px;}",".f17a92cs{padding-right:calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",".f1pe0i86{padding-left:calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",".f1szoe96{width:32px;}",".f1d2rq10{height:32px;}",".fqznh8f{padding-right:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".f1xile11{padding-left:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".fzi6hpg{border-bottom-right-radius:var(--borderRadiusNone);}",".fyowgf4{border-bottom-left-radius:var(--borderRadiusNone);}",".f3fg2lr{border-top-right-radius:var(--borderRadiusNone);}",".f13av6d4{border-top-left-radius:var(--borderRadiusNone);}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f1g3puop{border-bottom-right-radius:var(--borderRadiusSmall);}",".fi2rrw2{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1rstyi9{border-top-right-radius:var(--borderRadiusSmall);}",".f1s4nn1u{border-top-left-radius:var(--borderRadiusSmall);}",".f10ludwy::after{display:none;}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fdl5y0r{background-color:var(--colorPaletteRedBackground3);}",".f1c73kur{background-color:var(--colorNeutralForeground1);}",".fr0bkrk{color:var(--colorNeutralBackground1);}",".f3vzo32{background-color:var(--colorNeutralBackground5);}",".f11d4kpn{color:var(--colorNeutralForeground3);}",".f1s438gw{background-color:var(--colorPaletteDarkOrangeBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".flxk52p{background-color:var(--colorPaletteGreenBackground3);}",".ffq97bm{background-color:var(--colorPaletteYellowBackground3);}",".ff5vbop{color:var(--colorNeutralForeground1Static);}",".f16muhyy{color:var(--colorBrandForeground1);}",".f1whyuy6{color:var(--colorPaletteRedForeground3);}",".f1l8vj45{color:var(--colorPaletteDarkOrangeForeground3);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".f1m7fhi8{color:var(--colorPaletteGreenForeground3);}",".fpti2h4{color:var(--colorPaletteYellowForeground2);}",".f23ftbb{border-top-color:currentColor;}",".f1gkuv52{border-right-color:currentColor;}",".f1p1bl80{border-left-color:currentColor;}",".fioka3i{border-bottom-color:currentColor;}",".fyqpifd{border-top-color:var(--colorPaletteRedBorder2);}",".f3ukxca{border-right-color:var(--colorPaletteRedBorder2);}",".f1k7dugc{border-left-color:var(--colorPaletteRedBorder2);}",".f1njxb2b{border-bottom-color:var(--colorPaletteRedBorder2);}",".fq0vr37{border-top-color:var(--colorNeutralStrokeAccessible);}",".f1byw159{border-right-color:var(--colorNeutralStrokeAccessible);}",".f11cr0be{border-left-color:var(--colorNeutralStrokeAccessible);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f68mrw8{border-top-color:var(--colorNeutralStroke2);}",".f7pw515{border-right-color:var(--colorNeutralStroke2);}",".fw35ms5{border-left-color:var(--colorNeutralStroke2);}",".frpde29{border-bottom-color:var(--colorNeutralStroke2);}",".f1mmhl11{border-top-color:var(--colorPaletteGreenBorder2);}",".f1tjpp2f{border-right-color:var(--colorPaletteGreenBorder2);}",".f1ocn5n7{border-left-color:var(--colorPaletteGreenBorder2);}",".f1gjv25d{border-bottom-color:var(--colorPaletteGreenBorder2);}",".f16xkysk{background-color:var(--colorBrandBackground2);}",".faj9fo0{color:var(--colorBrandForeground2);}",".f161y7kd{border-top-color:var(--colorBrandStroke2);}",".f1c8dzaj{border-right-color:var(--colorBrandStroke2);}",".f1sl6hi9{border-left-color:var(--colorBrandStroke2);}",".f1619yhw{border-bottom-color:var(--colorBrandStroke2);}",".ff0poqj{background-color:var(--colorPaletteRedBackground1);}",".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".f1oqjm8o{border-top-color:var(--colorPaletteRedBorder1);}",".fkgrb8g{border-right-color:var(--colorPaletteRedBorder1);}",".frb5wm0{border-left-color:var(--colorPaletteRedBorder1);}",".f1iai1ph{border-bottom-color:var(--colorPaletteRedBorder1);}",".f945g0u{background-color:var(--colorNeutralForeground3);}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".f1ctqxl6{background-color:var(--colorNeutralBackground4);}",".f1xzsg4{background-color:var(--colorPaletteDarkOrangeBackground1);}",".f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}",".fxy9dsj{border-top-color:var(--colorPaletteDarkOrangeBorder1);}",".f54u6j2{border-right-color:var(--colorPaletteDarkOrangeBorder1);}",".fcm23ze{border-left-color:var(--colorPaletteDarkOrangeBorder1);}",".f4vf0uq{border-bottom-color:var(--colorPaletteDarkOrangeBorder1);}",".f2vsrz6{background-color:var(--colorPaletteGreenBackground1);}",".ffmvakt{color:var(--colorPaletteGreenForeground1);}",".fdmic9h{border-top-color:var(--colorPaletteGreenBorder1);}",".f196y6m{border-right-color:var(--colorPaletteGreenBorder1);}",".fetptd8{border-left-color:var(--colorPaletteGreenBorder1);}",".f1pev5xq{border-bottom-color:var(--colorPaletteGreenBorder1);}",".f10s6hli{background-color:var(--colorPaletteYellowBackground1);}",".f42v8de{color:var(--colorPaletteYellowForeground1);}",".fn9i3n{border-top-color:var(--colorPaletteYellowBorder1);}",".f1aw8cx4{border-right-color:var(--colorPaletteYellowBorder1);}",".f51if14{border-left-color:var(--colorPaletteYellowBorder1);}",".fvq8iai{border-bottom-color:var(--colorPaletteYellowBorder1);}"]}),oMe=Tn("rttl5z0",null,[".rttl5z0{display:flex;line-height:1;margin:0 calc(-1 * var(--spacingHorizontalXXS));font-size:12px;}"]),iMe=wt({beforeText:{t21cq0:["f1t8l4o1","f11juvx6"]},afterText:{Frg6f3:["f11juvx6","f1t8l4o1"]},beforeTextXL:{t21cq0:["f1rs9grm","f1kwmkpi"]},afterTextXL:{Frg6f3:["f1kwmkpi","f1rs9grm"]},tiny:{Be2twd7:"f1tccstq"},"extra-small":{Be2twd7:"fnmn6fi"},small:{Be2twd7:"f1ugzwwg"},medium:{},large:{Be2twd7:"f4ybsrx"},"extra-large":{Be2twd7:"fe5j1ua"}},{d:[".f1t8l4o1{margin-right:calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",".f11juvx6{margin-left:calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",".f1rs9grm{margin-right:calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",".f1kwmkpi{margin-left:calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",".f1tccstq{font-size:6px;}",".fnmn6fi{font-size:10px;}",".f1ugzwwg{font-size:12px;}",".f4ybsrx{font-size:16px;}",".fe5j1ua{font-size:20px;}"]}),sMe=e=>{const t=rMe(),r=nMe(),n=e.size==="small"||e.size==="extra-small"||e.size==="tiny";e.root.className=Xe(aK.root,t,n&&r.fontSmallToTiny,r[e.size],r[e.shape],e.shape==="rounded"&&n&&r.roundedSmallToTiny,e.appearance==="ghost"&&r.borderGhost,r[e.appearance],r[`${e.appearance}-${e.color}`],e.root.className);const o=oMe(),i=iMe();if(e.icon){let s;e.root.children&&(e.size==="extra-large"?s=e.iconPosition==="after"?i.afterTextXL:i.beforeTextXL:s=e.iconPosition==="after"?i.afterText:i.beforeText),e.icon.className=Xe(aK.icon,o,s,i[e.size],e.icon.className)}return e},aMe=e=>Un(e.root,{children:[e.iconPosition==="before"&&e.icon&&nt(e.icon,{}),e.root.children,e.iconPosition==="after"&&e.icon&&nt(e.icon,{})]}),mue=k.forwardRef((e,t)=>{const r=tMe(e,t);return sMe(r),bn("useBadgeStyles_unstable")(r),aMe(r)});mue.displayName="Badge";const uMe=k.createContext(void 0),lMe=uMe.Provider;function cMe(e){const t=e.clientX,r=e.clientY,n=t+1,o=r+1;function i(){return{left:t,top:r,right:n,bottom:o,x:t,y:r,height:1,width:1}}return{getBoundingClientRect:i}}const uK="data-popper-is-intersecting",lK="data-popper-escaped",cK="data-popper-reference-hidden",fMe="data-popper-placement",dMe=["top","right","bottom","left"],Vh=Math.min,tu=Math.max,LA=Math.round,f1=e=>({x:e,y:e}),hMe={left:"right",right:"left",bottom:"top",top:"bottom"},pMe={start:"end",end:"start"};function uB(e,t,r){return tu(e,Vh(t,r))}function kf(e,t){return typeof e=="function"?e(t):e}function Af(e){return e.split("-")[0]}function pv(e){return e.split("-")[1]}function m8(e){return e==="x"?"y":"x"}function y8(e){return e==="y"?"height":"width"}function gv(e){return["top","bottom"].includes(Af(e))?"y":"x"}function b8(e){return m8(gv(e))}function gMe(e,t,r){r===void 0&&(r=!1);const n=pv(e),o=b8(e),i=y8(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=jA(s)),[s,jA(s)]}function vMe(e){const t=jA(e);return[lB(e),t,lB(t)]}function lB(e){return e.replace(/start|end/g,t=>pMe[t])}function mMe(e,t,r){const n=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?i:s;default:return[]}}function yMe(e,t,r,n){const o=pv(e);let i=mMe(Af(e),r==="start",n);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(lB)))),i}function jA(e){return e.replace(/left|right|bottom|top/g,t=>hMe[t])}function bMe(e){return{top:0,right:0,bottom:0,left:0,...e}}function yue(e){return typeof e!="number"?bMe(e):{top:e,right:e,bottom:e,left:e}}function zA(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function fK(e,t,r){let{reference:n,floating:o}=e;const i=gv(t),s=b8(t),a=y8(s),u=Af(t),l=i==="y",c=n.x+n.width/2-o.width/2,f=n.y+n.height/2-o.height/2,d=n[a]/2-o[a]/2;let h;switch(u){case"top":h={x:c,y:n.y-o.height};break;case"bottom":h={x:c,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:f};break;case"left":h={x:n.x-o.width,y:f};break;default:h={x:n.x,y:n.y}}switch(pv(t)){case"start":h[s]-=d*(r&&l?-1:1);break;case"end":h[s]+=d*(r&&l?-1:1);break}return h}const _Me=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:s}=r,a=i.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=fK(l,n,u),d=n,h={},g=0;for(let v=0;v({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:s,elements:a,middlewareData:u}=t,{element:l,padding:c=0}=kf(e,t)||{};if(l==null)return{};const f=yue(c),d={x:r,y:n},h=b8(o),g=y8(h),v=await s.getDimensions(l),y=h==="y",E=y?"top":"left",_=y?"bottom":"right",S=y?"clientHeight":"clientWidth",b=i.reference[g]+i.reference[h]-d[h]-i.floating[g],A=d[h]-i.reference[h],x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let T=x?x[S]:0;(!T||!await(s.isElement==null?void 0:s.isElement(x)))&&(T=a.floating[S]||i.floating[g]);const N=b/2-A/2,I=T/2-v[g]/2-1,R=Vh(f[E],I),D=Vh(f[_],I),L=R,M=T-v[g]-D,q=T/2-v[g]/2+N,z=uB(L,q,M),B=!u.arrow&&pv(o)!=null&&q!=z&&i.reference[g]/2-(qL<=0)){var I,R;const L=(((I=i.flip)==null?void 0:I.index)||0)+1,M=A[L];if(M)return{data:{index:L,overflows:N},reset:{placement:M}};let q=(R=N.filter(z=>z.overflows[0]<=0).sort((z,B)=>z.overflows[1]-B.overflows[1])[0])==null?void 0:R.placement;if(!q)switch(h){case"bestFit":{var D;const z=(D=N.map(B=>[B.placement,B.overflows.filter(P=>P>0).reduce((P,K)=>P+K,0)]).sort((B,P)=>B[1]-P[1])[0])==null?void 0:D[0];z&&(q=z);break}case"initialPlacement":q=a;break}if(o!==q)return{reset:{placement:q}}}return{}}}};function dK(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function hK(e){return dMe.some(t=>e[t]>=0)}const pK=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=kf(e,t);switch(n){case"referenceHidden":{const i=await Fg(t,{...o,elementContext:"reference"}),s=dK(i,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:hK(s)}}}case"escaped":{const i=await Fg(t,{...o,altBoundary:!0}),s=dK(i,r.floating);return{data:{escapedOffsets:s,escaped:hK(s)}}}default:return{}}}}};async function wMe(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=Af(r),a=pv(r),u=gv(r)==="y",l=["left","top"].includes(s)?-1:1,c=i&&u?-1:1,f=kf(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&typeof g=="number"&&(h=a==="end"?g*-1:g),u?{x:h*c,y:d*l}:{x:d*l,y:h*c}}const kMe=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:s,middlewareData:a}=t,u=await wMe(t,e);return s===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:s}}}}},AMe=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:y=>{let{x:E,y:_}=y;return{x:E,y:_}}},...u}=kf(e,t),l={x:r,y:n},c=await Fg(t,u),f=gv(Af(o)),d=m8(f);let h=l[d],g=l[f];if(i){const y=d==="y"?"top":"left",E=d==="y"?"bottom":"right",_=h+c[y],S=h-c[E];h=uB(_,h,S)}if(s){const y=f==="y"?"top":"left",E=f==="y"?"bottom":"right",_=g+c[y],S=g-c[E];g=uB(_,g,S)}const v=a.fn({...t,[d]:h,[f]:g});return{...v,data:{x:v.x-r,y:v.y-n}}}}},TMe=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:u=!0,crossAxis:l=!0}=kf(e,t),c={x:r,y:n},f=gv(o),d=m8(f);let h=c[d],g=c[f];const v=kf(a,t),y=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(u){const S=d==="y"?"height":"width",b=i.reference[d]-i.floating[S]+y.mainAxis,A=i.reference[d]+i.reference[S]-y.mainAxis;hA&&(h=A)}if(l){var E,_;const S=d==="y"?"width":"height",b=["top","left"].includes(Af(o)),A=i.reference[f]-i.floating[S]+(b&&((E=s.offset)==null?void 0:E[f])||0)+(b?0:y.crossAxis),x=i.reference[f]+i.reference[S]+(b?0:((_=s.offset)==null?void 0:_[f])||0)-(b?y.crossAxis:0);gx&&(g=x)}return{[d]:h,[f]:g}}}},xMe=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:o,elements:i}=t,{apply:s=()=>{},...a}=kf(e,t),u=await Fg(t,a),l=Af(r),c=pv(r),f=gv(r)==="y",{width:d,height:h}=n.floating;let g,v;l==="top"||l==="bottom"?(g=l,v=c===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(v=l,g=c==="end"?"top":"bottom");const y=h-u[g],E=d-u[v],_=!t.middlewareData.shift;let S=y,b=E;if(f){const x=d-u.left-u.right;b=c||_?Vh(E,x):x}else{const x=h-u.top-u.bottom;S=c||_?Vh(y,x):x}if(_&&!c){const x=tu(u.left,0),T=tu(u.right,0),N=tu(u.top,0),I=tu(u.bottom,0);f?b=d-2*(x!==0||T!==0?x+T:tu(u.left,u.right)):S=h-2*(N!==0||I!==0?N+I:tu(u.top,u.bottom))}await s({...t,availableWidth:b,availableHeight:S});const A=await o.getDimensions(i.floating);return d!==A.width||h!==A.height?{reset:{rects:!0}}:{}}}};function d1(e){return bue(e)?(e.nodeName||"").toLowerCase():"#document"}function pa(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function C1(e){var t;return(t=(bue(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function bue(e){return e instanceof Node||e instanceof pa(e).Node}function Tf(e){return e instanceof Element||e instanceof pa(e).Element}function sc(e){return e instanceof HTMLElement||e instanceof pa(e).HTMLElement}function gK(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof pa(e).ShadowRoot}function U_(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=vu(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function IMe(e){return["table","td","th"].includes(d1(e))}function _8(e){const t=E8(),r=vu(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function NMe(e){let t=Bg(e);for(;sc(t)&&!Ox(t);){if(_8(t))return t;t=Bg(t)}return null}function E8(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ox(e){return["html","body","#document"].includes(d1(e))}function vu(e){return pa(e).getComputedStyle(e)}function Dx(e){return Tf(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Bg(e){if(d1(e)==="html")return e;const t=e.assignedSlot||e.parentNode||gK(e)&&e.host||C1(e);return gK(t)?t.host:t}function _ue(e){const t=Bg(e);return Ox(t)?e.ownerDocument?e.ownerDocument.body:e.body:sc(t)&&U_(t)?t:_ue(t)}function cB(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=_ue(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),s=pa(o);return i?t.concat(s,s.visualViewport||[],U_(o)?o:[],s.frameElement&&r?cB(s.frameElement):[]):t.concat(o,cB(o,[],r))}function Eue(e){const t=vu(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=sc(e),i=o?e.offsetWidth:r,s=o?e.offsetHeight:n,a=LA(r)!==i||LA(n)!==s;return a&&(r=i,n=s),{width:r,height:n,$:a}}function Sue(e){return Tf(e)?e:e.contextElement}function sg(e){const t=Sue(e);if(!sc(t))return f1(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=Eue(t);let s=(i?LA(r.width):r.width)/n,a=(i?LA(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const CMe=f1(0);function wue(e){const t=pa(e);return!E8()||!t.visualViewport?CMe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function RMe(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==pa(e)?!1:t}function Pb(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=Sue(e);let s=f1(1);t&&(n?Tf(n)&&(s=sg(n)):s=sg(e));const a=RMe(i,r,n)?wue(i):f1(0);let u=(o.left+a.x)/s.x,l=(o.top+a.y)/s.y,c=o.width/s.x,f=o.height/s.y;if(i){const d=pa(i),h=n&&Tf(n)?pa(n):n;let g=d.frameElement;for(;g&&n&&h!==d;){const v=sg(g),y=g.getBoundingClientRect(),E=vu(g),_=y.left+(g.clientLeft+parseFloat(E.paddingLeft))*v.x,S=y.top+(g.clientTop+parseFloat(E.paddingTop))*v.y;u*=v.x,l*=v.y,c*=v.x,f*=v.y,u+=_,l+=S,g=pa(g).frameElement}}return zA({width:c,height:f,x:u,y:l})}function OMe(e){let{rect:t,offsetParent:r,strategy:n}=e;const o=sc(r),i=C1(r);if(r===i)return t;let s={scrollLeft:0,scrollTop:0},a=f1(1);const u=f1(0);if((o||!o&&n!=="fixed")&&((d1(r)!=="body"||U_(i))&&(s=Dx(r)),sc(r))){const l=Pb(r);a=sg(r),u.x=l.x+r.clientLeft,u.y=l.y+r.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-s.scrollLeft*a.x+u.x,y:t.y*a.y-s.scrollTop*a.y+u.y}}function DMe(e){return Array.from(e.getClientRects())}function kue(e){return Pb(C1(e)).left+Dx(e).scrollLeft}function FMe(e){const t=C1(e),r=Dx(e),n=e.ownerDocument.body,o=tu(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=tu(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+kue(e);const a=-r.scrollTop;return vu(n).direction==="rtl"&&(s+=tu(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:s,y:a}}function BMe(e,t){const r=pa(e),n=C1(e),o=r.visualViewport;let i=n.clientWidth,s=n.clientHeight,a=0,u=0;if(o){i=o.width,s=o.height;const l=E8();(!l||l&&t==="fixed")&&(a=o.offsetLeft,u=o.offsetTop)}return{width:i,height:s,x:a,y:u}}function MMe(e,t){const r=Pb(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=sc(e)?sg(e):f1(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,u=o*i.x,l=n*i.y;return{width:s,height:a,x:u,y:l}}function vK(e,t,r){let n;if(t==="viewport")n=BMe(e,r);else if(t==="document")n=FMe(C1(e));else if(Tf(t))n=MMe(t,r);else{const o=wue(e);n={...t,x:t.x-o.x,y:t.y-o.y}}return zA(n)}function Aue(e,t){const r=Bg(e);return r===t||!Tf(r)||Ox(r)?!1:vu(r).position==="fixed"||Aue(r,t)}function LMe(e,t){const r=t.get(e);if(r)return r;let n=cB(e,[],!1).filter(a=>Tf(a)&&d1(a)!=="body"),o=null;const i=vu(e).position==="fixed";let s=i?Bg(e):e;for(;Tf(s)&&!Ox(s);){const a=vu(s),u=_8(s);!u&&a.position==="fixed"&&(o=null),(i?!u&&!o:!u&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||U_(s)&&!u&&Aue(e,s))?n=n.filter(c=>c!==s):o=a,s=Bg(s)}return t.set(e,n),n}function jMe(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?LMe(t,this._c):[].concat(r),n],a=s[0],u=s.reduce((l,c)=>{const f=vK(t,c,o);return l.top=tu(f.top,l.top),l.right=Vh(f.right,l.right),l.bottom=Vh(f.bottom,l.bottom),l.left=tu(f.left,l.left),l},vK(t,a,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function zMe(e){return Eue(e)}function HMe(e,t,r){const n=sc(t),o=C1(t),i=r==="fixed",s=Pb(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const u=f1(0);if(n||!n&&!i)if((d1(t)!=="body"||U_(o))&&(a=Dx(t)),n){const l=Pb(t,!0,i,t);u.x=l.x+t.clientLeft,u.y=l.y+t.clientTop}else o&&(u.x=kue(o));return{x:s.left+a.scrollLeft-u.x,y:s.top+a.scrollTop-u.y,width:s.width,height:s.height}}function mK(e,t){return!sc(e)||vu(e).position==="fixed"?null:t?t(e):e.offsetParent}function Tue(e,t){const r=pa(e);if(!sc(e))return r;let n=mK(e,t);for(;n&&IMe(n)&&vu(n).position==="static";)n=mK(n,t);return n&&(d1(n)==="html"||d1(n)==="body"&&vu(n).position==="static"&&!_8(n))?r:n||NMe(e)||r}const $Me=async function(e){let{reference:t,floating:r,strategy:n}=e;const o=this.getOffsetParent||Tue,i=this.getDimensions;return{reference:HMe(t,await o(r),n),floating:{x:0,y:0,...await i(r)}}};function PMe(e){return vu(e).direction==="rtl"}const qMe={convertOffsetParentRelativeRectToViewportRelativeRect:OMe,getDocumentElement:C1,getClippingRect:jMe,getOffsetParent:Tue,getElementRects:$Me,getClientRects:DMe,getDimensions:zMe,getScale:sg,isElement:Tf,isRTL:PMe},WMe=(e,t,r)=>{const n=new Map,o={platform:qMe,...r},i={...o.platform,_c:n};return _Me(e,t,{...o,platform:i})};function xue(e){const t=e.split("-");return{side:t[0],alignment:t[1]}}const KMe=e=>e.nodeName==="HTML"?e:e.parentNode||e.host,GMe=e=>{var t;return e.nodeType!==1?{}:((t=e.ownerDocument)===null||t===void 0?void 0:t.defaultView).getComputedStyle(e,null)},Fx=e=>{const t=e&&KMe(e);if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}const{overflow:r,overflowX:n,overflowY:o}=GMe(t);return/(auto|scroll|overlay)/.test(r+o+n)?t:Fx(t)},VMe=e=>{var t;const r=Fx(e);return r?r!==((t=r.ownerDocument)===null||t===void 0?void 0:t.body):!1};function S8(e,t){if(t==="window")return e==null?void 0:e.ownerDocument.documentElement;if(t==="clippingParents")return"clippingAncestors";if(t==="scrollParent"){let r=Fx(e);return r.nodeName==="BODY"&&(r=e==null?void 0:e.ownerDocument.documentElement),r}return t}function Iue(e,t){return typeof e=="number"||typeof e=="object"&&e!==null?sN(e,t):typeof e=="function"?r=>{const n=e(r);return sN(n,t)}:{mainAxis:t}}const sN=(e,t)=>{if(typeof e=="number")return{mainAxis:e+t};var r;return{...e,mainAxis:((r=e.mainAxis)!==null&&r!==void 0?r:0)+t}};function UMe(e,t){if(typeof e=="number")return e;const{start:r,end:n,...o}=e,i=o,s=t?"end":"start",a=t?"start":"end";return e[s]&&(i.left=e[s]),e[a]&&(i.right=e[a]),i}const YMe=e=>({above:"top",below:"bottom",before:e?"right":"left",after:e?"left":"right"}),XMe=()=>({start:"start",end:"end",top:"start",bottom:"end",center:void 0}),QMe=(e,t)=>{const r=e==="above"||e==="below",n=t==="top"||t==="bottom";return r&&n||!r&&!n},Nue=(e,t,r)=>{const n=QMe(t,e)?"center":e,o=t&&YMe(r)[t],i=n&&XMe()[n];return o&&i?`${o}-${i}`:o},ZMe=()=>({top:"above",bottom:"below",right:"after",left:"before"}),JMe=e=>e==="above"||e==="below"?{start:"start",end:"end"}:{start:"top",end:"bottom"},e6e=e=>{const{side:t,alignment:r}=xue(e),n=ZMe()[t],o=r&&JMe(n)[r];return{position:n,alignment:o}},t6e={above:{position:"above",align:"center"},"above-start":{position:"above",align:"start"},"above-end":{position:"above",align:"end"},below:{position:"below",align:"center"},"below-start":{position:"below",align:"start"},"below-end":{position:"below",align:"end"},before:{position:"before",align:"center"},"before-top":{position:"before",align:"top"},"before-bottom":{position:"before",align:"bottom"},after:{position:"after",align:"center"},"after-top":{position:"after",align:"top"},"after-bottom":{position:"after",align:"bottom"}};function Bx(e){return e==null?{}:typeof e=="string"?t6e[e]:e}function aN(e,t,r){const n=k.useRef(!0),[o]=k.useState(()=>({value:e,callback:t,facade:{get current(){return o.value},set current(i){const s=o.value;if(s!==i){if(o.value=i,r&&n.current)return;o.callback(i,s)}}}}));return ic(()=>{n.current=!1},[]),o.callback=t,o.facade}function r6e(e){let t;return()=>(t||(t=new Promise(r=>{Promise.resolve().then(()=>{t=void 0,r(e())})})),t)}function n6e(e){const{arrow:t,middlewareData:r}=e;if(!r.arrow||!t)return;const{x:n,y:o}=r.arrow;Object.assign(t.style,{left:`${n}px`,top:`${o}px`})}function o6e(e){var t,r,n;const{container:o,placement:i,middlewareData:s,strategy:a,lowPPI:u,coordinates:l,useTransform:c=!0}=e;if(!o)return;o.setAttribute(fMe,i),o.removeAttribute(uK),s.intersectionObserver.intersecting&&o.setAttribute(uK,""),o.removeAttribute(lK),!((t=s.hide)===null||t===void 0)&&t.escaped&&o.setAttribute(lK,""),o.removeAttribute(cK),!((r=s.hide)===null||r===void 0)&&r.referenceHidden&&o.setAttribute(cK,"");const f=((n=o.ownerDocument.defaultView)===null||n===void 0?void 0:n.devicePixelRatio)||1,d=Math.round(l.x*f)/f,h=Math.round(l.y*f)/f;if(Object.assign(o.style,{position:a}),c){Object.assign(o.style,{transform:u?`translate(${d}px, ${h}px)`:`translate3d(${d}px, ${h}px, 0)`});return}Object.assign(o.style,{left:`${d}px`,top:`${h}px`})}const i6e=e=>{switch(e){case"always":case!0:return{applyMaxWidth:!0,applyMaxHeight:!0};case"width-always":case"width":return{applyMaxWidth:!0,applyMaxHeight:!1};case"height-always":case"height":return{applyMaxWidth:!1,applyMaxHeight:!0};default:return!1}};function s6e(){return{name:"coverTarget",fn:e=>{const{placement:t,rects:r,x:n,y:o}=e,i=xue(t).side,s={x:n,y:o};switch(i){case"bottom":s.y-=r.reference.height;break;case"top":s.y+=r.reference.height;break;case"left":s.x+=r.reference.width;break;case"right":s.x-=r.reference.width;break}return s}}}function a6e(e){const{hasScrollableElement:t,flipBoundary:r,container:n,fallbackPositions:o=[],isRtl:i}=e,s=o.reduce((a,u)=>{const{position:l,align:c}=Bx(u),f=Nue(c,l,i);return f&&a.push(f),a},[]);return SMe({...t&&{boundary:"clippingAncestors"},...r&&{altBoundary:!0,boundary:S8(n,r)},fallbackStrategy:"bestFit",...s.length&&{fallbackPlacements:s}})}function u6e(){return{name:"intersectionObserver",fn:async e=>{const t=e.rects.floating,r=await Fg(e,{altBoundary:!0}),n=r.top0,o=r.bottom0;return{data:{intersecting:n||o}}}}}const l6e=e=>({name:"resetMaxSize",fn({middlewareData:t,elements:r}){var n;if(!((n=t.resetMaxSize)===null||n===void 0)&&n.maxSizeAlreadyReset)return{};const{applyMaxWidth:o,applyMaxHeight:i}=e;return o&&(r.floating.style.removeProperty("box-sizing"),r.floating.style.removeProperty("max-width"),r.floating.style.removeProperty("width")),i&&(r.floating.style.removeProperty("box-sizing"),r.floating.style.removeProperty("max-height"),r.floating.style.removeProperty("height")),{data:{maxSizeAlreadyReset:!0},reset:{rects:!0}}}});function c6e(e,t){const{container:r,overflowBoundary:n}=t;return xMe({...n&&{altBoundary:!0,boundary:S8(r,n)},apply({availableHeight:o,availableWidth:i,elements:s,rects:a}){const u=(f,d,h)=>{if(f&&(s.floating.style.setProperty("box-sizing","border-box"),s.floating.style.setProperty(`max-${d}`,`${h}px`),a.floating[d]>h)){s.floating.style.setProperty(d,`${h}px`);const g=d==="width"?"x":"y";s.floating.style.getPropertyValue(`overflow-${g}`)||s.floating.style.setProperty(`overflow-${g}`,"auto")}},{applyMaxWidth:l,applyMaxHeight:c}=e;u(l,"width",i),u(c,"height",o)}})}function f6e(e){return!e||typeof e=="number"||typeof e=="object"?e:({rects:{floating:t,reference:r},placement:n})=>{const{position:o,alignment:i}=e6e(n);return e({positionedRect:t,targetRect:r,position:o,alignment:i})}}function d6e(e){const t=f6e(e);return kMe(t)}function h6e(e){const{hasScrollableElement:t,disableTether:r,overflowBoundary:n,container:o,overflowBoundaryPadding:i,isRtl:s}=e;return AMe({...t&&{boundary:"clippingAncestors"},...r&&{crossAxis:r==="all",limiter:TMe({crossAxis:r!=="all",mainAxis:!1})},...i&&{padding:UMe(i,s)},...n&&{altBoundary:!0,boundary:S8(o,n)}})}const yK="--fui-match-target-size";function p6e(){return{name:"matchTargetSize",fn:async e=>{const{rects:{reference:t,floating:r},elements:{floating:n},middlewareData:{matchTargetSize:{matchTargetSizeAttempt:o=!1}={}}}=e;if(t.width===r.width||o)return{};const{width:i}=t;return n.style.setProperty(yK,`${i}px`),n.style.width||(n.style.width=`var(${yK})`),{data:{matchTargetSizeAttempt:!0},reset:{rects:!0}}}}}function bK(e){const t=[];let r=e;for(;r;){const n=Fx(r);if(e.ownerDocument.body===n){t.push(n);break}t.push(n),r=n}return t}function g6e(e){const{container:t,target:r,arrow:n,strategy:o,middleware:i,placement:s,useTransform:a=!0}=e;let u=!1;if(!r||!t)return{updatePosition:()=>{},dispose:()=>{}};let l=!0;const c=new Set,f=t.ownerDocument.defaultView;Object.assign(t.style,{position:"fixed",left:0,top:0,margin:0});const d=()=>{u||(l&&(bK(t).forEach(v=>c.add(v)),Lb(r)&&bK(r).forEach(v=>c.add(v)),c.forEach(v=>{v.addEventListener("scroll",h,{passive:!0})}),l=!1),Object.assign(t.style,{position:o}),WMe(r,t,{placement:s,middleware:i,strategy:o}).then(({x:v,y,middlewareData:E,placement:_})=>{u||(n6e({arrow:n,middlewareData:E}),o6e({container:t,middlewareData:E,placement:_,coordinates:{x:v,y},lowPPI:((f==null?void 0:f.devicePixelRatio)||1)<=1,strategy:o,useTransform:a}))}).catch(v=>{}))},h=r6e(()=>d()),g=()=>{u=!0,f&&(f.removeEventListener("scroll",h),f.removeEventListener("resize",h)),c.forEach(v=>{v.removeEventListener("scroll",h)}),c.clear()};return f&&(f.addEventListener("scroll",h,{passive:!0}),f.addEventListener("resize",h)),h(),{updatePosition:h,dispose:g}}function w8(e){const t=k.useRef(null),r=k.useRef(null),n=k.useRef(null),o=k.useRef(null),i=k.useRef(null),{enabled:s=!0}=e,a=v6e(e),u=k.useCallback(()=>{t.current&&t.current.dispose(),t.current=null;var h;const g=(h=n.current)!==null&&h!==void 0?h:r.current;s&&K_()&&g&&o.current&&(t.current=g6e({container:o.current,target:g,arrow:i.current,...a(o.current,i.current)}))},[s,a]),l=ar(h=>{n.current=h,u()});k.useImperativeHandle(e.positioningRef,()=>({updatePosition:()=>{var h;return(h=t.current)===null||h===void 0?void 0:h.updatePosition()},setTarget:h=>{e.target,l(h)}}),[e.target,l]),ic(()=>{var h;l((h=e.target)!==null&&h!==void 0?h:null)},[e.target,l]),ic(()=>{u()},[u]);const c=aN(null,h=>{r.current!==h&&(r.current=h,u())}),f=aN(null,h=>{o.current!==h&&(o.current=h,u())}),d=aN(null,h=>{i.current!==h&&(i.current=h,u())});return{targetRef:c,containerRef:f,arrowRef:d}}function v6e(e){const{align:t,arrowPadding:r,autoSize:n,coverTarget:o,flipBoundary:i,offset:s,overflowBoundary:a,pinned:u,position:l,unstable_disableTether:c,positionFixed:f,strategy:d,overflowBoundaryPadding:h,fallbackPositions:g,useTransform:v,matchTargetSize:y}=e,{dir:E,targetDocument:_}=Na(),S=E==="rtl",b=d??f?"fixed":"absolute",A=i6e(n);return k.useCallback((x,T)=>{const N=VMe(x),I=[A&&l6e(A),y&&p6e(),s&&d6e(s),o&&s6e(),!u&&a6e({container:x,flipBoundary:i,hasScrollableElement:N,isRtl:S,fallbackPositions:g}),h6e({container:x,hasScrollableElement:N,overflowBoundary:a,disableTether:c,overflowBoundaryPadding:h,isRtl:S}),A&&c6e(A,{container:x,overflowBoundary:a}),u6e(),T&&EMe({element:T,padding:r}),pK({strategy:"referenceHidden"}),pK({strategy:"escaped"}),!1].filter(Boolean);return{placement:Nue(t,l,S),middleware:I,strategy:b,useTransform:v}},[t,r,A,o,c,i,S,s,a,u,l,b,h,g,v,y,_])}const m6e=e=>{const[t,r]=k.useState(e);return[t,o=>{if(o==null){r(void 0);return}let i;o instanceof MouseEvent?i=o:i=o.nativeEvent,i instanceof MouseEvent;const s=cMe(i);r(s)}]},k8=hv(void 0),y6e={open:!1,setOpen:()=>null,toggleOpen:()=>null,triggerRef:{current:null},contentRef:{current:null},arrowRef:{current:null},openOnContext:!1,openOnHover:!1,size:"medium",trapFocus:!1,inline:!1};k8.Provider;const ni=e=>Ko(k8,(t=y6e)=>e(t)),b6e=(e,t)=>{const r=ni(_=>_.contentRef),n=ni(_=>_.openOnHover),o=ni(_=>_.setOpen),i=ni(_=>_.mountNode),s=ni(_=>_.arrowRef),a=ni(_=>_.size),u=ni(_=>_.withArrow),l=ni(_=>_.appearance),c=ni(_=>_.trapFocus),f=ni(_=>_.inertTrapFocus),d=ni(_=>_.inline),{modalAttributes:h}=Nx({trapFocus:c,legacyTrapFocus:!f,alwaysFocusable:!c}),g={inline:d,appearance:l,withArrow:u,size:a,arrowRef:s,mountNode:i,components:{root:"div"},root:Er(yn("div",{ref:di(t,r),role:c?"dialog":"group","aria-modal":c?!0:void 0,...h,...e}),{elementType:"div"})},{onMouseEnter:v,onMouseLeave:y,onKeyDown:E}=g.root;return g.root.onMouseEnter=_=>{n&&o(_,!0),v==null||v(_)},g.root.onMouseLeave=_=>{n&&o(_,!1),y==null||y(_)},g.root.onKeyDown=_=>{var S;_.key==="Escape"&&(!((S=r.current)===null||S===void 0)&&S.contains(_.target))&&(_.preventDefault(),o(_,!1)),E==null||E(_)},g};function _6e(e){return Lb(e)?{element:e}:typeof e=="object"?e===null?{element:null}:e:{}}var Cue=()=>k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner.current,E6e=()=>!1,_K=new WeakSet;function S6e(e,t){const r=Cue();k.useEffect(()=>{if(!_K.has(r)){_K.add(r),e();return}return e()},t)}var EK=new WeakSet;function w6e(e,t){return k.useMemo(()=>{const r=Cue();return EK.has(r)?e():(EK.add(r),null)},t)}function k6e(e,t){var r;const n=E6e()&&!1,o=n?w6e:k.useMemo,i=n?S6e:k.useEffect,[s,a]=(r=o(()=>e(),t))!=null?r:[null,()=>null];return i(()=>a,t),s}const A6e=wt({root:{qhf8xq:"f1euv43f",Bhzewxz:"f15twtuk",oyh7mz:["f1vgc2s3","f1e31b4d"],j35jbq:["f1e31b4d","f1vgc2s3"],Bj3rh1h:"f494woh"}},{d:[".f1euv43f{position:absolute;}",".f15twtuk{top:0;}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".f494woh{z-index:1000000;}"]}),SK=lb.useInsertionEffect,T6e=e=>{const{targetDocument:t,dir:r}=Na(),n=xDe(),o=Vae(),i=A6e(),s=mDe(),a=Xe(s,i.root,e.className),u=n??(t==null?void 0:t.body),l=k6e(()=>{if(u===void 0||e.disabled)return[null,()=>null];const c=u.ownerDocument.createElement("div");return u.appendChild(c),[c,()=>c.remove()]},[u]);return SK?SK(()=>{if(!l)return;const c=a.split(" ").filter(Boolean);return l.classList.add(...c),l.setAttribute("dir",r),o.current=l,()=>{l.classList.remove(...c),l.removeAttribute("dir")}},[a,r,l,o]):k.useMemo(()=>{l&&(l.className=a,l.setAttribute("dir",r),o.current=l)},[a,r,l,o]),l},x6e=e=>{const{element:t,className:r}=_6e(e.mountNode),n=k.useRef(null),o=T6e({disabled:!!t,className:r}),i=t??o,s={children:e.children,mountNode:i,virtualParentRootRef:n};return k.useEffect(()=>{if(!i)return;const a=n.current,u=i.contains(a);if(a&&!u)return QW(i,a),()=>{QW(i,void 0)}},[n,i]),s},I6e=e=>k.createElement("span",{hidden:!0,ref:e.virtualParentRootRef},e.mountNode&&li.createPortal(e.children,e.mountNode)),Y_=e=>{const t=x6e(e);return I6e(t)};Y_.displayName="Portal";const N6e=e=>{const t=Un(e.root,{children:[e.withArrow&&nt("div",{ref:e.arrowRef,className:e.arrowClassName}),e.root.children]});return e.inline?t:nt(Y_,{mountNode:e.mountNode,children:t})},C6e={root:"fui-PopoverSurface"},R6e={small:6,medium:8,large:8},O6e=wt({root:{sj55zd:"f19n0e5",De3pzq:"fxugw4r",E5pizo:"f1hg901r",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B4j52fo:"f5ogflp",Bekrc4i:["f1hqa2wf","finvdd3"],Bn0qgzm:"f1f09k3d",ibv6hh:["finvdd3","f1hqa2wf"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B93otf3:"f18k4bn6",vin17d:"fo1kyvf",Ezkn3b:"fetxo7e",nyiy2g:"f8x1vz1",swvrvq:"f8g0anz",Bkovbt3:"fezwn9i",hgjdhn:"fz5efge",fsy9dk:"f1ydixl4",B3ogreh:"f8dgqj5",jv49x5:"fnyfnr8",Bk7o48c:"fgw77r4",Bv12yb3:"ftje0s4",z0t1cu:"fi19xcv",Bks05zx:"f1mzajhk",Bvtglag:"fjp4h9y"},inline:{Bj3rh1h:"f19g0ac"},inverted:{De3pzq:"fg3r6xk",sj55zd:"fonrgv7"},brand:{De3pzq:"ffp7eso",sj55zd:"f1phragk"},smallPadding:{z8tnut:"f1kcqot9",z189sj:["f11qrl6u","fjlbh76"],Byoj8tv:"fpe6lb7",uwmqm3:["fjlbh76","f11qrl6u"]},mediumPadding:{z8tnut:"fqag9an",z189sj:["f1gbmcue","f1rh9g5y"],Byoj8tv:"fp67ikv",uwmqm3:["f1rh9g5y","f1gbmcue"]},largePadding:{z8tnut:"fc7z3ec",z189sj:["fat0sn4","fekwl8i"],Byoj8tv:"fe2my4m",uwmqm3:["fekwl8i","fat0sn4"]},smallArrow:{a9b677:"f1ekdpwm",Bqenvij:"f83vc9z"},mediumLargeArrow:{a9b677:"f1kmc0fn",Bqenvij:"fb6lvc5"},arrow:{qhf8xq:"f1euv43f",De3pzq:"f1u2r49w",Bcdw1i0:"fd7fpy0",Bj3rh1h:"f1bsuimh",Ftih45:"f1wl9k8s",B1puzpu:"f1wkw4r9",Brfgrao:"f1j7ml58",Bcvre1j:"fyl8oag",Ccq8qp:"frdoeuz",Baz25je:"fb81m9q",cmx5o7:"f1ljr5q2",B4f6apu:"fyfemzf",m598lv:"focyt6c",Bk5zm6e:"fnhxbxj",y0oebl:"fdw6hkg",qa3bma:"f11yjt3y",Bqjgrrk:"f1172wan",Budzafs:["f9e5op9","f112wvtl"],Hv9wc6:["f1500xdc","f1it0ps5"],hl6cv3:"f1773hnp",c8svkw:"fw7o64x",yayu3t:"f1v7783n",nr3p0k:"f1f0d6v",rhl9o9:"fh2hsk5",wiz9v7:"f1gj3y7g",B6q6orb:"f11yvu4",ndpsmx:"f17lejdj"}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1hg901r{box-shadow:var(--shadow16);}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f5ogflp{border-top-width:1px;}",".f1hqa2wf{border-right-width:1px;}",".finvdd3{border-left-width:1px;}",".f1f09k3d{border-bottom-width:1px;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f18k4bn6{animation-composition:accumulate;}",".fo1kyvf{animation-duration:var(--durationSlower);}",".fetxo7e{animation-timing-function:var(--curveDecelerateMid);}",".f8x1vz1{--fui-positioning-slide-distance-x:0px;}",".f8g0anz{--fui-positioning-slide-distance-y:10px;}",".fezwn9i[data-popper-placement^=right]{--fui-positioning-slide-distance-x:-10px;}",".fz5efge[data-popper-placement^=right]{--fui-positioning-slide-distance-y:0px;}",".f1ydixl4[data-popper-placement^=bottom]{--fui-positioning-slide-distance-x:0px;}",".f8dgqj5[data-popper-placement^=bottom]{--fui-positioning-slide-distance-y:-10px;}",".fnyfnr8[data-popper-placement^=left]{--fui-positioning-slide-distance-x:10px;}",".fgw77r4[data-popper-placement^=left]{--fui-positioning-slide-distance-y:0px;}",".ftje0s4{animation-name:f5j8bii,f79suad;}",".f19g0ac{z-index:1;}",".fg3r6xk{background-color:var(--colorNeutralBackgroundStatic);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".f1kcqot9{padding-top:12px;}",".f11qrl6u{padding-right:12px;}",".fjlbh76{padding-left:12px;}",".fpe6lb7{padding-bottom:12px;}",".fqag9an{padding-top:16px;}",".f1gbmcue{padding-right:16px;}",".f1rh9g5y{padding-left:16px;}",".fp67ikv{padding-bottom:16px;}",".fc7z3ec{padding-top:20px;}",".fat0sn4{padding-right:20px;}",".fekwl8i{padding-left:20px;}",".fe2my4m{padding-bottom:20px;}",".f1ekdpwm{width:8.484px;}",".f83vc9z{height:8.484px;}",".f1kmc0fn{width:11.312px;}",".fb6lvc5{height:11.312px;}",".f1euv43f{position:absolute;}",".f1u2r49w{background-color:inherit;}",".fd7fpy0{visibility:hidden;}",".f1bsuimh{z-index:-1;}",'.f1wl9k8s::before{content:"";}',".f1wkw4r9::before{visibility:visible;}",".f1j7ml58::before{position:absolute;}",".fyl8oag::before{box-sizing:border-box;}",".frdoeuz::before{width:inherit;}",".fb81m9q::before{height:inherit;}",".f1ljr5q2::before{background-color:inherit;}",".fyfemzf::before{border-right-width:1px;}",".focyt6c::before{border-right-style:solid;}",".fnhxbxj::before{border-right-color:var(--colorTransparentStroke);}",".fdw6hkg::before{border-bottom-width:1px;}",".f11yjt3y::before{border-bottom-style:solid;}",".f1172wan::before{border-bottom-color:var(--colorTransparentStroke);}",".f9e5op9::before{border-bottom-right-radius:var(--borderRadiusSmall);}",".f112wvtl::before{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1500xdc::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(45deg);}",".f1it0ps5::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(-45deg);}",'[data-popper-placement^="top"] .f1773hnp{bottom:-1px;}','[data-popper-placement^="top"] .fw7o64x{--fui-positioning-angle:0;}','[data-popper-placement^="right"] .f1v7783n{left:-1px;}','[data-popper-placement^="right"] .f1f0d6v{--fui-positioning-angle:90deg;}','[data-popper-placement^="bottom"] .fh2hsk5{top:-1px;}','[data-popper-placement^="bottom"] .f1gj3y7g{--fui-positioning-angle:180deg;}','[data-popper-placement^="left"] .f11yvu4{right:-1px;}','[data-popper-placement^="left"] .f17lejdj{--fui-positioning-angle:270deg;}'],k:["@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}","@keyframes f79suad{from{transform:translate(var(--fui-positioning-slide-distance-x), var(--fui-positioning-slide-distance-y));}}"],m:[["@media (prefers-reduced-motion){.fi19xcv[data-popper-placement]{animation-duration:1ms;}}",{m:"(prefers-reduced-motion)"}],["@media (prefers-reduced-motion){.f1mzajhk[data-popper-placement]{animation-name:f5j8bii;}}",{m:"(prefers-reduced-motion)"}]],t:["@supports not (animation-composition: accumulate){.fjp4h9y[data-popper-placement]{animation-name:f5j8bii;}}"]}),D6e=e=>{const t=O6e();return e.root.className=Xe(C6e.root,t.root,e.inline&&t.inline,e.size==="small"&&t.smallPadding,e.size==="medium"&&t.mediumPadding,e.size==="large"&&t.largePadding,e.appearance==="inverted"&&t.inverted,e.appearance==="brand"&&t.brand,e.root.className),e.arrowClassName=Xe(t.arrow,e.size==="small"?t.smallArrow:t.mediumLargeArrow),e},Rue=k.forwardRef((e,t)=>{const r=b6e(e,t);return D6e(r),bn("usePopoverSurfaceStyles_unstable")(r),N6e(r)});Rue.displayName="PopoverSurface";const F6e=4,B6e=e=>{const[t,r]=m6e(),n={size:"medium",contextTarget:t,setContextTarget:r,...e},o=k.Children.toArray(e.children);let i,s;o.length===2?(i=o[0],s=o[1]):o.length===1&&(s=o[0]);const[a,u]=M6e(n),l=k.useRef(0),c=ar((S,b)=>{if(clearTimeout(l.current),!(S instanceof Event)&&S.persist&&S.persist(),S.type==="mouseleave"){var A;l.current=setTimeout(()=>{u(S,b)},(A=e.mouseLeaveDelay)!==null&&A!==void 0?A:500)}else u(S,b)});k.useEffect(()=>()=>{clearTimeout(l.current)},[]);const f=k.useCallback(S=>{c(S,!a)},[c,a]),d=L6e(n),{targetDocument:h}=Na();var g;NDe({contains:XW,element:h,callback:S=>c(S,!1),refs:[d.triggerRef,d.contentRef],disabled:!a,disabledFocusOnIframe:!(!((g=e.closeOnIframeFocus)!==null&&g!==void 0)||g)});const v=n.openOnContext||n.closeOnScroll;ODe({contains:XW,element:h,callback:S=>c(S,!1),refs:[d.triggerRef,d.contentRef],disabled:!a||!v});const{findFirstFocusable:y}=Kae();k.useEffect(()=>{if(!e.unstable_disableAutoFocus&&a&&d.contentRef.current){var S;const b=(S=d.contentRef.current.getAttribute("tabIndex"))!==null&&S!==void 0?S:void 0,A=isNaN(b)?y(d.contentRef.current):d.contentRef.current;A==null||A.focus()}},[y,a,d.contentRef,e.unstable_disableAutoFocus]);var E,_;return{...n,...d,inertTrapFocus:(E=e.inertTrapFocus)!==null&&E!==void 0?E:e.legacyTrapFocus===void 0?!1:!e.legacyTrapFocus,popoverTrigger:i,popoverSurface:s,open:a,setOpen:c,toggleOpen:f,setContextTarget:r,contextTarget:t,inline:(_=e.inline)!==null&&_!==void 0?_:!1}};function M6e(e){const t=ar((s,a)=>{var u;return(u=e.onOpenChange)===null||u===void 0?void 0:u.call(e,s,a)}),[r,n]=Ef({state:e.open,defaultState:e.defaultOpen,initialState:!1});e.open=r!==void 0?r:e.open;const o=e.setContextTarget,i=k.useCallback((s,a)=>{a&&s.type==="contextmenu"&&o(s),a||o(void 0),n(a),t==null||t(s,{open:a})},[n,t,o]);return[r,i]}function L6e(e){const t={position:"above",align:"center",arrowPadding:2*F6e,target:e.openOnContext?e.contextTarget:void 0,...Bx(e.positioning)};t.coverTarget&&(e.withArrow=!1),e.withArrow&&(t.offset=Iue(t.offset,R6e[e.size]));const{targetRef:r,containerRef:n,arrowRef:o}=w8(t);return{triggerRef:r,contentRef:n,arrowRef:o}}const j6e=e=>{const{appearance:t,arrowRef:r,contentRef:n,inline:o,mountNode:i,open:s,openOnContext:a,openOnHover:u,setOpen:l,size:c,toggleOpen:f,trapFocus:d,triggerRef:h,withArrow:g,inertTrapFocus:v}=e;return k.createElement(k8.Provider,{value:{appearance:t,arrowRef:r,contentRef:n,inline:o,mountNode:i,open:s,openOnContext:a,openOnHover:u,setOpen:l,toggleOpen:f,triggerRef:h,size:c,trapFocus:d,inertTrapFocus:v,withArrow:g}},e.popoverTrigger,e.open&&e.popoverSurface)},Oue=e=>{const t=B6e(e);return j6e(t)};Oue.displayName="Popover";const z6e=e=>{const{children:t,disableButtonEnhancement:r=!1}=e,n=Tx(t),o=ni(S=>S.open),i=ni(S=>S.setOpen),s=ni(S=>S.toggleOpen),a=ni(S=>S.triggerRef),u=ni(S=>S.openOnHover),l=ni(S=>S.openOnContext),{triggerAttributes:c}=Nx(),f=S=>{l&&(S.preventDefault(),i(S,!0))},d=S=>{l||s(S)},h=S=>{S.key===Rx&&o&&!S.isDefaultPrevented()&&(i(S,!1),S.preventDefault())},g=S=>{u&&i(S,!0)},v=S=>{u&&i(S,!1)},y={...c,"aria-expanded":`${o}`,...n==null?void 0:n.props,onMouseEnter:ar(Nn(n==null?void 0:n.props.onMouseEnter,g)),onMouseLeave:ar(Nn(n==null?void 0:n.props.onMouseLeave,v)),onContextMenu:ar(Nn(n==null?void 0:n.props.onContextMenu,f)),ref:di(a,n==null?void 0:n.ref)},E={...y,onClick:ar(Nn(n==null?void 0:n.props.onClick,d)),onKeyDown:ar(Nn(n==null?void 0:n.props.onKeyDown,h))},_=$b((n==null?void 0:n.type)==="button"||(n==null?void 0:n.type)==="a"?n.type:"div",E);return{children:l8(e.children,$b((n==null?void 0:n.type)==="button"||(n==null?void 0:n.type)==="a"?n.type:"div",l?y:r?E:_))}},H6e=e=>e.children,A8=e=>{const t=z6e(e);return H6e(t)};A8.displayName="PopoverTrigger";A8.isFluentTriggerComponent=!0;const $6e=6,P6e=4,q6e=e=>{var t,r,n,o;const i=_De(),s=fDe(),{targetDocument:a}=Na(),[u,l]=u8(),{appearance:c="normal",children:f,content:d,withArrow:h=!1,positioning:g="above",onVisibleChange:v,relationship:y,showDelay:E=250,hideDelay:_=250,mountNode:S}=e,[b,A]=Ef({state:e.visible,initialState:!1}),x=k.useCallback((K,U)=>{l(),A(X=>(U.visible!==X&&(v==null||v(K,U)),U.visible))},[l,A,v]),T={withArrow:h,positioning:g,showDelay:E,hideDelay:_,relationship:y,visible:b,shouldRenderTooltip:b,appearance:c,mountNode:S,components:{content:"div"},content:Er(d,{defaultProps:{role:"tooltip"},elementType:"div"})};T.content.id=Ia("tooltip-",T.content.id);const N={enabled:T.visible,arrowPadding:2*P6e,position:"above",align:"center",offset:4,...Bx(T.positioning)};T.withArrow&&(N.offset=Iue(N.offset,$6e));const{targetRef:I,containerRef:R,arrowRef:D}=w8(N);T.content.ref=di(T.content.ref,R),T.arrowRef=D,ic(()=>{if(b){var K;const U={hide:J=>x(void 0,{visible:!1,documentKeyboardEvent:J})};(K=i.visibleTooltip)===null||K===void 0||K.hide(),i.visibleTooltip=U;const X=J=>{J.key===Rx&&!J.defaultPrevented&&(U.hide(J),J.preventDefault())};return a==null||a.addEventListener("keydown",X,{capture:!0}),()=>{i.visibleTooltip===U&&(i.visibleTooltip=void 0),a==null||a.removeEventListener("keydown",X,{capture:!0})}}},[i,a,b,x]);const L=k.useRef(!1),M=k.useCallback(K=>{if(K.type==="focus"&&L.current){L.current=!1;return}const U=i.visibleTooltip?0:T.showDelay;u(()=>{x(K,{visible:!0})},U),K.persist()},[u,x,T.showDelay,i]),[q]=k.useState(()=>{const K=X=>{var J;!((J=X.detail)===null||J===void 0)&&J.isFocusedProgrammatically&&(L.current=!0)};let U=null;return X=>{U==null||U.removeEventListener(Sf,K),X==null||X.addEventListener(Sf,K),U=X}}),z=k.useCallback(K=>{let U=T.hideDelay;K.type==="blur"&&(U=0,L.current=(a==null?void 0:a.activeElement)===K.target),u(()=>{x(K,{visible:!1})},U),K.persist()},[u,x,T.hideDelay,a]);T.content.onPointerEnter=Nn(T.content.onPointerEnter,l),T.content.onPointerLeave=Nn(T.content.onPointerLeave,z),T.content.onFocus=Nn(T.content.onFocus,l),T.content.onBlur=Nn(T.content.onBlur,z);const B=Tx(f),P={};return y==="label"?typeof T.content.children=="string"?P["aria-label"]=T.content.children:(P["aria-labelledby"]=T.content.id,T.shouldRenderTooltip=!0):y==="description"&&(P["aria-describedby"]=T.content.id,T.shouldRenderTooltip=!0),s&&(T.shouldRenderTooltip=!1),T.children=l8(f,{...P,...B==null?void 0:B.props,ref:di(B==null?void 0:B.ref,q,N.target===void 0?I:void 0),onPointerEnter:ar(Nn(B==null||(t=B.props)===null||t===void 0?void 0:t.onPointerEnter,M)),onPointerLeave:ar(Nn(B==null||(r=B.props)===null||r===void 0?void 0:r.onPointerLeave,z)),onFocus:ar(Nn(B==null||(n=B.props)===null||n===void 0?void 0:n.onFocus,M)),onBlur:ar(Nn(B==null||(o=B.props)===null||o===void 0?void 0:o.onBlur,z))}),T},W6e=e=>Un(k.Fragment,{children:[e.children,e.shouldRenderTooltip&&nt(Y_,{mountNode:e.mountNode,children:Un(e.content,{children:[e.withArrow&&nt("div",{ref:e.arrowRef,className:e.arrowClassName}),e.content.children]})})]}),K6e={content:"fui-Tooltip__content"},G6e=wt({root:{mc9l5x:"fjseox",B7ck84d:"f1ewtqcl",B2u0y6b:"f132xexn",Bceei9c:"f158kwzp",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm",Btd35i7:"fokg9q4",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B4j52fo:"f5ogflp",Bekrc4i:["f1hqa2wf","finvdd3"],Bn0qgzm:"f1f09k3d",ibv6hh:["finvdd3","f1hqa2wf"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"],z8tnut:"f10ra9hq",z189sj:["fd9xhir","f1jlaasf"],Byoj8tv:"f1d7kygh",uwmqm3:["f1jlaasf","fd9xhir"],De3pzq:"fxugw4r",sj55zd:"f19n0e5",Bhu2qc9:"fxeb0a7"},visible:{mc9l5x:"ftgm304"},inverted:{De3pzq:"fg3r6xk",sj55zd:"fonrgv7"},arrow:{qhf8xq:"f1euv43f",De3pzq:"f1u2r49w",Bcdw1i0:"fd7fpy0",Bj3rh1h:"f1bsuimh",a9b677:"f1ekdpwm",Bqenvij:"f83vc9z",Ftih45:"f1wl9k8s",B1puzpu:"f1wkw4r9",Brfgrao:"f1j7ml58",Bcvre1j:"fyl8oag",Ccq8qp:"frdoeuz",Baz25je:"fb81m9q",cmx5o7:"f1ljr5q2",B4f6apu:"fyfemzf",m598lv:"focyt6c",Bk5zm6e:"fnhxbxj",y0oebl:"fdw6hkg",qa3bma:"f11yjt3y",Bqjgrrk:"f1172wan",Budzafs:["f9e5op9","f112wvtl"],Hv9wc6:["f1500xdc","f1it0ps5"],hl6cv3:"f1773hnp",c8svkw:"fw7o64x",yayu3t:"f1v7783n",nr3p0k:"f1f0d6v",rhl9o9:"fh2hsk5",wiz9v7:"f1gj3y7g",B6q6orb:"f11yvu4",ndpsmx:"f17lejdj"}},{d:[".fjseox{display:none;}",".f1ewtqcl{box-sizing:border-box;}",".f132xexn{max-width:240px;}",".f158kwzp{cursor:default;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fokg9q4{overflow-wrap:break-word;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f5ogflp{border-top-width:1px;}",".f1hqa2wf{border-right-width:1px;}",".finvdd3{border-left-width:1px;}",".f1f09k3d{border-bottom-width:1px;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".f10ra9hq{padding-top:4px;}",".fd9xhir{padding-right:11px;}",".f1jlaasf{padding-left:11px;}",".f1d7kygh{padding-bottom:6px;}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".fxeb0a7{filter:drop-shadow(0 0 2px var(--colorNeutralShadowAmbient)) drop-shadow(0 4px 8px var(--colorNeutralShadowKey));}",".ftgm304{display:block;}",".fg3r6xk{background-color:var(--colorNeutralBackgroundStatic);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".f1euv43f{position:absolute;}",".f1u2r49w{background-color:inherit;}",".fd7fpy0{visibility:hidden;}",".f1bsuimh{z-index:-1;}",".f1ekdpwm{width:8.484px;}",".f83vc9z{height:8.484px;}",'.f1wl9k8s::before{content:"";}',".f1wkw4r9::before{visibility:visible;}",".f1j7ml58::before{position:absolute;}",".fyl8oag::before{box-sizing:border-box;}",".frdoeuz::before{width:inherit;}",".fb81m9q::before{height:inherit;}",".f1ljr5q2::before{background-color:inherit;}",".fyfemzf::before{border-right-width:1px;}",".focyt6c::before{border-right-style:solid;}",".fnhxbxj::before{border-right-color:var(--colorTransparentStroke);}",".fdw6hkg::before{border-bottom-width:1px;}",".f11yjt3y::before{border-bottom-style:solid;}",".f1172wan::before{border-bottom-color:var(--colorTransparentStroke);}",".f9e5op9::before{border-bottom-right-radius:var(--borderRadiusSmall);}",".f112wvtl::before{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1500xdc::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(45deg);}",".f1it0ps5::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(-45deg);}",'[data-popper-placement^="top"] .f1773hnp{bottom:-1px;}','[data-popper-placement^="top"] .fw7o64x{--fui-positioning-angle:0;}','[data-popper-placement^="right"] .f1v7783n{left:-1px;}','[data-popper-placement^="right"] .f1f0d6v{--fui-positioning-angle:90deg;}','[data-popper-placement^="bottom"] .fh2hsk5{top:-1px;}','[data-popper-placement^="bottom"] .f1gj3y7g{--fui-positioning-angle:180deg;}','[data-popper-placement^="left"] .f11yvu4{right:-1px;}','[data-popper-placement^="left"] .f17lejdj{--fui-positioning-angle:270deg;}']}),V6e=e=>{const t=G6e();return e.content.className=Xe(K6e.content,t.root,e.appearance==="inverted"&&t.inverted,e.visible&&t.visible,e.content.className),e.arrowClassName=t.arrow,e},la=e=>{const t=q6e(e);return V6e(t),bn("useTooltipStyles_unstable")(t),W6e(t)};la.displayName="Tooltip";la.isFluentTriggerComponent=!0;const U6e=e=>{const{iconOnly:t,iconPosition:r}=e;return Un(e.root,{children:[r!=="after"&&e.icon&&nt(e.icon,{}),!t&&e.root.children,r==="after"&&e.icon&&nt(e.icon,{})]})},Due=k.createContext(void 0),Y6e={},wK=Due.Provider,X6e=()=>{var e;return(e=k.useContext(Due))!==null&&e!==void 0?e:Y6e},Q6e=(e,t)=>{const{size:r}=X6e(),{appearance:n="secondary",as:o="button",disabled:i=!1,disabledFocusable:s=!1,icon:a,iconPosition:u="before",shape:l="rounded",size:c=r??"medium"}=e,f=un(a,{elementType:"span"});return{appearance:n,disabled:i,disabledFocusable:s,iconPosition:u,shape:l,size:c,iconOnly:!!(f!=null&&f.children&&!e.children),components:{root:"button",icon:"span"},root:Er(yn(o,$b(e.as,e)),{elementType:"button",defaultProps:{ref:t,type:"button"}}),icon:f}},kK={root:"fui-Button",icon:"fui-Button__icon"},Z6e=Tn("r1alrhcs",null,{r:[".r1alrhcs{align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;text-decoration-line:none;vertical-align:middle;margin:0;overflow:hidden;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);font-family:var(--fontFamilyBase);outline-style:none;padding:5px var(--spacingHorizontalM);min-width:96px;border-radius:var(--borderRadiusMedium);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase300);transition-duration:var(--durationFaster);transition-property:background,border,color;transition-timing-function:var(--curveEasyEase);}",".r1alrhcs:hover{background-color:var(--colorNeutralBackground1Hover);border-color:var(--colorNeutralStroke1Hover);color:var(--colorNeutralForeground1Hover);cursor:pointer;}",".r1alrhcs:hover:active{background-color:var(--colorNeutralBackground1Pressed);border-color:var(--colorNeutralStroke1Pressed);color:var(--colorNeutralForeground1Pressed);outline-style:none;}",".r1alrhcs[data-fui-focus-visible]{border-color:var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);border-width:1px;outline:var(--strokeWidthThick) solid var(--colorTransparentStroke);box-shadow:0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;z-index:1;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1alrhcs{transition-duration:0.01ms;}}","@media (forced-colors: active){.r1alrhcs:focus{border-color:ButtonText;}.r1alrhcs:hover{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}.r1alrhcs:hover:active{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}}","@supports (-moz-appearance:button){.r1alrhcs[data-fui-focus-visible]{box-shadow:0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),J6e=Tn("rywnvv2",null,[".rywnvv2{align-items:center;display:inline-flex;justify-content:center;font-size:20px;height:20px;width:20px;--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}"]),eLe=wt({outline:{De3pzq:"f1c21dwh",Jwef8y:"fjxutwb",iro3zm:"fwiml72"},primary:{De3pzq:"ffp7eso",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"f1phragk",Jwef8y:"f15wkkf3",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f1rq72xc",iro3zm:"fnp9lpt",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1d6v5y2",Bsw6fvg:"f1rirnrt",Bjwas2f:"f1uu00uk",Bn1d65q:["fkvaka8","f9a0qzu"],Bxeuatn:"f1ux7til",n51gp8:["f9a0qzu","fkvaka8"],Bbusuzp:"f1lkg8j3",ycbfsm:"fkc42ay",Bqrx1nm:"fq7113v",pgvf35:"ff1wgvm",Bh7lczh:["fiob0tu","f1x4h75k"],dpv3f4:"f1j6scgf",Bpnjhaq:["f1x4h75k","fiob0tu"],ze5xyy:"f4xjyn1",g2kj27:"fbgcvur",Bf756sw:"f1ks1yx8",Bow2dr7:["f1o6qegi","fmxjhhp"],Bvhedfk:"fcnxywj",Gye4lf:["fmxjhhp","f1o6qegi"],pc6evw:"f9ddjv3"},secondary:{},subtle:{De3pzq:"fhovq9v",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"f1t94bn6",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"fnwyq0v",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",Bbdnnc7:"fy5bs14",iro3zm:"fsv2rcd",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1omzyqd",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",x3br3k:"fj8yq94",ze5xyy:"f4xjyn1",Bx3q9su:"f1et0tmh",pc6evw:"f9ddjv3",xd2cci:"f1wi8ngl"},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"fjxutwb",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f139oj5f",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",iro3zm:"fwiml72",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1fg1p5m",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",Bqrx1nm:"f1tme0vf",ze5xyy:"f4xjyn1",g2kj27:"f18onu3q",pc6evw:"f9ddjv3"},circular:{Bbmb7ep:["f8fbkgy","f1nfllo7"],Beyfa6y:["f1nfllo7","f8fbkgy"],B7oj6ja:["f1djnp8u","f1s8kh49"],Btl43ni:["f1s8kh49","f1djnp8u"]},rounded:{},square:{Bbmb7ep:["fzi6hpg","fyowgf4"],Beyfa6y:["fyowgf4","fzi6hpg"],B7oj6ja:["f3fg2lr","f13av6d4"],Btl43ni:["f13av6d4","f3fg2lr"]},small:{Bf4jedk:"fh7ncta",z8tnut:"f1khb0e9",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f1jnq6q7",uwmqm3:["f1f5gg8d","f1vdfbxk"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},smallWithIcon:{Byoj8tv:"f1brlhvm",z8tnut:"f1sl3k7w"},medium:{},large:{Bf4jedk:"f14es27b",z8tnut:"fp9bwmr",z189sj:["fjodcmx","fhx4nu"],Byoj8tv:"f150uoa4",uwmqm3:["fhx4nu","fjodcmx"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},largeWithIcon:{Byoj8tv:"fy7v416",z8tnut:"f1a1bwwz"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f8fbkgy{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1nfllo7{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1djnp8u{border-top-right-radius:var(--borderRadiusCircular);}",".f1s8kh49{border-top-left-radius:var(--borderRadiusCircular);}",".fzi6hpg{border-bottom-right-radius:var(--borderRadiusNone);}",".fyowgf4{border-bottom-left-radius:var(--borderRadiusNone);}",".f3fg2lr{border-top-right-radius:var(--borderRadiusNone);}",".f13av6d4{border-top-left-radius:var(--borderRadiusNone);}",".fh7ncta{min-width:64px;}",".f1khb0e9{padding-top:3px;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1jnq6q7{padding-bottom:3px;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1brlhvm{padding-bottom:1px;}",".f1sl3k7w{padding-top:1px;}",".f14es27b{min-width:96px;}",".fp9bwmr{padding-top:8px;}",".fjodcmx{padding-right:var(--spacingHorizontalL);}",".fhx4nu{padding-left:var(--spacingHorizontalL);}",".f150uoa4{padding-bottom:8px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fy7v416{padding-bottom:7px;}",".f1a1bwwz{padding-top:7px;}"],h:[".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".fwiml72:hover:active{background-color:var(--colorTransparentBackgroundPressed);}",".f15wkkf3:hover{background-color:var(--colorBrandBackgroundHover);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}",".fnp9lpt:hover:active{background-color:var(--colorBrandBackgroundPressed);}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}",".f1d6v5y2:hover:active{color:var(--colorNeutralForegroundOnBrand);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".ft1hn21:hover .fui-Icon-filled{display:inline;}",".fuxngvv:hover .fui-Icon-regular{display:none;}",".fy5bs14:hover .fui-Button__icon{color:var(--colorNeutralForeground2BrandHover);}",".fsv2rcd:hover:active{background-color:var(--colorSubtleBackgroundPressed);}",".f1omzyqd:hover:active{color:var(--colorNeutralForeground2Pressed);}",".f1dfjoow:hover:active .fui-Icon-filled{display:inline;}",".f1j98vj9:hover:active .fui-Icon-regular{display:none;}",".fj8yq94:hover:active .fui-Button__icon{color:var(--colorNeutralForeground2BrandPressed);}",".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}",".f1fg1p5m:hover:active{color:var(--colorNeutralForeground2BrandPressed);}"],m:[["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1uu00uk{border-top-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9a0qzu{border-left-color:HighlightText;}.fkvaka8{border-right-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ux7til{border-bottom-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fq7113v:hover{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.ff1wgvm:hover{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1x4h75k:hover{border-left-color:Highlight;}.fiob0tu:hover{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1j6scgf:hover{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4xjyn1:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbgcvur:hover:active{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ks1yx8:hover:active{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1o6qegi:hover:active{border-right-color:Highlight;}.fmxjhhp:hover:active{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fcnxywj:hover:active{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9ddjv3:hover:active{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1et0tmh:hover .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1wi8ngl:hover:active .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1tme0vf:hover{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18onu3q:hover:active{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}]]}),tLe=wt({base:{De3pzq:"f1bg9a2p",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bfinmwp:"f15x8b5r",Jwef8y:"f1falr9n",Bgoe8wy:"f12mpcsy",Bwzppfd:["f1gwvigk","f18rmfxp"],oetu4i:"f1jnshp0",gg5e9n:["f18rmfxp","f1gwvigk"],Bi91k9c:"fvgxktp",eoavqd:"fphbwmw",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",Bbdnnc7:"f1al02dq",iro3zm:"f1t6o4dc",b661bw:"f10ztigi",Bk6r4ia:["f1ft5sdu","f1gzf82w"],B9zn80p:"f12zbtn2",Bpld233:["f1gzf82w","f1ft5sdu"],B2d53fq:"fcvwxyo",c3iz72:"f8w4c43",em6i61:"f1ol4fw6",vm6p8p:"f1q1lw4e",x3br3k:"f1dwjv2g"},highContrast:{Bsw6fvg:"f4lkoma",Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bbusuzp:"f1dcs8yz",G867l3:"fjwq6ea",gdbnj:["f1lr3nhc","f1mbxvi6"],mxns5l:"fn5gmvv",o3nasb:["f1mbxvi6","f1lr3nhc"],Bqrx1nm:"f1vmkb5g",pgvf35:"f53ppgq",Bh7lczh:["f1663y11","f80fkiy"],dpv3f4:"f18v5270",Bpnjhaq:["f80fkiy","f1663y11"],ze5xyy:"f1kc2mi9",g2kj27:"f1y0svfh",Bf756sw:"fihuait",Bow2dr7:["fnxhupq","fyd6l6x"],Bvhedfk:"fx507ft",Gye4lf:["fyd6l6x","fnxhupq"],pc6evw:"fb3rf2x"},outline:{De3pzq:"f1c21dwh",Jwef8y:"f9ql6rf",iro3zm:"f3h1zc4"},primary:{g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},secondary:{},subtle:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]}},{d:[".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f15x8b5r .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}"],h:[".f1falr9n:hover{background-color:var(--colorNeutralBackgroundDisabled);}",".f12mpcsy:hover{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1gwvigk:hover{border-right-color:var(--colorNeutralStrokeDisabled);}",".f18rmfxp:hover{border-left-color:var(--colorNeutralStrokeDisabled);}",".f1jnshp0:hover{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".fphbwmw:hover{cursor:not-allowed;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f1al02dq:hover .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1t6o4dc:hover:active{background-color:var(--colorNeutralBackgroundDisabled);}",".f10ztigi:hover:active{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1ft5sdu:hover:active{border-right-color:var(--colorNeutralStrokeDisabled);}",".f1gzf82w:hover:active{border-left-color:var(--colorNeutralStrokeDisabled);}",".f12zbtn2:hover:active{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fcvwxyo:hover:active{color:var(--colorNeutralForegroundDisabled);}",".f8w4c43:hover:active{cursor:not-allowed;}",".f1ol4fw6:hover:active .fui-Icon-filled{display:none;}",".f1q1lw4e:hover:active .fui-Icon-regular{display:inline;}",".f1dwjv2g:hover:active .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".f3h1zc4:hover:active{background-color:var(--colorTransparentBackground);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}"],m:[["@media (forced-colors: active){.f4lkoma{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fjwq6ea:focus{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lr3nhc:focus{border-right-color:GrayText;}.f1mbxvi6:focus{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fn5gmvv:focus{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1vmkb5g:hover{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f53ppgq:hover{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1663y11:hover{border-right-color:GrayText;}.f80fkiy:hover{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18v5270:hover{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1kc2mi9:hover{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1y0svfh:hover:active{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fihuait:hover:active{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnxhupq:hover:active{border-right-color:GrayText;}.fyd6l6x:hover:active{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fx507ft:hover:active{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fb3rf2x:hover:active{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),rLe=wt({circular:{kdpuga:["fanj13w","f1gou5sz"],Bw81rd7:["f1gou5sz","fanj13w"],B6xbmo0:["fulf6x3","foeb2x"],dm238s:["foeb2x","fulf6x3"]},rounded:{},square:{kdpuga:["f1ndz5i7","f1co4qro"],Bw81rd7:["f1co4qro","f1ndz5i7"],B6xbmo0:["f146y5a9","f1k2ftg"],dm238s:["f1k2ftg","f146y5a9"]},primary:{B8q5s1w:"f17t0x8g",Bci5o5g:["f194v5ow","fk7jm04"],n8qw10:"f1qgg65p",Bdrgwmp:["fk7jm04","f194v5ow"],j6ew2k:["fhgccpy","fjo7pq6"],he4mth:"f32wu9k",Byr4aka:"fu5nqqq",lks7q5:["f13prjl2","f1nl83rv"],Bnan3qt:"f1czftr5",k1dn9:["f1nl83rv","f13prjl2"],Boium3a:["f12k37oa","fdnykm2"],tm8e47:"fr96u23"},small:{kdpuga:["fg3gtdo","fwii5mg"],Bw81rd7:["fwii5mg","fg3gtdo"],B6xbmo0:["f1palphq","f12nxie7"],dm238s:["f12nxie7","f1palphq"]},medium:{},large:{kdpuga:["ft3lys4","f1la4x2g"],Bw81rd7:["f1la4x2g","ft3lys4"],B6xbmo0:["f156y0zm","fakimq4"],dm238s:["fakimq4","f156y0zm"]}},{d:[".fanj13w[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1gou5sz[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusCircular);}",".fulf6x3[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusCircular);}",".foeb2x[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusCircular);}",".f1ndz5i7[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusNone);}",".f1co4qro[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusNone);}",".f146y5a9[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusNone);}",".f1k2ftg[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusNone);}",".f17t0x8g[data-fui-focus-visible]{border-top-color:var(--colorStrokeFocus2);}",".f194v5ow[data-fui-focus-visible]{border-right-color:var(--colorStrokeFocus2);}",".fk7jm04[data-fui-focus-visible]{border-left-color:var(--colorStrokeFocus2);}",".f1qgg65p[data-fui-focus-visible]{border-bottom-color:var(--colorStrokeFocus2);}",".fhgccpy[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".fjo7pq6[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".f32wu9k[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;}",".fu5nqqq[data-fui-focus-visible]:hover{border-top-color:var(--colorStrokeFocus2);}",".f13prjl2[data-fui-focus-visible]:hover{border-right-color:var(--colorStrokeFocus2);}",".f1nl83rv[data-fui-focus-visible]:hover{border-left-color:var(--colorStrokeFocus2);}",".f1czftr5[data-fui-focus-visible]:hover{border-bottom-color:var(--colorStrokeFocus2);}",".fg3gtdo[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusSmall);}",".fwii5mg[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1palphq[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusSmall);}",".f12nxie7[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusSmall);}",".ft3lys4[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusLarge);}",".f1la4x2g[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusLarge);}",".f156y0zm[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusLarge);}",".fakimq4[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusLarge);}"],t:["@supports (-moz-appearance:button){.f12k37oa[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}.fdnykm2[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}}","@supports (-moz-appearance:button){.fr96u23[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),nLe=wt({small:{z8tnut:"f1sl3k7w",z189sj:["f136y8j8","f10xn8zz"],Byoj8tv:"f1brlhvm",uwmqm3:["f10xn8zz","f136y8j8"],Bf4jedk:"f17fgpbq",B2u0y6b:"f1jt17bm"},medium:{z8tnut:"f1sbtcvk",z189sj:["fwiuce9","f15vdbe4"],Byoj8tv:"fdghr9",uwmqm3:["f15vdbe4","fwiuce9"],Bf4jedk:"fwbmr0d",B2u0y6b:"f44c6la"},large:{z8tnut:"f1a1bwwz",z189sj:["f18k1jr3","f1rtp3s9"],Byoj8tv:"fy7v416",uwmqm3:["f1rtp3s9","f18k1jr3"],Bf4jedk:"f12clzc2",B2u0y6b:"fjy1crr"}},{d:[".f1sl3k7w{padding-top:1px;}",".f136y8j8{padding-right:1px;}",".f10xn8zz{padding-left:1px;}",".f1brlhvm{padding-bottom:1px;}",".f17fgpbq{min-width:24px;}",".f1jt17bm{max-width:24px;}",".f1sbtcvk{padding-top:5px;}",".fwiuce9{padding-right:5px;}",".f15vdbe4{padding-left:5px;}",".fdghr9{padding-bottom:5px;}",".fwbmr0d{min-width:32px;}",".f44c6la{max-width:32px;}",".f1a1bwwz{padding-top:7px;}",".f18k1jr3{padding-right:7px;}",".f1rtp3s9{padding-left:7px;}",".fy7v416{padding-bottom:7px;}",".f12clzc2{min-width:40px;}",".fjy1crr{max-width:40px;}"]}),oLe=wt({small:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3",Bqrlyyl:"fbaiahx"},medium:{},large:{Be2twd7:"f1rt2boy",Bqenvij:"frvgh55",a9b677:"fq4mcun",Bqrlyyl:"f1exjqw5"},before:{t21cq0:["f1nizpg2","f1a695kz"]},after:{Frg6f3:["f1a695kz","f1nizpg2"]}},{d:[".fe5j1ua{font-size:20px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".fbaiahx{--fui-Button__icon--spacing:var(--spacingHorizontalXS);}",".f1rt2boy{font-size:24px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".f1exjqw5{--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}",".f1nizpg2{margin-right:var(--fui-Button__icon--spacing);}",".f1a695kz{margin-left:var(--fui-Button__icon--spacing);}"]}),iLe=e=>{const t=Z6e(),r=J6e(),n=eLe(),o=tLe(),i=rLe(),s=nLe(),a=oLe(),{appearance:u,disabled:l,disabledFocusable:c,icon:f,iconOnly:d,iconPosition:h,shape:g,size:v}=e;return e.root.className=Xe(kK.root,t,u&&n[u],n[v],f&&v==="small"&&n.smallWithIcon,f&&v==="large"&&n.largeWithIcon,n[g],(l||c)&&o.base,(l||c)&&o.highContrast,u&&(l||c)&&o[u],u==="primary"&&i.primary,i[v],i[g],d&&s[v],e.root.className),e.icon&&(e.icon.className=Xe(kK.icon,r,!!e.root.children&&a[h],a[v],e.icon.className)),e},Kn=k.forwardRef((e,t)=>{const r=Q6e(e,t);return iLe(r),bn("useButtonStyles_unstable")(r),U6e(r)});Kn.displayName="Button";const Fue=k.createContext(void 0),sLe=Fue.Provider,aLe=()=>k.useContext(Fue),uLe=e=>{var t,r,n,o;const{generatedControlId:i,orientation:s,required:a,size:u,validationState:l}=e,c=(t=e.label)===null||t===void 0?void 0:t.htmlFor,f=(r=e.label)===null||r===void 0?void 0:r.id,d=(n=e.validationMessage)===null||n===void 0?void 0:n.id,h=(o=e.hint)===null||o===void 0?void 0:o.id;return{field:k.useMemo(()=>({generatedControlId:i,hintId:h,labelFor:c,labelId:f,orientation:s,required:a,size:u,validationMessageId:d,validationState:l}),[i,h,c,f,s,a,u,d,l])}};function Bue(e,t){return Mue(aLe(),e,t)}function Mue(e,t,r){if(!e)return t;t={...t};const{generatedControlId:n,hintId:o,labelFor:i,labelId:s,required:a,validationMessageId:u,validationState:l}=e;if(n){var c,f;(f=(c=t).id)!==null&&f!==void 0||(c.id=n)}if(s&&(!(r!=null&&r.supportsLabelFor)||i!==t.id)){var d,h,g;(g=(d=t)[h="aria-labelledby"])!==null&&g!==void 0||(d[h]=s)}if((u||o)&&(t["aria-describedby"]=[u,o,t==null?void 0:t["aria-describedby"]].filter(Boolean).join(" ")),l==="error"){var v,y,E;(E=(v=t)[y="aria-invalid"])!==null&&E!==void 0||(v[y]=!0)}if(a)if(r!=null&&r.supportsRequired){var _,S;(S=(_=t).required)!==null&&S!==void 0||(_.required=!0)}else{var b,A,x;(x=(b=t)[A="aria-required"])!==null&&x!==void 0||(b[A]=!0)}if(r!=null&&r.supportsSize){var T,N;(N=(T=t).size)!==null&&N!==void 0||(T.size=e.size)}return t}const lLe=(e,t)=>{let{children:r}=e;return typeof r=="function"&&(r=r(Mue(t.field)||{})),nt(sLe,{value:t==null?void 0:t.field,children:Un(e.root,{children:[e.label&&nt(e.label,{}),r,e.validationMessage&&Un(e.validationMessage,{children:[e.validationMessageIcon&&nt(e.validationMessageIcon,{}),e.validationMessage.children]}),e.hint&&nt(e.hint,{})]})})},cLe=(e,t)=>{const{disabled:r=!1,required:n=!1,weight:o="regular",size:i="medium"}=e;return{disabled:r,required:un(n===!0?"*":n||void 0,{defaultProps:{"aria-hidden":"true"},elementType:"span"}),weight:o,size:i,components:{root:"label",required:"span"},root:Er(yn("label",{ref:t,...e}),{elementType:"label"})}},fLe=e=>Un(e.root,{children:[e.root.children,e.required&&nt(e.required,{})]}),AK={root:"fui-Label",required:"fui-Label__required"},dLe=wt({root:{Bahqtrf:"fk6fouc",sj55zd:"f19n0e5"},disabled:{sj55zd:"f1s2aq7o"},required:{sj55zd:"f1whyuy6",uwmqm3:["fycuoez","f8wuabp"]},requiredDisabled:{sj55zd:"f1s2aq7o"},small:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm"},medium:{Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi"},large:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k",Bhrd7zp:"fl43uef"},semibold:{Bhrd7zp:"fl43uef"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1whyuy6{color:var(--colorPaletteRedForeground3);}",".fycuoez{padding-left:4px;}",".f8wuabp{padding-right:4px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}"]}),hLe=e=>{const t=dLe();return e.root.className=Xe(AK.root,t.root,e.disabled&&t.disabled,t[e.size],e.weight==="semibold"&&t.semibold,e.root.className),e.required&&(e.required.className=Xe(AK.required,t.required,e.disabled&&t.requiredDisabled,e.required.className)),e},xf=k.forwardRef((e,t)=>{const r=cLe(e,t);return hLe(r),bn("useLabelStyles_unstable")(r),fLe(r)});xf.displayName="Label";const pLe={error:k.createElement(o3e,null),warning:k.createElement(l3e,null),success:k.createElement(t3e,null),none:void 0},gLe=(e,t)=>{const{children:r,orientation:n="vertical",required:o=!1,validationState:i=e.validationMessage?"error":"none",size:s="medium"}=e,a=Ia("field-"),u=a+"__control",l=Er(yn("div",{...e,ref:t},["children"]),{elementType:"div"}),c=un(e.label,{defaultProps:{htmlFor:u,id:a+"__label",required:o,size:s},elementType:xf}),f=un(e.validationMessage,{defaultProps:{id:a+"__validationMessage",role:i==="error"?"alert":void 0},elementType:"div"}),d=un(e.hint,{defaultProps:{id:a+"__hint"},elementType:"div"}),h=pLe[i],g=un(e.validationMessageIcon,{renderByDefault:!!h,defaultProps:{children:h},elementType:"span"});return{children:r,generatedControlId:u,orientation:n,required:o,size:s,validationState:i,components:{root:"div",label:xf,validationMessage:"div",validationMessageIcon:"span",hint:"div"},root:l,label:c,validationMessageIcon:g,validationMessage:f,hint:d}},Om={root:"fui-Field",label:"fui-Field__label",validationMessage:"fui-Field__validationMessage",validationMessageIcon:"fui-Field__validationMessageIcon",hint:"fui-Field__hint"},vLe=wt({base:{mc9l5x:"f13qh94s"},horizontal:{Budl1dq:"f2wwaib",wkccdc:"f1645dqt"},horizontalNoLabel:{uwmqm3:["f15jqgz8","fggqkej"],Budl1dq:"f1c2z91y"}},{d:[".f13qh94s{display:grid;}",".f2wwaib{grid-template-columns:33% 1fr;}",".f1645dqt{grid-template-rows:auto auto auto 1fr;}",".f15jqgz8{padding-left:33%;}",".fggqkej{padding-right:33%;}",".f1c2z91y{grid-template-columns:1fr;}"]}),mLe=wt({base:{z8tnut:"fclwglc",Byoj8tv:"fywfov9"},large:{z8tnut:"f1sl3k7w",Byoj8tv:"f1brlhvm"},vertical:{jrapky:"fyacil5"},verticalLarge:{jrapky:"f8l5zjj"},horizontal:{t21cq0:["fkujibs","f199hnxi"],Ijaq50:"f16hsg94",nk6f5a:"f1nzqi2z"}},{d:[".fclwglc{padding-top:var(--spacingVerticalXXS);}",".fywfov9{padding-bottom:var(--spacingVerticalXXS);}",".f1sl3k7w{padding-top:1px;}",".f1brlhvm{padding-bottom:1px;}",".fyacil5{margin-bottom:var(--spacingVerticalXXS);}",".f8l5zjj{margin-bottom:var(--spacingVerticalXS);}",".fkujibs{margin-right:var(--spacingHorizontalM);}",".f199hnxi{margin-left:var(--spacingHorizontalM);}",".f16hsg94{grid-row-start:1;}",".f1nzqi2z{grid-row-end:-1;}"]}),yLe=Tn("r5c4z9l",null,[".r5c4z9l{margin-top:var(--spacingVerticalXXS);color:var(--colorNeutralForeground3);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase200);}"]),bLe=wt({error:{sj55zd:"f1hcrxcs"},withIcon:{uwmqm3:["frawy03","fg4c52"]}},{d:[".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".frawy03{padding-left:calc(12px + var(--spacingHorizontalXS));}",".fg4c52{padding-right:calc(12px + var(--spacingHorizontalXS));}"]}),_Le=Tn("ra7h1uk","r1rh6bd7",[".ra7h1uk{display:inline-block;font-size:12px;margin-left:calc(-12px - var(--spacingHorizontalXS));margin-right:var(--spacingHorizontalXS);line-height:0;vertical-align:-1px;}",".r1rh6bd7{display:inline-block;font-size:12px;margin-right:calc(-12px - var(--spacingHorizontalXS));margin-left:var(--spacingHorizontalXS);line-height:0;vertical-align:-1px;}"]),ELe=wt({error:{sj55zd:"f1hcrxcs"},warning:{sj55zd:"f1k5f75o"},success:{sj55zd:"ffmvakt"}},{d:[".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}",".ffmvakt{color:var(--colorPaletteGreenForeground1);}"]}),SLe=e=>{const{validationState:t}=e,r=e.orientation==="horizontal",n=vLe();e.root.className=Xe(Om.root,n.base,r&&n.horizontal,r&&!e.label&&n.horizontalNoLabel,e.root.className);const o=mLe();e.label&&(e.label.className=Xe(Om.label,o.base,r&&o.horizontal,!r&&o.vertical,e.label.size==="large"&&o.large,!r&&e.label.size==="large"&&o.verticalLarge,e.label.className));const i=_Le(),s=ELe();e.validationMessageIcon&&(e.validationMessageIcon.className=Xe(Om.validationMessageIcon,i,t!=="none"&&s[t],e.validationMessageIcon.className));const a=yLe(),u=bLe();e.validationMessage&&(e.validationMessage.className=Xe(Om.validationMessage,a,t==="error"&&u.error,!!e.validationMessageIcon&&u.withIcon,e.validationMessage.className)),e.hint&&(e.hint.className=Xe(Om.hint,a,e.hint.className))},T8=k.forwardRef((e,t)=>{const r=gLe(e,t);SLe(r);const n=uLe(r);return lLe(r,n)});T8.displayName="Field";const Xu=hv({activeOption:void 0,appearance:"outline",focusVisible:!1,open:!1,registerOption(){return()=>{}},selectedOptions:[],selectOption(){},setActiveOption(){},setOpen(){},size:"medium"});Xu.Provider;const Zc=hv({activeOption:void 0,focusVisible:!1,multiselect:!1,registerOption(){return()=>{}},selectedOptions:[],selectOption(){},setActiveOption(){}});Zc.Provider;function wLe(e){const{activeOption:t,appearance:r,focusVisible:n,open:o,registerOption:i,selectedOptions:s,selectOption:a,setActiveOption:u,setOpen:l,size:c}=e;return{combobox:{activeOption:t,appearance:r,focusVisible:n,open:o,registerOption:i,selectedOptions:s,selectOption:a,setActiveOption:u,setOpen:l,size:c}}}function kLe(e){const t=g8(Xu),{activeOption:r,focusVisible:n,multiselect:o,registerOption:i,selectedOptions:s,selectOption:a,setActiveOption:u}=e,l=Ko(Xu,d=>d.registerOption);return{listbox:{activeOption:r,focusVisible:n,multiselect:o,registerOption:t?l:i,selectedOptions:s,selectOption:a,setActiveOption:u}}}function x8(e,t={}){const{open:r=!0,multiselect:n=!1}=t,o=e.key,{altKey:i,ctrlKey:s,key:a,metaKey:u}=e;return a.length===1&&o!==sf&&!i&&!s&&!u?"Type":r?o===iN&&i||o===ig||!n&&o===sf?"CloseSelect":n&&o===sf?"Select":o===Rx?"Close":o===sK?"Next":o===iN?"Previous":o===jBe?"First":o===LBe?"Last":o===HBe?"PageUp":o===zBe?"PageDown":o===MBe?"Tab":"None":o===sK||o===iN||o===ig||o===sf?"Open":"None"}function Lue(e,t,r){switch(e){case"Next":return Math.min(r,t+1);case"Previous":return Math.max(0,t-1);case"First":return 0;case"Last":return r;case"PageDown":return Math.min(r,t+10);case"PageUp":return Math.max(0,t-10);default:return t}}const jue=()=>{const e=k.useRef([]),t=k.useMemo(()=>({getCount:()=>e.current.length,getOptionAtIndex:l=>{var c;return(c=e.current[l])===null||c===void 0?void 0:c.option},getIndexOfId:l=>e.current.findIndex(c=>c.option.id===l),getOptionById:l=>{const c=e.current.find(f=>f.option.id===l);return c==null?void 0:c.option},getOptionsMatchingText:l=>e.current.filter(c=>l(c.option.text)).map(c=>c.option),getOptionsMatchingValue:l=>e.current.filter(c=>l(c.option.value)).map(c=>c.option)}),[]),r=k.useCallback((n,o)=>{var i;const s=e.current.findIndex(a=>!a.element||!o?!1:a.option.id===n.id?!0:a.element.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING);if(((i=e.current[s])===null||i===void 0?void 0:i.option.id)!==n.id){const a={element:o,option:n};s===-1?e.current=[...e.current,a]:e.current.splice(s,0,a)}return()=>{e.current=e.current.filter(a=>a.option.id!==n.id)}},[]);return{...t,options:e.current.map(n=>n.option),registerOption:r}};function ALe(e){const{activeOption:t}=e,r=k.useRef(null);return k.useEffect(()=>{if(r.current&&t&&K_()){const n=r.current.querySelector(`#${t.id}`);if(!n)return;const{offsetHeight:o,offsetTop:i}=n,{offsetHeight:s,scrollTop:a}=r.current,u=ia+s,c=2;u?r.current.scrollTo(0,i-c):l&&r.current.scrollTo(0,i-s+o+c)}},[t]),r}const zue=e=>{const{defaultSelectedOptions:t,multiselect:r,onOptionSelect:n}=e,[o,i]=Ef({state:e.selectedOptions,defaultState:t,initialState:[]}),s=k.useCallback((u,l)=>{if(l.disabled)return;let c=[l.value];if(r){const f=o.findIndex(d=>d===l.value);f>-1?c=[...o.slice(0,f),...o.slice(f+1)]:c=[...o,l.value]}i(c),n==null||n(u,{optionValue:l.value,optionText:l.text,selectedOptions:c})},[n,r,o,i]);return{clearSelection:u=>{i([]),n==null||n(u,{optionValue:void 0,optionText:void 0,selectedOptions:[]})},selectOption:s,selectedOptions:o}},TLe=(e,t)=>{const{multiselect:r}=e,n=jue(),{getCount:o,getOptionAtIndex:i,getIndexOfId:s}=n,{clearSelection:a,selectedOptions:u,selectOption:l}=zue(e),[c,f]=k.useState(),[d,h]=k.useState(!1),g=I=>{const R=x8(I,{open:!0}),D=o()-1,L=c?s(c.id):-1;let M=L;switch(R){case"Select":case"CloseSelect":c&&l(I,c);break;default:M=Lue(R,L,D)}M!==L&&(I.preventDefault(),f(i(M)),h(!0))},v=I=>{h(!1)},y=g8(Xu),E=Ko(Xu,I=>I.activeOption),_=Ko(Xu,I=>I.focusVisible),S=Ko(Xu,I=>I.selectedOptions),b=Ko(Xu,I=>I.selectOption),A=Ko(Xu,I=>I.setActiveOption),x=y?{activeOption:E,focusVisible:_,selectedOptions:S,selectOption:b,setActiveOption:A}:{activeOption:c,focusVisible:d,selectedOptions:u,selectOption:l,setActiveOption:f},T={components:{root:"div"},root:Er(yn("div",{ref:t,role:r?"menu":"listbox","aria-activedescendant":y||c==null?void 0:c.id,"aria-multiselectable":r,tabIndex:0,...e}),{elementType:"div"}),multiselect:r,clearSelection:a,...n,...x},N=ALe(T);return T.root.ref=di(T.root.ref,N),T.root.onKeyDown=ar(Nn(T.root.onKeyDown,g)),T.root.onMouseOver=ar(Nn(T.root.onMouseOver,v)),T},xLe=(e,t)=>nt(Zc.Provider,{value:t.listbox,children:nt(e.root,{})}),ILe={root:"fui-Listbox"},NLe=wt({root:{De3pzq:"fxugw4r",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",Bf4jedk:"f3hsy1e",Bmxbyg5:"f5zp4f",Bpd4iqm:"fpvhumw",oeaueh:"f1yog68k",Bw0xxkn:"f13sgyd8",z8tnut:"f1x4af0m",z189sj:["f7x41pl","fruq291"],Byoj8tv:"fd55psn",uwmqm3:["fruq291","f7x41pl"],Belr9w4:"fiut8dr"}},{d:[".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1ewtqcl{box-sizing:border-box;}",".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",".f3hsy1e{min-width:160px;}",".f5zp4f{overflow-y:auto;}",".fpvhumw{outline-width:1px;}",".f1yog68k{outline-style:solid;}",".f13sgyd8{outline-color:var(--colorTransparentStroke);}",".f1x4af0m{padding-top:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".fd55psn{padding-bottom:var(--spacingHorizontalXS);}",".fiut8dr{row-gap:var(--spacingHorizontalXXS);}"]}),CLe=e=>{const t=NLe();return e.root.className=Xe(ILe.root,t.root,e.root.className),e},I8=k.forwardRef((e,t)=>{const r=TLe(e,t),n=kLe(r);return CLe(r),bn("useListboxStyles_unstable")(r),xLe(r,n)});I8.displayName="Listbox";function RLe(e,t){if(e!==void 0)return e;let r="",n=!1;return k.Children.forEach(t,o=>{typeof o=="string"?r+=o:n=!0}),n&&console.warn("Provide a `text` prop to Option components when they contain non-string children."),r}const OLe=(e,t)=>{const{children:r,disabled:n,text:o,value:i}=e,s=k.useRef(null),a=RLe(o,r),u=i??a,l=Ia("fluent-option",e.id),c=k.useMemo(()=>({id:l,disabled:n,text:a,value:u}),[l,n,a,u]),f=Ko(Zc,x=>x.focusVisible),d=Ko(Zc,x=>x.multiselect),h=Ko(Zc,x=>x.registerOption),g=Ko(Zc,x=>{const T=x.selectedOptions;return!!u&&!!T.find(N=>N===u)}),v=Ko(Zc,x=>x.selectOption),y=Ko(Zc,x=>x.setActiveOption),E=Ko(Xu,x=>x.setOpen),_=Ko(Zc,x=>{var T,N;return((T=x.activeOption)===null||T===void 0?void 0:T.id)!==void 0&&((N=x.activeOption)===null||N===void 0?void 0:N.id)===l});let S=k.createElement(qDe,null);d&&(S=g?k.createElement(e3e,null):"");const b=x=>{var T;if(n){x.preventDefault();return}y(c),d||E==null||E(x,!1),v(x,c),(T=e.onClick)===null||T===void 0||T.call(e,x)};k.useEffect(()=>{if(l&&s.current)return h(c,s.current)},[l,c,h]);const A=d?{role:"menuitemcheckbox","aria-checked":g}:{role:"option","aria-selected":g};return{components:{root:"div",checkIcon:"span"},root:Er(yn("div",{ref:di(t,s),"aria-disabled":n?"true":void 0,id:l,...A,...e,onClick:b}),{elementType:"div"}),checkIcon:un(e.checkIcon,{renderByDefault:!0,defaultProps:{"aria-hidden":"true",children:S},elementType:"span"}),active:_,disabled:n,focusVisible:f,multiselect:d,selected:g}},DLe=e=>Un(e.root,{children:[e.checkIcon&&nt(e.checkIcon,{}),e.root.children]}),TK={root:"fui-Option",checkIcon:"fui-Option__checkIcon"},FLe=wt({root:{Bt984gj:"f122n59",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],sj55zd:"f19n0e5",i8kkvl:"f1ufnopg",Bceei9c:"f1k6fduh",mc9l5x:"f22iagw",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi",z8tnut:"fp2oml8",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f1tdddsa",uwmqm3:["f1f5gg8d","f1vdfbxk"],qhf8xq:"f10pi13n",Jwef8y:"f1knas48",ecr2s2:"fb40n2d"},active:{Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",B80jsxd:"f1nwj1ja",t2ki1e:"ffmd2fr",Bm2nyyq:"f8rth92",Barhvk9:["flthirb","ftkbnf5"],Bw17bha:"f1lh990p",vfts7:["ftkbnf5","flthirb"],xrcqlc:"fc9v8v1",Ihftqj:["f1mwfetb","f18mat8f"],Bcgy8vk:"f1cb6c3",Bhxzhr1:["f18mat8f","f1mwfetb"],B3778ie:["f1ibwz09","f1kp91vd"],d9w3h3:["f1kp91vd","f1ibwz09"],Bl18szs:["f1pix4dl","f13nd1z4"],B4j8arr:["f13nd1z4","f1pix4dl"],B0n5ga8:"f1qw5sz7",s924m2:["f19va7ni","f1a9v3mw"],B1q35kw:"fkkziue",Gp14am:["f1a9v3mw","f19va7ni"],bn5sak:"f1a97anr",By385i5:"f5226zp",Eqx8gd:["fa2bdqt","fei6g0k"],B1piin3:["fei6g0k","fa2bdqt"]},disabled:{sj55zd:"f1s2aq7o",Jwef8y:"f9ql6rf",ecr2s2:"fgj9um3",Bbusuzp:"f1dcs8yz"},selected:{},checkIcon:{Be2twd7:"fod5ikn",Frg6f3:["f18b9hdq","fn6qj8t"],t21cq0:["f1xk557c","f1h9en5y"],Bcdw1i0:"fd7fpy0",Bo70h7d:"fvc9v3g"},selectedCheck:{Bcdw1i0:"f1022m68"},multiselectCheck:{B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fq0vr37",h3c5rm:["f1byw159","f11cr0be"],B9xav0g:"f1c1zstj",zhjwy3:["f11cr0be","f1byw159"],Bbmb7ep:["f1g3puop","fi2rrw2"],Beyfa6y:["fi2rrw2","f1g3puop"],B7oj6ja:["f1rstyi9","f1s4nn1u"],Btl43ni:["f1s4nn1u","f1rstyi9"],B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Bt984gj:"f122n59",Brf1p80:"f4d9j23",Bkfmm31:"f1w9h62z",Be2twd7:"f1ugzwwg",Bqenvij:"fd461yt",a9b677:"fjw5fx7",Bcdw1i0:"f1022m68"},selectedMultiselectCheck:{De3pzq:"ftywsgz",sj55zd:"fqpbvvt",g2u3we:"f3xi7mh",h3c5rm:["ftovhe4","f1wczvin"],B9xav0g:"f68vbr6",zhjwy3:["f1wczvin","ftovhe4"]},checkDisabled:{sj55zd:"f1s2aq7o",Bbusuzp:"f1dcs8yz"}},{d:[".f122n59{align-items:center;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1ufnopg{column-gap:var(--spacingHorizontalXS);}",".f1k6fduh{cursor:pointer;}",".f22iagw{display:flex;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fp2oml8{padding-top:var(--spacingVerticalSNudge);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1tdddsa{padding-bottom:var(--spacingVerticalSNudge);}",".f10pi13n{position:relative;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1nwj1ja::after{pointer-events:none;}",".ffmd2fr::after{z-index:1;}",".f8rth92::after{border-top-style:solid;}",".flthirb::after{border-right-style:solid;}",".ftkbnf5::after{border-left-style:solid;}",".f1lh990p::after{border-bottom-style:solid;}",".fc9v8v1::after{border-top-width:2px;}",".f1mwfetb::after{border-right-width:2px;}",".f18mat8f::after{border-left-width:2px;}",".f1cb6c3::after{border-bottom-width:2px;}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1pix4dl::after{border-top-right-radius:var(--borderRadiusMedium);}",".f13nd1z4::after{border-top-left-radius:var(--borderRadiusMedium);}",".f1qw5sz7::after{border-top-color:var(--colorStrokeFocus2);}",".f19va7ni::after{border-right-color:var(--colorStrokeFocus2);}",".f1a9v3mw::after{border-left-color:var(--colorStrokeFocus2);}",".fkkziue::after{border-bottom-color:var(--colorStrokeFocus2);}",".f1a97anr::after{top:-2px;}",".f5226zp::after{bottom:-2px;}",".fa2bdqt::after{left:-2px;}",".fei6g0k::after{right:-2px;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".f18b9hdq{margin-left:calc(var(--spacingHorizontalXXS) * -1);}",".fn6qj8t{margin-right:calc(var(--spacingHorizontalXXS) * -1);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".fd7fpy0{visibility:hidden;}",".fvc9v3g svg{display:block;}",".f1022m68{visibility:visible;}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fq0vr37{border-top-color:var(--colorNeutralStrokeAccessible);}",".f1byw159{border-right-color:var(--colorNeutralStrokeAccessible);}",".f11cr0be{border-left-color:var(--colorNeutralStrokeAccessible);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f1g3puop{border-bottom-right-radius:var(--borderRadiusSmall);}",".fi2rrw2{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1rstyi9{border-top-right-radius:var(--borderRadiusSmall);}",".f1s4nn1u{border-top-left-radius:var(--borderRadiusSmall);}",".f1ewtqcl{box-sizing:border-box;}",".f4d9j23{justify-content:center;}",".f1w9h62z{fill:currentColor;}",".f1ugzwwg{font-size:12px;}",".fd461yt{height:16px;}",".fjw5fx7{width:16px;}",".ftywsgz{background-color:var(--colorCompoundBrandBackground);}",".fqpbvvt{color:var(--colorNeutralForegroundInverted);}",".f3xi7mh{border-top-color:var(--colorCompoundBrandBackground);}",".ftovhe4{border-right-color:var(--colorCompoundBrandBackground);}",".f1wczvin{border-left-color:var(--colorCompoundBrandBackground);}",".f68vbr6{border-bottom-color:var(--colorCompoundBrandBackground);}"],h:[".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}"],a:[".fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}",".fgj9um3:active{background-color:var(--colorTransparentBackground);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),BLe=e=>{const{active:t,disabled:r,focusVisible:n,multiselect:o,selected:i}=e,s=FLe();return e.root.className=Xe(TK.root,s.root,t&&n&&s.active,r&&s.disabled,i&&s.selected,e.root.className),e.checkIcon&&(e.checkIcon.className=Xe(TK.checkIcon,s.checkIcon,o&&s.multiselectCheck,i&&s.selectedCheck,i&&o&&s.selectedMultiselectCheck,r&&s.checkDisabled,e.checkIcon.className)),e},N8=k.forwardRef((e,t)=>{const r=OLe(e,t);return BLe(r),bn("useOptionStyles_unstable")(r),DLe(r)});N8.displayName="Option";const MLe=e=>{const{appearance:t="outline",children:r,editable:n=!1,inlinePopup:o=!1,mountNode:i=void 0,multiselect:s,onOpenChange:a,size:u="medium"}=e,l=jue(),{getOptionAtIndex:c,getOptionsMatchingValue:f}=l,[d,h]=k.useState(),[g,v]=k.useState(!1),[y,E]=k.useState(!1),_=k.useRef(!1),S=zue(e),{selectedOptions:b}=S,A=dDe(),[x,T]=Ef({state:e.value,initialState:void 0}),N=k.useMemo(()=>{if(x!==void 0)return x;if(A&&e.defaultValue!==void 0)return e.defaultValue;const L=f(M=>b.includes(M)).map(M=>M.text);return s?n?"":L.join(", "):L[0]},[x,n,f,s,e.defaultValue,b]),[I,R]=Ef({state:e.open,defaultState:e.defaultOpen,initialState:!1}),D=k.useCallback((L,M)=>{a==null||a(L,{open:M}),R(M)},[a,R]);return k.useEffect(()=>{if(I&&!d)if(!s&&b.length>0){const L=f(M=>M===b[0]).pop();L&&h(L)}else h(c(0));else I||h(void 0)},[I,r]),{...l,...S,activeOption:d,appearance:t,focusVisible:g,hasFocus:y,ignoreNextBlur:_,inlinePopup:o,mountNode:i,open:I,setActiveOption:h,setFocusVisible:v,setHasFocus:E,setOpen:D,setValue:T,size:u,value:N,multiselect:s}};function LLe(e){const{positioning:t}=e,n={position:"below",align:"start",offset:{crossAxis:0,mainAxis:2},fallbackPositions:["above","after","after-top","before","before-top"],matchTargetSize:"width",...Bx(t)},{targetRef:o,containerRef:i}=w8(n);return[i,o]}function jLe(e,t,r){const{state:{multiselect:n},triggerRef:o,defaultProps:i}=r,s=Ia("fluent-listbox",s8(e)?e.id:void 0),a=un(e,{renderByDefault:!0,elementType:I8,defaultProps:{id:s,multiselect:n,tabIndex:void 0,...i}}),u=ar(Nn(f=>{f.preventDefault()},a==null?void 0:a.onMouseDown)),l=ar(Nn(f=>{var d;f.preventDefault(),(d=o.current)===null||d===void 0||d.focus()},a==null?void 0:a.onClick)),c=di(a==null?void 0:a.ref,t);return a&&(a.ref=c,a.onMouseDown=u,a.onClick=l),a}function zLe(e,t,r){const{state:{activeOption:n,getCount:o,getIndexOfId:i,getOptionAtIndex:s,open:a,selectOption:u,setActiveOption:l,setFocusVisible:c,setOpen:f,multiselect:d},defaultProps:h,elementType:g}=r,v=Er(e,{defaultProps:{type:"text","aria-expanded":a,"aria-activedescendant":a?n==null?void 0:n.id:void 0,role:"combobox",...typeof h=="object"&&h},elementType:g}),y=k.useRef(null);return v.ref=di(y,v.ref,t),v.onBlur=Nn(E=>{f(E,!1)},v.onBlur),v.onClick=Nn(E=>{f(E,!a)},v.onClick),v.onKeyDown=Nn(E=>{const _=x8(E,{open:a,multiselect:d}),S=o()-1,b=n?i(n.id):-1;let A=b;switch(_){case"Open":E.preventDefault(),c(!0),f(E,!0);break;case"Close":E.stopPropagation(),E.preventDefault(),f(E,!1);break;case"CloseSelect":!d&&!(n!=null&&n.disabled)&&f(E,!1);case"Select":n&&u(E,n),E.preventDefault();break;case"Tab":!d&&n&&u(E,n);break;default:A=Lue(_,b,S)}A!==b&&(E.preventDefault(),l(s(A)),c(!0))},v.onKeyDown),v.onMouseOver=Nn(E=>{c(!1)},v.onMouseOver),v}function HLe(e,t,r){const{state:{open:n,activeOption:o,setOpen:i,getOptionsMatchingText:s,getIndexOfId:a,setActiveOption:u,setFocusVisible:l},defaultProps:c}=r,f=k.useRef(""),[d,h]=u8(),g=()=>{let E=A=>A.toLowerCase().indexOf(f.current)===0,_=s(E),S=o?a(o.id):0;if(n&&f.current.length===1&&S++,!_.length){const A=f.current.split("");A.length&&A.every(T=>T===A[0])&&(S++,E=T=>T.toLowerCase().indexOf(A[0])===0,_=s(E))}if(_.length>1&&o){const A=_.find(x=>a(x.id)>=S);return A??_[0]}var b;return(b=_[0])!==null&&b!==void 0?b:void 0},v=E=>{if(h(),x8(E)==="Type"){f.current+=E.key.toLowerCase(),d(()=>{f.current=""},500),!n&&i(E,!0);const _=g();u(_),l(!0)}},y=zLe(e,t,{state:r.state,defaultProps:c,elementType:"button"});return y.onKeyDown=Nn(v,y.onKeyDown),y}const $Le=(e,t)=>{e=Bue(e,{supportsLabelFor:!0,supportsSize:!0});const r=MLe(e),{open:n}=r,{primary:o,root:i}=Xse({props:e,primarySlotTagName:"button",excludedPropNames:["children"]}),[s,a]=LLe(e),u=k.useRef(null),l=jLe(e.listbox,s,{state:r,triggerRef:u,defaultProps:{children:e.children}});var c;const f=HLe((c=e.button)!==null&&c!==void 0?c:{},di(u,t),{state:r,defaultProps:{type:"button",tabIndex:0,children:r.value||e.placeholder,...o}}),d=Er(e.root,{defaultProps:{"aria-owns":!e.inlinePopup&&n?l==null?void 0:l.id:void 0,children:e.children,...i},elementType:"div"});return d.ref=di(d.ref,a),{components:{root:"div",button:"button",expandIcon:"span",listbox:I8},root:d,button:f,listbox:n?l:void 0,expandIcon:un(e.expandIcon,{renderByDefault:!0,defaultProps:{children:k.createElement(KDe,null)},elementType:"span"}),placeholderVisible:!r.value&&!!e.placeholder,...r}},PLe=(e,t)=>nt(e.root,{children:Un(Xu.Provider,{value:t.combobox,children:[Un(e.button,{children:[e.button.children,e.expandIcon&&nt(e.expandIcon,{})]}),e.listbox&&(e.inlinePopup?nt(e.listbox,{}):nt(Y_,{mountNode:e.mountNode,children:nt(e.listbox,{})}))]})}),aw={root:"fui-Dropdown",button:"fui-Dropdown__button",expandIcon:"fui-Dropdown__expandIcon",listbox:"fui-Dropdown__listbox"},qLe=wt({root:{Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B7ck84d:"f1ewtqcl",mc9l5x:"f14t3ns0",Bf4jedk:"f1exfvgq",qhf8xq:"f10pi13n",Bbr2w1p:"f14a1fxs",Bduesf4:"f3e99gv",Bpq79vn:"fhljsf7",li1rpt:"f1gw3sf2",Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",Eqx8gd:["f1a7op3","f1cjjd47"],By385i5:"f1gboi2j",B1piin3:["f1cjjd47","f1a7op3"],Dlnsje:"ffyw7fx",d9w3h3:["f1kp91vd","f1ibwz09"],B3778ie:["f1ibwz09","f1kp91vd"],Bcgy8vk:"f14pi962",Bw17bha:"f1lh990p",B1q35kw:"f1jc6hxc",Gjdm7m:"f13evtba",b1kco5:"f1yk9hq",Ba2ppi3:"fhwpy7i",F2fol1:"f14ee0xe",lck23g:"f1xhbsuh",df92cz:"fv8e3ye",I188md:"ftb5wc6",umuwi5:"fjw5xc1",Blcqepd:"f1xdyd5c",nplu4u:"fatpbeo",Bioka5o:"fb7uyps",H713fs:"f1cmft4k",B9ooomg:"f1x58t8o",Bercvud:"f1ibeo51"},listbox:{B7ck84d:"f1ewtqcl",E5pizo:"f1hg901r",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Bxyxcbc:"fmmk62d"},listboxCollapsed:{mc9l5x:"fjseox"},button:{Bt984gj:"f122n59",De3pzq:"f1c21dwh",B4j52fo:"fre7gi1",Bekrc4i:["f1358rze","f1rvrf73"],Bn0qgzm:"fqdk4by",ibv6hh:["f1rvrf73","f1358rze"],B7ck84d:"f1ewtqcl",sj55zd:"f19n0e5",i8kkvl:"f14mj54c",Bceei9c:"f1k6fduh",mc9l5x:"f13qh94s",Bahqtrf:"fk6fouc",Budl1dq:"f12nh0o2",Brf1p80:"f1869bpl",fsow6f:["f1o700av","fes3tcz"],a9b677:"fly5x3f",Brovlpu:"ftqa4ok"},placeholder:{sj55zd:"fxc4j92"},small:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",z8tnut:"f1khb0e9",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"f1jnq6q7",uwmqm3:["f1xile11","fqznh8f"]},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",z8tnut:"f1sbtcvk",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"fdghr9",uwmqm3:["f1e60jzv","f135dnwl"]},large:{i8kkvl:"f1rjii52",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",z8tnut:"f1a1bwwz",z189sj:["fw5db7e","f1uw59to"],Byoj8tv:"fy7v416",uwmqm3:["fnphzt9","flt1dlf"]},outline:{De3pzq:"fxugw4r",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1c1zstj",zhjwy3:["f1lxtadh","f1akhkt"]},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"flmw63s",gg5e9n:["f1m52nbi","f1ub3y4t"],B6oc9vd:"fvs00aa",ak43y8:["f1assf6x","f4ruux4"],wmxk5l:"fqhmt4z",B50zh58:["f4ruux4","f1assf6x"]},underline:{De3pzq:"f1c21dwh",Bn0qgzm:"f1vxd6vx",oivjwe:"fg706s2",B9xav0g:"f1c1zstj",Bbmb7ep:["f1krrbdw","f1deotkl"],Beyfa6y:["f1deotkl","f1krrbdw"],B7oj6ja:["f10ostut","f1ozlkrg"],Btl43ni:["f1ozlkrg","f10ostut"]},"filled-lighter":{De3pzq:"fxugw4r",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"]},"filled-darker":{De3pzq:"f16xq7d1",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},invalidUnderline:{hhx65j:"f1fgmyf4"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"]},disabledText:{sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr"}},{d:[".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f1ewtqcl{box-sizing:border-box;}",".f14t3ns0{display:inline-block;}",".f1exfvgq{min-width:250px;}",".f10pi13n{position:relative;}",".f1gw3sf2::after{box-sizing:border-box;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1a7op3::after{left:-1px;}",".f1cjjd47::after{right:-1px;}",".f1gboi2j::after{bottom:-1px;}",".ffyw7fx::after{height:max(var(--strokeWidthThick), var(--borderRadiusMedium));}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",".f14pi962::after{border-bottom-width:var(--strokeWidthThick);}",".f1lh990p::after{border-bottom-style:solid;}",".f1jc6hxc::after{border-bottom-color:var(--colorCompoundBrandStroke);}",".f13evtba::after{clip-path:inset(calc(100% - 2px) 0 0 0);}",".f1yk9hq::after{transform:scaleX(0);}",".fhwpy7i::after{transition-property:transform;}",".f14ee0xe::after{transition-duration:var(--durationUltraFast);}",".f1xhbsuh::after{transition-delay:var(--curveAccelerateMid);}",".f1hg901r{box-shadow:var(--shadow16);}",".fmmk62d{max-height:80vh;}",".fjseox{display:none;}",".f122n59{align-items:center;}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fre7gi1{border-top-width:0;}",".f1358rze{border-right-width:0;}",".f1rvrf73{border-left-width:0;}",".fqdk4by{border-bottom-width:0;}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",".f1k6fduh{cursor:pointer;}",".f13qh94s{display:grid;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".f12nh0o2{grid-template-columns:[content] 1fr [icon] auto [end];}",".f1869bpl{justify-content:space-between;}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".fly5x3f{width:100%;}",".fxc4j92{color:var(--colorNeutralForeground4);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1khb0e9{padding-top:3px;}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f1jnq6q7{padding-bottom:3px;}",".f1xile11{padding-left:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".fqznh8f{padding-right:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1sbtcvk{padding-top:5px;}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".fdghr9{padding-bottom:5px;}",".f1e60jzv{padding-left:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f135dnwl{padding-right:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1a1bwwz{padding-top:7px;}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fy7v416{padding-bottom:7px;}",".fnphzt9{padding-left:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".flt1dlf{padding-right:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f1krrbdw{border-bottom-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1ozlkrg{border-top-left-radius:0;}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"],w:[".f14a1fxs:focus-within{outline-width:2px;}",".f3e99gv:focus-within{outline-style:solid;}",".fhljsf7:focus-within{outline-color:transparent;}",".fjw5xc1:focus-within::after{transform:scaleX(1);}",".f1xdyd5c:focus-within::after{transition-property:transform;}",".fatpbeo:focus-within::after{transition-duration:var(--durationNormal);}",".fb7uyps:focus-within::after{transition-delay:var(--curveDecelerateMid);}",".f1ibeo51:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.fv8e3ye::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.ftb5wc6::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1cmft4k:focus-within::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1x58t8o:focus-within::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],f:[".ftqa4ok:focus{outline-style:none;}"],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".flmw63s:hover{border-bottom-color:var(--colorNeutralStrokeAccessible);}"],a:[".fvs00aa:active{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1assf6x:active{border-right-color:var(--colorNeutralStroke1Pressed);}",".f4ruux4:active{border-left-color:var(--colorNeutralStroke1Pressed);}",".fqhmt4z:active{border-bottom-color:var(--colorNeutralStrokeAccessible);}"]}),WLe=wt({icon:{B7ck84d:"f1ewtqcl",sj55zd:"fxkbij4",mc9l5x:"ftgm304",Be2twd7:"f1pp30po",Br312pm:"f12w6cgp",Bw0ie65:"f8bv1bt",Bo70h7d:"fvc9v3g"},small:{Be2twd7:"f4ybsrx",Frg6f3:["f1h9en5y","f1xk557c"]},medium:{Be2twd7:"fe5j1ua",Frg6f3:["f1h9en5y","f1xk557c"]},large:{Be2twd7:"f1rt2boy",Frg6f3:["f1t5qyk5","f1ikr372"]},disabled:{sj55zd:"f1s2aq7o"}},{d:[".f1ewtqcl{box-sizing:border-box;}",".fxkbij4{color:var(--colorNeutralStrokeAccessible);}",".ftgm304{display:block;}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f12w6cgp{grid-column-start:icon;}",".f8bv1bt{grid-column-end:end;}",".fvc9v3g svg{display:block;}",".f4ybsrx{font-size:16px;}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".fe5j1ua{font-size:20px;}",".f1rt2boy{font-size:24px;}",".f1t5qyk5{margin-left:var(--spacingHorizontalSNudge);}",".f1ikr372{margin-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"]}),KLe=e=>{const{appearance:t,open:r,placeholderVisible:n,size:o}=e,i=`${e.button["aria-invalid"]}`=="true",s=e.button.disabled,a=qLe(),u=WLe();return e.root.className=Xe(aw.root,a.root,a[t],!s&&t==="outline"&&a.outlineInteractive,i&&t!=="underline"&&a.invalid,i&&t==="underline"&&a.invalidUnderline,s&&a.disabled,e.root.className),e.button.className=Xe(aw.button,a.button,a[o],n&&a.placeholder,s&&a.disabledText,e.button.className),e.listbox&&(e.listbox.className=Xe(aw.listbox,a.listbox,!r&&a.listboxCollapsed,e.listbox.className)),e.expandIcon&&(e.expandIcon.className=Xe(aw.expandIcon,u.icon,u[o],s&&u.disabled,e.expandIcon.className)),e},C8=k.forwardRef((e,t)=>{const r=$Le(e,t),n=wLe(r);return KLe(r),bn("useDropdownStyles_unstable")(r),PLe(r,n)});C8.displayName="Dropdown";const GLe=e=>nt(e.root,{children:e.root.children!==void 0&&nt(e.wrapper,{children:e.root.children})}),VLe=(e,t)=>{const{alignContent:r="center",appearance:n="default",inset:o=!1,vertical:i=!1,wrapper:s}=e,a=Ia("divider-");return{alignContent:r,appearance:n,inset:o,vertical:i,components:{root:"div",wrapper:"div"},root:Er(yn("div",{role:"separator","aria-orientation":i?"vertical":"horizontal","aria-labelledby":e.children?a:void 0,...e,ref:t}),{elementType:"div"}),wrapper:Er(s,{defaultProps:{id:a,children:e.children},elementType:"div"})}},xK={root:"fui-Divider",wrapper:"fui-Divider__wrapper"},ULe=wt({base:{Bt984gj:"f122n59",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Beiy3e4:"f1063pyq",Bh6795r:"fqerorx",qhf8xq:"f10pi13n",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",fsow6f:"f17mccla",Bcvre1j:"fyl8oag",Br0sdwz:"f16vkdww",Bn78ew0:"fhsnbul",li1rpt:"f1gw3sf2",ap17g6:"f1ly5f7u",B771hl4:"f1s3tz6t"},childless:{susq4k:"f1kyqvp9",Bicfajf:["fzynn9s","f1z0ukd1"],jwcpgy:["fekrn8e","ftdg338"],B4rk6o:"fesgyo"},start:{Bsft5z2:"f13zj6fq"},center:{Ftih45:"f1wl9k8s",Bsft5z2:"f13zj6fq"},end:{Ftih45:"f1wl9k8s"},brand:{sj55zd:"f16muhyy",Bq4z7u6:"fcbuu2a",Bk5zm6e:["f1wdw2dr","f1ttio3w"],Bqjgrrk:"f1582fpk",Bm6vgfq:["f1ttio3w","f1wdw2dr"],B0n5ga8:"f1ahrvm8",s924m2:["f1cd3wbc","f17hbk9y"],B1q35kw:"fvrapl0",Gp14am:["f17hbk9y","f1cd3wbc"]},default:{sj55zd:"fkfq4zb",Bq4z7u6:"f1vccso1",Bk5zm6e:["f1geml7w","fjml6kk"],Bqjgrrk:"f1r7kh1m",Bm6vgfq:["fjml6kk","f1geml7w"],B0n5ga8:"f16j7guv",s924m2:["fx01ahm","fj1a37q"],B1q35kw:"fl8d8yv",Gp14am:["fj1a37q","fx01ahm"]},subtle:{sj55zd:"fkfq4zb",Bq4z7u6:"f5g06un",Bk5zm6e:["f13sxdku","f1n015lb"],Bqjgrrk:"f1x6bl8t",Bm6vgfq:["f1n015lb","f13sxdku"],B0n5ga8:"fvod1wy",s924m2:["fwslg65","flk0e17"],B1q35kw:"f103fvts",Gp14am:["flk0e17","fwslg65"]},strong:{sj55zd:"fkfq4zb",Bq4z7u6:"f10tv6oz",Bk5zm6e:["f16xp3sf","f1seuxxq"],Bqjgrrk:"fwrmqbx",Bm6vgfq:["f1seuxxq","f16xp3sf"],B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"]}},{d:[".f122n59{align-items:center;}",".f1ewtqcl{box-sizing:border-box;}",".f22iagw{display:flex;}",".f1063pyq{flex-direction:row;}",".fqerorx{flex-grow:1;}",".f10pi13n{position:relative;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f17mccla{text-align:center;}",".fyl8oag::before{box-sizing:border-box;}",".f16vkdww::before{display:flex;}",".fhsnbul::before{flex-grow:1;}",".f1gw3sf2::after{box-sizing:border-box;}",".f1ly5f7u::after{display:flex;}",".f1s3tz6t::after{flex-grow:1;}",".f1kyqvp9::before{margin-bottom:0;}",".fzynn9s::before{margin-right:0;}",".f1z0ukd1::before{margin-left:0;}",".fekrn8e::after{margin-left:0;}",".ftdg338::after{margin-right:0;}",".fesgyo::after{margin-top:0;}",'.f13zj6fq::after{content:"";}','.f1wl9k8s::before{content:"";}',".f16muhyy{color:var(--colorBrandForeground1);}",".fcbuu2a::before{border-top-color:var(--colorBrandStroke1);}",".f1wdw2dr::before{border-right-color:var(--colorBrandStroke1);}",".f1ttio3w::before{border-left-color:var(--colorBrandStroke1);}",".f1582fpk::before{border-bottom-color:var(--colorBrandStroke1);}",".f1ahrvm8::after{border-top-color:var(--colorBrandStroke1);}",".f1cd3wbc::after{border-right-color:var(--colorBrandStroke1);}",".f17hbk9y::after{border-left-color:var(--colorBrandStroke1);}",".fvrapl0::after{border-bottom-color:var(--colorBrandStroke1);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f1vccso1::before{border-top-color:var(--colorNeutralStroke2);}",".f1geml7w::before{border-right-color:var(--colorNeutralStroke2);}",".fjml6kk::before{border-left-color:var(--colorNeutralStroke2);}",".f1r7kh1m::before{border-bottom-color:var(--colorNeutralStroke2);}",".f16j7guv::after{border-top-color:var(--colorNeutralStroke2);}",".fx01ahm::after{border-right-color:var(--colorNeutralStroke2);}",".fj1a37q::after{border-left-color:var(--colorNeutralStroke2);}",".fl8d8yv::after{border-bottom-color:var(--colorNeutralStroke2);}",".f5g06un::before{border-top-color:var(--colorNeutralStroke3);}",".f13sxdku::before{border-right-color:var(--colorNeutralStroke3);}",".f1n015lb::before{border-left-color:var(--colorNeutralStroke3);}",".f1x6bl8t::before{border-bottom-color:var(--colorNeutralStroke3);}",".fvod1wy::after{border-top-color:var(--colorNeutralStroke3);}",".fwslg65::after{border-right-color:var(--colorNeutralStroke3);}",".flk0e17::after{border-left-color:var(--colorNeutralStroke3);}",".f103fvts::after{border-bottom-color:var(--colorNeutralStroke3);}",".f10tv6oz::before{border-top-color:var(--colorNeutralStroke1);}",".f16xp3sf::before{border-right-color:var(--colorNeutralStroke1);}",".f1seuxxq::before{border-left-color:var(--colorNeutralStroke1);}",".fwrmqbx::before{border-bottom-color:var(--colorNeutralStroke1);}",".ft83z1f::after{border-top-color:var(--colorNeutralStroke1);}",".f1g4150c::after{border-right-color:var(--colorNeutralStroke1);}",".f192dr6e::after{border-left-color:var(--colorNeutralStroke1);}",".f1qnawh6::after{border-bottom-color:var(--colorNeutralStroke1);}"]}),YLe=wt({base:{a9b677:"fly5x3f",Bdkvgpv:"f163fonl",B0qfbqy:"f51yk4v",pbipgd:"f13rof3u",Bm2nyyq:"f8rth92",xrcqlc:"f6czdpx",i5u598:"f1iyka9k"},inset:{uwmqm3:["fjlbh76","f11qrl6u"],z189sj:["f11qrl6u","fjlbh76"]},start:{Ftih45:"f1wl9k8s",Bicfajf:["f1ojjlep","fk1kexq"],Bxwl2t9:"f1he2m4d",jwcpgy:["f12w1bnb","f1558wlj"]},center:{Bicfajf:["f1ojjlep","fk1kexq"],jwcpgy:["f12w1bnb","f1558wlj"]},end:{Bicfajf:["f1ojjlep","fk1kexq"],Bsft5z2:"f13zj6fq",jwcpgy:["f12w1bnb","f1558wlj"],Iy66sp:"f1ayce8x"}},{d:[".fly5x3f{width:100%;}",".f163fonl::before{border-top-style:solid;}",".f51yk4v::before{border-top-width:var(--strokeWidthThin);}",".f13rof3u::before{min-width:8px;}",".f8rth92::after{border-top-style:solid;}",".f6czdpx::after{border-top-width:var(--strokeWidthThin);}",".f1iyka9k::after{min-width:8px;}",".fjlbh76{padding-left:12px;}",".f11qrl6u{padding-right:12px;}",'.f1wl9k8s::before{content:"";}',".f1ojjlep::before{margin-right:12px;}",".fk1kexq::before{margin-left:12px;}",".f1he2m4d::before{max-width:8px;}",".f12w1bnb::after{margin-left:12px;}",".f1558wlj::after{margin-right:12px;}",'.f13zj6fq::after{content:"";}',".f1ayce8x::after{max-width:8px;}"]}),XLe=wt({base:{Beiy3e4:"f1vx9l62",sshi5w:"f16gbxbe",m598lv:["f1yq6w5o","f1jpmc5p"],B4f6apu:["f9sc749","f1x8pvcy"],zkzzav:"fhkwbjy",Barhvk9:["flthirb","ftkbnf5"],Ihftqj:["f13hvwk3","f1en4csx"],Bde111x:"f19onpk6"},inset:{B6of3ja:"f1xdg43u",jrapky:"f1jlhsmd"},withChildren:{sshi5w:"f1tjaq3g"},start:{Ftih45:"f1wl9k8s",susq4k:"fg2pwug",Bbdr6tz:"fkjtzyi",B4rk6o:"f8vk40g"},center:{susq4k:"fg2pwug",B4rk6o:"f8vk40g"},end:{susq4k:"fg2pwug",Bsft5z2:"f13zj6fq",B4rk6o:"f8vk40g",gn64ia:"fqg5mu5"}},{d:[".f1vx9l62{flex-direction:column;}",".f16gbxbe{min-height:20px;}",".f1yq6w5o::before{border-right-style:solid;}",".f1jpmc5p::before{border-left-style:solid;}",".f9sc749::before{border-right-width:var(--strokeWidthThin);}",".f1x8pvcy::before{border-left-width:var(--strokeWidthThin);}",".fhkwbjy::before{min-height:8px;}",".flthirb::after{border-right-style:solid;}",".ftkbnf5::after{border-left-style:solid;}",".f13hvwk3::after{border-right-width:var(--strokeWidthThin);}",".f1en4csx::after{border-left-width:var(--strokeWidthThin);}",".f19onpk6::after{min-height:8px;}",".f1xdg43u{margin-top:12px;}",".f1jlhsmd{margin-bottom:12px;}",".f1tjaq3g{min-height:84px;}",'.f1wl9k8s::before{content:"";}',".fg2pwug::before{margin-bottom:12px;}",".fkjtzyi::before{max-height:8px;}",".f8vk40g::after{margin-top:12px;}",'.f13zj6fq::after{content:"";}',".fqg5mu5::after{max-height:8px;}"]}),QLe=e=>{const t=ULe(),r=YLe(),n=XLe(),{alignContent:o,appearance:i,inset:s,vertical:a}=e;return e.root.className=Xe(xK.root,t.base,t[o],i&&t[i],!a&&r.base,!a&&s&&r.inset,!a&&r[o],a&&n.base,a&&s&&n.inset,a&&n[o],a&&e.root.children!==void 0&&n.withChildren,e.root.children===void 0&&t.childless,e.root.className),e.wrapper&&(e.wrapper.className=Xe(xK.wrapper,e.wrapper.className)),e},qy=k.forwardRef((e,t)=>{const r=VLe(e,t);return QLe(r),bn("useDividerStyles_unstable")(r),GLe(r)});qy.displayName="Divider";const ZLe=(e,t)=>{e=Bue(e,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const r=iae();var n;const{size:o="medium",appearance:i=(n=r.inputDefaultAppearance)!==null&&n!==void 0?n:"outline",onChange:s}=e,[a,u]=Ef({state:e.value,defaultState:e.defaultValue,initialState:""}),l=Xse({props:e,primarySlotTagName:"input",excludedPropNames:["size","onChange","value","defaultValue"]}),c={size:o,appearance:i,components:{root:"span",input:"input",contentBefore:"span",contentAfter:"span"},input:Er(e.input,{defaultProps:{type:"text",ref:t,...l.primary},elementType:"input"}),contentAfter:un(e.contentAfter,{elementType:"span"}),contentBefore:un(e.contentBefore,{elementType:"span"}),root:Er(e.root,{defaultProps:l.root,elementType:"span"})};return c.input.value=a,c.input.onChange=ar(f=>{const d=f.target.value;s==null||s(f,{value:d}),u(d)}),c},JLe=e=>Un(e.root,{children:[e.contentBefore&&nt(e.contentBefore,{}),nt(e.input,{}),e.contentAfter&&nt(e.contentAfter,{})]}),uw={root:"fui-Input",input:"fui-Input__input",contentBefore:"fui-Input__contentBefore",contentAfter:"fui-Input__contentAfter"},e8e=Tn("r1jtohuq","rl1z2p5",{r:[".r1jtohuq{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;min-height:32px;padding:0 var(--spacingHorizontalMNudge);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.r1jtohuq::after{box-sizing:border-box;content:"";position:absolute;left:-1px;bottom:-1px;right:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".r1jtohuq:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".r1jtohuq:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".r1jtohuq:focus-within{outline:2px solid transparent;}",".rl1z2p5{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;min-height:32px;padding:0 var(--spacingHorizontalMNudge);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.rl1z2p5::after{box-sizing:border-box;content:"";position:absolute;right:-1px;bottom:-1px;left:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".rl1z2p5:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".rl1z2p5:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".rl1z2p5:focus-within{outline:2px solid transparent;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1jtohuq::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r1jtohuq:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.rl1z2p5::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.rl1z2p5:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}"]}),t8e=wt({small:{sshi5w:"f1pha7fy",uwmqm3:["fk8j09s","fdw0yi8"],z189sj:["fdw0yi8","fk8j09s"],Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},medium:{},large:{sshi5w:"f1w5jphr",uwmqm3:["f1uw59to","fw5db7e"],z189sj:["fw5db7e","f1uw59to"],Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",i8kkvl:"f1rjii52",Belr9w4:"f1r7g2jn"},outline:{},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"f1l4zc64",gg5e9n:["f1m52nbi","f1ub3y4t"],Drbcw7:"f8vnjqi",udz0bu:["fz1etlk","f1hc16gm"],Be8ivqh:"f1klwx88",ofdepl:["f1hc16gm","fz1etlk"]},underline:{De3pzq:"f1c21dwh",Bbmb7ep:["f1krrbdw","f1deotkl"],Beyfa6y:["f1deotkl","f1krrbdw"],B7oj6ja:["f10ostut","f1ozlkrg"],Btl43ni:["f1ozlkrg","f10ostut"],icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],wvpqe5:["f1deefiw","f1n71otn"],Eqx8gd:["f1n6gb5g","f15yvnhg"],B1piin3:["f15yvnhg","f1n6gb5g"]},underlineInteractive:{oetu4i:"f1l4zc64",Be8ivqh:"f1klwx88",B3778ie:["f1nf3wye","feulmo5"],d9w3h3:["feulmo5","f1nf3wye"],Bl18szs:["f18vqdqu","f53nyzz"],B4j8arr:["f53nyzz","f18vqdqu"]},filled:{g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},filledInteractive:{q7v0qe:"ftmjh5b",kmh5ft:["f17blpuu","fsrcdbj"],nagaa4:"f1tpwn32",B1yhkcb:["fsrcdbj","f17blpuu"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},"filled-darker":{De3pzq:"f16xq7d1"},"filled-lighter":{De3pzq:"fxugw4r"},"filled-darker-shadow":{De3pzq:"f16xq7d1",E5pizo:"fyed02w"},"filled-lighter-shadow":{De3pzq:"fxugw4r",E5pizo:"fyed02w"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bsft5z2:"fhr9occ",Bduesf4:"f99w1ws"}},{d:[".f1pha7fy{min-height:24px;}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1w5jphr{min-height:40px;}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".f1r7g2jn{row-gap:var(--spacingHorizontalSNudge);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1krrbdw{border-bottom-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1ozlkrg{border-top-left-radius:0;}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".f1nf3wye::after{border-bottom-right-radius:0;}",".feulmo5::after{border-bottom-left-radius:0;}",".f18vqdqu::after{border-top-right-radius:0;}",".f53nyzz::after{border-top-left-radius:0;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".fyed02w{box-shadow:var(--shadow2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fhr9occ::after{content:unset;}"],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}",".ftmjh5b:hover,.ftmjh5b:focus-within{border-top-color:var(--colorTransparentStrokeInteractive);}",".f17blpuu:hover,.f17blpuu:focus-within{border-right-color:var(--colorTransparentStrokeInteractive);}",".fsrcdbj:hover,.fsrcdbj:focus-within{border-left-color:var(--colorTransparentStrokeInteractive);}",".f1tpwn32:hover,.f1tpwn32:focus-within{border-bottom-color:var(--colorTransparentStrokeInteractive);}"],a:[".f8vnjqi:active,.f8vnjqi:focus-within{border-top-color:var(--colorNeutralStroke1Pressed);}",".fz1etlk:active,.fz1etlk:focus-within{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1hc16gm:active,.f1hc16gm:focus-within{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1klwx88:active,.f1klwx88:focus-within{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"],m:[["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],w:[".f99w1ws:focus-within{outline-style:none;}"]}),r8e=Tn("rvp2gzh",null,[".rvp2gzh{box-sizing:border-box;flex-grow:1;min-width:0;border-style:none;padding:0 var(--spacingHorizontalXXS);color:var(--colorNeutralForeground1);background-color:transparent;outline-style:none;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;}",".rvp2gzh::-webkit-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh::-moz-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh:-ms-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh::placeholder{color:var(--colorNeutralForeground4);opacity:1;}"]),n8e=wt({large:{uwmqm3:["fk8j09s","fdw0yi8"],z189sj:["fdw0yi8","fk8j09s"]},disabled:{sj55zd:"f1s2aq7o",De3pzq:"f1c21dwh",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"}},{d:[".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}"]}),o8e=Tn("r1572tok",null,[".r1572tok{box-sizing:border-box;color:var(--colorNeutralForeground3);display:flex;}",".r1572tok>svg{font-size:20px;}"]),i8e=wt({disabled:{sj55zd:"f1s2aq7o"},small:{kwki1k:"f3u2cy0"},medium:{},large:{kwki1k:"fa420co"}},{d:[".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f3u2cy0>svg{font-size:16px;}",".fa420co>svg{font-size:24px;}"]}),s8e=e=>{const{size:t,appearance:r}=e,n=e.input.disabled,o=`${e.input["aria-invalid"]}`=="true",i=r.startsWith("filled"),s=t8e(),a=n8e(),u=i8e();e.root.className=Xe(uw.root,e8e(),s[t],s[r],!n&&r==="outline"&&s.outlineInteractive,!n&&r==="underline"&&s.underlineInteractive,!n&&i&&s.filledInteractive,i&&s.filled,!n&&o&&s.invalid,n&&s.disabled,e.root.className),e.input.className=Xe(uw.input,r8e(),t==="large"&&a.large,n&&a.disabled,e.input.className);const l=[o8e(),n&&u.disabled,u[t]];return e.contentBefore&&(e.contentBefore.className=Xe(uw.contentBefore,...l,e.contentBefore.className)),e.contentAfter&&(e.contentAfter.className=Xe(uw.contentAfter,...l,e.contentAfter.className)),e},R8=k.forwardRef((e,t)=>{const r=ZLe(e,t);return s8e(r),bn("useInputStyles_unstable")(r),JLe(r)});R8.displayName="Input";const a8e=e=>{const{disabled:t,disabledFocusable:r}=e,{onClick:n,onKeyDown:o,role:i,tabIndex:s}=e.root;return e.root.as==="a"&&(e.root.href=t?void 0:e.root.href,(t||r)&&(e.root.role=i||"link")),(e.root.as==="a"||e.root.as==="span")&&(e.root.tabIndex=s??(t&&!r?void 0:0)),e.root.onClick=a=>{t||r?a.preventDefault():n==null||n(a)},e.root.onKeyDown=a=>{(t||r)&&(a.key===ig||a.key===sf)?(a.preventDefault(),a.stopPropagation()):o==null||o(a)},e.disabled=t||r,e.root["aria-disabled"]=t||r||void 0,e.root.as==="button"&&(e.root.disabled=t&&!r),e},u8e=(e,t)=>{const r=TDe(),{appearance:n="default",disabled:o=!1,disabledFocusable:i=!1,inline:s=!1}=e,a=e.as||(e.href?"a":"button"),u={role:a==="span"?"button":void 0,type:a==="button"?"button":void 0,...e,as:a},l={appearance:n,disabled:o,disabledFocusable:i,inline:s,components:{root:a},root:Er(yn(a,{ref:t,...u}),{elementType:a}),backgroundAppearance:r};return a8e(l),l},l8e={root:"fui-Link"},c8e=wt({focusIndicator:{Bttzg6e:"fhgqx19",B3uz8dt:"f1olyrje",B6ihwck:"f1p93eir",g9k6zt:"f1nev41a"},root:{B486eqv:"f2hkw1w",De3pzq:"f3rmtva",B7ck84d:"f1ewtqcl",sj55zd:"fyind8e",Bceei9c:"f1k6fduh",mc9l5x:"f1w7gpdv",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",B6of3ja:"f1hu3pq6",t21cq0:["f11qmguv","f1tyq0we"],jrapky:"f19f4twv",Frg6f3:["f1tyq0we","f11qmguv"],z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1cnd47f","fhxju0i"],B68tc82:"fqv5qza",Bmxbyg5:"f1vmzxwi",fsow6f:["f1o700av","fes3tcz"],w71qe1:"f1iuv45f",Bkioxbp:"f1cmlufx",ygn44y:"f9n3di6",famaaq:"f1ids18y",Bde5pd6:"f1tx3yz7",Bi91k9c:"f1deo86v",i089h6:"f1eh06m1",lj723h:"f1iescvh"},button:{icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],oivjwe:"f1h8hb77",wvpqe5:["f1deefiw","f1n71otn"]},href:{Be2twd7:"fjoy568"},subtle:{sj55zd:"fkfq4zb",Bde5pd6:"f1tx3yz7",Bi91k9c:"fnwyq0v",i089h6:"f1eh06m1",lj723h:"flvvhsy"},inline:{w71qe1:"f13mvf36"},disabled:{w71qe1:"f1iuv45f",sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bde5pd6:"fbnuktb",Bi91k9c:"fvgxktp",i089h6:"fljg2da",lj723h:"f19wldhg"},inverted:{sj55zd:"f1qz2gb0",Bi91k9c:"f1mlt8il",lj723h:"f1hsd4st"}},{d:[".fhgqx19[data-fui-focus-visible]{text-decoration-color:var(--colorStrokeFocus2);}",".f1olyrje[data-fui-focus-visible]{text-decoration-line:underline;}",".f1p93eir[data-fui-focus-visible]{text-decoration-style:double;}",".f1nev41a[data-fui-focus-visible]{outline-style:none;}",".f3rmtva{background-color:transparent;}",".f1ewtqcl{box-sizing:border-box;}",".fyind8e{color:var(--colorBrandForegroundLink);}",".f1k6fduh{cursor:pointer;}",".f1w7gpdv{display:inline;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1hu3pq6{margin-top:0;}",".f11qmguv{margin-right:0;}",".f1tyq0we{margin-left:0;}",".f19f4twv{margin-bottom:0;}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".fqv5qza{overflow-x:inherit;}",".f1vmzxwi{overflow-y:inherit;}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".f1iuv45f{text-decoration-line:none;}",".f1cmlufx{text-decoration-thickness:var(--strokeWidthThin);}",".f9n3di6{text-overflow:inherit;}",".f1ids18y{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1h8hb77{border-bottom-style:none;}",".fjoy568{font-size:inherit;}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f13mvf36{text-decoration-line:underline;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f1qz2gb0{color:var(--colorBrandForegroundInverted);}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],h:[".f1tx3yz7:hover{text-decoration-line:underline;}",".f1deo86v:hover{color:var(--colorBrandForegroundLinkHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".fbnuktb:hover{text-decoration-line:none;}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f1mlt8il:hover{color:var(--colorBrandForegroundInvertedHover);}"],a:[".f1eh06m1:active{text-decoration-line:underline;}",".f1iescvh:active{color:var(--colorBrandForegroundLinkPressed);}",".flvvhsy:active{color:var(--colorNeutralForeground2Pressed);}",".fljg2da:active{text-decoration-line:none;}",".f19wldhg:active{color:var(--colorNeutralForegroundDisabled);}",".f1hsd4st:active{color:var(--colorBrandForegroundInvertedPressed);}"]}),f8e=e=>{const t=c8e(),{appearance:r,disabled:n,inline:o,root:i,backgroundAppearance:s}=e;return e.root.className=Xe(l8e.root,t.root,t.focusIndicator,i.as==="a"&&i.href&&t.href,i.as==="button"&&t.button,r==="subtle"&&t.subtle,s==="inverted"&&t.inverted,o&&t.inline,n&&t.disabled,e.root.className),e},d8e=e=>nt(e.root,{}),qb=k.forwardRef((e,t)=>{const r=u8e(e,t);return f8e(r),d8e(r)});qb.displayName="Link";const h8e=()=>k.createElement("svg",{className:"fui-Spinner__Progressbar"},k.createElement("circle",{className:"fui-Spinner__Track"}),k.createElement("circle",{className:"fui-Spinner__Tail"})),Hue=k.createContext(void 0),p8e={};Hue.Provider;const g8e=()=>{var e;return(e=k.useContext(Hue))!==null&&e!==void 0?e:p8e},v8e=(e,t)=>{const{size:r}=g8e(),{appearance:n="primary",labelPosition:o="after",size:i=r??"medium",delay:s=0}=e,a=Ia("spinner"),{role:u="progressbar",tabIndex:l,...c}=e,f=Er(yn("div",{ref:t,role:u,...c},["size"]),{elementType:"div"}),[d,h]=k.useState(!0),[g,v]=u8();k.useEffect(()=>{if(!(s<=0))return h(!1),g(()=>{h(!0)},s),()=>{v()}},[g,v,s]);const y=un(e.label,{defaultProps:{id:a},renderByDefault:!1,elementType:xf}),E=un(e.spinner,{renderByDefault:!0,defaultProps:{children:k.createElement(h8e,null),tabIndex:l},elementType:"span"});return y&&f&&!f["aria-labelledby"]&&(f["aria-labelledby"]=y.id),{appearance:n,delay:s,labelPosition:o,size:i,shouldRenderSpinner:d,components:{root:"div",spinner:"span",label:xf},root:f,spinner:E,label:y}},m8e=e=>{const{labelPosition:t,shouldRenderSpinner:r}=e;return Un(e.root,{children:[e.label&&r&&(t==="above"||t==="before")&&nt(e.label,{}),e.spinner&&r&&nt(e.spinner,{}),e.label&&r&&(t==="below"||t==="after")&&nt(e.label,{})]})},uN={root:"fui-Spinner",spinner:"fui-Spinner__spinner",label:"fui-Spinner__label"},y8e=wt({root:{mc9l5x:"f22iagw",Bt984gj:"f122n59",Brf1p80:"f4d9j23",Bg96gwp:"fez10in",i8kkvl:"f4px1ci",Belr9w4:"fn67r4l"},horizontal:{Beiy3e4:"f1063pyq"},vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f22iagw{display:flex;}",".f122n59{align-items:center;}",".f4d9j23{justify-content:center;}",".fez10in{line-height:0;}",".f4px1ci{column-gap:8px;}",".fn67r4l{row-gap:8px;}",".f1063pyq{flex-direction:row;}",".f1vx9l62{flex-direction:column;}"]}),b8e=wt({spinnerSVG:{B3aqqti:"f1or16p5",Brovlpu:"f1grzc83",Bxa1mx5:"f19shzzi",Bwaue66:["f5tbecn","f15qb8s7"],fyp1ls:"fn4mtlg",ag6ruv:"f1y80fxs",osj692:"f1r2crtq",aq5vjd:"f1wsi8sr",tlu9e1:"f1bkm2qd",J3u96z:"f1urqz7h",d32isg:"f1da2vov",Bsvqbuc:"f11rfva0",b3s3i5:"f1exc66"},"extra-tiny":{Bah9ito:"f1x2gjcb",ut6tcf:"f1vjiaua",B7p06xz:"fv1u54w",B807ibg:"f1oebb0s"},tiny:{Bah9ito:"f1j4wmu2",ut6tcf:"f1vppzuq",B7p06xz:"fv1u54w",B807ibg:"fngtx1d"},"extra-small":{Bah9ito:"fmpqlna",ut6tcf:"f15z5jzu",B7p06xz:"fv1u54w",B807ibg:"fadawes"},small:{Bah9ito:"fo52gbo",ut6tcf:"f1b41i3v",B7p06xz:"fv1u54w",B807ibg:"f1xqyyrl"},medium:{Bah9ito:"f1aiqagr",ut6tcf:"f1wtx80b",B7p06xz:"f1flujpd",B807ibg:"f1u06hy7"},large:{Bah9ito:"f1trdq7b",ut6tcf:"f9e0mc5",B7p06xz:"f1flujpd",B807ibg:"f13pmvhl"},"extra-large":{Bah9ito:"f89rf2a",ut6tcf:"f1w2xg3q",B7p06xz:"f1flujpd",B807ibg:"fmn74v6"},huge:{Bah9ito:"f1rx7k5y",ut6tcf:"f1vtyt49",B7p06xz:"f1owbg48",B807ibg:"f1fr1izd"}},{f:[".f1or16p5:focus{outline-width:3px;}",".f1grzc83:focus{outline-style:solid;}",".f19shzzi:focus{outline-color:transparent;}"],k:["@keyframes fb7n1on{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}","@keyframes f1gx3jof{0%{transform:rotate(0deg);}100%{transform:rotate(-360deg);}}"],d:[".f5tbecn>svg{animation-name:fb7n1on;}",".f15qb8s7>svg{animation-name:f1gx3jof;}",".fn4mtlg>svg{animation-duration:3s;}",".f1y80fxs>svg{animation-iteration-count:infinite;}",".f1r2crtq>svg{animation-timing-function:linear;}",".f1wsi8sr>svg{background-color:transparent;}",".f1da2vov>svg>circle{cx:50%;}",".f11rfva0>svg>circle{cy:50%;}",".f1exc66>svg>circle{fill:none;}",".f1x2gjcb>svg{height:16px;}",".f1vjiaua>svg{width:16px;}",".fv1u54w>svg>circle{stroke-width:var(--strokeWidthThick);}",".f1oebb0s>svg>circle{r:7px;}",".f1j4wmu2>svg{height:20px;}",".f1vppzuq>svg{width:20px;}",".fngtx1d>svg>circle{r:9px;}",".fmpqlna>svg{height:24px;}",".f15z5jzu>svg{width:24px;}",".fadawes>svg>circle{r:11px;}",".fo52gbo>svg{height:28px;}",".f1b41i3v>svg{width:28px;}",".f1xqyyrl>svg>circle{r:13px;}",".f1aiqagr>svg{height:32px;}",".f1wtx80b>svg{width:32px;}",".f1flujpd>svg>circle{stroke-width:var(--strokeWidthThicker);}",".f1u06hy7>svg>circle{r:14.5px;}",".f1trdq7b>svg{height:36px;}",".f9e0mc5>svg{width:36px;}",".f13pmvhl>svg>circle{r:16.5px;}",".f89rf2a>svg{height:40px;}",".f1w2xg3q>svg{width:40px;}",".fmn74v6>svg>circle{r:18.5px;}",".f1rx7k5y>svg{height:44px;}",".f1vtyt49>svg{width:44px;}",".f1owbg48>svg>circle{stroke-width:var(--strokeWidthThickest);}",".f1fr1izd>svg>circle{r:20px;}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f1bkm2qd>svg{animation-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1urqz7h>svg{animation-iteration-count:1;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]}),_8e=wt({inverted:{gwg7kz:"f1jvpmnu",Bvrehnu:"fq8a5sv",Bidp6o:"f1b4lwqj",cq3kgi:"f1najlst",Btwiser:"fjxod4",B8001xd:"fu3xdw0",Bdordwa:["f1ttdh6v","fmyjox0"],Bo2mdfu:"f1eseayc",E10nrc:"folzdkc",Bwl7w15:"fhlfkde",Bksq7rz:"f1esql28"},primary:{gwg7kz:"f11ditju",B8k2rxp:"f1m9nikz",Bvrehnu:"fq8a5sv",Bidp6o:"f1b4lwqj",cq3kgi:"f1najlst",Btwiser:"fjxod4",B8001xd:"fu3xdw0",Bdordwa:["f1ttdh6v","fmyjox0"],Bo2mdfu:"f1eseayc",E10nrc:"folzdkc",Bwl7w15:"fhlfkde",Bksq7rz:"f13qeqtg",y14cdu:"flglbw1"}},{d:[".f1jvpmnu>svg>circle.fui-Spinner__Tail{stroke:var(--colorNeutralStrokeOnBrand2);}",".fq8a5sv>svg>circle.fui-Spinner__Tail{animation-name:f1v1ql0f;}",".f1b4lwqj>svg>circle.fui-Spinner__Tail{animation-duration:1.5s;}",".f1najlst>svg>circle.fui-Spinner__Tail{animation-iteration-count:infinite;}",".fjxod4>svg>circle.fui-Spinner__Tail{animation-timing-function:var(--curveEasyEase);}",".fu3xdw0>svg>circle.fui-Spinner__Tail{stroke-linecap:round;}",".f1ttdh6v>svg>circle.fui-Spinner__Tail{transform:rotate(-90deg);}",".fmyjox0>svg>circle.fui-Spinner__Tail{transform:rotate(90deg);}",".f1eseayc>svg>circle.fui-Spinner__Tail{transform-origin:50% 50%;}",".f1esql28>svg>circle.fui-Spinner__Track{stroke:rgba(255, 255, 255, 0.2);}",".f11ditju>svg>circle.fui-Spinner__Tail{stroke:var(--colorBrandStroke1);}",".f13qeqtg>svg>circle.fui-Spinner__Track{stroke:var(--colorBrandStroke2Contrast);}"],k:["@keyframes f1v1ql0f{0%{stroke-dasharray:1,150;stroke-dashoffset:0;}50%{stroke-dasharray:90,150;stroke-dashoffset:-35;}100%{stroke-dasharray:90,150;stroke-dashoffset:-124;}}"],m:[["@media screen and (prefers-reduced-motion: reduce){.folzdkc>svg>circle.fui-Spinner__Tail{animation-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.fhlfkde>svg>circle.fui-Spinner__Tail{animation-iteration-count:1;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (forced-colors: active){.f1m9nikz>svg>circle.fui-Spinner__Tail{stroke:var(--colorNeutralStrokeOnBrand2);}}",{m:"screen and (forced-colors: active)"}],["@media screen and (forced-colors: active){.flglbw1>svg>circle.fui-Spinner__Track{stroke:var(--colorNeutralBackgroundInverted);}}",{m:"screen and (forced-colors: active)"}]]}),E8e=wt({inverted:{sj55zd:"f15aqcq"},primary:{},"extra-tiny":{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},tiny:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},"extra-small":{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},small:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},large:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},"extra-large":{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},huge:{Bahqtrf:"fk6fouc",Be2twd7:"f1pp30po",Bhrd7zp:"fl43uef",Bg96gwp:"f106mvju"}},{d:[".f15aqcq{color:rgba(255, 255, 255, 1);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f106mvju{line-height:var(--lineHeightBase500);}"]}),S8e=e=>{const{labelPosition:t,size:r,appearance:n="primary"}=e,o=y8e(),i=b8e(),s=E8e(),a=_8e();return e.root.className=Xe(uN.root,o.root,(t==="above"||t==="below")&&o.vertical,(t==="before"||t==="after")&&o.horizontal,e.root.className),e.spinner&&(e.spinner.className=Xe(uN.spinner,i.spinnerSVG,i[r],a[n],e.spinner.className)),e.label&&(e.label.className=Xe(uN.label,s[r],s[n],e.label.className)),e},X_=k.forwardRef((e,t)=>{const r=v8e(e,t);return S8e(r),bn("useSpinnerStyles_unstable")(r),m8e(r)});X_.displayName="Spinner";const w8e={appearance:"transparent",reserveSelectedTabSpace:!0,selectTabOnFocus:!1,disabled:!1,selectedValue:void 0,onRegister:()=>{},onUnregister:()=>{},onSelect:()=>{},getRegisteredTabs:()=>({registeredTabs:{}}),size:"medium",vertical:!1},$ue=hv(void 0),k8e=$ue.Provider,Hu=e=>Ko($ue,(t=w8e)=>e(t)),A8e=(e,t)=>{const{content:r,disabled:n=!1,icon:o,onClick:i,onFocus:s,value:a}=e,u=Hu(R=>R.appearance),l=Hu(R=>R.reserveSelectedTabSpace),c=Hu(R=>R.selectTabOnFocus),f=Hu(R=>R.disabled),d=Hu(R=>R.selectedValue===a),h=Hu(R=>R.onRegister),g=Hu(R=>R.onUnregister),v=Hu(R=>R.onSelect),y=Hu(R=>R.size),E=Hu(R=>!!R.vertical),_=f||n,S=k.useRef(null),b=R=>v(R,{value:a}),A=ar(Nn(i,b)),x=ar(Nn(s,b));k.useEffect(()=>(h({value:a,ref:S}),()=>{g({value:a,ref:S})}),[h,g,S,a]);const T=un(o,{elementType:"span"}),N=Er(r,{defaultProps:{children:e.children},elementType:"span"}),I=!!(T!=null&&T.children&&!N.children);return{components:{root:"button",icon:"span",content:"span",contentReservedSpace:"span"},root:Er(yn("button",{ref:di(t,S),role:"tab",type:"button","aria-selected":_?void 0:`${d}`,...e,disabled:_,onClick:A,onFocus:c?x:s}),{elementType:"button"}),icon:T,iconOnly:I,content:N,contentReservedSpace:un(r,{renderByDefault:!d&&!I&&l,defaultProps:{children:e.children},elementType:"span"}),appearance:u,disabled:_,selected:d,size:y,value:a,vertical:E}},T8e=e=>Un(e.root,{children:[e.icon&&nt(e.icon,{}),!e.iconOnly&&nt(e.content,{}),e.contentReservedSpace&&nt(e.contentReservedSpace,{})]}),IK={offsetVar:"--fui-Tab__indicator--offset",scaleVar:"--fui-Tab__indicator--scale"},x8e=wt({base:{B68tc82:"f1mtd64y",Bmxbyg5:"f1y7q3j9"},animated:{Ba2ppi3:"fhwpy7i",F2fol1:"f6zz20j",B1dyfl9:"f1ai4sc1",B0vmy72:"f9qxlq5",u9bimw:"f1aql376"},horizontal:{sjv3b2:["fug4aj8","f1i5xzg7"],b1kco5:"f1q7ujh"},vertical:{sjv3b2:"f1hqboyk",b1kco5:"f1dxupa6"}},{d:[".f1mtd64y{overflow-x:visible;}",".f1y7q3j9{overflow-y:visible;}",".fhwpy7i::after{transition-property:transform;}",".f6zz20j::after{transition-duration:var(--durationSlow);}",".f1ai4sc1::after{transition-timing-function:var(--curveDecelerateMax);}",".fug4aj8::after{transform-origin:left;}",".f1i5xzg7::after{transform-origin:right;}",".f1q7ujh::after{transform:translateX(var(--fui-Tab__indicator--offset)) scaleX(var(--fui-Tab__indicator--scale));}",".f1hqboyk::after{transform-origin:top;}",".f1dxupa6::after{transform:translateY(var(--fui-Tab__indicator--offset)) scaleY(var(--fui-Tab__indicator--scale));}"],m:[["@media (prefers-reduced-motion: reduce){.f9qxlq5::after{transition-property:none;}}",{m:"(prefers-reduced-motion: reduce)"}],["@media (prefers-reduced-motion: reduce){.f1aql376::after{transition-duration:0.01ms;}}",{m:"(prefers-reduced-motion: reduce)"}]]}),I8e=e=>{if(e){var t;const r=((t=e.parentElement)===null||t===void 0?void 0:t.getBoundingClientRect())||{x:0,y:0,width:0,height:0},n=e.getBoundingClientRect();return{x:n.x-r.x,y:n.y-r.y,width:n.width,height:n.height}}},NK=(e,t)=>{var r;const n=t!=null?(r=e[JSON.stringify(t)])===null||r===void 0?void 0:r.ref.current:void 0;return n?I8e(n):void 0},N8e=e=>{const{disabled:t,selected:r,vertical:n}=e,o=x8e(),[i,s]=k.useState(),[a,u]=k.useState({offset:0,scale:1}),l=Hu(d=>d.getRegisteredTabs);if(k.useEffect(()=>{i&&u({offset:0,scale:1})},[i]),r){const{previousSelectedValue:d,selectedValue:h,registeredTabs:g}=l();if(d&&i!==d){const v=NK(g,d),y=NK(g,h);if(y&&v){const E=n?v.y-y.y:v.x-y.x,_=n?v.height/y.height:v.width/y.width;u({offset:E,scale:_}),s(d)}}}else i&&s(void 0);if(t)return e;const c=a.offset===0&&a.scale===1;e.root.className=Xe(e.root.className,r&&o.base,r&&c&&o.animated,r&&(n?o.vertical:o.horizontal));const f={[IK.offsetVar]:`${a.offset}px`,[IK.scaleVar]:`${a.scale}`};return e.root.style={...f,...e.root.style},e},lN={root:"fui-Tab",icon:"fui-Tab__icon",content:"fui-Tab__content"},C8e={content:"fui-Tab__content--reserved-space"},R8e=wt({base:{Bt984gj:"f122n59",g2u3we:"fwhevhj",h3c5rm:["f61n433","f1q8l70w"],B9xav0g:"fv1dfc8",zhjwy3:["f1q8l70w","f61n433"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B4j52fo:"fre7gi1",Bekrc4i:["f1358rze","f1rvrf73"],Bn0qgzm:"fqdk4by",ibv6hh:["f1rvrf73","f1358rze"],Bceei9c:"f1k6fduh",mc9l5x:"f13qh94s",Bnnss6s:"fi64zpg",Bxotwcr:"f1u07yai",Budl1dq:"frn2hmy",wkccdc:"f1olsevy",Bahqtrf:"fk6fouc",Bg96gwp:"f1i3iumi",oeaueh:"f1s6fcnf",qhf8xq:"f10pi13n",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",B9bfxx9:"f1cxpek8"},horizontal:{Brf1p80:"f4d9j23"},vertical:{Brf1p80:"f1s9ku6b"},smallHorizontal:{i8kkvl:"f14mj54c",z8tnut:"fp2oml8",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"f1tdddsa",uwmqm3:["fk8j09s","fdw0yi8"]},smallVertical:{i8kkvl:"f14mj54c",z8tnut:"fclwglc",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"fywfov9",uwmqm3:["fk8j09s","fdw0yi8"]},mediumHorizontal:{i8kkvl:"f1rjii52",z8tnut:"f5yzyt",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"fx3omr",uwmqm3:["f1ng84yb","f11gcy0p"]},mediumVertical:{i8kkvl:"f1rjii52",z8tnut:"fp2oml8",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"f1tdddsa",uwmqm3:["f1ng84yb","f11gcy0p"]},largeHorizontal:{i8kkvl:"f1rjii52",z8tnut:"fikn0iw",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"fdxej3c",uwmqm3:["f1ng84yb","f11gcy0p"]},largeVertical:{i8kkvl:"f1rjii52",z8tnut:"f1kwiid1",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"f5b47ha",uwmqm3:["f1ng84yb","f11gcy0p"]},transparent:{De3pzq:"f1c21dwh",Jwef8y:"fjxutwb",ecr2s2:"fophhak",Bptxc3x:"fmmjozx",B076xvk:"f1mfqf41",q9r9w5:"f10aiid4",cl4aha:"fpkze5g",Bk452zc:"f149wc3x",a4hkcw:"fjioou7"},subtle:{De3pzq:"fhovq9v",Jwef8y:"f1t94bn6",ecr2s2:"f1wfn5kd",Bptxc3x:"fmmjozx",B076xvk:"f1mfqf41",q9r9w5:"f10aiid4",cl4aha:"fpkze5g",Bk452zc:"f149wc3x",a4hkcw:"fjioou7"},disabled:{De3pzq:"f1c21dwh",Bptxc3x:"fato7r6",cl4aha:"fao1bnu",Bceei9c:"fdrzuqr"},selected:{Bptxc3x:"f1cadz5z",B076xvk:"f1ck17l",q9r9w5:"f42ak0g",cl4aha:"ffplhdr",Bk452zc:"ffth601",a4hkcw:"fhklyu5"}},{d:[".f122n59{align-items:center;}",".fwhevhj{border-top-color:none;}",".f61n433{border-right-color:none;}",".f1q8l70w{border-left-color:none;}",".fv1dfc8{border-bottom-color:none;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".fre7gi1{border-top-width:0;}",".f1358rze{border-right-width:0;}",".f1rvrf73{border-left-width:0;}",".fqdk4by{border-bottom-width:0;}",".f1k6fduh{cursor:pointer;}",".f13qh94s{display:grid;}",".fi64zpg{flex-shrink:0;}",".f1u07yai{grid-auto-flow:column;}",".frn2hmy{grid-template-columns:auto;}",".f1olsevy{grid-template-rows:auto;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1s6fcnf{outline-style:none;}",".f10pi13n{position:relative;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".f1cxpek8{text-transform:none;}",".f4d9j23{justify-content:center;}",".f1s9ku6b{justify-content:start;}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",".fp2oml8{padding-top:var(--spacingVerticalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f1tdddsa{padding-bottom:var(--spacingVerticalSNudge);}",".fclwglc{padding-top:var(--spacingVerticalXXS);}",".fywfov9{padding-bottom:var(--spacingVerticalXXS);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".f5yzyt{padding-top:var(--spacingVerticalM);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".fx3omr{padding-bottom:var(--spacingVerticalM);}",".fikn0iw{padding-top:var(--spacingVerticalL);}",".fdxej3c{padding-bottom:var(--spacingVerticalL);}",".f1kwiid1{padding-top:var(--spacingVerticalS);}",".f5b47ha{padding-bottom:var(--spacingVerticalS);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fmmjozx .fui-Tab__icon{color:var(--colorNeutralForeground2);}",".fpkze5g .fui-Tab__content{color:var(--colorNeutralForeground2);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fato7r6 .fui-Tab__icon{color:var(--colorNeutralForegroundDisabled);}",".fao1bnu .fui-Tab__content{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f1cadz5z .fui-Tab__icon{color:var(--colorCompoundBrandForeground1);}",".ffplhdr .fui-Tab__content{color:var(--colorNeutralForeground1);}"],h:[".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".f1mfqf41:hover .fui-Tab__icon{color:var(--colorNeutralForeground2Hover);}",".f149wc3x:hover .fui-Tab__content{color:var(--colorNeutralForeground2Hover);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".f1ck17l:hover .fui-Tab__icon{color:var(--colorCompoundBrandForeground1Hover);}",".ffth601:hover .fui-Tab__content{color:var(--colorNeutralForeground1Hover);}"],a:[".fophhak:active{background-color:var(--colorTransparentBackgroundPressed);}",".f10aiid4:active .fui-Tab__icon{color:var(--colorNeutralForeground2Pressed);}",".fjioou7:active .fui-Tab__content{color:var(--colorNeutralForeground2Pressed);}",".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}",".f42ak0g:active .fui-Tab__icon{color:var(--colorCompoundBrandForeground1Pressed);}",".fhklyu5:active .fui-Tab__content{color:var(--colorNeutralForeground1Pressed);}"]}),O8e=wt({base:{B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bn4voq9:"f1p7hgxw",Bfpq7zp:"f1way5bb",g9k6zt:"f9znhxp",j6ew2k:["fqa318h","fqa318h"],Bhxq17a:"f1vjpng2"}},{d:[".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}",".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}",".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}",".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}",".f1p7hgxw[data-fui-focus-visible]{outline-width:var(--strokeWidthThick);}",".f1way5bb[data-fui-focus-visible]{outline-color:transparent;}",".f9znhxp[data-fui-focus-visible]{outline-style:solid;}",".fqa318h[data-fui-focus-visible]{box-shadow:var(--shadow4),0 0 0 var(--strokeWidthThick) var(--colorStrokeFocus2);}",".f1vjpng2[data-fui-focus-visible]{z-index:1;}"]}),D8e=wt({base:{az7l2e:"fhw179n",Bv4n3vi:["f10y1uxy","f6aiuy0"],vqofr:["f6aiuy0","f10y1uxy"],B0uxbk8:["f1kfpfnu","f1dx5wco"],Bgqb9hq:["f1dx5wco","f1kfpfnu"],amg5m6:"f1kmhr4c",zkfqfm:"fl1ydde",Bkydozb:"f1y7maxz",vzq8l0:["f105swax","fscdmel"],Bka2azo:["fscdmel","f105swax"],Br4ovkg:["f1tkcw1w","f1u11x8o"],csmgbd:["f1u11x8o","f1tkcw1w"],y36c18:"f16cxu0",B1ctymy:"f1nwgacf",Bgvrrv0:"f15ovonk",ddr6p5:"fvje46l"},disabled:{az7l2e:"f1ut20fw",Bkydozb:"fhrzcfn"},smallHorizontal:{lawp4y:"fchca7p",Baz25je:"f1r53b5e",Fbdkly:["f1s6rxz5","fo35v8s"],mdwyqc:["fo35v8s","f1s6rxz5"]},smallVertical:{lawp4y:"fze4zud",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"fdp32p8",Ccq8qp:"f1aij3q"},mediumHorizontal:{lawp4y:"fchca7p",Baz25je:"f1s2r9ax",Fbdkly:["f1o0nnkk","fxb7rol"],mdwyqc:["fxb7rol","f1o0nnkk"]},mediumVertical:{lawp4y:"f17jracn",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"f117lcb2",Ccq8qp:"f1aij3q"},largeHorizontal:{lawp4y:"fchca7p",Baz25je:"f1s2r9ax",Fbdkly:["f1o0nnkk","fxb7rol"],mdwyqc:["fxb7rol","f1o0nnkk"]},largeVertical:{lawp4y:"fel9d3z",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"f6vqlre",Ccq8qp:"f1aij3q"}},{h:[".fhw179n:hover::before{background-color:var(--colorNeutralStroke1Hover);}",".f10y1uxy:hover::before{border-bottom-right-radius:var(--borderRadiusCircular);}",".f6aiuy0:hover::before{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1kfpfnu:hover::before{border-top-right-radius:var(--borderRadiusCircular);}",".f1dx5wco:hover::before{border-top-left-radius:var(--borderRadiusCircular);}",'.f1kmhr4c:hover::before{content:"";}',".fl1ydde:hover::before{position:absolute;}",".f1ut20fw:hover::before{background-color:var(--colorTransparentStroke);}"],a:[".f1y7maxz:active::before{background-color:var(--colorNeutralStroke1Pressed);}",".f105swax:active::before{border-bottom-right-radius:var(--borderRadiusCircular);}",".fscdmel:active::before{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1tkcw1w:active::before{border-top-right-radius:var(--borderRadiusCircular);}",".f1u11x8o:active::before{border-top-left-radius:var(--borderRadiusCircular);}",'.f16cxu0:active::before{content:"";}',".f1nwgacf:active::before{position:absolute;}",".fhrzcfn:active::before{background-color:var(--colorTransparentStroke);}"],m:[["@media (forced-colors: active){.f15ovonk:hover::before{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fvje46l:active::before{background-color:Highlight;}}",{m:"(forced-colors: active)"}]],d:[".fchca7p::before{bottom:0;}",".f1r53b5e::before{height:var(--strokeWidthThick);}",".f1s6rxz5::before{left:var(--spacingHorizontalSNudge);}",".fo35v8s::before{right:var(--spacingHorizontalSNudge);}",".fze4zud::before{bottom:var(--spacingVerticalXS);}",".f1fzr1x6::before{left:0;}",".f1f351id::before{right:0;}",".fdp32p8::before{top:var(--spacingVerticalXS);}",".f1aij3q::before{width:var(--strokeWidthThicker);}",".f1s2r9ax::before{height:var(--strokeWidthThicker);}",".f1o0nnkk::before{left:var(--spacingHorizontalM);}",".fxb7rol::before{right:var(--spacingHorizontalM);}",".f17jracn::before{bottom:var(--spacingVerticalS);}",".f117lcb2::before{top:var(--spacingVerticalS);}",".fel9d3z::before{bottom:var(--spacingVerticalMNudge);}",".f6vqlre::before{top:var(--spacingVerticalMNudge);}"]}),F8e=wt({base:{Bjyk6c5:"f1rp0jgh",B3778ie:["fprarqb","f14vs0nd"],d9w3h3:["f14vs0nd","fprarqb"],Bl18szs:["f1gtfqs9","f18zvfd9"],B4j8arr:["f18zvfd9","f1gtfqs9"],Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",t2ki1e:"ffmd2fr"},selected:{Bjyk6c5:"f1ksivud",Glksuk:"f1eytvvh",Blzl0y7:"fuaa9s",f7digc:"fy7ktjt",Biqphg1:"f16tp0gf",Bntoloa:"fj0yp7j"},disabled:{Bjyk6c5:"f13lkzet"},smallHorizontal:{By385i5:"fo72kxq",Dlnsje:"f9bb2ob",Eqx8gd:["f1q70ajw","f18rbzdx"],B1piin3:["f18rbzdx","f1q70ajw"]},smallVertical:{By385i5:"fqbue9b",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"fk1klkt",a2br6o:"f1o25lip"},mediumHorizontal:{By385i5:"fo72kxq",Dlnsje:"f1vx7lu8",Eqx8gd:["fna7m5n","f1oxpfwv"],B1piin3:["f1oxpfwv","fna7m5n"]},mediumVertical:{By385i5:"fipylg0",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"fqchiol",a2br6o:"f1o25lip"},largeHorizontal:{By385i5:"fo72kxq",Dlnsje:"f1vx7lu8",Eqx8gd:["fna7m5n","f1oxpfwv"],B1piin3:["f1oxpfwv","fna7m5n"]},largeVertical:{By385i5:"f1w7dm5g",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"f1p6em4m",a2br6o:"f1o25lip"}},{d:[".f1rp0jgh::after{background-color:var(--colorTransparentStroke);}",".fprarqb::after{border-bottom-right-radius:var(--borderRadiusCircular);}",".f14vs0nd::after{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1gtfqs9::after{border-top-right-radius:var(--borderRadiusCircular);}",".f18zvfd9::after{border-top-left-radius:var(--borderRadiusCircular);}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".ffmd2fr::after{z-index:1;}",".f1ksivud::after{background-color:var(--colorCompoundBrandStroke);}",".f13lkzet::after{background-color:var(--colorNeutralForegroundDisabled);}",".fo72kxq::after{bottom:0;}",".f9bb2ob::after{height:var(--strokeWidthThick);}",".f1q70ajw::after{left:var(--spacingHorizontalSNudge);}",".f18rbzdx::after{right:var(--spacingHorizontalSNudge);}",".fqbue9b::after{bottom:var(--spacingVerticalXS);}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".fk1klkt::after{top:var(--spacingVerticalXS);}",".f1o25lip::after{width:var(--strokeWidthThicker);}",".f1vx7lu8::after{height:var(--strokeWidthThicker);}",".fna7m5n::after{left:var(--spacingHorizontalM);}",".f1oxpfwv::after{right:var(--spacingHorizontalM);}",".fipylg0::after{bottom:var(--spacingVerticalS);}",".fqchiol::after{top:var(--spacingVerticalS);}",".f1w7dm5g::after{bottom:var(--spacingVerticalMNudge);}",".f1p6em4m::after{top:var(--spacingVerticalMNudge);}"],h:[".f1eytvvh:hover::after{background-color:var(--colorCompoundBrandStrokeHover);}"],a:[".fuaa9s:active::after{background-color:var(--colorCompoundBrandStrokePressed);}"],m:[["@media (forced-colors: active){.fy7ktjt::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16tp0gf:hover::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fj0yp7j:active::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}]]}),B8e=wt({base:{Br312pm:"fwpfdsa",Ijaq50:"f16hsg94",Bt984gj:"f122n59",mc9l5x:"ftuwxu6",Brf1p80:"f4d9j23",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",D0sxk3:"f16u1re",t6yez3:"f8bsbmo"},small:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},medium:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},large:{Be2twd7:"f1rt2boy",Bqenvij:"frvgh55",a9b677:"fq4mcun"},selected:{D0sxk3:"fxoiby5",t6yez3:"f15q0o9g"}},{d:[".fwpfdsa{grid-column-start:1;}",".f16hsg94{grid-row-start:1;}",".f122n59{align-items:center;}",".ftuwxu6{display:inline-flex;}",".f4d9j23{justify-content:center;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".f16u1re .fui-Icon-filled{display:none;}",".f8bsbmo .fui-Icon-regular{display:inline;}",".fe5j1ua{font-size:20px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".f1rt2boy{font-size:24px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".fxoiby5 .fui-Icon-filled{display:inline;}",".f15q0o9g .fui-Icon-regular{display:none;}"]}),M8e=wt({base:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",z8tnut:"fztplxc",z189sj:["ffczdla","fgiv446"],Byoj8tv:"f9g1xly",uwmqm3:["fgiv446","ffczdla"]},selected:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"fl43uef",Bg96gwp:"f1i3iumi"},large:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k"},largeSelected:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},noIconBefore:{Br312pm:"fwpfdsa",Ijaq50:"f16hsg94"},iconBefore:{Br312pm:"fd46tj4",Ijaq50:"f16hsg94"},placeholder:{Bcdw1i0:"fd7fpy0"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".fztplxc{padding-top:var(--spacingVerticalNone);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".f9g1xly{padding-bottom:var(--spacingVerticalNone);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fwpfdsa{grid-column-start:1;}",".f16hsg94{grid-row-start:1;}",".fd46tj4{grid-column-start:2;}",".fd7fpy0{visibility:hidden;}"]}),L8e=e=>{const t=R8e(),r=O8e(),n=D8e(),o=F8e(),i=B8e(),s=M8e(),{appearance:a,disabled:u,selected:l,size:c,vertical:f}=e;return e.root.className=Xe(lN.root,t.base,f?t.vertical:t.horizontal,c==="small"&&(f?t.smallVertical:t.smallHorizontal),c==="medium"&&(f?t.mediumVertical:t.mediumHorizontal),c==="large"&&(f?t.largeVertical:t.largeHorizontal),r.base,!u&&a==="subtle"&&t.subtle,!u&&a==="transparent"&&t.transparent,!u&&l&&t.selected,u&&t.disabled,n.base,c==="small"&&(f?n.smallVertical:n.smallHorizontal),c==="medium"&&(f?n.mediumVertical:n.mediumHorizontal),c==="large"&&(f?n.largeVertical:n.largeHorizontal),u&&n.disabled,l&&o.base,l&&!u&&o.selected,l&&c==="small"&&(f?o.smallVertical:o.smallHorizontal),l&&c==="medium"&&(f?o.mediumVertical:o.mediumHorizontal),l&&c==="large"&&(f?o.largeVertical:o.largeHorizontal),l&&u&&o.disabled,e.root.className),e.icon&&(e.icon.className=Xe(lN.icon,i.base,i[c],l&&i.selected,e.icon.className)),e.contentReservedSpace&&(e.contentReservedSpace.className=Xe(C8e.content,s.base,c==="large"?s.largeSelected:s.selected,e.icon?s.iconBefore:s.noIconBefore,s.placeholder,e.content.className),e.contentReservedSpaceClassName=e.contentReservedSpace.className),e.content.className=Xe(lN.content,s.base,c==="large"&&s.large,l&&(c==="large"?s.largeSelected:s.selected),e.icon?s.iconBefore:s.noIconBefore,e.content.className),N8e(e),e},fB=k.forwardRef((e,t)=>{const r=A8e(e,t);return L8e(r),bn("useTabStyles_unstable")(r),T8e(r)});fB.displayName="Tab";const j8e=(e,t)=>{const{appearance:r="transparent",reserveSelectedTabSpace:n=!0,disabled:o=!1,onTabSelect:i,selectTabOnFocus:s=!1,size:a="medium",vertical:u=!1}=e,l=k.useRef(null),c=Wae({circular:!0,axis:u?"vertical":"horizontal",memorizeCurrent:!0}),[f,d]=Ef({state:e.selectedValue,defaultState:e.defaultSelectedValue,initialState:void 0}),h=k.useRef(void 0),g=k.useRef(void 0);k.useEffect(()=>{g.current=h.current,h.current=f},[f]);const v=ar((b,A)=>{d(A.value),i==null||i(b,A)}),y=k.useRef({}),E=ar(b=>{y.current[JSON.stringify(b.value)]=b}),_=ar(b=>{delete y.current[JSON.stringify(b.value)]}),S=k.useCallback(()=>({selectedValue:h.current,previousSelectedValue:g.current,registeredTabs:y.current}),[]);return{components:{root:"div"},root:Er(yn("div",{ref:di(t,l),role:"tablist","aria-orientation":u?"vertical":"horizontal",...c,...e}),{elementType:"div"}),appearance:r,reserveSelectedTabSpace:n,disabled:o,selectTabOnFocus:s,selectedValue:f,size:a,vertical:u,onRegister:E,onUnregister:_,onSelect:v,getRegisteredTabs:S}},z8e=(e,t)=>nt(e.root,{children:nt(k8e,{value:t.tabList,children:e.root.children})}),H8e={root:"fui-TabList"},$8e=wt({root:{mc9l5x:"f22iagw",Beiy3e4:"f1063pyq",Bnnss6s:"fi64zpg",Eh141a:"flvyvdh",qhf8xq:"f10pi13n"},horizontal:{Bt984gj:"f1q9h2pe",Beiy3e4:"f1063pyq"},vertical:{Bt984gj:"f1q9h2pe",Beiy3e4:"f1vx9l62"}},{d:[".f22iagw{display:flex;}",".f1063pyq{flex-direction:row;}",".fi64zpg{flex-shrink:0;}",".flvyvdh{flex-wrap:nowrap;}",".f10pi13n{position:relative;}",".f1q9h2pe{align-items:stretch;}",".f1vx9l62{flex-direction:column;}"]}),P8e=e=>{const{vertical:t}=e,r=$8e();return e.root.className=Xe(H8e.root,r.root,t?r.vertical:r.horizontal,e.root.className),e};function q8e(e){const{appearance:t,reserveSelectedTabSpace:r,disabled:n,selectTabOnFocus:o,selectedValue:i,onRegister:s,onUnregister:a,onSelect:u,getRegisteredTabs:l,size:c,vertical:f}=e;return{tabList:{appearance:t,reserveSelectedTabSpace:r,disabled:n,selectTabOnFocus:o,selectedValue:i,onSelect:u,onRegister:s,onUnregister:a,getRegisteredTabs:l,size:c,vertical:f}}}const Pue=k.forwardRef((e,t)=>{const r=j8e(e,t),n=q8e(r);return P8e(r),bn("useTabListStyles_unstable")(r),z8e(r,n)});Pue.displayName="TabList";const rh="__fluentDisableScrollElement";function W8e(){const{targetDocument:e}=Na();return k.useCallback(()=>{if(e)return K8e(e.body)},[e])}function K8e(e){var t;const{clientWidth:r}=e.ownerDocument.documentElement;var n;const o=(n=(t=e.ownerDocument.defaultView)===null||t===void 0?void 0:t.innerWidth)!==null&&n!==void 0?n:0;return G8e(e),e[rh].count===0&&(e.style.overflow="hidden",e.style.paddingRight=`${o-r}px`),e[rh].count++,()=>{e[rh].count--,e[rh].count===0&&(e.style.overflow=e[rh].previousOverflowStyle,e.style.paddingRight=e[rh].previousPaddingRightStyle)}}function G8e(e){var t,r,n;(n=(t=e)[r=rh])!==null&&n!==void 0||(t[r]={count:0,previousOverflowStyle:e.style.overflow,previousPaddingRightStyle:e.style.paddingRight})}function V8e(e,t){const{findFirstFocusable:r}=Kae(),{targetDocument:n}=Na(),o=k.useRef(null);return k.useEffect(()=>{if(!e)return;const i=o.current&&r(o.current);if(i)i.focus();else{var s;(s=o.current)===null||s===void 0||s.focus()}},[r,e,t,n]),o}const U8e={open:!1,inertTrapFocus:!1,modalType:"modal",isNestedDialog:!1,dialogRef:{current:null},requestOpenChange(){}},O8=hv(void 0),Y8e=O8.Provider,ef=e=>Ko(O8,(t=U8e)=>e(t)),X8e=!1,que=k.createContext(void 0),Wue=que.Provider,Q8e=()=>{var e;return(e=k.useContext(que))!==null&&e!==void 0?e:X8e},Z8e=e=>{const{children:t,modalType:r="modal",onOpenChange:n,inertTrapFocus:o=!1}=e,[i,s]=J8e(t),[a,u]=Ef({state:e.open,defaultState:e.defaultOpen,initialState:!1}),l=ar(v=>{n==null||n(v.event,v),v.event.isDefaultPrevented()||u(v.open)}),c=V8e(a,r),f=W8e(),d=!!(a&&r!=="non-modal");ic(()=>{if(d)return f()},[f,d]);const{modalAttributes:h,triggerAttributes:g}=Nx({trapFocus:r!=="non-modal",legacyTrapFocus:!o});return{components:{backdrop:"div"},inertTrapFocus:o,open:a,modalType:r,content:s,trigger:i,requestOpenChange:l,dialogTitleId:Ia("dialog-title-"),isNestedDialog:g8(O8),dialogRef:c,modalAttributes:r!=="non-modal"?h:void 0,triggerAttributes:g}};function J8e(e){const t=k.Children.toArray(e);switch(t.length){case 2:return t;case 1:return[void 0,t[0]];default:return[void 0,void 0]}}function _o(){return _o=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}function dB(e,t){return dB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},dB(e,t)}function F8(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,dB(e,t)}var Kue={exports:{}},e7e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",t7e=e7e,r7e=t7e;function Gue(){}function Vue(){}Vue.resetWarningCache=Gue;var n7e=function(){function e(n,o,i,s,a,u){if(u!==r7e){var l=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 l.name="Invariant Violation",l}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Vue,resetWarningCache:Gue};return r.PropTypes=r,r};Kue.exports=n7e();var o7e=Kue.exports;const Br=Mf(o7e),CK={disabled:!1},Uue=re.createContext(null);var i7e=function(t){return t.scrollTop},iy="unmounted",nh="exited",oh="entering",l0="entered",hB="exiting",zf=function(e){F8(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var s=o,a=s&&!s.isMounting?n.enter:n.appear,u;return i.appearStatus=null,n.in?a?(u=nh,i.appearStatus=oh):u=l0:n.unmountOnExit||n.mountOnEnter?u=iy:u=nh,i.state={status:u},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===iy?{status:nh}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==oh&&s!==l0&&(i=oh):(s===oh||s===l0)&&(i=hB)}this.updateStatus(!1,i)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,i,s,a;return i=s=a=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,a=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:a}},r.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===oh){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:ty.findDOMNode(this);s&&i7e(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===nh&&this.setState({status:iy})},r.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,u=this.props.nodeRef?[a]:[ty.findDOMNode(this),a],l=u[0],c=u[1],f=this.getTimeouts(),d=a?f.appear:f.enter;if(!o&&!s||CK.disabled){this.safeSetState({status:l0},function(){i.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:oh},function(){i.props.onEntering(l,c),i.onTransitionEnd(d,function(){i.safeSetState({status:l0},function(){i.props.onEntered(l,c)})})})},r.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:ty.findDOMNode(this);if(!i||CK.disabled){this.safeSetState({status:nh},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:hB},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:nh},function(){o.props.onExited(a)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},r.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},r.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:ty.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],l=u[0],c=u[1];this.props.addEndListener(l,c)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===iy)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=D8(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return re.createElement(Uue.Provider,{value:null},typeof s=="function"?s(o,a):re.cloneElement(re.Children.only(s),a))},t}(re.Component);zf.contextType=Uue;zf.propTypes={};function qp(){}zf.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:qp,onEntering:qp,onEntered:qp,onExit:qp,onExiting:qp,onExited:qp};zf.UNMOUNTED=iy;zf.EXITED=nh;zf.ENTERING=oh;zf.ENTERED=l0;zf.EXITING=hB;const s7e=zf;function RK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}const a7e=void 0,Yue=k.createContext(void 0),u7e=Yue.Provider,l7e=()=>{var e;return(e=k.useContext(Yue))!==null&&e!==void 0?e:a7e},c7e=(e,t)=>{const{content:r,trigger:n}=e;return nt(Y8e,{value:t.dialog,children:Un(Wue,{value:t.dialogSurface,children:[n,nt(s7e,{mountOnEnter:!0,unmountOnExit:!0,in:e.open,nodeRef:e.dialogRef,appear:!0,timeout:250,children:o=>nt(u7e,{value:o,children:r})})]})})};function f7e(e){const{modalType:t,open:r,dialogRef:n,dialogTitleId:o,isNestedDialog:i,inertTrapFocus:s,requestOpenChange:a,modalAttributes:u,triggerAttributes:l}=e;return{dialog:{open:r,modalType:t,dialogRef:n,dialogTitleId:o,isNestedDialog:i,inertTrapFocus:s,modalAttributes:u,triggerAttributes:l,requestOpenChange:a},dialogSurface:!1}}const B8=k.memo(e=>{const t=Z8e(e),r=f7e(t);return c7e(t,r)});B8.displayName="Dialog";const d7e=e=>{const t=Q8e(),{children:r,disableButtonEnhancement:n=!1,action:o=t?"close":"open"}=e,i=Tx(r),s=ef(f=>f.requestOpenChange),{triggerAttributes:a}=Nx(),u=ar(f=>{var d,h;i==null||(d=(h=i.props).onClick)===null||d===void 0||d.call(h,f),f.isDefaultPrevented()||s({event:f,type:"triggerClick",open:o==="open"})}),l={...i==null?void 0:i.props,ref:i==null?void 0:i.ref,onClick:u,...a},c=$b((i==null?void 0:i.type)==="button"||(i==null?void 0:i.type)==="a"?i.type:"div",{...l,type:"button"});return{children:l8(r,n?l:c)}},h7e=e=>e.children,Q_=e=>{const t=d7e(e);return h7e(t)};Q_.displayName="DialogTrigger";Q_.isFluentTriggerComponent=!0;const p7e=(e,t)=>{const{position:r="end",fluid:n=!1}=e;return{components:{root:"div"},root:Er(yn("div",{ref:t,...e}),{elementType:"div"}),position:r,fluid:n}},g7e=e=>nt(e.root,{}),v7e={root:"fui-DialogActions"},m7e=Tn("r78gbj",null,{r:[".r78gbj{column-gap:8px;row-gap:8px;height:fit-content;box-sizing:border-box;display:flex;grid-row-start:3;grid-row-end:3;}"],s:["@media screen and (max-width: 480px){.r78gbj{flex-direction:column;justify-self:stretch;}}"]}),y7e=wt({gridPositionEnd:{Bdqf98w:"f1a7i8kp",Br312pm:"fd46tj4",Bw0ie65:"fsyjsko",B6n781s:"f1f41i0t",Bv5d0be:"f1jaqex3",v4ugfu:"f2ao6jk"},gridPositionStart:{Bdqf98w:"fsxvdwy",Br312pm:"fwpfdsa",Bw0ie65:"f1e2fz10",Bojbm9c:"f11ihkml",Bv5d0be:"fce5bvx",v4ugfu:"f2ao6jk"},fluidStart:{Bw0ie65:"fsyjsko"},fluidEnd:{Br312pm:"fwpfdsa"}},{d:[".f1a7i8kp{justify-self:end;}",".fd46tj4{grid-column-start:2;}",".fsyjsko{grid-column-end:4;}",".fsxvdwy{justify-self:start;}",".fwpfdsa{grid-column-start:1;}",".f1e2fz10{grid-column-end:2;}"],m:[["@media screen and (max-width: 480px){.f1f41i0t{grid-column-start:1;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f1jaqex3{grid-row-start:4;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f2ao6jk{grid-row-end:auto;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f11ihkml{grid-column-end:4;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.fce5bvx{grid-row-start:3;}}",{m:"screen and (max-width: 480px)"}]]}),b7e=e=>{const t=m7e(),r=y7e();return e.root.className=Xe(v7e.root,t,e.position==="start"&&r.gridPositionStart,e.position==="end"&&r.gridPositionEnd,e.fluid&&e.position==="start"&&r.fluidStart,e.fluid&&e.position==="end"&&r.fluidEnd,e.root.className),e},M8=k.forwardRef((e,t)=>{const r=p7e(e,t);return b7e(r),bn("useDialogActionsStyles_unstable")(r),g7e(r)});M8.displayName="DialogActions";const _7e=(e,t)=>{var r;return{components:{root:"div"},root:Er(yn((r=e.as)!==null&&r!==void 0?r:"div",{ref:t,...e}),{elementType:"div"})}},E7e=e=>nt(e.root,{}),S7e={root:"fui-DialogBody"},w7e=Tn("r71plkv",null,{r:[".r71plkv{overflow-x:unset;overflow-y:unset;column-gap:8px;row-gap:8px;display:grid;max-height:calc(100vh - 2 * 24px);box-sizing:border-box;grid-template-rows:auto 1fr;grid-template-columns:1fr 1fr auto;}"],s:["@media screen and (max-width: 480px){.r71plkv{max-width:100vw;grid-template-rows:auto 1fr auto;}}"]}),k7e=e=>{const t=w7e();return e.root.className=Xe(S7e.root,t,e.root.className),e},L8=k.forwardRef((e,t)=>{const r=_7e(e,t);return k7e(r),bn("useDialogBodyStyles_unstable")(r),E7e(r)});L8.displayName="DialogBody";const OK={root:"fui-DialogTitle",action:"fui-DialogTitle__action"},A7e=Tn("rztv7rx","rt0yqbx",[".rztv7rx{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase500);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase500);margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;grid-row-start:1;grid-row-end:1;grid-column-start:1;grid-column-end:3;}",".rt0yqbx{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase500);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase500);margin-top:0;margin-left:0;margin-bottom:0;margin-right:0;grid-row-start:1;grid-row-end:1;grid-column-start:1;grid-column-end:3;}"]),T7e=wt({rootWithoutAction:{Bw0ie65:"fsyjsko"}},{d:[".fsyjsko{grid-column-end:4;}"]}),x7e=Tn("r13kcrze",null,[".r13kcrze{grid-row-start:1;grid-row-end:1;grid-column-start:3;justify-self:end;align-self:start;}"]),I7e=Tn("r51tj","rgre5d",{r:[".r51tj{overflow-x:visible;overflow-y:visible;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0;border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;position:relative;box-sizing:content-box;background-color:inherit;color:inherit;font-family:inherit;font-size:inherit;cursor:pointer;line-height:0;-webkit-appearance:button;text-align:unset;}",".r51tj:focus{outline-style:none;}",".r51tj:focus-visible{outline-style:none;}",".r51tj[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r51tj[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rgre5d{overflow-x:visible;overflow-y:visible;padding-top:0;padding-left:0;padding-bottom:0;padding-right:0;border-top-style:none;border-left-style:none;border-bottom-style:none;border-right-style:none;position:relative;box-sizing:content-box;background-color:inherit;color:inherit;font-family:inherit;font-size:inherit;cursor:pointer;line-height:0;-webkit-appearance:button;text-align:unset;}",".rgre5d:focus{outline-style:none;}",".rgre5d:focus-visible{outline-style:none;}",".rgre5d[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rgre5d[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r51tj[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.rgre5d[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),N7e=e=>{const t=A7e(),r=x7e(),n=T7e();return e.root.className=Xe(OK.root,t,!e.action&&n.rootWithoutAction,e.root.className),e.action&&(e.action.className=Xe(OK.action,r,e.action.className)),e},C7e=(e,t)=>{const{action:r}=e,n=ef(i=>i.modalType),o=I7e();return{components:{root:"h2",action:"div"},root:Er(yn("h2",{ref:t,id:ef(i=>i.dialogTitleId),...e}),{elementType:"h2"}),action:un(r,{renderByDefault:n==="non-modal",defaultProps:{children:k.createElement(Q_,{disableButtonEnhancement:!0,action:"close"},k.createElement("button",{type:"button",className:o,"aria-label":"close"},k.createElement(bae,null)))},elementType:"div"})}},R7e=e=>Un(k.Fragment,{children:[nt(e.root,{children:e.root.children}),e.action&&nt(e.action,{})]}),j8=k.forwardRef((e,t)=>{const r=C7e(e,t);return N7e(r),bn("useDialogTitleStyles_unstable")(r),R7e(r)});j8.displayName="DialogTitle";const O7e=(e,t)=>{const r=ef(d=>d.modalType),n=ef(d=>d.isNestedDialog),o=l7e(),i=ef(d=>d.modalAttributes),s=ef(d=>d.dialogRef),a=ef(d=>d.requestOpenChange),u=ef(d=>d.dialogTitleId),l=ar(d=>{if(s8(e.backdrop)){var h,g;(h=(g=e.backdrop).onClick)===null||h===void 0||h.call(g,d)}r==="modal"&&!d.isDefaultPrevented()&&a({event:d,open:!1,type:"backdropClick"})}),c=ar(d=>{var h;(h=e.onKeyDown)===null||h===void 0||h.call(e,d),d.key===Rx&&!d.isDefaultPrevented()&&(a({event:d,open:!1,type:"escapeKeyDown"}),d.preventDefault())}),f=un(e.backdrop,{renderByDefault:r!=="non-modal",defaultProps:{"aria-hidden":"true"},elementType:"div"});return f&&(f.onClick=l),{components:{backdrop:"div",root:"div"},backdrop:f,isNestedDialog:n,transitionStatus:o,mountNode:e.mountNode,root:Er(yn("div",{tabIndex:-1,"aria-modal":r!=="non-modal",role:r==="alert"?"alertdialog":"dialog","aria-labelledby":e["aria-label"]?void 0:u,...e,...i,onKeyDown:c,ref:di(t,s)}),{elementType:"div"})}},D7e=(e,t)=>Un(Y_,{mountNode:e.mountNode,children:[e.backdrop&&nt(e.backdrop,{}),nt(Wue,{value:t.dialogSurface,children:nt(e.root,{})})]}),DK={root:"fui-DialogSurface",backdrop:"fui-DialogSurface__backdrop"},F7e=Tn("rhhzfde","r1n1tr5u",{r:[".rhhzfde{top:0;right:0;bottom:0;left:0;padding-top:24px;padding-right:24px;padding-bottom:24px;padding-left:24px;margin-top:auto;margin-right:auto;margin-bottom:auto;margin-left:auto;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;overflow-x:unset;overflow-y:unset;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-color:var(--colorTransparentStroke);border-right-color:var(--colorTransparentStroke);border-bottom-color:var(--colorTransparentStroke);border-left-color:var(--colorTransparentStroke);border-bottom-right-radius:var(--borderRadiusXLarge);border-bottom-left-radius:var(--borderRadiusXLarge);border-top-right-radius:var(--borderRadiusXLarge);border-top-left-radius:var(--borderRadiusXLarge);display:block;-webkit-user-select:unset;-moz-user-select:unset;-ms-user-select:unset;user-select:unset;visibility:unset;position:fixed;height:fit-content;max-width:600px;max-height:100vh;box-sizing:border-box;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);}",".rhhzfde:focus{outline-style:none;}",".rhhzfde:focus-visible{outline-style:none;}",".rhhzfde[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.rhhzfde[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r1n1tr5u{top:0;left:0;bottom:0;right:0;padding-top:24px;padding-left:24px;padding-bottom:24px;padding-right:24px;margin-top:auto;margin-left:auto;margin-bottom:auto;margin-right:auto;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;overflow-x:unset;overflow-y:unset;border-top-width:1px;border-left-width:1px;border-bottom-width:1px;border-right-width:1px;border-top-color:var(--colorTransparentStroke);border-left-color:var(--colorTransparentStroke);border-bottom-color:var(--colorTransparentStroke);border-right-color:var(--colorTransparentStroke);border-bottom-left-radius:var(--borderRadiusXLarge);border-bottom-right-radius:var(--borderRadiusXLarge);border-top-left-radius:var(--borderRadiusXLarge);border-top-right-radius:var(--borderRadiusXLarge);display:block;-webkit-user-select:unset;-moz-user-select:unset;-ms-user-select:unset;user-select:unset;visibility:unset;position:fixed;height:fit-content;max-width:600px;max-height:100vh;box-sizing:border-box;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);}",".r1n1tr5u:focus{outline-style:none;}",".r1n1tr5u:focus-visible{outline-style:none;}",".r1n1tr5u[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r1n1tr5u[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.rhhzfde[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media screen and (max-width: 480px){.rhhzfde{max-width:100vw;}}","@media (forced-colors: active){.r1n1tr5u[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}","@media screen and (max-width: 480px){.r1n1tr5u{max-width:100vw;}}"]}),B7e=wt({animated:{abs64n:"fk73vx1",B3o57yi:"fc397y7",Bmy1vo4:"f1b86uth",Bkqvd7p:"f18ad807",E5pizo:"f1yzz98r",Bz10aip:"f15ofi6c"},unmounted:{},entering:{},entered:{E5pizo:"f10nrhrw",Bz10aip:"f186d0ee",abs64n:"f5p0z4x"},idle:{},exiting:{Bkqvd7p:"f1mfizis"},exited:{}},{d:[".fk73vx1{opacity:0;}",".fc397y7{transition-duration:var(--durationGentle);}",".f1b86uth{transition-property:opacity,transform,box-shadow;}",".f18ad807{transition-timing-function:var(--curveDecelerateMid);}",".f1yzz98r{box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.1);}",".f15ofi6c{transform:scale(0.85) translateZ(0);}",".f10nrhrw{box-shadow:var(--shadow64);}",".f186d0ee{transform:scale(1) translateZ(0);}",".f5p0z4x{opacity:1;}",".f1mfizis{transition-timing-function:var(--curveAccelerateMin);}"]}),M7e=Tn("raidwwn","r17vltcu",[".raidwwn{top:0px;right:0px;bottom:0px;left:0px;background-color:rgba(0, 0, 0, 0.4);position:fixed;transition-duration:var(--durationGentle);transition-timing-function:var(--curveLinear);transition-property:opacity;will-change:opacity;opacity:0;}",".r17vltcu{top:0px;left:0px;bottom:0px;right:0px;background-color:rgba(0, 0, 0, 0.4);position:fixed;transition-duration:var(--durationGentle);transition-timing-function:var(--curveLinear);transition-property:opacity;will-change:opacity;opacity:0;}"]),L7e=wt({nestedDialogBackdrop:{De3pzq:"f1c21dwh"},unmounted:{},entering:{},entered:{abs64n:"f5p0z4x"},idle:{},exiting:{Bkqvd7p:"f1mfizis"},exited:{}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f5p0z4x{opacity:1;}",".f1mfizis{transition-timing-function:var(--curveAccelerateMin);}"]}),j7e=e=>{const{isNestedDialog:t,root:r,backdrop:n,transitionStatus:o}=e,i=F7e(),s=B7e(),a=M7e(),u=L7e();return r.className=Xe(DK.root,i,o&&s.animated,o&&s[o],r.className),n&&(n.className=Xe(DK.backdrop,a,t&&u.nestedDialogBackdrop,o&&u[o],n.className)),e};function z7e(e){return{dialogSurface:!0}}const z8=k.forwardRef((e,t)=>{const r=O7e(e,t),n=z7e();return j7e(r),bn("useDialogSurfaceStyles_unstable")(r),D7e(r,n)});z8.displayName="DialogSurface";const H7e=(e,t)=>{var r;return{components:{root:"div"},root:Er(yn((r=e.as)!==null&&r!==void 0?r:"div",{ref:t,...e}),{elementType:"div"})}},$7e=e=>nt(e.root,{}),P7e={root:"fui-DialogContent"},q7e=Tn("r1e0mpcm","r1equu0b",[".r1e0mpcm{padding-top:var(--strokeWidthThick);padding-right:var(--strokeWidthThick);padding-bottom:var(--strokeWidthThick);padding-left:var(--strokeWidthThick);margin-top:calc(var(--strokeWidthThick) * -1);margin-right:calc(var(--strokeWidthThick) * -1);margin-bottom:calc(var(--strokeWidthThick) * -1);margin-left:calc(var(--strokeWidthThick) * -1);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);overflow-y:auto;min-height:32px;box-sizing:border-box;grid-row-start:2;grid-row-end:2;grid-column-start:1;grid-column-end:4;}",".r1equu0b{padding-top:var(--strokeWidthThick);padding-left:var(--strokeWidthThick);padding-bottom:var(--strokeWidthThick);padding-right:var(--strokeWidthThick);margin-top:calc(var(--strokeWidthThick) * -1);margin-left:calc(var(--strokeWidthThick) * -1);margin-bottom:calc(var(--strokeWidthThick) * -1);margin-right:calc(var(--strokeWidthThick) * -1);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);overflow-y:auto;min-height:32px;box-sizing:border-box;grid-row-start:2;grid-row-end:2;grid-column-start:1;grid-column-end:4;}"]),W7e=e=>{const t=q7e();return e.root.className=Xe(P7e.root,t,e.root.className),e},H8=k.forwardRef((e,t)=>{const r=H7e(e,t);return W7e(r),bn("useDialogContentStyles_unstable")(r),$7e(r)});H8.displayName="DialogContent";const Xue=k.createContext(void 0),K7e={handleTagDismiss:()=>({}),size:"medium"};Xue.Provider;const G7e=()=>{var e;return(e=k.useContext(Xue))!==null&&e!==void 0?e:K7e},V7e={medium:28,small:20,"extra-small":16},U7e={rounded:"square",circular:"circular"},Y7e=(e,t)=>{const{handleTagDismiss:r,size:n}=G7e(),o=Ia("fui-Tag",e.id),{appearance:i="filled",disabled:s=!1,dismissible:a=!1,shape:u="rounded",size:l=n,value:c=o}=e,f=ar(g=>{var v;(v=e.onClick)===null||v===void 0||v.call(e,g),g.defaultPrevented||r==null||r(g,{value:c})}),d=ar(g=>{var v;e==null||(v=e.onKeyDown)===null||v===void 0||v.call(e,g),!g.defaultPrevented&&(g.key===PBe||g.key===$Be)&&(r==null||r(g,{value:c}))}),h=a?"button":"span";return{appearance:i,avatarShape:U7e[u],avatarSize:V7e[l],disabled:s,dismissible:a,shape:u,size:l,components:{root:h,media:"span",icon:"span",primaryText:"span",secondaryText:"span",dismissIcon:"span"},root:Er(yn(h,{ref:t,...e,id:o,...a&&{onClick:f,onKeyDown:d}}),{elementType:h}),media:un(e.media,{elementType:"span"}),icon:un(e.icon,{elementType:"span"}),primaryText:un(e.primaryText,{renderByDefault:!0,defaultProps:{children:e.children},elementType:"span"}),secondaryText:un(e.secondaryText,{elementType:"span"}),dismissIcon:un(e.dismissIcon,{renderByDefault:a,defaultProps:{children:k.createElement(gae,null),role:"img"},elementType:"span"})}},X7e=(e,t)=>Un(e.root,{children:[e.media&&nt(lMe,{value:t.avatar,children:nt(e.media,{})}),e.icon&&nt(e.icon,{}),e.primaryText&&nt(e.primaryText,{}),e.secondaryText&&nt(e.secondaryText,{}),e.dismissIcon&&e.dismissible&&nt(e.dismissIcon,{})]}),Wp={root:"fui-Tag",media:"fui-Tag__media",icon:"fui-Tag__icon",primaryText:"fui-Tag__primaryText",secondaryText:"fui-Tag__secondaryText",dismissIcon:"fui-Tag__dismissIcon"},Q7e=Tn("r1d3fbai","r89ofxt",{r:['.r1d3fbai{font-family:inherit;padding:0px;-webkit-appearance:button;-moz-appearance:button;-ms-appearance:button;appearance:button;text-align:unset;display:inline-grid;align-items:center;grid-template-areas:"media primary dismissIcon" "media secondary dismissIcon";box-sizing:border-box;width:fit-content;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusMedium);}',".r1d3fbai[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);outline-width:var(--strokeWidthThick);outline-style:solid;outline-color:var(--colorStrokeFocus2);}",'.r89ofxt{font-family:inherit;padding:0px;-webkit-appearance:button;-moz-appearance:button;-ms-appearance:button;appearance:button;text-align:unset;display:inline-grid;align-items:center;grid-template-areas:"media primary dismissIcon" "media secondary dismissIcon";box-sizing:border-box;width:fit-content;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusMedium);}',".r89ofxt[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);outline-width:var(--strokeWidthThick);outline-style:solid;outline-color:var(--colorStrokeFocus2);}"],s:['@media (forced-colors: active){.r1d3fbai{position:relative;}.r1d3fbai::before{content:"";border-top-width:var(--strokeWidthThin);border-top-style:solid;position:absolute;top:-1px;left:-1px;right:-1px;bottom:-1px;border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);}}','@media (forced-colors: active){.r89ofxt{position:relative;}.r89ofxt::before{content:"";border-top-width:var(--strokeWidthThin);border-top-style:solid;position:absolute;top:-1px;right:-1px;left:-1px;bottom:-1px;border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);}}']}),Z7e=Tn("r76els4","r1g7lw0i",{r:['.r76els4{font-family:inherit;padding:0px;-webkit-appearance:button;-moz-appearance:button;-ms-appearance:button;appearance:button;text-align:unset;display:inline-grid;align-items:center;grid-template-areas:"media primary dismissIcon" "media secondary dismissIcon";box-sizing:border-box;width:fit-content;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusCircular);}',".r76els4[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusCircular);border-bottom-left-radius:var(--borderRadiusCircular);border-top-right-radius:var(--borderRadiusCircular);border-top-left-radius:var(--borderRadiusCircular);outline-width:var(--strokeWidthThick);outline-style:solid;outline-color:var(--colorStrokeFocus2);}",'.r1g7lw0i{font-family:inherit;padding:0px;-webkit-appearance:button;-moz-appearance:button;-ms-appearance:button;appearance:button;text-align:unset;display:inline-grid;align-items:center;grid-template-areas:"media primary dismissIcon" "media secondary dismissIcon";box-sizing:border-box;width:fit-content;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusCircular);}',".r1g7lw0i[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusCircular);border-bottom-right-radius:var(--borderRadiusCircular);border-top-left-radius:var(--borderRadiusCircular);border-top-right-radius:var(--borderRadiusCircular);outline-width:var(--strokeWidthThick);outline-style:solid;outline-color:var(--colorStrokeFocus2);}"],s:['@media (forced-colors: active){.r76els4{position:relative;}.r76els4::before{content:"";border-top-width:var(--strokeWidthThin);border-top-style:solid;border-left-width:var(--strokeWidthThin);border-left-style:solid;border-right-width:var(--strokeWidthThin);border-right-style:solid;position:absolute;top:-1px;left:-1px;right:-1px;bottom:-1px;border-radius:var(--borderRadiusCircular);}}','@media (forced-colors: active){.r1g7lw0i{position:relative;}.r1g7lw0i::before{content:"";border-top-width:var(--strokeWidthThin);border-top-style:solid;border-right-width:var(--strokeWidthThin);border-right-style:solid;border-left-width:var(--strokeWidthThin);border-left-style:solid;position:absolute;top:-1px;right:-1px;left:-1px;bottom:-1px;border-radius:var(--borderRadiusCircular);}}']}),J7e=wt({filled:{De3pzq:"f16xq7d1",sj55zd:"fkfq4zb"},outline:{De3pzq:"fhovq9v",sj55zd:"fkfq4zb",g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1aperda",zhjwy3:["f1lxtadh","f1akhkt"]},brand:{De3pzq:"f16xkysk",sj55zd:"faj9fo0"},medium:{Bqenvij:"f1d2rq10"},small:{Bqenvij:"frvgh55"},"extra-small":{Bqenvij:"fjamq6b"}},{d:[".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1aperda{border-bottom-color:var(--colorNeutralStroke1);}",".f16xkysk{background-color:var(--colorBrandBackground2);}",".faj9fo0{color:var(--colorBrandForeground2);}",".f1d2rq10{height:32px;}",".frvgh55{height:24px;}",".fjamq6b{height:20px;}"]}),eje=wt({filled:{Bceei9c:"fdrzuqr",De3pzq:"f1bg9a2p",sj55zd:"f1s2aq7o",g2u3we:"fgig46g",h3c5rm:["f1mxt3zg","fziff3p"],B9xav0g:"f250w3l",zhjwy3:["fziff3p","f1mxt3zg"]},outline:{Bceei9c:"fdrzuqr",De3pzq:"fhovq9v",sj55zd:"f1s2aq7o",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"]},brand:{Bceei9c:"fdrzuqr",De3pzq:"f1bg9a2p",sj55zd:"f1s2aq7o",g2u3we:"fgig46g",h3c5rm:["f1mxt3zg","fziff3p"],B9xav0g:"f250w3l",zhjwy3:["fziff3p","f1mxt3zg"]}},{d:[".fdrzuqr{cursor:not-allowed;}",".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fgig46g{border-top-color:var(--colorTransparentStrokeDisabled);}",".f1mxt3zg{border-right-color:var(--colorTransparentStrokeDisabled);}",".fziff3p{border-left-color:var(--colorTransparentStrokeDisabled);}",".f250w3l{border-bottom-color:var(--colorTransparentStrokeDisabled);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}"]}),tje=wt({medium:{uwmqm3:["f1rtp3s9","f18k1jr3"]},small:{uwmqm3:["f15vdbe4","fwiuce9"]},"extra-small":{uwmqm3:["f15vdbe4","fwiuce9"]}},{d:[".f1rtp3s9{padding-left:7px;}",".f18k1jr3{padding-right:7px;}",".f15vdbe4{padding-left:5px;}",".fwiuce9{padding-right:5px;}"]}),rje=wt({medium:{z189sj:["f18k1jr3","f1rtp3s9"]},small:{z189sj:["fwiuce9","f15vdbe4"]},"extra-small":{z189sj:["fwiuce9","f15vdbe4"]}},{d:[".f18k1jr3{padding-right:7px;}",".f1rtp3s9{padding-left:7px;}",".fwiuce9{padding-right:5px;}",".f15vdbe4{padding-left:5px;}"]}),nje=wt({base:{Ijaq50:"f11uok23",Br312pm:"f1qdfnnj",nk6f5a:"f1s27gz",Bw0ie65:"f86d0yl",mc9l5x:"f22iagw"},medium:{uwmqm3:["f1rtp3s9","f18k1jr3"],z189sj:["f7x41pl","fruq291"],a9b677:"f64fuq3",Be2twd7:"fe5j1ua"},small:{uwmqm3:["f15vdbe4","fwiuce9"],z189sj:["ffczdla","fgiv446"],a9b677:"fjw5fx7",Be2twd7:"f4ybsrx"},"extra-small":{uwmqm3:["f15vdbe4","fwiuce9"],z189sj:["ffczdla","fgiv446"],a9b677:"frx94fk",Be2twd7:"f1ugzwwg"}},{d:[".f11uok23{grid-row-start:media;}",".f1qdfnnj{grid-column-start:media;}",".f1s27gz{grid-row-end:media;}",".f86d0yl{grid-column-end:media;}",".f22iagw{display:flex;}",".f1rtp3s9{padding-left:7px;}",".f18k1jr3{padding-right:7px;}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f64fuq3{width:20px;}",".fe5j1ua{font-size:20px;}",".f15vdbe4{padding-left:5px;}",".fwiuce9{padding-right:5px;}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".fjw5fx7{width:16px;}",".f4ybsrx{font-size:16px;}",".frx94fk{width:12px;}",".f1ugzwwg{font-size:12px;}"]}),oje=wt({base:{Ijaq50:"f11uok23",Br312pm:"f1qdfnnj",nk6f5a:"f1s27gz",Bw0ie65:"f86d0yl",mc9l5x:"f22iagw",uwmqm3:["f10xn8zz","f136y8j8"]},medium:{z189sj:["f1vdfbxk","f1f5gg8d"]},small:{z189sj:["fdw0yi8","fk8j09s"]},"extra-small":{z189sj:["fdw0yi8","fk8j09s"]}},{d:[".f11uok23{grid-row-start:media;}",".f1qdfnnj{grid-column-start:media;}",".f1s27gz{grid-row-end:media;}",".f86d0yl{grid-column-end:media;}",".f22iagw{display:flex;}",".f10xn8zz{padding-left:1px;}",".f136y8j8{padding-right:1px;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}"]}),ije=wt({base:{Ijaq50:"fneo8i2",Br312pm:"frbqjvc",nk6f5a:"f1a6k60w",Bw0ie65:"f1ay3jj",mc9l5x:"f22iagw",ze5xyy:"f4xjyn1",oy3o9n:"f1xtr1b3"},medium:{uwmqm3:["fruq291","f7x41pl"],z189sj:["f18k1jr3","f1rtp3s9"],Be2twd7:"fe5j1ua"},small:{uwmqm3:["fgiv446","ffczdla"],z189sj:["fwiuce9","f15vdbe4"],Be2twd7:"f4ybsrx"},"extra-small":{uwmqm3:["fgiv446","ffczdla"],z189sj:["fwiuce9","f15vdbe4"],Be2twd7:"f1ugzwwg"},filled:{eoavqd:"f8491dx",Bi91k9c:"f3ymbdj",lj723h:"fryz5bw"},outline:{eoavqd:"f8491dx",Bi91k9c:"f3ymbdj",lj723h:"fryz5bw"},brand:{eoavqd:"f8491dx",Bi91k9c:"f3ymbdj",lj723h:"fryz5bw"}},{d:[".fneo8i2{grid-row-start:dismissIcon;}",".frbqjvc{grid-column-start:dismissIcon;}",".f1a6k60w{grid-row-end:dismissIcon;}",".f1ay3jj{grid-column-end:dismissIcon;}",".f22iagw{display:flex;}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".f18k1jr3{padding-right:7px;}",".f1rtp3s9{padding-left:7px;}",".fe5j1ua{font-size:20px;}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fwiuce9{padding-right:5px;}",".f15vdbe4{padding-left:5px;}",".f4ybsrx{font-size:16px;}",".f1ugzwwg{font-size:12px;}"],m:[["@media (forced-colors: active){.f4xjyn1:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1xtr1b3:active{color:Highlight;}}",{m:"(forced-colors: active)"}]],h:[".f8491dx:hover{cursor:pointer;}",".f3ymbdj:hover{color:var(--colorCompoundBrandForeground1Hover);}"],a:[".fryz5bw:active{color:var(--colorCompoundBrandForeground1Pressed);}"]}),sje=wt({base:{Huce71:"fz5stix",uwmqm3:["fgiv446","ffczdla"],z189sj:["ffczdla","fgiv446"]},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},small:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},"extra-small":{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},withoutSecondaryText:{Br312pm:"faqcfhe",Ijaq50:"f1q3ipgb",nk6f5a:"fc0ab3q",Byoj8tv:"f1g03r3y"},withSecondaryText:{Ijaq50:"f1q3ipgb",Br312pm:"faqcfhe",nk6f5a:"fs32cm1",Bw0ie65:"f1bo7viq",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",B6of3ja:"f1ryq6si"}},{d:[".fz5stix{white-space:nowrap;}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".faqcfhe{grid-column-start:primary;}",".f1q3ipgb{grid-row-start:primary;}",".fc0ab3q{grid-row-end:secondary;}",".f1g03r3y{padding-bottom:var(--spacingHorizontalXXS);}",".fs32cm1{grid-row-end:primary;}",".f1bo7viq{grid-column-end:primary;}",".f1ryq6si{margin-top:-2px;}"]}),aje=Tn("r7hv1ps","rnrslm9",[".r7hv1ps{grid-area:secondary;padding-left:var(--spacingHorizontalXXS);padding-right:var(--spacingHorizontalXXS);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase100);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase100);white-space:nowrap;}",".rnrslm9{grid-area:secondary;padding-right:var(--spacingHorizontalXXS);padding-left:var(--spacingHorizontalXXS);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase100);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase100);white-space:nowrap;}"]),uje=e=>{const t=Q7e(),r=Z7e(),n=J7e(),o=eje(),i=tje(),s=rje(),a=nje(),u=oje(),l=ije(),c=sje(),f=aje(),{shape:d,size:h,appearance:g}=e;return e.root.className=Xe(Wp.root,d==="rounded"?t:r,e.disabled?o[g]:n[g],n[h],!e.media&&!e.icon&&i[h],!e.dismissIcon&&s[h],e.root.className),e.media&&(e.media.className=Xe(Wp.media,u.base,u[h],e.media.className)),e.icon&&(e.icon.className=Xe(Wp.icon,a.base,a[h],e.icon.className)),e.primaryText&&(e.primaryText.className=Xe(Wp.primaryText,c.base,c[h],e.secondaryText?c.withSecondaryText:c.withoutSecondaryText,e.primaryText.className)),e.secondaryText&&(e.secondaryText.className=Xe(Wp.secondaryText,f,e.secondaryText.className)),e.dismissIcon&&(e.dismissIcon.className=Xe(Wp.dismissIcon,l.base,l[h],!e.disabled&&l[g],e.dismissIcon.className)),e};function lje(e){const{avatarSize:t,avatarShape:r}=e;return{avatar:k.useMemo(()=>({size:t,shape:r}),[r,t])}}const Que=k.forwardRef((e,t)=>{const r=Y7e(e,t);return uje(r),bn("useTagStyles_unstable")(r),X7e(r,lje(r))});Que.displayName="Tag";function cje(e){switch(e){case"info":return k.createElement(UDe,null);case"warning":return k.createElement(YDe,null);case"error":return k.createElement(VDe,null);case"success":return k.createElement(WDe,null);default:return null}}function fje(e=!1){const{targetDocument:t}=Na(),r=k.useReducer(()=>({}),{})[1],n=k.useRef(!1),o=k.useRef(null),i=k.useRef(-1),s=k.useCallback(u=>{const l=u[0],c=l==null?void 0:l.borderBoxSize[0];if(!c||!l)return;const{inlineSize:f}=c,{target:d}=l;if(!Lb(d))return;let h;if(n.current)i.current{var l;if(!e||!u||!(t!=null&&t.defaultView))return;(l=o.current)===null||l===void 0||l.disconnect();const c=t.defaultView,f=new c.ResizeObserver(s);o.current=f,f.observe(u,{box:"border-box"})},[t,s,e]);return k.useEffect(()=>()=>{var u;(u=o.current)===null||u===void 0||u.disconnect()},[]),{ref:a,reflowing:n.current}}const Zue=k.createContext(void 0),dje={className:"",nodeRef:k.createRef()};Zue.Provider;const hje=()=>{var e;return(e=k.useContext(Zue))!==null&&e!==void 0?e:dje},pje=(e,t)=>{const{layout:r="auto",intent:n="info",politeness:o,shape:i="rounded"}=e,s=o??n==="info"?"polite":"assertive",a=r==="auto",{ref:u,reflowing:l}=fje(a),c=a?l?"multiline":"singleline":r,{className:f,nodeRef:d}=hje(),h=k.useRef(null),g=k.useRef(null),{announce:v}=IDe(),y=Ia();return k.useEffect(()=>{var E,_;const S=(E=g.current)===null||E===void 0?void 0:E.textContent,b=(_=h.current)===null||_===void 0?void 0:_.textContent,A=[S,b].filter(Boolean).join(",");v(A,{polite:s==="polite",alert:s==="assertive"})},[g,h,v,s]),{components:{root:"div",icon:"div"},root:Er(yn("div",{ref:di(t,u,d),role:"group","aria-labelledby":y,...e}),{elementType:"div"}),icon:un(e.icon,{renderByDefault:!0,elementType:"div",defaultProps:{children:cje(n)}}),layout:c,intent:n,transitionClassName:f,actionsRef:h,bodyRef:g,titleId:y,shape:i}},Jue=k.createContext(void 0),gje={titleId:"",layout:"singleline",actionsRef:k.createRef(),bodyRef:k.createRef()},vje=Jue.Provider,ele=()=>{var e;return(e=k.useContext(Jue))!==null&&e!==void 0?e:gje},mje=(e,t)=>nt(vje,{value:t.messageBar,children:Un(e.root,{children:[e.icon&&nt(e.icon,{}),e.root.children]})}),FK={root:"fui-MessageBar",icon:"fui-MessageBar__icon"},yje=Tn("rashqx","ri1c0vc",['.rashqx{white-space:nowrap;display:grid;grid-template-columns:auto 1fr auto auto;grid-template-rows:1fr;grid-template-areas:"icon body secondaryActions actions";padding-left:var(--spacingHorizontalM);border-top-width:var(--strokeWidthThin);border-right-width:var(--strokeWidthThin);border-bottom-width:var(--strokeWidthThin);border-left-width:var(--strokeWidthThin);border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:var(--colorNeutralStroke1);border-right-color:var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStroke1);border-left-color:var(--colorNeutralStroke1);border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);align-items:center;min-height:36px;box-sizing:border-box;background-color:var(--colorNeutralBackground3);}','.ri1c0vc{white-space:nowrap;display:grid;grid-template-columns:auto 1fr auto auto;grid-template-rows:1fr;grid-template-areas:"icon body secondaryActions actions";padding-right:var(--spacingHorizontalM);border-top-width:var(--strokeWidthThin);border-left-width:var(--strokeWidthThin);border-bottom-width:var(--strokeWidthThin);border-right-width:var(--strokeWidthThin);border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-color:var(--colorNeutralStroke1);border-left-color:var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStroke1);border-right-color:var(--colorNeutralStroke1);border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);align-items:center;min-height:36px;box-sizing:border-box;background-color:var(--colorNeutralBackground3);}']),bje=Tn("r1bxgyar","rv8i6h8",[".r1bxgyar{grid-row-start:icon;grid-column-start:icon;grid-row-end:icon;grid-column-end:icon;font-size:var(--fontSizeBase500);margin-right:var(--spacingHorizontalS);color:var(--colorNeutralForeground3);display:flex;align-items:center;}",".rv8i6h8{grid-row-start:icon;grid-column-start:icon;grid-row-end:icon;grid-column-end:icon;font-size:var(--fontSizeBase500);margin-left:var(--spacingHorizontalS);color:var(--colorNeutralForeground3);display:flex;align-items:center;}"]),_je=wt({rootMultiline:{Huce71:"f6juhto",Bt984gj:"f1s2louj",z8tnut:"f1ngh7ph",Budl1dq:"f17g0uqy",zoa1oz:"f1w7oly7"},secondaryActionsMultiline:{Brf1p80:"f1e8xxv9",B6of3ja:"f1gaxbfw",jrapky:"fqcjy3b",t21cq0:["fibjyge","f9yszdx"]},square:{Bbmb7ep:["f1krrbdw","f1deotkl"],Beyfa6y:["f1deotkl","f1krrbdw"],B7oj6ja:["f10ostut","f1ozlkrg"],Btl43ni:["f1ozlkrg","f10ostut"]}},{d:[".f6juhto{white-space:normal;}",".f1s2louj{align-items:start;}",".f1ngh7ph{padding-top:var(--spacingVerticalMNudge);}",".f17g0uqy{grid-template-columns:auto 1fr auto;}",'.f1w7oly7{grid-template-areas:"icon body actions" "secondaryActions secondaryActions secondaryActions";}',".f1e8xxv9{justify-content:end;}",".f1gaxbfw{margin-top:var(--spacingVerticalMNudge);}",".fqcjy3b{margin-bottom:var(--spacingVerticalS);}",".fibjyge{margin-right:0px;}",".f9yszdx{margin-left:0px;}",".f1krrbdw{border-bottom-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1ozlkrg{border-top-left-radius:0;}"]}),Eje=wt({info:{},error:{sj55zd:"f1ca9wz"},warning:{sj55zd:"f14a4cve"},success:{sj55zd:"f36rra6"}},{d:[".f1ca9wz{color:var(--colorStatusDangerForeground1);}",".f14a4cve{color:var(--colorStatusWarningForeground3);}",".f36rra6{color:var(--colorStatusSuccessForeground1);}"]}),Sje=wt({info:{},error:{De3pzq:"f1eon7jj",g2u3we:"f1f8dvr7",h3c5rm:["f1g1ijmo","f1nxacbt"],B9xav0g:"fo25q1j",zhjwy3:["f1nxacbt","f1g1ijmo"]},warning:{De3pzq:"f13ftzij",g2u3we:"frd1ypx",h3c5rm:["f1gyjrma","f18qd5xz"],B9xav0g:"fqyqtrt",zhjwy3:["f18qd5xz","f1gyjrma"]},success:{De3pzq:"f64thcm",g2u3we:"f1b4u7v",h3c5rm:["f1nyd2b1","f70v3om"],B9xav0g:"fk173vo",zhjwy3:["f70v3om","f1nyd2b1"]}},{d:[".f1eon7jj{background-color:var(--colorStatusDangerBackground1);}",".f1f8dvr7{border-top-color:var(--colorStatusDangerBorder1);}",".f1g1ijmo{border-right-color:var(--colorStatusDangerBorder1);}",".f1nxacbt{border-left-color:var(--colorStatusDangerBorder1);}",".fo25q1j{border-bottom-color:var(--colorStatusDangerBorder1);}",".f13ftzij{background-color:var(--colorStatusWarningBackground1);}",".frd1ypx{border-top-color:var(--colorStatusWarningBorder1);}",".f1gyjrma{border-right-color:var(--colorStatusWarningBorder1);}",".f18qd5xz{border-left-color:var(--colorStatusWarningBorder1);}",".fqyqtrt{border-bottom-color:var(--colorStatusWarningBorder1);}",".f64thcm{background-color:var(--colorStatusSuccessBackground1);}",".f1b4u7v{border-top-color:var(--colorStatusSuccessBorder1);}",".f1nyd2b1{border-right-color:var(--colorStatusSuccessBorder1);}",".f70v3om{border-left-color:var(--colorStatusSuccessBorder1);}",".fk173vo{border-bottom-color:var(--colorStatusSuccessBorder1);}"]}),wje=e=>{const t=yje(),r=bje(),n=Eje(),o=Sje(),i=_je();return e.root.className=Xe(FK.root,t,e.layout==="multiline"&&i.rootMultiline,e.shape==="square"&&i.square,o[e.intent],e.transitionClassName,e.root.className),e.icon&&(e.icon.className=Xe(FK.icon,r,n[e.intent],e.icon.className)),e};function kje(e){const{layout:t,actionsRef:r,bodyRef:n,titleId:o}=e;return{messageBar:k.useMemo(()=>({layout:t,actionsRef:r,bodyRef:n,titleId:o}),[t,r,n,o])}}const Mg=k.forwardRef((e,t)=>{const r=pje(e,t);return wje(r),bn("useMessageBarStyles_unstable")(r),mje(r,kje(r))});Mg.displayName="MessageBar";const Aje=(e,t)=>{const{layout:r="singleline",actionsRef:n}=ele();return{components:{root:"div",containerAction:"div"},containerAction:un(e.containerAction,{renderByDefault:!1,elementType:"div"}),root:Er(yn("div",{ref:di(t,n),...e}),{elementType:"div"}),layout:r}},Tje=(e,t)=>e.layout==="multiline"?Un(wK,{value:t.button,children:[e.containerAction&&nt(e.containerAction,{}),nt(e.root,{})]}):Un(wK,{value:t.button,children:[nt(e.root,{}),e.containerAction&&nt(e.containerAction,{})]}),BK={root:"fui-MessageBarActions",containerAction:"fui-MessageBarActions__containerAction"},xje=Tn("r1qydg9p","r1to27xx",[".r1qydg9p{grid-row-start:secondaryActions;grid-column-start:secondaryActions;grid-row-end:secondaryActions;grid-column-end:secondaryActions;display:flex;column-gap:var(--spacingHorizontalM);padding-right:var(--spacingHorizontalM);}",".r1to27xx{grid-row-start:secondaryActions;grid-column-start:secondaryActions;grid-row-end:secondaryActions;grid-column-end:secondaryActions;display:flex;column-gap:var(--spacingHorizontalM);padding-left:var(--spacingHorizontalM);}"]),Ije=Tn("r1y6i9ar","rc0rof2",[".r1y6i9ar{grid-row-start:actions;grid-column-start:actions;grid-row-end:actions;grid-column-end:actions;padding-right:var(--spacingHorizontalM);}",".rc0rof2{grid-row-start:actions;grid-column-start:actions;grid-row-end:actions;grid-column-end:actions;padding-left:var(--spacingHorizontalM);}"]),Nje=wt({root:{Brf1p80:"f1e8xxv9",B6of3ja:"f1gaxbfw",jrapky:"fqcjy3b",t21cq0:["fibjyge","f9yszdx"],z189sj:["f1p3vkop","f8cewkv"]}},{d:[".f1e8xxv9{justify-content:end;}",".f1gaxbfw{margin-top:var(--spacingVerticalMNudge);}",".fqcjy3b{margin-bottom:var(--spacingVerticalS);}",".fibjyge{margin-right:0px;}",".f9yszdx{margin-left:0px;}",".f1p3vkop{padding-right:var(--spacingVerticalM);}",".f8cewkv{padding-left:var(--spacingVerticalM);}"]}),Cje=e=>{const t=xje(),r=Ije(),n=Nje();return e.root.className=Xe(BK.root,t,e.layout==="multiline"&&n.root,e.root.className),e.containerAction&&(e.containerAction.className=Xe(BK.containerAction,r,e.containerAction.className)),e};function Rje(){return{button:k.useMemo(()=>({size:"small"}),[])}}const tle=k.forwardRef((e,t)=>{const r=Aje(e,t);return Cje(r),bn("useMessageBarActionsStyles_unstable")(r),Tje(r,Rje())});tle.displayName="MessageBarActions";const Oje=(e,t)=>{const{bodyRef:r}=ele();return{components:{root:"div"},root:Er(yn("div",{ref:di(t,r),...e}),{elementType:"div"})}},Dje=e=>nt(e.root,{}),Fje={root:"fui-MessageBarBody"},Bje=Tn("rnv3mfe","r1ixc1x8",[".rnv3mfe{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);grid-row-start:body;grid-column-start:body;grid-row-end:body;grid-column-end:body;padding-right:var(--spacingHorizontalM);}",".r1ixc1x8{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);grid-row-start:body;grid-column-start:body;grid-row-end:body;grid-column-end:body;padding-left:var(--spacingHorizontalM);}"]),Mje=e=>{const t=Bje();return e.root.className=Xe(Fje.root,t,e.root.className),e},pB=k.forwardRef((e,t)=>{const r=Oje(e,t);return Mje(r),bn("useMessageBarBodyStyles_unstable")(r),Dje(r)});pB.displayName="MessageBarBody";var $8={exports:{}},rle=function(t,r){return function(){for(var o=new Array(arguments.length),i=0;i"u"}function jje(e){return e!==null&&!gB(e)&&e.constructor!==null&&!gB(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function zje(e){return ip.call(e)==="[object ArrayBuffer]"}function Hje(e){return typeof FormData<"u"&&e instanceof FormData}function $je(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function Pje(e){return typeof e=="string"}function qje(e){return typeof e=="number"}function nle(e){return e!==null&&typeof e=="object"}function Ak(e){if(ip.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Wje(e){return ip.call(e)==="[object Date]"}function Kje(e){return ip.call(e)==="[object File]"}function Gje(e){return ip.call(e)==="[object Blob]"}function ole(e){return ip.call(e)==="[object Function]"}function Vje(e){return nle(e)&&ole(e.pipe)}function Uje(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}function Yje(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Xje(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function q8(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),P8(e))for(var r=0,n=e.length;r"u"||(Kp.isArray(u)?l=l+"[]":u=[u],Kp.forEach(u,function(f){Kp.isDate(f)?f=f.toISOString():Kp.isObject(f)&&(f=JSON.stringify(f)),i.push(MK(l)+"="+MK(f))}))}),o=i.join("&")}if(o){var s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t},Jje=Ca;function Mx(){this.handlers=[]}Mx.prototype.use=function(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};Mx.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};Mx.prototype.forEach=function(t){Jje.forEach(this.handlers,function(n){n!==null&&t(n)})};var eze=Mx,tze=Ca,rze=function(t,r){tze.forEach(t,function(o,i){i!==r&&i.toUpperCase()===r.toUpperCase()&&(t[r]=o,delete t[i])})},sle=function(t,r,n,o,i){return t.config=r,n&&(t.code=n),t.request=o,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t},cN,LK;function ale(){if(LK)return cN;LK=1;var e=sle;return cN=function(r,n,o,i,s){var a=new Error(r);return e(a,n,o,i,s)},cN}var fN,jK;function nze(){if(jK)return fN;jK=1;var e=ale();return fN=function(r,n,o){var i=o.config.validateStatus;!o.status||!i||i(o.status)?r(o):n(e("Request failed with status code "+o.status,o.config,null,o.request,o))},fN}var dN,zK;function oze(){if(zK)return dN;zK=1;var e=Ca;return dN=e.isStandardBrowserEnv()?function(){return{write:function(n,o,i,s,a,u){var l=[];l.push(n+"="+encodeURIComponent(o)),e.isNumber(i)&&l.push("expires="+new Date(i).toGMTString()),e.isString(s)&&l.push("path="+s),e.isString(a)&&l.push("domain="+a),u===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){var o=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),dN}var hN,HK;function ize(){return HK||(HK=1,hN=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}),hN}var pN,$K;function sze(){return $K||($K=1,pN=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}),pN}var gN,PK;function aze(){if(PK)return gN;PK=1;var e=ize(),t=sze();return gN=function(n,o){return n&&!e(o)?t(n,o):o},gN}var vN,qK;function uze(){if(qK)return vN;qK=1;var e=Ca,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return vN=function(n){var o={},i,s,a;return n&&e.forEach(n.split(` -`),function(l){if(a=l.indexOf(":"),i=e.trim(l.substr(0,a)).toLowerCase(),s=e.trim(l.substr(a+1)),i){if(o[i]&&t.indexOf(i)>=0)return;i==="set-cookie"?o[i]=(o[i]?o[i]:[]).concat([s]):o[i]=o[i]?o[i]+", "+s:s}}),o},vN}var mN,WK;function lze(){if(WK)return mN;WK=1;var e=Ca;return mN=e.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),o;function i(s){var a=s;return r&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return o=i(window.location.href),function(a){var u=e.isString(a)?i(a):a;return u.protocol===o.protocol&&u.host===o.host}}():function(){return function(){return!0}}(),mN}var yN,KK;function GK(){if(KK)return yN;KK=1;var e=Ca,t=nze(),r=oze(),n=ile,o=aze(),i=uze(),s=lze(),a=ale();return yN=function(l){return new Promise(function(f,d){var h=l.data,g=l.headers,v=l.responseType;e.isFormData(h)&&delete g["Content-Type"];var y=new XMLHttpRequest;if(l.auth){var E=l.auth.username||"",_=l.auth.password?unescape(encodeURIComponent(l.auth.password)):"";g.Authorization="Basic "+btoa(E+":"+_)}var S=o(l.baseURL,l.url);y.open(l.method.toUpperCase(),n(S,l.params,l.paramsSerializer),!0),y.timeout=l.timeout;function b(){if(y){var x="getAllResponseHeaders"in y?i(y.getAllResponseHeaders()):null,T=!v||v==="text"||v==="json"?y.responseText:y.response,N={data:T,status:y.status,statusText:y.statusText,headers:x,config:l,request:y};t(f,d,N),y=null}}if("onloadend"in y?y.onloadend=b:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(b)},y.onabort=function(){y&&(d(a("Request aborted",l,"ECONNABORTED",y)),y=null)},y.onerror=function(){d(a("Network Error",l,null,y)),y=null},y.ontimeout=function(){var T="timeout of "+l.timeout+"ms exceeded";l.timeoutErrorMessage&&(T=l.timeoutErrorMessage),d(a(T,l,l.transitional&&l.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",y)),y=null},e.isStandardBrowserEnv()){var A=(l.withCredentials||s(S))&&l.xsrfCookieName?r.read(l.xsrfCookieName):void 0;A&&(g[l.xsrfHeaderName]=A)}"setRequestHeader"in y&&e.forEach(g,function(T,N){typeof h>"u"&&N.toLowerCase()==="content-type"?delete g[N]:y.setRequestHeader(N,T)}),e.isUndefined(l.withCredentials)||(y.withCredentials=!!l.withCredentials),v&&v!=="json"&&(y.responseType=l.responseType),typeof l.onDownloadProgress=="function"&&y.addEventListener("progress",l.onDownloadProgress),typeof l.onUploadProgress=="function"&&y.upload&&y.upload.addEventListener("progress",l.onUploadProgress),l.cancelToken&&l.cancelToken.promise.then(function(T){y&&(y.abort(),d(T),y=null)}),h||(h=null),y.send(h)})},yN}var oi=Ca,VK=rze,cze=sle,fze={"Content-Type":"application/x-www-form-urlencoded"};function UK(e,t){!oi.isUndefined(e)&&oi.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function dze(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=GK()),e}function hze(e,t,r){if(oi.isString(e))try{return(t||JSON.parse)(e),oi.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var Lx={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:dze(),transformRequest:[function(t,r){return VK(r,"Accept"),VK(r,"Content-Type"),oi.isFormData(t)||oi.isArrayBuffer(t)||oi.isBuffer(t)||oi.isStream(t)||oi.isFile(t)||oi.isBlob(t)?t:oi.isArrayBufferView(t)?t.buffer:oi.isURLSearchParams(t)?(UK(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):oi.isObject(t)||r&&r["Content-Type"]==="application/json"?(UK(r,"application/json"),hze(t)):t}],transformResponse:[function(t){var r=this.transitional,n=r&&r.silentJSONParsing,o=r&&r.forcedJSONParsing,i=!n&&this.responseType==="json";if(i||o&&oi.isString(t)&&t.length)try{return JSON.parse(t)}catch(s){if(i)throw s.name==="SyntaxError"?cze(s,this,"E_JSON_PARSE"):s}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};Lx.headers={common:{Accept:"application/json, text/plain, */*"}};oi.forEach(["delete","get","head"],function(t){Lx.headers[t]={}});oi.forEach(["post","put","patch"],function(t){Lx.headers[t]=oi.merge(fze)});var W8=Lx,pze=Ca,gze=W8,vze=function(t,r,n){var o=this||gze;return pze.forEach(n,function(s){t=s.call(o,t,r)}),t},bN,YK;function ule(){return YK||(YK=1,bN=function(t){return!!(t&&t.__CANCEL__)}),bN}var XK=Ca,_N=vze,mze=ule(),yze=W8;function EN(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var bze=function(t){EN(t),t.headers=t.headers||{},t.data=_N.call(t,t.data,t.headers,t.transformRequest),t.headers=XK.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),XK.forEach(["delete","get","head","post","put","patch","common"],function(o){delete t.headers[o]});var r=t.adapter||yze.adapter;return r(t).then(function(o){return EN(t),o.data=_N.call(t,o.data,o.headers,t.transformResponse),o},function(o){return mze(o)||(EN(t),o&&o.response&&(o.response.data=_N.call(t,o.response.data,o.response.headers,t.transformResponse))),Promise.reject(o)})},bi=Ca,lle=function(t,r){r=r||{};var n={},o=["url","method","data"],i=["headers","auth","proxy","params"],s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function u(d,h){return bi.isPlainObject(d)&&bi.isPlainObject(h)?bi.merge(d,h):bi.isPlainObject(h)?bi.merge({},h):bi.isArray(h)?h.slice():h}function l(d){bi.isUndefined(r[d])?bi.isUndefined(t[d])||(n[d]=u(void 0,t[d])):n[d]=u(t[d],r[d])}bi.forEach(o,function(h){bi.isUndefined(r[h])||(n[h]=u(void 0,r[h]))}),bi.forEach(i,l),bi.forEach(s,function(h){bi.isUndefined(r[h])?bi.isUndefined(t[h])||(n[h]=u(void 0,t[h])):n[h]=u(void 0,r[h])}),bi.forEach(a,function(h){h in r?n[h]=u(t[h],r[h]):h in t&&(n[h]=u(void 0,t[h]))});var c=o.concat(i).concat(s).concat(a),f=Object.keys(t).concat(Object.keys(r)).filter(function(h){return c.indexOf(h)===-1});return bi.forEach(f,l),n};const _ze="axios",Eze="0.21.4",Sze="Promise based HTTP client for the browser and node.js",wze="index.js",kze={test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},Aze={type:"git",url:"https://github.com/axios/axios.git"},Tze=["xhr","http","ajax","promise","node"],xze="Matt Zabriskie",Ize="MIT",Nze={url:"https://github.com/axios/axios/issues"},Cze="https://axios-http.com",Rze={coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},Oze={"./lib/adapters/http.js":"./lib/adapters/xhr.js"},Dze="dist/axios.min.js",Fze="dist/axios.min.js",Bze="./index.d.ts",Mze={"follow-redirects":"^1.14.0"},Lze=[{path:"./dist/axios.min.js",threshold:"5kB"}],jze={name:_ze,version:Eze,description:Sze,main:wze,scripts:kze,repository:Aze,keywords:Tze,author:xze,license:Ize,bugs:Nze,homepage:Cze,devDependencies:Rze,browser:Oze,jsdelivr:Dze,unpkg:Fze,typings:Bze,dependencies:Mze,bundlesize:Lze};var cle=jze,K8={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){K8[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var QK={},zze=cle.version.split(".");function fle(e,t){for(var r=t?t.split("."):zze,n=e.split("."),o=0;o<3;o++){if(r[o]>n[o])return!0;if(r[o]0;){var i=n[o],s=t[i];if(s){var a=e[i],u=a===void 0||s(a,i,e);if(u!==!0)throw new TypeError("option "+i+" must be "+u);continue}if(r!==!0)throw Error("Unknown option "+i)}}var $ze={isOlderVersion:fle,assertOptions:Hze,validators:K8},dle=Ca,Pze=ile,ZK=eze,JK=bze,jx=lle,hle=$ze,Gp=hle.validators;function Z_(e){this.defaults=e,this.interceptors={request:new ZK,response:new ZK}}Z_.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=jx(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;r!==void 0&&hle.assertOptions(r,{silentJSONParsing:Gp.transitional(Gp.boolean,"1.0.0"),forcedJSONParsing:Gp.transitional(Gp.boolean,"1.0.0"),clarifyTimeoutError:Gp.transitional(Gp.boolean,"1.0.0")},!1);var n=[],o=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(t)===!1||(o=o&&d.synchronous,n.unshift(d.fulfilled,d.rejected))});var i=[];this.interceptors.response.forEach(function(d){i.push(d.fulfilled,d.rejected)});var s;if(!o){var a=[JK,void 0];for(Array.prototype.unshift.apply(a,n),a=a.concat(i),s=Promise.resolve(t);a.length;)s=s.then(a.shift(),a.shift());return s}for(var u=t;n.length;){var l=n.shift(),c=n.shift();try{u=l(u)}catch(f){c(f);break}}try{s=JK(u)}catch(f){return Promise.reject(f)}for(;i.length;)s=s.then(i.shift(),i.shift());return s};Z_.prototype.getUri=function(t){return t=jx(this.defaults,t),Pze(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};dle.forEach(["delete","get","head","options"],function(t){Z_.prototype[t]=function(r,n){return this.request(jx(n||{},{method:t,url:r,data:(n||{}).data}))}});dle.forEach(["post","put","patch"],function(t){Z_.prototype[t]=function(r,n,o){return this.request(jx(o||{},{method:t,url:r,data:n}))}});var qze=Z_,SN,eG;function ple(){if(eG)return SN;eG=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,SN=e,SN}var wN,tG;function Wze(){if(tG)return wN;tG=1;var e=ple();function t(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(s){n=s});var o=this;r(function(s){o.reason||(o.reason=new e(s),n(o.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.source=function(){var n,o=new t(function(s){n=s});return{token:o,cancel:n}},wN=t,wN}var kN,rG;function Kze(){return rG||(rG=1,kN=function(t){return function(n){return t.apply(null,n)}}),kN}var AN,nG;function Gze(){return nG||(nG=1,AN=function(t){return typeof t=="object"&&t.isAxiosError===!0}),AN}var oG=Ca,Vze=rle,Tk=qze,Uze=lle,Yze=W8;function gle(e){var t=new Tk(e),r=Vze(Tk.prototype.request,t);return oG.extend(r,Tk.prototype,t),oG.extend(r,t),r}var sl=gle(Yze);sl.Axios=Tk;sl.create=function(t){return gle(Uze(sl.defaults,t))};sl.Cancel=ple();sl.CancelToken=Wze();sl.isCancel=ule();sl.all=function(t){return Promise.all(t)};sl.spread=Kze();sl.isAxiosError=Gze();$8.exports=sl;$8.exports.default=sl;var Xze=$8.exports,Qze=Xze;const Zze=Mf(Qze);var mB={exports:{}},iG=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(iG){var sG=new Uint8Array(16);mB.exports=function(){return iG(sG),sG}}else{var aG=new Array(16);mB.exports=function(){for(var t=0,r;t<16;t++)t&3||(r=Math.random()*4294967296),aG[t]=r>>>((t&3)<<3)&255;return aG}}var vle=mB.exports,mle=[];for(var lw=0;lw<256;++lw)mle[lw]=(lw+256).toString(16).substr(1);function Jze(e,t){var r=t||0,n=mle;return[n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]]].join("")}var yle=Jze,eHe=vle,tHe=yle,uG,TN,xN=0,IN=0;function rHe(e,t,r){var n=t&&r||0,o=t||[];e=e||{};var i=e.node||uG,s=e.clockseq!==void 0?e.clockseq:TN;if(i==null||s==null){var a=eHe();i==null&&(i=uG=[a[0]|1,a[1],a[2],a[3],a[4],a[5]]),s==null&&(s=TN=(a[6]<<8|a[7])&16383)}var u=e.msecs!==void 0?e.msecs:new Date().getTime(),l=e.nsecs!==void 0?e.nsecs:IN+1,c=u-xN+(l-IN)/1e4;if(c<0&&e.clockseq===void 0&&(s=s+1&16383),(c<0||u>xN)&&e.nsecs===void 0&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");xN=u,IN=l,TN=s,u+=122192928e5;var f=((u&268435455)*1e4+l)%4294967296;o[n++]=f>>>24&255,o[n++]=f>>>16&255,o[n++]=f>>>8&255,o[n++]=f&255;var d=u/4294967296*1e4&268435455;o[n++]=d>>>8&255,o[n++]=d&255,o[n++]=d>>>24&15|16,o[n++]=d>>>16&255,o[n++]=s>>>8|128,o[n++]=s&255;for(var h=0;h<6;++h)o[n+h]=i[h];return t||tHe(o)}var nHe=rHe,oHe=vle,iHe=yle;function sHe(e,t,r){var n=t&&r||0;typeof e=="string"&&(t=e==="binary"?new Array(16):null,e=null),e=e||{};var o=e.random||(e.rng||oHe)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,t)for(var i=0;i<16;++i)t[n+i]=o[i];return t||iHe(o)}var aHe=sHe,uHe=nHe,ble=aHe,G8=ble;G8.v1=uHe;G8.v4=ble;var ga=G8;const qi="variant_0",Vp="chat_input",ih="chat_history",Dm="chat_output";var _le=(e=>(e.OpenCodeFileInNode="OpenCodeFileInNode",e.ShowWarningIconOnNode="ShowWarningIconOnNode",e))(_le||{}),Il=(e=>(e.OpenAI="OpenAI",e.AzureOpenAI="AzureOpenAI",e.Serp="Serp",e.Bing="Bing",e.AzureContentModerator="AzureContentModerator",e.Custom="Custom",e.AzureContentSafety="AzureContentSafety",e.CognitiveSearch="CognitiveSearch",e.SubstrateLLM="SubstrateLLM",e.Pinecone="Pinecone",e.Qdrant="Qdrant",e.Weaviate="Weaviate",e.FormRecognizer="FormRecognizer",e.Serverless="Serverless",e))(Il||{}),kd=(e=>(e.Default="Default",e.Evaluation="Evaluation",e.Chat="Chat",e.Rag="Rag",e))(kd||{}),Ele=(e=>(e.default="default",e.uionly_hidden="uionly_hidden",e))(Ele||{}),Sle=(e=>(e.Horizontal="Horizontal",e.Vertical="Vertical",e))(Sle||{}),Ti=(e=>(e.llm="llm",e.python="python",e.action="action",e.prompt="prompt",e.custom_llm="custom_llm",e.csharp="csharp",e.typescript="typescript",e))(Ti||{}),Le=(e=>(e.int="int",e.double="double",e.bool="bool",e.string="string",e.secret="secret",e.prompt_template="prompt_template",e.object="object",e.list="list",e.BingConnection="BingConnection",e.OpenAIConnection="OpenAIConnection",e.AzureOpenAIConnection="AzureOpenAIConnection",e.AzureContentModeratorConnection="AzureContentModeratorConnection",e.CustomConnection="CustomConnection",e.AzureContentSafetyConnection="AzureContentSafetyConnection",e.SerpConnection="SerpConnection",e.CognitiveSearchConnection="CognitiveSearchConnection",e.SubstrateLLMConnection="SubstrateLLMConnection",e.PineconeConnection="PineconeConnection",e.QdrantConnection="QdrantConnection",e.WeaviateConnection="WeaviateConnection",e.function_list="function_list",e.function_str="function_str",e.FormRecognizerConnection="FormRecognizerConnection",e.file_path="file_path",e.image="image",e.assistant_definition="assistant_definition",e.ServerlessConnection="ServerlessConnection",e))(Le||{});const lHe="flow",cHe="inputs",lG="inputs",fHe="outputs",cG=e=>[lHe,cHe].includes(e),wle=["#637CEF","#E61C99","#00A5AF","#9470BD","#689920","#3487C7","#CA5010","#009B51","#B27C00","#B146C2","#4F6BED","#EE5FB7","#008B94","#D77440","#BA58C9","#3A96DD","#E3008C","#57811B","#C36BD1","#D06228","#6E0811","#C50F1F","#F7630C","#107C10","#094509"];var _i=(e=>(e.CircularDependency="CircularDependency",e.InputDependencyNotFound="InputDependencyNotFound",e.InputGenerateError="InputGenerateError",e.InputSelfReference="InputSelfReference",e.InputEmpty="InputEmpty",e.InputInvalidType="InputInvalidType",e.NodeConfigInvalid="NodeConfigInvalid",e.UnparsedCode="UnparsedCode",e.EmptyCode="EmptyCode",e.MissingTool="MissingTool",e.AutoParseInputError="AutoParseInputError",e.RuntimeNameEmpty="RuntimeNameEmpty",e.RuntimeStatusInvalid="RuntimeStatusInvalid",e))(_i||{}),kle=(e=>(e.Standard="Standard",e.Interactive="Interactive",e.InteractiveMultiModal="InteractiveMultiModal",e))(kle||{}),ln=(e=>(e.CONNECTION_ADD_REQUEST="connection.add.request",e.CONNECTION_GET_DEPLOYMENTS_REQUEST="connection.get.deployments.request",e.CONNECTION_GET_DEPLOYMENTS_RESPONSE="connection.get.deployments.response",e.CONNECTION_LIST_REQUEST="connection.list.request",e.CONNECTION_LIST_RESPONSE="connection.list.response",e.CONNECTION_SPEC_LIST_REQUEST="connection.spec.list.request",e.CONNECTION_SPEC_LIST_RESPONSE="connection.spec.list.response",e.DYNAMIC_LIST_REQUEST="dynamic.list.request",e.DYNAMIC_LIST_RESPONSE="dynamic.list.response",e.GENERATED_BY_REQUEST="generated.by.request",e.GENERATED_BY_RESPONSE="generated.by.response",e.SAMPLE_TREE_REFRESH="sample.tree.refresh",e.RECENT_VISITED_FLOW_TREE_REFRESH="recent.visited.flow.tree.refresh",e.RUNTIME_NEED_UPGRADE_REQUEST="runtime.needUpgrade.request",e.RUNTIME_NEED_UPGRADE_RESPONSE="runtime.needUpgrade.response",e.FLOW_DAG_OPEN="flow.dag.open",e.DAG_STEP_SELECTED="dag.step.selected",e.DAG_STEP_CLEAR_SELECTION="dag.step.clear.selection",e.EDIT_PMT_FILE="edit.pmt.file",e.INIT_PMT_FILE="init.pmt.file",e.INIT_PMT_FILE_FINISHED="init.pmt.file.finished",e.FIRST_RENDER_FINISHED="first.render.finished",e.UPDATE_PMT_FILE="update.pmt.file",e.PMT_FILE_READY="pmt.file.ready",e.EDIT_FLOW_LAYOUT="edit.flow.layout",e.WORKSPACE_READY="workspace.ready",e.PMT_FILE_ADD_NODE="pmt.file.addNode",e.PMT_FILE_REMOVE_NODE="pmt.file.removeNode",e.PMT_FILE_DUPLICATE_TOOL="pmt.file.duplicateTool",e.READ_PMT_FILE_REQUEST="read.pmt.file.request",e.READ_PMT_FILE_RESPONSE="read.pmt.file.response",e.READ_PMT_SUBMIT_DATA_REQUEST="read.pmt.submit.data.request",e.READ_PMT_SUBMIT_DATA_RESPONSE="read.pmt.submit.data.response",e.PATCH_EDIT_PMT_FLOW_REQUEST="patch.edit.pmt.flow.request",e.PATCH_EDIT_PMT_FLOW_RESPONSE="patch.edit.pmt.flow.response",e.PROMPT_TOOL_SETTING_FETCH="promptToolSetting.fetch",e.PROMPT_TOOL_SETTING_LOAD="promptToolSetting.load",e.FLATTEN_OPEN_FLOW_INPUTS="flatten.openInputsFile",e.FLATTEN_VIEW_CODE_DIFF="flatten.viewCodeDiff",e.FLATTEN_STEP_LOCATE="flatten.step.locate",e.FLATTEN_ADD_NODE="flatten.addNode",e.OPEN_RUN_HISTORY_VIEW="open.runHistory.view",e.TRIGGER_OPEN_RUN_HISTORY_VIEW="trigger.open.runHistory.view",e.STATUS_LOAD="status.load",e.BULK_TEST_STATUS_LOAD="bulkTest.status.load",e.BULK_TEST_INDEX_SELECTED="bulkTest.index.selected",e.REQUEST_STEP_RUN_SUBMIT="request.step.run.submit",e.REQUEST_STEP_RUN_LOAD="request.step.load",e.BULK_TEST_OPEN_VIEW="bulkTest.open.view",e.BULK_TEST_SELECT_DATASETS="bulkTest.select.datasets",e.BULK_TEST_SELECT_DATASETS_READY="bulkTest.select.datasets.ready",e.TRIGGER_EXPORT="trigger.export",e.DAG_DOUBLE_CLICK_NODE="dag.double.click.node",e.OPEN_CHAT_VIEW="open.chat.view",e.OPEN_CHAT_VIEW_IN_BROWSER="open.chat.view.in.browser",e.DEPLOY_FLOW="deploy.flow",e.SAVE_TOOL_CODE="save.tool.code",e.UPDATE_FlOW_INPUT="update.flow.input",e.TRIGGER_RENAME_NODE="trigger.rename.node",e.COMMIT_RENAME_NODE="commit.rename.node",e.CHANGE_LLM_NODE_API="change.llm.node.api",e.TRIGGER_CUSTOM_SELECT="trigger.custom.select",e.COMMIT_CUSTOM_SELECT="commit.custom.select",e.OPEN_LOG="open.log",e.SHOW_MESSAGE_IN_OUTPUT_PANEL="show.message.in.output.panel",e.SUBMIT_FLOW_RUN="submit.flow.run",e.SUBMIT_FLOW_RUN_FINISHED="submit.flow.run.finished",e.SUBMIT_FLOW_EVAL="submit.flow.eval",e.SUBMIT_FLOW_EVAL_RESPONSE="submit.flow.eval.response",e.SUBMIT_BULK_TEST_RUN="submit.bulk.test.run",e.OPEN_FLOW_RUN_LOG="open.flow.run.log",e.STATUSBAR_OPEN_LOG="statusbar.open.log",e.OPEN_CODE_FILE="open.code.file",e.OPEN_LINK="open.link",e.READ_FLOW_UIHINT_REQUEST="read.flow.uihint.request",e.READ_FLOW_UIHINT_RESPONSE="read.flow.uihint.response",e.READ_FLOW_RUN_RESULT_REQUEST="read.flow.run.result.request",e.READ_FLOW_RUN_RESULT_RESPONSE="read.flow.run.result.response",e.WRITE_FLOW_UIHINT="write.flow.uihint",e.SELECT_FILE_REQUEST="select.file.request",e.SELECT_FILE_RESPONSE="select.file.response",e.FILE_RELATIVE_PATH_REQUEST="file.relative.path.request",e.FILE_RELATIVE_PATH_RESPONSE="file.relative.path.response",e.EXTENSION_CONFIGURATION_REQUEST="extension.configuration.request",e.EXTENSION_CONFIGURATION_RESPONSE="extension.configuration.response",e.TOOL_CODE_CHANGED="tool.code.changed",e.RUN_RESULT_CHANGED="run.result.changed",e.GENERATE_TOOL_META="generate.tool.meta",e.GENERATE_TOOL_META_ADVANCED="generate.tool.meta.advanced",e.GENERATE_TOOLS_FROM_FLOW_DAG_YAML="generate.tools.from.flow.dag.yaml",e.BULK_TEST_SELECT_INPUT_FILE="bulkTest.select.input.file",e.BULK_TEST_SELECT_INPUT_FILE_READY="bulkTest.select.input.file.ready",e.SUBMIT_DEBUG_SINGLE_NODE_RUN="submit.debug.single.node.run",e.DAG_ZOOM_IN="dag.zoom.in",e.DAG_ZOOM_OUT="dag.zoom.out",e.DAG_ZOOM_TO_FIT="dag.zoom.to.fit",e.DAG_ZOOM_TO_ACTUAL_SIZE="dag.zoom.to.actual.size",e.DAG_AUTO_LAYOUT="dag.auto.layout",e.TOGGLE_SIMPLE_MODE="toggle.simple.mode",e.TOGGLE_ORIENTATION="toggle.orientation",e.PRINT_LOG="print.log",e.EDIT_FUNCTIONS_REQUEST="edit.functions.request",e.EDIT_FUNCTIONS_RESPONSE="edit.functions.response",e.CREATE_FUNCTIONS_FROM_TOOLS_REQUEST="create.functions.from.tools.request",e.TOOLS_JSON_CHANGED="tools.json.changed",e.TOOL_LIST_UPDATED="tool.list.updated",e.REFRESH_TOOL_LIST="refresh.tool.list",e.REQUEST_CONDA_ENV_NAME="request.conda.env.name",e.RES_CONDA_ENV_NAME="res.conda.env.name",e.RUN_COMMAND_IN_TERMINAL="run.command.in.terminal",e.COPY_COMMAND_TO_TERMINAL="copy.command.to.terminal",e.REQ_PFSDK_VERSION="req.pfsdk.version",e.RES_PFSDK_VERSION="res.pfsdk.version",e.REQ_PFTOOLS_VERSION="req.pftools.version",e.RES_PFTOOLS_VERSION="res.pftools.version",e.REQ_PFUTIL_PATH="req.pfutil.path",e.RES_PFUTIL_PATH="res.pfutil.path",e.REQ_PYTHON_INTERPRETER="req.python.interpreter",e.RES_PYTHON_INTERPRETER="res.python.interpreter",e.SELECT_PYTHON_INTERPRETER="select.python.interpreter",e.REQ_PACKAGE_INSTALLED="req.package.installed",e.RES_PACKAGE_INSTALLED="res.package.installed",e.EXECUTE_VSC_COMMAND="execute.vsc.command",e.DEBUG_FLOW="debug.flow",e.REQ_API_CALLS="req.api.calls",e.RES_API_CALLS="res.api.calls",e.ERROR_BOUNDARY_CAUGHT="error.boundary.caught",e.EVALUATE_BATCH_RUNS="evaluate.batch.runs",e.METRIC_WEBVIEW_LCP="metric.webview.lcp",e.OPEN_FLOW_DIR="open.flow.dir",e.GET_FILE_WEBVIEW_URI="get.file.webview.uri",e.SEND_FILE_WEBVIEW_URI="send.file.webview.uri",e.CURRENT_FLOW_REQUEST="current.flow.request",e.CURRENT_FLOW_RESPONSE="current.flow.response",e.CURRENT_FLOW_CONFIRM="current.flow.confirm",e.READ_FLOW_UX_INPUTS_REQUEST="read.flow.ux.inputs.request",e.READ_FLOW_UX_INPUTS_RESPONSE="read.flow.ux.inputs.response",e.SET_FLOW_UX_INPUTS="set.flow.ux.inputs",e.SET_FLOW_CHAT_CONFIG="set.flow.chat.config",e.READ_VSCODE_THEME_REQUEST="read.vscode.theme.request",e.READ_VSCODE_THEME_RESPONSE="read.vscode.theme.response",e.READ_CHAT_CONSOLE_RESPONSE="read.chat.console.response",e))(ln||{}),Wb=(e=>(e.System="system",e.ErrorHandler="error",e.Chatbot="chatbot",e.User="user",e))(Wb||{}),V8=(e=>(e.Text="text",e.Typing="typing",e.SessionSplit="session-split",e))(V8||{}),hn=(e=>(e.Dag="Dag flow",e.Prompty="Prompty",e))(hn||{});const dHe=e=>e==="true"||e==="True"||e===!0,hHe=e=>Array.isArray(e)?Le.list:typeof e=="boolean"?Le.bool:typeof e=="string"?Le.string:typeof e=="number"?Number.isInteger(e)?Le.int:Le.double:Le.object;function pHe(e){if(e==null)return;switch(hHe(e)){case Le.string:return e;case Le.int:case Le.double:return e.toString();case Le.bool:return e?"True":"False";case Le.object:case Le.list:return JSON.stringify(e);default:return String(e)}}var HA={exports:{}};/** + */class dFe{constructor(t){this.keyboardNavigation=t.keyboardNavigation,this.focusedElement=t.focusedElement,this.focusable=t.focusable,this.root=t.root,this.uncontrolled=t.uncontrolled,this.core=t}}class hFe{constructor(t,r){var n,o;this._forgetMemorizedElements=[],this._wrappers=new Set,this._initQueue=[],this._version="5.2.0",this._noop=!1,this.getWindow=()=>{if(!this._win)throw new Error("Using disposed Tabster.");return this._win},this._storage=B3e(t),this._win=t;const i=this.getWindow;this.keyboardNavigation=new Q3e(i),this.focusedElement=new ao(this,i),this.focusable=new Y3e(this),this.root=new Mo(this,r==null?void 0:r.autoRoot),this.uncontrolled=new uFe((r==null?void 0:r.checkUncontrolledCompletely)||(r==null?void 0:r.checkUncontrolledTrappingFocus)),this.controlTab=(n=r==null?void 0:r.controlTab)!==null&&n!==void 0?n:!0,this.rootDummyInputs=!!(r!=null&&r.rootDummyInputs),this._dummyObserver=new W3e(i),this.getParent=(o=r==null?void 0:r.getParent)!==null&&o!==void 0?o:s=>s.parentElement,this.internal={stopObserver:()=>{this._unobserve&&(this._unobserve(),delete this._unobserve)},resumeObserver:s=>{if(!this._unobserve){const a=i().document;this._unobserve=aFe(a,this,Hae,s)}}},qae(i),this.queueInit(()=>{this.internal.resumeObserver(!0)})}_mergeProps(t){var r;t&&(this.getParent=(r=t.getParent)!==null&&r!==void 0?r:this.getParent)}createTabster(t,r){const n=new dFe(this);return t||this._wrappers.add(n),this._mergeProps(r),n}disposeTabster(t,r){r?this._wrappers.clear():this._wrappers.delete(t),this._wrappers.size===0&&this.dispose()}dispose(){var t,r,n,o,i,s,a,u;this.internal.stopObserver();const l=this._win;l==null||l.clearTimeout(this._initTimer),delete this._initTimer,this._initQueue=[],this._forgetMemorizedElements=[],l&&this._forgetMemorizedTimer&&(l.clearTimeout(this._forgetMemorizedTimer),delete this._forgetMemorizedTimer),(t=this.outline)===null||t===void 0||t.dispose(),(r=this.crossOrigin)===null||r===void 0||r.dispose(),(n=this.deloser)===null||n===void 0||n.dispose(),(o=this.groupper)===null||o===void 0||o.dispose(),(i=this.mover)===null||i===void 0||i.dispose(),(s=this.modalizer)===null||s===void 0||s.dispose(),(a=this.observedElement)===null||a===void 0||a.dispose(),(u=this.restorer)===null||u===void 0||u.dispose(),this.keyboardNavigation.dispose(),this.focusable.dispose(),this.focusedElement.dispose(),this.root.dispose(),this._dummyObserver.dispose(),L3e(this.getWindow),uK(this.getWindow),this._storage=new WeakMap,this._wrappers.clear(),l&&(F3e(l),delete l.__tabsterInstance,delete this._win)}storageEntry(t,r){const n=this._storage;let o=n.get(t);return o?r===!1&&Object.keys(o).length===0&&n.delete(t):r===!0&&(o={},n.set(t,o)),o}forceCleanup(){this._win&&(this._forgetMemorizedElements.push(this._win.document.body),!this._forgetMemorizedTimer&&(this._forgetMemorizedTimer=this._win.setTimeout(()=>{delete this._forgetMemorizedTimer;for(let t=this._forgetMemorizedElements.shift();t;t=this._forgetMemorizedElements.shift())uK(this.getWindow,t),ao.forgetMemorized(this.focusedElement,t)},0),Pae(this.getWindow,!0)))}queueInit(t){var r;this._win&&(this._initQueue.push(t),this._initTimer||(this._initTimer=(r=this._win)===null||r===void 0?void 0:r.setTimeout(()=>{delete this._initTimer,this.drainInitQueue()},0)))}drainInitQueue(){if(!this._win)return;const t=this._initQueue;this._initQueue=[],t.forEach(r=>r())}}function pFe(e,t){let r=bFe(e);return r?r.createTabster(!1,t):(r=new hFe(e,t),e.__tabsterInstance=r,r.createTabster())}function gFe(e){const t=e.core;return t.mover||(t.mover=new sFe(t,t.getWindow)),t.mover}function vFe(e,t,r){const n=e.core;return n.modalizer||(n.modalizer=new tFe(n,t,r)),n.modalizer}function mFe(e){const t=e.core;return t.restorer||(t.restorer=new fFe(t)),t.restorer}function yFe(e,t){e.core.disposeTabster(e,t)}function bFe(e){return e.__tabsterInstance}const OT=()=>{const{targetDocument:e}=Ca(),t=(e==null?void 0:e.defaultView)||void 0,r=k.useMemo(()=>t?pFe(t,{autoRoot:{},controlTab:!1,getParent:bae,checkUncontrolledTrappingFocus:n=>{var o;return!!(!((o=n.firstElementChild)===null||o===void 0)&&o.hasAttribute("data-is-focus-trap-zone-bumper"))}}):null,[t]);return uc(()=>()=>{r&&yFe(r)},[r]),r},Hk=e=>(OT(),Yae(e)),Qae=(e={})=>{const{circular:t,axis:r,memorizeCurrent:n,tabbable:o,ignoreDefaultKeydown:i,unstable_hasDefault:s}=e,a=OT();return a&&gFe(a),Hk({mover:{cyclic:!!t,direction:_Fe(r??"vertical"),memorizeCurrent:n,tabbable:o,hasDefault:s},...i&&{focusable:{ignoreKeydown:i}}})};function _Fe(e){switch(e){case"horizontal":return uh.MoverDirections.Horizontal;case"grid":return uh.MoverDirections.Grid;case"grid-linear":return uh.MoverDirections.GridLinear;case"both":return uh.MoverDirections.Both;case"vertical":default:return uh.MoverDirections.Vertical}}const Zae=()=>{const e=OT(),{targetDocument:t}=Ca(),r=k.useCallback((a,u)=>(e==null?void 0:e.focusable.findAll({container:a,acceptCondition:u}))||[],[e]),n=k.useCallback(a=>e==null?void 0:e.focusable.findFirst({container:a}),[e]),o=k.useCallback(a=>e==null?void 0:e.focusable.findLast({container:a}),[e]),i=k.useCallback((a,u={})=>{if(!e||!t)return null;const{container:l=t.body}=u;return e.focusable.findNext({currentElement:a,container:l})},[e,t]),s=k.useCallback((a,u={})=>{if(!e||!t)return null;const{container:l=t.body}=u;return e.focusable.findPrev({currentElement:a,container:l})},[e,t]);return{findAllFocusable:r,findFirstFocusable:n,findLastFocusable:o,findNextFocusable:i,findPrevFocusable:s}},dK="data-fui-focus-visible";function EFe(e,t){if(Jae(e))return()=>{};const r={current:void 0},n=Rae(t);function o(u){n.isNavigatingWithKeyboard()&&Hb(u)&&(r.current=u,u.setAttribute(dK,""))}function i(){r.current&&(r.current.removeAttribute(dK),r.current=void 0)}n.subscribe(u=>{u||i()});const s=u=>{i();const l=u.composedPath()[0];o(l)},a=u=>{(!u.relatedTarget||Hb(u.relatedTarget)&&!e.contains(u.relatedTarget))&&i()};return e.addEventListener(wf,s),e.addEventListener("focusout",a),e.focusVisible=!0,o(t.document.activeElement),()=>{i(),e.removeEventListener(wf,s),e.removeEventListener("focusout",a),delete e.focusVisible,Oae(n)}}function Jae(e){return e?e.focusVisible?!0:Jae(e==null?void 0:e.parentElement):!1}function eue(e={}){const t=Ca(),r=k.useRef(null);var n;const o=(n=e.targetDocument)!==null&&n!==void 0?n:t.targetDocument;return k.useEffect(()=>{if(o!=null&&o.defaultView&&r.current)return EFe(r.current,o.defaultView)},[r,o]),r}const DT=(e={})=>{const{trapFocus:t,alwaysFocusable:r,legacyTrapFocus:n}=e,o=OT();o&&(vFe(o),mFe(o));const i=Ia("modal-",e.id),s=Hk({restorer:{type:uh.RestorerTypes.Source},...t&&{modalizer:{id:i,isOthersAccessible:!t,isAlwaysAccessible:r,isTrapped:n&&t}}}),a=Hk({restorer:{type:uh.RestorerTypes.Target}});return{modalAttributes:s,triggerAttributes:a}},Re={2:"#050505",4:"#0a0a0a",6:"#0f0f0f",8:"#141414",10:"#1a1a1a",12:"#1f1f1f",14:"#242424",16:"#292929",18:"#2e2e2e",20:"#333333",22:"#383838",24:"#3d3d3d",26:"#424242",28:"#474747",30:"#4d4d4d",32:"#525252",34:"#575757",36:"#5c5c5c",38:"#616161",40:"#666666",42:"#6b6b6b",44:"#707070",46:"#757575",48:"#7a7a7a",50:"#808080",52:"#858585",54:"#8a8a8a",56:"#8f8f8f",58:"#949494",60:"#999999",62:"#9e9e9e",64:"#a3a3a3",66:"#a8a8a8",68:"#adadad",70:"#b3b3b3",72:"#b8b8b8",74:"#bdbdbd",76:"#c2c2c2",78:"#c7c7c7",80:"#cccccc",82:"#d1d1d1",84:"#d6d6d6",86:"#dbdbdb",88:"#e0e0e0",90:"#e6e6e6",92:"#ebebeb",94:"#f0f0f0",96:"#f5f5f5",98:"#fafafa"},ki={5:"rgba(255, 255, 255, 0.05)",10:"rgba(255, 255, 255, 0.1)",20:"rgba(255, 255, 255, 0.2)",30:"rgba(255, 255, 255, 0.3)",40:"rgba(255, 255, 255, 0.4)",50:"rgba(255, 255, 255, 0.5)",60:"rgba(255, 255, 255, 0.6)",70:"rgba(255, 255, 255, 0.7)",80:"rgba(255, 255, 255, 0.8)",90:"rgba(255, 255, 255, 0.9)"},Qa={5:"rgba(0, 0, 0, 0.05)",10:"rgba(0, 0, 0, 0.1)",20:"rgba(0, 0, 0, 0.2)",30:"rgba(0, 0, 0, 0.3)",40:"rgba(0, 0, 0, 0.4)",50:"rgba(0, 0, 0, 0.5)",60:"rgba(0, 0, 0, 0.6)",70:"rgba(0, 0, 0, 0.7)",80:"rgba(0, 0, 0, 0.8)",90:"rgba(0, 0, 0, 0.9)"},SFe={5:"rgba(26, 26, 26, 0.05)",10:"rgba(26, 26, 26, 0.1)",20:"rgba(26, 26, 26, 0.2)",30:"rgba(26, 26, 26, 0.3)",40:"rgba(26, 26, 26, 0.4)",50:"rgba(26, 26, 26, 0.5)",60:"rgba(26, 26, 26, 0.6)",70:"rgba(26, 26, 26, 0.7)",80:"rgba(26, 26, 26, 0.8)",90:"rgba(26, 26, 26, 0.9)"},wFe={5:"rgba(31, 31, 31, 0.05)",10:"rgba(31, 31, 31, 0.1)",20:"rgba(31, 31, 31, 0.2)",30:"rgba(31, 31, 31, 0.3)",40:"rgba(31, 31, 31, 0.4)",50:"rgba(31, 31, 31, 0.5)",60:"rgba(31, 31, 31, 0.6)",70:"rgba(31, 31, 31, 0.7)",80:"rgba(31, 31, 31, 0.8)",90:"rgba(31, 31, 31, 0.9)"},hK={5:"rgba(36, 36, 36, 0.05)",10:"rgba(36, 36, 36, 0.1)",20:"rgba(36, 36, 36, 0.2)",30:"rgba(36, 36, 36, 0.3)",40:"rgba(36, 36, 36, 0.4)",50:"rgba(36, 36, 36, 0.5)",60:"rgba(36, 36, 36, 0.6)",70:"rgba(36, 36, 36, 0.7)",80:"rgba(36, 36, 36, 0.8)",90:"rgba(36, 36, 36, 0.9)"},Qt="#ffffff",fB="#000000",AFe={shade50:"#130204",shade40:"#230308",shade30:"#420610",shade20:"#590815",shade10:"#690a19",primary:"#750b1c",tint10:"#861b2c",tint20:"#962f3f",tint30:"#ac4f5e",tint40:"#d69ca5",tint50:"#e9c7cd",tint60:"#f9f0f2"},tue={shade50:"#200205",shade40:"#3b0509",shade30:"#6e0811",shade20:"#960b18",shade10:"#b10e1c",primary:"#c50f1f",tint10:"#cc2635",tint20:"#d33f4c",tint30:"#dc626d",tint40:"#eeacb2",tint50:"#f6d1d5",tint60:"#fdf3f4"},kFe={shade50:"#210809",shade40:"#3f1011",shade30:"#751d1f",shade20:"#9f282b",shade10:"#bc2f32",primary:"#d13438",tint10:"#d7494c",tint20:"#dc5e62",tint30:"#e37d80",tint40:"#f1bbbc",tint50:"#f8dadb",tint60:"#fdf6f6"},xFe={shade50:"#230900",shade40:"#411200",shade30:"#7a2101",shade20:"#a62d01",shade10:"#c43501",primary:"#da3b01",tint10:"#de501c",tint20:"#e36537",tint30:"#e9835e",tint40:"#f4bfab",tint50:"#f9dcd1",tint60:"#fdf6f3"},TFe={shade50:"#200d03",shade40:"#3d1805",shade30:"#712d09",shade20:"#9a3d0c",shade10:"#b6480e",primary:"#ca5010",tint10:"#d06228",tint20:"#d77440",tint30:"#df8e64",tint40:"#efc4ad",tint50:"#f7dfd2",tint60:"#fdf7f4"},IFe={shade50:"#271002",shade40:"#4a1e04",shade30:"#8a3707",shade20:"#bc4b09",shade10:"#de590b",primary:"#f7630c",tint10:"#f87528",tint20:"#f98845",tint30:"#faa06b",tint40:"#fdcfb4",tint50:"#fee5d7",tint60:"#fff9f5"},CFe={shade50:"#291600",shade40:"#4d2a00",shade30:"#8f4e00",shade20:"#c26a00",shade10:"#e67e00",primary:"#ff8c00",tint10:"#ff9a1f",tint20:"#ffa83d",tint30:"#ffba66",tint40:"#ffddb3",tint50:"#ffedd6",tint60:"#fffaf5"},NFe={shade50:"#251a00",shade40:"#463100",shade30:"#835b00",shade20:"#b27c00",shade10:"#d39300",primary:"#eaa300",tint10:"#edad1c",tint20:"#efb839",tint30:"#f2c661",tint40:"#f9e2ae",tint50:"#fcefd3",tint60:"#fefbf4"},RFe={primary:"#fde300",shade10:"#e4cc00",shade20:"#c0ad00",shade30:"#817400",shade40:"#4c4400",shade50:"#282400",tint10:"#fde61e",tint20:"#fdea3d",tint30:"#feee66",tint40:"#fef7b2",tint50:"#fffad6",tint60:"#fffef5"},OFe={shade50:"#1f1900",shade40:"#3a2f00",shade30:"#6c5700",shade20:"#937700",shade10:"#ae8c00",primary:"#c19c00",tint10:"#c8a718",tint20:"#d0b232",tint30:"#dac157",tint40:"#ecdfa5",tint50:"#f5eece",tint60:"#fdfbf2"},DFe={shade50:"#181202",shade40:"#2e2103",shade30:"#553e06",shade20:"#745408",shade10:"#89640a",primary:"#986f0b",tint10:"#a47d1e",tint20:"#b18c34",tint30:"#c1a256",tint40:"#e0cea2",tint50:"#efe4cb",tint60:"#fbf8f2"},FFe={shade50:"#170e07",shade40:"#2b1a0e",shade30:"#50301a",shade20:"#6c4123",shade10:"#804d29",primary:"#8e562e",tint10:"#9c663f",tint20:"#a97652",tint30:"#bb8f6f",tint40:"#ddc3b0",tint50:"#edded3",tint60:"#faf7f4"},BFe={shade50:"#0c1501",shade40:"#162702",shade30:"#294903",shade20:"#376304",shade10:"#427505",primary:"#498205",tint10:"#599116",tint20:"#6ba02b",tint30:"#85b44c",tint40:"#bdd99b",tint50:"#dbebc7",tint60:"#f6faf0"},MFe={shade50:"#002111",shade40:"#003d20",shade30:"#00723b",shade20:"#009b51",shade10:"#00b85f",primary:"#00cc6a",tint10:"#19d279",tint20:"#34d889",tint30:"#5ae0a0",tint40:"#a8f0cd",tint50:"#cff7e4",tint60:"#f3fdf8"},LFe={shade50:"#031a02",shade40:"#063004",shade30:"#0b5a08",shade20:"#0e7a0b",shade10:"#11910d",primary:"#13a10e",tint10:"#27ac22",tint20:"#3db838",tint30:"#5ec75a",tint40:"#a7e3a5",tint50:"#cef0cd",tint60:"#f2fbf2"},rue={shade50:"#031403",shade40:"#052505",shade30:"#094509",shade20:"#0c5e0c",shade10:"#0e700e",primary:"#107c10",tint10:"#218c21",tint20:"#359b35",tint30:"#54b054",tint40:"#9fd89f",tint50:"#c9eac9",tint60:"#f1faf1"},jFe={shade50:"#021102",shade40:"#032003",shade30:"#063b06",shade20:"#085108",shade10:"#0a5f0a",primary:"#0b6a0b",tint10:"#1a7c1a",tint20:"#2d8e2d",tint30:"#4da64d",tint40:"#9ad29a",tint50:"#c6e7c6",tint60:"#f0f9f0"},zFe={shade50:"#001d1f",shade40:"#00373a",shade30:"#00666d",shade20:"#008b94",shade10:"#00a5af",primary:"#00b7c3",tint10:"#18bfca",tint20:"#32c8d1",tint30:"#58d3db",tint40:"#a6e9ed",tint50:"#cef3f5",tint60:"#f2fcfd"},HFe={shade50:"#001516",shade40:"#012728",shade30:"#02494c",shade20:"#026467",shade10:"#037679",primary:"#038387",tint10:"#159195",tint20:"#2aa0a4",tint30:"#4cb4b7",tint40:"#9bd9db",tint50:"#c7ebec",tint60:"#f0fafa"},$Fe={shade50:"#000f12",shade40:"#001b22",shade30:"#00333f",shade20:"#004555",shade10:"#005265",primary:"#005b70",tint10:"#0f6c81",tint20:"#237d92",tint30:"#4496a9",tint40:"#94c8d4",tint50:"#c3e1e8",tint60:"#eff7f9"},PFe={shade50:"#001322",shade40:"#002440",shade30:"#004377",shade20:"#005ba1",shade10:"#006cbf",primary:"#0078d4",tint10:"#1a86d9",tint20:"#3595de",tint30:"#5caae5",tint40:"#a9d3f2",tint50:"#d0e7f8",tint60:"#f3f9fd"},qFe={shade50:"#000c16",shade40:"#00172a",shade30:"#002c4e",shade20:"#003b6a",shade10:"#00467e",primary:"#004e8c",tint10:"#125e9a",tint20:"#286fa8",tint30:"#4a89ba",tint40:"#9abfdc",tint50:"#c7dced",tint60:"#f0f6fa"},WFe={shade50:"#0d1126",shade40:"#182047",shade30:"#2c3c85",shade20:"#3c51b4",shade10:"#4760d5",primary:"#4f6bed",tint10:"#637cef",tint20:"#778df1",tint30:"#93a4f4",tint40:"#c8d1fa",tint50:"#e1e6fc",tint60:"#f7f9fe"},KFe={shade50:"#00061d",shade40:"#000c36",shade30:"#001665",shade20:"#001e89",shade10:"#0023a2",primary:"#0027b4",tint10:"#173bbd",tint20:"#3050c6",tint30:"#546fd2",tint40:"#a3b2e8",tint50:"#ccd5f3",tint60:"#f2f4fc"},GFe={shade50:"#120f25",shade40:"#221d46",shade30:"#3f3682",shade20:"#5649b0",shade10:"#6656d1",primary:"#7160e8",tint10:"#8172eb",tint20:"#9184ee",tint30:"#a79cf1",tint40:"#d2ccf8",tint50:"#e7e4fb",tint60:"#f9f8fe"},VFe={shade50:"#0f0717",shade40:"#1c0e2b",shade30:"#341a51",shade20:"#46236e",shade10:"#532982",primary:"#5c2e91",tint10:"#6b3f9e",tint20:"#7c52ab",tint30:"#9470bd",tint40:"#c6b1de",tint50:"#e0d3ed",tint60:"#f7f4fb"},UFe={shade50:"#160418",shade40:"#29072e",shade30:"#4c0d55",shade20:"#671174",shade10:"#7a1589",primary:"#881798",tint10:"#952aa4",tint20:"#a33fb1",tint30:"#b55fc1",tint40:"#d9a7e0",tint50:"#eaceef",tint60:"#faf2fb"},YFe={shade50:"#1f091d",shade40:"#3a1136",shade30:"#6d2064",shade20:"#932b88",shade10:"#af33a1",primary:"#c239b3",tint10:"#c94cbc",tint20:"#d161c4",tint30:"#da7ed0",tint40:"#edbbe7",tint50:"#f5daf2",tint60:"#fdf5fc"},XFe={shade50:"#1c0b1f",shade40:"#35153a",shade30:"#63276d",shade20:"#863593",shade10:"#9f3faf",primary:"#b146c2",tint10:"#ba58c9",tint20:"#c36bd1",tint30:"#cf87da",tint40:"#e6bfed",tint50:"#f2dcf5",tint60:"#fcf6fd"},QFe={shade50:"#24091b",shade40:"#441232",shade30:"#80215d",shade20:"#ad2d7e",shade10:"#cd3595",primary:"#e43ba6",tint10:"#e750b0",tint20:"#ea66ba",tint30:"#ef85c8",tint40:"#f7c0e3",tint50:"#fbddf0",tint60:"#fef6fb"},ZFe={shade50:"#1f0013",shade40:"#390024",shade30:"#6b0043",shade20:"#91005a",shade10:"#ac006b",primary:"#bf0077",tint10:"#c71885",tint20:"#ce3293",tint30:"#d957a8",tint40:"#eca5d1",tint50:"#f5cee6",tint60:"#fcf2f9"},JFe={shade50:"#13000c",shade40:"#240017",shade30:"#43002b",shade20:"#5a003b",shade10:"#6b0045",primary:"#77004d",tint10:"#87105d",tint20:"#98246f",tint30:"#ad4589",tint40:"#d696c0",tint50:"#e9c4dc",tint60:"#faf0f6"},eBe={shade50:"#141313",shade40:"#252323",shade30:"#444241",shade20:"#5d5958",shade10:"#6e6968",primary:"#7a7574",tint10:"#8a8584",tint20:"#9a9594",tint30:"#afabaa",tint40:"#d7d4d4",tint50:"#eae8e8",tint60:"#faf9f9"},tBe={shade50:"#0f0e0e",shade40:"#1c1b1a",shade30:"#343231",shade20:"#474443",shade10:"#54514f",primary:"#5d5a58",tint10:"#706d6b",tint20:"#84817e",tint30:"#9e9b99",tint40:"#cecccb",tint50:"#e5e4e3",tint60:"#f8f8f8"},rBe={shade50:"#111314",shade40:"#1f2426",shade30:"#3b4447",shade20:"#505c60",shade10:"#5f6d71",primary:"#69797e",tint10:"#79898d",tint20:"#89989d",tint30:"#a0adb2",tint40:"#cdd6d8",tint50:"#e4e9ea",tint60:"#f8f9fa"},nBe={shade50:"#090a0b",shade40:"#111315",shade30:"#202427",shade20:"#2b3135",shade10:"#333a3f",primary:"#394146",tint10:"#4d565c",tint20:"#626c72",tint30:"#808a90",tint40:"#bcc3c7",tint50:"#dbdfe1",tint60:"#f6f7f8"},Lr={red:kFe,green:rue,darkOrange:xFe,yellow:RFe,berry:YFe,lightGreen:LFe,marigold:NFe},Xd={darkRed:AFe,cranberry:tue,pumpkin:TFe,peach:CFe,gold:OFe,brass:DFe,brown:FFe,forest:BFe,seafoam:MFe,darkGreen:jFe,lightTeal:zFe,teal:HFe,steel:$Fe,blue:PFe,royalBlue:qFe,cornflower:WFe,navy:KFe,lavender:GFe,purple:VFe,grape:UFe,lilac:XFe,pink:QFe,magenta:ZFe,plum:JFe,beige:eBe,mink:tBe,platinum:rBe,anchor:nBe},en={cranberry:tue,green:rue,orange:IFe},nue=["red","green","darkOrange","yellow","berry","lightGreen","marigold"],oue=["darkRed","cranberry","pumpkin","peach","gold","brass","brown","forest","seafoam","darkGreen","lightTeal","teal","steel","blue","royalBlue","cornflower","navy","lavender","purple","grape","lilac","pink","magenta","plum","beige","mink","platinum","anchor"],Sc={success:"green",warning:"orange",danger:"cranberry"},X_=nue.reduce((e,t)=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),n={[`colorPalette${r}Background1`]:Lr[t].tint60,[`colorPalette${r}Background2`]:Lr[t].tint40,[`colorPalette${r}Background3`]:Lr[t].primary,[`colorPalette${r}Foreground1`]:Lr[t].shade10,[`colorPalette${r}Foreground2`]:Lr[t].shade30,[`colorPalette${r}Foreground3`]:Lr[t].primary,[`colorPalette${r}BorderActive`]:Lr[t].primary,[`colorPalette${r}Border1`]:Lr[t].tint40,[`colorPalette${r}Border2`]:Lr[t].primary};return Object.assign(e,n)},{});X_.colorPaletteYellowForeground1=Lr.yellow.shade30;X_.colorPaletteRedForegroundInverted=Lr.red.tint20;X_.colorPaletteGreenForegroundInverted=Lr.green.tint20;X_.colorPaletteYellowForegroundInverted=Lr.yellow.tint40;const oBe=oue.reduce((e,t)=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),n={[`colorPalette${r}Background2`]:Xd[t].tint40,[`colorPalette${r}Foreground2`]:Xd[t].shade30,[`colorPalette${r}BorderActive`]:Xd[t].primary};return Object.assign(e,n)},{}),iBe={...X_,...oBe},FT=Object.entries(Sc).reduce((e,[t,r])=>{const n=t.slice(0,1).toUpperCase()+t.slice(1),o={[`colorStatus${n}Background1`]:en[r].tint60,[`colorStatus${n}Background2`]:en[r].tint40,[`colorStatus${n}Background3`]:en[r].primary,[`colorStatus${n}Foreground1`]:en[r].shade10,[`colorStatus${n}Foreground2`]:en[r].shade30,[`colorStatus${n}Foreground3`]:en[r].primary,[`colorStatus${n}ForegroundInverted`]:en[r].tint30,[`colorStatus${n}BorderActive`]:en[r].primary,[`colorStatus${n}Border1`]:en[r].tint40,[`colorStatus${n}Border2`]:en[r].primary};return Object.assign(e,o)},{});FT.colorStatusWarningForeground1=en[Sc.warning].shade20;FT.colorStatusWarningForeground3=en[Sc.warning].shade20;FT.colorStatusWarningBorder2=en[Sc.warning].shade20;const sBe=e=>({colorNeutralForeground1:Re[14],colorNeutralForeground1Hover:Re[14],colorNeutralForeground1Pressed:Re[14],colorNeutralForeground1Selected:Re[14],colorNeutralForeground2:Re[26],colorNeutralForeground2Hover:Re[14],colorNeutralForeground2Pressed:Re[14],colorNeutralForeground2Selected:Re[14],colorNeutralForeground2BrandHover:e[80],colorNeutralForeground2BrandPressed:e[70],colorNeutralForeground2BrandSelected:e[80],colorNeutralForeground3:Re[38],colorNeutralForeground3Hover:Re[26],colorNeutralForeground3Pressed:Re[26],colorNeutralForeground3Selected:Re[26],colorNeutralForeground3BrandHover:e[80],colorNeutralForeground3BrandPressed:e[70],colorNeutralForeground3BrandSelected:e[80],colorNeutralForeground4:Re[44],colorNeutralForegroundDisabled:Re[74],colorNeutralForegroundInvertedDisabled:ki[40],colorBrandForegroundLink:e[70],colorBrandForegroundLinkHover:e[60],colorBrandForegroundLinkPressed:e[40],colorBrandForegroundLinkSelected:e[70],colorNeutralForeground2Link:Re[26],colorNeutralForeground2LinkHover:Re[14],colorNeutralForeground2LinkPressed:Re[14],colorNeutralForeground2LinkSelected:Re[14],colorCompoundBrandForeground1:e[80],colorCompoundBrandForeground1Hover:e[70],colorCompoundBrandForeground1Pressed:e[60],colorBrandForeground1:e[80],colorBrandForeground2:e[70],colorBrandForeground2Hover:e[60],colorBrandForeground2Pressed:e[30],colorNeutralForeground1Static:Re[14],colorNeutralForegroundStaticInverted:Qt,colorNeutralForegroundInverted:Qt,colorNeutralForegroundInvertedHover:Qt,colorNeutralForegroundInvertedPressed:Qt,colorNeutralForegroundInvertedSelected:Qt,colorNeutralForegroundInverted2:Qt,colorNeutralForegroundOnBrand:Qt,colorNeutralForegroundInvertedLink:Qt,colorNeutralForegroundInvertedLinkHover:Qt,colorNeutralForegroundInvertedLinkPressed:Qt,colorNeutralForegroundInvertedLinkSelected:Qt,colorBrandForegroundInverted:e[100],colorBrandForegroundInvertedHover:e[110],colorBrandForegroundInvertedPressed:e[100],colorBrandForegroundOnLight:e[80],colorBrandForegroundOnLightHover:e[70],colorBrandForegroundOnLightPressed:e[50],colorBrandForegroundOnLightSelected:e[60],colorNeutralBackground1:Qt,colorNeutralBackground1Hover:Re[96],colorNeutralBackground1Pressed:Re[88],colorNeutralBackground1Selected:Re[92],colorNeutralBackground2:Re[98],colorNeutralBackground2Hover:Re[94],colorNeutralBackground2Pressed:Re[86],colorNeutralBackground2Selected:Re[90],colorNeutralBackground3:Re[96],colorNeutralBackground3Hover:Re[92],colorNeutralBackground3Pressed:Re[84],colorNeutralBackground3Selected:Re[88],colorNeutralBackground4:Re[94],colorNeutralBackground4Hover:Re[98],colorNeutralBackground4Pressed:Re[96],colorNeutralBackground4Selected:Qt,colorNeutralBackground5:Re[92],colorNeutralBackground5Hover:Re[96],colorNeutralBackground5Pressed:Re[94],colorNeutralBackground5Selected:Re[98],colorNeutralBackground6:Re[90],colorNeutralBackgroundInverted:Re[16],colorNeutralBackgroundStatic:Re[20],colorNeutralBackgroundAlpha:ki[50],colorNeutralBackgroundAlpha2:ki[80],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:Re[96],colorSubtleBackgroundPressed:Re[88],colorSubtleBackgroundSelected:Re[92],colorSubtleBackgroundLightAlphaHover:ki[70],colorSubtleBackgroundLightAlphaPressed:ki[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:Qa[10],colorSubtleBackgroundInvertedPressed:Qa[30],colorSubtleBackgroundInvertedSelected:Qa[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:Re[94],colorNeutralBackgroundInvertedDisabled:ki[10],colorNeutralStencil1:Re[90],colorNeutralStencil2:Re[98],colorNeutralStencil1Alpha:Qa[10],colorNeutralStencil2Alpha:Qa[5],colorBackgroundOverlay:Qa[40],colorScrollbarOverlay:Qa[50],colorBrandBackground:e[80],colorBrandBackgroundHover:e[70],colorBrandBackgroundPressed:e[40],colorBrandBackgroundSelected:e[60],colorCompoundBrandBackground:e[80],colorCompoundBrandBackgroundHover:e[70],colorCompoundBrandBackgroundPressed:e[60],colorBrandBackgroundStatic:e[80],colorBrandBackground2:e[160],colorBrandBackground2Hover:e[150],colorBrandBackground2Pressed:e[130],colorBrandBackgroundInverted:Qt,colorBrandBackgroundInvertedHover:e[160],colorBrandBackgroundInvertedPressed:e[140],colorBrandBackgroundInvertedSelected:e[150],colorNeutralStrokeAccessible:Re[38],colorNeutralStrokeAccessibleHover:Re[34],colorNeutralStrokeAccessiblePressed:Re[30],colorNeutralStrokeAccessibleSelected:e[80],colorNeutralStroke1:Re[82],colorNeutralStroke1Hover:Re[78],colorNeutralStroke1Pressed:Re[70],colorNeutralStroke1Selected:Re[74],colorNeutralStroke2:Re[88],colorNeutralStroke3:Re[94],colorNeutralStrokeSubtle:Re[88],colorNeutralStrokeOnBrand:Qt,colorNeutralStrokeOnBrand2:Qt,colorNeutralStrokeOnBrand2Hover:Qt,colorNeutralStrokeOnBrand2Pressed:Qt,colorNeutralStrokeOnBrand2Selected:Qt,colorBrandStroke1:e[80],colorBrandStroke2:e[140],colorBrandStroke2Hover:e[120],colorBrandStroke2Pressed:e[80],colorBrandStroke2Contrast:e[140],colorCompoundBrandStroke:e[80],colorCompoundBrandStrokeHover:e[70],colorCompoundBrandStrokePressed:e[60],colorNeutralStrokeDisabled:Re[88],colorNeutralStrokeInvertedDisabled:ki[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:Qa[5],colorNeutralStrokeAlpha2:ki[20],colorStrokeFocus1:Qt,colorStrokeFocus2:fB,colorNeutralShadowAmbient:"rgba(0,0,0,0.12)",colorNeutralShadowKey:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.06)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.07)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.20)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.24)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"}),iue={borderRadiusNone:"0",borderRadiusSmall:"2px",borderRadiusMedium:"4px",borderRadiusLarge:"6px",borderRadiusXLarge:"8px",borderRadiusCircular:"10000px"},sue={curveAccelerateMax:"cubic-bezier(0.9,0.1,1,0.2)",curveAccelerateMid:"cubic-bezier(1,0,1,1)",curveAccelerateMin:"cubic-bezier(0.8,0,0.78,1)",curveDecelerateMax:"cubic-bezier(0.1,0.9,0.2,1)",curveDecelerateMid:"cubic-bezier(0,0,0,1)",curveDecelerateMin:"cubic-bezier(0.33,0,0.1,1)",curveEasyEaseMax:"cubic-bezier(0.8,0,0.2,1)",curveEasyEase:"cubic-bezier(0.33,0,0.67,1)",curveLinear:"cubic-bezier(0,0,1,1)"},aue={durationUltraFast:"50ms",durationFaster:"100ms",durationFast:"150ms",durationNormal:"200ms",durationGentle:"250ms",durationSlow:"300ms",durationSlower:"400ms",durationUltraSlow:"500ms"},uue={fontSizeBase100:"10px",fontSizeBase200:"12px",fontSizeBase300:"14px",fontSizeBase400:"16px",fontSizeBase500:"20px",fontSizeBase600:"24px",fontSizeHero700:"28px",fontSizeHero800:"32px",fontSizeHero900:"40px",fontSizeHero1000:"68px"},lue={lineHeightBase100:"14px",lineHeightBase200:"16px",lineHeightBase300:"20px",lineHeightBase400:"22px",lineHeightBase500:"28px",lineHeightBase600:"32px",lineHeightHero700:"36px",lineHeightHero800:"40px",lineHeightHero900:"52px",lineHeightHero1000:"92px"},cue={fontWeightRegular:400,fontWeightMedium:500,fontWeightSemibold:600,fontWeightBold:700},fue={fontFamilyBase:"'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif",fontFamilyMonospace:"Consolas, 'Courier New', Courier, monospace",fontFamilyNumeric:"Bahnschrift, 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif"},Xn={none:"0",xxs:"2px",xs:"4px",sNudge:"6px",s:"8px",mNudge:"10px",m:"12px",l:"16px",xl:"20px",xxl:"24px",xxxl:"32px"},due={spacingHorizontalNone:Xn.none,spacingHorizontalXXS:Xn.xxs,spacingHorizontalXS:Xn.xs,spacingHorizontalSNudge:Xn.sNudge,spacingHorizontalS:Xn.s,spacingHorizontalMNudge:Xn.mNudge,spacingHorizontalM:Xn.m,spacingHorizontalL:Xn.l,spacingHorizontalXL:Xn.xl,spacingHorizontalXXL:Xn.xxl,spacingHorizontalXXXL:Xn.xxxl},hue={spacingVerticalNone:Xn.none,spacingVerticalXXS:Xn.xxs,spacingVerticalXS:Xn.xs,spacingVerticalSNudge:Xn.sNudge,spacingVerticalS:Xn.s,spacingVerticalMNudge:Xn.mNudge,spacingVerticalM:Xn.m,spacingVerticalL:Xn.l,spacingVerticalXL:Xn.xl,spacingVerticalXXL:Xn.xxl,spacingVerticalXXXL:Xn.xxxl},pue={strokeWidthThin:"1px",strokeWidthThick:"2px",strokeWidthThicker:"3px",strokeWidthThickest:"4px"},Pt={colorNeutralForeground1:"var(--colorNeutralForeground1)",colorNeutralForeground1Hover:"var(--colorNeutralForeground1Hover)",colorNeutralForeground1Pressed:"var(--colorNeutralForeground1Pressed)",colorNeutralForeground1Selected:"var(--colorNeutralForeground1Selected)",colorNeutralForeground2:"var(--colorNeutralForeground2)",colorNeutralForeground2Hover:"var(--colorNeutralForeground2Hover)",colorNeutralForeground2Pressed:"var(--colorNeutralForeground2Pressed)",colorNeutralForeground2Selected:"var(--colorNeutralForeground2Selected)",colorNeutralForeground2BrandHover:"var(--colorNeutralForeground2BrandHover)",colorNeutralForeground2BrandPressed:"var(--colorNeutralForeground2BrandPressed)",colorNeutralForeground2BrandSelected:"var(--colorNeutralForeground2BrandSelected)",colorNeutralForeground3:"var(--colorNeutralForeground3)",colorNeutralForeground3Hover:"var(--colorNeutralForeground3Hover)",colorNeutralForeground3Pressed:"var(--colorNeutralForeground3Pressed)",colorNeutralForeground3Selected:"var(--colorNeutralForeground3Selected)",colorNeutralForeground3BrandHover:"var(--colorNeutralForeground3BrandHover)",colorNeutralForeground3BrandPressed:"var(--colorNeutralForeground3BrandPressed)",colorNeutralForeground3BrandSelected:"var(--colorNeutralForeground3BrandSelected)",colorNeutralForeground4:"var(--colorNeutralForeground4)",colorNeutralForegroundDisabled:"var(--colorNeutralForegroundDisabled)",colorBrandForegroundLink:"var(--colorBrandForegroundLink)",colorBrandForegroundLinkHover:"var(--colorBrandForegroundLinkHover)",colorBrandForegroundLinkPressed:"var(--colorBrandForegroundLinkPressed)",colorBrandForegroundLinkSelected:"var(--colorBrandForegroundLinkSelected)",colorNeutralForeground2Link:"var(--colorNeutralForeground2Link)",colorNeutralForeground2LinkHover:"var(--colorNeutralForeground2LinkHover)",colorNeutralForeground2LinkPressed:"var(--colorNeutralForeground2LinkPressed)",colorNeutralForeground2LinkSelected:"var(--colorNeutralForeground2LinkSelected)",colorCompoundBrandForeground1:"var(--colorCompoundBrandForeground1)",colorCompoundBrandForeground1Hover:"var(--colorCompoundBrandForeground1Hover)",colorCompoundBrandForeground1Pressed:"var(--colorCompoundBrandForeground1Pressed)",colorNeutralForegroundOnBrand:"var(--colorNeutralForegroundOnBrand)",colorNeutralForegroundInverted:"var(--colorNeutralForegroundInverted)",colorNeutralForegroundInvertedHover:"var(--colorNeutralForegroundInvertedHover)",colorNeutralForegroundInvertedPressed:"var(--colorNeutralForegroundInvertedPressed)",colorNeutralForegroundInvertedSelected:"var(--colorNeutralForegroundInvertedSelected)",colorNeutralForegroundInverted2:"var(--colorNeutralForegroundInverted2)",colorNeutralForegroundStaticInverted:"var(--colorNeutralForegroundStaticInverted)",colorNeutralForegroundInvertedLink:"var(--colorNeutralForegroundInvertedLink)",colorNeutralForegroundInvertedLinkHover:"var(--colorNeutralForegroundInvertedLinkHover)",colorNeutralForegroundInvertedLinkPressed:"var(--colorNeutralForegroundInvertedLinkPressed)",colorNeutralForegroundInvertedLinkSelected:"var(--colorNeutralForegroundInvertedLinkSelected)",colorNeutralForegroundInvertedDisabled:"var(--colorNeutralForegroundInvertedDisabled)",colorBrandForeground1:"var(--colorBrandForeground1)",colorBrandForeground2:"var(--colorBrandForeground2)",colorBrandForeground2Hover:"var(--colorBrandForeground2Hover)",colorBrandForeground2Pressed:"var(--colorBrandForeground2Pressed)",colorNeutralForeground1Static:"var(--colorNeutralForeground1Static)",colorBrandForegroundInverted:"var(--colorBrandForegroundInverted)",colorBrandForegroundInvertedHover:"var(--colorBrandForegroundInvertedHover)",colorBrandForegroundInvertedPressed:"var(--colorBrandForegroundInvertedPressed)",colorBrandForegroundOnLight:"var(--colorBrandForegroundOnLight)",colorBrandForegroundOnLightHover:"var(--colorBrandForegroundOnLightHover)",colorBrandForegroundOnLightPressed:"var(--colorBrandForegroundOnLightPressed)",colorBrandForegroundOnLightSelected:"var(--colorBrandForegroundOnLightSelected)",colorNeutralBackground1:"var(--colorNeutralBackground1)",colorNeutralBackground1Hover:"var(--colorNeutralBackground1Hover)",colorNeutralBackground1Pressed:"var(--colorNeutralBackground1Pressed)",colorNeutralBackground1Selected:"var(--colorNeutralBackground1Selected)",colorNeutralBackground2:"var(--colorNeutralBackground2)",colorNeutralBackground2Hover:"var(--colorNeutralBackground2Hover)",colorNeutralBackground2Pressed:"var(--colorNeutralBackground2Pressed)",colorNeutralBackground2Selected:"var(--colorNeutralBackground2Selected)",colorNeutralBackground3:"var(--colorNeutralBackground3)",colorNeutralBackground3Hover:"var(--colorNeutralBackground3Hover)",colorNeutralBackground3Pressed:"var(--colorNeutralBackground3Pressed)",colorNeutralBackground3Selected:"var(--colorNeutralBackground3Selected)",colorNeutralBackground4:"var(--colorNeutralBackground4)",colorNeutralBackground4Hover:"var(--colorNeutralBackground4Hover)",colorNeutralBackground4Pressed:"var(--colorNeutralBackground4Pressed)",colorNeutralBackground4Selected:"var(--colorNeutralBackground4Selected)",colorNeutralBackground5:"var(--colorNeutralBackground5)",colorNeutralBackground5Hover:"var(--colorNeutralBackground5Hover)",colorNeutralBackground5Pressed:"var(--colorNeutralBackground5Pressed)",colorNeutralBackground5Selected:"var(--colorNeutralBackground5Selected)",colorNeutralBackground6:"var(--colorNeutralBackground6)",colorNeutralBackgroundInverted:"var(--colorNeutralBackgroundInverted)",colorNeutralBackgroundStatic:"var(--colorNeutralBackgroundStatic)",colorNeutralBackgroundAlpha:"var(--colorNeutralBackgroundAlpha)",colorNeutralBackgroundAlpha2:"var(--colorNeutralBackgroundAlpha2)",colorSubtleBackground:"var(--colorSubtleBackground)",colorSubtleBackgroundHover:"var(--colorSubtleBackgroundHover)",colorSubtleBackgroundPressed:"var(--colorSubtleBackgroundPressed)",colorSubtleBackgroundSelected:"var(--colorSubtleBackgroundSelected)",colorSubtleBackgroundLightAlphaHover:"var(--colorSubtleBackgroundLightAlphaHover)",colorSubtleBackgroundLightAlphaPressed:"var(--colorSubtleBackgroundLightAlphaPressed)",colorSubtleBackgroundLightAlphaSelected:"var(--colorSubtleBackgroundLightAlphaSelected)",colorSubtleBackgroundInverted:"var(--colorSubtleBackgroundInverted)",colorSubtleBackgroundInvertedHover:"var(--colorSubtleBackgroundInvertedHover)",colorSubtleBackgroundInvertedPressed:"var(--colorSubtleBackgroundInvertedPressed)",colorSubtleBackgroundInvertedSelected:"var(--colorSubtleBackgroundInvertedSelected)",colorTransparentBackground:"var(--colorTransparentBackground)",colorTransparentBackgroundHover:"var(--colorTransparentBackgroundHover)",colorTransparentBackgroundPressed:"var(--colorTransparentBackgroundPressed)",colorTransparentBackgroundSelected:"var(--colorTransparentBackgroundSelected)",colorNeutralBackgroundDisabled:"var(--colorNeutralBackgroundDisabled)",colorNeutralBackgroundInvertedDisabled:"var(--colorNeutralBackgroundInvertedDisabled)",colorNeutralStencil1:"var(--colorNeutralStencil1)",colorNeutralStencil2:"var(--colorNeutralStencil2)",colorNeutralStencil1Alpha:"var(--colorNeutralStencil1Alpha)",colorNeutralStencil2Alpha:"var(--colorNeutralStencil2Alpha)",colorBackgroundOverlay:"var(--colorBackgroundOverlay)",colorScrollbarOverlay:"var(--colorScrollbarOverlay)",colorBrandBackground:"var(--colorBrandBackground)",colorBrandBackgroundHover:"var(--colorBrandBackgroundHover)",colorBrandBackgroundPressed:"var(--colorBrandBackgroundPressed)",colorBrandBackgroundSelected:"var(--colorBrandBackgroundSelected)",colorCompoundBrandBackground:"var(--colorCompoundBrandBackground)",colorCompoundBrandBackgroundHover:"var(--colorCompoundBrandBackgroundHover)",colorCompoundBrandBackgroundPressed:"var(--colorCompoundBrandBackgroundPressed)",colorBrandBackgroundStatic:"var(--colorBrandBackgroundStatic)",colorBrandBackground2:"var(--colorBrandBackground2)",colorBrandBackground2Hover:"var(--colorBrandBackground2Hover)",colorBrandBackground2Pressed:"var(--colorBrandBackground2Pressed)",colorBrandBackgroundInverted:"var(--colorBrandBackgroundInverted)",colorBrandBackgroundInvertedHover:"var(--colorBrandBackgroundInvertedHover)",colorBrandBackgroundInvertedPressed:"var(--colorBrandBackgroundInvertedPressed)",colorBrandBackgroundInvertedSelected:"var(--colorBrandBackgroundInvertedSelected)",colorNeutralStrokeAccessible:"var(--colorNeutralStrokeAccessible)",colorNeutralStrokeAccessibleHover:"var(--colorNeutralStrokeAccessibleHover)",colorNeutralStrokeAccessiblePressed:"var(--colorNeutralStrokeAccessiblePressed)",colorNeutralStrokeAccessibleSelected:"var(--colorNeutralStrokeAccessibleSelected)",colorNeutralStroke1:"var(--colorNeutralStroke1)",colorNeutralStroke1Hover:"var(--colorNeutralStroke1Hover)",colorNeutralStroke1Pressed:"var(--colorNeutralStroke1Pressed)",colorNeutralStroke1Selected:"var(--colorNeutralStroke1Selected)",colorNeutralStroke2:"var(--colorNeutralStroke2)",colorNeutralStroke3:"var(--colorNeutralStroke3)",colorNeutralStrokeSubtle:"var(--colorNeutralStrokeSubtle)",colorNeutralStrokeOnBrand:"var(--colorNeutralStrokeOnBrand)",colorNeutralStrokeOnBrand2:"var(--colorNeutralStrokeOnBrand2)",colorNeutralStrokeOnBrand2Hover:"var(--colorNeutralStrokeOnBrand2Hover)",colorNeutralStrokeOnBrand2Pressed:"var(--colorNeutralStrokeOnBrand2Pressed)",colorNeutralStrokeOnBrand2Selected:"var(--colorNeutralStrokeOnBrand2Selected)",colorBrandStroke1:"var(--colorBrandStroke1)",colorBrandStroke2:"var(--colorBrandStroke2)",colorBrandStroke2Hover:"var(--colorBrandStroke2Hover)",colorBrandStroke2Pressed:"var(--colorBrandStroke2Pressed)",colorBrandStroke2Contrast:"var(--colorBrandStroke2Contrast)",colorCompoundBrandStroke:"var(--colorCompoundBrandStroke)",colorCompoundBrandStrokeHover:"var(--colorCompoundBrandStrokeHover)",colorCompoundBrandStrokePressed:"var(--colorCompoundBrandStrokePressed)",colorNeutralStrokeDisabled:"var(--colorNeutralStrokeDisabled)",colorNeutralStrokeInvertedDisabled:"var(--colorNeutralStrokeInvertedDisabled)",colorTransparentStroke:"var(--colorTransparentStroke)",colorTransparentStrokeInteractive:"var(--colorTransparentStrokeInteractive)",colorTransparentStrokeDisabled:"var(--colorTransparentStrokeDisabled)",colorNeutralStrokeAlpha:"var(--colorNeutralStrokeAlpha)",colorNeutralStrokeAlpha2:"var(--colorNeutralStrokeAlpha2)",colorStrokeFocus1:"var(--colorStrokeFocus1)",colorStrokeFocus2:"var(--colorStrokeFocus2)",colorNeutralShadowAmbient:"var(--colorNeutralShadowAmbient)",colorNeutralShadowKey:"var(--colorNeutralShadowKey)",colorNeutralShadowAmbientLighter:"var(--colorNeutralShadowAmbientLighter)",colorNeutralShadowKeyLighter:"var(--colorNeutralShadowKeyLighter)",colorNeutralShadowAmbientDarker:"var(--colorNeutralShadowAmbientDarker)",colorNeutralShadowKeyDarker:"var(--colorNeutralShadowKeyDarker)",colorBrandShadowAmbient:"var(--colorBrandShadowAmbient)",colorBrandShadowKey:"var(--colorBrandShadowKey)",colorPaletteRedBackground1:"var(--colorPaletteRedBackground1)",colorPaletteRedBackground2:"var(--colorPaletteRedBackground2)",colorPaletteRedBackground3:"var(--colorPaletteRedBackground3)",colorPaletteRedBorderActive:"var(--colorPaletteRedBorderActive)",colorPaletteRedBorder1:"var(--colorPaletteRedBorder1)",colorPaletteRedBorder2:"var(--colorPaletteRedBorder2)",colorPaletteRedForeground1:"var(--colorPaletteRedForeground1)",colorPaletteRedForeground2:"var(--colorPaletteRedForeground2)",colorPaletteRedForeground3:"var(--colorPaletteRedForeground3)",colorPaletteRedForegroundInverted:"var(--colorPaletteRedForegroundInverted)",colorPaletteGreenBackground1:"var(--colorPaletteGreenBackground1)",colorPaletteGreenBackground2:"var(--colorPaletteGreenBackground2)",colorPaletteGreenBackground3:"var(--colorPaletteGreenBackground3)",colorPaletteGreenBorderActive:"var(--colorPaletteGreenBorderActive)",colorPaletteGreenBorder1:"var(--colorPaletteGreenBorder1)",colorPaletteGreenBorder2:"var(--colorPaletteGreenBorder2)",colorPaletteGreenForeground1:"var(--colorPaletteGreenForeground1)",colorPaletteGreenForeground2:"var(--colorPaletteGreenForeground2)",colorPaletteGreenForeground3:"var(--colorPaletteGreenForeground3)",colorPaletteGreenForegroundInverted:"var(--colorPaletteGreenForegroundInverted)",colorPaletteDarkOrangeBackground1:"var(--colorPaletteDarkOrangeBackground1)",colorPaletteDarkOrangeBackground2:"var(--colorPaletteDarkOrangeBackground2)",colorPaletteDarkOrangeBackground3:"var(--colorPaletteDarkOrangeBackground3)",colorPaletteDarkOrangeBorderActive:"var(--colorPaletteDarkOrangeBorderActive)",colorPaletteDarkOrangeBorder1:"var(--colorPaletteDarkOrangeBorder1)",colorPaletteDarkOrangeBorder2:"var(--colorPaletteDarkOrangeBorder2)",colorPaletteDarkOrangeForeground1:"var(--colorPaletteDarkOrangeForeground1)",colorPaletteDarkOrangeForeground2:"var(--colorPaletteDarkOrangeForeground2)",colorPaletteDarkOrangeForeground3:"var(--colorPaletteDarkOrangeForeground3)",colorPaletteYellowBackground1:"var(--colorPaletteYellowBackground1)",colorPaletteYellowBackground2:"var(--colorPaletteYellowBackground2)",colorPaletteYellowBackground3:"var(--colorPaletteYellowBackground3)",colorPaletteYellowBorderActive:"var(--colorPaletteYellowBorderActive)",colorPaletteYellowBorder1:"var(--colorPaletteYellowBorder1)",colorPaletteYellowBorder2:"var(--colorPaletteYellowBorder2)",colorPaletteYellowForeground1:"var(--colorPaletteYellowForeground1)",colorPaletteYellowForeground2:"var(--colorPaletteYellowForeground2)",colorPaletteYellowForeground3:"var(--colorPaletteYellowForeground3)",colorPaletteYellowForegroundInverted:"var(--colorPaletteYellowForegroundInverted)",colorPaletteBerryBackground1:"var(--colorPaletteBerryBackground1)",colorPaletteBerryBackground2:"var(--colorPaletteBerryBackground2)",colorPaletteBerryBackground3:"var(--colorPaletteBerryBackground3)",colorPaletteBerryBorderActive:"var(--colorPaletteBerryBorderActive)",colorPaletteBerryBorder1:"var(--colorPaletteBerryBorder1)",colorPaletteBerryBorder2:"var(--colorPaletteBerryBorder2)",colorPaletteBerryForeground1:"var(--colorPaletteBerryForeground1)",colorPaletteBerryForeground2:"var(--colorPaletteBerryForeground2)",colorPaletteBerryForeground3:"var(--colorPaletteBerryForeground3)",colorPaletteMarigoldBackground1:"var(--colorPaletteMarigoldBackground1)",colorPaletteMarigoldBackground2:"var(--colorPaletteMarigoldBackground2)",colorPaletteMarigoldBackground3:"var(--colorPaletteMarigoldBackground3)",colorPaletteMarigoldBorderActive:"var(--colorPaletteMarigoldBorderActive)",colorPaletteMarigoldBorder1:"var(--colorPaletteMarigoldBorder1)",colorPaletteMarigoldBorder2:"var(--colorPaletteMarigoldBorder2)",colorPaletteMarigoldForeground1:"var(--colorPaletteMarigoldForeground1)",colorPaletteMarigoldForeground2:"var(--colorPaletteMarigoldForeground2)",colorPaletteMarigoldForeground3:"var(--colorPaletteMarigoldForeground3)",colorPaletteLightGreenBackground1:"var(--colorPaletteLightGreenBackground1)",colorPaletteLightGreenBackground2:"var(--colorPaletteLightGreenBackground2)",colorPaletteLightGreenBackground3:"var(--colorPaletteLightGreenBackground3)",colorPaletteLightGreenBorderActive:"var(--colorPaletteLightGreenBorderActive)",colorPaletteLightGreenBorder1:"var(--colorPaletteLightGreenBorder1)",colorPaletteLightGreenBorder2:"var(--colorPaletteLightGreenBorder2)",colorPaletteLightGreenForeground1:"var(--colorPaletteLightGreenForeground1)",colorPaletteLightGreenForeground2:"var(--colorPaletteLightGreenForeground2)",colorPaletteLightGreenForeground3:"var(--colorPaletteLightGreenForeground3)",colorPaletteAnchorBackground2:"var(--colorPaletteAnchorBackground2)",colorPaletteAnchorBorderActive:"var(--colorPaletteAnchorBorderActive)",colorPaletteAnchorForeground2:"var(--colorPaletteAnchorForeground2)",colorPaletteBeigeBackground2:"var(--colorPaletteBeigeBackground2)",colorPaletteBeigeBorderActive:"var(--colorPaletteBeigeBorderActive)",colorPaletteBeigeForeground2:"var(--colorPaletteBeigeForeground2)",colorPaletteBlueBackground2:"var(--colorPaletteBlueBackground2)",colorPaletteBlueBorderActive:"var(--colorPaletteBlueBorderActive)",colorPaletteBlueForeground2:"var(--colorPaletteBlueForeground2)",colorPaletteBrassBackground2:"var(--colorPaletteBrassBackground2)",colorPaletteBrassBorderActive:"var(--colorPaletteBrassBorderActive)",colorPaletteBrassForeground2:"var(--colorPaletteBrassForeground2)",colorPaletteBrownBackground2:"var(--colorPaletteBrownBackground2)",colorPaletteBrownBorderActive:"var(--colorPaletteBrownBorderActive)",colorPaletteBrownForeground2:"var(--colorPaletteBrownForeground2)",colorPaletteCornflowerBackground2:"var(--colorPaletteCornflowerBackground2)",colorPaletteCornflowerBorderActive:"var(--colorPaletteCornflowerBorderActive)",colorPaletteCornflowerForeground2:"var(--colorPaletteCornflowerForeground2)",colorPaletteCranberryBackground2:"var(--colorPaletteCranberryBackground2)",colorPaletteCranberryBorderActive:"var(--colorPaletteCranberryBorderActive)",colorPaletteCranberryForeground2:"var(--colorPaletteCranberryForeground2)",colorPaletteDarkGreenBackground2:"var(--colorPaletteDarkGreenBackground2)",colorPaletteDarkGreenBorderActive:"var(--colorPaletteDarkGreenBorderActive)",colorPaletteDarkGreenForeground2:"var(--colorPaletteDarkGreenForeground2)",colorPaletteDarkRedBackground2:"var(--colorPaletteDarkRedBackground2)",colorPaletteDarkRedBorderActive:"var(--colorPaletteDarkRedBorderActive)",colorPaletteDarkRedForeground2:"var(--colorPaletteDarkRedForeground2)",colorPaletteForestBackground2:"var(--colorPaletteForestBackground2)",colorPaletteForestBorderActive:"var(--colorPaletteForestBorderActive)",colorPaletteForestForeground2:"var(--colorPaletteForestForeground2)",colorPaletteGoldBackground2:"var(--colorPaletteGoldBackground2)",colorPaletteGoldBorderActive:"var(--colorPaletteGoldBorderActive)",colorPaletteGoldForeground2:"var(--colorPaletteGoldForeground2)",colorPaletteGrapeBackground2:"var(--colorPaletteGrapeBackground2)",colorPaletteGrapeBorderActive:"var(--colorPaletteGrapeBorderActive)",colorPaletteGrapeForeground2:"var(--colorPaletteGrapeForeground2)",colorPaletteLavenderBackground2:"var(--colorPaletteLavenderBackground2)",colorPaletteLavenderBorderActive:"var(--colorPaletteLavenderBorderActive)",colorPaletteLavenderForeground2:"var(--colorPaletteLavenderForeground2)",colorPaletteLightTealBackground2:"var(--colorPaletteLightTealBackground2)",colorPaletteLightTealBorderActive:"var(--colorPaletteLightTealBorderActive)",colorPaletteLightTealForeground2:"var(--colorPaletteLightTealForeground2)",colorPaletteLilacBackground2:"var(--colorPaletteLilacBackground2)",colorPaletteLilacBorderActive:"var(--colorPaletteLilacBorderActive)",colorPaletteLilacForeground2:"var(--colorPaletteLilacForeground2)",colorPaletteMagentaBackground2:"var(--colorPaletteMagentaBackground2)",colorPaletteMagentaBorderActive:"var(--colorPaletteMagentaBorderActive)",colorPaletteMagentaForeground2:"var(--colorPaletteMagentaForeground2)",colorPaletteMinkBackground2:"var(--colorPaletteMinkBackground2)",colorPaletteMinkBorderActive:"var(--colorPaletteMinkBorderActive)",colorPaletteMinkForeground2:"var(--colorPaletteMinkForeground2)",colorPaletteNavyBackground2:"var(--colorPaletteNavyBackground2)",colorPaletteNavyBorderActive:"var(--colorPaletteNavyBorderActive)",colorPaletteNavyForeground2:"var(--colorPaletteNavyForeground2)",colorPalettePeachBackground2:"var(--colorPalettePeachBackground2)",colorPalettePeachBorderActive:"var(--colorPalettePeachBorderActive)",colorPalettePeachForeground2:"var(--colorPalettePeachForeground2)",colorPalettePinkBackground2:"var(--colorPalettePinkBackground2)",colorPalettePinkBorderActive:"var(--colorPalettePinkBorderActive)",colorPalettePinkForeground2:"var(--colorPalettePinkForeground2)",colorPalettePlatinumBackground2:"var(--colorPalettePlatinumBackground2)",colorPalettePlatinumBorderActive:"var(--colorPalettePlatinumBorderActive)",colorPalettePlatinumForeground2:"var(--colorPalettePlatinumForeground2)",colorPalettePlumBackground2:"var(--colorPalettePlumBackground2)",colorPalettePlumBorderActive:"var(--colorPalettePlumBorderActive)",colorPalettePlumForeground2:"var(--colorPalettePlumForeground2)",colorPalettePumpkinBackground2:"var(--colorPalettePumpkinBackground2)",colorPalettePumpkinBorderActive:"var(--colorPalettePumpkinBorderActive)",colorPalettePumpkinForeground2:"var(--colorPalettePumpkinForeground2)",colorPalettePurpleBackground2:"var(--colorPalettePurpleBackground2)",colorPalettePurpleBorderActive:"var(--colorPalettePurpleBorderActive)",colorPalettePurpleForeground2:"var(--colorPalettePurpleForeground2)",colorPaletteRoyalBlueBackground2:"var(--colorPaletteRoyalBlueBackground2)",colorPaletteRoyalBlueBorderActive:"var(--colorPaletteRoyalBlueBorderActive)",colorPaletteRoyalBlueForeground2:"var(--colorPaletteRoyalBlueForeground2)",colorPaletteSeafoamBackground2:"var(--colorPaletteSeafoamBackground2)",colorPaletteSeafoamBorderActive:"var(--colorPaletteSeafoamBorderActive)",colorPaletteSeafoamForeground2:"var(--colorPaletteSeafoamForeground2)",colorPaletteSteelBackground2:"var(--colorPaletteSteelBackground2)",colorPaletteSteelBorderActive:"var(--colorPaletteSteelBorderActive)",colorPaletteSteelForeground2:"var(--colorPaletteSteelForeground2)",colorPaletteTealBackground2:"var(--colorPaletteTealBackground2)",colorPaletteTealBorderActive:"var(--colorPaletteTealBorderActive)",colorPaletteTealForeground2:"var(--colorPaletteTealForeground2)",colorStatusSuccessBackground1:"var(--colorStatusSuccessBackground1)",colorStatusSuccessBackground2:"var(--colorStatusSuccessBackground2)",colorStatusSuccessBackground3:"var(--colorStatusSuccessBackground3)",colorStatusSuccessForeground1:"var(--colorStatusSuccessForeground1)",colorStatusSuccessForeground2:"var(--colorStatusSuccessForeground2)",colorStatusSuccessForeground3:"var(--colorStatusSuccessForeground3)",colorStatusSuccessForegroundInverted:"var(--colorStatusSuccessForegroundInverted)",colorStatusSuccessBorderActive:"var(--colorStatusSuccessBorderActive)",colorStatusSuccessBorder1:"var(--colorStatusSuccessBorder1)",colorStatusSuccessBorder2:"var(--colorStatusSuccessBorder2)",colorStatusWarningBackground1:"var(--colorStatusWarningBackground1)",colorStatusWarningBackground2:"var(--colorStatusWarningBackground2)",colorStatusWarningBackground3:"var(--colorStatusWarningBackground3)",colorStatusWarningForeground1:"var(--colorStatusWarningForeground1)",colorStatusWarningForeground2:"var(--colorStatusWarningForeground2)",colorStatusWarningForeground3:"var(--colorStatusWarningForeground3)",colorStatusWarningForegroundInverted:"var(--colorStatusWarningForegroundInverted)",colorStatusWarningBorderActive:"var(--colorStatusWarningBorderActive)",colorStatusWarningBorder1:"var(--colorStatusWarningBorder1)",colorStatusWarningBorder2:"var(--colorStatusWarningBorder2)",colorStatusDangerBackground1:"var(--colorStatusDangerBackground1)",colorStatusDangerBackground2:"var(--colorStatusDangerBackground2)",colorStatusDangerBackground3:"var(--colorStatusDangerBackground3)",colorStatusDangerForeground1:"var(--colorStatusDangerForeground1)",colorStatusDangerForeground2:"var(--colorStatusDangerForeground2)",colorStatusDangerForeground3:"var(--colorStatusDangerForeground3)",colorStatusDangerForegroundInverted:"var(--colorStatusDangerForegroundInverted)",colorStatusDangerBorderActive:"var(--colorStatusDangerBorderActive)",colorStatusDangerBorder1:"var(--colorStatusDangerBorder1)",colorStatusDangerBorder2:"var(--colorStatusDangerBorder2)",borderRadiusNone:"var(--borderRadiusNone)",borderRadiusSmall:"var(--borderRadiusSmall)",borderRadiusMedium:"var(--borderRadiusMedium)",borderRadiusLarge:"var(--borderRadiusLarge)",borderRadiusXLarge:"var(--borderRadiusXLarge)",borderRadiusCircular:"var(--borderRadiusCircular)",fontFamilyBase:"var(--fontFamilyBase)",fontFamilyMonospace:"var(--fontFamilyMonospace)",fontFamilyNumeric:"var(--fontFamilyNumeric)",fontSizeBase100:"var(--fontSizeBase100)",fontSizeBase200:"var(--fontSizeBase200)",fontSizeBase300:"var(--fontSizeBase300)",fontSizeBase400:"var(--fontSizeBase400)",fontSizeBase500:"var(--fontSizeBase500)",fontSizeBase600:"var(--fontSizeBase600)",fontSizeHero700:"var(--fontSizeHero700)",fontSizeHero800:"var(--fontSizeHero800)",fontSizeHero900:"var(--fontSizeHero900)",fontSizeHero1000:"var(--fontSizeHero1000)",fontWeightRegular:"var(--fontWeightRegular)",fontWeightMedium:"var(--fontWeightMedium)",fontWeightSemibold:"var(--fontWeightSemibold)",fontWeightBold:"var(--fontWeightBold)",lineHeightBase100:"var(--lineHeightBase100)",lineHeightBase200:"var(--lineHeightBase200)",lineHeightBase300:"var(--lineHeightBase300)",lineHeightBase400:"var(--lineHeightBase400)",lineHeightBase500:"var(--lineHeightBase500)",lineHeightBase600:"var(--lineHeightBase600)",lineHeightHero700:"var(--lineHeightHero700)",lineHeightHero800:"var(--lineHeightHero800)",lineHeightHero900:"var(--lineHeightHero900)",lineHeightHero1000:"var(--lineHeightHero1000)",shadow2:"var(--shadow2)",shadow4:"var(--shadow4)",shadow8:"var(--shadow8)",shadow16:"var(--shadow16)",shadow28:"var(--shadow28)",shadow64:"var(--shadow64)",shadow2Brand:"var(--shadow2Brand)",shadow4Brand:"var(--shadow4Brand)",shadow8Brand:"var(--shadow8Brand)",shadow16Brand:"var(--shadow16Brand)",shadow28Brand:"var(--shadow28Brand)",shadow64Brand:"var(--shadow64Brand)",strokeWidthThin:"var(--strokeWidthThin)",strokeWidthThick:"var(--strokeWidthThick)",strokeWidthThicker:"var(--strokeWidthThicker)",strokeWidthThickest:"var(--strokeWidthThickest)",spacingHorizontalNone:"var(--spacingHorizontalNone)",spacingHorizontalXXS:"var(--spacingHorizontalXXS)",spacingHorizontalXS:"var(--spacingHorizontalXS)",spacingHorizontalSNudge:"var(--spacingHorizontalSNudge)",spacingHorizontalS:"var(--spacingHorizontalS)",spacingHorizontalMNudge:"var(--spacingHorizontalMNudge)",spacingHorizontalM:"var(--spacingHorizontalM)",spacingHorizontalL:"var(--spacingHorizontalL)",spacingHorizontalXL:"var(--spacingHorizontalXL)",spacingHorizontalXXL:"var(--spacingHorizontalXXL)",spacingHorizontalXXXL:"var(--spacingHorizontalXXXL)",spacingVerticalNone:"var(--spacingVerticalNone)",spacingVerticalXXS:"var(--spacingVerticalXXS)",spacingVerticalXS:"var(--spacingVerticalXS)",spacingVerticalSNudge:"var(--spacingVerticalSNudge)",spacingVerticalS:"var(--spacingVerticalS)",spacingVerticalMNudge:"var(--spacingVerticalMNudge)",spacingVerticalM:"var(--spacingVerticalM)",spacingVerticalL:"var(--spacingVerticalL)",spacingVerticalXL:"var(--spacingVerticalXL)",spacingVerticalXXL:"var(--spacingVerticalXXL)",spacingVerticalXXXL:"var(--spacingVerticalXXXL)",durationUltraFast:"var(--durationUltraFast)",durationFaster:"var(--durationFaster)",durationFast:"var(--durationFast)",durationNormal:"var(--durationNormal)",durationGentle:"var(--durationGentle)",durationSlow:"var(--durationSlow)",durationSlower:"var(--durationSlower)",durationUltraSlow:"var(--durationUltraSlow)",curveAccelerateMax:"var(--curveAccelerateMax)",curveAccelerateMid:"var(--curveAccelerateMid)",curveAccelerateMin:"var(--curveAccelerateMin)",curveDecelerateMax:"var(--curveDecelerateMax)",curveDecelerateMid:"var(--curveDecelerateMid)",curveDecelerateMin:"var(--curveDecelerateMin)",curveEasyEaseMax:"var(--curveEasyEaseMax)",curveEasyEase:"var(--curveEasyEase)",curveLinear:"var(--curveLinear)"};function $k(e,t,r=""){return{[`shadow2${r}`]:`0 0 2px ${e}, 0 1px 2px ${t}`,[`shadow4${r}`]:`0 0 2px ${e}, 0 2px 4px ${t}`,[`shadow8${r}`]:`0 0 2px ${e}, 0 4px 8px ${t}`,[`shadow16${r}`]:`0 0 2px ${e}, 0 8px 16px ${t}`,[`shadow28${r}`]:`0 0 8px ${e}, 0 14px 28px ${t}`,[`shadow64${r}`]:`0 0 8px ${e}, 0 32px 64px ${t}`}}const aBe=e=>{const t=sBe(e);return{...iue,...uue,...lue,...fue,...cue,...pue,...due,...hue,...aue,...sue,...t,...iBe,...FT,...$k(t.colorNeutralShadowAmbient,t.colorNeutralShadowKey),...$k(t.colorBrandShadowAmbient,t.colorBrandShadowKey,"Brand")}},gue={10:"#2b2b40",20:"#2f2f4a",30:"#333357",40:"#383966",50:"#3d3e78",60:"#444791",70:"#4f52b2",80:"#5b5fc7",90:"#7579eb",100:"#7f85f5",110:"#9299f7",120:"#aab1fa",130:"#b6bcfa",140:"#c5cbfa",150:"#dce0fa",160:"#e8ebfa"},uBe=aBe(gue),wc=nue.reduce((e,t)=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),n={[`colorPalette${r}Background1`]:Lr[t].shade40,[`colorPalette${r}Background2`]:Lr[t].shade30,[`colorPalette${r}Background3`]:Lr[t].primary,[`colorPalette${r}Foreground1`]:Lr[t].tint30,[`colorPalette${r}Foreground2`]:Lr[t].tint40,[`colorPalette${r}Foreground3`]:Lr[t].tint20,[`colorPalette${r}BorderActive`]:Lr[t].tint30,[`colorPalette${r}Border1`]:Lr[t].primary,[`colorPalette${r}Border2`]:Lr[t].tint20};return Object.assign(e,n)},{});wc.colorPaletteRedForeground3=Lr.red.tint30;wc.colorPaletteRedBorder2=Lr.red.tint30;wc.colorPaletteGreenForeground3=Lr.green.tint40;wc.colorPaletteGreenBorder2=Lr.green.tint40;wc.colorPaletteDarkOrangeForeground3=Lr.darkOrange.tint30;wc.colorPaletteDarkOrangeBorder2=Lr.darkOrange.tint30;wc.colorPaletteRedForegroundInverted=Lr.red.primary;wc.colorPaletteGreenForegroundInverted=Lr.green.primary;wc.colorPaletteYellowForegroundInverted=Lr.yellow.shade30;const b8=oue.reduce((e,t)=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),n={[`colorPalette${r}Background2`]:Xd[t].shade30,[`colorPalette${r}Foreground2`]:Xd[t].tint40,[`colorPalette${r}BorderActive`]:Xd[t].tint30};return Object.assign(e,n)},{});b8.colorPaletteDarkRedBackground2=Xd.darkRed.shade20;b8.colorPalettePlumBackground2=Xd.plum.shade20;const lBe={...wc,...b8},gv=Object.entries(Sc).reduce((e,[t,r])=>{const n=t.slice(0,1).toUpperCase()+t.slice(1),o={[`colorStatus${n}Background1`]:en[r].shade40,[`colorStatus${n}Background2`]:en[r].shade30,[`colorStatus${n}Background3`]:en[r].primary,[`colorStatus${n}Foreground1`]:en[r].tint30,[`colorStatus${n}Foreground2`]:en[r].tint40,[`colorStatus${n}Foreground3`]:en[r].tint20,[`colorStatus${n}BorderActive`]:en[r].tint30,[`colorStatus${n}ForegroundInverted`]:en[r].shade10,[`colorStatus${n}Border1`]:en[r].primary,[`colorStatus${n}Border2`]:en[r].tint20};return Object.assign(e,o)},{});gv.colorStatusDangerForeground3=en[Sc.danger].tint30;gv.colorStatusDangerBorder2=en[Sc.danger].tint30;gv.colorStatusSuccessForeground3=en[Sc.success].tint40;gv.colorStatusSuccessBorder2=en[Sc.success].tint40;gv.colorStatusWarningForegroundInverted=en[Sc.warning].shade20;const cBe=e=>({colorNeutralForeground1:Qt,colorNeutralForeground1Hover:Qt,colorNeutralForeground1Pressed:Qt,colorNeutralForeground1Selected:Qt,colorNeutralForeground2:Re[84],colorNeutralForeground2Hover:Qt,colorNeutralForeground2Pressed:Qt,colorNeutralForeground2Selected:Qt,colorNeutralForeground2BrandHover:e[100],colorNeutralForeground2BrandPressed:e[90],colorNeutralForeground2BrandSelected:e[100],colorNeutralForeground3:Re[68],colorNeutralForeground3Hover:Re[84],colorNeutralForeground3Pressed:Re[84],colorNeutralForeground3Selected:Re[84],colorNeutralForeground3BrandHover:e[100],colorNeutralForeground3BrandPressed:e[90],colorNeutralForeground3BrandSelected:e[100],colorNeutralForeground4:Re[60],colorNeutralForegroundDisabled:Re[36],colorNeutralForegroundInvertedDisabled:ki[40],colorBrandForegroundLink:e[100],colorBrandForegroundLinkHover:e[110],colorBrandForegroundLinkPressed:e[90],colorBrandForegroundLinkSelected:e[100],colorNeutralForeground2Link:Re[84],colorNeutralForeground2LinkHover:Qt,colorNeutralForeground2LinkPressed:Qt,colorNeutralForeground2LinkSelected:Qt,colorCompoundBrandForeground1:e[100],colorCompoundBrandForeground1Hover:e[110],colorCompoundBrandForeground1Pressed:e[90],colorBrandForeground1:e[100],colorBrandForeground2:e[120],colorBrandForeground2Hover:e[130],colorBrandForeground2Pressed:e[160],colorNeutralForeground1Static:Re[14],colorNeutralForegroundStaticInverted:Qt,colorNeutralForegroundInverted:Re[14],colorNeutralForegroundInvertedHover:Re[14],colorNeutralForegroundInvertedPressed:Re[14],colorNeutralForegroundInvertedSelected:Re[14],colorNeutralForegroundInverted2:Re[14],colorNeutralForegroundOnBrand:Qt,colorNeutralForegroundInvertedLink:Qt,colorNeutralForegroundInvertedLinkHover:Qt,colorNeutralForegroundInvertedLinkPressed:Qt,colorNeutralForegroundInvertedLinkSelected:Qt,colorBrandForegroundInverted:e[80],colorBrandForegroundInvertedHover:e[70],colorBrandForegroundInvertedPressed:e[60],colorBrandForegroundOnLight:e[80],colorBrandForegroundOnLightHover:e[70],colorBrandForegroundOnLightPressed:e[50],colorBrandForegroundOnLightSelected:e[60],colorNeutralBackground1:Re[16],colorNeutralBackground1Hover:Re[24],colorNeutralBackground1Pressed:Re[12],colorNeutralBackground1Selected:Re[22],colorNeutralBackground2:Re[14],colorNeutralBackground2Hover:Re[22],colorNeutralBackground2Pressed:Re[10],colorNeutralBackground2Selected:Re[20],colorNeutralBackground3:Re[12],colorNeutralBackground3Hover:Re[20],colorNeutralBackground3Pressed:Re[8],colorNeutralBackground3Selected:Re[18],colorNeutralBackground4:Re[8],colorNeutralBackground4Hover:Re[16],colorNeutralBackground4Pressed:Re[4],colorNeutralBackground4Selected:Re[14],colorNeutralBackground5:Re[4],colorNeutralBackground5Hover:Re[12],colorNeutralBackground5Pressed:fB,colorNeutralBackground5Selected:Re[10],colorNeutralBackground6:Re[20],colorNeutralBackgroundInverted:Qt,colorNeutralBackgroundStatic:Re[24],colorNeutralBackgroundAlpha:SFe[50],colorNeutralBackgroundAlpha2:wFe[70],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:Re[22],colorSubtleBackgroundPressed:Re[18],colorSubtleBackgroundSelected:Re[20],colorSubtleBackgroundLightAlphaHover:hK[80],colorSubtleBackgroundLightAlphaPressed:hK[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:Qa[10],colorSubtleBackgroundInvertedPressed:Qa[30],colorSubtleBackgroundInvertedSelected:Qa[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:Re[8],colorNeutralBackgroundInvertedDisabled:ki[10],colorNeutralStencil1:Re[34],colorNeutralStencil2:Re[20],colorNeutralStencil1Alpha:ki[10],colorNeutralStencil2Alpha:ki[5],colorBackgroundOverlay:Qa[50],colorScrollbarOverlay:ki[60],colorBrandBackground:e[70],colorBrandBackgroundHover:e[80],colorBrandBackgroundPressed:e[40],colorBrandBackgroundSelected:e[60],colorCompoundBrandBackground:e[100],colorCompoundBrandBackgroundHover:e[110],colorCompoundBrandBackgroundPressed:e[90],colorBrandBackgroundStatic:e[80],colorBrandBackground2:e[20],colorBrandBackground2Hover:e[40],colorBrandBackground2Pressed:e[10],colorBrandBackgroundInverted:Qt,colorBrandBackgroundInvertedHover:e[160],colorBrandBackgroundInvertedPressed:e[140],colorBrandBackgroundInvertedSelected:e[150],colorNeutralStrokeAccessible:Re[68],colorNeutralStrokeAccessibleHover:Re[74],colorNeutralStrokeAccessiblePressed:Re[70],colorNeutralStrokeAccessibleSelected:e[100],colorNeutralStroke1:Re[40],colorNeutralStroke1Hover:Re[46],colorNeutralStroke1Pressed:Re[42],colorNeutralStroke1Selected:Re[44],colorNeutralStroke2:Re[32],colorNeutralStroke3:Re[24],colorNeutralStrokeSubtle:Re[4],colorNeutralStrokeOnBrand:Re[16],colorNeutralStrokeOnBrand2:Qt,colorNeutralStrokeOnBrand2Hover:Qt,colorNeutralStrokeOnBrand2Pressed:Qt,colorNeutralStrokeOnBrand2Selected:Qt,colorBrandStroke1:e[100],colorBrandStroke2:e[50],colorBrandStroke2Hover:e[50],colorBrandStroke2Pressed:e[30],colorBrandStroke2Contrast:e[50],colorCompoundBrandStroke:e[90],colorCompoundBrandStrokeHover:e[100],colorCompoundBrandStrokePressed:e[80],colorNeutralStrokeDisabled:Re[26],colorNeutralStrokeInvertedDisabled:ki[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:ki[10],colorNeutralStrokeAlpha2:ki[20],colorStrokeFocus1:fB,colorStrokeFocus2:Qt,colorNeutralShadowAmbient:"rgba(0,0,0,0.24)",colorNeutralShadowKey:"rgba(0,0,0,0.28)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.12)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.40)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.48)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"}),fBe=e=>{const t=cBe(e);return{...iue,...uue,...lue,...fue,...cue,...pue,...due,...hue,...aue,...sue,...t,...lBe,...gv,...$k(t.colorNeutralShadowAmbient,t.colorNeutralShadowKey),...$k(t.colorBrandShadowAmbient,t.colorBrandShadowKey,"Brand")}},dBe=fBe(gue),vue={root:"fui-FluentProvider"},hBe=Zse({root:{sj55zd:"f19n0e5",De3pzq:"fxugw4r",fsow6f:["f1o700av","fes3tcz"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}"]}),pBe=e=>{const t=V_(),r=hBe({dir:e.dir,renderer:t});return e.root.className=Xe(vue.root,e.themeClassName,r.root,e.root.className),e},gBe=k.useInsertionEffect?k.useInsertionEffect:uc,vBe=(e,t)=>{if(!e)return;const r=e.createElement("style");return Object.keys(t).forEach(n=>{r.setAttribute(n,t[n])}),e.head.appendChild(r),r},mBe=(e,t)=>{const r=e.sheet;r&&(r.cssRules.length>0&&r.deleteRule(0),r.insertRule(t,0))},yBe=e=>{const{targetDocument:t,theme:r,rendererAttributes:n}=e,o=k.useRef(),i=Ia(vue.root),s=n,a=k.useMemo(()=>z4e(`.${i}`,r),[r,i]);return bBe(t,i),gBe(()=>{const u=t==null?void 0:t.getElementById(i);return u?o.current=u:(o.current=vBe(t,{...s,id:i}),o.current&&mBe(o.current,a)),()=>{var l;(l=o.current)===null||l===void 0||l.remove()}},[i,t,a,s]),{styleTagId:i,rule:a}};function bBe(e,t){k.useState(()=>{if(!e)return;const r=e.getElementById(t);r&&e.head.append(r)})}const _Be={},EBe=(e,t)=>{const r=Ca(),n=SBe(),o=dae(),i=k.useContext(d8)||_Be,{applyStylesToPortals:s=!0,customStyleHooks_unstable:a,dir:u=r.dir,targetDocument:l=r.targetDocument,theme:c,overrides_unstable:f={}}=e,d=uC(n,c),h=uC(o,f),g=uC(i,a),v=V_();var y;const{styleTagId:E,rule:_}=yBe({theme:d,targetDocument:l,rendererAttributes:(y=v.styleElementAttributes)!==null&&y!==void 0?y:{}});return{applyStylesToPortals:s,customStyleHooks_unstable:g,dir:u,targetDocument:l,theme:d,overrides_unstable:h,themeClassName:E,components:{root:"div"},root:Sr(mn("div",{...e,dir:u,ref:di(t,eue({targetDocument:l}))}),{elementType:"div"}),serverStyleProps:{cssRule:_,attributes:{...v.styleElementAttributes,id:E}}}};function uC(e,t){return e&&t?{...e,...t}:e||t}function SBe(){return k.useContext(aae)}function wBe(e){const{applyStylesToPortals:t,customStyleHooks_unstable:r,dir:n,root:o,targetDocument:i,theme:s,themeClassName:a,overrides_unstable:u}=e,l=k.useMemo(()=>({dir:n,targetDocument:i}),[n,i]),[c]=k.useState(()=>({})),f=k.useMemo(()=>({textDirection:n}),[n]);return{customStyleHooks_unstable:r,overrides_unstable:u,provider:l,textDirection:n,iconDirection:f,tooltip:c,theme:s,themeClassName:t?o.className:a}}const mue=k.forwardRef((e,t)=>{const r=EBe(e,t);pBe(r);const n=wBe(r);return m3e(r,n)});mue.displayName="FluentProvider";const ABe=e=>r=>{const n=k.useRef(r.value),o=k.useRef(0),i=k.useRef();return i.current||(i.current={value:n,version:o,listeners:[]}),uc(()=>{n.current=r.value,o.current+=1,rF.unstable_runWithPriority(rF.unstable_NormalPriority,()=>{i.current.listeners.forEach(s=>{s([o.current,r.value])})})},[r.value]),k.createElement(e,{value:i.current},r.children)},vv=e=>{const t=k.createContext({value:{current:e},version:{current:-1},listeners:[]});return t.Provider=ABe(t.Provider),delete t.Consumer,t},Ko=(e,t)=>{const r=k.useContext(e),{value:{current:n},version:{current:o},listeners:i}=r,s=t(n),[a,u]=k.useReducer((l,c)=>{if(!c)return[n,s];if(c[0]<=o)return uw(l[1],s)?l:[n,s];try{if(uw(l[0],c[1]))return l;const f=t(c[1]);return uw(l[1],f)?l:[c[1],f]}catch{}return[l[0],l[1]]},[n,s]);return uw(a[1],s)||u(void 0),uc(()=>(i.push(u),()=>{const l=i.indexOf(u);i.splice(l,1)}),[i]),a[1]};function kBe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const uw=typeof Object.is=="function"?Object.is:kBe;function _8(e){const t=k.useContext(e);return t.version?t.version.current!==-1:!1}const yue=vv(void 0),xBe={openItems:[],collapsible:!1,multiple:!1,navigation:void 0,requestToggle(){}},{Provider:TBe}=yue,qb=e=>Ko(yue,(t=xBe)=>e(t)),IBe=(e,t)=>nt(e.root,{children:nt(TBe,{value:t.accordion,children:e.root.children})}),CBe=(e,t)=>{const{openItems:r,defaultOpenItems:n,multiple:o=!1,collapsible:i=!1,onToggle:s,navigation:a}=e,[u,l]=Sf({state:k.useMemo(()=>OBe(r),[r]),defaultState:()=>NBe({defaultOpenItems:n,multiple:o}),initialState:[]}),c=Qae({circular:a==="circular",tabbable:!0}),f=lr(d=>{const h=RBe(d.value,u,o,i);s==null||s(d.event,{value:d.value,openItems:h}),l(h)});return{collapsible:i,multiple:o,navigation:a,openItems:u,requestToggle:f,components:{root:"div"},root:Sr(mn("div",{...e,...a?c:void 0,ref:t}),{elementType:"div"})}};function NBe({defaultOpenItems:e,multiple:t}){return e!==void 0?Array.isArray(e)?t?e:[e[0]]:[e]:[]}function RBe(e,t,r,n){if(r)if(t.includes(e)){if(t.length>1||n)return t.filter(o=>o!==e)}else return[...t,e].sort();else return t[0]===e&&n?[]:[e];return t}function OBe(e){if(e!==void 0)return Array.isArray(e)?e:[e]}function DBe(e){const{navigation:t,openItems:r,requestToggle:n,multiple:o,collapsible:i}=e;return{accordion:{navigation:t,openItems:r,requestToggle:n,collapsible:i,multiple:o}}}const FBe={root:"fui-Accordion"},BBe=e=>(e.root.className=Xe(FBe.root,e.root.className),e),E8=k.forwardRef((e,t)=>{const r=CBe(e,t),n=DBe(r);return BBe(r),yn("useAccordionStyles_unstable")(r),IBe(r,n)});E8.displayName="Accordion";const MBe=(e,t)=>{const{value:r,disabled:n=!1}=e,o=qb(a=>a.requestToggle),i=qb(a=>a.openItems.includes(r)),s=lr(a=>o({event:a,value:r}));return{open:i,value:r,disabled:n,onHeaderClick:s,components:{root:"div"},root:Sr(mn("div",{ref:t,...e}),{elementType:"div"})}};function LBe(e){const{disabled:t,open:r,value:n,onHeaderClick:o}=e;return{accordionItem:k.useMemo(()=>({disabled:t,open:r,value:n,onHeaderClick:o}),[t,r,n,o])}}const bue=k.createContext(void 0),jBe={open:!1,disabled:!1,value:void 0,onHeaderClick(){}},{Provider:zBe}=bue,_ue=()=>{var e;return(e=k.useContext(bue))!==null&&e!==void 0?e:jBe},HBe=(e,t)=>nt(e.root,{children:nt(zBe,{value:t.accordionItem,children:e.root.children})}),$Be={root:"fui-AccordionItem"},PBe=e=>(e.root.className=Xe($Be.root,e.root.className),e),Eue=k.forwardRef((e,t)=>{const r=MBe(e,t),n=LBe(r);return PBe(r),yn("useAccordionItemStyles_unstable")(r),HBe(r,n)});Eue.displayName="AccordionItem";const sg="Enter",af=" ",qBe="Tab",pK="ArrowDown",lC="ArrowUp",WBe="End",KBe="Home",GBe="PageDown",VBe="PageUp",UBe="Backspace",YBe="Delete",BT="Escape";function Wb(e,t){const{disabled:r,disabledFocusable:n=!1,["aria-disabled"]:o,onClick:i,onKeyDown:s,onKeyUp:a,...u}=t??{},l=typeof o=="string"?o==="true":o,c=r||n||l,f=lr(g=>{c?(g.preventDefault(),g.stopPropagation()):i==null||i(g)}),d=lr(g=>{if(s==null||s(g),g.isDefaultPrevented())return;const v=g.key;if(c&&(v===sg||v===af)){g.preventDefault(),g.stopPropagation();return}if(v===af){g.preventDefault();return}else v===sg&&(g.preventDefault(),g.currentTarget.click())}),h=lr(g=>{if(a==null||a(g),g.isDefaultPrevented())return;const v=g.key;if(c&&(v===sg||v===af)){g.preventDefault(),g.stopPropagation();return}v===af&&(g.preventDefault(),g.currentTarget.click())});if(e==="button"||e===void 0)return{...u,disabled:r&&!n,"aria-disabled":n?!0:l,onClick:n?void 0:f,onKeyUp:n?void 0:a,onKeyDown:n?void 0:s};{const g={role:"button",tabIndex:r&&!n?void 0:0,...u,onClick:f,onKeyUp:h,onKeyDown:d,"aria-disabled":r||n||l};return e==="a"&&c&&(g.href=void 0),g}}const XBe=(e,t)=>{const{icon:r,button:n,expandIcon:o,inline:i=!1,size:s="medium",expandIconPosition:a="start"}=e,{value:u,disabled:l,open:c}=_ue(),f=qb(y=>y.requestToggle),d=qb(y=>!y.collapsible&&y.openItems.length===1&&c),{dir:h}=Ca();let g;a==="end"?g=c?-90:90:g=c?90:h!=="rtl"?0:180;const v=Sr(n,{elementType:"button",defaultProps:{disabled:l,disabledFocusable:d,"aria-expanded":c,type:"button"}});return v.onClick=lr(y=>{if(f8(n)){var E;(E=n.onClick)===null||E===void 0||E.call(n,y)}y.defaultPrevented||f({value:u,event:y})}),{disabled:l,open:c,size:s,inline:i,expandIconPosition:a,components:{root:"div",button:"button",expandIcon:"span",icon:"div"},root:Sr(mn("div",{ref:t,...e}),{elementType:"div"}),icon:un(r,{elementType:"div"}),expandIcon:un(o,{renderByDefault:!0,defaultProps:{children:k.createElement(JDe,{style:{transform:`rotate(${g}deg)`}}),"aria-hidden":!0},elementType:"span"}),button:Wb(v.as,v)}},QBe=k.createContext(void 0),{Provider:ZBe}=QBe,JBe=(e,t)=>nt(ZBe,{value:t.accordionHeader,children:nt(e.root,{children:Vn(e.button,{children:[e.expandIconPosition==="start"&&e.expandIcon&&nt(e.expandIcon,{}),e.icon&&nt(e.icon,{}),e.root.children,e.expandIconPosition==="end"&&e.expandIcon&&nt(e.expandIcon,{})]})})}),lw={root:"fui-AccordionHeader",button:"fui-AccordionHeader__button",expandIcon:"fui-AccordionHeader__expandIcon",icon:"fui-AccordionHeader__icon"},eMe=At({resetButton:{B7ck84d:"f1e4lqlz",De3pzq:"f1u2r49w",sj55zd:"f1ym3bx4",Bahqtrf:"f1mo0ibp",Be2twd7:"fjoy568",Bg96gwp:"fytdu2e",B68tc82:"f1mtd64y",Bmxbyg5:"f1y7q3j9",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1cnd47f","fhxju0i"],Bv0vk6g:"f37px4s",fsow6f:"fgusgyc"},focusIndicator:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bb7d1vk:"f226i61",zhwhgb:["f13kzufm","fsx75g8"],dhy2o1:"flujwa2",Gfyso:["fsx75g8","f13kzufm"],Bm4h7ae:"f15bsgw9",B7ys5i9:"f14e48fq",Busjfv9:"f18yb2kv",Bhk32uz:"fd6o370",Bf4ptjt:"fh1cnn4",kclons:["fy7oxxb","f184ne2d"],Bhdgwq3:"fpukqih",Blkhhs4:["f184ne2d","fy7oxxb"],Bqtpl0w:"frrh606",clg4pj:["f1v5zibi","fo2hd23"],hgwjuy:"ful5kiu",Bonggc9:["fo2hd23","f1v5zibi"],B1tsrr9:["f1jqcqds","ftffrms"],Dah5zi:["ftffrms","f1jqcqds"],Bkh64rk:["f2e7qr6","fsr1zz6"],qqdqy8:["fsr1zz6","f2e7qr6"],B6dhp37:"f1dvezut",i03rao:["fd0oaoj","f1cwg4i8"],Boxcth7:"fjvm52t",Bsom6fd:["f1cwg4i8","fd0oaoj"],J0r882:"f57olzd",Bule8hv:["f4stah7","fs1por5"],Bjwuhne:"f480a47",Ghsupd:["fs1por5","f4stah7"]},root:{sj55zd:"f19n0e5",De3pzq:"f1c21dwh",B6of3ja:"f1hu3pq6",t21cq0:["f11qmguv","f1tyq0we"],jrapky:"f19f4twv",Frg6f3:["f1tyq0we","f11qmguv"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"]},rootDisabled:{Bcmaq0h:"fwrgwhw",sj55zd:"f1s2aq7o"},rootInline:{mc9l5x:"f14t3ns0"},button:{qhf8xq:"f10pi13n",a9b677:"fly5x3f",B4j52fo:"f5ogflp",Bekrc4i:["f1hqa2wf","finvdd3"],Bn0qgzm:"f1f09k3d",ibv6hh:["finvdd3","f1hqa2wf"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],z8tnut:"f1g0x7ka",z189sj:["fw5db7e","f1uw59to"],Byoj8tv:"f1qch9an",uwmqm3:["f1ng84yb","f11gcy0p"],sshi5w:"f5pgtk9",mc9l5x:"f22iagw",Bt984gj:"f122n59",Bceei9c:"f1k6fduh",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B7ck84d:"f1ewtqcl"},buttonSmall:{sshi5w:"f1nxs5xn",Be2twd7:"fy9rknc"},buttonLarge:{Bg96gwp:"faaz57k",Be2twd7:"fod5ikn"},buttonExtraLarge:{Bg96gwp:"f106mvju",Be2twd7:"f1pp30po"},buttonInline:{mc9l5x:"ftuwxu6"},buttonExpandIconEndNoIcon:{uwmqm3:["f1uw59to","fw5db7e"]},buttonExpandIconEnd:{z189sj:["f11gcy0p","f1ng84yb"]},buttonDisabled:{Bceei9c:"fdrzuqr"},expandIcon:{Bqenvij:"f1l02sjl",mc9l5x:"f22iagw",Bt984gj:"f122n59",Bg96gwp:"f106mvju",Be2twd7:"f1pp30po"},expandIconStart:{z189sj:["f1vdfbxk","f1f5gg8d"]},expandIconEnd:{Bh6795r:"fqerorx",Bnnss6s:"f1neuvcm",xawz:"flqd7gy",mc9l5x:"f22iagw",Brf1p80:"f9c4gz4",uwmqm3:["f1f5gg8d","f1vdfbxk"]},icon:{Bqenvij:"f1l02sjl",mc9l5x:"f22iagw",Bt984gj:"f122n59",z189sj:["f1vdfbxk","f1f5gg8d"],Bg96gwp:"f106mvju",Be2twd7:"f1pp30po"}},{d:[".f1e4lqlz{box-sizing:content-box;}",".f1u2r49w{background-color:inherit;}",".f1ym3bx4{color:inherit;}",".f1mo0ibp{font-family:inherit;}",".fjoy568{font-size:inherit;}",".fytdu2e{line-height:normal;}",".f1mtd64y{overflow-x:visible;}",".f1y7q3j9{overflow-y:visible;}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".f37px4s{-webkit-appearance:button;}",".fgusgyc{text-align:unset;}",".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}",".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}",".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}",".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}",'.f15bsgw9[data-fui-focus-visible]::after{content:"";}',".f14e48fq[data-fui-focus-visible]::after{position:absolute;}",".f18yb2kv[data-fui-focus-visible]::after{pointer-events:none;}",".fd6o370[data-fui-focus-visible]::after{z-index:1;}",".fh1cnn4[data-fui-focus-visible]::after{border-top-style:solid;}",".fy7oxxb[data-fui-focus-visible]::after{border-right-style:solid;}",".f184ne2d[data-fui-focus-visible]::after{border-left-style:solid;}",".fpukqih[data-fui-focus-visible]::after{border-bottom-style:solid;}",".frrh606[data-fui-focus-visible]::after{border-top-width:2px;}",".f1v5zibi[data-fui-focus-visible]::after{border-right-width:2px;}",".fo2hd23[data-fui-focus-visible]::after{border-left-width:2px;}",".ful5kiu[data-fui-focus-visible]::after{border-bottom-width:2px;}",".f1jqcqds[data-fui-focus-visible]::after{border-bottom-right-radius:var(--borderRadiusMedium);}",".ftffrms[data-fui-focus-visible]::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f2e7qr6[data-fui-focus-visible]::after{border-top-right-radius:var(--borderRadiusMedium);}",".fsr1zz6[data-fui-focus-visible]::after{border-top-left-radius:var(--borderRadiusMedium);}",".f1dvezut[data-fui-focus-visible]::after{border-top-color:var(--colorStrokeFocus2);}",".fd0oaoj[data-fui-focus-visible]::after{border-right-color:var(--colorStrokeFocus2);}",".f1cwg4i8[data-fui-focus-visible]::after{border-left-color:var(--colorStrokeFocus2);}",".fjvm52t[data-fui-focus-visible]::after{border-bottom-color:var(--colorStrokeFocus2);}",".f57olzd[data-fui-focus-visible]::after{top:calc(2px * -1);}",".f4stah7[data-fui-focus-visible]::after{right:calc(2px * -1);}",".fs1por5[data-fui-focus-visible]::after{left:calc(2px * -1);}",".f480a47[data-fui-focus-visible]::after{bottom:calc(2px * -1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1hu3pq6{margin-top:0;}",".f11qmguv{margin-right:0;}",".f1tyq0we{margin-left:0;}",".f19f4twv{margin-bottom:0;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".fwrgwhw{background-image:none;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f14t3ns0{display:inline-block;}",".f10pi13n{position:relative;}",".fly5x3f{width:100%;}",".f5ogflp{border-top-width:1px;}",".f1hqa2wf{border-right-width:1px;}",".finvdd3{border-left-width:1px;}",".f1f09k3d{border-bottom-width:1px;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f5pgtk9{min-height:44px;}",".f22iagw{display:flex;}",".f122n59{align-items:center;}",".f1k6fduh{cursor:pointer;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1ewtqcl{box-sizing:border-box;}",".f1nxs5xn{min-height:32px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".f106mvju{line-height:var(--lineHeightBase500);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".ftuwxu6{display:inline-flex;}",".fdrzuqr{cursor:not-allowed;}",".f1l02sjl{height:100%;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".fqerorx{flex-grow:1;}",".f1neuvcm{flex-shrink:1;}",".flqd7gy{flex-basis:0%;}",".f9c4gz4{justify-content:flex-end;}"],f:[".ftqa4ok:focus{outline-style:none;}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],m:[["@media (forced-colors: active){.f226i61[data-fui-focus-visible]::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f13kzufm[data-fui-focus-visible]::after{border-right-color:Highlight;}.fsx75g8[data-fui-focus-visible]::after{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.flujwa2[data-fui-focus-visible]::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}]]}),tMe=e=>{const t=eMe();return e.root.className=Xe(lw.root,t.root,e.inline&&t.rootInline,e.disabled&&t.rootDisabled,e.root.className),e.button.className=Xe(lw.button,t.resetButton,t.button,t.focusIndicator,e.expandIconPosition==="end"&&!e.icon&&t.buttonExpandIconEndNoIcon,e.expandIconPosition==="end"&&t.buttonExpandIconEnd,e.inline&&t.buttonInline,e.size==="small"&&t.buttonSmall,e.size==="large"&&t.buttonLarge,e.size==="extra-large"&&t.buttonExtraLarge,e.disabled&&t.buttonDisabled,e.button.className),e.expandIcon&&(e.expandIcon.className=Xe(lw.expandIcon,t.expandIcon,e.expandIconPosition==="start"&&t.expandIconStart,e.expandIconPosition==="end"&&t.expandIconEnd,e.expandIcon.className)),e.icon&&(e.icon.className=Xe(lw.icon,t.icon,e.icon.className)),e};function rMe(e){const{disabled:t,expandIconPosition:r,open:n,size:o}=e;return{accordionHeader:k.useMemo(()=>({disabled:t,expandIconPosition:r,open:n,size:o}),[t,r,n,o])}}const Sue=k.forwardRef((e,t)=>{const r=XBe(e,t),n=rMe(r);return tMe(r),yn("useAccordionHeaderStyles_unstable")(r),JBe(r,n)});Sue.displayName="AccordionHeader";const nMe=(e,t)=>{const{open:r}=_ue(),n=Hk({focusable:{excludeFromMover:!0}}),o=qb(i=>i.navigation);return{open:r,components:{root:"div"},root:Sr(mn("div",{ref:t,...e,...o&&n}),{elementType:"div"})}},oMe=e=>e.open?nt(e.root,{children:e.root.children}):null,iMe={root:"fui-AccordionPanel"},sMe=At({root:{B6of3ja:"f1hu3pq6",t21cq0:["fkujibs","f199hnxi"],jrapky:"f19f4twv",Frg6f3:["f199hnxi","fkujibs"]}},{d:[".f1hu3pq6{margin-top:0;}",".fkujibs{margin-right:var(--spacingHorizontalM);}",".f199hnxi{margin-left:var(--spacingHorizontalM);}",".f19f4twv{margin-bottom:0;}"]}),aMe=e=>{const t=sMe();return e.root.className=Xe(iMe.root,t.root,e.root.className),e},wue=k.forwardRef((e,t)=>{const r=nMe(e,t);return aMe(r),yn("useAccordionPanelStyles_unstable")(r),oMe(r)});wue.displayName="AccordionPanel";const uMe=(e,t)=>{const{shape:r="circular",size:n="medium",iconPosition:o="before",appearance:i="filled",color:s="brand"}=e;return{shape:r,size:n,iconPosition:o,appearance:i,color:s,components:{root:"div",icon:"span"},root:Sr(mn("div",{ref:t,...e}),{elementType:"div"}),icon:un(e.icon,{elementType:"span"})}},gK={root:"fui-Badge",icon:"fui-Badge__icon"},lMe=kn("r1l7mb74","rntuq2r",[".r1l7mb74{display:inline-flex;box-sizing:border-box;align-items:center;justify-content:center;position:relative;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase200);height:20px;width:20px;min-width:max-content;padding:0 calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));border-radius:var(--borderRadiusCircular);border-color:var(--colorTransparentStroke);}",'.r1l7mb74::after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;border-style:solid;border-color:inherit;border-width:var(--strokeWidthThin);border-radius:inherit;}',".rntuq2r{display:inline-flex;box-sizing:border-box;align-items:center;justify-content:center;position:relative;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase200);height:20px;width:20px;min-width:max-content;padding:0 calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));border-radius:var(--borderRadiusCircular);border-color:var(--colorTransparentStroke);}",'.rntuq2r::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-style:solid;border-color:inherit;border-width:var(--strokeWidthThin);border-radius:inherit;}']),cMe=At({fontSmallToTiny:{Bahqtrf:"fk6fouc",Be2twd7:"f13mqy1h",Bhrd7zp:"fl43uef",Bg96gwp:"fcpl73t"},tiny:{a9b677:"f16dn6v3",Bqenvij:"f3mu39s",Be2twd7:"f130uwy9",Bg96gwp:"fod1mrr",Bf4jedk:"f18p0k4z",z8tnut:"f1q8r6hh",z189sj:["fio2s09","fkiw60q"],Byoj8tv:"f9yu9nh",uwmqm3:["fkiw60q","fio2s09"]},"extra-small":{a9b677:"fpd43o0",Bqenvij:"f30q22z",Be2twd7:"f1tccstq",Bg96gwp:"f1y3arg5",Bf4jedk:"f18p0k4z",z8tnut:"f1q8r6hh",z189sj:["fio2s09","fkiw60q"],Byoj8tv:"f9yu9nh",uwmqm3:["fkiw60q","fio2s09"]},small:{a9b677:"fjw5fx7",Bqenvij:"fd461yt",z8tnut:"f1g0x7ka",z189sj:["fps1v9c","f17ae1jz"],Byoj8tv:"f1qch9an",uwmqm3:["f17ae1jz","fps1v9c"]},medium:{},large:{a9b677:"fq4mcun",Bqenvij:"frvgh55",z8tnut:"f1g0x7ka",z189sj:["f17a92cs","f1pe0i86"],Byoj8tv:"f1qch9an",uwmqm3:["f1pe0i86","f17a92cs"]},"extra-large":{a9b677:"f1szoe96",Bqenvij:"f1d2rq10",z8tnut:"f1g0x7ka",z189sj:["fqznh8f","f1xile11"],Byoj8tv:"f1qch9an",uwmqm3:["f1xile11","fqznh8f"]},square:{Bbmb7ep:["fzi6hpg","fyowgf4"],Beyfa6y:["fyowgf4","fzi6hpg"],B7oj6ja:["f3fg2lr","f13av6d4"],Btl43ni:["f13av6d4","f3fg2lr"]},rounded:{Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"]},roundedSmallToTiny:{Bbmb7ep:["f1g3puop","fi2rrw2"],Beyfa6y:["fi2rrw2","f1g3puop"],B7oj6ja:["f1rstyi9","f1s4nn1u"],Btl43ni:["f1s4nn1u","f1rstyi9"]},circular:{},borderGhost:{ap17g6:"f10ludwy"},filled:{},"filled-brand":{De3pzq:"ffp7eso",sj55zd:"f1phragk"},"filled-danger":{De3pzq:"fdl5y0r",sj55zd:"f1phragk"},"filled-important":{De3pzq:"f1c73kur",sj55zd:"fr0bkrk"},"filled-informative":{De3pzq:"f3vzo32",sj55zd:"f11d4kpn"},"filled-severe":{De3pzq:"f1s438gw",sj55zd:"f1phragk"},"filled-subtle":{De3pzq:"fxugw4r",sj55zd:"f19n0e5"},"filled-success":{De3pzq:"flxk52p",sj55zd:"f1phragk"},"filled-warning":{De3pzq:"ffq97bm",sj55zd:"ff5vbop"},ghost:{},"ghost-brand":{sj55zd:"f16muhyy"},"ghost-danger":{sj55zd:"f1whyuy6"},"ghost-important":{sj55zd:"f19n0e5"},"ghost-informative":{sj55zd:"f11d4kpn"},"ghost-severe":{sj55zd:"f1l8vj45"},"ghost-subtle":{sj55zd:"fonrgv7"},"ghost-success":{sj55zd:"f1m7fhi8"},"ghost-warning":{sj55zd:"fpti2h4"},outline:{g2u3we:"f23ftbb",h3c5rm:["f1gkuv52","f1p1bl80"],B9xav0g:"fioka3i",zhjwy3:["f1p1bl80","f1gkuv52"]},"outline-brand":{sj55zd:"f16muhyy"},"outline-danger":{sj55zd:"f1whyuy6",g2u3we:"fyqpifd",h3c5rm:["f3ukxca","f1k7dugc"],B9xav0g:"f1njxb2b",zhjwy3:["f1k7dugc","f3ukxca"]},"outline-important":{sj55zd:"f11d4kpn",g2u3we:"fq0vr37",h3c5rm:["f1byw159","f11cr0be"],B9xav0g:"f1c1zstj",zhjwy3:["f11cr0be","f1byw159"]},"outline-informative":{sj55zd:"f11d4kpn",g2u3we:"f68mrw8",h3c5rm:["f7pw515","fw35ms5"],B9xav0g:"frpde29",zhjwy3:["fw35ms5","f7pw515"]},"outline-severe":{sj55zd:"f1l8vj45"},"outline-subtle":{sj55zd:"fonrgv7"},"outline-success":{sj55zd:"f1m7fhi8",g2u3we:"f1mmhl11",h3c5rm:["f1tjpp2f","f1ocn5n7"],B9xav0g:"f1gjv25d",zhjwy3:["f1ocn5n7","f1tjpp2f"]},"outline-warning":{sj55zd:"fpti2h4"},tint:{},"tint-brand":{De3pzq:"f16xkysk",sj55zd:"faj9fo0",g2u3we:"f161y7kd",h3c5rm:["f1c8dzaj","f1sl6hi9"],B9xav0g:"f1619yhw",zhjwy3:["f1sl6hi9","f1c8dzaj"]},"tint-danger":{De3pzq:"ff0poqj",sj55zd:"f1hcrxcs",g2u3we:"f1oqjm8o",h3c5rm:["fkgrb8g","frb5wm0"],B9xav0g:"f1iai1ph",zhjwy3:["frb5wm0","fkgrb8g"]},"tint-important":{De3pzq:"f945g0u",sj55zd:"fr0bkrk",g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},"tint-informative":{De3pzq:"f1ctqxl6",sj55zd:"f11d4kpn",g2u3we:"f68mrw8",h3c5rm:["f7pw515","fw35ms5"],B9xav0g:"frpde29",zhjwy3:["fw35ms5","f7pw515"]},"tint-severe":{De3pzq:"f1xzsg4",sj55zd:"f1k5f75o",g2u3we:"fxy9dsj",h3c5rm:["f54u6j2","fcm23ze"],B9xav0g:"f4vf0uq",zhjwy3:["fcm23ze","f54u6j2"]},"tint-subtle":{De3pzq:"fxugw4r",sj55zd:"f11d4kpn",g2u3we:"f68mrw8",h3c5rm:["f7pw515","fw35ms5"],B9xav0g:"frpde29",zhjwy3:["fw35ms5","f7pw515"]},"tint-success":{De3pzq:"f2vsrz6",sj55zd:"ffmvakt",g2u3we:"fdmic9h",h3c5rm:["f196y6m","fetptd8"],B9xav0g:"f1pev5xq",zhjwy3:["fetptd8","f196y6m"]},"tint-warning":{De3pzq:"f10s6hli",sj55zd:"f42v8de",g2u3we:"fn9i3n",h3c5rm:["f1aw8cx4","f51if14"],B9xav0g:"fvq8iai",zhjwy3:["f51if14","f1aw8cx4"]}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f13mqy1h{font-size:var(--fontSizeBase100);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fcpl73t{line-height:var(--lineHeightBase100);}",".f16dn6v3{width:6px;}",".f3mu39s{height:6px;}",".f130uwy9{font-size:4px;}",".fod1mrr{line-height:4px;}",".f18p0k4z{min-width:unset;}",".f1q8r6hh{padding-top:unset;}",".fio2s09{padding-right:unset;}",".fkiw60q{padding-left:unset;}",".f9yu9nh{padding-bottom:unset;}",".fpd43o0{width:10px;}",".f30q22z{height:10px;}",".f1tccstq{font-size:6px;}",".f1y3arg5{line-height:6px;}",".fjw5fx7{width:16px;}",".fd461yt{height:16px;}",".f1g0x7ka{padding-top:0;}",".fps1v9c{padding-right:calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",".f17ae1jz{padding-left:calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",".f1qch9an{padding-bottom:0;}",".fq4mcun{width:24px;}",".frvgh55{height:24px;}",".f17a92cs{padding-right:calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",".f1pe0i86{padding-left:calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",".f1szoe96{width:32px;}",".f1d2rq10{height:32px;}",".fqznh8f{padding-right:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".f1xile11{padding-left:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".fzi6hpg{border-bottom-right-radius:var(--borderRadiusNone);}",".fyowgf4{border-bottom-left-radius:var(--borderRadiusNone);}",".f3fg2lr{border-top-right-radius:var(--borderRadiusNone);}",".f13av6d4{border-top-left-radius:var(--borderRadiusNone);}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f1g3puop{border-bottom-right-radius:var(--borderRadiusSmall);}",".fi2rrw2{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1rstyi9{border-top-right-radius:var(--borderRadiusSmall);}",".f1s4nn1u{border-top-left-radius:var(--borderRadiusSmall);}",".f10ludwy::after{display:none;}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fdl5y0r{background-color:var(--colorPaletteRedBackground3);}",".f1c73kur{background-color:var(--colorNeutralForeground1);}",".fr0bkrk{color:var(--colorNeutralBackground1);}",".f3vzo32{background-color:var(--colorNeutralBackground5);}",".f11d4kpn{color:var(--colorNeutralForeground3);}",".f1s438gw{background-color:var(--colorPaletteDarkOrangeBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".flxk52p{background-color:var(--colorPaletteGreenBackground3);}",".ffq97bm{background-color:var(--colorPaletteYellowBackground3);}",".ff5vbop{color:var(--colorNeutralForeground1Static);}",".f16muhyy{color:var(--colorBrandForeground1);}",".f1whyuy6{color:var(--colorPaletteRedForeground3);}",".f1l8vj45{color:var(--colorPaletteDarkOrangeForeground3);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".f1m7fhi8{color:var(--colorPaletteGreenForeground3);}",".fpti2h4{color:var(--colorPaletteYellowForeground2);}",".f23ftbb{border-top-color:currentColor;}",".f1gkuv52{border-right-color:currentColor;}",".f1p1bl80{border-left-color:currentColor;}",".fioka3i{border-bottom-color:currentColor;}",".fyqpifd{border-top-color:var(--colorPaletteRedBorder2);}",".f3ukxca{border-right-color:var(--colorPaletteRedBorder2);}",".f1k7dugc{border-left-color:var(--colorPaletteRedBorder2);}",".f1njxb2b{border-bottom-color:var(--colorPaletteRedBorder2);}",".fq0vr37{border-top-color:var(--colorNeutralStrokeAccessible);}",".f1byw159{border-right-color:var(--colorNeutralStrokeAccessible);}",".f11cr0be{border-left-color:var(--colorNeutralStrokeAccessible);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f68mrw8{border-top-color:var(--colorNeutralStroke2);}",".f7pw515{border-right-color:var(--colorNeutralStroke2);}",".fw35ms5{border-left-color:var(--colorNeutralStroke2);}",".frpde29{border-bottom-color:var(--colorNeutralStroke2);}",".f1mmhl11{border-top-color:var(--colorPaletteGreenBorder2);}",".f1tjpp2f{border-right-color:var(--colorPaletteGreenBorder2);}",".f1ocn5n7{border-left-color:var(--colorPaletteGreenBorder2);}",".f1gjv25d{border-bottom-color:var(--colorPaletteGreenBorder2);}",".f16xkysk{background-color:var(--colorBrandBackground2);}",".faj9fo0{color:var(--colorBrandForeground2);}",".f161y7kd{border-top-color:var(--colorBrandStroke2);}",".f1c8dzaj{border-right-color:var(--colorBrandStroke2);}",".f1sl6hi9{border-left-color:var(--colorBrandStroke2);}",".f1619yhw{border-bottom-color:var(--colorBrandStroke2);}",".ff0poqj{background-color:var(--colorPaletteRedBackground1);}",".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".f1oqjm8o{border-top-color:var(--colorPaletteRedBorder1);}",".fkgrb8g{border-right-color:var(--colorPaletteRedBorder1);}",".frb5wm0{border-left-color:var(--colorPaletteRedBorder1);}",".f1iai1ph{border-bottom-color:var(--colorPaletteRedBorder1);}",".f945g0u{background-color:var(--colorNeutralForeground3);}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".f1ctqxl6{background-color:var(--colorNeutralBackground4);}",".f1xzsg4{background-color:var(--colorPaletteDarkOrangeBackground1);}",".f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}",".fxy9dsj{border-top-color:var(--colorPaletteDarkOrangeBorder1);}",".f54u6j2{border-right-color:var(--colorPaletteDarkOrangeBorder1);}",".fcm23ze{border-left-color:var(--colorPaletteDarkOrangeBorder1);}",".f4vf0uq{border-bottom-color:var(--colorPaletteDarkOrangeBorder1);}",".f2vsrz6{background-color:var(--colorPaletteGreenBackground1);}",".ffmvakt{color:var(--colorPaletteGreenForeground1);}",".fdmic9h{border-top-color:var(--colorPaletteGreenBorder1);}",".f196y6m{border-right-color:var(--colorPaletteGreenBorder1);}",".fetptd8{border-left-color:var(--colorPaletteGreenBorder1);}",".f1pev5xq{border-bottom-color:var(--colorPaletteGreenBorder1);}",".f10s6hli{background-color:var(--colorPaletteYellowBackground1);}",".f42v8de{color:var(--colorPaletteYellowForeground1);}",".fn9i3n{border-top-color:var(--colorPaletteYellowBorder1);}",".f1aw8cx4{border-right-color:var(--colorPaletteYellowBorder1);}",".f51if14{border-left-color:var(--colorPaletteYellowBorder1);}",".fvq8iai{border-bottom-color:var(--colorPaletteYellowBorder1);}"]}),fMe=kn("rttl5z0",null,[".rttl5z0{display:flex;line-height:1;margin:0 calc(-1 * var(--spacingHorizontalXXS));font-size:12px;}"]),dMe=At({beforeText:{t21cq0:["f1t8l4o1","f11juvx6"]},afterText:{Frg6f3:["f11juvx6","f1t8l4o1"]},beforeTextXL:{t21cq0:["f1rs9grm","f1kwmkpi"]},afterTextXL:{Frg6f3:["f1kwmkpi","f1rs9grm"]},tiny:{Be2twd7:"f1tccstq"},"extra-small":{Be2twd7:"fnmn6fi"},small:{Be2twd7:"f1ugzwwg"},medium:{},large:{Be2twd7:"f4ybsrx"},"extra-large":{Be2twd7:"fe5j1ua"}},{d:[".f1t8l4o1{margin-right:calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",".f11juvx6{margin-left:calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",".f1rs9grm{margin-right:calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",".f1kwmkpi{margin-left:calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",".f1tccstq{font-size:6px;}",".fnmn6fi{font-size:10px;}",".f1ugzwwg{font-size:12px;}",".f4ybsrx{font-size:16px;}",".fe5j1ua{font-size:20px;}"]}),hMe=e=>{const t=lMe(),r=cMe(),n=e.size==="small"||e.size==="extra-small"||e.size==="tiny";e.root.className=Xe(gK.root,t,n&&r.fontSmallToTiny,r[e.size],r[e.shape],e.shape==="rounded"&&n&&r.roundedSmallToTiny,e.appearance==="ghost"&&r.borderGhost,r[e.appearance],r[`${e.appearance}-${e.color}`],e.root.className);const o=fMe(),i=dMe();if(e.icon){let s;e.root.children&&(e.size==="extra-large"?s=e.iconPosition==="after"?i.afterTextXL:i.beforeTextXL:s=e.iconPosition==="after"?i.afterText:i.beforeText),e.icon.className=Xe(gK.icon,o,s,i[e.size],e.icon.className)}return e},pMe=e=>Vn(e.root,{children:[e.iconPosition==="before"&&e.icon&&nt(e.icon,{}),e.root.children,e.iconPosition==="after"&&e.icon&&nt(e.icon,{})]}),Aue=k.forwardRef((e,t)=>{const r=uMe(e,t);return hMe(r),yn("useBadgeStyles_unstable")(r),pMe(r)});Aue.displayName="Badge";const gMe=k.createContext(void 0),vMe=gMe.Provider;function mMe(e){const t=e.clientX,r=e.clientY,n=t+1,o=r+1;function i(){return{left:t,top:r,right:n,bottom:o,x:t,y:r,height:1,width:1}}return{getBoundingClientRect:i}}const vK="data-popper-is-intersecting",mK="data-popper-escaped",yK="data-popper-reference-hidden",yMe="data-popper-placement",bMe=["top","right","bottom","left"],Gh=Math.min,tu=Math.max,Pk=Math.round,c1=e=>({x:e,y:e}),_Me={left:"right",right:"left",bottom:"top",top:"bottom"},EMe={start:"end",end:"start"};function dB(e,t,r){return tu(e,Gh(t,r))}function kf(e,t){return typeof e=="function"?e(t):e}function xf(e){return e.split("-")[0]}function mv(e){return e.split("-")[1]}function S8(e){return e==="x"?"y":"x"}function w8(e){return e==="y"?"height":"width"}function yv(e){return["top","bottom"].includes(xf(e))?"y":"x"}function A8(e){return S8(yv(e))}function SMe(e,t,r){r===void 0&&(r=!1);const n=mv(e),o=A8(e),i=w8(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=qk(s)),[s,qk(s)]}function wMe(e){const t=qk(e);return[hB(e),t,hB(t)]}function hB(e){return e.replace(/start|end/g,t=>EMe[t])}function AMe(e,t,r){const n=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?i:s;default:return[]}}function kMe(e,t,r,n){const o=mv(e);let i=AMe(xf(e),r==="start",n);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(hB)))),i}function qk(e){return e.replace(/left|right|bottom|top/g,t=>_Me[t])}function xMe(e){return{top:0,right:0,bottom:0,left:0,...e}}function kue(e){return typeof e!="number"?xMe(e):{top:e,right:e,bottom:e,left:e}}function Wk(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function bK(e,t,r){let{reference:n,floating:o}=e;const i=yv(t),s=A8(t),a=w8(s),u=xf(t),l=i==="y",c=n.x+n.width/2-o.width/2,f=n.y+n.height/2-o.height/2,d=n[a]/2-o[a]/2;let h;switch(u){case"top":h={x:c,y:n.y-o.height};break;case"bottom":h={x:c,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:f};break;case"left":h={x:n.x-o.width,y:f};break;default:h={x:n.x,y:n.y}}switch(mv(t)){case"start":h[s]-=d*(r&&l?-1:1);break;case"end":h[s]+=d*(r&&l?-1:1);break}return h}const TMe=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:s}=r,a=i.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=bK(l,n,u),d=n,h={},g=0;for(let v=0;v({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:s,elements:a,middlewareData:u}=t,{element:l,padding:c=0}=kf(e,t)||{};if(l==null)return{};const f=kue(c),d={x:r,y:n},h=A8(o),g=w8(h),v=await s.getDimensions(l),y=h==="y",E=y?"top":"left",_=y?"bottom":"right",S=y?"clientHeight":"clientWidth",b=i.reference[g]+i.reference[h]-d[h]-i.floating[g],A=d[h]-i.reference[h],T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let x=T?T[S]:0;(!x||!await(s.isElement==null?void 0:s.isElement(T)))&&(x=a.floating[S]||i.floating[g]);const C=b/2-A/2,I=x/2-v[g]/2-1,R=Gh(f[E],I),D=Gh(f[_],I),L=R,M=x-v[g]-D,q=x/2-v[g]/2+C,z=dB(L,q,M),F=!u.arrow&&mv(o)!=null&&q!=z&&i.reference[g]/2-(qL<=0)){var I,R;const L=(((I=i.flip)==null?void 0:I.index)||0)+1,M=A[L];if(M)return{data:{index:L,overflows:C},reset:{placement:M}};let q=(R=C.filter(z=>z.overflows[0]<=0).sort((z,F)=>z.overflows[1]-F.overflows[1])[0])==null?void 0:R.placement;if(!q)switch(h){case"bestFit":{var D;const z=(D=C.map(F=>[F.placement,F.overflows.filter($=>$>0).reduce(($,K)=>$+K,0)]).sort((F,$)=>F[1]-$[1])[0])==null?void 0:D[0];z&&(q=z);break}case"initialPlacement":q=a;break}if(o!==q)return{reset:{placement:q}}}return{}}}};function _K(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function EK(e){return bMe.some(t=>e[t]>=0)}const SK=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=kf(e,t);switch(n){case"referenceHidden":{const i=await Mg(t,{...o,elementContext:"reference"}),s=_K(i,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:EK(s)}}}case"escaped":{const i=await Mg(t,{...o,altBoundary:!0}),s=_K(i,r.floating);return{data:{escapedOffsets:s,escaped:EK(s)}}}default:return{}}}}};async function NMe(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=xf(r),a=mv(r),u=yv(r)==="y",l=["left","top"].includes(s)?-1:1,c=i&&u?-1:1,f=kf(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&typeof g=="number"&&(h=a==="end"?g*-1:g),u?{x:h*c,y:d*l}:{x:d*l,y:h*c}}const RMe=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:s,middlewareData:a}=t,u=await NMe(t,e);return s===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:s}}}}},OMe=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:y=>{let{x:E,y:_}=y;return{x:E,y:_}}},...u}=kf(e,t),l={x:r,y:n},c=await Mg(t,u),f=yv(xf(o)),d=S8(f);let h=l[d],g=l[f];if(i){const y=d==="y"?"top":"left",E=d==="y"?"bottom":"right",_=h+c[y],S=h-c[E];h=dB(_,h,S)}if(s){const y=f==="y"?"top":"left",E=f==="y"?"bottom":"right",_=g+c[y],S=g-c[E];g=dB(_,g,S)}const v=a.fn({...t,[d]:h,[f]:g});return{...v,data:{x:v.x-r,y:v.y-n}}}}},DMe=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:u=!0,crossAxis:l=!0}=kf(e,t),c={x:r,y:n},f=yv(o),d=S8(f);let h=c[d],g=c[f];const v=kf(a,t),y=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(u){const S=d==="y"?"height":"width",b=i.reference[d]-i.floating[S]+y.mainAxis,A=i.reference[d]+i.reference[S]-y.mainAxis;hA&&(h=A)}if(l){var E,_;const S=d==="y"?"width":"height",b=["top","left"].includes(xf(o)),A=i.reference[f]-i.floating[S]+(b&&((E=s.offset)==null?void 0:E[f])||0)+(b?0:y.crossAxis),T=i.reference[f]+i.reference[S]+(b?0:((_=s.offset)==null?void 0:_[f])||0)-(b?y.crossAxis:0);gT&&(g=T)}return{[d]:h,[f]:g}}}},FMe=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:o,elements:i}=t,{apply:s=()=>{},...a}=kf(e,t),u=await Mg(t,a),l=xf(r),c=mv(r),f=yv(r)==="y",{width:d,height:h}=n.floating;let g,v;l==="top"||l==="bottom"?(g=l,v=c===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(v=l,g=c==="end"?"top":"bottom");const y=h-u[g],E=d-u[v],_=!t.middlewareData.shift;let S=y,b=E;if(f){const T=d-u.left-u.right;b=c||_?Gh(E,T):T}else{const T=h-u.top-u.bottom;S=c||_?Gh(y,T):T}if(_&&!c){const T=tu(u.left,0),x=tu(u.right,0),C=tu(u.top,0),I=tu(u.bottom,0);f?b=d-2*(T!==0||x!==0?T+x:tu(u.left,u.right)):S=h-2*(C!==0||I!==0?C+I:tu(u.top,u.bottom))}await s({...t,availableWidth:b,availableHeight:S});const A=await o.getDimensions(i.floating);return d!==A.width||h!==A.height?{reset:{rects:!0}}:{}}}};function f1(e){return xue(e)?(e.nodeName||"").toLowerCase():"#document"}function ga(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function C1(e){var t;return(t=(xue(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function xue(e){return e instanceof Node||e instanceof ga(e).Node}function Tf(e){return e instanceof Element||e instanceof ga(e).Element}function lc(e){return e instanceof HTMLElement||e instanceof ga(e).HTMLElement}function wK(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ga(e).ShadowRoot}function Q_(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=vu(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function BMe(e){return["table","td","th"].includes(f1(e))}function k8(e){const t=x8(),r=vu(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function MMe(e){let t=Lg(e);for(;lc(t)&&!MT(t);){if(k8(t))return t;t=Lg(t)}return null}function x8(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function MT(e){return["html","body","#document"].includes(f1(e))}function vu(e){return ga(e).getComputedStyle(e)}function LT(e){return Tf(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Lg(e){if(f1(e)==="html")return e;const t=e.assignedSlot||e.parentNode||wK(e)&&e.host||C1(e);return wK(t)?t.host:t}function Tue(e){const t=Lg(e);return MT(t)?e.ownerDocument?e.ownerDocument.body:e.body:lc(t)&&Q_(t)?t:Tue(t)}function pB(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Tue(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),s=ga(o);return i?t.concat(s,s.visualViewport||[],Q_(o)?o:[],s.frameElement&&r?pB(s.frameElement):[]):t.concat(o,pB(o,[],r))}function Iue(e){const t=vu(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=lc(e),i=o?e.offsetWidth:r,s=o?e.offsetHeight:n,a=Pk(r)!==i||Pk(n)!==s;return a&&(r=i,n=s),{width:r,height:n,$:a}}function Cue(e){return Tf(e)?e:e.contextElement}function ag(e){const t=Cue(e);if(!lc(t))return c1(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=Iue(t);let s=(i?Pk(r.width):r.width)/n,a=(i?Pk(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const LMe=c1(0);function Nue(e){const t=ga(e);return!x8()||!t.visualViewport?LMe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function jMe(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==ga(e)?!1:t}function Kb(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=Cue(e);let s=c1(1);t&&(n?Tf(n)&&(s=ag(n)):s=ag(e));const a=jMe(i,r,n)?Nue(i):c1(0);let u=(o.left+a.x)/s.x,l=(o.top+a.y)/s.y,c=o.width/s.x,f=o.height/s.y;if(i){const d=ga(i),h=n&&Tf(n)?ga(n):n;let g=d.frameElement;for(;g&&n&&h!==d;){const v=ag(g),y=g.getBoundingClientRect(),E=vu(g),_=y.left+(g.clientLeft+parseFloat(E.paddingLeft))*v.x,S=y.top+(g.clientTop+parseFloat(E.paddingTop))*v.y;u*=v.x,l*=v.y,c*=v.x,f*=v.y,u+=_,l+=S,g=ga(g).frameElement}}return Wk({width:c,height:f,x:u,y:l})}function zMe(e){let{rect:t,offsetParent:r,strategy:n}=e;const o=lc(r),i=C1(r);if(r===i)return t;let s={scrollLeft:0,scrollTop:0},a=c1(1);const u=c1(0);if((o||!o&&n!=="fixed")&&((f1(r)!=="body"||Q_(i))&&(s=LT(r)),lc(r))){const l=Kb(r);a=ag(r),u.x=l.x+r.clientLeft,u.y=l.y+r.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-s.scrollLeft*a.x+u.x,y:t.y*a.y-s.scrollTop*a.y+u.y}}function HMe(e){return Array.from(e.getClientRects())}function Rue(e){return Kb(C1(e)).left+LT(e).scrollLeft}function $Me(e){const t=C1(e),r=LT(e),n=e.ownerDocument.body,o=tu(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=tu(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+Rue(e);const a=-r.scrollTop;return vu(n).direction==="rtl"&&(s+=tu(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:s,y:a}}function PMe(e,t){const r=ga(e),n=C1(e),o=r.visualViewport;let i=n.clientWidth,s=n.clientHeight,a=0,u=0;if(o){i=o.width,s=o.height;const l=x8();(!l||l&&t==="fixed")&&(a=o.offsetLeft,u=o.offsetTop)}return{width:i,height:s,x:a,y:u}}function qMe(e,t){const r=Kb(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=lc(e)?ag(e):c1(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,u=o*i.x,l=n*i.y;return{width:s,height:a,x:u,y:l}}function AK(e,t,r){let n;if(t==="viewport")n=PMe(e,r);else if(t==="document")n=$Me(C1(e));else if(Tf(t))n=qMe(t,r);else{const o=Nue(e);n={...t,x:t.x-o.x,y:t.y-o.y}}return Wk(n)}function Oue(e,t){const r=Lg(e);return r===t||!Tf(r)||MT(r)?!1:vu(r).position==="fixed"||Oue(r,t)}function WMe(e,t){const r=t.get(e);if(r)return r;let n=pB(e,[],!1).filter(a=>Tf(a)&&f1(a)!=="body"),o=null;const i=vu(e).position==="fixed";let s=i?Lg(e):e;for(;Tf(s)&&!MT(s);){const a=vu(s),u=k8(s);!u&&a.position==="fixed"&&(o=null),(i?!u&&!o:!u&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Q_(s)&&!u&&Oue(e,s))?n=n.filter(c=>c!==s):o=a,s=Lg(s)}return t.set(e,n),n}function KMe(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?WMe(t,this._c):[].concat(r),n],a=s[0],u=s.reduce((l,c)=>{const f=AK(t,c,o);return l.top=tu(f.top,l.top),l.right=Gh(f.right,l.right),l.bottom=Gh(f.bottom,l.bottom),l.left=tu(f.left,l.left),l},AK(t,a,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function GMe(e){return Iue(e)}function VMe(e,t,r){const n=lc(t),o=C1(t),i=r==="fixed",s=Kb(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const u=c1(0);if(n||!n&&!i)if((f1(t)!=="body"||Q_(o))&&(a=LT(t)),n){const l=Kb(t,!0,i,t);u.x=l.x+t.clientLeft,u.y=l.y+t.clientTop}else o&&(u.x=Rue(o));return{x:s.left+a.scrollLeft-u.x,y:s.top+a.scrollTop-u.y,width:s.width,height:s.height}}function kK(e,t){return!lc(e)||vu(e).position==="fixed"?null:t?t(e):e.offsetParent}function Due(e,t){const r=ga(e);if(!lc(e))return r;let n=kK(e,t);for(;n&&BMe(n)&&vu(n).position==="static";)n=kK(n,t);return n&&(f1(n)==="html"||f1(n)==="body"&&vu(n).position==="static"&&!k8(n))?r:n||MMe(e)||r}const UMe=async function(e){let{reference:t,floating:r,strategy:n}=e;const o=this.getOffsetParent||Due,i=this.getDimensions;return{reference:VMe(t,await o(r),n),floating:{x:0,y:0,...await i(r)}}};function YMe(e){return vu(e).direction==="rtl"}const XMe={convertOffsetParentRelativeRectToViewportRelativeRect:zMe,getDocumentElement:C1,getClippingRect:KMe,getOffsetParent:Due,getElementRects:UMe,getClientRects:HMe,getDimensions:GMe,getScale:ag,isElement:Tf,isRTL:YMe},QMe=(e,t,r)=>{const n=new Map,o={platform:XMe,...r},i={...o.platform,_c:n};return TMe(e,t,{...o,platform:i})};function Fue(e){const t=e.split("-");return{side:t[0],alignment:t[1]}}const ZMe=e=>e.nodeName==="HTML"?e:e.parentNode||e.host,JMe=e=>{var t;return e.nodeType!==1?{}:((t=e.ownerDocument)===null||t===void 0?void 0:t.defaultView).getComputedStyle(e,null)},jT=e=>{const t=e&&ZMe(e);if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}const{overflow:r,overflowX:n,overflowY:o}=JMe(t);return/(auto|scroll|overlay)/.test(r+o+n)?t:jT(t)},e6e=e=>{var t;const r=jT(e);return r?r!==((t=r.ownerDocument)===null||t===void 0?void 0:t.body):!1};function T8(e,t){if(t==="window")return e==null?void 0:e.ownerDocument.documentElement;if(t==="clippingParents")return"clippingAncestors";if(t==="scrollParent"){let r=jT(e);return r.nodeName==="BODY"&&(r=e==null?void 0:e.ownerDocument.documentElement),r}return t}function Bue(e,t){return typeof e=="number"||typeof e=="object"&&e!==null?cC(e,t):typeof e=="function"?r=>{const n=e(r);return cC(n,t)}:{mainAxis:t}}const cC=(e,t)=>{if(typeof e=="number")return{mainAxis:e+t};var r;return{...e,mainAxis:((r=e.mainAxis)!==null&&r!==void 0?r:0)+t}};function t6e(e,t){if(typeof e=="number")return e;const{start:r,end:n,...o}=e,i=o,s=t?"end":"start",a=t?"start":"end";return e[s]&&(i.left=e[s]),e[a]&&(i.right=e[a]),i}const r6e=e=>({above:"top",below:"bottom",before:e?"right":"left",after:e?"left":"right"}),n6e=()=>({start:"start",end:"end",top:"start",bottom:"end",center:void 0}),o6e=(e,t)=>{const r=e==="above"||e==="below",n=t==="top"||t==="bottom";return r&&n||!r&&!n},Mue=(e,t,r)=>{const n=o6e(t,e)?"center":e,o=t&&r6e(r)[t],i=n&&n6e()[n];return o&&i?`${o}-${i}`:o},i6e=()=>({top:"above",bottom:"below",right:"after",left:"before"}),s6e=e=>e==="above"||e==="below"?{start:"start",end:"end"}:{start:"top",end:"bottom"},a6e=e=>{const{side:t,alignment:r}=Fue(e),n=i6e()[t],o=r&&s6e(n)[r];return{position:n,alignment:o}},u6e={above:{position:"above",align:"center"},"above-start":{position:"above",align:"start"},"above-end":{position:"above",align:"end"},below:{position:"below",align:"center"},"below-start":{position:"below",align:"start"},"below-end":{position:"below",align:"end"},before:{position:"before",align:"center"},"before-top":{position:"before",align:"top"},"before-bottom":{position:"before",align:"bottom"},after:{position:"after",align:"center"},"after-top":{position:"after",align:"top"},"after-bottom":{position:"after",align:"bottom"}};function zT(e){return e==null?{}:typeof e=="string"?u6e[e]:e}function fC(e,t,r){const n=k.useRef(!0),[o]=k.useState(()=>({value:e,callback:t,facade:{get current(){return o.value},set current(i){const s=o.value;if(s!==i){if(o.value=i,r&&n.current)return;o.callback(i,s)}}}}));return uc(()=>{n.current=!1},[]),o.callback=t,o.facade}function l6e(e){let t;return()=>(t||(t=new Promise(r=>{Promise.resolve().then(()=>{t=void 0,r(e())})})),t)}function c6e(e){const{arrow:t,middlewareData:r}=e;if(!r.arrow||!t)return;const{x:n,y:o}=r.arrow;Object.assign(t.style,{left:`${n}px`,top:`${o}px`})}function f6e(e){var t,r,n;const{container:o,placement:i,middlewareData:s,strategy:a,lowPPI:u,coordinates:l,useTransform:c=!0}=e;if(!o)return;o.setAttribute(yMe,i),o.removeAttribute(vK),s.intersectionObserver.intersecting&&o.setAttribute(vK,""),o.removeAttribute(mK),!((t=s.hide)===null||t===void 0)&&t.escaped&&o.setAttribute(mK,""),o.removeAttribute(yK),!((r=s.hide)===null||r===void 0)&&r.referenceHidden&&o.setAttribute(yK,"");const f=((n=o.ownerDocument.defaultView)===null||n===void 0?void 0:n.devicePixelRatio)||1,d=Math.round(l.x*f)/f,h=Math.round(l.y*f)/f;if(Object.assign(o.style,{position:a}),c){Object.assign(o.style,{transform:u?`translate(${d}px, ${h}px)`:`translate3d(${d}px, ${h}px, 0)`});return}Object.assign(o.style,{left:`${d}px`,top:`${h}px`})}const d6e=e=>{switch(e){case"always":case!0:return{applyMaxWidth:!0,applyMaxHeight:!0};case"width-always":case"width":return{applyMaxWidth:!0,applyMaxHeight:!1};case"height-always":case"height":return{applyMaxWidth:!1,applyMaxHeight:!0};default:return!1}};function h6e(){return{name:"coverTarget",fn:e=>{const{placement:t,rects:r,x:n,y:o}=e,i=Fue(t).side,s={x:n,y:o};switch(i){case"bottom":s.y-=r.reference.height;break;case"top":s.y+=r.reference.height;break;case"left":s.x+=r.reference.width;break;case"right":s.x-=r.reference.width;break}return s}}}function p6e(e){const{hasScrollableElement:t,flipBoundary:r,container:n,fallbackPositions:o=[],isRtl:i}=e,s=o.reduce((a,u)=>{const{position:l,align:c}=zT(u),f=Mue(c,l,i);return f&&a.push(f),a},[]);return CMe({...t&&{boundary:"clippingAncestors"},...r&&{altBoundary:!0,boundary:T8(n,r)},fallbackStrategy:"bestFit",...s.length&&{fallbackPlacements:s}})}function g6e(){return{name:"intersectionObserver",fn:async e=>{const t=e.rects.floating,r=await Mg(e,{altBoundary:!0}),n=r.top0,o=r.bottom0;return{data:{intersecting:n||o}}}}}const v6e=e=>({name:"resetMaxSize",fn({middlewareData:t,elements:r}){var n;if(!((n=t.resetMaxSize)===null||n===void 0)&&n.maxSizeAlreadyReset)return{};const{applyMaxWidth:o,applyMaxHeight:i}=e;return o&&(r.floating.style.removeProperty("box-sizing"),r.floating.style.removeProperty("max-width"),r.floating.style.removeProperty("width")),i&&(r.floating.style.removeProperty("box-sizing"),r.floating.style.removeProperty("max-height"),r.floating.style.removeProperty("height")),{data:{maxSizeAlreadyReset:!0},reset:{rects:!0}}}});function m6e(e,t){const{container:r,overflowBoundary:n}=t;return FMe({...n&&{altBoundary:!0,boundary:T8(r,n)},apply({availableHeight:o,availableWidth:i,elements:s,rects:a}){const u=(f,d,h)=>{if(f&&(s.floating.style.setProperty("box-sizing","border-box"),s.floating.style.setProperty(`max-${d}`,`${h}px`),a.floating[d]>h)){s.floating.style.setProperty(d,`${h}px`);const g=d==="width"?"x":"y";s.floating.style.getPropertyValue(`overflow-${g}`)||s.floating.style.setProperty(`overflow-${g}`,"auto")}},{applyMaxWidth:l,applyMaxHeight:c}=e;u(l,"width",i),u(c,"height",o)}})}function y6e(e){return!e||typeof e=="number"||typeof e=="object"?e:({rects:{floating:t,reference:r},placement:n})=>{const{position:o,alignment:i}=a6e(n);return e({positionedRect:t,targetRect:r,position:o,alignment:i})}}function b6e(e){const t=y6e(e);return RMe(t)}function _6e(e){const{hasScrollableElement:t,disableTether:r,overflowBoundary:n,container:o,overflowBoundaryPadding:i,isRtl:s}=e;return OMe({...t&&{boundary:"clippingAncestors"},...r&&{crossAxis:r==="all",limiter:DMe({crossAxis:r!=="all",mainAxis:!1})},...i&&{padding:t6e(i,s)},...n&&{altBoundary:!0,boundary:T8(o,n)}})}const xK="--fui-match-target-size";function E6e(){return{name:"matchTargetSize",fn:async e=>{const{rects:{reference:t,floating:r},elements:{floating:n},middlewareData:{matchTargetSize:{matchTargetSizeAttempt:o=!1}={}}}=e;if(t.width===r.width||o)return{};const{width:i}=t;return n.style.setProperty(xK,`${i}px`),n.style.width||(n.style.width=`var(${xK})`),{data:{matchTargetSizeAttempt:!0},reset:{rects:!0}}}}}function TK(e){const t=[];let r=e;for(;r;){const n=jT(r);if(e.ownerDocument.body===n){t.push(n);break}t.push(n),r=n}return t}function S6e(e){const{container:t,target:r,arrow:n,strategy:o,middleware:i,placement:s,useTransform:a=!0}=e;let u=!1;if(!r||!t)return{updatePosition:()=>{},dispose:()=>{}};let l=!0;const c=new Set,f=t.ownerDocument.defaultView;Object.assign(t.style,{position:"fixed",left:0,top:0,margin:0});const d=()=>{u||(l&&(TK(t).forEach(v=>c.add(v)),Hb(r)&&TK(r).forEach(v=>c.add(v)),c.forEach(v=>{v.addEventListener("scroll",h,{passive:!0})}),l=!1),Object.assign(t.style,{position:o}),QMe(r,t,{placement:s,middleware:i,strategy:o}).then(({x:v,y,middlewareData:E,placement:_})=>{u||(c6e({arrow:n,middlewareData:E}),f6e({container:t,middlewareData:E,placement:_,coordinates:{x:v,y},lowPPI:((f==null?void 0:f.devicePixelRatio)||1)<=1,strategy:o,useTransform:a}))}).catch(v=>{}))},h=l6e(()=>d()),g=()=>{u=!0,f&&(f.removeEventListener("scroll",h),f.removeEventListener("resize",h)),c.forEach(v=>{v.removeEventListener("scroll",h)}),c.clear()};return f&&(f.addEventListener("scroll",h,{passive:!0}),f.addEventListener("resize",h)),h(),{updatePosition:h,dispose:g}}function I8(e){const t=k.useRef(null),r=k.useRef(null),n=k.useRef(null),o=k.useRef(null),i=k.useRef(null),{enabled:s=!0}=e,a=w6e(e),u=k.useCallback(()=>{t.current&&t.current.dispose(),t.current=null;var h;const g=(h=n.current)!==null&&h!==void 0?h:r.current;s&&U_()&&g&&o.current&&(t.current=S6e({container:o.current,target:g,arrow:i.current,...a(o.current,i.current)}))},[s,a]),l=lr(h=>{n.current=h,u()});k.useImperativeHandle(e.positioningRef,()=>({updatePosition:()=>{var h;return(h=t.current)===null||h===void 0?void 0:h.updatePosition()},setTarget:h=>{e.target,l(h)}}),[e.target,l]),uc(()=>{var h;l((h=e.target)!==null&&h!==void 0?h:null)},[e.target,l]),uc(()=>{u()},[u]);const c=fC(null,h=>{r.current!==h&&(r.current=h,u())}),f=fC(null,h=>{o.current!==h&&(o.current=h,u())}),d=fC(null,h=>{i.current!==h&&(i.current=h,u())});return{targetRef:c,containerRef:f,arrowRef:d}}function w6e(e){const{align:t,arrowPadding:r,autoSize:n,coverTarget:o,flipBoundary:i,offset:s,overflowBoundary:a,pinned:u,position:l,unstable_disableTether:c,positionFixed:f,strategy:d,overflowBoundaryPadding:h,fallbackPositions:g,useTransform:v,matchTargetSize:y}=e,{dir:E,targetDocument:_}=Ca(),S=E==="rtl",b=d??f?"fixed":"absolute",A=d6e(n);return k.useCallback((T,x)=>{const C=e6e(T),I=[A&&v6e(A),y&&E6e(),s&&b6e(s),o&&h6e(),!u&&p6e({container:T,flipBoundary:i,hasScrollableElement:C,isRtl:S,fallbackPositions:g}),_6e({container:T,hasScrollableElement:C,overflowBoundary:a,disableTether:c,overflowBoundaryPadding:h,isRtl:S}),A&&m6e(A,{container:T,overflowBoundary:a}),g6e(),x&&IMe({element:x,padding:r}),SK({strategy:"referenceHidden"}),SK({strategy:"escaped"}),!1].filter(Boolean);return{placement:Mue(t,l,S),middleware:I,strategy:b,useTransform:v}},[t,r,A,o,c,i,S,s,a,u,l,b,h,g,v,y,_])}const A6e=e=>{const[t,r]=k.useState(e);return[t,o=>{if(o==null){r(void 0);return}let i;o instanceof MouseEvent?i=o:i=o.nativeEvent,i instanceof MouseEvent;const s=mMe(i);r(s)}]},C8=vv(void 0),k6e={open:!1,setOpen:()=>null,toggleOpen:()=>null,triggerRef:{current:null},contentRef:{current:null},arrowRef:{current:null},openOnContext:!1,openOnHover:!1,size:"medium",trapFocus:!1,inline:!1};C8.Provider;const ni=e=>Ko(C8,(t=k6e)=>e(t)),x6e=(e,t)=>{const r=ni(_=>_.contentRef),n=ni(_=>_.openOnHover),o=ni(_=>_.setOpen),i=ni(_=>_.mountNode),s=ni(_=>_.arrowRef),a=ni(_=>_.size),u=ni(_=>_.withArrow),l=ni(_=>_.appearance),c=ni(_=>_.trapFocus),f=ni(_=>_.inertTrapFocus),d=ni(_=>_.inline),{modalAttributes:h}=DT({trapFocus:c,legacyTrapFocus:!f,alwaysFocusable:!c}),g={inline:d,appearance:l,withArrow:u,size:a,arrowRef:s,mountNode:i,components:{root:"div"},root:Sr(mn("div",{ref:di(t,r),role:c?"dialog":"group","aria-modal":c?!0:void 0,...h,...e}),{elementType:"div"})},{onMouseEnter:v,onMouseLeave:y,onKeyDown:E}=g.root;return g.root.onMouseEnter=_=>{n&&o(_,!0),v==null||v(_)},g.root.onMouseLeave=_=>{n&&o(_,!1),y==null||y(_)},g.root.onKeyDown=_=>{var S;_.key==="Escape"&&(!((S=r.current)===null||S===void 0)&&S.contains(_.target))&&(_.preventDefault(),o(_,!1)),E==null||E(_)},g};function T6e(e){return Hb(e)?{element:e}:typeof e=="object"?e===null?{element:null}:e:{}}var Lue=()=>k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner.current,I6e=()=>!1,IK=new WeakSet;function C6e(e,t){const r=Lue();k.useEffect(()=>{if(!IK.has(r)){IK.add(r),e();return}return e()},t)}var CK=new WeakSet;function N6e(e,t){return k.useMemo(()=>{const r=Lue();return CK.has(r)?e():(CK.add(r),null)},t)}function R6e(e,t){var r;const n=I6e()&&!1,o=n?N6e:k.useMemo,i=n?C6e:k.useEffect,[s,a]=(r=o(()=>e(),t))!=null?r:[null,()=>null];return i(()=>a,t),s}const O6e=At({root:{qhf8xq:"f1euv43f",Bhzewxz:"f15twtuk",oyh7mz:["f1vgc2s3","f1e31b4d"],j35jbq:["f1e31b4d","f1vgc2s3"],Bj3rh1h:"f494woh"}},{d:[".f1euv43f{position:absolute;}",".f15twtuk{top:0;}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".f494woh{z-index:1000000;}"]}),NK=db.useInsertionEffect,D6e=e=>{const{targetDocument:t,dir:r}=Ca(),n=FDe(),o=eue(),i=O6e(),s=ADe(),a=Xe(s,i.root,e.className),u=n??(t==null?void 0:t.body),l=R6e(()=>{if(u===void 0||e.disabled)return[null,()=>null];const c=u.ownerDocument.createElement("div");return u.appendChild(c),[c,()=>c.remove()]},[u]);return NK?NK(()=>{if(!l)return;const c=a.split(" ").filter(Boolean);return l.classList.add(...c),l.setAttribute("dir",r),o.current=l,()=>{l.classList.remove(...c),l.removeAttribute("dir")}},[a,r,l,o]):k.useMemo(()=>{l&&(l.className=a,l.setAttribute("dir",r),o.current=l)},[a,r,l,o]),l},F6e=e=>{const{element:t,className:r}=T6e(e.mountNode),n=k.useRef(null),o=D6e({disabled:!!t,className:r}),i=t??o,s={children:e.children,mountNode:i,virtualParentRootRef:n};return k.useEffect(()=>{if(!i)return;const a=n.current,u=i.contains(a);if(a&&!u)return iK(i,a),()=>{iK(i,void 0)}},[n,i]),s},B6e=e=>k.createElement("span",{hidden:!0,ref:e.virtualParentRootRef},e.mountNode&&li.createPortal(e.children,e.mountNode)),Z_=e=>{const t=F6e(e);return B6e(t)};Z_.displayName="Portal";const M6e=e=>{const t=Vn(e.root,{children:[e.withArrow&&nt("div",{ref:e.arrowRef,className:e.arrowClassName}),e.root.children]});return e.inline?t:nt(Z_,{mountNode:e.mountNode,children:t})},L6e={root:"fui-PopoverSurface"},j6e={small:6,medium:8,large:8},z6e=At({root:{sj55zd:"f19n0e5",De3pzq:"fxugw4r",E5pizo:"f1hg901r",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B4j52fo:"f5ogflp",Bekrc4i:["f1hqa2wf","finvdd3"],Bn0qgzm:"f1f09k3d",ibv6hh:["finvdd3","f1hqa2wf"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B93otf3:"f18k4bn6",vin17d:"fo1kyvf",Ezkn3b:"fetxo7e",nyiy2g:"f8x1vz1",swvrvq:"f8g0anz",Bkovbt3:"fezwn9i",hgjdhn:"fz5efge",fsy9dk:"f1ydixl4",B3ogreh:"f8dgqj5",jv49x5:"fnyfnr8",Bk7o48c:"fgw77r4",Bv12yb3:"ftje0s4",z0t1cu:"fi19xcv",Bks05zx:"f1mzajhk",Bvtglag:"fjp4h9y"},inline:{Bj3rh1h:"f19g0ac"},inverted:{De3pzq:"fg3r6xk",sj55zd:"fonrgv7"},brand:{De3pzq:"ffp7eso",sj55zd:"f1phragk"},smallPadding:{z8tnut:"f1kcqot9",z189sj:["f11qrl6u","fjlbh76"],Byoj8tv:"fpe6lb7",uwmqm3:["fjlbh76","f11qrl6u"]},mediumPadding:{z8tnut:"fqag9an",z189sj:["f1gbmcue","f1rh9g5y"],Byoj8tv:"fp67ikv",uwmqm3:["f1rh9g5y","f1gbmcue"]},largePadding:{z8tnut:"fc7z3ec",z189sj:["fat0sn4","fekwl8i"],Byoj8tv:"fe2my4m",uwmqm3:["fekwl8i","fat0sn4"]},smallArrow:{a9b677:"f1ekdpwm",Bqenvij:"f83vc9z"},mediumLargeArrow:{a9b677:"f1kmc0fn",Bqenvij:"fb6lvc5"},arrow:{qhf8xq:"f1euv43f",De3pzq:"f1u2r49w",Bcdw1i0:"fd7fpy0",Bj3rh1h:"f1bsuimh",Ftih45:"f1wl9k8s",B1puzpu:"f1wkw4r9",Brfgrao:"f1j7ml58",Bcvre1j:"fyl8oag",Ccq8qp:"frdoeuz",Baz25je:"fb81m9q",cmx5o7:"f1ljr5q2",B4f6apu:"fyfemzf",m598lv:"focyt6c",Bk5zm6e:"fnhxbxj",y0oebl:"fdw6hkg",qa3bma:"f11yjt3y",Bqjgrrk:"f1172wan",Budzafs:["f9e5op9","f112wvtl"],Hv9wc6:["f1500xdc","f1it0ps5"],hl6cv3:"f1773hnp",c8svkw:"fw7o64x",yayu3t:"f1v7783n",nr3p0k:"f1f0d6v",rhl9o9:"fh2hsk5",wiz9v7:"f1gj3y7g",B6q6orb:"f11yvu4",ndpsmx:"f17lejdj"}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1hg901r{box-shadow:var(--shadow16);}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f5ogflp{border-top-width:1px;}",".f1hqa2wf{border-right-width:1px;}",".finvdd3{border-left-width:1px;}",".f1f09k3d{border-bottom-width:1px;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f18k4bn6{animation-composition:accumulate;}",".fo1kyvf{animation-duration:var(--durationSlower);}",".fetxo7e{animation-timing-function:var(--curveDecelerateMid);}",".f8x1vz1{--fui-positioning-slide-distance-x:0px;}",".f8g0anz{--fui-positioning-slide-distance-y:10px;}",".fezwn9i[data-popper-placement^=right]{--fui-positioning-slide-distance-x:-10px;}",".fz5efge[data-popper-placement^=right]{--fui-positioning-slide-distance-y:0px;}",".f1ydixl4[data-popper-placement^=bottom]{--fui-positioning-slide-distance-x:0px;}",".f8dgqj5[data-popper-placement^=bottom]{--fui-positioning-slide-distance-y:-10px;}",".fnyfnr8[data-popper-placement^=left]{--fui-positioning-slide-distance-x:10px;}",".fgw77r4[data-popper-placement^=left]{--fui-positioning-slide-distance-y:0px;}",".ftje0s4{animation-name:f5j8bii,f79suad;}",".f19g0ac{z-index:1;}",".fg3r6xk{background-color:var(--colorNeutralBackgroundStatic);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".f1kcqot9{padding-top:12px;}",".f11qrl6u{padding-right:12px;}",".fjlbh76{padding-left:12px;}",".fpe6lb7{padding-bottom:12px;}",".fqag9an{padding-top:16px;}",".f1gbmcue{padding-right:16px;}",".f1rh9g5y{padding-left:16px;}",".fp67ikv{padding-bottom:16px;}",".fc7z3ec{padding-top:20px;}",".fat0sn4{padding-right:20px;}",".fekwl8i{padding-left:20px;}",".fe2my4m{padding-bottom:20px;}",".f1ekdpwm{width:8.484px;}",".f83vc9z{height:8.484px;}",".f1kmc0fn{width:11.312px;}",".fb6lvc5{height:11.312px;}",".f1euv43f{position:absolute;}",".f1u2r49w{background-color:inherit;}",".fd7fpy0{visibility:hidden;}",".f1bsuimh{z-index:-1;}",'.f1wl9k8s::before{content:"";}',".f1wkw4r9::before{visibility:visible;}",".f1j7ml58::before{position:absolute;}",".fyl8oag::before{box-sizing:border-box;}",".frdoeuz::before{width:inherit;}",".fb81m9q::before{height:inherit;}",".f1ljr5q2::before{background-color:inherit;}",".fyfemzf::before{border-right-width:1px;}",".focyt6c::before{border-right-style:solid;}",".fnhxbxj::before{border-right-color:var(--colorTransparentStroke);}",".fdw6hkg::before{border-bottom-width:1px;}",".f11yjt3y::before{border-bottom-style:solid;}",".f1172wan::before{border-bottom-color:var(--colorTransparentStroke);}",".f9e5op9::before{border-bottom-right-radius:var(--borderRadiusSmall);}",".f112wvtl::before{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1500xdc::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(45deg);}",".f1it0ps5::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(-45deg);}",'[data-popper-placement^="top"] .f1773hnp{bottom:-1px;}','[data-popper-placement^="top"] .fw7o64x{--fui-positioning-angle:0;}','[data-popper-placement^="right"] .f1v7783n{left:-1px;}','[data-popper-placement^="right"] .f1f0d6v{--fui-positioning-angle:90deg;}','[data-popper-placement^="bottom"] .fh2hsk5{top:-1px;}','[data-popper-placement^="bottom"] .f1gj3y7g{--fui-positioning-angle:180deg;}','[data-popper-placement^="left"] .f11yvu4{right:-1px;}','[data-popper-placement^="left"] .f17lejdj{--fui-positioning-angle:270deg;}'],k:["@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}","@keyframes f79suad{from{transform:translate(var(--fui-positioning-slide-distance-x), var(--fui-positioning-slide-distance-y));}}"],m:[["@media (prefers-reduced-motion){.fi19xcv[data-popper-placement]{animation-duration:1ms;}}",{m:"(prefers-reduced-motion)"}],["@media (prefers-reduced-motion){.f1mzajhk[data-popper-placement]{animation-name:f5j8bii;}}",{m:"(prefers-reduced-motion)"}]],t:["@supports not (animation-composition: accumulate){.fjp4h9y[data-popper-placement]{animation-name:f5j8bii;}}"]}),H6e=e=>{const t=z6e();return e.root.className=Xe(L6e.root,t.root,e.inline&&t.inline,e.size==="small"&&t.smallPadding,e.size==="medium"&&t.mediumPadding,e.size==="large"&&t.largePadding,e.appearance==="inverted"&&t.inverted,e.appearance==="brand"&&t.brand,e.root.className),e.arrowClassName=Xe(t.arrow,e.size==="small"?t.smallArrow:t.mediumLargeArrow),e},jue=k.forwardRef((e,t)=>{const r=x6e(e,t);return H6e(r),yn("usePopoverSurfaceStyles_unstable")(r),M6e(r)});jue.displayName="PopoverSurface";const $6e=4,P6e=e=>{const[t,r]=A6e(),n={size:"medium",contextTarget:t,setContextTarget:r,...e},o=k.Children.toArray(e.children);let i,s;o.length===2?(i=o[0],s=o[1]):o.length===1&&(s=o[0]);const[a,u]=q6e(n),l=k.useRef(0),c=lr((S,b)=>{if(clearTimeout(l.current),!(S instanceof Event)&&S.persist&&S.persist(),S.type==="mouseleave"){var A;l.current=setTimeout(()=>{u(S,b)},(A=e.mouseLeaveDelay)!==null&&A!==void 0?A:500)}else u(S,b)});k.useEffect(()=>()=>{clearTimeout(l.current)},[]);const f=k.useCallback(S=>{c(S,!a)},[c,a]),d=W6e(n),{targetDocument:h}=Ca();var g;MDe({contains:oK,element:h,callback:S=>c(S,!1),refs:[d.triggerRef,d.contentRef],disabled:!a,disabledFocusOnIframe:!(!((g=e.closeOnIframeFocus)!==null&&g!==void 0)||g)});const v=n.openOnContext||n.closeOnScroll;zDe({contains:oK,element:h,callback:S=>c(S,!1),refs:[d.triggerRef,d.contentRef],disabled:!a||!v});const{findFirstFocusable:y}=Zae();k.useEffect(()=>{if(!e.unstable_disableAutoFocus&&a&&d.contentRef.current){var S;const b=(S=d.contentRef.current.getAttribute("tabIndex"))!==null&&S!==void 0?S:void 0,A=isNaN(b)?y(d.contentRef.current):d.contentRef.current;A==null||A.focus()}},[y,a,d.contentRef,e.unstable_disableAutoFocus]);var E,_;return{...n,...d,inertTrapFocus:(E=e.inertTrapFocus)!==null&&E!==void 0?E:e.legacyTrapFocus===void 0?!1:!e.legacyTrapFocus,popoverTrigger:i,popoverSurface:s,open:a,setOpen:c,toggleOpen:f,setContextTarget:r,contextTarget:t,inline:(_=e.inline)!==null&&_!==void 0?_:!1}};function q6e(e){const t=lr((s,a)=>{var u;return(u=e.onOpenChange)===null||u===void 0?void 0:u.call(e,s,a)}),[r,n]=Sf({state:e.open,defaultState:e.defaultOpen,initialState:!1});e.open=r!==void 0?r:e.open;const o=e.setContextTarget,i=k.useCallback((s,a)=>{a&&s.type==="contextmenu"&&o(s),a||o(void 0),n(a),t==null||t(s,{open:a})},[n,t,o]);return[r,i]}function W6e(e){const t={position:"above",align:"center",arrowPadding:2*$6e,target:e.openOnContext?e.contextTarget:void 0,...zT(e.positioning)};t.coverTarget&&(e.withArrow=!1),e.withArrow&&(t.offset=Bue(t.offset,j6e[e.size]));const{targetRef:r,containerRef:n,arrowRef:o}=I8(t);return{triggerRef:r,contentRef:n,arrowRef:o}}const K6e=e=>{const{appearance:t,arrowRef:r,contentRef:n,inline:o,mountNode:i,open:s,openOnContext:a,openOnHover:u,setOpen:l,size:c,toggleOpen:f,trapFocus:d,triggerRef:h,withArrow:g,inertTrapFocus:v}=e;return k.createElement(C8.Provider,{value:{appearance:t,arrowRef:r,contentRef:n,inline:o,mountNode:i,open:s,openOnContext:a,openOnHover:u,setOpen:l,toggleOpen:f,triggerRef:h,size:c,trapFocus:d,inertTrapFocus:v,withArrow:g}},e.popoverTrigger,e.open&&e.popoverSurface)},zue=e=>{const t=P6e(e);return K6e(t)};zue.displayName="Popover";const G6e=e=>{const{children:t,disableButtonEnhancement:r=!1}=e,n=NT(t),o=ni(S=>S.open),i=ni(S=>S.setOpen),s=ni(S=>S.toggleOpen),a=ni(S=>S.triggerRef),u=ni(S=>S.openOnHover),l=ni(S=>S.openOnContext),{triggerAttributes:c}=DT(),f=S=>{l&&(S.preventDefault(),i(S,!0))},d=S=>{l||s(S)},h=S=>{S.key===BT&&o&&!S.isDefaultPrevented()&&(i(S,!1),S.preventDefault())},g=S=>{u&&i(S,!0)},v=S=>{u&&i(S,!1)},y={...c,"aria-expanded":`${o}`,...n==null?void 0:n.props,onMouseEnter:lr(In(n==null?void 0:n.props.onMouseEnter,g)),onMouseLeave:lr(In(n==null?void 0:n.props.onMouseLeave,v)),onContextMenu:lr(In(n==null?void 0:n.props.onContextMenu,f)),ref:di(a,n==null?void 0:n.ref)},E={...y,onClick:lr(In(n==null?void 0:n.props.onClick,d)),onKeyDown:lr(In(n==null?void 0:n.props.onKeyDown,h))},_=Wb((n==null?void 0:n.type)==="button"||(n==null?void 0:n.type)==="a"?n.type:"div",E);return{children:p8(e.children,Wb((n==null?void 0:n.type)==="button"||(n==null?void 0:n.type)==="a"?n.type:"div",l?y:r?E:_))}},V6e=e=>e.children,N8=e=>{const t=G6e(e);return V6e(t)};N8.displayName="PopoverTrigger";N8.isFluentTriggerComponent=!0;const U6e=6,Y6e=4,X6e=e=>{var t,r,n,o;const i=TDe(),s=yDe(),{targetDocument:a}=Ca(),[u,l]=h8(),{appearance:c="normal",children:f,content:d,withArrow:h=!1,positioning:g="above",onVisibleChange:v,relationship:y,showDelay:E=250,hideDelay:_=250,mountNode:S}=e,[b,A]=Sf({state:e.visible,initialState:!1}),T=k.useCallback((K,U)=>{l(),A(X=>(U.visible!==X&&(v==null||v(K,U)),U.visible))},[l,A,v]),x={withArrow:h,positioning:g,showDelay:E,hideDelay:_,relationship:y,visible:b,shouldRenderTooltip:b,appearance:c,mountNode:S,components:{content:"div"},content:Sr(d,{defaultProps:{role:"tooltip"},elementType:"div"})};x.content.id=Ia("tooltip-",x.content.id);const C={enabled:x.visible,arrowPadding:2*Y6e,position:"above",align:"center",offset:4,...zT(x.positioning)};x.withArrow&&(C.offset=Bue(C.offset,U6e));const{targetRef:I,containerRef:R,arrowRef:D}=I8(C);x.content.ref=di(x.content.ref,R),x.arrowRef=D,uc(()=>{if(b){var K;const U={hide:J=>T(void 0,{visible:!1,documentKeyboardEvent:J})};(K=i.visibleTooltip)===null||K===void 0||K.hide(),i.visibleTooltip=U;const X=J=>{J.key===BT&&!J.defaultPrevented&&(U.hide(J),J.preventDefault())};return a==null||a.addEventListener("keydown",X,{capture:!0}),()=>{i.visibleTooltip===U&&(i.visibleTooltip=void 0),a==null||a.removeEventListener("keydown",X,{capture:!0})}}},[i,a,b,T]);const L=k.useRef(!1),M=k.useCallback(K=>{if(K.type==="focus"&&L.current){L.current=!1;return}const U=i.visibleTooltip?0:x.showDelay;u(()=>{T(K,{visible:!0})},U),K.persist()},[u,T,x.showDelay,i]),[q]=k.useState(()=>{const K=X=>{var J;!((J=X.detail)===null||J===void 0)&&J.isFocusedProgrammatically&&(L.current=!0)};let U=null;return X=>{U==null||U.removeEventListener(wf,K),X==null||X.addEventListener(wf,K),U=X}}),z=k.useCallback(K=>{let U=x.hideDelay;K.type==="blur"&&(U=0,L.current=(a==null?void 0:a.activeElement)===K.target),u(()=>{T(K,{visible:!1})},U),K.persist()},[u,T,x.hideDelay,a]);x.content.onPointerEnter=In(x.content.onPointerEnter,l),x.content.onPointerLeave=In(x.content.onPointerLeave,z),x.content.onFocus=In(x.content.onFocus,l),x.content.onBlur=In(x.content.onBlur,z);const F=NT(f),$={};return y==="label"?typeof x.content.children=="string"?$["aria-label"]=x.content.children:($["aria-labelledby"]=x.content.id,x.shouldRenderTooltip=!0):y==="description"&&($["aria-describedby"]=x.content.id,x.shouldRenderTooltip=!0),s&&(x.shouldRenderTooltip=!1),x.children=p8(f,{...$,...F==null?void 0:F.props,ref:di(F==null?void 0:F.ref,q,C.target===void 0?I:void 0),onPointerEnter:lr(In(F==null||(t=F.props)===null||t===void 0?void 0:t.onPointerEnter,M)),onPointerLeave:lr(In(F==null||(r=F.props)===null||r===void 0?void 0:r.onPointerLeave,z)),onFocus:lr(In(F==null||(n=F.props)===null||n===void 0?void 0:n.onFocus,M)),onBlur:lr(In(F==null||(o=F.props)===null||o===void 0?void 0:o.onBlur,z))}),x},Q6e=e=>Vn(k.Fragment,{children:[e.children,e.shouldRenderTooltip&&nt(Z_,{mountNode:e.mountNode,children:Vn(e.content,{children:[e.withArrow&&nt("div",{ref:e.arrowRef,className:e.arrowClassName}),e.content.children]})})]}),Z6e={content:"fui-Tooltip__content"},J6e=At({root:{mc9l5x:"fjseox",B7ck84d:"f1ewtqcl",B2u0y6b:"f132xexn",Bceei9c:"f158kwzp",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm",Btd35i7:"fokg9q4",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B4j52fo:"f5ogflp",Bekrc4i:["f1hqa2wf","finvdd3"],Bn0qgzm:"f1f09k3d",ibv6hh:["finvdd3","f1hqa2wf"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"],z8tnut:"f10ra9hq",z189sj:["fd9xhir","f1jlaasf"],Byoj8tv:"f1d7kygh",uwmqm3:["f1jlaasf","fd9xhir"],De3pzq:"fxugw4r",sj55zd:"f19n0e5",Bhu2qc9:"fxeb0a7"},visible:{mc9l5x:"ftgm304"},inverted:{De3pzq:"fg3r6xk",sj55zd:"fonrgv7"},arrow:{qhf8xq:"f1euv43f",De3pzq:"f1u2r49w",Bcdw1i0:"fd7fpy0",Bj3rh1h:"f1bsuimh",a9b677:"f1ekdpwm",Bqenvij:"f83vc9z",Ftih45:"f1wl9k8s",B1puzpu:"f1wkw4r9",Brfgrao:"f1j7ml58",Bcvre1j:"fyl8oag",Ccq8qp:"frdoeuz",Baz25je:"fb81m9q",cmx5o7:"f1ljr5q2",B4f6apu:"fyfemzf",m598lv:"focyt6c",Bk5zm6e:"fnhxbxj",y0oebl:"fdw6hkg",qa3bma:"f11yjt3y",Bqjgrrk:"f1172wan",Budzafs:["f9e5op9","f112wvtl"],Hv9wc6:["f1500xdc","f1it0ps5"],hl6cv3:"f1773hnp",c8svkw:"fw7o64x",yayu3t:"f1v7783n",nr3p0k:"f1f0d6v",rhl9o9:"fh2hsk5",wiz9v7:"f1gj3y7g",B6q6orb:"f11yvu4",ndpsmx:"f17lejdj"}},{d:[".fjseox{display:none;}",".f1ewtqcl{box-sizing:border-box;}",".f132xexn{max-width:240px;}",".f158kwzp{cursor:default;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fokg9q4{overflow-wrap:break-word;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f5ogflp{border-top-width:1px;}",".f1hqa2wf{border-right-width:1px;}",".finvdd3{border-left-width:1px;}",".f1f09k3d{border-bottom-width:1px;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".f10ra9hq{padding-top:4px;}",".fd9xhir{padding-right:11px;}",".f1jlaasf{padding-left:11px;}",".f1d7kygh{padding-bottom:6px;}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".fxeb0a7{filter:drop-shadow(0 0 2px var(--colorNeutralShadowAmbient)) drop-shadow(0 4px 8px var(--colorNeutralShadowKey));}",".ftgm304{display:block;}",".fg3r6xk{background-color:var(--colorNeutralBackgroundStatic);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".f1euv43f{position:absolute;}",".f1u2r49w{background-color:inherit;}",".fd7fpy0{visibility:hidden;}",".f1bsuimh{z-index:-1;}",".f1ekdpwm{width:8.484px;}",".f83vc9z{height:8.484px;}",'.f1wl9k8s::before{content:"";}',".f1wkw4r9::before{visibility:visible;}",".f1j7ml58::before{position:absolute;}",".fyl8oag::before{box-sizing:border-box;}",".frdoeuz::before{width:inherit;}",".fb81m9q::before{height:inherit;}",".f1ljr5q2::before{background-color:inherit;}",".fyfemzf::before{border-right-width:1px;}",".focyt6c::before{border-right-style:solid;}",".fnhxbxj::before{border-right-color:var(--colorTransparentStroke);}",".fdw6hkg::before{border-bottom-width:1px;}",".f11yjt3y::before{border-bottom-style:solid;}",".f1172wan::before{border-bottom-color:var(--colorTransparentStroke);}",".f9e5op9::before{border-bottom-right-radius:var(--borderRadiusSmall);}",".f112wvtl::before{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1500xdc::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(45deg);}",".f1it0ps5::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(-45deg);}",'[data-popper-placement^="top"] .f1773hnp{bottom:-1px;}','[data-popper-placement^="top"] .fw7o64x{--fui-positioning-angle:0;}','[data-popper-placement^="right"] .f1v7783n{left:-1px;}','[data-popper-placement^="right"] .f1f0d6v{--fui-positioning-angle:90deg;}','[data-popper-placement^="bottom"] .fh2hsk5{top:-1px;}','[data-popper-placement^="bottom"] .f1gj3y7g{--fui-positioning-angle:180deg;}','[data-popper-placement^="left"] .f11yvu4{right:-1px;}','[data-popper-placement^="left"] .f17lejdj{--fui-positioning-angle:270deg;}']}),eLe=e=>{const t=J6e();return e.content.className=Xe(Z6e.content,t.root,e.appearance==="inverted"&&t.inverted,e.visible&&t.visible,e.content.className),e.arrowClassName=t.arrow,e},ca=e=>{const t=X6e(e);return eLe(t),yn("useTooltipStyles_unstable")(t),Q6e(t)};ca.displayName="Tooltip";ca.isFluentTriggerComponent=!0;const tLe=e=>{const{iconOnly:t,iconPosition:r}=e;return Vn(e.root,{children:[r!=="after"&&e.icon&&nt(e.icon,{}),!t&&e.root.children,r==="after"&&e.icon&&nt(e.icon,{})]})},Hue=k.createContext(void 0),rLe={},RK=Hue.Provider,nLe=()=>{var e;return(e=k.useContext(Hue))!==null&&e!==void 0?e:rLe},oLe=(e,t)=>{const{size:r}=nLe(),{appearance:n="secondary",as:o="button",disabled:i=!1,disabledFocusable:s=!1,icon:a,iconPosition:u="before",shape:l="rounded",size:c=r??"medium"}=e,f=un(a,{elementType:"span"});return{appearance:n,disabled:i,disabledFocusable:s,iconPosition:u,shape:l,size:c,iconOnly:!!(f!=null&&f.children&&!e.children),components:{root:"button",icon:"span"},root:Sr(mn(o,Wb(e.as,e)),{elementType:"button",defaultProps:{ref:t,type:"button"}}),icon:f}},OK={root:"fui-Button",icon:"fui-Button__icon"},iLe=kn("r1alrhcs",null,{r:[".r1alrhcs{align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;text-decoration-line:none;vertical-align:middle;margin:0;overflow:hidden;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);font-family:var(--fontFamilyBase);outline-style:none;padding:5px var(--spacingHorizontalM);min-width:96px;border-radius:var(--borderRadiusMedium);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase300);transition-duration:var(--durationFaster);transition-property:background,border,color;transition-timing-function:var(--curveEasyEase);}",".r1alrhcs:hover{background-color:var(--colorNeutralBackground1Hover);border-color:var(--colorNeutralStroke1Hover);color:var(--colorNeutralForeground1Hover);cursor:pointer;}",".r1alrhcs:hover:active{background-color:var(--colorNeutralBackground1Pressed);border-color:var(--colorNeutralStroke1Pressed);color:var(--colorNeutralForeground1Pressed);outline-style:none;}",".r1alrhcs[data-fui-focus-visible]{border-color:var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);border-width:1px;outline:var(--strokeWidthThick) solid var(--colorTransparentStroke);box-shadow:0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;z-index:1;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1alrhcs{transition-duration:0.01ms;}}","@media (forced-colors: active){.r1alrhcs:focus{border-color:ButtonText;}.r1alrhcs:hover{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}.r1alrhcs:hover:active{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}}","@supports (-moz-appearance:button){.r1alrhcs[data-fui-focus-visible]{box-shadow:0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),sLe=kn("rywnvv2",null,[".rywnvv2{align-items:center;display:inline-flex;justify-content:center;font-size:20px;height:20px;width:20px;--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}"]),aLe=At({outline:{De3pzq:"f1c21dwh",Jwef8y:"fjxutwb",iro3zm:"fwiml72"},primary:{De3pzq:"ffp7eso",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"f1phragk",Jwef8y:"f15wkkf3",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f1rq72xc",iro3zm:"fnp9lpt",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1d6v5y2",Bsw6fvg:"f1rirnrt",Bjwas2f:"f1uu00uk",Bn1d65q:["fkvaka8","f9a0qzu"],Bxeuatn:"f1ux7til",n51gp8:["f9a0qzu","fkvaka8"],Bbusuzp:"f1lkg8j3",ycbfsm:"fkc42ay",Bqrx1nm:"fq7113v",pgvf35:"ff1wgvm",Bh7lczh:["fiob0tu","f1x4h75k"],dpv3f4:"f1j6scgf",Bpnjhaq:["f1x4h75k","fiob0tu"],ze5xyy:"f4xjyn1",g2kj27:"fbgcvur",Bf756sw:"f1ks1yx8",Bow2dr7:["f1o6qegi","fmxjhhp"],Bvhedfk:"fcnxywj",Gye4lf:["fmxjhhp","f1o6qegi"],pc6evw:"f9ddjv3"},secondary:{},subtle:{De3pzq:"fhovq9v",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"f1t94bn6",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"fnwyq0v",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",Bbdnnc7:"fy5bs14",iro3zm:"fsv2rcd",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1omzyqd",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",x3br3k:"fj8yq94",ze5xyy:"f4xjyn1",Bx3q9su:"f1et0tmh",pc6evw:"f9ddjv3",xd2cci:"f1wi8ngl"},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"fjxutwb",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f139oj5f",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",iro3zm:"fwiml72",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1fg1p5m",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",Bqrx1nm:"f1tme0vf",ze5xyy:"f4xjyn1",g2kj27:"f18onu3q",pc6evw:"f9ddjv3"},circular:{Bbmb7ep:["f8fbkgy","f1nfllo7"],Beyfa6y:["f1nfllo7","f8fbkgy"],B7oj6ja:["f1djnp8u","f1s8kh49"],Btl43ni:["f1s8kh49","f1djnp8u"]},rounded:{},square:{Bbmb7ep:["fzi6hpg","fyowgf4"],Beyfa6y:["fyowgf4","fzi6hpg"],B7oj6ja:["f3fg2lr","f13av6d4"],Btl43ni:["f13av6d4","f3fg2lr"]},small:{Bf4jedk:"fh7ncta",z8tnut:"f1khb0e9",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f1jnq6q7",uwmqm3:["f1f5gg8d","f1vdfbxk"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},smallWithIcon:{Byoj8tv:"f1brlhvm",z8tnut:"f1sl3k7w"},medium:{},large:{Bf4jedk:"f14es27b",z8tnut:"fp9bwmr",z189sj:["fjodcmx","fhx4nu"],Byoj8tv:"f150uoa4",uwmqm3:["fhx4nu","fjodcmx"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},largeWithIcon:{Byoj8tv:"fy7v416",z8tnut:"f1a1bwwz"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f8fbkgy{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1nfllo7{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1djnp8u{border-top-right-radius:var(--borderRadiusCircular);}",".f1s8kh49{border-top-left-radius:var(--borderRadiusCircular);}",".fzi6hpg{border-bottom-right-radius:var(--borderRadiusNone);}",".fyowgf4{border-bottom-left-radius:var(--borderRadiusNone);}",".f3fg2lr{border-top-right-radius:var(--borderRadiusNone);}",".f13av6d4{border-top-left-radius:var(--borderRadiusNone);}",".fh7ncta{min-width:64px;}",".f1khb0e9{padding-top:3px;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1jnq6q7{padding-bottom:3px;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1brlhvm{padding-bottom:1px;}",".f1sl3k7w{padding-top:1px;}",".f14es27b{min-width:96px;}",".fp9bwmr{padding-top:8px;}",".fjodcmx{padding-right:var(--spacingHorizontalL);}",".fhx4nu{padding-left:var(--spacingHorizontalL);}",".f150uoa4{padding-bottom:8px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fy7v416{padding-bottom:7px;}",".f1a1bwwz{padding-top:7px;}"],h:[".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".fwiml72:hover:active{background-color:var(--colorTransparentBackgroundPressed);}",".f15wkkf3:hover{background-color:var(--colorBrandBackgroundHover);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}",".fnp9lpt:hover:active{background-color:var(--colorBrandBackgroundPressed);}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}",".f1d6v5y2:hover:active{color:var(--colorNeutralForegroundOnBrand);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".ft1hn21:hover .fui-Icon-filled{display:inline;}",".fuxngvv:hover .fui-Icon-regular{display:none;}",".fy5bs14:hover .fui-Button__icon{color:var(--colorNeutralForeground2BrandHover);}",".fsv2rcd:hover:active{background-color:var(--colorSubtleBackgroundPressed);}",".f1omzyqd:hover:active{color:var(--colorNeutralForeground2Pressed);}",".f1dfjoow:hover:active .fui-Icon-filled{display:inline;}",".f1j98vj9:hover:active .fui-Icon-regular{display:none;}",".fj8yq94:hover:active .fui-Button__icon{color:var(--colorNeutralForeground2BrandPressed);}",".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}",".f1fg1p5m:hover:active{color:var(--colorNeutralForeground2BrandPressed);}"],m:[["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1uu00uk{border-top-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9a0qzu{border-left-color:HighlightText;}.fkvaka8{border-right-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ux7til{border-bottom-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fq7113v:hover{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.ff1wgvm:hover{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1x4h75k:hover{border-left-color:Highlight;}.fiob0tu:hover{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1j6scgf:hover{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4xjyn1:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbgcvur:hover:active{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ks1yx8:hover:active{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1o6qegi:hover:active{border-right-color:Highlight;}.fmxjhhp:hover:active{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fcnxywj:hover:active{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9ddjv3:hover:active{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1et0tmh:hover .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1wi8ngl:hover:active .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1tme0vf:hover{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18onu3q:hover:active{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}]]}),uLe=At({base:{De3pzq:"f1bg9a2p",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bfinmwp:"f15x8b5r",Jwef8y:"f1falr9n",Bgoe8wy:"f12mpcsy",Bwzppfd:["f1gwvigk","f18rmfxp"],oetu4i:"f1jnshp0",gg5e9n:["f18rmfxp","f1gwvigk"],Bi91k9c:"fvgxktp",eoavqd:"fphbwmw",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",Bbdnnc7:"f1al02dq",iro3zm:"f1t6o4dc",b661bw:"f10ztigi",Bk6r4ia:["f1ft5sdu","f1gzf82w"],B9zn80p:"f12zbtn2",Bpld233:["f1gzf82w","f1ft5sdu"],B2d53fq:"fcvwxyo",c3iz72:"f8w4c43",em6i61:"f1ol4fw6",vm6p8p:"f1q1lw4e",x3br3k:"f1dwjv2g"},highContrast:{Bsw6fvg:"f4lkoma",Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bbusuzp:"f1dcs8yz",G867l3:"fjwq6ea",gdbnj:["f1lr3nhc","f1mbxvi6"],mxns5l:"fn5gmvv",o3nasb:["f1mbxvi6","f1lr3nhc"],Bqrx1nm:"f1vmkb5g",pgvf35:"f53ppgq",Bh7lczh:["f1663y11","f80fkiy"],dpv3f4:"f18v5270",Bpnjhaq:["f80fkiy","f1663y11"],ze5xyy:"f1kc2mi9",g2kj27:"f1y0svfh",Bf756sw:"fihuait",Bow2dr7:["fnxhupq","fyd6l6x"],Bvhedfk:"fx507ft",Gye4lf:["fyd6l6x","fnxhupq"],pc6evw:"fb3rf2x"},outline:{De3pzq:"f1c21dwh",Jwef8y:"f9ql6rf",iro3zm:"f3h1zc4"},primary:{g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},secondary:{},subtle:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]}},{d:[".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f15x8b5r .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}"],h:[".f1falr9n:hover{background-color:var(--colorNeutralBackgroundDisabled);}",".f12mpcsy:hover{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1gwvigk:hover{border-right-color:var(--colorNeutralStrokeDisabled);}",".f18rmfxp:hover{border-left-color:var(--colorNeutralStrokeDisabled);}",".f1jnshp0:hover{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".fphbwmw:hover{cursor:not-allowed;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f1al02dq:hover .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1t6o4dc:hover:active{background-color:var(--colorNeutralBackgroundDisabled);}",".f10ztigi:hover:active{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1ft5sdu:hover:active{border-right-color:var(--colorNeutralStrokeDisabled);}",".f1gzf82w:hover:active{border-left-color:var(--colorNeutralStrokeDisabled);}",".f12zbtn2:hover:active{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fcvwxyo:hover:active{color:var(--colorNeutralForegroundDisabled);}",".f8w4c43:hover:active{cursor:not-allowed;}",".f1ol4fw6:hover:active .fui-Icon-filled{display:none;}",".f1q1lw4e:hover:active .fui-Icon-regular{display:inline;}",".f1dwjv2g:hover:active .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".f3h1zc4:hover:active{background-color:var(--colorTransparentBackground);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}"],m:[["@media (forced-colors: active){.f4lkoma{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fjwq6ea:focus{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lr3nhc:focus{border-right-color:GrayText;}.f1mbxvi6:focus{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fn5gmvv:focus{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1vmkb5g:hover{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f53ppgq:hover{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1663y11:hover{border-right-color:GrayText;}.f80fkiy:hover{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18v5270:hover{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1kc2mi9:hover{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1y0svfh:hover:active{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fihuait:hover:active{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnxhupq:hover:active{border-right-color:GrayText;}.fyd6l6x:hover:active{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fx507ft:hover:active{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fb3rf2x:hover:active{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),lLe=At({circular:{kdpuga:["fanj13w","f1gou5sz"],Bw81rd7:["f1gou5sz","fanj13w"],B6xbmo0:["fulf6x3","foeb2x"],dm238s:["foeb2x","fulf6x3"]},rounded:{},square:{kdpuga:["f1ndz5i7","f1co4qro"],Bw81rd7:["f1co4qro","f1ndz5i7"],B6xbmo0:["f146y5a9","f1k2ftg"],dm238s:["f1k2ftg","f146y5a9"]},primary:{B8q5s1w:"f17t0x8g",Bci5o5g:["f194v5ow","fk7jm04"],n8qw10:"f1qgg65p",Bdrgwmp:["fk7jm04","f194v5ow"],j6ew2k:["fhgccpy","fjo7pq6"],he4mth:"f32wu9k",Byr4aka:"fu5nqqq",lks7q5:["f13prjl2","f1nl83rv"],Bnan3qt:"f1czftr5",k1dn9:["f1nl83rv","f13prjl2"],Boium3a:["f12k37oa","fdnykm2"],tm8e47:"fr96u23"},small:{kdpuga:["fg3gtdo","fwii5mg"],Bw81rd7:["fwii5mg","fg3gtdo"],B6xbmo0:["f1palphq","f12nxie7"],dm238s:["f12nxie7","f1palphq"]},medium:{},large:{kdpuga:["ft3lys4","f1la4x2g"],Bw81rd7:["f1la4x2g","ft3lys4"],B6xbmo0:["f156y0zm","fakimq4"],dm238s:["fakimq4","f156y0zm"]}},{d:[".fanj13w[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1gou5sz[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusCircular);}",".fulf6x3[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusCircular);}",".foeb2x[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusCircular);}",".f1ndz5i7[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusNone);}",".f1co4qro[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusNone);}",".f146y5a9[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusNone);}",".f1k2ftg[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusNone);}",".f17t0x8g[data-fui-focus-visible]{border-top-color:var(--colorStrokeFocus2);}",".f194v5ow[data-fui-focus-visible]{border-right-color:var(--colorStrokeFocus2);}",".fk7jm04[data-fui-focus-visible]{border-left-color:var(--colorStrokeFocus2);}",".f1qgg65p[data-fui-focus-visible]{border-bottom-color:var(--colorStrokeFocus2);}",".fhgccpy[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".fjo7pq6[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".f32wu9k[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;}",".fu5nqqq[data-fui-focus-visible]:hover{border-top-color:var(--colorStrokeFocus2);}",".f13prjl2[data-fui-focus-visible]:hover{border-right-color:var(--colorStrokeFocus2);}",".f1nl83rv[data-fui-focus-visible]:hover{border-left-color:var(--colorStrokeFocus2);}",".f1czftr5[data-fui-focus-visible]:hover{border-bottom-color:var(--colorStrokeFocus2);}",".fg3gtdo[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusSmall);}",".fwii5mg[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1palphq[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusSmall);}",".f12nxie7[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusSmall);}",".ft3lys4[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusLarge);}",".f1la4x2g[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusLarge);}",".f156y0zm[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusLarge);}",".fakimq4[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusLarge);}"],t:["@supports (-moz-appearance:button){.f12k37oa[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}.fdnykm2[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}}","@supports (-moz-appearance:button){.fr96u23[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),cLe=At({small:{z8tnut:"f1sl3k7w",z189sj:["f136y8j8","f10xn8zz"],Byoj8tv:"f1brlhvm",uwmqm3:["f10xn8zz","f136y8j8"],Bf4jedk:"f17fgpbq",B2u0y6b:"f1jt17bm"},medium:{z8tnut:"f1sbtcvk",z189sj:["fwiuce9","f15vdbe4"],Byoj8tv:"fdghr9",uwmqm3:["f15vdbe4","fwiuce9"],Bf4jedk:"fwbmr0d",B2u0y6b:"f44c6la"},large:{z8tnut:"f1a1bwwz",z189sj:["f18k1jr3","f1rtp3s9"],Byoj8tv:"fy7v416",uwmqm3:["f1rtp3s9","f18k1jr3"],Bf4jedk:"f12clzc2",B2u0y6b:"fjy1crr"}},{d:[".f1sl3k7w{padding-top:1px;}",".f136y8j8{padding-right:1px;}",".f10xn8zz{padding-left:1px;}",".f1brlhvm{padding-bottom:1px;}",".f17fgpbq{min-width:24px;}",".f1jt17bm{max-width:24px;}",".f1sbtcvk{padding-top:5px;}",".fwiuce9{padding-right:5px;}",".f15vdbe4{padding-left:5px;}",".fdghr9{padding-bottom:5px;}",".fwbmr0d{min-width:32px;}",".f44c6la{max-width:32px;}",".f1a1bwwz{padding-top:7px;}",".f18k1jr3{padding-right:7px;}",".f1rtp3s9{padding-left:7px;}",".fy7v416{padding-bottom:7px;}",".f12clzc2{min-width:40px;}",".fjy1crr{max-width:40px;}"]}),fLe=At({small:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3",Bqrlyyl:"fbaiahx"},medium:{},large:{Be2twd7:"f1rt2boy",Bqenvij:"frvgh55",a9b677:"fq4mcun",Bqrlyyl:"f1exjqw5"},before:{t21cq0:["f1nizpg2","f1a695kz"]},after:{Frg6f3:["f1a695kz","f1nizpg2"]}},{d:[".fe5j1ua{font-size:20px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".fbaiahx{--fui-Button__icon--spacing:var(--spacingHorizontalXS);}",".f1rt2boy{font-size:24px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".f1exjqw5{--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}",".f1nizpg2{margin-right:var(--fui-Button__icon--spacing);}",".f1a695kz{margin-left:var(--fui-Button__icon--spacing);}"]}),dLe=e=>{const t=iLe(),r=sLe(),n=aLe(),o=uLe(),i=lLe(),s=cLe(),a=fLe(),{appearance:u,disabled:l,disabledFocusable:c,icon:f,iconOnly:d,iconPosition:h,shape:g,size:v}=e;return e.root.className=Xe(OK.root,t,u&&n[u],n[v],f&&v==="small"&&n.smallWithIcon,f&&v==="large"&&n.largeWithIcon,n[g],(l||c)&&o.base,(l||c)&&o.highContrast,u&&(l||c)&&o[u],u==="primary"&&i.primary,i[v],i[g],d&&s[v],e.root.className),e.icon&&(e.icon.className=Xe(OK.icon,r,!!e.root.children&&a[h],a[v],e.icon.className)),e},Wn=k.forwardRef((e,t)=>{const r=oLe(e,t);return dLe(r),yn("useButtonStyles_unstable")(r),tLe(r)});Wn.displayName="Button";const $ue=k.createContext(void 0),hLe=$ue.Provider,pLe=()=>k.useContext($ue),gLe=e=>{var t,r,n,o;const{generatedControlId:i,orientation:s,required:a,size:u,validationState:l}=e,c=(t=e.label)===null||t===void 0?void 0:t.htmlFor,f=(r=e.label)===null||r===void 0?void 0:r.id,d=(n=e.validationMessage)===null||n===void 0?void 0:n.id,h=(o=e.hint)===null||o===void 0?void 0:o.id;return{field:k.useMemo(()=>({generatedControlId:i,hintId:h,labelFor:c,labelId:f,orientation:s,required:a,size:u,validationMessageId:d,validationState:l}),[i,h,c,f,s,a,u,d,l])}};function Pue(e,t){return que(pLe(),e,t)}function que(e,t,r){if(!e)return t;t={...t};const{generatedControlId:n,hintId:o,labelFor:i,labelId:s,required:a,validationMessageId:u,validationState:l}=e;if(n){var c,f;(f=(c=t).id)!==null&&f!==void 0||(c.id=n)}if(s&&(!(r!=null&&r.supportsLabelFor)||i!==t.id)){var d,h,g;(g=(d=t)[h="aria-labelledby"])!==null&&g!==void 0||(d[h]=s)}if((u||o)&&(t["aria-describedby"]=[u,o,t==null?void 0:t["aria-describedby"]].filter(Boolean).join(" ")),l==="error"){var v,y,E;(E=(v=t)[y="aria-invalid"])!==null&&E!==void 0||(v[y]=!0)}if(a)if(r!=null&&r.supportsRequired){var _,S;(S=(_=t).required)!==null&&S!==void 0||(_.required=!0)}else{var b,A,T;(T=(b=t)[A="aria-required"])!==null&&T!==void 0||(b[A]=!0)}if(r!=null&&r.supportsSize){var x,C;(C=(x=t).size)!==null&&C!==void 0||(x.size=e.size)}return t}const vLe=(e,t)=>{let{children:r}=e;return typeof r=="function"&&(r=r(que(t.field)||{})),nt(hLe,{value:t==null?void 0:t.field,children:Vn(e.root,{children:[e.label&&nt(e.label,{}),r,e.validationMessage&&Vn(e.validationMessage,{children:[e.validationMessageIcon&&nt(e.validationMessageIcon,{}),e.validationMessage.children]}),e.hint&&nt(e.hint,{})]})})},mLe=(e,t)=>{const{disabled:r=!1,required:n=!1,weight:o="regular",size:i="medium"}=e;return{disabled:r,required:un(n===!0?"*":n||void 0,{defaultProps:{"aria-hidden":"true"},elementType:"span"}),weight:o,size:i,components:{root:"label",required:"span"},root:Sr(mn("label",{ref:t,...e}),{elementType:"label"})}},yLe=e=>Vn(e.root,{children:[e.root.children,e.required&&nt(e.required,{})]}),DK={root:"fui-Label",required:"fui-Label__required"},bLe=At({root:{Bahqtrf:"fk6fouc",sj55zd:"f19n0e5"},disabled:{sj55zd:"f1s2aq7o"},required:{sj55zd:"f1whyuy6",uwmqm3:["fycuoez","f8wuabp"]},requiredDisabled:{sj55zd:"f1s2aq7o"},small:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm"},medium:{Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi"},large:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k",Bhrd7zp:"fl43uef"},semibold:{Bhrd7zp:"fl43uef"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1whyuy6{color:var(--colorPaletteRedForeground3);}",".fycuoez{padding-left:4px;}",".f8wuabp{padding-right:4px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}"]}),_Le=e=>{const t=bLe();return e.root.className=Xe(DK.root,t.root,e.disabled&&t.disabled,t[e.size],e.weight==="semibold"&&t.semibold,e.root.className),e.required&&(e.required.className=Xe(DK.required,t.required,e.disabled&&t.requiredDisabled,e.required.className)),e},If=k.forwardRef((e,t)=>{const r=mLe(e,t);return _Le(r),yn("useLabelStyles_unstable")(r),yLe(r)});If.displayName="Label";const ELe={error:k.createElement(f3e,null),warning:k.createElement(v3e,null),success:k.createElement(u3e,null),none:void 0},SLe=(e,t)=>{const{children:r,orientation:n="vertical",required:o=!1,validationState:i=e.validationMessage?"error":"none",size:s="medium"}=e,a=Ia("field-"),u=a+"__control",l=Sr(mn("div",{...e,ref:t},["children"]),{elementType:"div"}),c=un(e.label,{defaultProps:{htmlFor:u,id:a+"__label",required:o,size:s},elementType:If}),f=un(e.validationMessage,{defaultProps:{id:a+"__validationMessage",role:i==="error"?"alert":void 0},elementType:"div"}),d=un(e.hint,{defaultProps:{id:a+"__hint"},elementType:"div"}),h=ELe[i],g=un(e.validationMessageIcon,{renderByDefault:!!h,defaultProps:{children:h},elementType:"span"});return{children:r,generatedControlId:u,orientation:n,required:o,size:s,validationState:i,components:{root:"div",label:If,validationMessage:"div",validationMessageIcon:"span",hint:"div"},root:l,label:c,validationMessageIcon:g,validationMessage:f,hint:d}},Dm={root:"fui-Field",label:"fui-Field__label",validationMessage:"fui-Field__validationMessage",validationMessageIcon:"fui-Field__validationMessageIcon",hint:"fui-Field__hint"},wLe=At({base:{mc9l5x:"f13qh94s"},horizontal:{Budl1dq:"f2wwaib",wkccdc:"f1645dqt"},horizontalNoLabel:{uwmqm3:["f15jqgz8","fggqkej"],Budl1dq:"f1c2z91y"}},{d:[".f13qh94s{display:grid;}",".f2wwaib{grid-template-columns:33% 1fr;}",".f1645dqt{grid-template-rows:auto auto auto 1fr;}",".f15jqgz8{padding-left:33%;}",".fggqkej{padding-right:33%;}",".f1c2z91y{grid-template-columns:1fr;}"]}),ALe=At({base:{z8tnut:"fclwglc",Byoj8tv:"fywfov9"},large:{z8tnut:"f1sl3k7w",Byoj8tv:"f1brlhvm"},vertical:{jrapky:"fyacil5"},verticalLarge:{jrapky:"f8l5zjj"},horizontal:{t21cq0:["fkujibs","f199hnxi"],Ijaq50:"f16hsg94",nk6f5a:"f1nzqi2z"}},{d:[".fclwglc{padding-top:var(--spacingVerticalXXS);}",".fywfov9{padding-bottom:var(--spacingVerticalXXS);}",".f1sl3k7w{padding-top:1px;}",".f1brlhvm{padding-bottom:1px;}",".fyacil5{margin-bottom:var(--spacingVerticalXXS);}",".f8l5zjj{margin-bottom:var(--spacingVerticalXS);}",".fkujibs{margin-right:var(--spacingHorizontalM);}",".f199hnxi{margin-left:var(--spacingHorizontalM);}",".f16hsg94{grid-row-start:1;}",".f1nzqi2z{grid-row-end:-1;}"]}),kLe=kn("r5c4z9l",null,[".r5c4z9l{margin-top:var(--spacingVerticalXXS);color:var(--colorNeutralForeground3);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase200);}"]),xLe=At({error:{sj55zd:"f1hcrxcs"},withIcon:{uwmqm3:["frawy03","fg4c52"]}},{d:[".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".frawy03{padding-left:calc(12px + var(--spacingHorizontalXS));}",".fg4c52{padding-right:calc(12px + var(--spacingHorizontalXS));}"]}),TLe=kn("ra7h1uk","r1rh6bd7",[".ra7h1uk{display:inline-block;font-size:12px;margin-left:calc(-12px - var(--spacingHorizontalXS));margin-right:var(--spacingHorizontalXS);line-height:0;vertical-align:-1px;}",".r1rh6bd7{display:inline-block;font-size:12px;margin-right:calc(-12px - var(--spacingHorizontalXS));margin-left:var(--spacingHorizontalXS);line-height:0;vertical-align:-1px;}"]),ILe=At({error:{sj55zd:"f1hcrxcs"},warning:{sj55zd:"f1k5f75o"},success:{sj55zd:"ffmvakt"}},{d:[".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}",".ffmvakt{color:var(--colorPaletteGreenForeground1);}"]}),CLe=e=>{const{validationState:t}=e,r=e.orientation==="horizontal",n=wLe();e.root.className=Xe(Dm.root,n.base,r&&n.horizontal,r&&!e.label&&n.horizontalNoLabel,e.root.className);const o=ALe();e.label&&(e.label.className=Xe(Dm.label,o.base,r&&o.horizontal,!r&&o.vertical,e.label.size==="large"&&o.large,!r&&e.label.size==="large"&&o.verticalLarge,e.label.className));const i=TLe(),s=ILe();e.validationMessageIcon&&(e.validationMessageIcon.className=Xe(Dm.validationMessageIcon,i,t!=="none"&&s[t],e.validationMessageIcon.className));const a=kLe(),u=xLe();e.validationMessage&&(e.validationMessage.className=Xe(Dm.validationMessage,a,t==="error"&&u.error,!!e.validationMessageIcon&&u.withIcon,e.validationMessage.className)),e.hint&&(e.hint.className=Xe(Dm.hint,a,e.hint.className))},R8=k.forwardRef((e,t)=>{const r=SLe(e,t);CLe(r);const n=gLe(r);return vLe(r,n)});R8.displayName="Field";const Qu=vv({activeOption:void 0,appearance:"outline",focusVisible:!1,open:!1,registerOption(){return()=>{}},selectedOptions:[],selectOption(){},setActiveOption(){},setOpen(){},size:"medium"});Qu.Provider;const Jc=vv({activeOption:void 0,focusVisible:!1,multiselect:!1,registerOption(){return()=>{}},selectedOptions:[],selectOption(){},setActiveOption(){}});Jc.Provider;function NLe(e){const{activeOption:t,appearance:r,focusVisible:n,open:o,registerOption:i,selectedOptions:s,selectOption:a,setActiveOption:u,setOpen:l,size:c}=e;return{combobox:{activeOption:t,appearance:r,focusVisible:n,open:o,registerOption:i,selectedOptions:s,selectOption:a,setActiveOption:u,setOpen:l,size:c}}}function RLe(e){const t=_8(Qu),{activeOption:r,focusVisible:n,multiselect:o,registerOption:i,selectedOptions:s,selectOption:a,setActiveOption:u}=e,l=Ko(Qu,d=>d.registerOption);return{listbox:{activeOption:r,focusVisible:n,multiselect:o,registerOption:t?l:i,selectedOptions:s,selectOption:a,setActiveOption:u}}}function O8(e,t={}){const{open:r=!0,multiselect:n=!1}=t,o=e.key,{altKey:i,ctrlKey:s,key:a,metaKey:u}=e;return a.length===1&&o!==af&&!i&&!s&&!u?"Type":r?o===lC&&i||o===sg||!n&&o===af?"CloseSelect":n&&o===af?"Select":o===BT?"Close":o===pK?"Next":o===lC?"Previous":o===KBe?"First":o===WBe?"Last":o===VBe?"PageUp":o===GBe?"PageDown":o===qBe?"Tab":"None":o===pK||o===lC||o===sg||o===af?"Open":"None"}function Wue(e,t,r){switch(e){case"Next":return Math.min(r,t+1);case"Previous":return Math.max(0,t-1);case"First":return 0;case"Last":return r;case"PageDown":return Math.min(r,t+10);case"PageUp":return Math.max(0,t-10);default:return t}}const Kue=()=>{const e=k.useRef([]),t=k.useMemo(()=>({getCount:()=>e.current.length,getOptionAtIndex:l=>{var c;return(c=e.current[l])===null||c===void 0?void 0:c.option},getIndexOfId:l=>e.current.findIndex(c=>c.option.id===l),getOptionById:l=>{const c=e.current.find(f=>f.option.id===l);return c==null?void 0:c.option},getOptionsMatchingText:l=>e.current.filter(c=>l(c.option.text)).map(c=>c.option),getOptionsMatchingValue:l=>e.current.filter(c=>l(c.option.value)).map(c=>c.option)}),[]),r=k.useCallback((n,o)=>{var i;const s=e.current.findIndex(a=>!a.element||!o?!1:a.option.id===n.id?!0:a.element.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING);if(((i=e.current[s])===null||i===void 0?void 0:i.option.id)!==n.id){const a={element:o,option:n};s===-1?e.current=[...e.current,a]:e.current.splice(s,0,a)}return()=>{e.current=e.current.filter(a=>a.option.id!==n.id)}},[]);return{...t,options:e.current.map(n=>n.option),registerOption:r}};function OLe(e){const{activeOption:t}=e,r=k.useRef(null);return k.useEffect(()=>{if(r.current&&t&&U_()){const n=r.current.querySelector(`#${t.id}`);if(!n)return;const{offsetHeight:o,offsetTop:i}=n,{offsetHeight:s,scrollTop:a}=r.current,u=ia+s,c=2;u?r.current.scrollTo(0,i-c):l&&r.current.scrollTo(0,i-s+o+c)}},[t]),r}const Gue=e=>{const{defaultSelectedOptions:t,multiselect:r,onOptionSelect:n}=e,[o,i]=Sf({state:e.selectedOptions,defaultState:t,initialState:[]}),s=k.useCallback((u,l)=>{if(l.disabled)return;let c=[l.value];if(r){const f=o.findIndex(d=>d===l.value);f>-1?c=[...o.slice(0,f),...o.slice(f+1)]:c=[...o,l.value]}i(c),n==null||n(u,{optionValue:l.value,optionText:l.text,selectedOptions:c})},[n,r,o,i]);return{clearSelection:u=>{i([]),n==null||n(u,{optionValue:void 0,optionText:void 0,selectedOptions:[]})},selectOption:s,selectedOptions:o}},DLe=(e,t)=>{const{multiselect:r}=e,n=Kue(),{getCount:o,getOptionAtIndex:i,getIndexOfId:s}=n,{clearSelection:a,selectedOptions:u,selectOption:l}=Gue(e),[c,f]=k.useState(),[d,h]=k.useState(!1),g=I=>{const R=O8(I,{open:!0}),D=o()-1,L=c?s(c.id):-1;let M=L;switch(R){case"Select":case"CloseSelect":c&&l(I,c);break;default:M=Wue(R,L,D)}M!==L&&(I.preventDefault(),f(i(M)),h(!0))},v=I=>{h(!1)},y=_8(Qu),E=Ko(Qu,I=>I.activeOption),_=Ko(Qu,I=>I.focusVisible),S=Ko(Qu,I=>I.selectedOptions),b=Ko(Qu,I=>I.selectOption),A=Ko(Qu,I=>I.setActiveOption),T=y?{activeOption:E,focusVisible:_,selectedOptions:S,selectOption:b,setActiveOption:A}:{activeOption:c,focusVisible:d,selectedOptions:u,selectOption:l,setActiveOption:f},x={components:{root:"div"},root:Sr(mn("div",{ref:t,role:r?"menu":"listbox","aria-activedescendant":y||c==null?void 0:c.id,"aria-multiselectable":r,tabIndex:0,...e}),{elementType:"div"}),multiselect:r,clearSelection:a,...n,...T},C=OLe(x);return x.root.ref=di(x.root.ref,C),x.root.onKeyDown=lr(In(x.root.onKeyDown,g)),x.root.onMouseOver=lr(In(x.root.onMouseOver,v)),x},FLe=(e,t)=>nt(Jc.Provider,{value:t.listbox,children:nt(e.root,{})}),BLe={root:"fui-Listbox"},MLe=At({root:{De3pzq:"fxugw4r",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",Bf4jedk:"f3hsy1e",Bmxbyg5:"f5zp4f",Bpd4iqm:"fpvhumw",oeaueh:"f1yog68k",Bw0xxkn:"f13sgyd8",z8tnut:"f1x4af0m",z189sj:["f7x41pl","fruq291"],Byoj8tv:"fd55psn",uwmqm3:["fruq291","f7x41pl"],Belr9w4:"fiut8dr"}},{d:[".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1ewtqcl{box-sizing:border-box;}",".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",".f3hsy1e{min-width:160px;}",".f5zp4f{overflow-y:auto;}",".fpvhumw{outline-width:1px;}",".f1yog68k{outline-style:solid;}",".f13sgyd8{outline-color:var(--colorTransparentStroke);}",".f1x4af0m{padding-top:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".fd55psn{padding-bottom:var(--spacingHorizontalXS);}",".fiut8dr{row-gap:var(--spacingHorizontalXXS);}"]}),LLe=e=>{const t=MLe();return e.root.className=Xe(BLe.root,t.root,e.root.className),e},D8=k.forwardRef((e,t)=>{const r=DLe(e,t),n=RLe(r);return LLe(r),yn("useListboxStyles_unstable")(r),FLe(r,n)});D8.displayName="Listbox";function jLe(e,t){if(e!==void 0)return e;let r="",n=!1;return k.Children.forEach(t,o=>{typeof o=="string"?r+=o:n=!0}),n&&console.warn("Provide a `text` prop to Option components when they contain non-string children."),r}const zLe=(e,t)=>{const{children:r,disabled:n,text:o,value:i}=e,s=k.useRef(null),a=jLe(o,r),u=i??a,l=Ia("fluent-option",e.id),c=k.useMemo(()=>({id:l,disabled:n,text:a,value:u}),[l,n,a,u]),f=Ko(Jc,T=>T.focusVisible),d=Ko(Jc,T=>T.multiselect),h=Ko(Jc,T=>T.registerOption),g=Ko(Jc,T=>{const x=T.selectedOptions;return!!u&&!!x.find(C=>C===u)}),v=Ko(Jc,T=>T.selectOption),y=Ko(Jc,T=>T.setActiveOption),E=Ko(Qu,T=>T.setOpen),_=Ko(Jc,T=>{var x,C;return((x=T.activeOption)===null||x===void 0?void 0:x.id)!==void 0&&((C=T.activeOption)===null||C===void 0?void 0:C.id)===l});let S=k.createElement(XDe,null);d&&(S=g?k.createElement(a3e,null):"");const b=T=>{var x;if(n){T.preventDefault();return}y(c),d||E==null||E(T,!1),v(T,c),(x=e.onClick)===null||x===void 0||x.call(e,T)};k.useEffect(()=>{if(l&&s.current)return h(c,s.current)},[l,c,h]);const A=d?{role:"menuitemcheckbox","aria-checked":g}:{role:"option","aria-selected":g};return{components:{root:"div",checkIcon:"span"},root:Sr(mn("div",{ref:di(t,s),"aria-disabled":n?"true":void 0,id:l,...A,...e,onClick:b}),{elementType:"div"}),checkIcon:un(e.checkIcon,{renderByDefault:!0,defaultProps:{"aria-hidden":"true",children:S},elementType:"span"}),active:_,disabled:n,focusVisible:f,multiselect:d,selected:g}},HLe=e=>Vn(e.root,{children:[e.checkIcon&&nt(e.checkIcon,{}),e.root.children]}),FK={root:"fui-Option",checkIcon:"fui-Option__checkIcon"},$Le=At({root:{Bt984gj:"f122n59",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],sj55zd:"f19n0e5",i8kkvl:"f1ufnopg",Bceei9c:"f1k6fduh",mc9l5x:"f22iagw",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi",z8tnut:"fp2oml8",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f1tdddsa",uwmqm3:["f1f5gg8d","f1vdfbxk"],qhf8xq:"f10pi13n",Jwef8y:"f1knas48",ecr2s2:"fb40n2d"},active:{Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",B80jsxd:"f1nwj1ja",t2ki1e:"ffmd2fr",Bm2nyyq:"f8rth92",Barhvk9:["flthirb","ftkbnf5"],Bw17bha:"f1lh990p",vfts7:["ftkbnf5","flthirb"],xrcqlc:"fc9v8v1",Ihftqj:["f1mwfetb","f18mat8f"],Bcgy8vk:"f1cb6c3",Bhxzhr1:["f18mat8f","f1mwfetb"],B3778ie:["f1ibwz09","f1kp91vd"],d9w3h3:["f1kp91vd","f1ibwz09"],Bl18szs:["f1pix4dl","f13nd1z4"],B4j8arr:["f13nd1z4","f1pix4dl"],B0n5ga8:"f1qw5sz7",s924m2:["f19va7ni","f1a9v3mw"],B1q35kw:"fkkziue",Gp14am:["f1a9v3mw","f19va7ni"],bn5sak:"f1a97anr",By385i5:"f5226zp",Eqx8gd:["fa2bdqt","fei6g0k"],B1piin3:["fei6g0k","fa2bdqt"]},disabled:{sj55zd:"f1s2aq7o",Jwef8y:"f9ql6rf",ecr2s2:"fgj9um3",Bbusuzp:"f1dcs8yz"},selected:{},checkIcon:{Be2twd7:"fod5ikn",Frg6f3:["f18b9hdq","fn6qj8t"],t21cq0:["f1xk557c","f1h9en5y"],Bcdw1i0:"fd7fpy0",Bo70h7d:"fvc9v3g"},selectedCheck:{Bcdw1i0:"f1022m68"},multiselectCheck:{B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fq0vr37",h3c5rm:["f1byw159","f11cr0be"],B9xav0g:"f1c1zstj",zhjwy3:["f11cr0be","f1byw159"],Bbmb7ep:["f1g3puop","fi2rrw2"],Beyfa6y:["fi2rrw2","f1g3puop"],B7oj6ja:["f1rstyi9","f1s4nn1u"],Btl43ni:["f1s4nn1u","f1rstyi9"],B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Bt984gj:"f122n59",Brf1p80:"f4d9j23",Bkfmm31:"f1w9h62z",Be2twd7:"f1ugzwwg",Bqenvij:"fd461yt",a9b677:"fjw5fx7",Bcdw1i0:"f1022m68"},selectedMultiselectCheck:{De3pzq:"ftywsgz",sj55zd:"fqpbvvt",g2u3we:"f3xi7mh",h3c5rm:["ftovhe4","f1wczvin"],B9xav0g:"f68vbr6",zhjwy3:["f1wczvin","ftovhe4"]},checkDisabled:{sj55zd:"f1s2aq7o",Bbusuzp:"f1dcs8yz"}},{d:[".f122n59{align-items:center;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1ufnopg{column-gap:var(--spacingHorizontalXS);}",".f1k6fduh{cursor:pointer;}",".f22iagw{display:flex;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fp2oml8{padding-top:var(--spacingVerticalSNudge);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1tdddsa{padding-bottom:var(--spacingVerticalSNudge);}",".f10pi13n{position:relative;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1nwj1ja::after{pointer-events:none;}",".ffmd2fr::after{z-index:1;}",".f8rth92::after{border-top-style:solid;}",".flthirb::after{border-right-style:solid;}",".ftkbnf5::after{border-left-style:solid;}",".f1lh990p::after{border-bottom-style:solid;}",".fc9v8v1::after{border-top-width:2px;}",".f1mwfetb::after{border-right-width:2px;}",".f18mat8f::after{border-left-width:2px;}",".f1cb6c3::after{border-bottom-width:2px;}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1pix4dl::after{border-top-right-radius:var(--borderRadiusMedium);}",".f13nd1z4::after{border-top-left-radius:var(--borderRadiusMedium);}",".f1qw5sz7::after{border-top-color:var(--colorStrokeFocus2);}",".f19va7ni::after{border-right-color:var(--colorStrokeFocus2);}",".f1a9v3mw::after{border-left-color:var(--colorStrokeFocus2);}",".fkkziue::after{border-bottom-color:var(--colorStrokeFocus2);}",".f1a97anr::after{top:-2px;}",".f5226zp::after{bottom:-2px;}",".fa2bdqt::after{left:-2px;}",".fei6g0k::after{right:-2px;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".f18b9hdq{margin-left:calc(var(--spacingHorizontalXXS) * -1);}",".fn6qj8t{margin-right:calc(var(--spacingHorizontalXXS) * -1);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".fd7fpy0{visibility:hidden;}",".fvc9v3g svg{display:block;}",".f1022m68{visibility:visible;}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fq0vr37{border-top-color:var(--colorNeutralStrokeAccessible);}",".f1byw159{border-right-color:var(--colorNeutralStrokeAccessible);}",".f11cr0be{border-left-color:var(--colorNeutralStrokeAccessible);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f1g3puop{border-bottom-right-radius:var(--borderRadiusSmall);}",".fi2rrw2{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1rstyi9{border-top-right-radius:var(--borderRadiusSmall);}",".f1s4nn1u{border-top-left-radius:var(--borderRadiusSmall);}",".f1ewtqcl{box-sizing:border-box;}",".f4d9j23{justify-content:center;}",".f1w9h62z{fill:currentColor;}",".f1ugzwwg{font-size:12px;}",".fd461yt{height:16px;}",".fjw5fx7{width:16px;}",".ftywsgz{background-color:var(--colorCompoundBrandBackground);}",".fqpbvvt{color:var(--colorNeutralForegroundInverted);}",".f3xi7mh{border-top-color:var(--colorCompoundBrandBackground);}",".ftovhe4{border-right-color:var(--colorCompoundBrandBackground);}",".f1wczvin{border-left-color:var(--colorCompoundBrandBackground);}",".f68vbr6{border-bottom-color:var(--colorCompoundBrandBackground);}"],h:[".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}"],a:[".fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}",".fgj9um3:active{background-color:var(--colorTransparentBackground);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),PLe=e=>{const{active:t,disabled:r,focusVisible:n,multiselect:o,selected:i}=e,s=$Le();return e.root.className=Xe(FK.root,s.root,t&&n&&s.active,r&&s.disabled,i&&s.selected,e.root.className),e.checkIcon&&(e.checkIcon.className=Xe(FK.checkIcon,s.checkIcon,o&&s.multiselectCheck,i&&s.selectedCheck,i&&o&&s.selectedMultiselectCheck,r&&s.checkDisabled,e.checkIcon.className)),e},F8=k.forwardRef((e,t)=>{const r=zLe(e,t);return PLe(r),yn("useOptionStyles_unstable")(r),HLe(r)});F8.displayName="Option";const qLe=e=>{const{appearance:t="outline",children:r,editable:n=!1,inlinePopup:o=!1,mountNode:i=void 0,multiselect:s,onOpenChange:a,size:u="medium"}=e,l=Kue(),{getOptionAtIndex:c,getOptionsMatchingValue:f}=l,[d,h]=k.useState(),[g,v]=k.useState(!1),[y,E]=k.useState(!1),_=k.useRef(!1),S=Gue(e),{selectedOptions:b}=S,A=bDe(),[T,x]=Sf({state:e.value,initialState:void 0}),C=k.useMemo(()=>{if(T!==void 0)return T;if(A&&e.defaultValue!==void 0)return e.defaultValue;const L=f(M=>b.includes(M)).map(M=>M.text);return s?n?"":L.join(", "):L[0]},[T,n,f,s,e.defaultValue,b]),[I,R]=Sf({state:e.open,defaultState:e.defaultOpen,initialState:!1}),D=k.useCallback((L,M)=>{a==null||a(L,{open:M}),R(M)},[a,R]);return k.useEffect(()=>{if(I&&!d)if(!s&&b.length>0){const L=f(M=>M===b[0]).pop();L&&h(L)}else h(c(0));else I||h(void 0)},[I,r]),{...l,...S,activeOption:d,appearance:t,focusVisible:g,hasFocus:y,ignoreNextBlur:_,inlinePopup:o,mountNode:i,open:I,setActiveOption:h,setFocusVisible:v,setHasFocus:E,setOpen:D,setValue:x,size:u,value:C,multiselect:s}};function WLe(e){const{positioning:t}=e,n={position:"below",align:"start",offset:{crossAxis:0,mainAxis:2},fallbackPositions:["above","after","after-top","before","before-top"],matchTargetSize:"width",...zT(t)},{targetRef:o,containerRef:i}=I8(n);return[i,o]}function KLe(e,t,r){const{state:{multiselect:n},triggerRef:o,defaultProps:i}=r,s=Ia("fluent-listbox",f8(e)?e.id:void 0),a=un(e,{renderByDefault:!0,elementType:D8,defaultProps:{id:s,multiselect:n,tabIndex:void 0,...i}}),u=lr(In(f=>{f.preventDefault()},a==null?void 0:a.onMouseDown)),l=lr(In(f=>{var d;f.preventDefault(),(d=o.current)===null||d===void 0||d.focus()},a==null?void 0:a.onClick)),c=di(a==null?void 0:a.ref,t);return a&&(a.ref=c,a.onMouseDown=u,a.onClick=l),a}function GLe(e,t,r){const{state:{activeOption:n,getCount:o,getIndexOfId:i,getOptionAtIndex:s,open:a,selectOption:u,setActiveOption:l,setFocusVisible:c,setOpen:f,multiselect:d},defaultProps:h,elementType:g}=r,v=Sr(e,{defaultProps:{type:"text","aria-expanded":a,"aria-activedescendant":a?n==null?void 0:n.id:void 0,role:"combobox",...typeof h=="object"&&h},elementType:g}),y=k.useRef(null);return v.ref=di(y,v.ref,t),v.onBlur=In(E=>{f(E,!1)},v.onBlur),v.onClick=In(E=>{f(E,!a)},v.onClick),v.onKeyDown=In(E=>{const _=O8(E,{open:a,multiselect:d}),S=o()-1,b=n?i(n.id):-1;let A=b;switch(_){case"Open":E.preventDefault(),c(!0),f(E,!0);break;case"Close":E.stopPropagation(),E.preventDefault(),f(E,!1);break;case"CloseSelect":!d&&!(n!=null&&n.disabled)&&f(E,!1);case"Select":n&&u(E,n),E.preventDefault();break;case"Tab":!d&&n&&u(E,n);break;default:A=Wue(_,b,S)}A!==b&&(E.preventDefault(),l(s(A)),c(!0))},v.onKeyDown),v.onMouseOver=In(E=>{c(!1)},v.onMouseOver),v}function VLe(e,t,r){const{state:{open:n,activeOption:o,setOpen:i,getOptionsMatchingText:s,getIndexOfId:a,setActiveOption:u,setFocusVisible:l},defaultProps:c}=r,f=k.useRef(""),[d,h]=h8(),g=()=>{let E=A=>A.toLowerCase().indexOf(f.current)===0,_=s(E),S=o?a(o.id):0;if(n&&f.current.length===1&&S++,!_.length){const A=f.current.split("");A.length&&A.every(x=>x===A[0])&&(S++,E=x=>x.toLowerCase().indexOf(A[0])===0,_=s(E))}if(_.length>1&&o){const A=_.find(T=>a(T.id)>=S);return A??_[0]}var b;return(b=_[0])!==null&&b!==void 0?b:void 0},v=E=>{if(h(),O8(E)==="Type"){f.current+=E.key.toLowerCase(),d(()=>{f.current=""},500),!n&&i(E,!0);const _=g();u(_),l(!0)}},y=GLe(e,t,{state:r.state,defaultProps:c,elementType:"button"});return y.onKeyDown=In(v,y.onKeyDown),y}const ULe=(e,t)=>{e=Pue(e,{supportsLabelFor:!0,supportsSize:!0});const r=qLe(e),{open:n}=r,{primary:o,root:i}=nae({props:e,primarySlotTagName:"button",excludedPropNames:["children"]}),[s,a]=WLe(e),u=k.useRef(null),l=KLe(e.listbox,s,{state:r,triggerRef:u,defaultProps:{children:e.children}});var c;const f=VLe((c=e.button)!==null&&c!==void 0?c:{},di(u,t),{state:r,defaultProps:{type:"button",tabIndex:0,children:r.value||e.placeholder,...o}}),d=Sr(e.root,{defaultProps:{"aria-owns":!e.inlinePopup&&n?l==null?void 0:l.id:void 0,children:e.children,...i},elementType:"div"});return d.ref=di(d.ref,a),{components:{root:"div",button:"button",expandIcon:"span",listbox:D8},root:d,button:f,listbox:n?l:void 0,expandIcon:un(e.expandIcon,{renderByDefault:!0,defaultProps:{children:k.createElement(ZDe,null)},elementType:"span"}),placeholderVisible:!r.value&&!!e.placeholder,...r}},YLe=(e,t)=>nt(e.root,{children:Vn(Qu.Provider,{value:t.combobox,children:[Vn(e.button,{children:[e.button.children,e.expandIcon&&nt(e.expandIcon,{})]}),e.listbox&&(e.inlinePopup?nt(e.listbox,{}):nt(Z_,{mountNode:e.mountNode,children:nt(e.listbox,{})}))]})}),cw={root:"fui-Dropdown",button:"fui-Dropdown__button",expandIcon:"fui-Dropdown__expandIcon",listbox:"fui-Dropdown__listbox"},XLe=At({root:{Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B7ck84d:"f1ewtqcl",mc9l5x:"f14t3ns0",Bf4jedk:"f1exfvgq",qhf8xq:"f10pi13n",Bbr2w1p:"f14a1fxs",Bduesf4:"f3e99gv",Bpq79vn:"fhljsf7",li1rpt:"f1gw3sf2",Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",Eqx8gd:["f1a7op3","f1cjjd47"],By385i5:"f1gboi2j",B1piin3:["f1cjjd47","f1a7op3"],Dlnsje:"ffyw7fx",d9w3h3:["f1kp91vd","f1ibwz09"],B3778ie:["f1ibwz09","f1kp91vd"],Bcgy8vk:"f14pi962",Bw17bha:"f1lh990p",B1q35kw:"f1jc6hxc",Gjdm7m:"f13evtba",b1kco5:"f1yk9hq",Ba2ppi3:"fhwpy7i",F2fol1:"f14ee0xe",lck23g:"f1xhbsuh",df92cz:"fv8e3ye",I188md:"ftb5wc6",umuwi5:"fjw5xc1",Blcqepd:"f1xdyd5c",nplu4u:"fatpbeo",Bioka5o:"fb7uyps",H713fs:"f1cmft4k",B9ooomg:"f1x58t8o",Bercvud:"f1ibeo51"},listbox:{B7ck84d:"f1ewtqcl",E5pizo:"f1hg901r",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Bxyxcbc:"fmmk62d"},listboxCollapsed:{mc9l5x:"fjseox"},button:{Bt984gj:"f122n59",De3pzq:"f1c21dwh",B4j52fo:"fre7gi1",Bekrc4i:["f1358rze","f1rvrf73"],Bn0qgzm:"fqdk4by",ibv6hh:["f1rvrf73","f1358rze"],B7ck84d:"f1ewtqcl",sj55zd:"f19n0e5",i8kkvl:"f14mj54c",Bceei9c:"f1k6fduh",mc9l5x:"f13qh94s",Bahqtrf:"fk6fouc",Budl1dq:"f12nh0o2",Brf1p80:"f1869bpl",fsow6f:["f1o700av","fes3tcz"],a9b677:"fly5x3f",Brovlpu:"ftqa4ok"},placeholder:{sj55zd:"fxc4j92"},small:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",z8tnut:"f1khb0e9",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"f1jnq6q7",uwmqm3:["f1xile11","fqznh8f"]},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",z8tnut:"f1sbtcvk",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"fdghr9",uwmqm3:["f1e60jzv","f135dnwl"]},large:{i8kkvl:"f1rjii52",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",z8tnut:"f1a1bwwz",z189sj:["fw5db7e","f1uw59to"],Byoj8tv:"fy7v416",uwmqm3:["fnphzt9","flt1dlf"]},outline:{De3pzq:"fxugw4r",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1c1zstj",zhjwy3:["f1lxtadh","f1akhkt"]},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"flmw63s",gg5e9n:["f1m52nbi","f1ub3y4t"],B6oc9vd:"fvs00aa",ak43y8:["f1assf6x","f4ruux4"],wmxk5l:"fqhmt4z",B50zh58:["f4ruux4","f1assf6x"]},underline:{De3pzq:"f1c21dwh",Bn0qgzm:"f1vxd6vx",oivjwe:"fg706s2",B9xav0g:"f1c1zstj",Bbmb7ep:["f1krrbdw","f1deotkl"],Beyfa6y:["f1deotkl","f1krrbdw"],B7oj6ja:["f10ostut","f1ozlkrg"],Btl43ni:["f1ozlkrg","f10ostut"]},"filled-lighter":{De3pzq:"fxugw4r",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"]},"filled-darker":{De3pzq:"f16xq7d1",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},invalidUnderline:{hhx65j:"f1fgmyf4"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"]},disabledText:{sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr"}},{d:[".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f1ewtqcl{box-sizing:border-box;}",".f14t3ns0{display:inline-block;}",".f1exfvgq{min-width:250px;}",".f10pi13n{position:relative;}",".f1gw3sf2::after{box-sizing:border-box;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1a7op3::after{left:-1px;}",".f1cjjd47::after{right:-1px;}",".f1gboi2j::after{bottom:-1px;}",".ffyw7fx::after{height:max(var(--strokeWidthThick), var(--borderRadiusMedium));}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",".f14pi962::after{border-bottom-width:var(--strokeWidthThick);}",".f1lh990p::after{border-bottom-style:solid;}",".f1jc6hxc::after{border-bottom-color:var(--colorCompoundBrandStroke);}",".f13evtba::after{clip-path:inset(calc(100% - 2px) 0 0 0);}",".f1yk9hq::after{transform:scaleX(0);}",".fhwpy7i::after{transition-property:transform;}",".f14ee0xe::after{transition-duration:var(--durationUltraFast);}",".f1xhbsuh::after{transition-delay:var(--curveAccelerateMid);}",".f1hg901r{box-shadow:var(--shadow16);}",".fmmk62d{max-height:80vh;}",".fjseox{display:none;}",".f122n59{align-items:center;}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fre7gi1{border-top-width:0;}",".f1358rze{border-right-width:0;}",".f1rvrf73{border-left-width:0;}",".fqdk4by{border-bottom-width:0;}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",".f1k6fduh{cursor:pointer;}",".f13qh94s{display:grid;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".f12nh0o2{grid-template-columns:[content] 1fr [icon] auto [end];}",".f1869bpl{justify-content:space-between;}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".fly5x3f{width:100%;}",".fxc4j92{color:var(--colorNeutralForeground4);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1khb0e9{padding-top:3px;}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f1jnq6q7{padding-bottom:3px;}",".f1xile11{padding-left:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".fqznh8f{padding-right:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1sbtcvk{padding-top:5px;}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".fdghr9{padding-bottom:5px;}",".f1e60jzv{padding-left:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f135dnwl{padding-right:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1a1bwwz{padding-top:7px;}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fy7v416{padding-bottom:7px;}",".fnphzt9{padding-left:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".flt1dlf{padding-right:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f1krrbdw{border-bottom-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1ozlkrg{border-top-left-radius:0;}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"],w:[".f14a1fxs:focus-within{outline-width:2px;}",".f3e99gv:focus-within{outline-style:solid;}",".fhljsf7:focus-within{outline-color:transparent;}",".fjw5xc1:focus-within::after{transform:scaleX(1);}",".f1xdyd5c:focus-within::after{transition-property:transform;}",".fatpbeo:focus-within::after{transition-duration:var(--durationNormal);}",".fb7uyps:focus-within::after{transition-delay:var(--curveDecelerateMid);}",".f1ibeo51:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.fv8e3ye::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.ftb5wc6::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1cmft4k:focus-within::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1x58t8o:focus-within::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],f:[".ftqa4ok:focus{outline-style:none;}"],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".flmw63s:hover{border-bottom-color:var(--colorNeutralStrokeAccessible);}"],a:[".fvs00aa:active{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1assf6x:active{border-right-color:var(--colorNeutralStroke1Pressed);}",".f4ruux4:active{border-left-color:var(--colorNeutralStroke1Pressed);}",".fqhmt4z:active{border-bottom-color:var(--colorNeutralStrokeAccessible);}"]}),QLe=At({icon:{B7ck84d:"f1ewtqcl",sj55zd:"fxkbij4",mc9l5x:"ftgm304",Be2twd7:"f1pp30po",Br312pm:"f12w6cgp",Bw0ie65:"f8bv1bt",Bo70h7d:"fvc9v3g"},small:{Be2twd7:"f4ybsrx",Frg6f3:["f1h9en5y","f1xk557c"]},medium:{Be2twd7:"fe5j1ua",Frg6f3:["f1h9en5y","f1xk557c"]},large:{Be2twd7:"f1rt2boy",Frg6f3:["f1t5qyk5","f1ikr372"]},disabled:{sj55zd:"f1s2aq7o"}},{d:[".f1ewtqcl{box-sizing:border-box;}",".fxkbij4{color:var(--colorNeutralStrokeAccessible);}",".ftgm304{display:block;}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f12w6cgp{grid-column-start:icon;}",".f8bv1bt{grid-column-end:end;}",".fvc9v3g svg{display:block;}",".f4ybsrx{font-size:16px;}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".fe5j1ua{font-size:20px;}",".f1rt2boy{font-size:24px;}",".f1t5qyk5{margin-left:var(--spacingHorizontalSNudge);}",".f1ikr372{margin-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"]}),ZLe=e=>{const{appearance:t,open:r,placeholderVisible:n,size:o}=e,i=`${e.button["aria-invalid"]}`=="true",s=e.button.disabled,a=XLe(),u=QLe();return e.root.className=Xe(cw.root,a.root,a[t],!s&&t==="outline"&&a.outlineInteractive,i&&t!=="underline"&&a.invalid,i&&t==="underline"&&a.invalidUnderline,s&&a.disabled,e.root.className),e.button.className=Xe(cw.button,a.button,a[o],n&&a.placeholder,s&&a.disabledText,e.button.className),e.listbox&&(e.listbox.className=Xe(cw.listbox,a.listbox,!r&&a.listboxCollapsed,e.listbox.className)),e.expandIcon&&(e.expandIcon.className=Xe(cw.expandIcon,u.icon,u[o],s&&u.disabled,e.expandIcon.className)),e},B8=k.forwardRef((e,t)=>{const r=ULe(e,t),n=NLe(r);return ZLe(r),yn("useDropdownStyles_unstable")(r),YLe(r,n)});B8.displayName="Dropdown";const JLe=e=>nt(e.root,{children:e.root.children!==void 0&&nt(e.wrapper,{children:e.root.children})}),e8e=(e,t)=>{const{alignContent:r="center",appearance:n="default",inset:o=!1,vertical:i=!1,wrapper:s}=e,a=Ia("divider-");return{alignContent:r,appearance:n,inset:o,vertical:i,components:{root:"div",wrapper:"div"},root:Sr(mn("div",{role:"separator","aria-orientation":i?"vertical":"horizontal","aria-labelledby":e.children?a:void 0,...e,ref:t}),{elementType:"div"}),wrapper:Sr(s,{defaultProps:{id:a,children:e.children},elementType:"div"})}},BK={root:"fui-Divider",wrapper:"fui-Divider__wrapper"},t8e=At({base:{Bt984gj:"f122n59",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Beiy3e4:"f1063pyq",Bh6795r:"fqerorx",qhf8xq:"f10pi13n",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",fsow6f:"f17mccla",Bcvre1j:"fyl8oag",Br0sdwz:"f16vkdww",Bn78ew0:"fhsnbul",li1rpt:"f1gw3sf2",ap17g6:"f1ly5f7u",B771hl4:"f1s3tz6t"},childless:{susq4k:"f1kyqvp9",Bicfajf:["fzynn9s","f1z0ukd1"],jwcpgy:["fekrn8e","ftdg338"],B4rk6o:"fesgyo"},start:{Bsft5z2:"f13zj6fq"},center:{Ftih45:"f1wl9k8s",Bsft5z2:"f13zj6fq"},end:{Ftih45:"f1wl9k8s"},brand:{sj55zd:"f16muhyy",Bq4z7u6:"fcbuu2a",Bk5zm6e:["f1wdw2dr","f1ttio3w"],Bqjgrrk:"f1582fpk",Bm6vgfq:["f1ttio3w","f1wdw2dr"],B0n5ga8:"f1ahrvm8",s924m2:["f1cd3wbc","f17hbk9y"],B1q35kw:"fvrapl0",Gp14am:["f17hbk9y","f1cd3wbc"]},default:{sj55zd:"fkfq4zb",Bq4z7u6:"f1vccso1",Bk5zm6e:["f1geml7w","fjml6kk"],Bqjgrrk:"f1r7kh1m",Bm6vgfq:["fjml6kk","f1geml7w"],B0n5ga8:"f16j7guv",s924m2:["fx01ahm","fj1a37q"],B1q35kw:"fl8d8yv",Gp14am:["fj1a37q","fx01ahm"]},subtle:{sj55zd:"fkfq4zb",Bq4z7u6:"f5g06un",Bk5zm6e:["f13sxdku","f1n015lb"],Bqjgrrk:"f1x6bl8t",Bm6vgfq:["f1n015lb","f13sxdku"],B0n5ga8:"fvod1wy",s924m2:["fwslg65","flk0e17"],B1q35kw:"f103fvts",Gp14am:["flk0e17","fwslg65"]},strong:{sj55zd:"fkfq4zb",Bq4z7u6:"f10tv6oz",Bk5zm6e:["f16xp3sf","f1seuxxq"],Bqjgrrk:"fwrmqbx",Bm6vgfq:["f1seuxxq","f16xp3sf"],B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"]}},{d:[".f122n59{align-items:center;}",".f1ewtqcl{box-sizing:border-box;}",".f22iagw{display:flex;}",".f1063pyq{flex-direction:row;}",".fqerorx{flex-grow:1;}",".f10pi13n{position:relative;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f17mccla{text-align:center;}",".fyl8oag::before{box-sizing:border-box;}",".f16vkdww::before{display:flex;}",".fhsnbul::before{flex-grow:1;}",".f1gw3sf2::after{box-sizing:border-box;}",".f1ly5f7u::after{display:flex;}",".f1s3tz6t::after{flex-grow:1;}",".f1kyqvp9::before{margin-bottom:0;}",".fzynn9s::before{margin-right:0;}",".f1z0ukd1::before{margin-left:0;}",".fekrn8e::after{margin-left:0;}",".ftdg338::after{margin-right:0;}",".fesgyo::after{margin-top:0;}",'.f13zj6fq::after{content:"";}','.f1wl9k8s::before{content:"";}',".f16muhyy{color:var(--colorBrandForeground1);}",".fcbuu2a::before{border-top-color:var(--colorBrandStroke1);}",".f1wdw2dr::before{border-right-color:var(--colorBrandStroke1);}",".f1ttio3w::before{border-left-color:var(--colorBrandStroke1);}",".f1582fpk::before{border-bottom-color:var(--colorBrandStroke1);}",".f1ahrvm8::after{border-top-color:var(--colorBrandStroke1);}",".f1cd3wbc::after{border-right-color:var(--colorBrandStroke1);}",".f17hbk9y::after{border-left-color:var(--colorBrandStroke1);}",".fvrapl0::after{border-bottom-color:var(--colorBrandStroke1);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f1vccso1::before{border-top-color:var(--colorNeutralStroke2);}",".f1geml7w::before{border-right-color:var(--colorNeutralStroke2);}",".fjml6kk::before{border-left-color:var(--colorNeutralStroke2);}",".f1r7kh1m::before{border-bottom-color:var(--colorNeutralStroke2);}",".f16j7guv::after{border-top-color:var(--colorNeutralStroke2);}",".fx01ahm::after{border-right-color:var(--colorNeutralStroke2);}",".fj1a37q::after{border-left-color:var(--colorNeutralStroke2);}",".fl8d8yv::after{border-bottom-color:var(--colorNeutralStroke2);}",".f5g06un::before{border-top-color:var(--colorNeutralStroke3);}",".f13sxdku::before{border-right-color:var(--colorNeutralStroke3);}",".f1n015lb::before{border-left-color:var(--colorNeutralStroke3);}",".f1x6bl8t::before{border-bottom-color:var(--colorNeutralStroke3);}",".fvod1wy::after{border-top-color:var(--colorNeutralStroke3);}",".fwslg65::after{border-right-color:var(--colorNeutralStroke3);}",".flk0e17::after{border-left-color:var(--colorNeutralStroke3);}",".f103fvts::after{border-bottom-color:var(--colorNeutralStroke3);}",".f10tv6oz::before{border-top-color:var(--colorNeutralStroke1);}",".f16xp3sf::before{border-right-color:var(--colorNeutralStroke1);}",".f1seuxxq::before{border-left-color:var(--colorNeutralStroke1);}",".fwrmqbx::before{border-bottom-color:var(--colorNeutralStroke1);}",".ft83z1f::after{border-top-color:var(--colorNeutralStroke1);}",".f1g4150c::after{border-right-color:var(--colorNeutralStroke1);}",".f192dr6e::after{border-left-color:var(--colorNeutralStroke1);}",".f1qnawh6::after{border-bottom-color:var(--colorNeutralStroke1);}"]}),r8e=At({base:{a9b677:"fly5x3f",Bdkvgpv:"f163fonl",B0qfbqy:"f51yk4v",pbipgd:"f13rof3u",Bm2nyyq:"f8rth92",xrcqlc:"f6czdpx",i5u598:"f1iyka9k"},inset:{uwmqm3:["fjlbh76","f11qrl6u"],z189sj:["f11qrl6u","fjlbh76"]},start:{Ftih45:"f1wl9k8s",Bicfajf:["f1ojjlep","fk1kexq"],Bxwl2t9:"f1he2m4d",jwcpgy:["f12w1bnb","f1558wlj"]},center:{Bicfajf:["f1ojjlep","fk1kexq"],jwcpgy:["f12w1bnb","f1558wlj"]},end:{Bicfajf:["f1ojjlep","fk1kexq"],Bsft5z2:"f13zj6fq",jwcpgy:["f12w1bnb","f1558wlj"],Iy66sp:"f1ayce8x"}},{d:[".fly5x3f{width:100%;}",".f163fonl::before{border-top-style:solid;}",".f51yk4v::before{border-top-width:var(--strokeWidthThin);}",".f13rof3u::before{min-width:8px;}",".f8rth92::after{border-top-style:solid;}",".f6czdpx::after{border-top-width:var(--strokeWidthThin);}",".f1iyka9k::after{min-width:8px;}",".fjlbh76{padding-left:12px;}",".f11qrl6u{padding-right:12px;}",'.f1wl9k8s::before{content:"";}',".f1ojjlep::before{margin-right:12px;}",".fk1kexq::before{margin-left:12px;}",".f1he2m4d::before{max-width:8px;}",".f12w1bnb::after{margin-left:12px;}",".f1558wlj::after{margin-right:12px;}",'.f13zj6fq::after{content:"";}',".f1ayce8x::after{max-width:8px;}"]}),n8e=At({base:{Beiy3e4:"f1vx9l62",sshi5w:"f16gbxbe",m598lv:["f1yq6w5o","f1jpmc5p"],B4f6apu:["f9sc749","f1x8pvcy"],zkzzav:"fhkwbjy",Barhvk9:["flthirb","ftkbnf5"],Ihftqj:["f13hvwk3","f1en4csx"],Bde111x:"f19onpk6"},inset:{B6of3ja:"f1xdg43u",jrapky:"f1jlhsmd"},withChildren:{sshi5w:"f1tjaq3g"},start:{Ftih45:"f1wl9k8s",susq4k:"fg2pwug",Bbdr6tz:"fkjtzyi",B4rk6o:"f8vk40g"},center:{susq4k:"fg2pwug",B4rk6o:"f8vk40g"},end:{susq4k:"fg2pwug",Bsft5z2:"f13zj6fq",B4rk6o:"f8vk40g",gn64ia:"fqg5mu5"}},{d:[".f1vx9l62{flex-direction:column;}",".f16gbxbe{min-height:20px;}",".f1yq6w5o::before{border-right-style:solid;}",".f1jpmc5p::before{border-left-style:solid;}",".f9sc749::before{border-right-width:var(--strokeWidthThin);}",".f1x8pvcy::before{border-left-width:var(--strokeWidthThin);}",".fhkwbjy::before{min-height:8px;}",".flthirb::after{border-right-style:solid;}",".ftkbnf5::after{border-left-style:solid;}",".f13hvwk3::after{border-right-width:var(--strokeWidthThin);}",".f1en4csx::after{border-left-width:var(--strokeWidthThin);}",".f19onpk6::after{min-height:8px;}",".f1xdg43u{margin-top:12px;}",".f1jlhsmd{margin-bottom:12px;}",".f1tjaq3g{min-height:84px;}",'.f1wl9k8s::before{content:"";}',".fg2pwug::before{margin-bottom:12px;}",".fkjtzyi::before{max-height:8px;}",".f8vk40g::after{margin-top:12px;}",'.f13zj6fq::after{content:"";}',".fqg5mu5::after{max-height:8px;}"]}),o8e=e=>{const t=t8e(),r=r8e(),n=n8e(),{alignContent:o,appearance:i,inset:s,vertical:a}=e;return e.root.className=Xe(BK.root,t.base,t[o],i&&t[i],!a&&r.base,!a&&s&&r.inset,!a&&r[o],a&&n.base,a&&s&&n.inset,a&&n[o],a&&e.root.children!==void 0&&n.withChildren,e.root.children===void 0&&t.childless,e.root.className),e.wrapper&&(e.wrapper.className=Xe(BK.wrapper,e.wrapper.className)),e},Ky=k.forwardRef((e,t)=>{const r=e8e(e,t);return o8e(r),yn("useDividerStyles_unstable")(r),JLe(r)});Ky.displayName="Divider";const i8e=(e,t)=>{e=Pue(e,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const r=dae();var n;const{size:o="medium",appearance:i=(n=r.inputDefaultAppearance)!==null&&n!==void 0?n:"outline",onChange:s}=e,[a,u]=Sf({state:e.value,defaultState:e.defaultValue,initialState:""}),l=nae({props:e,primarySlotTagName:"input",excludedPropNames:["size","onChange","value","defaultValue"]}),c={size:o,appearance:i,components:{root:"span",input:"input",contentBefore:"span",contentAfter:"span"},input:Sr(e.input,{defaultProps:{type:"text",ref:t,...l.primary},elementType:"input"}),contentAfter:un(e.contentAfter,{elementType:"span"}),contentBefore:un(e.contentBefore,{elementType:"span"}),root:Sr(e.root,{defaultProps:l.root,elementType:"span"})};return c.input.value=a,c.input.onChange=lr(f=>{const d=f.target.value;s==null||s(f,{value:d}),u(d)}),c},s8e=e=>Vn(e.root,{children:[e.contentBefore&&nt(e.contentBefore,{}),nt(e.input,{}),e.contentAfter&&nt(e.contentAfter,{})]}),fw={root:"fui-Input",input:"fui-Input__input",contentBefore:"fui-Input__contentBefore",contentAfter:"fui-Input__contentAfter"},a8e=kn("r1jtohuq","rl1z2p5",{r:[".r1jtohuq{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;min-height:32px;padding:0 var(--spacingHorizontalMNudge);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.r1jtohuq::after{box-sizing:border-box;content:"";position:absolute;left:-1px;bottom:-1px;right:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".r1jtohuq:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".r1jtohuq:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".r1jtohuq:focus-within{outline:2px solid transparent;}",".rl1z2p5{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;min-height:32px;padding:0 var(--spacingHorizontalMNudge);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.rl1z2p5::after{box-sizing:border-box;content:"";position:absolute;right:-1px;bottom:-1px;left:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".rl1z2p5:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".rl1z2p5:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".rl1z2p5:focus-within{outline:2px solid transparent;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1jtohuq::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r1jtohuq:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.rl1z2p5::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.rl1z2p5:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}"]}),u8e=At({small:{sshi5w:"f1pha7fy",uwmqm3:["fk8j09s","fdw0yi8"],z189sj:["fdw0yi8","fk8j09s"],Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},medium:{},large:{sshi5w:"f1w5jphr",uwmqm3:["f1uw59to","fw5db7e"],z189sj:["fw5db7e","f1uw59to"],Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",i8kkvl:"f1rjii52",Belr9w4:"f1r7g2jn"},outline:{},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"f1l4zc64",gg5e9n:["f1m52nbi","f1ub3y4t"],Drbcw7:"f8vnjqi",udz0bu:["fz1etlk","f1hc16gm"],Be8ivqh:"f1klwx88",ofdepl:["f1hc16gm","fz1etlk"]},underline:{De3pzq:"f1c21dwh",Bbmb7ep:["f1krrbdw","f1deotkl"],Beyfa6y:["f1deotkl","f1krrbdw"],B7oj6ja:["f10ostut","f1ozlkrg"],Btl43ni:["f1ozlkrg","f10ostut"],icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],wvpqe5:["f1deefiw","f1n71otn"],Eqx8gd:["f1n6gb5g","f15yvnhg"],B1piin3:["f15yvnhg","f1n6gb5g"]},underlineInteractive:{oetu4i:"f1l4zc64",Be8ivqh:"f1klwx88",B3778ie:["f1nf3wye","feulmo5"],d9w3h3:["feulmo5","f1nf3wye"],Bl18szs:["f18vqdqu","f53nyzz"],B4j8arr:["f53nyzz","f18vqdqu"]},filled:{g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},filledInteractive:{q7v0qe:"ftmjh5b",kmh5ft:["f17blpuu","fsrcdbj"],nagaa4:"f1tpwn32",B1yhkcb:["fsrcdbj","f17blpuu"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},"filled-darker":{De3pzq:"f16xq7d1"},"filled-lighter":{De3pzq:"fxugw4r"},"filled-darker-shadow":{De3pzq:"f16xq7d1",E5pizo:"fyed02w"},"filled-lighter-shadow":{De3pzq:"fxugw4r",E5pizo:"fyed02w"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bsft5z2:"fhr9occ",Bduesf4:"f99w1ws"}},{d:[".f1pha7fy{min-height:24px;}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1w5jphr{min-height:40px;}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".f1r7g2jn{row-gap:var(--spacingHorizontalSNudge);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1krrbdw{border-bottom-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1ozlkrg{border-top-left-radius:0;}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".f1nf3wye::after{border-bottom-right-radius:0;}",".feulmo5::after{border-bottom-left-radius:0;}",".f18vqdqu::after{border-top-right-radius:0;}",".f53nyzz::after{border-top-left-radius:0;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".fyed02w{box-shadow:var(--shadow2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fhr9occ::after{content:unset;}"],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}",".ftmjh5b:hover,.ftmjh5b:focus-within{border-top-color:var(--colorTransparentStrokeInteractive);}",".f17blpuu:hover,.f17blpuu:focus-within{border-right-color:var(--colorTransparentStrokeInteractive);}",".fsrcdbj:hover,.fsrcdbj:focus-within{border-left-color:var(--colorTransparentStrokeInteractive);}",".f1tpwn32:hover,.f1tpwn32:focus-within{border-bottom-color:var(--colorTransparentStrokeInteractive);}"],a:[".f8vnjqi:active,.f8vnjqi:focus-within{border-top-color:var(--colorNeutralStroke1Pressed);}",".fz1etlk:active,.fz1etlk:focus-within{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1hc16gm:active,.f1hc16gm:focus-within{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1klwx88:active,.f1klwx88:focus-within{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"],m:[["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],w:[".f99w1ws:focus-within{outline-style:none;}"]}),l8e=kn("rvp2gzh",null,[".rvp2gzh{box-sizing:border-box;flex-grow:1;min-width:0;border-style:none;padding:0 var(--spacingHorizontalXXS);color:var(--colorNeutralForeground1);background-color:transparent;outline-style:none;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;}",".rvp2gzh::-webkit-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh::-moz-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh:-ms-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh::placeholder{color:var(--colorNeutralForeground4);opacity:1;}"]),c8e=At({large:{uwmqm3:["fk8j09s","fdw0yi8"],z189sj:["fdw0yi8","fk8j09s"]},disabled:{sj55zd:"f1s2aq7o",De3pzq:"f1c21dwh",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"}},{d:[".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}"]}),f8e=kn("r1572tok",null,[".r1572tok{box-sizing:border-box;color:var(--colorNeutralForeground3);display:flex;}",".r1572tok>svg{font-size:20px;}"]),d8e=At({disabled:{sj55zd:"f1s2aq7o"},small:{kwki1k:"f3u2cy0"},medium:{},large:{kwki1k:"fa420co"}},{d:[".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f3u2cy0>svg{font-size:16px;}",".fa420co>svg{font-size:24px;}"]}),h8e=e=>{const{size:t,appearance:r}=e,n=e.input.disabled,o=`${e.input["aria-invalid"]}`=="true",i=r.startsWith("filled"),s=u8e(),a=c8e(),u=d8e();e.root.className=Xe(fw.root,a8e(),s[t],s[r],!n&&r==="outline"&&s.outlineInteractive,!n&&r==="underline"&&s.underlineInteractive,!n&&i&&s.filledInteractive,i&&s.filled,!n&&o&&s.invalid,n&&s.disabled,e.root.className),e.input.className=Xe(fw.input,l8e(),t==="large"&&a.large,n&&a.disabled,e.input.className);const l=[f8e(),n&&u.disabled,u[t]];return e.contentBefore&&(e.contentBefore.className=Xe(fw.contentBefore,...l,e.contentBefore.className)),e.contentAfter&&(e.contentAfter.className=Xe(fw.contentAfter,...l,e.contentAfter.className)),e},M8=k.forwardRef((e,t)=>{const r=i8e(e,t);return h8e(r),yn("useInputStyles_unstable")(r),s8e(r)});M8.displayName="Input";const p8e=e=>{const{disabled:t,disabledFocusable:r}=e,{onClick:n,onKeyDown:o,role:i,tabIndex:s}=e.root;return e.root.as==="a"&&(e.root.href=t?void 0:e.root.href,(t||r)&&(e.root.role=i||"link")),(e.root.as==="a"||e.root.as==="span")&&(e.root.tabIndex=s??(t&&!r?void 0:0)),e.root.onClick=a=>{t||r?a.preventDefault():n==null||n(a)},e.root.onKeyDown=a=>{(t||r)&&(a.key===sg||a.key===af)?(a.preventDefault(),a.stopPropagation()):o==null||o(a)},e.disabled=t||r,e.root["aria-disabled"]=t||r||void 0,e.root.as==="button"&&(e.root.disabled=t&&!r),e},g8e=(e,t)=>{const r=DDe(),{appearance:n="default",disabled:o=!1,disabledFocusable:i=!1,inline:s=!1}=e,a=e.as||(e.href?"a":"button"),u={role:a==="span"?"button":void 0,type:a==="button"?"button":void 0,...e,as:a},l={appearance:n,disabled:o,disabledFocusable:i,inline:s,components:{root:a},root:Sr(mn(a,{ref:t,...u}),{elementType:a}),backgroundAppearance:r};return p8e(l),l},v8e={root:"fui-Link"},m8e=At({focusIndicator:{Bttzg6e:"fhgqx19",B3uz8dt:"f1olyrje",B6ihwck:"f1p93eir",g9k6zt:"f1nev41a"},root:{B486eqv:"f2hkw1w",De3pzq:"f3rmtva",B7ck84d:"f1ewtqcl",sj55zd:"fyind8e",Bceei9c:"f1k6fduh",mc9l5x:"f1w7gpdv",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",B6of3ja:"f1hu3pq6",t21cq0:["f11qmguv","f1tyq0we"],jrapky:"f19f4twv",Frg6f3:["f1tyq0we","f11qmguv"],z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1cnd47f","fhxju0i"],B68tc82:"fqv5qza",Bmxbyg5:"f1vmzxwi",fsow6f:["f1o700av","fes3tcz"],w71qe1:"f1iuv45f",Bkioxbp:"f1cmlufx",ygn44y:"f9n3di6",famaaq:"f1ids18y",Bde5pd6:"f1tx3yz7",Bi91k9c:"f1deo86v",i089h6:"f1eh06m1",lj723h:"f1iescvh"},button:{icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],oivjwe:"f1h8hb77",wvpqe5:["f1deefiw","f1n71otn"]},href:{Be2twd7:"fjoy568"},subtle:{sj55zd:"fkfq4zb",Bde5pd6:"f1tx3yz7",Bi91k9c:"fnwyq0v",i089h6:"f1eh06m1",lj723h:"flvvhsy"},inline:{w71qe1:"f13mvf36"},disabled:{w71qe1:"f1iuv45f",sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bde5pd6:"fbnuktb",Bi91k9c:"fvgxktp",i089h6:"fljg2da",lj723h:"f19wldhg"},inverted:{sj55zd:"f1qz2gb0",Bi91k9c:"f1mlt8il",lj723h:"f1hsd4st"}},{d:[".fhgqx19[data-fui-focus-visible]{text-decoration-color:var(--colorStrokeFocus2);}",".f1olyrje[data-fui-focus-visible]{text-decoration-line:underline;}",".f1p93eir[data-fui-focus-visible]{text-decoration-style:double;}",".f1nev41a[data-fui-focus-visible]{outline-style:none;}",".f3rmtva{background-color:transparent;}",".f1ewtqcl{box-sizing:border-box;}",".fyind8e{color:var(--colorBrandForegroundLink);}",".f1k6fduh{cursor:pointer;}",".f1w7gpdv{display:inline;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1hu3pq6{margin-top:0;}",".f11qmguv{margin-right:0;}",".f1tyq0we{margin-left:0;}",".f19f4twv{margin-bottom:0;}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".fqv5qza{overflow-x:inherit;}",".f1vmzxwi{overflow-y:inherit;}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".f1iuv45f{text-decoration-line:none;}",".f1cmlufx{text-decoration-thickness:var(--strokeWidthThin);}",".f9n3di6{text-overflow:inherit;}",".f1ids18y{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1h8hb77{border-bottom-style:none;}",".fjoy568{font-size:inherit;}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f13mvf36{text-decoration-line:underline;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f1qz2gb0{color:var(--colorBrandForegroundInverted);}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],h:[".f1tx3yz7:hover{text-decoration-line:underline;}",".f1deo86v:hover{color:var(--colorBrandForegroundLinkHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".fbnuktb:hover{text-decoration-line:none;}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f1mlt8il:hover{color:var(--colorBrandForegroundInvertedHover);}"],a:[".f1eh06m1:active{text-decoration-line:underline;}",".f1iescvh:active{color:var(--colorBrandForegroundLinkPressed);}",".flvvhsy:active{color:var(--colorNeutralForeground2Pressed);}",".fljg2da:active{text-decoration-line:none;}",".f19wldhg:active{color:var(--colorNeutralForegroundDisabled);}",".f1hsd4st:active{color:var(--colorBrandForegroundInvertedPressed);}"]}),y8e=e=>{const t=m8e(),{appearance:r,disabled:n,inline:o,root:i,backgroundAppearance:s}=e;return e.root.className=Xe(v8e.root,t.root,t.focusIndicator,i.as==="a"&&i.href&&t.href,i.as==="button"&&t.button,r==="subtle"&&t.subtle,s==="inverted"&&t.inverted,o&&t.inline,n&&t.disabled,e.root.className),e},b8e=e=>nt(e.root,{}),Gb=k.forwardRef((e,t)=>{const r=g8e(e,t);return y8e(r),b8e(r)});Gb.displayName="Link";const _8e=()=>k.createElement("svg",{className:"fui-Spinner__Progressbar"},k.createElement("circle",{className:"fui-Spinner__Track"}),k.createElement("circle",{className:"fui-Spinner__Tail"})),Vue=k.createContext(void 0),E8e={};Vue.Provider;const S8e=()=>{var e;return(e=k.useContext(Vue))!==null&&e!==void 0?e:E8e},w8e=(e,t)=>{const{size:r}=S8e(),{appearance:n="primary",labelPosition:o="after",size:i=r??"medium",delay:s=0}=e,a=Ia("spinner"),{role:u="progressbar",tabIndex:l,...c}=e,f=Sr(mn("div",{ref:t,role:u,...c},["size"]),{elementType:"div"}),[d,h]=k.useState(!0),[g,v]=h8();k.useEffect(()=>{if(!(s<=0))return h(!1),g(()=>{h(!0)},s),()=>{v()}},[g,v,s]);const y=un(e.label,{defaultProps:{id:a},renderByDefault:!1,elementType:If}),E=un(e.spinner,{renderByDefault:!0,defaultProps:{children:k.createElement(_8e,null),tabIndex:l},elementType:"span"});return y&&f&&!f["aria-labelledby"]&&(f["aria-labelledby"]=y.id),{appearance:n,delay:s,labelPosition:o,size:i,shouldRenderSpinner:d,components:{root:"div",spinner:"span",label:If},root:f,spinner:E,label:y}},A8e=e=>{const{labelPosition:t,shouldRenderSpinner:r}=e;return Vn(e.root,{children:[e.label&&r&&(t==="above"||t==="before")&&nt(e.label,{}),e.spinner&&r&&nt(e.spinner,{}),e.label&&r&&(t==="below"||t==="after")&&nt(e.label,{})]})},dC={root:"fui-Spinner",spinner:"fui-Spinner__spinner",label:"fui-Spinner__label"},k8e=At({root:{mc9l5x:"f22iagw",Bt984gj:"f122n59",Brf1p80:"f4d9j23",Bg96gwp:"fez10in",i8kkvl:"f4px1ci",Belr9w4:"fn67r4l"},horizontal:{Beiy3e4:"f1063pyq"},vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f22iagw{display:flex;}",".f122n59{align-items:center;}",".f4d9j23{justify-content:center;}",".fez10in{line-height:0;}",".f4px1ci{column-gap:8px;}",".fn67r4l{row-gap:8px;}",".f1063pyq{flex-direction:row;}",".f1vx9l62{flex-direction:column;}"]}),x8e=At({spinnerSVG:{B3aqqti:"f1or16p5",Brovlpu:"f1grzc83",Bxa1mx5:"f19shzzi",Bwaue66:["f5tbecn","f15qb8s7"],fyp1ls:"fn4mtlg",ag6ruv:"f1y80fxs",osj692:"f1r2crtq",aq5vjd:"f1wsi8sr",tlu9e1:"f1bkm2qd",J3u96z:"f1urqz7h",d32isg:"f1da2vov",Bsvqbuc:"f11rfva0",b3s3i5:"f1exc66"},"extra-tiny":{Bah9ito:"f1x2gjcb",ut6tcf:"f1vjiaua",B7p06xz:"fv1u54w",B807ibg:"f1oebb0s"},tiny:{Bah9ito:"f1j4wmu2",ut6tcf:"f1vppzuq",B7p06xz:"fv1u54w",B807ibg:"fngtx1d"},"extra-small":{Bah9ito:"fmpqlna",ut6tcf:"f15z5jzu",B7p06xz:"fv1u54w",B807ibg:"fadawes"},small:{Bah9ito:"fo52gbo",ut6tcf:"f1b41i3v",B7p06xz:"fv1u54w",B807ibg:"f1xqyyrl"},medium:{Bah9ito:"f1aiqagr",ut6tcf:"f1wtx80b",B7p06xz:"f1flujpd",B807ibg:"f1u06hy7"},large:{Bah9ito:"f1trdq7b",ut6tcf:"f9e0mc5",B7p06xz:"f1flujpd",B807ibg:"f13pmvhl"},"extra-large":{Bah9ito:"f89rf2a",ut6tcf:"f1w2xg3q",B7p06xz:"f1flujpd",B807ibg:"fmn74v6"},huge:{Bah9ito:"f1rx7k5y",ut6tcf:"f1vtyt49",B7p06xz:"f1owbg48",B807ibg:"f1fr1izd"}},{f:[".f1or16p5:focus{outline-width:3px;}",".f1grzc83:focus{outline-style:solid;}",".f19shzzi:focus{outline-color:transparent;}"],k:["@keyframes fb7n1on{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}","@keyframes f1gx3jof{0%{transform:rotate(0deg);}100%{transform:rotate(-360deg);}}"],d:[".f5tbecn>svg{animation-name:fb7n1on;}",".f15qb8s7>svg{animation-name:f1gx3jof;}",".fn4mtlg>svg{animation-duration:3s;}",".f1y80fxs>svg{animation-iteration-count:infinite;}",".f1r2crtq>svg{animation-timing-function:linear;}",".f1wsi8sr>svg{background-color:transparent;}",".f1da2vov>svg>circle{cx:50%;}",".f11rfva0>svg>circle{cy:50%;}",".f1exc66>svg>circle{fill:none;}",".f1x2gjcb>svg{height:16px;}",".f1vjiaua>svg{width:16px;}",".fv1u54w>svg>circle{stroke-width:var(--strokeWidthThick);}",".f1oebb0s>svg>circle{r:7px;}",".f1j4wmu2>svg{height:20px;}",".f1vppzuq>svg{width:20px;}",".fngtx1d>svg>circle{r:9px;}",".fmpqlna>svg{height:24px;}",".f15z5jzu>svg{width:24px;}",".fadawes>svg>circle{r:11px;}",".fo52gbo>svg{height:28px;}",".f1b41i3v>svg{width:28px;}",".f1xqyyrl>svg>circle{r:13px;}",".f1aiqagr>svg{height:32px;}",".f1wtx80b>svg{width:32px;}",".f1flujpd>svg>circle{stroke-width:var(--strokeWidthThicker);}",".f1u06hy7>svg>circle{r:14.5px;}",".f1trdq7b>svg{height:36px;}",".f9e0mc5>svg{width:36px;}",".f13pmvhl>svg>circle{r:16.5px;}",".f89rf2a>svg{height:40px;}",".f1w2xg3q>svg{width:40px;}",".fmn74v6>svg>circle{r:18.5px;}",".f1rx7k5y>svg{height:44px;}",".f1vtyt49>svg{width:44px;}",".f1owbg48>svg>circle{stroke-width:var(--strokeWidthThickest);}",".f1fr1izd>svg>circle{r:20px;}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f1bkm2qd>svg{animation-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1urqz7h>svg{animation-iteration-count:1;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]}),T8e=At({inverted:{gwg7kz:"f1jvpmnu",Bvrehnu:"fq8a5sv",Bidp6o:"f1b4lwqj",cq3kgi:"f1najlst",Btwiser:"fjxod4",B8001xd:"fu3xdw0",Bdordwa:["f1ttdh6v","fmyjox0"],Bo2mdfu:"f1eseayc",E10nrc:"folzdkc",Bwl7w15:"fhlfkde",Bksq7rz:"f1esql28"},primary:{gwg7kz:"f11ditju",B8k2rxp:"f1m9nikz",Bvrehnu:"fq8a5sv",Bidp6o:"f1b4lwqj",cq3kgi:"f1najlst",Btwiser:"fjxod4",B8001xd:"fu3xdw0",Bdordwa:["f1ttdh6v","fmyjox0"],Bo2mdfu:"f1eseayc",E10nrc:"folzdkc",Bwl7w15:"fhlfkde",Bksq7rz:"f13qeqtg",y14cdu:"flglbw1"}},{d:[".f1jvpmnu>svg>circle.fui-Spinner__Tail{stroke:var(--colorNeutralStrokeOnBrand2);}",".fq8a5sv>svg>circle.fui-Spinner__Tail{animation-name:f1v1ql0f;}",".f1b4lwqj>svg>circle.fui-Spinner__Tail{animation-duration:1.5s;}",".f1najlst>svg>circle.fui-Spinner__Tail{animation-iteration-count:infinite;}",".fjxod4>svg>circle.fui-Spinner__Tail{animation-timing-function:var(--curveEasyEase);}",".fu3xdw0>svg>circle.fui-Spinner__Tail{stroke-linecap:round;}",".f1ttdh6v>svg>circle.fui-Spinner__Tail{transform:rotate(-90deg);}",".fmyjox0>svg>circle.fui-Spinner__Tail{transform:rotate(90deg);}",".f1eseayc>svg>circle.fui-Spinner__Tail{transform-origin:50% 50%;}",".f1esql28>svg>circle.fui-Spinner__Track{stroke:rgba(255, 255, 255, 0.2);}",".f11ditju>svg>circle.fui-Spinner__Tail{stroke:var(--colorBrandStroke1);}",".f13qeqtg>svg>circle.fui-Spinner__Track{stroke:var(--colorBrandStroke2Contrast);}"],k:["@keyframes f1v1ql0f{0%{stroke-dasharray:1,150;stroke-dashoffset:0;}50%{stroke-dasharray:90,150;stroke-dashoffset:-35;}100%{stroke-dasharray:90,150;stroke-dashoffset:-124;}}"],m:[["@media screen and (prefers-reduced-motion: reduce){.folzdkc>svg>circle.fui-Spinner__Tail{animation-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.fhlfkde>svg>circle.fui-Spinner__Tail{animation-iteration-count:1;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (forced-colors: active){.f1m9nikz>svg>circle.fui-Spinner__Tail{stroke:var(--colorNeutralStrokeOnBrand2);}}",{m:"screen and (forced-colors: active)"}],["@media screen and (forced-colors: active){.flglbw1>svg>circle.fui-Spinner__Track{stroke:var(--colorNeutralBackgroundInverted);}}",{m:"screen and (forced-colors: active)"}]]}),I8e=At({inverted:{sj55zd:"f15aqcq"},primary:{},"extra-tiny":{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},tiny:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},"extra-small":{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},small:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},large:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},"extra-large":{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},huge:{Bahqtrf:"fk6fouc",Be2twd7:"f1pp30po",Bhrd7zp:"fl43uef",Bg96gwp:"f106mvju"}},{d:[".f15aqcq{color:rgba(255, 255, 255, 1);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f106mvju{line-height:var(--lineHeightBase500);}"]}),C8e=e=>{const{labelPosition:t,size:r,appearance:n="primary"}=e,o=k8e(),i=x8e(),s=I8e(),a=T8e();return e.root.className=Xe(dC.root,o.root,(t==="above"||t==="below")&&o.vertical,(t==="before"||t==="after")&&o.horizontal,e.root.className),e.spinner&&(e.spinner.className=Xe(dC.spinner,i.spinnerSVG,i[r],a[n],e.spinner.className)),e.label&&(e.label.className=Xe(dC.label,s[r],s[n],e.label.className)),e},J_=k.forwardRef((e,t)=>{const r=w8e(e,t);return C8e(r),yn("useSpinnerStyles_unstable")(r),A8e(r)});J_.displayName="Spinner";const N8e={appearance:"transparent",reserveSelectedTabSpace:!0,selectTabOnFocus:!1,disabled:!1,selectedValue:void 0,onRegister:()=>{},onUnregister:()=>{},onSelect:()=>{},getRegisteredTabs:()=>({registeredTabs:{}}),size:"medium",vertical:!1},Uue=vv(void 0),R8e=Uue.Provider,$u=e=>Ko(Uue,(t=N8e)=>e(t)),O8e=(e,t)=>{const{content:r,disabled:n=!1,icon:o,onClick:i,onFocus:s,value:a}=e,u=$u(R=>R.appearance),l=$u(R=>R.reserveSelectedTabSpace),c=$u(R=>R.selectTabOnFocus),f=$u(R=>R.disabled),d=$u(R=>R.selectedValue===a),h=$u(R=>R.onRegister),g=$u(R=>R.onUnregister),v=$u(R=>R.onSelect),y=$u(R=>R.size),E=$u(R=>!!R.vertical),_=f||n,S=k.useRef(null),b=R=>v(R,{value:a}),A=lr(In(i,b)),T=lr(In(s,b));k.useEffect(()=>(h({value:a,ref:S}),()=>{g({value:a,ref:S})}),[h,g,S,a]);const x=un(o,{elementType:"span"}),C=Sr(r,{defaultProps:{children:e.children},elementType:"span"}),I=!!(x!=null&&x.children&&!C.children);return{components:{root:"button",icon:"span",content:"span",contentReservedSpace:"span"},root:Sr(mn("button",{ref:di(t,S),role:"tab",type:"button","aria-selected":_?void 0:`${d}`,...e,disabled:_,onClick:A,onFocus:c?T:s}),{elementType:"button"}),icon:x,iconOnly:I,content:C,contentReservedSpace:un(r,{renderByDefault:!d&&!I&&l,defaultProps:{children:e.children},elementType:"span"}),appearance:u,disabled:_,selected:d,size:y,value:a,vertical:E}},D8e=e=>Vn(e.root,{children:[e.icon&&nt(e.icon,{}),!e.iconOnly&&nt(e.content,{}),e.contentReservedSpace&&nt(e.contentReservedSpace,{})]}),MK={offsetVar:"--fui-Tab__indicator--offset",scaleVar:"--fui-Tab__indicator--scale"},F8e=At({base:{B68tc82:"f1mtd64y",Bmxbyg5:"f1y7q3j9"},animated:{Ba2ppi3:"fhwpy7i",F2fol1:"f6zz20j",B1dyfl9:"f1ai4sc1",B0vmy72:"f9qxlq5",u9bimw:"f1aql376"},horizontal:{sjv3b2:["fug4aj8","f1i5xzg7"],b1kco5:"f1q7ujh"},vertical:{sjv3b2:"f1hqboyk",b1kco5:"f1dxupa6"}},{d:[".f1mtd64y{overflow-x:visible;}",".f1y7q3j9{overflow-y:visible;}",".fhwpy7i::after{transition-property:transform;}",".f6zz20j::after{transition-duration:var(--durationSlow);}",".f1ai4sc1::after{transition-timing-function:var(--curveDecelerateMax);}",".fug4aj8::after{transform-origin:left;}",".f1i5xzg7::after{transform-origin:right;}",".f1q7ujh::after{transform:translateX(var(--fui-Tab__indicator--offset)) scaleX(var(--fui-Tab__indicator--scale));}",".f1hqboyk::after{transform-origin:top;}",".f1dxupa6::after{transform:translateY(var(--fui-Tab__indicator--offset)) scaleY(var(--fui-Tab__indicator--scale));}"],m:[["@media (prefers-reduced-motion: reduce){.f9qxlq5::after{transition-property:none;}}",{m:"(prefers-reduced-motion: reduce)"}],["@media (prefers-reduced-motion: reduce){.f1aql376::after{transition-duration:0.01ms;}}",{m:"(prefers-reduced-motion: reduce)"}]]}),B8e=e=>{if(e){var t;const r=((t=e.parentElement)===null||t===void 0?void 0:t.getBoundingClientRect())||{x:0,y:0,width:0,height:0},n=e.getBoundingClientRect();return{x:n.x-r.x,y:n.y-r.y,width:n.width,height:n.height}}},LK=(e,t)=>{var r;const n=t!=null?(r=e[JSON.stringify(t)])===null||r===void 0?void 0:r.ref.current:void 0;return n?B8e(n):void 0},M8e=e=>{const{disabled:t,selected:r,vertical:n}=e,o=F8e(),[i,s]=k.useState(),[a,u]=k.useState({offset:0,scale:1}),l=$u(d=>d.getRegisteredTabs);if(k.useEffect(()=>{i&&u({offset:0,scale:1})},[i]),r){const{previousSelectedValue:d,selectedValue:h,registeredTabs:g}=l();if(d&&i!==d){const v=LK(g,d),y=LK(g,h);if(y&&v){const E=n?v.y-y.y:v.x-y.x,_=n?v.height/y.height:v.width/y.width;u({offset:E,scale:_}),s(d)}}}else i&&s(void 0);if(t)return e;const c=a.offset===0&&a.scale===1;e.root.className=Xe(e.root.className,r&&o.base,r&&c&&o.animated,r&&(n?o.vertical:o.horizontal));const f={[MK.offsetVar]:`${a.offset}px`,[MK.scaleVar]:`${a.scale}`};return e.root.style={...f,...e.root.style},e},hC={root:"fui-Tab",icon:"fui-Tab__icon",content:"fui-Tab__content"},L8e={content:"fui-Tab__content--reserved-space"},j8e=At({base:{Bt984gj:"f122n59",g2u3we:"fwhevhj",h3c5rm:["f61n433","f1q8l70w"],B9xav0g:"fv1dfc8",zhjwy3:["f1q8l70w","f61n433"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B4j52fo:"fre7gi1",Bekrc4i:["f1358rze","f1rvrf73"],Bn0qgzm:"fqdk4by",ibv6hh:["f1rvrf73","f1358rze"],Bceei9c:"f1k6fduh",mc9l5x:"f13qh94s",Bnnss6s:"fi64zpg",Bxotwcr:"f1u07yai",Budl1dq:"frn2hmy",wkccdc:"f1olsevy",Bahqtrf:"fk6fouc",Bg96gwp:"f1i3iumi",oeaueh:"f1s6fcnf",qhf8xq:"f10pi13n",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",B9bfxx9:"f1cxpek8"},horizontal:{Brf1p80:"f4d9j23"},vertical:{Brf1p80:"f1s9ku6b"},smallHorizontal:{i8kkvl:"f14mj54c",z8tnut:"fp2oml8",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"f1tdddsa",uwmqm3:["fk8j09s","fdw0yi8"]},smallVertical:{i8kkvl:"f14mj54c",z8tnut:"fclwglc",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"fywfov9",uwmqm3:["fk8j09s","fdw0yi8"]},mediumHorizontal:{i8kkvl:"f1rjii52",z8tnut:"f5yzyt",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"fx3omr",uwmqm3:["f1ng84yb","f11gcy0p"]},mediumVertical:{i8kkvl:"f1rjii52",z8tnut:"fp2oml8",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"f1tdddsa",uwmqm3:["f1ng84yb","f11gcy0p"]},largeHorizontal:{i8kkvl:"f1rjii52",z8tnut:"fikn0iw",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"fdxej3c",uwmqm3:["f1ng84yb","f11gcy0p"]},largeVertical:{i8kkvl:"f1rjii52",z8tnut:"f1kwiid1",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"f5b47ha",uwmqm3:["f1ng84yb","f11gcy0p"]},transparent:{De3pzq:"f1c21dwh",Jwef8y:"fjxutwb",ecr2s2:"fophhak",Bptxc3x:"fmmjozx",B076xvk:"f1mfqf41",q9r9w5:"f10aiid4",cl4aha:"fpkze5g",Bk452zc:"f149wc3x",a4hkcw:"fjioou7"},subtle:{De3pzq:"fhovq9v",Jwef8y:"f1t94bn6",ecr2s2:"f1wfn5kd",Bptxc3x:"fmmjozx",B076xvk:"f1mfqf41",q9r9w5:"f10aiid4",cl4aha:"fpkze5g",Bk452zc:"f149wc3x",a4hkcw:"fjioou7"},disabled:{De3pzq:"f1c21dwh",Bptxc3x:"fato7r6",cl4aha:"fao1bnu",Bceei9c:"fdrzuqr"},selected:{Bptxc3x:"f1cadz5z",B076xvk:"f1ck17l",q9r9w5:"f42ak0g",cl4aha:"ffplhdr",Bk452zc:"ffth601",a4hkcw:"fhklyu5"}},{d:[".f122n59{align-items:center;}",".fwhevhj{border-top-color:none;}",".f61n433{border-right-color:none;}",".f1q8l70w{border-left-color:none;}",".fv1dfc8{border-bottom-color:none;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".fre7gi1{border-top-width:0;}",".f1358rze{border-right-width:0;}",".f1rvrf73{border-left-width:0;}",".fqdk4by{border-bottom-width:0;}",".f1k6fduh{cursor:pointer;}",".f13qh94s{display:grid;}",".fi64zpg{flex-shrink:0;}",".f1u07yai{grid-auto-flow:column;}",".frn2hmy{grid-template-columns:auto;}",".f1olsevy{grid-template-rows:auto;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1s6fcnf{outline-style:none;}",".f10pi13n{position:relative;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".f1cxpek8{text-transform:none;}",".f4d9j23{justify-content:center;}",".f1s9ku6b{justify-content:start;}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",".fp2oml8{padding-top:var(--spacingVerticalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f1tdddsa{padding-bottom:var(--spacingVerticalSNudge);}",".fclwglc{padding-top:var(--spacingVerticalXXS);}",".fywfov9{padding-bottom:var(--spacingVerticalXXS);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".f5yzyt{padding-top:var(--spacingVerticalM);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".fx3omr{padding-bottom:var(--spacingVerticalM);}",".fikn0iw{padding-top:var(--spacingVerticalL);}",".fdxej3c{padding-bottom:var(--spacingVerticalL);}",".f1kwiid1{padding-top:var(--spacingVerticalS);}",".f5b47ha{padding-bottom:var(--spacingVerticalS);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fmmjozx .fui-Tab__icon{color:var(--colorNeutralForeground2);}",".fpkze5g .fui-Tab__content{color:var(--colorNeutralForeground2);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fato7r6 .fui-Tab__icon{color:var(--colorNeutralForegroundDisabled);}",".fao1bnu .fui-Tab__content{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f1cadz5z .fui-Tab__icon{color:var(--colorCompoundBrandForeground1);}",".ffplhdr .fui-Tab__content{color:var(--colorNeutralForeground1);}"],h:[".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".f1mfqf41:hover .fui-Tab__icon{color:var(--colorNeutralForeground2Hover);}",".f149wc3x:hover .fui-Tab__content{color:var(--colorNeutralForeground2Hover);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".f1ck17l:hover .fui-Tab__icon{color:var(--colorCompoundBrandForeground1Hover);}",".ffth601:hover .fui-Tab__content{color:var(--colorNeutralForeground1Hover);}"],a:[".fophhak:active{background-color:var(--colorTransparentBackgroundPressed);}",".f10aiid4:active .fui-Tab__icon{color:var(--colorNeutralForeground2Pressed);}",".fjioou7:active .fui-Tab__content{color:var(--colorNeutralForeground2Pressed);}",".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}",".f42ak0g:active .fui-Tab__icon{color:var(--colorCompoundBrandForeground1Pressed);}",".fhklyu5:active .fui-Tab__content{color:var(--colorNeutralForeground1Pressed);}"]}),z8e=At({base:{B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bn4voq9:"f1p7hgxw",Bfpq7zp:"f1way5bb",g9k6zt:"f9znhxp",j6ew2k:["fqa318h","fqa318h"],Bhxq17a:"f1vjpng2"}},{d:[".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}",".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}",".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}",".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}",".f1p7hgxw[data-fui-focus-visible]{outline-width:var(--strokeWidthThick);}",".f1way5bb[data-fui-focus-visible]{outline-color:transparent;}",".f9znhxp[data-fui-focus-visible]{outline-style:solid;}",".fqa318h[data-fui-focus-visible]{box-shadow:var(--shadow4),0 0 0 var(--strokeWidthThick) var(--colorStrokeFocus2);}",".f1vjpng2[data-fui-focus-visible]{z-index:1;}"]}),H8e=At({base:{az7l2e:"fhw179n",Bv4n3vi:["f10y1uxy","f6aiuy0"],vqofr:["f6aiuy0","f10y1uxy"],B0uxbk8:["f1kfpfnu","f1dx5wco"],Bgqb9hq:["f1dx5wco","f1kfpfnu"],amg5m6:"f1kmhr4c",zkfqfm:"fl1ydde",Bkydozb:"f1y7maxz",vzq8l0:["f105swax","fscdmel"],Bka2azo:["fscdmel","f105swax"],Br4ovkg:["f1tkcw1w","f1u11x8o"],csmgbd:["f1u11x8o","f1tkcw1w"],y36c18:"f16cxu0",B1ctymy:"f1nwgacf",Bgvrrv0:"f15ovonk",ddr6p5:"fvje46l"},disabled:{az7l2e:"f1ut20fw",Bkydozb:"fhrzcfn"},smallHorizontal:{lawp4y:"fchca7p",Baz25je:"f1r53b5e",Fbdkly:["f1s6rxz5","fo35v8s"],mdwyqc:["fo35v8s","f1s6rxz5"]},smallVertical:{lawp4y:"fze4zud",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"fdp32p8",Ccq8qp:"f1aij3q"},mediumHorizontal:{lawp4y:"fchca7p",Baz25je:"f1s2r9ax",Fbdkly:["f1o0nnkk","fxb7rol"],mdwyqc:["fxb7rol","f1o0nnkk"]},mediumVertical:{lawp4y:"f17jracn",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"f117lcb2",Ccq8qp:"f1aij3q"},largeHorizontal:{lawp4y:"fchca7p",Baz25je:"f1s2r9ax",Fbdkly:["f1o0nnkk","fxb7rol"],mdwyqc:["fxb7rol","f1o0nnkk"]},largeVertical:{lawp4y:"fel9d3z",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"f6vqlre",Ccq8qp:"f1aij3q"}},{h:[".fhw179n:hover::before{background-color:var(--colorNeutralStroke1Hover);}",".f10y1uxy:hover::before{border-bottom-right-radius:var(--borderRadiusCircular);}",".f6aiuy0:hover::before{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1kfpfnu:hover::before{border-top-right-radius:var(--borderRadiusCircular);}",".f1dx5wco:hover::before{border-top-left-radius:var(--borderRadiusCircular);}",'.f1kmhr4c:hover::before{content:"";}',".fl1ydde:hover::before{position:absolute;}",".f1ut20fw:hover::before{background-color:var(--colorTransparentStroke);}"],a:[".f1y7maxz:active::before{background-color:var(--colorNeutralStroke1Pressed);}",".f105swax:active::before{border-bottom-right-radius:var(--borderRadiusCircular);}",".fscdmel:active::before{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1tkcw1w:active::before{border-top-right-radius:var(--borderRadiusCircular);}",".f1u11x8o:active::before{border-top-left-radius:var(--borderRadiusCircular);}",'.f16cxu0:active::before{content:"";}',".f1nwgacf:active::before{position:absolute;}",".fhrzcfn:active::before{background-color:var(--colorTransparentStroke);}"],m:[["@media (forced-colors: active){.f15ovonk:hover::before{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fvje46l:active::before{background-color:Highlight;}}",{m:"(forced-colors: active)"}]],d:[".fchca7p::before{bottom:0;}",".f1r53b5e::before{height:var(--strokeWidthThick);}",".f1s6rxz5::before{left:var(--spacingHorizontalSNudge);}",".fo35v8s::before{right:var(--spacingHorizontalSNudge);}",".fze4zud::before{bottom:var(--spacingVerticalXS);}",".f1fzr1x6::before{left:0;}",".f1f351id::before{right:0;}",".fdp32p8::before{top:var(--spacingVerticalXS);}",".f1aij3q::before{width:var(--strokeWidthThicker);}",".f1s2r9ax::before{height:var(--strokeWidthThicker);}",".f1o0nnkk::before{left:var(--spacingHorizontalM);}",".fxb7rol::before{right:var(--spacingHorizontalM);}",".f17jracn::before{bottom:var(--spacingVerticalS);}",".f117lcb2::before{top:var(--spacingVerticalS);}",".fel9d3z::before{bottom:var(--spacingVerticalMNudge);}",".f6vqlre::before{top:var(--spacingVerticalMNudge);}"]}),$8e=At({base:{Bjyk6c5:"f1rp0jgh",B3778ie:["fprarqb","f14vs0nd"],d9w3h3:["f14vs0nd","fprarqb"],Bl18szs:["f1gtfqs9","f18zvfd9"],B4j8arr:["f18zvfd9","f1gtfqs9"],Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",t2ki1e:"ffmd2fr"},selected:{Bjyk6c5:"f1ksivud",Glksuk:"f1eytvvh",Blzl0y7:"fuaa9s",f7digc:"fy7ktjt",Biqphg1:"f16tp0gf",Bntoloa:"fj0yp7j"},disabled:{Bjyk6c5:"f13lkzet"},smallHorizontal:{By385i5:"fo72kxq",Dlnsje:"f9bb2ob",Eqx8gd:["f1q70ajw","f18rbzdx"],B1piin3:["f18rbzdx","f1q70ajw"]},smallVertical:{By385i5:"fqbue9b",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"fk1klkt",a2br6o:"f1o25lip"},mediumHorizontal:{By385i5:"fo72kxq",Dlnsje:"f1vx7lu8",Eqx8gd:["fna7m5n","f1oxpfwv"],B1piin3:["f1oxpfwv","fna7m5n"]},mediumVertical:{By385i5:"fipylg0",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"fqchiol",a2br6o:"f1o25lip"},largeHorizontal:{By385i5:"fo72kxq",Dlnsje:"f1vx7lu8",Eqx8gd:["fna7m5n","f1oxpfwv"],B1piin3:["f1oxpfwv","fna7m5n"]},largeVertical:{By385i5:"f1w7dm5g",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"f1p6em4m",a2br6o:"f1o25lip"}},{d:[".f1rp0jgh::after{background-color:var(--colorTransparentStroke);}",".fprarqb::after{border-bottom-right-radius:var(--borderRadiusCircular);}",".f14vs0nd::after{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1gtfqs9::after{border-top-right-radius:var(--borderRadiusCircular);}",".f18zvfd9::after{border-top-left-radius:var(--borderRadiusCircular);}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".ffmd2fr::after{z-index:1;}",".f1ksivud::after{background-color:var(--colorCompoundBrandStroke);}",".f13lkzet::after{background-color:var(--colorNeutralForegroundDisabled);}",".fo72kxq::after{bottom:0;}",".f9bb2ob::after{height:var(--strokeWidthThick);}",".f1q70ajw::after{left:var(--spacingHorizontalSNudge);}",".f18rbzdx::after{right:var(--spacingHorizontalSNudge);}",".fqbue9b::after{bottom:var(--spacingVerticalXS);}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".fk1klkt::after{top:var(--spacingVerticalXS);}",".f1o25lip::after{width:var(--strokeWidthThicker);}",".f1vx7lu8::after{height:var(--strokeWidthThicker);}",".fna7m5n::after{left:var(--spacingHorizontalM);}",".f1oxpfwv::after{right:var(--spacingHorizontalM);}",".fipylg0::after{bottom:var(--spacingVerticalS);}",".fqchiol::after{top:var(--spacingVerticalS);}",".f1w7dm5g::after{bottom:var(--spacingVerticalMNudge);}",".f1p6em4m::after{top:var(--spacingVerticalMNudge);}"],h:[".f1eytvvh:hover::after{background-color:var(--colorCompoundBrandStrokeHover);}"],a:[".fuaa9s:active::after{background-color:var(--colorCompoundBrandStrokePressed);}"],m:[["@media (forced-colors: active){.fy7ktjt::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16tp0gf:hover::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fj0yp7j:active::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}]]}),P8e=At({base:{Br312pm:"fwpfdsa",Ijaq50:"f16hsg94",Bt984gj:"f122n59",mc9l5x:"ftuwxu6",Brf1p80:"f4d9j23",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",D0sxk3:"f16u1re",t6yez3:"f8bsbmo"},small:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},medium:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},large:{Be2twd7:"f1rt2boy",Bqenvij:"frvgh55",a9b677:"fq4mcun"},selected:{D0sxk3:"fxoiby5",t6yez3:"f15q0o9g"}},{d:[".fwpfdsa{grid-column-start:1;}",".f16hsg94{grid-row-start:1;}",".f122n59{align-items:center;}",".ftuwxu6{display:inline-flex;}",".f4d9j23{justify-content:center;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".f16u1re .fui-Icon-filled{display:none;}",".f8bsbmo .fui-Icon-regular{display:inline;}",".fe5j1ua{font-size:20px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".f1rt2boy{font-size:24px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".fxoiby5 .fui-Icon-filled{display:inline;}",".f15q0o9g .fui-Icon-regular{display:none;}"]}),q8e=At({base:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",z8tnut:"fztplxc",z189sj:["ffczdla","fgiv446"],Byoj8tv:"f9g1xly",uwmqm3:["fgiv446","ffczdla"]},selected:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"fl43uef",Bg96gwp:"f1i3iumi"},large:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k"},largeSelected:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},noIconBefore:{Br312pm:"fwpfdsa",Ijaq50:"f16hsg94"},iconBefore:{Br312pm:"fd46tj4",Ijaq50:"f16hsg94"},placeholder:{Bcdw1i0:"fd7fpy0"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".fztplxc{padding-top:var(--spacingVerticalNone);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".f9g1xly{padding-bottom:var(--spacingVerticalNone);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fwpfdsa{grid-column-start:1;}",".f16hsg94{grid-row-start:1;}",".fd46tj4{grid-column-start:2;}",".fd7fpy0{visibility:hidden;}"]}),W8e=e=>{const t=j8e(),r=z8e(),n=H8e(),o=$8e(),i=P8e(),s=q8e(),{appearance:a,disabled:u,selected:l,size:c,vertical:f}=e;return e.root.className=Xe(hC.root,t.base,f?t.vertical:t.horizontal,c==="small"&&(f?t.smallVertical:t.smallHorizontal),c==="medium"&&(f?t.mediumVertical:t.mediumHorizontal),c==="large"&&(f?t.largeVertical:t.largeHorizontal),r.base,!u&&a==="subtle"&&t.subtle,!u&&a==="transparent"&&t.transparent,!u&&l&&t.selected,u&&t.disabled,n.base,c==="small"&&(f?n.smallVertical:n.smallHorizontal),c==="medium"&&(f?n.mediumVertical:n.mediumHorizontal),c==="large"&&(f?n.largeVertical:n.largeHorizontal),u&&n.disabled,l&&o.base,l&&!u&&o.selected,l&&c==="small"&&(f?o.smallVertical:o.smallHorizontal),l&&c==="medium"&&(f?o.mediumVertical:o.mediumHorizontal),l&&c==="large"&&(f?o.largeVertical:o.largeHorizontal),l&&u&&o.disabled,e.root.className),e.icon&&(e.icon.className=Xe(hC.icon,i.base,i[c],l&&i.selected,e.icon.className)),e.contentReservedSpace&&(e.contentReservedSpace.className=Xe(L8e.content,s.base,c==="large"?s.largeSelected:s.selected,e.icon?s.iconBefore:s.noIconBefore,s.placeholder,e.content.className),e.contentReservedSpaceClassName=e.contentReservedSpace.className),e.content.className=Xe(hC.content,s.base,c==="large"&&s.large,l&&(c==="large"?s.largeSelected:s.selected),e.icon?s.iconBefore:s.noIconBefore,e.content.className),M8e(e),e},gB=k.forwardRef((e,t)=>{const r=O8e(e,t);return W8e(r),yn("useTabStyles_unstable")(r),D8e(r)});gB.displayName="Tab";const K8e=(e,t)=>{const{appearance:r="transparent",reserveSelectedTabSpace:n=!0,disabled:o=!1,onTabSelect:i,selectTabOnFocus:s=!1,size:a="medium",vertical:u=!1}=e,l=k.useRef(null),c=Qae({circular:!0,axis:u?"vertical":"horizontal",memorizeCurrent:!0}),[f,d]=Sf({state:e.selectedValue,defaultState:e.defaultSelectedValue,initialState:void 0}),h=k.useRef(void 0),g=k.useRef(void 0);k.useEffect(()=>{g.current=h.current,h.current=f},[f]);const v=lr((b,A)=>{d(A.value),i==null||i(b,A)}),y=k.useRef({}),E=lr(b=>{y.current[JSON.stringify(b.value)]=b}),_=lr(b=>{delete y.current[JSON.stringify(b.value)]}),S=k.useCallback(()=>({selectedValue:h.current,previousSelectedValue:g.current,registeredTabs:y.current}),[]);return{components:{root:"div"},root:Sr(mn("div",{ref:di(t,l),role:"tablist","aria-orientation":u?"vertical":"horizontal",...c,...e}),{elementType:"div"}),appearance:r,reserveSelectedTabSpace:n,disabled:o,selectTabOnFocus:s,selectedValue:f,size:a,vertical:u,onRegister:E,onUnregister:_,onSelect:v,getRegisteredTabs:S}},G8e=(e,t)=>nt(e.root,{children:nt(R8e,{value:t.tabList,children:e.root.children})}),V8e={root:"fui-TabList"},U8e=At({root:{mc9l5x:"f22iagw",Beiy3e4:"f1063pyq",Bnnss6s:"fi64zpg",Eh141a:"flvyvdh",qhf8xq:"f10pi13n"},horizontal:{Bt984gj:"f1q9h2pe",Beiy3e4:"f1063pyq"},vertical:{Bt984gj:"f1q9h2pe",Beiy3e4:"f1vx9l62"}},{d:[".f22iagw{display:flex;}",".f1063pyq{flex-direction:row;}",".fi64zpg{flex-shrink:0;}",".flvyvdh{flex-wrap:nowrap;}",".f10pi13n{position:relative;}",".f1q9h2pe{align-items:stretch;}",".f1vx9l62{flex-direction:column;}"]}),Y8e=e=>{const{vertical:t}=e,r=U8e();return e.root.className=Xe(V8e.root,r.root,t?r.vertical:r.horizontal,e.root.className),e};function X8e(e){const{appearance:t,reserveSelectedTabSpace:r,disabled:n,selectTabOnFocus:o,selectedValue:i,onRegister:s,onUnregister:a,onSelect:u,getRegisteredTabs:l,size:c,vertical:f}=e;return{tabList:{appearance:t,reserveSelectedTabSpace:r,disabled:n,selectTabOnFocus:o,selectedValue:i,onSelect:u,onRegister:s,onUnregister:a,getRegisteredTabs:l,size:c,vertical:f}}}const Yue=k.forwardRef((e,t)=>{const r=K8e(e,t),n=X8e(r);return Y8e(r),yn("useTabListStyles_unstable")(r),G8e(r,n)});Yue.displayName="TabList";const th="__fluentDisableScrollElement";function Q8e(){const{targetDocument:e}=Ca();return k.useCallback(()=>{if(e)return Z8e(e.body)},[e])}function Z8e(e){var t;const{clientWidth:r}=e.ownerDocument.documentElement;var n;const o=(n=(t=e.ownerDocument.defaultView)===null||t===void 0?void 0:t.innerWidth)!==null&&n!==void 0?n:0;return J8e(e),e[th].count===0&&(e.style.overflow="hidden",e.style.paddingRight=`${o-r}px`),e[th].count++,()=>{e[th].count--,e[th].count===0&&(e.style.overflow=e[th].previousOverflowStyle,e.style.paddingRight=e[th].previousPaddingRightStyle)}}function J8e(e){var t,r,n;(n=(t=e)[r=th])!==null&&n!==void 0||(t[r]={count:0,previousOverflowStyle:e.style.overflow,previousPaddingRightStyle:e.style.paddingRight})}function e7e(e,t){const{findFirstFocusable:r}=Zae(),{targetDocument:n}=Ca(),o=k.useRef(null);return k.useEffect(()=>{if(!e)return;const i=o.current&&r(o.current);if(i)i.focus();else{var s;(s=o.current)===null||s===void 0||s.focus()}},[r,e,t,n]),o}const t7e={open:!1,inertTrapFocus:!1,modalType:"modal",isNestedDialog:!1,dialogRef:{current:null},requestOpenChange(){}},L8=vv(void 0),r7e=L8.Provider,tf=e=>Ko(L8,(t=t7e)=>e(t)),n7e=!1,Xue=k.createContext(void 0),Que=Xue.Provider,o7e=()=>{var e;return(e=k.useContext(Xue))!==null&&e!==void 0?e:n7e},i7e=e=>{const{children:t,modalType:r="modal",onOpenChange:n,inertTrapFocus:o=!1}=e,[i,s]=s7e(t),[a,u]=Sf({state:e.open,defaultState:e.defaultOpen,initialState:!1}),l=lr(v=>{n==null||n(v.event,v),v.event.isDefaultPrevented()||u(v.open)}),c=e7e(a,r),f=Q8e(),d=!!(a&&r!=="non-modal");uc(()=>{if(d)return f()},[f,d]);const{modalAttributes:h,triggerAttributes:g}=DT({trapFocus:r!=="non-modal",legacyTrapFocus:!o});return{components:{backdrop:"div"},inertTrapFocus:o,open:a,modalType:r,content:s,trigger:i,requestOpenChange:l,dialogTitleId:Ia("dialog-title-"),isNestedDialog:_8(L8),dialogRef:c,modalAttributes:r!=="non-modal"?h:void 0,triggerAttributes:g}};function s7e(e){const t=k.Children.toArray(e);switch(t.length){case 2:return t;case 1:return[void 0,t[0]];default:return[void 0,void 0]}}function So(){return So=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}function vB(e,t){return vB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},vB(e,t)}function z8(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,vB(e,t)}var Zue={exports:{}},a7e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",u7e=a7e,l7e=u7e;function Jue(){}function ele(){}ele.resetWarningCache=Jue;var c7e=function(){function e(n,o,i,s,a,u){if(u!==l7e){var l=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 l.name="Invariant Violation",l}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:ele,resetWarningCache:Jue};return r.PropTypes=r,r};Zue.exports=c7e();var f7e=Zue.exports;const Mr=Lf(f7e),jK={disabled:!1},tle=re.createContext(null);var d7e=function(t){return t.scrollTop},sy="unmounted",rh="exited",nh="entering",c0="entered",mB="exiting",Hf=function(e){z8(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var s=o,a=s&&!s.isMounting?n.enter:n.appear,u;return i.appearStatus=null,n.in?a?(u=rh,i.appearStatus=nh):u=c0:n.unmountOnExit||n.mountOnEnter?u=sy:u=rh,i.state={status:u},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===sy?{status:rh}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==nh&&s!==c0&&(i=nh):(s===nh||s===c0)&&(i=mB)}this.updateStatus(!1,i)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,i,s,a;return i=s=a=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,a=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:a}},r.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===nh){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:ry.findDOMNode(this);s&&d7e(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===rh&&this.setState({status:sy})},r.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,u=this.props.nodeRef?[a]:[ry.findDOMNode(this),a],l=u[0],c=u[1],f=this.getTimeouts(),d=a?f.appear:f.enter;if(!o&&!s||jK.disabled){this.safeSetState({status:c0},function(){i.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:nh},function(){i.props.onEntering(l,c),i.onTransitionEnd(d,function(){i.safeSetState({status:c0},function(){i.props.onEntered(l,c)})})})},r.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:ry.findDOMNode(this);if(!i||jK.disabled){this.safeSetState({status:rh},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:mB},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:rh},function(){o.props.onExited(a)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},r.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},r.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:ry.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],l=u[0],c=u[1];this.props.addEndListener(l,c)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===sy)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=j8(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return re.createElement(tle.Provider,{value:null},typeof s=="function"?s(o,a):re.cloneElement(re.Children.only(s),a))},t}(re.Component);Hf.contextType=tle;Hf.propTypes={};function Wp(){}Hf.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Wp,onEntering:Wp,onEntered:Wp,onExit:Wp,onExiting:Wp,onExited:Wp};Hf.UNMOUNTED=sy;Hf.EXITED=rh;Hf.ENTERING=nh;Hf.ENTERED=c0;Hf.EXITING=mB;const h7e=Hf;function zK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}const p7e=void 0,rle=k.createContext(void 0),g7e=rle.Provider,v7e=()=>{var e;return(e=k.useContext(rle))!==null&&e!==void 0?e:p7e},m7e=(e,t)=>{const{content:r,trigger:n}=e;return nt(r7e,{value:t.dialog,children:Vn(Que,{value:t.dialogSurface,children:[n,nt(h7e,{mountOnEnter:!0,unmountOnExit:!0,in:e.open,nodeRef:e.dialogRef,appear:!0,timeout:250,children:o=>nt(g7e,{value:o,children:r})})]})})};function y7e(e){const{modalType:t,open:r,dialogRef:n,dialogTitleId:o,isNestedDialog:i,inertTrapFocus:s,requestOpenChange:a,modalAttributes:u,triggerAttributes:l}=e;return{dialog:{open:r,modalType:t,dialogRef:n,dialogTitleId:o,isNestedDialog:i,inertTrapFocus:s,modalAttributes:u,triggerAttributes:l,requestOpenChange:a},dialogSurface:!1}}const H8=k.memo(e=>{const t=i7e(e),r=y7e(t);return m7e(t,r)});H8.displayName="Dialog";const b7e=e=>{const t=o7e(),{children:r,disableButtonEnhancement:n=!1,action:o=t?"close":"open"}=e,i=NT(r),s=tf(f=>f.requestOpenChange),{triggerAttributes:a}=DT(),u=lr(f=>{var d,h;i==null||(d=(h=i.props).onClick)===null||d===void 0||d.call(h,f),f.isDefaultPrevented()||s({event:f,type:"triggerClick",open:o==="open"})}),l={...i==null?void 0:i.props,ref:i==null?void 0:i.ref,onClick:u,...a},c=Wb((i==null?void 0:i.type)==="button"||(i==null?void 0:i.type)==="a"?i.type:"div",{...l,type:"button"});return{children:p8(r,n?l:c)}},_7e=e=>e.children,eE=e=>{const t=b7e(e);return _7e(t)};eE.displayName="DialogTrigger";eE.isFluentTriggerComponent=!0;const E7e=(e,t)=>{const{position:r="end",fluid:n=!1}=e;return{components:{root:"div"},root:Sr(mn("div",{ref:t,...e}),{elementType:"div"}),position:r,fluid:n}},S7e=e=>nt(e.root,{}),w7e={root:"fui-DialogActions"},A7e=kn("r78gbj",null,{r:[".r78gbj{column-gap:8px;row-gap:8px;height:fit-content;box-sizing:border-box;display:flex;grid-row-start:3;grid-row-end:3;}"],s:["@media screen and (max-width: 480px){.r78gbj{flex-direction:column;justify-self:stretch;}}"]}),k7e=At({gridPositionEnd:{Bdqf98w:"f1a7i8kp",Br312pm:"fd46tj4",Bw0ie65:"fsyjsko",B6n781s:"f1f41i0t",Bv5d0be:"f1jaqex3",v4ugfu:"f2ao6jk"},gridPositionStart:{Bdqf98w:"fsxvdwy",Br312pm:"fwpfdsa",Bw0ie65:"f1e2fz10",Bojbm9c:"f11ihkml",Bv5d0be:"fce5bvx",v4ugfu:"f2ao6jk"},fluidStart:{Bw0ie65:"fsyjsko"},fluidEnd:{Br312pm:"fwpfdsa"}},{d:[".f1a7i8kp{justify-self:end;}",".fd46tj4{grid-column-start:2;}",".fsyjsko{grid-column-end:4;}",".fsxvdwy{justify-self:start;}",".fwpfdsa{grid-column-start:1;}",".f1e2fz10{grid-column-end:2;}"],m:[["@media screen and (max-width: 480px){.f1f41i0t{grid-column-start:1;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f1jaqex3{grid-row-start:4;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f2ao6jk{grid-row-end:auto;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f11ihkml{grid-column-end:4;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.fce5bvx{grid-row-start:3;}}",{m:"screen and (max-width: 480px)"}]]}),x7e=e=>{const t=A7e(),r=k7e();return e.root.className=Xe(w7e.root,t,e.position==="start"&&r.gridPositionStart,e.position==="end"&&r.gridPositionEnd,e.fluid&&e.position==="start"&&r.fluidStart,e.fluid&&e.position==="end"&&r.fluidEnd,e.root.className),e},$8=k.forwardRef((e,t)=>{const r=E7e(e,t);return x7e(r),yn("useDialogActionsStyles_unstable")(r),S7e(r)});$8.displayName="DialogActions";const T7e=(e,t)=>{var r;return{components:{root:"div"},root:Sr(mn((r=e.as)!==null&&r!==void 0?r:"div",{ref:t,...e}),{elementType:"div"})}},I7e=e=>nt(e.root,{}),C7e={root:"fui-DialogBody"},N7e=kn("r71plkv",null,{r:[".r71plkv{overflow-x:unset;overflow-y:unset;column-gap:8px;row-gap:8px;display:grid;max-height:calc(100vh - 2 * 24px);box-sizing:border-box;grid-template-rows:auto 1fr;grid-template-columns:1fr 1fr auto;}"],s:["@media screen and (max-width: 480px){.r71plkv{max-width:100vw;grid-template-rows:auto 1fr auto;}}"]}),R7e=e=>{const t=N7e();return e.root.className=Xe(C7e.root,t,e.root.className),e},P8=k.forwardRef((e,t)=>{const r=T7e(e,t);return R7e(r),yn("useDialogBodyStyles_unstable")(r),I7e(r)});P8.displayName="DialogBody";const HK={root:"fui-DialogTitle",action:"fui-DialogTitle__action"},O7e=kn("rztv7rx","rt0yqbx",[".rztv7rx{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase500);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase500);margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;grid-row-start:1;grid-row-end:1;grid-column-start:1;grid-column-end:3;}",".rt0yqbx{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase500);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase500);margin-top:0;margin-left:0;margin-bottom:0;margin-right:0;grid-row-start:1;grid-row-end:1;grid-column-start:1;grid-column-end:3;}"]),D7e=At({rootWithoutAction:{Bw0ie65:"fsyjsko"}},{d:[".fsyjsko{grid-column-end:4;}"]}),F7e=kn("r13kcrze",null,[".r13kcrze{grid-row-start:1;grid-row-end:1;grid-column-start:3;justify-self:end;align-self:start;}"]),B7e=kn("r51tj","rgre5d",{r:[".r51tj{overflow-x:visible;overflow-y:visible;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0;border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;position:relative;box-sizing:content-box;background-color:inherit;color:inherit;font-family:inherit;font-size:inherit;cursor:pointer;line-height:0;-webkit-appearance:button;text-align:unset;}",".r51tj:focus{outline-style:none;}",".r51tj:focus-visible{outline-style:none;}",".r51tj[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r51tj[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rgre5d{overflow-x:visible;overflow-y:visible;padding-top:0;padding-left:0;padding-bottom:0;padding-right:0;border-top-style:none;border-left-style:none;border-bottom-style:none;border-right-style:none;position:relative;box-sizing:content-box;background-color:inherit;color:inherit;font-family:inherit;font-size:inherit;cursor:pointer;line-height:0;-webkit-appearance:button;text-align:unset;}",".rgre5d:focus{outline-style:none;}",".rgre5d:focus-visible{outline-style:none;}",".rgre5d[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rgre5d[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r51tj[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.rgre5d[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),M7e=e=>{const t=O7e(),r=F7e(),n=D7e();return e.root.className=Xe(HK.root,t,!e.action&&n.rootWithoutAction,e.root.className),e.action&&(e.action.className=Xe(HK.action,r,e.action.className)),e},L7e=(e,t)=>{const{action:r}=e,n=tf(i=>i.modalType),o=B7e();return{components:{root:"h2",action:"div"},root:Sr(mn("h2",{ref:t,id:tf(i=>i.dialogTitleId),...e}),{elementType:"h2"}),action:un(r,{renderByDefault:n==="non-modal",defaultProps:{children:k.createElement(eE,{disableButtonEnhancement:!0,action:"close"},k.createElement("button",{type:"button",className:o,"aria-label":"close"},k.createElement(xae,null)))},elementType:"div"})}},j7e=e=>Vn(k.Fragment,{children:[nt(e.root,{children:e.root.children}),e.action&&nt(e.action,{})]}),q8=k.forwardRef((e,t)=>{const r=L7e(e,t);return M7e(r),yn("useDialogTitleStyles_unstable")(r),j7e(r)});q8.displayName="DialogTitle";const z7e=(e,t)=>{const r=tf(d=>d.modalType),n=tf(d=>d.isNestedDialog),o=v7e(),i=tf(d=>d.modalAttributes),s=tf(d=>d.dialogRef),a=tf(d=>d.requestOpenChange),u=tf(d=>d.dialogTitleId),l=lr(d=>{if(f8(e.backdrop)){var h,g;(h=(g=e.backdrop).onClick)===null||h===void 0||h.call(g,d)}r==="modal"&&!d.isDefaultPrevented()&&a({event:d,open:!1,type:"backdropClick"})}),c=lr(d=>{var h;(h=e.onKeyDown)===null||h===void 0||h.call(e,d),d.key===BT&&!d.isDefaultPrevented()&&(a({event:d,open:!1,type:"escapeKeyDown"}),d.preventDefault())}),f=un(e.backdrop,{renderByDefault:r!=="non-modal",defaultProps:{"aria-hidden":"true"},elementType:"div"});return f&&(f.onClick=l),{components:{backdrop:"div",root:"div"},backdrop:f,isNestedDialog:n,transitionStatus:o,mountNode:e.mountNode,root:Sr(mn("div",{tabIndex:-1,"aria-modal":r!=="non-modal",role:r==="alert"?"alertdialog":"dialog","aria-labelledby":e["aria-label"]?void 0:u,...e,...i,onKeyDown:c,ref:di(t,s)}),{elementType:"div"})}},H7e=(e,t)=>Vn(Z_,{mountNode:e.mountNode,children:[e.backdrop&&nt(e.backdrop,{}),nt(Que,{value:t.dialogSurface,children:nt(e.root,{})})]}),$K={root:"fui-DialogSurface",backdrop:"fui-DialogSurface__backdrop"},$7e=kn("rhhzfde","r1n1tr5u",{r:[".rhhzfde{top:0;right:0;bottom:0;left:0;padding-top:24px;padding-right:24px;padding-bottom:24px;padding-left:24px;margin-top:auto;margin-right:auto;margin-bottom:auto;margin-left:auto;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;overflow-x:unset;overflow-y:unset;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-color:var(--colorTransparentStroke);border-right-color:var(--colorTransparentStroke);border-bottom-color:var(--colorTransparentStroke);border-left-color:var(--colorTransparentStroke);border-bottom-right-radius:var(--borderRadiusXLarge);border-bottom-left-radius:var(--borderRadiusXLarge);border-top-right-radius:var(--borderRadiusXLarge);border-top-left-radius:var(--borderRadiusXLarge);display:block;-webkit-user-select:unset;-moz-user-select:unset;-ms-user-select:unset;user-select:unset;visibility:unset;position:fixed;height:fit-content;max-width:600px;max-height:100vh;box-sizing:border-box;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);}",".rhhzfde:focus{outline-style:none;}",".rhhzfde:focus-visible{outline-style:none;}",".rhhzfde[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.rhhzfde[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r1n1tr5u{top:0;left:0;bottom:0;right:0;padding-top:24px;padding-left:24px;padding-bottom:24px;padding-right:24px;margin-top:auto;margin-left:auto;margin-bottom:auto;margin-right:auto;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;overflow-x:unset;overflow-y:unset;border-top-width:1px;border-left-width:1px;border-bottom-width:1px;border-right-width:1px;border-top-color:var(--colorTransparentStroke);border-left-color:var(--colorTransparentStroke);border-bottom-color:var(--colorTransparentStroke);border-right-color:var(--colorTransparentStroke);border-bottom-left-radius:var(--borderRadiusXLarge);border-bottom-right-radius:var(--borderRadiusXLarge);border-top-left-radius:var(--borderRadiusXLarge);border-top-right-radius:var(--borderRadiusXLarge);display:block;-webkit-user-select:unset;-moz-user-select:unset;-ms-user-select:unset;user-select:unset;visibility:unset;position:fixed;height:fit-content;max-width:600px;max-height:100vh;box-sizing:border-box;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);}",".r1n1tr5u:focus{outline-style:none;}",".r1n1tr5u:focus-visible{outline-style:none;}",".r1n1tr5u[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r1n1tr5u[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.rhhzfde[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media screen and (max-width: 480px){.rhhzfde{max-width:100vw;}}","@media (forced-colors: active){.r1n1tr5u[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}","@media screen and (max-width: 480px){.r1n1tr5u{max-width:100vw;}}"]}),P7e=At({animated:{abs64n:"fk73vx1",B3o57yi:"fc397y7",Bmy1vo4:"f1b86uth",Bkqvd7p:"f18ad807",E5pizo:"f1yzz98r",Bz10aip:"f15ofi6c"},unmounted:{},entering:{},entered:{E5pizo:"f10nrhrw",Bz10aip:"f186d0ee",abs64n:"f5p0z4x"},idle:{},exiting:{Bkqvd7p:"f1mfizis"},exited:{}},{d:[".fk73vx1{opacity:0;}",".fc397y7{transition-duration:var(--durationGentle);}",".f1b86uth{transition-property:opacity,transform,box-shadow;}",".f18ad807{transition-timing-function:var(--curveDecelerateMid);}",".f1yzz98r{box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.1);}",".f15ofi6c{transform:scale(0.85) translateZ(0);}",".f10nrhrw{box-shadow:var(--shadow64);}",".f186d0ee{transform:scale(1) translateZ(0);}",".f5p0z4x{opacity:1;}",".f1mfizis{transition-timing-function:var(--curveAccelerateMin);}"]}),q7e=kn("raidwwn","r17vltcu",[".raidwwn{top:0px;right:0px;bottom:0px;left:0px;background-color:rgba(0, 0, 0, 0.4);position:fixed;transition-duration:var(--durationGentle);transition-timing-function:var(--curveLinear);transition-property:opacity;will-change:opacity;opacity:0;}",".r17vltcu{top:0px;left:0px;bottom:0px;right:0px;background-color:rgba(0, 0, 0, 0.4);position:fixed;transition-duration:var(--durationGentle);transition-timing-function:var(--curveLinear);transition-property:opacity;will-change:opacity;opacity:0;}"]),W7e=At({nestedDialogBackdrop:{De3pzq:"f1c21dwh"},unmounted:{},entering:{},entered:{abs64n:"f5p0z4x"},idle:{},exiting:{Bkqvd7p:"f1mfizis"},exited:{}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f5p0z4x{opacity:1;}",".f1mfizis{transition-timing-function:var(--curveAccelerateMin);}"]}),K7e=e=>{const{isNestedDialog:t,root:r,backdrop:n,transitionStatus:o}=e,i=$7e(),s=P7e(),a=q7e(),u=W7e();return r.className=Xe($K.root,i,o&&s.animated,o&&s[o],r.className),n&&(n.className=Xe($K.backdrop,a,t&&u.nestedDialogBackdrop,o&&u[o],n.className)),e};function G7e(e){return{dialogSurface:!0}}const W8=k.forwardRef((e,t)=>{const r=z7e(e,t),n=G7e();return K7e(r),yn("useDialogSurfaceStyles_unstable")(r),H7e(r,n)});W8.displayName="DialogSurface";const V7e=(e,t)=>{var r;return{components:{root:"div"},root:Sr(mn((r=e.as)!==null&&r!==void 0?r:"div",{ref:t,...e}),{elementType:"div"})}},U7e=e=>nt(e.root,{}),Y7e={root:"fui-DialogContent"},X7e=kn("r1e0mpcm","r1equu0b",[".r1e0mpcm{padding-top:var(--strokeWidthThick);padding-right:var(--strokeWidthThick);padding-bottom:var(--strokeWidthThick);padding-left:var(--strokeWidthThick);margin-top:calc(var(--strokeWidthThick) * -1);margin-right:calc(var(--strokeWidthThick) * -1);margin-bottom:calc(var(--strokeWidthThick) * -1);margin-left:calc(var(--strokeWidthThick) * -1);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);overflow-y:auto;min-height:32px;box-sizing:border-box;grid-row-start:2;grid-row-end:2;grid-column-start:1;grid-column-end:4;}",".r1equu0b{padding-top:var(--strokeWidthThick);padding-left:var(--strokeWidthThick);padding-bottom:var(--strokeWidthThick);padding-right:var(--strokeWidthThick);margin-top:calc(var(--strokeWidthThick) * -1);margin-left:calc(var(--strokeWidthThick) * -1);margin-bottom:calc(var(--strokeWidthThick) * -1);margin-right:calc(var(--strokeWidthThick) * -1);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);overflow-y:auto;min-height:32px;box-sizing:border-box;grid-row-start:2;grid-row-end:2;grid-column-start:1;grid-column-end:4;}"]),Q7e=e=>{const t=X7e();return e.root.className=Xe(Y7e.root,t,e.root.className),e},K8=k.forwardRef((e,t)=>{const r=V7e(e,t);return Q7e(r),yn("useDialogContentStyles_unstable")(r),U7e(r)});K8.displayName="DialogContent";const nle=k.createContext(void 0),Z7e={handleTagDismiss:()=>({}),size:"medium"};nle.Provider;const J7e=()=>{var e;return(e=k.useContext(nle))!==null&&e!==void 0?e:Z7e},eje={medium:28,small:20,"extra-small":16},tje={rounded:"square",circular:"circular"},rje=(e,t)=>{const{handleTagDismiss:r,size:n}=J7e(),o=Ia("fui-Tag",e.id),{appearance:i="filled",disabled:s=!1,dismissible:a=!1,shape:u="rounded",size:l=n,value:c=o}=e,f=lr(g=>{var v;(v=e.onClick)===null||v===void 0||v.call(e,g),g.defaultPrevented||r==null||r(g,{value:c})}),d=lr(g=>{var v;e==null||(v=e.onKeyDown)===null||v===void 0||v.call(e,g),!g.defaultPrevented&&(g.key===YBe||g.key===UBe)&&(r==null||r(g,{value:c}))}),h=a?"button":"span";return{appearance:i,avatarShape:tje[u],avatarSize:eje[l],disabled:s,dismissible:a,shape:u,size:l,components:{root:h,media:"span",icon:"span",primaryText:"span",secondaryText:"span",dismissIcon:"span"},root:Sr(mn(h,{ref:t,...e,id:o,...a&&{onClick:f,onKeyDown:d}}),{elementType:h}),media:un(e.media,{elementType:"span"}),icon:un(e.icon,{elementType:"span"}),primaryText:un(e.primaryText,{renderByDefault:!0,defaultProps:{children:e.children},elementType:"span"}),secondaryText:un(e.secondaryText,{elementType:"span"}),dismissIcon:un(e.dismissIcon,{renderByDefault:a,defaultProps:{children:k.createElement(Sae,null),role:"img"},elementType:"span"})}},nje=(e,t)=>Vn(e.root,{children:[e.media&&nt(vMe,{value:t.avatar,children:nt(e.media,{})}),e.icon&&nt(e.icon,{}),e.primaryText&&nt(e.primaryText,{}),e.secondaryText&&nt(e.secondaryText,{}),e.dismissIcon&&e.dismissible&&nt(e.dismissIcon,{})]}),Kp={root:"fui-Tag",media:"fui-Tag__media",icon:"fui-Tag__icon",primaryText:"fui-Tag__primaryText",secondaryText:"fui-Tag__secondaryText",dismissIcon:"fui-Tag__dismissIcon"},oje=kn("r1d3fbai","r89ofxt",{r:['.r1d3fbai{font-family:inherit;padding:0px;-webkit-appearance:button;-moz-appearance:button;-ms-appearance:button;appearance:button;text-align:unset;display:inline-grid;align-items:center;grid-template-areas:"media primary dismissIcon" "media secondary dismissIcon";box-sizing:border-box;width:fit-content;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusMedium);}',".r1d3fbai[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);outline-width:var(--strokeWidthThick);outline-style:solid;outline-color:var(--colorStrokeFocus2);}",'.r89ofxt{font-family:inherit;padding:0px;-webkit-appearance:button;-moz-appearance:button;-ms-appearance:button;appearance:button;text-align:unset;display:inline-grid;align-items:center;grid-template-areas:"media primary dismissIcon" "media secondary dismissIcon";box-sizing:border-box;width:fit-content;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusMedium);}',".r89ofxt[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);outline-width:var(--strokeWidthThick);outline-style:solid;outline-color:var(--colorStrokeFocus2);}"],s:['@media (forced-colors: active){.r1d3fbai{position:relative;}.r1d3fbai::before{content:"";border-top-width:var(--strokeWidthThin);border-top-style:solid;position:absolute;top:-1px;left:-1px;right:-1px;bottom:-1px;border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);}}','@media (forced-colors: active){.r89ofxt{position:relative;}.r89ofxt::before{content:"";border-top-width:var(--strokeWidthThin);border-top-style:solid;position:absolute;top:-1px;right:-1px;left:-1px;bottom:-1px;border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);}}']}),ije=kn("r76els4","r1g7lw0i",{r:['.r76els4{font-family:inherit;padding:0px;-webkit-appearance:button;-moz-appearance:button;-ms-appearance:button;appearance:button;text-align:unset;display:inline-grid;align-items:center;grid-template-areas:"media primary dismissIcon" "media secondary dismissIcon";box-sizing:border-box;width:fit-content;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusCircular);}',".r76els4[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusCircular);border-bottom-left-radius:var(--borderRadiusCircular);border-top-right-radius:var(--borderRadiusCircular);border-top-left-radius:var(--borderRadiusCircular);outline-width:var(--strokeWidthThick);outline-style:solid;outline-color:var(--colorStrokeFocus2);}",'.r1g7lw0i{font-family:inherit;padding:0px;-webkit-appearance:button;-moz-appearance:button;-ms-appearance:button;appearance:button;text-align:unset;display:inline-grid;align-items:center;grid-template-areas:"media primary dismissIcon" "media secondary dismissIcon";box-sizing:border-box;width:fit-content;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusCircular);}',".r1g7lw0i[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusCircular);border-bottom-right-radius:var(--borderRadiusCircular);border-top-left-radius:var(--borderRadiusCircular);border-top-right-radius:var(--borderRadiusCircular);outline-width:var(--strokeWidthThick);outline-style:solid;outline-color:var(--colorStrokeFocus2);}"],s:['@media (forced-colors: active){.r76els4{position:relative;}.r76els4::before{content:"";border-top-width:var(--strokeWidthThin);border-top-style:solid;border-left-width:var(--strokeWidthThin);border-left-style:solid;border-right-width:var(--strokeWidthThin);border-right-style:solid;position:absolute;top:-1px;left:-1px;right:-1px;bottom:-1px;border-radius:var(--borderRadiusCircular);}}','@media (forced-colors: active){.r1g7lw0i{position:relative;}.r1g7lw0i::before{content:"";border-top-width:var(--strokeWidthThin);border-top-style:solid;border-right-width:var(--strokeWidthThin);border-right-style:solid;border-left-width:var(--strokeWidthThin);border-left-style:solid;position:absolute;top:-1px;right:-1px;left:-1px;bottom:-1px;border-radius:var(--borderRadiusCircular);}}']}),sje=At({filled:{De3pzq:"f16xq7d1",sj55zd:"fkfq4zb"},outline:{De3pzq:"fhovq9v",sj55zd:"fkfq4zb",g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1aperda",zhjwy3:["f1lxtadh","f1akhkt"]},brand:{De3pzq:"f16xkysk",sj55zd:"faj9fo0"},medium:{Bqenvij:"f1d2rq10"},small:{Bqenvij:"frvgh55"},"extra-small":{Bqenvij:"fjamq6b"}},{d:[".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1aperda{border-bottom-color:var(--colorNeutralStroke1);}",".f16xkysk{background-color:var(--colorBrandBackground2);}",".faj9fo0{color:var(--colorBrandForeground2);}",".f1d2rq10{height:32px;}",".frvgh55{height:24px;}",".fjamq6b{height:20px;}"]}),aje=At({filled:{Bceei9c:"fdrzuqr",De3pzq:"f1bg9a2p",sj55zd:"f1s2aq7o",g2u3we:"fgig46g",h3c5rm:["f1mxt3zg","fziff3p"],B9xav0g:"f250w3l",zhjwy3:["fziff3p","f1mxt3zg"]},outline:{Bceei9c:"fdrzuqr",De3pzq:"fhovq9v",sj55zd:"f1s2aq7o",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"]},brand:{Bceei9c:"fdrzuqr",De3pzq:"f1bg9a2p",sj55zd:"f1s2aq7o",g2u3we:"fgig46g",h3c5rm:["f1mxt3zg","fziff3p"],B9xav0g:"f250w3l",zhjwy3:["fziff3p","f1mxt3zg"]}},{d:[".fdrzuqr{cursor:not-allowed;}",".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fgig46g{border-top-color:var(--colorTransparentStrokeDisabled);}",".f1mxt3zg{border-right-color:var(--colorTransparentStrokeDisabled);}",".fziff3p{border-left-color:var(--colorTransparentStrokeDisabled);}",".f250w3l{border-bottom-color:var(--colorTransparentStrokeDisabled);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}"]}),uje=At({medium:{uwmqm3:["f1rtp3s9","f18k1jr3"]},small:{uwmqm3:["f15vdbe4","fwiuce9"]},"extra-small":{uwmqm3:["f15vdbe4","fwiuce9"]}},{d:[".f1rtp3s9{padding-left:7px;}",".f18k1jr3{padding-right:7px;}",".f15vdbe4{padding-left:5px;}",".fwiuce9{padding-right:5px;}"]}),lje=At({medium:{z189sj:["f18k1jr3","f1rtp3s9"]},small:{z189sj:["fwiuce9","f15vdbe4"]},"extra-small":{z189sj:["fwiuce9","f15vdbe4"]}},{d:[".f18k1jr3{padding-right:7px;}",".f1rtp3s9{padding-left:7px;}",".fwiuce9{padding-right:5px;}",".f15vdbe4{padding-left:5px;}"]}),cje=At({base:{Ijaq50:"f11uok23",Br312pm:"f1qdfnnj",nk6f5a:"f1s27gz",Bw0ie65:"f86d0yl",mc9l5x:"f22iagw"},medium:{uwmqm3:["f1rtp3s9","f18k1jr3"],z189sj:["f7x41pl","fruq291"],a9b677:"f64fuq3",Be2twd7:"fe5j1ua"},small:{uwmqm3:["f15vdbe4","fwiuce9"],z189sj:["ffczdla","fgiv446"],a9b677:"fjw5fx7",Be2twd7:"f4ybsrx"},"extra-small":{uwmqm3:["f15vdbe4","fwiuce9"],z189sj:["ffczdla","fgiv446"],a9b677:"frx94fk",Be2twd7:"f1ugzwwg"}},{d:[".f11uok23{grid-row-start:media;}",".f1qdfnnj{grid-column-start:media;}",".f1s27gz{grid-row-end:media;}",".f86d0yl{grid-column-end:media;}",".f22iagw{display:flex;}",".f1rtp3s9{padding-left:7px;}",".f18k1jr3{padding-right:7px;}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f64fuq3{width:20px;}",".fe5j1ua{font-size:20px;}",".f15vdbe4{padding-left:5px;}",".fwiuce9{padding-right:5px;}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".fjw5fx7{width:16px;}",".f4ybsrx{font-size:16px;}",".frx94fk{width:12px;}",".f1ugzwwg{font-size:12px;}"]}),fje=At({base:{Ijaq50:"f11uok23",Br312pm:"f1qdfnnj",nk6f5a:"f1s27gz",Bw0ie65:"f86d0yl",mc9l5x:"f22iagw",uwmqm3:["f10xn8zz","f136y8j8"]},medium:{z189sj:["f1vdfbxk","f1f5gg8d"]},small:{z189sj:["fdw0yi8","fk8j09s"]},"extra-small":{z189sj:["fdw0yi8","fk8j09s"]}},{d:[".f11uok23{grid-row-start:media;}",".f1qdfnnj{grid-column-start:media;}",".f1s27gz{grid-row-end:media;}",".f86d0yl{grid-column-end:media;}",".f22iagw{display:flex;}",".f10xn8zz{padding-left:1px;}",".f136y8j8{padding-right:1px;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}"]}),dje=At({base:{Ijaq50:"fneo8i2",Br312pm:"frbqjvc",nk6f5a:"f1a6k60w",Bw0ie65:"f1ay3jj",mc9l5x:"f22iagw",ze5xyy:"f4xjyn1",oy3o9n:"f1xtr1b3"},medium:{uwmqm3:["fruq291","f7x41pl"],z189sj:["f18k1jr3","f1rtp3s9"],Be2twd7:"fe5j1ua"},small:{uwmqm3:["fgiv446","ffczdla"],z189sj:["fwiuce9","f15vdbe4"],Be2twd7:"f4ybsrx"},"extra-small":{uwmqm3:["fgiv446","ffczdla"],z189sj:["fwiuce9","f15vdbe4"],Be2twd7:"f1ugzwwg"},filled:{eoavqd:"f8491dx",Bi91k9c:"f3ymbdj",lj723h:"fryz5bw"},outline:{eoavqd:"f8491dx",Bi91k9c:"f3ymbdj",lj723h:"fryz5bw"},brand:{eoavqd:"f8491dx",Bi91k9c:"f3ymbdj",lj723h:"fryz5bw"}},{d:[".fneo8i2{grid-row-start:dismissIcon;}",".frbqjvc{grid-column-start:dismissIcon;}",".f1a6k60w{grid-row-end:dismissIcon;}",".f1ay3jj{grid-column-end:dismissIcon;}",".f22iagw{display:flex;}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".f18k1jr3{padding-right:7px;}",".f1rtp3s9{padding-left:7px;}",".fe5j1ua{font-size:20px;}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fwiuce9{padding-right:5px;}",".f15vdbe4{padding-left:5px;}",".f4ybsrx{font-size:16px;}",".f1ugzwwg{font-size:12px;}"],m:[["@media (forced-colors: active){.f4xjyn1:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1xtr1b3:active{color:Highlight;}}",{m:"(forced-colors: active)"}]],h:[".f8491dx:hover{cursor:pointer;}",".f3ymbdj:hover{color:var(--colorCompoundBrandForeground1Hover);}"],a:[".fryz5bw:active{color:var(--colorCompoundBrandForeground1Pressed);}"]}),hje=At({base:{Huce71:"fz5stix",uwmqm3:["fgiv446","ffczdla"],z189sj:["ffczdla","fgiv446"]},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},small:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},"extra-small":{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},withoutSecondaryText:{Br312pm:"faqcfhe",Ijaq50:"f1q3ipgb",nk6f5a:"fc0ab3q",Byoj8tv:"f1g03r3y"},withSecondaryText:{Ijaq50:"f1q3ipgb",Br312pm:"faqcfhe",nk6f5a:"fs32cm1",Bw0ie65:"f1bo7viq",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",B6of3ja:"f1ryq6si"}},{d:[".fz5stix{white-space:nowrap;}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".faqcfhe{grid-column-start:primary;}",".f1q3ipgb{grid-row-start:primary;}",".fc0ab3q{grid-row-end:secondary;}",".f1g03r3y{padding-bottom:var(--spacingHorizontalXXS);}",".fs32cm1{grid-row-end:primary;}",".f1bo7viq{grid-column-end:primary;}",".f1ryq6si{margin-top:-2px;}"]}),pje=kn("r7hv1ps","rnrslm9",[".r7hv1ps{grid-area:secondary;padding-left:var(--spacingHorizontalXXS);padding-right:var(--spacingHorizontalXXS);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase100);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase100);white-space:nowrap;}",".rnrslm9{grid-area:secondary;padding-right:var(--spacingHorizontalXXS);padding-left:var(--spacingHorizontalXXS);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase100);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase100);white-space:nowrap;}"]),gje=e=>{const t=oje(),r=ije(),n=sje(),o=aje(),i=uje(),s=lje(),a=cje(),u=fje(),l=dje(),c=hje(),f=pje(),{shape:d,size:h,appearance:g}=e;return e.root.className=Xe(Kp.root,d==="rounded"?t:r,e.disabled?o[g]:n[g],n[h],!e.media&&!e.icon&&i[h],!e.dismissIcon&&s[h],e.root.className),e.media&&(e.media.className=Xe(Kp.media,u.base,u[h],e.media.className)),e.icon&&(e.icon.className=Xe(Kp.icon,a.base,a[h],e.icon.className)),e.primaryText&&(e.primaryText.className=Xe(Kp.primaryText,c.base,c[h],e.secondaryText?c.withSecondaryText:c.withoutSecondaryText,e.primaryText.className)),e.secondaryText&&(e.secondaryText.className=Xe(Kp.secondaryText,f,e.secondaryText.className)),e.dismissIcon&&(e.dismissIcon.className=Xe(Kp.dismissIcon,l.base,l[h],!e.disabled&&l[g],e.dismissIcon.className)),e};function vje(e){const{avatarSize:t,avatarShape:r}=e;return{avatar:k.useMemo(()=>({size:t,shape:r}),[r,t])}}const ole=k.forwardRef((e,t)=>{const r=rje(e,t);return gje(r),yn("useTagStyles_unstable")(r),nje(r,vje(r))});ole.displayName="Tag";function mje(e){switch(e){case"info":return k.createElement(t3e,null);case"warning":return k.createElement(r3e,null);case"error":return k.createElement(e3e,null);case"success":return k.createElement(QDe,null);default:return null}}function yje(e=!1){const{targetDocument:t}=Ca(),r=k.useReducer(()=>({}),{})[1],n=k.useRef(!1),o=k.useRef(null),i=k.useRef(-1),s=k.useCallback(u=>{const l=u[0],c=l==null?void 0:l.borderBoxSize[0];if(!c||!l)return;const{inlineSize:f}=c,{target:d}=l;if(!Hb(d))return;let h;if(n.current)i.current{var l;if(!e||!u||!(t!=null&&t.defaultView))return;(l=o.current)===null||l===void 0||l.disconnect();const c=t.defaultView,f=new c.ResizeObserver(s);o.current=f,f.observe(u,{box:"border-box"})},[t,s,e]);return k.useEffect(()=>()=>{var u;(u=o.current)===null||u===void 0||u.disconnect()},[]),{ref:a,reflowing:n.current}}const ile=k.createContext(void 0),bje={className:"",nodeRef:k.createRef()};ile.Provider;const _je=()=>{var e;return(e=k.useContext(ile))!==null&&e!==void 0?e:bje},Eje=(e,t)=>{const{layout:r="auto",intent:n="info",politeness:o,shape:i="rounded"}=e,s=o??n==="info"?"polite":"assertive",a=r==="auto",{ref:u,reflowing:l}=yje(a),c=a?l?"multiline":"singleline":r,{className:f,nodeRef:d}=_je(),h=k.useRef(null),g=k.useRef(null),{announce:v}=BDe(),y=Ia();return k.useEffect(()=>{var E,_;const S=(E=g.current)===null||E===void 0?void 0:E.textContent,b=(_=h.current)===null||_===void 0?void 0:_.textContent,A=[S,b].filter(Boolean).join(",");v(A,{polite:s==="polite",alert:s==="assertive"})},[g,h,v,s]),{components:{root:"div",icon:"div"},root:Sr(mn("div",{ref:di(t,u,d),role:"group","aria-labelledby":y,...e}),{elementType:"div"}),icon:un(e.icon,{renderByDefault:!0,elementType:"div",defaultProps:{children:mje(n)}}),layout:c,intent:n,transitionClassName:f,actionsRef:h,bodyRef:g,titleId:y,shape:i}},sle=k.createContext(void 0),Sje={titleId:"",layout:"singleline",actionsRef:k.createRef(),bodyRef:k.createRef()},wje=sle.Provider,ale=()=>{var e;return(e=k.useContext(sle))!==null&&e!==void 0?e:Sje},Aje=(e,t)=>nt(wje,{value:t.messageBar,children:Vn(e.root,{children:[e.icon&&nt(e.icon,{}),e.root.children]})}),PK={root:"fui-MessageBar",icon:"fui-MessageBar__icon"},kje=kn("rashqx","ri1c0vc",['.rashqx{white-space:nowrap;display:grid;grid-template-columns:auto 1fr auto auto;grid-template-rows:1fr;grid-template-areas:"icon body secondaryActions actions";padding-left:var(--spacingHorizontalM);border-top-width:var(--strokeWidthThin);border-right-width:var(--strokeWidthThin);border-bottom-width:var(--strokeWidthThin);border-left-width:var(--strokeWidthThin);border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:var(--colorNeutralStroke1);border-right-color:var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStroke1);border-left-color:var(--colorNeutralStroke1);border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);align-items:center;min-height:36px;box-sizing:border-box;background-color:var(--colorNeutralBackground3);}','.ri1c0vc{white-space:nowrap;display:grid;grid-template-columns:auto 1fr auto auto;grid-template-rows:1fr;grid-template-areas:"icon body secondaryActions actions";padding-right:var(--spacingHorizontalM);border-top-width:var(--strokeWidthThin);border-left-width:var(--strokeWidthThin);border-bottom-width:var(--strokeWidthThin);border-right-width:var(--strokeWidthThin);border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-color:var(--colorNeutralStroke1);border-left-color:var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStroke1);border-right-color:var(--colorNeutralStroke1);border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);align-items:center;min-height:36px;box-sizing:border-box;background-color:var(--colorNeutralBackground3);}']),xje=kn("r1bxgyar","rv8i6h8",[".r1bxgyar{grid-row-start:icon;grid-column-start:icon;grid-row-end:icon;grid-column-end:icon;font-size:var(--fontSizeBase500);margin-right:var(--spacingHorizontalS);color:var(--colorNeutralForeground3);display:flex;align-items:center;}",".rv8i6h8{grid-row-start:icon;grid-column-start:icon;grid-row-end:icon;grid-column-end:icon;font-size:var(--fontSizeBase500);margin-left:var(--spacingHorizontalS);color:var(--colorNeutralForeground3);display:flex;align-items:center;}"]),Tje=At({rootMultiline:{Huce71:"f6juhto",Bt984gj:"f1s2louj",z8tnut:"f1ngh7ph",Budl1dq:"f17g0uqy",zoa1oz:"f1w7oly7"},secondaryActionsMultiline:{Brf1p80:"f1e8xxv9",B6of3ja:"f1gaxbfw",jrapky:"fqcjy3b",t21cq0:["fibjyge","f9yszdx"]},square:{Bbmb7ep:["f1krrbdw","f1deotkl"],Beyfa6y:["f1deotkl","f1krrbdw"],B7oj6ja:["f10ostut","f1ozlkrg"],Btl43ni:["f1ozlkrg","f10ostut"]}},{d:[".f6juhto{white-space:normal;}",".f1s2louj{align-items:start;}",".f1ngh7ph{padding-top:var(--spacingVerticalMNudge);}",".f17g0uqy{grid-template-columns:auto 1fr auto;}",'.f1w7oly7{grid-template-areas:"icon body actions" "secondaryActions secondaryActions secondaryActions";}',".f1e8xxv9{justify-content:end;}",".f1gaxbfw{margin-top:var(--spacingVerticalMNudge);}",".fqcjy3b{margin-bottom:var(--spacingVerticalS);}",".fibjyge{margin-right:0px;}",".f9yszdx{margin-left:0px;}",".f1krrbdw{border-bottom-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1ozlkrg{border-top-left-radius:0;}"]}),Ije=At({info:{},error:{sj55zd:"f1ca9wz"},warning:{sj55zd:"f14a4cve"},success:{sj55zd:"f36rra6"}},{d:[".f1ca9wz{color:var(--colorStatusDangerForeground1);}",".f14a4cve{color:var(--colorStatusWarningForeground3);}",".f36rra6{color:var(--colorStatusSuccessForeground1);}"]}),Cje=At({info:{},error:{De3pzq:"f1eon7jj",g2u3we:"f1f8dvr7",h3c5rm:["f1g1ijmo","f1nxacbt"],B9xav0g:"fo25q1j",zhjwy3:["f1nxacbt","f1g1ijmo"]},warning:{De3pzq:"f13ftzij",g2u3we:"frd1ypx",h3c5rm:["f1gyjrma","f18qd5xz"],B9xav0g:"fqyqtrt",zhjwy3:["f18qd5xz","f1gyjrma"]},success:{De3pzq:"f64thcm",g2u3we:"f1b4u7v",h3c5rm:["f1nyd2b1","f70v3om"],B9xav0g:"fk173vo",zhjwy3:["f70v3om","f1nyd2b1"]}},{d:[".f1eon7jj{background-color:var(--colorStatusDangerBackground1);}",".f1f8dvr7{border-top-color:var(--colorStatusDangerBorder1);}",".f1g1ijmo{border-right-color:var(--colorStatusDangerBorder1);}",".f1nxacbt{border-left-color:var(--colorStatusDangerBorder1);}",".fo25q1j{border-bottom-color:var(--colorStatusDangerBorder1);}",".f13ftzij{background-color:var(--colorStatusWarningBackground1);}",".frd1ypx{border-top-color:var(--colorStatusWarningBorder1);}",".f1gyjrma{border-right-color:var(--colorStatusWarningBorder1);}",".f18qd5xz{border-left-color:var(--colorStatusWarningBorder1);}",".fqyqtrt{border-bottom-color:var(--colorStatusWarningBorder1);}",".f64thcm{background-color:var(--colorStatusSuccessBackground1);}",".f1b4u7v{border-top-color:var(--colorStatusSuccessBorder1);}",".f1nyd2b1{border-right-color:var(--colorStatusSuccessBorder1);}",".f70v3om{border-left-color:var(--colorStatusSuccessBorder1);}",".fk173vo{border-bottom-color:var(--colorStatusSuccessBorder1);}"]}),Nje=e=>{const t=kje(),r=xje(),n=Ije(),o=Cje(),i=Tje();return e.root.className=Xe(PK.root,t,e.layout==="multiline"&&i.rootMultiline,e.shape==="square"&&i.square,o[e.intent],e.transitionClassName,e.root.className),e.icon&&(e.icon.className=Xe(PK.icon,r,n[e.intent],e.icon.className)),e};function Rje(e){const{layout:t,actionsRef:r,bodyRef:n,titleId:o}=e;return{messageBar:k.useMemo(()=>({layout:t,actionsRef:r,bodyRef:n,titleId:o}),[t,r,n,o])}}const jg=k.forwardRef((e,t)=>{const r=Eje(e,t);return Nje(r),yn("useMessageBarStyles_unstable")(r),Aje(r,Rje(r))});jg.displayName="MessageBar";const Oje=(e,t)=>{const{layout:r="singleline",actionsRef:n}=ale();return{components:{root:"div",containerAction:"div"},containerAction:un(e.containerAction,{renderByDefault:!1,elementType:"div"}),root:Sr(mn("div",{ref:di(t,n),...e}),{elementType:"div"}),layout:r}},Dje=(e,t)=>e.layout==="multiline"?Vn(RK,{value:t.button,children:[e.containerAction&&nt(e.containerAction,{}),nt(e.root,{})]}):Vn(RK,{value:t.button,children:[nt(e.root,{}),e.containerAction&&nt(e.containerAction,{})]}),qK={root:"fui-MessageBarActions",containerAction:"fui-MessageBarActions__containerAction"},Fje=kn("r1qydg9p","r1to27xx",[".r1qydg9p{grid-row-start:secondaryActions;grid-column-start:secondaryActions;grid-row-end:secondaryActions;grid-column-end:secondaryActions;display:flex;column-gap:var(--spacingHorizontalM);padding-right:var(--spacingHorizontalM);}",".r1to27xx{grid-row-start:secondaryActions;grid-column-start:secondaryActions;grid-row-end:secondaryActions;grid-column-end:secondaryActions;display:flex;column-gap:var(--spacingHorizontalM);padding-left:var(--spacingHorizontalM);}"]),Bje=kn("r1y6i9ar","rc0rof2",[".r1y6i9ar{grid-row-start:actions;grid-column-start:actions;grid-row-end:actions;grid-column-end:actions;padding-right:var(--spacingHorizontalM);}",".rc0rof2{grid-row-start:actions;grid-column-start:actions;grid-row-end:actions;grid-column-end:actions;padding-left:var(--spacingHorizontalM);}"]),Mje=At({root:{Brf1p80:"f1e8xxv9",B6of3ja:"f1gaxbfw",jrapky:"fqcjy3b",t21cq0:["fibjyge","f9yszdx"],z189sj:["f1p3vkop","f8cewkv"]}},{d:[".f1e8xxv9{justify-content:end;}",".f1gaxbfw{margin-top:var(--spacingVerticalMNudge);}",".fqcjy3b{margin-bottom:var(--spacingVerticalS);}",".fibjyge{margin-right:0px;}",".f9yszdx{margin-left:0px;}",".f1p3vkop{padding-right:var(--spacingVerticalM);}",".f8cewkv{padding-left:var(--spacingVerticalM);}"]}),Lje=e=>{const t=Fje(),r=Bje(),n=Mje();return e.root.className=Xe(qK.root,t,e.layout==="multiline"&&n.root,e.root.className),e.containerAction&&(e.containerAction.className=Xe(qK.containerAction,r,e.containerAction.className)),e};function jje(){return{button:k.useMemo(()=>({size:"small"}),[])}}const ule=k.forwardRef((e,t)=>{const r=Oje(e,t);return Lje(r),yn("useMessageBarActionsStyles_unstable")(r),Dje(r,jje())});ule.displayName="MessageBarActions";const zje=(e,t)=>{const{bodyRef:r}=ale();return{components:{root:"div"},root:Sr(mn("div",{ref:di(t,r),...e}),{elementType:"div"})}},Hje=e=>nt(e.root,{}),$je={root:"fui-MessageBarBody"},Pje=kn("rnv3mfe","r1ixc1x8",[".rnv3mfe{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);grid-row-start:body;grid-column-start:body;grid-row-end:body;grid-column-end:body;padding-right:var(--spacingHorizontalM);}",".r1ixc1x8{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);grid-row-start:body;grid-column-start:body;grid-row-end:body;grid-column-end:body;padding-left:var(--spacingHorizontalM);}"]),qje=e=>{const t=Pje();return e.root.className=Xe($je.root,t,e.root.className),e},yB=k.forwardRef((e,t)=>{const r=zje(e,t);return qje(r),yn("useMessageBarBodyStyles_unstable")(r),Hje(r)});yB.displayName="MessageBarBody";var G8={exports:{}},lle=function(t,r){return function(){for(var o=new Array(arguments.length),i=0;i"u"}function Kje(e){return e!==null&&!bB(e)&&e.constructor!==null&&!bB(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Gje(e){return op.call(e)==="[object ArrayBuffer]"}function Vje(e){return typeof FormData<"u"&&e instanceof FormData}function Uje(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function Yje(e){return typeof e=="string"}function Xje(e){return typeof e=="number"}function cle(e){return e!==null&&typeof e=="object"}function CA(e){if(op.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Qje(e){return op.call(e)==="[object Date]"}function Zje(e){return op.call(e)==="[object File]"}function Jje(e){return op.call(e)==="[object Blob]"}function fle(e){return op.call(e)==="[object Function]"}function eze(e){return cle(e)&&fle(e.pipe)}function tze(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}function rze(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function nze(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function U8(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),V8(e))for(var r=0,n=e.length;r"u"||(Gp.isArray(u)?l=l+"[]":u=[u],Gp.forEach(u,function(f){Gp.isDate(f)?f=f.toISOString():Gp.isObject(f)&&(f=JSON.stringify(f)),i.push(WK(l)+"="+WK(f))}))}),o=i.join("&")}if(o){var s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t},sze=Na;function HT(){this.handlers=[]}HT.prototype.use=function(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};HT.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};HT.prototype.forEach=function(t){sze.forEach(this.handlers,function(n){n!==null&&t(n)})};var aze=HT,uze=Na,lze=function(t,r){uze.forEach(t,function(o,i){i!==r&&i.toUpperCase()===r.toUpperCase()&&(t[r]=o,delete t[i])})},hle=function(t,r,n,o,i){return t.config=r,n&&(t.code=n),t.request=o,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t},pC,KK;function ple(){if(KK)return pC;KK=1;var e=hle;return pC=function(r,n,o,i,s){var a=new Error(r);return e(a,n,o,i,s)},pC}var gC,GK;function cze(){if(GK)return gC;GK=1;var e=ple();return gC=function(r,n,o){var i=o.config.validateStatus;!o.status||!i||i(o.status)?r(o):n(e("Request failed with status code "+o.status,o.config,null,o.request,o))},gC}var vC,VK;function fze(){if(VK)return vC;VK=1;var e=Na;return vC=e.isStandardBrowserEnv()?function(){return{write:function(n,o,i,s,a,u){var l=[];l.push(n+"="+encodeURIComponent(o)),e.isNumber(i)&&l.push("expires="+new Date(i).toGMTString()),e.isString(s)&&l.push("path="+s),e.isString(a)&&l.push("domain="+a),u===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){var o=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),vC}var mC,UK;function dze(){return UK||(UK=1,mC=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}),mC}var yC,YK;function hze(){return YK||(YK=1,yC=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}),yC}var bC,XK;function pze(){if(XK)return bC;XK=1;var e=dze(),t=hze();return bC=function(n,o){return n&&!e(o)?t(n,o):o},bC}var _C,QK;function gze(){if(QK)return _C;QK=1;var e=Na,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return _C=function(n){var o={},i,s,a;return n&&e.forEach(n.split(` +`),function(l){if(a=l.indexOf(":"),i=e.trim(l.substr(0,a)).toLowerCase(),s=e.trim(l.substr(a+1)),i){if(o[i]&&t.indexOf(i)>=0)return;i==="set-cookie"?o[i]=(o[i]?o[i]:[]).concat([s]):o[i]=o[i]?o[i]+", "+s:s}}),o},_C}var EC,ZK;function vze(){if(ZK)return EC;ZK=1;var e=Na;return EC=e.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),o;function i(s){var a=s;return r&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return o=i(window.location.href),function(a){var u=e.isString(a)?i(a):a;return u.protocol===o.protocol&&u.host===o.host}}():function(){return function(){return!0}}(),EC}var SC,JK;function eG(){if(JK)return SC;JK=1;var e=Na,t=cze(),r=fze(),n=dle,o=pze(),i=gze(),s=vze(),a=ple();return SC=function(l){return new Promise(function(f,d){var h=l.data,g=l.headers,v=l.responseType;e.isFormData(h)&&delete g["Content-Type"];var y=new XMLHttpRequest;if(l.auth){var E=l.auth.username||"",_=l.auth.password?unescape(encodeURIComponent(l.auth.password)):"";g.Authorization="Basic "+btoa(E+":"+_)}var S=o(l.baseURL,l.url);y.open(l.method.toUpperCase(),n(S,l.params,l.paramsSerializer),!0),y.timeout=l.timeout;function b(){if(y){var T="getAllResponseHeaders"in y?i(y.getAllResponseHeaders()):null,x=!v||v==="text"||v==="json"?y.responseText:y.response,C={data:x,status:y.status,statusText:y.statusText,headers:T,config:l,request:y};t(f,d,C),y=null}}if("onloadend"in y?y.onloadend=b:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(b)},y.onabort=function(){y&&(d(a("Request aborted",l,"ECONNABORTED",y)),y=null)},y.onerror=function(){d(a("Network Error",l,null,y)),y=null},y.ontimeout=function(){var x="timeout of "+l.timeout+"ms exceeded";l.timeoutErrorMessage&&(x=l.timeoutErrorMessage),d(a(x,l,l.transitional&&l.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",y)),y=null},e.isStandardBrowserEnv()){var A=(l.withCredentials||s(S))&&l.xsrfCookieName?r.read(l.xsrfCookieName):void 0;A&&(g[l.xsrfHeaderName]=A)}"setRequestHeader"in y&&e.forEach(g,function(x,C){typeof h>"u"&&C.toLowerCase()==="content-type"?delete g[C]:y.setRequestHeader(C,x)}),e.isUndefined(l.withCredentials)||(y.withCredentials=!!l.withCredentials),v&&v!=="json"&&(y.responseType=l.responseType),typeof l.onDownloadProgress=="function"&&y.addEventListener("progress",l.onDownloadProgress),typeof l.onUploadProgress=="function"&&y.upload&&y.upload.addEventListener("progress",l.onUploadProgress),l.cancelToken&&l.cancelToken.promise.then(function(x){y&&(y.abort(),d(x),y=null)}),h||(h=null),y.send(h)})},SC}var oi=Na,tG=lze,mze=hle,yze={"Content-Type":"application/x-www-form-urlencoded"};function rG(e,t){!oi.isUndefined(e)&&oi.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function bze(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=eG()),e}function _ze(e,t,r){if(oi.isString(e))try{return(t||JSON.parse)(e),oi.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var $T={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:bze(),transformRequest:[function(t,r){return tG(r,"Accept"),tG(r,"Content-Type"),oi.isFormData(t)||oi.isArrayBuffer(t)||oi.isBuffer(t)||oi.isStream(t)||oi.isFile(t)||oi.isBlob(t)?t:oi.isArrayBufferView(t)?t.buffer:oi.isURLSearchParams(t)?(rG(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):oi.isObject(t)||r&&r["Content-Type"]==="application/json"?(rG(r,"application/json"),_ze(t)):t}],transformResponse:[function(t){var r=this.transitional,n=r&&r.silentJSONParsing,o=r&&r.forcedJSONParsing,i=!n&&this.responseType==="json";if(i||o&&oi.isString(t)&&t.length)try{return JSON.parse(t)}catch(s){if(i)throw s.name==="SyntaxError"?mze(s,this,"E_JSON_PARSE"):s}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};$T.headers={common:{Accept:"application/json, text/plain, */*"}};oi.forEach(["delete","get","head"],function(t){$T.headers[t]={}});oi.forEach(["post","put","patch"],function(t){$T.headers[t]=oi.merge(yze)});var Y8=$T,Eze=Na,Sze=Y8,wze=function(t,r,n){var o=this||Sze;return Eze.forEach(n,function(s){t=s.call(o,t,r)}),t},wC,nG;function gle(){return nG||(nG=1,wC=function(t){return!!(t&&t.__CANCEL__)}),wC}var oG=Na,AC=wze,Aze=gle(),kze=Y8;function kC(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var xze=function(t){kC(t),t.headers=t.headers||{},t.data=AC.call(t,t.data,t.headers,t.transformRequest),t.headers=oG.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),oG.forEach(["delete","get","head","post","put","patch","common"],function(o){delete t.headers[o]});var r=t.adapter||kze.adapter;return r(t).then(function(o){return kC(t),o.data=AC.call(t,o.data,o.headers,t.transformResponse),o},function(o){return Aze(o)||(kC(t),o&&o.response&&(o.response.data=AC.call(t,o.response.data,o.response.headers,t.transformResponse))),Promise.reject(o)})},_i=Na,vle=function(t,r){r=r||{};var n={},o=["url","method","data"],i=["headers","auth","proxy","params"],s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function u(d,h){return _i.isPlainObject(d)&&_i.isPlainObject(h)?_i.merge(d,h):_i.isPlainObject(h)?_i.merge({},h):_i.isArray(h)?h.slice():h}function l(d){_i.isUndefined(r[d])?_i.isUndefined(t[d])||(n[d]=u(void 0,t[d])):n[d]=u(t[d],r[d])}_i.forEach(o,function(h){_i.isUndefined(r[h])||(n[h]=u(void 0,r[h]))}),_i.forEach(i,l),_i.forEach(s,function(h){_i.isUndefined(r[h])?_i.isUndefined(t[h])||(n[h]=u(void 0,t[h])):n[h]=u(void 0,r[h])}),_i.forEach(a,function(h){h in r?n[h]=u(t[h],r[h]):h in t&&(n[h]=u(void 0,t[h]))});var c=o.concat(i).concat(s).concat(a),f=Object.keys(t).concat(Object.keys(r)).filter(function(h){return c.indexOf(h)===-1});return _i.forEach(f,l),n};const Tze="axios",Ize="0.21.4",Cze="Promise based HTTP client for the browser and node.js",Nze="index.js",Rze={test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},Oze={type:"git",url:"https://github.com/axios/axios.git"},Dze=["xhr","http","ajax","promise","node"],Fze="Matt Zabriskie",Bze="MIT",Mze={url:"https://github.com/axios/axios/issues"},Lze="https://axios-http.com",jze={coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},zze={"./lib/adapters/http.js":"./lib/adapters/xhr.js"},Hze="dist/axios.min.js",$ze="dist/axios.min.js",Pze="./index.d.ts",qze={"follow-redirects":"^1.14.0"},Wze=[{path:"./dist/axios.min.js",threshold:"5kB"}],Kze={name:Tze,version:Ize,description:Cze,main:Nze,scripts:Rze,repository:Oze,keywords:Dze,author:Fze,license:Bze,bugs:Mze,homepage:Lze,devDependencies:jze,browser:zze,jsdelivr:Hze,unpkg:$ze,typings:Pze,dependencies:qze,bundlesize:Wze};var mle=Kze,X8={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){X8[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var iG={},Gze=mle.version.split(".");function yle(e,t){for(var r=t?t.split("."):Gze,n=e.split("."),o=0;o<3;o++){if(r[o]>n[o])return!0;if(r[o]0;){var i=n[o],s=t[i];if(s){var a=e[i],u=a===void 0||s(a,i,e);if(u!==!0)throw new TypeError("option "+i+" must be "+u);continue}if(r!==!0)throw Error("Unknown option "+i)}}var Uze={isOlderVersion:yle,assertOptions:Vze,validators:X8},ble=Na,Yze=dle,sG=aze,aG=xze,PT=vle,_le=Uze,Vp=_le.validators;function tE(e){this.defaults=e,this.interceptors={request:new sG,response:new sG}}tE.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=PT(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;r!==void 0&&_le.assertOptions(r,{silentJSONParsing:Vp.transitional(Vp.boolean,"1.0.0"),forcedJSONParsing:Vp.transitional(Vp.boolean,"1.0.0"),clarifyTimeoutError:Vp.transitional(Vp.boolean,"1.0.0")},!1);var n=[],o=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(t)===!1||(o=o&&d.synchronous,n.unshift(d.fulfilled,d.rejected))});var i=[];this.interceptors.response.forEach(function(d){i.push(d.fulfilled,d.rejected)});var s;if(!o){var a=[aG,void 0];for(Array.prototype.unshift.apply(a,n),a=a.concat(i),s=Promise.resolve(t);a.length;)s=s.then(a.shift(),a.shift());return s}for(var u=t;n.length;){var l=n.shift(),c=n.shift();try{u=l(u)}catch(f){c(f);break}}try{s=aG(u)}catch(f){return Promise.reject(f)}for(;i.length;)s=s.then(i.shift(),i.shift());return s};tE.prototype.getUri=function(t){return t=PT(this.defaults,t),Yze(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};ble.forEach(["delete","get","head","options"],function(t){tE.prototype[t]=function(r,n){return this.request(PT(n||{},{method:t,url:r,data:(n||{}).data}))}});ble.forEach(["post","put","patch"],function(t){tE.prototype[t]=function(r,n,o){return this.request(PT(o||{},{method:t,url:r,data:n}))}});var Xze=tE,xC,uG;function Ele(){if(uG)return xC;uG=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,xC=e,xC}var TC,lG;function Qze(){if(lG)return TC;lG=1;var e=Ele();function t(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(s){n=s});var o=this;r(function(s){o.reason||(o.reason=new e(s),n(o.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.source=function(){var n,o=new t(function(s){n=s});return{token:o,cancel:n}},TC=t,TC}var IC,cG;function Zze(){return cG||(cG=1,IC=function(t){return function(n){return t.apply(null,n)}}),IC}var CC,fG;function Jze(){return fG||(fG=1,CC=function(t){return typeof t=="object"&&t.isAxiosError===!0}),CC}var dG=Na,eHe=lle,NA=Xze,tHe=vle,rHe=Y8;function Sle(e){var t=new NA(e),r=eHe(NA.prototype.request,t);return dG.extend(r,NA.prototype,t),dG.extend(r,t),r}var al=Sle(rHe);al.Axios=NA;al.create=function(t){return Sle(tHe(al.defaults,t))};al.Cancel=Ele();al.CancelToken=Qze();al.isCancel=gle();al.all=function(t){return Promise.all(t)};al.spread=Zze();al.isAxiosError=Jze();G8.exports=al;G8.exports.default=al;var nHe=G8.exports,oHe=nHe;const iHe=Lf(oHe);var EB={exports:{}},hG=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(hG){var pG=new Uint8Array(16);EB.exports=function(){return hG(pG),pG}}else{var gG=new Array(16);EB.exports=function(){for(var t=0,r;t<16;t++)t&3||(r=Math.random()*4294967296),gG[t]=r>>>((t&3)<<3)&255;return gG}}var wle=EB.exports,Ale=[];for(var dw=0;dw<256;++dw)Ale[dw]=(dw+256).toString(16).substr(1);function sHe(e,t){var r=t||0,n=Ale;return[n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]]].join("")}var kle=sHe,aHe=wle,uHe=kle,vG,NC,RC=0,OC=0;function lHe(e,t,r){var n=t&&r||0,o=t||[];e=e||{};var i=e.node||vG,s=e.clockseq!==void 0?e.clockseq:NC;if(i==null||s==null){var a=aHe();i==null&&(i=vG=[a[0]|1,a[1],a[2],a[3],a[4],a[5]]),s==null&&(s=NC=(a[6]<<8|a[7])&16383)}var u=e.msecs!==void 0?e.msecs:new Date().getTime(),l=e.nsecs!==void 0?e.nsecs:OC+1,c=u-RC+(l-OC)/1e4;if(c<0&&e.clockseq===void 0&&(s=s+1&16383),(c<0||u>RC)&&e.nsecs===void 0&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");RC=u,OC=l,NC=s,u+=122192928e5;var f=((u&268435455)*1e4+l)%4294967296;o[n++]=f>>>24&255,o[n++]=f>>>16&255,o[n++]=f>>>8&255,o[n++]=f&255;var d=u/4294967296*1e4&268435455;o[n++]=d>>>8&255,o[n++]=d&255,o[n++]=d>>>24&15|16,o[n++]=d>>>16&255,o[n++]=s>>>8|128,o[n++]=s&255;for(var h=0;h<6;++h)o[n+h]=i[h];return t||uHe(o)}var cHe=lHe,fHe=wle,dHe=kle;function hHe(e,t,r){var n=t&&r||0;typeof e=="string"&&(t=e==="binary"?new Array(16):null,e=null),e=e||{};var o=e.random||(e.rng||fHe)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,t)for(var i=0;i<16;++i)t[n+i]=o[i];return t||dHe(o)}var pHe=hHe,gHe=cHe,xle=pHe,Q8=xle;Q8.v1=gHe;Q8.v4=xle;var Cs=Q8;const qi="variant_0",Up="chat_input",oh="chat_history",Fm="chat_output";var Tle=(e=>(e.OpenCodeFileInNode="OpenCodeFileInNode",e.ShowWarningIconOnNode="ShowWarningIconOnNode",e))(Tle||{}),Rl=(e=>(e.OpenAI="OpenAI",e.AzureOpenAI="AzureOpenAI",e.Serp="Serp",e.Bing="Bing",e.AzureContentModerator="AzureContentModerator",e.Custom="Custom",e.AzureContentSafety="AzureContentSafety",e.CognitiveSearch="CognitiveSearch",e.SubstrateLLM="SubstrateLLM",e.Pinecone="Pinecone",e.Qdrant="Qdrant",e.Weaviate="Weaviate",e.FormRecognizer="FormRecognizer",e.Serverless="Serverless",e))(Rl||{}),Ad=(e=>(e.Default="Default",e.Evaluation="Evaluation",e.Chat="Chat",e.Rag="Rag",e))(Ad||{}),Ile=(e=>(e.default="default",e.uionly_hidden="uionly_hidden",e))(Ile||{}),Cle=(e=>(e.Horizontal="Horizontal",e.Vertical="Vertical",e))(Cle||{}),Ti=(e=>(e.llm="llm",e.python="python",e.action="action",e.prompt="prompt",e.custom_llm="custom_llm",e.csharp="csharp",e.typescript="typescript",e))(Ti||{}),je=(e=>(e.int="int",e.double="double",e.bool="bool",e.string="string",e.secret="secret",e.prompt_template="prompt_template",e.object="object",e.list="list",e.BingConnection="BingConnection",e.OpenAIConnection="OpenAIConnection",e.AzureOpenAIConnection="AzureOpenAIConnection",e.AzureContentModeratorConnection="AzureContentModeratorConnection",e.CustomConnection="CustomConnection",e.AzureContentSafetyConnection="AzureContentSafetyConnection",e.SerpConnection="SerpConnection",e.CognitiveSearchConnection="CognitiveSearchConnection",e.SubstrateLLMConnection="SubstrateLLMConnection",e.PineconeConnection="PineconeConnection",e.QdrantConnection="QdrantConnection",e.WeaviateConnection="WeaviateConnection",e.function_list="function_list",e.function_str="function_str",e.FormRecognizerConnection="FormRecognizerConnection",e.file_path="file_path",e.image="image",e.assistant_definition="assistant_definition",e.ServerlessConnection="ServerlessConnection",e))(je||{});const vHe="flow",mHe="inputs",mG="inputs",yHe="outputs",yG=e=>[vHe,mHe].includes(e),Nle=["#637CEF","#E61C99","#00A5AF","#9470BD","#689920","#3487C7","#CA5010","#009B51","#B27C00","#B146C2","#4F6BED","#EE5FB7","#008B94","#D77440","#BA58C9","#3A96DD","#E3008C","#57811B","#C36BD1","#D06228","#6E0811","#C50F1F","#F7630C","#107C10","#094509"];var Ei=(e=>(e.CircularDependency="CircularDependency",e.InputDependencyNotFound="InputDependencyNotFound",e.InputGenerateError="InputGenerateError",e.InputSelfReference="InputSelfReference",e.InputEmpty="InputEmpty",e.InputInvalidType="InputInvalidType",e.NodeConfigInvalid="NodeConfigInvalid",e.UnparsedCode="UnparsedCode",e.EmptyCode="EmptyCode",e.MissingTool="MissingTool",e.AutoParseInputError="AutoParseInputError",e.RuntimeNameEmpty="RuntimeNameEmpty",e.RuntimeStatusInvalid="RuntimeStatusInvalid",e))(Ei||{}),Rle=(e=>(e.Standard="Standard",e.Interactive="Interactive",e.InteractiveMultiModal="InteractiveMultiModal",e))(Rle||{}),ln=(e=>(e.CONNECTION_ADD_REQUEST="connection.add.request",e.CONNECTION_GET_DEPLOYMENTS_REQUEST="connection.get.deployments.request",e.CONNECTION_GET_DEPLOYMENTS_RESPONSE="connection.get.deployments.response",e.CONNECTION_LIST_REQUEST="connection.list.request",e.CONNECTION_LIST_RESPONSE="connection.list.response",e.CONNECTION_SPEC_LIST_REQUEST="connection.spec.list.request",e.CONNECTION_SPEC_LIST_RESPONSE="connection.spec.list.response",e.DYNAMIC_LIST_REQUEST="dynamic.list.request",e.DYNAMIC_LIST_RESPONSE="dynamic.list.response",e.GENERATED_BY_REQUEST="generated.by.request",e.GENERATED_BY_RESPONSE="generated.by.response",e.SAMPLE_TREE_REFRESH="sample.tree.refresh",e.RECENT_VISITED_FLOW_TREE_REFRESH="recent.visited.flow.tree.refresh",e.RUNTIME_NEED_UPGRADE_REQUEST="runtime.needUpgrade.request",e.RUNTIME_NEED_UPGRADE_RESPONSE="runtime.needUpgrade.response",e.FLOW_DAG_OPEN="flow.dag.open",e.DAG_STEP_SELECTED="dag.step.selected",e.DAG_STEP_CLEAR_SELECTION="dag.step.clear.selection",e.EDIT_PMT_FILE="edit.pmt.file",e.INIT_PMT_FILE="init.pmt.file",e.INIT_PMT_FILE_FINISHED="init.pmt.file.finished",e.FIRST_RENDER_FINISHED="first.render.finished",e.UPDATE_PMT_FILE="update.pmt.file",e.PMT_FILE_READY="pmt.file.ready",e.EDIT_FLOW_LAYOUT="edit.flow.layout",e.WORKSPACE_READY="workspace.ready",e.PMT_FILE_ADD_NODE="pmt.file.addNode",e.PMT_FILE_REMOVE_NODE="pmt.file.removeNode",e.PMT_FILE_DUPLICATE_TOOL="pmt.file.duplicateTool",e.READ_PMT_FILE_REQUEST="read.pmt.file.request",e.READ_PMT_FILE_RESPONSE="read.pmt.file.response",e.READ_PMT_SUBMIT_DATA_REQUEST="read.pmt.submit.data.request",e.READ_PMT_SUBMIT_DATA_RESPONSE="read.pmt.submit.data.response",e.PATCH_EDIT_PMT_FLOW_REQUEST="patch.edit.pmt.flow.request",e.PATCH_EDIT_PMT_FLOW_RESPONSE="patch.edit.pmt.flow.response",e.PROMPT_TOOL_SETTING_FETCH="promptToolSetting.fetch",e.PROMPT_TOOL_SETTING_LOAD="promptToolSetting.load",e.FLATTEN_OPEN_FLOW_INPUTS="flatten.openInputsFile",e.FLATTEN_VIEW_CODE_DIFF="flatten.viewCodeDiff",e.FLATTEN_STEP_LOCATE="flatten.step.locate",e.FLATTEN_ADD_NODE="flatten.addNode",e.OPEN_RUN_HISTORY_VIEW="open.runHistory.view",e.TRIGGER_OPEN_RUN_HISTORY_VIEW="trigger.open.runHistory.view",e.STATUS_LOAD="status.load",e.BULK_TEST_STATUS_LOAD="bulkTest.status.load",e.BULK_TEST_INDEX_SELECTED="bulkTest.index.selected",e.REQUEST_STEP_RUN_SUBMIT="request.step.run.submit",e.REQUEST_STEP_RUN_LOAD="request.step.load",e.BULK_TEST_OPEN_VIEW="bulkTest.open.view",e.BULK_TEST_SELECT_DATASETS="bulkTest.select.datasets",e.BULK_TEST_SELECT_DATASETS_READY="bulkTest.select.datasets.ready",e.TRIGGER_EXPORT="trigger.export",e.DAG_DOUBLE_CLICK_NODE="dag.double.click.node",e.OPEN_CHAT_VIEW="open.chat.view",e.OPEN_CHAT_VIEW_IN_BROWSER="open.chat.view.in.browser",e.DEPLOY_FLOW="deploy.flow",e.SAVE_TOOL_CODE="save.tool.code",e.UPDATE_FlOW_INPUT="update.flow.input",e.TRIGGER_RENAME_NODE="trigger.rename.node",e.COMMIT_RENAME_NODE="commit.rename.node",e.CHANGE_LLM_NODE_API="change.llm.node.api",e.TRIGGER_CUSTOM_SELECT="trigger.custom.select",e.COMMIT_CUSTOM_SELECT="commit.custom.select",e.OPEN_LOG="open.log",e.SHOW_MESSAGE_IN_OUTPUT_PANEL="show.message.in.output.panel",e.SUBMIT_FLOW_RUN="submit.flow.run",e.SUBMIT_FLOW_RUN_FINISHED="submit.flow.run.finished",e.SUBMIT_FLOW_EVAL="submit.flow.eval",e.SUBMIT_FLOW_EVAL_RESPONSE="submit.flow.eval.response",e.SUBMIT_BULK_TEST_RUN="submit.bulk.test.run",e.OPEN_FLOW_RUN_LOG="open.flow.run.log",e.STATUSBAR_OPEN_LOG="statusbar.open.log",e.OPEN_CODE_FILE="open.code.file",e.OPEN_LINK="open.link",e.READ_FLOW_UIHINT_REQUEST="read.flow.uihint.request",e.READ_FLOW_UIHINT_RESPONSE="read.flow.uihint.response",e.READ_FLOW_RUN_RESULT_REQUEST="read.flow.run.result.request",e.READ_FLOW_RUN_RESULT_RESPONSE="read.flow.run.result.response",e.WRITE_FLOW_UIHINT="write.flow.uihint",e.SELECT_FILE_REQUEST="select.file.request",e.SELECT_FILE_RESPONSE="select.file.response",e.FILE_RELATIVE_PATH_REQUEST="file.relative.path.request",e.FILE_RELATIVE_PATH_RESPONSE="file.relative.path.response",e.EXTENSION_CONFIGURATION_REQUEST="extension.configuration.request",e.EXTENSION_CONFIGURATION_RESPONSE="extension.configuration.response",e.TOOL_CODE_CHANGED="tool.code.changed",e.RUN_RESULT_CHANGED="run.result.changed",e.GENERATE_TOOL_META="generate.tool.meta",e.GENERATE_TOOL_META_ADVANCED="generate.tool.meta.advanced",e.GENERATE_TOOLS_FROM_FLOW_DAG_YAML="generate.tools.from.flow.dag.yaml",e.BULK_TEST_SELECT_INPUT_FILE="bulkTest.select.input.file",e.BULK_TEST_SELECT_INPUT_FILE_READY="bulkTest.select.input.file.ready",e.SUBMIT_DEBUG_SINGLE_NODE_RUN="submit.debug.single.node.run",e.DAG_ZOOM_IN="dag.zoom.in",e.DAG_ZOOM_OUT="dag.zoom.out",e.DAG_ZOOM_TO_FIT="dag.zoom.to.fit",e.DAG_ZOOM_TO_ACTUAL_SIZE="dag.zoom.to.actual.size",e.DAG_AUTO_LAYOUT="dag.auto.layout",e.TOGGLE_SIMPLE_MODE="toggle.simple.mode",e.TOGGLE_ORIENTATION="toggle.orientation",e.PRINT_LOG="print.log",e.EDIT_FUNCTIONS_REQUEST="edit.functions.request",e.EDIT_FUNCTIONS_RESPONSE="edit.functions.response",e.CREATE_FUNCTIONS_FROM_TOOLS_REQUEST="create.functions.from.tools.request",e.TOOLS_JSON_CHANGED="tools.json.changed",e.TOOL_LIST_UPDATED="tool.list.updated",e.REFRESH_TOOL_LIST="refresh.tool.list",e.REQUEST_CONDA_ENV_NAME="request.conda.env.name",e.RES_CONDA_ENV_NAME="res.conda.env.name",e.RUN_COMMAND_IN_TERMINAL="run.command.in.terminal",e.COPY_COMMAND_TO_TERMINAL="copy.command.to.terminal",e.REQ_PFSDK_VERSION="req.pfsdk.version",e.RES_PFSDK_VERSION="res.pfsdk.version",e.REQ_PFCORE_VERSION="req.pfcore.version",e.RES_PFCORE_VERSION="res.pfcore.version",e.REQ_PFTOOLS_VERSION="req.pftools.version",e.RES_PFTOOLS_VERSION="res.pftools.version",e.REQ_PFDEVKIT_VERSION="req.pfdevkit.version",e.RES_PFDEVKIT_VERSION="res.pfdevkit.version",e.REQ_PFTRACING_VERSION="req.pftracing.version",e.RES_PFTRACING_VERSION="res.pftracing.version",e.REQ_PFAZURE_VERSION="req.pfazure.version",e.RES_PFAZURE_VERSION="res.pfazure.version",e.REQ_PFEVALS_VERSION="req.pfevals.version",e.RES_PFEVALS_VERSION="res.pfevals.version",e.REQ_PFRECORDING_VERSION="req.pfrecording.version",e.RES_PFRECORDING_VERSION="res.pfrecording.version",e.REQ_PFUTIL_PATH="req.pfutil.path",e.RES_PFUTIL_PATH="res.pfutil.path",e.REQ_PYTHON_INTERPRETER="req.python.interpreter",e.RES_PYTHON_INTERPRETER="res.python.interpreter",e.SELECT_PYTHON_INTERPRETER="select.python.interpreter",e.REQ_PACKAGE_INSTALLED="req.package.installed",e.RES_PACKAGE_INSTALLED="res.package.installed",e.EXECUTE_VSC_COMMAND="execute.vsc.command",e.DEBUG_FLOW="debug.flow",e.REQ_API_CALLS="req.api.calls",e.RES_API_CALLS="res.api.calls",e.ERROR_BOUNDARY_CAUGHT="error.boundary.caught",e.EVALUATE_BATCH_RUNS="evaluate.batch.runs",e.METRIC_WEBVIEW_LCP="metric.webview.lcp",e.OPEN_FLOW_DIR="open.flow.dir",e.GET_FILE_WEBVIEW_URI="get.file.webview.uri",e.SEND_FILE_WEBVIEW_URI="send.file.webview.uri",e.CURRENT_FLOW_REQUEST="current.flow.request",e.CURRENT_FLOW_RESPONSE="current.flow.response",e.CURRENT_FLOW_CONFIRM="current.flow.confirm",e.READ_FLOW_UX_INPUTS_REQUEST="read.flow.ux.inputs.request",e.READ_FLOW_UX_INPUTS_RESPONSE="read.flow.ux.inputs.response",e.SET_FLOW_UX_INPUTS="set.flow.ux.inputs",e.SET_FLOW_CHAT_CONFIG="set.flow.chat.config",e.READ_VSCODE_THEME_REQUEST="read.vscode.theme.request",e.READ_VSCODE_THEME_RESPONSE="read.vscode.theme.response",e.READ_CHAT_CONSOLE_RESPONSE="read.chat.console.response",e))(ln||{}),Vb=(e=>(e.System="system",e.ErrorHandler="error",e.Chatbot="chatbot",e.User="user",e))(Vb||{}),Z8=(e=>(e.Text="text",e.Typing="typing",e.SessionSplit="session-split",e))(Z8||{}),Gt=(e=>(e.Dag="Dag flow",e.Prompty="Prompty",e.Flex="Flex flow",e))(Gt||{});const bHe=e=>e==="true"||e==="True"||e===!0,_He=e=>Array.isArray(e)?je.list:typeof e=="boolean"?je.bool:typeof e=="string"?je.string:typeof e=="number"?Number.isInteger(e)?je.int:je.double:je.object;function EHe(e){if(e==null)return;switch(_He(e)){case je.string:return e;case je.int:case je.double:return e.toString();case je.bool:return e?"True":"False";case je.object:case je.list:return JSON.stringify(e);default:return String(e)}}var Kk={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 - */HA.exports;(function(e,t){(function(){var r,n="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",l=500,c="__lodash_placeholder__",f=1,d=2,h=4,g=1,v=2,y=1,E=2,_=4,S=8,b=16,A=32,x=64,T=128,N=256,I=512,R=30,D="...",L=800,M=16,q=1,z=2,B=3,P=1/0,K=9007199254740991,U=17976931348623157e292,X=NaN,J=4294967295,ee=J-1,se=J>>>1,pe=[["ary",T],["bind",y],["bindKey",E],["curry",S],["curryRight",b],["flip",I],["partial",A],["partialRight",x],["rearg",N]],_e="[object Arguments]",Te="[object Array]",me="[object AsyncFunction]",Ae="[object Boolean]",ve="[object Date]",we="[object DOMException]",De="[object Error]",Qe="[object Function]",Ke="[object GeneratorFunction]",st="[object Map]",He="[object Number]",Ne="[object Null]",$e="[object Object]",Dt="[object Promise]",$t="[object Proxy]",Gt="[object RegExp]",_t="[object Set]",tt="[object String]",rt="[object Symbol]",ur="[object Undefined]",he="[object WeakMap]",le="[object WeakSet]",ae="[object ArrayBuffer]",ge="[object DataView]",Re="[object Float32Array]",je="[object Float64Array]",ke="[object Int8Array]",Ce="[object Int16Array]",Pe="[object Int32Array]",ut="[object Uint8Array]",vt="[object Uint8ClampedArray]",xt="[object Uint16Array]",fr="[object Uint32Array]",xr=/\b__p \+= '';/g,Ft=/\b(__p \+=) '' \+/g,Pr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,cn=/&(?:amp|lt|gt|quot|#39);/g,Jt=/[&<>"']/g,It=RegExp(cn.source),qr=RegExp(Jt.source),Ir=/<%-([\s\S]+?)%>/g,Wr=/<%([\s\S]+?)%>/g,pr=/<%=([\s\S]+?)%>/g,Rt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ft=/^\w*$/,Ue=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Kr=/[\\^$.*+?()[\]{}|]/g,xo=RegExp(Kr.source),zr=/^\s+/,xu=/\s/,ps=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,po=/\{\n\/\* \[wrapped with (.+)\] \*/,Fa=/,? & /,Me=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Y=/[()=,{}\[\]\/\s]/,Q=/\\(\\)?/g,H=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,$=/\w*$/,F=/^[-+]0x[0-9a-f]+$/i,Z=/^0b[01]+$/i,ie=/^\[object .+?Constructor\]$/,ue=/^0o[0-7]+$/i,ne=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,qe=/($^)/,kt=/['\n\r\u2028\u2029\\]/g,Nt="\\ud800-\\udfff",Et="\\u0300-\\u036f",yt="\\ufe20-\\ufe2f",qt="\\u20d0-\\u20ff",Hr=Et+yt+qt,Ct="\\u2700-\\u27bf",_n="a-z\\xdf-\\xf6\\xf8-\\xff",go="\\xac\\xb1\\xd7\\xf7",ji="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Iu="\\u2000-\\u206f",Ps=" \\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",Nc="A-Z\\xc0-\\xd6\\xd8-\\xde",Nu="\\ufe0e\\ufe0f",no=go+ji+Iu+Ps,Ba="['’]",Cc="["+Nt+"]",Cu="["+no+"]",Rc="["+Hr+"]",Ru="\\d+",Gf="["+Ct+"]",bl="["+_n+"]",Oc="[^"+Nt+no+Ru+Ct+_n+Nc+"]",Dc="\\ud83c[\\udffb-\\udfff]",_l="(?:"+Rc+"|"+Dc+")",El="[^"+Nt+"]",_p="(?:\\ud83c[\\udde6-\\uddff]){2}",Yv="[\\ud800-\\udbff][\\udc00-\\udfff]",Vf="["+Nc+"]",HE="\\u200d",Xv="(?:"+bl+"|"+Oc+")",B1="(?:"+Vf+"|"+Oc+")",Ep="(?:"+Ba+"(?:d|ll|m|re|s|t|ve))?",Sp="(?:"+Ba+"(?:D|LL|M|RE|S|T|VE))?",M1=_l+"?",Uf="["+Nu+"]?",C5="(?:"+HE+"(?:"+[El,_p,Yv].join("|")+")"+Uf+M1+")*",$E="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",R5="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Qv=Uf+M1+C5,O5="(?:"+[Gf,_p,Yv].join("|")+")"+Qv,D5="(?:"+[El+Rc+"?",Rc,_p,Yv,Cc].join("|")+")",L1=RegExp(Ba,"g"),F5=RegExp(Rc,"g"),Yf=RegExp(Dc+"(?="+Dc+")|"+D5+Qv,"g"),PE=RegExp([Vf+"?"+bl+"+"+Ep+"(?="+[Cu,Vf,"$"].join("|")+")",B1+"+"+Sp+"(?="+[Cu,Vf+Xv,"$"].join("|")+")",Vf+"?"+Xv+"+"+Ep,Vf+"+"+Sp,R5,$E,Ru,O5].join("|"),"g"),Ve=RegExp("["+HE+Nt+Hr+Nu+"]"),Je=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Pt=["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"],Bt=-1,bt={};bt[Re]=bt[je]=bt[ke]=bt[Ce]=bt[Pe]=bt[ut]=bt[vt]=bt[xt]=bt[fr]=!0,bt[_e]=bt[Te]=bt[ae]=bt[Ae]=bt[ge]=bt[ve]=bt[De]=bt[Qe]=bt[st]=bt[He]=bt[$e]=bt[Gt]=bt[_t]=bt[tt]=bt[he]=!1;var At={};At[_e]=At[Te]=At[ae]=At[ge]=At[Ae]=At[ve]=At[Re]=At[je]=At[ke]=At[Ce]=At[Pe]=At[st]=At[He]=At[$e]=At[Gt]=At[_t]=At[tt]=At[rt]=At[ut]=At[vt]=At[xt]=At[fr]=!0,At[De]=At[Qe]=At[he]=!1;var Zr={À:"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"},tn={"&":"&","<":"<",">":">",'"':""","'":"'"},Io={"&":"&","<":"<",">":">",""":'"',"'":"'"},Ma={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Fc=parseFloat,B5=parseInt,wp=typeof Ts=="object"&&Ts&&Ts.Object===Object&&Ts,Zv=typeof self=="object"&&self&&self.Object===Object&&self,No=wp||Zv||Function("return this")(),M5=t&&!t.nodeType&&t,j1=M5&&!0&&e&&!e.nodeType&&e,Jz=j1&&j1.exports===M5,L5=Jz&&wp.process,La=function(){try{var ce=j1&&j1.require&&j1.require("util").types;return ce||L5&&L5.binding&&L5.binding("util")}catch{}}(),eH=La&&La.isArrayBuffer,tH=La&&La.isDate,rH=La&&La.isMap,nH=La&&La.isRegExp,oH=La&&La.isSet,iH=La&&La.isTypedArray;function qs(ce,Se,be){switch(be.length){case 0:return ce.call(Se);case 1:return ce.call(Se,be[0]);case 2:return ce.call(Se,be[0],be[1]);case 3:return ce.call(Se,be[0],be[1],be[2])}return ce.apply(Se,be)}function Eme(ce,Se,be,dt){for(var Vt=-1,Rr=ce==null?0:ce.length;++Vt-1}function j5(ce,Se,be){for(var dt=-1,Vt=ce==null?0:ce.length;++dt-1;);return be}function hH(ce,Se){for(var be=ce.length;be--&&kp(Se,ce[be],0)>-1;);return be}function Cme(ce,Se){for(var be=ce.length,dt=0;be--;)ce[be]===Se&&++dt;return dt}var Rme=P5(Zr),Ome=P5(tn);function Dme(ce){return"\\"+Ma[ce]}function Fme(ce,Se){return ce==null?r:ce[Se]}function Ap(ce){return Ve.test(ce)}function Bme(ce){return Je.test(ce)}function Mme(ce){for(var Se,be=[];!(Se=ce.next()).done;)be.push(Se.value);return be}function G5(ce){var Se=-1,be=Array(ce.size);return ce.forEach(function(dt,Vt){be[++Se]=[Vt,dt]}),be}function pH(ce,Se){return function(be){return ce(Se(be))}}function Zf(ce,Se){for(var be=-1,dt=ce.length,Vt=0,Rr=[];++be-1}function wye(p,m){var w=this.__data__,O=sS(w,p);return O<0?(++this.size,w.push([p,m])):w[O][1]=m,this}Bc.prototype.clear=bye,Bc.prototype.delete=_ye,Bc.prototype.get=Eye,Bc.prototype.has=Sye,Bc.prototype.set=wye;function Mc(p){var m=-1,w=p==null?0:p.length;for(this.clear();++m=m?p:m)),p}function $a(p,m,w,O,j,V){var te,oe=m&f,de=m&d,xe=m&h;if(w&&(te=j?w(p,O,j,V):w(p)),te!==r)return te;if(!jn(p))return p;var Ie=Yt(p);if(Ie){if(te=xbe(p),!oe)return gs(p,te)}else{var Fe=gi(p),ot=Fe==Qe||Fe==Ke;if(od(p))return XH(p,oe);if(Fe==$e||Fe==_e||ot&&!j){if(te=de||ot?{}:g$(p),!oe)return de?vbe(p,zye(te,p)):gbe(p,TH(te,p))}else{if(!At[Fe])return j?p:{};te=Ibe(p,Fe,oe)}}V||(V=new Du);var mt=V.get(p);if(mt)return mt;V.set(p,te),W$(p)?p.forEach(function(Lt){te.add($a(Lt,m,w,Lt,p,V))}):P$(p)&&p.forEach(function(Lt,dr){te.set(dr,$a(Lt,m,w,dr,p,V))});var Mt=xe?de?yI:mI:de?ms:zo,nr=Ie?r:Mt(p);return ja(nr||p,function(Lt,dr){nr&&(dr=Lt,Lt=p[dr]),im(te,dr,$a(Lt,m,w,dr,p,V))}),te}function Hye(p){var m=zo(p);return function(w){return xH(w,p,m)}}function xH(p,m,w){var O=w.length;if(p==null)return!O;for(p=rn(p);O--;){var j=w[O],V=m[j],te=p[j];if(te===r&&!(j in p)||!V(te))return!1}return!0}function IH(p,m,w){if(typeof p!="function")throw new za(s);return dm(function(){p.apply(r,w)},m)}function sm(p,m,w,O){var j=-1,V=qE,te=!0,oe=p.length,de=[],xe=m.length;if(!oe)return de;w&&(m=xn(m,Ws(w))),O?(V=j5,te=!1):m.length>=o&&(V=Jv,te=!1,m=new $1(m));e:for(;++jj?0:j+w),O=O===r||O>j?j:er(O),O<0&&(O+=j),O=w>O?0:G$(O);w0&&w(oe)?m>1?ti(oe,m-1,w,O,j):Qf(j,oe):O||(j[j.length]=oe)}return j}var J5=r$(),RH=r$(!0);function Sl(p,m){return p&&J5(p,m,zo)}function eI(p,m){return p&&RH(p,m,zo)}function uS(p,m){return Xf(m,function(w){return $c(p[w])})}function q1(p,m){m=rd(m,p);for(var w=0,O=m.length;p!=null&&wm}function qye(p,m){return p!=null&&Gr.call(p,m)}function Wye(p,m){return p!=null&&m in rn(p)}function Kye(p,m,w){return p>=pi(m,w)&&p=120&&Ie.length>=120)?new $1(te&&Ie):r}Ie=p[0];var Fe=-1,ot=oe[0];e:for(;++Fe-1;)oe!==p&&JE.call(oe,de,1),JE.call(p,de,1);return p}function PH(p,m){for(var w=p?m.length:0,O=w-1;w--;){var j=m[w];if(w==O||j!==V){var V=j;Hc(j)?JE.call(p,j,1):cI(p,j)}}return p}function aI(p,m){return p+rS(SH()*(m-p+1))}function obe(p,m,w,O){for(var j=-1,V=Ro(tS((m-p)/(w||1)),0),te=be(V);V--;)te[O?V:++j]=p,p+=w;return te}function uI(p,m){var w="";if(!p||m<1||m>K)return w;do m%2&&(w+=p),m=rS(m/2),m&&(p+=p);while(m);return w}function or(p,m){return AI(y$(p,m,ys),p+"")}function ibe(p){return AH(Mp(p))}function sbe(p,m){var w=Mp(p);return bS(w,P1(m,0,w.length))}function lm(p,m,w,O){if(!jn(p))return p;m=rd(m,p);for(var j=-1,V=m.length,te=V-1,oe=p;oe!=null&&++jj?0:j+m),w=w>j?j:w,w<0&&(w+=j),j=m>w?0:w-m>>>0,m>>>=0;for(var V=be(j);++O>>1,te=p[V];te!==null&&!Gs(te)&&(w?te<=m:te=o){var xe=m?null:_be(p);if(xe)return KE(xe);te=!1,j=Jv,de=new $1}else de=m?[]:oe;e:for(;++O=O?p:Pa(p,m,w)}var YH=Qme||function(p){return No.clearTimeout(p)};function XH(p,m){if(m)return p.slice();var w=p.length,O=mH?mH(w):new p.constructor(w);return p.copy(O),O}function pI(p){var m=new p.constructor(p.byteLength);return new QE(m).set(new QE(p)),m}function fbe(p,m){var w=m?pI(p.buffer):p.buffer;return new p.constructor(w,p.byteOffset,p.byteLength)}function dbe(p){var m=new p.constructor(p.source,$.exec(p));return m.lastIndex=p.lastIndex,m}function hbe(p){return om?rn(om.call(p)):{}}function QH(p,m){var w=m?pI(p.buffer):p.buffer;return new p.constructor(w,p.byteOffset,p.length)}function ZH(p,m){if(p!==m){var w=p!==r,O=p===null,j=p===p,V=Gs(p),te=m!==r,oe=m===null,de=m===m,xe=Gs(m);if(!oe&&!xe&&!V&&p>m||V&&te&&de&&!oe&&!xe||O&&te&&de||!w&&de||!j)return 1;if(!O&&!V&&!xe&&p=oe)return de;var xe=w[O];return de*(xe=="desc"?-1:1)}}return p.index-m.index}function JH(p,m,w,O){for(var j=-1,V=p.length,te=w.length,oe=-1,de=m.length,xe=Ro(V-te,0),Ie=be(de+xe),Fe=!O;++oe1?w[j-1]:r,te=j>2?w[2]:r;for(V=p.length>3&&typeof V=="function"?(j--,V):r,te&&Hi(w[0],w[1],te)&&(V=j<3?r:V,j=1),m=rn(m);++O-1?j[V?m[te]:te]:r}}function i$(p){return zc(function(m){var w=m.length,O=w,j=Ha.prototype.thru;for(p&&m.reverse();O--;){var V=m[O];if(typeof V!="function")throw new za(s);if(j&&!te&&mS(V)=="wrapper")var te=new Ha([],!0)}for(O=te?O:w;++O1&&yr.reverse(),Ie&&deoe))return!1;var xe=V.get(p),Ie=V.get(m);if(xe&&Ie)return xe==m&&Ie==p;var Fe=-1,ot=!0,mt=w&v?new $1:r;for(V.set(p,m),V.set(m,p);++Fe1?"& ":"")+m[O],m=m.join(w>2?", ":" "),p.replace(ps,`{ + */Kk.exports;(function(e,t){(function(){var r,n="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",l=500,c="__lodash_placeholder__",f=1,d=2,h=4,g=1,v=2,y=1,E=2,_=4,S=8,b=16,A=32,T=64,x=128,C=256,I=512,R=30,D="...",L=800,M=16,q=1,z=2,F=3,$=1/0,K=9007199254740991,U=17976931348623157e292,X=NaN,J=4294967295,ee=J-1,fe=J>>>1,ge=[["ary",x],["bind",y],["bindKey",E],["curry",S],["curryRight",b],["flip",I],["partial",A],["partialRight",T],["rearg",C]],Se="[object Arguments]",Ee="[object Array]",ve="[object AsyncFunction]",we="[object Boolean]",me="[object Date]",xe="[object DOMException]",He="[object Error]",it="[object Function]",Oe="[object GeneratorFunction]",Qe="[object Map]",Fe="[object Number]",Ze="[object Null]",$e="[object Object]",Ge="[object Promise]",kt="[object Proxy]",$t="[object RegExp]",bt="[object Set]",Je="[object String]",ot="[object Symbol]",ir="[object Undefined]",he="[object WeakMap]",ue="[object WeakSet]",se="[object ArrayBuffer]",pe="[object DataView]",Ne="[object Float32Array]",Be="[object Float64Array]",Ae="[object Int8Array]",Ie="[object Int16Array]",Pe="[object Int32Array]",lt="[object Uint8Array]",mt="[object Uint8ClampedArray]",Ct="[object Uint16Array]",dr="[object Uint32Array]",Cr=/\b__p \+= '';/g,Bt=/\b(__p \+=) '' \+/g,qr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,cn=/&(?:amp|lt|gt|quot|#39);/g,er=/[&<>"']/g,Nt=RegExp(cn.source),Wr=RegExp(er.source),Nr=/<%-([\s\S]+?)%>/g,Kr=/<%([\s\S]+?)%>/g,gr=/<%=([\s\S]+?)%>/g,Dt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,dt=/^\w*$/,Ue=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Gr=/[\\^$.*+?()[\]{}|]/g,Io=RegExp(Gr.source),Hr=/^\s+/,Iu=/\s/,ps=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,go=/\{\n\/\* \[wrapped with (.+)\] \*/,Fa=/,? & /,Le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Y=/[()=,{}\[\]\/\s]/,Q=/\\(\\)?/g,H=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,P=/\w*$/,B=/^[-+]0x[0-9a-f]+$/i,Z=/^0b[01]+$/i,ie=/^\[object .+?Constructor\]$/,ae=/^0o[0-7]+$/i,ne=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,qe=/($^)/,xt=/['\n\r\u2028\u2029\\]/g,Rt="\\ud800-\\udfff",St="\\u0300-\\u036f",_t="\\ufe20-\\ufe2f",Wt="\\u20d0-\\u20ff",$r=St+_t+Wt,Ot="\\u2700-\\u27bf",bn="a-z\\xdf-\\xf6\\xf8-\\xff",vo="\\xac\\xb1\\xd7\\xf7",ji="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Cu="\\u2000-\\u206f",qs=" \\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",Nc="A-Z\\xc0-\\xd6\\xd8-\\xde",Nu="\\ufe0e\\ufe0f",oo=vo+ji+Cu+qs,Ba="['’]",Rc="["+Rt+"]",Ru="["+oo+"]",Oc="["+$r+"]",Ou="\\d+",Gf="["+Ot+"]",Sl="["+bn+"]",Dc="[^"+Rt+oo+Ou+Ot+bn+Nc+"]",Fc="\\ud83c[\\udffb-\\udfff]",wl="(?:"+Oc+"|"+Fc+")",Al="[^"+Rt+"]",Ep="(?:\\ud83c[\\udde6-\\uddff]){2}",Xv="[\\ud800-\\udbff][\\udc00-\\udfff]",Vf="["+Nc+"]",qE="\\u200d",Qv="(?:"+Sl+"|"+Dc+")",F1="(?:"+Vf+"|"+Dc+")",Sp="(?:"+Ba+"(?:d|ll|m|re|s|t|ve))?",wp="(?:"+Ba+"(?:D|LL|M|RE|S|T|VE))?",B1=wl+"?",Uf="["+Nu+"]?",F5="(?:"+qE+"(?:"+[Al,Ep,Xv].join("|")+")"+Uf+B1+")*",WE="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",B5="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Zv=Uf+B1+F5,M5="(?:"+[Gf,Ep,Xv].join("|")+")"+Zv,L5="(?:"+[Al+Oc+"?",Oc,Ep,Xv,Rc].join("|")+")",M1=RegExp(Ba,"g"),j5=RegExp(Oc,"g"),Yf=RegExp(Fc+"(?="+Fc+")|"+L5+Zv,"g"),KE=RegExp([Vf+"?"+Sl+"+"+Sp+"(?="+[Ru,Vf,"$"].join("|")+")",F1+"+"+wp+"(?="+[Ru,Vf+Qv,"$"].join("|")+")",Vf+"?"+Qv+"+"+Sp,Vf+"+"+wp,B5,WE,Ou,M5].join("|"),"g"),Ve=RegExp("["+qE+Rt+$r+Nu+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,qt=["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"],Mt=-1,Et={};Et[Ne]=Et[Be]=Et[Ae]=Et[Ie]=Et[Pe]=Et[lt]=Et[mt]=Et[Ct]=Et[dr]=!0,Et[Se]=Et[Ee]=Et[se]=Et[we]=Et[pe]=Et[me]=Et[He]=Et[it]=Et[Qe]=Et[Fe]=Et[$e]=Et[$t]=Et[bt]=Et[Je]=Et[he]=!1;var Tt={};Tt[Se]=Tt[Ee]=Tt[se]=Tt[pe]=Tt[we]=Tt[me]=Tt[Ne]=Tt[Be]=Tt[Ae]=Tt[Ie]=Tt[Pe]=Tt[Qe]=Tt[Fe]=Tt[$e]=Tt[$t]=Tt[bt]=Tt[Je]=Tt[ot]=Tt[lt]=Tt[mt]=Tt[Ct]=Tt[dr]=!0,Tt[He]=Tt[it]=Tt[he]=!1;var Jr={À:"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"},rn={"&":"&","<":"<",">":">",'"':""","'":"'"},Co={"&":"&","<":"<",">":">",""":'"',"'":"'"},Ma={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Bc=parseFloat,z5=parseInt,Ap=typeof xs=="object"&&xs&&xs.Object===Object&&xs,Jv=typeof self=="object"&&self&&self.Object===Object&&self,No=Ap||Jv||Function("return this")(),H5=t&&!t.nodeType&&t,L1=H5&&!0&&e&&!e.nodeType&&e,aH=L1&&L1.exports===H5,$5=aH&&Ap.process,La=function(){try{var le=L1&&L1.require&&L1.require("util").types;return le||$5&&$5.binding&&$5.binding("util")}catch{}}(),uH=La&&La.isArrayBuffer,lH=La&&La.isDate,cH=La&&La.isMap,fH=La&&La.isRegExp,dH=La&&La.isSet,hH=La&&La.isTypedArray;function Ws(le,ke,be){switch(be.length){case 0:return le.call(ke);case 1:return le.call(ke,be[0]);case 2:return le.call(ke,be[0],be[1]);case 3:return le.call(ke,be[0],be[1],be[2])}return le.apply(ke,be)}function Ime(le,ke,be,ht){for(var Ut=-1,Or=le==null?0:le.length;++Ut-1}function P5(le,ke,be){for(var ht=-1,Ut=le==null?0:le.length;++ht-1;);return be}function EH(le,ke){for(var be=le.length;be--&&kp(ke,le[be],0)>-1;);return be}function Lme(le,ke){for(var be=le.length,ht=0;be--;)le[be]===ke&&++ht;return ht}var jme=G5(Jr),zme=G5(rn);function Hme(le){return"\\"+Ma[le]}function $me(le,ke){return le==null?r:le[ke]}function xp(le){return Ve.test(le)}function Pme(le){return tt.test(le)}function qme(le){for(var ke,be=[];!(ke=le.next()).done;)be.push(ke.value);return be}function X5(le){var ke=-1,be=Array(le.size);return le.forEach(function(ht,Ut){be[++ke]=[Ut,ht]}),be}function SH(le,ke){return function(be){return le(ke(be))}}function Zf(le,ke){for(var be=-1,ht=le.length,Ut=0,Or=[];++be-1}function Nye(p,m){var w=this.__data__,O=lS(w,p);return O<0?(++this.size,w.push([p,m])):w[O][1]=m,this}Mc.prototype.clear=xye,Mc.prototype.delete=Tye,Mc.prototype.get=Iye,Mc.prototype.has=Cye,Mc.prototype.set=Nye;function Lc(p){var m=-1,w=p==null?0:p.length;for(this.clear();++m=m?p:m)),p}function $a(p,m,w,O,j,V){var te,oe=m&f,de=m&d,Te=m&h;if(w&&(te=j?w(p,O,j,V):w(p)),te!==r)return te;if(!Ln(p))return p;var Ce=Xt(p);if(Ce){if(te=Fbe(p),!oe)return gs(p,te)}else{var De=vi(p),st=De==it||De==Oe;if(od(p))return o$(p,oe);if(De==$e||De==Se||st&&!j){if(te=de||st?{}:w$(p),!oe)return de?wbe(p,Gye(te,p)):Sbe(p,FH(te,p))}else{if(!Tt[De])return j?p:{};te=Bbe(p,De,oe)}}V||(V=new Fu);var yt=V.get(p);if(yt)return yt;V.set(p,te),Z$(p)?p.forEach(function(jt){te.add($a(jt,m,w,jt,p,V))}):X$(p)&&p.forEach(function(jt,hr){te.set(hr,$a(jt,m,w,hr,p,V))});var Lt=Te?de?SI:EI:de?ms:zo,or=Ce?r:Lt(p);return ja(or||p,function(jt,hr){or&&(hr=jt,jt=p[hr]),sm(te,hr,$a(jt,m,w,hr,p,V))}),te}function Vye(p){var m=zo(p);return function(w){return BH(w,p,m)}}function BH(p,m,w){var O=w.length;if(p==null)return!O;for(p=nn(p);O--;){var j=w[O],V=m[j],te=p[j];if(te===r&&!(j in p)||!V(te))return!1}return!0}function MH(p,m,w){if(typeof p!="function")throw new za(s);return hm(function(){p.apply(r,w)},m)}function am(p,m,w,O){var j=-1,V=GE,te=!0,oe=p.length,de=[],Te=m.length;if(!oe)return de;w&&(m=xn(m,Ks(w))),O?(V=P5,te=!1):m.length>=o&&(V=em,te=!1,m=new H1(m));e:for(;++jj?0:j+w),O=O===r||O>j?j:tr(O),O<0&&(O+=j),O=w>O?0:eP(O);w0&&w(oe)?m>1?ti(oe,m-1,w,O,j):Qf(j,oe):O||(j[j.length]=oe)}return j}var nI=c$(),zH=c$(!0);function kl(p,m){return p&&nI(p,m,zo)}function oI(p,m){return p&&zH(p,m,zo)}function fS(p,m){return Xf(m,function(w){return Pc(p[w])})}function P1(p,m){m=rd(m,p);for(var w=0,O=m.length;p!=null&&wm}function Xye(p,m){return p!=null&&Vr.call(p,m)}function Qye(p,m){return p!=null&&m in nn(p)}function Zye(p,m,w){return p>=gi(m,w)&&p=120&&Ce.length>=120)?new H1(te&&Ce):r}Ce=p[0];var De=-1,st=oe[0];e:for(;++De-1;)oe!==p&&rS.call(oe,de,1),rS.call(p,de,1);return p}function XH(p,m){for(var w=p?m.length:0,O=w-1;w--;){var j=m[w];if(w==O||j!==V){var V=j;$c(j)?rS.call(p,j,1):pI(p,j)}}return p}function fI(p,m){return p+iS(NH()*(m-p+1))}function fbe(p,m,w,O){for(var j=-1,V=Oo(oS((m-p)/(w||1)),0),te=be(V);V--;)te[O?V:++j]=p,p+=w;return te}function dI(p,m){var w="";if(!p||m<1||m>K)return w;do m%2&&(w+=p),m=iS(m/2),m&&(p+=p);while(m);return w}function sr(p,m){return CI(x$(p,m,ys),p+"")}function dbe(p){return DH(Lp(p))}function hbe(p,m){var w=Lp(p);return SS(w,$1(m,0,w.length))}function cm(p,m,w,O){if(!Ln(p))return p;m=rd(m,p);for(var j=-1,V=m.length,te=V-1,oe=p;oe!=null&&++jj?0:j+m),w=w>j?j:w,w<0&&(w+=j),j=m>w?0:w-m>>>0,m>>>=0;for(var V=be(j);++O>>1,te=p[V];te!==null&&!Vs(te)&&(w?te<=m:te=o){var Te=m?null:Tbe(p);if(Te)return UE(Te);te=!1,j=em,de=new H1}else de=m?[]:oe;e:for(;++O=O?p:Pa(p,m,w)}var n$=oye||function(p){return No.clearTimeout(p)};function o$(p,m){if(m)return p.slice();var w=p.length,O=kH?kH(w):new p.constructor(w);return p.copy(O),O}function yI(p){var m=new p.constructor(p.byteLength);return new eS(m).set(new eS(p)),m}function ybe(p,m){var w=m?yI(p.buffer):p.buffer;return new p.constructor(w,p.byteOffset,p.byteLength)}function bbe(p){var m=new p.constructor(p.source,P.exec(p));return m.lastIndex=p.lastIndex,m}function _be(p){return im?nn(im.call(p)):{}}function i$(p,m){var w=m?yI(p.buffer):p.buffer;return new p.constructor(w,p.byteOffset,p.length)}function s$(p,m){if(p!==m){var w=p!==r,O=p===null,j=p===p,V=Vs(p),te=m!==r,oe=m===null,de=m===m,Te=Vs(m);if(!oe&&!Te&&!V&&p>m||V&&te&&de&&!oe&&!Te||O&&te&&de||!w&&de||!j)return 1;if(!O&&!V&&!Te&&p=oe)return de;var Te=w[O];return de*(Te=="desc"?-1:1)}}return p.index-m.index}function a$(p,m,w,O){for(var j=-1,V=p.length,te=w.length,oe=-1,de=m.length,Te=Oo(V-te,0),Ce=be(de+Te),De=!O;++oe1?w[j-1]:r,te=j>2?w[2]:r;for(V=p.length>3&&typeof V=="function"?(j--,V):r,te&&Hi(w[0],w[1],te)&&(V=j<3?r:V,j=1),m=nn(m);++O-1?j[V?m[te]:te]:r}}function h$(p){return Hc(function(m){var w=m.length,O=w,j=Ha.prototype.thru;for(p&&m.reverse();O--;){var V=m[O];if(typeof V!="function")throw new za(s);if(j&&!te&&_S(V)=="wrapper")var te=new Ha([],!0)}for(O=te?O:w;++O1&&br.reverse(),Ce&&deoe))return!1;var Te=V.get(p),Ce=V.get(m);if(Te&&Ce)return Te==m&&Ce==p;var De=-1,st=!0,yt=w&v?new H1:r;for(V.set(p,m),V.set(m,p);++De1?"& ":"")+m[O],m=m.join(w>2?", ":" "),p.replace(ps,`{ /* [wrapped with `+m+`] */ -`)}function Cbe(p){return Yt(p)||G1(p)||!!(_H&&p&&p[_H])}function Hc(p,m){var w=typeof p;return m=m??K,!!m&&(w=="number"||w!="symbol"&&ne.test(p))&&p>-1&&p%1==0&&p0){if(++m>=L)return arguments[0]}else m=0;return p.apply(r,arguments)}}function bS(p,m){var w=-1,O=p.length,j=O-1;for(m=m===r?O:m;++w1?p[m-1]:r;return w=typeof w=="function"?(p.pop(),w):r,C$(p,w)});function R$(p){var m=W(p);return m.__chain__=!0,m}function P_e(p,m){return m(p),p}function _S(p,m){return m(p)}var q_e=zc(function(p){var m=p.length,w=m?p[0]:0,O=this.__wrapped__,j=function(V){return Z5(V,p)};return m>1||this.__actions__.length||!(O instanceof gr)||!Hc(w)?this.thru(j):(O=O.slice(w,+w+(m?1:0)),O.__actions__.push({func:_S,args:[j],thisArg:r}),new Ha(O,this.__chain__).thru(function(V){return m&&!V.length&&V.push(r),V}))});function W_e(){return R$(this)}function K_e(){return new Ha(this.value(),this.__chain__)}function G_e(){this.__values__===r&&(this.__values__=K$(this.value()));var p=this.__index__>=this.__values__.length,m=p?r:this.__values__[this.__index__++];return{done:p,value:m}}function V_e(){return this}function U_e(p){for(var m,w=this;w instanceof iS;){var O=k$(w);O.__index__=0,O.__values__=r,m?j.__wrapped__=O:m=O;var j=O;w=w.__wrapped__}return j.__wrapped__=p,m}function Y_e(){var p=this.__wrapped__;if(p instanceof gr){var m=p;return this.__actions__.length&&(m=new gr(this)),m=m.reverse(),m.__actions__.push({func:_S,args:[TI],thisArg:r}),new Ha(m,this.__chain__)}return this.thru(TI)}function X_e(){return VH(this.__wrapped__,this.__actions__)}var Q_e=dS(function(p,m,w){Gr.call(p,w)?++p[w]:Lc(p,w,1)});function Z_e(p,m,w){var O=Yt(p)?sH:$ye;return w&&Hi(p,m,w)&&(m=r),O(p,Ot(m,3))}function J_e(p,m){var w=Yt(p)?Xf:CH;return w(p,Ot(m,3))}var eEe=o$(A$),tEe=o$(T$);function rEe(p,m){return ti(ES(p,m),1)}function nEe(p,m){return ti(ES(p,m),P)}function oEe(p,m,w){return w=w===r?1:er(w),ti(ES(p,m),w)}function O$(p,m){var w=Yt(p)?ja:ed;return w(p,Ot(m,3))}function D$(p,m){var w=Yt(p)?Sme:NH;return w(p,Ot(m,3))}var iEe=dS(function(p,m,w){Gr.call(p,w)?p[w].push(m):Lc(p,w,[m])});function sEe(p,m,w,O){p=vs(p)?p:Mp(p),w=w&&!O?er(w):0;var j=p.length;return w<0&&(w=Ro(j+w,0)),TS(p)?w<=j&&p.indexOf(m,w)>-1:!!j&&kp(p,m,w)>-1}var aEe=or(function(p,m,w){var O=-1,j=typeof m=="function",V=vs(p)?be(p.length):[];return ed(p,function(te){V[++O]=j?qs(m,te,w):am(te,m,w)}),V}),uEe=dS(function(p,m,w){Lc(p,w,m)});function ES(p,m){var w=Yt(p)?xn:MH;return w(p,Ot(m,3))}function lEe(p,m,w,O){return p==null?[]:(Yt(m)||(m=m==null?[]:[m]),w=O?r:w,Yt(w)||(w=w==null?[]:[w]),HH(p,m,w))}var cEe=dS(function(p,m,w){p[w?0:1].push(m)},function(){return[[],[]]});function fEe(p,m,w){var O=Yt(p)?z5:cH,j=arguments.length<3;return O(p,Ot(m,4),w,j,ed)}function dEe(p,m,w){var O=Yt(p)?wme:cH,j=arguments.length<3;return O(p,Ot(m,4),w,j,NH)}function hEe(p,m){var w=Yt(p)?Xf:CH;return w(p,kS(Ot(m,3)))}function pEe(p){var m=Yt(p)?AH:ibe;return m(p)}function gEe(p,m,w){(w?Hi(p,m,w):m===r)?m=1:m=er(m);var O=Yt(p)?Mye:sbe;return O(p,m)}function vEe(p){var m=Yt(p)?Lye:ube;return m(p)}function mEe(p){if(p==null)return 0;if(vs(p))return TS(p)?Tp(p):p.length;var m=gi(p);return m==st||m==_t?p.size:oI(p).length}function yEe(p,m,w){var O=Yt(p)?H5:lbe;return w&&Hi(p,m,w)&&(m=r),O(p,Ot(m,3))}var bEe=or(function(p,m){if(p==null)return[];var w=m.length;return w>1&&Hi(p,m[0],m[1])?m=[]:w>2&&Hi(m[0],m[1],m[2])&&(m=[m[0]]),HH(p,ti(m,1),[])}),SS=Zme||function(){return No.Date.now()};function _Ee(p,m){if(typeof m!="function")throw new za(s);return p=er(p),function(){if(--p<1)return m.apply(this,arguments)}}function F$(p,m,w){return m=w?r:m,m=p&&m==null?p.length:m,jc(p,T,r,r,r,r,m)}function B$(p,m){var w;if(typeof m!="function")throw new za(s);return p=er(p),function(){return--p>0&&(w=m.apply(this,arguments)),p<=1&&(m=r),w}}var II=or(function(p,m,w){var O=y;if(w.length){var j=Zf(w,Fp(II));O|=A}return jc(p,O,m,w,j)}),M$=or(function(p,m,w){var O=y|E;if(w.length){var j=Zf(w,Fp(M$));O|=A}return jc(m,O,p,w,j)});function L$(p,m,w){m=w?r:m;var O=jc(p,S,r,r,r,r,r,m);return O.placeholder=L$.placeholder,O}function j$(p,m,w){m=w?r:m;var O=jc(p,b,r,r,r,r,r,m);return O.placeholder=j$.placeholder,O}function z$(p,m,w){var O,j,V,te,oe,de,xe=0,Ie=!1,Fe=!1,ot=!0;if(typeof p!="function")throw new za(s);m=Wa(m)||0,jn(w)&&(Ie=!!w.leading,Fe="maxWait"in w,V=Fe?Ro(Wa(w.maxWait)||0,m):V,ot="trailing"in w?!!w.trailing:ot);function mt(io){var Bu=O,qc=j;return O=j=r,xe=io,te=p.apply(qc,Bu),te}function Mt(io){return xe=io,oe=dm(dr,m),Ie?mt(io):te}function nr(io){var Bu=io-de,qc=io-xe,oP=m-Bu;return Fe?pi(oP,V-qc):oP}function Lt(io){var Bu=io-de,qc=io-xe;return de===r||Bu>=m||Bu<0||Fe&&qc>=V}function dr(){var io=SS();if(Lt(io))return yr(io);oe=dm(dr,nr(io))}function yr(io){return oe=r,ot&&O?mt(io):(O=j=r,te)}function Vs(){oe!==r&&YH(oe),xe=0,O=de=j=oe=r}function $i(){return oe===r?te:yr(SS())}function Us(){var io=SS(),Bu=Lt(io);if(O=arguments,j=this,de=io,Bu){if(oe===r)return Mt(de);if(Fe)return YH(oe),oe=dm(dr,m),mt(de)}return oe===r&&(oe=dm(dr,m)),te}return Us.cancel=Vs,Us.flush=$i,Us}var EEe=or(function(p,m){return IH(p,1,m)}),SEe=or(function(p,m,w){return IH(p,Wa(m)||0,w)});function wEe(p){return jc(p,I)}function wS(p,m){if(typeof p!="function"||m!=null&&typeof m!="function")throw new za(s);var w=function(){var O=arguments,j=m?m.apply(this,O):O[0],V=w.cache;if(V.has(j))return V.get(j);var te=p.apply(this,O);return w.cache=V.set(j,te)||V,te};return w.cache=new(wS.Cache||Mc),w}wS.Cache=Mc;function kS(p){if(typeof p!="function")throw new za(s);return function(){var m=arguments;switch(m.length){case 0:return!p.call(this);case 1:return!p.call(this,m[0]);case 2:return!p.call(this,m[0],m[1]);case 3:return!p.call(this,m[0],m[1],m[2])}return!p.apply(this,m)}}function kEe(p){return B$(2,p)}var AEe=cbe(function(p,m){m=m.length==1&&Yt(m[0])?xn(m[0],Ws(Ot())):xn(ti(m,1),Ws(Ot()));var w=m.length;return or(function(O){for(var j=-1,V=pi(O.length,w);++j=m}),G1=DH(function(){return arguments}())?DH:function(p){return Xn(p)&&Gr.call(p,"callee")&&!bH.call(p,"callee")},Yt=be.isArray,HEe=eH?Ws(eH):Vye;function vs(p){return p!=null&&AS(p.length)&&!$c(p)}function oo(p){return Xn(p)&&vs(p)}function $Ee(p){return p===!0||p===!1||Xn(p)&&zi(p)==Ae}var od=eye||HI,PEe=tH?Ws(tH):Uye;function qEe(p){return Xn(p)&&p.nodeType===1&&!hm(p)}function WEe(p){if(p==null)return!0;if(vs(p)&&(Yt(p)||typeof p=="string"||typeof p.splice=="function"||od(p)||Bp(p)||G1(p)))return!p.length;var m=gi(p);if(m==st||m==_t)return!p.size;if(fm(p))return!oI(p).length;for(var w in p)if(Gr.call(p,w))return!1;return!0}function KEe(p,m){return um(p,m)}function GEe(p,m,w){w=typeof w=="function"?w:r;var O=w?w(p,m):r;return O===r?um(p,m,r,w):!!O}function CI(p){if(!Xn(p))return!1;var m=zi(p);return m==De||m==we||typeof p.message=="string"&&typeof p.name=="string"&&!hm(p)}function VEe(p){return typeof p=="number"&&EH(p)}function $c(p){if(!jn(p))return!1;var m=zi(p);return m==Qe||m==Ke||m==me||m==$t}function $$(p){return typeof p=="number"&&p==er(p)}function AS(p){return typeof p=="number"&&p>-1&&p%1==0&&p<=K}function jn(p){var m=typeof p;return p!=null&&(m=="object"||m=="function")}function Xn(p){return p!=null&&typeof p=="object"}var P$=rH?Ws(rH):Xye;function UEe(p,m){return p===m||nI(p,m,_I(m))}function YEe(p,m,w){return w=typeof w=="function"?w:r,nI(p,m,_I(m),w)}function XEe(p){return q$(p)&&p!=+p}function QEe(p){if(Dbe(p))throw new Vt(i);return FH(p)}function ZEe(p){return p===null}function JEe(p){return p==null}function q$(p){return typeof p=="number"||Xn(p)&&zi(p)==He}function hm(p){if(!Xn(p)||zi(p)!=$e)return!1;var m=ZE(p);if(m===null)return!0;var w=Gr.call(m,"constructor")&&m.constructor;return typeof w=="function"&&w instanceof w&&UE.call(w)==Ume}var RI=nH?Ws(nH):Qye;function eSe(p){return $$(p)&&p>=-K&&p<=K}var W$=oH?Ws(oH):Zye;function TS(p){return typeof p=="string"||!Yt(p)&&Xn(p)&&zi(p)==tt}function Gs(p){return typeof p=="symbol"||Xn(p)&&zi(p)==rt}var Bp=iH?Ws(iH):Jye;function tSe(p){return p===r}function rSe(p){return Xn(p)&&gi(p)==he}function nSe(p){return Xn(p)&&zi(p)==le}var oSe=vS(iI),iSe=vS(function(p,m){return p<=m});function K$(p){if(!p)return[];if(vs(p))return TS(p)?Ou(p):gs(p);if(em&&p[em])return Mme(p[em]());var m=gi(p),w=m==st?G5:m==_t?KE:Mp;return w(p)}function Pc(p){if(!p)return p===0?p:0;if(p=Wa(p),p===P||p===-P){var m=p<0?-1:1;return m*U}return p===p?p:0}function er(p){var m=Pc(p),w=m%1;return m===m?w?m-w:m:0}function G$(p){return p?P1(er(p),0,J):0}function Wa(p){if(typeof p=="number")return p;if(Gs(p))return X;if(jn(p)){var m=typeof p.valueOf=="function"?p.valueOf():p;p=jn(m)?m+"":m}if(typeof p!="string")return p===0?p:+p;p=fH(p);var w=Z.test(p);return w||ue.test(p)?B5(p.slice(2),w?2:8):F.test(p)?X:+p}function V$(p){return wl(p,ms(p))}function sSe(p){return p?P1(er(p),-K,K):p===0?p:0}function $r(p){return p==null?"":Ks(p)}var aSe=Op(function(p,m){if(fm(m)||vs(m)){wl(m,zo(m),p);return}for(var w in m)Gr.call(m,w)&&im(p,w,m[w])}),U$=Op(function(p,m){wl(m,ms(m),p)}),xS=Op(function(p,m,w,O){wl(m,ms(m),p,O)}),uSe=Op(function(p,m,w,O){wl(m,zo(m),p,O)}),lSe=zc(Z5);function cSe(p,m){var w=Rp(p);return m==null?w:TH(w,m)}var fSe=or(function(p,m){p=rn(p);var w=-1,O=m.length,j=O>2?m[2]:r;for(j&&Hi(m[0],m[1],j)&&(O=1);++w1),V}),wl(p,yI(p),w),O&&(w=$a(w,f|d|h,Ebe));for(var j=m.length;j--;)cI(w,m[j]);return w});function NSe(p,m){return X$(p,kS(Ot(m)))}var CSe=zc(function(p,m){return p==null?{}:rbe(p,m)});function X$(p,m){if(p==null)return{};var w=xn(yI(p),function(O){return[O]});return m=Ot(m),$H(p,w,function(O,j){return m(O,j[0])})}function RSe(p,m,w){m=rd(m,p);var O=-1,j=m.length;for(j||(j=1,p=r);++Om){var O=p;p=m,m=O}if(w||p%1||m%1){var j=SH();return pi(p+j*(m-p+Fc("1e-"+((j+"").length-1))),m)}return aI(p,m)}var PSe=Dp(function(p,m,w){return m=m.toLowerCase(),p+(w?J$(m):m)});function J$(p){return FI($r(p).toLowerCase())}function eP(p){return p=$r(p),p&&p.replace(ye,Rme).replace(F5,"")}function qSe(p,m,w){p=$r(p),m=Ks(m);var O=p.length;w=w===r?O:P1(er(w),0,O);var j=w;return w-=m.length,w>=0&&p.slice(w,j)==m}function WSe(p){return p=$r(p),p&&qr.test(p)?p.replace(Jt,Ome):p}function KSe(p){return p=$r(p),p&&xo.test(p)?p.replace(Kr,"\\$&"):p}var GSe=Dp(function(p,m,w){return p+(w?"-":"")+m.toLowerCase()}),VSe=Dp(function(p,m,w){return p+(w?" ":"")+m.toLowerCase()}),USe=n$("toLowerCase");function YSe(p,m,w){p=$r(p),m=er(m);var O=m?Tp(p):0;if(!m||O>=m)return p;var j=(m-O)/2;return gS(rS(j),w)+p+gS(tS(j),w)}function XSe(p,m,w){p=$r(p),m=er(m);var O=m?Tp(p):0;return m&&O>>0,w?(p=$r(p),p&&(typeof m=="string"||m!=null&&!RI(m))&&(m=Ks(m),!m&&Ap(p))?nd(Ou(p),0,w):p.split(m,w)):[]}var nwe=Dp(function(p,m,w){return p+(w?" ":"")+FI(m)});function owe(p,m,w){return p=$r(p),w=w==null?0:P1(er(w),0,p.length),m=Ks(m),p.slice(w,w+m.length)==m}function iwe(p,m,w){var O=W.templateSettings;w&&Hi(p,m,w)&&(m=r),p=$r(p),m=xS({},m,O,c$);var j=xS({},m.imports,O.imports,c$),V=zo(j),te=K5(j,V),oe,de,xe=0,Ie=m.interpolate||qe,Fe="__p += '",ot=V5((m.escape||qe).source+"|"+Ie.source+"|"+(Ie===pr?H:qe).source+"|"+(m.evaluate||qe).source+"|$","g"),mt="//# sourceURL="+(Gr.call(m,"sourceURL")?(m.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Bt+"]")+` -`;p.replace(ot,function(Lt,dr,yr,Vs,$i,Us){return yr||(yr=Vs),Fe+=p.slice(xe,Us).replace(kt,Dme),dr&&(oe=!0,Fe+=`' + -__e(`+dr+`) + -'`),$i&&(de=!0,Fe+=`'; +`)}function Lbe(p){return Xt(p)||K1(p)||!!(IH&&p&&p[IH])}function $c(p,m){var w=typeof p;return m=m??K,!!m&&(w=="number"||w!="symbol"&&ne.test(p))&&p>-1&&p%1==0&&p0){if(++m>=L)return arguments[0]}else m=0;return p.apply(r,arguments)}}function SS(p,m){var w=-1,O=p.length,j=O-1;for(m=m===r?O:m;++w1?p[m-1]:r;return w=typeof w=="function"?(p.pop(),w):r,j$(p,w)});function z$(p){var m=W(p);return m.__chain__=!0,m}function Y_e(p,m){return m(p),p}function wS(p,m){return m(p)}var X_e=Hc(function(p){var m=p.length,w=m?p[0]:0,O=this.__wrapped__,j=function(V){return rI(V,p)};return m>1||this.__actions__.length||!(O instanceof vr)||!$c(w)?this.thru(j):(O=O.slice(w,+w+(m?1:0)),O.__actions__.push({func:wS,args:[j],thisArg:r}),new Ha(O,this.__chain__).thru(function(V){return m&&!V.length&&V.push(r),V}))});function Q_e(){return z$(this)}function Z_e(){return new Ha(this.value(),this.__chain__)}function J_e(){this.__values__===r&&(this.__values__=J$(this.value()));var p=this.__index__>=this.__values__.length,m=p?r:this.__values__[this.__index__++];return{done:p,value:m}}function eEe(){return this}function tEe(p){for(var m,w=this;w instanceof uS;){var O=O$(w);O.__index__=0,O.__values__=r,m?j.__wrapped__=O:m=O;var j=O;w=w.__wrapped__}return j.__wrapped__=p,m}function rEe(){var p=this.__wrapped__;if(p instanceof vr){var m=p;return this.__actions__.length&&(m=new vr(this)),m=m.reverse(),m.__actions__.push({func:wS,args:[NI],thisArg:r}),new Ha(m,this.__chain__)}return this.thru(NI)}function nEe(){return t$(this.__wrapped__,this.__actions__)}var oEe=gS(function(p,m,w){Vr.call(p,w)?++p[w]:jc(p,w,1)});function iEe(p,m,w){var O=Xt(p)?pH:Uye;return w&&Hi(p,m,w)&&(m=r),O(p,Ft(m,3))}function sEe(p,m){var w=Xt(p)?Xf:jH;return w(p,Ft(m,3))}var aEe=d$(D$),uEe=d$(F$);function lEe(p,m){return ti(AS(p,m),1)}function cEe(p,m){return ti(AS(p,m),$)}function fEe(p,m,w){return w=w===r?1:tr(w),ti(AS(p,m),w)}function H$(p,m){var w=Xt(p)?ja:ed;return w(p,Ft(m,3))}function $$(p,m){var w=Xt(p)?Cme:LH;return w(p,Ft(m,3))}var dEe=gS(function(p,m,w){Vr.call(p,w)?p[w].push(m):jc(p,w,[m])});function hEe(p,m,w,O){p=vs(p)?p:Lp(p),w=w&&!O?tr(w):0;var j=p.length;return w<0&&(w=Oo(j+w,0)),CS(p)?w<=j&&p.indexOf(m,w)>-1:!!j&&kp(p,m,w)>-1}var pEe=sr(function(p,m,w){var O=-1,j=typeof m=="function",V=vs(p)?be(p.length):[];return ed(p,function(te){V[++O]=j?Ws(m,te,w):um(te,m,w)}),V}),gEe=gS(function(p,m,w){jc(p,w,m)});function AS(p,m){var w=Xt(p)?xn:WH;return w(p,Ft(m,3))}function vEe(p,m,w,O){return p==null?[]:(Xt(m)||(m=m==null?[]:[m]),w=O?r:w,Xt(w)||(w=w==null?[]:[w]),UH(p,m,w))}var mEe=gS(function(p,m,w){p[w?0:1].push(m)},function(){return[[],[]]});function yEe(p,m,w){var O=Xt(p)?q5:yH,j=arguments.length<3;return O(p,Ft(m,4),w,j,ed)}function bEe(p,m,w){var O=Xt(p)?Nme:yH,j=arguments.length<3;return O(p,Ft(m,4),w,j,LH)}function _Ee(p,m){var w=Xt(p)?Xf:jH;return w(p,TS(Ft(m,3)))}function EEe(p){var m=Xt(p)?DH:dbe;return m(p)}function SEe(p,m,w){(w?Hi(p,m,w):m===r)?m=1:m=tr(m);var O=Xt(p)?qye:hbe;return O(p,m)}function wEe(p){var m=Xt(p)?Wye:gbe;return m(p)}function AEe(p){if(p==null)return 0;if(vs(p))return CS(p)?Tp(p):p.length;var m=vi(p);return m==Qe||m==bt?p.size:uI(p).length}function kEe(p,m,w){var O=Xt(p)?W5:vbe;return w&&Hi(p,m,w)&&(m=r),O(p,Ft(m,3))}var xEe=sr(function(p,m){if(p==null)return[];var w=m.length;return w>1&&Hi(p,m[0],m[1])?m=[]:w>2&&Hi(m[0],m[1],m[2])&&(m=[m[0]]),UH(p,ti(m,1),[])}),kS=iye||function(){return No.Date.now()};function TEe(p,m){if(typeof m!="function")throw new za(s);return p=tr(p),function(){if(--p<1)return m.apply(this,arguments)}}function P$(p,m,w){return m=w?r:m,m=p&&m==null?p.length:m,zc(p,x,r,r,r,r,m)}function q$(p,m){var w;if(typeof m!="function")throw new za(s);return p=tr(p),function(){return--p>0&&(w=m.apply(this,arguments)),p<=1&&(m=r),w}}var OI=sr(function(p,m,w){var O=y;if(w.length){var j=Zf(w,Bp(OI));O|=A}return zc(p,O,m,w,j)}),W$=sr(function(p,m,w){var O=y|E;if(w.length){var j=Zf(w,Bp(W$));O|=A}return zc(m,O,p,w,j)});function K$(p,m,w){m=w?r:m;var O=zc(p,S,r,r,r,r,r,m);return O.placeholder=K$.placeholder,O}function G$(p,m,w){m=w?r:m;var O=zc(p,b,r,r,r,r,r,m);return O.placeholder=G$.placeholder,O}function V$(p,m,w){var O,j,V,te,oe,de,Te=0,Ce=!1,De=!1,st=!0;if(typeof p!="function")throw new za(s);m=Wa(m)||0,Ln(w)&&(Ce=!!w.leading,De="maxWait"in w,V=De?Oo(Wa(w.maxWait)||0,m):V,st="trailing"in w?!!w.trailing:st);function yt(so){var Mu=O,Wc=j;return O=j=r,Te=so,te=p.apply(Wc,Mu),te}function Lt(so){return Te=so,oe=hm(hr,m),Ce?yt(so):te}function or(so){var Mu=so-de,Wc=so-Te,dP=m-Mu;return De?gi(dP,V-Wc):dP}function jt(so){var Mu=so-de,Wc=so-Te;return de===r||Mu>=m||Mu<0||De&&Wc>=V}function hr(){var so=kS();if(jt(so))return br(so);oe=hm(hr,or(so))}function br(so){return oe=r,st&&O?yt(so):(O=j=r,te)}function Us(){oe!==r&&n$(oe),Te=0,O=de=j=oe=r}function $i(){return oe===r?te:br(kS())}function Ys(){var so=kS(),Mu=jt(so);if(O=arguments,j=this,de=so,Mu){if(oe===r)return Lt(de);if(De)return n$(oe),oe=hm(hr,m),yt(de)}return oe===r&&(oe=hm(hr,m)),te}return Ys.cancel=Us,Ys.flush=$i,Ys}var IEe=sr(function(p,m){return MH(p,1,m)}),CEe=sr(function(p,m,w){return MH(p,Wa(m)||0,w)});function NEe(p){return zc(p,I)}function xS(p,m){if(typeof p!="function"||m!=null&&typeof m!="function")throw new za(s);var w=function(){var O=arguments,j=m?m.apply(this,O):O[0],V=w.cache;if(V.has(j))return V.get(j);var te=p.apply(this,O);return w.cache=V.set(j,te)||V,te};return w.cache=new(xS.Cache||Lc),w}xS.Cache=Lc;function TS(p){if(typeof p!="function")throw new za(s);return function(){var m=arguments;switch(m.length){case 0:return!p.call(this);case 1:return!p.call(this,m[0]);case 2:return!p.call(this,m[0],m[1]);case 3:return!p.call(this,m[0],m[1],m[2])}return!p.apply(this,m)}}function REe(p){return q$(2,p)}var OEe=mbe(function(p,m){m=m.length==1&&Xt(m[0])?xn(m[0],Ks(Ft())):xn(ti(m,1),Ks(Ft()));var w=m.length;return sr(function(O){for(var j=-1,V=gi(O.length,w);++j=m}),K1=$H(function(){return arguments}())?$H:function(p){return Yn(p)&&Vr.call(p,"callee")&&!TH.call(p,"callee")},Xt=be.isArray,VEe=uH?Ks(uH):ebe;function vs(p){return p!=null&&IS(p.length)&&!Pc(p)}function io(p){return Yn(p)&&vs(p)}function UEe(p){return p===!0||p===!1||Yn(p)&&zi(p)==we}var od=aye||WI,YEe=lH?Ks(lH):tbe;function XEe(p){return Yn(p)&&p.nodeType===1&&!pm(p)}function QEe(p){if(p==null)return!0;if(vs(p)&&(Xt(p)||typeof p=="string"||typeof p.splice=="function"||od(p)||Mp(p)||K1(p)))return!p.length;var m=vi(p);if(m==Qe||m==bt)return!p.size;if(dm(p))return!uI(p).length;for(var w in p)if(Vr.call(p,w))return!1;return!0}function ZEe(p,m){return lm(p,m)}function JEe(p,m,w){w=typeof w=="function"?w:r;var O=w?w(p,m):r;return O===r?lm(p,m,r,w):!!O}function FI(p){if(!Yn(p))return!1;var m=zi(p);return m==He||m==xe||typeof p.message=="string"&&typeof p.name=="string"&&!pm(p)}function eSe(p){return typeof p=="number"&&CH(p)}function Pc(p){if(!Ln(p))return!1;var m=zi(p);return m==it||m==Oe||m==ve||m==kt}function Y$(p){return typeof p=="number"&&p==tr(p)}function IS(p){return typeof p=="number"&&p>-1&&p%1==0&&p<=K}function Ln(p){var m=typeof p;return p!=null&&(m=="object"||m=="function")}function Yn(p){return p!=null&&typeof p=="object"}var X$=cH?Ks(cH):nbe;function tSe(p,m){return p===m||aI(p,m,AI(m))}function rSe(p,m,w){return w=typeof w=="function"?w:r,aI(p,m,AI(m),w)}function nSe(p){return Q$(p)&&p!=+p}function oSe(p){if(Hbe(p))throw new Ut(i);return PH(p)}function iSe(p){return p===null}function sSe(p){return p==null}function Q$(p){return typeof p=="number"||Yn(p)&&zi(p)==Fe}function pm(p){if(!Yn(p)||zi(p)!=$e)return!1;var m=tS(p);if(m===null)return!0;var w=Vr.call(m,"constructor")&&m.constructor;return typeof w=="function"&&w instanceof w&&QE.call(w)==tye}var BI=fH?Ks(fH):obe;function aSe(p){return Y$(p)&&p>=-K&&p<=K}var Z$=dH?Ks(dH):ibe;function CS(p){return typeof p=="string"||!Xt(p)&&Yn(p)&&zi(p)==Je}function Vs(p){return typeof p=="symbol"||Yn(p)&&zi(p)==ot}var Mp=hH?Ks(hH):sbe;function uSe(p){return p===r}function lSe(p){return Yn(p)&&vi(p)==he}function cSe(p){return Yn(p)&&zi(p)==ue}var fSe=bS(lI),dSe=bS(function(p,m){return p<=m});function J$(p){if(!p)return[];if(vs(p))return CS(p)?Du(p):gs(p);if(tm&&p[tm])return qme(p[tm]());var m=vi(p),w=m==Qe?X5:m==bt?UE:Lp;return w(p)}function qc(p){if(!p)return p===0?p:0;if(p=Wa(p),p===$||p===-$){var m=p<0?-1:1;return m*U}return p===p?p:0}function tr(p){var m=qc(p),w=m%1;return m===m?w?m-w:m:0}function eP(p){return p?$1(tr(p),0,J):0}function Wa(p){if(typeof p=="number")return p;if(Vs(p))return X;if(Ln(p)){var m=typeof p.valueOf=="function"?p.valueOf():p;p=Ln(m)?m+"":m}if(typeof p!="string")return p===0?p:+p;p=bH(p);var w=Z.test(p);return w||ae.test(p)?z5(p.slice(2),w?2:8):B.test(p)?X:+p}function tP(p){return xl(p,ms(p))}function hSe(p){return p?$1(tr(p),-K,K):p===0?p:0}function Pr(p){return p==null?"":Gs(p)}var pSe=Dp(function(p,m){if(dm(m)||vs(m)){xl(m,zo(m),p);return}for(var w in m)Vr.call(m,w)&&sm(p,w,m[w])}),rP=Dp(function(p,m){xl(m,ms(m),p)}),NS=Dp(function(p,m,w,O){xl(m,ms(m),p,O)}),gSe=Dp(function(p,m,w,O){xl(m,zo(m),p,O)}),vSe=Hc(rI);function mSe(p,m){var w=Op(p);return m==null?w:FH(w,m)}var ySe=sr(function(p,m){p=nn(p);var w=-1,O=m.length,j=O>2?m[2]:r;for(j&&Hi(m[0],m[1],j)&&(O=1);++w1),V}),xl(p,SI(p),w),O&&(w=$a(w,f|d|h,Ibe));for(var j=m.length;j--;)pI(w,m[j]);return w});function MSe(p,m){return oP(p,TS(Ft(m)))}var LSe=Hc(function(p,m){return p==null?{}:lbe(p,m)});function oP(p,m){if(p==null)return{};var w=xn(SI(p),function(O){return[O]});return m=Ft(m),YH(p,w,function(O,j){return m(O,j[0])})}function jSe(p,m,w){m=rd(m,p);var O=-1,j=m.length;for(j||(j=1,p=r);++Om){var O=p;p=m,m=O}if(w||p%1||m%1){var j=NH();return gi(p+j*(m-p+Bc("1e-"+((j+"").length-1))),m)}return fI(p,m)}var YSe=Fp(function(p,m,w){return m=m.toLowerCase(),p+(w?aP(m):m)});function aP(p){return jI(Pr(p).toLowerCase())}function uP(p){return p=Pr(p),p&&p.replace(ye,jme).replace(j5,"")}function XSe(p,m,w){p=Pr(p),m=Gs(m);var O=p.length;w=w===r?O:$1(tr(w),0,O);var j=w;return w-=m.length,w>=0&&p.slice(w,j)==m}function QSe(p){return p=Pr(p),p&&Wr.test(p)?p.replace(er,zme):p}function ZSe(p){return p=Pr(p),p&&Io.test(p)?p.replace(Gr,"\\$&"):p}var JSe=Fp(function(p,m,w){return p+(w?"-":"")+m.toLowerCase()}),ewe=Fp(function(p,m,w){return p+(w?" ":"")+m.toLowerCase()}),twe=f$("toLowerCase");function rwe(p,m,w){p=Pr(p),m=tr(m);var O=m?Tp(p):0;if(!m||O>=m)return p;var j=(m-O)/2;return yS(iS(j),w)+p+yS(oS(j),w)}function nwe(p,m,w){p=Pr(p),m=tr(m);var O=m?Tp(p):0;return m&&O>>0,w?(p=Pr(p),p&&(typeof m=="string"||m!=null&&!BI(m))&&(m=Gs(m),!m&&xp(p))?nd(Du(p),0,w):p.split(m,w)):[]}var cwe=Fp(function(p,m,w){return p+(w?" ":"")+jI(m)});function fwe(p,m,w){return p=Pr(p),w=w==null?0:$1(tr(w),0,p.length),m=Gs(m),p.slice(w,w+m.length)==m}function dwe(p,m,w){var O=W.templateSettings;w&&Hi(p,m,w)&&(m=r),p=Pr(p),m=NS({},m,O,y$);var j=NS({},m.imports,O.imports,y$),V=zo(j),te=Y5(j,V),oe,de,Te=0,Ce=m.interpolate||qe,De="__p += '",st=Q5((m.escape||qe).source+"|"+Ce.source+"|"+(Ce===gr?H:qe).source+"|"+(m.evaluate||qe).source+"|$","g"),yt="//# sourceURL="+(Vr.call(m,"sourceURL")?(m.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Mt+"]")+` +`;p.replace(st,function(jt,hr,br,Us,$i,Ys){return br||(br=Us),De+=p.slice(Te,Ys).replace(xt,Hme),hr&&(oe=!0,De+=`' + +__e(`+hr+`) + +'`),$i&&(de=!0,De+=`'; `+$i+`; -__p += '`),yr&&(Fe+=`' + -((__t = (`+yr+`)) == null ? '' : __t) + -'`),xe=Us+Lt.length,Lt}),Fe+=`'; -`;var Mt=Gr.call(m,"variable")&&m.variable;if(!Mt)Fe=`with (obj) { -`+Fe+` +__p += '`),br&&(De+=`' + +((__t = (`+br+`)) == null ? '' : __t) + +'`),Te=Ys+jt.length,jt}),De+=`'; +`;var Lt=Vr.call(m,"variable")&&m.variable;if(!Lt)De=`with (obj) { +`+De+` } -`;else if(Y.test(Mt))throw new Vt(a);Fe=(de?Fe.replace(xr,""):Fe).replace(Ft,"$1").replace(Pr,"$1;"),Fe="function("+(Mt||"obj")+`) { -`+(Mt?"":`obj || (obj = {}); +`;else if(Y.test(Lt))throw new Ut(a);De=(de?De.replace(Cr,""):De).replace(Bt,"$1").replace(qr,"$1;"),De="function("+(Lt||"obj")+`) { +`+(Lt?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(oe?", __e = _.escape":"")+(de?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; -`)+Fe+`return __p -}`;var nr=rP(function(){return Rr(V,mt+"return "+Fe).apply(r,te)});if(nr.source=Fe,CI(nr))throw nr;return nr}function swe(p){return $r(p).toLowerCase()}function awe(p){return $r(p).toUpperCase()}function uwe(p,m,w){if(p=$r(p),p&&(w||m===r))return fH(p);if(!p||!(m=Ks(m)))return p;var O=Ou(p),j=Ou(m),V=dH(O,j),te=hH(O,j)+1;return nd(O,V,te).join("")}function lwe(p,m,w){if(p=$r(p),p&&(w||m===r))return p.slice(0,gH(p)+1);if(!p||!(m=Ks(m)))return p;var O=Ou(p),j=hH(O,Ou(m))+1;return nd(O,0,j).join("")}function cwe(p,m,w){if(p=$r(p),p&&(w||m===r))return p.replace(zr,"");if(!p||!(m=Ks(m)))return p;var O=Ou(p),j=dH(O,Ou(m));return nd(O,j).join("")}function fwe(p,m){var w=R,O=D;if(jn(m)){var j="separator"in m?m.separator:j;w="length"in m?er(m.length):w,O="omission"in m?Ks(m.omission):O}p=$r(p);var V=p.length;if(Ap(p)){var te=Ou(p);V=te.length}if(w>=V)return p;var oe=w-Tp(O);if(oe<1)return O;var de=te?nd(te,0,oe).join(""):p.slice(0,oe);if(j===r)return de+O;if(te&&(oe+=de.length-oe),RI(j)){if(p.slice(oe).search(j)){var xe,Ie=de;for(j.global||(j=V5(j.source,$r($.exec(j))+"g")),j.lastIndex=0;xe=j.exec(Ie);)var Fe=xe.index;de=de.slice(0,Fe===r?oe:Fe)}}else if(p.indexOf(Ks(j),oe)!=oe){var ot=de.lastIndexOf(j);ot>-1&&(de=de.slice(0,ot))}return de+O}function dwe(p){return p=$r(p),p&&It.test(p)?p.replace(cn,Hme):p}var hwe=Dp(function(p,m,w){return p+(w?" ":"")+m.toUpperCase()}),FI=n$("toUpperCase");function tP(p,m,w){return p=$r(p),m=w?r:m,m===r?Bme(p)?qme(p):Tme(p):p.match(m)||[]}var rP=or(function(p,m){try{return qs(p,r,m)}catch(w){return CI(w)?w:new Vt(w)}}),pwe=zc(function(p,m){return ja(m,function(w){w=kl(w),Lc(p,w,II(p[w],p))}),p});function gwe(p){var m=p==null?0:p.length,w=Ot();return p=m?xn(p,function(O){if(typeof O[1]!="function")throw new za(s);return[w(O[0]),O[1]]}):[],or(function(O){for(var j=-1;++jK)return[];var w=J,O=pi(p,J);m=Ot(m),p-=J;for(var j=W5(O,m);++w0||m<0)?new gr(w):(p<0?w=w.takeRight(-p):p&&(w=w.drop(p)),m!==r&&(m=er(m),w=m<0?w.dropRight(-m):w.take(m-p)),w)},gr.prototype.takeRightWhile=function(p){return this.reverse().takeWhile(p).reverse()},gr.prototype.toArray=function(){return this.take(J)},Sl(gr.prototype,function(p,m){var w=/^(?:filter|find|map|reject)|While$/.test(m),O=/^(?:head|last)$/.test(m),j=W[O?"take"+(m=="last"?"Right":""):m],V=O||/^find/.test(m);j&&(W.prototype[m]=function(){var te=this.__wrapped__,oe=O?[1]:arguments,de=te instanceof gr,xe=oe[0],Ie=de||Yt(te),Fe=function(dr){var yr=j.apply(W,Qf([dr],oe));return O&&ot?yr[0]:yr};Ie&&w&&typeof xe=="function"&&xe.length!=1&&(de=Ie=!1);var ot=this.__chain__,mt=!!this.__actions__.length,Mt=V&&!ot,nr=de&&!mt;if(!V&&Ie){te=nr?te:new gr(this);var Lt=p.apply(te,oe);return Lt.__actions__.push({func:_S,args:[Fe],thisArg:r}),new Ha(Lt,ot)}return Mt&&nr?p.apply(this,oe):(Lt=this.thru(Fe),Mt?O?Lt.value()[0]:Lt.value():Lt)})}),ja(["pop","push","shift","sort","splice","unshift"],function(p){var m=GE[p],w=/^(?:push|sort|unshift)$/.test(p)?"tap":"thru",O=/^(?:pop|shift)$/.test(p);W.prototype[p]=function(){var j=arguments;if(O&&!this.__chain__){var V=this.value();return m.apply(Yt(V)?V:[],j)}return this[w](function(te){return m.apply(Yt(te)?te:[],j)})}}),Sl(gr.prototype,function(p,m){var w=W[m];if(w){var O=w.name+"";Gr.call(Cp,O)||(Cp[O]=[]),Cp[O].push({name:m,func:w})}}),Cp[hS(r,E).name]=[{name:"wrapper",func:r}],gr.prototype.clone=fye,gr.prototype.reverse=dye,gr.prototype.value=hye,W.prototype.at=q_e,W.prototype.chain=W_e,W.prototype.commit=K_e,W.prototype.next=G_e,W.prototype.plant=U_e,W.prototype.reverse=Y_e,W.prototype.toJSON=W.prototype.valueOf=W.prototype.value=X_e,W.prototype.first=W.prototype.head,em&&(W.prototype[em]=V_e),W},xp=Wme();j1?((j1.exports=xp)._=xp,M5._=xp):No._=xp}).call(Ts)})(HA,HA.exports);var Kb=HA.exports;const gHe=e=>{if(!Kb.isPlainObject(e))return!1;const t=Object.keys(e);return t.length!==1?!1:t[0].startsWith("data:image/")},vHe=e=>{const t=Object.keys(e).find(r=>r.startsWith("data:image/"));return t?`![image](${e[t]??""})`:""},Ale=e=>e.map(t=>typeof t=="string"?t:gHe(t)?vHe(t):pHe(t)).join(` +`)+De+`return __p +}`;var or=cP(function(){return Or(V,yt+"return "+De).apply(r,te)});if(or.source=De,FI(or))throw or;return or}function hwe(p){return Pr(p).toLowerCase()}function pwe(p){return Pr(p).toUpperCase()}function gwe(p,m,w){if(p=Pr(p),p&&(w||m===r))return bH(p);if(!p||!(m=Gs(m)))return p;var O=Du(p),j=Du(m),V=_H(O,j),te=EH(O,j)+1;return nd(O,V,te).join("")}function vwe(p,m,w){if(p=Pr(p),p&&(w||m===r))return p.slice(0,wH(p)+1);if(!p||!(m=Gs(m)))return p;var O=Du(p),j=EH(O,Du(m))+1;return nd(O,0,j).join("")}function mwe(p,m,w){if(p=Pr(p),p&&(w||m===r))return p.replace(Hr,"");if(!p||!(m=Gs(m)))return p;var O=Du(p),j=_H(O,Du(m));return nd(O,j).join("")}function ywe(p,m){var w=R,O=D;if(Ln(m)){var j="separator"in m?m.separator:j;w="length"in m?tr(m.length):w,O="omission"in m?Gs(m.omission):O}p=Pr(p);var V=p.length;if(xp(p)){var te=Du(p);V=te.length}if(w>=V)return p;var oe=w-Tp(O);if(oe<1)return O;var de=te?nd(te,0,oe).join(""):p.slice(0,oe);if(j===r)return de+O;if(te&&(oe+=de.length-oe),BI(j)){if(p.slice(oe).search(j)){var Te,Ce=de;for(j.global||(j=Q5(j.source,Pr(P.exec(j))+"g")),j.lastIndex=0;Te=j.exec(Ce);)var De=Te.index;de=de.slice(0,De===r?oe:De)}}else if(p.indexOf(Gs(j),oe)!=oe){var st=de.lastIndexOf(j);st>-1&&(de=de.slice(0,st))}return de+O}function bwe(p){return p=Pr(p),p&&Nt.test(p)?p.replace(cn,Vme):p}var _we=Fp(function(p,m,w){return p+(w?" ":"")+m.toUpperCase()}),jI=f$("toUpperCase");function lP(p,m,w){return p=Pr(p),m=w?r:m,m===r?Pme(p)?Xme(p):Dme(p):p.match(m)||[]}var cP=sr(function(p,m){try{return Ws(p,r,m)}catch(w){return FI(w)?w:new Ut(w)}}),Ewe=Hc(function(p,m){return ja(m,function(w){w=Tl(w),jc(p,w,OI(p[w],p))}),p});function Swe(p){var m=p==null?0:p.length,w=Ft();return p=m?xn(p,function(O){if(typeof O[1]!="function")throw new za(s);return[w(O[0]),O[1]]}):[],sr(function(O){for(var j=-1;++jK)return[];var w=J,O=gi(p,J);m=Ft(m),p-=J;for(var j=U5(O,m);++w0||m<0)?new vr(w):(p<0?w=w.takeRight(-p):p&&(w=w.drop(p)),m!==r&&(m=tr(m),w=m<0?w.dropRight(-m):w.take(m-p)),w)},vr.prototype.takeRightWhile=function(p){return this.reverse().takeWhile(p).reverse()},vr.prototype.toArray=function(){return this.take(J)},kl(vr.prototype,function(p,m){var w=/^(?:filter|find|map|reject)|While$/.test(m),O=/^(?:head|last)$/.test(m),j=W[O?"take"+(m=="last"?"Right":""):m],V=O||/^find/.test(m);j&&(W.prototype[m]=function(){var te=this.__wrapped__,oe=O?[1]:arguments,de=te instanceof vr,Te=oe[0],Ce=de||Xt(te),De=function(hr){var br=j.apply(W,Qf([hr],oe));return O&&st?br[0]:br};Ce&&w&&typeof Te=="function"&&Te.length!=1&&(de=Ce=!1);var st=this.__chain__,yt=!!this.__actions__.length,Lt=V&&!st,or=de&&!yt;if(!V&&Ce){te=or?te:new vr(this);var jt=p.apply(te,oe);return jt.__actions__.push({func:wS,args:[De],thisArg:r}),new Ha(jt,st)}return Lt&&or?p.apply(this,oe):(jt=this.thru(De),Lt?O?jt.value()[0]:jt.value():jt)})}),ja(["pop","push","shift","sort","splice","unshift"],function(p){var m=YE[p],w=/^(?:push|sort|unshift)$/.test(p)?"tap":"thru",O=/^(?:pop|shift)$/.test(p);W.prototype[p]=function(){var j=arguments;if(O&&!this.__chain__){var V=this.value();return m.apply(Xt(V)?V:[],j)}return this[w](function(te){return m.apply(Xt(te)?te:[],j)})}}),kl(vr.prototype,function(p,m){var w=W[m];if(w){var O=w.name+"";Vr.call(Rp,O)||(Rp[O]=[]),Rp[O].push({name:m,func:w})}}),Rp[vS(r,E).name]=[{name:"wrapper",func:r}],vr.prototype.clone=yye,vr.prototype.reverse=bye,vr.prototype.value=_ye,W.prototype.at=X_e,W.prototype.chain=Q_e,W.prototype.commit=Z_e,W.prototype.next=J_e,W.prototype.plant=tEe,W.prototype.reverse=rEe,W.prototype.toJSON=W.prototype.valueOf=W.prototype.value=nEe,W.prototype.first=W.prototype.head,tm&&(W.prototype[tm]=eEe),W},Ip=Qme();L1?((L1.exports=Ip)._=Ip,H5._=Ip):No._=Ip}).call(xs)})(Kk,Kk.exports);var Ub=Kk.exports;const SHe=e=>{if(!Ub.isPlainObject(e))return!1;const t=Object.keys(e);return t.length!==1?!1:t[0].startsWith("data:image/")},wHe=e=>{const t=Object.keys(e).find(r=>r.startsWith("data:image/"));return t?`![image](${e[t]??""})`:""},Ole=e=>e.map(t=>typeof t=="string"?t:SHe(t)?wHe(t):EHe(t)).join(` -`),fG=e=>!!e.is_chat_input,dG=(e,t,r=!1)=>e!==kd.Chat||t.type!==Le.list?!1:Reflect.has(t,"is_chat_history")?!!t.is_chat_history:r?!1:t.name===ih,hG=e=>!!e.is_chat_output,pG=(e,t)=>{const r=typeof e=="string"?e:Array.isArray(e)?Ale(e):JSON.stringify(e)??"",n=Array.isArray(e)?JSON.stringify(e):void 0;return{id:ga.v4(),from:Wb.User,type:V8.Text,content:r,contentForCopy:n,timestamp:new Date().toISOString(),extraData:t}},gG=(e,t,r,n)=>{const o=typeof e=="string"?e:Array.isArray(e)?Ale(e):JSON.stringify(e)??"",i=Array.isArray(e)?JSON.stringify(e):void 0;return{id:ga.v4(),from:Wb.Chatbot,type:V8.Text,content:o,contentForCopy:i,timestamp:new Date().toISOString(),duration:n==null?void 0:n.duration,tokens:n==null?void 0:n.total_tokens,error:r,extraData:t}},mHe=(e,t,r)=>{const n=[];for(const o of r){const i=o.inputs[e],s=o.outputs[t];if(typeof i=="string"&&typeof s=="string"){const a={flowInputs:o.inputs,flowOutputs:o.outputs};n.push(pG(i,a)),n.push(gG(s,a))}else if(Array.isArray(i)&&Array.isArray(s)){const a={flowInputs:o.inputs,flowOutputs:o.outputs};n.push(pG(i,a)),n.push(gG(s,a))}}return n};Le.AzureContentSafetyConnection,Le.AzureContentModeratorConnection,Le.OpenAIConnection,Le.AzureOpenAIConnection,Le.BingConnection,Le.CustomConnection,Le.SerpConnection,Le.CognitiveSearchConnection,Le.SubstrateLLMConnection,Le.QdrantConnection,Le.WeaviateConnection,Le.FormRecognizerConnection;const yHe=e=>{switch(e){case Il.AzureContentSafety:return Le.AzureContentSafetyConnection;case Il.AzureContentModerator:return Le.AzureContentModeratorConnection;case Il.Serp:return Le.SerpConnection;case Il.OpenAI:return Le.OpenAIConnection;case Il.Bing:return Le.BingConnection;case Il.AzureOpenAI:return Le.AzureOpenAIConnection;case Il.CognitiveSearch:return Le.CognitiveSearchConnection;case Il.SubstrateLLM:return Le.SubstrateLLMConnection;case Il.Custom:return Le.CustomConnection;default:return Le.CustomConnection}},bHe=(e,t)=>{var r;return!t||t.length===0?yHe(e):(r=t.find(n=>n.connectionType===e))==null?void 0:r.flowValueType},_He=(e,t,r)=>{var o;const n=(o=e==null?void 0:e.find(i=>i.connectionName===r))==null?void 0:o.connectionType;if(n)return bHe(n,t)};Le.AzureContentSafetyConnection+"",Le.BingConnection+"",Le.OpenAIConnection+"",Le.CustomConnection+"",Le.AzureOpenAIConnection+"",Le.AzureContentModeratorConnection+"",Le.SerpConnection+"",Le.CognitiveSearchConnection+"",Le.SubstrateLLMConnection+"",Le.PineconeConnection+"",Le.QdrantConnection+"",Le.WeaviateConnection+"",Le.FormRecognizerConnection+"",Le.ServerlessConnection+"";const EHe=(e,t)=>{if(!e)return t??"";try{return JSON.parse(e)}catch{return t??""}},SHe=/^[+-]?\d+$/,wHe=/^[+-]?\d+(\.\d+)?$/,kHe=e=>{try{const t=parseInt(e,10);return isNaN(t)?e:t}catch{return e}},AHe=e=>{try{const t=parseFloat(e);return isNaN(t)?e:t}catch{return e}},THe=["true","false","True","False",!0,!1],xHe=e=>{try{return THe.includes(e)?dHe(e):e}catch{return e}},xk=(e,t)=>{var n;let r=e;if(!(((n=e==null?void 0:e.trim)==null?void 0:n.call(e))===""&&t!==Le.string)){switch(t){case Le.int:r=typeof r=="string"&&SHe.test(r.trim())?kHe(r):r;break;case Le.double:r=typeof r=="string"&&wHe.test(r.trim())?AHe(r):r;break;case Le.bool:r=xHe(r);break;case Le.string:r=typeof r=="object"?JSON.stringify(r):String(r??"");break;case Le.list:case Le.object:r=typeof r=="string"?EHe(r,r):r;break}return r}},vG=e=>{if(typeof e=="boolean")return Le.bool;if(typeof e=="number")return Number.isInteger(e)?Le.int:Le.double;if(Array.isArray(e))return Le.list;if(typeof e=="object"&&e!==null)return Le.object;if(typeof e=="string")return Le.string},mG=(e,t,r,n,o=!1)=>{const i=IHe(e),s={...t};return Object.keys(i??{}).filter(l=>{var f;const c=i==null?void 0:i[l];if(!o&&(c==null?void 0:c.input_type)===Ele.uionly_hidden)return!1;if(c!=null&&c.enabled_by&&(c!=null&&c.enabled_by_value)){const d=i==null?void 0:i[c.enabled_by],h=(s==null?void 0:s[c.enabled_by])??(d==null?void 0:d.default),g=xk(h,(f=d==null?void 0:d.type)==null?void 0:f[0]),v=c==null?void 0:c.enabled_by_value.includes(g);return v||(s[l]=void 0),v}if(c!=null&&c.enabled_by&&(c!=null&&c.enabled_by_type)){const d=s==null?void 0:s[c.enabled_by],h=_He(r??[],n??[],d??""),g=h?c==null?void 0:c.enabled_by_type.includes(h):!1;return g||(s[l]=void 0),g}return!0})},IHe=e=>{let t=[];if(Object.values(e??{}).some(o=>{var i;return((i=o.ui_hints)==null?void 0:i.index)!==void 0}))t=Object.keys(e??{}).sort((o,i)=>{var u,l,c,f;const s=((l=(u=e==null?void 0:e[o])==null?void 0:u.ui_hints)==null?void 0:l.index)??0,a=((f=(c=e==null?void 0:e[i])==null?void 0:c.ui_hints)==null?void 0:f.index)??0;return s-a});else{const o=[],i={};Object.keys(e??{}).forEach(a=>{const u=e==null?void 0:e[a];u!=null&&u.enabled_by?(i[u.enabled_by]||(i[u.enabled_by]=[]),i[u.enabled_by].push(a)):o.push(a)});const s=a=>{for(const u of a)t.push(u),i[u]&&s(i[u])};s(o)}const n={};for(const o of t)n[o]=e==null?void 0:e[o];return n};var NHe={exports:{}};/* @license +`),bG=e=>!!e.is_chat_input,_G=(e,t,r=!1)=>e!==Ad.Chat||t.type!==je.list?!1:Reflect.has(t,"is_chat_history")?!!t.is_chat_history:r?!1:t.name===oh,EG=e=>!!e.is_chat_output,SG=(e,t)=>{const r=typeof e=="string"?e:Array.isArray(e)?Ole(e):JSON.stringify(e)??"",n=Array.isArray(e)?JSON.stringify(e):void 0;return{id:Cs.v4(),from:Vb.User,type:Z8.Text,content:r,contentForCopy:n,timestamp:new Date().toISOString(),extraData:t}},wG=(e,t,r,n)=>{const o=typeof e=="string"?e:Array.isArray(e)?Ole(e):JSON.stringify(e)??"",i=Array.isArray(e)?JSON.stringify(e):void 0;return{id:Cs.v4(),from:Vb.Chatbot,type:Z8.Text,content:o,contentForCopy:i,timestamp:new Date().toISOString(),duration:n==null?void 0:n.duration,tokens:n==null?void 0:n.total_tokens,error:r,extraData:t}},AHe=(e,t,r)=>{const n=[];for(const o of r){const i=o.inputs[e],s=o.outputs[t];if(typeof i=="string"&&typeof s=="string"){const a={flowInputs:o.inputs,flowOutputs:o.outputs};n.push(SG(i,a)),n.push(wG(s,a))}else if(Array.isArray(i)&&Array.isArray(s)){const a={flowInputs:o.inputs,flowOutputs:o.outputs};n.push(SG(i,a)),n.push(wG(s,a))}}return n};je.AzureContentSafetyConnection,je.AzureContentModeratorConnection,je.OpenAIConnection,je.AzureOpenAIConnection,je.BingConnection,je.CustomConnection,je.SerpConnection,je.CognitiveSearchConnection,je.SubstrateLLMConnection,je.QdrantConnection,je.WeaviateConnection,je.FormRecognizerConnection;const kHe=e=>{switch(e){case Rl.AzureContentSafety:return je.AzureContentSafetyConnection;case Rl.AzureContentModerator:return je.AzureContentModeratorConnection;case Rl.Serp:return je.SerpConnection;case Rl.OpenAI:return je.OpenAIConnection;case Rl.Bing:return je.BingConnection;case Rl.AzureOpenAI:return je.AzureOpenAIConnection;case Rl.CognitiveSearch:return je.CognitiveSearchConnection;case Rl.SubstrateLLM:return je.SubstrateLLMConnection;case Rl.Custom:return je.CustomConnection;default:return je.CustomConnection}},xHe=(e,t)=>{var r;return!t||t.length===0?kHe(e):(r=t.find(n=>n.connectionType===e))==null?void 0:r.flowValueType},THe=(e,t,r)=>{var o;const n=(o=e==null?void 0:e.find(i=>i.connectionName===r))==null?void 0:o.connectionType;if(n)return xHe(n,t)};je.AzureContentSafetyConnection+"",je.BingConnection+"",je.OpenAIConnection+"",je.CustomConnection+"",je.AzureOpenAIConnection+"",je.AzureContentModeratorConnection+"",je.SerpConnection+"",je.CognitiveSearchConnection+"",je.SubstrateLLMConnection+"",je.PineconeConnection+"",je.QdrantConnection+"",je.WeaviateConnection+"",je.FormRecognizerConnection+"",je.ServerlessConnection+"";const IHe=(e,t)=>{if(!e)return t??"";try{return JSON.parse(e)}catch{return t??""}},CHe=/^[+-]?\d+$/,NHe=/^[+-]?\d+(\.\d+)?$/,RHe=e=>{try{const t=parseInt(e,10);return isNaN(t)?e:t}catch{return e}},OHe=e=>{try{const t=parseFloat(e);return isNaN(t)?e:t}catch{return e}},DHe=["true","false","True","False",!0,!1],FHe=e=>{try{return DHe.includes(e)?bHe(e):e}catch{return e}},RA=(e,t)=>{var n;let r=e;if(!(((n=e==null?void 0:e.trim)==null?void 0:n.call(e))===""&&t!==je.string)){switch(t){case je.int:r=typeof r=="string"&&CHe.test(r.trim())?RHe(r):r;break;case je.double:r=typeof r=="string"&&NHe.test(r.trim())?OHe(r):r;break;case je.bool:r=FHe(r);break;case je.string:r=typeof r=="object"?JSON.stringify(r):String(r??"");break;case je.list:case je.object:r=typeof r=="string"?IHe(r,r):r;break}return r}},AG=e=>{if(typeof e=="boolean")return je.bool;if(typeof e=="number")return Number.isInteger(e)?je.int:je.double;if(Array.isArray(e))return je.list;if(typeof e=="object"&&e!==null)return je.object;if(typeof e=="string")return je.string},kG=(e,t,r,n,o=!1)=>{const i=BHe(e),s={...t};return Object.keys(i??{}).filter(l=>{var f;const c=i==null?void 0:i[l];if(!o&&(c==null?void 0:c.input_type)===Ile.uionly_hidden)return!1;if(c!=null&&c.enabled_by&&(c!=null&&c.enabled_by_value)){const d=i==null?void 0:i[c.enabled_by],h=(s==null?void 0:s[c.enabled_by])??(d==null?void 0:d.default),g=RA(h,(f=d==null?void 0:d.type)==null?void 0:f[0]),v=c==null?void 0:c.enabled_by_value.includes(g);return v||(s[l]=void 0),v}if(c!=null&&c.enabled_by&&(c!=null&&c.enabled_by_type)){const d=s==null?void 0:s[c.enabled_by],h=THe(r??[],n??[],d??""),g=h?c==null?void 0:c.enabled_by_type.includes(h):!1;return g||(s[l]=void 0),g}return!0})},BHe=e=>{let t=[];if(Object.values(e??{}).some(o=>{var i;return((i=o.ui_hints)==null?void 0:i.index)!==void 0}))t=Object.keys(e??{}).sort((o,i)=>{var u,l,c,f;const s=((l=(u=e==null?void 0:e[o])==null?void 0:u.ui_hints)==null?void 0:l.index)??0,a=((f=(c=e==null?void 0:e[i])==null?void 0:c.ui_hints)==null?void 0:f.index)??0;return s-a});else{const o=[],i={};Object.keys(e??{}).forEach(a=>{const u=e==null?void 0:e[a];u!=null&&u.enabled_by?(i[u.enabled_by]||(i[u.enabled_by]=[]),i[u.enabled_by].push(a)):o.push(a)});const s=a=>{for(const u of a)t.push(u),i[u]&&s(i[u])};s(o)}const n={};for(const o of t)n[o]=e==null?void 0:e[o];return n};var MHe={exports:{}};/* @license Papa Parse v5.4.1 https://github.com/mholt/PapaParse License: MIT -*/(function(e,t){(function(r,n){e.exports=n()})(Ts,function r(){var n=typeof self<"u"?self:typeof window<"u"?window:n!==void 0?n:{},o=!n.document&&!!n.postMessage,i=n.IS_PAPA_WORKER||!1,s={},a=0,u={parse:function(N,I){var R=(I=I||{}).dynamicTyping||!1;if(T(R)&&(I.dynamicTypingFunction=R,R={}),I.dynamicTyping=R,I.transform=!!T(I.transform)&&I.transform,I.worker&&u.WORKERS_SUPPORTED){var D=function(){if(!u.WORKERS_SUPPORTED)return!1;var M=(z=n.URL||n.webkitURL||null,B=r.toString(),u.BLOB_URL||(u.BLOB_URL=z.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",B,")();"],{type:"text/javascript"})))),q=new n.Worker(M),z,B;return q.onmessage=_,q.id=a++,s[q.id]=q}();return D.userStep=I.step,D.userChunk=I.chunk,D.userComplete=I.complete,D.userError=I.error,I.step=T(I.step),I.chunk=T(I.chunk),I.complete=T(I.complete),I.error=T(I.error),delete I.worker,void D.postMessage({input:N,config:I,workerId:D.id})}var L=null;return u.NODE_STREAM_INPUT,typeof N=="string"?(N=function(M){return M.charCodeAt(0)===65279?M.slice(1):M}(N),L=I.download?new f(I):new h(I)):N.readable===!0&&T(N.read)&&T(N.on)?L=new g(I):(n.File&&N instanceof File||N instanceof Object)&&(L=new d(I)),L.stream(N)},unparse:function(N,I){var R=!1,D=!0,L=",",M=`\r -`,q='"',z=q+q,B=!1,P=null,K=!1;(function(){if(typeof I=="object"){if(typeof I.delimiter!="string"||u.BAD_DELIMITERS.filter(function(ee){return I.delimiter.indexOf(ee)!==-1}).length||(L=I.delimiter),(typeof I.quotes=="boolean"||typeof I.quotes=="function"||Array.isArray(I.quotes))&&(R=I.quotes),typeof I.skipEmptyLines!="boolean"&&typeof I.skipEmptyLines!="string"||(B=I.skipEmptyLines),typeof I.newline=="string"&&(M=I.newline),typeof I.quoteChar=="string"&&(q=I.quoteChar),typeof I.header=="boolean"&&(D=I.header),Array.isArray(I.columns)){if(I.columns.length===0)throw new Error("Option columns is empty");P=I.columns}I.escapeChar!==void 0&&(z=I.escapeChar+q),(typeof I.escapeFormulae=="boolean"||I.escapeFormulae instanceof RegExp)&&(K=I.escapeFormulae instanceof RegExp?I.escapeFormulae:/^[=+\-@\t\r].*$/)}})();var U=new RegExp(y(q),"g");if(typeof N=="string"&&(N=JSON.parse(N)),Array.isArray(N)){if(!N.length||Array.isArray(N[0]))return X(null,N,B);if(typeof N[0]=="object")return X(P||Object.keys(N[0]),N,B)}else if(typeof N=="object")return typeof N.data=="string"&&(N.data=JSON.parse(N.data)),Array.isArray(N.data)&&(N.fields||(N.fields=N.meta&&N.meta.fields||P),N.fields||(N.fields=Array.isArray(N.data[0])?N.fields:typeof N.data[0]=="object"?Object.keys(N.data[0]):[]),Array.isArray(N.data[0])||typeof N.data[0]=="object"||(N.data=[N.data])),X(N.fields||[],N.data||[],B);throw new Error("Unable to serialize unrecognized input");function X(ee,se,pe){var _e="";typeof ee=="string"&&(ee=JSON.parse(ee)),typeof se=="string"&&(se=JSON.parse(se));var Te=Array.isArray(ee)&&0=this._config.preview;if(i)n.postMessage({results:M,workerId:u.WORKER_ID,finished:z});else if(T(this._config.chunk)&&!R){if(this._config.chunk(M,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);M=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(M.data),this._completeResults.errors=this._completeResults.errors.concat(M.errors),this._completeResults.meta=M.meta),this._completed||!z||!T(this._config.complete)||M&&M.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),z||M&&M.meta.paused||this._nextChunk(),M}this._halted=!0},this._sendError=function(I){T(this._config.error)?this._config.error(I):i&&this._config.error&&n.postMessage({workerId:u.WORKER_ID,error:I,finished:!1})}}function f(N){var I;(N=N||{}).chunkSize||(N.chunkSize=u.RemoteChunkSize),c.call(this,N),this._nextChunk=o?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(R){this._input=R,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(I=new XMLHttpRequest,this._config.withCredentials&&(I.withCredentials=this._config.withCredentials),o||(I.onload=x(this._chunkLoaded,this),I.onerror=x(this._chunkError,this)),I.open(this._config.downloadRequestBody?"POST":"GET",this._input,!o),this._config.downloadRequestHeaders){var R=this._config.downloadRequestHeaders;for(var D in R)I.setRequestHeader(D,R[D])}if(this._config.chunkSize){var L=this._start+this._config.chunkSize-1;I.setRequestHeader("Range","bytes="+this._start+"-"+L)}try{I.send(this._config.downloadRequestBody)}catch(M){this._chunkError(M.message)}o&&I.status===0&&this._chunkError()}},this._chunkLoaded=function(){I.readyState===4&&(I.status<200||400<=I.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:I.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(R){var D=R.getResponseHeader("Content-Range");return D===null?-1:parseInt(D.substring(D.lastIndexOf("/")+1))}(I),this.parseChunk(I.responseText)))},this._chunkError=function(R){var D=I.statusText||R;this._sendError(new Error(D))}}function d(N){var I,R;(N=N||{}).chunkSize||(N.chunkSize=u.LocalChunkSize),c.call(this,N);var D=typeof FileReader<"u";this.stream=function(L){this._input=L,R=L.slice||L.webkitSlice||L.mozSlice,D?((I=new FileReader).onload=x(this._chunkLoaded,this),I.onerror=x(this._chunkError,this)):I=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(L.target.result)},this._chunkError=function(){this._sendError(I.error)}}function h(N){var I;c.call(this,N=N||{}),this.stream=function(R){return I=R,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var R,D=this._config.chunkSize;return D?(R=I.substring(0,D),I=I.substring(D)):(R=I,I=""),this._finished=!I,this.parseChunk(R)}}}function g(N){c.call(this,N=N||{});var I=[],R=!0,D=!1;this.pause=function(){c.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){c.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(L){this._input=L,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){D&&I.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),I.length?this.parseChunk(I.shift()):R=!0},this._streamData=x(function(L){try{I.push(typeof L=="string"?L:L.toString(this._config.encoding)),R&&(R=!1,this._checkIsFinished(),this.parseChunk(I.shift()))}catch(M){this._streamError(M)}},this),this._streamError=x(function(L){this._streamCleanUp(),this._sendError(L)},this),this._streamEnd=x(function(){this._streamCleanUp(),D=!0,this._streamData("")},this),this._streamCleanUp=x(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function v(N){var I,R,D,L=Math.pow(2,53),M=-L,q=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,z=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,B=this,P=0,K=0,U=!1,X=!1,J=[],ee={data:[],errors:[],meta:{}};if(T(N.step)){var se=N.step;N.step=function(ve){if(ee=ve,Te())_e();else{if(_e(),ee.data.length===0)return;P+=ve.data.length,N.preview&&P>N.preview?R.abort():(ee.data=ee.data[0],se(ee,B))}}}function pe(ve){return N.skipEmptyLines==="greedy"?ve.join("").trim()==="":ve.length===1&&ve[0].length===0}function _e(){return ee&&D&&(Ae("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+u.DefaultDelimiter+"'"),D=!1),N.skipEmptyLines&&(ee.data=ee.data.filter(function(ve){return!pe(ve)})),Te()&&function(){if(!ee)return;function ve(De,Qe){T(N.transformHeader)&&(De=N.transformHeader(De,Qe)),J.push(De)}if(Array.isArray(ee.data[0])){for(var we=0;Te()&&we=J.length?"__parsed_extra":J[Ke]),N.transform&&(Ne=N.transform(Ne,He)),Ne=me(He,Ne),He==="__parsed_extra"?(st[He]=st[He]||[],st[He].push(Ne)):st[He]=Ne}return N.header&&(Ke>J.length?Ae("FieldMismatch","TooManyFields","Too many fields: expected "+J.length+" fields but parsed "+Ke,K+Qe):Ke=Dt.length/2?`\r -`:"\r"}(ve,Qe)),D=!1,N.delimiter)T(N.delimiter)&&(N.delimiter=N.delimiter(ve),ee.meta.delimiter=N.delimiter);else{var Ke=function(He,Ne,$e,Dt,$t){var Gt,_t,tt,rt;$t=$t||[","," ","|",";",u.RECORD_SEP,u.UNIT_SEP];for(var ur=0;ur<$t.length;ur++){var he=$t[ur],le=0,ae=0,ge=0;tt=void 0;for(var Re=new E({comments:Dt,delimiter:he,newline:Ne,preview:10}).parse(He),je=0;je=this._config.preview;if(i)n.postMessage({results:M,workerId:u.WORKER_ID,finished:z});else if(x(this._config.chunk)&&!R){if(this._config.chunk(M,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);M=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(M.data),this._completeResults.errors=this._completeResults.errors.concat(M.errors),this._completeResults.meta=M.meta),this._completed||!z||!x(this._config.complete)||M&&M.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),z||M&&M.meta.paused||this._nextChunk(),M}this._halted=!0},this._sendError=function(I){x(this._config.error)?this._config.error(I):i&&this._config.error&&n.postMessage({workerId:u.WORKER_ID,error:I,finished:!1})}}function f(C){var I;(C=C||{}).chunkSize||(C.chunkSize=u.RemoteChunkSize),c.call(this,C),this._nextChunk=o?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(R){this._input=R,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(I=new XMLHttpRequest,this._config.withCredentials&&(I.withCredentials=this._config.withCredentials),o||(I.onload=T(this._chunkLoaded,this),I.onerror=T(this._chunkError,this)),I.open(this._config.downloadRequestBody?"POST":"GET",this._input,!o),this._config.downloadRequestHeaders){var R=this._config.downloadRequestHeaders;for(var D in R)I.setRequestHeader(D,R[D])}if(this._config.chunkSize){var L=this._start+this._config.chunkSize-1;I.setRequestHeader("Range","bytes="+this._start+"-"+L)}try{I.send(this._config.downloadRequestBody)}catch(M){this._chunkError(M.message)}o&&I.status===0&&this._chunkError()}},this._chunkLoaded=function(){I.readyState===4&&(I.status<200||400<=I.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:I.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(R){var D=R.getResponseHeader("Content-Range");return D===null?-1:parseInt(D.substring(D.lastIndexOf("/")+1))}(I),this.parseChunk(I.responseText)))},this._chunkError=function(R){var D=I.statusText||R;this._sendError(new Error(D))}}function d(C){var I,R;(C=C||{}).chunkSize||(C.chunkSize=u.LocalChunkSize),c.call(this,C);var D=typeof FileReader<"u";this.stream=function(L){this._input=L,R=L.slice||L.webkitSlice||L.mozSlice,D?((I=new FileReader).onload=T(this._chunkLoaded,this),I.onerror=T(this._chunkError,this)):I=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(L.target.result)},this._chunkError=function(){this._sendError(I.error)}}function h(C){var I;c.call(this,C=C||{}),this.stream=function(R){return I=R,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var R,D=this._config.chunkSize;return D?(R=I.substring(0,D),I=I.substring(D)):(R=I,I=""),this._finished=!I,this.parseChunk(R)}}}function g(C){c.call(this,C=C||{});var I=[],R=!0,D=!1;this.pause=function(){c.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){c.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(L){this._input=L,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){D&&I.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),I.length?this.parseChunk(I.shift()):R=!0},this._streamData=T(function(L){try{I.push(typeof L=="string"?L:L.toString(this._config.encoding)),R&&(R=!1,this._checkIsFinished(),this.parseChunk(I.shift()))}catch(M){this._streamError(M)}},this),this._streamError=T(function(L){this._streamCleanUp(),this._sendError(L)},this),this._streamEnd=T(function(){this._streamCleanUp(),D=!0,this._streamData("")},this),this._streamCleanUp=T(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function v(C){var I,R,D,L=Math.pow(2,53),M=-L,q=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,z=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,F=this,$=0,K=0,U=!1,X=!1,J=[],ee={data:[],errors:[],meta:{}};if(x(C.step)){var fe=C.step;C.step=function(me){if(ee=me,Ee())Se();else{if(Se(),ee.data.length===0)return;$+=me.data.length,C.preview&&$>C.preview?R.abort():(ee.data=ee.data[0],fe(ee,F))}}}function ge(me){return C.skipEmptyLines==="greedy"?me.join("").trim()==="":me.length===1&&me[0].length===0}function Se(){return ee&&D&&(we("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+u.DefaultDelimiter+"'"),D=!1),C.skipEmptyLines&&(ee.data=ee.data.filter(function(me){return!ge(me)})),Ee()&&function(){if(!ee)return;function me(He,it){x(C.transformHeader)&&(He=C.transformHeader(He,it)),J.push(He)}if(Array.isArray(ee.data[0])){for(var xe=0;Ee()&&xe=J.length?"__parsed_extra":J[Oe]),C.transform&&(Ze=C.transform(Ze,Fe)),Ze=ve(Fe,Ze),Fe==="__parsed_extra"?(Qe[Fe]=Qe[Fe]||[],Qe[Fe].push(Ze)):Qe[Fe]=Ze}return C.header&&(Oe>J.length?we("FieldMismatch","TooManyFields","Too many fields: expected "+J.length+" fields but parsed "+Oe,K+it):Oe=Ge.length/2?`\r +`:"\r"}(me,it)),D=!1,C.delimiter)x(C.delimiter)&&(C.delimiter=C.delimiter(me),ee.meta.delimiter=C.delimiter);else{var Oe=function(Fe,Ze,$e,Ge,kt){var $t,bt,Je,ot;kt=kt||[","," ","|",";",u.RECORD_SEP,u.UNIT_SEP];for(var ir=0;ir=q)return Ce(!0)}else for(he=P,P++;;){if((he=U.indexOf(I,he+1))===-1)return J||Ae.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:me.length,index:P}),je();if(he===ee-1)return je(U.substring(P,he).replace(ur,I));if(I!==B||U[he+1]!==B){if(I===B||he===0||U[he-1]!==B){tt!==-1&&tt=q)return Ce(!0);break}Ae.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:me.length,index:P}),he++}}else he++}return je();function ge(ut){me.push(ut),we=P}function Re(ut){var vt=0;if(ut!==-1){var xt=U.substring(he+1,ut);xt&&xt.trim()===""&&(vt=xt.length)}return vt}function je(ut){return J||(ut===void 0&&(ut=U.substring(P)),ve.push(ut),P=ee,ge(ve),Te&&Pe()),Ce()}function ke(ut){P=ut,ge(ve),ve=[],rt=U.indexOf(D,P)}function Ce(ut){return{data:me,errors:Ae,meta:{delimiter:R,linebreak:D,aborted:K,truncated:!!ut,cursor:we+(X||0)}}}function Pe(){M(Ce()),me=[],Ae=[]}},this.abort=function(){K=!0},this.getCharIndex=function(){return P}}function _(N){var I=N.data,R=s[I.workerId],D=!1;if(I.error)R.userError(I.error,I.file);else if(I.results&&I.results.data){var L={abort:function(){D=!0,S(I.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:b,resume:b};if(T(R.userStep)){for(var M=0;M{const n={};return Object.keys(e).forEach(o=>{const i=e[o];o===t?n[r]=i:n[o]=i}),n},Tle=e=>{const{defaultVariantId:t=qi,variants:r={}}=e,n=r[t];return n==null?void 0:n.node},yG=(e,t)=>{const r=[];return e.forEach(n=>{const o=t.get(n);if(!o)return;const i=Tle(o);i&&r.push(i)}),r},CHe=(e,t,r)=>{const n=[];return e.forEach(o=>{if(r.includes(o)){n.push({name:o,use_variants:!0});return}const i=t[o];if(!i)return;const s={inputs:{},...Tle(i)};s&&n.push(s)}),n};Ti.llm;Ti.prompt;Le.string,Ti.python;Le.string,Ti.typescript;const U8=e=>{var t,r,n,o,i,s;return e.children&&e.children.length>0?e.children.reduce((a,u)=>{const l=U8(u);return{totalTokens:a.totalTokens+l.totalTokens,promptTokens:a.promptTokens+l.promptTokens,completionTokens:a.completionTokens+l.completionTokens}},{totalTokens:0,promptTokens:0,completionTokens:0}):{totalTokens:((r=(t=e.output)==null?void 0:t.usage)==null?void 0:r.total_tokens)??0,promptTokens:((o=(n=e.output)==null?void 0:n.usage)==null?void 0:o.prompt_tokens)??0,completionTokens:((s=(i=e.output)==null?void 0:i.usage)==null?void 0:s.completion_tokens)??0}},Wy=e=>e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","),bG=e=>{const t=new Date(e),r=RHe();return`${t.getFullYear()}-${t.getMonth()+1}-${t.getDate()} ${t.getHours()}:${t.getMinutes()}:${t.getSeconds()}:${t.getMilliseconds()} (${r})`},RHe=()=>{const e=new Date().getTimezoneOffset(),t=Math.abs(e);return`UTC${(e<0?"+":"-")+`00${Math.floor(t/60)}`.slice(-2)}:${`00${t%60}`.slice(-2)}`},zx=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),OHe=(e,t,r,n)=>{var o,i,s;if(((o=e==null?void 0:e.source)==null?void 0:o.type)==="code")return t;if(((i=e==null?void 0:e.source)==null?void 0:i.type)==="package_with_prompt"){const a=(s=e==null?void 0:e.source)==null?void 0:s.path,u=n(a??"");return r?{...r,inputs:{...u==null?void 0:u.inputs,...DHe(r==null?void 0:r.inputs,"parameter")},code:u==null?void 0:u.code}:void 0}return r},DHe=(e,t)=>{if(!e)return e;const r={...e};return Object.keys(r).forEach(n=>{r[n]={...r[n],position:t}}),r},_G=async e=>new Promise(t=>setTimeout(t,e)),Y8=async e=>new Promise((t,r)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=function(){var i;const o=(i=n.result)==null?void 0:i.split(",")[1];t(o)},n.onerror=function(o){r(o)}}),FHe=["and","as","assert","break","class","continue","def","del","elif","else","except","False","finally","for","from","global","if","import","in","is","lambda","None","nonlocal","not","or","pass","raise","return","True","try","while","with","yield"],BHe=["abs","all","any","ascii","bin","bool","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","str","sum","super","tuple","type","vars","zip"],MHe=["input","inputs","output","outputs","flow","flows"],LHe=e=>FHe.some(t=>t===e)||BHe.some(t=>t===e)||MHe.some(t=>t===e)?!1:/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(e),jHe=(e={})=>{const t=[];return Object.keys(e).forEach(r=>{const n=e[r],{variants:o={},defaultVariantId:i,default_variant_id:s}=n,a=Object.keys(o).length;a>1&&t.push({nodeName:r,variantsCount:a,defaultVariantId:i??s??qi,variants:o})}),t},zHe=(e={})=>{const t={};return Object.keys(e).forEach(r=>{const n=e[r],{variants:o={}}=n;if(Object.keys(o).length>1){const s=Kb.cloneDeep(n);Object.entries((s==null?void 0:s.variants)??{}).forEach(([u,l])=>{l.node&&delete l.node.name});const a=s.defaultVariantId;delete s.defaultVariantId,t[r]={default_variant_id:a,...s}}}),Object.keys(t).length>0?t:void 0},HHe=/^\$\{(\S+)\}$/,CN=e=>{var t,r;return(r=(t=`${e??""}`)==null?void 0:t.match(HHe))==null?void 0:r[1]},$He=e=>{const t="abcdefghijklmnopqrstuvwxyz0123456789";let r="";for(let n=0;n$He(8),PHe=xle,qHe=/^[+-]?\d+$/,WHe=/^[+-]?\d+(\.\d+)?$/,KHe=e=>e.toLowerCase()==="true"||e.toLowerCase()==="false",Ile=e=>WHe.test(e.trim())?e===e.trim()&&e.length>0&&!Number.isNaN(Number(e)):!1,GHe=e=>qHe.test(e.trim())?Ile(e)&&Number.isInteger(Number(e)):!1,VHe=e=>{try{const t=JSON.parse(e);return Array.isArray(t)}catch{return!1}},UHe=e=>{try{const t=JSON.parse(e);return Object.prototype.toString.call(t)==="[object Object]"}catch{return!1}},RN=(e,t)=>{const r=typeof e,n=r==="string";switch(t){case Le.int:return n?GHe(e):Number.isInteger(e);case Le.double:return n?Ile(e):r==="number";case Le.list:return n?VHe(e):Array.isArray(e);case Le.object:return n?UHe(e):r==="object";case Le.bool:return n?KHe(e):r==="boolean";case Le.function_str:return!0;default:return!0}},YHe=(e,t,r,n)=>{var s,a;const o=[],i=new Set(e.keys());for(e.forEach((u,l)=>{u===0&&o.push(l)});o.length>0;){const u=o.shift();u&&(i.delete(u),(s=t.get(u))==null||s.forEach(l=>{const c=(e.get(l)??0)-1;e.set(l,c),c===0&&o.push(l)}))}for(r.forEach((u,l)=>{u===0&&o.push(l)});o.length>0;){const u=o.shift();u&&(i.delete(u),(a=n.get(u))==null||a.forEach(l=>{const c=(r.get(l)??0)-1;r.set(l,c),c===0&&o.push(l)}))}return i};function X8(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ON,EG;function XHe(){if(EG)return ON;EG=1;function e(){this.__data__=[],this.size=0}return ON=e,ON}var DN,SG;function vv(){if(SG)return DN;SG=1;function e(t,r){return t===r||t!==t&&r!==r}return DN=e,DN}var FN,wG;function Hx(){if(wG)return FN;wG=1;var e=vv();function t(r,n){for(var o=r.length;o--;)if(e(r[o][0],n))return o;return-1}return FN=t,FN}var BN,kG;function QHe(){if(kG)return BN;kG=1;var e=Hx(),t=Array.prototype,r=t.splice;function n(o){var i=this.__data__,s=e(i,o);if(s<0)return!1;var a=i.length-1;return s==a?i.pop():r.call(i,s,1),--this.size,!0}return BN=n,BN}var MN,AG;function ZHe(){if(AG)return MN;AG=1;var e=Hx();function t(r){var n=this.__data__,o=e(n,r);return o<0?void 0:n[o][1]}return MN=t,MN}var LN,TG;function JHe(){if(TG)return LN;TG=1;var e=Hx();function t(r){return e(this.__data__,r)>-1}return LN=t,LN}var jN,xG;function e$e(){if(xG)return jN;xG=1;var e=Hx();function t(r,n){var o=this.__data__,i=e(o,r);return i<0?(++this.size,o.push([r,n])):o[i][1]=n,this}return jN=t,jN}var zN,IG;function $x(){if(IG)return zN;IG=1;var e=XHe(),t=QHe(),r=ZHe(),n=JHe(),o=e$e();function i(s){var a=-1,u=s==null?0:s.length;for(this.clear();++a-1&&n%1==0&&n-1&&r%1==0&&r<=e}return FC=t,FC}var BC,AV;function x$e(){if(AV)return BC;AV=1;var e=sp(),t=e7(),r=_c(),n="[object Arguments]",o="[object Array]",i="[object Boolean]",s="[object Date]",a="[object Error]",u="[object Function]",l="[object Map]",c="[object Number]",f="[object Object]",d="[object RegExp]",h="[object Set]",g="[object String]",v="[object WeakMap]",y="[object ArrayBuffer]",E="[object DataView]",_="[object Float32Array]",S="[object Float64Array]",b="[object Int8Array]",A="[object Int16Array]",x="[object Int32Array]",T="[object Uint8Array]",N="[object Uint8ClampedArray]",I="[object Uint16Array]",R="[object Uint32Array]",D={};D[_]=D[S]=D[b]=D[A]=D[x]=D[T]=D[N]=D[I]=D[R]=!0,D[n]=D[o]=D[y]=D[i]=D[E]=D[s]=D[a]=D[u]=D[l]=D[c]=D[f]=D[d]=D[h]=D[g]=D[v]=!1;function L(M){return r(M)&&t(M.length)&&!!D[e(M)]}return BC=L,BC}var MC,TV;function Ux(){if(TV)return MC;TV=1;function e(t){return function(r){return t(r)}}return MC=e,MC}var ay={exports:{}};ay.exports;var xV;function t7(){return xV||(xV=1,function(e,t){var r=Nle(),n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===n,s=i&&r.process,a=function(){try{var u=o&&o.require&&o.require("util").types;return u||s&&s.binding&&s.binding("util")}catch{}}();e.exports=a}(ay,ay.exports)),ay.exports}var LC,IV;function rE(){if(IV)return LC;IV=1;var e=x$e(),t=Ux(),r=t7(),n=r&&r.isTypedArray,o=n?t(n):e;return LC=o,LC}var jC,NV;function Ole(){if(NV)return jC;NV=1;var e=k$e(),t=tE(),r=To(),n=yv(),o=Vx(),i=rE(),s=Object.prototype,a=s.hasOwnProperty;function u(l,c){var f=r(l),d=!f&&t(l),h=!f&&!d&&n(l),g=!f&&!d&&!h&&i(l),v=f||d||h||g,y=v?e(l.length,String):[],E=y.length;for(var _ in l)(c||a.call(l,_))&&!(v&&(_=="length"||h&&(_=="offset"||_=="parent")||g&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||o(_,E)))&&y.push(_);return y}return jC=u,jC}var zC,CV;function Yx(){if(CV)return zC;CV=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,o=typeof n=="function"&&n.prototype||e;return r===o}return zC=t,zC}var HC,RV;function Dle(){if(RV)return HC;RV=1;function e(t,r){return function(n){return t(r(n))}}return HC=e,HC}var $C,OV;function I$e(){if(OV)return $C;OV=1;var e=Dle(),t=e(Object.keys,Object);return $C=t,$C}var PC,DV;function r7(){if(DV)return PC;DV=1;var e=Yx(),t=I$e(),r=Object.prototype,n=r.hasOwnProperty;function o(i){if(!e(i))return t(i);var s=[];for(var a in Object(i))n.call(i,a)&&a!="constructor"&&s.push(a);return s}return PC=o,PC}var qC,FV;function Hf(){if(FV)return qC;FV=1;var e=J_(),t=e7();function r(n){return n!=null&&t(n.length)&&!e(n)}return qC=r,qC}var WC,BV;function R1(){if(BV)return WC;BV=1;var e=Ole(),t=r7(),r=Hf();function n(o){return r(o)?e(o):t(o)}return WC=n,WC}var KC,MV;function N$e(){if(MV)return KC;MV=1;var e=eE(),t=R1();function r(n,o){return n&&e(o,t(o),n)}return KC=r,KC}var GC,LV;function C$e(){if(LV)return GC;LV=1;function e(t){var r=[];if(t!=null)for(var n in Object(t))r.push(n);return r}return GC=e,GC}var VC,jV;function R$e(){if(jV)return VC;jV=1;var e=Su(),t=Yx(),r=C$e(),n=Object.prototype,o=n.hasOwnProperty;function i(s){if(!e(s))return r(s);var a=t(s),u=[];for(var l in s)l=="constructor"&&(a||!o.call(s,l))||u.push(l);return u}return VC=i,VC}var UC,zV;function up(){if(zV)return UC;zV=1;var e=Ole(),t=R$e(),r=Hf();function n(o){return r(o)?e(o,!0):t(o)}return UC=n,UC}var YC,HV;function O$e(){if(HV)return YC;HV=1;var e=eE(),t=up();function r(n,o){return n&&e(o,t(o),n)}return YC=r,YC}var uy={exports:{}};uy.exports;var $V;function Fle(){return $V||($V=1,function(e,t){var r=dl(),n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===n,s=i?r.Buffer:void 0,a=s?s.allocUnsafe:void 0;function u(l,c){if(c)return l.slice();var f=l.length,d=a?a(f):new l.constructor(f);return l.copy(d),d}e.exports=u}(uy,uy.exports)),uy.exports}var XC,PV;function Ble(){if(PV)return XC;PV=1;function e(t,r){var n=-1,o=t.length;for(r||(r=Array(o));++nh))return!1;var v=f.get(s),y=f.get(a);if(v&&y)return v==a&&y==s;var E=-1,_=!0,S=u&o?new e:void 0;for(f.set(s,a),f.set(a,s);++E0&&i(c)?o>1?r(c,o-1,i,s,a):e(a,c):s||(a[a.length]=c)}return a}return $O=r,$O}var PO,FY;function NPe(){if(FY)return PO;FY=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return PO=e,PO}var qO,BY;function dce(){if(BY)return qO;BY=1;var e=NPe(),t=Math.max;function r(n,o,i){return o=t(o===void 0?n.length-1:o,0),function(){for(var s=arguments,a=-1,u=t(s.length-o,0),l=Array(u);++a0){if(++i>=e)return arguments[0]}else i=0;return o.apply(void 0,arguments)}}return KO=n,KO}var GO,jY;function hce(){if(jY)return GO;jY=1;var e=CPe(),t=RPe(),r=t(e);return GO=r,GO}var VO,zY;function t9(){if(zY)return VO;zY=1;var e=lp(),t=dce(),r=hce();function n(o,i){return r(t(o,i,e),o+"")}return VO=n,VO}var UO,HY;function pce(){if(HY)return UO;HY=1;function e(t,r,n,o){for(var i=t.length,s=n+(o?1:-1);o?s--:++s-1}return ZO=t,ZO}var JO,KY;function MPe(){if(KY)return JO;KY=1;function e(t,r,n){for(var o=-1,i=t==null?0:t.length;++o=s){var E=l?null:o(u);if(E)return i(E);g=!1,d=n,y=new e}else y=l?[]:v;e:for(;++f1?h.setNode(g,f):h.setNode(g)}),this},o.prototype.setNode=function(c,f){return e.has(this._nodes,c)?(arguments.length>1&&(this._nodes[c]=f),this):(this._nodes[c]=arguments.length>1?f:this._defaultNodeLabelFn(c),this._isCompound&&(this._parent[c]=r,this._children[c]={},this._children[r][c]=!0),this._in[c]={},this._preds[c]={},this._out[c]={},this._sucs[c]={},++this._nodeCount,this)},o.prototype.node=function(c){return this._nodes[c]},o.prototype.hasNode=function(c){return e.has(this._nodes,c)},o.prototype.removeNode=function(c){var f=this;if(e.has(this._nodes,c)){var d=function(h){f.removeEdge(f._edgeObjs[h])};delete this._nodes[c],this._isCompound&&(this._removeFromParentsChildList(c),delete this._parent[c],e.each(this.children(c),function(h){f.setParent(h)}),delete this._children[c]),e.each(e.keys(this._in[c]),d),delete this._in[c],delete this._preds[c],e.each(e.keys(this._out[c]),d),delete this._out[c],delete this._sucs[c],--this._nodeCount}return this},o.prototype.setParent=function(c,f){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(e.isUndefined(f))f=r;else{f+="";for(var d=f;!e.isUndefined(d);d=this.parent(d))if(d===c)throw new Error("Setting "+f+" as parent of "+c+" would create a cycle");this.setNode(f)}return this.setNode(c),this._removeFromParentsChildList(c),this._parent[c]=f,this._children[f][c]=!0,this},o.prototype._removeFromParentsChildList=function(c){delete this._children[this._parent[c]][c]},o.prototype.parent=function(c){if(this._isCompound){var f=this._parent[c];if(f!==r)return f}},o.prototype.children=function(c){if(e.isUndefined(c)&&(c=r),this._isCompound){var f=this._children[c];if(f)return e.keys(f)}else{if(c===r)return this.nodes();if(this.hasNode(c))return[]}},o.prototype.predecessors=function(c){var f=this._preds[c];if(f)return e.keys(f)},o.prototype.successors=function(c){var f=this._sucs[c];if(f)return e.keys(f)},o.prototype.neighbors=function(c){var f=this.predecessors(c);if(f)return e.union(f,this.successors(c))},o.prototype.isLeaf=function(c){var f;return this.isDirected()?f=this.successors(c):f=this.neighbors(c),f.length===0},o.prototype.filterNodes=function(c){var f=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});f.setGraph(this.graph());var d=this;e.each(this._nodes,function(v,y){c(y)&&f.setNode(y,v)}),e.each(this._edgeObjs,function(v){f.hasNode(v.v)&&f.hasNode(v.w)&&f.setEdge(v,d.edge(v))});var h={};function g(v){var y=d.parent(v);return y===void 0||f.hasNode(y)?(h[v]=y,y):y in h?h[y]:g(y)}return this._isCompound&&e.each(f.nodes(),function(v){f.setParent(v,g(v))}),f},o.prototype.setDefaultEdgeLabel=function(c){return e.isFunction(c)||(c=e.constant(c)),this._defaultEdgeLabelFn=c,this},o.prototype.edgeCount=function(){return this._edgeCount},o.prototype.edges=function(){return e.values(this._edgeObjs)},o.prototype.setPath=function(c,f){var d=this,h=arguments;return e.reduce(c,function(g,v){return h.length>1?d.setEdge(g,v,f):d.setEdge(g,v),v}),this},o.prototype.setEdge=function(){var c,f,d,h,g=!1,v=arguments[0];typeof v=="object"&&v!==null&&"v"in v?(c=v.v,f=v.w,d=v.name,arguments.length===2&&(h=arguments[1],g=!0)):(c=v,f=arguments[1],d=arguments[3],arguments.length>2&&(h=arguments[2],g=!0)),c=""+c,f=""+f,e.isUndefined(d)||(d=""+d);var y=a(this._isDirected,c,f,d);if(e.has(this._edgeLabels,y))return g&&(this._edgeLabels[y]=h),this;if(!e.isUndefined(d)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(c),this.setNode(f),this._edgeLabels[y]=g?h:this._defaultEdgeLabelFn(c,f,d);var E=u(this._isDirected,c,f,d);return c=E.v,f=E.w,Object.freeze(E),this._edgeObjs[y]=E,i(this._preds[f],c),i(this._sucs[c],f),this._in[f][y]=E,this._out[c][y]=E,this._edgeCount++,this},o.prototype.edge=function(c,f,d){var h=arguments.length===1?l(this._isDirected,arguments[0]):a(this._isDirected,c,f,d);return this._edgeLabels[h]},o.prototype.hasEdge=function(c,f,d){var h=arguments.length===1?l(this._isDirected,arguments[0]):a(this._isDirected,c,f,d);return e.has(this._edgeLabels,h)},o.prototype.removeEdge=function(c,f,d){var h=arguments.length===1?l(this._isDirected,arguments[0]):a(this._isDirected,c,f,d),g=this._edgeObjs[h];return g&&(c=g.v,f=g.w,delete this._edgeLabels[h],delete this._edgeObjs[h],s(this._preds[f],c),s(this._sucs[c],f),delete this._in[f][h],delete this._out[c][h],this._edgeCount--),this},o.prototype.inEdges=function(c,f){var d=this._in[c];if(d){var h=e.values(d);return f?e.filter(h,function(g){return g.v===f}):h}},o.prototype.outEdges=function(c,f){var d=this._out[c];if(d){var h=e.values(d);return f?e.filter(h,function(g){return g.w===f}):h}},o.prototype.nodeEdges=function(c,f){var d=this.inEdges(c,f);if(d)return d.concat(this.outEdges(c,f))};function i(c,f){c[f]?c[f]++:c[f]=1}function s(c,f){--c[f]||delete c[f]}function a(c,f,d,h){var g=""+f,v=""+d;if(!c&&g>v){var y=g;g=v,v=y}return g+n+v+n+(e.isUndefined(h)?t:h)}function u(c,f,d,h){var g=""+f,v=""+d;if(!c&&g>v){var y=g;g=v,v=y}var E={v:g,w:v};return h&&(E.name=h),E}function l(c,f){return a(c,f.v,f.w,f.name)}return u4}var l4,tX;function PPe(){return tX||(tX=1,l4="2.1.8"),l4}var c4,rX;function qPe(){return rX||(rX=1,c4={Graph:d7(),version:PPe()}),c4}var f4,nX;function WPe(){if(nX)return f4;nX=1;var e=wu(),t=d7();f4={write:r,read:i};function r(s){var a={options:{directed:s.isDirected(),multigraph:s.isMultigraph(),compound:s.isCompound()},nodes:n(s),edges:o(s)};return e.isUndefined(s.graph())||(a.value=e.clone(s.graph())),a}function n(s){return e.map(s.nodes(),function(a){var u=s.node(a),l=s.parent(a),c={v:a};return e.isUndefined(u)||(c.value=u),e.isUndefined(l)||(c.parent=l),c})}function o(s){return e.map(s.edges(),function(a){var u=s.edge(a),l={v:a.v,w:a.w};return e.isUndefined(a.name)||(l.name=a.name),e.isUndefined(u)||(l.value=u),l})}function i(s){var a=new t(s.options).setGraph(s.value);return e.each(s.nodes,function(u){a.setNode(u.v,u.value),u.parent&&a.setParent(u.v,u.parent)}),e.each(s.edges,function(u){a.setEdge({v:u.v,w:u.w,name:u.name},u.value)}),a}return f4}var d4,oX;function KPe(){if(oX)return d4;oX=1;var e=wu();d4=t;function t(r){var n={},o=[],i;function s(a){e.has(n,a)||(n[a]=!0,i.push(a),e.each(r.successors(a),s),e.each(r.predecessors(a),s))}return e.each(r.nodes(),function(a){i=[],s(a),i.length&&o.push(i)}),o}return d4}var h4,iX;function mce(){if(iX)return h4;iX=1;var e=wu();h4=t;function t(){this._arr=[],this._keyIndices={}}return t.prototype.size=function(){return this._arr.length},t.prototype.keys=function(){return this._arr.map(function(r){return r.key})},t.prototype.has=function(r){return e.has(this._keyIndices,r)},t.prototype.priority=function(r){var n=this._keyIndices[r];if(n!==void 0)return this._arr[n].priority},t.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},t.prototype.add=function(r,n){var o=this._keyIndices;if(r=String(r),!e.has(o,r)){var i=this._arr,s=i.length;return o[r]=s,i.push({key:r,priority:n}),this._decrease(s),!0}return!1},t.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var r=this._arr.pop();return delete this._keyIndices[r.key],this._heapify(0),r.key},t.prototype.decrease=function(r,n){var o=this._keyIndices[r];if(n>this._arr[o].priority)throw new Error("New priority is greater than current priority. Key: "+r+" Old: "+this._arr[o].priority+" New: "+n);this._arr[o].priority=n,this._decrease(o)},t.prototype._heapify=function(r){var n=this._arr,o=2*r,i=o+1,s=r;o>1,!(n[i].priority0&&(f=c.removeMin(),d=l[f],d.distance!==Number.POSITIVE_INFINITY);)u(f).forEach(h);return l}return p4}var g4,aX;function GPe(){if(aX)return g4;aX=1;var e=yce(),t=wu();g4=r;function r(n,o,i){return t.transform(n.nodes(),function(s,a){s[a]=e(n,a,o,i)},{})}return g4}var v4,uX;function bce(){if(uX)return v4;uX=1;var e=wu();v4=t;function t(r){var n=0,o=[],i={},s=[];function a(u){var l=i[u]={onStack:!0,lowlink:n,index:n++};if(o.push(u),r.successors(u).forEach(function(d){e.has(i,d)?i[d].onStack&&(l.lowlink=Math.min(l.lowlink,i[d].index)):(a(d),l.lowlink=Math.min(l.lowlink,i[d].lowlink))}),l.lowlink===l.index){var c=[],f;do f=o.pop(),i[f].onStack=!1,c.push(f);while(u!==f);s.push(c)}}return r.nodes().forEach(function(u){e.has(i,u)||a(u)}),s}return v4}var m4,lX;function VPe(){if(lX)return m4;lX=1;var e=wu(),t=bce();m4=r;function r(n){return e.filter(t(n),function(o){return o.length>1||o.length===1&&n.hasEdge(o[0],o[0])})}return m4}var y4,cX;function UPe(){if(cX)return y4;cX=1;var e=wu();y4=r;var t=e.constant(1);function r(o,i,s){return n(o,i||t,s||function(a){return o.outEdges(a)})}function n(o,i,s){var a={},u=o.nodes();return u.forEach(function(l){a[l]={},a[l][l]={distance:0},u.forEach(function(c){l!==c&&(a[l][c]={distance:Number.POSITIVE_INFINITY})}),s(l).forEach(function(c){var f=c.v===l?c.w:c.v,d=i(c);a[l][f]={distance:d,predecessor:l}})}),u.forEach(function(l){var c=a[l];u.forEach(function(f){var d=a[f];u.forEach(function(h){var g=d[l],v=c[h],y=d[h],E=g.distance+v.distance;E0;){if(l=u.removeMin(),e.has(a,l))s.setEdge(l,a[l]);else{if(f)throw new Error("Input graph is not connected: "+o);f=!0}o.nodeEdges(l).forEach(c)}return s}return k4}var A4,mX;function JPe(){return mX||(mX=1,A4={components:KPe(),dijkstra:yce(),dijkstraAll:GPe(),findCycles:VPe(),floydWarshall:UPe(),isAcyclic:YPe(),postorder:XPe(),preorder:QPe(),prim:ZPe(),tarjan:bce(),topsort:_ce()}),A4}var T4,yX;function eqe(){if(yX)return T4;yX=1;var e=qPe();return T4={Graph:e.Graph,json:WPe(),alg:JPe(),version:e.version},T4}var $A;if(typeof X8=="function")try{$A=eqe()}catch{}$A||($A=window.graphlib);var hl=$A,x4,bX;function tqe(){if(bX)return x4;bX=1;var e=Gle(),t=1,r=4;function n(o){return e(o,t|r)}return x4=n,x4}var I4,_X;function r9(){if(_X)return I4;_X=1;var e=vv(),t=Hf(),r=Vx(),n=Su();function o(i,s,a){if(!n(a))return!1;var u=typeof s;return(u=="number"?t(a)&&r(s,a.length):u=="string"&&s in a)?e(a[s],i):!1}return I4=o,I4}var N4,EX;function rqe(){if(EX)return N4;EX=1;var e=t9(),t=vv(),r=r9(),n=up(),o=Object.prototype,i=o.hasOwnProperty,s=e(function(a,u){a=Object(a);var l=-1,c=u.length,f=c>2?u[2]:void 0;for(f&&r(u[0],u[1],f)&&(c=1);++l-1?u[l?i[c]:c]:void 0}}return C4=n,C4}var R4,wX;function oqe(){if(wX)return R4;wX=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return R4=t,R4}var O4,kX;function iqe(){if(kX)return O4;kX=1;var e=oqe(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return O4=r,O4}var D4,AX;function sqe(){if(AX)return D4;AX=1;var e=iqe(),t=Su(),r=_v(),n=NaN,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt;function u(l){if(typeof l=="number")return l;if(r(l))return n;if(t(l)){var c=typeof l.valueOf=="function"?l.valueOf():l;l=t(c)?c+"":c}if(typeof l!="string")return l===0?l:+l;l=e(l);var f=i.test(l);return f||s.test(l)?a(l.slice(2),f?2:8):o.test(l)?n:+l}return D4=u,D4}var F4,TX;function Sce(){if(TX)return F4;TX=1;var e=sqe(),t=1/0,r=17976931348623157e292;function n(o){if(!o)return o===0?o:0;if(o=e(o),o===t||o===-t){var i=o<0?-1:1;return i*r}return o===o?o:0}return F4=n,F4}var B4,xX;function aqe(){if(xX)return B4;xX=1;var e=Sce();function t(r){var n=e(r),o=n%1;return n===n?o?n-o:n:0}return B4=t,B4}var M4,IX;function uqe(){if(IX)return M4;IX=1;var e=pce(),t=$f(),r=aqe(),n=Math.max;function o(i,s,a){var u=i==null?0:i.length;if(!u)return-1;var l=a==null?0:r(a);return l<0&&(l=n(u+l,0)),e(i,t(s,3),l)}return M4=o,M4}var L4,NX;function lqe(){if(NX)return L4;NX=1;var e=nqe(),t=uqe(),r=e(t);return L4=r,L4}var j4,CX;function wce(){if(CX)return j4;CX=1;var e=f7();function t(r){var n=r==null?0:r.length;return n?e(r,1):[]}return j4=t,j4}var z4,RX;function cqe(){if(RX)return z4;RX=1;var e=a7(),t=Vle(),r=up();function n(o,i){return o==null?o:e(o,t(i),r)}return z4=n,z4}var H4,OX;function fqe(){if(OX)return H4;OX=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return H4=e,H4}var $4,DX;function dqe(){if(DX)return $4;DX=1;var e=Kx(),t=u7(),r=$f();function n(o,i){var s={};return i=r(i,3),t(o,function(a,u,l){e(s,u,i(a,u,l))}),s}return $4=n,$4}var P4,FX;function h7(){if(FX)return P4;FX=1;var e=_v();function t(r,n,o){for(var i=-1,s=r.length;++ir}return q4=e,q4}var W4,MX;function pqe(){if(MX)return W4;MX=1;var e=h7(),t=hqe(),r=lp();function n(o){return o&&o.length?e(o,r,t):void 0}return W4=n,W4}var K4,LX;function kce(){if(LX)return K4;LX=1;var e=Kx(),t=vv();function r(n,o,i){(i!==void 0&&!t(n[o],i)||i===void 0&&!(o in n))&&e(n,o,i)}return K4=r,K4}var G4,jX;function gqe(){if(jX)return G4;jX=1;var e=sp(),t=Xx(),r=_c(),n="[object Object]",o=Function.prototype,i=Object.prototype,s=o.toString,a=i.hasOwnProperty,u=s.call(Object);function l(c){if(!r(c)||e(c)!=n)return!1;var f=t(c);if(f===null)return!0;var d=a.call(f,"constructor")&&f.constructor;return typeof d=="function"&&d instanceof d&&s.call(d)==u}return G4=l,G4}var V4,zX;function Ace(){if(zX)return V4;zX=1;function e(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}return V4=e,V4}var U4,HX;function vqe(){if(HX)return U4;HX=1;var e=eE(),t=up();function r(n){return e(n,t(n))}return U4=r,U4}var Y4,$X;function mqe(){if($X)return Y4;$X=1;var e=kce(),t=Fle(),r=qle(),n=Ble(),o=Kle(),i=tE(),s=To(),a=gce(),u=yv(),l=J_(),c=Su(),f=gqe(),d=rE(),h=Ace(),g=vqe();function v(y,E,_,S,b,A,x){var T=h(y,_),N=h(E,_),I=x.get(N);if(I){e(y,_,I);return}var R=A?A(T,N,_+"",y,E,x):void 0,D=R===void 0;if(D){var L=s(N),M=!L&&u(N),q=!L&&!M&&d(N);R=N,L||M||q?s(T)?R=T:a(T)?R=n(T):M?(D=!1,R=t(N,!0)):q?(D=!1,R=r(N,!0)):R=[]:f(N)||i(N)?(R=T,i(T)?R=g(T):(!c(T)||l(T))&&(R=o(N))):D=!1}D&&(x.set(N,R),b(R,N,S,A,x),x.delete(N)),e(y,_,R)}return Y4=v,Y4}var X4,PX;function yqe(){if(PX)return X4;PX=1;var e=Wx(),t=kce(),r=a7(),n=mqe(),o=Su(),i=up(),s=Ace();function a(u,l,c,f,d){u!==l&&r(l,function(h,g){if(d||(d=new e),o(h))n(u,l,g,c,a,f,d);else{var v=f?f(s(u,g),h,g+"",u,l,d):void 0;v===void 0&&(v=h),t(u,g,v)}},i)}return X4=a,X4}var Q4,qX;function bqe(){if(qX)return Q4;qX=1;var e=t9(),t=r9();function r(n){return e(function(o,i){var s=-1,a=i.length,u=a>1?i[a-1]:void 0,l=a>2?i[2]:void 0;for(u=n.length>3&&typeof u=="function"?(a--,u):void 0,l&&t(i[0],i[1],l)&&(u=a<3?void 0:u,a=1),o=Object(o);++sn||a&&u&&c&&!l&&!f||i&&u&&c||!o&&c||!s)return 1;if(!i&&!a&&!f&&r=l)return c;var f=o[i];return c*(f=="desc"?-1:1)}}return r.index-n.index}return hD=t,hD}var pD,sQ;function Bqe(){if(sQ)return pD;sQ=1;var e=Zx(),t=e9(),r=$f(),n=lce(),o=Oqe(),i=Ux(),s=Fqe(),a=lp(),u=To();function l(c,f,d){f.length?f=e(f,function(v){return u(v)?function(y){return t(y,v.length===1?v[0]:v)}:v}):f=[a];var h=-1;f=e(f,i(r));var g=n(c,function(v,y,E){var _=e(f,function(S){return S(v)});return{criteria:_,index:++h,value:v}});return o(g,function(v,y){return s(v,y,d)})}return pD=l,pD}var gD,aQ;function Mqe(){if(aQ)return gD;aQ=1;var e=f7(),t=Bqe(),r=t9(),n=r9(),o=r(function(i,s){if(i==null)return[];var a=s.length;return a>1&&n(i,s[0],s[1])?s=[]:a>2&&n(s[0],s[1],s[2])&&(s=[s[0]]),t(i,e(s,1),[])});return gD=o,gD}var vD,uQ;function Lqe(){if(uQ)return vD;uQ=1;var e=rce(),t=0;function r(n){var o=++t;return e(n)+o}return vD=r,vD}var mD,lQ;function jqe(){if(lQ)return mD;lQ=1;function e(t,r,n){for(var o=-1,i=t.length,s=r.length,a={};++o0;--a)if(s=t[a].dequeue(),s){n=n.concat(bD(e,t,r,s,!0));break}}}return n}function bD(e,t,r,n,o){var i=o?[]:void 0;return af.forEach(e.inEdges(n.v),function(s){var a=e.edge(s),u=e.node(s.v);o&&i.push({v:s.v,w:s.w}),u.out-=a,yB(t,r,u)}),af.forEach(e.outEdges(n.v),function(s){var a=e.edge(s),u=s.w,l=e.node(u);l.in-=a,yB(t,r,l)}),e.removeNode(n.v),i}function Uqe(e,t){var r=new Pqe,n=0,o=0;af.forEach(e.nodes(),function(a){r.setNode(a,{v:a,in:0,out:0})}),af.forEach(e.edges(),function(a){var u=r.edge(a.v,a.w)||0,l=t(a),c=u+l;r.setEdge(a.v,a.w,c),o=Math.max(o,r.node(a.v).out+=l),n=Math.max(n,r.node(a.w).in+=l)});var i=af.range(o+n+3).map(function(){return new qqe}),s=n+1;return af.forEach(r.nodes(),function(a){yB(i,s,r.node(a))}),{graph:r,buckets:i,zeroIdx:s}}function yB(e,t,r){r.out?r.in?e[r.out-r.in+t].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}var Sh=Ln,Yqe=Wqe,Xqe={run:Qqe,undo:Jqe};function Qqe(e){var t=e.graph().acyclicer==="greedy"?Yqe(e,r(e)):Zqe(e);Sh.forEach(t,function(n){var o=e.edge(n);e.removeEdge(n),o.forwardName=n.name,o.reversed=!0,e.setEdge(n.w,n.v,o,Sh.uniqueId("rev"))});function r(n){return function(o){return n.edge(o).weight}}}function Zqe(e){var t=[],r={},n={};function o(i){Sh.has(n,i)||(n[i]=!0,r[i]=!0,Sh.forEach(e.outEdges(i),function(s){Sh.has(r,s.w)?t.push(s):o(s.w)}),delete r[i])}return Sh.forEach(e.nodes(),o),t}function Jqe(e){Sh.forEach(e.edges(),function(t){var r=e.edge(t);if(r.reversed){e.removeEdge(t);var n=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(t.w,t.v,r,n)}})}var Lr=Ln,Ice=hl.Graph,Ls={addDummyNode:Nce,simplify:eWe,asNonCompoundGraph:tWe,successorWeights:rWe,predecessorWeights:nWe,intersectRect:oWe,buildLayerMatrix:iWe,normalizeRanks:sWe,removeEmptyRanks:aWe,addBorderNode:uWe,maxRank:Cce,partition:lWe,time:cWe,notime:fWe};function Nce(e,t,r,n){var o;do o=Lr.uniqueId(n);while(e.hasNode(o));return r.dummy=t,e.setNode(o,r),o}function eWe(e){var t=new Ice().setGraph(e.graph());return Lr.forEach(e.nodes(),function(r){t.setNode(r,e.node(r))}),Lr.forEach(e.edges(),function(r){var n=t.edge(r.v,r.w)||{weight:0,minlen:1},o=e.edge(r);t.setEdge(r.v,r.w,{weight:n.weight+o.weight,minlen:Math.max(n.minlen,o.minlen)})}),t}function tWe(e){var t=new Ice({multigraph:e.isMultigraph()}).setGraph(e.graph());return Lr.forEach(e.nodes(),function(r){e.children(r).length||t.setNode(r,e.node(r))}),Lr.forEach(e.edges(),function(r){t.setEdge(r,e.edge(r))}),t}function rWe(e){var t=Lr.map(e.nodes(),function(r){var n={};return Lr.forEach(e.outEdges(r),function(o){n[o.w]=(n[o.w]||0)+e.edge(o).weight}),n});return Lr.zipObject(e.nodes(),t)}function nWe(e){var t=Lr.map(e.nodes(),function(r){var n={};return Lr.forEach(e.inEdges(r),function(o){n[o.v]=(n[o.v]||0)+e.edge(o).weight}),n});return Lr.zipObject(e.nodes(),t)}function oWe(e,t){var r=e.x,n=e.y,o=t.x-r,i=t.y-n,s=e.width/2,a=e.height/2;if(!o&&!i)throw new Error("Not possible to find intersection inside of the rectangle");var u,l;return Math.abs(i)*s>Math.abs(o)*a?(i<0&&(a=-a),u=a*o/i,l=a):(o<0&&(s=-s),u=s,l=s*i/o),{x:r+u,y:n+l}}function iWe(e){var t=Lr.map(Lr.range(Cce(e)+1),function(){return[]});return Lr.forEach(e.nodes(),function(r){var n=e.node(r),o=n.rank;Lr.isUndefined(o)||(t[o][n.order]=r)}),t}function sWe(e){var t=Lr.min(Lr.map(e.nodes(),function(r){return e.node(r).rank}));Lr.forEach(e.nodes(),function(r){var n=e.node(r);Lr.has(n,"rank")&&(n.rank-=t)})}function aWe(e){var t=Lr.min(Lr.map(e.nodes(),function(i){return e.node(i).rank})),r=[];Lr.forEach(e.nodes(),function(i){var s=e.node(i).rank-t;r[s]||(r[s]=[]),r[s].push(i)});var n=0,o=e.graph().nodeRankFactor;Lr.forEach(r,function(i,s){Lr.isUndefined(i)&&s%o!==0?--n:n&&Lr.forEach(i,function(a){e.node(a).rank+=n})})}function uWe(e,t,r,n){var o={width:0,height:0};return arguments.length>=4&&(o.rank=r,o.order=n),Nce(e,"border",o,t)}function Cce(e){return Lr.max(Lr.map(e.nodes(),function(t){var r=e.node(t).rank;if(!Lr.isUndefined(r))return r}))}function lWe(e,t){var r={lhs:[],rhs:[]};return Lr.forEach(e,function(n){t(n)?r.lhs.push(n):r.rhs.push(n)}),r}function cWe(e,t){var r=Lr.now();try{return t()}finally{console.log(e+" time: "+(Lr.now()-r)+"ms")}}function fWe(e,t){return t()}var Rce=Ln,dWe=Ls,hWe={run:pWe,undo:vWe};function pWe(e){e.graph().dummyChains=[],Rce.forEach(e.edges(),function(t){gWe(e,t)})}function gWe(e,t){var r=t.v,n=e.node(r).rank,o=t.w,i=e.node(o).rank,s=t.name,a=e.edge(t),u=a.labelRank;if(i!==n+1){e.removeEdge(t);var l,c,f;for(f=0,++n;ns.lim&&(a=s,u=!0);var l=If.filter(t.edges(),function(c){return u===fQ(e,e.node(c.v),a)&&u!==fQ(e,e.node(c.w),a)});return If.minBy(l,function(c){return AWe(t,c)})}function Lce(e,t,r,n){var o=r.v,i=r.w;e.removeEdge(o,i),e.setEdge(n.v,n.w,{}),g7(e),p7(e,t),OWe(e,t)}function OWe(e,t){var r=If.find(e.nodes(),function(o){return!t.node(o).parent}),n=xWe(e,r);n=n.slice(1),If.forEach(n,function(o){var i=e.node(o).parent,s=t.edge(o,i),a=!1;s||(s=t.edge(i,o),a=!0),t.node(o).rank=t.node(i).rank+(a?s.minlen:-s.minlen)})}function DWe(e,t,r){return e.hasEdge(t,r)}function fQ(e,t,r){return r.low<=t.lim&&t.lim<=r.lim}var FWe=o9,jce=FWe.longestPath,BWe=Oce,MWe=CWe,LWe=jWe;function jWe(e){switch(e.graph().ranker){case"network-simplex":dQ(e);break;case"tight-tree":HWe(e);break;case"longest-path":zWe(e);break;default:dQ(e)}}var zWe=jce;function HWe(e){jce(e),BWe(e)}function dQ(e){MWe(e)}var bB=Ln,$We=PWe;function PWe(e){var t=WWe(e);bB.forEach(e.graph().dummyChains,function(r){for(var n=e.node(r),o=n.edgeObj,i=qWe(e,t,o.v,o.w),s=i.path,a=i.lca,u=0,l=s[u],c=!0;r!==o.w;){if(n=e.node(r),c){for(;(l=s[u])!==a&&e.node(l).maxRanks||a>t[u].lim));for(l=u,u=n;(u=e.parent(u))!==l;)i.push(u);return{path:o.concat(i.reverse()),lca:l}}function WWe(e){var t={},r=0;function n(o){var i=r;bB.forEach(e.children(o),n),t[o]={low:i,lim:r++}}return bB.forEach(e.children(),n),t}var uf=Ln,_B=Ls,KWe={run:GWe,cleanup:YWe};function GWe(e){var t=_B.addDummyNode(e,"root",{},"_root"),r=VWe(e),n=uf.max(uf.values(r))-1,o=2*n+1;e.graph().nestingRoot=t,uf.forEach(e.edges(),function(s){e.edge(s).minlen*=o});var i=UWe(e)+1;uf.forEach(e.children(),function(s){zce(e,t,o,i,n,r,s)}),e.graph().nodeRankFactor=o}function zce(e,t,r,n,o,i,s){var a=e.children(s);if(!a.length){s!==t&&e.setEdge(t,s,{weight:0,minlen:r});return}var u=_B.addBorderNode(e,"_bt"),l=_B.addBorderNode(e,"_bb"),c=e.node(s);e.setParent(u,s),c.borderTop=u,e.setParent(l,s),c.borderBottom=l,uf.forEach(a,function(f){zce(e,t,r,n,o,i,f);var d=e.node(f),h=d.borderTop?d.borderTop:f,g=d.borderBottom?d.borderBottom:f,v=d.borderTop?n:2*n,y=h!==g?1:o-i[s]+1;e.setEdge(u,h,{weight:v,minlen:y,nestingEdge:!0}),e.setEdge(g,l,{weight:v,minlen:y,nestingEdge:!0})}),e.parent(s)||e.setEdge(t,u,{weight:0,minlen:o+i[s]})}function VWe(e){var t={};function r(n,o){var i=e.children(n);i&&i.length&&uf.forEach(i,function(s){r(s,o+1)}),t[n]=o}return uf.forEach(e.children(),function(n){r(n,1)}),t}function UWe(e){return uf.reduce(e.edges(),function(t,r){return t+e.edge(r).weight},0)}function YWe(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,uf.forEach(e.edges(),function(r){var n=e.edge(r);n.nestingEdge&&e.removeEdge(r)})}var _D=Ln,XWe=Ls,QWe=ZWe;function ZWe(e){function t(r){var n=e.children(r),o=e.node(r);if(n.length&&_D.forEach(n,t),_D.has(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(var i=o.minRank,s=o.maxRank+1;i0;)c%2&&(f+=a[c+1]),c=c-1>>1,a[c]+=l.weight;u+=l.weight*f})),u}var gQ=Ln,lKe=cKe;function cKe(e,t){return gQ.map(t,function(r){var n=e.inEdges(r);if(n.length){var o=gQ.reduce(n,function(i,s){var a=e.edge(s),u=e.node(s.v);return{sum:i.sum+a.weight*u.order,weight:i.weight+a.weight}},{sum:0,weight:0});return{v:r,barycenter:o.sum/o.weight,weight:o.weight}}else return{v:r}})}var Js=Ln,fKe=dKe;function dKe(e,t){var r={};Js.forEach(e,function(o,i){var s=r[o.v]={indegree:0,in:[],out:[],vs:[o.v],i};Js.isUndefined(o.barycenter)||(s.barycenter=o.barycenter,s.weight=o.weight)}),Js.forEach(t.edges(),function(o){var i=r[o.v],s=r[o.w];!Js.isUndefined(i)&&!Js.isUndefined(s)&&(s.indegree++,i.out.push(r[o.w]))});var n=Js.filter(r,function(o){return!o.indegree});return hKe(n)}function hKe(e){var t=[];function r(i){return function(s){s.merged||(Js.isUndefined(s.barycenter)||Js.isUndefined(i.barycenter)||s.barycenter>=i.barycenter)&&pKe(i,s)}}function n(i){return function(s){s.in.push(i),--s.indegree===0&&e.push(s)}}for(;e.length;){var o=e.pop();t.push(o),Js.forEach(o.in.reverse(),r(o)),Js.forEach(o.out,n(o))}return Js.map(Js.filter(t,function(i){return!i.merged}),function(i){return Js.pick(i,["vs","i","barycenter","weight"])})}function pKe(e,t){var r=0,n=0;e.weight&&(r+=e.barycenter*e.weight,n+=e.weight),t.weight&&(r+=t.barycenter*t.weight,n+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=r/n,e.weight=n,e.i=Math.min(t.i,e.i),t.merged=!0}var ly=Ln,gKe=Ls,vKe=mKe;function mKe(e,t){var r=gKe.partition(e,function(c){return ly.has(c,"barycenter")}),n=r.lhs,o=ly.sortBy(r.rhs,function(c){return-c.i}),i=[],s=0,a=0,u=0;n.sort(yKe(!!t)),u=vQ(i,o,u),ly.forEach(n,function(c){u+=c.vs.length,i.push(c.vs),s+=c.barycenter*c.weight,a+=c.weight,u=vQ(i,o,u)});var l={vs:ly.flatten(i,!0)};return a&&(l.barycenter=s/a,l.weight=a),l}function vQ(e,t,r){for(var n;t.length&&(n=ly.last(t)).i<=r;)t.pop(),e.push(n.vs),r++;return r}function yKe(e){return function(t,r){return t.barycenterr.barycenter?1:e?r.i-t.i:t.i-r.i}}var Rd=Ln,bKe=lKe,_Ke=fKe,EKe=vKe,SKe=$ce;function $ce(e,t,r,n){var o=e.children(t),i=e.node(t),s=i?i.borderLeft:void 0,a=i?i.borderRight:void 0,u={};s&&(o=Rd.filter(o,function(g){return g!==s&&g!==a}));var l=bKe(e,o);Rd.forEach(l,function(g){if(e.children(g.v).length){var v=$ce(e,g.v,r,n);u[g.v]=v,Rd.has(v,"barycenter")&&kKe(g,v)}});var c=_Ke(l,r);wKe(c,u);var f=EKe(c,n);if(s&&(f.vs=Rd.flatten([s,f.vs,a],!0),e.predecessors(s).length)){var d=e.node(e.predecessors(s)[0]),h=e.node(e.predecessors(a)[0]);Rd.has(f,"barycenter")||(f.barycenter=0,f.weight=0),f.barycenter=(f.barycenter*f.weight+d.order+h.order)/(f.weight+2),f.weight+=2}return f}function wKe(e,t){Rd.forEach(e,function(r){r.vs=Rd.flatten(r.vs.map(function(n){return t[n]?t[n].vs:n}),!0)})}function kKe(e,t){Rd.isUndefined(e.barycenter)?(e.barycenter=t.barycenter,e.weight=t.weight):(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight)}var cy=Ln,AKe=hl.Graph,TKe=xKe;function xKe(e,t,r){var n=IKe(e),o=new AKe({compound:!0}).setGraph({root:n}).setDefaultNodeLabel(function(i){return e.node(i)});return cy.forEach(e.nodes(),function(i){var s=e.node(i),a=e.parent(i);(s.rank===t||s.minRank<=t&&t<=s.maxRank)&&(o.setNode(i),o.setParent(i,a||n),cy.forEach(e[r](i),function(u){var l=u.v===i?u.w:u.v,c=o.edge(l,i),f=cy.isUndefined(c)?0:c.weight;o.setEdge(l,i,{weight:e.edge(u).weight+f})}),cy.has(s,"minRank")&&o.setNode(i,{borderLeft:s.borderLeft[t],borderRight:s.borderRight[t]}))}),o}function IKe(e){for(var t;e.hasNode(t=cy.uniqueId("_root")););return t}var NKe=Ln,CKe=RKe;function RKe(e,t,r){var n={},o;NKe.forEach(r,function(i){for(var s=e.parent(i),a,u;s;){if(a=e.parent(s),a?(u=n[a],n[a]=s):(u=o,o=s),u&&u!==s){t.setEdge(u,s);return}s=a}})}var Qd=Ln,OKe=oKe,DKe=sKe,FKe=SKe,BKe=TKe,MKe=CKe,LKe=hl.Graph,mQ=Ls,jKe=zKe;function zKe(e){var t=mQ.maxRank(e),r=yQ(e,Qd.range(1,t+1),"inEdges"),n=yQ(e,Qd.range(t-1,-1,-1),"outEdges"),o=OKe(e);bQ(e,o);for(var i=Number.POSITIVE_INFINITY,s,a=0,u=0;u<4;++a,++u){HKe(a%2?r:n,a%4>=2),o=mQ.buildLayerMatrix(e);var l=DKe(e,o);ll)&&v7(r,d,c)})})}function o(i,s){var a=-1,u,l=0;return Ut.forEach(s,function(c,f){if(e.node(c).dummy==="border"){var d=e.predecessors(c);d.length&&(u=e.node(d[0]).order,n(s,l,f,a,u),l=f,a=u)}n(s,l,s.length,u,i.length)}),s}return Ut.reduce(t,o),r}function WKe(e,t){if(e.node(t).dummy)return Ut.find(e.predecessors(t),function(r){return e.node(r).dummy})}function v7(e,t,r){if(t>r){var n=t;t=r,r=n}var o=e[t];o||(e[t]=o={}),o[r]=!0}function Wce(e,t,r){if(t>r){var n=t;t=r,r=n}return Ut.has(e[t],r)}function Kce(e,t,r,n){var o={},i={},s={};return Ut.forEach(t,function(a){Ut.forEach(a,function(u,l){o[u]=u,i[u]=u,s[u]=l})}),Ut.forEach(t,function(a){var u=-1;Ut.forEach(a,function(l){var c=n(l);if(c.length){c=Ut.sortBy(c,function(v){return s[v]});for(var f=(c.length-1)/2,d=Math.floor(f),h=Math.ceil(f);d<=h;++d){var g=c[d];i[l]===l&&uC.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16px",height:"16px",viewBox:"0 0 18 18",children:[C.jsxs("defs",{children:[C.jsxs("linearGradient",{id:"a5efbc52-c9a4-425f-9d94-50e000195659",x1:"9",y1:"18.967",x2:"9",y2:"3.398",gradientUnits:"userSpaceOnUse",children:[C.jsx("stop",{offset:"0",stopColor:"#0078d4"}),C.jsx("stop",{offset:"0.156",stopColor:"#1380da"}),C.jsx("stop",{offset:"0.528",stopColor:"#3c91e5"}),C.jsx("stop",{offset:"0.822",stopColor:"#559cec"}),C.jsx("stop",{offset:"1",stopColor:"#5ea0ef"})]}),C.jsxs("linearGradient",{id:"a110d41d-e4ca-48ee-9efe-328e60a20dcc",x1:"9",y1:"5.019",x2:"9",y2:"13.676",gradientUnits:"userSpaceOnUse",children:[C.jsx("stop",{offset:"0.22",stopColor:"#fff"}),C.jsx("stop",{offset:"1",stopColor:"#e6e6e6"})]}),C.jsxs("linearGradient",{id:"bcf81335-a15c-4e8a-85c4-cb14c4ef74b0",x1:"8.991",y1:"2.883",x2:"8.991",y2:"11.32",gradientUnits:"userSpaceOnUse",children:[C.jsx("stop",{offset:"0.22",stopColor:"#fff"}),C.jsx("stop",{offset:"1",stopColor:"#e6e6e6"})]})]}),C.jsx("g",{id:"b5d797c5-507f-4358-b61e-ca040c36ef52",children:C.jsxs("g",{children:[C.jsx("path",{d:"M.038,9.142,4.4,16.69a.285.285,0,0,0,.246.142h8.716a.285.285,0,0,0,.246-.142l4.358-7.548a.283.283,0,0,0,0-.284L13.6,1.31a.285.285,0,0,0-.246-.142H4.642A.285.285,0,0,0,4.4,1.31L.038,8.858A.283.283,0,0,0,.038,9.142Z",fill:"url(#a5efbc52-c9a4-425f-9d94-50e000195659)"}),C.jsxs("g",{children:[C.jsx("path",{id:"a81cd782-d573-434f-a6f1-758ffbb6f88b",d:"M12.239,6.083l.048.042a.085.085,0,0,0,.115,0l.447-.374.808-1.334a.083.083,0,0,0,0-.1l-.138-.145a.085.085,0,0,0-.1,0l-1.273.863L11.78,5.5a.086.086,0,0,0,0,.109l.049.048L9.2,8.394l-.543-.6-.6.6a1.093,1.093,0,0,1-.26.911.945.945,0,0,1-.826.3L4.376,12.232a.163.163,0,0,0,0,.231l0,.005,1.255,1.3a.162.162,0,0,0,.23.011l.011-.011L8.4,11.14a1.037,1.037,0,0,1,.3-.869.964.964,0,0,1,.826-.3l.6-.6L9.6,8.78Z",opacity:"0.4",fill:"url(#a110d41d-e4ca-48ee-9efe-328e60a20dcc)"}),C.jsx("path",{d:"M13.283,12.057l-.6-.645L8.648,7.278h0l-.2-.218a2.242,2.242,0,0,0-.525-2.2,2.067,2.067,0,0,0-1.865-.6.09.09,0,0,0-.065.11.088.088,0,0,0,.017.035l1.05,1.068a.091.091,0,0,1,0,.085L6.808,6.65a.084.084,0,0,1-.061.06l-1.074.3a.084.084,0,0,1-.084,0l-1.02-1.08a.084.084,0,0,0-.145.054,2.19,2.19,0,0,0,.6,1.919,2.035,2.035,0,0,0,2.034.543l.036.043.23.235h0l4.592,4.828a.954.954,0,0,0,1.34.048l.048-.048a1.017,1.017,0,0,0,.284-.724A1.117,1.117,0,0,0,13.283,12.057Z",fill:"url(#bcf81335-a15c-4e8a-85c4-cb14c4ef74b0)"})]})]})})]}),jGe=()=>C.jsxs("svg",{fill:"currentColor",width:"16px",height:"16px",viewBox:"0 0 2048 2048",role:"img",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("title",{children:"OpenAI icon"}),C.jsx("path",{d:"M832 676l575 288v760l-575 288-575-288V964l575-288zm0 144l-368 184 368 183 368-183-368-184zm-447 825l383 191v-538l-383-191v538zm894 0v-538l-383 191v538l383-191zm577-733q14 0 23 9t9 23q0 23 9 43t24 36 35 24 44 9q14 0 23 9t9 23q0 14-9 23t-23 9q-23 0-43 9t-36 24-24 35-9 44q0 14-9 23t-23 9q-14 0-23-9t-9-23q0-23-9-43t-24-36-35-24-44-9q-14 0-23-9t-9-23q0-14 9-23t23-9q23 0 43-9t36-24 24-35 9-44q0-14 9-23t23-9zM704 496q-14 0-23-9t-9-23q0-23-9-43t-24-36-35-24-44-9q-14 0-23-9t-9-23q0-14 9-23t23-9q23 0 43-9t36-24 24-35 9-44q0-14 9-23t23-9q14 0 23 9t9 23q0 23 9 43t24 36 35 24 44 9q14 0 23 9t9 23q0 14-9 23t-23 9q-23 0-43 9t-36 24-24 35-9 44q0 14-9 23t-23 9zm1206-48q0 23-15 38t-39 16q-27 0-57 11t-58 28-54 37-45 40q-19 19-39 44t-38 54-28 59-11 57q0 23-15 38t-39 16q-23 0-38-15t-16-39q0-27-11-57t-28-58-37-54-40-45q-19-19-44-39t-54-38-59-28-57-11q-23 0-38-15t-16-39q0-23 15-38t39-16q27 0 57-11t58-28 54-37 45-40q19-19 39-44t38-54 28-59 11-57q0-23 15-38t39-16q23 0 38 15t16 39q0 27 11 57t28 58 37 54 40 45q19 19 44 39t54 38 59 28 57 11q23 0 38 15t16 39zm-438 212q38-65 92-119t120-93q-65-38-119-92t-93-120q-38 65-92 119t-120 93q65 38 119 92t93 120z"})]}),zGe=()=>C.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:C.jsx("path",{d:"M9.5 6.50238C9.5 6.22624 9.72386 6.00238 10 6.00238C10.2761 6.00238 10.5 6.22624 10.5 6.50238V7.50391C10.5 7.78005 10.2761 8.00391 10 8.00391C9.72386 8.00391 9.5 7.78005 9.5 7.50391V6.50238ZM12.8506 7.44332C12.6553 7.24806 12.3388 7.24806 12.1435 7.44332L11.4353 8.15151C11.2401 8.34677 11.2401 8.66335 11.4353 8.85861C11.6306 9.05388 11.9472 9.05388 12.1424 8.85861L12.8506 8.15043C13.0459 7.95517 13.0459 7.63858 12.8506 7.44332ZM7.8521 7.44332C7.65684 7.24806 7.34026 7.24806 7.145 7.44332C6.94973 7.63858 6.94973 7.95517 7.145 8.15043L7.85318 8.85861C8.04844 9.05388 8.36503 9.05388 8.56029 8.85861C8.75555 8.66335 8.75555 8.34677 8.56029 8.15151L7.8521 7.44332ZM10 2C13.3137 2 16 4.59693 16 7.80041C16 9.47737 15.2546 11.0164 13.7961 12.3942C13.7324 12.4544 13.6831 12.5269 13.6512 12.6065L13.6251 12.6883L12.6891 16.6051C12.5048 17.3763 11.8236 17.935 11.0181 17.9947L10.8748 18H9.12546C8.30655 18 7.59 17.4839 7.34866 16.7385L7.31108 16.6047L6.37626 12.6886C6.34955 12.5766 6.29016 12.4745 6.20516 12.3942C4.8153 11.0819 4.07265 9.62354 4.00507 8.03903L4 7.80041L4.00321 7.60894C4.1077 4.49409 6.75257 2 10 2ZM7.955 15L8.27386 16.3344L8.30004 16.4305C8.39695 16.7298 8.67583 16.9517 9.0116 16.993L9.12546 17L10.8379 17.0007L10.9442 16.9974C11.2865 16.9721 11.5726 16.7609 11.6854 16.4718L11.7165 16.3727L12.045 15H7.955ZM10 3C7.36782 3 5.21188 4.95301 5.0151 7.41357L5.00307 7.62569L4.99977 7.77916L5.00416 7.99642C5.05977 9.30026 5.67758 10.5208 6.89167 11.6671C7.07995 11.8449 7.22191 12.0647 7.30572 12.3078L7.34894 12.4564L7.716 14H9.50024V9.49707C9.50024 9.22093 9.7241 8.99707 10.0002 8.99707C10.2764 8.99707 10.5002 9.22093 10.5002 9.49707V14H12.285L12.6722 12.3851L12.7231 12.2343C12.8091 12.0198 12.9409 11.8265 13.1094 11.6673C14.3825 10.4646 15 9.18054 15 7.80041C15 5.15693 12.7689 3 10 3Z",fill:"currentColor"})}),HGe=()=>C.jsxs("svg",{width:"16px",height:"16px",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.0164 2C10.8193 2 9.03825 3.72453 9.03825 5.85185V8.51852H15.9235V9.25926H5.97814C3.78107 9.25926 2 10.9838 2 13.1111L2 18.8889C2 21.0162 3.78107 22.7407 5.97814 22.7407H8.27322V19.4815C8.27322 17.3542 10.0543 15.6296 12.2514 15.6296H19.5956C21.4547 15.6296 22.9617 14.1704 22.9617 12.3704V5.85185C22.9617 3.72453 21.1807 2 18.9836 2H13.0164ZM12.0984 6.74074C12.8589 6.74074 13.4754 6.14378 13.4754 5.40741C13.4754 4.67103 12.8589 4.07407 12.0984 4.07407C11.3378 4.07407 10.7213 4.67103 10.7213 5.40741C10.7213 6.14378 11.3378 6.74074 12.0984 6.74074Z",fill:"#327EBD"}),C.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.9834 30C21.1805 30 22.9616 28.2755 22.9616 26.1482V23.4815L16.0763 23.4815L16.0763 22.7408L26.0217 22.7408C28.2188 22.7408 29.9998 21.0162 29.9998 18.8889V13.1111C29.9998 10.9838 28.2188 9.25928 26.0217 9.25928L23.7266 9.25928V12.5185C23.7266 14.6459 21.9455 16.3704 19.7485 16.3704L12.4042 16.3704C10.5451 16.3704 9.03809 17.8296 9.03809 19.6296L9.03809 26.1482C9.03809 28.2755 10.8192 30 13.0162 30H18.9834ZM19.9015 25.2593C19.1409 25.2593 18.5244 25.8562 18.5244 26.5926C18.5244 27.329 19.1409 27.9259 19.9015 27.9259C20.662 27.9259 21.2785 27.329 21.2785 26.5926C21.2785 25.8562 20.662 25.2593 19.9015 25.2593Z",fill:"#FFDA4B"})]}),$Ge="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20aria-label='TypeScript'%20role='img'%20viewBox='0%200%20512%20512'%3e%3crect%20width='512'%20height='512'%20rx='15%25'%20fill='%233178c6'/%3e%3cpath%20fill='%23ffffff'%20d='m233%20284h64v-41H118v41h64v183h51zm84%20173c8.1%204.2%2018%207.3%2029%209.4s23%203.1%2035%203.1c12%200%2023-1.1%2034-3.4c11-2.3%2020-6.1%2028-11c8.1-5.3%2015-12%2019-21s7.1-19%207.1-32c0-9.1-1.4-17-4.1-24s-6.6-13-12-18c-5.1-5.3-11-10-18-14s-15-8.2-24-12c-6.6-2.7-12-5.3-18-7.9c-5.2-2.6-9.7-5.2-13-7.8c-3.7-2.7-6.5-5.5-8.5-8.4c-2-3-3-6.3-3-10c0-3.4.89-6.5%202.7-9.3s4.3-5.1%207.5-7.1c3.2-2%207.2-3.5%2012-4.6c4.7-1.1%209.9-1.6%2016-1.6c4.2%200%208.6.31%2013%20.94c4.6.63%209.3%201.6%2014%202.9c4.7%201.3%209.3%202.9%2014%204.9c4.4%202%208.5%204.3%2012%206.9v-47c-7.6-2.9-16-5.1-25-6.5s-19-2.1-31-2.1c-12%200-23%201.3-34%203.8s-20%206.5-28%2012c-8.1%205.4-14%2012-19%2021c-4.7%208.4-7%2018-7%2030c0%2015%204.3%2028%2013%2038c8.6%2011%2022%2019%2039%2027c6.9%202.8%2013%205.6%2019%208.3s11%205.5%2015%208.4c4.3%202.9%207.7%206.1%2010%209.5c2.5%203.4%203.8%207.4%203.8%2012c0%203.2-.78%206.2-2.3%209s-3.9%205.2-7.1%207.2s-7.1%203.6-12%204.8c-4.7%201.1-10%201.7-17%201.7c-11%200-22-1.9-32-5.7c-11-3.8-21-9.5-28.1-15.44z'/%3e%3c/svg%3e",dw=()=>C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16px",height:"16px",viewBox:"0 0 18 18",role:"img",children:[C.jsx("defs",{children:C.jsxs("linearGradient",{id:"fb5d9d20-fc2c-4e2c-bffd-dc236176d8b2",x1:"-6428.21",y1:"9646.124",x2:"-6428.21",y2:"9617.899",gradientTransform:"matrix(0.5, 0, 0, -0.5, 3224.856, 4823.856)",gradientUnits:"userSpaceOnUse",children:[C.jsx("stop",{offset:"0",stopColor:"#5ea0ef"}),C.jsx("stop",{offset:"0.178",stopColor:"#589eed"}),C.jsx("stop",{offset:"0.406",stopColor:"#4897e9"}),C.jsx("stop",{offset:"0.662",stopColor:"#2e8ce1"}),C.jsx("stop",{offset:"0.936",stopColor:"#0a7cd7"}),C.jsx("stop",{offset:"1",stopColor:"#0078d4"})]})}),C.jsx("g",{id:"a05a9809-540f-4ec8-9a73-07896b5e7f5c",children:C.jsxs("g",{children:[C.jsx("path",{d:"M8.438,10.379h4.234v4.234H8.438ZM3.5,4.734H7.732V.5H4.086a.588.588,0,0,0-.588.588Zm.588,9.879H7.732V10.379H3.5v3.646A.588.588,0,0,0,4.086,14.613ZM3.5,9.674H7.732V5.44H3.5Zm9.88,4.939h3.646a.588.588,0,0,0,.588-.588V10.379H13.378ZM8.438,9.674h4.234V5.44H8.438Zm4.94,0h4.234V5.44H13.378Zm0-9.174V4.734h4.234V1.088A.588.588,0,0,0,17.024.5ZM8.438,4.734h4.234V.5H8.438Z",fill:"url(#fb5d9d20-fc2c-4e2c-bffd-dc236176d8b2)"}),C.jsx("rect",{x:"-0.212",y:"14.751",width:"5.457",height:"1.243",rx:"0.581",transform:"translate(-10.133 6.282) rotate(-45)",fill:"#198ab3"}),C.jsx("circle",{cx:"5.959",cy:"11.709",r:"3.744",fill:"#50e6ff"}),C.jsx("circle",{cx:"5.952",cy:"11.642",r:"2.94",fill:"#fff"})]})})]}),ud=16,PGe={PromptFlowToolAzureContentSafety:C.jsx(kQ,{width:ud,height:ud}),PromptFlowToolSerpAPI:C.jsx(AQ,{}),PromptFlowToolBing:C.jsx(LGe,{width:ud,height:ud}),PromptFlowToolAzureContentModerator:C.jsx(kQ,{width:ud,height:ud}),PromptFlowToolVectorIndexLookupByText:C.jsx(dw,{}),PromptFlowToolFaissIndexLookup:C.jsx(dw,{}),PromptFlowToolVectorDBLookup:C.jsx(dw,{}),PromptFlowToolVectorSearch:C.jsx(dw,{}),PromptFlowToolLlm:C.jsx(jGe,{}),PromptFlowToolPython:C.jsx(HGe,{}),PromptFlowToolTypeScript:C.jsx($Ge,{width:ud,height:ud}),PromptFlowToolPrompt:C.jsx(zGe,{}),PromptFlowToolDefault:C.jsx(AQ,{})};wo({icons:{...PGe}});var TQ=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),qGe=new Uint8Array(16);function WGe(){if(!TQ)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return TQ(qGe)}var Qce=[];for(var hw=0;hw<256;++hw)Qce[hw]=(hw+256).toString(16).substr(1);function KGe(e,t){var r=t||0,n=Qce;return[n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]]].join("")}function KA(e,t,r){var n=t&&r||0;typeof e=="string"&&(t=e==="binary"?new Array(16):null,e=null),e=e||{};var o=e.random||(e.rng||WGe)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,t)for(var i=0;i<16;++i)t[n+i]=o[i];return t||KGe(o)}var Zce={exports:{}};Zce.exports=function(e){return Jce(GGe(e),e)};Zce.exports.array=Jce;function Jce(e,t){for(var r=e.length,n=new Array(r),o={},i=r;i--;)o[i]||s(e[i],i,[]);return n;function s(a,u,l){if(l.indexOf(a)>=0){var c;try{c=", node was:"+JSON.stringify(a)}catch{c=""}throw new Error("Cyclic dependency"+c)}if(!~e.indexOf(a))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(a));if(!o[u]){o[u]=!0;var f=t.filter(function(g){return g[0]===a});if(u=f.length){var d=l.concat(a);do{var h=f[--u][1];s(h,e.indexOf(h),d)}while(u)}n[--r]=a}}}function GGe(e){for(var t=[],r=0,n=e.length;r1?r-1:0),o=1;o2&&arguments[2]!==void 0?arguments[2]:Ik;xQ&&xQ(e,null);let n=t.length;for(;n--;){let o=t[n];if(typeof o=="string"){const i=r(o);i!==o&&(VGe(t)||(t[n]=i),o=i)}e[o]=!0}return e}function eVe(e){for(let t=0;t/gm),iVe=al(/\${[\w\W]*}/gm),sVe=al(/^data-[\-\w.\u00B7-\uFFFF]/),aVe=al(/^aria-[\-\w]+$/),rfe=al(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),uVe=al(/^(?:\w+script|data):/i),lVe=al(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),nfe=al(/^html$/i);var DQ=Object.freeze({__proto__:null,MUSTACHE_EXPR:nVe,ERB_EXPR:oVe,TMPLIT_EXPR:iVe,DATA_ATTR:sVe,ARIA_ATTR:aVe,IS_ALLOWED_URI:rfe,IS_SCRIPT_OR_DATA:uVe,ATTR_WHITESPACE:lVe,DOCTYPE_NAME:nfe});const cVe=function(){return typeof window>"u"?null:window},fVe=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const o="data-tt-policy-suffix";r&&r.hasAttribute(o)&&(n=r.getAttribute(o));const i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function ofe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:cVe();const t=$=>ofe($);if(t.version="3.0.9",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let{document:r}=e;const n=r,o=n.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:a,Element:u,NodeFilter:l,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:d,trustedTypes:h}=e,g=u.prototype,v=gw(g,"cloneNode"),y=gw(g,"nextSibling"),E=gw(g,"childNodes"),_=gw(g,"parentNode");if(typeof s=="function"){const $=r.createElement("template");$.content&&$.content.ownerDocument&&(r=$.content.ownerDocument)}let S,b="";const{implementation:A,createNodeIterator:x,createDocumentFragment:T,getElementsByTagName:N}=r,{importNode:I}=n;let R={};t.isSupported=typeof efe=="function"&&typeof _=="function"&&A&&A.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:D,ERB_EXPR:L,TMPLIT_EXPR:M,DATA_ATTR:q,ARIA_ATTR:z,IS_SCRIPT_OR_DATA:B,ATTR_WHITESPACE:P}=DQ;let{IS_ALLOWED_URI:K}=DQ,U=null;const X=hr({},[...NQ,...TD,...xD,...ID,...CQ]);let J=null;const ee=hr({},[...RQ,...ND,...OQ,...vw]);let se=Object.seal(tfe(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,_e=null,Te=!0,me=!0,Ae=!1,ve=!0,we=!1,De=!1,Qe=!1,Ke=!1,st=!1,He=!1,Ne=!1,$e=!0,Dt=!1;const $t="user-content-";let Gt=!0,_t=!1,tt={},rt=null;const ur=hr({},["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 he=null;const le=hr({},["audio","video","img","source","image","track"]);let ae=null;const ge=hr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Re="http://www.w3.org/1998/Math/MathML",je="http://www.w3.org/2000/svg",ke="http://www.w3.org/1999/xhtml";let Ce=ke,Pe=!1,ut=null;const vt=hr({},[Re,je,ke],AD);let xt=null;const fr=["application/xhtml+xml","text/html"],xr="text/html";let Ft=null,Pr=null;const cn=r.createElement("form"),Jt=function(F){return F instanceof RegExp||F instanceof Function},It=function(){let F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Pr&&Pr===F)){if((!F||typeof F!="object")&&(F={}),F=sh(F),xt=fr.indexOf(F.PARSER_MEDIA_TYPE)===-1?xr:F.PARSER_MEDIA_TYPE,Ft=xt==="application/xhtml+xml"?AD:Ik,U=qu(F,"ALLOWED_TAGS")?hr({},F.ALLOWED_TAGS,Ft):X,J=qu(F,"ALLOWED_ATTR")?hr({},F.ALLOWED_ATTR,Ft):ee,ut=qu(F,"ALLOWED_NAMESPACES")?hr({},F.ALLOWED_NAMESPACES,AD):vt,ae=qu(F,"ADD_URI_SAFE_ATTR")?hr(sh(ge),F.ADD_URI_SAFE_ATTR,Ft):ge,he=qu(F,"ADD_DATA_URI_TAGS")?hr(sh(le),F.ADD_DATA_URI_TAGS,Ft):le,rt=qu(F,"FORBID_CONTENTS")?hr({},F.FORBID_CONTENTS,Ft):ur,pe=qu(F,"FORBID_TAGS")?hr({},F.FORBID_TAGS,Ft):{},_e=qu(F,"FORBID_ATTR")?hr({},F.FORBID_ATTR,Ft):{},tt=qu(F,"USE_PROFILES")?F.USE_PROFILES:!1,Te=F.ALLOW_ARIA_ATTR!==!1,me=F.ALLOW_DATA_ATTR!==!1,Ae=F.ALLOW_UNKNOWN_PROTOCOLS||!1,ve=F.ALLOW_SELF_CLOSE_IN_ATTR!==!1,we=F.SAFE_FOR_TEMPLATES||!1,De=F.WHOLE_DOCUMENT||!1,st=F.RETURN_DOM||!1,He=F.RETURN_DOM_FRAGMENT||!1,Ne=F.RETURN_TRUSTED_TYPE||!1,Ke=F.FORCE_BODY||!1,$e=F.SANITIZE_DOM!==!1,Dt=F.SANITIZE_NAMED_PROPS||!1,Gt=F.KEEP_CONTENT!==!1,_t=F.IN_PLACE||!1,K=F.ALLOWED_URI_REGEXP||rfe,Ce=F.NAMESPACE||ke,se=F.CUSTOM_ELEMENT_HANDLING||{},F.CUSTOM_ELEMENT_HANDLING&&Jt(F.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(se.tagNameCheck=F.CUSTOM_ELEMENT_HANDLING.tagNameCheck),F.CUSTOM_ELEMENT_HANDLING&&Jt(F.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(se.attributeNameCheck=F.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),F.CUSTOM_ELEMENT_HANDLING&&typeof F.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(se.allowCustomizedBuiltInElements=F.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),we&&(me=!1),He&&(st=!0),tt&&(U=hr({},CQ),J=[],tt.html===!0&&(hr(U,NQ),hr(J,RQ)),tt.svg===!0&&(hr(U,TD),hr(J,ND),hr(J,vw)),tt.svgFilters===!0&&(hr(U,xD),hr(J,ND),hr(J,vw)),tt.mathMl===!0&&(hr(U,ID),hr(J,OQ),hr(J,vw))),F.ADD_TAGS&&(U===X&&(U=sh(U)),hr(U,F.ADD_TAGS,Ft)),F.ADD_ATTR&&(J===ee&&(J=sh(J)),hr(J,F.ADD_ATTR,Ft)),F.ADD_URI_SAFE_ATTR&&hr(ae,F.ADD_URI_SAFE_ATTR,Ft),F.FORBID_CONTENTS&&(rt===ur&&(rt=sh(rt)),hr(rt,F.FORBID_CONTENTS,Ft)),Gt&&(U["#text"]=!0),De&&hr(U,["html","head","body"]),U.table&&(hr(U,["tbody"]),delete pe.tbody),F.TRUSTED_TYPES_POLICY){if(typeof F.TRUSTED_TYPES_POLICY.createHTML!="function")throw Mm('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof F.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Mm('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=F.TRUSTED_TYPES_POLICY,b=S.createHTML("")}else S===void 0&&(S=fVe(h,o)),S!==null&&typeof b=="string"&&(b=S.createHTML(""));us&&us(F),Pr=F}},qr=hr({},["mi","mo","mn","ms","mtext"]),Ir=hr({},["foreignobject","desc","title","annotation-xml"]),Wr=hr({},["title","style","font","a","script"]),pr=hr({},[...TD,...xD,...tVe]),Rt=hr({},[...ID,...rVe]),ft=function(F){let Z=_(F);(!Z||!Z.tagName)&&(Z={namespaceURI:Ce,tagName:"template"});const ie=Ik(F.tagName),ue=Ik(Z.tagName);return ut[F.namespaceURI]?F.namespaceURI===je?Z.namespaceURI===ke?ie==="svg":Z.namespaceURI===Re?ie==="svg"&&(ue==="annotation-xml"||qr[ue]):!!pr[ie]:F.namespaceURI===Re?Z.namespaceURI===ke?ie==="math":Z.namespaceURI===je?ie==="math"&&Ir[ue]:!!Rt[ie]:F.namespaceURI===ke?Z.namespaceURI===je&&!Ir[ue]||Z.namespaceURI===Re&&!qr[ue]?!1:!Rt[ie]&&(Wr[ie]||!pr[ie]):!!(xt==="application/xhtml+xml"&&ut[F.namespaceURI]):!1},Ue=function(F){Fm(t.removed,{element:F});try{F.parentNode.removeChild(F)}catch{F.remove()}},Kr=function(F,Z){try{Fm(t.removed,{attribute:Z.getAttributeNode(F),from:Z})}catch{Fm(t.removed,{attribute:null,from:Z})}if(Z.removeAttribute(F),F==="is"&&!J[F])if(st||He)try{Ue(Z)}catch{}else try{Z.setAttribute(F,"")}catch{}},xo=function(F){let Z=null,ie=null;if(Ke)F=""+F;else{const ye=XGe(F,/^[\r\n\t ]+/);ie=ye&&ye[0]}xt==="application/xhtml+xml"&&Ce===ke&&(F=''+F+"");const ue=S?S.createHTML(F):F;if(Ce===ke)try{Z=new d().parseFromString(ue,xt)}catch{}if(!Z||!Z.documentElement){Z=A.createDocument(Ce,"template",null);try{Z.documentElement.innerHTML=Pe?b:ue}catch{}}const ne=Z.body||Z.documentElement;return F&&ie&&ne.insertBefore(r.createTextNode(ie),ne.childNodes[0]||null),Ce===ke?N.call(Z,De?"html":"body")[0]:De?Z.documentElement:ne},zr=function(F){return x.call(F.ownerDocument||F,F,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null)},xu=function(F){return F instanceof f&&(typeof F.nodeName!="string"||typeof F.textContent!="string"||typeof F.removeChild!="function"||!(F.attributes instanceof c)||typeof F.removeAttribute!="function"||typeof F.setAttribute!="function"||typeof F.namespaceURI!="string"||typeof F.insertBefore!="function"||typeof F.hasChildNodes!="function")},ps=function(F){return typeof a=="function"&&F instanceof a},po=function(F,Z,ie){R[F]&&pw(R[F],ue=>{ue.call(t,Z,ie,Pr)})},Fa=function(F){let Z=null;if(po("beforeSanitizeElements",F,null),xu(F))return Ue(F),!0;const ie=Ft(F.nodeName);if(po("uponSanitizeElement",F,{tagName:ie,allowedTags:U}),F.hasChildNodes()&&!ps(F.firstElementChild)&&Xs(/<[/\w]/g,F.innerHTML)&&Xs(/<[/\w]/g,F.textContent))return Ue(F),!0;if(!U[ie]||pe[ie]){if(!pe[ie]&&Y(ie)&&(se.tagNameCheck instanceof RegExp&&Xs(se.tagNameCheck,ie)||se.tagNameCheck instanceof Function&&se.tagNameCheck(ie)))return!1;if(Gt&&!rt[ie]){const ue=_(F)||F.parentNode,ne=E(F)||F.childNodes;if(ne&&ue){const ye=ne.length;for(let qe=ye-1;qe>=0;--qe)ue.insertBefore(v(ne[qe],!0),y(F))}}return Ue(F),!0}return F instanceof u&&!ft(F)||(ie==="noscript"||ie==="noembed"||ie==="noframes")&&Xs(/<\/no(script|embed|frames)/i,F.innerHTML)?(Ue(F),!0):(we&&F.nodeType===3&&(Z=F.textContent,pw([D,L,M],ue=>{Z=Bm(Z,ue," ")}),F.textContent!==Z&&(Fm(t.removed,{element:F.cloneNode()}),F.textContent=Z)),po("afterSanitizeElements",F,null),!1)},Me=function(F,Z,ie){if($e&&(Z==="id"||Z==="name")&&(ie in r||ie in cn))return!1;if(!(me&&!_e[Z]&&Xs(q,Z))){if(!(Te&&Xs(z,Z))){if(!J[Z]||_e[Z]){if(!(Y(F)&&(se.tagNameCheck instanceof RegExp&&Xs(se.tagNameCheck,F)||se.tagNameCheck instanceof Function&&se.tagNameCheck(F))&&(se.attributeNameCheck instanceof RegExp&&Xs(se.attributeNameCheck,Z)||se.attributeNameCheck instanceof Function&&se.attributeNameCheck(Z))||Z==="is"&&se.allowCustomizedBuiltInElements&&(se.tagNameCheck instanceof RegExp&&Xs(se.tagNameCheck,ie)||se.tagNameCheck instanceof Function&&se.tagNameCheck(ie))))return!1}else if(!ae[Z]){if(!Xs(K,Bm(ie,P,""))){if(!((Z==="src"||Z==="xlink:href"||Z==="href")&&F!=="script"&&QGe(ie,"data:")===0&&he[F])){if(!(Ae&&!Xs(B,Bm(ie,P,"")))){if(ie)return!1}}}}}}return!0},Y=function(F){return F!=="annotation-xml"&&F.indexOf("-")>0},Q=function(F){po("beforeSanitizeAttributes",F,null);const{attributes:Z}=F;if(!Z)return;const ie={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:J};let ue=Z.length;for(;ue--;){const ne=Z[ue],{name:ye,namespaceURI:qe,value:kt}=ne,Nt=Ft(ye);let Et=ye==="value"?kt:ZGe(kt);if(ie.attrName=Nt,ie.attrValue=Et,ie.keepAttr=!0,ie.forceKeepAttr=void 0,po("uponSanitizeAttribute",F,ie),Et=ie.attrValue,ie.forceKeepAttr||(Kr(ye,F),!ie.keepAttr))continue;if(!ve&&Xs(/\/>/i,Et)){Kr(ye,F);continue}we&&pw([D,L,M],qt=>{Et=Bm(Et,qt," ")});const yt=Ft(F.nodeName);if(Me(yt,Nt,Et)){if(Dt&&(Nt==="id"||Nt==="name")&&(Kr(ye,F),Et=$t+Et),S&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!qe)switch(h.getAttributeType(yt,Nt)){case"TrustedHTML":{Et=S.createHTML(Et);break}case"TrustedScriptURL":{Et=S.createScriptURL(Et);break}}try{qe?F.setAttributeNS(qe,ye,Et):F.setAttribute(ye,Et),IQ(t.removed)}catch{}}}po("afterSanitizeAttributes",F,null)},H=function $(F){let Z=null;const ie=zr(F);for(po("beforeSanitizeShadowDOM",F,null);Z=ie.nextNode();)po("uponSanitizeShadowNode",Z,null),!Fa(Z)&&(Z.content instanceof i&&$(Z.content),Q(Z));po("afterSanitizeShadowDOM",F,null)};return t.sanitize=function($){let F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Z=null,ie=null,ue=null,ne=null;if(Pe=!$,Pe&&($=""),typeof $!="string"&&!ps($))if(typeof $.toString=="function"){if($=$.toString(),typeof $!="string")throw Mm("dirty is not a string, aborting")}else throw Mm("toString is not a function");if(!t.isSupported)return $;if(Qe||It(F),t.removed=[],typeof $=="string"&&(_t=!1),_t){if($.nodeName){const kt=Ft($.nodeName);if(!U[kt]||pe[kt])throw Mm("root node is forbidden and cannot be sanitized in-place")}}else if($ instanceof a)Z=xo(""),ie=Z.ownerDocument.importNode($,!0),ie.nodeType===1&&ie.nodeName==="BODY"||ie.nodeName==="HTML"?Z=ie:Z.appendChild(ie);else{if(!st&&!we&&!De&&$.indexOf("<")===-1)return S&&Ne?S.createHTML($):$;if(Z=xo($),!Z)return st?null:Ne?b:""}Z&&Ke&&Ue(Z.firstChild);const ye=zr(_t?$:Z);for(;ue=ye.nextNode();)Fa(ue)||(ue.content instanceof i&&H(ue.content),Q(ue));if(_t)return $;if(st){if(He)for(ne=T.call(Z.ownerDocument);Z.firstChild;)ne.appendChild(Z.firstChild);else ne=Z;return(J.shadowroot||J.shadowrootmode)&&(ne=I.call(n,ne,!0)),ne}let qe=De?Z.outerHTML:Z.innerHTML;return De&&U["!doctype"]&&Z.ownerDocument&&Z.ownerDocument.doctype&&Z.ownerDocument.doctype.name&&Xs(nfe,Z.ownerDocument.doctype.name)&&(qe=" -`+qe),we&&pw([D,L,M],kt=>{qe=Bm(qe,kt," ")}),S&&Ne?S.createHTML(qe):qe},t.setConfig=function(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};It($),Qe=!0},t.clearConfig=function(){Pr=null,Qe=!1},t.isValidAttribute=function($,F,Z){Pr||It({});const ie=Ft($),ue=Ft(F);return Me(ie,ue,Z)},t.addHook=function($,F){typeof F=="function"&&(R[$]=R[$]||[],Fm(R[$],F))},t.removeHook=function($){if(R[$])return IQ(R[$])},t.removeHooks=function($){R[$]&&(R[$]=[])},t.removeAllHooks=function(){R={}},t}var dVe=ofe(),hVe={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function o(u,l,c){this.fn=u,this.context=l,this.once=c||!1}function i(u,l,c,f,d){if(typeof c!="function")throw new TypeError("The listener must be a function");var h=new o(c,f||u,d),g=r?r+l:l;return u._events[g]?u._events[g].fn?u._events[g]=[u._events[g],h]:u._events[g].push(h):(u._events[g]=h,u._eventsCount++),u}function s(u,l){--u._eventsCount===0?u._events=new n:delete u._events[l]}function a(){this._events=new n,this._eventsCount=0}a.prototype.eventNames=function(){var l=[],c,f;if(this._eventsCount===0)return l;for(f in c=this._events)t.call(c,f)&&l.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(c)):l},a.prototype.listeners=function(l){var c=r?r+l:l,f=this._events[c];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,h=f.length,g=new Array(h);d=q)return Ie(!0)}else for(he=$,$++;;){if((he=U.indexOf(I,he+1))===-1)return J||we.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:ve.length,index:$}),Be();if(he===ee-1)return Be(U.substring($,he).replace(ir,I));if(I!==F||U[he+1]!==F){if(I===F||he===0||U[he-1]!==F){Je!==-1&&Je=q)return Ie(!0);break}we.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:ve.length,index:$}),he++}}else he++}return Be();function pe(lt){ve.push(lt),xe=$}function Ne(lt){var mt=0;if(lt!==-1){var Ct=U.substring(he+1,lt);Ct&&Ct.trim()===""&&(mt=Ct.length)}return mt}function Be(lt){return J||(lt===void 0&&(lt=U.substring($)),me.push(lt),$=ee,pe(me),Ee&&Pe()),Ie()}function Ae(lt){$=lt,pe(me),me=[],ot=U.indexOf(D,$)}function Ie(lt){return{data:ve,errors:we,meta:{delimiter:R,linebreak:D,aborted:K,truncated:!!lt,cursor:xe+(X||0)}}}function Pe(){M(Ie()),ve=[],we=[]}},this.abort=function(){K=!0},this.getCharIndex=function(){return $}}function _(C){var I=C.data,R=s[I.workerId],D=!1;if(I.error)R.userError(I.error,I.file);else if(I.results&&I.results.data){var L={abort:function(){D=!0,S(I.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:b,resume:b};if(x(R.userStep)){for(var M=0;M{const n={};return Object.keys(e).forEach(o=>{const i=e[o];o===t?n[r]=i:n[o]=i}),n},Dle=e=>{const{defaultVariantId:t=qi,variants:r={}}=e,n=r[t];return n==null?void 0:n.node},xG=(e,t)=>{const r=[];return e.forEach(n=>{const o=t.get(n);if(!o)return;const i=Dle(o);i&&r.push(i)}),r},LHe=(e,t,r)=>{const n=[];return e.forEach(o=>{if(r.includes(o)){n.push({name:o,use_variants:!0});return}const i=t[o];if(!i)return;const s={inputs:{},...Dle(i)};s&&n.push(s)}),n};Ti.llm;Ti.prompt;je.string,Ti.python;je.string,Ti.typescript;const J8=e=>{var t,r,n,o,i,s;return e.children&&e.children.length>0?e.children.reduce((a,u)=>{const l=J8(u);return{totalTokens:a.totalTokens+l.totalTokens,promptTokens:a.promptTokens+l.promptTokens,completionTokens:a.completionTokens+l.completionTokens}},{totalTokens:0,promptTokens:0,completionTokens:0}):{totalTokens:((r=(t=e.output)==null?void 0:t.usage)==null?void 0:r.total_tokens)??0,promptTokens:((o=(n=e.output)==null?void 0:n.usage)==null?void 0:o.prompt_tokens)??0,completionTokens:((s=(i=e.output)==null?void 0:i.usage)==null?void 0:s.completion_tokens)??0}},Gy=e=>e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","),TG=e=>{const t=new Date(e),r=jHe();return`${t.getFullYear()}-${t.getMonth()+1}-${t.getDate()} ${t.getHours()}:${t.getMinutes()}:${t.getSeconds()}:${t.getMilliseconds()} (${r})`},jHe=()=>{const e=new Date().getTimezoneOffset(),t=Math.abs(e);return`UTC${(e<0?"+":"-")+`00${Math.floor(t/60)}`.slice(-2)}:${`00${t%60}`.slice(-2)}`},qT=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),zHe=(e,t,r,n)=>{var o,i,s;if(((o=e==null?void 0:e.source)==null?void 0:o.type)==="code")return t;if(((i=e==null?void 0:e.source)==null?void 0:i.type)==="package_with_prompt"){const a=(s=e==null?void 0:e.source)==null?void 0:s.path,u=n(a??"");return r?{...r,inputs:{...u==null?void 0:u.inputs,...HHe(r==null?void 0:r.inputs,"parameter")},code:u==null?void 0:u.code}:void 0}return r},HHe=(e,t)=>{if(!e)return e;const r={...e};return Object.keys(r).forEach(n=>{r[n]={...r[n],position:t}}),r},IG=async e=>new Promise(t=>setTimeout(t,e)),e7=async e=>new Promise((t,r)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=function(){var i;const o=(i=n.result)==null?void 0:i.split(",")[1];t(o)},n.onerror=function(o){r(o)}}),$He=["and","as","assert","break","class","continue","def","del","elif","else","except","False","finally","for","from","global","if","import","in","is","lambda","None","nonlocal","not","or","pass","raise","return","True","try","while","with","yield"],PHe=["abs","all","any","ascii","bin","bool","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","str","sum","super","tuple","type","vars","zip"],qHe=["input","inputs","output","outputs","flow","flows"],WHe=e=>$He.some(t=>t===e)||PHe.some(t=>t===e)||qHe.some(t=>t===e)?!1:/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(e),KHe=(e={})=>{const t=[];return Object.keys(e).forEach(r=>{const n=e[r],{variants:o={},defaultVariantId:i,default_variant_id:s}=n,a=Object.keys(o).length;a>1&&t.push({nodeName:r,variantsCount:a,defaultVariantId:i??s??qi,variants:o})}),t},GHe=(e={})=>{const t={};return Object.keys(e).forEach(r=>{const n=e[r],{variants:o={}}=n;if(Object.keys(o).length>1){const s=Ub.cloneDeep(n);Object.entries((s==null?void 0:s.variants)??{}).forEach(([u,l])=>{l.node&&delete l.node.name});const a=s.defaultVariantId;delete s.defaultVariantId,t[r]={default_variant_id:a,...s}}}),Object.keys(t).length>0?t:void 0},VHe=e=>{const t=/^data:(image|video|audio)\/(.*);(path|base64|url)/,r=e.match(t),n=r==null?void 0:r[1],o=r==null?void 0:r[2],i=r==null?void 0:r[3];return{mimeType:n,ext:o,valType:i}},UHe=/^\$\{(\S+)\}$/,FC=e=>{var t,r;return(r=(t=`${e??""}`)==null?void 0:t.match(UHe))==null?void 0:r[1]},YHe=e=>{const t="abcdefghijklmnopqrstuvwxyz0123456789";let r="";for(let n=0;nYHe(8),XHe=Fle,QHe=/^[+-]?\d+$/,ZHe=/^[+-]?\d+(\.\d+)?$/,JHe=e=>e.toLowerCase()==="true"||e.toLowerCase()==="false",Ble=e=>ZHe.test(e.trim())?e===e.trim()&&e.length>0&&!Number.isNaN(Number(e)):!1,e$e=e=>QHe.test(e.trim())?Ble(e)&&Number.isInteger(Number(e)):!1,t$e=e=>{try{const t=JSON.parse(e);return Array.isArray(t)}catch{return!1}},r$e=e=>{try{const t=JSON.parse(e);return Object.prototype.toString.call(t)==="[object Object]"}catch{return!1}},BC=(e,t)=>{const r=typeof e,n=r==="string";switch(t){case je.int:return n?e$e(e):Number.isInteger(e);case je.double:return n?Ble(e):r==="number";case je.list:return n?t$e(e):Array.isArray(e);case je.object:return n?r$e(e):r==="object";case je.bool:return n?JHe(e):r==="boolean";case je.function_str:return!0;default:return!0}},n$e=(e,t,r,n)=>{var s,a;const o=[],i=new Set(e.keys());for(e.forEach((u,l)=>{u===0&&o.push(l)});o.length>0;){const u=o.shift();u&&(i.delete(u),(s=t.get(u))==null||s.forEach(l=>{const c=(e.get(l)??0)-1;e.set(l,c),c===0&&o.push(l)}))}for(r.forEach((u,l)=>{u===0&&o.push(l)});o.length>0;){const u=o.shift();u&&(i.delete(u),(a=n.get(u))==null||a.forEach(l=>{const c=(r.get(l)??0)-1;r.set(l,c),c===0&&o.push(l)}))}return i};function t7(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var MC,CG;function o$e(){if(CG)return MC;CG=1;function e(){this.__data__=[],this.size=0}return MC=e,MC}var LC,NG;function bv(){if(NG)return LC;NG=1;function e(t,r){return t===r||t!==t&&r!==r}return LC=e,LC}var jC,RG;function WT(){if(RG)return jC;RG=1;var e=bv();function t(r,n){for(var o=r.length;o--;)if(e(r[o][0],n))return o;return-1}return jC=t,jC}var zC,OG;function i$e(){if(OG)return zC;OG=1;var e=WT(),t=Array.prototype,r=t.splice;function n(o){var i=this.__data__,s=e(i,o);if(s<0)return!1;var a=i.length-1;return s==a?i.pop():r.call(i,s,1),--this.size,!0}return zC=n,zC}var HC,DG;function s$e(){if(DG)return HC;DG=1;var e=WT();function t(r){var n=this.__data__,o=e(n,r);return o<0?void 0:n[o][1]}return HC=t,HC}var $C,FG;function a$e(){if(FG)return $C;FG=1;var e=WT();function t(r){return e(this.__data__,r)>-1}return $C=t,$C}var PC,BG;function u$e(){if(BG)return PC;BG=1;var e=WT();function t(r,n){var o=this.__data__,i=e(o,r);return i<0?(++this.size,o.push([r,n])):o[i][1]=n,this}return PC=t,PC}var qC,MG;function KT(){if(MG)return qC;MG=1;var e=o$e(),t=i$e(),r=s$e(),n=a$e(),o=u$e();function i(s){var a=-1,u=s==null?0:s.length;for(this.clear();++a-1&&n%1==0&&n-1&&r%1==0&&r<=e}return jN=t,jN}var zN,DV;function B$e(){if(DV)return zN;DV=1;var e=ip(),t=i7(),r=Ac(),n="[object Arguments]",o="[object Array]",i="[object Boolean]",s="[object Date]",a="[object Error]",u="[object Function]",l="[object Map]",c="[object Number]",f="[object Object]",d="[object RegExp]",h="[object Set]",g="[object String]",v="[object WeakMap]",y="[object ArrayBuffer]",E="[object DataView]",_="[object Float32Array]",S="[object Float64Array]",b="[object Int8Array]",A="[object Int16Array]",T="[object Int32Array]",x="[object Uint8Array]",C="[object Uint8ClampedArray]",I="[object Uint16Array]",R="[object Uint32Array]",D={};D[_]=D[S]=D[b]=D[A]=D[T]=D[x]=D[C]=D[I]=D[R]=!0,D[n]=D[o]=D[y]=D[i]=D[E]=D[s]=D[a]=D[u]=D[l]=D[c]=D[f]=D[d]=D[h]=D[g]=D[v]=!1;function L(M){return r(M)&&t(M.length)&&!!D[e(M)]}return zN=L,zN}var HN,FV;function ZT(){if(FV)return HN;FV=1;function e(t){return function(r){return t(r)}}return HN=e,HN}var uy={exports:{}};uy.exports;var BV;function s7(){return BV||(BV=1,function(e,t){var r=Mle(),n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===n,s=i&&r.process,a=function(){try{var u=o&&o.require&&o.require("util").types;return u||s&&s.binding&&s.binding("util")}catch{}}();e.exports=a}(uy,uy.exports)),uy.exports}var $N,MV;function iE(){if(MV)return $N;MV=1;var e=B$e(),t=ZT(),r=s7(),n=r&&r.isTypedArray,o=n?t(n):e;return $N=o,$N}var PN,LV;function zle(){if(LV)return PN;LV=1;var e=O$e(),t=oE(),r=To(),n=Ev(),o=QT(),i=iE(),s=Object.prototype,a=s.hasOwnProperty;function u(l,c){var f=r(l),d=!f&&t(l),h=!f&&!d&&n(l),g=!f&&!d&&!h&&i(l),v=f||d||h||g,y=v?e(l.length,String):[],E=y.length;for(var _ in l)(c||a.call(l,_))&&!(v&&(_=="length"||h&&(_=="offset"||_=="parent")||g&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||o(_,E)))&&y.push(_);return y}return PN=u,PN}var qN,jV;function JT(){if(jV)return qN;jV=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,o=typeof n=="function"&&n.prototype||e;return r===o}return qN=t,qN}var WN,zV;function Hle(){if(zV)return WN;zV=1;function e(t,r){return function(n){return t(r(n))}}return WN=e,WN}var KN,HV;function M$e(){if(HV)return KN;HV=1;var e=Hle(),t=e(Object.keys,Object);return KN=t,KN}var GN,$V;function a7(){if($V)return GN;$V=1;var e=JT(),t=M$e(),r=Object.prototype,n=r.hasOwnProperty;function o(i){if(!e(i))return t(i);var s=[];for(var a in Object(i))n.call(i,a)&&a!="constructor"&&s.push(a);return s}return GN=o,GN}var VN,PV;function $f(){if(PV)return VN;PV=1;var e=rE(),t=i7();function r(n){return n!=null&&t(n.length)&&!e(n)}return VN=r,VN}var UN,qV;function N1(){if(qV)return UN;qV=1;var e=zle(),t=a7(),r=$f();function n(o){return r(o)?e(o):t(o)}return UN=n,UN}var YN,WV;function L$e(){if(WV)return YN;WV=1;var e=nE(),t=N1();function r(n,o){return n&&e(o,t(o),n)}return YN=r,YN}var XN,KV;function j$e(){if(KV)return XN;KV=1;function e(t){var r=[];if(t!=null)for(var n in Object(t))r.push(n);return r}return XN=e,XN}var QN,GV;function z$e(){if(GV)return QN;GV=1;var e=Su(),t=JT(),r=j$e(),n=Object.prototype,o=n.hasOwnProperty;function i(s){if(!e(s))return r(s);var a=t(s),u=[];for(var l in s)l=="constructor"&&(a||!o.call(s,l))||u.push(l);return u}return QN=i,QN}var ZN,VV;function ap(){if(VV)return ZN;VV=1;var e=zle(),t=z$e(),r=$f();function n(o){return r(o)?e(o,!0):t(o)}return ZN=n,ZN}var JN,UV;function H$e(){if(UV)return JN;UV=1;var e=nE(),t=ap();function r(n,o){return n&&e(o,t(o),n)}return JN=r,JN}var ly={exports:{}};ly.exports;var YV;function $le(){return YV||(YV=1,function(e,t){var r=pl(),n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===n,s=i?r.Buffer:void 0,a=s?s.allocUnsafe:void 0;function u(l,c){if(c)return l.slice();var f=l.length,d=a?a(f):new l.constructor(f);return l.copy(d),d}e.exports=u}(ly,ly.exports)),ly.exports}var eR,XV;function Ple(){if(XV)return eR;XV=1;function e(t,r){var n=-1,o=t.length;for(r||(r=Array(o));++nh))return!1;var v=f.get(s),y=f.get(a);if(v&&y)return v==a&&y==s;var E=-1,_=!0,S=u&o?new e:void 0;for(f.set(s,a),f.set(a,s);++E0&&i(c)?o>1?r(c,o-1,i,s,a):e(a,c):s||(a[a.length]=c)}return a}return KO=r,KO}var GO,PY;function LPe(){if(PY)return GO;PY=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return GO=e,GO}var VO,qY;function bce(){if(qY)return VO;qY=1;var e=LPe(),t=Math.max;function r(n,o,i){return o=t(o===void 0?n.length-1:o,0),function(){for(var s=arguments,a=-1,u=t(s.length-o,0),l=Array(u);++a0){if(++i>=e)return arguments[0]}else i=0;return o.apply(void 0,arguments)}}return YO=n,YO}var XO,GY;function _ce(){if(GY)return XO;GY=1;var e=jPe(),t=zPe(),r=t(e);return XO=r,XO}var QO,VY;function i9(){if(VY)return QO;VY=1;var e=up(),t=bce(),r=_ce();function n(o,i){return r(t(o,i,e),o+"")}return QO=n,QO}var ZO,UY;function Ece(){if(UY)return ZO;UY=1;function e(t,r,n,o){for(var i=t.length,s=n+(o?1:-1);o?s--:++s-1}return r4=t,r4}var n4,JY;function WPe(){if(JY)return n4;JY=1;function e(t,r,n){for(var o=-1,i=t==null?0:t.length;++o=s){var E=l?null:o(u);if(E)return i(E);g=!1,d=n,y=new e}else y=l?[]:v;e:for(;++f1?h.setNode(g,f):h.setNode(g)}),this},o.prototype.setNode=function(c,f){return e.has(this._nodes,c)?(arguments.length>1&&(this._nodes[c]=f),this):(this._nodes[c]=arguments.length>1?f:this._defaultNodeLabelFn(c),this._isCompound&&(this._parent[c]=r,this._children[c]={},this._children[r][c]=!0),this._in[c]={},this._preds[c]={},this._out[c]={},this._sucs[c]={},++this._nodeCount,this)},o.prototype.node=function(c){return this._nodes[c]},o.prototype.hasNode=function(c){return e.has(this._nodes,c)},o.prototype.removeNode=function(c){var f=this;if(e.has(this._nodes,c)){var d=function(h){f.removeEdge(f._edgeObjs[h])};delete this._nodes[c],this._isCompound&&(this._removeFromParentsChildList(c),delete this._parent[c],e.each(this.children(c),function(h){f.setParent(h)}),delete this._children[c]),e.each(e.keys(this._in[c]),d),delete this._in[c],delete this._preds[c],e.each(e.keys(this._out[c]),d),delete this._out[c],delete this._sucs[c],--this._nodeCount}return this},o.prototype.setParent=function(c,f){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(e.isUndefined(f))f=r;else{f+="";for(var d=f;!e.isUndefined(d);d=this.parent(d))if(d===c)throw new Error("Setting "+f+" as parent of "+c+" would create a cycle");this.setNode(f)}return this.setNode(c),this._removeFromParentsChildList(c),this._parent[c]=f,this._children[f][c]=!0,this},o.prototype._removeFromParentsChildList=function(c){delete this._children[this._parent[c]][c]},o.prototype.parent=function(c){if(this._isCompound){var f=this._parent[c];if(f!==r)return f}},o.prototype.children=function(c){if(e.isUndefined(c)&&(c=r),this._isCompound){var f=this._children[c];if(f)return e.keys(f)}else{if(c===r)return this.nodes();if(this.hasNode(c))return[]}},o.prototype.predecessors=function(c){var f=this._preds[c];if(f)return e.keys(f)},o.prototype.successors=function(c){var f=this._sucs[c];if(f)return e.keys(f)},o.prototype.neighbors=function(c){var f=this.predecessors(c);if(f)return e.union(f,this.successors(c))},o.prototype.isLeaf=function(c){var f;return this.isDirected()?f=this.successors(c):f=this.neighbors(c),f.length===0},o.prototype.filterNodes=function(c){var f=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});f.setGraph(this.graph());var d=this;e.each(this._nodes,function(v,y){c(y)&&f.setNode(y,v)}),e.each(this._edgeObjs,function(v){f.hasNode(v.v)&&f.hasNode(v.w)&&f.setEdge(v,d.edge(v))});var h={};function g(v){var y=d.parent(v);return y===void 0||f.hasNode(y)?(h[v]=y,y):y in h?h[y]:g(y)}return this._isCompound&&e.each(f.nodes(),function(v){f.setParent(v,g(v))}),f},o.prototype.setDefaultEdgeLabel=function(c){return e.isFunction(c)||(c=e.constant(c)),this._defaultEdgeLabelFn=c,this},o.prototype.edgeCount=function(){return this._edgeCount},o.prototype.edges=function(){return e.values(this._edgeObjs)},o.prototype.setPath=function(c,f){var d=this,h=arguments;return e.reduce(c,function(g,v){return h.length>1?d.setEdge(g,v,f):d.setEdge(g,v),v}),this},o.prototype.setEdge=function(){var c,f,d,h,g=!1,v=arguments[0];typeof v=="object"&&v!==null&&"v"in v?(c=v.v,f=v.w,d=v.name,arguments.length===2&&(h=arguments[1],g=!0)):(c=v,f=arguments[1],d=arguments[3],arguments.length>2&&(h=arguments[2],g=!0)),c=""+c,f=""+f,e.isUndefined(d)||(d=""+d);var y=a(this._isDirected,c,f,d);if(e.has(this._edgeLabels,y))return g&&(this._edgeLabels[y]=h),this;if(!e.isUndefined(d)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(c),this.setNode(f),this._edgeLabels[y]=g?h:this._defaultEdgeLabelFn(c,f,d);var E=u(this._isDirected,c,f,d);return c=E.v,f=E.w,Object.freeze(E),this._edgeObjs[y]=E,i(this._preds[f],c),i(this._sucs[c],f),this._in[f][y]=E,this._out[c][y]=E,this._edgeCount++,this},o.prototype.edge=function(c,f,d){var h=arguments.length===1?l(this._isDirected,arguments[0]):a(this._isDirected,c,f,d);return this._edgeLabels[h]},o.prototype.hasEdge=function(c,f,d){var h=arguments.length===1?l(this._isDirected,arguments[0]):a(this._isDirected,c,f,d);return e.has(this._edgeLabels,h)},o.prototype.removeEdge=function(c,f,d){var h=arguments.length===1?l(this._isDirected,arguments[0]):a(this._isDirected,c,f,d),g=this._edgeObjs[h];return g&&(c=g.v,f=g.w,delete this._edgeLabels[h],delete this._edgeObjs[h],s(this._preds[f],c),s(this._sucs[c],f),delete this._in[f][h],delete this._out[c][h],this._edgeCount--),this},o.prototype.inEdges=function(c,f){var d=this._in[c];if(d){var h=e.values(d);return f?e.filter(h,function(g){return g.v===f}):h}},o.prototype.outEdges=function(c,f){var d=this._out[c];if(d){var h=e.values(d);return f?e.filter(h,function(g){return g.w===f}):h}},o.prototype.nodeEdges=function(c,f){var d=this.inEdges(c,f);if(d)return d.concat(this.outEdges(c,f))};function i(c,f){c[f]?c[f]++:c[f]=1}function s(c,f){--c[f]||delete c[f]}function a(c,f,d,h){var g=""+f,v=""+d;if(!c&&g>v){var y=g;g=v,v=y}return g+n+v+n+(e.isUndefined(h)?t:h)}function u(c,f,d,h){var g=""+f,v=""+d;if(!c&&g>v){var y=g;g=v,v=y}var E={v:g,w:v};return h&&(E.name=h),E}function l(c,f){return a(c,f.v,f.w,f.name)}return d4}var h4,lX;function XPe(){return lX||(lX=1,h4="2.1.8"),h4}var p4,cX;function QPe(){return cX||(cX=1,p4={Graph:m7(),version:XPe()}),p4}var g4,fX;function ZPe(){if(fX)return g4;fX=1;var e=wu(),t=m7();g4={write:r,read:i};function r(s){var a={options:{directed:s.isDirected(),multigraph:s.isMultigraph(),compound:s.isCompound()},nodes:n(s),edges:o(s)};return e.isUndefined(s.graph())||(a.value=e.clone(s.graph())),a}function n(s){return e.map(s.nodes(),function(a){var u=s.node(a),l=s.parent(a),c={v:a};return e.isUndefined(u)||(c.value=u),e.isUndefined(l)||(c.parent=l),c})}function o(s){return e.map(s.edges(),function(a){var u=s.edge(a),l={v:a.v,w:a.w};return e.isUndefined(a.name)||(l.name=a.name),e.isUndefined(u)||(l.value=u),l})}function i(s){var a=new t(s.options).setGraph(s.value);return e.each(s.nodes,function(u){a.setNode(u.v,u.value),u.parent&&a.setParent(u.v,u.parent)}),e.each(s.edges,function(u){a.setEdge({v:u.v,w:u.w,name:u.name},u.value)}),a}return g4}var v4,dX;function JPe(){if(dX)return v4;dX=1;var e=wu();v4=t;function t(r){var n={},o=[],i;function s(a){e.has(n,a)||(n[a]=!0,i.push(a),e.each(r.successors(a),s),e.each(r.predecessors(a),s))}return e.each(r.nodes(),function(a){i=[],s(a),i.length&&o.push(i)}),o}return v4}var m4,hX;function Ace(){if(hX)return m4;hX=1;var e=wu();m4=t;function t(){this._arr=[],this._keyIndices={}}return t.prototype.size=function(){return this._arr.length},t.prototype.keys=function(){return this._arr.map(function(r){return r.key})},t.prototype.has=function(r){return e.has(this._keyIndices,r)},t.prototype.priority=function(r){var n=this._keyIndices[r];if(n!==void 0)return this._arr[n].priority},t.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},t.prototype.add=function(r,n){var o=this._keyIndices;if(r=String(r),!e.has(o,r)){var i=this._arr,s=i.length;return o[r]=s,i.push({key:r,priority:n}),this._decrease(s),!0}return!1},t.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var r=this._arr.pop();return delete this._keyIndices[r.key],this._heapify(0),r.key},t.prototype.decrease=function(r,n){var o=this._keyIndices[r];if(n>this._arr[o].priority)throw new Error("New priority is greater than current priority. Key: "+r+" Old: "+this._arr[o].priority+" New: "+n);this._arr[o].priority=n,this._decrease(o)},t.prototype._heapify=function(r){var n=this._arr,o=2*r,i=o+1,s=r;o>1,!(n[i].priority0&&(f=c.removeMin(),d=l[f],d.distance!==Number.POSITIVE_INFINITY);)u(f).forEach(h);return l}return y4}var b4,gX;function eqe(){if(gX)return b4;gX=1;var e=kce(),t=wu();b4=r;function r(n,o,i){return t.transform(n.nodes(),function(s,a){s[a]=e(n,a,o,i)},{})}return b4}var _4,vX;function xce(){if(vX)return _4;vX=1;var e=wu();_4=t;function t(r){var n=0,o=[],i={},s=[];function a(u){var l=i[u]={onStack:!0,lowlink:n,index:n++};if(o.push(u),r.successors(u).forEach(function(d){e.has(i,d)?i[d].onStack&&(l.lowlink=Math.min(l.lowlink,i[d].index)):(a(d),l.lowlink=Math.min(l.lowlink,i[d].lowlink))}),l.lowlink===l.index){var c=[],f;do f=o.pop(),i[f].onStack=!1,c.push(f);while(u!==f);s.push(c)}}return r.nodes().forEach(function(u){e.has(i,u)||a(u)}),s}return _4}var E4,mX;function tqe(){if(mX)return E4;mX=1;var e=wu(),t=xce();E4=r;function r(n){return e.filter(t(n),function(o){return o.length>1||o.length===1&&n.hasEdge(o[0],o[0])})}return E4}var S4,yX;function rqe(){if(yX)return S4;yX=1;var e=wu();S4=r;var t=e.constant(1);function r(o,i,s){return n(o,i||t,s||function(a){return o.outEdges(a)})}function n(o,i,s){var a={},u=o.nodes();return u.forEach(function(l){a[l]={},a[l][l]={distance:0},u.forEach(function(c){l!==c&&(a[l][c]={distance:Number.POSITIVE_INFINITY})}),s(l).forEach(function(c){var f=c.v===l?c.w:c.v,d=i(c);a[l][f]={distance:d,predecessor:l}})}),u.forEach(function(l){var c=a[l];u.forEach(function(f){var d=a[f];u.forEach(function(h){var g=d[l],v=c[h],y=d[h],E=g.distance+v.distance;E0;){if(l=u.removeMin(),e.has(a,l))s.setEdge(l,a[l]);else{if(f)throw new Error("Input graph is not connected: "+o);f=!0}o.nodeEdges(l).forEach(c)}return s}return I4}var C4,kX;function aqe(){return kX||(kX=1,C4={components:JPe(),dijkstra:kce(),dijkstraAll:eqe(),findCycles:tqe(),floydWarshall:rqe(),isAcyclic:nqe(),postorder:oqe(),preorder:iqe(),prim:sqe(),tarjan:xce(),topsort:Tce()}),C4}var N4,xX;function uqe(){if(xX)return N4;xX=1;var e=QPe();return N4={Graph:e.Graph,json:ZPe(),alg:aqe(),version:e.version},N4}var Gk;if(typeof t7=="function")try{Gk=uqe()}catch{}Gk||(Gk=window.graphlib);var gl=Gk,R4,TX;function lqe(){if(TX)return R4;TX=1;var e=Jle(),t=1,r=4;function n(o){return e(o,t|r)}return R4=n,R4}var O4,IX;function s9(){if(IX)return O4;IX=1;var e=bv(),t=$f(),r=QT(),n=Su();function o(i,s,a){if(!n(a))return!1;var u=typeof s;return(u=="number"?t(a)&&r(s,a.length):u=="string"&&s in a)?e(a[s],i):!1}return O4=o,O4}var D4,CX;function cqe(){if(CX)return D4;CX=1;var e=i9(),t=bv(),r=s9(),n=ap(),o=Object.prototype,i=o.hasOwnProperty,s=e(function(a,u){a=Object(a);var l=-1,c=u.length,f=c>2?u[2]:void 0;for(f&&r(u[0],u[1],f)&&(c=1);++l-1?u[l?i[c]:c]:void 0}}return F4=n,F4}var B4,RX;function dqe(){if(RX)return B4;RX=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return B4=t,B4}var M4,OX;function hqe(){if(OX)return M4;OX=1;var e=dqe(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return M4=r,M4}var L4,DX;function pqe(){if(DX)return L4;DX=1;var e=hqe(),t=Su(),r=wv(),n=NaN,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt;function u(l){if(typeof l=="number")return l;if(r(l))return n;if(t(l)){var c=typeof l.valueOf=="function"?l.valueOf():l;l=t(c)?c+"":c}if(typeof l!="string")return l===0?l:+l;l=e(l);var f=i.test(l);return f||s.test(l)?a(l.slice(2),f?2:8):o.test(l)?n:+l}return L4=u,L4}var j4,FX;function Cce(){if(FX)return j4;FX=1;var e=pqe(),t=1/0,r=17976931348623157e292;function n(o){if(!o)return o===0?o:0;if(o=e(o),o===t||o===-t){var i=o<0?-1:1;return i*r}return o===o?o:0}return j4=n,j4}var z4,BX;function gqe(){if(BX)return z4;BX=1;var e=Cce();function t(r){var n=e(r),o=n%1;return n===n?o?n-o:n:0}return z4=t,z4}var H4,MX;function vqe(){if(MX)return H4;MX=1;var e=Ece(),t=Pf(),r=gqe(),n=Math.max;function o(i,s,a){var u=i==null?0:i.length;if(!u)return-1;var l=a==null?0:r(a);return l<0&&(l=n(u+l,0)),e(i,t(s,3),l)}return H4=o,H4}var $4,LX;function mqe(){if(LX)return $4;LX=1;var e=fqe(),t=vqe(),r=e(t);return $4=r,$4}var P4,jX;function Nce(){if(jX)return P4;jX=1;var e=v7();function t(r){var n=r==null?0:r.length;return n?e(r,1):[]}return P4=t,P4}var q4,zX;function yqe(){if(zX)return q4;zX=1;var e=d7(),t=ece(),r=ap();function n(o,i){return o==null?o:e(o,t(i),r)}return q4=n,q4}var W4,HX;function bqe(){if(HX)return W4;HX=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return W4=e,W4}var K4,$X;function _qe(){if($X)return K4;$X=1;var e=YT(),t=h7(),r=Pf();function n(o,i){var s={};return i=r(i,3),t(o,function(a,u,l){e(s,u,i(a,u,l))}),s}return K4=n,K4}var G4,PX;function y7(){if(PX)return G4;PX=1;var e=wv();function t(r,n,o){for(var i=-1,s=r.length;++ir}return V4=e,V4}var U4,WX;function Sqe(){if(WX)return U4;WX=1;var e=y7(),t=Eqe(),r=up();function n(o){return o&&o.length?e(o,r,t):void 0}return U4=n,U4}var Y4,KX;function Rce(){if(KX)return Y4;KX=1;var e=YT(),t=bv();function r(n,o,i){(i!==void 0&&!t(n[o],i)||i===void 0&&!(o in n))&&e(n,o,i)}return Y4=r,Y4}var X4,GX;function wqe(){if(GX)return X4;GX=1;var e=ip(),t=e9(),r=Ac(),n="[object Object]",o=Function.prototype,i=Object.prototype,s=o.toString,a=i.hasOwnProperty,u=s.call(Object);function l(c){if(!r(c)||e(c)!=n)return!1;var f=t(c);if(f===null)return!0;var d=a.call(f,"constructor")&&f.constructor;return typeof d=="function"&&d instanceof d&&s.call(d)==u}return X4=l,X4}var Q4,VX;function Oce(){if(VX)return Q4;VX=1;function e(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}return Q4=e,Q4}var Z4,UX;function Aqe(){if(UX)return Z4;UX=1;var e=nE(),t=ap();function r(n){return e(n,t(n))}return Z4=r,Z4}var J4,YX;function kqe(){if(YX)return J4;YX=1;var e=Rce(),t=$le(),r=Xle(),n=Ple(),o=Zle(),i=oE(),s=To(),a=Sce(),u=Ev(),l=rE(),c=Su(),f=wqe(),d=iE(),h=Oce(),g=Aqe();function v(y,E,_,S,b,A,T){var x=h(y,_),C=h(E,_),I=T.get(C);if(I){e(y,_,I);return}var R=A?A(x,C,_+"",y,E,T):void 0,D=R===void 0;if(D){var L=s(C),M=!L&&u(C),q=!L&&!M&&d(C);R=C,L||M||q?s(x)?R=x:a(x)?R=n(x):M?(D=!1,R=t(C,!0)):q?(D=!1,R=r(C,!0)):R=[]:f(C)||i(C)?(R=x,i(x)?R=g(x):(!c(x)||l(x))&&(R=o(C))):D=!1}D&&(T.set(C,R),b(R,C,S,A,T),T.delete(C)),e(y,_,R)}return J4=v,J4}var eD,XX;function xqe(){if(XX)return eD;XX=1;var e=UT(),t=Rce(),r=d7(),n=kqe(),o=Su(),i=ap(),s=Oce();function a(u,l,c,f,d){u!==l&&r(l,function(h,g){if(d||(d=new e),o(h))n(u,l,g,c,a,f,d);else{var v=f?f(s(u,g),h,g+"",u,l,d):void 0;v===void 0&&(v=h),t(u,g,v)}},i)}return eD=a,eD}var tD,QX;function Tqe(){if(QX)return tD;QX=1;var e=i9(),t=s9();function r(n){return e(function(o,i){var s=-1,a=i.length,u=a>1?i[a-1]:void 0,l=a>2?i[2]:void 0;for(u=n.length>3&&typeof u=="function"?(a--,u):void 0,l&&t(i[0],i[1],l)&&(u=a<3?void 0:u,a=1),o=Object(o);++sn||a&&u&&c&&!l&&!f||i&&u&&c||!o&&c||!s)return 1;if(!i&&!a&&!f&&r=l)return c;var f=o[i];return c*(f=="desc"?-1:1)}}return r.index-n.index}return mD=t,mD}var yD,pQ;function qqe(){if(pQ)return yD;pQ=1;var e=r9(),t=o9(),r=Pf(),n=vce(),o=Hqe(),i=ZT(),s=Pqe(),a=up(),u=To();function l(c,f,d){f.length?f=e(f,function(v){return u(v)?function(y){return t(y,v.length===1?v[0]:v)}:v}):f=[a];var h=-1;f=e(f,i(r));var g=n(c,function(v,y,E){var _=e(f,function(S){return S(v)});return{criteria:_,index:++h,value:v}});return o(g,function(v,y){return s(v,y,d)})}return yD=l,yD}var bD,gQ;function Wqe(){if(gQ)return bD;gQ=1;var e=v7(),t=qqe(),r=i9(),n=s9(),o=r(function(i,s){if(i==null)return[];var a=s.length;return a>1&&n(i,s[0],s[1])?s=[]:a>2&&n(s[0],s[1],s[2])&&(s=[s[0]]),t(i,e(s,1),[])});return bD=o,bD}var _D,vQ;function Kqe(){if(vQ)return _D;vQ=1;var e=lce(),t=0;function r(n){var o=++t;return e(n)+o}return _D=r,_D}var ED,mQ;function Gqe(){if(mQ)return ED;mQ=1;function e(t,r,n){for(var o=-1,i=t.length,s=r.length,a={};++o0;--a)if(s=t[a].dequeue(),s){n=n.concat(wD(e,t,r,s,!0));break}}}return n}function wD(e,t,r,n,o){var i=o?[]:void 0;return uf.forEach(e.inEdges(n.v),function(s){var a=e.edge(s),u=e.node(s.v);o&&i.push({v:s.v,w:s.w}),u.out-=a,SB(t,r,u)}),uf.forEach(e.outEdges(n.v),function(s){var a=e.edge(s),u=s.w,l=e.node(u);l.in-=a,SB(t,r,l)}),e.removeNode(n.v),i}function rWe(e,t){var r=new Xqe,n=0,o=0;uf.forEach(e.nodes(),function(a){r.setNode(a,{v:a,in:0,out:0})}),uf.forEach(e.edges(),function(a){var u=r.edge(a.v,a.w)||0,l=t(a),c=u+l;r.setEdge(a.v,a.w,c),o=Math.max(o,r.node(a.v).out+=l),n=Math.max(n,r.node(a.w).in+=l)});var i=uf.range(o+n+3).map(function(){return new Qqe}),s=n+1;return uf.forEach(r.nodes(),function(a){SB(i,s,r.node(a))}),{graph:r,buckets:i,zeroIdx:s}}function SB(e,t,r){r.out?r.in?e[r.out-r.in+t].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}var Eh=Mn,nWe=Zqe,oWe={run:iWe,undo:aWe};function iWe(e){var t=e.graph().acyclicer==="greedy"?nWe(e,r(e)):sWe(e);Eh.forEach(t,function(n){var o=e.edge(n);e.removeEdge(n),o.forwardName=n.name,o.reversed=!0,e.setEdge(n.w,n.v,o,Eh.uniqueId("rev"))});function r(n){return function(o){return n.edge(o).weight}}}function sWe(e){var t=[],r={},n={};function o(i){Eh.has(n,i)||(n[i]=!0,r[i]=!0,Eh.forEach(e.outEdges(i),function(s){Eh.has(r,s.w)?t.push(s):o(s.w)}),delete r[i])}return Eh.forEach(e.nodes(),o),t}function aWe(e){Eh.forEach(e.edges(),function(t){var r=e.edge(t);if(r.reversed){e.removeEdge(t);var n=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(t.w,t.v,r,n)}})}var jr=Mn,Bce=gl.Graph,js={addDummyNode:Mce,simplify:uWe,asNonCompoundGraph:lWe,successorWeights:cWe,predecessorWeights:fWe,intersectRect:dWe,buildLayerMatrix:hWe,normalizeRanks:pWe,removeEmptyRanks:gWe,addBorderNode:vWe,maxRank:Lce,partition:mWe,time:yWe,notime:bWe};function Mce(e,t,r,n){var o;do o=jr.uniqueId(n);while(e.hasNode(o));return r.dummy=t,e.setNode(o,r),o}function uWe(e){var t=new Bce().setGraph(e.graph());return jr.forEach(e.nodes(),function(r){t.setNode(r,e.node(r))}),jr.forEach(e.edges(),function(r){var n=t.edge(r.v,r.w)||{weight:0,minlen:1},o=e.edge(r);t.setEdge(r.v,r.w,{weight:n.weight+o.weight,minlen:Math.max(n.minlen,o.minlen)})}),t}function lWe(e){var t=new Bce({multigraph:e.isMultigraph()}).setGraph(e.graph());return jr.forEach(e.nodes(),function(r){e.children(r).length||t.setNode(r,e.node(r))}),jr.forEach(e.edges(),function(r){t.setEdge(r,e.edge(r))}),t}function cWe(e){var t=jr.map(e.nodes(),function(r){var n={};return jr.forEach(e.outEdges(r),function(o){n[o.w]=(n[o.w]||0)+e.edge(o).weight}),n});return jr.zipObject(e.nodes(),t)}function fWe(e){var t=jr.map(e.nodes(),function(r){var n={};return jr.forEach(e.inEdges(r),function(o){n[o.v]=(n[o.v]||0)+e.edge(o).weight}),n});return jr.zipObject(e.nodes(),t)}function dWe(e,t){var r=e.x,n=e.y,o=t.x-r,i=t.y-n,s=e.width/2,a=e.height/2;if(!o&&!i)throw new Error("Not possible to find intersection inside of the rectangle");var u,l;return Math.abs(i)*s>Math.abs(o)*a?(i<0&&(a=-a),u=a*o/i,l=a):(o<0&&(s=-s),u=s,l=s*i/o),{x:r+u,y:n+l}}function hWe(e){var t=jr.map(jr.range(Lce(e)+1),function(){return[]});return jr.forEach(e.nodes(),function(r){var n=e.node(r),o=n.rank;jr.isUndefined(o)||(t[o][n.order]=r)}),t}function pWe(e){var t=jr.min(jr.map(e.nodes(),function(r){return e.node(r).rank}));jr.forEach(e.nodes(),function(r){var n=e.node(r);jr.has(n,"rank")&&(n.rank-=t)})}function gWe(e){var t=jr.min(jr.map(e.nodes(),function(i){return e.node(i).rank})),r=[];jr.forEach(e.nodes(),function(i){var s=e.node(i).rank-t;r[s]||(r[s]=[]),r[s].push(i)});var n=0,o=e.graph().nodeRankFactor;jr.forEach(r,function(i,s){jr.isUndefined(i)&&s%o!==0?--n:n&&jr.forEach(i,function(a){e.node(a).rank+=n})})}function vWe(e,t,r,n){var o={width:0,height:0};return arguments.length>=4&&(o.rank=r,o.order=n),Mce(e,"border",o,t)}function Lce(e){return jr.max(jr.map(e.nodes(),function(t){var r=e.node(t).rank;if(!jr.isUndefined(r))return r}))}function mWe(e,t){var r={lhs:[],rhs:[]};return jr.forEach(e,function(n){t(n)?r.lhs.push(n):r.rhs.push(n)}),r}function yWe(e,t){var r=jr.now();try{return t()}finally{console.log(e+" time: "+(jr.now()-r)+"ms")}}function bWe(e,t){return t()}var jce=Mn,_We=js,EWe={run:SWe,undo:AWe};function SWe(e){e.graph().dummyChains=[],jce.forEach(e.edges(),function(t){wWe(e,t)})}function wWe(e,t){var r=t.v,n=e.node(r).rank,o=t.w,i=e.node(o).rank,s=t.name,a=e.edge(t),u=a.labelRank;if(i!==n+1){e.removeEdge(t);var l,c,f;for(f=0,++n;ns.lim&&(a=s,u=!0);var l=Cf.filter(t.edges(),function(c){return u===bQ(e,e.node(c.v),a)&&u!==bQ(e,e.node(c.w),a)});return Cf.minBy(l,function(c){return DWe(t,c)})}function Wce(e,t,r,n){var o=r.v,i=r.w;e.removeEdge(o,i),e.setEdge(n.v,n.w,{}),_7(e),b7(e,t),HWe(e,t)}function HWe(e,t){var r=Cf.find(e.nodes(),function(o){return!t.node(o).parent}),n=BWe(e,r);n=n.slice(1),Cf.forEach(n,function(o){var i=e.node(o).parent,s=t.edge(o,i),a=!1;s||(s=t.edge(i,o),a=!0),t.node(o).rank=t.node(i).rank+(a?s.minlen:-s.minlen)})}function $We(e,t,r){return e.hasEdge(t,r)}function bQ(e,t,r){return r.low<=t.lim&&t.lim<=r.lim}var PWe=u9,Kce=PWe.longestPath,qWe=zce,WWe=jWe,KWe=GWe;function GWe(e){switch(e.graph().ranker){case"network-simplex":_Q(e);break;case"tight-tree":UWe(e);break;case"longest-path":VWe(e);break;default:_Q(e)}}var VWe=Kce;function UWe(e){Kce(e),qWe(e)}function _Q(e){WWe(e)}var wB=Mn,YWe=XWe;function XWe(e){var t=ZWe(e);wB.forEach(e.graph().dummyChains,function(r){for(var n=e.node(r),o=n.edgeObj,i=QWe(e,t,o.v,o.w),s=i.path,a=i.lca,u=0,l=s[u],c=!0;r!==o.w;){if(n=e.node(r),c){for(;(l=s[u])!==a&&e.node(l).maxRanks||a>t[u].lim));for(l=u,u=n;(u=e.parent(u))!==l;)i.push(u);return{path:o.concat(i.reverse()),lca:l}}function ZWe(e){var t={},r=0;function n(o){var i=r;wB.forEach(e.children(o),n),t[o]={low:i,lim:r++}}return wB.forEach(e.children(),n),t}var lf=Mn,AB=js,JWe={run:eKe,cleanup:nKe};function eKe(e){var t=AB.addDummyNode(e,"root",{},"_root"),r=tKe(e),n=lf.max(lf.values(r))-1,o=2*n+1;e.graph().nestingRoot=t,lf.forEach(e.edges(),function(s){e.edge(s).minlen*=o});var i=rKe(e)+1;lf.forEach(e.children(),function(s){Gce(e,t,o,i,n,r,s)}),e.graph().nodeRankFactor=o}function Gce(e,t,r,n,o,i,s){var a=e.children(s);if(!a.length){s!==t&&e.setEdge(t,s,{weight:0,minlen:r});return}var u=AB.addBorderNode(e,"_bt"),l=AB.addBorderNode(e,"_bb"),c=e.node(s);e.setParent(u,s),c.borderTop=u,e.setParent(l,s),c.borderBottom=l,lf.forEach(a,function(f){Gce(e,t,r,n,o,i,f);var d=e.node(f),h=d.borderTop?d.borderTop:f,g=d.borderBottom?d.borderBottom:f,v=d.borderTop?n:2*n,y=h!==g?1:o-i[s]+1;e.setEdge(u,h,{weight:v,minlen:y,nestingEdge:!0}),e.setEdge(g,l,{weight:v,minlen:y,nestingEdge:!0})}),e.parent(s)||e.setEdge(t,u,{weight:0,minlen:o+i[s]})}function tKe(e){var t={};function r(n,o){var i=e.children(n);i&&i.length&&lf.forEach(i,function(s){r(s,o+1)}),t[n]=o}return lf.forEach(e.children(),function(n){r(n,1)}),t}function rKe(e){return lf.reduce(e.edges(),function(t,r){return t+e.edge(r).weight},0)}function nKe(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,lf.forEach(e.edges(),function(r){var n=e.edge(r);n.nestingEdge&&e.removeEdge(r)})}var AD=Mn,oKe=js,iKe=sKe;function sKe(e){function t(r){var n=e.children(r),o=e.node(r);if(n.length&&AD.forEach(n,t),AD.has(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(var i=o.minRank,s=o.maxRank+1;i0;)c%2&&(f+=a[c+1]),c=c-1>>1,a[c]+=l.weight;u+=l.weight*f})),u}var wQ=Mn,mKe=yKe;function yKe(e,t){return wQ.map(t,function(r){var n=e.inEdges(r);if(n.length){var o=wQ.reduce(n,function(i,s){var a=e.edge(s),u=e.node(s.v);return{sum:i.sum+a.weight*u.order,weight:i.weight+a.weight}},{sum:0,weight:0});return{v:r,barycenter:o.sum/o.weight,weight:o.weight}}else return{v:r}})}var ea=Mn,bKe=_Ke;function _Ke(e,t){var r={};ea.forEach(e,function(o,i){var s=r[o.v]={indegree:0,in:[],out:[],vs:[o.v],i};ea.isUndefined(o.barycenter)||(s.barycenter=o.barycenter,s.weight=o.weight)}),ea.forEach(t.edges(),function(o){var i=r[o.v],s=r[o.w];!ea.isUndefined(i)&&!ea.isUndefined(s)&&(s.indegree++,i.out.push(r[o.w]))});var n=ea.filter(r,function(o){return!o.indegree});return EKe(n)}function EKe(e){var t=[];function r(i){return function(s){s.merged||(ea.isUndefined(s.barycenter)||ea.isUndefined(i.barycenter)||s.barycenter>=i.barycenter)&&SKe(i,s)}}function n(i){return function(s){s.in.push(i),--s.indegree===0&&e.push(s)}}for(;e.length;){var o=e.pop();t.push(o),ea.forEach(o.in.reverse(),r(o)),ea.forEach(o.out,n(o))}return ea.map(ea.filter(t,function(i){return!i.merged}),function(i){return ea.pick(i,["vs","i","barycenter","weight"])})}function SKe(e,t){var r=0,n=0;e.weight&&(r+=e.barycenter*e.weight,n+=e.weight),t.weight&&(r+=t.barycenter*t.weight,n+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=r/n,e.weight=n,e.i=Math.min(t.i,e.i),t.merged=!0}var cy=Mn,wKe=js,AKe=kKe;function kKe(e,t){var r=wKe.partition(e,function(c){return cy.has(c,"barycenter")}),n=r.lhs,o=cy.sortBy(r.rhs,function(c){return-c.i}),i=[],s=0,a=0,u=0;n.sort(xKe(!!t)),u=AQ(i,o,u),cy.forEach(n,function(c){u+=c.vs.length,i.push(c.vs),s+=c.barycenter*c.weight,a+=c.weight,u=AQ(i,o,u)});var l={vs:cy.flatten(i,!0)};return a&&(l.barycenter=s/a,l.weight=a),l}function AQ(e,t,r){for(var n;t.length&&(n=cy.last(t)).i<=r;)t.pop(),e.push(n.vs),r++;return r}function xKe(e){return function(t,r){return t.barycenterr.barycenter?1:e?r.i-t.i:t.i-r.i}}var Rd=Mn,TKe=mKe,IKe=bKe,CKe=AKe,NKe=Uce;function Uce(e,t,r,n){var o=e.children(t),i=e.node(t),s=i?i.borderLeft:void 0,a=i?i.borderRight:void 0,u={};s&&(o=Rd.filter(o,function(g){return g!==s&&g!==a}));var l=TKe(e,o);Rd.forEach(l,function(g){if(e.children(g.v).length){var v=Uce(e,g.v,r,n);u[g.v]=v,Rd.has(v,"barycenter")&&OKe(g,v)}});var c=IKe(l,r);RKe(c,u);var f=CKe(c,n);if(s&&(f.vs=Rd.flatten([s,f.vs,a],!0),e.predecessors(s).length)){var d=e.node(e.predecessors(s)[0]),h=e.node(e.predecessors(a)[0]);Rd.has(f,"barycenter")||(f.barycenter=0,f.weight=0),f.barycenter=(f.barycenter*f.weight+d.order+h.order)/(f.weight+2),f.weight+=2}return f}function RKe(e,t){Rd.forEach(e,function(r){r.vs=Rd.flatten(r.vs.map(function(n){return t[n]?t[n].vs:n}),!0)})}function OKe(e,t){Rd.isUndefined(e.barycenter)?(e.barycenter=t.barycenter,e.weight=t.weight):(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight)}var fy=Mn,DKe=gl.Graph,FKe=BKe;function BKe(e,t,r){var n=MKe(e),o=new DKe({compound:!0}).setGraph({root:n}).setDefaultNodeLabel(function(i){return e.node(i)});return fy.forEach(e.nodes(),function(i){var s=e.node(i),a=e.parent(i);(s.rank===t||s.minRank<=t&&t<=s.maxRank)&&(o.setNode(i),o.setParent(i,a||n),fy.forEach(e[r](i),function(u){var l=u.v===i?u.w:u.v,c=o.edge(l,i),f=fy.isUndefined(c)?0:c.weight;o.setEdge(l,i,{weight:e.edge(u).weight+f})}),fy.has(s,"minRank")&&o.setNode(i,{borderLeft:s.borderLeft[t],borderRight:s.borderRight[t]}))}),o}function MKe(e){for(var t;e.hasNode(t=fy.uniqueId("_root")););return t}var LKe=Mn,jKe=zKe;function zKe(e,t,r){var n={},o;LKe.forEach(r,function(i){for(var s=e.parent(i),a,u;s;){if(a=e.parent(s),a?(u=n[a],n[a]=s):(u=o,o=s),u&&u!==s){t.setEdge(u,s);return}s=a}})}var Qd=Mn,HKe=dKe,$Ke=pKe,PKe=NKe,qKe=FKe,WKe=jKe,KKe=gl.Graph,kQ=js,GKe=VKe;function VKe(e){var t=kQ.maxRank(e),r=xQ(e,Qd.range(1,t+1),"inEdges"),n=xQ(e,Qd.range(t-1,-1,-1),"outEdges"),o=HKe(e);TQ(e,o);for(var i=Number.POSITIVE_INFINITY,s,a=0,u=0;u<4;++a,++u){UKe(a%2?r:n,a%4>=2),o=kQ.buildLayerMatrix(e);var l=$Ke(e,o);ll)&&E7(r,d,c)})})}function o(i,s){var a=-1,u,l=0;return Yt.forEach(s,function(c,f){if(e.node(c).dummy==="border"){var d=e.predecessors(c);d.length&&(u=e.node(d[0]).order,n(s,l,f,a,u),l=f,a=u)}n(s,l,s.length,u,i.length)}),s}return Yt.reduce(t,o),r}function ZKe(e,t){if(e.node(t).dummy)return Yt.find(e.predecessors(t),function(r){return e.node(r).dummy})}function E7(e,t,r){if(t>r){var n=t;t=r,r=n}var o=e[t];o||(e[t]=o={}),o[r]=!0}function Qce(e,t,r){if(t>r){var n=t;t=r,r=n}return Yt.has(e[t],r)}function Zce(e,t,r,n){var o={},i={},s={};return Yt.forEach(t,function(a){Yt.forEach(a,function(u,l){o[u]=u,i[u]=u,s[u]=l})}),Yt.forEach(t,function(a){var u=-1;Yt.forEach(a,function(l){var c=n(l);if(c.length){c=Yt.sortBy(c,function(v){return s[v]});for(var f=(c.length-1)/2,d=Math.floor(f),h=Math.ceil(f);d<=h;++d){var g=c[d];i[l]===l&&uN.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16px",height:"16px",viewBox:"0 0 18 18",children:[N.jsxs("defs",{children:[N.jsxs("linearGradient",{id:"a5efbc52-c9a4-425f-9d94-50e000195659",x1:"9",y1:"18.967",x2:"9",y2:"3.398",gradientUnits:"userSpaceOnUse",children:[N.jsx("stop",{offset:"0",stopColor:"#0078d4"}),N.jsx("stop",{offset:"0.156",stopColor:"#1380da"}),N.jsx("stop",{offset:"0.528",stopColor:"#3c91e5"}),N.jsx("stop",{offset:"0.822",stopColor:"#559cec"}),N.jsx("stop",{offset:"1",stopColor:"#5ea0ef"})]}),N.jsxs("linearGradient",{id:"a110d41d-e4ca-48ee-9efe-328e60a20dcc",x1:"9",y1:"5.019",x2:"9",y2:"13.676",gradientUnits:"userSpaceOnUse",children:[N.jsx("stop",{offset:"0.22",stopColor:"#fff"}),N.jsx("stop",{offset:"1",stopColor:"#e6e6e6"})]}),N.jsxs("linearGradient",{id:"bcf81335-a15c-4e8a-85c4-cb14c4ef74b0",x1:"8.991",y1:"2.883",x2:"8.991",y2:"11.32",gradientUnits:"userSpaceOnUse",children:[N.jsx("stop",{offset:"0.22",stopColor:"#fff"}),N.jsx("stop",{offset:"1",stopColor:"#e6e6e6"})]})]}),N.jsx("g",{id:"b5d797c5-507f-4358-b61e-ca040c36ef52",children:N.jsxs("g",{children:[N.jsx("path",{d:"M.038,9.142,4.4,16.69a.285.285,0,0,0,.246.142h8.716a.285.285,0,0,0,.246-.142l4.358-7.548a.283.283,0,0,0,0-.284L13.6,1.31a.285.285,0,0,0-.246-.142H4.642A.285.285,0,0,0,4.4,1.31L.038,8.858A.283.283,0,0,0,.038,9.142Z",fill:"url(#a5efbc52-c9a4-425f-9d94-50e000195659)"}),N.jsxs("g",{children:[N.jsx("path",{id:"a81cd782-d573-434f-a6f1-758ffbb6f88b",d:"M12.239,6.083l.048.042a.085.085,0,0,0,.115,0l.447-.374.808-1.334a.083.083,0,0,0,0-.1l-.138-.145a.085.085,0,0,0-.1,0l-1.273.863L11.78,5.5a.086.086,0,0,0,0,.109l.049.048L9.2,8.394l-.543-.6-.6.6a1.093,1.093,0,0,1-.26.911.945.945,0,0,1-.826.3L4.376,12.232a.163.163,0,0,0,0,.231l0,.005,1.255,1.3a.162.162,0,0,0,.23.011l.011-.011L8.4,11.14a1.037,1.037,0,0,1,.3-.869.964.964,0,0,1,.826-.3l.6-.6L9.6,8.78Z",opacity:"0.4",fill:"url(#a110d41d-e4ca-48ee-9efe-328e60a20dcc)"}),N.jsx("path",{d:"M13.283,12.057l-.6-.645L8.648,7.278h0l-.2-.218a2.242,2.242,0,0,0-.525-2.2,2.067,2.067,0,0,0-1.865-.6.09.09,0,0,0-.065.11.088.088,0,0,0,.017.035l1.05,1.068a.091.091,0,0,1,0,.085L6.808,6.65a.084.084,0,0,1-.061.06l-1.074.3a.084.084,0,0,1-.084,0l-1.02-1.08a.084.084,0,0,0-.145.054,2.19,2.19,0,0,0,.6,1.919,2.035,2.035,0,0,0,2.034.543l.036.043.23.235h0l4.592,4.828a.954.954,0,0,0,1.34.048l.048-.048a1.017,1.017,0,0,0,.284-.724A1.117,1.117,0,0,0,13.283,12.057Z",fill:"url(#bcf81335-a15c-4e8a-85c4-cb14c4ef74b0)"})]})]})})]}),GGe=()=>N.jsxs("svg",{fill:"currentColor",width:"16px",height:"16px",viewBox:"0 0 2048 2048",role:"img",xmlns:"http://www.w3.org/2000/svg",children:[N.jsx("title",{children:"OpenAI icon"}),N.jsx("path",{d:"M832 676l575 288v760l-575 288-575-288V964l575-288zm0 144l-368 184 368 183 368-183-368-184zm-447 825l383 191v-538l-383-191v538zm894 0v-538l-383 191v538l383-191zm577-733q14 0 23 9t9 23q0 23 9 43t24 36 35 24 44 9q14 0 23 9t9 23q0 14-9 23t-23 9q-23 0-43 9t-36 24-24 35-9 44q0 14-9 23t-23 9q-14 0-23-9t-9-23q0-23-9-43t-24-36-35-24-44-9q-14 0-23-9t-9-23q0-14 9-23t23-9q23 0 43-9t36-24 24-35 9-44q0-14 9-23t23-9zM704 496q-14 0-23-9t-9-23q0-23-9-43t-24-36-35-24-44-9q-14 0-23-9t-9-23q0-14 9-23t23-9q23 0 43-9t36-24 24-35 9-44q0-14 9-23t23-9q14 0 23 9t9 23q0 23 9 43t24 36 35 24 44 9q14 0 23 9t9 23q0 14-9 23t-23 9q-23 0-43 9t-36 24-24 35-9 44q0 14-9 23t-23 9zm1206-48q0 23-15 38t-39 16q-27 0-57 11t-58 28-54 37-45 40q-19 19-39 44t-38 54-28 59-11 57q0 23-15 38t-39 16q-23 0-38-15t-16-39q0-27-11-57t-28-58-37-54-40-45q-19-19-44-39t-54-38-59-28-57-11q-23 0-38-15t-16-39q0-23 15-38t39-16q27 0 57-11t58-28 54-37 45-40q19-19 39-44t38-54 28-59 11-57q0-23 15-38t39-16q23 0 38 15t16 39q0 27 11 57t28 58 37 54 40 45q19 19 44 39t54 38 59 28 57 11q23 0 38 15t16 39zm-438 212q38-65 92-119t120-93q-65-38-119-92t-93-120q-38 65-92 119t-120 93q65 38 119 92t93 120z"})]}),VGe=()=>N.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:N.jsx("path",{d:"M9.5 6.50238C9.5 6.22624 9.72386 6.00238 10 6.00238C10.2761 6.00238 10.5 6.22624 10.5 6.50238V7.50391C10.5 7.78005 10.2761 8.00391 10 8.00391C9.72386 8.00391 9.5 7.78005 9.5 7.50391V6.50238ZM12.8506 7.44332C12.6553 7.24806 12.3388 7.24806 12.1435 7.44332L11.4353 8.15151C11.2401 8.34677 11.2401 8.66335 11.4353 8.85861C11.6306 9.05388 11.9472 9.05388 12.1424 8.85861L12.8506 8.15043C13.0459 7.95517 13.0459 7.63858 12.8506 7.44332ZM7.8521 7.44332C7.65684 7.24806 7.34026 7.24806 7.145 7.44332C6.94973 7.63858 6.94973 7.95517 7.145 8.15043L7.85318 8.85861C8.04844 9.05388 8.36503 9.05388 8.56029 8.85861C8.75555 8.66335 8.75555 8.34677 8.56029 8.15151L7.8521 7.44332ZM10 2C13.3137 2 16 4.59693 16 7.80041C16 9.47737 15.2546 11.0164 13.7961 12.3942C13.7324 12.4544 13.6831 12.5269 13.6512 12.6065L13.6251 12.6883L12.6891 16.6051C12.5048 17.3763 11.8236 17.935 11.0181 17.9947L10.8748 18H9.12546C8.30655 18 7.59 17.4839 7.34866 16.7385L7.31108 16.6047L6.37626 12.6886C6.34955 12.5766 6.29016 12.4745 6.20516 12.3942C4.8153 11.0819 4.07265 9.62354 4.00507 8.03903L4 7.80041L4.00321 7.60894C4.1077 4.49409 6.75257 2 10 2ZM7.955 15L8.27386 16.3344L8.30004 16.4305C8.39695 16.7298 8.67583 16.9517 9.0116 16.993L9.12546 17L10.8379 17.0007L10.9442 16.9974C11.2865 16.9721 11.5726 16.7609 11.6854 16.4718L11.7165 16.3727L12.045 15H7.955ZM10 3C7.36782 3 5.21188 4.95301 5.0151 7.41357L5.00307 7.62569L4.99977 7.77916L5.00416 7.99642C5.05977 9.30026 5.67758 10.5208 6.89167 11.6671C7.07995 11.8449 7.22191 12.0647 7.30572 12.3078L7.34894 12.4564L7.716 14H9.50024V9.49707C9.50024 9.22093 9.7241 8.99707 10.0002 8.99707C10.2764 8.99707 10.5002 9.22093 10.5002 9.49707V14H12.285L12.6722 12.3851L12.7231 12.2343C12.8091 12.0198 12.9409 11.8265 13.1094 11.6673C14.3825 10.4646 15 9.18054 15 7.80041C15 5.15693 12.7689 3 10 3Z",fill:"currentColor"})}),UGe=()=>N.jsxs("svg",{width:"16px",height:"16px",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[N.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.0164 2C10.8193 2 9.03825 3.72453 9.03825 5.85185V8.51852H15.9235V9.25926H5.97814C3.78107 9.25926 2 10.9838 2 13.1111L2 18.8889C2 21.0162 3.78107 22.7407 5.97814 22.7407H8.27322V19.4815C8.27322 17.3542 10.0543 15.6296 12.2514 15.6296H19.5956C21.4547 15.6296 22.9617 14.1704 22.9617 12.3704V5.85185C22.9617 3.72453 21.1807 2 18.9836 2H13.0164ZM12.0984 6.74074C12.8589 6.74074 13.4754 6.14378 13.4754 5.40741C13.4754 4.67103 12.8589 4.07407 12.0984 4.07407C11.3378 4.07407 10.7213 4.67103 10.7213 5.40741C10.7213 6.14378 11.3378 6.74074 12.0984 6.74074Z",fill:"#327EBD"}),N.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.9834 30C21.1805 30 22.9616 28.2755 22.9616 26.1482V23.4815L16.0763 23.4815L16.0763 22.7408L26.0217 22.7408C28.2188 22.7408 29.9998 21.0162 29.9998 18.8889V13.1111C29.9998 10.9838 28.2188 9.25928 26.0217 9.25928L23.7266 9.25928V12.5185C23.7266 14.6459 21.9455 16.3704 19.7485 16.3704L12.4042 16.3704C10.5451 16.3704 9.03809 17.8296 9.03809 19.6296L9.03809 26.1482C9.03809 28.2755 10.8192 30 13.0162 30H18.9834ZM19.9015 25.2593C19.1409 25.2593 18.5244 25.8562 18.5244 26.5926C18.5244 27.329 19.1409 27.9259 19.9015 27.9259C20.662 27.9259 21.2785 27.329 21.2785 26.5926C21.2785 25.8562 20.662 25.2593 19.9015 25.2593Z",fill:"#FFDA4B"})]}),YGe="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20aria-label='TypeScript'%20role='img'%20viewBox='0%200%20512%20512'%3e%3crect%20width='512'%20height='512'%20rx='15%25'%20fill='%233178c6'/%3e%3cpath%20fill='%23ffffff'%20d='m233%20284h64v-41H118v41h64v183h51zm84%20173c8.1%204.2%2018%207.3%2029%209.4s23%203.1%2035%203.1c12%200%2023-1.1%2034-3.4c11-2.3%2020-6.1%2028-11c8.1-5.3%2015-12%2019-21s7.1-19%207.1-32c0-9.1-1.4-17-4.1-24s-6.6-13-12-18c-5.1-5.3-11-10-18-14s-15-8.2-24-12c-6.6-2.7-12-5.3-18-7.9c-5.2-2.6-9.7-5.2-13-7.8c-3.7-2.7-6.5-5.5-8.5-8.4c-2-3-3-6.3-3-10c0-3.4.89-6.5%202.7-9.3s4.3-5.1%207.5-7.1c3.2-2%207.2-3.5%2012-4.6c4.7-1.1%209.9-1.6%2016-1.6c4.2%200%208.6.31%2013%20.94c4.6.63%209.3%201.6%2014%202.9c4.7%201.3%209.3%202.9%2014%204.9c4.4%202%208.5%204.3%2012%206.9v-47c-7.6-2.9-16-5.1-25-6.5s-19-2.1-31-2.1c-12%200-23%201.3-34%203.8s-20%206.5-28%2012c-8.1%205.4-14%2012-19%2021c-4.7%208.4-7%2018-7%2030c0%2015%204.3%2028%2013%2038c8.6%2011%2022%2019%2039%2027c6.9%202.8%2013%205.6%2019%208.3s11%205.5%2015%208.4c4.3%202.9%207.7%206.1%2010%209.5c2.5%203.4%203.8%207.4%203.8%2012c0%203.2-.78%206.2-2.3%209s-3.9%205.2-7.1%207.2s-7.1%203.6-12%204.8c-4.7%201.1-10%201.7-17%201.7c-11%200-22-1.9-32-5.7c-11-3.8-21-9.5-28.1-15.44z'/%3e%3c/svg%3e",gw=()=>N.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16px",height:"16px",viewBox:"0 0 18 18",role:"img",children:[N.jsx("defs",{children:N.jsxs("linearGradient",{id:"fb5d9d20-fc2c-4e2c-bffd-dc236176d8b2",x1:"-6428.21",y1:"9646.124",x2:"-6428.21",y2:"9617.899",gradientTransform:"matrix(0.5, 0, 0, -0.5, 3224.856, 4823.856)",gradientUnits:"userSpaceOnUse",children:[N.jsx("stop",{offset:"0",stopColor:"#5ea0ef"}),N.jsx("stop",{offset:"0.178",stopColor:"#589eed"}),N.jsx("stop",{offset:"0.406",stopColor:"#4897e9"}),N.jsx("stop",{offset:"0.662",stopColor:"#2e8ce1"}),N.jsx("stop",{offset:"0.936",stopColor:"#0a7cd7"}),N.jsx("stop",{offset:"1",stopColor:"#0078d4"})]})}),N.jsx("g",{id:"a05a9809-540f-4ec8-9a73-07896b5e7f5c",children:N.jsxs("g",{children:[N.jsx("path",{d:"M8.438,10.379h4.234v4.234H8.438ZM3.5,4.734H7.732V.5H4.086a.588.588,0,0,0-.588.588Zm.588,9.879H7.732V10.379H3.5v3.646A.588.588,0,0,0,4.086,14.613ZM3.5,9.674H7.732V5.44H3.5Zm9.88,4.939h3.646a.588.588,0,0,0,.588-.588V10.379H13.378ZM8.438,9.674h4.234V5.44H8.438Zm4.94,0h4.234V5.44H13.378Zm0-9.174V4.734h4.234V1.088A.588.588,0,0,0,17.024.5ZM8.438,4.734h4.234V.5H8.438Z",fill:"url(#fb5d9d20-fc2c-4e2c-bffd-dc236176d8b2)"}),N.jsx("rect",{x:"-0.212",y:"14.751",width:"5.457",height:"1.243",rx:"0.581",transform:"translate(-10.133 6.282) rotate(-45)",fill:"#198ab3"}),N.jsx("circle",{cx:"5.959",cy:"11.709",r:"3.744",fill:"#50e6ff"}),N.jsx("circle",{cx:"5.952",cy:"11.642",r:"2.94",fill:"#fff"})]})})]}),ud=16,XGe={PromptFlowToolAzureContentSafety:N.jsx(OQ,{width:ud,height:ud}),PromptFlowToolSerpAPI:N.jsx(DQ,{}),PromptFlowToolBing:N.jsx(KGe,{width:ud,height:ud}),PromptFlowToolAzureContentModerator:N.jsx(OQ,{width:ud,height:ud}),PromptFlowToolVectorIndexLookupByText:N.jsx(gw,{}),PromptFlowToolFaissIndexLookup:N.jsx(gw,{}),PromptFlowToolVectorDBLookup:N.jsx(gw,{}),PromptFlowToolVectorSearch:N.jsx(gw,{}),PromptFlowToolLlm:N.jsx(GGe,{}),PromptFlowToolPython:N.jsx(UGe,{}),PromptFlowToolTypeScript:N.jsx(YGe,{width:ud,height:ud}),PromptFlowToolPrompt:N.jsx(VGe,{}),PromptFlowToolDefault:N.jsx(DQ,{})};Ao({icons:{...XGe}});var FQ=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),QGe=new Uint8Array(16);function ZGe(){if(!FQ)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return FQ(QGe)}var ofe=[];for(var vw=0;vw<256;++vw)ofe[vw]=(vw+256).toString(16).substr(1);function JGe(e,t){var r=t||0,n=ofe;return[n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]]].join("")}function Xk(e,t,r){var n=t&&r||0;typeof e=="string"&&(t=e==="binary"?new Array(16):null,e=null),e=e||{};var o=e.random||(e.rng||ZGe)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,t)for(var i=0;i<16;++i)t[n+i]=o[i];return t||JGe(o)}var ife={exports:{}};ife.exports=function(e){return sfe(eVe(e),e)};ife.exports.array=sfe;function sfe(e,t){for(var r=e.length,n=new Array(r),o={},i=r;i--;)o[i]||s(e[i],i,[]);return n;function s(a,u,l){if(l.indexOf(a)>=0){var c;try{c=", node was:"+JSON.stringify(a)}catch{c=""}throw new Error("Cyclic dependency"+c)}if(!~e.indexOf(a))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(a));if(!o[u]){o[u]=!0;var f=t.filter(function(g){return g[0]===a});if(u=f.length){var d=l.concat(a);do{var h=f[--u][1];s(h,e.indexOf(h),d)}while(u)}n[--r]=a}}}function eVe(e){for(var t=[],r=0,n=e.length;r1?r-1:0),o=1;o2&&arguments[2]!==void 0?arguments[2]:OA;BQ&&BQ(e,null);let n=t.length;for(;n--;){let o=t[n];if(typeof o=="string"){const i=r(o);i!==o&&(tVe(t)||(t[n]=i),o=i)}e[o]=!0}return e}function uVe(e){for(let t=0;t/gm),hVe=ul(/\${[\w\W]*}/gm),pVe=ul(/^data-[\-\w.\u00B7-\uFFFF]/),gVe=ul(/^aria-[\-\w]+$/),lfe=ul(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),vVe=ul(/^(?:\w+script|data):/i),mVe=ul(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),cfe=ul(/^html$/i);var $Q=Object.freeze({__proto__:null,MUSTACHE_EXPR:fVe,ERB_EXPR:dVe,TMPLIT_EXPR:hVe,DATA_ATTR:pVe,ARIA_ATTR:gVe,IS_ALLOWED_URI:lfe,IS_SCRIPT_OR_DATA:vVe,ATTR_WHITESPACE:mVe,DOCTYPE_NAME:cfe});const yVe=function(){return typeof window>"u"?null:window},bVe=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const o="data-tt-policy-suffix";r&&r.hasAttribute(o)&&(n=r.getAttribute(o));const i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function ffe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:yVe();const t=P=>ffe(P);if(t.version="3.0.9",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let{document:r}=e;const n=r,o=n.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:a,Element:u,NodeFilter:l,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:d,trustedTypes:h}=e,g=u.prototype,v=yw(g,"cloneNode"),y=yw(g,"nextSibling"),E=yw(g,"childNodes"),_=yw(g,"parentNode");if(typeof s=="function"){const P=r.createElement("template");P.content&&P.content.ownerDocument&&(r=P.content.ownerDocument)}let S,b="";const{implementation:A,createNodeIterator:T,createDocumentFragment:x,getElementsByTagName:C}=r,{importNode:I}=n;let R={};t.isSupported=typeof afe=="function"&&typeof _=="function"&&A&&A.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:D,ERB_EXPR:L,TMPLIT_EXPR:M,DATA_ATTR:q,ARIA_ATTR:z,IS_SCRIPT_OR_DATA:F,ATTR_WHITESPACE:$}=$Q;let{IS_ALLOWED_URI:K}=$Q,U=null;const X=pr({},[...LQ,...ND,...RD,...OD,...jQ]);let J=null;const ee=pr({},[...zQ,...DD,...HQ,...bw]);let fe=Object.seal(ufe(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}})),ge=null,Se=null,Ee=!0,ve=!0,we=!1,me=!0,xe=!1,He=!1,it=!1,Oe=!1,Qe=!1,Fe=!1,Ze=!1,$e=!0,Ge=!1;const kt="user-content-";let $t=!0,bt=!1,Je={},ot=null;const ir=pr({},["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 he=null;const ue=pr({},["audio","video","img","source","image","track"]);let se=null;const pe=pr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ne="http://www.w3.org/1998/Math/MathML",Be="http://www.w3.org/2000/svg",Ae="http://www.w3.org/1999/xhtml";let Ie=Ae,Pe=!1,lt=null;const mt=pr({},[Ne,Be,Ae],CD);let Ct=null;const dr=["application/xhtml+xml","text/html"],Cr="text/html";let Bt=null,qr=null;const cn=r.createElement("form"),er=function(B){return B instanceof RegExp||B instanceof Function},Nt=function(){let B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(qr&&qr===B)){if((!B||typeof B!="object")&&(B={}),B=ih(B),Ct=dr.indexOf(B.PARSER_MEDIA_TYPE)===-1?Cr:B.PARSER_MEDIA_TYPE,Bt=Ct==="application/xhtml+xml"?CD:OA,U=Wu(B,"ALLOWED_TAGS")?pr({},B.ALLOWED_TAGS,Bt):X,J=Wu(B,"ALLOWED_ATTR")?pr({},B.ALLOWED_ATTR,Bt):ee,lt=Wu(B,"ALLOWED_NAMESPACES")?pr({},B.ALLOWED_NAMESPACES,CD):mt,se=Wu(B,"ADD_URI_SAFE_ATTR")?pr(ih(pe),B.ADD_URI_SAFE_ATTR,Bt):pe,he=Wu(B,"ADD_DATA_URI_TAGS")?pr(ih(ue),B.ADD_DATA_URI_TAGS,Bt):ue,ot=Wu(B,"FORBID_CONTENTS")?pr({},B.FORBID_CONTENTS,Bt):ir,ge=Wu(B,"FORBID_TAGS")?pr({},B.FORBID_TAGS,Bt):{},Se=Wu(B,"FORBID_ATTR")?pr({},B.FORBID_ATTR,Bt):{},Je=Wu(B,"USE_PROFILES")?B.USE_PROFILES:!1,Ee=B.ALLOW_ARIA_ATTR!==!1,ve=B.ALLOW_DATA_ATTR!==!1,we=B.ALLOW_UNKNOWN_PROTOCOLS||!1,me=B.ALLOW_SELF_CLOSE_IN_ATTR!==!1,xe=B.SAFE_FOR_TEMPLATES||!1,He=B.WHOLE_DOCUMENT||!1,Qe=B.RETURN_DOM||!1,Fe=B.RETURN_DOM_FRAGMENT||!1,Ze=B.RETURN_TRUSTED_TYPE||!1,Oe=B.FORCE_BODY||!1,$e=B.SANITIZE_DOM!==!1,Ge=B.SANITIZE_NAMED_PROPS||!1,$t=B.KEEP_CONTENT!==!1,bt=B.IN_PLACE||!1,K=B.ALLOWED_URI_REGEXP||lfe,Ie=B.NAMESPACE||Ae,fe=B.CUSTOM_ELEMENT_HANDLING||{},B.CUSTOM_ELEMENT_HANDLING&&er(B.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(fe.tagNameCheck=B.CUSTOM_ELEMENT_HANDLING.tagNameCheck),B.CUSTOM_ELEMENT_HANDLING&&er(B.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(fe.attributeNameCheck=B.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),B.CUSTOM_ELEMENT_HANDLING&&typeof B.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(fe.allowCustomizedBuiltInElements=B.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),xe&&(ve=!1),Fe&&(Qe=!0),Je&&(U=pr({},jQ),J=[],Je.html===!0&&(pr(U,LQ),pr(J,zQ)),Je.svg===!0&&(pr(U,ND),pr(J,DD),pr(J,bw)),Je.svgFilters===!0&&(pr(U,RD),pr(J,DD),pr(J,bw)),Je.mathMl===!0&&(pr(U,OD),pr(J,HQ),pr(J,bw))),B.ADD_TAGS&&(U===X&&(U=ih(U)),pr(U,B.ADD_TAGS,Bt)),B.ADD_ATTR&&(J===ee&&(J=ih(J)),pr(J,B.ADD_ATTR,Bt)),B.ADD_URI_SAFE_ATTR&&pr(se,B.ADD_URI_SAFE_ATTR,Bt),B.FORBID_CONTENTS&&(ot===ir&&(ot=ih(ot)),pr(ot,B.FORBID_CONTENTS,Bt)),$t&&(U["#text"]=!0),He&&pr(U,["html","head","body"]),U.table&&(pr(U,["tbody"]),delete ge.tbody),B.TRUSTED_TYPES_POLICY){if(typeof B.TRUSTED_TYPES_POLICY.createHTML!="function")throw Lm('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof B.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Lm('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=B.TRUSTED_TYPES_POLICY,b=S.createHTML("")}else S===void 0&&(S=bVe(h,o)),S!==null&&typeof b=="string"&&(b=S.createHTML(""));us&&us(B),qr=B}},Wr=pr({},["mi","mo","mn","ms","mtext"]),Nr=pr({},["foreignobject","desc","title","annotation-xml"]),Kr=pr({},["title","style","font","a","script"]),gr=pr({},[...ND,...RD,...lVe]),Dt=pr({},[...OD,...cVe]),dt=function(B){let Z=_(B);(!Z||!Z.tagName)&&(Z={namespaceURI:Ie,tagName:"template"});const ie=OA(B.tagName),ae=OA(Z.tagName);return lt[B.namespaceURI]?B.namespaceURI===Be?Z.namespaceURI===Ae?ie==="svg":Z.namespaceURI===Ne?ie==="svg"&&(ae==="annotation-xml"||Wr[ae]):!!gr[ie]:B.namespaceURI===Ne?Z.namespaceURI===Ae?ie==="math":Z.namespaceURI===Be?ie==="math"&&Nr[ae]:!!Dt[ie]:B.namespaceURI===Ae?Z.namespaceURI===Be&&!Nr[ae]||Z.namespaceURI===Ne&&!Wr[ae]?!1:!Dt[ie]&&(Kr[ie]||!gr[ie]):!!(Ct==="application/xhtml+xml"&<[B.namespaceURI]):!1},Ue=function(B){Bm(t.removed,{element:B});try{B.parentNode.removeChild(B)}catch{B.remove()}},Gr=function(B,Z){try{Bm(t.removed,{attribute:Z.getAttributeNode(B),from:Z})}catch{Bm(t.removed,{attribute:null,from:Z})}if(Z.removeAttribute(B),B==="is"&&!J[B])if(Qe||Fe)try{Ue(Z)}catch{}else try{Z.setAttribute(B,"")}catch{}},Io=function(B){let Z=null,ie=null;if(Oe)B=""+B;else{const ye=oVe(B,/^[\r\n\t ]+/);ie=ye&&ye[0]}Ct==="application/xhtml+xml"&&Ie===Ae&&(B=''+B+"");const ae=S?S.createHTML(B):B;if(Ie===Ae)try{Z=new d().parseFromString(ae,Ct)}catch{}if(!Z||!Z.documentElement){Z=A.createDocument(Ie,"template",null);try{Z.documentElement.innerHTML=Pe?b:ae}catch{}}const ne=Z.body||Z.documentElement;return B&&ie&&ne.insertBefore(r.createTextNode(ie),ne.childNodes[0]||null),Ie===Ae?C.call(Z,He?"html":"body")[0]:He?Z.documentElement:ne},Hr=function(B){return T.call(B.ownerDocument||B,B,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null)},Iu=function(B){return B instanceof f&&(typeof B.nodeName!="string"||typeof B.textContent!="string"||typeof B.removeChild!="function"||!(B.attributes instanceof c)||typeof B.removeAttribute!="function"||typeof B.setAttribute!="function"||typeof B.namespaceURI!="string"||typeof B.insertBefore!="function"||typeof B.hasChildNodes!="function")},ps=function(B){return typeof a=="function"&&B instanceof a},go=function(B,Z,ie){R[B]&&mw(R[B],ae=>{ae.call(t,Z,ie,qr)})},Fa=function(B){let Z=null;if(go("beforeSanitizeElements",B,null),Iu(B))return Ue(B),!0;const ie=Bt(B.nodeName);if(go("uponSanitizeElement",B,{tagName:ie,allowedTags:U}),B.hasChildNodes()&&!ps(B.firstElementChild)&&Qs(/<[/\w]/g,B.innerHTML)&&Qs(/<[/\w]/g,B.textContent))return Ue(B),!0;if(!U[ie]||ge[ie]){if(!ge[ie]&&Y(ie)&&(fe.tagNameCheck instanceof RegExp&&Qs(fe.tagNameCheck,ie)||fe.tagNameCheck instanceof Function&&fe.tagNameCheck(ie)))return!1;if($t&&!ot[ie]){const ae=_(B)||B.parentNode,ne=E(B)||B.childNodes;if(ne&&ae){const ye=ne.length;for(let qe=ye-1;qe>=0;--qe)ae.insertBefore(v(ne[qe],!0),y(B))}}return Ue(B),!0}return B instanceof u&&!dt(B)||(ie==="noscript"||ie==="noembed"||ie==="noframes")&&Qs(/<\/no(script|embed|frames)/i,B.innerHTML)?(Ue(B),!0):(xe&&B.nodeType===3&&(Z=B.textContent,mw([D,L,M],ae=>{Z=Mm(Z,ae," ")}),B.textContent!==Z&&(Bm(t.removed,{element:B.cloneNode()}),B.textContent=Z)),go("afterSanitizeElements",B,null),!1)},Le=function(B,Z,ie){if($e&&(Z==="id"||Z==="name")&&(ie in r||ie in cn))return!1;if(!(ve&&!Se[Z]&&Qs(q,Z))){if(!(Ee&&Qs(z,Z))){if(!J[Z]||Se[Z]){if(!(Y(B)&&(fe.tagNameCheck instanceof RegExp&&Qs(fe.tagNameCheck,B)||fe.tagNameCheck instanceof Function&&fe.tagNameCheck(B))&&(fe.attributeNameCheck instanceof RegExp&&Qs(fe.attributeNameCheck,Z)||fe.attributeNameCheck instanceof Function&&fe.attributeNameCheck(Z))||Z==="is"&&fe.allowCustomizedBuiltInElements&&(fe.tagNameCheck instanceof RegExp&&Qs(fe.tagNameCheck,ie)||fe.tagNameCheck instanceof Function&&fe.tagNameCheck(ie))))return!1}else if(!se[Z]){if(!Qs(K,Mm(ie,$,""))){if(!((Z==="src"||Z==="xlink:href"||Z==="href")&&B!=="script"&&iVe(ie,"data:")===0&&he[B])){if(!(we&&!Qs(F,Mm(ie,$,"")))){if(ie)return!1}}}}}}return!0},Y=function(B){return B!=="annotation-xml"&&B.indexOf("-")>0},Q=function(B){go("beforeSanitizeAttributes",B,null);const{attributes:Z}=B;if(!Z)return;const ie={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:J};let ae=Z.length;for(;ae--;){const ne=Z[ae],{name:ye,namespaceURI:qe,value:xt}=ne,Rt=Bt(ye);let St=ye==="value"?xt:sVe(xt);if(ie.attrName=Rt,ie.attrValue=St,ie.keepAttr=!0,ie.forceKeepAttr=void 0,go("uponSanitizeAttribute",B,ie),St=ie.attrValue,ie.forceKeepAttr||(Gr(ye,B),!ie.keepAttr))continue;if(!me&&Qs(/\/>/i,St)){Gr(ye,B);continue}xe&&mw([D,L,M],Wt=>{St=Mm(St,Wt," ")});const _t=Bt(B.nodeName);if(Le(_t,Rt,St)){if(Ge&&(Rt==="id"||Rt==="name")&&(Gr(ye,B),St=kt+St),S&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!qe)switch(h.getAttributeType(_t,Rt)){case"TrustedHTML":{St=S.createHTML(St);break}case"TrustedScriptURL":{St=S.createScriptURL(St);break}}try{qe?B.setAttributeNS(qe,ye,St):B.setAttribute(ye,St),MQ(t.removed)}catch{}}}go("afterSanitizeAttributes",B,null)},H=function P(B){let Z=null;const ie=Hr(B);for(go("beforeSanitizeShadowDOM",B,null);Z=ie.nextNode();)go("uponSanitizeShadowNode",Z,null),!Fa(Z)&&(Z.content instanceof i&&P(Z.content),Q(Z));go("afterSanitizeShadowDOM",B,null)};return t.sanitize=function(P){let B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Z=null,ie=null,ae=null,ne=null;if(Pe=!P,Pe&&(P=""),typeof P!="string"&&!ps(P))if(typeof P.toString=="function"){if(P=P.toString(),typeof P!="string")throw Lm("dirty is not a string, aborting")}else throw Lm("toString is not a function");if(!t.isSupported)return P;if(it||Nt(B),t.removed=[],typeof P=="string"&&(bt=!1),bt){if(P.nodeName){const xt=Bt(P.nodeName);if(!U[xt]||ge[xt])throw Lm("root node is forbidden and cannot be sanitized in-place")}}else if(P instanceof a)Z=Io(""),ie=Z.ownerDocument.importNode(P,!0),ie.nodeType===1&&ie.nodeName==="BODY"||ie.nodeName==="HTML"?Z=ie:Z.appendChild(ie);else{if(!Qe&&!xe&&!He&&P.indexOf("<")===-1)return S&&Ze?S.createHTML(P):P;if(Z=Io(P),!Z)return Qe?null:Ze?b:""}Z&&Oe&&Ue(Z.firstChild);const ye=Hr(bt?P:Z);for(;ae=ye.nextNode();)Fa(ae)||(ae.content instanceof i&&H(ae.content),Q(ae));if(bt)return P;if(Qe){if(Fe)for(ne=x.call(Z.ownerDocument);Z.firstChild;)ne.appendChild(Z.firstChild);else ne=Z;return(J.shadowroot||J.shadowrootmode)&&(ne=I.call(n,ne,!0)),ne}let qe=He?Z.outerHTML:Z.innerHTML;return He&&U["!doctype"]&&Z.ownerDocument&&Z.ownerDocument.doctype&&Z.ownerDocument.doctype.name&&Qs(cfe,Z.ownerDocument.doctype.name)&&(qe=" +`+qe),xe&&mw([D,L,M],xt=>{qe=Mm(qe,xt," ")}),S&&Ze?S.createHTML(qe):qe},t.setConfig=function(){let P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Nt(P),it=!0},t.clearConfig=function(){qr=null,it=!1},t.isValidAttribute=function(P,B,Z){qr||Nt({});const ie=Bt(P),ae=Bt(B);return Le(ie,ae,Z)},t.addHook=function(P,B){typeof B=="function"&&(R[P]=R[P]||[],Bm(R[P],B))},t.removeHook=function(P){if(R[P])return MQ(R[P])},t.removeHooks=function(P){R[P]&&(R[P]=[])},t.removeAllHooks=function(){R={}},t}var _Ve=ffe(),EVe={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function o(u,l,c){this.fn=u,this.context=l,this.once=c||!1}function i(u,l,c,f,d){if(typeof c!="function")throw new TypeError("The listener must be a function");var h=new o(c,f||u,d),g=r?r+l:l;return u._events[g]?u._events[g].fn?u._events[g]=[u._events[g],h]:u._events[g].push(h):(u._events[g]=h,u._eventsCount++),u}function s(u,l){--u._eventsCount===0?u._events=new n:delete u._events[l]}function a(){this._events=new n,this._eventsCount=0}a.prototype.eventNames=function(){var l=[],c,f;if(this._eventsCount===0)return l;for(f in c=this._events)t.call(c,f)&&l.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(c)):l},a.prototype.listeners=function(l){var c=r?r+l:l,f=this._events[c];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,h=f.length,g=new Array(h);d0?e:"Unknown")}function mw(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GA(){return GA=Object.assign||function(e){for(var t=1;t"u"?"undefined":jQ(window))==="object"&&(typeof document>"u"?"undefined":jQ(document))==="object"&&document.nodeType===9;function Gb(e){"@babel/helpers - typeof";return Gb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gb(e)}function MVe(e,t){if(Gb(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Gb(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function LVe(e){var t=MVe(e,"string");return Gb(t)=="symbol"?t:String(t)}function zQ(e,t){for(var r=0;r0?e:"Unknown")}function _w(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qk(){return Qk=Object.assign||function(e){for(var t=1;t"u"?"undefined":GQ(window))==="object"&&(typeof document>"u"?"undefined":GQ(document))==="object"&&document.nodeType===9;function Yb(e){"@babel/helpers - typeof";return Yb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yb(e)}function WVe(e,t){if(Yb(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Yb(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function KVe(e){var t=WVe(e,"string");return Yb(t)=="symbol"?t:String(t)}function VQ(e,t){for(var r=0;r<+~=|^:(),"'`\s])/g,$Q=typeof CSS<"u"&&CSS.escape,w7=function(e){return $Q?$Q(e):e.replace(zVe,"\\$1")},ffe=function(){function e(r,n,o){this.type="style",this.key=void 0,this.isProcessed=!1,this.style=void 0,this.renderer=void 0,this.renderable=void 0,this.options=void 0;var i=o.sheet,s=o.Renderer;this.key=r,this.options=o,this.style=n,i?this.renderer=i.renderer:s&&(this.renderer=new s)}var t=e.prototype;return t.prop=function(n,o,i){if(o===void 0)return this.style[n];var s=i?i.force:!1;if(!s&&this.style[n]===o)return this;var a=o;(!i||i.process!==!1)&&(a=this.options.jss.plugins.onChangeValue(o,n,this));var u=a==null||a===!1,l=n in this.style;if(u&&!l&&!s)return this;var c=u&&l;if(c?delete this.style[n]:this.style[n]=a,this.renderable&&this.renderer)return c?this.renderer.removeProperty(this.renderable,n):this.renderer.setProperty(this.renderable,n,a),this;var f=this.options.sheet;return f&&f.attached,this},e}(),kB=function(e){F8(t,e);function t(n,o,i){var s;s=e.call(this,n,o,i)||this,s.selectorText=void 0,s.id=void 0,s.renderable=void 0;var a=i.selector,u=i.scoped,l=i.sheet,c=i.generateId;return a?s.selectorText=a:u!==!1&&(s.id=c(RK(RK(s)),l),s.selectorText="."+w7(s.id)),s}var r=t.prototype;return r.applyTo=function(o){var i=this.renderer;if(i){var s=this.toJSON();for(var a in s)i.setProperty(o,a,s[a])}return this},r.toJSON=function(){var o={};for(var i in this.style){var s=this.style[i];typeof s!="object"?o[i]=s:Array.isArray(s)&&(o[i]=Dh(s))}return o},r.toString=function(o){var i=this.options.sheet,s=i?i.options.link:!1,a=s?_o({},o,{allowEmpty:!0}):o;return Vb(this.selectorText,this.style,a)},S7(t,[{key:"selector",set:function(o){if(o!==this.selectorText){this.selectorText=o;var i=this.renderer,s=this.renderable;if(!(!s||!i)){var a=i.setSelector(s,o);a||i.replaceRule(s,this)}}},get:function(){return this.selectorText}}]),t}(ffe),HVe={onCreateRule:function(t,r,n){return t[0]==="@"||n.parent&&n.parent.type==="keyframes"?null:new kB(t,r,n)}},CD={indent:1,children:!0},$Ve=/@([\w-]+)/,PVe=function(){function e(r,n,o){this.type="conditional",this.at=void 0,this.key=void 0,this.query=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=r,this.query=o.name;var i=r.match($Ve);this.at=i?i[1]:"unknown",this.options=o,this.rules=new v9(_o({},o,{parent:this}));for(var s in n)this.rules.add(s,n[s]);this.rules.process()}var t=e.prototype;return t.getRule=function(n){return this.rules.get(n)},t.indexOf=function(n){return this.rules.indexOf(n)},t.addRule=function(n,o,i){var s=this.rules.add(n,o,i);return s?(this.options.jss.plugins.onProcessRule(s),s):null},t.toString=function(n){if(n===void 0&&(n=CD),n.indent==null&&(n.indent=CD.indent),n.children==null&&(n.children=CD.children),n.children===!1)return this.query+" {}";var o=this.rules.toString(n);return o?this.query+` { +`),jm(e+" {"+n,s)+jm("}",s))}var VVe=/([[\].#*$><+~=|^:(),"'`\s])/g,YQ=typeof CSS<"u"&&CSS.escape,I7=function(e){return YQ?YQ(e):e.replace(VVe,"\\$1")},yfe=function(){function e(r,n,o){this.type="style",this.key=void 0,this.isProcessed=!1,this.style=void 0,this.renderer=void 0,this.renderable=void 0,this.options=void 0;var i=o.sheet,s=o.Renderer;this.key=r,this.options=o,this.style=n,i?this.renderer=i.renderer:s&&(this.renderer=new s)}var t=e.prototype;return t.prop=function(n,o,i){if(o===void 0)return this.style[n];var s=i?i.force:!1;if(!s&&this.style[n]===o)return this;var a=o;(!i||i.process!==!1)&&(a=this.options.jss.plugins.onChangeValue(o,n,this));var u=a==null||a===!1,l=n in this.style;if(u&&!l&&!s)return this;var c=u&&l;if(c?delete this.style[n]:this.style[n]=a,this.renderable&&this.renderer)return c?this.renderer.removeProperty(this.renderable,n):this.renderer.setProperty(this.renderable,n,a),this;var f=this.options.sheet;return f&&f.attached,this},e}(),IB=function(e){z8(t,e);function t(n,o,i){var s;s=e.call(this,n,o,i)||this,s.selectorText=void 0,s.id=void 0,s.renderable=void 0;var a=i.selector,u=i.scoped,l=i.sheet,c=i.generateId;return a?s.selectorText=a:u!==!1&&(s.id=c(zK(zK(s)),l),s.selectorText="."+I7(s.id)),s}var r=t.prototype;return r.applyTo=function(o){var i=this.renderer;if(i){var s=this.toJSON();for(var a in s)i.setProperty(o,a,s[a])}return this},r.toJSON=function(){var o={};for(var i in this.style){var s=this.style[i];typeof s!="object"?o[i]=s:Array.isArray(s)&&(o[i]=Oh(s))}return o},r.toString=function(o){var i=this.options.sheet,s=i?i.options.link:!1,a=s?So({},o,{allowEmpty:!0}):o;return Xb(this.selectorText,this.style,a)},T7(t,[{key:"selector",set:function(o){if(o!==this.selectorText){this.selectorText=o;var i=this.renderer,s=this.renderable;if(!(!s||!i)){var a=i.setSelector(s,o);a||i.replaceRule(s,this)}}},get:function(){return this.selectorText}}]),t}(yfe),UVe={onCreateRule:function(t,r,n){return t[0]==="@"||n.parent&&n.parent.type==="keyframes"?null:new IB(t,r,n)}},FD={indent:1,children:!0},YVe=/@([\w-]+)/,XVe=function(){function e(r,n,o){this.type="conditional",this.at=void 0,this.key=void 0,this.query=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=r,this.query=o.name;var i=r.match(YVe);this.at=i?i[1]:"unknown",this.options=o,this.rules=new _9(So({},o,{parent:this}));for(var s in n)this.rules.add(s,n[s]);this.rules.process()}var t=e.prototype;return t.getRule=function(n){return this.rules.get(n)},t.indexOf=function(n){return this.rules.indexOf(n)},t.addRule=function(n,o,i){var s=this.rules.add(n,o,i);return s?(this.options.jss.plugins.onProcessRule(s),s):null},t.toString=function(n){if(n===void 0&&(n=FD),n.indent==null&&(n.indent=FD.indent),n.children==null&&(n.children=FD.children),n.children===!1)return this.query+" {}";var o=this.rules.toString(n);return o?this.query+` { `+o+` -}`:""},e}(),qVe=/@media|@supports\s+/,WVe={onCreateRule:function(t,r,n){return qVe.test(t)?new PVe(t,r,n):null}},RD={indent:1,children:!0},KVe=/@keyframes\s+([\w-]+)/,AB=function(){function e(r,n,o){this.type="keyframes",this.at="@keyframes",this.key=void 0,this.name=void 0,this.id=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0;var i=r.match(KVe);i&&i[1]?this.name=i[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=o;var s=o.scoped,a=o.sheet,u=o.generateId;this.id=s===!1?this.name:w7(u(this,a)),this.rules=new v9(_o({},o,{parent:this}));for(var l in n)this.rules.add(l,n[l],_o({},o,{parent:this}));this.rules.process()}var t=e.prototype;return t.toString=function(n){if(n===void 0&&(n=RD),n.indent==null&&(n.indent=RD.indent),n.children==null&&(n.children=RD.children),n.children===!1)return this.at+" "+this.id+" {}";var o=this.rules.toString(n);return o&&(o=` +}`:""},e}(),QVe=/@media|@supports\s+/,ZVe={onCreateRule:function(t,r,n){return QVe.test(t)?new XVe(t,r,n):null}},BD={indent:1,children:!0},JVe=/@keyframes\s+([\w-]+)/,CB=function(){function e(r,n,o){this.type="keyframes",this.at="@keyframes",this.key=void 0,this.name=void 0,this.id=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0;var i=r.match(JVe);i&&i[1]?this.name=i[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=o;var s=o.scoped,a=o.sheet,u=o.generateId;this.id=s===!1?this.name:I7(u(this,a)),this.rules=new _9(So({},o,{parent:this}));for(var l in n)this.rules.add(l,n[l],So({},o,{parent:this}));this.rules.process()}var t=e.prototype;return t.toString=function(n){if(n===void 0&&(n=BD),n.indent==null&&(n.indent=BD.indent),n.children==null&&(n.children=BD.children),n.children===!1)return this.at+" "+this.id+" {}";var o=this.rules.toString(n);return o&&(o=` `+o+` -`),this.at+" "+this.id+" {"+o+"}"},e}(),GVe=/@keyframes\s+/,VVe=/\$([\w-]+)/g,TB=function(t,r){return typeof t=="string"?t.replace(VVe,function(n,o){return o in r?r[o]:n}):t},PQ=function(t,r,n){var o=t[r],i=TB(o,n);i!==o&&(t[r]=i)},UVe={onCreateRule:function(t,r,n){return typeof t=="string"&&GVe.test(t)?new AB(t,r,n):null},onProcessStyle:function(t,r,n){return r.type!=="style"||!n||("animation-name"in t&&PQ(t,"animation-name",n.keyframes),"animation"in t&&PQ(t,"animation",n.keyframes)),t},onChangeValue:function(t,r,n){var o=n.options.sheet;if(!o)return t;switch(r){case"animation":return TB(t,o.keyframes);case"animation-name":return TB(t,o.keyframes);default:return t}}},YVe=function(e){F8(t,e);function t(){for(var n,o=arguments.length,i=new Array(o),s=0;s=this.index){o.push(n);return}for(var s=0;si){o.splice(s,0,n);return}}},t.reset=function(){this.registry=[]},t.remove=function(n){var o=this.registry.indexOf(n);this.registry.splice(o,1)},t.toString=function(n){for(var o=n===void 0?{}:n,i=o.attached,s=D8(o,["attached"]),a="",u=0;ut.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}function hUe(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}function pUe(e){for(var t=pfe(),r=0;r0){var r=dUe(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=hUe(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&typeof n=="string"){var o=pUe(n);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}function vUe(e,t){var r=t.insertionPoint,n=gUe(t);if(n!==!1&&n.parent){n.parent.insertBefore(e,n.node);return}if(r&&typeof r.nodeType=="number"){var o=r,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling);return}pfe().appendChild(e)}var mUe=hfe(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),VQ=function(t,r,n){var o=t.cssRules.length;(n===void 0||n>o)&&(n=o);try{if("insertRule"in t){var i=t;i.insertRule(r,n)}else if("appendRule"in t){var s=t;s.appendRule(r)}}catch{return!1}return t.cssRules[n]},yUe=function(){var t=document.createElement("style");return t.textContent=` -`,t},bUe=function(){function e(r){this.getPropertyValue=uUe,this.setProperty=lUe,this.removeProperty=cUe,this.setSelector=fUe,this.element=void 0,this.sheet=void 0,this.hasInsertedRules=!1,r&&Ky.add(r),this.sheet=r;var n=this.sheet?this.sheet.options:{},o=n.media,i=n.meta,s=n.element;this.element=s||yUe(),this.element.setAttribute("data-jss",""),o&&this.element.setAttribute("media",o),i&&this.element.setAttribute("data-meta",i);var a=mUe();a&&this.element.setAttribute("nonce",a)}var t=e.prototype;return t.attach=function(){if(!(this.element.parentNode||!this.sheet)){vUe(this.element,this.sheet.options);var n=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&n&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){var n=this.element.parentNode;n&&n.removeChild(this.element)},t.deploy=function(){var n=this.sheet;if(n){if(n.options.link){this.insertRules(n.rules);return}this.element.textContent=` +`),this.at+" "+this.id+" {"+o+"}"},e}(),eUe=/@keyframes\s+/,tUe=/\$([\w-]+)/g,NB=function(t,r){return typeof t=="string"?t.replace(tUe,function(n,o){return o in r?r[o]:n}):t},XQ=function(t,r,n){var o=t[r],i=NB(o,n);i!==o&&(t[r]=i)},rUe={onCreateRule:function(t,r,n){return typeof t=="string"&&eUe.test(t)?new CB(t,r,n):null},onProcessStyle:function(t,r,n){return r.type!=="style"||!n||("animation-name"in t&&XQ(t,"animation-name",n.keyframes),"animation"in t&&XQ(t,"animation",n.keyframes)),t},onChangeValue:function(t,r,n){var o=n.options.sheet;if(!o)return t;switch(r){case"animation":return NB(t,o.keyframes);case"animation-name":return NB(t,o.keyframes);default:return t}}},nUe=function(e){z8(t,e);function t(){for(var n,o=arguments.length,i=new Array(o),s=0;s=this.index){o.push(n);return}for(var s=0;si){o.splice(s,0,n);return}}},t.reset=function(){this.registry=[]},t.remove=function(n){var o=this.registry.indexOf(n);this.registry.splice(o,1)},t.toString=function(n){for(var o=n===void 0?{}:n,i=o.attached,s=j8(o,["attached"]),a="",u=0;ut.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}function EUe(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}function SUe(e){for(var t=Efe(),r=0;r0){var r=_Ue(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=EUe(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&typeof n=="string"){var o=SUe(n);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}function AUe(e,t){var r=t.insertionPoint,n=wUe(t);if(n!==!1&&n.parent){n.parent.insertBefore(e,n.node);return}if(r&&typeof r.nodeType=="number"){var o=r,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling);return}Efe().appendChild(e)}var kUe=_fe(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),tZ=function(t,r,n){var o=t.cssRules.length;(n===void 0||n>o)&&(n=o);try{if("insertRule"in t){var i=t;i.insertRule(r,n)}else if("appendRule"in t){var s=t;s.appendRule(r)}}catch{return!1}return t.cssRules[n]},xUe=function(){var t=document.createElement("style");return t.textContent=` +`,t},TUe=function(){function e(r){this.getPropertyValue=vUe,this.setProperty=mUe,this.removeProperty=yUe,this.setSelector=bUe,this.element=void 0,this.sheet=void 0,this.hasInsertedRules=!1,r&&Vy.add(r),this.sheet=r;var n=this.sheet?this.sheet.options:{},o=n.media,i=n.meta,s=n.element;this.element=s||xUe(),this.element.setAttribute("data-jss",""),o&&this.element.setAttribute("media",o),i&&this.element.setAttribute("data-meta",i);var a=kUe();a&&this.element.setAttribute("nonce",a)}var t=e.prototype;return t.attach=function(){if(!(this.element.parentNode||!this.sheet)){AUe(this.element,this.sheet.options);var n=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&n&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){var n=this.element.parentNode;n&&n.removeChild(this.element)},t.deploy=function(){var n=this.sheet;if(n){if(n.options.link){this.insertRules(n.rules);return}this.element.textContent=` `+n.toString()+` -`}},t.insertRules=function(n,o){for(var i=0;i0&&(o.refs--,o.refs===0&&o.sheet.detach()):LQ(!1,"SheetsManager: can't find sheet to unmanage")},S7(e,[{key:"size",get:function(){return this.length}}]),e}();/** +`}},t.insertRules=function(n,o){for(var i=0;i0&&(o.refs--,o.refs===0&&o.sheet.detach()):KQ(!1,"SheetsManager: can't find sheet to unmanage")},T7(e,[{key:"size",get:function(){return this.length}}]),e}();/** * A better abstraction over CSS. * * @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present * @website https://github.com/cssinjs/jss * @license MIT - */var k7=typeof CSS<"u"&&CSS&&"number"in CSS,A7=function(t){return new EUe(t)},SUe=A7(),vfe=Date.now(),OD="fnValues"+vfe,DD="fnStyle"+ ++vfe;function wUe(){return{onCreateRule:function(t,r,n){if(typeof r!="function")return null;var o=g9(t,{},n);return o[DD]=r,o},onProcessStyle:function(t,r){if(OD in r||DD in r)return t;var n={};for(var o in t){var i=t[o];typeof i=="function"&&(delete t[o],n[o]=i)}return r[OD]=n,t},onUpdate:function(t,r,n,o){var i=r,s=i[DD];s&&(i.style=s(t)||{});var a=i[OD];if(a)for(var u in a)i.prop(u,a[u](t),o)}}}function kUe(e){var t,r=e.Symbol;return typeof r=="function"?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}var c0;typeof self<"u"?c0=self:typeof window<"u"?c0=window:typeof global<"u"?c0=global:typeof z6<"u"?c0=z6:c0=Function("return this")();var YQ=kUe(c0),XQ=function(t){return t&&t[YQ]&&t===t[YQ]()};function AUe(e){return{onCreateRule:function(r,n,o){if(!XQ(n))return null;var i=n,s=g9(r,{},o);return i.subscribe(function(a){for(var u in a)s.prop(u,a[u],e)}),s},onProcessRule:function(r){if(!(r&&r.type!=="style")){var n=r,o=n.style,i=function(l){var c=o[l];if(!XQ(c))return"continue";delete o[l],c.subscribe({next:function(d){n.prop(l,d,e)}})};for(var s in o)var a=i(s)}}}}var TUe=/;\n/,xUe=function(e){for(var t={},r=e.split(TUe),n=0;n-1)return CB(e,t.split(" "));var o=e.options,i=o.parent;if(t[0]==="$"){var s=i.getRule(t.substr(1));return!s||s===e?!1:(i.classes[e.key]+=" "+i.classes[s.key],!0)}return i.classes[e.key]+=" "+t,!0}function PUe(){function e(t,r){return"composes"in t&&(CB(r,t.composes),delete t.composes),t}return{onProcessStyle:e}}var qUe=/[A-Z]/g,WUe=/^ms-/,BD={};function KUe(e){return"-"+e.toLowerCase()}function yfe(e){if(BD.hasOwnProperty(e))return BD[e];var t=e.replace(qUe,KUe);return BD[e]=WUe.test(t)?"-"+t:t}function VA(e){var t={};for(var r in e){var n=r.indexOf("--")===0?r:yfe(r);t[n]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(VA):t.fallbacks=VA(e.fallbacks)),t}function GUe(){function e(r){if(Array.isArray(r)){for(var n=0;ne.length)&&(t=e.length);for(var r=0,n=new Array(t);r-1){var i=kfe[t];if(!Array.isArray(i))return Zt.js+p1(i)in r?Zt.css+i:!1;if(!o)return!1;for(var s=0;sn?1:-1:r.length-n.length};return{onProcessStyle:function(r,n){if(n.type!=="style")return r;for(var o={},i=Object.keys(r).sort(e),s=0;sLYe)&&(o=t.createStyleSheet().attach()),o};function s(){var a=arguments,u=JSON.stringify(a),l=r.get(u);if(l)return l.className;var c=[];for(var f in a){var d=a[f];if(!Array.isArray(d)){c.push(d);continue}for(var h=0;ht=>!!tXe(e)(t),Nf=e=>t=>{const r=t||0;return Array.isArray(e)?e.reduce((n,o)=>n|o,r):r|e},tXe=e=>t=>(t||0)&e,oE=e=>t=>{const r=t||0;return Array.isArray(e)?e.reduce((n,o)=>n&~o,r):r&~e},ea=e=>()=>e,I7=0,m9=1,N7=2;var xi;(function(e){e[e.Default=I7]="Default",e[e.Selected=m9]="Selected",e[e.Activated=N7]="Activated",e[e.ConnectedToSelected=4]="ConnectedToSelected",e[e.UnconnectedToSelected=8]="UnconnectedToSelected",e[e.Editing=16]="Editing"})(xi||(xi={}));var Do;(function(e){e[e.Default=I7]="Default",e[e.Selected=m9]="Selected",e[e.Activated=N7]="Activated",e[e.Editing=4]="Editing",e[e.ConnectedToSelected=8]="ConnectedToSelected",e[e.UnconnectedToSelected=16]="UnconnectedToSelected"})(Do||(Do={}));var is;(function(e){e[e.Default=I7]="Default",e[e.Selected=m9]="Selected",e[e.Activated=N7]="Activated",e[e.Connecting=4]="Connecting",e[e.ConnectingAsTarget=8]="ConnectingAsTarget"})(is||(is={}));const Dn=e=>t=>{var r;const n=e((r=t.status)!==null&&r!==void 0?r:0);return n===t.status?t:Object.assign(Object.assign({},t),{status:n})};function C7(e){return fp(Do.Editing)(e.status)}function Jd(e){return fp(m9)(e.status)}function rZ(e){return!Jd(e)}const rXe=e=>t=>(t||0)&Do.Activated|e;class Uh{static log(t){}static warn(t){}static error(...t){console.error(...t)}static never(t,r){throw new Error(r??`${t} is unexpected`)}}const iE=(e,t)=>{const r=t.getNodeConfig(e);if(!r){Uh.warn(`invalid node ${JSON.stringify(e)}`);return}return r};function sE(e,t){var r;const n=(r=e==null?void 0:e.getMinWidth(t))!==null&&r!==void 0?r:0;return t.width&&t.width>=n?t.width:n}function aE(e,t){var r;const n=(r=e==null?void 0:e.getMinHeight(t))!==null&&r!==void 0?r:0;return t.height&&t.height>=n?t.height:n}function Cf(e,t){const r=iE(e,t),n=sE(r,e);return{height:aE(r,e),width:n}}function nXe(e,t,r){var n,o,i,s,a,u,l,c;const f=new Set(e.nodeIds),d=Array.from(t.values()).filter(A=>f.has(A.id)),h=Math.min(...d.map(A=>A.x)),g=Math.max(...d.map(A=>A.x+Cf(A,r).width)),v=Math.min(...d.map(A=>A.y)),y=Math.max(...d.map(A=>A.y+Cf(A,r).height)),E=h-((o=(n=e.padding)===null||n===void 0?void 0:n.left)!==null&&o!==void 0?o:0),_=v-((s=(i=e.padding)===null||i===void 0?void 0:i.top)!==null&&s!==void 0?s:0),S=y-_+((u=(a=e.padding)===null||a===void 0?void 0:a.bottom)!==null&&u!==void 0?u:0),b=g-E+((c=(l=e.padding)===null||l===void 0?void 0:l.left)!==null&&c!==void 0?c:0);return{x:E,y:_,width:b,height:S}}var UA;(function(e){e[e.Primary=0]="Primary",e[e.Auxiliary=1]="Auxiliary",e[e.Secondary=2]="Secondary",e[e.Fourth=4]="Fourth",e[e.Fifth=5]="Fifth"})(UA||(UA={}));var nZ;(function(e){e[e.None=0]="None",e[e.Left=1]="Left",e[e.Right=2]="Right",e[e.Middle=4]="Middle"})(nZ||(nZ={}));const YA=50,oZ=5,iZ=500,ts={controlPointColor:"#333333",primaryColor:"#0078D4",defaultColor:"#CCCCCC",borderColor:"#B3B0AD",defaultBorderColor:"#FFFFFF",unConnectableBgColor:"#E1DFDD",defaultBackgroundColor:"#FFFFFF",portStroke:"#ccc",portFill:"#fff",connectedPortColor:"gray",nodeActivateFill:"#ffffff",nodeActivateStroke:"#0078D4",nodeFill:"#ffffff",nodeStroke:"#cccccc",contextMenuBackground:"#FFFFFF",contextMenuBorder:"#E1DFDD",contextMenuHoverBackground:"rgba(0, 120, 212, 0.05)",fontColor:"#000000",canvasBackground:"#EDEDED",minimapBackground:"#EDEDED",edgeColor:"#ccc",edgeColorSelected:"#015cda",minimapShadow:"#000000",outlineStyle:"none",focusOutlineColor:"#000000",dummyNodeStroke:"#015cda",inputFocusBorderAlt:"#0078d4",buttonBorder:"#797775",scrollbarColor:"#c8c8c8"},oXe=e=>{const{style:t,node:r,width:n,height:o,textY:i}=e,s=r.data&&r.data.comment?r.data.comment:"",a=C7(r);return C.jsxs("g",{children:[C.jsx("rect",{width:n,height:o,x:r.x,y:r.y,style:t,rx:t.borderRadius}),C.jsx("text",Object.assign({x:r.x,y:i,fontSize:12},{children:r.name})),r.data&&r.data.comment&&!a&&C.jsx("text",Object.assign({x:r.x,y:i+20,fontSize:12,className:`comment-${r.id}`},{children:r.data.comment})),a&&C.jsx("foreignObject",Object.assign({x:r.x,y:i,height:o/2.5,width:n-5},{children:C.jsx("input",{value:s,placeholder:"Input your comment here"})}))]},r.id)},FB={getMinHeight(){return 150},getMinWidth(){return 150},render(e){const t=e.model,r=sE(FB,t),n=aE(FB,t),o=fp(Do.Selected|Do.Activated)(t.status)?{fill:ts.nodeActivateFill,stroke:ts.nodeActivateStroke}:{fill:ts.nodeFill,fillOpacity:.1,stroke:ts.nodeStroke,borderRadius:"5"},i=t.y+n/3;return C.jsx(oXe,{style:o,node:t,width:r,height:n,textY:i})}},Nfe=(e,t,r,n)=>`M${e},${r}C${e},${r-sZ(r,n)},${t},${n+5+sZ(r,n)},${t},${n+5}`,sZ=(e,t)=>Math.min(5*15,Math.max(5*3,Math.abs((e-(t+5))/2))),iXe={render(e){const t=e.model,r={cursor:"crosshair",stroke:fp(xi.Selected)(t.status)?ts.edgeColorSelected:ts.edgeColor,strokeWidth:"2"};return C.jsx("path",{d:Nfe(e.x2,e.x1,e.y2,e.y1),fill:"none",style:r,id:`edge${t.id}`},t.id)}};class sXe{getStyle(t,r,n,o,i){const s=ts.portStroke;let a=ts.portFill;return(o||i)&&(a=ts.connectedPortColor),fp(is.Activated)(t.status)&&(a=ts.primaryColor),{stroke:s,fill:a}}getIsConnectable(){return!0}render(t){const{model:r,data:n,parentNode:o}=t,i=n.isPortConnectedAsSource(o.id,r.id),s=n.isPortConnectedAsTarget(o.id,r.id),a=this.getStyle(r,o,n,i,s),{x:u,y:l}=t,c=`${u-5} ${l}, ${u+7} ${l}, ${u+1} ${l+8}`;return s?C.jsx("polygon",{points:c,style:a}):C.jsx("circle",{r:5,cx:u,cy:l,style:a},`${t.parentNode.id}-${t.model.id}`)}}const aXe=new sXe;class uXe{constructor(t){this.storage=t}write(t){this.storage.setItem("graph-clipboard",JSON.stringify({nodes:t.nodes.map(r=>Object.assign(Object.assign({},r),{data:{}})),edges:t.edges.map(r=>Object.assign(Object.assign({},r),{data:{}}))}))}read(){const t=this.storage.getItem("graph-clipboard");if(!t)return null;try{const r=JSON.parse(t),n=new Map;return{nodes:r.nodes.map(o=>{const i=KA();return n.set(o.id,i),Object.assign(Object.assign({},o),{x:o.x+YA,y:o.y+YA,id:i})}),edges:r.edges.map(o=>Object.assign(Object.assign({},o),{id:KA(),source:n.get(o.source)||"",target:n.get(o.target)||""}))}}catch{return null}}}class lXe{get length(){return this.items.size}constructor(){this.key=()=>"DefaultLocalStorage",this.items=new Map}clear(){this.items=new Map}setItem(t,r){this.items.set(t,r)}getItem(t){return this.items.has(t)?this.items.get(t):null}removeItem(t){this.items.delete(t)}}class Lg{constructor(){const t=new lXe,r=new uXe(t);this.draft={getNodeConfig:()=>FB,getEdgeConfig:()=>iXe,getPortConfig:()=>aXe,getGroupConfig:()=>{},getClipboard:()=>r}}static default(){return new Lg}static from(t){return new Lg().registerNode(t.getNodeConfig.bind(t)).registerEdge(t.getEdgeConfig.bind(t)).registerPort(t.getPortConfig.bind(t)).registerGroup(t.getGroupConfig.bind(t)).registerClipboard(t.getClipboard.bind(t))}registerNode(t){return this.draft.getNodeConfig=t,this}registerEdge(t){return this.draft.getEdgeConfig=t,this}registerPort(t){return this.draft.getPortConfig=t,this}registerGroup(t){return this.draft.getGroupConfig=t,this}registerClipboard(t){return this.draft.getClipboard=t,this}build(){return this.draft}}const cXe=k.createContext(Lg.default().build());var aZ;(function(e){e.Node="node",e.Edge="edge",e.Port="port",e.Canvas="canvas",e.Multi="multi"})(aZ||(aZ={}));const Cfe=()=>({startX:0,startY:0,height:0,width:0});var it;(function(e){e.NodeDraggable="nodeDraggable",e.NodeResizable="nodeResizable",e.ClickNodeToSelect="clickNodeToSelect",e.PanCanvas="panCanvas",e.MultipleSelect="multipleSelect",e.LassoSelect="lassoSelect",e.Delete="delete",e.AddNewNodes="addNewNodes",e.AddNewEdges="addNewEdges",e.AddNewPorts="addNewPorts",e.AutoFit="autoFit",e.CanvasHorizontalScrollable="canvasHorizontalScrollable",e.CanvasVerticalScrollable="canvasVerticalScrollable",e.NodeHoverView="nodeHoverView",e.PortHoverView="portHoverView",e.AddEdgesByKeyboard="addEdgesByKeyboard",e.A11yFeatures="a11YFeatures",e.EditNode="editNode",e.AutoAlign="autoAlign",e.UndoStack="undoStack",e.CtrlKeyZoom="ctrlKeyZoom",e.LimitBoundary="limitBoundary",e.EditEdge="editEdge",e.InvisibleScrollbar="InvisibleScrollbar"})(it||(it={}));it.NodeDraggable,it.NodeResizable,it.ClickNodeToSelect,it.PanCanvas,it.MultipleSelect,it.LassoSelect,it.Delete,it.AddNewNodes,it.AddNewEdges,it.AddNewPorts,it.CanvasHorizontalScrollable,it.CanvasVerticalScrollable,it.NodeHoverView,it.PortHoverView,it.AddEdgesByKeyboard,it.A11yFeatures,it.AutoFit,it.EditNode,it.AutoAlign,it.UndoStack,it.CtrlKeyZoom,it.LimitBoundary,it.EditEdge;const fXe=new Set([it.NodeDraggable,it.NodeResizable,it.ClickNodeToSelect,it.PanCanvas,it.MultipleSelect,it.Delete,it.AddNewNodes,it.AddNewEdges,it.AddNewPorts,it.CanvasHorizontalScrollable,it.CanvasVerticalScrollable,it.NodeHoverView,it.PortHoverView,it.AddEdgesByKeyboard,it.A11yFeatures,it.EditNode,it.AutoAlign,it.UndoStack,it.CtrlKeyZoom,it.LimitBoundary]),dXe=new Set([it.NodeDraggable,it.NodeResizable,it.ClickNodeToSelect,it.PanCanvas,it.MultipleSelect,it.CanvasHorizontalScrollable,it.CanvasVerticalScrollable,it.NodeHoverView,it.PortHoverView,it.A11yFeatures,it.CtrlKeyZoom,it.LimitBoundary]);it.ClickNodeToSelect,it.CanvasHorizontalScrollable,it.CanvasVerticalScrollable,it.NodeHoverView,it.PortHoverView,it.A11yFeatures,it.LassoSelect,it.LimitBoundary;it.NodeHoverView,it.PortHoverView,it.AutoFit;const jg=()=>({dx:0,dy:0,dWidth:0,dHeight:0,alignedDX:void 0,alignedDY:void 0,nodes:[],isVisible:!1}),Cn=Object.is;let Rfe=class{constructor(t,r){this.upstream=t,this.f=r}[Symbol.iterator](){return this}next(){const t=this.upstream.next();return t.done?t:{done:!1,value:this.f(t.value)}}};var Yb;(function(e){e[e.Bitmap=0]="Bitmap",e[e.Collision=1]="Collision"})(Yb||(Yb={}));const hXe=30,ah=5,pXe=1073741823;function Od(e){return 1<>>t&31}function BB(e){return e|=0,e-=e>>>1&1431655765,e=(e&858993459)+(e>>>2&858993459),e=e+(e>>>4)&252645135,e+=e>>>8,e+=e>>>16,e&127}let Vy=class py{get valueCount(){return this.values.length}get nodeCount(){return this.children.length}constructor(t,r,n,o,i,s,a,u){this.type=Yb.Bitmap,this.owner=t,this.dataMap=r,this.nodeMap=n,this.keys=o,this.values=i,this.children=s,this.hashes=a,this.size=u}static empty(t){return new py(t,0,0,[],[],[],[],0)}getKey(t){return this.keys[t]}getValue(t){return this.values[t]}getHash(t){return this.hashes[t]}getNode(t){return this.children[t]}contains(t,r,n){const o=fh(r,n),i=Od(o),{dataMap:s,nodeMap:a}=this;if(s&i){const u=xl(s,o,i),l=this.getKey(u);return Cn(l,t)}else if(a&i){const u=xl(a,o,i);return this.getNode(u).contains(t,r,n+ah)}return!1}get(t,r,n){const o=fh(r,n),i=Od(o),{dataMap:s,nodeMap:a}=this;if(s&i){const u=xl(s,o,i),l=this.getKey(u);return Cn(l,t)?this.getValue(u):void 0}else if(a&i){const u=xl(a,o,i);return this.getNode(u).get(t,r,n+ah)}}insert(t,r,n,o,i){const s=fh(o,i),a=Od(s),{dataMap:u,nodeMap:l}=this;if(u&a){const c=xl(u,s,a),f=this.getKey(c),d=this.getValue(c),h=this.getHash(c);if(h===o&&Cn(f,r))return Cn(d,n)?this:this.setValue(t,n,c);{const g=Ofe(t,f,d,h,r,n,o,i+ah);return this.migrateInlineToNode(t,a,g)}}else if(l&a){const c=xl(l,s,a),d=this.getNode(c).insert(t,r,n,o,i+ah);return this.setNode(t,1,d,a)}return this.insertValue(t,a,r,o,n)}update(t,r,n,o,i){const s=fh(o,i),a=Od(s),{dataMap:u,nodeMap:l}=this;if(u&a){const c=xl(u,s,a),f=this.getKey(c);if(this.getHash(c)===o&&Cn(f,r)){const h=this.getValue(c),g=n(h);return Cn(h,g)?this:this.setValue(t,g,c)}}else if(l&a){const c=xl(l,s,a),f=this.getNode(c),d=f.update(t,r,n,o,i+ah);return d===f?this:this.setNode(t,0,d,a)}return this}remove(t,r,n,o){const i=fh(n,o),s=Od(i);if(this.dataMap&s){const a=xl(this.dataMap,i,s),u=this.getKey(a);return Cn(u,r)?this.removeValue(t,s):void 0}else if(this.nodeMap&s){const a=xl(this.nodeMap,i,s),u=this.getNode(a),l=u.remove(t,r,n,o+ah);if(l===void 0)return;const[c,f]=l;return c.size===1?this.size===u.size?[new py(t,s,0,[c.getKey(0)],[c.getValue(0)],[],[c.getHash(0)],1),f]:[this.migrateNodeToInline(t,s,c),f]:[this.setNode(t,-1,c,s),f]}}toOwned(t){return this.owner===t?this:new py(t,this.dataMap,this.nodeMap,this.keys.slice(),this.values.slice(),this.children.slice(),this.hashes.slice(),this.size)}iter(){return new R7(this)}map(t,r){const n=this.valueCount,o=[],i=[],s=[];let a=!0;for(let u=0;u=hXe)return new gXe(e,n,[t,o],[r,i]);{const u=fh(n,a),l=fh(s,a);if(u!==l){const c=Od(u)|Od(l);return uCn(n,t));return r>=0?this.values[r]:void 0}insert(t,r,n){const o=this.keys.findIndex(i=>Cn(i,r));if(o>=0){const i=this.values[o];if(Cn(i,n))return this;const s=this.toOwned(t);return s.values[o]=n,s}else{const i=this.toOwned(t);return i.keys.push(r),i.values.push(n),i}}update(t,r,n){const o=this.keys.findIndex(i=>Cn(i,r));if(o>=0){const i=this.values[o],s=n(i);if(Cn(i,s))return this;const a=this.toOwned(t);return a.values[o]=s,a}return this}remove(t,r){const n=this.keys.findIndex(i=>Cn(i,r));if(n===-1)return;const o=this.getValue(n);return[new Ck(t,this.hash,this.keys.filter((i,s)=>s!==n),this.values.filter((i,s)=>s!==n)),o]}getKey(t){return this.keys[t]}getValue(t){return this.values[t]}getHash(){return this.hash}iter(){return new O7(this)}map(t,r){const n=this.size,o=[];let i=!1;for(let s=0;s=this.node.size)return{done:!0,value:void 0};const t=this.node.getKey(this.index),r=this.node.getValue(this.index);return this.index+=1,{done:!1,value:[t,r]}}clone(){const t=new O7(this.node);return t.index=this.index,t}}function Jn(e){if(e===null)return 1108378658;switch(typeof e){case"boolean":return e?839943201:839943200;case"number":return vXe(e);case"string":return uZ(e);case"object":case"function":case"symbol":throw new Error("Using object, function and symbol as hash map key is not supported");case"undefined":return 839943203;default:return uZ(String(e))}}function uZ(e){let t=0;for(let r=0;r4294967295;)e/=4294967295,t^=e;return Dfe(t)}function Dfe(e){return e&1073741823}class Ffe{constructor(){this.id=0}take(){return this.id+=1,this.id}peek(){return this.id+1}}const dh=new Ffe;class Yl{get size(){return this.root.size}constructor(t){this.id=dh.take(),this.root=t}static empty(){return Xl.empty().finish()}static from(t){return Xl.from(t).finish()}get(t){const r=Jn(t);return this.root.get(t,r,0)}has(t){const r=Jn(t);return this.root.contains(t,r,0)}set(t,r){return this.withRoot(this.root.insert(dh.peek(),t,r,Jn(t),0))}update(t,r){return this.withRoot(this.root.update(dh.peek(),t,r,Jn(t),0))}delete(t){const r=Jn(t),n=dh.peek(),o=this.root.remove(n,t,r,0);return o===void 0?this:new Yl(o[0])}clone(){return new Yl(this.root)}[Symbol.iterator](){return this.entries()}entries(){return this.root.iter()}values(){return new Rfe(this.entries(),([,t])=>t)}mutate(){return new Xl(this.root)}map(t){return new Yl(this.root.map(dh.peek(),t))}filter(t){const r=this.mutate();return this.forEach((n,o)=>{t(n,o)||r.delete(o)}),r.finish()}forEach(t){this.root.forEach(t)}find(t){return this.root.find(t)}withRoot(t){return t===this.root?this:new Yl(t)}}class Xl{constructor(t){this.id=dh.take(),this.root=t}static empty(){const t=dh.peek(),r=Vy.empty(t);return new Xl(r)}static from(t){if(Array.isArray(t))return Xl.fromArray(t);const r=t[Symbol.iterator](),n=Xl.empty();let o=r.next();for(;!o.done;){const[i,s]=o.value;n.set(i,s),o=r.next()}return n}static fromArray(t){const r=Xl.empty();for(let n=0;n=t?r:n;const o=r+n>>>1;if(e[o]===t)return o;t=Gc)return l;if(n===o)return l.balanceTail(u),l;const c=this.getValue(n);return l.balanceChild(t,u,a,c,n)}}removeMostRight(t){const r=this.selfSize,[n,o,i]=this.getChild(r).removeMostRight(t),s=this.toOwned(t);return s.size-=1,s.children[r]=i,i.selfSizeGc)this.rotateRight(r,a,i,s);else if(u.selfSize>Gc)this.rotateLeft(r,u,i,s);else{const l=a.toOwned(t),c=u.toOwned(t),f=r.getKey(cd),d=r.getValue(cd);l.keys.push(this.getKey(i-1)),l.values.push(this.getValue(i-1)),l.keys.push(...r.keys.slice(0,cd)),l.values.push(...r.values.slice(0,cd)),c.keys.unshift(n),c.values.unshift(o),c.keys.unshift(...r.keys.slice(cd+1,Gc)),c.values.unshift(...r.values.slice(cd+1,Gc)),this.keys.splice(i-1,2,f),this.values.splice(i-1,2,d),this.children.splice(i-1,3,l,c),s&&(l.children.push(...r.children.slice(0,cd+1)),c.children.unshift(...r.children.slice(cd+1,Gc+1)),l.updateSize(),c.updateSize())}return this}rotateLeft(t,r,n,o){const i=r.toOwned(this.owner),s=i.keys.shift(),a=i.values.shift(),u=this.getKey(n),l=this.getValue(n);if(t.keys.push(u),t.values.push(l),this.keys[n]=s,this.values[n]=a,this.children[n+1]=i,o){const c=i.children.shift();t.children.push(c);const f=c.size+1;t.size+=f,i.size-=f}}rotateRight(t,r,n,o){const i=r.toOwned(this.owner),s=i.keys.pop(),a=i.values.pop(),u=this.getKey(n-1),l=this.getValue(n-1);if(t.keys.unshift(u),t.values.unshift(l),this.keys[n-1]=s,this.values[n-1]=a,this.children[n-1]=i,o){const c=i.children.pop();t.children.unshift(c);const f=c.size+1;t.size+=f,i.size-=f}}balanceTail(t){const r=this.selfSize,n=this.getChild(r-1),o=t.type===Ju.Internal;n.selfSize===Gc?(t.keys.unshift(this.getKey(r-1)),t.values.unshift(this.getValue(r-1)),t.keys.unshift(...n.keys),t.values.unshift(...n.values),this.keys.splice(r-1,1),this.values.splice(r-1,1),this.children.splice(r-1,1),o&&(t.children.unshift(...n.children),t.size+=n.size+1)):this.rotateRight(t,n,r,o)}balanceHead(t){const r=this.getChild(1),n=t.type===Ju.Internal;r.selfSize===Gc?(t.keys.push(this.getKey(0)),t.values.push(this.getValue(0)),t.keys.push(...r.keys),t.values.push(...r.values),this.keys.splice(0,1),this.values.splice(0,1),this.children.splice(1,1),n&&(t.children.push(...r.children),t.size+=r.size+1)):this.rotateLeft(t,r,0,n)}updateWithSplit(t,r,n,o,i,s){const a=this.toOwned(t);a.keys.splice(s,0,o),a.values.splice(s,0,i),a.children.splice(s,1,r,n);const u=new Uy(t,a.keys.splice(16,16),a.values.splice(16,16),a.children.splice(16,17),0),l=a.keys.pop(),c=a.values.pop();return a.updateSize(),u.updateSize(),[a,u,l,c]}updateSize(){let t=this.selfSize;const r=this.children.length;for(let n=0;n{const[s,a]=i,u=r(a);return Cn(u,a)?i:[s,u]});return this.withRoot(this.itemId,this.hashRoot,o)}[Symbol.iterator](){return this.entries()}clone(){return new gy(this.itemId,this.hashRoot,this.sortedRoot)}entries(){return new D7(new Xb(this.sortedRoot))}values(){return new Rfe(this.entries(),([,t])=>t)}mutate(){return new Bd(this.itemId,this.hashRoot,this.sortedRoot)}map(t){const r=hh.peek(),n=i=>{const[s,a]=i,u=t(a,s);return Cn(a,u)?i:[s,u]},o=this.sortedRoot.map(r,n);return new gy(this.itemId,this.hashRoot,o)}forEach(t){this.sortedRoot.forEach(([r,n])=>{t(n,r)})}find(t){const r=this.sortedRoot.find(([,n])=>t(n));return r?r[1]:void 0}first(){const t=this.entries().next();if(!t.done)return t.value[1]}filter(t){const r=this.mutate();return this.forEach((n,o)=>{t(n,o)||r.delete(o)}),r.finish()}withRoot(t,r,n){return r===this.hashRoot&&n===this.sortedRoot?this:new gy(t,r,n)}};class D7{constructor(t){this.delegate=t}[Symbol.iterator](){return this.clone()}next(){const t=this.delegate.next();return t.done?{done:!0,value:void 0}:{done:!1,value:t.value[1]}}clone(){return new D7(this.delegate.clone())}}class Bd{constructor(t,r,n){this.id=hh.take(),this.itemId=t,this.hashRoot=r,this.sortedRoot=n}static empty(){const t=hh.peek(),r=Vy.empty(t),n=mXe(t);return new Bd(0,r,n)}static from(t){if(Array.isArray(t))return Bd.fromArray(t);const r=Bd.empty(),n=t[Symbol.iterator]();let o=n.next();for(;!o.done;){const[i,s]=o.value;r.set(i,s),o=n.next()}return r}static fromArray(t){const r=Bd.empty();for(let n=0;n{const[i,s]=o,a=r(s);return Cn(a,s)?o:[i,a]}),this):this}finish(){return new MB(this.itemId,this.hashRoot,this.sortedRoot)}}const bXe=(e,t,r)=>{const n=sE(r,e),o=aE(r,e),i=t.position?t.position[0]*n:n*.5,s=e.x+i,a=t.position?t.position[1]*o:o,u=e.y+a;return{x:s,y:u}},Lfe=(e,t,r)=>{const n=iE(e,r);if(!n)return;const i=(e.ports||[]).find(s=>s.id===t);if(!i){Uh.warn(`invalid port id ${JSON.stringify(i)}`);return}return bXe(e,i,n)},ac=e=>e;var Ya;(function(e){e.Unknown="Unknown",e.Edge="Edge",e.EdgeChromium="EdgeChromium",e.Opera="Opera",e.Chrome="Chrome",e.IE="IE",e.Firefox="Firefox",e.Safari="Safari",e.Electron="Electron"})(Ya||(Ya={}));const _Xe=()=>{const e=navigator.userAgent.toLowerCase();if(e.indexOf("electron")>-1)return Ya.Electron;switch(!0){case e.indexOf("edge")>-1:return Ya.Edge;case e.indexOf("edg")>-1:return Ya.EdgeChromium;case(e.indexOf("opr")>-1&&!!window.opr):return Ya.Opera;case(e.indexOf("chrome")>-1&&!!window.chrome):return Ya.Chrome;case e.indexOf("trident")>-1:return Ya.IE;case e.indexOf("firefox")>-1:return Ya.Firefox;case e.indexOf("safari")>-1:return Ya.Safari;default:return Ya.Unknown}},EXe=navigator.userAgent.includes("Macintosh"),SXe=e=>EXe?e.metaKey:e.ctrlKey,jfe=e=>e.shiftKey||SXe(e),zg=(e,t,r)=>({x:r[0]*e+r[2]*t+r[4],y:r[1]*e+r[3]*t+r[5]}),Qb=(e,t,r)=>{const[n,o,i,s,a,u]=r;return{x:((e-a)*s-(t-u)*i)/(n*s-o*i),y:((e-a)*o-(t-u)*n)/(o*i-n*s)}},wXe=(e,t,r)=>{const[n,o,i,s]=r,a=s*e/(n*s-o*i)+i*t/(o*i-n*s),u=o*e/(o*i-n*s)+n*t/(n*s-o*i);return{x:a,y:u}},lZ=(e,t,r)=>{if(!r)return{x:e,y:t};const[n,o,i,s]=r;return zg(e,t,[n,o,i,s,0,0])},zfe=(e,t,r)=>{const{rect:n}=r,o=e-n.left,i=t-n.top;return Qb(o,i,r.transformMatrix)},kXe=(e,t,r)=>{const{x:n,y:o}=zg(e,t,r.transformMatrix),{rect:i}=r;return{x:n+i.left,y:o+i.top}},AXe=(e,t,r)=>{const n=kXe(e,t,r),{rect:o}=r;return{x:n.x-o.left,y:n.y-o.top}};function _w(e,t){e.update(t,r=>r.shallow())}const TXe=e=>{const{parentNode:t,clientX:r,clientY:n,graphConfig:o,viewport:i}=e;let s=1/0,a;if(!t.ports)return;const u=zfe(r,n,i);return t.ports.forEach(l=>{if(Hfe(o,Object.assign(Object.assign({},e),{model:l}))){const c=Lfe(t,l.id,o);if(!c)return;const f=u.x-c.x,d=u.y-c.y,h=f*f+d*d;h{const r=e.getPortConfig(t.model);return r?r.getIsConnectable(t):!1},ul=()=>e=>e.mapNodes(t=>t.update(r=>{var n;const o=Object.assign(Object.assign({},r),{ports:(n=r.ports)===null||n===void 0?void 0:n.map(Dn(ea(is.Default)))});return Dn(ea(Do.Default))(o)})).mapEdges(t=>t.update(Dn(ea(xi.Default)))),xXe=(e,t)=>{if(C7(t))return ac;const r=jfe(e);return Jd(t)&&!r?ac:n=>{const o=r?i=>i.id!==t.id?Jd(i):e.button===UA.Secondary?!0:!Jd(t):i=>i.id===t.id;return n.selectNodes(o,t.id)}},IXe=e=>{var t;return`node-container-${(t=e.name)!==null&&t!==void 0?t:"unnamed"}-${e.id}`},NXe=(e,t)=>`port-${t.name}-${t.id}-${e.name}-${e.id}`,CXe=(e,t)=>`node:${e}:${t.id}`,RXe=(e,t,r)=>`port:${e}:${t.id}:${r.id}`,OXe=(e,t)=>`edge:${e}:${t.id}`;function F7(e){Object.defineProperty(e,"__preventSpread",{enumerable:!0,configurable:!1,get(){document.currentScript&&Uh.error(`${e.constructor.name} is a class, which should not be used in the spread syntax or argument of Object.assign`)}})}class ug{get id(){return this.inner.id}get automationId(){return this.inner.automationId}get source(){return this.inner.source}get target(){return this.inner.target}get sourcePortId(){return this.inner.sourcePortId}get targetPortId(){return this.inner.targetPortId}get status(){return this.inner.status}get data(){return this.inner.data}constructor(t){this.inner=t,F7(this)}static fromJSON(t){return new ug(t)}updateStatus(t){return this.update(Dn(t))}update(t){const r=t(this.inner);return r===this.inner?this:new ug(r)}shallow(){return new ug(this.inner)}toJSON(){return this.inner}}const $fe=Object.is;function DXe(e,t){const r=[];let n=!0;for(let o=0;on.id===t)}link({prev:t,next:r}){return t===this.prev&&r===this.next?this:new ru(this.inner,this.portPositionCache,t??this.prev,r??this.next)}updateStatus(t){return this.update(Dn(t))}update(t){const r=t(this.inner);return r===this.inner?this:new ru(r,new Map,this.prev,this.next)}updateData(t){return this.data?this.update(r=>{const n=t(r.data);return n===r.data?r:Object.assign(Object.assign({},r),{data:n})}):this}getPortPosition(t,r){let n=this.portPositionCache.get(t);return n||(n=Lfe(this.inner,t,r),this.portPositionCache.set(t,n)),n}hasPort(t){var r;return!!(!((r=this.inner.ports)===null||r===void 0)&&r.find(n=>n.id===t))}updatePositionAndSize(t){const{x:r,y:n,width:o,height:i}=t,s=Object.assign(Object.assign({},this.inner),{x:r,y:n,width:o??this.inner.width,height:i??this.inner.height});return new ru(s,new Map,this.prev,this.next)}updatePorts(t){if(!this.inner.ports)return this;const r=DXe(this.inner.ports,t),n=this.inner.ports===r?this.inner:Object.assign(Object.assign({},this.inner),{ports:r});return n===this.inner?this:new ru(n,new Map,this.prev,this.next)}invalidCache(){return new ru(this.inner,new Map,this.prev,this.next)}toJSON(){return this.inner}}class Fh{constructor(t){this.nodes=t.nodes,this.edges=t.edges,this.groups=t.groups,this.head=t.head,this.tail=t.tail,this.edgesBySource=t.edgesBySource,this.edgesByTarget=t.edgesByTarget,this.selectedNodes=t.selectedNodes,F7(this)}static empty(){return new Fh({nodes:MB.empty(),edges:Yl.empty(),groups:[],head:void 0,tail:void 0,edgesBySource:Yl.empty(),edgesByTarget:Yl.empty(),selectedNodes:new Set})}static fromJSON(t){var r;const n=MB.empty().mutate(),o=Yl.empty().mutate();let i,s;if(t.nodes.length===0)i=void 0,s=void 0;else if(t.nodes.length===1){const l=t.nodes[0];n.set(l.id,ru.fromJSON(l,void 0,void 0)),i=l.id,s=l.id}else{const l=t.nodes[0],c=t.nodes[1],f=t.nodes[t.nodes.length-1];i=l.id,s=f.id,n.set(l.id,ru.fromJSON(l,void 0,c.id));let d=t.nodes[0];if(t.nodes.length>2)for(let h=1;ha.update(r));if(i===this.nodes)return this;const s=this.edges.mutate();return(n=this.edgesBySource.get(t))===null||n===void 0||n.forEach(a=>{a.forEach(u=>{_w(s,u)})}),(o=this.edgesByTarget.get(t))===null||o===void 0||o.forEach(a=>{a.forEach(u=>{_w(s,u)})}),this.merge({nodes:i,edges:s.finish()})}updateNodeData(t,r){return this.merge({nodes:this.nodes.update(t,n=>n.updateData(r))})}updatePort(t,r,n){const o=this.nodes.update(t,i=>i.updatePorts(s=>s.id===r?n(s):s));return this.merge({nodes:o})}insertNode(t){const r=this.nodes.mutate().set(t.id,ru.fromJSON(t,this.tail,void 0));return this.tail&&!this.nodes.has(t.id)&&r.update(this.tail,n=>n.link({next:t.id})),this.merge({nodes:r.finish(),head:this.nodes.size===0?t.id:this.head,tail:t.id})}deleteItems(t){var r;const n=new Set,o=this.nodes.mutate();let i=this.head===void 0?void 0:this.nodes.get(this.head),s=i,a;const u=this.edgesBySource.mutate(),l=this.edgesByTarget.mutate();for(;s!==void 0;){const f=s.next?this.nodes.get(s.next):void 0;!((r=t.node)===null||r===void 0)&&r.call(t,s.inner)?(o.update(s.id,d=>d.link({prev:a==null?void 0:a.id}).update(h=>fp(Do.Editing)(h.status)?h:Object.assign(Object.assign({},h),{status:Do.Default}))),a=s):(o.delete(s.id),u.delete(s.id),l.delete(s.id),n.add(s.id),a&&o.update(a.id,d=>d.link({next:s==null?void 0:s.next})),f&&o.update(f.id,d=>d.link({prev:a==null?void 0:a.id})),s===i&&(i=f)),s=f}const c=this.edges.mutate();return this.edges.forEach(f=>{var d,h;!n.has(f.source)&&!n.has(f.target)&&(!((h=(d=t.edge)===null||d===void 0?void 0:d.call(t,f))!==null&&h!==void 0)||h)?c.update(f.id,g=>g.update(Dn(ea(xi.Default)))):(c.delete(f.id),Ew(u,f.id,f.source,f.sourcePortId),Ew(l,f.id,f.target,f.targetPortId))}),this.merge({nodes:o.finish(),edges:c.finish(),head:i==null?void 0:i.id,tail:a==null?void 0:a.id,edgesBySource:u.finish(),edgesByTarget:l.finish()})}insertEdge(t){if(this.isEdgeExist(t.source,t.sourcePortId,t.target,t.targetPortId)||!this.nodes.has(t.source)||!this.nodes.has(t.target))return this;const r=cZ(this.edgesBySource,t.id,t.source,t.sourcePortId),n=cZ(this.edgesByTarget,t.id,t.target,t.targetPortId);return this.merge({nodes:this.nodes.update(t.source,o=>o.invalidCache()).update(t.target,o=>o.invalidCache()),edges:this.edges.set(t.id,ug.fromJSON(t)).map(o=>o.updateStatus(ea(xi.Default))),edgesBySource:r,edgesByTarget:n})}updateEdge(t,r){return this.merge({edges:this.edges.update(t,n=>n.update(r))})}deleteEdge(t){const r=this.edges.get(t);return r?this.merge({edges:this.edges.delete(t),edgesBySource:Ew(this.edgesBySource,r.id,r.source,r.sourcePortId),edgesByTarget:Ew(this.edgesByTarget,r.id,r.target,r.targetPortId)}):this}updateNodesPositionAndSize(t){const r=new Set,n=this.nodes.mutate(),o=this.edges.mutate();return t.forEach(i=>{var s,a;r.add(i.id),n.update(i.id,u=>u.updatePositionAndSize(i)),(s=this.edgesBySource.get(i.id))===null||s===void 0||s.forEach(u=>{u.forEach(l=>{_w(o,l)})}),(a=this.edgesByTarget.get(i.id))===null||a===void 0||a.forEach(u=>{u.forEach(l=>{_w(o,l)})})}),this.merge({nodes:n.finish(),edges:o.finish()})}mapNodes(t){return this.merge({nodes:this.nodes.map(t)})}mapEdges(t){return this.merge({edges:this.edges.map(t)})}selectNodes(t,r){const n=new Set,o=this.nodes.map(a=>{const u=t(a.inner);return u&&n.add(a.id),a.updatePorts(Dn(ea(is.Default))).updateStatus(rXe(u?Do.Selected:Do.UnconnectedToSelected))}).mutate();if(n.size===0)this.nodes.forEach(a=>o.update(a.id,u=>u.updateStatus(ea(Do.Default))));else if(r){const a=o.get(r);a&&(o.delete(r),o.set(a.id,a))}const i=a=>{o.update(a,u=>u.updateStatus(ea(Jd(u)?Do.Selected:Do.ConnectedToSelected)))},s=n.size?this.edges.map(a=>{let u=xi.UnconnectedToSelected;return n.has(a.source)&&(i(a.target),u=xi.ConnectedToSelected),n.has(a.target)&&(i(a.source),u=xi.ConnectedToSelected),a.updateStatus(ea(u))}):this.edges.map(a=>a.updateStatus(ea(xi.Default)));return this.merge({nodes:o.finish(),edges:s,selectedNodes:n})}getEdgesBySource(t,r){var n;return(n=this.edgesBySource.get(t))===null||n===void 0?void 0:n.get(r)}getEdgesByTarget(t,r){var n;return(n=this.edgesByTarget.get(t))===null||n===void 0?void 0:n.get(r)}isPortConnectedAsSource(t,r){var n,o;return((o=(n=this.getEdgesBySource(t,r))===null||n===void 0?void 0:n.size)!==null&&o!==void 0?o:0)>0}isPortConnectedAsTarget(t,r){var n,o;return((o=(n=this.getEdgesByTarget(t,r))===null||n===void 0?void 0:n.size)!==null&&o!==void 0?o:0)>0}shallow(){return this.merge({})}toJSON(){const t=[];let r=this.head&&this.nodes.get(this.head);for(;r;)t.push(r.inner),r=r.next&&this.nodes.get(r.next);const n=Array.from(this.edges.values()).map(o=>o.inner);return{nodes:t,edges:n}}isEdgeExist(t,r,n,o){const i=this.getEdgesBySource(t,r),s=this.getEdgesByTarget(n,o);if(!i||!s)return!1;let a=!1;return i.forEach(u=>{s.has(u)&&(a=!0)}),a}merge(t){var r,n,o,i,s,a,u,l;return new Fh({nodes:(r=t.nodes)!==null&&r!==void 0?r:this.nodes,edges:(n=t.edges)!==null&&n!==void 0?n:this.edges,groups:(o=t.groups)!==null&&o!==void 0?o:this.groups,head:(i=t.head)!==null&&i!==void 0?i:this.head,tail:(s=t.tail)!==null&&s!==void 0?s:this.tail,edgesBySource:(a=t.edgesBySource)!==null&&a!==void 0?a:this.edgesBySource,edgesByTarget:(u=t.edgesByTarget)!==null&&u!==void 0?u:this.edgesByTarget,selectedNodes:(l=t.selectedNodes)!==null&&l!==void 0?l:this.selectedNodes})}}function cZ(e,t,r,n){return e.has(r)?e.update(r,o=>{const i=o.get(n);return new Map(o).set(n,(i?new Set(i):new Set).add(t))}):e.set(r,new Map([[n,new Set([t])]]))}function fZ(e,t,r,n){e.has(r)?e.update(r,o=>{let i=o.get(n);return i||(i=new Set,o.set(n,i)),i.add(t),o}):e.set(r,new Map([[n,new Set([t])]]))}function Ew(e,t,r,n){return e.has(r)?e.update(r,o=>{const i=o.get(n);if(!i)return o;const s=new Set(i);return s.delete(t),new Map(o).set(n,s)}):e}var dZ;(function(e){e.Pan="Pan",e.Select="Select"})(dZ||(dZ={}));var Qi;(function(e){e.Default="default",e.Dragging="dragging",e.Panning="panning",e.MultiSelect="multiSelect",e.Connecting="connecting",e.AddingNode="addingNode"})(Qi||(Qi={}));function hZ(e,t,r){return e>r?e:t{const r=e.maxXt.maxX,o=e.minY>t.maxY,i=e.maxY{const{minX:r,minY:n,maxX:o,maxY:i}=e,{x:s,y:a}=t;return s>r&&sn&&ae===r?()=>Number.MAX_SAFE_INTEGER:o=>(n-t)/(r-e)*o+(t*r-n*e)/(r-e),BXe=(e,t)=>{if(!e||e.length!==t.length)return!1;for(let r=0;r{const i=t?Array.isArray(t)?t:t.apply(void 0,o):o;return BXe(r,i)||(r=i,n=e.apply(void 0,o)),n}}var fu;(function(e){e[e.X=0]="X",e[e.Y=1]="Y",e[e.XY=2]="XY"})(fu||(fu={}));const rl=e=>!!e.rect,Pfe=(e,t)=>{const{x:r,y:n}=e,{width:o,height:i}=Cf(e,t);return{x:r,y:n,width:o,height:i}},LXe=(e,t,r)=>qfe(Pfe(e,r),t),qfe=(e,t)=>{const{x:r,y:n,width:o,height:i}=e;return Sw({x:r,y:n},t)||Sw({x:r+o,y:n},t)||Sw({x:r+o,y:n+i},t)||Sw({x:r,y:n+i},t)},Sw=(e,t)=>{const{x:r,y:n}=AXe(e.x,e.y,t),{height:o,width:i}=t.rect;return r>0&&r0&&n{const n=[];return e.forEach(o=>{LXe(o,t,r)&&n.push(o.inner)}),n},Wfe=(e,t)=>{const r=[],n=HXe(t);return e.forEach(o=>{zXe(o,n)&&r.push(o.inner)}),r},zXe=(e,t)=>B0(t,e),HXe=e=>{if(!rl(e))return{minX:0,minY:0,maxX:0,maxY:0};const{rect:t,transformMatrix:r}=e,n=0,o=0,i=t.width,s=t.height,a=Qb(n-t.width,o-t.height,r),u=Qb(i+t.width,s+t.height,r);return{minX:a.x,minY:a.y,maxX:u.x,maxY:u.y}},$Xe=e=>e?typeof e=="number"?{top:e,right:e,bottom:e,left:e}:Object.assign({top:0,right:0,bottom:0,left:0},e):{top:0,right:0,bottom:0,left:0},LB=({scale:e,anchor:t,direction:r,limitScale:n})=>o=>{const i=n(e)/o.transformMatrix[0],s=n(e)/o.transformMatrix[3],{x:a,y:u}=t,l=a*(1-i),c=u*(1-s);let f;switch(r){case fu.X:f=[e,0,0,o.transformMatrix[3],o.transformMatrix[4]*i+l,o.transformMatrix[5]];break;case fu.Y:f=[o.transformMatrix[0],0,0,e,o.transformMatrix[4],o.transformMatrix[5]*s+c];break;case fu.XY:default:f=[e,0,0,e,o.transformMatrix[4]*i+l,o.transformMatrix[5]*s+c]}return Object.assign(Object.assign({},o),{transformMatrix:f})},jB=({scale:e,anchor:t,direction:r,limitScale:n})=>e===1?ac:o=>{let i;switch(r){case fu.X:return LB({anchor:t,direction:r,limitScale:n,scale:o.transformMatrix[0]*e})(o);case fu.Y:return LB({anchor:t,direction:r,limitScale:n,scale:o.transformMatrix[3]*e})(o);case fu.XY:default:{const s=n(o.transformMatrix[0]*e),a=n(o.transformMatrix[3]*e),u=s/o.transformMatrix[0],l=a/o.transformMatrix[3],{x:c,y:f}=t,d=c*(1-u),h=f*(1-l);i=[s,0,0,a,o.transformMatrix[4]*u+d,o.transformMatrix[5]*l+h]}}return Object.assign(Object.assign({},o),{transformMatrix:i})},zB=(e,t)=>e===0&&t===0?ac:r=>Object.assign(Object.assign({},r),{transformMatrix:[r.transformMatrix[0],r.transformMatrix[1],r.transformMatrix[2],r.transformMatrix[3],r.transformMatrix[4]+e,r.transformMatrix[5]+t]}),PXe=(e,t)=>e===0&&t===0?ac:r=>{const[n,o,i,s]=r.transformMatrix;return Object.assign(Object.assign({},r),{transformMatrix:[n,o,i,s,r.transformMatrix[4]+n*e+o*t,r.transformMatrix[5]+i*e+s*t]})},y9=(e,t,r)=>{let n=1/0,o=1/0,i=1/0,s=1/0,a=-1/0,u=-1/0;return(r===void 0?d=>e.nodes.forEach(d):d=>r==null?void 0:r.forEach(h=>{const g=e.nodes.get(h);g&&d(g)}))(d=>{const{width:h,height:g}=Cf(d,t);d.xa&&(a=d.x+h),d.y+g>u&&(u=d.y+g),h{let{width:r,height:n}=e,{width:o,height:i}=t;if(r>o){const s=r;r=o,o=s}if(n>i){const s=n;n=i,i=s}return{nodeMinVisibleWidth:r,nodeMinVisibleHeight:n,nodeMaxVisibleWidth:o,nodeMaxVisibleHeight:i}},Kfe=(e,{width:t,height:r})=>{const{nodeMinVisibleWidth:n,nodeMinVisibleHeight:o,nodeMaxVisibleWidth:i,nodeMaxVisibleHeight:s}=qXe(e);let a=0,u=0,l=1/0,c=1/0;return t&&(a=n/t,l=i/t),r&&(u=o/r,c=s/r),{minScaleX:a,minScaleY:u,maxScaleX:l,maxScaleY:c}},WXe=e=>{const{data:t,graphConfig:r,disablePan:n,direction:o,rect:i}=e,{nodes:s}=t;if(s.size===0)return[1,0,0,1,0,0];const{minNodeWidth:a,minNodeHeight:u,minNodeX:l,minNodeY:c,maxNodeX:f,maxNodeY:d}=y9(t,r),{minScaleX:h,minScaleY:g,maxScaleX:v,maxScaleY:y}=Kfe(e,{width:a,height:u}),E=$Xe(e.spacing),{width:_,height:S}=i,b=_/(f-l+E.left+E.right),A=S/(d-c+E.top+E.bottom),x=o===fu.Y?Math.min(Math.max(h,g,A),v,y):Math.min(Math.max(h,g,Math.min(b,A)),y,y),T=o===fu.XY?Math.min(Math.max(h,b),v):x,N=o===fu.XY?Math.min(Math.max(g,A),y):x;if(n)return[T,0,0,N,0,0];const I=-T*(l-E.left),R=-N*(c-E.top);if(jXe(t.nodes,{rect:i,transformMatrix:[T,0,0,N,I,R]},r).length>0)return[T,0,0,N,I,R];let L=t.nodes.first();return L&&t.nodes.forEach(M=>{L.y>M.y&&(L=M)}),[T,0,0,N,-T*(L.x-E.left),-N*(L.y-E.top)]},KXe=(e,t,r,n,o)=>{const i=r-e,s=n-t,a=Math.min(o.rect.width/i,o.rect.height/s),u=-a*(e+i/2)+o.rect.width/2,l=-a*(t+s/2)+o.rect.height/2;return Object.assign(Object.assign({},o),{transformMatrix:[a,0,0,a,u,l]})};function Gfe(e,t){const r=t.clientX-e.left,n=t.clientY-e.top;return{x:r,y:n}}const Vfe=(e,t,r,n,o)=>{if(!r)return ac;const{width:i,height:s}=r;return!(e<0||e>i||t<0||t>s)&&!n?ac:u=>{const l=o?o.x-e:i/2-e,c=o?o.y-t:s/2-t;return Object.assign(Object.assign({},u),{transformMatrix:[u.transformMatrix[0],u.transformMatrix[1],u.transformMatrix[2],u.transformMatrix[3],u.transformMatrix[4]+l,u.transformMatrix[5]+c]})}},Ufe=(e,t)=>{const{minNodeWidth:r,minNodeHeight:n}=y9(e,t.graphConfig),{minScaleX:o,minScaleY:i}=Kfe(t,{width:r,height:n});return Math.max(o,i)},GXe=MXe(y9),VXe=({data:e,graphConfig:t,rect:r,transformMatrix:n,canvasBoundaryPadding:o,groupPadding:i})=>{var s,a,u,l;const c=GXe(e,t),f=lZ(c.minNodeX-((i==null?void 0:i.left)||0),c.minNodeY-((i==null?void 0:i.top)||0),n);f.x-=(s=o==null?void 0:o.left)!==null&&s!==void 0?s:0,f.y-=(a=o==null?void 0:o.top)!==null&&a!==void 0?a:0;const d=lZ(c.maxNodeX+((i==null?void 0:i.right)||0),c.maxNodeY+((i==null?void 0:i.bottom)||0),n);d.x+=(u=o==null?void 0:o.right)!==null&&u!==void 0?u:0,d.y+=(l=o==null?void 0:o.bottom)!==null&&l!==void 0?l:0;let h=-f.x||0,g=-f.y||0,v=r.width-d.x||0,y=r.height-d.y||0;if(v({present:t,past:{next:e.past,value:r(e.present)},future:null}),UXe=e=>e.past?{present:e.past.value,past:e.past.next,future:{next:e.future,value:e.present}}:e,YXe=e=>e.future?{present:e.future.value,past:{next:e.past,value:e.present},future:e.future.next}:e,HB=e=>({present:e,future:null,past:null}),M0=[1,0,0,1,0,0],XXe={top:0,right:0,bottom:0,left:0},QXe={width:oZ,height:oZ},ZXe={width:iZ,height:iZ},JXe={features:fXe,graphConfig:Lg.default().build(),canvasBoundaryPadding:XXe,nodeMinVisibleSize:QXe,nodeMaxVisibleSize:ZXe},eQe=Yfe({});function Yfe(e){const{data:t,transformMatrix:r,settings:n}=e;return{settings:Object.assign(Object.assign({},JXe),n),data:HB(t??Fh.empty()),viewport:{rect:void 0,transformMatrix:r??M0},behavior:Qi.Default,dummyNodes:jg(),alignmentLines:[],activeKeys:new Set,selectBoxPosition:Cfe(),connectState:void 0}}const tQe={sourceNode:void 0,sourcePort:void 0,targetNode:void 0,targetPort:void 0,movingPoint:{x:0,y:0}};new Proxy(Fh.empty(),{get:(e,t)=>(console.warn("Default graph data value is being used. Please check if you forget rendering Graph component"),Reflect.get(e,t))});const Xfe=k.createContext({});class rQe{constructor(){this.listenersRef=k.createRef(),this.externalHandlerRef=k.createRef(),this.queue=[],this.working=!1}trigger(t){this.working?this.queue.push(t):(this.working=!0,li.unstable_batchedUpdates(()=>{this.callHandlers(t);for(let r=0;r{this.dispatchDelegate(n,o)},this.state=t,this.UNSAFE_latestState=t,this.dispatchDelegate=r}setMouseClientPosition(t){this.mouseClientPoint=t}unsetMouseClientPosition(){this.mouseClientPoint=void 0}getMouseClientPosition(){return this.mouseClientPoint}getEnabledFeatures(){return this.state.settings.features}getBehavior(){return this.behavior}setBehavior(t){this.behavior=t}getData(){return this.state.data.present}getGlobalEventTarget(){var t,r;return(r=(t=this.getGlobalEventTargetDelegate)===null||t===void 0?void 0:t.call(this))!==null&&r!==void 0?r:window}}const $B=()=>{},oQe={sourceNode:void 0,sourcePort:void 0,targetNode:void 0,targetPort:void 0},B7=k.createContext(oQe);B7.displayName="ConnectingStateContext";const iQe=k.createContext([]),sQe=k.createContext(new nQe(eQe,$B));var jt;(function(e){e.Click="[Node]Click",e.DoubleClick="[Node]DoubleClick",e.MouseDown="[Node]MouseDown",e.MouseUp="[Node]MouseUp",e.MouseEnter="[Node]MouseEnter",e.MouseLeave="[Node]MouseLeave",e.MouseOver="[Node]MouseOver",e.MouseOut="[Node]MouseOut",e.MouseMove="[Node]MouseMove",e.ContextMenu="[Node]ContextMenu",e.Drag="[Node]Drag",e.DragStart="[Node]DragStart",e.DragEnd="[Node]DragEnd",e.PointerDown="[Node]PointerDown",e.PointerEnter="[Node]PointerEnter",e.PointerMove="[Node]PointerMove",e.PointerLeave="[Node]PointerLeave",e.PointerUp="[Node]PointerUp",e.Resizing="[Node]Resizing",e.ResizingStart="[Node]ResizingStart",e.ResizingEnd="[Node]ResizingEnd",e.KeyDown="[Node]KeyDown",e.Select="[Node]Select",e.SelectAll="[Node]SelectAll",e.Centralize="[Node]Centralize",e.Locate="[Node]Locate",e.Add="[Node]Add"})(jt||(jt={}));var fn;(function(e){e.Click="[Edge]Click",e.DoubleClick="[Edge]DoubleClick",e.MouseEnter="[Edge]MouseEnter",e.MouseLeave="[Edge]MouseLeave",e.MouseOver="[Edge]MouseOver",e.MouseOut="[Edge]MouseOut",e.MouseMove="[Edge]MouseMove",e.MouseDown="[Edge]MouseDown",e.MouseUp="[Edge]MouseUp",e.ContextMenu="[Edge]ContextMenu",e.ConnectStart="[Edge]ConnectStart",e.ConnectMove="[Edge]ConnectMove",e.ConnectEnd="[Edge]ConnectEnd",e.ConnectNavigate="[Edge]ConnectNavigate",e.Add="[Edge]Add"})(fn||(fn={}));var on;(function(e){e.Click="[Port]Click",e.DoubleClick="[Port]DoubleClick",e.MouseDown="[Port]MouseDown",e.PointerDown="[Port]PointerDown",e.PointerUp="[Port]PointerUp",e.PointerEnter="[Port]PointerEnter",e.PointerLeave="[Port]PointerLeave",e.MouseUp="[Port]MouseUp",e.MouseEnter="[Port]MouseEnter",e.MouseLeave="[Port]MouseLeave",e.MouseOver="[Port]MouseOver",e.MouseOut="[Port]MouseOut",e.MouseMove="[Port]MouseMove",e.ContextMenu="[Port]ContextMenu",e.KeyDown="[Port]KeyDown",e.Focus="[Port]Focus",e.Blur="[Port]Blur"})(on||(on={}));var rr;(function(e){e.Click="[Canvas]Click",e.DoubleClick="[Canvas]DoubleClick",e.MouseDown="[Canvas]MouseDown",e.MouseUp="[Canvas]MouseUp",e.MouseEnter="[Canvas]MouseEnter",e.MouseLeave="[Canvas]MouseLeave",e.MouseOver="[Canvas]MouseOver",e.MouseOut="[Canvas]MouseOut",e.MouseMove="[Canvas]MouseMove",e.ContextMenu="[Canvas]ContextMenu",e.DragStart="[Canvas]DragStart",e.Drag="[Canvas]Drag",e.DragEnd="[Canvas]DragEnd",e.Pan="[Canvas]Pan",e.Focus="[Canvas]Focus",e.Blur="[Canvas]Blur",e.Zoom="[Canvas]Zoom",e.Pinch="[Canvas]Pinch",e.KeyDown="[Canvas]KeyDown",e.KeyUp="[Canvas]KeyUp",e.SelectStart="[Canvas]SelectStart",e.SelectMove="[Canvas]SelectMove",e.SelectEnd="[Canvas]SelectEnd",e.UpdateNodeSelectionBySelectBox="[Canvas]UpdateNodeSelectionBySelectBox",e.MouseWheelScroll="[Canvas]MouseWheelScroll",e.DraggingNodeFromItemPanel="[Canvas]DraggingNodeFromItemPanel",e.DraggingNodeFromItemPanelStart="[Canvas]DraggingNodeFromItemPanelStart",e.DraggingNodeFromItemPanelEnd="[Canvas]DraggingNodeFromItemPanelEnd",e.ViewportResize="[Canvas]ViewportResize",e.Navigate="[Canvas]Navigate",e.VirtualizationRecalculated="[Canvas]VirtualizationRecalculated",e.ResetSelection="[Canvas]ResetSelection",e.Copy="[Canvas]Copy",e.Paste="[Canvas]Paste",e.Delete="[Canvas]Delete",e.Undo="[Canvas]Undo",e.Redo="[Canvas]Redo",e.ScrollIntoView="[Canvas]ScrollIntoView",e.ResetUndoStack="[Canvas]ResetUndoStack",e.ResetViewport="[Canvas]ResetViewport",e.ZoomTo="[Canvas]ZoomTo",e.ZoomToFit="[Canvas]ZoomToFit",e.SetData="[Canvas]SetData",e.UpdateData="[Canvas]UpdateData",e.ScrollTo="[Canvas]ScrollTo",e.UpdateSettings="[Canvas]UpdateSettings"})(rr||(rr={}));var PB;(function(e){e.ScrollStart="[ScrollBar]ScrollStart",e.Scroll="[ScrollBar]Scroll",e.ScrollEnd="[ScrollBar]ScrollEnd"})(PB||(PB={}));var qB;(function(e){e.PanStart="[Minimap]PanStart",e.Pan="[Minimap]Pan",e.PanEnd="[Minimap]PanEnd",e.Click="[Minimap]Click"})(qB||(qB={}));var XA;(function(e){e.Open="[ContextMenu]Open",e.Close="[ContextMenu]Close"})(XA||(XA={}));function aQe(){try{const e=document.createElement("iframe");e.src="#",document.body.appendChild(e);const{contentDocument:t}=e;if(!t)throw new Error("Fail to create iframe");t.documentElement.innerHTML=dVe.sanitize("a",{RETURN_TRUSTED_TYPE:!0});const n=t.body.firstElementChild.offsetHeight;return document.body.removeChild(e),n}catch(e){return Uh.error("failed to calculate scroll line height",e),16}}aQe();const uQe={height:0,width:0,x:0,y:0,bottom:0,left:0,right:0,top:0,toJSON(){return this}},lQe=k.createContext({viewport:{rect:uQe,transformMatrix:M0},renderedArea:{minX:0,minY:0,maxX:0,maxY:0},visibleArea:{minX:0,minY:0,maxX:0,maxY:0},renderedNodes:new Set,renderedEdges:new Set,timestamp:0});function dp(){return k.useContext(cXe)}function cQe(){return k.useContext(sQe)}function fQe(){return k.useContext(iQe)}function dQe(){return k.useContext(B7)}function Qfe(){return k.useContext(lQe)}function hQe(e,t,r){let n=!1,o,i;const s=(...a)=>{o=a,n||(n=!0,i=t(()=>{n=!1,li.unstable_batchedUpdates(()=>{e.apply(null,o)})}))};return s.cancel=()=>{r(i)},s}const pQe=e=>hQe(e,requestAnimationFrame,cancelAnimationFrame);class gQe{constructor(t,r){this.onMove=$B,this.onEnd=$B,this.lastEvent=null,this.startX=0,this.startY=0,this.prevClientX=0,this.prevClientY=0,this.onMouseUp=n=>{this.lastEvent=n,this.doOnMouseUp(n),this.lastEvent=null},this.onMouseMove=n=>{this.lastEvent=n,n.preventDefault(),this.mouseMove(n)},this.eventProvider=t,this.getPositionFromEvent=r,this.mouseMove=pQe(n=>{this.doOnMouseMove(n)})}start(t){this.lastEvent=t;const{x:r,y:n}=this.getPositionFromEvent(t);this.startX=r,this.startY=n,this.prevClientX=r,this.prevClientY=n,this.eventProvider.on("move",this.onMouseMove),this.eventProvider.on("end",this.onMouseUp)}stop(){this.mouseMove.cancel(),this.eventProvider.off("move",this.onMouseMove),this.eventProvider.off("end",this.onMouseUp)}getDelta(t,r){const n=t-this.prevClientX,o=r-this.prevClientY;return this.prevClientX=t,this.prevClientY=r,{x:n,y:o}}getTotalDelta(t){const r=t.clientX-this.startX,n=t.clientY-this.startY;return{x:r,y:n}}doOnMouseMove(t){const{x:r,y:n}=this.getPositionFromEvent(t),{x:o,y:i}=this.getDelta(r,n),{x:s,y:a}=this.getTotalDelta(t);this.onMove({clientX:r,clientY:n,dx:o,dy:i,totalDX:s,totalDY:a,e:t})}doOnMouseUp(t){t.preventDefault();const{x:r,y:n}=this.getTotalDelta(t);this.onEnd({totalDX:r,totalDY:n,e:t}),this.stop()}}function vQe(e){return{x:e.clientX,y:e.clientY}}_Xe(),Ya.Safari;const mQe=(e,t)=>{switch(t.type){case jt.DragStart:return Qi.Dragging;case fn.ConnectStart:return Qi.Connecting;case rr.SelectStart:return Qi.MultiSelect;case rr.DragStart:return Qi.Panning;case rr.DraggingNodeFromItemPanelStart:return Qi.AddingNode;case jt.DragEnd:case fn.ConnectEnd:case rr.SelectEnd:case rr.DragEnd:case rr.DraggingNodeFromItemPanelEnd:return Qi.Default;default:return e}},yQe=(e,t)=>{const r=mQe(e.behavior,t);return r===e.behavior?e:Object.assign(Object.assign({},e),{behavior:r})};function uE(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{switch(t.type){case rr.Paste:{const{position:r}=t;if(!rl(e.viewport))return e;const{rect:n}=e.viewport;let o=t.data.nodes;if(r&&n){const s=zfe(r.x,r.y,e.viewport);let a,u;o=o.map((l,c)=>(c===0&&(a=s.x-l.x,u=s.y-l.y),Object.assign(Object.assign({},l),{x:a?l.x-YA+a:l.x,y:u?l.y-YA+u:l.y,state:Do.Selected})))}let i=ul()(e.data.present);return o.forEach(s=>{i=i.insertNode(s)}),t.data.edges.forEach(s=>{i=i.insertEdge(s)}),Object.assign(Object.assign({},e),{data:hf(e.data,i)})}case rr.Delete:return e.settings.features.has(it.Delete)?Object.assign(Object.assign({},e),{data:hf(e.data,e.data.present.deleteItems({node:rZ,edge:rZ}),ul())}):e;case rr.Undo:return Object.assign(Object.assign({},e),{data:UXe(e.data)});case rr.Redo:return Object.assign(Object.assign({},e),{data:YXe(e.data)});case rr.KeyDown:{const r=t.rawEvent.key.toLowerCase();if(e.activeKeys.has(r))return e;const n=new Set(e.activeKeys);return n.add(r),Object.assign(Object.assign({},e),{activeKeys:n})}case rr.KeyUp:{const r=t.rawEvent.key.toLowerCase();if(!e.activeKeys.has(r))return e;const n=new Set(e.activeKeys);return n.delete(r),Object.assign(Object.assign({},e),{activeKeys:n})}case rr.SetData:return Object.assign(Object.assign({},e),{data:HB(t.data)});case rr.UpdateData:return Object.assign(Object.assign({},e),{data:t.shouldRecord?hf(e.data,t.updater(e.data.present)):Object.assign(Object.assign({},e.data),{present:t.updater(e.data.present)})});case rr.ResetUndoStack:return Object.assign(Object.assign({},e),{data:HB(e.data.present)});case rr.UpdateSettings:{const r=uE(t,["type"]);return Object.assign(Object.assign({},e),{settings:Object.assign(Object.assign({},e.settings),r)})}default:return e}};function Zfe(e){return t=>e.reduceRight((r,n)=>n(r),t)}const Yy=(e=void 0,t=void 0)=>({node:e,port:t}),gZ=(e,t,r)=>{if(t.ports){const i=(r?t.ports.findIndex(s=>s.id===r.id):-1)+1;if(i(r,n,o)=>{var i,s,a;let u=gZ(r,n,o);for(;!(((i=u.node)===null||i===void 0?void 0:i.id)===n.id&&((s=u.port)===null||s===void 0?void 0:s.id)===(o==null?void 0:o.id));){if(!u.node)u=Yy(r.getNavigationFirstNode());else if(u.port&&!((a=e.getPortConfig(u.port))===null||a===void 0)&&a.getIsConnectable(Object.assign(Object.assign({},t),{data:r,parentNode:u.node,model:u.port})))return u;u=gZ(r,u.node,u.port)}return Yy()};function qD(e,t,r){if(!e.connectState)return e;let n=e.data.present;return n=n.updatePort(t,r,Dn(Nf(is.ConnectingAsTarget))),e.connectState.targetNode&&e.connectState.targetPort&&(n=n.updatePort(e.connectState.targetNode,e.connectState.targetPort,Dn(oE(is.ConnectingAsTarget)))),Object.assign(Object.assign({},e),{connectState:Object.assign(Object.assign({},e.connectState),{targetNode:t,targetPort:r}),data:Object.assign(Object.assign({},e.data),{present:n})})}function vZ(e){if(!e.connectState)return e;let t=e.data.present;const{targetPort:r,targetNode:n}=e.connectState;return n&&r&&(t=t.updatePort(n,r,Dn(oE(is.ConnectingAsTarget)))),Object.assign(Object.assign({},e),{connectState:Object.assign(Object.assign({},e.connectState),{targetNode:void 0,targetPort:void 0}),data:Object.assign(Object.assign({},e.data),{present:t})})}const EQe=(e,t)=>{var r,n,o;if(!rl(e.viewport))return e;const{rect:i}=e.viewport;switch(t.type){case fn.ConnectStart:return Object.assign(Object.assign({},e),{connectState:Object.assign(Object.assign({},tQe),{sourceNode:t.nodeId,sourcePort:t.portId,movingPoint:t.clientPoint?{x:t.clientPoint.x-i.left,y:t.clientPoint.y-i.top}:void 0}),data:Object.assign(Object.assign({},e.data),{present:e.data.present.updatePort(t.nodeId,t.portId,Dn(Nf(is.Connecting)))})});case fn.ConnectMove:return e.connectState?Object.assign(Object.assign({},e),{connectState:Object.assign(Object.assign({},e.connectState),{movingPoint:{x:t.clientX-i.left,y:t.clientY-i.top}})}):e;case fn.ConnectEnd:if(e.connectState){const{edgeWillAdd:s,isCancel:a}=t,{sourceNode:u,sourcePort:l,targetNode:c,targetPort:f}=e.connectState;let d=e.data.present;if(d=d.updatePort(u,l,Dn(ea(is.Default))),!a&&c&&f){let h={source:u,sourcePortId:l,target:c,targetPortId:f,id:KA(),status:xi.Default};return s&&(h=s(h,d)),d=d.insertEdge(h).updatePort(c,f,Dn(ea(is.Default))),Object.assign(Object.assign({},e),{connectState:void 0,data:hf(e.data,d,ul())})}return Object.assign(Object.assign({},e),{connectState:void 0,data:Object.assign(Object.assign({},e.data),{present:d})})}return e;case fn.ConnectNavigate:if(e.connectState){const s=e.data.present,a=s.nodes.get(e.connectState.sourceNode),u=a==null?void 0:a.getPort(e.connectState.sourcePort),l=e.connectState.targetNode?s.nodes.get(e.connectState.targetNode):void 0,c=e.connectState.targetPort?l==null?void 0:l.getPort(e.connectState.targetPort):void 0;if(!a||!u)return e;const f=_Qe(e.settings.graphConfig,{anotherNode:a,anotherPort:u})(s,l||a,c);return!f.node||!f.port||f.node.id===a.id&&f.port.id===u.id?e:qD(e,f.node.id,f.port.id)}return e;case on.PointerEnter:if(e.connectState){const{sourceNode:s,sourcePort:a}=e.connectState,u=e.data.present,l=u.nodes.get(t.node.id),c=l==null?void 0:l.getPort(t.port.id),f=u.nodes.get(s),d=f==null?void 0:f.getPort(a);if(l&&c&&f&&d&&Hfe(e.settings.graphConfig,{parentNode:l,model:c,data:u,anotherPort:d,anotherNode:f}))return qD(e,l.id,c.id)}return e;case jt.PointerEnter:case jt.PointerMove:if(e.connectState){const{clientX:s,clientY:a}=t.rawEvent,{sourceNode:u,sourcePort:l}=e.connectState,c=e.data.present,f=c.nodes.get(t.node.id),d=c.nodes.get(u),h=d==null?void 0:d.getPort(l);if(f&&d&&h){const g=TXe({parentNode:f,clientX:s,clientY:a,graphConfig:e.settings.graphConfig,data:e.data.present,viewport:e.viewport,anotherPort:h,anotherNode:d});return g?qD(e,f.id,g.id):e}}return e;case jt.PointerLeave:return((r=e.connectState)===null||r===void 0?void 0:r.targetNode)===t.node.id?vZ(e):e;case on.PointerLeave:return((n=e.connectState)===null||n===void 0?void 0:n.targetNode)===t.node.id&&((o=e.connectState)===null||o===void 0?void 0:o.targetPort)===t.port.id?vZ(e):e;default:return e}},SQe=(e,t)=>{let r=e.contextMenuPosition;switch(t.type){case rr.ContextMenu:case jt.ContextMenu:case fn.ContextMenu:case on.ContextMenu:{const n=t.rawEvent;n.button===UA.Secondary&&(r={x:n.clientX,y:n.clientY})}break;case rr.Click:case jt.Click:case fn.Click:case on.Click:r=void 0;break;case XA.Open:r={x:t.x,y:t.y};break;case XA.Close:r=void 0;break}return e.contextMenuPosition===r?e:Object.assign(Object.assign({},e),{contextMenuPosition:r})},wQe=(e,t)=>{switch(t.type){case fn.DoubleClick:return e.settings.features.has(it.EditEdge)?Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:e.data.present.updateEdge(t.edge.id,Dn(ea(xi.Editing)))})}):e;case fn.MouseEnter:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:e.data.present.updateEdge(t.edge.id,Dn(Nf(xi.Activated)))})});case fn.MouseLeave:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:e.data.present.updateEdge(t.edge.id,Dn(oE(xi.Activated)))})});case fn.Click:case fn.ContextMenu:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:ul()(e.data.present).updateEdge(t.edge.id,Dn(Nf(xi.Selected)))})});case fn.Add:return Object.assign(Object.assign({},e),{data:hf(e.data,e.data.present.insertEdge(t.edge))});default:return e}},Jfe=(e,t,r,n=2)=>{const o=ede(e),i=TQe(o,e,t,r,n);return xQe(o,i,e.length)},mZ=(e,t,r,n)=>{let o=1/0,i=0;const s=ede(t),a=n==="x"?s.width||0:s.height||0;return e.forEach(u=>{let l;if(n==="x"&&u.x1===u.x2)l=u.x1;else if(n==="y"&&u.y1===u.y2)l=u.y1;else return;const c=s[n]-l,f=s[n]+(a||0)/2-l,d=s[n]+(a||0)-l;Math.abs(c)0?-o:o),Math.abs(f)0?-o:o),Math.abs(d)0?-o:o)}),i},yZ=(e,t)=>{if(e.length)return Math.min(...e.map(r=>r[t]))},bZ=(e,t)=>{if(e.length)return Math.max(...e.map(r=>r[t]+(t==="y"?r.height||0:r.width||0)))},kQe=(e,t)=>Object.assign(Object.assign({},e),Cf(e,t)),AQe=e=>{let t=1/0,r=1/0,n=-1/0,o=-1/0;return e.forEach(i=>{const s=i.x,a=i.y,u=i.x+(i.width||0),l=i.y+(i.height||0);sn&&(n=u),l>o&&(o=l)}),{x:t,y:r,width:n-t,height:o-r}},ede=e=>{const{x:t,y:r,width:n,height:o}=AQe(e);return{id:KA(),x:t,y:r,width:n,height:o}},TQe=(e,t,r,n,o=2)=>{const i=[],s=[],{x:a,y:u,width:l=0,height:c=0}=e;let f=o,d=o;return r.forEach(h=>{if(t.find(E=>E.id===h.id))return;const g=kQe(h,n),{width:v=0,height:y=0}=g;[a,a+l/2,a+l].forEach((E,_)=>{i[_]||(i[_]={}),i[_].closestNodes||(i[_].closestNodes=[]),[g.x,g.x+v/2,g.x+v].forEach(S=>{var b;const A=Math.abs(E-S);A<=f&&((b=i[_].closestNodes)===null||b===void 0||b.push(g),i[_].alignCoordinateValue=S,f=A)})}),[u,u+c/2,u+c].forEach((E,_)=>{s[_]||(s[_]={}),s[_].closestNodes||(s[_].closestNodes=[]),[g.y,g.y+y/2,g.y+y].forEach(S=>{var b;const A=Math.abs(E-S);A<=d&&((b=s[_].closestNodes)===null||b===void 0||b.push(g),s[_].alignCoordinateValue=S,d=A)})})}),{closestX:i,closestY:s}},xQe=(e,t,r=1)=>{const n=[],o=[],i=t.closestX,s=t.closestY;return i.forEach((a,u)=>{var l;if(a.alignCoordinateValue===void 0||u===1&&(n.length||r>1))return;const c=[],f=a.alignCoordinateValue;(l=a.closestNodes)===null||l===void 0||l.forEach(g=>{(g.x===f||g.x+(g.width||0)/2===f||g.x+(g.width||0)===f)&&c.push(g)});const d=yZ([e,...c],"y"),h=bZ([e,...c],"y");d!==void 0&&h!==void 0&&n.push({x1:f,y1:d,x2:f,y2:h,visible:!0})}),s.forEach((a,u)=>{var l;if(a.alignCoordinateValue===void 0||u===1&&(o.length||r>1))return;const c=[],f=a.alignCoordinateValue;(l=a.closestNodes)===null||l===void 0||l.forEach(g=>{(g.y===f||g.y+(g.height||0)/2===f||g.y+(g.height||0)===f)&&c.push(g)});const d=yZ([e,...c],"x"),h=bZ([e,...c],"x");d!==void 0&&h!==void 0&&o.push({x1:d,y1:f,x2:h,y2:f,visible:!0})}),[...n,...o]};function tde(...e){return e.reduceRight((t,r)=>n=>t(r(n)),ac)}const _Z=(e,t,r)=>rt?10:0;function WB(e,t){const r=[];return e.nodes.forEach(n=>{Jd(n)&&r.push(Object.assign({id:n.id,x:n.x,y:n.y},Cf(n,t)))}),r}function IQe(e,t){if(!rl(e.viewport))return e;const r=h=>Math.max(h,Ufe(s,e.settings)),n=t.rawEvent,{rect:o}=e.viewport,i=Object.assign({},e),s=e.data.present,a=_Z(o.left,o.right,n.clientX),u=_Z(o.top,o.bottom,n.clientY),l=a!==0||u!==0?.999:1,c=a!==0||a!==0?tde(zB(-a,-u),jB({scale:l,anchor:Gfe(o,n),direction:fu.XY,limitScale:r}))(e.viewport):e.viewport,f=wXe(t.dx+a*l,t.dy+u*l,c.transformMatrix),d=Object.assign(Object.assign({},e.dummyNodes),{dx:e.dummyNodes.dx+f.x,dy:e.dummyNodes.dy+f.y,isVisible:t.isVisible});if(t.isAutoAlignEnable){const h=Wfe(s.nodes,e.viewport);if(h.lengthObject.assign(Object.assign({},y),{x:y.x+d.dx,y:y.y+d.dy})),v=Jfe(g,h,e.settings.graphConfig,e.viewport.transformMatrix[0]>.3?2:5);if(v.length){const y=mZ(v,g,e.settings.graphConfig,"x"),E=mZ(v,g,e.settings.graphConfig,"y");d.alignedDX=d.dx+y,d.alignedDY=d.dy+E}else d.alignedDX=void 0,d.alignedDY=void 0;i.alignmentLines=v}else d.alignedDX=void 0,d.alignedDY=void 0}return i.dummyNodes=d,i.viewport=c,i}function NQe(e,t){if(!e.settings.features.has(it.AutoAlign))return e;const r=e.data.present,n=Wfe(r.nodes,e.viewport),o=Jfe([t.node],n,e.settings.graphConfig,e.viewport.transformMatrix[0]>.3?2:5);return Object.assign(Object.assign({},e),{alignmentLines:o})}function CQe(e,t){let r=e.data.present;const n=r.nodes.get(t.node.id);if(!n)return e;let o;return t.isMultiSelect?(r=r.selectNodes(i=>i.id===t.node.id||Jd(i)),o=WB(r,e.settings.graphConfig)):Jd(n)?o=WB(r,e.settings.graphConfig):o=[Object.assign({id:t.node.id,x:t.node.x,y:t.node.y},Cf(t.node,e.settings.graphConfig))],Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:r}),dummyNodes:Object.assign(Object.assign({},jg()),{isVisible:!1,nodes:o})})}function RQe(e,t){let r=e.data.present;if(t.isDragCanceled)return Object.assign(Object.assign({},e),{alignmentLines:[],dummyNodes:jg()});const{dx:n,dy:o}=e.dummyNodes;return r=r.updateNodesPositionAndSize(e.dummyNodes.nodes.map(i=>Object.assign(Object.assign({},i),{x:i.x+n,y:i.y+o,width:void 0,height:void 0}))),Object.assign(Object.assign({},e),{alignmentLines:[],dummyNodes:jg(),data:hf(e.data,r,ul())})}function OQe(e,t){const r=t.data.present;if(!rl(t.viewport)||!e.nodes.length)return t;if(e.nodes.length===1){const a=e.nodes[0],u=r.nodes.get(a);if(!u)return t;const{width:l,height:c}=Cf(u,t.settings.graphConfig),f=e.type===jt.Centralize?u.x+l/2:u.x,d=e.type===jt.Centralize?u.y+c/2:u.y,{x:h,y:g}=zg(f,d,t.viewport.transformMatrix),v=e.type===jt.Locate?e.position:void 0;return Object.assign(Object.assign({},t),{viewport:Vfe(h,g,t.viewport.rect,!0,v)(t.viewport)})}const{minNodeX:n,minNodeY:o,maxNodeX:i,maxNodeY:s}=y9(r,t.settings.graphConfig,new Set(e.nodes));return Object.assign(Object.assign({},t),{viewport:KXe(n,o,i,s,t.viewport)})}const DQe=(e,t)=>{const r=e.data.present;switch(t.type){case jt.ResizingStart:return Object.assign(Object.assign({},e),{dummyNodes:Object.assign(Object.assign({},jg()),{isVisible:!0,nodes:WB(r,e.settings.graphConfig)})});case jt.Resizing:return Object.assign(Object.assign({},e),{dummyNodes:Object.assign(Object.assign({},e.dummyNodes),{dx:t.dx,dy:t.dy,dWidth:t.dWidth,dHeight:t.dHeight})});case jt.ResizingEnd:{const{dx:n,dy:o,dWidth:i,dHeight:s}=e.dummyNodes;return Object.assign(Object.assign({},e),{dummyNodes:jg(),data:hf(e.data,r.updateNodesPositionAndSize(e.dummyNodes.nodes.map(a=>Object.assign(Object.assign({},a),{x:a.x+n,y:a.y+o,width:a.width+i,height:a.height+s}))),ul())})}case jt.DragStart:return CQe(e,t);case jt.Drag:return IQe(e,t);case jt.DragEnd:return RQe(e,t);case jt.PointerEnter:switch(e.behavior){case Qi.Default:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:r.updateNode(t.node.id,Dn(Nf(Do.Activated)))})});default:return e}case jt.PointerLeave:switch(e.behavior){case Qi.Default:case Qi.Connecting:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:r.updateNode(t.node.id,Dn(oE(Do.Activated)))})});default:return e}case rr.DraggingNodeFromItemPanel:return NQe(e,t);case rr.DraggingNodeFromItemPanelEnd:return t.node?Object.assign(Object.assign({},e),{alignmentLines:[],data:hf(e.data,e.data.present.insertNode(Object.assign(Object.assign({},t.node),{status:Do.Selected})),ul())}):Object.assign(Object.assign({},e),{alignmentLines:[]});case jt.Centralize:case jt.Locate:return OQe(t,e);case jt.Add:return Object.assign(Object.assign({},e),{data:hf(e.data,r.insertNode(t.node))});case jt.DoubleClick:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:e.data.present.updateNode(t.node.id,Dn(Nf(Do.Editing)))})});default:return e}},FQe=(e,t)=>{switch(t.type){case on.Focus:case on.PointerEnter:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:e.data.present.updatePort(t.node.id,t.port.id,Dn(Nf(is.Activated)))})});case on.Blur:case on.PointerLeave:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:e.data.present.updatePort(t.node.id,t.port.id,Dn(oE(is.Activated)))})});case on.Click:case on.ContextMenu:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:ul()(e.data.present).updatePort(t.node.id,t.port.id,Dn(Nf(is.Selected)))})});default:return e}},EZ=(e,t,r,n)=>{if(!r.width||!r.height)return n;const o=Math.min(r.startX,r.startX+r.width),i=Math.max(r.startX,r.startX+r.width),s=Math.min(r.startY,r.startY+r.height),a=Math.max(r.startY,r.startY+r.height),u=Qb(o,s,t),l=Qb(i,a,t),c={minX:u.x,minY:u.y,maxX:l.x,maxY:l.y};return n.selectNodes(f=>{const{width:d,height:h}=Cf(f,e),g={minX:f.x,minY:f.y,maxX:f.x+d,maxY:f.y+h};return FXe(c,g)})};function BQe(e,t){let r=ul()(e.data.present);if(t.node&&t.port)r=r.updatePort(t.node.id,t.port.id,Dn(Nf(is.Selected)));else if(t.node){const n=t.node.id;r=r.selectNodes(o=>o.id===n)}return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:r})})}const MQe=(e,t)=>{var r,n;const o=e.data.present,i=e.settings.features.has(it.LassoSelect);switch(t.type){case rr.Click:case rr.ResetSelection:case rr.ContextMenu:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:ul()(o)})});case jt.Click:case jt.ContextMenu:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:xXe(t.rawEvent,t.node)(o)})});case rr.SelectStart:{if(!rl(e.viewport))return e;const s=Gfe(e.viewport.rect,t.rawEvent);return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:ul()(o)}),selectBoxPosition:{startX:s.x,startY:i?0:s.y,width:0,height:0}})}case rr.SelectMove:return e.behavior!==Qi.MultiSelect?e:Object.assign(Object.assign({},e),{selectBoxPosition:Object.assign(Object.assign({},e.selectBoxPosition),{width:e.selectBoxPosition.width+t.dx,height:i?(n=(r=e.viewport.rect)===null||r===void 0?void 0:r.height)!==null&&n!==void 0?n:e.selectBoxPosition.height:e.selectBoxPosition.height+t.dy})});case rr.SelectEnd:return Object.assign(Object.assign({},e),{selectBoxPosition:Cfe(),data:Object.assign(Object.assign({},e.data),{present:EZ(e.settings.graphConfig,e.viewport.transformMatrix,e.selectBoxPosition,o)})});case rr.UpdateNodeSelectionBySelectBox:return e.behavior!==Qi.MultiSelect?e:Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:EZ(e.settings.graphConfig,e.viewport.transformMatrix,e.selectBoxPosition,o)})});case rr.Navigate:return BQe(e,t);case jt.SelectAll:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:o.selectNodes(()=>!0)})});case jt.Select:{const s=new Set(t.nodes);return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:o.selectNodes(a=>s.has(a.id))})})}default:return e}};function SZ(e){return{x:e.width/2,y:e.height/2}}function LQe(e,t,r,n){if(!rl(e))return e;if(!n.ensureNodeVisible)return Object.assign(Object.assign({},e),{transformMatrix:M0});const{nodes:o,groups:i}=t;if(o.size===0)return Object.assign(Object.assign({},e),{transformMatrix:M0});const s=h=>qfe(h,e),a=o.map(h=>Pfe(h,r));if(a.find(s))return Object.assign(Object.assign({},e),{transformMatrix:M0});const l=i.map(h=>nXe(h,o,r));if(l.find(s))return Object.assign(Object.assign({},e),{transformMatrix:M0});let f=a.first();const d=h=>{f.y>h.y&&(f=h)};return a.forEach(d),l.forEach(d),Object.assign(Object.assign({},e),{transformMatrix:[1,0,0,1,-f.x,-f.y]})}function jQe(e,t,r,n){if(!rl(e))return e;const{graphConfig:o,nodeMaxVisibleSize:i,nodeMinVisibleSize:s}=r,a=WXe(Object.assign(Object.assign({},n),{data:t,graphConfig:o,rect:e.rect,nodeMaxVisibleSize:i,nodeMinVisibleSize:s}));return Object.assign(Object.assign({},e),{transformMatrix:a})}const zQe=(e,t,r,n)=>{var o,i,s,a;const{graphConfig:u,canvasBoundaryPadding:l,features:c}=n,f=d=>Math.max(d,Ufe(r,n));switch(t.type){case rr.ViewportResize:return Object.assign(Object.assign({},e),{rect:t.viewportRect});case rr.Zoom:return rl(e)?jB({scale:t.scale,anchor:(o=t.anchor)!==null&&o!==void 0?o:SZ(e.rect),direction:t.direction,limitScale:f})(e):e;case PB.Scroll:case rr.MouseWheelScroll:case rr.Pan:case rr.Drag:{if(!rl(e))return e;const{transformMatrix:d,rect:h}=e;let{dx:g,dy:v}=t;const y=c.has(it.LimitBoundary),E=(s=(i=r.groups)===null||i===void 0?void 0:i[0])===null||s===void 0?void 0:s.padding;if(y){const{minX:_,maxX:S,minY:b,maxY:A}=VXe({data:r,graphConfig:u,rect:h,transformMatrix:d,canvasBoundaryPadding:l,groupPadding:E});g=hZ(_-d[4],S-d[4],g),v=hZ(b-d[5],A-d[5],v)}return zB(g,v)(e)}case rr.Pinch:{const{dx:d,dy:h,scale:g,anchor:v}=t;return tde(zB(d,h),jB({scale:g,anchor:v,limitScale:f}))(e)}case qB.Pan:return PXe(t.dx,t.dy)(e);case rr.ResetViewport:return LQe(e,r,u,t);case rr.ZoomTo:return rl(e)?LB({scale:t.scale,anchor:(a=t.anchor)!==null&&a!==void 0?a:SZ(e.rect),direction:t.direction,limitScale:f})(e):e;case rr.ZoomToFit:return jQe(e,r,n,t);case rr.ScrollIntoView:if(e.rect){const{x:d,y:h}=zg(t.x,t.y,e.transformMatrix);return Vfe(d,h,e.rect,!0)(e)}return e;default:return e}},HQe=(e,t)=>{const r=zQe(e.viewport,t,e.data.present,e.settings);return r===e.viewport?e:Object.assign(Object.assign({},e),{viewport:r})},wZ=Zfe([yQe,HQe,DQe,FQe,wQe,bQe,EQe,MQe,SQe].map(e=>t=>(r,n)=>t(e(r,n),n)));function $Qe(e=void 0,t=ac){return(e?Zfe([e,wZ]):wZ)(t)}class PQe{constructor(t){this.target=t}off(t,r){switch(t){case"move":this.target.removeEventListener("mousemove",r);break;case"end":this.target.removeEventListener("mouseup",r);break}return this}on(t,r){switch(t){case"move":this.target.addEventListener("mousemove",r);break;case"end":this.target.addEventListener("mouseup",r);break}return this}}const qQe=(e,t)=>{const r=cQe();return k.useCallback(n=>o=>{o.preventDefault(),o.stopPropagation(),t.trigger({type:jt.ResizingStart,rawEvent:o,node:e});const i=new gQe(new PQe(r.getGlobalEventTarget()),vQe);i.onMove=({totalDX:s,totalDY:a,e:u})=>{t.trigger(Object.assign({type:jt.Resizing,rawEvent:u,node:e,dx:0,dy:0,dWidth:0,dHeight:0},n(s,a)))},i.onEnd=({e:s})=>{t.trigger({type:jt.ResizingEnd,rawEvent:s,node:e})},t.trigger({type:jt.ResizingStart,rawEvent:o,node:e}),i.start(o.nativeEvent)},[t,r,e])},WQe=()=>({x1:0,y1:0,x2:0,y2:0,visible:!1}),KQe=e=>{var t;const{line:r,style:n}=e,o=Object.assign(Object.assign({strokeWidth:1},n),{stroke:r.visible?(t=n==null?void 0:n.stroke)!==null&&t!==void 0?t:"#ea4300":"none"});return C.jsx("line",{className:"auto-align-hint",x1:r.x1,y1:r.y1,x2:r.x2,y2:r.y2,style:o})},GQe=k.memo(({style:e})=>{const t=fQe();return C.jsx(C.Fragment,{children:t.map((r,n)=>r.visible?C.jsx(KQe,{line:r,style:e},n):null)})});GQe.displayName="AlignmentLines";const VQe=e=>{var t,r;const n=k.useContext(Xfe);return C.jsx(C.Fragment,{children:(r=(t=n.renderNodeFrame)===null||t===void 0?void 0:t.call(n,e))!==null&&r!==void 0?r:e.children})},UQe=e=>{var t,r;const n=k.useContext(Xfe);return C.jsx(C.Fragment,{children:(r=(t=n.renderNodeResizeHandler)===null||t===void 0?void 0:t.call(n,e))!==null&&r!==void 0?r:e.children})},YQe={NodeFrame:VQe,NodeResizeHandler:UQe},XQe=e=>{const{autoAttachLine:t,connectingLine:r,styles:n}=e,o=(n==null?void 0:n.stroke)||ts.primaryColor,i=(n==null?void 0:n.fill)||"none",s=(n==null?void 0:n.strokeDasharray)||"4,4",a=r.visible?o:"none";return C.jsxs("g",{children:[C.jsx("defs",{children:C.jsx("marker",Object.assign({id:"markerArrow",markerWidth:"10",markerHeight:"10",refX:"6",refY:"5",orient:"auto",markerUnits:"strokeWidth"},{children:C.jsx("path",{d:"M0,0 L6,5 L0,10",style:{stroke:a,fill:"none"}})}))}),C.jsx("line",{x1:r.x1,y1:r.y1,x2:r.x2,y2:r.y2,style:{stroke:a,fill:i,strokeDasharray:s},markerEnd:"url(#markerArrow)"}),C.jsx("path",{d:Nfe(t.x2,t.x1,t.y2,t.y1),style:{stroke:t.visible?o:"none",fill:"none"}})]})},QQe=k.memo(e=>{const{styles:t,graphConfig:r,viewport:n,movingPoint:o}=e,{sourcePort:i,sourceNode:s,targetPort:a,targetNode:u}=dQe();if(!s||!i)return null;const l=s.getPortPosition(i.id,r);let c,f=!1;if(u&&a?(f=!0,c=u==null?void 0:u.getPortPosition(a.id,r)):c=l,!l||!c)return null;const d=zg(l.x,l.y,n.transformMatrix),h=zg(c.x,c.y,n.transformMatrix),g=o?{x1:d.x,y1:d.y,x2:o.x,y2:o.y,visible:!f}:WQe(),v={x1:d.x,y1:d.y,x2:h.x,y2:h.y,visible:f};return C.jsx(XQe,{connectingLine:g,autoAttachLine:v,styles:t})});QQe.displayName="Connecting";const WD=10,kZ={position:"absolute",cursor:"initial"};eXe({verticalScrollWrapper:Object.assign(Object.assign({},kZ),{height:"100%",width:WD,top:0,right:0}),horizontalScrollWrapper:Object.assign(Object.assign({},kZ),{height:WD,width:"100%",bottom:0,left:0}),verticalScrollStyle:e=>({height:e.scrollbarLayout.verticalScrollHeight,width:"100%",backgroundColor:ts.scrollbarColor,position:"absolute",top:0,right:0,transform:`translateY(${e.scrollbarLayout.verticalScrollTop}px)`}),horizontalScrollStyle:e=>({width:e.scrollbarLayout.horizontalScrollWidth-WD,height:"100%",backgroundColor:ts.scrollbarColor,position:"absolute",left:0,bottom:0,transform:`translateX(${e.scrollbarLayout.horizontalScrollLeft}px)`})});function ZQe(e,t,{minX:r,minY:n,maxX:o,maxY:i},s,a,u,l){return e.x===t.x?{x:e.x,y:e.y=n?{x:o,y:s}:{x:u,y:n}:e.yr?{x:a,y:i}:{x:r,y:l}:l>n?{x:r,y:l}:{x:u,y:n}}const rde=k.memo(e=>{var t;const{edge:r,data:n,eventChannel:o,source:i,target:s,graphId:a}=e,u=dp(),l=Qfe(),{viewport:c,renderedArea:f,visibleArea:d}=l,h=N=>I=>{I.persist(),o.trigger({type:N,edge:r,rawEvent:I})},g=B0(f,i),v=B0(f,s),y=g&&v;if(k.useLayoutEffect(()=>{y&&l.renderedEdges.add(r.id)},[l]),!y)return null;const E=u.getEdgeConfig(r);if(!E)return Uh.warn(`invalid edge ${JSON.stringify(r)}`),null;if(!E.render)return Uh.warn(`Missing "render" method in edge config ${JSON.stringify(r)}`),null;const _=B0(d,i),S=B0(d,s);let b=E.render({model:r,data:n,x1:i.x,y1:i.y,x2:s.x,y2:s.y,viewport:c});if(fp(xi.ConnectedToSelected)(r.status)&&(!_||!S)){const N=pZ(i.x,i.y,s.x,s.y),I=pZ(i.y,i.x,s.y,s.x),R=_?i:s,D=_?s:i,L=N(d.maxX),M=I(d.maxY),q=I(d.minY),z=N(d.minX),B=ZQe(R,D,d,L,M,q,z);_&&E.renderWithTargetHint?b=E.renderWithTargetHint({model:r,data:n,x1:i.x,y1:i.y,x2:B.x,y2:B.y,viewport:c}):S&&E.renderWithSourceHint&&(b=E.renderWithSourceHint({model:r,data:n,x1:B.x,y1:B.y,x2:s.x,y2:s.y,viewport:c}))}const A=OXe(a,r),x=`edge-container-${r.id}`,T=(t=r.automationId)!==null&&t!==void 0?t:x;return C.jsx("g",Object.assign({id:A,onClick:h(fn.Click),onDoubleClick:h(fn.DoubleClick),onMouseDown:h(fn.MouseDown),onMouseUp:h(fn.MouseUp),onMouseEnter:h(fn.MouseEnter),onMouseLeave:h(fn.MouseLeave),onContextMenu:h(fn.ContextMenu),onMouseMove:h(fn.MouseMove),onMouseOver:h(fn.MouseOver),onMouseOut:h(fn.MouseOut),onFocus:void 0,onBlur:void 0,className:x,"data-automation-id":T},{children:b}))});function nde(e,t){return e.node===t.node}const ode=k.memo(e=>{var t,r;const{node:n,data:o}=e,i=uE(e,["node","data"]),s=dp(),a=[],u=n.valueCount;for(let f=0;f{const{data:t,node:r}=e,n=uE(e,["data","node"]),o=dp();return C.jsx(C.Fragment,{children:r.values.map(i=>{var s,a;const u=(s=t.nodes.get(i.source))===null||s===void 0?void 0:s.getPortPosition(i.sourcePortId,o),l=(a=t.nodes.get(i.target))===null||a===void 0?void 0:a.getPortPosition(i.targetPortId,o);return u&&l?k.createElement(rde,Object.assign({},n,{key:i.id,data:t,edge:i,source:u,target:l})):null})})},nde);ide.displayName="EdgeHashCollisionNodeRender";const JQe=Mi({svg:[{position:"absolute",overflow:"hidden",top:0,left:0,width:"100%",height:"100%"},{"&:focus":{outline:"none"}}],node:{cursor:"move"},container:{position:"relative",width:"100%",height:"100%",overflow:"hidden",touchAction:"none"},buttonA11Y:{opacity:0,width:0,height:0,overflow:"hidden"},addingNodeSvg:{zIndex:1e6,position:"fixed",left:0,top:0,width:"100%",height:"100%"},moduleItem:{userSelect:"none",cursor:"pointer"},minimap:{height:320,width:320,userSelect:"none",touchAction:"none"},minimapSvg:{position:"absolute",top:0,left:0,width:"100%",height:"100%"}}),eZe=e=>{var t;const{node:r,eventChannel:n,getNodeAriaLabel:o,viewport:i,graphId:s}=e,a=dp(),u=iE(r,a),l=h=>g=>{g.persist();const v={type:h,node:r,rawEvent:g};n.trigger(v)},c=h=>{h.persist();const g=jfe(h);n.trigger({type:jt.Click,rawEvent:h,isMultiSelect:g,node:r})},f=CXe(s,r),d=(t=r.automationId)!==null&&t!==void 0?t:IXe(r);return u!=null&&u.render?C.jsx("g",Object.assign({id:f,focusable:"true",tabIndex:0,className:JQe.node,onPointerDown:l(jt.PointerDown),onPointerEnter:l(jt.PointerEnter),onPointerMove:l(jt.PointerMove),onPointerLeave:l(jt.PointerLeave),onPointerUp:l(jt.PointerUp),onDoubleClick:l(jt.DoubleClick),onMouseDown:l(jt.MouseDown),onMouseUp:l(jt.MouseUp),onMouseEnter:l(jt.MouseEnter),onMouseLeave:l(jt.MouseLeave),onContextMenu:l(jt.ContextMenu),onMouseMove:l(jt.MouseMove),onMouseOver:l(jt.MouseOver),onMouseOut:l(jt.MouseOut),onClick:c,onKeyDown:l(jt.KeyDown),"aria-label":o(r),role:"group","aria-roledescription":"node","data-automation-id":d},{children:C.jsx("g",Object.assign({className:"node-box-container"},{children:u.render({model:r,viewport:i})}))})):null},f0=8,d0=8,fd=({x:e,y:t,cursor:r,onMouseDown:n})=>C.jsx(YQe.NodeResizeHandler,Object.assign({x:e,y:t,cursor:r,onMouseDown:n},{children:C.jsx("rect",{x:e,y:t,height:d0,width:f0,stroke:ts.controlPointColor,fill:"transparent",cursor:r,onMouseDown:n})})),Ka=15,tZe=e=>{var t,r;const{node:n,getMouseDown:o}=e,i=dp(),s=iE(n,i),a=(t=s==null?void 0:s.getMinWidth(n))!==null&&t!==void 0?t:0,u=(r=s==null?void 0:s.getMinHeight(n))!==null&&r!==void 0?r:0,l=aE(s,n),c=sE(s,n),f=o((S,b)=>{const A=Math.min(S,c-a),x=Math.min(b,l-u);return{dx:+A,dy:+x,dWidth:-A,dHeight:-x}}),d=o((S,b)=>{const A=Math.min(b,l-u);return{dy:+A,dHeight:-A}}),h=o((S,b)=>{const A=Math.max(S,a-c),x=Math.min(b,l-u);return{dy:+x,dWidth:+A,dHeight:-x}}),g=o(S=>({dWidth:+Math.max(S,a-c)})),v=o((S,b)=>{const A=Math.max(S,a-c),x=Math.max(b,u-l);return{dWidth:+A,dHeight:+x}}),y=o((S,b)=>({dHeight:+Math.max(b,u-l)})),E=o((S,b)=>{const A=Math.min(S,c-a),x=Math.max(b,u-l);return{dx:+A,dWidth:-A,dHeight:+x}}),_=o(S=>{const b=Math.min(S,c-a);return{dx:b,dWidth:-b}});return C.jsxs(C.Fragment,{children:[C.jsx(fd,{cursor:"nw-resize",x:n.x-Ka,y:n.y-Ka-d0,onMouseDown:f},"nw-resize"),C.jsx(fd,{x:n.x+c/2-f0/2,y:n.y-Ka-d0,cursor:"n-resize",onMouseDown:d},"n-resize"),C.jsx(fd,{x:n.x+c+Ka-f0,y:n.y-Ka-d0,cursor:"ne-resize",onMouseDown:h},"ne-resize"),C.jsx(fd,{x:n.x+c+Ka-f0,y:n.y+l/2-d0/2,cursor:"e-resize",onMouseDown:g},"e-resize"),C.jsx(fd,{x:n.x+c+Ka-f0,y:n.y+l+Ka,cursor:"se-resize",onMouseDown:v},"se-resize"),C.jsx(fd,{x:n.x+c/2-f0/2,y:n.y+l+Ka,cursor:"s-resize",onMouseDown:y},"s-resize"),C.jsx(fd,{x:n.x-Ka,y:n.y+l+Ka,cursor:"sw-resize",onMouseDown:E},"sw-resize"),C.jsx(fd,{x:n.x-Ka,y:n.y+l/2-d0/2,cursor:"w-resize",onMouseDown:_},"w-resize")]})},rZe=e=>{const{data:t,node:r,getPortAriaLabel:n,eventChannel:o,viewport:i,graphId:s}=e,a=dp(),u=r.ports;if(!u)return null;const l=(c,f)=>d=>{d.persist(),o.trigger({type:c,node:r,port:f,rawEvent:d})};return C.jsx("g",{children:u.map(c=>{var f;const d=a.getPortConfig(c);if(!d||!d.render)return Uh.warn(`invalid port config ${r.id}:${r.name} - ${c.id}:${c.name}`),null;const h=r.getPortPosition(c.id,a);if(!h)return null;const g=RXe(s,r,c),v=(f=c.automationId)!==null&&f!==void 0?f:NXe(c,r);return C.jsx("g",Object.assign({id:g,tabIndex:0,focusable:"true",onPointerDown:l(on.PointerDown,c),onPointerUp:l(on.PointerUp,c),onDoubleClick:l(on.DoubleClick,c),onMouseDown:l(on.MouseDown,c),onMouseUp:l(on.MouseUp,c),onContextMenu:l(on.ContextMenu,c),onPointerEnter:l(on.PointerEnter,c),onPointerLeave:l(on.PointerLeave,c),onMouseMove:l(on.MouseMove,c),onMouseOver:l(on.MouseOver,c),onMouseOut:l(on.MouseOut,c),onFocus:l(on.Focus,c),onBlur:l(on.Blur,c),onKeyDown:l(on.KeyDown,c),onClick:l(on.Click,c),"aria-label":n(t,r,c),role:"group","aria-roledescription":"port","data-automation-id":v},{children:C.jsx(B7.Consumer,{children:({sourceNode:y,sourcePort:E})=>d==null?void 0:d.render(Object.assign({model:c,data:t,parentNode:r,anotherNode:y,anotherPort:E,viewport:i},h))})}),g)})})},nZe=e=>{var{node:t,isNodeResizable:r,renderNodeAnchors:n}=e,o=uE(e,["node","isNodeResizable","renderNodeAnchors"]);const i=Qfe(),{renderedArea:s,viewport:a}=i,u=qQe(t,o.eventChannel),l=B0(s,t);if(k.useLayoutEffect(()=>{l&&i.renderedEdges.add(t.id)},[i]),!l)return null;let c;if(r&&C7(t)){const f=C.jsx(tZe,{node:t,getMouseDown:u});c=n?n(t,u,f):f}return C.jsxs(C.Fragment,{children:[C.jsx(eZe,Object.assign({},o,{node:t,viewport:a})),C.jsx(rZe,Object.assign({},o,{node:t,viewport:a})),c]})},oZe=k.memo(nZe),sde=k.memo(e=>{var{node:t}=e,r=uE(e,["node"]);const n=t.values.map(i=>{const s=i[1];return C.jsx(oZe,Object.assign({node:s},r),s.id)}),o=t.type===Ju.Internal?t.children.map((i,s)=>{const a=se.node===t.node);sde.displayName="NodeTreeNode";const iZe=document.createElement("div");document.body.appendChild(iZe);const sZe=e=>{const{node:t}=e,r=dp(),n=iE(t,r);if(n!=null&&n.renderStatic)return C.jsx("g",{children:n.renderStatic({model:t})});const o=aE(n,t),i=sE(n,t);return C.jsx("rect",{transform:`translate(${t.x}, ${t.y})`,height:o,width:i,fill:ts.dummyNodeStroke})},aZe=k.memo(sZe,(e,t)=>{const r=e.node,n=t.node;return r.x===n.x&&r.y===n.y&&r.height===n.height&&r.width===n.width&&r.isInSearchResults===n.isInSearchResults&&r.isCurrentSearchResult===n.isCurrentSearchResult}),ade=k.memo(({node:e})=>{const t=e.values.map(n=>C.jsx(aZe,{node:n[1]},n[1].id)),r=e.type===Ju.Internal?e.children.map((n,o)=>{const i=o>>0;if(""+r!==t||r===4294967295)return NaN;t=r}return t<0?Hg(e)+t:t}function ude(){return!0}function b9(e,t,r){return(e===0&&!cde(e)||r!==void 0&&e<=-r)&&(t===void 0||r!==void 0&&t>=r)}function cE(e,t){return lde(e,t,0)}function _9(e,t){return lde(e,t,t)}function lde(e,t,r){return e===void 0?r:cde(e)?t===1/0?t:Math.max(0,t+e)|0:t===void 0||t===e?e:Math.min(t,e)|0}function cde(e){return e<0||e===0&&1/e===-1/0}var fde="@@__IMMUTABLE_ITERABLE__@@";function js(e){return!!(e&&e[fde])}var dde="@@__IMMUTABLE_KEYED__@@";function On(e){return!!(e&&e[dde])}var hde="@@__IMMUTABLE_INDEXED__@@";function Fs(e){return!!(e&&e[hde])}function E9(e){return On(e)||Fs(e)}var co=function(t){return js(t)?t:wa(t)},ku=function(e){function t(r){return On(r)?r:O1(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(co),hp=function(e){function t(r){return Fs(r)?r:pl(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(co),Sv=function(e){function t(r){return js(r)&&!E9(r)?r:Tv(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(co);co.Keyed=ku;co.Indexed=hp;co.Set=Sv;var pde="@@__IMMUTABLE_SEQ__@@";function L7(e){return!!(e&&e[pde])}var gde="@@__IMMUTABLE_RECORD__@@";function wv(e){return!!(e&&e[gde])}function Ec(e){return js(e)||wv(e)}var kv="@@__IMMUTABLE_ORDERED__@@";function nl(e){return!!(e&&e[kv])}var fE=0,ll=1,mu=2,GB=typeof Symbol=="function"&&Symbol.iterator,vde="@@iterator",S9=GB||vde,jr=function(t){this.next=t};jr.prototype.toString=function(){return"[Iterator]"};jr.KEYS=fE;jr.VALUES=ll;jr.ENTRIES=mu;jr.prototype.inspect=jr.prototype.toSource=function(){return this.toString()};jr.prototype[S9]=function(){return this};function Fn(e,t,r,n){var o=e===0?t:e===1?r:[t,r];return n?n.value=o:n={value:o,done:!1},n}function zs(){return{value:void 0,done:!0}}function mde(e){return Array.isArray(e)?!0:!!w9(e)}function AZ(e){return e&&typeof e.next=="function"}function VB(e){var t=w9(e);return t&&t.call(e)}function w9(e){var t=e&&(GB&&e[GB]||e[vde]);if(typeof t=="function")return t}function uZe(e){var t=w9(e);return t&&t===e.entries}function lZe(e){var t=w9(e);return t&&t===e.keys}var Av=Object.prototype.hasOwnProperty;function yde(e){return Array.isArray(e)||typeof e=="string"?!0:e&&typeof e=="object"&&Number.isInteger(e.length)&&e.length>=0&&(e.length===0?Object.keys(e).length===1:e.hasOwnProperty(e.length-1))}var wa=function(e){function t(r){return r==null?z7():Ec(r)?r.toSeq():fZe(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(n,o){var i=this._cache;if(i){for(var s=i.length,a=0;a!==s;){var u=i[o?s-++a:a++];if(n(u[1],u[0],this)===!1)break}return a}return this.__iterateUncached(n,o)},t.prototype.__iterator=function(n,o){var i=this._cache;if(i){var s=i.length,a=0;return new jr(function(){if(a===s)return zs();var u=i[o?s-++a:a++];return Fn(n,u[0],u[1])})}return this.__iteratorUncached(n,o)},t}(co),O1=function(e){function t(r){return r==null?z7().toKeyedSeq():js(r)?On(r)?r.toSeq():r.fromEntrySeq():wv(r)?r.toSeq():H7(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(wa),pl=function(e){function t(r){return r==null?z7():js(r)?On(r)?r.entrySeq():r.toIndexedSeq():wv(r)?r.toSeq().entrySeq():bde(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(wa),Tv=function(e){function t(r){return(js(r)&&!E9(r)?r:pl(r)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(wa);wa.isSeq=L7;wa.Keyed=O1;wa.Set=Tv;wa.Indexed=pl;wa.prototype[pde]=!0;var Yh=function(e){function t(r){this._array=r,this.size=r.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(n,o){return this.has(n)?this._array[g1(this,n)]:o},t.prototype.__iterate=function(n,o){for(var i=this._array,s=i.length,a=0;a!==s;){var u=o?s-++a:a++;if(n(i[u],u,this)===!1)break}return a},t.prototype.__iterator=function(n,o){var i=this._array,s=i.length,a=0;return new jr(function(){if(a===s)return zs();var u=o?s-++a:a++;return Fn(n,u,i[u])})},t}(pl),j7=function(e){function t(r){var n=Object.keys(r).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(r):[]);this._object=r,this._keys=n,this.size=n.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(n,o){return o!==void 0&&!this.has(n)?o:this._object[n]},t.prototype.has=function(n){return Av.call(this._object,n)},t.prototype.__iterate=function(n,o){for(var i=this._object,s=this._keys,a=s.length,u=0;u!==a;){var l=s[o?a-++u:u++];if(n(i[l],l,this)===!1)break}return u},t.prototype.__iterator=function(n,o){var i=this._object,s=this._keys,a=s.length,u=0;return new jr(function(){if(u===a)return zs();var l=s[o?a-++u:u++];return Fn(n,l,i[l])})},t}(O1);j7.prototype[kv]=!0;var cZe=function(e){function t(r){this._collection=r,this.size=r.length||r.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(n,o){if(o)return this.cacheResult().__iterate(n,o);var i=this._collection,s=VB(i),a=0;if(AZ(s))for(var u;!(u=s.next()).done&&n(u.value,a++,this)!==!1;);return a},t.prototype.__iteratorUncached=function(n,o){if(o)return this.cacheResult().__iterator(n,o);var i=this._collection,s=VB(i);if(!AZ(s))return new jr(zs);var a=0;return new jr(function(){var u=s.next();return u.done?u:Fn(n,a++,u.value)})},t}(pl),TZ;function z7(){return TZ||(TZ=new Yh([]))}function H7(e){var t=$7(e);if(t)return t.fromEntrySeq();if(typeof e=="object")return new j7(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function bde(e){var t=$7(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function fZe(e){var t=$7(e);if(t)return uZe(e)?t.fromEntrySeq():lZe(e)?t.toSetSeq():t;if(typeof e=="object")return new j7(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}function $7(e){return yde(e)?new Yh(e):mde(e)?new cZe(e):void 0}var _de="@@__IMMUTABLE_MAP__@@";function P7(e){return!!(e&&e[_de])}function Ede(e){return P7(e)&&nl(e)}function xZ(e){return!!(e&&typeof e.equals=="function"&&typeof e.hashCode=="function")}function ca(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if(typeof e.valueOf=="function"&&typeof t.valueOf=="function"){if(e=e.valueOf(),t=t.valueOf(),e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!!(xZ(e)&&xZ(t)&&e.equals(t))}var jm=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(t,r){t|=0,r|=0;var n=t&65535,o=r&65535;return n*o+((t>>>16)*o+n*(r>>>16)<<16>>>0)|0};function k9(e){return e>>>1&1073741824|e&3221225471}var dZe=Object.prototype.valueOf;function ra(e){if(e==null)return IZ(e);if(typeof e.hashCode=="function")return k9(e.hashCode(e));var t=yZe(e);if(t==null)return IZ(t);switch(typeof t){case"boolean":return t?1108378657:1108378656;case"number":return hZe(t);case"string":return t.length>bZe?pZe(t):UB(t);case"object":case"function":return vZe(t);case"symbol":return gZe(t);default:if(typeof t.toString=="function")return UB(t.toString());throw new Error("Value type "+typeof t+" cannot be hashed.")}}function IZ(e){return e===null?1108378658:1108378659}function hZe(e){if(e!==e||e===1/0)return 0;var t=e|0;for(t!==e&&(t^=e*4294967295);e>4294967295;)e/=4294967295,t^=e;return k9(t)}function pZe(e){var t=VD[e];return t===void 0&&(t=UB(e),GD===_Ze&&(GD=0,VD={}),GD++,VD[e]=t),t}function UB(e){for(var t=0,r=0;r0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}function yZe(e){return e.valueOf!==dZe&&typeof e.valueOf=="function"?e.valueOf(e):e}function Sde(){var e=++KD;return KD&1073741824&&(KD=0),e}var YB=typeof WeakMap=="function",XB;YB&&(XB=new WeakMap);var RZ=Object.create(null),KD=0,ph="__immutablehash__";typeof Symbol=="function"&&(ph=Symbol(ph));var bZe=16,_Ze=255,GD=0,VD={},A9=function(e){function t(r,n){this._iter=r,this._useKeys=n,this.size=r.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(n,o){return this._iter.get(n,o)},t.prototype.has=function(n){return this._iter.has(n)},t.prototype.valueSeq=function(){return this._iter.valueSeq()},t.prototype.reverse=function(){var n=this,o=q7(this,!0);return this._useKeys||(o.valueSeq=function(){return n._iter.toSeq().reverse()}),o},t.prototype.map=function(n,o){var i=this,s=xde(this,n,o);return this._useKeys||(s.valueSeq=function(){return i._iter.toSeq().map(n,o)}),s},t.prototype.__iterate=function(n,o){var i=this;return this._iter.__iterate(function(s,a){return n(s,a,i)},o)},t.prototype.__iterator=function(n,o){return this._iter.__iterator(n,o)},t}(O1);A9.prototype[kv]=!0;var wde=function(e){function t(r){this._iter=r,this.size=r.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.includes=function(n){return this._iter.includes(n)},t.prototype.__iterate=function(n,o){var i=this,s=0;return o&&Hg(this),this._iter.__iterate(function(a){return n(a,o?i.size-++s:s++,i)},o)},t.prototype.__iterator=function(n,o){var i=this,s=this._iter.__iterator(ll,o),a=0;return o&&Hg(this),new jr(function(){var u=s.next();return u.done?u:Fn(n,o?i.size-++a:a++,u.value,u)})},t}(pl),kde=function(e){function t(r){this._iter=r,this.size=r.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.has=function(n){return this._iter.includes(n)},t.prototype.__iterate=function(n,o){var i=this;return this._iter.__iterate(function(s){return n(s,s,i)},o)},t.prototype.__iterator=function(n,o){var i=this._iter.__iterator(ll,o);return new jr(function(){var s=i.next();return s.done?s:Fn(n,s.value,s.value,s)})},t}(Tv),Ade=function(e){function t(r){this._iter=r,this.size=r.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.entrySeq=function(){return this._iter.toSeq()},t.prototype.__iterate=function(n,o){var i=this;return this._iter.__iterate(function(s){if(s){DZ(s);var a=js(s);return n(a?s.get(1):s[1],a?s.get(0):s[0],i)}},o)},t.prototype.__iterator=function(n,o){var i=this._iter.__iterator(ll,o);return new jr(function(){for(;;){var s=i.next();if(s.done)return s;var a=s.value;if(a){DZ(a);var u=js(a);return Fn(n,u?a.get(0):a[0],u?a.get(1):a[1],s)}}})},t}(O1);wde.prototype.cacheResult=A9.prototype.cacheResult=kde.prototype.cacheResult=Ade.prototype.cacheResult=G7;function Tde(e){var t=Sc(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var r=e.reverse.apply(this);return r.flip=function(){return e.reverse()},r},t.has=function(r){return e.includes(r)},t.includes=function(r){return e.has(r)},t.cacheResult=G7,t.__iterateUncached=function(r,n){var o=this;return e.__iterate(function(i,s){return r(s,i,o)!==!1},n)},t.__iteratorUncached=function(r,n){if(r===mu){var o=e.__iterator(r,n);return new jr(function(){var i=o.next();if(!i.done){var s=i.value[0];i.value[0]=i.value[1],i.value[1]=s}return i})}return e.__iterator(r===ll?fE:ll,n)},t}function xde(e,t,r){var n=Sc(e);return n.size=e.size,n.has=function(o){return e.has(o)},n.get=function(o,i){var s=e.get(o,_r);return s===_r?i:t.call(r,s,o,e)},n.__iterateUncached=function(o,i){var s=this;return e.__iterate(function(a,u,l){return o(t.call(r,a,u,l),u,s)!==!1},i)},n.__iteratorUncached=function(o,i){var s=e.__iterator(mu,i);return new jr(function(){var a=s.next();if(a.done)return a;var u=a.value,l=u[0];return Fn(o,l,t.call(r,u[1],l,e),a)})},n}function q7(e,t){var r=this,n=Sc(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var o=Tde(e);return o.reverse=function(){return e.flip()},o}),n.get=function(o,i){return e.get(t?o:-1-o,i)},n.has=function(o){return e.has(t?o:-1-o)},n.includes=function(o){return e.includes(o)},n.cacheResult=G7,n.__iterate=function(o,i){var s=this,a=0;return i&&Hg(e),e.__iterate(function(u,l){return o(u,t?l:i?s.size-++a:a++,s)},!i)},n.__iterator=function(o,i){var s=0;i&&Hg(e);var a=e.__iterator(mu,!i);return new jr(function(){var u=a.next();if(u.done)return u;var l=u.value;return Fn(o,t?l[0]:i?r.size-++s:s++,l[1],u)})},n}function Ide(e,t,r,n){var o=Sc(e);return n&&(o.has=function(i){var s=e.get(i,_r);return s!==_r&&!!t.call(r,s,i,e)},o.get=function(i,s){var a=e.get(i,_r);return a!==_r&&t.call(r,a,i,e)?a:s}),o.__iterateUncached=function(i,s){var a=this,u=0;return e.__iterate(function(l,c,f){if(t.call(r,l,c,f))return u++,i(l,n?c:u-1,a)},s),u},o.__iteratorUncached=function(i,s){var a=e.__iterator(mu,s),u=0;return new jr(function(){for(;;){var l=a.next();if(l.done)return l;var c=l.value,f=c[0],d=c[1];if(t.call(r,d,f,e))return Fn(i,n?f:u++,d,l)}})},o}function EZe(e,t,r){var n=uc().asMutable();return e.__iterate(function(o,i){n.update(t.call(r,o,i,e),0,function(s){return s+1})}),n.asImmutable()}function SZe(e,t,r){var n=On(e),o=(nl(e)?fa():uc()).asMutable();e.__iterate(function(s,a){o.update(t.call(r,s,a,e),function(u){return u=u||[],u.push(n?[a,s]:s),u})});var i=K7(e);return o.map(function(s){return sn(e,i(s))}).asImmutable()}function wZe(e,t,r){var n=On(e),o=[[],[]];e.__iterate(function(s,a){o[t.call(r,s,a,e)?1:0].push(n?[a,s]:s)});var i=K7(e);return o.map(function(s){return sn(e,i(s))})}function W7(e,t,r,n){var o=e.size;if(b9(t,r,o))return e;var i=cE(t,o),s=_9(r,o);if(i!==i||s!==s)return W7(e.toSeq().cacheResult(),t,r,n);var a=s-i,u;a===a&&(u=a<0?0:a);var l=Sc(e);return l.size=u===0?u:e.size&&u||void 0,!n&&L7(e)&&u>=0&&(l.get=function(c,f){return c=g1(this,c),c>=0&&cu)return zs();var v=d.next();return n||c===ll||v.done?v:c===fE?Fn(c,g-1,void 0,v):Fn(c,g-1,v.value[1],v)})},l}function kZe(e,t,r){var n=Sc(e);return n.__iterateUncached=function(o,i){var s=this;if(i)return this.cacheResult().__iterate(o,i);var a=0;return e.__iterate(function(u,l,c){return t.call(r,u,l,c)&&++a&&o(u,l,s)}),a},n.__iteratorUncached=function(o,i){var s=this;if(i)return this.cacheResult().__iterator(o,i);var a=e.__iterator(mu,i),u=!0;return new jr(function(){if(!u)return zs();var l=a.next();if(l.done)return l;var c=l.value,f=c[0],d=c[1];return t.call(r,d,f,s)?o===mu?l:Fn(o,f,d,l):(u=!1,zs())})},n}function Nde(e,t,r,n){var o=Sc(e);return o.__iterateUncached=function(i,s){var a=this;if(s)return this.cacheResult().__iterate(i,s);var u=!0,l=0;return e.__iterate(function(c,f,d){if(!(u&&(u=t.call(r,c,f,d))))return l++,i(c,n?f:l-1,a)}),l},o.__iteratorUncached=function(i,s){var a=this;if(s)return this.cacheResult().__iterator(i,s);var u=e.__iterator(mu,s),l=!0,c=0;return new jr(function(){var f,d,h;do{if(f=u.next(),f.done)return n||i===ll?f:i===fE?Fn(i,c++,void 0,f):Fn(i,c++,f.value[1],f);var g=f.value;d=g[0],h=g[1],l&&(l=t.call(r,h,d,a))}while(l);return i===mu?f:Fn(i,d,h,f)})},o}function AZe(e,t){var r=On(e),n=[e].concat(t).map(function(s){return js(s)?r&&(s=ku(s)):s=r?H7(s):bde(Array.isArray(s)?s:[s]),s}).filter(function(s){return s.size!==0});if(n.length===0)return e;if(n.length===1){var o=n[0];if(o===e||r&&On(o)||Fs(e)&&Fs(o))return o}var i=new Yh(n);return r?i=i.toKeyedSeq():Fs(e)||(i=i.toSetSeq()),i=i.flatten(!0),i.size=n.reduce(function(s,a){if(s!==void 0){var u=a.size;if(u!==void 0)return s+u}},0),i}function Cde(e,t,r){var n=Sc(e);return n.__iterateUncached=function(o,i){if(i)return this.cacheResult().__iterate(o,i);var s=0,a=!1;function u(l,c){l.__iterate(function(f,d){return(!t||c0}function kw(e,t,r,n){var o=Sc(e),i=new Yh(r).map(function(s){return s.size});return o.size=n?i.max():i.min(),o.__iterate=function(s,a){for(var u=this.__iterator(ll,a),l,c=0;!(l=u.next()).done&&s(l.value,c++,this)!==!1;);return c},o.__iteratorUncached=function(s,a){var u=r.map(function(f){return f=co(f),VB(a?f.reverse():f)}),l=0,c=!1;return new jr(function(){var f;return c||(f=u.map(function(d){return d.next()}),c=n?f.every(function(d){return d.done}):f.some(function(d){return d.done})),c?zs():Fn(s,l++,t.apply(null,f.map(function(d){return d.value})))})},o}function sn(e,t){return e===t?e:L7(e)?t:e.constructor(t)}function DZ(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function K7(e){return On(e)?ku:Fs(e)?hp:Sv}function Sc(e){return Object.create((On(e)?O1:Fs(e)?pl:Tv).prototype)}function G7(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):wa.prototype.cacheResult.call(this)}function Rde(e,t){return e===void 0&&t===void 0?0:e===void 0?1:t===void 0?-1:e>t?1:e0;)t[r]=arguments[r+1];if(typeof e!="function")throw new TypeError("Invalid merger function: "+e);return jde(this,t,e)}function jde(e,t,r){for(var n=[],o=0;o0;)t[r]=arguments[r+1];return Z7(this,t,e)}function ej(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return xv(this,e,Zu(),function(n){return J7(n,t)})}function tj(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return xv(this,e,Zu(),function(n){return Z7(n,t)})}function dE(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function hE(){return this.__ownerID?this:this.__ensureOwner(new M7)}function pE(){return this.__ensureOwner()}function rj(){return this.__altered}var uc=function(e){function t(r){return r==null?Zu():P7(r)&&!nl(r)?r:Zu().withMutations(function(n){var o=e(r);na(o.size),o.forEach(function(i,s){return n.set(s,i)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){for(var n=[],o=arguments.length;o--;)n[o]=arguments[o];return Zu().withMutations(function(i){for(var s=0;s=n.length)throw new Error("Missing value for key: "+n[s]);i.set(n[s],n[s+1])}})},t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(n,o){return this._root?this._root.get(0,void 0,n,o):o},t.prototype.set=function(n,o){return MZ(this,n,o)},t.prototype.remove=function(n){return MZ(this,n,_r)},t.prototype.deleteAll=function(n){var o=co(n);return o.size===0?this:this.withMutations(function(i){o.forEach(function(s){return i.remove(s)})})},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Zu()},t.prototype.sort=function(n){return fa($g(this,n))},t.prototype.sortBy=function(n,o){return fa($g(this,o,n))},t.prototype.map=function(n,o){var i=this;return this.withMutations(function(s){s.forEach(function(a,u){s.set(u,n.call(o,a,u,i))})})},t.prototype.__iterator=function(n,o){return new LZe(this,n,o)},t.prototype.__iterate=function(n,o){var i=this,s=0;return this._root&&this._root.iterate(function(a){return s++,n(a[1],a[0],i)},o),s},t.prototype.__ensureOwner=function(n){return n===this.__ownerID?this:n?nj(this.size,this._root,n,this.__hash):this.size===0?Zu():(this.__ownerID=n,this.__altered=!1,this)},t}(ku);uc.isMap=P7;var An=uc.prototype;An[_de]=!0;An[lE]=An.remove;An.removeAll=An.deleteAll;An.setIn=U7;An.removeIn=An.deleteIn=Y7;An.update=X7;An.updateIn=Q7;An.merge=An.concat=Mde;An.mergeWith=Lde;An.mergeDeep=zde;An.mergeDeepWith=Hde;An.mergeIn=ej;An.mergeDeepIn=tj;An.withMutations=dE;An.wasAltered=rj;An.asImmutable=pE;An["@@transducer/init"]=An.asMutable=hE;An["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])};An["@@transducer/result"]=function(e){return e.asImmutable()};var Jb=function(t,r){this.ownerID=t,this.entries=r};Jb.prototype.get=function(t,r,n,o){for(var i=this.entries,s=0,a=i.length;s=qZe)return jZe(t,l,o,i);var h=t&&t===this.ownerID,g=h?l:Kl(l);return d?u?c===f-1?g.pop():g[c]=g.pop():g[c]=[o,i]:g.push([o,i]),h?(this.entries=g,this):new Jb(t,g)}};var Pg=function(t,r,n){this.ownerID=t,this.bitmap=r,this.nodes=n};Pg.prototype.get=function(t,r,n,o){r===void 0&&(r=ra(n));var i=1<<((t===0?r:r>>>t)&rs),s=this.bitmap;return s&i?this.nodes[$de(s&i-1)].get(t+Sn,r,n,o):o};Pg.prototype.update=function(t,r,n,o,i,s,a){n===void 0&&(n=ra(o));var u=(r===0?n:n>>>r)&rs,l=1<=WZe)return HZe(t,h,c,u,v);if(f&&!v&&h.length===2&&LZ(h[d^1]))return h[d^1];if(f&&v&&h.length===1&&LZ(v))return v;var y=t&&t===this.ownerID,E=f?v?c:c^l:c|l,_=f?v?Pde(h,d,v,y):PZe(h,d,y):$Ze(h,d,v,y);return y?(this.bitmap=E,this.nodes=_,this):new Pg(t,E,_)};var e_=function(t,r,n){this.ownerID=t,this.count=r,this.nodes=n};e_.prototype.get=function(t,r,n,o){r===void 0&&(r=ra(n));var i=(t===0?r:r>>>t)&rs,s=this.nodes[i];return s?s.get(t+Sn,r,n,o):o};e_.prototype.update=function(t,r,n,o,i,s,a){n===void 0&&(n=ra(o));var u=(r===0?n:n>>>r)&rs,l=i===_r,c=this.nodes,f=c[u];if(l&&!f)return this;var d=oj(f,t,r+Sn,n,o,i,s,a);if(d===f)return this;var h=this.count;if(!f)h++;else if(!d&&(h--,h>>r)&rs,s=(r===0?n:n>>>r)&rs,a,u=i===s?[ij(e,t,r+Sn,n,o)]:(a=new Rf(t,n,o),i>>=1)s[a]=r&1?t[i++]:void 0;return s[n]=o,new e_(e,i+1,s)}function $de(e){return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),e=e+(e>>4)&252645135,e+=e>>8,e+=e>>16,e&127}function Pde(e,t,r,n){var o=n?e:Kl(e);return o[t]=r,o}function $Ze(e,t,r,n){var o=e.length+1;if(n&&t+1===o)return e[t]=r,e;for(var i=new Array(o),s=0,a=0;a0&&i=0&&n>>r&rs;if(o>=this.array.length)return new e1([],t);var i=o===0,s;if(r>0){var a=this.array[o];if(s=a&&a.removeBefore(t,r-Sn,n),s===a&&i)return this}if(i&&!s)return this;var u=Wg(this,t);if(!i)for(var l=0;l>>r&rs;if(o>=this.array.length)return this;var i;if(r>0){var s=this.array[o];if(i=s&&s.removeAfter(t,r-Sn,n),i===s&&o===this.array.length-1)return this}var a=Wg(this,t);return a.array.splice(o+1),i&&(a.array[o]=i),a};var Xy={};function jZ(e,t){var r=e._origin,n=e._capacity,o=r_(n),i=e._tail;return s(e._root,e._level,0);function s(l,c,f){return c===0?a(l,f):u(l,c,f)}function a(l,c){var f=c===o?i&&i.array:l&&l.array,d=c>r?0:r-c,h=n-c;return h>ou&&(h=ou),function(){if(d===h)return Xy;var g=t?--h:d++;return f&&f[g]}}function u(l,c,f){var d,h=l&&l.array,g=f>r?0:r-f>>c,v=(n-f>>c)+1;return v>ou&&(v=ou),function(){for(;;){if(d){var y=d();if(y!==Xy)return y;d=null}if(g===v)return Xy;var E=t?--v:g++;d=s(h&&h[E],c-Sn,f+(E<=e.size||t<0)return e.withMutations(function(s){t<0?Ad(s,t).set(0,r):Ad(s,0,t+1).set(t,r)});t+=e._origin;var n=e._tail,o=e._root,i=KB();return t>=r_(e._capacity)?n=QB(n,e.__ownerID,0,t,r,i):o=QB(o,e.__ownerID,e._level,t,r,i),i.value?e.__ownerID?(e._root=o,e._tail=n,e.__hash=void 0,e.__altered=!0,e):t_(e._origin,e._capacity,e._level,o,n):e}function QB(e,t,r,n,o,i){var s=n>>>r&rs,a=e&&s0){var l=e&&e.array[s],c=QB(l,t,r-Sn,n,o,i);return c===l?e:(u=Wg(e,t),u.array[s]=c,u)}return a&&e.array[s]===o?e:(i&&iu(i),u=Wg(e,t),o===void 0&&s===u.array.length-1?u.array.pop():u.array[s]=o,u)}function Wg(e,t){return t&&e&&t===e.ownerID?e:new e1(e?e.array.slice():[],t)}function Kde(e,t){if(t>=r_(e._capacity))return e._tail;if(t<1<0;)r=r.array[t>>>n&rs],n-=Sn;return r}}function Ad(e,t,r){t!==void 0&&(t|=0),r!==void 0&&(r|=0);var n=e.__ownerID||new M7,o=e._origin,i=e._capacity,s=o+t,a=r===void 0?i:r<0?i+r:o+r;if(s===o&&a===i)return e;if(s>=a)return e.clear();for(var u=e._level,l=e._root,c=0;s+c<0;)l=new e1(l&&l.array.length?[void 0,l]:[],n),u+=Sn,c+=1<=1<f?new e1([],n):h;if(h&&d>f&&sSn;y-=Sn){var E=f>>>y&rs;v=v.array[E]=Wg(v.array[E],n)}v.array[f>>>Sn&rs]=h}if(a=d)s-=d,a-=d,u=Sn,l=null,g=g&&g.removeBefore(n,0,s);else if(s>o||d>>u&rs;if(_!==d>>>u&rs)break;_&&(c+=(1<o&&(l=l.removeBefore(n,u,s-c)),l&&d>>Sn<=ou&&o.size>=n.size*2?(u=o.filter(function(l,c){return l!==void 0&&i!==c}),a=u.toKeyedSeq().map(function(l){return l[0]}).flip().toMap(),e.__ownerID&&(a.__ownerID=u.__ownerID=e.__ownerID)):(a=n.remove(t),u=i===o.size-1?o.pop():o.set(i,void 0))}else if(s){if(r===o.get(i)[1])return e;a=n,u=o.set(i,[t,r])}else a=n.set(t,o.size),u=o.set(o.size,[t,r]);return e.__ownerID?(e.size=a.size,e._map=a,e._list=u,e.__hash=void 0,e.__altered=!0,e):sj(a,u)}var Gde="@@__IMMUTABLE_STACK__@@";function ZB(e){return!!(e&&e[Gde])}var aj=function(e){function t(r){return r==null?Aw():ZB(r)?r:Aw().pushAll(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(n,o){var i=this._head;for(n=g1(this,n);i&&n--;)i=i.next;return i?i.value:o},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var n=arguments;if(arguments.length===0)return this;for(var o=this.size+arguments.length,i=this._head,s=arguments.length-1;s>=0;s--)i={value:n[s],next:i};return this.__ownerID?(this.size=o,this._head=i,this.__hash=void 0,this.__altered=!0,this):my(o,i)},t.prototype.pushAll=function(n){if(n=e(n),n.size===0)return this;if(this.size===0&&ZB(n))return n;na(n.size);var o=this.size,i=this._head;return n.__iterate(function(s){o++,i={value:s,next:i}},!0),this.__ownerID?(this.size=o,this._head=i,this.__hash=void 0,this.__altered=!0,this):my(o,i)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Aw()},t.prototype.slice=function(n,o){if(b9(n,o,this.size))return this;var i=cE(n,this.size),s=_9(o,this.size);if(s!==this.size)return e.prototype.slice.call(this,n,o);for(var a=this.size-i,u=this._head;i--;)u=u.next;return this.__ownerID?(this.size=a,this._head=u,this.__hash=void 0,this.__altered=!0,this):my(a,u)},t.prototype.__ensureOwner=function(n){return n===this.__ownerID?this:n?my(this.size,this._head,n,this.__hash):this.size===0?Aw():(this.__ownerID=n,this.__altered=!1,this)},t.prototype.__iterate=function(n,o){var i=this;if(o)return new Yh(this.toArray()).__iterate(function(u,l){return n(u,l,i)},o);for(var s=0,a=this._head;a&&n(a.value,s++,this)!==!1;)a=a.next;return s},t.prototype.__iterator=function(n,o){if(o)return new Yh(this.toArray()).__iterator(n,o);var i=0,s=this._head;return new jr(function(){if(s){var a=s.value;return s=s.next,Fn(n,i++,a)}return zs()})},t}(hp);aj.isStack=ZB;var ls=aj.prototype;ls[Gde]=!0;ls.shift=ls.pop;ls.unshift=ls.push;ls.unshiftAll=ls.pushAll;ls.withMutations=dE;ls.wasAltered=rj;ls.asImmutable=pE;ls["@@transducer/init"]=ls.asMutable=hE;ls["@@transducer/step"]=function(e,t){return e.unshift(t)};ls["@@transducer/result"]=function(e){return e.asImmutable()};function my(e,t,r,n){var o=Object.create(ls);return o.size=e,o._head=t,o.__ownerID=r,o.__hash=n,o.__altered=!1,o}var PZ;function Aw(){return PZ||(PZ=my(0))}var Vde="@@__IMMUTABLE_SET__@@";function uj(e){return!!(e&&e[Vde])}function Ude(e){return uj(e)&&nl(e)}function Yde(e,t){if(e===t)return!0;if(!js(t)||e.size!==void 0&&t.size!==void 0&&e.size!==t.size||e.__hash!==void 0&&t.__hash!==void 0&&e.__hash!==t.__hash||On(e)!==On(t)||Fs(e)!==Fs(t)||nl(e)!==nl(t))return!1;if(e.size===0&&t.size===0)return!0;var r=!E9(e);if(nl(e)){var n=e.entries();return t.every(function(u,l){var c=n.next().value;return c&&ca(c[1],u)&&(r||ca(c[0],l))})&&n.next().done}var o=!1;if(e.size===void 0)if(t.size===void 0)typeof e.cacheResult=="function"&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var s=!0,a=t.__iterate(function(u,l){if(r?!e.has(u):o?!ca(u,e.get(l,_r)):!ca(e.get(l,_r),u))return s=!1,!1});return s&&e.size===a}function pp(e,t){var r=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(r),e}function ZA(e){if(!e||typeof e!="object")return e;if(!js(e)){if(!v1(e))return e;e=wa(e)}if(On(e)){var t={};return e.__iterate(function(n,o){t[o]=ZA(n)}),t}var r=[];return e.__iterate(function(n){r.push(ZA(n))}),r}var gE=function(e){function t(r){return r==null?yy():uj(r)&&!nl(r)?r:yy().withMutations(function(n){var o=e(r);na(o.size),o.forEach(function(i){return n.add(i)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(n){return this(ku(n).keySeq())},t.intersect=function(n){return n=co(n).toArray(),n.length?ci.intersect.apply(t(n.pop()),n):yy()},t.union=function(n){return n=co(n).toArray(),n.length?ci.union.apply(t(n.pop()),n):yy()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(n){return this._map.has(n)},t.prototype.add=function(n){return Tw(this,this._map.set(n,n))},t.prototype.remove=function(n){return Tw(this,this._map.remove(n))},t.prototype.clear=function(){return Tw(this,this._map.clear())},t.prototype.map=function(n,o){var i=this,s=!1,a=Tw(this,this._map.mapEntries(function(u){var l=u[1],c=n.call(o,l,l,i);return c!==l&&(s=!0),[c,c]},o));return s?a:this},t.prototype.union=function(){for(var n=[],o=arguments.length;o--;)n[o]=arguments[o];return n=n.filter(function(i){return i.size!==0}),n.length===0?this:this.size===0&&!this.__ownerID&&n.length===1?this.constructor(n[0]):this.withMutations(function(i){for(var s=0;s=0&&o=0&&ithis.size?r:this.find(function(n,o){return o===t},void 0,r)},has:function(t){return t=g1(this,t),t>=0&&(this.size!==void 0?this.size===1/0||tt?-1:0}function ZZe(e){if(e.size===1/0)return 0;var t=nl(e),r=On(e),n=t?1:0,o=e.__iterate(r?t?function(i,s){n=31*n+UZ(ra(i),ra(s))|0}:function(i,s){n=n+UZ(ra(i),ra(s))|0}:t?function(i){n=31*n+ra(i)|0}:function(i){n=n+ra(i)|0});return JZe(o,n)}function JZe(e,t){return t=jm(t,3432918353),t=jm(t<<15|t>>>-15,461845907),t=jm(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=jm(t^t>>>16,2246822507),t=jm(t^t>>>13,3266489909),t=k9(t^t>>>16),t}function UZ(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var n_=function(e){function t(r){return r==null?JB():Ude(r)?r:JB().withMutations(function(n){var o=Sv(r);na(o.size),o.forEach(function(i){return n.add(i)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(n){return this(ku(n).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(gE);n_.isOrderedSet=Ude;var gp=n_.prototype;gp[kv]=!0;gp.zip=Iv.zip;gp.zipWith=Iv.zipWith;gp.zipAll=Iv.zipAll;gp.__empty=JB;gp.__make=e1e;function e1e(e,t){var r=Object.create(gp);return r.size=e?e.size:0,r._map=e,r.__ownerID=t,r}var YZ;function JB(){return YZ||(YZ=e1e(vy()))}function eJe(e){if(wv(e))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(Ec(e))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(e===null||typeof e!="object")throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}var Zo=function(t,r){var n;eJe(t);var o=function(a){var u=this;if(a instanceof o)return a;if(!(this instanceof o))return new o(a);if(!n){n=!0;var l=Object.keys(t),c=i._indices={};i._name=r,i._keys=l,i._defaultValues=t;for(var f=0;f-1)return FB(e,t.split(" "));var o=e.options,i=o.parent;if(t[0]==="$"){var s=i.getRule(t.substr(1));return!s||s===e?!1:(i.classes[e.key]+=" "+i.classes[s.key],!0)}return i.classes[e.key]+=" "+t,!0}function XUe(){function e(t,r){return"composes"in t&&(FB(r,t.composes),delete t.composes),t}return{onProcessStyle:e}}var QUe=/[A-Z]/g,ZUe=/^ms-/,zD={};function JUe(e){return"-"+e.toLowerCase()}function kfe(e){if(zD.hasOwnProperty(e))return zD[e];var t=e.replace(QUe,JUe);return zD[e]=ZUe.test(t)?"-"+t:t}function Zk(e){var t={};for(var r in e){var n=r.indexOf("--")===0?r:kfe(r);t[n]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Zk):t.fallbacks=Zk(e.fallbacks)),t}function eYe(){function e(r){if(Array.isArray(r)){for(var n=0;ne.length)&&(t=e.length);for(var r=0,n=new Array(t);r-1){var i=Rfe[t];if(!Array.isArray(i))return Jt.js+h1(i)in r?Jt.css+i:!1;if(!o)return!1;for(var s=0;sn?1:-1:r.length-n.length};return{onProcessStyle:function(r,n){if(n.type!=="style")return r;for(var o={},i=Object.keys(r).sort(e),s=0;sKYe)&&(o=t.createStyleSheet().attach()),o};function s(){var a=arguments,u=JSON.stringify(a),l=r.get(u);if(l)return l.className;var c=[];for(var f in a){var d=a[f];if(!Array.isArray(d)){c.push(d);continue}for(var h=0;ht=>!!lXe(e)(t),Nf=e=>t=>{const r=t||0;return Array.isArray(e)?e.reduce((n,o)=>n|o,r):r|e},lXe=e=>t=>(t||0)&e,aE=e=>t=>{const r=t||0;return Array.isArray(e)?e.reduce((n,o)=>n&~o,r):r&~e},ta=e=>()=>e,D7=0,E9=1,F7=2;var Ii;(function(e){e[e.Default=D7]="Default",e[e.Selected=E9]="Selected",e[e.Activated=F7]="Activated",e[e.ConnectedToSelected=4]="ConnectedToSelected",e[e.UnconnectedToSelected=8]="UnconnectedToSelected",e[e.Editing=16]="Editing"})(Ii||(Ii={}));var Fo;(function(e){e[e.Default=D7]="Default",e[e.Selected=E9]="Selected",e[e.Activated=F7]="Activated",e[e.Editing=4]="Editing",e[e.ConnectedToSelected=8]="ConnectedToSelected",e[e.UnconnectedToSelected=16]="UnconnectedToSelected"})(Fo||(Fo={}));var is;(function(e){e[e.Default=D7]="Default",e[e.Selected=E9]="Selected",e[e.Activated=F7]="Activated",e[e.Connecting=4]="Connecting",e[e.ConnectingAsTarget=8]="ConnectingAsTarget"})(is||(is={}));const On=e=>t=>{var r;const n=e((r=t.status)!==null&&r!==void 0?r:0);return n===t.status?t:Object.assign(Object.assign({},t),{status:n})};function B7(e){return cp(Fo.Editing)(e.status)}function Jd(e){return cp(E9)(e.status)}function cZ(e){return!Jd(e)}const cXe=e=>t=>(t||0)&Fo.Activated|e;class Vh{static log(t){}static warn(t){}static error(...t){console.error(...t)}static never(t,r){throw new Error(r??`${t} is unexpected`)}}const uE=(e,t)=>{const r=t.getNodeConfig(e);if(!r){Vh.warn(`invalid node ${JSON.stringify(e)}`);return}return r};function lE(e,t){var r;const n=(r=e==null?void 0:e.getMinWidth(t))!==null&&r!==void 0?r:0;return t.width&&t.width>=n?t.width:n}function cE(e,t){var r;const n=(r=e==null?void 0:e.getMinHeight(t))!==null&&r!==void 0?r:0;return t.height&&t.height>=n?t.height:n}function Rf(e,t){const r=uE(e,t),n=lE(r,e);return{height:cE(r,e),width:n}}function fXe(e,t,r){var n,o,i,s,a,u,l,c;const f=new Set(e.nodeIds),d=Array.from(t.values()).filter(A=>f.has(A.id)),h=Math.min(...d.map(A=>A.x)),g=Math.max(...d.map(A=>A.x+Rf(A,r).width)),v=Math.min(...d.map(A=>A.y)),y=Math.max(...d.map(A=>A.y+Rf(A,r).height)),E=h-((o=(n=e.padding)===null||n===void 0?void 0:n.left)!==null&&o!==void 0?o:0),_=v-((s=(i=e.padding)===null||i===void 0?void 0:i.top)!==null&&s!==void 0?s:0),S=y-_+((u=(a=e.padding)===null||a===void 0?void 0:a.bottom)!==null&&u!==void 0?u:0),b=g-E+((c=(l=e.padding)===null||l===void 0?void 0:l.left)!==null&&c!==void 0?c:0);return{x:E,y:_,width:b,height:S}}var Jk;(function(e){e[e.Primary=0]="Primary",e[e.Auxiliary=1]="Auxiliary",e[e.Secondary=2]="Secondary",e[e.Fourth=4]="Fourth",e[e.Fifth=5]="Fifth"})(Jk||(Jk={}));var fZ;(function(e){e[e.None=0]="None",e[e.Left=1]="Left",e[e.Right=2]="Right",e[e.Middle=4]="Middle"})(fZ||(fZ={}));const ex=50,dZ=5,hZ=500,ts={controlPointColor:"#333333",primaryColor:"#0078D4",defaultColor:"#CCCCCC",borderColor:"#B3B0AD",defaultBorderColor:"#FFFFFF",unConnectableBgColor:"#E1DFDD",defaultBackgroundColor:"#FFFFFF",portStroke:"#ccc",portFill:"#fff",connectedPortColor:"gray",nodeActivateFill:"#ffffff",nodeActivateStroke:"#0078D4",nodeFill:"#ffffff",nodeStroke:"#cccccc",contextMenuBackground:"#FFFFFF",contextMenuBorder:"#E1DFDD",contextMenuHoverBackground:"rgba(0, 120, 212, 0.05)",fontColor:"#000000",canvasBackground:"#EDEDED",minimapBackground:"#EDEDED",edgeColor:"#ccc",edgeColorSelected:"#015cda",minimapShadow:"#000000",outlineStyle:"none",focusOutlineColor:"#000000",dummyNodeStroke:"#015cda",inputFocusBorderAlt:"#0078d4",buttonBorder:"#797775",scrollbarColor:"#c8c8c8"},dXe=e=>{const{style:t,node:r,width:n,height:o,textY:i}=e,s=r.data&&r.data.comment?r.data.comment:"",a=B7(r);return N.jsxs("g",{children:[N.jsx("rect",{width:n,height:o,x:r.x,y:r.y,style:t,rx:t.borderRadius}),N.jsx("text",Object.assign({x:r.x,y:i,fontSize:12},{children:r.name})),r.data&&r.data.comment&&!a&&N.jsx("text",Object.assign({x:r.x,y:i+20,fontSize:12,className:`comment-${r.id}`},{children:r.data.comment})),a&&N.jsx("foreignObject",Object.assign({x:r.x,y:i,height:o/2.5,width:n-5},{children:N.jsx("input",{value:s,placeholder:"Input your comment here"})}))]},r.id)},jB={getMinHeight(){return 150},getMinWidth(){return 150},render(e){const t=e.model,r=lE(jB,t),n=cE(jB,t),o=cp(Fo.Selected|Fo.Activated)(t.status)?{fill:ts.nodeActivateFill,stroke:ts.nodeActivateStroke}:{fill:ts.nodeFill,fillOpacity:.1,stroke:ts.nodeStroke,borderRadius:"5"},i=t.y+n/3;return N.jsx(dXe,{style:o,node:t,width:r,height:n,textY:i})}},Mfe=(e,t,r,n)=>`M${e},${r}C${e},${r-pZ(r,n)},${t},${n+5+pZ(r,n)},${t},${n+5}`,pZ=(e,t)=>Math.min(5*15,Math.max(5*3,Math.abs((e-(t+5))/2))),hXe={render(e){const t=e.model,r={cursor:"crosshair",stroke:cp(Ii.Selected)(t.status)?ts.edgeColorSelected:ts.edgeColor,strokeWidth:"2"};return N.jsx("path",{d:Mfe(e.x2,e.x1,e.y2,e.y1),fill:"none",style:r,id:`edge${t.id}`},t.id)}};class pXe{getStyle(t,r,n,o,i){const s=ts.portStroke;let a=ts.portFill;return(o||i)&&(a=ts.connectedPortColor),cp(is.Activated)(t.status)&&(a=ts.primaryColor),{stroke:s,fill:a}}getIsConnectable(){return!0}render(t){const{model:r,data:n,parentNode:o}=t,i=n.isPortConnectedAsSource(o.id,r.id),s=n.isPortConnectedAsTarget(o.id,r.id),a=this.getStyle(r,o,n,i,s),{x:u,y:l}=t,c=`${u-5} ${l}, ${u+7} ${l}, ${u+1} ${l+8}`;return s?N.jsx("polygon",{points:c,style:a}):N.jsx("circle",{r:5,cx:u,cy:l,style:a},`${t.parentNode.id}-${t.model.id}`)}}const gXe=new pXe;class vXe{constructor(t){this.storage=t}write(t){this.storage.setItem("graph-clipboard",JSON.stringify({nodes:t.nodes.map(r=>Object.assign(Object.assign({},r),{data:{}})),edges:t.edges.map(r=>Object.assign(Object.assign({},r),{data:{}}))}))}read(){const t=this.storage.getItem("graph-clipboard");if(!t)return null;try{const r=JSON.parse(t),n=new Map;return{nodes:r.nodes.map(o=>{const i=Xk();return n.set(o.id,i),Object.assign(Object.assign({},o),{x:o.x+ex,y:o.y+ex,id:i})}),edges:r.edges.map(o=>Object.assign(Object.assign({},o),{id:Xk(),source:n.get(o.source)||"",target:n.get(o.target)||""}))}}catch{return null}}}class mXe{get length(){return this.items.size}constructor(){this.key=()=>"DefaultLocalStorage",this.items=new Map}clear(){this.items=new Map}setItem(t,r){this.items.set(t,r)}getItem(t){return this.items.has(t)?this.items.get(t):null}removeItem(t){this.items.delete(t)}}class zg{constructor(){const t=new mXe,r=new vXe(t);this.draft={getNodeConfig:()=>jB,getEdgeConfig:()=>hXe,getPortConfig:()=>gXe,getGroupConfig:()=>{},getClipboard:()=>r}}static default(){return new zg}static from(t){return new zg().registerNode(t.getNodeConfig.bind(t)).registerEdge(t.getEdgeConfig.bind(t)).registerPort(t.getPortConfig.bind(t)).registerGroup(t.getGroupConfig.bind(t)).registerClipboard(t.getClipboard.bind(t))}registerNode(t){return this.draft.getNodeConfig=t,this}registerEdge(t){return this.draft.getEdgeConfig=t,this}registerPort(t){return this.draft.getPortConfig=t,this}registerGroup(t){return this.draft.getGroupConfig=t,this}registerClipboard(t){return this.draft.getClipboard=t,this}build(){return this.draft}}const yXe=k.createContext(zg.default().build());var gZ;(function(e){e.Node="node",e.Edge="edge",e.Port="port",e.Canvas="canvas",e.Multi="multi"})(gZ||(gZ={}));const Lfe=()=>({startX:0,startY:0,height:0,width:0});var at;(function(e){e.NodeDraggable="nodeDraggable",e.NodeResizable="nodeResizable",e.ClickNodeToSelect="clickNodeToSelect",e.PanCanvas="panCanvas",e.MultipleSelect="multipleSelect",e.LassoSelect="lassoSelect",e.Delete="delete",e.AddNewNodes="addNewNodes",e.AddNewEdges="addNewEdges",e.AddNewPorts="addNewPorts",e.AutoFit="autoFit",e.CanvasHorizontalScrollable="canvasHorizontalScrollable",e.CanvasVerticalScrollable="canvasVerticalScrollable",e.NodeHoverView="nodeHoverView",e.PortHoverView="portHoverView",e.AddEdgesByKeyboard="addEdgesByKeyboard",e.A11yFeatures="a11YFeatures",e.EditNode="editNode",e.AutoAlign="autoAlign",e.UndoStack="undoStack",e.CtrlKeyZoom="ctrlKeyZoom",e.LimitBoundary="limitBoundary",e.EditEdge="editEdge",e.InvisibleScrollbar="InvisibleScrollbar"})(at||(at={}));at.NodeDraggable,at.NodeResizable,at.ClickNodeToSelect,at.PanCanvas,at.MultipleSelect,at.LassoSelect,at.Delete,at.AddNewNodes,at.AddNewEdges,at.AddNewPorts,at.CanvasHorizontalScrollable,at.CanvasVerticalScrollable,at.NodeHoverView,at.PortHoverView,at.AddEdgesByKeyboard,at.A11yFeatures,at.AutoFit,at.EditNode,at.AutoAlign,at.UndoStack,at.CtrlKeyZoom,at.LimitBoundary,at.EditEdge;const bXe=new Set([at.NodeDraggable,at.NodeResizable,at.ClickNodeToSelect,at.PanCanvas,at.MultipleSelect,at.Delete,at.AddNewNodes,at.AddNewEdges,at.AddNewPorts,at.CanvasHorizontalScrollable,at.CanvasVerticalScrollable,at.NodeHoverView,at.PortHoverView,at.AddEdgesByKeyboard,at.A11yFeatures,at.EditNode,at.AutoAlign,at.UndoStack,at.CtrlKeyZoom,at.LimitBoundary]),_Xe=new Set([at.NodeDraggable,at.NodeResizable,at.ClickNodeToSelect,at.PanCanvas,at.MultipleSelect,at.CanvasHorizontalScrollable,at.CanvasVerticalScrollable,at.NodeHoverView,at.PortHoverView,at.A11yFeatures,at.CtrlKeyZoom,at.LimitBoundary]);at.ClickNodeToSelect,at.CanvasHorizontalScrollable,at.CanvasVerticalScrollable,at.NodeHoverView,at.PortHoverView,at.A11yFeatures,at.LassoSelect,at.LimitBoundary;at.NodeHoverView,at.PortHoverView,at.AutoFit;const Hg=()=>({dx:0,dy:0,dWidth:0,dHeight:0,alignedDX:void 0,alignedDY:void 0,nodes:[],isVisible:!1}),Cn=Object.is;let jfe=class{constructor(t,r){this.upstream=t,this.f=r}[Symbol.iterator](){return this}next(){const t=this.upstream.next();return t.done?t:{done:!1,value:this.f(t.value)}}};var Zb;(function(e){e[e.Bitmap=0]="Bitmap",e[e.Collision=1]="Collision"})(Zb||(Zb={}));const EXe=30,sh=5,SXe=1073741823;function Od(e){return 1<>>t&31}function zB(e){return e|=0,e-=e>>>1&1431655765,e=(e&858993459)+(e>>>2&858993459),e=e+(e>>>4)&252645135,e+=e>>>8,e+=e>>>16,e&127}let Yy=class gy{get valueCount(){return this.values.length}get nodeCount(){return this.children.length}constructor(t,r,n,o,i,s,a,u){this.type=Zb.Bitmap,this.owner=t,this.dataMap=r,this.nodeMap=n,this.keys=o,this.values=i,this.children=s,this.hashes=a,this.size=u}static empty(t){return new gy(t,0,0,[],[],[],[],0)}getKey(t){return this.keys[t]}getValue(t){return this.values[t]}getHash(t){return this.hashes[t]}getNode(t){return this.children[t]}contains(t,r,n){const o=ch(r,n),i=Od(o),{dataMap:s,nodeMap:a}=this;if(s&i){const u=Nl(s,o,i),l=this.getKey(u);return Cn(l,t)}else if(a&i){const u=Nl(a,o,i);return this.getNode(u).contains(t,r,n+sh)}return!1}get(t,r,n){const o=ch(r,n),i=Od(o),{dataMap:s,nodeMap:a}=this;if(s&i){const u=Nl(s,o,i),l=this.getKey(u);return Cn(l,t)?this.getValue(u):void 0}else if(a&i){const u=Nl(a,o,i);return this.getNode(u).get(t,r,n+sh)}}insert(t,r,n,o,i){const s=ch(o,i),a=Od(s),{dataMap:u,nodeMap:l}=this;if(u&a){const c=Nl(u,s,a),f=this.getKey(c),d=this.getValue(c),h=this.getHash(c);if(h===o&&Cn(f,r))return Cn(d,n)?this:this.setValue(t,n,c);{const g=zfe(t,f,d,h,r,n,o,i+sh);return this.migrateInlineToNode(t,a,g)}}else if(l&a){const c=Nl(l,s,a),d=this.getNode(c).insert(t,r,n,o,i+sh);return this.setNode(t,1,d,a)}return this.insertValue(t,a,r,o,n)}update(t,r,n,o,i){const s=ch(o,i),a=Od(s),{dataMap:u,nodeMap:l}=this;if(u&a){const c=Nl(u,s,a),f=this.getKey(c);if(this.getHash(c)===o&&Cn(f,r)){const h=this.getValue(c),g=n(h);return Cn(h,g)?this:this.setValue(t,g,c)}}else if(l&a){const c=Nl(l,s,a),f=this.getNode(c),d=f.update(t,r,n,o,i+sh);return d===f?this:this.setNode(t,0,d,a)}return this}remove(t,r,n,o){const i=ch(n,o),s=Od(i);if(this.dataMap&s){const a=Nl(this.dataMap,i,s),u=this.getKey(a);return Cn(u,r)?this.removeValue(t,s):void 0}else if(this.nodeMap&s){const a=Nl(this.nodeMap,i,s),u=this.getNode(a),l=u.remove(t,r,n,o+sh);if(l===void 0)return;const[c,f]=l;return c.size===1?this.size===u.size?[new gy(t,s,0,[c.getKey(0)],[c.getValue(0)],[],[c.getHash(0)],1),f]:[this.migrateNodeToInline(t,s,c),f]:[this.setNode(t,-1,c,s),f]}}toOwned(t){return this.owner===t?this:new gy(t,this.dataMap,this.nodeMap,this.keys.slice(),this.values.slice(),this.children.slice(),this.hashes.slice(),this.size)}iter(){return new M7(this)}map(t,r){const n=this.valueCount,o=[],i=[],s=[];let a=!0;for(let u=0;u=EXe)return new wXe(e,n,[t,o],[r,i]);{const u=ch(n,a),l=ch(s,a);if(u!==l){const c=Od(u)|Od(l);return uCn(n,t));return r>=0?this.values[r]:void 0}insert(t,r,n){const o=this.keys.findIndex(i=>Cn(i,r));if(o>=0){const i=this.values[o];if(Cn(i,n))return this;const s=this.toOwned(t);return s.values[o]=n,s}else{const i=this.toOwned(t);return i.keys.push(r),i.values.push(n),i}}update(t,r,n){const o=this.keys.findIndex(i=>Cn(i,r));if(o>=0){const i=this.values[o],s=n(i);if(Cn(i,s))return this;const a=this.toOwned(t);return a.values[o]=s,a}return this}remove(t,r){const n=this.keys.findIndex(i=>Cn(i,r));if(n===-1)return;const o=this.getValue(n);return[new FA(t,this.hash,this.keys.filter((i,s)=>s!==n),this.values.filter((i,s)=>s!==n)),o]}getKey(t){return this.keys[t]}getValue(t){return this.values[t]}getHash(){return this.hash}iter(){return new L7(this)}map(t,r){const n=this.size,o=[];let i=!1;for(let s=0;s=this.node.size)return{done:!0,value:void 0};const t=this.node.getKey(this.index),r=this.node.getValue(this.index);return this.index+=1,{done:!1,value:[t,r]}}clone(){const t=new L7(this.node);return t.index=this.index,t}}function Zn(e){if(e===null)return 1108378658;switch(typeof e){case"boolean":return e?839943201:839943200;case"number":return AXe(e);case"string":return vZ(e);case"object":case"function":case"symbol":throw new Error("Using object, function and symbol as hash map key is not supported");case"undefined":return 839943203;default:return vZ(String(e))}}function vZ(e){let t=0;for(let r=0;r4294967295;)e/=4294967295,t^=e;return Hfe(t)}function Hfe(e){return e&1073741823}class $fe{constructor(){this.id=0}take(){return this.id+=1,this.id}peek(){return this.id+1}}const fh=new $fe;class Zl{get size(){return this.root.size}constructor(t){this.id=fh.take(),this.root=t}static empty(){return Jl.empty().finish()}static from(t){return Jl.from(t).finish()}get(t){const r=Zn(t);return this.root.get(t,r,0)}has(t){const r=Zn(t);return this.root.contains(t,r,0)}set(t,r){return this.withRoot(this.root.insert(fh.peek(),t,r,Zn(t),0))}update(t,r){return this.withRoot(this.root.update(fh.peek(),t,r,Zn(t),0))}delete(t){const r=Zn(t),n=fh.peek(),o=this.root.remove(n,t,r,0);return o===void 0?this:new Zl(o[0])}clone(){return new Zl(this.root)}[Symbol.iterator](){return this.entries()}entries(){return this.root.iter()}values(){return new jfe(this.entries(),([,t])=>t)}mutate(){return new Jl(this.root)}map(t){return new Zl(this.root.map(fh.peek(),t))}filter(t){const r=this.mutate();return this.forEach((n,o)=>{t(n,o)||r.delete(o)}),r.finish()}forEach(t){this.root.forEach(t)}find(t){return this.root.find(t)}withRoot(t){return t===this.root?this:new Zl(t)}}class Jl{constructor(t){this.id=fh.take(),this.root=t}static empty(){const t=fh.peek(),r=Yy.empty(t);return new Jl(r)}static from(t){if(Array.isArray(t))return Jl.fromArray(t);const r=t[Symbol.iterator](),n=Jl.empty();let o=r.next();for(;!o.done;){const[i,s]=o.value;n.set(i,s),o=r.next()}return n}static fromArray(t){const r=Jl.empty();for(let n=0;n=t?r:n;const o=r+n>>>1;if(e[o]===t)return o;t=Vc)return l;if(n===o)return l.balanceTail(u),l;const c=this.getValue(n);return l.balanceChild(t,u,a,c,n)}}removeMostRight(t){const r=this.selfSize,[n,o,i]=this.getChild(r).removeMostRight(t),s=this.toOwned(t);return s.size-=1,s.children[r]=i,i.selfSizeVc)this.rotateRight(r,a,i,s);else if(u.selfSize>Vc)this.rotateLeft(r,u,i,s);else{const l=a.toOwned(t),c=u.toOwned(t),f=r.getKey(cd),d=r.getValue(cd);l.keys.push(this.getKey(i-1)),l.values.push(this.getValue(i-1)),l.keys.push(...r.keys.slice(0,cd)),l.values.push(...r.values.slice(0,cd)),c.keys.unshift(n),c.values.unshift(o),c.keys.unshift(...r.keys.slice(cd+1,Vc)),c.values.unshift(...r.values.slice(cd+1,Vc)),this.keys.splice(i-1,2,f),this.values.splice(i-1,2,d),this.children.splice(i-1,3,l,c),s&&(l.children.push(...r.children.slice(0,cd+1)),c.children.unshift(...r.children.slice(cd+1,Vc+1)),l.updateSize(),c.updateSize())}return this}rotateLeft(t,r,n,o){const i=r.toOwned(this.owner),s=i.keys.shift(),a=i.values.shift(),u=this.getKey(n),l=this.getValue(n);if(t.keys.push(u),t.values.push(l),this.keys[n]=s,this.values[n]=a,this.children[n+1]=i,o){const c=i.children.shift();t.children.push(c);const f=c.size+1;t.size+=f,i.size-=f}}rotateRight(t,r,n,o){const i=r.toOwned(this.owner),s=i.keys.pop(),a=i.values.pop(),u=this.getKey(n-1),l=this.getValue(n-1);if(t.keys.unshift(u),t.values.unshift(l),this.keys[n-1]=s,this.values[n-1]=a,this.children[n-1]=i,o){const c=i.children.pop();t.children.unshift(c);const f=c.size+1;t.size+=f,i.size-=f}}balanceTail(t){const r=this.selfSize,n=this.getChild(r-1),o=t.type===el.Internal;n.selfSize===Vc?(t.keys.unshift(this.getKey(r-1)),t.values.unshift(this.getValue(r-1)),t.keys.unshift(...n.keys),t.values.unshift(...n.values),this.keys.splice(r-1,1),this.values.splice(r-1,1),this.children.splice(r-1,1),o&&(t.children.unshift(...n.children),t.size+=n.size+1)):this.rotateRight(t,n,r,o)}balanceHead(t){const r=this.getChild(1),n=t.type===el.Internal;r.selfSize===Vc?(t.keys.push(this.getKey(0)),t.values.push(this.getValue(0)),t.keys.push(...r.keys),t.values.push(...r.values),this.keys.splice(0,1),this.values.splice(0,1),this.children.splice(1,1),n&&(t.children.push(...r.children),t.size+=r.size+1)):this.rotateLeft(t,r,0,n)}updateWithSplit(t,r,n,o,i,s){const a=this.toOwned(t);a.keys.splice(s,0,o),a.values.splice(s,0,i),a.children.splice(s,1,r,n);const u=new Xy(t,a.keys.splice(16,16),a.values.splice(16,16),a.children.splice(16,17),0),l=a.keys.pop(),c=a.values.pop();return a.updateSize(),u.updateSize(),[a,u,l,c]}updateSize(){let t=this.selfSize;const r=this.children.length;for(let n=0;n{const[s,a]=i,u=r(a);return Cn(u,a)?i:[s,u]});return this.withRoot(this.itemId,this.hashRoot,o)}[Symbol.iterator](){return this.entries()}clone(){return new vy(this.itemId,this.hashRoot,this.sortedRoot)}entries(){return new j7(new Jb(this.sortedRoot))}values(){return new jfe(this.entries(),([,t])=>t)}mutate(){return new Bd(this.itemId,this.hashRoot,this.sortedRoot)}map(t){const r=dh.peek(),n=i=>{const[s,a]=i,u=t(a,s);return Cn(a,u)?i:[s,u]},o=this.sortedRoot.map(r,n);return new vy(this.itemId,this.hashRoot,o)}forEach(t){this.sortedRoot.forEach(([r,n])=>{t(n,r)})}find(t){const r=this.sortedRoot.find(([,n])=>t(n));return r?r[1]:void 0}first(){const t=this.entries().next();if(!t.done)return t.value[1]}filter(t){const r=this.mutate();return this.forEach((n,o)=>{t(n,o)||r.delete(o)}),r.finish()}withRoot(t,r,n){return r===this.hashRoot&&n===this.sortedRoot?this:new vy(t,r,n)}};class j7{constructor(t){this.delegate=t}[Symbol.iterator](){return this.clone()}next(){const t=this.delegate.next();return t.done?{done:!0,value:void 0}:{done:!1,value:t.value[1]}}clone(){return new j7(this.delegate.clone())}}class Bd{constructor(t,r,n){this.id=dh.take(),this.itemId=t,this.hashRoot=r,this.sortedRoot=n}static empty(){const t=dh.peek(),r=Yy.empty(t),n=kXe(t);return new Bd(0,r,n)}static from(t){if(Array.isArray(t))return Bd.fromArray(t);const r=Bd.empty(),n=t[Symbol.iterator]();let o=n.next();for(;!o.done;){const[i,s]=o.value;r.set(i,s),o=n.next()}return r}static fromArray(t){const r=Bd.empty();for(let n=0;n{const[i,s]=o,a=r(s);return Cn(a,s)?o:[i,a]}),this):this}finish(){return new HB(this.itemId,this.hashRoot,this.sortedRoot)}}const TXe=(e,t,r)=>{const n=lE(r,e),o=cE(r,e),i=t.position?t.position[0]*n:n*.5,s=e.x+i,a=t.position?t.position[1]*o:o,u=e.y+a;return{x:s,y:u}},Wfe=(e,t,r)=>{const n=uE(e,r);if(!n)return;const i=(e.ports||[]).find(s=>s.id===t);if(!i){Vh.warn(`invalid port id ${JSON.stringify(i)}`);return}return TXe(e,i,n)},cc=e=>e;var Ya;(function(e){e.Unknown="Unknown",e.Edge="Edge",e.EdgeChromium="EdgeChromium",e.Opera="Opera",e.Chrome="Chrome",e.IE="IE",e.Firefox="Firefox",e.Safari="Safari",e.Electron="Electron"})(Ya||(Ya={}));const IXe=()=>{const e=navigator.userAgent.toLowerCase();if(e.indexOf("electron")>-1)return Ya.Electron;switch(!0){case e.indexOf("edge")>-1:return Ya.Edge;case e.indexOf("edg")>-1:return Ya.EdgeChromium;case(e.indexOf("opr")>-1&&!!window.opr):return Ya.Opera;case(e.indexOf("chrome")>-1&&!!window.chrome):return Ya.Chrome;case e.indexOf("trident")>-1:return Ya.IE;case e.indexOf("firefox")>-1:return Ya.Firefox;case e.indexOf("safari")>-1:return Ya.Safari;default:return Ya.Unknown}},CXe=navigator.userAgent.includes("Macintosh"),NXe=e=>CXe?e.metaKey:e.ctrlKey,Kfe=e=>e.shiftKey||NXe(e),$g=(e,t,r)=>({x:r[0]*e+r[2]*t+r[4],y:r[1]*e+r[3]*t+r[5]}),e_=(e,t,r)=>{const[n,o,i,s,a,u]=r;return{x:((e-a)*s-(t-u)*i)/(n*s-o*i),y:((e-a)*o-(t-u)*n)/(o*i-n*s)}},RXe=(e,t,r)=>{const[n,o,i,s]=r,a=s*e/(n*s-o*i)+i*t/(o*i-n*s),u=o*e/(o*i-n*s)+n*t/(n*s-o*i);return{x:a,y:u}},mZ=(e,t,r)=>{if(!r)return{x:e,y:t};const[n,o,i,s]=r;return $g(e,t,[n,o,i,s,0,0])},Gfe=(e,t,r)=>{const{rect:n}=r,o=e-n.left,i=t-n.top;return e_(o,i,r.transformMatrix)},OXe=(e,t,r)=>{const{x:n,y:o}=$g(e,t,r.transformMatrix),{rect:i}=r;return{x:n+i.left,y:o+i.top}},DXe=(e,t,r)=>{const n=OXe(e,t,r),{rect:o}=r;return{x:n.x-o.left,y:n.y-o.top}};function ww(e,t){e.update(t,r=>r.shallow())}const FXe=e=>{const{parentNode:t,clientX:r,clientY:n,graphConfig:o,viewport:i}=e;let s=1/0,a;if(!t.ports)return;const u=Gfe(r,n,i);return t.ports.forEach(l=>{if(Vfe(o,Object.assign(Object.assign({},e),{model:l}))){const c=Wfe(t,l.id,o);if(!c)return;const f=u.x-c.x,d=u.y-c.y,h=f*f+d*d;h{const r=e.getPortConfig(t.model);return r?r.getIsConnectable(t):!1},ll=()=>e=>e.mapNodes(t=>t.update(r=>{var n;const o=Object.assign(Object.assign({},r),{ports:(n=r.ports)===null||n===void 0?void 0:n.map(On(ta(is.Default)))});return On(ta(Fo.Default))(o)})).mapEdges(t=>t.update(On(ta(Ii.Default)))),BXe=(e,t)=>{if(B7(t))return cc;const r=Kfe(e);return Jd(t)&&!r?cc:n=>{const o=r?i=>i.id!==t.id?Jd(i):e.button===Jk.Secondary?!0:!Jd(t):i=>i.id===t.id;return n.selectNodes(o,t.id)}},MXe=e=>{var t;return`node-container-${(t=e.name)!==null&&t!==void 0?t:"unnamed"}-${e.id}`},LXe=(e,t)=>`port-${t.name}-${t.id}-${e.name}-${e.id}`,jXe=(e,t)=>`node:${e}:${t.id}`,zXe=(e,t,r)=>`port:${e}:${t.id}:${r.id}`,HXe=(e,t)=>`edge:${e}:${t.id}`;function z7(e){Object.defineProperty(e,"__preventSpread",{enumerable:!0,configurable:!1,get(){document.currentScript&&Vh.error(`${e.constructor.name} is a class, which should not be used in the spread syntax or argument of Object.assign`)}})}class lg{get id(){return this.inner.id}get automationId(){return this.inner.automationId}get source(){return this.inner.source}get target(){return this.inner.target}get sourcePortId(){return this.inner.sourcePortId}get targetPortId(){return this.inner.targetPortId}get status(){return this.inner.status}get data(){return this.inner.data}constructor(t){this.inner=t,z7(this)}static fromJSON(t){return new lg(t)}updateStatus(t){return this.update(On(t))}update(t){const r=t(this.inner);return r===this.inner?this:new lg(r)}shallow(){return new lg(this.inner)}toJSON(){return this.inner}}const Ufe=Object.is;function $Xe(e,t){const r=[];let n=!0;for(let o=0;on.id===t)}link({prev:t,next:r}){return t===this.prev&&r===this.next?this:new ru(this.inner,this.portPositionCache,t??this.prev,r??this.next)}updateStatus(t){return this.update(On(t))}update(t){const r=t(this.inner);return r===this.inner?this:new ru(r,new Map,this.prev,this.next)}updateData(t){return this.data?this.update(r=>{const n=t(r.data);return n===r.data?r:Object.assign(Object.assign({},r),{data:n})}):this}getPortPosition(t,r){let n=this.portPositionCache.get(t);return n||(n=Wfe(this.inner,t,r),this.portPositionCache.set(t,n)),n}hasPort(t){var r;return!!(!((r=this.inner.ports)===null||r===void 0)&&r.find(n=>n.id===t))}updatePositionAndSize(t){const{x:r,y:n,width:o,height:i}=t,s=Object.assign(Object.assign({},this.inner),{x:r,y:n,width:o??this.inner.width,height:i??this.inner.height});return new ru(s,new Map,this.prev,this.next)}updatePorts(t){if(!this.inner.ports)return this;const r=$Xe(this.inner.ports,t),n=this.inner.ports===r?this.inner:Object.assign(Object.assign({},this.inner),{ports:r});return n===this.inner?this:new ru(n,new Map,this.prev,this.next)}invalidCache(){return new ru(this.inner,new Map,this.prev,this.next)}toJSON(){return this.inner}}class Dh{constructor(t){this.nodes=t.nodes,this.edges=t.edges,this.groups=t.groups,this.head=t.head,this.tail=t.tail,this.edgesBySource=t.edgesBySource,this.edgesByTarget=t.edgesByTarget,this.selectedNodes=t.selectedNodes,z7(this)}static empty(){return new Dh({nodes:HB.empty(),edges:Zl.empty(),groups:[],head:void 0,tail:void 0,edgesBySource:Zl.empty(),edgesByTarget:Zl.empty(),selectedNodes:new Set})}static fromJSON(t){var r;const n=HB.empty().mutate(),o=Zl.empty().mutate();let i,s;if(t.nodes.length===0)i=void 0,s=void 0;else if(t.nodes.length===1){const l=t.nodes[0];n.set(l.id,ru.fromJSON(l,void 0,void 0)),i=l.id,s=l.id}else{const l=t.nodes[0],c=t.nodes[1],f=t.nodes[t.nodes.length-1];i=l.id,s=f.id,n.set(l.id,ru.fromJSON(l,void 0,c.id));let d=t.nodes[0];if(t.nodes.length>2)for(let h=1;ha.update(r));if(i===this.nodes)return this;const s=this.edges.mutate();return(n=this.edgesBySource.get(t))===null||n===void 0||n.forEach(a=>{a.forEach(u=>{ww(s,u)})}),(o=this.edgesByTarget.get(t))===null||o===void 0||o.forEach(a=>{a.forEach(u=>{ww(s,u)})}),this.merge({nodes:i,edges:s.finish()})}updateNodeData(t,r){return this.merge({nodes:this.nodes.update(t,n=>n.updateData(r))})}updatePort(t,r,n){const o=this.nodes.update(t,i=>i.updatePorts(s=>s.id===r?n(s):s));return this.merge({nodes:o})}insertNode(t){const r=this.nodes.mutate().set(t.id,ru.fromJSON(t,this.tail,void 0));return this.tail&&!this.nodes.has(t.id)&&r.update(this.tail,n=>n.link({next:t.id})),this.merge({nodes:r.finish(),head:this.nodes.size===0?t.id:this.head,tail:t.id})}deleteItems(t){var r;const n=new Set,o=this.nodes.mutate();let i=this.head===void 0?void 0:this.nodes.get(this.head),s=i,a;const u=this.edgesBySource.mutate(),l=this.edgesByTarget.mutate();for(;s!==void 0;){const f=s.next?this.nodes.get(s.next):void 0;!((r=t.node)===null||r===void 0)&&r.call(t,s.inner)?(o.update(s.id,d=>d.link({prev:a==null?void 0:a.id}).update(h=>cp(Fo.Editing)(h.status)?h:Object.assign(Object.assign({},h),{status:Fo.Default}))),a=s):(o.delete(s.id),u.delete(s.id),l.delete(s.id),n.add(s.id),a&&o.update(a.id,d=>d.link({next:s==null?void 0:s.next})),f&&o.update(f.id,d=>d.link({prev:a==null?void 0:a.id})),s===i&&(i=f)),s=f}const c=this.edges.mutate();return this.edges.forEach(f=>{var d,h;!n.has(f.source)&&!n.has(f.target)&&(!((h=(d=t.edge)===null||d===void 0?void 0:d.call(t,f))!==null&&h!==void 0)||h)?c.update(f.id,g=>g.update(On(ta(Ii.Default)))):(c.delete(f.id),Aw(u,f.id,f.source,f.sourcePortId),Aw(l,f.id,f.target,f.targetPortId))}),this.merge({nodes:o.finish(),edges:c.finish(),head:i==null?void 0:i.id,tail:a==null?void 0:a.id,edgesBySource:u.finish(),edgesByTarget:l.finish()})}insertEdge(t){if(this.isEdgeExist(t.source,t.sourcePortId,t.target,t.targetPortId)||!this.nodes.has(t.source)||!this.nodes.has(t.target))return this;const r=yZ(this.edgesBySource,t.id,t.source,t.sourcePortId),n=yZ(this.edgesByTarget,t.id,t.target,t.targetPortId);return this.merge({nodes:this.nodes.update(t.source,o=>o.invalidCache()).update(t.target,o=>o.invalidCache()),edges:this.edges.set(t.id,lg.fromJSON(t)).map(o=>o.updateStatus(ta(Ii.Default))),edgesBySource:r,edgesByTarget:n})}updateEdge(t,r){return this.merge({edges:this.edges.update(t,n=>n.update(r))})}deleteEdge(t){const r=this.edges.get(t);return r?this.merge({edges:this.edges.delete(t),edgesBySource:Aw(this.edgesBySource,r.id,r.source,r.sourcePortId),edgesByTarget:Aw(this.edgesByTarget,r.id,r.target,r.targetPortId)}):this}updateNodesPositionAndSize(t){const r=new Set,n=this.nodes.mutate(),o=this.edges.mutate();return t.forEach(i=>{var s,a;r.add(i.id),n.update(i.id,u=>u.updatePositionAndSize(i)),(s=this.edgesBySource.get(i.id))===null||s===void 0||s.forEach(u=>{u.forEach(l=>{ww(o,l)})}),(a=this.edgesByTarget.get(i.id))===null||a===void 0||a.forEach(u=>{u.forEach(l=>{ww(o,l)})})}),this.merge({nodes:n.finish(),edges:o.finish()})}mapNodes(t){return this.merge({nodes:this.nodes.map(t)})}mapEdges(t){return this.merge({edges:this.edges.map(t)})}selectNodes(t,r){const n=new Set,o=this.nodes.map(a=>{const u=t(a.inner);return u&&n.add(a.id),a.updatePorts(On(ta(is.Default))).updateStatus(cXe(u?Fo.Selected:Fo.UnconnectedToSelected))}).mutate();if(n.size===0)this.nodes.forEach(a=>o.update(a.id,u=>u.updateStatus(ta(Fo.Default))));else if(r){const a=o.get(r);a&&(o.delete(r),o.set(a.id,a))}const i=a=>{o.update(a,u=>u.updateStatus(ta(Jd(u)?Fo.Selected:Fo.ConnectedToSelected)))},s=n.size?this.edges.map(a=>{let u=Ii.UnconnectedToSelected;return n.has(a.source)&&(i(a.target),u=Ii.ConnectedToSelected),n.has(a.target)&&(i(a.source),u=Ii.ConnectedToSelected),a.updateStatus(ta(u))}):this.edges.map(a=>a.updateStatus(ta(Ii.Default)));return this.merge({nodes:o.finish(),edges:s,selectedNodes:n})}getEdgesBySource(t,r){var n;return(n=this.edgesBySource.get(t))===null||n===void 0?void 0:n.get(r)}getEdgesByTarget(t,r){var n;return(n=this.edgesByTarget.get(t))===null||n===void 0?void 0:n.get(r)}isPortConnectedAsSource(t,r){var n,o;return((o=(n=this.getEdgesBySource(t,r))===null||n===void 0?void 0:n.size)!==null&&o!==void 0?o:0)>0}isPortConnectedAsTarget(t,r){var n,o;return((o=(n=this.getEdgesByTarget(t,r))===null||n===void 0?void 0:n.size)!==null&&o!==void 0?o:0)>0}shallow(){return this.merge({})}toJSON(){const t=[];let r=this.head&&this.nodes.get(this.head);for(;r;)t.push(r.inner),r=r.next&&this.nodes.get(r.next);const n=Array.from(this.edges.values()).map(o=>o.inner);return{nodes:t,edges:n}}isEdgeExist(t,r,n,o){const i=this.getEdgesBySource(t,r),s=this.getEdgesByTarget(n,o);if(!i||!s)return!1;let a=!1;return i.forEach(u=>{s.has(u)&&(a=!0)}),a}merge(t){var r,n,o,i,s,a,u,l;return new Dh({nodes:(r=t.nodes)!==null&&r!==void 0?r:this.nodes,edges:(n=t.edges)!==null&&n!==void 0?n:this.edges,groups:(o=t.groups)!==null&&o!==void 0?o:this.groups,head:(i=t.head)!==null&&i!==void 0?i:this.head,tail:(s=t.tail)!==null&&s!==void 0?s:this.tail,edgesBySource:(a=t.edgesBySource)!==null&&a!==void 0?a:this.edgesBySource,edgesByTarget:(u=t.edgesByTarget)!==null&&u!==void 0?u:this.edgesByTarget,selectedNodes:(l=t.selectedNodes)!==null&&l!==void 0?l:this.selectedNodes})}}function yZ(e,t,r,n){return e.has(r)?e.update(r,o=>{const i=o.get(n);return new Map(o).set(n,(i?new Set(i):new Set).add(t))}):e.set(r,new Map([[n,new Set([t])]]))}function bZ(e,t,r,n){e.has(r)?e.update(r,o=>{let i=o.get(n);return i||(i=new Set,o.set(n,i)),i.add(t),o}):e.set(r,new Map([[n,new Set([t])]]))}function Aw(e,t,r,n){return e.has(r)?e.update(r,o=>{const i=o.get(n);if(!i)return o;const s=new Set(i);return s.delete(t),new Map(o).set(n,s)}):e}var _Z;(function(e){e.Pan="Pan",e.Select="Select"})(_Z||(_Z={}));var Qi;(function(e){e.Default="default",e.Dragging="dragging",e.Panning="panning",e.MultiSelect="multiSelect",e.Connecting="connecting",e.AddingNode="addingNode"})(Qi||(Qi={}));function EZ(e,t,r){return e>r?e:t{const r=e.maxXt.maxX,o=e.minY>t.maxY,i=e.maxY{const{minX:r,minY:n,maxX:o,maxY:i}=e,{x:s,y:a}=t;return s>r&&sn&&ae===r?()=>Number.MAX_SAFE_INTEGER:o=>(n-t)/(r-e)*o+(t*r-n*e)/(r-e),qXe=(e,t)=>{if(!e||e.length!==t.length)return!1;for(let r=0;r{const i=t?Array.isArray(t)?t:t.apply(void 0,o):o;return qXe(r,i)||(r=i,n=e.apply(void 0,o)),n}}var fu;(function(e){e[e.X=0]="X",e[e.Y=1]="Y",e[e.XY=2]="XY"})(fu||(fu={}));const nl=e=>!!e.rect,Yfe=(e,t)=>{const{x:r,y:n}=e,{width:o,height:i}=Rf(e,t);return{x:r,y:n,width:o,height:i}},KXe=(e,t,r)=>Xfe(Yfe(e,r),t),Xfe=(e,t)=>{const{x:r,y:n,width:o,height:i}=e;return kw({x:r,y:n},t)||kw({x:r+o,y:n},t)||kw({x:r+o,y:n+i},t)||kw({x:r,y:n+i},t)},kw=(e,t)=>{const{x:r,y:n}=DXe(e.x,e.y,t),{height:o,width:i}=t.rect;return r>0&&r0&&n{const n=[];return e.forEach(o=>{KXe(o,t,r)&&n.push(o.inner)}),n},Qfe=(e,t)=>{const r=[],n=UXe(t);return e.forEach(o=>{VXe(o,n)&&r.push(o.inner)}),r},VXe=(e,t)=>M0(t,e),UXe=e=>{if(!nl(e))return{minX:0,minY:0,maxX:0,maxY:0};const{rect:t,transformMatrix:r}=e,n=0,o=0,i=t.width,s=t.height,a=e_(n-t.width,o-t.height,r),u=e_(i+t.width,s+t.height,r);return{minX:a.x,minY:a.y,maxX:u.x,maxY:u.y}},YXe=e=>e?typeof e=="number"?{top:e,right:e,bottom:e,left:e}:Object.assign({top:0,right:0,bottom:0,left:0},e):{top:0,right:0,bottom:0,left:0},$B=({scale:e,anchor:t,direction:r,limitScale:n})=>o=>{const i=n(e)/o.transformMatrix[0],s=n(e)/o.transformMatrix[3],{x:a,y:u}=t,l=a*(1-i),c=u*(1-s);let f;switch(r){case fu.X:f=[e,0,0,o.transformMatrix[3],o.transformMatrix[4]*i+l,o.transformMatrix[5]];break;case fu.Y:f=[o.transformMatrix[0],0,0,e,o.transformMatrix[4],o.transformMatrix[5]*s+c];break;case fu.XY:default:f=[e,0,0,e,o.transformMatrix[4]*i+l,o.transformMatrix[5]*s+c]}return Object.assign(Object.assign({},o),{transformMatrix:f})},PB=({scale:e,anchor:t,direction:r,limitScale:n})=>e===1?cc:o=>{let i;switch(r){case fu.X:return $B({anchor:t,direction:r,limitScale:n,scale:o.transformMatrix[0]*e})(o);case fu.Y:return $B({anchor:t,direction:r,limitScale:n,scale:o.transformMatrix[3]*e})(o);case fu.XY:default:{const s=n(o.transformMatrix[0]*e),a=n(o.transformMatrix[3]*e),u=s/o.transformMatrix[0],l=a/o.transformMatrix[3],{x:c,y:f}=t,d=c*(1-u),h=f*(1-l);i=[s,0,0,a,o.transformMatrix[4]*u+d,o.transformMatrix[5]*l+h]}}return Object.assign(Object.assign({},o),{transformMatrix:i})},qB=(e,t)=>e===0&&t===0?cc:r=>Object.assign(Object.assign({},r),{transformMatrix:[r.transformMatrix[0],r.transformMatrix[1],r.transformMatrix[2],r.transformMatrix[3],r.transformMatrix[4]+e,r.transformMatrix[5]+t]}),XXe=(e,t)=>e===0&&t===0?cc:r=>{const[n,o,i,s]=r.transformMatrix;return Object.assign(Object.assign({},r),{transformMatrix:[n,o,i,s,r.transformMatrix[4]+n*e+o*t,r.transformMatrix[5]+i*e+s*t]})},S9=(e,t,r)=>{let n=1/0,o=1/0,i=1/0,s=1/0,a=-1/0,u=-1/0;return(r===void 0?d=>e.nodes.forEach(d):d=>r==null?void 0:r.forEach(h=>{const g=e.nodes.get(h);g&&d(g)}))(d=>{const{width:h,height:g}=Rf(d,t);d.xa&&(a=d.x+h),d.y+g>u&&(u=d.y+g),h{let{width:r,height:n}=e,{width:o,height:i}=t;if(r>o){const s=r;r=o,o=s}if(n>i){const s=n;n=i,i=s}return{nodeMinVisibleWidth:r,nodeMinVisibleHeight:n,nodeMaxVisibleWidth:o,nodeMaxVisibleHeight:i}},Zfe=(e,{width:t,height:r})=>{const{nodeMinVisibleWidth:n,nodeMinVisibleHeight:o,nodeMaxVisibleWidth:i,nodeMaxVisibleHeight:s}=QXe(e);let a=0,u=0,l=1/0,c=1/0;return t&&(a=n/t,l=i/t),r&&(u=o/r,c=s/r),{minScaleX:a,minScaleY:u,maxScaleX:l,maxScaleY:c}},ZXe=e=>{const{data:t,graphConfig:r,disablePan:n,direction:o,rect:i}=e,{nodes:s}=t;if(s.size===0)return[1,0,0,1,0,0];const{minNodeWidth:a,minNodeHeight:u,minNodeX:l,minNodeY:c,maxNodeX:f,maxNodeY:d}=S9(t,r),{minScaleX:h,minScaleY:g,maxScaleX:v,maxScaleY:y}=Zfe(e,{width:a,height:u}),E=YXe(e.spacing),{width:_,height:S}=i,b=_/(f-l+E.left+E.right),A=S/(d-c+E.top+E.bottom),T=o===fu.Y?Math.min(Math.max(h,g,A),v,y):Math.min(Math.max(h,g,Math.min(b,A)),y,y),x=o===fu.XY?Math.min(Math.max(h,b),v):T,C=o===fu.XY?Math.min(Math.max(g,A),y):T;if(n)return[x,0,0,C,0,0];const I=-x*(l-E.left),R=-C*(c-E.top);if(GXe(t.nodes,{rect:i,transformMatrix:[x,0,0,C,I,R]},r).length>0)return[x,0,0,C,I,R];let L=t.nodes.first();return L&&t.nodes.forEach(M=>{L.y>M.y&&(L=M)}),[x,0,0,C,-x*(L.x-E.left),-C*(L.y-E.top)]},JXe=(e,t,r,n,o)=>{const i=r-e,s=n-t,a=Math.min(o.rect.width/i,o.rect.height/s),u=-a*(e+i/2)+o.rect.width/2,l=-a*(t+s/2)+o.rect.height/2;return Object.assign(Object.assign({},o),{transformMatrix:[a,0,0,a,u,l]})};function Jfe(e,t){const r=t.clientX-e.left,n=t.clientY-e.top;return{x:r,y:n}}const ede=(e,t,r,n,o)=>{if(!r)return cc;const{width:i,height:s}=r;return!(e<0||e>i||t<0||t>s)&&!n?cc:u=>{const l=o?o.x-e:i/2-e,c=o?o.y-t:s/2-t;return Object.assign(Object.assign({},u),{transformMatrix:[u.transformMatrix[0],u.transformMatrix[1],u.transformMatrix[2],u.transformMatrix[3],u.transformMatrix[4]+l,u.transformMatrix[5]+c]})}},tde=(e,t)=>{const{minNodeWidth:r,minNodeHeight:n}=S9(e,t.graphConfig),{minScaleX:o,minScaleY:i}=Zfe(t,{width:r,height:n});return Math.max(o,i)},eQe=WXe(S9),tQe=({data:e,graphConfig:t,rect:r,transformMatrix:n,canvasBoundaryPadding:o,groupPadding:i})=>{var s,a,u,l;const c=eQe(e,t),f=mZ(c.minNodeX-((i==null?void 0:i.left)||0),c.minNodeY-((i==null?void 0:i.top)||0),n);f.x-=(s=o==null?void 0:o.left)!==null&&s!==void 0?s:0,f.y-=(a=o==null?void 0:o.top)!==null&&a!==void 0?a:0;const d=mZ(c.maxNodeX+((i==null?void 0:i.right)||0),c.maxNodeY+((i==null?void 0:i.bottom)||0),n);d.x+=(u=o==null?void 0:o.right)!==null&&u!==void 0?u:0,d.y+=(l=o==null?void 0:o.bottom)!==null&&l!==void 0?l:0;let h=-f.x||0,g=-f.y||0,v=r.width-d.x||0,y=r.height-d.y||0;if(v({present:t,past:{next:e.past,value:r(e.present)},future:null}),rQe=e=>e.past?{present:e.past.value,past:e.past.next,future:{next:e.future,value:e.present}}:e,nQe=e=>e.future?{present:e.future.value,past:{next:e.past,value:e.present},future:e.future.next}:e,WB=e=>({present:e,future:null,past:null}),L0=[1,0,0,1,0,0],oQe={top:0,right:0,bottom:0,left:0},iQe={width:dZ,height:dZ},sQe={width:hZ,height:hZ},aQe={features:bXe,graphConfig:zg.default().build(),canvasBoundaryPadding:oQe,nodeMinVisibleSize:iQe,nodeMaxVisibleSize:sQe},uQe=rde({});function rde(e){const{data:t,transformMatrix:r,settings:n}=e;return{settings:Object.assign(Object.assign({},aQe),n),data:WB(t??Dh.empty()),viewport:{rect:void 0,transformMatrix:r??L0},behavior:Qi.Default,dummyNodes:Hg(),alignmentLines:[],activeKeys:new Set,selectBoxPosition:Lfe(),connectState:void 0}}const lQe={sourceNode:void 0,sourcePort:void 0,targetNode:void 0,targetPort:void 0,movingPoint:{x:0,y:0}};new Proxy(Dh.empty(),{get:(e,t)=>(console.warn("Default graph data value is being used. Please check if you forget rendering Graph component"),Reflect.get(e,t))});const nde=k.createContext({});class cQe{constructor(){this.listenersRef=k.createRef(),this.externalHandlerRef=k.createRef(),this.queue=[],this.working=!1}trigger(t){this.working?this.queue.push(t):(this.working=!0,li.unstable_batchedUpdates(()=>{this.callHandlers(t);for(let r=0;r{this.dispatchDelegate(n,o)},this.state=t,this.UNSAFE_latestState=t,this.dispatchDelegate=r}setMouseClientPosition(t){this.mouseClientPoint=t}unsetMouseClientPosition(){this.mouseClientPoint=void 0}getMouseClientPosition(){return this.mouseClientPoint}getEnabledFeatures(){return this.state.settings.features}getBehavior(){return this.behavior}setBehavior(t){this.behavior=t}getData(){return this.state.data.present}getGlobalEventTarget(){var t,r;return(r=(t=this.getGlobalEventTargetDelegate)===null||t===void 0?void 0:t.call(this))!==null&&r!==void 0?r:window}}const KB=()=>{},dQe={sourceNode:void 0,sourcePort:void 0,targetNode:void 0,targetPort:void 0},H7=k.createContext(dQe);H7.displayName="ConnectingStateContext";const hQe=k.createContext([]),pQe=k.createContext(new fQe(uQe,KB));var zt;(function(e){e.Click="[Node]Click",e.DoubleClick="[Node]DoubleClick",e.MouseDown="[Node]MouseDown",e.MouseUp="[Node]MouseUp",e.MouseEnter="[Node]MouseEnter",e.MouseLeave="[Node]MouseLeave",e.MouseOver="[Node]MouseOver",e.MouseOut="[Node]MouseOut",e.MouseMove="[Node]MouseMove",e.ContextMenu="[Node]ContextMenu",e.Drag="[Node]Drag",e.DragStart="[Node]DragStart",e.DragEnd="[Node]DragEnd",e.PointerDown="[Node]PointerDown",e.PointerEnter="[Node]PointerEnter",e.PointerMove="[Node]PointerMove",e.PointerLeave="[Node]PointerLeave",e.PointerUp="[Node]PointerUp",e.Resizing="[Node]Resizing",e.ResizingStart="[Node]ResizingStart",e.ResizingEnd="[Node]ResizingEnd",e.KeyDown="[Node]KeyDown",e.Select="[Node]Select",e.SelectAll="[Node]SelectAll",e.Centralize="[Node]Centralize",e.Locate="[Node]Locate",e.Add="[Node]Add"})(zt||(zt={}));var fn;(function(e){e.Click="[Edge]Click",e.DoubleClick="[Edge]DoubleClick",e.MouseEnter="[Edge]MouseEnter",e.MouseLeave="[Edge]MouseLeave",e.MouseOver="[Edge]MouseOver",e.MouseOut="[Edge]MouseOut",e.MouseMove="[Edge]MouseMove",e.MouseDown="[Edge]MouseDown",e.MouseUp="[Edge]MouseUp",e.ContextMenu="[Edge]ContextMenu",e.ConnectStart="[Edge]ConnectStart",e.ConnectMove="[Edge]ConnectMove",e.ConnectEnd="[Edge]ConnectEnd",e.ConnectNavigate="[Edge]ConnectNavigate",e.Add="[Edge]Add"})(fn||(fn={}));var sn;(function(e){e.Click="[Port]Click",e.DoubleClick="[Port]DoubleClick",e.MouseDown="[Port]MouseDown",e.PointerDown="[Port]PointerDown",e.PointerUp="[Port]PointerUp",e.PointerEnter="[Port]PointerEnter",e.PointerLeave="[Port]PointerLeave",e.MouseUp="[Port]MouseUp",e.MouseEnter="[Port]MouseEnter",e.MouseLeave="[Port]MouseLeave",e.MouseOver="[Port]MouseOver",e.MouseOut="[Port]MouseOut",e.MouseMove="[Port]MouseMove",e.ContextMenu="[Port]ContextMenu",e.KeyDown="[Port]KeyDown",e.Focus="[Port]Focus",e.Blur="[Port]Blur"})(sn||(sn={}));var nr;(function(e){e.Click="[Canvas]Click",e.DoubleClick="[Canvas]DoubleClick",e.MouseDown="[Canvas]MouseDown",e.MouseUp="[Canvas]MouseUp",e.MouseEnter="[Canvas]MouseEnter",e.MouseLeave="[Canvas]MouseLeave",e.MouseOver="[Canvas]MouseOver",e.MouseOut="[Canvas]MouseOut",e.MouseMove="[Canvas]MouseMove",e.ContextMenu="[Canvas]ContextMenu",e.DragStart="[Canvas]DragStart",e.Drag="[Canvas]Drag",e.DragEnd="[Canvas]DragEnd",e.Pan="[Canvas]Pan",e.Focus="[Canvas]Focus",e.Blur="[Canvas]Blur",e.Zoom="[Canvas]Zoom",e.Pinch="[Canvas]Pinch",e.KeyDown="[Canvas]KeyDown",e.KeyUp="[Canvas]KeyUp",e.SelectStart="[Canvas]SelectStart",e.SelectMove="[Canvas]SelectMove",e.SelectEnd="[Canvas]SelectEnd",e.UpdateNodeSelectionBySelectBox="[Canvas]UpdateNodeSelectionBySelectBox",e.MouseWheelScroll="[Canvas]MouseWheelScroll",e.DraggingNodeFromItemPanel="[Canvas]DraggingNodeFromItemPanel",e.DraggingNodeFromItemPanelStart="[Canvas]DraggingNodeFromItemPanelStart",e.DraggingNodeFromItemPanelEnd="[Canvas]DraggingNodeFromItemPanelEnd",e.ViewportResize="[Canvas]ViewportResize",e.Navigate="[Canvas]Navigate",e.VirtualizationRecalculated="[Canvas]VirtualizationRecalculated",e.ResetSelection="[Canvas]ResetSelection",e.Copy="[Canvas]Copy",e.Paste="[Canvas]Paste",e.Delete="[Canvas]Delete",e.Undo="[Canvas]Undo",e.Redo="[Canvas]Redo",e.ScrollIntoView="[Canvas]ScrollIntoView",e.ResetUndoStack="[Canvas]ResetUndoStack",e.ResetViewport="[Canvas]ResetViewport",e.ZoomTo="[Canvas]ZoomTo",e.ZoomToFit="[Canvas]ZoomToFit",e.SetData="[Canvas]SetData",e.UpdateData="[Canvas]UpdateData",e.ScrollTo="[Canvas]ScrollTo",e.UpdateSettings="[Canvas]UpdateSettings"})(nr||(nr={}));var GB;(function(e){e.ScrollStart="[ScrollBar]ScrollStart",e.Scroll="[ScrollBar]Scroll",e.ScrollEnd="[ScrollBar]ScrollEnd"})(GB||(GB={}));var VB;(function(e){e.PanStart="[Minimap]PanStart",e.Pan="[Minimap]Pan",e.PanEnd="[Minimap]PanEnd",e.Click="[Minimap]Click"})(VB||(VB={}));var tx;(function(e){e.Open="[ContextMenu]Open",e.Close="[ContextMenu]Close"})(tx||(tx={}));function gQe(){try{const e=document.createElement("iframe");e.src="#",document.body.appendChild(e);const{contentDocument:t}=e;if(!t)throw new Error("Fail to create iframe");t.documentElement.innerHTML=_Ve.sanitize("a",{RETURN_TRUSTED_TYPE:!0});const n=t.body.firstElementChild.offsetHeight;return document.body.removeChild(e),n}catch(e){return Vh.error("failed to calculate scroll line height",e),16}}gQe();const vQe={height:0,width:0,x:0,y:0,bottom:0,left:0,right:0,top:0,toJSON(){return this}},mQe=k.createContext({viewport:{rect:vQe,transformMatrix:L0},renderedArea:{minX:0,minY:0,maxX:0,maxY:0},visibleArea:{minX:0,minY:0,maxX:0,maxY:0},renderedNodes:new Set,renderedEdges:new Set,timestamp:0});function fp(){return k.useContext(yXe)}function yQe(){return k.useContext(pQe)}function bQe(){return k.useContext(hQe)}function _Qe(){return k.useContext(H7)}function ode(){return k.useContext(mQe)}function EQe(e,t,r){let n=!1,o,i;const s=(...a)=>{o=a,n||(n=!0,i=t(()=>{n=!1,li.unstable_batchedUpdates(()=>{e.apply(null,o)})}))};return s.cancel=()=>{r(i)},s}const SQe=e=>EQe(e,requestAnimationFrame,cancelAnimationFrame);class wQe{constructor(t,r){this.onMove=KB,this.onEnd=KB,this.lastEvent=null,this.startX=0,this.startY=0,this.prevClientX=0,this.prevClientY=0,this.onMouseUp=n=>{this.lastEvent=n,this.doOnMouseUp(n),this.lastEvent=null},this.onMouseMove=n=>{this.lastEvent=n,n.preventDefault(),this.mouseMove(n)},this.eventProvider=t,this.getPositionFromEvent=r,this.mouseMove=SQe(n=>{this.doOnMouseMove(n)})}start(t){this.lastEvent=t;const{x:r,y:n}=this.getPositionFromEvent(t);this.startX=r,this.startY=n,this.prevClientX=r,this.prevClientY=n,this.eventProvider.on("move",this.onMouseMove),this.eventProvider.on("end",this.onMouseUp)}stop(){this.mouseMove.cancel(),this.eventProvider.off("move",this.onMouseMove),this.eventProvider.off("end",this.onMouseUp)}getDelta(t,r){const n=t-this.prevClientX,o=r-this.prevClientY;return this.prevClientX=t,this.prevClientY=r,{x:n,y:o}}getTotalDelta(t){const r=t.clientX-this.startX,n=t.clientY-this.startY;return{x:r,y:n}}doOnMouseMove(t){const{x:r,y:n}=this.getPositionFromEvent(t),{x:o,y:i}=this.getDelta(r,n),{x:s,y:a}=this.getTotalDelta(t);this.onMove({clientX:r,clientY:n,dx:o,dy:i,totalDX:s,totalDY:a,e:t})}doOnMouseUp(t){t.preventDefault();const{x:r,y:n}=this.getTotalDelta(t);this.onEnd({totalDX:r,totalDY:n,e:t}),this.stop()}}function AQe(e){return{x:e.clientX,y:e.clientY}}IXe(),Ya.Safari;const kQe=(e,t)=>{switch(t.type){case zt.DragStart:return Qi.Dragging;case fn.ConnectStart:return Qi.Connecting;case nr.SelectStart:return Qi.MultiSelect;case nr.DragStart:return Qi.Panning;case nr.DraggingNodeFromItemPanelStart:return Qi.AddingNode;case zt.DragEnd:case fn.ConnectEnd:case nr.SelectEnd:case nr.DragEnd:case nr.DraggingNodeFromItemPanelEnd:return Qi.Default;default:return e}},xQe=(e,t)=>{const r=kQe(e.behavior,t);return r===e.behavior?e:Object.assign(Object.assign({},e),{behavior:r})};function fE(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{switch(t.type){case nr.Paste:{const{position:r}=t;if(!nl(e.viewport))return e;const{rect:n}=e.viewport;let o=t.data.nodes;if(r&&n){const s=Gfe(r.x,r.y,e.viewport);let a,u;o=o.map((l,c)=>(c===0&&(a=s.x-l.x,u=s.y-l.y),Object.assign(Object.assign({},l),{x:a?l.x-ex+a:l.x,y:u?l.y-ex+u:l.y,state:Fo.Selected})))}let i=ll()(e.data.present);return o.forEach(s=>{i=i.insertNode(s)}),t.data.edges.forEach(s=>{i=i.insertEdge(s)}),Object.assign(Object.assign({},e),{data:pf(e.data,i)})}case nr.Delete:return e.settings.features.has(at.Delete)?Object.assign(Object.assign({},e),{data:pf(e.data,e.data.present.deleteItems({node:cZ,edge:cZ}),ll())}):e;case nr.Undo:return Object.assign(Object.assign({},e),{data:rQe(e.data)});case nr.Redo:return Object.assign(Object.assign({},e),{data:nQe(e.data)});case nr.KeyDown:{const r=t.rawEvent.key.toLowerCase();if(e.activeKeys.has(r))return e;const n=new Set(e.activeKeys);return n.add(r),Object.assign(Object.assign({},e),{activeKeys:n})}case nr.KeyUp:{const r=t.rawEvent.key.toLowerCase();if(!e.activeKeys.has(r))return e;const n=new Set(e.activeKeys);return n.delete(r),Object.assign(Object.assign({},e),{activeKeys:n})}case nr.SetData:return Object.assign(Object.assign({},e),{data:WB(t.data)});case nr.UpdateData:return Object.assign(Object.assign({},e),{data:t.shouldRecord?pf(e.data,t.updater(e.data.present)):Object.assign(Object.assign({},e.data),{present:t.updater(e.data.present)})});case nr.ResetUndoStack:return Object.assign(Object.assign({},e),{data:WB(e.data.present)});case nr.UpdateSettings:{const r=fE(t,["type"]);return Object.assign(Object.assign({},e),{settings:Object.assign(Object.assign({},e.settings),r)})}default:return e}};function ide(e){return t=>e.reduceRight((r,n)=>n(r),t)}const Qy=(e=void 0,t=void 0)=>({node:e,port:t}),wZ=(e,t,r)=>{if(t.ports){const i=(r?t.ports.findIndex(s=>s.id===r.id):-1)+1;if(i(r,n,o)=>{var i,s,a;let u=wZ(r,n,o);for(;!(((i=u.node)===null||i===void 0?void 0:i.id)===n.id&&((s=u.port)===null||s===void 0?void 0:s.id)===(o==null?void 0:o.id));){if(!u.node)u=Qy(r.getNavigationFirstNode());else if(u.port&&!((a=e.getPortConfig(u.port))===null||a===void 0)&&a.getIsConnectable(Object.assign(Object.assign({},t),{data:r,parentNode:u.node,model:u.port})))return u;u=wZ(r,u.node,u.port)}return Qy()};function VD(e,t,r){if(!e.connectState)return e;let n=e.data.present;return n=n.updatePort(t,r,On(Nf(is.ConnectingAsTarget))),e.connectState.targetNode&&e.connectState.targetPort&&(n=n.updatePort(e.connectState.targetNode,e.connectState.targetPort,On(aE(is.ConnectingAsTarget)))),Object.assign(Object.assign({},e),{connectState:Object.assign(Object.assign({},e.connectState),{targetNode:t,targetPort:r}),data:Object.assign(Object.assign({},e.data),{present:n})})}function AZ(e){if(!e.connectState)return e;let t=e.data.present;const{targetPort:r,targetNode:n}=e.connectState;return n&&r&&(t=t.updatePort(n,r,On(aE(is.ConnectingAsTarget)))),Object.assign(Object.assign({},e),{connectState:Object.assign(Object.assign({},e.connectState),{targetNode:void 0,targetPort:void 0}),data:Object.assign(Object.assign({},e.data),{present:t})})}const CQe=(e,t)=>{var r,n,o;if(!nl(e.viewport))return e;const{rect:i}=e.viewport;switch(t.type){case fn.ConnectStart:return Object.assign(Object.assign({},e),{connectState:Object.assign(Object.assign({},lQe),{sourceNode:t.nodeId,sourcePort:t.portId,movingPoint:t.clientPoint?{x:t.clientPoint.x-i.left,y:t.clientPoint.y-i.top}:void 0}),data:Object.assign(Object.assign({},e.data),{present:e.data.present.updatePort(t.nodeId,t.portId,On(Nf(is.Connecting)))})});case fn.ConnectMove:return e.connectState?Object.assign(Object.assign({},e),{connectState:Object.assign(Object.assign({},e.connectState),{movingPoint:{x:t.clientX-i.left,y:t.clientY-i.top}})}):e;case fn.ConnectEnd:if(e.connectState){const{edgeWillAdd:s,isCancel:a}=t,{sourceNode:u,sourcePort:l,targetNode:c,targetPort:f}=e.connectState;let d=e.data.present;if(d=d.updatePort(u,l,On(ta(is.Default))),!a&&c&&f){let h={source:u,sourcePortId:l,target:c,targetPortId:f,id:Xk(),status:Ii.Default};return s&&(h=s(h,d)),d=d.insertEdge(h).updatePort(c,f,On(ta(is.Default))),Object.assign(Object.assign({},e),{connectState:void 0,data:pf(e.data,d,ll())})}return Object.assign(Object.assign({},e),{connectState:void 0,data:Object.assign(Object.assign({},e.data),{present:d})})}return e;case fn.ConnectNavigate:if(e.connectState){const s=e.data.present,a=s.nodes.get(e.connectState.sourceNode),u=a==null?void 0:a.getPort(e.connectState.sourcePort),l=e.connectState.targetNode?s.nodes.get(e.connectState.targetNode):void 0,c=e.connectState.targetPort?l==null?void 0:l.getPort(e.connectState.targetPort):void 0;if(!a||!u)return e;const f=IQe(e.settings.graphConfig,{anotherNode:a,anotherPort:u})(s,l||a,c);return!f.node||!f.port||f.node.id===a.id&&f.port.id===u.id?e:VD(e,f.node.id,f.port.id)}return e;case sn.PointerEnter:if(e.connectState){const{sourceNode:s,sourcePort:a}=e.connectState,u=e.data.present,l=u.nodes.get(t.node.id),c=l==null?void 0:l.getPort(t.port.id),f=u.nodes.get(s),d=f==null?void 0:f.getPort(a);if(l&&c&&f&&d&&Vfe(e.settings.graphConfig,{parentNode:l,model:c,data:u,anotherPort:d,anotherNode:f}))return VD(e,l.id,c.id)}return e;case zt.PointerEnter:case zt.PointerMove:if(e.connectState){const{clientX:s,clientY:a}=t.rawEvent,{sourceNode:u,sourcePort:l}=e.connectState,c=e.data.present,f=c.nodes.get(t.node.id),d=c.nodes.get(u),h=d==null?void 0:d.getPort(l);if(f&&d&&h){const g=FXe({parentNode:f,clientX:s,clientY:a,graphConfig:e.settings.graphConfig,data:e.data.present,viewport:e.viewport,anotherPort:h,anotherNode:d});return g?VD(e,f.id,g.id):e}}return e;case zt.PointerLeave:return((r=e.connectState)===null||r===void 0?void 0:r.targetNode)===t.node.id?AZ(e):e;case sn.PointerLeave:return((n=e.connectState)===null||n===void 0?void 0:n.targetNode)===t.node.id&&((o=e.connectState)===null||o===void 0?void 0:o.targetPort)===t.port.id?AZ(e):e;default:return e}},NQe=(e,t)=>{let r=e.contextMenuPosition;switch(t.type){case nr.ContextMenu:case zt.ContextMenu:case fn.ContextMenu:case sn.ContextMenu:{const n=t.rawEvent;n.button===Jk.Secondary&&(r={x:n.clientX,y:n.clientY})}break;case nr.Click:case zt.Click:case fn.Click:case sn.Click:r=void 0;break;case tx.Open:r={x:t.x,y:t.y};break;case tx.Close:r=void 0;break}return e.contextMenuPosition===r?e:Object.assign(Object.assign({},e),{contextMenuPosition:r})},RQe=(e,t)=>{switch(t.type){case fn.DoubleClick:return e.settings.features.has(at.EditEdge)?Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:e.data.present.updateEdge(t.edge.id,On(ta(Ii.Editing)))})}):e;case fn.MouseEnter:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:e.data.present.updateEdge(t.edge.id,On(Nf(Ii.Activated)))})});case fn.MouseLeave:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:e.data.present.updateEdge(t.edge.id,On(aE(Ii.Activated)))})});case fn.Click:case fn.ContextMenu:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:ll()(e.data.present).updateEdge(t.edge.id,On(Nf(Ii.Selected)))})});case fn.Add:return Object.assign(Object.assign({},e),{data:pf(e.data,e.data.present.insertEdge(t.edge))});default:return e}},sde=(e,t,r,n=2)=>{const o=ade(e),i=FQe(o,e,t,r,n);return BQe(o,i,e.length)},kZ=(e,t,r,n)=>{let o=1/0,i=0;const s=ade(t),a=n==="x"?s.width||0:s.height||0;return e.forEach(u=>{let l;if(n==="x"&&u.x1===u.x2)l=u.x1;else if(n==="y"&&u.y1===u.y2)l=u.y1;else return;const c=s[n]-l,f=s[n]+(a||0)/2-l,d=s[n]+(a||0)-l;Math.abs(c)0?-o:o),Math.abs(f)0?-o:o),Math.abs(d)0?-o:o)}),i},xZ=(e,t)=>{if(e.length)return Math.min(...e.map(r=>r[t]))},TZ=(e,t)=>{if(e.length)return Math.max(...e.map(r=>r[t]+(t==="y"?r.height||0:r.width||0)))},OQe=(e,t)=>Object.assign(Object.assign({},e),Rf(e,t)),DQe=e=>{let t=1/0,r=1/0,n=-1/0,o=-1/0;return e.forEach(i=>{const s=i.x,a=i.y,u=i.x+(i.width||0),l=i.y+(i.height||0);sn&&(n=u),l>o&&(o=l)}),{x:t,y:r,width:n-t,height:o-r}},ade=e=>{const{x:t,y:r,width:n,height:o}=DQe(e);return{id:Xk(),x:t,y:r,width:n,height:o}},FQe=(e,t,r,n,o=2)=>{const i=[],s=[],{x:a,y:u,width:l=0,height:c=0}=e;let f=o,d=o;return r.forEach(h=>{if(t.find(E=>E.id===h.id))return;const g=OQe(h,n),{width:v=0,height:y=0}=g;[a,a+l/2,a+l].forEach((E,_)=>{i[_]||(i[_]={}),i[_].closestNodes||(i[_].closestNodes=[]),[g.x,g.x+v/2,g.x+v].forEach(S=>{var b;const A=Math.abs(E-S);A<=f&&((b=i[_].closestNodes)===null||b===void 0||b.push(g),i[_].alignCoordinateValue=S,f=A)})}),[u,u+c/2,u+c].forEach((E,_)=>{s[_]||(s[_]={}),s[_].closestNodes||(s[_].closestNodes=[]),[g.y,g.y+y/2,g.y+y].forEach(S=>{var b;const A=Math.abs(E-S);A<=d&&((b=s[_].closestNodes)===null||b===void 0||b.push(g),s[_].alignCoordinateValue=S,d=A)})})}),{closestX:i,closestY:s}},BQe=(e,t,r=1)=>{const n=[],o=[],i=t.closestX,s=t.closestY;return i.forEach((a,u)=>{var l;if(a.alignCoordinateValue===void 0||u===1&&(n.length||r>1))return;const c=[],f=a.alignCoordinateValue;(l=a.closestNodes)===null||l===void 0||l.forEach(g=>{(g.x===f||g.x+(g.width||0)/2===f||g.x+(g.width||0)===f)&&c.push(g)});const d=xZ([e,...c],"y"),h=TZ([e,...c],"y");d!==void 0&&h!==void 0&&n.push({x1:f,y1:d,x2:f,y2:h,visible:!0})}),s.forEach((a,u)=>{var l;if(a.alignCoordinateValue===void 0||u===1&&(o.length||r>1))return;const c=[],f=a.alignCoordinateValue;(l=a.closestNodes)===null||l===void 0||l.forEach(g=>{(g.y===f||g.y+(g.height||0)/2===f||g.y+(g.height||0)===f)&&c.push(g)});const d=xZ([e,...c],"x"),h=TZ([e,...c],"x");d!==void 0&&h!==void 0&&o.push({x1:d,y1:f,x2:h,y2:f,visible:!0})}),[...n,...o]};function ude(...e){return e.reduceRight((t,r)=>n=>t(r(n)),cc)}const IZ=(e,t,r)=>rt?10:0;function UB(e,t){const r=[];return e.nodes.forEach(n=>{Jd(n)&&r.push(Object.assign({id:n.id,x:n.x,y:n.y},Rf(n,t)))}),r}function MQe(e,t){if(!nl(e.viewport))return e;const r=h=>Math.max(h,tde(s,e.settings)),n=t.rawEvent,{rect:o}=e.viewport,i=Object.assign({},e),s=e.data.present,a=IZ(o.left,o.right,n.clientX),u=IZ(o.top,o.bottom,n.clientY),l=a!==0||u!==0?.999:1,c=a!==0||a!==0?ude(qB(-a,-u),PB({scale:l,anchor:Jfe(o,n),direction:fu.XY,limitScale:r}))(e.viewport):e.viewport,f=RXe(t.dx+a*l,t.dy+u*l,c.transformMatrix),d=Object.assign(Object.assign({},e.dummyNodes),{dx:e.dummyNodes.dx+f.x,dy:e.dummyNodes.dy+f.y,isVisible:t.isVisible});if(t.isAutoAlignEnable){const h=Qfe(s.nodes,e.viewport);if(h.lengthObject.assign(Object.assign({},y),{x:y.x+d.dx,y:y.y+d.dy})),v=sde(g,h,e.settings.graphConfig,e.viewport.transformMatrix[0]>.3?2:5);if(v.length){const y=kZ(v,g,e.settings.graphConfig,"x"),E=kZ(v,g,e.settings.graphConfig,"y");d.alignedDX=d.dx+y,d.alignedDY=d.dy+E}else d.alignedDX=void 0,d.alignedDY=void 0;i.alignmentLines=v}else d.alignedDX=void 0,d.alignedDY=void 0}return i.dummyNodes=d,i.viewport=c,i}function LQe(e,t){if(!e.settings.features.has(at.AutoAlign))return e;const r=e.data.present,n=Qfe(r.nodes,e.viewport),o=sde([t.node],n,e.settings.graphConfig,e.viewport.transformMatrix[0]>.3?2:5);return Object.assign(Object.assign({},e),{alignmentLines:o})}function jQe(e,t){let r=e.data.present;const n=r.nodes.get(t.node.id);if(!n)return e;let o;return t.isMultiSelect?(r=r.selectNodes(i=>i.id===t.node.id||Jd(i)),o=UB(r,e.settings.graphConfig)):Jd(n)?o=UB(r,e.settings.graphConfig):o=[Object.assign({id:t.node.id,x:t.node.x,y:t.node.y},Rf(t.node,e.settings.graphConfig))],Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:r}),dummyNodes:Object.assign(Object.assign({},Hg()),{isVisible:!1,nodes:o})})}function zQe(e,t){let r=e.data.present;if(t.isDragCanceled)return Object.assign(Object.assign({},e),{alignmentLines:[],dummyNodes:Hg()});const{dx:n,dy:o}=e.dummyNodes;return r=r.updateNodesPositionAndSize(e.dummyNodes.nodes.map(i=>Object.assign(Object.assign({},i),{x:i.x+n,y:i.y+o,width:void 0,height:void 0}))),Object.assign(Object.assign({},e),{alignmentLines:[],dummyNodes:Hg(),data:pf(e.data,r,ll())})}function HQe(e,t){const r=t.data.present;if(!nl(t.viewport)||!e.nodes.length)return t;if(e.nodes.length===1){const a=e.nodes[0],u=r.nodes.get(a);if(!u)return t;const{width:l,height:c}=Rf(u,t.settings.graphConfig),f=e.type===zt.Centralize?u.x+l/2:u.x,d=e.type===zt.Centralize?u.y+c/2:u.y,{x:h,y:g}=$g(f,d,t.viewport.transformMatrix),v=e.type===zt.Locate?e.position:void 0;return Object.assign(Object.assign({},t),{viewport:ede(h,g,t.viewport.rect,!0,v)(t.viewport)})}const{minNodeX:n,minNodeY:o,maxNodeX:i,maxNodeY:s}=S9(r,t.settings.graphConfig,new Set(e.nodes));return Object.assign(Object.assign({},t),{viewport:JXe(n,o,i,s,t.viewport)})}const $Qe=(e,t)=>{const r=e.data.present;switch(t.type){case zt.ResizingStart:return Object.assign(Object.assign({},e),{dummyNodes:Object.assign(Object.assign({},Hg()),{isVisible:!0,nodes:UB(r,e.settings.graphConfig)})});case zt.Resizing:return Object.assign(Object.assign({},e),{dummyNodes:Object.assign(Object.assign({},e.dummyNodes),{dx:t.dx,dy:t.dy,dWidth:t.dWidth,dHeight:t.dHeight})});case zt.ResizingEnd:{const{dx:n,dy:o,dWidth:i,dHeight:s}=e.dummyNodes;return Object.assign(Object.assign({},e),{dummyNodes:Hg(),data:pf(e.data,r.updateNodesPositionAndSize(e.dummyNodes.nodes.map(a=>Object.assign(Object.assign({},a),{x:a.x+n,y:a.y+o,width:a.width+i,height:a.height+s}))),ll())})}case zt.DragStart:return jQe(e,t);case zt.Drag:return MQe(e,t);case zt.DragEnd:return zQe(e,t);case zt.PointerEnter:switch(e.behavior){case Qi.Default:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:r.updateNode(t.node.id,On(Nf(Fo.Activated)))})});default:return e}case zt.PointerLeave:switch(e.behavior){case Qi.Default:case Qi.Connecting:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:r.updateNode(t.node.id,On(aE(Fo.Activated)))})});default:return e}case nr.DraggingNodeFromItemPanel:return LQe(e,t);case nr.DraggingNodeFromItemPanelEnd:return t.node?Object.assign(Object.assign({},e),{alignmentLines:[],data:pf(e.data,e.data.present.insertNode(Object.assign(Object.assign({},t.node),{status:Fo.Selected})),ll())}):Object.assign(Object.assign({},e),{alignmentLines:[]});case zt.Centralize:case zt.Locate:return HQe(t,e);case zt.Add:return Object.assign(Object.assign({},e),{data:pf(e.data,r.insertNode(t.node))});case zt.DoubleClick:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:e.data.present.updateNode(t.node.id,On(Nf(Fo.Editing)))})});default:return e}},PQe=(e,t)=>{switch(t.type){case sn.Focus:case sn.PointerEnter:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:e.data.present.updatePort(t.node.id,t.port.id,On(Nf(is.Activated)))})});case sn.Blur:case sn.PointerLeave:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:e.data.present.updatePort(t.node.id,t.port.id,On(aE(is.Activated)))})});case sn.Click:case sn.ContextMenu:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:ll()(e.data.present).updatePort(t.node.id,t.port.id,On(Nf(is.Selected)))})});default:return e}},CZ=(e,t,r,n)=>{if(!r.width||!r.height)return n;const o=Math.min(r.startX,r.startX+r.width),i=Math.max(r.startX,r.startX+r.width),s=Math.min(r.startY,r.startY+r.height),a=Math.max(r.startY,r.startY+r.height),u=e_(o,s,t),l=e_(i,a,t),c={minX:u.x,minY:u.y,maxX:l.x,maxY:l.y};return n.selectNodes(f=>{const{width:d,height:h}=Rf(f,e),g={minX:f.x,minY:f.y,maxX:f.x+d,maxY:f.y+h};return PXe(c,g)})};function qQe(e,t){let r=ll()(e.data.present);if(t.node&&t.port)r=r.updatePort(t.node.id,t.port.id,On(Nf(is.Selected)));else if(t.node){const n=t.node.id;r=r.selectNodes(o=>o.id===n)}return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:r})})}const WQe=(e,t)=>{var r,n;const o=e.data.present,i=e.settings.features.has(at.LassoSelect);switch(t.type){case nr.Click:case nr.ResetSelection:case nr.ContextMenu:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:ll()(o)})});case zt.Click:case zt.ContextMenu:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:BXe(t.rawEvent,t.node)(o)})});case nr.SelectStart:{if(!nl(e.viewport))return e;const s=Jfe(e.viewport.rect,t.rawEvent);return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:ll()(o)}),selectBoxPosition:{startX:s.x,startY:i?0:s.y,width:0,height:0}})}case nr.SelectMove:return e.behavior!==Qi.MultiSelect?e:Object.assign(Object.assign({},e),{selectBoxPosition:Object.assign(Object.assign({},e.selectBoxPosition),{width:e.selectBoxPosition.width+t.dx,height:i?(n=(r=e.viewport.rect)===null||r===void 0?void 0:r.height)!==null&&n!==void 0?n:e.selectBoxPosition.height:e.selectBoxPosition.height+t.dy})});case nr.SelectEnd:return Object.assign(Object.assign({},e),{selectBoxPosition:Lfe(),data:Object.assign(Object.assign({},e.data),{present:CZ(e.settings.graphConfig,e.viewport.transformMatrix,e.selectBoxPosition,o)})});case nr.UpdateNodeSelectionBySelectBox:return e.behavior!==Qi.MultiSelect?e:Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:CZ(e.settings.graphConfig,e.viewport.transformMatrix,e.selectBoxPosition,o)})});case nr.Navigate:return qQe(e,t);case zt.SelectAll:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:o.selectNodes(()=>!0)})});case zt.Select:{const s=new Set(t.nodes);return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:o.selectNodes(a=>s.has(a.id))})})}default:return e}};function NZ(e){return{x:e.width/2,y:e.height/2}}function KQe(e,t,r,n){if(!nl(e))return e;if(!n.ensureNodeVisible)return Object.assign(Object.assign({},e),{transformMatrix:L0});const{nodes:o,groups:i}=t;if(o.size===0)return Object.assign(Object.assign({},e),{transformMatrix:L0});const s=h=>Xfe(h,e),a=o.map(h=>Yfe(h,r));if(a.find(s))return Object.assign(Object.assign({},e),{transformMatrix:L0});const l=i.map(h=>fXe(h,o,r));if(l.find(s))return Object.assign(Object.assign({},e),{transformMatrix:L0});let f=a.first();const d=h=>{f.y>h.y&&(f=h)};return a.forEach(d),l.forEach(d),Object.assign(Object.assign({},e),{transformMatrix:[1,0,0,1,-f.x,-f.y]})}function GQe(e,t,r,n){if(!nl(e))return e;const{graphConfig:o,nodeMaxVisibleSize:i,nodeMinVisibleSize:s}=r,a=ZXe(Object.assign(Object.assign({},n),{data:t,graphConfig:o,rect:e.rect,nodeMaxVisibleSize:i,nodeMinVisibleSize:s}));return Object.assign(Object.assign({},e),{transformMatrix:a})}const VQe=(e,t,r,n)=>{var o,i,s,a;const{graphConfig:u,canvasBoundaryPadding:l,features:c}=n,f=d=>Math.max(d,tde(r,n));switch(t.type){case nr.ViewportResize:return Object.assign(Object.assign({},e),{rect:t.viewportRect});case nr.Zoom:return nl(e)?PB({scale:t.scale,anchor:(o=t.anchor)!==null&&o!==void 0?o:NZ(e.rect),direction:t.direction,limitScale:f})(e):e;case GB.Scroll:case nr.MouseWheelScroll:case nr.Pan:case nr.Drag:{if(!nl(e))return e;const{transformMatrix:d,rect:h}=e;let{dx:g,dy:v}=t;const y=c.has(at.LimitBoundary),E=(s=(i=r.groups)===null||i===void 0?void 0:i[0])===null||s===void 0?void 0:s.padding;if(y){const{minX:_,maxX:S,minY:b,maxY:A}=tQe({data:r,graphConfig:u,rect:h,transformMatrix:d,canvasBoundaryPadding:l,groupPadding:E});g=EZ(_-d[4],S-d[4],g),v=EZ(b-d[5],A-d[5],v)}return qB(g,v)(e)}case nr.Pinch:{const{dx:d,dy:h,scale:g,anchor:v}=t;return ude(qB(d,h),PB({scale:g,anchor:v,limitScale:f}))(e)}case VB.Pan:return XXe(t.dx,t.dy)(e);case nr.ResetViewport:return KQe(e,r,u,t);case nr.ZoomTo:return nl(e)?$B({scale:t.scale,anchor:(a=t.anchor)!==null&&a!==void 0?a:NZ(e.rect),direction:t.direction,limitScale:f})(e):e;case nr.ZoomToFit:return GQe(e,r,n,t);case nr.ScrollIntoView:if(e.rect){const{x:d,y:h}=$g(t.x,t.y,e.transformMatrix);return ede(d,h,e.rect,!0)(e)}return e;default:return e}},UQe=(e,t)=>{const r=VQe(e.viewport,t,e.data.present,e.settings);return r===e.viewport?e:Object.assign(Object.assign({},e),{viewport:r})},RZ=ide([xQe,UQe,$Qe,PQe,RQe,TQe,CQe,WQe,NQe].map(e=>t=>(r,n)=>t(e(r,n),n)));function YQe(e=void 0,t=cc){return(e?ide([e,RZ]):RZ)(t)}class XQe{constructor(t){this.target=t}off(t,r){switch(t){case"move":this.target.removeEventListener("mousemove",r);break;case"end":this.target.removeEventListener("mouseup",r);break}return this}on(t,r){switch(t){case"move":this.target.addEventListener("mousemove",r);break;case"end":this.target.addEventListener("mouseup",r);break}return this}}const QQe=(e,t)=>{const r=yQe();return k.useCallback(n=>o=>{o.preventDefault(),o.stopPropagation(),t.trigger({type:zt.ResizingStart,rawEvent:o,node:e});const i=new wQe(new XQe(r.getGlobalEventTarget()),AQe);i.onMove=({totalDX:s,totalDY:a,e:u})=>{t.trigger(Object.assign({type:zt.Resizing,rawEvent:u,node:e,dx:0,dy:0,dWidth:0,dHeight:0},n(s,a)))},i.onEnd=({e:s})=>{t.trigger({type:zt.ResizingEnd,rawEvent:s,node:e})},t.trigger({type:zt.ResizingStart,rawEvent:o,node:e}),i.start(o.nativeEvent)},[t,r,e])},ZQe=()=>({x1:0,y1:0,x2:0,y2:0,visible:!1}),JQe=e=>{var t;const{line:r,style:n}=e,o=Object.assign(Object.assign({strokeWidth:1},n),{stroke:r.visible?(t=n==null?void 0:n.stroke)!==null&&t!==void 0?t:"#ea4300":"none"});return N.jsx("line",{className:"auto-align-hint",x1:r.x1,y1:r.y1,x2:r.x2,y2:r.y2,style:o})},eZe=k.memo(({style:e})=>{const t=bQe();return N.jsx(N.Fragment,{children:t.map((r,n)=>r.visible?N.jsx(JQe,{line:r,style:e},n):null)})});eZe.displayName="AlignmentLines";const tZe=e=>{var t,r;const n=k.useContext(nde);return N.jsx(N.Fragment,{children:(r=(t=n.renderNodeFrame)===null||t===void 0?void 0:t.call(n,e))!==null&&r!==void 0?r:e.children})},rZe=e=>{var t,r;const n=k.useContext(nde);return N.jsx(N.Fragment,{children:(r=(t=n.renderNodeResizeHandler)===null||t===void 0?void 0:t.call(n,e))!==null&&r!==void 0?r:e.children})},nZe={NodeFrame:tZe,NodeResizeHandler:rZe},oZe=e=>{const{autoAttachLine:t,connectingLine:r,styles:n}=e,o=(n==null?void 0:n.stroke)||ts.primaryColor,i=(n==null?void 0:n.fill)||"none",s=(n==null?void 0:n.strokeDasharray)||"4,4",a=r.visible?o:"none";return N.jsxs("g",{children:[N.jsx("defs",{children:N.jsx("marker",Object.assign({id:"markerArrow",markerWidth:"10",markerHeight:"10",refX:"6",refY:"5",orient:"auto",markerUnits:"strokeWidth"},{children:N.jsx("path",{d:"M0,0 L6,5 L0,10",style:{stroke:a,fill:"none"}})}))}),N.jsx("line",{x1:r.x1,y1:r.y1,x2:r.x2,y2:r.y2,style:{stroke:a,fill:i,strokeDasharray:s},markerEnd:"url(#markerArrow)"}),N.jsx("path",{d:Mfe(t.x2,t.x1,t.y2,t.y1),style:{stroke:t.visible?o:"none",fill:"none"}})]})},iZe=k.memo(e=>{const{styles:t,graphConfig:r,viewport:n,movingPoint:o}=e,{sourcePort:i,sourceNode:s,targetPort:a,targetNode:u}=_Qe();if(!s||!i)return null;const l=s.getPortPosition(i.id,r);let c,f=!1;if(u&&a?(f=!0,c=u==null?void 0:u.getPortPosition(a.id,r)):c=l,!l||!c)return null;const d=$g(l.x,l.y,n.transformMatrix),h=$g(c.x,c.y,n.transformMatrix),g=o?{x1:d.x,y1:d.y,x2:o.x,y2:o.y,visible:!f}:ZQe(),v={x1:d.x,y1:d.y,x2:h.x,y2:h.y,visible:f};return N.jsx(oZe,{connectingLine:g,autoAttachLine:v,styles:t})});iZe.displayName="Connecting";const UD=10,OZ={position:"absolute",cursor:"initial"};uXe({verticalScrollWrapper:Object.assign(Object.assign({},OZ),{height:"100%",width:UD,top:0,right:0}),horizontalScrollWrapper:Object.assign(Object.assign({},OZ),{height:UD,width:"100%",bottom:0,left:0}),verticalScrollStyle:e=>({height:e.scrollbarLayout.verticalScrollHeight,width:"100%",backgroundColor:ts.scrollbarColor,position:"absolute",top:0,right:0,transform:`translateY(${e.scrollbarLayout.verticalScrollTop}px)`}),horizontalScrollStyle:e=>({width:e.scrollbarLayout.horizontalScrollWidth-UD,height:"100%",backgroundColor:ts.scrollbarColor,position:"absolute",left:0,bottom:0,transform:`translateX(${e.scrollbarLayout.horizontalScrollLeft}px)`})});function sZe(e,t,{minX:r,minY:n,maxX:o,maxY:i},s,a,u,l){return e.x===t.x?{x:e.x,y:e.y=n?{x:o,y:s}:{x:u,y:n}:e.yr?{x:a,y:i}:{x:r,y:l}:l>n?{x:r,y:l}:{x:u,y:n}}const lde=k.memo(e=>{var t;const{edge:r,data:n,eventChannel:o,source:i,target:s,graphId:a}=e,u=fp(),l=ode(),{viewport:c,renderedArea:f,visibleArea:d}=l,h=C=>I=>{I.persist(),o.trigger({type:C,edge:r,rawEvent:I})},g=M0(f,i),v=M0(f,s),y=g&&v;if(k.useLayoutEffect(()=>{y&&l.renderedEdges.add(r.id)},[l]),!y)return null;const E=u.getEdgeConfig(r);if(!E)return Vh.warn(`invalid edge ${JSON.stringify(r)}`),null;if(!E.render)return Vh.warn(`Missing "render" method in edge config ${JSON.stringify(r)}`),null;const _=M0(d,i),S=M0(d,s);let b=E.render({model:r,data:n,x1:i.x,y1:i.y,x2:s.x,y2:s.y,viewport:c});if(cp(Ii.ConnectedToSelected)(r.status)&&(!_||!S)){const C=SZ(i.x,i.y,s.x,s.y),I=SZ(i.y,i.x,s.y,s.x),R=_?i:s,D=_?s:i,L=C(d.maxX),M=I(d.maxY),q=I(d.minY),z=C(d.minX),F=sZe(R,D,d,L,M,q,z);_&&E.renderWithTargetHint?b=E.renderWithTargetHint({model:r,data:n,x1:i.x,y1:i.y,x2:F.x,y2:F.y,viewport:c}):S&&E.renderWithSourceHint&&(b=E.renderWithSourceHint({model:r,data:n,x1:F.x,y1:F.y,x2:s.x,y2:s.y,viewport:c}))}const A=HXe(a,r),T=`edge-container-${r.id}`,x=(t=r.automationId)!==null&&t!==void 0?t:T;return N.jsx("g",Object.assign({id:A,onClick:h(fn.Click),onDoubleClick:h(fn.DoubleClick),onMouseDown:h(fn.MouseDown),onMouseUp:h(fn.MouseUp),onMouseEnter:h(fn.MouseEnter),onMouseLeave:h(fn.MouseLeave),onContextMenu:h(fn.ContextMenu),onMouseMove:h(fn.MouseMove),onMouseOver:h(fn.MouseOver),onMouseOut:h(fn.MouseOut),onFocus:void 0,onBlur:void 0,className:T,"data-automation-id":x},{children:b}))});function cde(e,t){return e.node===t.node}const fde=k.memo(e=>{var t,r;const{node:n,data:o}=e,i=fE(e,["node","data"]),s=fp(),a=[],u=n.valueCount;for(let f=0;f{const{data:t,node:r}=e,n=fE(e,["data","node"]),o=fp();return N.jsx(N.Fragment,{children:r.values.map(i=>{var s,a;const u=(s=t.nodes.get(i.source))===null||s===void 0?void 0:s.getPortPosition(i.sourcePortId,o),l=(a=t.nodes.get(i.target))===null||a===void 0?void 0:a.getPortPosition(i.targetPortId,o);return u&&l?k.createElement(lde,Object.assign({},n,{key:i.id,data:t,edge:i,source:u,target:l})):null})})},cde);dde.displayName="EdgeHashCollisionNodeRender";const aZe=hi({svg:[{position:"absolute",overflow:"hidden",top:0,left:0,width:"100%",height:"100%"},{"&:focus":{outline:"none"}}],node:{cursor:"move"},container:{position:"relative",width:"100%",height:"100%",overflow:"hidden",touchAction:"none"},buttonA11Y:{opacity:0,width:0,height:0,overflow:"hidden"},addingNodeSvg:{zIndex:1e6,position:"fixed",left:0,top:0,width:"100%",height:"100%"},moduleItem:{userSelect:"none",cursor:"pointer"},minimap:{height:320,width:320,userSelect:"none",touchAction:"none"},minimapSvg:{position:"absolute",top:0,left:0,width:"100%",height:"100%"}}),uZe=e=>{var t;const{node:r,eventChannel:n,getNodeAriaLabel:o,viewport:i,graphId:s}=e,a=fp(),u=uE(r,a),l=h=>g=>{g.persist();const v={type:h,node:r,rawEvent:g};n.trigger(v)},c=h=>{h.persist();const g=Kfe(h);n.trigger({type:zt.Click,rawEvent:h,isMultiSelect:g,node:r})},f=jXe(s,r),d=(t=r.automationId)!==null&&t!==void 0?t:MXe(r);return u!=null&&u.render?N.jsx("g",Object.assign({id:f,focusable:"true",tabIndex:0,className:aZe.node,onPointerDown:l(zt.PointerDown),onPointerEnter:l(zt.PointerEnter),onPointerMove:l(zt.PointerMove),onPointerLeave:l(zt.PointerLeave),onPointerUp:l(zt.PointerUp),onDoubleClick:l(zt.DoubleClick),onMouseDown:l(zt.MouseDown),onMouseUp:l(zt.MouseUp),onMouseEnter:l(zt.MouseEnter),onMouseLeave:l(zt.MouseLeave),onContextMenu:l(zt.ContextMenu),onMouseMove:l(zt.MouseMove),onMouseOver:l(zt.MouseOver),onMouseOut:l(zt.MouseOut),onClick:c,onKeyDown:l(zt.KeyDown),"aria-label":o(r),role:"group","aria-roledescription":"node","data-automation-id":d},{children:N.jsx("g",Object.assign({className:"node-box-container"},{children:u.render({model:r,viewport:i})}))})):null},d0=8,h0=8,fd=({x:e,y:t,cursor:r,onMouseDown:n})=>N.jsx(nZe.NodeResizeHandler,Object.assign({x:e,y:t,cursor:r,onMouseDown:n},{children:N.jsx("rect",{x:e,y:t,height:h0,width:d0,stroke:ts.controlPointColor,fill:"transparent",cursor:r,onMouseDown:n})})),Ka=15,lZe=e=>{var t,r;const{node:n,getMouseDown:o}=e,i=fp(),s=uE(n,i),a=(t=s==null?void 0:s.getMinWidth(n))!==null&&t!==void 0?t:0,u=(r=s==null?void 0:s.getMinHeight(n))!==null&&r!==void 0?r:0,l=cE(s,n),c=lE(s,n),f=o((S,b)=>{const A=Math.min(S,c-a),T=Math.min(b,l-u);return{dx:+A,dy:+T,dWidth:-A,dHeight:-T}}),d=o((S,b)=>{const A=Math.min(b,l-u);return{dy:+A,dHeight:-A}}),h=o((S,b)=>{const A=Math.max(S,a-c),T=Math.min(b,l-u);return{dy:+T,dWidth:+A,dHeight:-T}}),g=o(S=>({dWidth:+Math.max(S,a-c)})),v=o((S,b)=>{const A=Math.max(S,a-c),T=Math.max(b,u-l);return{dWidth:+A,dHeight:+T}}),y=o((S,b)=>({dHeight:+Math.max(b,u-l)})),E=o((S,b)=>{const A=Math.min(S,c-a),T=Math.max(b,u-l);return{dx:+A,dWidth:-A,dHeight:+T}}),_=o(S=>{const b=Math.min(S,c-a);return{dx:b,dWidth:-b}});return N.jsxs(N.Fragment,{children:[N.jsx(fd,{cursor:"nw-resize",x:n.x-Ka,y:n.y-Ka-h0,onMouseDown:f},"nw-resize"),N.jsx(fd,{x:n.x+c/2-d0/2,y:n.y-Ka-h0,cursor:"n-resize",onMouseDown:d},"n-resize"),N.jsx(fd,{x:n.x+c+Ka-d0,y:n.y-Ka-h0,cursor:"ne-resize",onMouseDown:h},"ne-resize"),N.jsx(fd,{x:n.x+c+Ka-d0,y:n.y+l/2-h0/2,cursor:"e-resize",onMouseDown:g},"e-resize"),N.jsx(fd,{x:n.x+c+Ka-d0,y:n.y+l+Ka,cursor:"se-resize",onMouseDown:v},"se-resize"),N.jsx(fd,{x:n.x+c/2-d0/2,y:n.y+l+Ka,cursor:"s-resize",onMouseDown:y},"s-resize"),N.jsx(fd,{x:n.x-Ka,y:n.y+l+Ka,cursor:"sw-resize",onMouseDown:E},"sw-resize"),N.jsx(fd,{x:n.x-Ka,y:n.y+l/2-h0/2,cursor:"w-resize",onMouseDown:_},"w-resize")]})},cZe=e=>{const{data:t,node:r,getPortAriaLabel:n,eventChannel:o,viewport:i,graphId:s}=e,a=fp(),u=r.ports;if(!u)return null;const l=(c,f)=>d=>{d.persist(),o.trigger({type:c,node:r,port:f,rawEvent:d})};return N.jsx("g",{children:u.map(c=>{var f;const d=a.getPortConfig(c);if(!d||!d.render)return Vh.warn(`invalid port config ${r.id}:${r.name} - ${c.id}:${c.name}`),null;const h=r.getPortPosition(c.id,a);if(!h)return null;const g=zXe(s,r,c),v=(f=c.automationId)!==null&&f!==void 0?f:LXe(c,r);return N.jsx("g",Object.assign({id:g,tabIndex:0,focusable:"true",onPointerDown:l(sn.PointerDown,c),onPointerUp:l(sn.PointerUp,c),onDoubleClick:l(sn.DoubleClick,c),onMouseDown:l(sn.MouseDown,c),onMouseUp:l(sn.MouseUp,c),onContextMenu:l(sn.ContextMenu,c),onPointerEnter:l(sn.PointerEnter,c),onPointerLeave:l(sn.PointerLeave,c),onMouseMove:l(sn.MouseMove,c),onMouseOver:l(sn.MouseOver,c),onMouseOut:l(sn.MouseOut,c),onFocus:l(sn.Focus,c),onBlur:l(sn.Blur,c),onKeyDown:l(sn.KeyDown,c),onClick:l(sn.Click,c),"aria-label":n(t,r,c),role:"group","aria-roledescription":"port","data-automation-id":v},{children:N.jsx(H7.Consumer,{children:({sourceNode:y,sourcePort:E})=>d==null?void 0:d.render(Object.assign({model:c,data:t,parentNode:r,anotherNode:y,anotherPort:E,viewport:i},h))})}),g)})})},fZe=e=>{var{node:t,isNodeResizable:r,renderNodeAnchors:n}=e,o=fE(e,["node","isNodeResizable","renderNodeAnchors"]);const i=ode(),{renderedArea:s,viewport:a}=i,u=QQe(t,o.eventChannel),l=M0(s,t);if(k.useLayoutEffect(()=>{l&&i.renderedEdges.add(t.id)},[i]),!l)return null;let c;if(r&&B7(t)){const f=N.jsx(lZe,{node:t,getMouseDown:u});c=n?n(t,u,f):f}return N.jsxs(N.Fragment,{children:[N.jsx(uZe,Object.assign({},o,{node:t,viewport:a})),N.jsx(cZe,Object.assign({},o,{node:t,viewport:a})),c]})},dZe=k.memo(fZe),hde=k.memo(e=>{var{node:t}=e,r=fE(e,["node"]);const n=t.values.map(i=>{const s=i[1];return N.jsx(dZe,Object.assign({node:s},r),s.id)}),o=t.type===el.Internal?t.children.map((i,s)=>{const a=se.node===t.node);hde.displayName="NodeTreeNode";const hZe=document.createElement("div");document.body.appendChild(hZe);const pZe=e=>{const{node:t}=e,r=fp(),n=uE(t,r);if(n!=null&&n.renderStatic)return N.jsx("g",{children:n.renderStatic({model:t})});const o=cE(n,t),i=lE(n,t);return N.jsx("rect",{transform:`translate(${t.x}, ${t.y})`,height:o,width:i,fill:ts.dummyNodeStroke})},gZe=k.memo(pZe,(e,t)=>{const r=e.node,n=t.node;return r.x===n.x&&r.y===n.y&&r.height===n.height&&r.width===n.width&&r.isInSearchResults===n.isInSearchResults&&r.isCurrentSearchResult===n.isCurrentSearchResult}),pde=k.memo(({node:e})=>{const t=e.values.map(n=>N.jsx(gZe,{node:n[1]},n[1].id)),r=e.type===el.Internal?e.children.map((n,o)=>{const i=o>>0;if(""+r!==t||r===4294967295)return NaN;t=r}return t<0?Pg(e)+t:t}function gde(){return!0}function w9(e,t,r){return(e===0&&!mde(e)||r!==void 0&&e<=-r)&&(t===void 0||r!==void 0&&t>=r)}function hE(e,t){return vde(e,t,0)}function A9(e,t){return vde(e,t,t)}function vde(e,t,r){return e===void 0?r:mde(e)?t===1/0?t:Math.max(0,t+e)|0:t===void 0||t===e?e:Math.min(t,e)|0}function mde(e){return e<0||e===0&&1/e===-1/0}var yde="@@__IMMUTABLE_ITERABLE__@@";function zs(e){return!!(e&&e[yde])}var bde="@@__IMMUTABLE_KEYED__@@";function Rn(e){return!!(e&&e[bde])}var _de="@@__IMMUTABLE_INDEXED__@@";function Bs(e){return!!(e&&e[_de])}function k9(e){return Rn(e)||Bs(e)}var fo=function(t){return zs(t)?t:wa(t)},Au=function(e){function t(r){return Rn(r)?r:R1(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(fo),dp=function(e){function t(r){return Bs(r)?r:vl(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(fo),kv=function(e){function t(r){return zs(r)&&!k9(r)?r:Cv(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(fo);fo.Keyed=Au;fo.Indexed=dp;fo.Set=kv;var Ede="@@__IMMUTABLE_SEQ__@@";function P7(e){return!!(e&&e[Ede])}var Sde="@@__IMMUTABLE_RECORD__@@";function xv(e){return!!(e&&e[Sde])}function kc(e){return zs(e)||xv(e)}var Tv="@@__IMMUTABLE_ORDERED__@@";function ol(e){return!!(e&&e[Tv])}var pE=0,cl=1,mu=2,XB=typeof Symbol=="function"&&Symbol.iterator,wde="@@iterator",x9=XB||wde,zr=function(t){this.next=t};zr.prototype.toString=function(){return"[Iterator]"};zr.KEYS=pE;zr.VALUES=cl;zr.ENTRIES=mu;zr.prototype.inspect=zr.prototype.toSource=function(){return this.toString()};zr.prototype[x9]=function(){return this};function Dn(e,t,r,n){var o=e===0?t:e===1?r:[t,r];return n?n.value=o:n={value:o,done:!1},n}function Hs(){return{value:void 0,done:!0}}function Ade(e){return Array.isArray(e)?!0:!!T9(e)}function DZ(e){return e&&typeof e.next=="function"}function QB(e){var t=T9(e);return t&&t.call(e)}function T9(e){var t=e&&(XB&&e[XB]||e[wde]);if(typeof t=="function")return t}function vZe(e){var t=T9(e);return t&&t===e.entries}function mZe(e){var t=T9(e);return t&&t===e.keys}var Iv=Object.prototype.hasOwnProperty;function kde(e){return Array.isArray(e)||typeof e=="string"?!0:e&&typeof e=="object"&&Number.isInteger(e.length)&&e.length>=0&&(e.length===0?Object.keys(e).length===1:e.hasOwnProperty(e.length-1))}var wa=function(e){function t(r){return r==null?W7():kc(r)?r.toSeq():bZe(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(n,o){var i=this._cache;if(i){for(var s=i.length,a=0;a!==s;){var u=i[o?s-++a:a++];if(n(u[1],u[0],this)===!1)break}return a}return this.__iterateUncached(n,o)},t.prototype.__iterator=function(n,o){var i=this._cache;if(i){var s=i.length,a=0;return new zr(function(){if(a===s)return Hs();var u=i[o?s-++a:a++];return Dn(n,u[0],u[1])})}return this.__iteratorUncached(n,o)},t}(fo),R1=function(e){function t(r){return r==null?W7().toKeyedSeq():zs(r)?Rn(r)?r.toSeq():r.fromEntrySeq():xv(r)?r.toSeq():K7(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(wa),vl=function(e){function t(r){return r==null?W7():zs(r)?Rn(r)?r.entrySeq():r.toIndexedSeq():xv(r)?r.toSeq().entrySeq():xde(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(wa),Cv=function(e){function t(r){return(zs(r)&&!k9(r)?r:vl(r)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(wa);wa.isSeq=P7;wa.Keyed=R1;wa.Set=Cv;wa.Indexed=vl;wa.prototype[Ede]=!0;var Uh=function(e){function t(r){this._array=r,this.size=r.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(n,o){return this.has(n)?this._array[p1(this,n)]:o},t.prototype.__iterate=function(n,o){for(var i=this._array,s=i.length,a=0;a!==s;){var u=o?s-++a:a++;if(n(i[u],u,this)===!1)break}return a},t.prototype.__iterator=function(n,o){var i=this._array,s=i.length,a=0;return new zr(function(){if(a===s)return Hs();var u=o?s-++a:a++;return Dn(n,u,i[u])})},t}(vl),q7=function(e){function t(r){var n=Object.keys(r).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(r):[]);this._object=r,this._keys=n,this.size=n.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(n,o){return o!==void 0&&!this.has(n)?o:this._object[n]},t.prototype.has=function(n){return Iv.call(this._object,n)},t.prototype.__iterate=function(n,o){for(var i=this._object,s=this._keys,a=s.length,u=0;u!==a;){var l=s[o?a-++u:u++];if(n(i[l],l,this)===!1)break}return u},t.prototype.__iterator=function(n,o){var i=this._object,s=this._keys,a=s.length,u=0;return new zr(function(){if(u===a)return Hs();var l=s[o?a-++u:u++];return Dn(n,l,i[l])})},t}(R1);q7.prototype[Tv]=!0;var yZe=function(e){function t(r){this._collection=r,this.size=r.length||r.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(n,o){if(o)return this.cacheResult().__iterate(n,o);var i=this._collection,s=QB(i),a=0;if(DZ(s))for(var u;!(u=s.next()).done&&n(u.value,a++,this)!==!1;);return a},t.prototype.__iteratorUncached=function(n,o){if(o)return this.cacheResult().__iterator(n,o);var i=this._collection,s=QB(i);if(!DZ(s))return new zr(Hs);var a=0;return new zr(function(){var u=s.next();return u.done?u:Dn(n,a++,u.value)})},t}(vl),FZ;function W7(){return FZ||(FZ=new Uh([]))}function K7(e){var t=G7(e);if(t)return t.fromEntrySeq();if(typeof e=="object")return new q7(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function xde(e){var t=G7(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function bZe(e){var t=G7(e);if(t)return vZe(e)?t.fromEntrySeq():mZe(e)?t.toSetSeq():t;if(typeof e=="object")return new q7(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}function G7(e){return kde(e)?new Uh(e):Ade(e)?new yZe(e):void 0}var Tde="@@__IMMUTABLE_MAP__@@";function V7(e){return!!(e&&e[Tde])}function Ide(e){return V7(e)&&ol(e)}function BZ(e){return!!(e&&typeof e.equals=="function"&&typeof e.hashCode=="function")}function fa(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if(typeof e.valueOf=="function"&&typeof t.valueOf=="function"){if(e=e.valueOf(),t=t.valueOf(),e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!!(BZ(e)&&BZ(t)&&e.equals(t))}var zm=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(t,r){t|=0,r|=0;var n=t&65535,o=r&65535;return n*o+((t>>>16)*o+n*(r>>>16)<<16>>>0)|0};function I9(e){return e>>>1&1073741824|e&3221225471}var _Ze=Object.prototype.valueOf;function na(e){if(e==null)return MZ(e);if(typeof e.hashCode=="function")return I9(e.hashCode(e));var t=xZe(e);if(t==null)return MZ(t);switch(typeof t){case"boolean":return t?1108378657:1108378656;case"number":return EZe(t);case"string":return t.length>TZe?SZe(t):ZB(t);case"object":case"function":return AZe(t);case"symbol":return wZe(t);default:if(typeof t.toString=="function")return ZB(t.toString());throw new Error("Value type "+typeof t+" cannot be hashed.")}}function MZ(e){return e===null?1108378658:1108378659}function EZe(e){if(e!==e||e===1/0)return 0;var t=e|0;for(t!==e&&(t^=e*4294967295);e>4294967295;)e/=4294967295,t^=e;return I9(t)}function SZe(e){var t=QD[e];return t===void 0&&(t=ZB(e),XD===IZe&&(XD=0,QD={}),XD++,QD[e]=t),t}function ZB(e){for(var t=0,r=0;r0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}function xZe(e){return e.valueOf!==_Ze&&typeof e.valueOf=="function"?e.valueOf(e):e}function Cde(){var e=++YD;return YD&1073741824&&(YD=0),e}var JB=typeof WeakMap=="function",eM;JB&&(eM=new WeakMap);var zZ=Object.create(null),YD=0,hh="__immutablehash__";typeof Symbol=="function"&&(hh=Symbol(hh));var TZe=16,IZe=255,XD=0,QD={},C9=function(e){function t(r,n){this._iter=r,this._useKeys=n,this.size=r.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(n,o){return this._iter.get(n,o)},t.prototype.has=function(n){return this._iter.has(n)},t.prototype.valueSeq=function(){return this._iter.valueSeq()},t.prototype.reverse=function(){var n=this,o=U7(this,!0);return this._useKeys||(o.valueSeq=function(){return n._iter.toSeq().reverse()}),o},t.prototype.map=function(n,o){var i=this,s=Fde(this,n,o);return this._useKeys||(s.valueSeq=function(){return i._iter.toSeq().map(n,o)}),s},t.prototype.__iterate=function(n,o){var i=this;return this._iter.__iterate(function(s,a){return n(s,a,i)},o)},t.prototype.__iterator=function(n,o){return this._iter.__iterator(n,o)},t}(R1);C9.prototype[Tv]=!0;var Nde=function(e){function t(r){this._iter=r,this.size=r.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.includes=function(n){return this._iter.includes(n)},t.prototype.__iterate=function(n,o){var i=this,s=0;return o&&Pg(this),this._iter.__iterate(function(a){return n(a,o?i.size-++s:s++,i)},o)},t.prototype.__iterator=function(n,o){var i=this,s=this._iter.__iterator(cl,o),a=0;return o&&Pg(this),new zr(function(){var u=s.next();return u.done?u:Dn(n,o?i.size-++a:a++,u.value,u)})},t}(vl),Rde=function(e){function t(r){this._iter=r,this.size=r.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.has=function(n){return this._iter.includes(n)},t.prototype.__iterate=function(n,o){var i=this;return this._iter.__iterate(function(s){return n(s,s,i)},o)},t.prototype.__iterator=function(n,o){var i=this._iter.__iterator(cl,o);return new zr(function(){var s=i.next();return s.done?s:Dn(n,s.value,s.value,s)})},t}(Cv),Ode=function(e){function t(r){this._iter=r,this.size=r.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.entrySeq=function(){return this._iter.toSeq()},t.prototype.__iterate=function(n,o){var i=this;return this._iter.__iterate(function(s){if(s){$Z(s);var a=zs(s);return n(a?s.get(1):s[1],a?s.get(0):s[0],i)}},o)},t.prototype.__iterator=function(n,o){var i=this._iter.__iterator(cl,o);return new zr(function(){for(;;){var s=i.next();if(s.done)return s;var a=s.value;if(a){$Z(a);var u=zs(a);return Dn(n,u?a.get(0):a[0],u?a.get(1):a[1],s)}}})},t}(R1);Nde.prototype.cacheResult=C9.prototype.cacheResult=Rde.prototype.cacheResult=Ode.prototype.cacheResult=Q7;function Dde(e){var t=xc(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var r=e.reverse.apply(this);return r.flip=function(){return e.reverse()},r},t.has=function(r){return e.includes(r)},t.includes=function(r){return e.has(r)},t.cacheResult=Q7,t.__iterateUncached=function(r,n){var o=this;return e.__iterate(function(i,s){return r(s,i,o)!==!1},n)},t.__iteratorUncached=function(r,n){if(r===mu){var o=e.__iterator(r,n);return new zr(function(){var i=o.next();if(!i.done){var s=i.value[0];i.value[0]=i.value[1],i.value[1]=s}return i})}return e.__iterator(r===cl?pE:cl,n)},t}function Fde(e,t,r){var n=xc(e);return n.size=e.size,n.has=function(o){return e.has(o)},n.get=function(o,i){var s=e.get(o,Er);return s===Er?i:t.call(r,s,o,e)},n.__iterateUncached=function(o,i){var s=this;return e.__iterate(function(a,u,l){return o(t.call(r,a,u,l),u,s)!==!1},i)},n.__iteratorUncached=function(o,i){var s=e.__iterator(mu,i);return new zr(function(){var a=s.next();if(a.done)return a;var u=a.value,l=u[0];return Dn(o,l,t.call(r,u[1],l,e),a)})},n}function U7(e,t){var r=this,n=xc(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var o=Dde(e);return o.reverse=function(){return e.flip()},o}),n.get=function(o,i){return e.get(t?o:-1-o,i)},n.has=function(o){return e.has(t?o:-1-o)},n.includes=function(o){return e.includes(o)},n.cacheResult=Q7,n.__iterate=function(o,i){var s=this,a=0;return i&&Pg(e),e.__iterate(function(u,l){return o(u,t?l:i?s.size-++a:a++,s)},!i)},n.__iterator=function(o,i){var s=0;i&&Pg(e);var a=e.__iterator(mu,!i);return new zr(function(){var u=a.next();if(u.done)return u;var l=u.value;return Dn(o,t?l[0]:i?r.size-++s:s++,l[1],u)})},n}function Bde(e,t,r,n){var o=xc(e);return n&&(o.has=function(i){var s=e.get(i,Er);return s!==Er&&!!t.call(r,s,i,e)},o.get=function(i,s){var a=e.get(i,Er);return a!==Er&&t.call(r,a,i,e)?a:s}),o.__iterateUncached=function(i,s){var a=this,u=0;return e.__iterate(function(l,c,f){if(t.call(r,l,c,f))return u++,i(l,n?c:u-1,a)},s),u},o.__iteratorUncached=function(i,s){var a=e.__iterator(mu,s),u=0;return new zr(function(){for(;;){var l=a.next();if(l.done)return l;var c=l.value,f=c[0],d=c[1];if(t.call(r,d,f,e))return Dn(i,n?f:u++,d,l)}})},o}function CZe(e,t,r){var n=fc().asMutable();return e.__iterate(function(o,i){n.update(t.call(r,o,i,e),0,function(s){return s+1})}),n.asImmutable()}function NZe(e,t,r){var n=Rn(e),o=(ol(e)?da():fc()).asMutable();e.__iterate(function(s,a){o.update(t.call(r,s,a,e),function(u){return u=u||[],u.push(n?[a,s]:s),u})});var i=X7(e);return o.map(function(s){return an(e,i(s))}).asImmutable()}function RZe(e,t,r){var n=Rn(e),o=[[],[]];e.__iterate(function(s,a){o[t.call(r,s,a,e)?1:0].push(n?[a,s]:s)});var i=X7(e);return o.map(function(s){return an(e,i(s))})}function Y7(e,t,r,n){var o=e.size;if(w9(t,r,o))return e;var i=hE(t,o),s=A9(r,o);if(i!==i||s!==s)return Y7(e.toSeq().cacheResult(),t,r,n);var a=s-i,u;a===a&&(u=a<0?0:a);var l=xc(e);return l.size=u===0?u:e.size&&u||void 0,!n&&P7(e)&&u>=0&&(l.get=function(c,f){return c=p1(this,c),c>=0&&cu)return Hs();var v=d.next();return n||c===cl||v.done?v:c===pE?Dn(c,g-1,void 0,v):Dn(c,g-1,v.value[1],v)})},l}function OZe(e,t,r){var n=xc(e);return n.__iterateUncached=function(o,i){var s=this;if(i)return this.cacheResult().__iterate(o,i);var a=0;return e.__iterate(function(u,l,c){return t.call(r,u,l,c)&&++a&&o(u,l,s)}),a},n.__iteratorUncached=function(o,i){var s=this;if(i)return this.cacheResult().__iterator(o,i);var a=e.__iterator(mu,i),u=!0;return new zr(function(){if(!u)return Hs();var l=a.next();if(l.done)return l;var c=l.value,f=c[0],d=c[1];return t.call(r,d,f,s)?o===mu?l:Dn(o,f,d,l):(u=!1,Hs())})},n}function Mde(e,t,r,n){var o=xc(e);return o.__iterateUncached=function(i,s){var a=this;if(s)return this.cacheResult().__iterate(i,s);var u=!0,l=0;return e.__iterate(function(c,f,d){if(!(u&&(u=t.call(r,c,f,d))))return l++,i(c,n?f:l-1,a)}),l},o.__iteratorUncached=function(i,s){var a=this;if(s)return this.cacheResult().__iterator(i,s);var u=e.__iterator(mu,s),l=!0,c=0;return new zr(function(){var f,d,h;do{if(f=u.next(),f.done)return n||i===cl?f:i===pE?Dn(i,c++,void 0,f):Dn(i,c++,f.value[1],f);var g=f.value;d=g[0],h=g[1],l&&(l=t.call(r,h,d,a))}while(l);return i===mu?f:Dn(i,d,h,f)})},o}function DZe(e,t){var r=Rn(e),n=[e].concat(t).map(function(s){return zs(s)?r&&(s=Au(s)):s=r?K7(s):xde(Array.isArray(s)?s:[s]),s}).filter(function(s){return s.size!==0});if(n.length===0)return e;if(n.length===1){var o=n[0];if(o===e||r&&Rn(o)||Bs(e)&&Bs(o))return o}var i=new Uh(n);return r?i=i.toKeyedSeq():Bs(e)||(i=i.toSetSeq()),i=i.flatten(!0),i.size=n.reduce(function(s,a){if(s!==void 0){var u=a.size;if(u!==void 0)return s+u}},0),i}function Lde(e,t,r){var n=xc(e);return n.__iterateUncached=function(o,i){if(i)return this.cacheResult().__iterate(o,i);var s=0,a=!1;function u(l,c){l.__iterate(function(f,d){return(!t||c0}function Tw(e,t,r,n){var o=xc(e),i=new Uh(r).map(function(s){return s.size});return o.size=n?i.max():i.min(),o.__iterate=function(s,a){for(var u=this.__iterator(cl,a),l,c=0;!(l=u.next()).done&&s(l.value,c++,this)!==!1;);return c},o.__iteratorUncached=function(s,a){var u=r.map(function(f){return f=fo(f),QB(a?f.reverse():f)}),l=0,c=!1;return new zr(function(){var f;return c||(f=u.map(function(d){return d.next()}),c=n?f.every(function(d){return d.done}):f.some(function(d){return d.done})),c?Hs():Dn(s,l++,t.apply(null,f.map(function(d){return d.value})))})},o}function an(e,t){return e===t?e:P7(e)?t:e.constructor(t)}function $Z(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function X7(e){return Rn(e)?Au:Bs(e)?dp:kv}function xc(e){return Object.create((Rn(e)?R1:Bs(e)?vl:Cv).prototype)}function Q7(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):wa.prototype.cacheResult.call(this)}function jde(e,t){return e===void 0&&t===void 0?0:e===void 0?1:t===void 0?-1:e>t?1:e0;)t[r]=arguments[r+1];if(typeof e!="function")throw new TypeError("Invalid merger function: "+e);return Kde(this,t,e)}function Kde(e,t,r){for(var n=[],o=0;o0;)t[r]=arguments[r+1];return nj(this,t,e)}function ij(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return Nv(this,e,Ju(),function(n){return oj(n,t)})}function sj(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return Nv(this,e,Ju(),function(n){return nj(n,t)})}function gE(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function vE(){return this.__ownerID?this:this.__ensureOwner(new $7)}function mE(){return this.__ensureOwner()}function aj(){return this.__altered}var fc=function(e){function t(r){return r==null?Ju():V7(r)&&!ol(r)?r:Ju().withMutations(function(n){var o=e(r);oa(o.size),o.forEach(function(i,s){return n.set(s,i)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){for(var n=[],o=arguments.length;o--;)n[o]=arguments[o];return Ju().withMutations(function(i){for(var s=0;s=n.length)throw new Error("Missing value for key: "+n[s]);i.set(n[s],n[s+1])}})},t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(n,o){return this._root?this._root.get(0,void 0,n,o):o},t.prototype.set=function(n,o){return WZ(this,n,o)},t.prototype.remove=function(n){return WZ(this,n,Er)},t.prototype.deleteAll=function(n){var o=fo(n);return o.size===0?this:this.withMutations(function(i){o.forEach(function(s){return i.remove(s)})})},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Ju()},t.prototype.sort=function(n){return da(qg(this,n))},t.prototype.sortBy=function(n,o){return da(qg(this,o,n))},t.prototype.map=function(n,o){var i=this;return this.withMutations(function(s){s.forEach(function(a,u){s.set(u,n.call(o,a,u,i))})})},t.prototype.__iterator=function(n,o){return new KZe(this,n,o)},t.prototype.__iterate=function(n,o){var i=this,s=0;return this._root&&this._root.iterate(function(a){return s++,n(a[1],a[0],i)},o),s},t.prototype.__ensureOwner=function(n){return n===this.__ownerID?this:n?uj(this.size,this._root,n,this.__hash):this.size===0?Ju():(this.__ownerID=n,this.__altered=!1,this)},t}(Au);fc.isMap=V7;var An=fc.prototype;An[Tde]=!0;An[dE]=An.remove;An.removeAll=An.deleteAll;An.setIn=J7;An.removeIn=An.deleteIn=ej;An.update=tj;An.updateIn=rj;An.merge=An.concat=qde;An.mergeWith=Wde;An.mergeDeep=Gde;An.mergeDeepWith=Vde;An.mergeIn=ij;An.mergeDeepIn=sj;An.withMutations=gE;An.wasAltered=aj;An.asImmutable=mE;An["@@transducer/init"]=An.asMutable=vE;An["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])};An["@@transducer/result"]=function(e){return e.asImmutable()};var r_=function(t,r){this.ownerID=t,this.entries=r};r_.prototype.get=function(t,r,n,o){for(var i=this.entries,s=0,a=i.length;s=QZe)return GZe(t,l,o,i);var h=t&&t===this.ownerID,g=h?l:Ul(l);return d?u?c===f-1?g.pop():g[c]=g.pop():g[c]=[o,i]:g.push([o,i]),h?(this.entries=g,this):new r_(t,g)}};var Wg=function(t,r,n){this.ownerID=t,this.bitmap=r,this.nodes=n};Wg.prototype.get=function(t,r,n,o){r===void 0&&(r=na(n));var i=1<<((t===0?r:r>>>t)&rs),s=this.bitmap;return s&i?this.nodes[Ude(s&i-1)].get(t+En,r,n,o):o};Wg.prototype.update=function(t,r,n,o,i,s,a){n===void 0&&(n=na(o));var u=(r===0?n:n>>>r)&rs,l=1<=ZZe)return UZe(t,h,c,u,v);if(f&&!v&&h.length===2&&KZ(h[d^1]))return h[d^1];if(f&&v&&h.length===1&&KZ(v))return v;var y=t&&t===this.ownerID,E=f?v?c:c^l:c|l,_=f?v?Yde(h,d,v,y):XZe(h,d,y):YZe(h,d,v,y);return y?(this.bitmap=E,this.nodes=_,this):new Wg(t,E,_)};var n_=function(t,r,n){this.ownerID=t,this.count=r,this.nodes=n};n_.prototype.get=function(t,r,n,o){r===void 0&&(r=na(n));var i=(t===0?r:r>>>t)&rs,s=this.nodes[i];return s?s.get(t+En,r,n,o):o};n_.prototype.update=function(t,r,n,o,i,s,a){n===void 0&&(n=na(o));var u=(r===0?n:n>>>r)&rs,l=i===Er,c=this.nodes,f=c[u];if(l&&!f)return this;var d=lj(f,t,r+En,n,o,i,s,a);if(d===f)return this;var h=this.count;if(!f)h++;else if(!d&&(h--,h>>r)&rs,s=(r===0?n:n>>>r)&rs,a,u=i===s?[cj(e,t,r+En,n,o)]:(a=new Of(t,n,o),i>>=1)s[a]=r&1?t[i++]:void 0;return s[n]=o,new n_(e,i+1,s)}function Ude(e){return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),e=e+(e>>4)&252645135,e+=e>>8,e+=e>>16,e&127}function Yde(e,t,r,n){var o=n?e:Ul(e);return o[t]=r,o}function YZe(e,t,r,n){var o=e.length+1;if(n&&t+1===o)return e[t]=r,e;for(var i=new Array(o),s=0,a=0;a0&&i=0&&n>>r&rs;if(o>=this.array.length)return new e1([],t);var i=o===0,s;if(r>0){var a=this.array[o];if(s=a&&a.removeBefore(t,r-En,n),s===a&&i)return this}if(i&&!s)return this;var u=Gg(this,t);if(!i)for(var l=0;l>>r&rs;if(o>=this.array.length)return this;var i;if(r>0){var s=this.array[o];if(i=s&&s.removeAfter(t,r-En,n),i===s&&o===this.array.length-1)return this}var a=Gg(this,t);return a.array.splice(o+1),i&&(a.array[o]=i),a};var Zy={};function GZ(e,t){var r=e._origin,n=e._capacity,o=i_(n),i=e._tail;return s(e._root,e._level,0);function s(l,c,f){return c===0?a(l,f):u(l,c,f)}function a(l,c){var f=c===o?i&&i.array:l&&l.array,d=c>r?0:r-c,h=n-c;return h>ou&&(h=ou),function(){if(d===h)return Zy;var g=t?--h:d++;return f&&f[g]}}function u(l,c,f){var d,h=l&&l.array,g=f>r?0:r-f>>c,v=(n-f>>c)+1;return v>ou&&(v=ou),function(){for(;;){if(d){var y=d();if(y!==Zy)return y;d=null}if(g===v)return Zy;var E=t?--v:g++;d=s(h&&h[E],c-En,f+(E<=e.size||t<0)return e.withMutations(function(s){t<0?kd(s,t).set(0,r):kd(s,0,t+1).set(t,r)});t+=e._origin;var n=e._tail,o=e._root,i=YB();return t>=i_(e._capacity)?n=tM(n,e.__ownerID,0,t,r,i):o=tM(o,e.__ownerID,e._level,t,r,i),i.value?e.__ownerID?(e._root=o,e._tail=n,e.__hash=void 0,e.__altered=!0,e):o_(e._origin,e._capacity,e._level,o,n):e}function tM(e,t,r,n,o,i){var s=n>>>r&rs,a=e&&s0){var l=e&&e.array[s],c=tM(l,t,r-En,n,o,i);return c===l?e:(u=Gg(e,t),u.array[s]=c,u)}return a&&e.array[s]===o?e:(i&&iu(i),u=Gg(e,t),o===void 0&&s===u.array.length-1?u.array.pop():u.array[s]=o,u)}function Gg(e,t){return t&&e&&t===e.ownerID?e:new e1(e?e.array.slice():[],t)}function Zde(e,t){if(t>=i_(e._capacity))return e._tail;if(t<1<0;)r=r.array[t>>>n&rs],n-=En;return r}}function kd(e,t,r){t!==void 0&&(t|=0),r!==void 0&&(r|=0);var n=e.__ownerID||new $7,o=e._origin,i=e._capacity,s=o+t,a=r===void 0?i:r<0?i+r:o+r;if(s===o&&a===i)return e;if(s>=a)return e.clear();for(var u=e._level,l=e._root,c=0;s+c<0;)l=new e1(l&&l.array.length?[void 0,l]:[],n),u+=En,c+=1<=1<f?new e1([],n):h;if(h&&d>f&&sEn;y-=En){var E=f>>>y&rs;v=v.array[E]=Gg(v.array[E],n)}v.array[f>>>En&rs]=h}if(a=d)s-=d,a-=d,u=En,l=null,g=g&&g.removeBefore(n,0,s);else if(s>o||d>>u&rs;if(_!==d>>>u&rs)break;_&&(c+=(1<o&&(l=l.removeBefore(n,u,s-c)),l&&d>>En<=ou&&o.size>=n.size*2?(u=o.filter(function(l,c){return l!==void 0&&i!==c}),a=u.toKeyedSeq().map(function(l){return l[0]}).flip().toMap(),e.__ownerID&&(a.__ownerID=u.__ownerID=e.__ownerID)):(a=n.remove(t),u=i===o.size-1?o.pop():o.set(i,void 0))}else if(s){if(r===o.get(i)[1])return e;a=n,u=o.set(i,[t,r])}else a=n.set(t,o.size),u=o.set(o.size,[t,r]);return e.__ownerID?(e.size=a.size,e._map=a,e._list=u,e.__hash=void 0,e.__altered=!0,e):fj(a,u)}var Jde="@@__IMMUTABLE_STACK__@@";function rM(e){return!!(e&&e[Jde])}var dj=function(e){function t(r){return r==null?Iw():rM(r)?r:Iw().pushAll(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(n,o){var i=this._head;for(n=p1(this,n);i&&n--;)i=i.next;return i?i.value:o},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var n=arguments;if(arguments.length===0)return this;for(var o=this.size+arguments.length,i=this._head,s=arguments.length-1;s>=0;s--)i={value:n[s],next:i};return this.__ownerID?(this.size=o,this._head=i,this.__hash=void 0,this.__altered=!0,this):yy(o,i)},t.prototype.pushAll=function(n){if(n=e(n),n.size===0)return this;if(this.size===0&&rM(n))return n;oa(n.size);var o=this.size,i=this._head;return n.__iterate(function(s){o++,i={value:s,next:i}},!0),this.__ownerID?(this.size=o,this._head=i,this.__hash=void 0,this.__altered=!0,this):yy(o,i)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Iw()},t.prototype.slice=function(n,o){if(w9(n,o,this.size))return this;var i=hE(n,this.size),s=A9(o,this.size);if(s!==this.size)return e.prototype.slice.call(this,n,o);for(var a=this.size-i,u=this._head;i--;)u=u.next;return this.__ownerID?(this.size=a,this._head=u,this.__hash=void 0,this.__altered=!0,this):yy(a,u)},t.prototype.__ensureOwner=function(n){return n===this.__ownerID?this:n?yy(this.size,this._head,n,this.__hash):this.size===0?Iw():(this.__ownerID=n,this.__altered=!1,this)},t.prototype.__iterate=function(n,o){var i=this;if(o)return new Uh(this.toArray()).__iterate(function(u,l){return n(u,l,i)},o);for(var s=0,a=this._head;a&&n(a.value,s++,this)!==!1;)a=a.next;return s},t.prototype.__iterator=function(n,o){if(o)return new Uh(this.toArray()).__iterator(n,o);var i=0,s=this._head;return new zr(function(){if(s){var a=s.value;return s=s.next,Dn(n,i++,a)}return Hs()})},t}(dp);dj.isStack=rM;var ls=dj.prototype;ls[Jde]=!0;ls.shift=ls.pop;ls.unshift=ls.push;ls.unshiftAll=ls.pushAll;ls.withMutations=gE;ls.wasAltered=aj;ls.asImmutable=mE;ls["@@transducer/init"]=ls.asMutable=vE;ls["@@transducer/step"]=function(e,t){return e.unshift(t)};ls["@@transducer/result"]=function(e){return e.asImmutable()};function yy(e,t,r,n){var o=Object.create(ls);return o.size=e,o._head=t,o.__ownerID=r,o.__hash=n,o.__altered=!1,o}var XZ;function Iw(){return XZ||(XZ=yy(0))}var e1e="@@__IMMUTABLE_SET__@@";function hj(e){return!!(e&&e[e1e])}function t1e(e){return hj(e)&&ol(e)}function r1e(e,t){if(e===t)return!0;if(!zs(t)||e.size!==void 0&&t.size!==void 0&&e.size!==t.size||e.__hash!==void 0&&t.__hash!==void 0&&e.__hash!==t.__hash||Rn(e)!==Rn(t)||Bs(e)!==Bs(t)||ol(e)!==ol(t))return!1;if(e.size===0&&t.size===0)return!0;var r=!k9(e);if(ol(e)){var n=e.entries();return t.every(function(u,l){var c=n.next().value;return c&&fa(c[1],u)&&(r||fa(c[0],l))})&&n.next().done}var o=!1;if(e.size===void 0)if(t.size===void 0)typeof e.cacheResult=="function"&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var s=!0,a=t.__iterate(function(u,l){if(r?!e.has(u):o?!fa(u,e.get(l,Er)):!fa(e.get(l,Er),u))return s=!1,!1});return s&&e.size===a}function hp(e,t){var r=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(r),e}function nx(e){if(!e||typeof e!="object")return e;if(!zs(e)){if(!g1(e))return e;e=wa(e)}if(Rn(e)){var t={};return e.__iterate(function(n,o){t[o]=nx(n)}),t}var r=[];return e.__iterate(function(n){r.push(nx(n))}),r}var yE=function(e){function t(r){return r==null?by():hj(r)&&!ol(r)?r:by().withMutations(function(n){var o=e(r);oa(o.size),o.forEach(function(i){return n.add(i)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(n){return this(Au(n).keySeq())},t.intersect=function(n){return n=fo(n).toArray(),n.length?ci.intersect.apply(t(n.pop()),n):by()},t.union=function(n){return n=fo(n).toArray(),n.length?ci.union.apply(t(n.pop()),n):by()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(n){return this._map.has(n)},t.prototype.add=function(n){return Cw(this,this._map.set(n,n))},t.prototype.remove=function(n){return Cw(this,this._map.remove(n))},t.prototype.clear=function(){return Cw(this,this._map.clear())},t.prototype.map=function(n,o){var i=this,s=!1,a=Cw(this,this._map.mapEntries(function(u){var l=u[1],c=n.call(o,l,l,i);return c!==l&&(s=!0),[c,c]},o));return s?a:this},t.prototype.union=function(){for(var n=[],o=arguments.length;o--;)n[o]=arguments[o];return n=n.filter(function(i){return i.size!==0}),n.length===0?this:this.size===0&&!this.__ownerID&&n.length===1?this.constructor(n[0]):this.withMutations(function(i){for(var s=0;s=0&&o=0&&ithis.size?r:this.find(function(n,o){return o===t},void 0,r)},has:function(t){return t=p1(this,t),t>=0&&(this.size!==void 0?this.size===1/0||tt?-1:0}function sJe(e){if(e.size===1/0)return 0;var t=ol(e),r=Rn(e),n=t?1:0,o=e.__iterate(r?t?function(i,s){n=31*n+rJ(na(i),na(s))|0}:function(i,s){n=n+rJ(na(i),na(s))|0}:t?function(i){n=31*n+na(i)|0}:function(i){n=n+na(i)|0});return aJe(o,n)}function aJe(e,t){return t=zm(t,3432918353),t=zm(t<<15|t>>>-15,461845907),t=zm(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=zm(t^t>>>16,2246822507),t=zm(t^t>>>13,3266489909),t=I9(t^t>>>16),t}function rJ(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var s_=function(e){function t(r){return r==null?nM():t1e(r)?r:nM().withMutations(function(n){var o=kv(r);oa(o.size),o.forEach(function(i){return n.add(i)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(n){return this(Au(n).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(yE);s_.isOrderedSet=t1e;var pp=s_.prototype;pp[Tv]=!0;pp.zip=Rv.zip;pp.zipWith=Rv.zipWith;pp.zipAll=Rv.zipAll;pp.__empty=nM;pp.__make=a1e;function a1e(e,t){var r=Object.create(pp);return r.size=e?e.size:0,r._map=e,r.__ownerID=t,r}var nJ;function nM(){return nJ||(nJ=a1e(my()))}function uJe(e){if(xv(e))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(kc(e))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(e===null||typeof e!="object")throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}var Zo=function(t,r){var n;uJe(t);var o=function(a){var u=this;if(a instanceof o)return a;if(!(this instanceof o))return new o(a);if(!n){n=!0;var l=Object.keys(t),c=i._indices={};i._name=r,i._keys=l,i._defaultValues=t;for(var f=0;f0?this._next(r.shift()):this.active===0&&this.hasCompleted&&this.destination.complete()},t}(BJe);function zJe(e){return e===void 0&&(e=Number.POSITIVE_INFINITY),c1e(n1e,e)}function QD(){for(var e=[],t=0;t1&&typeof e[e.length-1]=="number"&&(r=e.pop())):typeof o=="number"&&(r=e.pop()),n===null&&e.length===1&&e[0]instanceof Hs?e[0]:zJe(r)(hj(e,n))}function nJ(e,t){return function(n){return n.lift(new HJe(e,t))}}var HJe=function(){function e(t,r){this.predicate=t,this.thisArg=r}return e.prototype.call=function(t,r){return r.subscribe(new $Je(t,this.predicate,this.thisArg))},e}(),$Je=function(e){jo(t,e);function t(r,n,o){var i=e.call(this,r)||this;return i.predicate=n,i.thisArg=o,i.count=0,i}return t.prototype._next=function(r){var n;try{n=this.predicate.call(this.thisArg,r,this.count++)}catch(o){this.destination.error(o);return}n&&this.destination.next(r)},t}(va);function ZD(e,t){return t===void 0&&(t=pJe),function(r){return r.lift(new PJe(e,t))}}var PJe=function(){function e(t,r){this.dueTime=t,this.scheduler=r}return e.prototype.call=function(t,r){return r.subscribe(new qJe(t,this.dueTime,this.scheduler))},e}(),qJe=function(e){jo(t,e);function t(r,n,o){var i=e.call(this,r)||this;return i.dueTime=n,i.scheduler=o,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return t.prototype._next=function(r){this.clearDebounce(),this.lastValue=r,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(WJe,this.dueTime,this))},t.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},t.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var r=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(r)}},t.prototype.clearDebounce=function(){var r=this.debouncedSubscription;r!==null&&(this.remove(r),r.unsubscribe(),this.debouncedSubscription=null)},t}(va);function WJe(e){e.debouncedNext()}function gh(){return gh=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const a=n.singletonCache.get(s)||n.requestCache.get(s)||n.transientCache.get(s);a&&(i.proxyTarget.current=a)}),n.postConstruct.forEach(i=>{i.postConstruct()}),this.currentCtx=null,o}child(){const t=new this.constructor;return t.parent=this,t}getParent(){return this.parent}getInjectable(t){var r;const n=this.pool.get(t);if(n)return{value:n,fromParent:!1};const o=(r=this.parent)==null?void 0:r.getInjectable(t);return o?{value:o.value,fromParent:!0}:void 0}_resolve(t,r,n){const o=this.getInjectable(t);if((r==null?void 0:r.optional)===!0&&!o)return;if(!o)throw new Error(`Key: ${xw(t)} not found`);const{value:{value:i,scope:s,type:a},fromParent:u}=o;let l,c=!1;if(a===Xp.VALUE)return i;{const f=n.requestedKeys.get(t);if(f){if(!f.constructed){if(!r.lazy&&!u){const d=Array.from(n.requestedKeys.entries()).pop(),h=d?`[ ${String(d[0])}: ${d[1].value.name} ]`:"";throw new Error(`Circular reference detected: ${h} -> [ ${xw(t)}: ${i.name} ]`)}c=!0}}else n.requestedKeys.set(t,{constructed:!1,value:i})}return l=c?()=>this.createLazy(t,a,n):()=>this.create(t,o.value,n),this.run(s,t,l,n)}resolveDeps(t,r){const n=[];for(const o of t){const{key:i,options:s}=UJe(o);if(Array.isArray(i)){const a=[];for(const u of i){let l=r.singletonCache.get(u.key);l===void 0&&(l=this._resolve(u.key,gh({},u.options),r)),l===void 0&&s.removeUndefined||a.push(l)}n.push(a.length?a:s.setToUndefinedIfEmpty?void 0:a)}else{let a=r.singletonCache.get(i);a===void 0&&(a=this._resolve(i,gh({},s),r)),n.push(a)}}return n}createLazy(t,r,n){const o=n.delayed.get(t);if(o)return o.proxy;const i=r===Xp.CLASS?{}:function(){},s=function(a,u,l){function c(){if(!a.current)throw new Error(`Lazy target for key:${String(l)} not yet set`);return a.current}return new Proxy(a,{apply:function(f,d){const h=c();return Reflect.apply(h,u?h:void 0,d)},construct:function(f,d){return Reflect.construct(c(),d)},get:function(f,d,h){return d===KJe?f.current:d===GJe||Reflect.get(c(),d,h)},set:function(f,d,h){return Reflect.set(d==="current"?f:c(),d,h)},defineProperty:function(f,d,h){return Reflect.defineProperty(c(),d,h)},deleteProperty:function(f,d){return Reflect.deleteProperty(c(),d)},getPrototypeOf:function(f){return Reflect.getPrototypeOf(c())},setPrototypeOf:function(f,d){return Reflect.setPrototypeOf(c(),d)},getOwnPropertyDescriptor:function(f,d){return Reflect.getOwnPropertyDescriptor(c(),d)},has:function(f,d){return Reflect.has(c(),d)},isExtensible:function(f){return Reflect.isExtensible(c())},ownKeys:function(f){return Reflect.ownKeys(c())},preventExtensions:function(f){return Reflect.preventExtensions(c())}})}(i,r===Xp.CLASS,t);return n.delayed.set(t,{proxy:s,proxyTarget:i}),s}create(t,r,n){const{beforeResolve:o,afterResolve:i,value:s,type:a}=r,u=s.inject;let l=[];u&&(l=Array.isArray(u)?this.resolveDeps(u,n):u.fn({container:this,ctx:n.ctx},...this.resolveDeps(u.deps,n)));const c=o?o({container:this,value:s.original,ctx:n.ctx},...l):s(...l);return i&&i({container:this,value:c,ctx:n.ctx}),n.requestedKeys.get(t).constructed=!0,a==="CLASS"&&"postConstruct"in c&&n.postConstruct.push(c),c}run(t,r,n,o){if(t===X1.SINGLETON||t===X1.CONTAINER_SINGLETON){var i;if(!this.pool.has(r)&&t===X1.SINGLETON)return(i=this.parent)==null?void 0:i.resolve(r);const a=o.singletonCache.get(r);if(a!==void 0)return a===Iw?void 0:a;{let u=n();return u===void 0&&(u=Iw),this.singletonCache.set(r,u),u}}if(X1.REQUEST===t){const a=o.requestCache.get(r);if(a!==void 0)return a===Iw?void 0:a;{let u=n();return u===void 0&&(u=Iw),o.requestCache.set(r,u),u}}const s=n();return o.transientCache.set(r,s),s}};function XJe(e){return zx(e,"useClass")}function QJe(e){return zx(e,"useFactory")}function ZJe(e){return zx(e,"useValue")}function JJe(e){return zx(e,"useToken")}const yE=Symbol("singleton");function eet(e){return typeof e=="function"&&!!e.inject}function JD(e){return e[yE]?"SINGLETON":e.scope?e.scope:"TRANSIENT"}class tet extends YJe{constructor(){super(...arguments),this.name="DependencyContainer"}bindValue(t,r){return this.has(t,!1)&&this.unbind(t),super.bindValue(t,r)}bindClass(t,r,n){const o=(n==null?void 0:n.scope)??JD(t);return super.bindClass(t,r,{...n,scope:o})}register(t,r){if(ZJe(r))this.bindValue(t,r.useValue);else if(QJe(r)){const{useFactory:n}=r;this.bindFactory(t,{value:n,inject:[f1e]},{scope:r.scope})}else if(JJe(r))this.bindFactory(t,{value:n=>n,inject:[r.useToken]});else if(XJe(r)){const n=r.scope??JD(r.useClass);this.bindClass(t,r.useClass,{scope:n})}}_resolve(t,r,n){if(!this.getInjectable(t)&&eet(t)){const o=JD(t);this.bindClass(t,t,{scope:o})}return super._resolve(t,r,n)}}const ret=()=>{const e=new tet;return e.name="global",e},gj=ret();function Jo(e,t){return gj.bindValue(e,t),e}const f1e=Jo("DependencyContainer",gj),rM=k.createContext(gj),net=({provide:e,name:t})=>({containerRef:n,onInitialize:o,onDispose:i,children:s})=>{const a=k.useContext(rM),u=k.useMemo(()=>{const l=a.child();return t&&(l.name=t),e==null||e.forEach(c=>{l.register(c.token,c)}),l.bindValue(f1e,l),o==null||o(l),l},[o,a]);return k.useImperativeHandle(n,()=>u,[u]),k.useEffect(()=>()=>{i==null||i(u),u.unbindAll(!0)},[u]),C.jsx(rM.Provider,{value:u,children:s})};Jo("isControlFlowEnabledToken",!1);Jo("isDoWhileLoopEnabledToken",!1);Jo("isAnnotationEnabledToken",!1);Jo("isDesignerUnifiedSubmissionFlowEnabledToken",!1);Jo("isPipelineComputeDatastoreEnabledToken",!1);Jo("TransactionalAuthoringEnabled",!1);Jo("ComponentSettingsEnabled",!1);Jo("isPipelineOwnerToken",!1);Jo("isExecutionPhaseEnabledToken",!1);Jo("isPipelineStreamingEnabledToken",!1);Jo("useFocusedNodeId",()=>{});Jo("useIsInSearchResult",()=>!1);Jo("dismissCompareCheckListPanel",()=>null);const oet=e=>(t,r)=>e(t,r),iet=()=>$Qe(oet);let nM=class d1e extends Hs{constructor(t,r){super(n=>this.state$.subscribe(n)),this.getSnapshot=()=>this.state$.getValue(),this.state$=new i1e(t),this.subscription=r.subscribe(this.state$)}static fromStates(t,r){const n=r(t.map(i=>i.getSnapshot())),o=kJe(t).pipe(a1e(r));return new d1e(n,o)}destroy(){this.subscription.unsubscribe()}},at=class extends i1e{constructor(){super(...arguments),this.getState=()=>this.getValue(),this.setState=t=>{this.next(t)},this.updateState=t=>{this.next(t(this.getValue()))},this.getSnapshot=()=>this.getValue()}next(t,r){!r&&this.value===t||super.next(t)}copyFrom(t){this.next(t.getSnapshot())}};const Vz=class Vz{constructor(){this.nodesIndex$=new at(Ns()),this.allNodeNames$=nM.fromStates([],()=>Ns()),this.orientation$=new at(Sle.Vertical),this.language$=new at(void 0)}tweakFlattenNodeOrder(t,r){const n=this.nodesIndex$.getSnapshot(),o=n.findIndex(s=>s===t),i=o+r;if(o>=0&&i>=0&&i(this.addListener(t,r),r.next(this.get(t)),()=>{this.removeListener(t,r)}))}notify(t){var r;(r=this.listeners.get(t))==null||r.forEach(n=>{n.next(this.get(t))})}next(t){const r=this.getSnapshot();super.next(t);const n=new Set;r.forEach((o,i)=>{t.has(i)||n.add(i)}),t.forEach((o,i)=>{r.has(i)&&Object.is(r.get(i),o)||n.add(i)}),n.forEach(o=>{this.notify(o)})}addListener(t,r){let n=this.listeners.get(t);n||(n=new Set,this.listeners.set(t,n)),n.add(r)}removeListener(t,r){const n=this.listeners.get(t);n&&(n.delete(r),n.size===0&&this.listeners.delete(t))}}class Nw extends h1e{constructor(){super(uc())}set(t,r){return this.updateState(n=>n.set(t,r)),this}update(t,r){return this.updateState(n=>n.update(t,r)),this}delete(t){return this.updateState(r=>r.delete(t)),this}deleteAll(t){return this.updateState(r=>r.deleteAll(t)),this}clear(){return this.next(uc()),this}merge(t){return this.updateState(r=>r.merge(t)),this}}class ii extends h1e{constructor(){super(fa())}set(t,r){return this.updateState(n=>n.set(t,r)),this}update(t,r){return this.updateState(n=>n.update(t,r)),this}delete(t){return this.updateState(r=>r.delete(t)),this}deleteAll(t){return this.updateState(r=>r.deleteAll(t)),this}clear(){return this.next(fa()),this}merge(t){return this.updateState(r=>r.merge(t)),this}insertBefore(t,r,n){return this.updateState(o=>fa().withMutations(i=>{for(const[s,a]of o.entries())t===s&&i.set(r,n),i.set(s,a)})),this.notify(r),this}insertAfter(t,r,n){return this.updateState(o=>fa().withMutations(i=>{for(const[s,a]of o.entries())i.set(s,a),t===s&&i.set(r,n)})),this.notify(r),this}sortByValue(t){return this.updateState(r=>r.sort(t)),this}}var oJ;const Uz=class Uz extends oM{constructor(){super(),this.isWorkspaceReady$=new at(!1),this.currentNodeId$=new at(void 0),this.graphConfig=Lg.default().build(),this.graphReducer=iet(),this.isReadonly$=new at(!1),this.name$=new at(""),this.flowType$=new at(kd.Default),this.owner$=new at(void 0),this.isArchived$=new at(!1),this.selectedStepId$=new at(void 0),this.tools$=new ii,this.toolsStatus$=new ii,this.batchInputs$=new at([]),this.bulkRunDataReference$=new at(void 0),this.chatMessages$=new at([]),this.nodeVariants$=new ii,this.tuningNodeNames$=new at([]),this.inputSpec$=new ii,this.selectedBulkIndex$=new at(void 0),this.nodeRuns$=new ii,this.flowRuns$=new at([]),this.rootFlowRunMap$=new Nw,this.flowOutputs$=new ii,this.connections$=new ii,this.promptToolSetting$=new at(void 0),this.userInfo$=new at(void 0),this.bulkRunDescription$=new at(""),this.bulkRunTags$=new at([]),this.nodeParameterTypes$=new Nw,this.theme$=new at(void 0),this.selectedRuntimeName$=new at(void 0),this.connectionList$=new at([]),this.connectionSpecList$=new at([]),this.connectionDeployments$=new ii,this.connectionDeploymentsLoading$=new ii,this.runStatus$=new at(void 0),this.flowRunType$=new at(void 0),this.packageToolsDictionary$=new Nw,this.codeToolsDictionary$=new Nw,this.isToolsJsonReady$=new at(!1),this.flowGraphLayout$=new at(void 0),this.flowUIHint$=new at(void 0),this.isInitialized$=new at(!1),this.flowFeatures$=new at(new Set),this.loaded=!1,this._allLlmParameterKeys=[],new Set(dXe).add(it.AutoFit);const r=new Set;r.add(_le.OpenCodeFileInNode),this.flowFeatures$.next(r),this.canvasState$=new at(Yfe({settings:{graphConfig:this.graphConfig,canvasBoundaryPadding:{top:800,bottom:800}},data:Fh.empty()})),this.allNodeNames$=nM.fromStates([this.nodeVariants$],([n])=>Ns(Array.from(n.keys()).filter(o=>!!o&&o!==lG&&o!==fHe))),QD(this.flowOutputs$,this.batchInputs$,this.inputSpec$,this.selectedRuntimeName$,this.bulkRunTags$,this.nodeVariants$,this.codeToolsDictionary$,this.packageToolsDictionary$).pipe(nJ(()=>this.loaded),nJ(()=>this.isInitialized$.getSnapshot()),ZD(100)).subscribe(()=>{this.notifyFlowChange()}),QD(this.flowGraphLayout$,this.orientation$).pipe(ZD(100)).subscribe(()=>{this.notifyLayoutChange()}),QD(this.flowUIHint$).pipe(ZD(100)).subscribe(()=>{this.notifyUIHintChange()}),this.invalidStepInputs$=nM.fromStates([this.nodeVariants$,this.codeToolsDictionary$,this.packageToolsDictionary$,this.connectionList$,this.inputSpec$,this.nodeParameterTypes$],([n,o,i,s,a,u])=>this.validateNodeInputs(n))}attemptToRenameStep(t,r){if(!LHe(r))return`step name ${r} is not valid`;if(this.nodeVariants$.get(r))return`step with name ${r} already exists`;if(!this.nodeVariants$.get(t))return`step ${t} not found`;const o=(s,a,u)=>{const l={...s};return Object.keys(l).forEach(c=>{const f=l[c],d=CN(f),[h]=(d==null?void 0:d.split("."))??[];h===a&&(l[c]=f.replace(`${a}`,`${u}`))}),l},i=(s,a,u)=>{if(!s)return;const l={};return Object.entries(s).forEach(([c,f])=>{var d,h,g;l[c]={...f,node:{...f.node,name:((d=f.node)==null?void 0:d.name)===a?u:(h=f.node)==null?void 0:h.name,inputs:o(((g=f.node)==null?void 0:g.inputs)??{},a,u)}}}),l};li.unstable_batchedUpdates(()=>{this.nodeVariants$.updateState(s=>s.mapEntries(([a,u])=>{const l={...u,variants:i(u.variants,t,r)};return[a===t?r:a,l]})),this.flowGraphLayout$.updateState(s=>({...s,nodeLayouts:NN((s==null?void 0:s.nodeLayouts)??{},t,r)})),this.flowUIHint$.updateState(s=>({...s,nodes:NN((s==null?void 0:s.nodes)??{},t,r)})),this.currentNodeId$.getSnapshot()===t&&this.currentNodeId$.next(r),this.selectedStepId$.getSnapshot()===t&&this.selectedStepId$.next(r),this.nodeRuns$.getSnapshot().forEach((s,a)=>{if(s.node===t){const[,u,l,c]=a.split("#"),f=parseInt(u,10);this.nodeRuns$.set(this.getNodeRunKey(r,isNaN(f)?0:f,l,c),{...s,node:r}),this.nodeRuns$.delete(a)}})})}acceptFlowEdit(t,r){t!==this.viewType&&this.loadFlow(r)}loadFlow(t){this.loaded=!1;try{li.unstable_batchedUpdates(()=>{this.baseEntity=t,this.owner$.next(t.owner),this.isArchived$.next(t.isArchived??!1),this.loadFlowDto(t),t.flowRunResult&&this.loadStatus(t.flowRunResult)}),this.loaded=!0}catch(r){throw this.loaded=!0,r}}loadCodeTool(t,r){this.codeToolsDictionary$.set(t,r)}loadPackageTool(t,r){this.packageToolsDictionary$.set(t,r)}toBatchRequestData(){return{flow:{flowGraph:this.toFlowGraph(),nodeVariants:this.toNodeVariants(),flowGraphLayout:this.flowGraphLayout$.getSnapshot()},flowSubmitRunSettings:{...this.toFlowRunSettings()},flowRunDisplayName:this.name$.getSnapshot()}}toAddOnEvaluationRequestData(){return{flowSubmitRunSettings:{...this.toFlowRunSettings()}}}loadStatus(t){var i;this.clearStatus();let r=0;const n=[],o=new Map;if((i=t.flow_runs)!=null&&i.length){for(const s of t.flow_runs)s.index===null?o.set(s.run_id,s):(r=s.index,n.push(s));n.sort((s,a)=>{var u;return s.root_run_id===a.root_run_id?(s.index??0)-(a.index??0):s.variant_id&&a.variant_id?s.variant_id.localeCompare(a.variant_id):((u=s.root_run_id)==null?void 0:u.localeCompare((a==null?void 0:a.root_run_id)??""))??0}),this.flowRuns$.next(n),this.rootFlowRunMap$.next(uc(o))}t.flowRunType&&this.flowRunType$.next(t.flowRunType),t.runStatus&&this.runStatus$.next(t.runStatus),this.loadNodesStatus(t.node_runs||[]),this.selectedBulkIndex$.next(r)}loadNodesStatus(t){const r=this.tuningNodeNames$.getSnapshot()[0];t.forEach(n=>{const o=n.node===r,i=this.getDefaultVariantId(n.node),s=n.variant_id||i,a=o?s:i,u=this.getNodeRunKey(n.node,n.index??0,a,s);this.nodeRuns$.set(u,n)})}loadSingleNodeRunStatus(t,r,n){this.resetNodesStatus(t,r),n.forEach(o=>{const i=this.getDefaultVariantId(o.node),s=o.variant_id||i,a=o.variant_id||i,u=this.getNodeRunKey(o.node,o.index??0,a,s);this.nodeRuns$.set(u,o)})}resetNodesStatus(t,r){this.nodeRuns$.updateState(n=>n.filter(o=>{if(o.node!==t)return!0;const i=this.getDefaultVariantId(o.node);return(o.variant_id||i)!==r}))}clearStatus(){this.selectedBulkIndex$.next(void 0),this.nodeRuns$.clear(),this.flowRuns$.next([]),this.rootFlowRunMap$.clear()}getDefaultVariantId(t){var r;return((r=this.nodeVariants$.get(t))==null?void 0:r.defaultVariantId)||qi}setStepInput(t,r,n,o){const i=this.getNode(t,o);if(!(i!=null&&i.name))return;const s={...i,inputs:{...i.inputs,[r]:n}};this.setNode(t,o,s)}removeStepInputs(t,r,n){const o=this.getNode(t,n);if(!(o!=null&&o.name))return;const i={...o.inputs};r.forEach(a=>{delete i[a]});const s={...o,inputs:i};this.setNode(t,n,s)}renameStepInput(t,r,n){const o=this.getNode(t,qi);if(!(o!=null&&o.name))return;const i={...o,inputs:NN(o.inputs??{},r,n)};this.setNode(t,qi,i)}setStepActivate(t,r,n){const o=this.getNode(t,r);if(!(o!=null&&o.name))return;const i={...o,activate:n};this.setNode(t,r,i)}setStepKeyValue(t,r,n,o){const i=this.getNode(t,o);if(!(i!=null&&i.name))return;const s={...i,[r]:n};this.setNode(t,o,s)}setStepSourcePath(t,r,n){const o=this.getNode(t,n);if(!(o!=null&&o.name))return;const i={...o,source:{...o.source,path:r}};this.setNode(t,n,i)}setBatchInput(t,r,n){const o=this.batchInputs$.getSnapshot();if(!o[t])return;const i=[...o];i[t]={...i[t],[r]:n},this.batchInputs$.setState(i)}setBulkRunTag(t,r,n){const o=[...this.bulkRunTags$.getSnapshot()];if(!o[t])return;const i={};i[r]=n,o[t]=i,this.bulkRunTags$.next(o)}deleteBulkRunTag(t){const r=[...this.bulkRunTags$.getSnapshot()];r.splice(t,1),this.bulkRunTags$.next(r)}addBulkRunTagRow(){const t=this.bulkRunTags$.getSnapshot(),r={"":""};this.bulkRunTags$.next([...t,r])}getNodeRunKey(t,r,n=qi,o=qi){return`${t}#${r}#${n}#${o}`}dispatch(t){var i;let r="";switch(t.type){case rr.Click:this.currentNodeId$.next(void 0);break;case jt.Click:this.currentNodeId$.next(t.node.id,!0);break;case jt.DragEnd:{r=t.node.name??"";break}}const n=this.canvasState$.getSnapshot(),o=this.graphReducer(n,t);if(this.canvasState$.next(o),r){const s=o.data.present.nodes.find(l=>l.name===r),a=this.flowGraphLayout$.getSnapshot(),u={...a,nodeLayouts:{...a==null?void 0:a.nodeLayouts,[r]:{...(i=a==null?void 0:a.nodeLayouts)==null?void 0:i[r],x:s==null?void 0:s.x,y:s==null?void 0:s.y}}};this.flowGraphLayout$.next(u)}}setGraphConfig(t){this.graphConfig=t;const r=this.canvasState$.getSnapshot();this.canvasState$.next({...r,settings:{...r.settings,graphConfig:t}})}toFlowGraph(){const t=this.nodeVariants$.getSnapshot(),r=yG(Ns.of(...t.keys()),t);return{inputs:this.inputSpec$.getSnapshot().toJSON(),outputs:this.flowOutputs$.getSnapshot().toJSON(),nodes:r,tools:void 0}}toFlowGraphSnapshot(t){const r=Kb.mapValues(this.inputSpec$.getSnapshot().toJSON(),u=>{u.default!==void 0&&(u.default=xk(u.default,u.type));const{name:l,id:c,...f}=u;return f}),n=Kb.mapValues(this.flowOutputs$.getSnapshot().toJSON(),u=>{const{name:l,id:c,...f}=u;return f}),i=jHe(t).map(u=>u.nodeName),s=CHe(Ns.of(...Object.keys(t)),t,i),a=zHe(t);return{inputs:r,outputs:n,nodes:s,node_variants:a}}toNodeVariants(){const t=this.nodeVariants$.getSnapshot().toJSON(),r={};return Object.keys(t).forEach(n=>{const o=t[n],i={};Object.keys(o.variants??{}).forEach(s=>{const a=(o.variants??{})[s];i[s]={...a,node:a.node?this.pruneNodeInputs(a.node):void 0}}),r[n]={...o,variants:i}}),r}toFlowRunSettings(){var t,r;return{tuningNodeNames:this.tuningNodeNames$.getSnapshot(),variants:void 0,runtimeName:(t=this.selectedRuntimeName$)==null?void 0:t.getSnapshot(),description:this.bulkRunDescription$.getSnapshot(),tags:Object.assign({},...this.bulkRunTags$.getSnapshot()),...this.bulkRunDataReference$.getSnapshot()!==void 0?{batchDataInput:{dataUri:(r=this.bulkRunDataReference$.getSnapshot())==null?void 0:r.id}}:{batch_inputs:this.batchInputs$.getSnapshot()}}}toJSON(){const t=this.toNodeVariants();return{...this.baseEntity,flow:{flowGraph:this.toFlowGraphSnapshot(t)},flowName:this.name$.getSnapshot(),flowRunSettings:this.toFlowRunSettings()}}toFlowGraphLayout(){const t=this.flowGraphLayout$.getSnapshot()??{},r=Array.from(this.nodeVariants$.getSnapshot().keys()),n={...t.nodeLayouts};return Object.keys(n).forEach(o=>{n[o]={...n[o],index:r.indexOf(o)}}),{...t,nodeLayouts:n,orientation:this.orientation$.getSnapshot()}}toFlowUIHint(){return this.flowUIHint$.getSnapshot()??{nodes:{}}}updateToolCode(t,r){const n=this.codeToolsDictionary$.get(t);n&&this.codeToolsDictionary$.set(t,{...n,code:r})}updateToolStatus(t,r){const n=this.toolsStatus$.get(t);this.toolsStatus$.set(t,{...n,...r})}updateFlowInput(t,r){const n=this.batchInputs$.getSnapshot(),o=n==null?void 0:n[0];let i=r;try{const s=JSON.parse(r);i=JSON.stringify(s)}catch{i=r}this.batchInputs$.next([{...o,[t]:i},...n.slice(1)])}addNewNode(t,r){if(!t.name)return;const n=t,o={defaultVariantId:qi,variants:{[qi]:{node:n}}};r?this.nodeVariants$.insertBefore(r,t.name,o):this.nodeVariants$.set(t.name,o)}patchEditData(t){var r,n,o,i;switch(t.type){case"chatInput":{if(this.flowType$.getSnapshot()!==kd.Chat)return;const s=this.batchInputs$.getSnapshot(),a=((r=this.getChatInputDefinition())==null?void 0:r.name)??Vp;this.batchInputs$.next([{...s[0],[a]:t.value}]);break}case"chatHistory":{if(this.flowType$.getSnapshot()!==kd.Chat)return;const s=this.batchInputs$.getSnapshot(),a=((n=this.getChatHistoryDefinition())==null?void 0:n.name)??ih,u=((o=this.getChatInputDefinition())==null?void 0:o.name)??Vp,l=((i=this.getChatOutputDefinition())==null?void 0:i.name)??Dm;this.batchInputs$.next([{...s[0],[a]:[...s[0][a],{inputs:{[u]:t.value.chatInput},outputs:{[l]:t.value.chatOutput}}].slice(-10)}]);break}case"flowGraph":{try{this.loaded=!1,li.unstable_batchedUpdates(()=>{this.loadFlorGraph(t.value)})}finally{this.loaded=!0}break}default:{const s=t;throw new Error(`Didn't expect to get here: ${s}`)}}}getChatInputDefinition(){return this.inputSpec$.getSnapshot().find(fG)}getChatHistoryDefinition(){const t=this.flowType$.getSnapshot();return this.inputSpec$.getSnapshot().find(r=>dG(t,r))}getChatOutputDefinition(){return this.flowOutputs$.getSnapshot().find(hG)}clearChatMessages(){this.chatMessages$.next([]),this.syncChatMessagesToInputsValues([])}getProviderByConnection(t){var s;if(!t)return;const r=this.connectionList$.getSnapshot(),n=this.promptToolSetting$.getSnapshot(),o=r.find(a=>a.connectionName===t);if(!o)return;const i=(s=n==null?void 0:n.providers)==null?void 0:s.find(a=>{var u;return o.connectionType&&((u=a.connection_type)==null?void 0:u.includes(o.connectionType))});if(i)return i.provider}addFlowInput(t,r){this.inputSpec$.set(t,{...r,name:t,id:(r==null?void 0:r.id)??xle()})}addFlowOutput(t,r){this.flowOutputs$.set(t,{...r,name:t,id:(r==null?void 0:r.id)??PHe()})}loadFlorGraph(t){var i;const r=(t==null?void 0:t.nodes)||[],n=(t==null?void 0:t.outputs)||{},o=(t==null?void 0:t.inputs)||{};this.nodeVariants$.clear(),r.forEach(s=>{s.name&&(this.nodeVariants$.get(s.name)||this.nodeVariants$.set(s.name,{defaultVariantId:qi,variants:{[qi]:{node:s}}}))}),(i=Object.entries((t==null?void 0:t.node_variants)??{}))==null||i.forEach(([s,a])=>{const u={...a.variants};Object.entries(u).forEach(([l,c])=>{c.node&&(c.node.name=s)}),this.nodeVariants$.set(s,{defaultVariantId:a.default_variant_id??qi,variants:u})}),this.flowOutputs$.clear(),Object.keys(n).forEach(s=>{const a=n[s];a&&this.addFlowOutput(s,a)}),this.inputSpec$.clear(),Object.keys(o).forEach(s=>{const a=o[s];a&&this.addFlowInput(s,a)})}loadFlowDto(t){var r,n,o,i,s,a,u,l,c,f,d,h,g,v;if(this.name$.next(t.flowName??""),this.flowType$.next(t.flowType??kd.Default),this.loadFlorGraph((r=t.flow)==null?void 0:r.flowGraph),(n=t.flow)!=null&&n.nodeVariants&&((i=Object.entries(((o=t.flow)==null?void 0:o.nodeVariants)??{}))==null||i.forEach(([y,E])=>{this.nodeVariants$.set(y,{...E,defaultVariantId:E.defaultVariantId??qi})})),(a=(s=t.flow)==null?void 0:s.flowGraphLayout)!=null&&a.nodeLayouts){const y=(u=t.flow)==null?void 0:u.flowGraphLayout;this.flowGraphLayout$.next(y),y.orientation&&this.orientation$.next(y.orientation)}if(this.selectedRuntimeName$.setState(((l=t.flowRunSettings)==null?void 0:l.runtimeName)??""),this.batchInputs$.setState(((c=t.flowRunSettings)==null?void 0:c.batch_inputs)??[{}]),this.tuningNodeNames$.setState(((f=t.flowRunSettings)==null?void 0:f.tuningNodeNames)??[]),this.bulkRunDescription$.next(t.description??""),this.bulkRunTags$.next([]),t.tags){const y=[];Object.keys(t.tags).forEach(E=>{var _;y.push({[E]:((_=t==null?void 0:t.tags)==null?void 0:_[E])??""})}),this.bulkRunTags$.next(y)}this.initNodeParameterTypes((d=t.flow)==null?void 0:d.flowGraph),t.flowType===kd.Chat&&(this.initChatFlow(t),this.initChatMessages(((h=t.flowRunSettings)==null?void 0:h.batch_inputs)??[{}])),this.language$.next((v=(g=t.flow)==null?void 0:g.flowGraph)==null?void 0:v.language)}initNodeParameterTypes(t){if(!t)return;const r=this.nodeVariants$.getSnapshot().toJSON();let n=uc(new Map);Object.keys(r).forEach(o=>{const i=r[o];Object.keys(i.variants??{}).forEach(s=>{var u;const a=(i.variants??{})[s];if(a.node){const l={inputs:{},activate:{is:void 0}},c=this.getToolOfNode(a.node);if((a.node.type??(c==null?void 0:c.type))===Ti.python){const f=Object.keys((c==null?void 0:c.inputs)??{});Object.keys(a.node.inputs??{}).filter(g=>!f.includes(g)).forEach(g=>{var v,y;l.inputs[g]=vG((y=(v=a.node)==null?void 0:v.inputs)==null?void 0:y[g])??Le.string})}l.activate.is=vG((u=a.node.activate)==null?void 0:u.is)??Le.string,n=n.set(`${o}#${s}`,l)}})}),this.nodeParameterTypes$.next(n)}initChatFlow(t){if(t.flowType!==kd.Chat)return;this.inputSpec$.getSnapshot().some(i=>dG(t.flowType,i))||(this.addFlowInput(ih,{name:ih,type:Le.list}),this.batchInputs$.updateState(i=>[{...i[0],[ih]:[]},...i.slice(1)])),this.inputSpec$.getSnapshot().some(i=>fG(i))||this.addFlowInput(Vp,{name:Vp,type:Le.string,is_chat_input:!0}),this.flowOutputs$.getSnapshot().some(i=>hG(i))||this.addFlowOutput(Dm,{name:Dm,type:Le.string,is_chat_output:!0})}initChatMessages(t){var a,u,l;const r=((a=this.getChatHistoryDefinition())==null?void 0:a.name)??ih,n=t[0][r];if(!Array.isArray(n))return;const o=((u=this.getChatInputDefinition())==null?void 0:u.name)??Vp,i=((l=this.getChatOutputDefinition())==null?void 0:l.name)??Dm,s=mHe(o,i,n);this.chatMessages$.next(s),this.syncChatMessagesToInputsValues(s)}syncChatMessagesToInputsValues(t){var n,o,i;if(this.batchInputs$.getSnapshot().length<=1){const s=((n=this.getChatInputDefinition())==null?void 0:n.name)??Vp,a=((o=this.getChatOutputDefinition())==null?void 0:o.name)??Dm,u=((i=this.getChatHistoryDefinition())==null?void 0:i.name)??ih,l=[];for(let c=0;c[{...c[0],[u]:l}])}}getNode(t,r){var n,o,i;return(i=(o=(n=this.nodeVariants$.get(t))==null?void 0:n.variants)==null?void 0:o[r])==null?void 0:i.node}setNode(t,r,n){var i;const o=this.nodeVariants$.get(t);this.nodeVariants$.set(t,{defaultVariantId:(o==null?void 0:o.defaultVariantId)??qi,variants:{...o==null?void 0:o.variants,[r]:{...(i=o==null?void 0:o.variants)==null?void 0:i[r],node:n}}})}getAllLlmParameterKeys(){var t;if(this._allLlmParameterKeys.length===0){const r=this.promptToolSetting$.getSnapshot();if(!r)return[];const n=(t=r.providers)==null?void 0:t.flatMap(i=>{var s;return(s=i.apis)==null?void 0:s.map(a=>a.parameters)}),o=new Set(n==null?void 0:n.flatMap(i=>Object.keys(i??{})));this._allLlmParameterKeys=[...o.values()]}return this._allLlmParameterKeys}pruneNodeInputs(t){var f,d,h,g;const r=t?this.getToolOfNode(t):void 0,n=this.promptToolSetting$.getSnapshot(),o=this.connectionList$.getSnapshot(),i=this.connectionSpecList$.getSnapshot();if(!r||!n)return t;if((t.type??r.type)===Ti.python&&r.enable_kwargs){const v={};return Object.keys(t.inputs??{}).forEach(y=>{var E,_,S,b;if(((E=t.inputs)==null?void 0:E[y])!==void 0){const A=(_=r.inputs)==null?void 0:_[y];v[y]=xk((S=t.inputs)==null?void 0:S[y],(b=A==null?void 0:A.type)==null?void 0:b[0])}}),{...t,inputs:v}}const s=this.getProviderByConnection(t.connection??"");if((t.type??r.type)===Ti.llm&&(!s||!t.api))return t;const a=(t.type??r.type)===Ti.llm,u=a?(g=(h=(d=(f=n==null?void 0:n.providers)==null?void 0:f.find(v=>v.provider===s))==null?void 0:d.apis)==null?void 0:h.find(v=>v.api===t.api))==null?void 0:g.parameters:void 0,l=new Set(mG(r.inputs,t.inputs,o,i).concat(a?this.getAllLlmParameterKeys():[])),c={};return Object.keys(t.inputs??{}).forEach(v=>{var y,E,_,S;if(l.has(v)&&((y=t.inputs)==null?void 0:y[v])!==void 0){const b=((E=r.inputs)==null?void 0:E[v])??(u==null?void 0:u[v]);c[v]=xk((_=t.inputs)==null?void 0:_[v],(S=b==null?void 0:b.type)==null?void 0:S[0])}}),{...t,inputs:c}}getToolOfNode(t){var o,i;const r=this.codeToolsDictionary$.get(((o=t.source)==null?void 0:o.path)??""),n=this.packageToolsDictionary$.get(((i=t.source)==null?void 0:i.tool)??"");return OHe(t,r,n,s=>this.codeToolsDictionary$.get(s))}validateNodeInputs(t){const r=new Map,n=this.getNodesInCycle(t),o=this.connectionList$.getSnapshot(),i=this.connectionSpecList$.getSnapshot(),s=[];return this.inputSpec$.getSnapshot().forEach((u,l)=>{const c=u.default,f=u.type;if(c!==void 0&&c!==""&&!RN(c,f)){const d={section:"inputs",parameterName:l,type:_i.InputInvalidType,message:"Input type is not valid"};s.push(d)}}),s.length>0&&r.set(`${lG}#`,s),Array.from(t.values()).forEach(u=>{const{variants:l={}}=u;Object.keys(l).forEach(c=>{var E,_,S;const f=l[c],{node:d}=f,h=d?this.getToolOfNode(d):void 0,g=mG(h==null?void 0:h.inputs,d==null?void 0:d.inputs,o,i);if(!d||!d.name)return;if(!h){const b=d;r.set(`${d.name}#${c}`,[{type:_i.MissingTool,message:`Can't find tool ${((E=b==null?void 0:b.source)==null?void 0:E.tool)??((_=b==null?void 0:b.source)==null?void 0:_.path)}`}]);return}const v=[],y=this.validateNodeConfig(d,h);if(y&&v.push(y),g.forEach(b=>{const A=this.validateNodeInputRequired(h,d,b);A&&v.push(A)}),d.inputs&&v.push(...Object.keys(d.inputs).map(b=>{if(!g.includes(b)&&!h.enable_kwargs)return;const{isReference:A,error:x}=this.validateNodeInputReference(d,"inputs",b,t,n);if(x)return x;if(!A)return this.validateNodeInputType(h,d,c,b)}).filter(Boolean)),d.activate){const{error:b}=this.validateNodeInputReference(d,"activate","when",t,n);b&&v.push(b);const A=d.activate.is,x=(S=this.nodeParameterTypes$.get(`${d.name}#${c}`))==null?void 0:S.activate.is;if(!RN(A,x)){const T={section:"activate",parameterName:"is",type:_i.InputInvalidType,message:"Input type is not valid"};v.push(T)}}r.set(`${d.name}#${c}`,v)})}),r}getNodesInCycle(t){const r=yG(Ns.of(...t.keys()),t),n=new Map;r.forEach(l=>{var f;const c=(d,h,g)=>{const v=CN(g),[y]=(v==null?void 0:v.split("."))??[];!y||cG(y)||n.set(`${l.name}.${d}.${h}`,y)};Object.keys((l==null?void 0:l.inputs)??{}).forEach(d=>{var g;const h=(g=l.inputs)==null?void 0:g[d];c("inputs",d,h)}),c("activate","when",(f=l.activate)==null?void 0:f.when)});const o=new Map,i=new Map,s=new Map,a=new Map;return r.forEach(l=>{const c=l.name;c&&(o.set(c,0),i.set(c,0),s.set(c,[]),a.set(c,[]))}),r.forEach(l=>{const c=l.name;if(!c)return;const f=(d,h)=>{const g=n.get(`${c}.${d}.${h}`);g&&(o.set(c,(o.get(c)??0)+1),i.set(g,(i.get(g)??0)+1),s.set(g,[...s.get(g)??[],c]),a.set(c,[...a.get(c)??[],g]))};Object.keys((l==null?void 0:l.inputs)??{}).forEach(d=>{f("inputs",d)}),f("activate","when")}),YHe(o,s,i,a)}validateNodeConfig(t,r){var o,i,s,a,u,l,c;const n=this.promptToolSetting$.getSnapshot();if((t.type??(r==null?void 0:r.type))===Ti.llm){if(!t.connection)return{parameterName:"connection",type:_i.NodeConfigInvalid,message:"connection is required"};if(!this.connectionList$.getSnapshot().some(v=>v.connectionName===t.connection))return{parameterName:"connection",type:_i.NodeConfigInvalid,message:"connection is not valid"};if(!t.api)return{parameterName:"api",type:_i.NodeConfigInvalid,message:"api is required"};const f=this.getProviderByConnection(t.connection),d=(a=(s=(i=(o=n==null?void 0:n.providers)==null?void 0:o.find(v=>v.provider===f))==null?void 0:i.apis)==null?void 0:s.find(v=>v.api===t.api))==null?void 0:a.parameters;if((d==null?void 0:d.model)&&!((u=t.inputs)!=null&&u.model))return{parameterName:"model",type:_i.NodeConfigInvalid,message:"model is required"};if((d==null?void 0:d.deployment_name)&&!((l=t.inputs)!=null&&l.deployment_name))return{parameterName:"deployment_name",type:_i.NodeConfigInvalid,message:"deployment_name is required"}}if(r&&((c=r==null?void 0:r.connection_type)!=null&&c.length)&&!t.connection)return{parameterName:"connection",type:_i.NodeConfigInvalid,message:"connection is required"}}validateNodeInputRequired(t,r,n){var i,s,a;if(((s=(i=t.inputs)==null?void 0:i[n])==null?void 0:s.default)!==void 0)return;const o=(a=r.inputs)==null?void 0:a[n];if(o===void 0||o==="")return{section:"inputs",parameterName:n,type:_i.InputEmpty,message:"Input cannot be empty"}}validateNodeInputReference(t,r,n,o,i){var f;const s=(f=t==null?void 0:t[r])==null?void 0:f[n],a=CN(s),[u,l]=(a==null?void 0:a.split("."))??[];return u?cG(u)?this.inputSpec$.get(l)?{isReference:!0,error:void 0}:{isReference:!0,error:{section:r,parameterName:n,type:_i.InputDependencyNotFound,message:`${a} is not a valid flow input`}}:u===t.name?{isReference:!0,error:{section:r,parameterName:n,type:_i.InputSelfReference,message:"Input cannot reference itself"}}:o.get(u)?t.name&&i.has(t.name)&&i.has(u)?{isReference:!0,error:{section:r,parameterName:n,type:_i.CircularDependency,message:"Input cannot reference a node in a cycle"}}:{isReference:!0,error:void 0}:{isReference:!0,error:{section:r,parameterName:n,type:_i.InputDependencyNotFound,message:`${u} is not a valid node name`}}:{isReference:!1,error:void 0}}validateNodeInputType(t,r,n,o){var l,c,f,d,h;const i=(l=r.inputs)==null?void 0:l[o];if(!i)return;const s=(c=t==null?void 0:t.inputs)==null?void 0:c[o],a=((f=s==null?void 0:s.type)==null?void 0:f[0])??((h=(d=this.nodeParameterTypes$.get(`${r.name}#${n}`))==null?void 0:d.inputs)==null?void 0:h[o]),u=(r.type??t.type)===Ti.custom_llm&&o==="tool_choice";if(!(!i||!t||!a||u)&&!RN(i,a))return{section:"inputs",parameterName:o,type:_i.InputInvalidType,message:"Input type is not valid"}}};oJ=yE,Uz[oJ]=!0;let iM=Uz;class set extends iM{constructor(){super(...arguments),this.viewType="default"}fetchConnectionList(){}fetchPromptToolSetting(){}openRunListView(){}deployFlow(){}setSelectedStepId(){}notifyFlowChange(){}notifyLayoutChange(){}notifyUIHintChange(){}}Jo("FlowViewModel",new set);function aet(...e){const t=k.useContext(rM);return k.useMemo(()=>e.map(r=>{try{return t.resolve(r)}catch(n){throw[r,n]}}),[t].concat(e))}var p1e={exports:{}},g1e={};/** + `):"",this.name="UnsubscriptionError",this.errors=t,this}return e.prototype=Object.create(Error.prototype),e}(),MA=cJe,dc=function(){function e(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return e.prototype.unsubscribe=function(){var t;if(!this.closed){var r=this,n=r._parentOrParents,o=r._ctorUnsubscribe,i=r._unsubscribe,s=r._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(n!==null)for(var a=0;a0?this._next(r.shift()):this.active===0&&this.hasCompleted&&this.destination.complete()},t}(qJe);function VJe(e){return e===void 0&&(e=Number.POSITIVE_INFINITY),m1e(c1e,e)}function t3(){for(var e=[],t=0;t1&&typeof e[e.length-1]=="number"&&(r=e.pop())):typeof o=="number"&&(r=e.pop()),n===null&&e.length===1&&e[0]instanceof $s?e[0]:VJe(r)(yj(e,n))}function fJ(e,t){return function(n){return n.lift(new UJe(e,t))}}var UJe=function(){function e(t,r){this.predicate=t,this.thisArg=r}return e.prototype.call=function(t,r){return r.subscribe(new YJe(t,this.predicate,this.thisArg))},e}(),YJe=function(e){jo(t,e);function t(r,n,o){var i=e.call(this,r)||this;return i.predicate=n,i.thisArg=o,i.count=0,i}return t.prototype._next=function(r){var n;try{n=this.predicate.call(this.thisArg,r,this.count++)}catch(o){this.destination.error(o);return}n&&this.destination.next(r)},t}(va);function r3(e,t){return t===void 0&&(t=SJe),function(r){return r.lift(new XJe(e,t))}}var XJe=function(){function e(t,r){this.dueTime=t,this.scheduler=r}return e.prototype.call=function(t,r){return r.subscribe(new QJe(t,this.dueTime,this.scheduler))},e}(),QJe=function(e){jo(t,e);function t(r,n,o){var i=e.call(this,r)||this;return i.dueTime=n,i.scheduler=o,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return t.prototype._next=function(r){this.clearDebounce(),this.lastValue=r,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(ZJe,this.dueTime,this))},t.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},t.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var r=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(r)}},t.prototype.clearDebounce=function(){var r=this.debouncedSubscription;r!==null&&(this.remove(r),r.unsubscribe(),this.debouncedSubscription=null)},t}(va);function ZJe(e){e.debouncedNext()}function ph(){return ph=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const a=n.singletonCache.get(s)||n.requestCache.get(s)||n.transientCache.get(s);a&&(i.proxyTarget.current=a)}),n.postConstruct.forEach(i=>{i.postConstruct()}),this.currentCtx=null,o}child(){const t=new this.constructor;return t.parent=this,t}getParent(){return this.parent}getInjectable(t){var r;const n=this.pool.get(t);if(n)return{value:n,fromParent:!1};const o=(r=this.parent)==null?void 0:r.getInjectable(t);return o?{value:o.value,fromParent:!0}:void 0}_resolve(t,r,n){const o=this.getInjectable(t);if((r==null?void 0:r.optional)===!0&&!o)return;if(!o)throw new Error(`Key: ${Nw(t)} not found`);const{value:{value:i,scope:s,type:a},fromParent:u}=o;let l,c=!1;if(a===Qp.VALUE)return i;{const f=n.requestedKeys.get(t);if(f){if(!f.constructed){if(!r.lazy&&!u){const d=Array.from(n.requestedKeys.entries()).pop(),h=d?`[ ${String(d[0])}: ${d[1].value.name} ]`:"";throw new Error(`Circular reference detected: ${h} -> [ ${Nw(t)}: ${i.name} ]`)}c=!0}}else n.requestedKeys.set(t,{constructed:!1,value:i})}return l=c?()=>this.createLazy(t,a,n):()=>this.create(t,o.value,n),this.run(s,t,l,n)}resolveDeps(t,r){const n=[];for(const o of t){const{key:i,options:s}=ret(o);if(Array.isArray(i)){const a=[];for(const u of i){let l=r.singletonCache.get(u.key);l===void 0&&(l=this._resolve(u.key,ph({},u.options),r)),l===void 0&&s.removeUndefined||a.push(l)}n.push(a.length?a:s.setToUndefinedIfEmpty?void 0:a)}else{let a=r.singletonCache.get(i);a===void 0&&(a=this._resolve(i,ph({},s),r)),n.push(a)}}return n}createLazy(t,r,n){const o=n.delayed.get(t);if(o)return o.proxy;const i=r===Qp.CLASS?{}:function(){},s=function(a,u,l){function c(){if(!a.current)throw new Error(`Lazy target for key:${String(l)} not yet set`);return a.current}return new Proxy(a,{apply:function(f,d){const h=c();return Reflect.apply(h,u?h:void 0,d)},construct:function(f,d){return Reflect.construct(c(),d)},get:function(f,d,h){return d===JJe?f.current:d===eet||Reflect.get(c(),d,h)},set:function(f,d,h){return Reflect.set(d==="current"?f:c(),d,h)},defineProperty:function(f,d,h){return Reflect.defineProperty(c(),d,h)},deleteProperty:function(f,d){return Reflect.deleteProperty(c(),d)},getPrototypeOf:function(f){return Reflect.getPrototypeOf(c())},setPrototypeOf:function(f,d){return Reflect.setPrototypeOf(c(),d)},getOwnPropertyDescriptor:function(f,d){return Reflect.getOwnPropertyDescriptor(c(),d)},has:function(f,d){return Reflect.has(c(),d)},isExtensible:function(f){return Reflect.isExtensible(c())},ownKeys:function(f){return Reflect.ownKeys(c())},preventExtensions:function(f){return Reflect.preventExtensions(c())}})}(i,r===Qp.CLASS,t);return n.delayed.set(t,{proxy:s,proxyTarget:i}),s}create(t,r,n){const{beforeResolve:o,afterResolve:i,value:s,type:a}=r,u=s.inject;let l=[];u&&(l=Array.isArray(u)?this.resolveDeps(u,n):u.fn({container:this,ctx:n.ctx},...this.resolveDeps(u.deps,n)));const c=o?o({container:this,value:s.original,ctx:n.ctx},...l):s(...l);return i&&i({container:this,value:c,ctx:n.ctx}),n.requestedKeys.get(t).constructed=!0,a==="CLASS"&&"postConstruct"in c&&n.postConstruct.push(c),c}run(t,r,n,o){if(t===Y1.SINGLETON||t===Y1.CONTAINER_SINGLETON){var i;if(!this.pool.has(r)&&t===Y1.SINGLETON)return(i=this.parent)==null?void 0:i.resolve(r);const a=o.singletonCache.get(r);if(a!==void 0)return a===Rw?void 0:a;{let u=n();return u===void 0&&(u=Rw),this.singletonCache.set(r,u),u}}if(Y1.REQUEST===t){const a=o.requestCache.get(r);if(a!==void 0)return a===Rw?void 0:a;{let u=n();return u===void 0&&(u=Rw),o.requestCache.set(r,u),u}}const s=n();return o.transientCache.set(r,s),s}};function oet(e){return qT(e,"useClass")}function iet(e){return qT(e,"useFactory")}function set(e){return qT(e,"useValue")}function aet(e){return qT(e,"useToken")}const EE=Symbol("singleton");function uet(e){return typeof e=="function"&&!!e.inject}function n3(e){return e[EE]?"SINGLETON":e.scope?e.scope:"TRANSIENT"}class cet extends net{constructor(){super(...arguments),this.name="DependencyContainer"}bindValue(t,r){return this.has(t,!1)&&this.unbind(t),super.bindValue(t,r)}bindClass(t,r,n){const o=(n==null?void 0:n.scope)??n3(t);return super.bindClass(t,r,{...n,scope:o})}register(t,r){if(set(r))this.bindValue(t,r.useValue);else if(iet(r)){const{useFactory:n}=r;this.bindFactory(t,{value:n,inject:[y1e]},{scope:r.scope})}else if(aet(r))this.bindFactory(t,{value:n=>n,inject:[r.useToken]});else if(oet(r)){const n=r.scope??n3(r.useClass);this.bindClass(t,r.useClass,{scope:n})}}_resolve(t,r,n){if(!this.getInjectable(t)&&uet(t)){const o=n3(t);this.bindClass(t,t,{scope:o})}return super._resolve(t,r,n)}}const fet=()=>{const e=new cet;return e.name="global",e},_j=fet();function Jo(e,t){return _j.bindValue(e,t),e}const y1e=Jo("DependencyContainer",_j),sM=k.createContext(_j),det=({provide:e,name:t})=>({containerRef:n,onInitialize:o,onDispose:i,children:s})=>{const a=k.useContext(sM),u=k.useMemo(()=>{const l=a.child();return t&&(l.name=t),e==null||e.forEach(c=>{l.register(c.token,c)}),l.bindValue(y1e,l),o==null||o(l),l},[o,a]);return k.useImperativeHandle(n,()=>u,[u]),k.useEffect(()=>()=>{i==null||i(u),u.unbindAll(!0)},[u]),N.jsx(sM.Provider,{value:u,children:s})};Jo("isControlFlowEnabledToken",!1);Jo("isDoWhileLoopEnabledToken",!1);Jo("isAnnotationEnabledToken",!1);Jo("isDesignerUnifiedSubmissionFlowEnabledToken",!1);Jo("isPipelineComputeDatastoreEnabledToken",!1);Jo("TransactionalAuthoringEnabled",!1);Jo("ComponentSettingsEnabled",!1);Jo("isPipelineOwnerToken",!1);Jo("isExecutionPhaseEnabledToken",!1);Jo("isPipelineStreamingEnabledToken",!1);Jo("useFocusedNodeId",()=>{});Jo("useIsInSearchResult",()=>!1);Jo("dismissCompareCheckListPanel",()=>null);const het=e=>(t,r)=>e(t,r),pet=()=>YQe(het);let aM=class b1e extends $s{constructor(t,r){super(n=>this.state$.subscribe(n)),this.getSnapshot=()=>this.state$.getValue(),this.state$=new d1e(t),this.subscription=r.subscribe(this.state$)}static fromStates(t,r){const n=r(t.map(i=>i.getSnapshot())),o=OJe(t).pipe(p1e(r));return new b1e(n,o)}destroy(){this.subscription.unsubscribe()}},ut=class extends d1e{constructor(){super(...arguments),this.getState=()=>this.getValue(),this.setState=t=>{this.next(t)},this.updateState=t=>{this.next(t(this.getValue()))},this.getSnapshot=()=>this.getValue()}next(t,r){!r&&this.value===t||super.next(t)}copyFrom(t){this.next(t.getSnapshot())}};const tH=class tH{constructor(){this.nodesIndex$=new ut(Ns()),this.allNodeNames$=aM.fromStates([],()=>Ns()),this.orientation$=new ut(Cle.Vertical),this.language$=new ut(void 0)}tweakFlattenNodeOrder(t,r){const n=this.nodesIndex$.getSnapshot(),o=n.findIndex(s=>s===t),i=o+r;if(o>=0&&i>=0&&i(this.addListener(t,r),r.next(this.get(t)),()=>{this.removeListener(t,r)}))}notify(t){var r;(r=this.listeners.get(t))==null||r.forEach(n=>{n.next(this.get(t))})}next(t){const r=this.getSnapshot();super.next(t);const n=new Set;r.forEach((o,i)=>{t.has(i)||n.add(i)}),t.forEach((o,i)=>{r.has(i)&&Object.is(r.get(i),o)||n.add(i)}),n.forEach(o=>{this.notify(o)})}addListener(t,r){let n=this.listeners.get(t);n||(n=new Set,this.listeners.set(t,n)),n.add(r)}removeListener(t,r){const n=this.listeners.get(t);n&&(n.delete(r),n.size===0&&this.listeners.delete(t))}}class Ow extends _1e{constructor(){super(fc())}set(t,r){return this.updateState(n=>n.set(t,r)),this}update(t,r){return this.updateState(n=>n.update(t,r)),this}delete(t){return this.updateState(r=>r.delete(t)),this}deleteAll(t){return this.updateState(r=>r.deleteAll(t)),this}clear(){return this.next(fc()),this}merge(t){return this.updateState(r=>r.merge(t)),this}}class ii extends _1e{constructor(){super(da())}set(t,r){return this.updateState(n=>n.set(t,r)),this}update(t,r){return this.updateState(n=>n.update(t,r)),this}delete(t){return this.updateState(r=>r.delete(t)),this}deleteAll(t){return this.updateState(r=>r.deleteAll(t)),this}clear(){return this.next(da()),this}merge(t){return this.updateState(r=>r.merge(t)),this}insertBefore(t,r,n){return this.updateState(o=>da().withMutations(i=>{for(const[s,a]of o.entries())t===s&&i.set(r,n),i.set(s,a)})),this.notify(r),this}insertAfter(t,r,n){return this.updateState(o=>da().withMutations(i=>{for(const[s,a]of o.entries())i.set(s,a),t===s&&i.set(r,n)})),this.notify(r),this}sortByValue(t){return this.updateState(r=>r.sort(t)),this}}var dJ;const rH=class rH extends uM{constructor(){super(),this.isWorkspaceReady$=new ut(!1),this.currentNodeId$=new ut(void 0),this.graphConfig=zg.default().build(),this.graphReducer=pet(),this.isReadonly$=new ut(!1),this.name$=new ut(""),this.flowType$=new ut(Ad.Default),this.owner$=new ut(void 0),this.isArchived$=new ut(!1),this.selectedStepId$=new ut(void 0),this.tools$=new ii,this.toolsStatus$=new ii,this.batchInputs$=new ut([]),this.bulkRunDataReference$=new ut(void 0),this.chatMessages$=new ut([]),this.nodeVariants$=new ii,this.tuningNodeNames$=new ut([]),this.inputSpec$=new ii,this.selectedBulkIndex$=new ut(void 0),this.nodeRuns$=new ii,this.flowRuns$=new ut([]),this.rootFlowRunMap$=new Ow,this.flowOutputs$=new ii,this.connections$=new ii,this.promptToolSetting$=new ut(void 0),this.userInfo$=new ut(void 0),this.bulkRunDescription$=new ut(""),this.bulkRunTags$=new ut([]),this.nodeParameterTypes$=new Ow,this.theme$=new ut(void 0),this.selectedRuntimeName$=new ut(void 0),this.connectionList$=new ut([]),this.connectionSpecList$=new ut([]),this.connectionDeployments$=new ii,this.connectionDeploymentsLoading$=new ii,this.runStatus$=new ut(void 0),this.flowRunType$=new ut(void 0),this.packageToolsDictionary$=new Ow,this.codeToolsDictionary$=new Ow,this.isToolsJsonReady$=new ut(!1),this.flowGraphLayout$=new ut(void 0),this.flowUIHint$=new ut(void 0),this.isInitialized$=new ut(!1),this.flowFeatures$=new ut(new Set),this.loaded=!1,this._allLlmParameterKeys=[],new Set(_Xe).add(at.AutoFit);const r=new Set;r.add(Tle.OpenCodeFileInNode),this.flowFeatures$.next(r),this.canvasState$=new ut(rde({settings:{graphConfig:this.graphConfig,canvasBoundaryPadding:{top:800,bottom:800}},data:Dh.empty()})),this.allNodeNames$=aM.fromStates([this.nodeVariants$],([n])=>Ns(Array.from(n.keys()).filter(o=>!!o&&o!==mG&&o!==yHe))),t3(this.flowOutputs$,this.batchInputs$,this.inputSpec$,this.selectedRuntimeName$,this.bulkRunTags$,this.nodeVariants$,this.codeToolsDictionary$,this.packageToolsDictionary$).pipe(fJ(()=>this.loaded),fJ(()=>this.isInitialized$.getSnapshot()),r3(100)).subscribe(()=>{this.notifyFlowChange()}),t3(this.flowGraphLayout$,this.orientation$).pipe(r3(100)).subscribe(()=>{this.notifyLayoutChange()}),t3(this.flowUIHint$).pipe(r3(100)).subscribe(()=>{this.notifyUIHintChange()}),this.invalidStepInputs$=aM.fromStates([this.nodeVariants$,this.codeToolsDictionary$,this.packageToolsDictionary$,this.connectionList$,this.inputSpec$,this.nodeParameterTypes$],([n,o,i,s,a,u])=>this.validateNodeInputs(n))}attemptToRenameStep(t,r){if(!WHe(r))return`step name ${r} is not valid`;if(this.nodeVariants$.get(r))return`step with name ${r} already exists`;if(!this.nodeVariants$.get(t))return`step ${t} not found`;const o=(s,a,u)=>{const l={...s};return Object.keys(l).forEach(c=>{const f=l[c],d=FC(f),[h]=(d==null?void 0:d.split("."))??[];h===a&&(l[c]=f.replace(`${a}`,`${u}`))}),l},i=(s,a,u)=>{if(!s)return;const l={};return Object.entries(s).forEach(([c,f])=>{var d,h,g;l[c]={...f,node:{...f.node,name:((d=f.node)==null?void 0:d.name)===a?u:(h=f.node)==null?void 0:h.name,inputs:o(((g=f.node)==null?void 0:g.inputs)??{},a,u)}}}),l};li.unstable_batchedUpdates(()=>{this.nodeVariants$.updateState(s=>s.mapEntries(([a,u])=>{const l={...u,variants:i(u.variants,t,r)};return[a===t?r:a,l]})),this.flowGraphLayout$.updateState(s=>({...s,nodeLayouts:DC((s==null?void 0:s.nodeLayouts)??{},t,r)})),this.flowUIHint$.updateState(s=>({...s,nodes:DC((s==null?void 0:s.nodes)??{},t,r)})),this.currentNodeId$.getSnapshot()===t&&this.currentNodeId$.next(r),this.selectedStepId$.getSnapshot()===t&&this.selectedStepId$.next(r),this.nodeRuns$.getSnapshot().forEach((s,a)=>{if(s.node===t){const[,u,l,c]=a.split("#"),f=parseInt(u,10);this.nodeRuns$.set(this.getNodeRunKey(r,isNaN(f)?0:f,l,c),{...s,node:r}),this.nodeRuns$.delete(a)}})})}acceptFlowEdit(t,r){t!==this.viewType&&this.loadFlow(r)}loadFlow(t){this.loaded=!1;try{li.unstable_batchedUpdates(()=>{this.baseEntity=t,this.owner$.next(t.owner),this.isArchived$.next(t.isArchived??!1),this.loadFlowDto(t),t.flowRunResult&&this.loadStatus(t.flowRunResult)}),this.loaded=!0}catch(r){throw this.loaded=!0,r}}loadCodeTool(t,r){this.codeToolsDictionary$.set(t,r)}loadPackageTool(t,r){this.packageToolsDictionary$.set(t,r)}toBatchRequestData(){return{flow:{flowGraph:this.toFlowGraph(),nodeVariants:this.toNodeVariants(),flowGraphLayout:this.flowGraphLayout$.getSnapshot()},flowSubmitRunSettings:{...this.toFlowRunSettings()},flowRunDisplayName:this.name$.getSnapshot()}}toAddOnEvaluationRequestData(){return{flowSubmitRunSettings:{...this.toFlowRunSettings()}}}loadStatus(t){var i;this.clearStatus();let r=0;const n=[],o=new Map;if((i=t.flow_runs)!=null&&i.length){for(const s of t.flow_runs)s.index===null?o.set(s.run_id,s):(r=s.index,n.push(s));n.sort((s,a)=>{var u;return s.root_run_id===a.root_run_id?(s.index??0)-(a.index??0):s.variant_id&&a.variant_id?s.variant_id.localeCompare(a.variant_id):((u=s.root_run_id)==null?void 0:u.localeCompare((a==null?void 0:a.root_run_id)??""))??0}),this.flowRuns$.next(n),this.rootFlowRunMap$.next(fc(o))}t.flowRunType&&this.flowRunType$.next(t.flowRunType),t.runStatus&&this.runStatus$.next(t.runStatus),this.loadNodesStatus(t.node_runs||[]),this.selectedBulkIndex$.next(r)}loadNodesStatus(t){const r=this.tuningNodeNames$.getSnapshot()[0];t.forEach(n=>{const o=n.node===r,i=this.getDefaultVariantId(n.node),s=n.variant_id||i,a=o?s:i,u=this.getNodeRunKey(n.node,n.index??0,a,s);this.nodeRuns$.set(u,n)})}loadSingleNodeRunStatus(t,r,n){this.resetNodesStatus(t,r),n.forEach(o=>{const i=this.getDefaultVariantId(o.node),s=o.variant_id||i,a=o.variant_id||i,u=this.getNodeRunKey(o.node,o.index??0,a,s);this.nodeRuns$.set(u,o)})}resetNodesStatus(t,r){this.nodeRuns$.updateState(n=>n.filter(o=>{if(o.node!==t)return!0;const i=this.getDefaultVariantId(o.node);return(o.variant_id||i)!==r}))}clearStatus(){this.selectedBulkIndex$.next(void 0),this.nodeRuns$.clear(),this.flowRuns$.next([]),this.rootFlowRunMap$.clear()}getDefaultVariantId(t){var r;return((r=this.nodeVariants$.get(t))==null?void 0:r.defaultVariantId)||qi}setStepInput(t,r,n,o){const i=this.getNode(t,o);if(!(i!=null&&i.name))return;const s={...i,inputs:{...i.inputs,[r]:n}};this.setNode(t,o,s)}removeStepInputs(t,r,n){const o=this.getNode(t,n);if(!(o!=null&&o.name))return;const i={...o.inputs};r.forEach(a=>{delete i[a]});const s={...o,inputs:i};this.setNode(t,n,s)}renameStepInput(t,r,n){const o=this.getNode(t,qi);if(!(o!=null&&o.name))return;const i={...o,inputs:DC(o.inputs??{},r,n)};this.setNode(t,qi,i)}setStepActivate(t,r,n){const o=this.getNode(t,r);if(!(o!=null&&o.name))return;const i={...o,activate:n};this.setNode(t,r,i)}setStepKeyValue(t,r,n,o){const i=this.getNode(t,o);if(!(i!=null&&i.name))return;const s={...i,[r]:n};this.setNode(t,o,s)}setStepSourcePath(t,r,n){const o=this.getNode(t,n);if(!(o!=null&&o.name))return;const i={...o,source:{...o.source,path:r}};this.setNode(t,n,i)}setBatchInput(t,r,n){const o=this.batchInputs$.getSnapshot();if(!o[t])return;const i=[...o];i[t]={...i[t],[r]:n},this.batchInputs$.setState(i)}setBulkRunTag(t,r,n){const o=[...this.bulkRunTags$.getSnapshot()];if(!o[t])return;const i={};i[r]=n,o[t]=i,this.bulkRunTags$.next(o)}deleteBulkRunTag(t){const r=[...this.bulkRunTags$.getSnapshot()];r.splice(t,1),this.bulkRunTags$.next(r)}addBulkRunTagRow(){const t=this.bulkRunTags$.getSnapshot(),r={"":""};this.bulkRunTags$.next([...t,r])}getNodeRunKey(t,r,n=qi,o=qi){return`${t}#${r}#${n}#${o}`}dispatch(t){var i;let r="";switch(t.type){case nr.Click:this.currentNodeId$.next(void 0);break;case zt.Click:this.currentNodeId$.next(t.node.id,!0);break;case zt.DragEnd:{r=t.node.name??"";break}}const n=this.canvasState$.getSnapshot(),o=this.graphReducer(n,t);if(this.canvasState$.next(o),r){const s=o.data.present.nodes.find(l=>l.name===r),a=this.flowGraphLayout$.getSnapshot(),u={...a,nodeLayouts:{...a==null?void 0:a.nodeLayouts,[r]:{...(i=a==null?void 0:a.nodeLayouts)==null?void 0:i[r],x:s==null?void 0:s.x,y:s==null?void 0:s.y}}};this.flowGraphLayout$.next(u)}}setGraphConfig(t){this.graphConfig=t;const r=this.canvasState$.getSnapshot();this.canvasState$.next({...r,settings:{...r.settings,graphConfig:t}})}toFlowGraph(){const t=this.nodeVariants$.getSnapshot(),r=xG(Ns.of(...t.keys()),t);return{inputs:this.inputSpec$.getSnapshot().toJSON(),outputs:this.flowOutputs$.getSnapshot().toJSON(),nodes:r,tools:void 0}}toFlowGraphSnapshot(t){const r=Ub.mapValues(this.inputSpec$.getSnapshot().toJSON(),u=>{u.default!==void 0&&(u.default=RA(u.default,u.type));const{name:l,id:c,...f}=u;return f}),n=Ub.mapValues(this.flowOutputs$.getSnapshot().toJSON(),u=>{const{name:l,id:c,...f}=u;return f}),i=KHe(t).map(u=>u.nodeName),s=LHe(Ns.of(...Object.keys(t)),t,i),a=GHe(t);return{inputs:r,outputs:n,nodes:s,node_variants:a}}toNodeVariants(){const t=this.nodeVariants$.getSnapshot().toJSON(),r={};return Object.keys(t).forEach(n=>{const o=t[n],i={};Object.keys(o.variants??{}).forEach(s=>{const a=(o.variants??{})[s];i[s]={...a,node:a.node?this.pruneNodeInputs(a.node):void 0}}),r[n]={...o,variants:i}}),r}toFlowRunSettings(){var t,r;return{tuningNodeNames:this.tuningNodeNames$.getSnapshot(),variants:void 0,runtimeName:(t=this.selectedRuntimeName$)==null?void 0:t.getSnapshot(),description:this.bulkRunDescription$.getSnapshot(),tags:Object.assign({},...this.bulkRunTags$.getSnapshot()),...this.bulkRunDataReference$.getSnapshot()!==void 0?{batchDataInput:{dataUri:(r=this.bulkRunDataReference$.getSnapshot())==null?void 0:r.id}}:{batch_inputs:this.batchInputs$.getSnapshot()}}}toJSON(){const t=this.toNodeVariants();return{...this.baseEntity,flow:{flowGraph:this.toFlowGraphSnapshot(t)},flowName:this.name$.getSnapshot(),flowRunSettings:this.toFlowRunSettings()}}toFlowGraphLayout(){const t=this.flowGraphLayout$.getSnapshot()??{},r=Array.from(this.nodeVariants$.getSnapshot().keys()),n={...t.nodeLayouts};return Object.keys(n).forEach(o=>{n[o]={...n[o],index:r.indexOf(o)}}),{...t,nodeLayouts:n,orientation:this.orientation$.getSnapshot()}}toFlowUIHint(){return this.flowUIHint$.getSnapshot()??{nodes:{}}}updateToolCode(t,r){const n=this.codeToolsDictionary$.get(t);n&&this.codeToolsDictionary$.set(t,{...n,code:r})}updateToolStatus(t,r){const n=this.toolsStatus$.get(t);this.toolsStatus$.set(t,{...n,...r})}updateFlowInput(t,r){const n=this.batchInputs$.getSnapshot(),o=n==null?void 0:n[0];let i=r;try{const s=JSON.parse(r);i=JSON.stringify(s)}catch{i=r}this.batchInputs$.next([{...o,[t]:i},...n.slice(1)])}addNewNode(t,r){if(!t.name)return;const n=t,o={defaultVariantId:qi,variants:{[qi]:{node:n}}};r?this.nodeVariants$.insertBefore(r,t.name,o):this.nodeVariants$.set(t.name,o)}patchEditData(t){var r,n,o,i;switch(t.type){case"chatInput":{if(this.flowType$.getSnapshot()!==Ad.Chat)return;const s=this.batchInputs$.getSnapshot(),a=((r=this.getChatInputDefinition())==null?void 0:r.name)??Up;this.batchInputs$.next([{...s[0],[a]:t.value}]);break}case"chatHistory":{if(this.flowType$.getSnapshot()!==Ad.Chat)return;const s=this.batchInputs$.getSnapshot(),a=((n=this.getChatHistoryDefinition())==null?void 0:n.name)??oh,u=((o=this.getChatInputDefinition())==null?void 0:o.name)??Up,l=((i=this.getChatOutputDefinition())==null?void 0:i.name)??Fm;this.batchInputs$.next([{...s[0],[a]:[...s[0][a],{inputs:{[u]:t.value.chatInput},outputs:{[l]:t.value.chatOutput}}].slice(-10)}]);break}case"flowGraph":{try{this.loaded=!1,li.unstable_batchedUpdates(()=>{this.loadFlorGraph(t.value)})}finally{this.loaded=!0}break}default:{const s=t;throw new Error(`Didn't expect to get here: ${s}`)}}}getChatInputDefinition(){return this.inputSpec$.getSnapshot().find(bG)}getChatHistoryDefinition(){const t=this.flowType$.getSnapshot();return this.inputSpec$.getSnapshot().find(r=>_G(t,r))}getChatOutputDefinition(){return this.flowOutputs$.getSnapshot().find(EG)}clearChatMessages(){this.chatMessages$.next([]),this.syncChatMessagesToInputsValues([])}getProviderByConnection(t){var s;if(!t)return;const r=this.connectionList$.getSnapshot(),n=this.promptToolSetting$.getSnapshot(),o=r.find(a=>a.connectionName===t);if(!o)return;const i=(s=n==null?void 0:n.providers)==null?void 0:s.find(a=>{var u;return o.connectionType&&((u=a.connection_type)==null?void 0:u.includes(o.connectionType))});if(i)return i.provider}addFlowInput(t,r){this.inputSpec$.set(t,{...r,name:t,id:(r==null?void 0:r.id)??Fle()})}addFlowOutput(t,r){this.flowOutputs$.set(t,{...r,name:t,id:(r==null?void 0:r.id)??XHe()})}loadFlorGraph(t){var i;const r=(t==null?void 0:t.nodes)||[],n=(t==null?void 0:t.outputs)||{},o=(t==null?void 0:t.inputs)||{};this.nodeVariants$.clear(),r.forEach(s=>{s.name&&(this.nodeVariants$.get(s.name)||this.nodeVariants$.set(s.name,{defaultVariantId:qi,variants:{[qi]:{node:s}}}))}),(i=Object.entries((t==null?void 0:t.node_variants)??{}))==null||i.forEach(([s,a])=>{const u={...a.variants};Object.entries(u).forEach(([l,c])=>{c.node&&(c.node.name=s)}),this.nodeVariants$.set(s,{defaultVariantId:a.default_variant_id??qi,variants:u})}),this.flowOutputs$.clear(),Object.keys(n).forEach(s=>{const a=n[s];a&&this.addFlowOutput(s,a)}),this.inputSpec$.clear(),Object.keys(o).forEach(s=>{const a=o[s];a&&this.addFlowInput(s,a)})}loadFlowDto(t){var r,n,o,i,s,a,u,l,c,f,d,h,g,v;if(this.name$.next(t.flowName??""),this.flowType$.next(t.flowType??Ad.Default),this.loadFlorGraph((r=t.flow)==null?void 0:r.flowGraph),(n=t.flow)!=null&&n.nodeVariants&&((i=Object.entries(((o=t.flow)==null?void 0:o.nodeVariants)??{}))==null||i.forEach(([y,E])=>{this.nodeVariants$.set(y,{...E,defaultVariantId:E.defaultVariantId??qi})})),(a=(s=t.flow)==null?void 0:s.flowGraphLayout)!=null&&a.nodeLayouts){const y=(u=t.flow)==null?void 0:u.flowGraphLayout;this.flowGraphLayout$.next(y),y.orientation&&this.orientation$.next(y.orientation)}if(this.selectedRuntimeName$.setState(((l=t.flowRunSettings)==null?void 0:l.runtimeName)??""),this.batchInputs$.setState(((c=t.flowRunSettings)==null?void 0:c.batch_inputs)??[{}]),this.tuningNodeNames$.setState(((f=t.flowRunSettings)==null?void 0:f.tuningNodeNames)??[]),this.bulkRunDescription$.next(t.description??""),this.bulkRunTags$.next([]),t.tags){const y=[];Object.keys(t.tags).forEach(E=>{var _;y.push({[E]:((_=t==null?void 0:t.tags)==null?void 0:_[E])??""})}),this.bulkRunTags$.next(y)}this.initNodeParameterTypes((d=t.flow)==null?void 0:d.flowGraph),t.flowType===Ad.Chat&&(this.initChatFlow(t),this.initChatMessages(((h=t.flowRunSettings)==null?void 0:h.batch_inputs)??[{}])),this.language$.next((v=(g=t.flow)==null?void 0:g.flowGraph)==null?void 0:v.language)}initNodeParameterTypes(t){if(!t)return;const r=this.nodeVariants$.getSnapshot().toJSON();let n=fc(new Map);Object.keys(r).forEach(o=>{const i=r[o];Object.keys(i.variants??{}).forEach(s=>{var u;const a=(i.variants??{})[s];if(a.node){const l={inputs:{},activate:{is:void 0}},c=this.getToolOfNode(a.node);if((a.node.type??(c==null?void 0:c.type))===Ti.python){const f=Object.keys((c==null?void 0:c.inputs)??{});Object.keys(a.node.inputs??{}).filter(g=>!f.includes(g)).forEach(g=>{var v,y;l.inputs[g]=AG((y=(v=a.node)==null?void 0:v.inputs)==null?void 0:y[g])??je.string})}l.activate.is=AG((u=a.node.activate)==null?void 0:u.is)??je.string,n=n.set(`${o}#${s}`,l)}})}),this.nodeParameterTypes$.next(n)}initChatFlow(t){if(t.flowType!==Ad.Chat)return;this.inputSpec$.getSnapshot().some(i=>_G(t.flowType,i))||(this.addFlowInput(oh,{name:oh,type:je.list}),this.batchInputs$.updateState(i=>[{...i[0],[oh]:[]},...i.slice(1)])),this.inputSpec$.getSnapshot().some(i=>bG(i))||this.addFlowInput(Up,{name:Up,type:je.string,is_chat_input:!0}),this.flowOutputs$.getSnapshot().some(i=>EG(i))||this.addFlowOutput(Fm,{name:Fm,type:je.string,is_chat_output:!0})}initChatMessages(t){var a,u,l;const r=((a=this.getChatHistoryDefinition())==null?void 0:a.name)??oh,n=t[0][r];if(!Array.isArray(n))return;const o=((u=this.getChatInputDefinition())==null?void 0:u.name)??Up,i=((l=this.getChatOutputDefinition())==null?void 0:l.name)??Fm,s=AHe(o,i,n);this.chatMessages$.next(s),this.syncChatMessagesToInputsValues(s)}syncChatMessagesToInputsValues(t){var n,o,i;if(this.batchInputs$.getSnapshot().length<=1){const s=((n=this.getChatInputDefinition())==null?void 0:n.name)??Up,a=((o=this.getChatOutputDefinition())==null?void 0:o.name)??Fm,u=((i=this.getChatHistoryDefinition())==null?void 0:i.name)??oh,l=[];for(let c=0;c[{...c[0],[u]:l}])}}getNode(t,r){var n,o,i;return(i=(o=(n=this.nodeVariants$.get(t))==null?void 0:n.variants)==null?void 0:o[r])==null?void 0:i.node}setNode(t,r,n){var i;const o=this.nodeVariants$.get(t);this.nodeVariants$.set(t,{defaultVariantId:(o==null?void 0:o.defaultVariantId)??qi,variants:{...o==null?void 0:o.variants,[r]:{...(i=o==null?void 0:o.variants)==null?void 0:i[r],node:n}}})}getAllLlmParameterKeys(){var t;if(this._allLlmParameterKeys.length===0){const r=this.promptToolSetting$.getSnapshot();if(!r)return[];const n=(t=r.providers)==null?void 0:t.flatMap(i=>{var s;return(s=i.apis)==null?void 0:s.map(a=>a.parameters)}),o=new Set(n==null?void 0:n.flatMap(i=>Object.keys(i??{})));this._allLlmParameterKeys=[...o.values()]}return this._allLlmParameterKeys}pruneNodeInputs(t){var f,d,h,g;const r=t?this.getToolOfNode(t):void 0,n=this.promptToolSetting$.getSnapshot(),o=this.connectionList$.getSnapshot(),i=this.connectionSpecList$.getSnapshot();if(!r||!n)return t;if((t.type??r.type)===Ti.python&&r.enable_kwargs){const v={};return Object.keys(t.inputs??{}).forEach(y=>{var E,_,S,b;if(((E=t.inputs)==null?void 0:E[y])!==void 0){const A=(_=r.inputs)==null?void 0:_[y];v[y]=RA((S=t.inputs)==null?void 0:S[y],(b=A==null?void 0:A.type)==null?void 0:b[0])}}),{...t,inputs:v}}const s=this.getProviderByConnection(t.connection??"");if((t.type??r.type)===Ti.llm&&(!s||!t.api))return t;const a=(t.type??r.type)===Ti.llm,u=a?(g=(h=(d=(f=n==null?void 0:n.providers)==null?void 0:f.find(v=>v.provider===s))==null?void 0:d.apis)==null?void 0:h.find(v=>v.api===t.api))==null?void 0:g.parameters:void 0,l=new Set(kG(r.inputs,t.inputs,o,i).concat(a?this.getAllLlmParameterKeys():[])),c={};return Object.keys(t.inputs??{}).forEach(v=>{var y,E,_,S;if(l.has(v)&&((y=t.inputs)==null?void 0:y[v])!==void 0){const b=((E=r.inputs)==null?void 0:E[v])??(u==null?void 0:u[v]);c[v]=RA((_=t.inputs)==null?void 0:_[v],(S=b==null?void 0:b.type)==null?void 0:S[0])}}),{...t,inputs:c}}getToolOfNode(t){var o,i;const r=this.codeToolsDictionary$.get(((o=t.source)==null?void 0:o.path)??""),n=this.packageToolsDictionary$.get(((i=t.source)==null?void 0:i.tool)??"");return zHe(t,r,n,s=>this.codeToolsDictionary$.get(s))}validateNodeInputs(t){const r=new Map,n=this.getNodesInCycle(t),o=this.connectionList$.getSnapshot(),i=this.connectionSpecList$.getSnapshot(),s=[];return this.inputSpec$.getSnapshot().forEach((u,l)=>{const c=u.default,f=u.type;if(c!==void 0&&c!==""&&!BC(c,f)){const d={section:"inputs",parameterName:l,type:Ei.InputInvalidType,message:"Input type is not valid"};s.push(d)}}),s.length>0&&r.set(`${mG}#`,s),Array.from(t.values()).forEach(u=>{const{variants:l={}}=u;Object.keys(l).forEach(c=>{var E,_,S;const f=l[c],{node:d}=f,h=d?this.getToolOfNode(d):void 0,g=kG(h==null?void 0:h.inputs,d==null?void 0:d.inputs,o,i);if(!d||!d.name)return;if(!h){const b=d;r.set(`${d.name}#${c}`,[{type:Ei.MissingTool,message:`Can't find tool ${((E=b==null?void 0:b.source)==null?void 0:E.tool)??((_=b==null?void 0:b.source)==null?void 0:_.path)}`}]);return}const v=[],y=this.validateNodeConfig(d,h);if(y&&v.push(y),g.forEach(b=>{const A=this.validateNodeInputRequired(h,d,b);A&&v.push(A)}),d.inputs&&v.push(...Object.keys(d.inputs).map(b=>{if(!g.includes(b)&&!h.enable_kwargs)return;const{isReference:A,error:T}=this.validateNodeInputReference(d,"inputs",b,t,n);if(T)return T;if(!A)return this.validateNodeInputType(h,d,c,b)}).filter(Boolean)),d.activate){const{error:b}=this.validateNodeInputReference(d,"activate","when",t,n);b&&v.push(b);const A=d.activate.is,T=(S=this.nodeParameterTypes$.get(`${d.name}#${c}`))==null?void 0:S.activate.is;if(!BC(A,T)){const x={section:"activate",parameterName:"is",type:Ei.InputInvalidType,message:"Input type is not valid"};v.push(x)}}r.set(`${d.name}#${c}`,v)})}),r}getNodesInCycle(t){const r=xG(Ns.of(...t.keys()),t),n=new Map;r.forEach(l=>{var f;const c=(d,h,g)=>{const v=FC(g),[y]=(v==null?void 0:v.split("."))??[];!y||yG(y)||n.set(`${l.name}.${d}.${h}`,y)};Object.keys((l==null?void 0:l.inputs)??{}).forEach(d=>{var g;const h=(g=l.inputs)==null?void 0:g[d];c("inputs",d,h)}),c("activate","when",(f=l.activate)==null?void 0:f.when)});const o=new Map,i=new Map,s=new Map,a=new Map;return r.forEach(l=>{const c=l.name;c&&(o.set(c,0),i.set(c,0),s.set(c,[]),a.set(c,[]))}),r.forEach(l=>{const c=l.name;if(!c)return;const f=(d,h)=>{const g=n.get(`${c}.${d}.${h}`);g&&(o.set(c,(o.get(c)??0)+1),i.set(g,(i.get(g)??0)+1),s.set(g,[...s.get(g)??[],c]),a.set(c,[...a.get(c)??[],g]))};Object.keys((l==null?void 0:l.inputs)??{}).forEach(d=>{f("inputs",d)}),f("activate","when")}),n$e(o,s,i,a)}validateNodeConfig(t,r){var o,i,s,a,u,l,c;const n=this.promptToolSetting$.getSnapshot();if((t.type??(r==null?void 0:r.type))===Ti.llm){if(!t.connection)return{parameterName:"connection",type:Ei.NodeConfigInvalid,message:"connection is required"};if(!this.connectionList$.getSnapshot().some(v=>v.connectionName===t.connection))return{parameterName:"connection",type:Ei.NodeConfigInvalid,message:"connection is not valid"};if(!t.api)return{parameterName:"api",type:Ei.NodeConfigInvalid,message:"api is required"};const f=this.getProviderByConnection(t.connection),d=(a=(s=(i=(o=n==null?void 0:n.providers)==null?void 0:o.find(v=>v.provider===f))==null?void 0:i.apis)==null?void 0:s.find(v=>v.api===t.api))==null?void 0:a.parameters;if((d==null?void 0:d.model)&&!((u=t.inputs)!=null&&u.model))return{parameterName:"model",type:Ei.NodeConfigInvalid,message:"model is required"};if((d==null?void 0:d.deployment_name)&&!((l=t.inputs)!=null&&l.deployment_name))return{parameterName:"deployment_name",type:Ei.NodeConfigInvalid,message:"deployment_name is required"}}if(r&&((c=r==null?void 0:r.connection_type)!=null&&c.length)&&!t.connection)return{parameterName:"connection",type:Ei.NodeConfigInvalid,message:"connection is required"}}validateNodeInputRequired(t,r,n){var i,s,a;if(((s=(i=t.inputs)==null?void 0:i[n])==null?void 0:s.default)!==void 0)return;const o=(a=r.inputs)==null?void 0:a[n];if(o===void 0||o==="")return{section:"inputs",parameterName:n,type:Ei.InputEmpty,message:"Input cannot be empty"}}validateNodeInputReference(t,r,n,o,i){var f;const s=(f=t==null?void 0:t[r])==null?void 0:f[n],a=FC(s),[u,l]=(a==null?void 0:a.split("."))??[];return u?yG(u)?this.inputSpec$.get(l)?{isReference:!0,error:void 0}:{isReference:!0,error:{section:r,parameterName:n,type:Ei.InputDependencyNotFound,message:`${a} is not a valid flow input`}}:u===t.name?{isReference:!0,error:{section:r,parameterName:n,type:Ei.InputSelfReference,message:"Input cannot reference itself"}}:o.get(u)?t.name&&i.has(t.name)&&i.has(u)?{isReference:!0,error:{section:r,parameterName:n,type:Ei.CircularDependency,message:"Input cannot reference a node in a cycle"}}:{isReference:!0,error:void 0}:{isReference:!0,error:{section:r,parameterName:n,type:Ei.InputDependencyNotFound,message:`${u} is not a valid node name`}}:{isReference:!1,error:void 0}}validateNodeInputType(t,r,n,o){var l,c,f,d,h;const i=(l=r.inputs)==null?void 0:l[o];if(!i)return;const s=(c=t==null?void 0:t.inputs)==null?void 0:c[o],a=((f=s==null?void 0:s.type)==null?void 0:f[0])??((h=(d=this.nodeParameterTypes$.get(`${r.name}#${n}`))==null?void 0:d.inputs)==null?void 0:h[o]),u=(r.type??t.type)===Ti.custom_llm&&o==="tool_choice";if(!(!i||!t||!a||u)&&!BC(i,a))return{section:"inputs",parameterName:o,type:Ei.InputInvalidType,message:"Input type is not valid"}}};dJ=EE,rH[dJ]=!0;let lM=rH;class get extends lM{constructor(){super(...arguments),this.viewType="default"}fetchConnectionList(){}fetchPromptToolSetting(){}openRunListView(){}deployFlow(){}setSelectedStepId(){}notifyFlowChange(){}notifyLayoutChange(){}notifyUIHintChange(){}}Jo("FlowViewModel",new get);function vet(...e){const t=k.useContext(sM);return k.useMemo(()=>e.map(r=>{try{return t.resolve(r)}catch(n){throw[r,n]}}),[t].concat(e))}var E1e={exports:{}},S1e={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -421,21 +421,21 @@ PERFORMANCE OF THIS SOFTWARE. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Vg=k;function uet(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var cet=typeof Object.is=="function"?Object.is:uet,fet=Vg.useState,det=Vg.useEffect,het=Vg.useLayoutEffect,pet=Vg.useDebugValue;function get(e,t){var r=t(),n=fet({inst:{value:r,getSnapshot:t}}),o=n[0].inst,i=n[1];return het(function(){o.value=r,o.getSnapshot=t,e3(o)&&i({inst:o})},[e,r,t]),det(function(){return e3(o)&&i({inst:o}),e(function(){e3(o)&&i({inst:o})})},[e]),pet(r),r}function e3(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!cet(e,r)}catch{return!0}}function vet(e,t){return t()}var met=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?vet:get;g1e.useSyncExternalStore=Vg.useSyncExternalStore!==void 0?Vg.useSyncExternalStore:met;p1e.exports=g1e;var v1e=p1e.exports;const m1e=e=>k.useCallback(t=>{const r=e.subscribe(t);return()=>{r.unsubscribe()}},[e]);function Fi(e){const t=m1e(e),{getSnapshot:r}=e;return v1e.useSyncExternalStore(t,r)}function vj(e){return k.useCallback(t=>{typeof t!="function"?e.setState(t):e.setState(t(e.getSnapshot()))},[e])}function wc(e){const t=Fi(e),r=vj(e);return[t,r]}const yet=dJe(void 0);function y1e(e,t){const r=k.useMemo(()=>t&&e?e==null?void 0:e.observeKey(t):yet,[t,e]),n=m1e(r),o=k.useCallback(()=>t?e==null?void 0:e.get(t):void 0,[t,e]);return v1e.useSyncExternalStore(n,o)}var iJ;const Yz=class Yz{constructor(t,r){this.isChatBoxBottomTipVisible$=new at(t.isChatBoxBottomTipVisible),this.simpleMode$=new at(t.simpleMode),this.freezeLayout$=new at(t.freezeLayout),this.viewMyOnlyFlow$=new at(t.viewMyOnlyFlow),this.viewOnlyMyRuns$=new at(t.viewOnlyMyRuns),this.viewArchived$=new at(t.viewArchived),this.wrapTextOn$=new at(t.wrapTextOn),this.diffModeOn$=new at(t.diffModeOn),this.isRightTopPaneCollapsed$=new at(t.isRightTopPaneCollapsed),this.isRightBottomPaneCollapsed$=new at(t.isRightBottomPaneCollapsed),this.leftPaneWidth$=new at(t.leftPaneWidth),this.rightTopPaneHeight$=new at(t.rightTopPaneHeight);const n=(o,i)=>{i.subscribe(s=>{r({...this.getSettingsSnapshot(),[o]:s})})};n("isChatBoxBottomTipVisible",this.isChatBoxBottomTipVisible$),n("simpleMode",this.simpleMode$),n("freezeLayout",this.freezeLayout$),n("viewMyOnlyFlow",this.viewMyOnlyFlow$),n("viewOnlyMyRuns",this.viewOnlyMyRuns$),n("viewArchived",this.viewArchived$),n("wrapTextOn",this.wrapTextOn$),n("diffModeOn",this.diffModeOn$),n("isRightTopPaneCollapsed",this.isRightTopPaneCollapsed$),n("isRightBottomPaneCollapsed",this.isRightBottomPaneCollapsed$),n("leftPaneWidth",this.leftPaneWidth$),n("rightTopPaneHeight",this.rightTopPaneHeight$)}getSettingsSnapshot(){return{isChatBoxBottomTipVisible:this.isChatBoxBottomTipVisible$.getSnapshot(),simpleMode:this.simpleMode$.getSnapshot(),freezeLayout:this.freezeLayout$.getSnapshot(),viewMyOnlyFlow:this.viewMyOnlyFlow$.getSnapshot(),viewOnlyMyRuns:this.viewOnlyMyRuns$.getSnapshot(),viewArchived:this.viewArchived$.getSnapshot(),wrapTextOn:this.wrapTextOn$.getSnapshot(),diffModeOn:this.diffModeOn$.getSnapshot(),isRightTopPaneCollapsed:this.isRightTopPaneCollapsed$.getSnapshot(),isRightBottomPaneCollapsed:this.isRightBottomPaneCollapsed$.getSnapshot(),leftPaneWidth:this.leftPaneWidth$.getSnapshot(),rightTopPaneHeight:this.rightTopPaneHeight$.getSnapshot()}}};iJ=yE,Yz[iJ]=!0;let sM=Yz;class bet extends sM{constructor(){super({isChatBoxBottomTipVisible:!0,simpleMode:!0,freezeLayout:!1,viewMyOnlyFlow:!1,viewOnlyMyRuns:!1,viewArchived:!0,wrapTextOn:!1,diffModeOn:!1,isRightTopPaneCollapsed:!0,isRightBottomPaneCollapsed:!1,leftPaneWidth:"66%",rightTopPaneHeight:360},()=>{})}}Jo("FlowSettingViewModel",new bet);wr({root:{display:"flex",flexWrap:"nowrap"},item:{display:"inline-flex",alignItems:"center",marginRight:"8px",lineHeight:"14px"}});Mi({line:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}});function Tt(e){const t=k.useRef(e);return k.useLayoutEffect(()=>{t.current=e}),k.useCallback((...r)=>{const n=t.current;return n(...r)},[])}const So=typeof acquireVsCodeApi<"u",hi=So?acquireVsCodeApi():{postMessage:()=>{},getState:()=>({}),setState:()=>{}};function yu(e,t){const r=Tt(n=>{n.data.name===e&&t(n.data.payload)});k.useEffect(()=>(hi.postMessage({subscribeMessage:e}),window.addEventListener("message",r),()=>{window.removeEventListener("message",r)}),[r,e])}const _et=e=>{const[t]=re.useState(()=>Math.random().toString(32).slice(2)),r=async n=>{const o=b1e(n);o&&hi.postMessage({name:ln.FILE_RELATIVE_PATH_REQUEST,payload:{id:t,path:o.path,fileName:o.name,fileBase64:o.path?void 0:await Y8(o)}})};return yu(ln.FILE_RELATIVE_PATH_RESPONSE,({id:n,relativePath:o})=>{n!==t||!o||e(o)}),{onPaste:r}},b1e=e=>{var r,n;const t=((r=e.clipboardData)==null?void 0:r.files)||((n=e.dataTransfer)==null?void 0:n.files)||[];if(t.length>0)return e.preventDefault(),e.stopPropagation(),t[0]};var sJ;const Xz=class Xz{constructor(){this.extensionConfigurations$=new at(void 0),this.isPackageInstalled$=new at(void 0),this.sdkVersion$=new at(void 0),this.sdkFeatureList$=new at([]),this.uxFeatureList$=new at([])}};sJ=yE,Xz[sJ]=!0;let aM=Xz;Jo("VSCodeFlowViewModel",new aM);re.createContext({variantName:qi,haveMultipleVariants:!1,showAllVariantsOutputs:!1,isDisableEditing:!1});function Eet(e,t){const[r,n]=k.useState(e);return k.useEffect(()=>{const o=setTimeout(()=>{n(e)},t);return()=>{clearTimeout(o)}},[e,t]),r}function mj(e,t,r){return r={path:t,exports:{},require:function(n,o){return wet(n,o??r.path)}},e(r,r.exports),r.exports}function wet(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var tT=mj(function(e){/*! + */var Yg=k;function met(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var yet=typeof Object.is=="function"?Object.is:met,bet=Yg.useState,_et=Yg.useEffect,Eet=Yg.useLayoutEffect,wet=Yg.useDebugValue;function Aet(e,t){var r=t(),n=bet({inst:{value:r,getSnapshot:t}}),o=n[0].inst,i=n[1];return Eet(function(){o.value=r,o.getSnapshot=t,o3(o)&&i({inst:o})},[e,r,t]),_et(function(){return o3(o)&&i({inst:o}),e(function(){o3(o)&&i({inst:o})})},[e]),wet(r),r}function o3(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!yet(e,r)}catch{return!0}}function ket(e,t){return t()}var xet=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?ket:Aet;S1e.useSyncExternalStore=Yg.useSyncExternalStore!==void 0?Yg.useSyncExternalStore:xet;E1e.exports=S1e;var w1e=E1e.exports;const A1e=e=>k.useCallback(t=>{const r=e.subscribe(t);return()=>{r.unsubscribe()}},[e]);function Bi(e){const t=A1e(e),{getSnapshot:r}=e;return w1e.useSyncExternalStore(t,r)}function Ej(e){return k.useCallback(t=>{typeof t!="function"?e.setState(t):e.setState(t(e.getSnapshot()))},[e])}function ml(e){const t=Bi(e),r=Ej(e);return[t,r]}const Tet=_Je(void 0);function k1e(e,t){const r=k.useMemo(()=>t&&e?e==null?void 0:e.observeKey(t):Tet,[t,e]),n=A1e(r),o=k.useCallback(()=>t?e==null?void 0:e.get(t):void 0,[t,e]);return w1e.useSyncExternalStore(n,o)}var hJ;const nH=class nH{constructor(t,r){this.isChatBoxBottomTipVisible$=new ut(t.isChatBoxBottomTipVisible),this.simpleMode$=new ut(t.simpleMode),this.freezeLayout$=new ut(t.freezeLayout),this.viewMyOnlyFlow$=new ut(t.viewMyOnlyFlow),this.viewOnlyMyRuns$=new ut(t.viewOnlyMyRuns),this.viewArchived$=new ut(t.viewArchived),this.wrapTextOn$=new ut(t.wrapTextOn),this.diffModeOn$=new ut(t.diffModeOn),this.isRightTopPaneCollapsed$=new ut(t.isRightTopPaneCollapsed),this.isRightBottomPaneCollapsed$=new ut(t.isRightBottomPaneCollapsed),this.leftPaneWidth$=new ut(t.leftPaneWidth),this.rightTopPaneHeight$=new ut(t.rightTopPaneHeight);const n=(o,i)=>{i.subscribe(s=>{r({...this.getSettingsSnapshot(),[o]:s})})};n("isChatBoxBottomTipVisible",this.isChatBoxBottomTipVisible$),n("simpleMode",this.simpleMode$),n("freezeLayout",this.freezeLayout$),n("viewMyOnlyFlow",this.viewMyOnlyFlow$),n("viewOnlyMyRuns",this.viewOnlyMyRuns$),n("viewArchived",this.viewArchived$),n("wrapTextOn",this.wrapTextOn$),n("diffModeOn",this.diffModeOn$),n("isRightTopPaneCollapsed",this.isRightTopPaneCollapsed$),n("isRightBottomPaneCollapsed",this.isRightBottomPaneCollapsed$),n("leftPaneWidth",this.leftPaneWidth$),n("rightTopPaneHeight",this.rightTopPaneHeight$)}getSettingsSnapshot(){return{isChatBoxBottomTipVisible:this.isChatBoxBottomTipVisible$.getSnapshot(),simpleMode:this.simpleMode$.getSnapshot(),freezeLayout:this.freezeLayout$.getSnapshot(),viewMyOnlyFlow:this.viewMyOnlyFlow$.getSnapshot(),viewOnlyMyRuns:this.viewOnlyMyRuns$.getSnapshot(),viewArchived:this.viewArchived$.getSnapshot(),wrapTextOn:this.wrapTextOn$.getSnapshot(),diffModeOn:this.diffModeOn$.getSnapshot(),isRightTopPaneCollapsed:this.isRightTopPaneCollapsed$.getSnapshot(),isRightBottomPaneCollapsed:this.isRightBottomPaneCollapsed$.getSnapshot(),leftPaneWidth:this.leftPaneWidth$.getSnapshot(),rightTopPaneHeight:this.rightTopPaneHeight$.getSnapshot()}}};hJ=EE,nH[hJ]=!0;let cM=nH;class Iet extends cM{constructor(){super({isChatBoxBottomTipVisible:!0,simpleMode:!0,freezeLayout:!1,viewMyOnlyFlow:!1,viewOnlyMyRuns:!1,viewArchived:!0,wrapTextOn:!1,diffModeOn:!1,isRightTopPaneCollapsed:!0,isRightBottomPaneCollapsed:!1,leftPaneWidth:"66%",rightTopPaneHeight:360},()=>{})}}Jo("FlowSettingViewModel",new Iet);Ar({root:{display:"flex",flexWrap:"nowrap"},item:{display:"inline-flex",alignItems:"center",marginRight:"8px",lineHeight:"14px"}});hi({line:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}});function It(e){const t=k.useRef(e);return k.useLayoutEffect(()=>{t.current=e}),k.useCallback((...r)=>{const n=t.current;return n(...r)},[])}const eo=typeof acquireVsCodeApi<"u",pi=eo?acquireVsCodeApi():{postMessage:()=>{},getState:()=>({}),setState:()=>{}};function yu(e,t){const r=It(n=>{n.data.name===e&&t(n.data.payload)});k.useEffect(()=>(pi.postMessage({subscribeMessage:e}),window.addEventListener("message",r),()=>{window.removeEventListener("message",r)}),[r,e])}const Cet=e=>{const[t]=re.useState(()=>Math.random().toString(32).slice(2)),r=async n=>{const o=x1e(n);o&&pi.postMessage({name:ln.FILE_RELATIVE_PATH_REQUEST,payload:{id:t,path:o.path,fileName:o.name,fileBase64:o.path?void 0:await e7(o)}})};return yu(ln.FILE_RELATIVE_PATH_RESPONSE,({id:n,relativePath:o})=>{n!==t||!o||e(o)}),{onPaste:r}},x1e=e=>{var r,n;const t=((r=e.clipboardData)==null?void 0:r.files)||((n=e.dataTransfer)==null?void 0:n.files)||[];if(t.length>0)return e.preventDefault(),e.stopPropagation(),t[0]};var pJ;const oH=class oH{constructor(){this.extensionConfigurations$=new ut(void 0),this.isPackageInstalled$=new ut(void 0),this.sdkVersion$=new ut(void 0),this.sdkFeatureList$=new ut([]),this.uxFeatureList$=new ut([])}};pJ=EE,oH[pJ]=!0;let fM=oH;Jo("VSCodeFlowViewModel",new fM);re.createContext({variantName:qi,haveMultipleVariants:!1,showAllVariantsOutputs:!1,isDisableEditing:!1});function Net(e,t){const[r,n]=k.useState(e);return k.useEffect(()=>{const o=setTimeout(()=>{n(e)},t);return()=>{clearTimeout(o)}},[e,t]),r}var gJ;const T1e=(e,t)=>e.map(r=>({...r,level:t,children:r.children?T1e(r.children,t+1):void 0})),iH=class iH{constructor(){this.rows$=new ut(Ns([])),this.selectedRowId$=new ut(void 0),this.startTime=Number.MAX_SAFE_INTEGER,this.endTime=0}toggleRow(t){const r=this.rows$.getSnapshot(),n=r.findIndex(a=>a.id===t),o=r.get(n);if(!o)return;const{children:i}=o;if(!i)return;const s=[...r];if(s[n]={...o,isExpanded:!o.isExpanded},o.isExpanded){let a=0;const u=l=>{var f;!l.children||!((f=this.rows$.getSnapshot().find(d=>d.id===l.id))!=null&&f.isExpanded)||(a+=l.children.length,l.children.forEach(u))};u(o),s.splice(n+1,a)}else s.splice(n+1,0,...i);this.rows$.next(Ns(s))}setRows(t){this.rows$.next(Ns(t))}setTasks(t){this.startTime=Number.MAX_SAFE_INTEGER,this.endTime=0,this.rows$.next(Ns(T1e(t,0)));const r=n=>{n.forEach(o=>{o.startTimethis.endTime&&(this.endTime=o.endTime),o.children&&r(o.children)})};r(t)}expandAllChildrenRowsByRowId(t){const r=this.rows$.getSnapshot().find(n=>n.id===t);!r||r.isExpanded||(this.toggleRow(t),r.children&&r.children.forEach(n=>{this.expandAllChildrenRowsByRowId(n.id)}))}expandAllRows(){this.rows$.getSnapshot().forEach(r=>{r.children&&!r.isExpanded&&this.expandAllChildrenRowsByRowId(r.id)})}};gJ=EE,iH[gJ]=!0;let sx=iH;const I1e=Jo("GanttViewModel",new sx);function Sj(e,t,r){return r={path:t,exports:{},require:function(n,o){return Ret(n,o??r.path)}},e(r,r.exports),r.exports}function Ret(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var ax=Sj(function(e){/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(){var t={}.hasOwnProperty;function r(){for(var n=[],o=0;o1&&arguments[1]!==void 0?arguments[1]:{},r=[];return re.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(lM(n)):E1e.isFragment(n)&&n.props?r=r.concat(lM(n.props.children,t)):r.push(n))}),r}function ott(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aJ(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function uJ(e){for(var t=1;t0},e.prototype.connect_=function(){!fM||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),htt?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!fM||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,o=dtt.some(function(i){return!!~n.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),w1e=function(e,t){for(var r=0,n=Object.keys(t);r"u"||!(Element instanceof Object))){if(!(t instanceof Ug(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new Stt(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Ug(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new wtt(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),A1e=typeof WeakMap<"u"?new WeakMap:new S1e,T1e=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=ptt.getInstance(),n=new ktt(t,r,this);A1e.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){T1e.prototype[e]=function(){var t;return(t=A1e.get(this))[e].apply(t,arguments)}});var Att=function(){return typeof rT.ResizeObserver<"u"?rT.ResizeObserver:T1e}(),Md=new Map;function Ttt(e){e.forEach(function(t){var r,n=t.target;(r=Md.get(n))===null||r===void 0||r.forEach(function(o){return o(n)})})}var x1e=new Att(Ttt);function xtt(e,t){Md.has(e)||(Md.set(e,new Set),x1e.observe(e)),Md.get(e).add(t)}function Itt(e,t){Md.has(e)&&(Md.get(e).delete(t),Md.get(e).size||(x1e.unobserve(e),Md.delete(e)))}function Ntt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cJ(e,t){for(var r=0;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function hM(e){"@babel/helpers - typeof";return hM=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hM(e)}function Dtt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ftt(e,t){if(t&&(hM(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Dtt(e)}function Btt(e){var t=Ott();return function(){var n=oT(e),o;if(t){var i=oT(this).constructor;o=Reflect.construct(n,arguments,i)}else o=n.apply(this,arguments);return Ftt(this,o)}}var Mtt=function(e){Rtt(r,e);var t=Btt(r);function r(){return Ntt(this,r),t.apply(this,arguments)}return Ctt(r,[{key:"render",value:function(){return this.props.children}}]),r}(k.Component),pM=k.createContext(null);function Ltt(e){var t=e.children,r=e.onBatchResize,n=k.useRef(0),o=k.useRef([]),i=k.useContext(pM),s=k.useCallback(function(a,u,l){n.current+=1;var c=n.current;o.current.push({size:a,element:u,data:l}),Promise.resolve().then(function(){c===n.current&&(r==null||r(o.current),o.current=[])}),i==null||i(a,u,l)},[r,i]);return k.createElement(pM.Provider,{value:s},t)}function jtt(e){var t=e.children,r=e.disabled,n=k.useRef(null),o=k.useRef(null),i=k.useContext(pM),s=typeof t=="function",a=s?t(n):t,u=k.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),l=!s&&k.isValidElement(a)&&att(a),c=l?a.ref:null,f=k.useMemo(function(){return stt(c,n)},[c,n]),d=k.useRef(e);d.current=e;var h=k.useCallback(function(g){var v=d.current,y=v.onResize,E=v.data,_=g.getBoundingClientRect(),S=_.width,b=_.height,A=g.offsetWidth,x=g.offsetHeight,T=Math.floor(S),N=Math.floor(b);if(u.current.width!==T||u.current.height!==N||u.current.offsetWidth!==A||u.current.offsetHeight!==x){var I={width:T,height:N,offsetWidth:A,offsetHeight:x};u.current=I;var R=A===Math.round(S)?S:A,D=x===Math.round(b)?b:x,L=uJ(uJ({},I),{},{offsetWidth:R,offsetHeight:D});i==null||i(L,g,E),y&&Promise.resolve().then(function(){y(L,g)})}},[]);return k.useEffect(function(){var g=cM(n.current)||cM(o.current);return g&&!r&&xtt(g,h),function(){return Itt(g,h)}},[n.current,r]),k.createElement(Mtt,{ref:o},l?k.cloneElement(a,{ref:f}):a)}var ztt="rc-observer-key";function I1e(e){var t=e.children,r=typeof t=="function"?[t]:lM(t);return r.map(function(n,o){var i=(n==null?void 0:n.key)||"".concat(ztt,"-").concat(o);return k.createElement(jtt,uM({},e,{key:i}),n)})}I1e.Collection=Ltt;function fJ(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function dJ(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:1;hJ+=1;var r=hJ;function n(o){if(o===0)D1e(r),e();else{var i=R1e(function(){n(o-1)});Ej.set(r,i)}}return n(t),r}ec.cancel=function(e){var t=Ej.get(e);return D1e(t),O1e(t)};function gM(e){"@babel/helpers - typeof";return gM=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gM(e)}function pJ(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Htt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gJ(e,t){for(var r=0;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function iT(e){return iT=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},iT(e)}var Vtt=20;function vJ(e){return"touches"in e?e.touches[0].pageY:e.pageY}var Utt=function(e){Ptt(r,e);var t=qtt(r);function r(){var n;Htt(this,r);for(var o=arguments.length,i=new Array(o),s=0;su},n}return $tt(r,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(o){o.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var o=this.state,i=o.dragging,s=o.visible,a=this.props.prefixCls,u=this.getSpinHeight(),l=this.getTop(),c=this.showScroll(),f=c&&s;return k.createElement("div",{ref:this.scrollbarRef,className:tT("".concat(a,"-scrollbar"),pJ({},"".concat(a,"-scrollbar-show"),c)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:f?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},k.createElement("div",{ref:this.thumbRef,className:tT("".concat(a,"-scrollbar-thumb"),pJ({},"".concat(a,"-scrollbar-thumb-moving"),i)),style:{width:"100%",height:u,top:l,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),r}(k.Component);function Ytt(e){var t=e.children,r=e.setRef,n=k.useCallback(function(o){r(o)},[]);return k.cloneElement(t,{ref:n})}function Xtt(e,t,r,n,o,i){var s=i.getKey;return e.slice(t,r+1).map(function(a,u){var l=t+u,c=o(a,l,{}),f=s(a);return k.createElement(Ytt,{key:f,setRef:function(h){return n(a,h)}},c)})}function Qtt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mJ(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);rz&&(b="bottom")}}M!==null&&M!==e.current.scrollTop&&s(M)}u.current=ec(function(){S&&i(),v(y-1,b)})}};g(3)}}}function art(e,t,r){var n=e.length,o=t.length,i,s;if(n===0&&o===0)return null;ne.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"?"undefined":yM(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),F1e=function(e,t){var r=k.useRef(!1),n=k.useRef(null);function o(){clearTimeout(n.current),r.current=!0,n.current=setTimeout(function(){r.current=!1},50)}var i=k.useRef({top:e,bottom:t});return i.current.top=e,i.current.bottom=t,function(s){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=s<0&&i.current.top||s>0&&i.current.bottom;return a&&u?(clearTimeout(n.current),r.current=!1):(!u||r.current)&&o(),!r.current&&u}};function prt(e,t,r,n){var o=k.useRef(0),i=k.useRef(null),s=k.useRef(null),a=k.useRef(!1),u=F1e(t,r);function l(f){if(e){ec.cancel(i.current);var d=f.deltaY;o.current+=d,s.current=d,!u(d)&&(hrt||f.preventDefault(),i.current=ec(function(){var h=a.current?10:1;n(o.current*h),o.current=0}))}}function c(f){e&&(a.current=f.detail===s.current)}return[l,c]}function grt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var bM=grt()?k.useLayoutEffect:k.useEffect,vrt=14/15;function mrt(e,t,r){var n=k.useRef(!1),o=k.useRef(0),i=k.useRef(null),s=k.useRef(null),a,u=function(d){if(n.current){var h=Math.ceil(d.touches[0].pageY),g=o.current-h;o.current=h,r(g)&&d.preventDefault(),clearInterval(s.current),s.current=setInterval(function(){g*=vrt,(!r(g,!0)||Math.abs(g)<=.1)&&clearInterval(s.current)},16)}},l=function(){n.current=!1,a()},c=function(d){a(),d.touches.length===1&&!n.current&&(n.current=!0,o.current=Math.ceil(d.touches[0].pageY),i.current=d.target,i.current.addEventListener("touchmove",u),i.current.addEventListener("touchend",l))};a=function(){i.current&&(i.current.removeEventListener("touchmove",u),i.current.removeEventListener("touchend",l))},bM(function(){return e&&t.current.addEventListener("touchstart",c),function(){var f;(f=t.current)===null||f===void 0||f.removeEventListener("touchstart",c),a(),clearInterval(s.current)}},[e])}var yrt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange"];function _M(){return _M=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function krt(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i=0)&&(r[o]=e[o]);return r}var Art=[],Trt={overflowY:"auto",overflowAnchor:"none"};function xrt(e,t){var r=e.prefixCls,n=r===void 0?"rc-virtual-list":r,o=e.className,i=e.height,s=e.itemHeight,a=e.fullHeight,u=a===void 0?!0:a,l=e.style,c=e.data,f=e.children,d=e.itemKey,h=e.virtual,g=e.component,v=g===void 0?"div":g,y=e.onScroll,E=e.onVisibleChange,_=wrt(e,yrt),S=!!(h!==!1&&i&&s),b=S&&c&&s*c.length>i,A=k.useState(0),x=zm(A,2),T=x[0],N=x[1],I=k.useState(!1),R=zm(I,2),D=R[0],L=R[1],M=tT(n,o),q=c||Art,z=k.useRef(),B=k.useRef(),P=k.useRef(),K=k.useCallback(function(Ce){return typeof d=="function"?d(Ce):Ce==null?void 0:Ce[d]},[d]),U={getKey:K};function X(Ce){N(function(Pe){var ut;typeof Ce=="function"?ut=Ce(Pe):ut=Ce;var vt=$t(ut);return z.current.scrollTop=vt,vt})}var J=k.useRef({start:0,end:q.length}),ee=k.useRef(),se=drt(q,K),pe=zm(se,1),_e=pe[0];ee.current=_e;var Te=irt(K,null,null),me=zm(Te,4),Ae=me[0],ve=me[1],we=me[2],De=me[3],Qe=k.useMemo(function(){if(!S)return{scrollHeight:void 0,start:0,end:q.length-1,offset:void 0};if(!b){var Ce;return{scrollHeight:((Ce=B.current)===null||Ce===void 0?void 0:Ce.offsetHeight)||0,start:0,end:q.length-1,offset:void 0}}for(var Pe=0,ut,vt,xt,fr=q.length,xr=0;xr=T&&ut===void 0&&(ut=xr,vt=Pe),Jt>T+i&&xt===void 0&&(xt=xr),Pe=Jt}return ut===void 0&&(ut=0,vt=0),xt===void 0&&(xt=q.length-1),xt=Math.min(xt+1,q.length),{scrollHeight:Pe,start:ut,end:xt,offset:vt}},[b,S,T,q,De,i]),Ke=Qe.scrollHeight,st=Qe.start,He=Qe.end,Ne=Qe.offset;J.current.start=st,J.current.end=He;var $e=Ke-i,Dt=k.useRef($e);Dt.current=$e;function $t(Ce){var Pe=Ce;return Number.isNaN(Dt.current)||(Pe=Math.min(Pe,Dt.current)),Pe=Math.max(Pe,0),Pe}var Gt=T<=0,_t=T>=$e,tt=F1e(Gt,_t);function rt(Ce){var Pe=Ce;X(Pe)}function ur(Ce){var Pe=Ce.currentTarget.scrollTop;Pe!==T&&X(Pe),y==null||y(Ce)}var he=prt(S,Gt,_t,function(Ce){X(function(Pe){var ut=Pe+Ce;return ut})}),le=zm(he,2),ae=le[0],ge=le[1];mrt(S,z,function(Ce,Pe){return tt(Ce,Pe)?!1:(ae({preventDefault:function(){},deltaY:Ce}),!0)}),bM(function(){function Ce(Pe){S&&Pe.preventDefault()}return z.current.addEventListener("wheel",ae),z.current.addEventListener("DOMMouseScroll",ge),z.current.addEventListener("MozMousePixelScroll",Ce),function(){z.current&&(z.current.removeEventListener("wheel",ae),z.current.removeEventListener("DOMMouseScroll",ge),z.current.removeEventListener("MozMousePixelScroll",Ce))}},[S]);var Re=srt(z,q,we,s,K,ve,X,function(){var Ce;(Ce=P.current)===null||Ce===void 0||Ce.delayHidden()});k.useImperativeHandle(t,function(){return{scrollTo:Re}}),bM(function(){if(E){var Ce=q.slice(st,He+1);E(Ce,q)}},[st,He,q]);var je=Xtt(q,st,He,Ae,f,U),ke=null;return i&&(ke=t3(B1e({},u?"height":"maxHeight",i),Trt),S&&(ke.overflowY="hidden",D&&(ke.pointerEvents="none"))),k.createElement("div",_M({style:t3(t3({},l),{},{position:"relative"}),className:M},_),k.createElement(v,{className:"".concat(n,"-holder"),style:ke,ref:z,onScroll:ur},k.createElement(C1e,{prefixCls:n,height:Ke,offset:Ne,onInnerResize:ve,ref:B},je)),S&&k.createElement(Utt,{ref:P,prefixCls:n,scrollTop:T,height:i,scrollHeight:Ke,count:q.length,onScroll:rt,onStartMove:function(){L(!0)},onStopMove:function(){L(!1)}}))}var M1e=k.forwardRef(xrt);M1e.displayName="List";var r3=function(e,t){var r=e.slice(),n=r.indexOf(t);return n>=0&&r.splice(n,1),r},Cw=function(e,t){var r=e.slice();return r.indexOf(t)===-1&&r.push(t),r},n3="$root",wJ=function(){function e(t){var r=this,n,o,i,s=t.node,a=t.flattenNodes,u=t.parent,l=t.selectedKeySet,c=l===void 0?new Set:l,f=t.expandedKeySet,d=f===void 0?new Set:f,h=t.loadInfo,g=h===void 0?{loadingKeys:[],loadedKeys:[]}:h;this.internal=s,this.parent=u,this.level=((o=(n=this.parent)===null||n===void 0?void 0:n.level)!==null&&o!==void 0?o:-1)+1,this.selected=c.has(s.id),this.expanded=d.has(s.id)||s.id===n3,this.ancestorExpanded=!!(u!=null&&u.expanded&&(u!=null&&u.ancestorExpanded))||s.id===n3,this.loading=g.loadingKeys.includes(s.id),this.loaded=g.loadedKeys.includes(s.id),this.isLeaf=(i=s.isLeaf)!==null&&i!==void 0?i:!(s.children.length>0),e.nodesMap.set(s.id,this),this.level>0&&this.ancestorExpanded&&a.push(this),this.childNodes=s.children.map(function(v){return new e({node:v,parent:r,selectedKeySet:c,expandedKeySet:d,loadInfo:g,flattenNodes:a})})}return Object.defineProperty(e.prototype,"id",{get:function(){return this.internal.id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this.internal.title},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"searchKeys",{get:function(){return this.internal.searchKeys},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isTag",{get:function(){return this.internal.isTag},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ariaLabel",{get:function(){return this.internal.ariaLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"extra",{get:function(){return this.internal.extra},enumerable:!1,configurable:!0}),e.init=function(t,r,n,o){r===void 0&&(r=[]),n===void 0&&(n=[]),e.nodesMap=new Map;var i=[];return e.root=new e({node:{title:"",children:t,searchKeys:[],id:n3},selectedKeySet:new Set(r),expandedKeySet:new Set(n),loadInfo:o,flattenNodes:i}),i},e.nodesMap=new Map,e}();/*! ***************************************************************************** + */var ei=typeof Symbol=="function"&&Symbol.for,wj=ei?Symbol.for("react.element"):60103,Aj=ei?Symbol.for("react.portal"):60106,R9=ei?Symbol.for("react.fragment"):60107,O9=ei?Symbol.for("react.strict_mode"):60108,D9=ei?Symbol.for("react.profiler"):60114,F9=ei?Symbol.for("react.provider"):60109,B9=ei?Symbol.for("react.context"):60110,kj=ei?Symbol.for("react.async_mode"):60111,M9=ei?Symbol.for("react.concurrent_mode"):60111,L9=ei?Symbol.for("react.forward_ref"):60112,j9=ei?Symbol.for("react.suspense"):60113,Oet=ei?Symbol.for("react.suspense_list"):60120,z9=ei?Symbol.for("react.memo"):60115,H9=ei?Symbol.for("react.lazy"):60116,Det=ei?Symbol.for("react.block"):60121,Fet=ei?Symbol.for("react.fundamental"):60117,Bet=ei?Symbol.for("react.responder"):60118,Met=ei?Symbol.for("react.scope"):60119;function Oa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case wj:switch(e=e.type,e){case kj:case M9:case R9:case D9:case O9:case j9:return e;default:switch(e=e&&e.$$typeof,e){case B9:case L9:case H9:case z9:case F9:return e;default:return t}}case Aj:return t}}}function C1e(e){return Oa(e)===M9}var Let=kj,jet=M9,zet=B9,Het=F9,$et=wj,Pet=L9,qet=R9,Wet=H9,Ket=z9,Get=Aj,Vet=D9,Uet=O9,Yet=j9,Xet=function(e){return C1e(e)||Oa(e)===kj},Qet=C1e,Zet=function(e){return Oa(e)===B9},Jet=function(e){return Oa(e)===F9},ett=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===wj},ttt=function(e){return Oa(e)===L9},rtt=function(e){return Oa(e)===R9},ntt=function(e){return Oa(e)===H9},ott=function(e){return Oa(e)===z9},itt=function(e){return Oa(e)===Aj},stt=function(e){return Oa(e)===D9},att=function(e){return Oa(e)===O9},utt=function(e){return Oa(e)===j9},ltt=function(e){return typeof e=="string"||typeof e=="function"||e===R9||e===M9||e===D9||e===O9||e===j9||e===Oet||typeof e=="object"&&e!==null&&(e.$$typeof===H9||e.$$typeof===z9||e.$$typeof===F9||e.$$typeof===B9||e.$$typeof===L9||e.$$typeof===Fet||e.$$typeof===Bet||e.$$typeof===Met||e.$$typeof===Det)},ctt=Oa,ftt={AsyncMode:Let,ConcurrentMode:jet,ContextConsumer:zet,ContextProvider:Het,Element:$et,ForwardRef:Pet,Fragment:qet,Lazy:Wet,Memo:Ket,Portal:Get,Profiler:Vet,StrictMode:Uet,Suspense:Yet,isAsyncMode:Xet,isConcurrentMode:Qet,isContextConsumer:Zet,isContextProvider:Jet,isElement:ett,isForwardRef:ttt,isFragment:rtt,isLazy:ntt,isMemo:ott,isPortal:itt,isProfiler:stt,isStrictMode:att,isSuspense:utt,isValidElementType:ltt,typeOf:ctt};Sj(function(e,t){});var N1e=Sj(function(e){e.exports=ftt});function hM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return re.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(hM(n)):N1e.isFragment(n)&&n.props?r=r.concat(hM(n.props.children,t)):r.push(n))}),r}function dtt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vJ(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function mJ(e){for(var t=1;t0},e.prototype.connect_=function(){!gM||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ett?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!gM||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,o=_tt.some(function(i){return!!~n.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),O1e=function(e,t){for(var r=0,n=Object.keys(t);r"u"||!(Element instanceof Object))){if(!(t instanceof Xg(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new Ntt(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Xg(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new Rtt(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),F1e=typeof WeakMap<"u"?new WeakMap:new R1e,B1e=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=Stt.getInstance(),n=new Ott(t,r,this);F1e.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){B1e.prototype[e]=function(){var t;return(t=F1e.get(this))[e].apply(t,arguments)}});var Dtt=function(){return typeof ux.ResizeObserver<"u"?ux.ResizeObserver:B1e}(),Md=new Map;function Ftt(e){e.forEach(function(t){var r,n=t.target;(r=Md.get(n))===null||r===void 0||r.forEach(function(o){return o(n)})})}var M1e=new Dtt(Ftt);function Btt(e,t){Md.has(e)||(Md.set(e,new Set),M1e.observe(e)),Md.get(e).add(t)}function Mtt(e,t){Md.has(e)&&(Md.get(e).delete(t),Md.get(e).size||(M1e.unobserve(e),Md.delete(e)))}function Ltt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bJ(e,t){for(var r=0;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function mM(e){"@babel/helpers - typeof";return mM=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mM(e)}function $tt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ptt(e,t){if(t&&(mM(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $tt(e)}function qtt(e){var t=Htt();return function(){var n=cx(e),o;if(t){var i=cx(this).constructor;o=Reflect.construct(n,arguments,i)}else o=n.apply(this,arguments);return Ptt(this,o)}}var Wtt=function(e){ztt(r,e);var t=qtt(r);function r(){return Ltt(this,r),t.apply(this,arguments)}return jtt(r,[{key:"render",value:function(){return this.props.children}}]),r}(k.Component),yM=k.createContext(null);function Ktt(e){var t=e.children,r=e.onBatchResize,n=k.useRef(0),o=k.useRef([]),i=k.useContext(yM),s=k.useCallback(function(a,u,l){n.current+=1;var c=n.current;o.current.push({size:a,element:u,data:l}),Promise.resolve().then(function(){c===n.current&&(r==null||r(o.current),o.current=[])}),i==null||i(a,u,l)},[r,i]);return k.createElement(yM.Provider,{value:s},t)}function Gtt(e){var t=e.children,r=e.disabled,n=k.useRef(null),o=k.useRef(null),i=k.useContext(yM),s=typeof t=="function",a=s?t(n):t,u=k.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),l=!s&&k.isValidElement(a)&>t(a),c=l?a.ref:null,f=k.useMemo(function(){return ptt(c,n)},[c,n]),d=k.useRef(e);d.current=e;var h=k.useCallback(function(g){var v=d.current,y=v.onResize,E=v.data,_=g.getBoundingClientRect(),S=_.width,b=_.height,A=g.offsetWidth,T=g.offsetHeight,x=Math.floor(S),C=Math.floor(b);if(u.current.width!==x||u.current.height!==C||u.current.offsetWidth!==A||u.current.offsetHeight!==T){var I={width:x,height:C,offsetWidth:A,offsetHeight:T};u.current=I;var R=A===Math.round(S)?S:A,D=T===Math.round(b)?b:T,L=mJ(mJ({},I),{},{offsetWidth:R,offsetHeight:D});i==null||i(L,g,E),y&&Promise.resolve().then(function(){y(L,g)})}},[]);return k.useEffect(function(){var g=pM(n.current)||pM(o.current);return g&&!r&&Btt(g,h),function(){return Mtt(g,h)}},[n.current,r]),k.createElement(Wtt,{ref:o},l?k.cloneElement(a,{ref:f}):a)}var Vtt="rc-observer-key";function L1e(e){var t=e.children,r=typeof t=="function"?[t]:hM(t);return r.map(function(n,o){var i=(n==null?void 0:n.key)||"".concat(Vtt,"-").concat(o);return k.createElement(Gtt,dM({},e,{key:i}),n)})}L1e.Collection=Ktt;function _J(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function EJ(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:1;SJ+=1;var r=SJ;function n(o){if(o===0)P1e(r),e();else{var i=H1e(function(){n(o-1)});xj.set(r,i)}}return n(t),r}nc.cancel=function(e){var t=xj.get(e);return P1e(t),$1e(t)};function bM(e){"@babel/helpers - typeof";return bM=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bM(e)}function wJ(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Utt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AJ(e,t){for(var r=0;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function fx(e){return fx=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},fx(e)}var trt=20;function kJ(e){return"touches"in e?e.touches[0].pageY:e.pageY}var rrt=function(e){Xtt(r,e);var t=Qtt(r);function r(){var n;Utt(this,r);for(var o=arguments.length,i=new Array(o),s=0;su},n}return Ytt(r,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(o){o.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var o=this.state,i=o.dragging,s=o.visible,a=this.props.prefixCls,u=this.getSpinHeight(),l=this.getTop(),c=this.showScroll(),f=c&&s;return k.createElement("div",{ref:this.scrollbarRef,className:ax("".concat(a,"-scrollbar"),wJ({},"".concat(a,"-scrollbar-show"),c)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:f?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},k.createElement("div",{ref:this.thumbRef,className:ax("".concat(a,"-scrollbar-thumb"),wJ({},"".concat(a,"-scrollbar-thumb-moving"),i)),style:{width:"100%",height:u,top:l,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),r}(k.Component);function nrt(e){var t=e.children,r=e.setRef,n=k.useCallback(function(o){r(o)},[]);return k.cloneElement(t,{ref:n})}function ort(e,t,r,n,o,i){var s=i.getKey;return e.slice(t,r+1).map(function(a,u){var l=t+u,c=o(a,l,{}),f=s(a);return k.createElement(nrt,{key:f,setRef:function(h){return n(a,h)}},c)})}function irt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xJ(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);rz&&(b="bottom")}}M!==null&&M!==e.current.scrollTop&&s(M)}u.current=nc(function(){S&&i(),v(y-1,b)})}};g(3)}}}function grt(e,t,r){var n=e.length,o=t.length,i,s;if(n===0&&o===0)return null;ne.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"?"undefined":SM(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),q1e=function(e,t){var r=k.useRef(!1),n=k.useRef(null);function o(){clearTimeout(n.current),r.current=!0,n.current=setTimeout(function(){r.current=!1},50)}var i=k.useRef({top:e,bottom:t});return i.current.top=e,i.current.bottom=t,function(s){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=s<0&&i.current.top||s>0&&i.current.bottom;return a&&u?(clearTimeout(n.current),r.current=!1):(!u||r.current)&&o(),!r.current&&u}};function Srt(e,t,r,n){var o=k.useRef(0),i=k.useRef(null),s=k.useRef(null),a=k.useRef(!1),u=q1e(t,r);function l(f){if(e){nc.cancel(i.current);var d=f.deltaY;o.current+=d,s.current=d,!u(d)&&(Ert||f.preventDefault(),i.current=nc(function(){var h=a.current?10:1;n(o.current*h),o.current=0}))}}function c(f){e&&(a.current=f.detail===s.current)}return[l,c]}function wrt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var wM=wrt()?k.useLayoutEffect:k.useEffect,Art=14/15;function krt(e,t,r){var n=k.useRef(!1),o=k.useRef(0),i=k.useRef(null),s=k.useRef(null),a,u=function(d){if(n.current){var h=Math.ceil(d.touches[0].pageY),g=o.current-h;o.current=h,r(g)&&d.preventDefault(),clearInterval(s.current),s.current=setInterval(function(){g*=Art,(!r(g,!0)||Math.abs(g)<=.1)&&clearInterval(s.current)},16)}},l=function(){n.current=!1,a()},c=function(d){a(),d.touches.length===1&&!n.current&&(n.current=!0,o.current=Math.ceil(d.touches[0].pageY),i.current=d.target,i.current.addEventListener("touchmove",u),i.current.addEventListener("touchend",l))};a=function(){i.current&&(i.current.removeEventListener("touchmove",u),i.current.removeEventListener("touchend",l))},wM(function(){return e&&t.current.addEventListener("touchstart",c),function(){var f;(f=t.current)===null||f===void 0||f.removeEventListener("touchstart",c),a(),clearInterval(s.current)}},[e])}var xrt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange"];function AM(){return AM=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ort(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i=0)&&(r[o]=e[o]);return r}var Drt=[],Frt={overflowY:"auto",overflowAnchor:"none"};function Brt(e,t){var r=e.prefixCls,n=r===void 0?"rc-virtual-list":r,o=e.className,i=e.height,s=e.itemHeight,a=e.fullHeight,u=a===void 0?!0:a,l=e.style,c=e.data,f=e.children,d=e.itemKey,h=e.virtual,g=e.component,v=g===void 0?"div":g,y=e.onScroll,E=e.onVisibleChange,_=Rrt(e,xrt),S=!!(h!==!1&&i&&s),b=S&&c&&s*c.length>i,A=k.useState(0),T=Hm(A,2),x=T[0],C=T[1],I=k.useState(!1),R=Hm(I,2),D=R[0],L=R[1],M=ax(n,o),q=c||Drt,z=k.useRef(),F=k.useRef(),$=k.useRef(),K=k.useCallback(function(Ie){return typeof d=="function"?d(Ie):Ie==null?void 0:Ie[d]},[d]),U={getKey:K};function X(Ie){C(function(Pe){var lt;typeof Ie=="function"?lt=Ie(Pe):lt=Ie;var mt=kt(lt);return z.current.scrollTop=mt,mt})}var J=k.useRef({start:0,end:q.length}),ee=k.useRef(),fe=_rt(q,K),ge=Hm(fe,1),Se=ge[0];ee.current=Se;var Ee=hrt(K,null,null),ve=Hm(Ee,4),we=ve[0],me=ve[1],xe=ve[2],He=ve[3],it=k.useMemo(function(){if(!S)return{scrollHeight:void 0,start:0,end:q.length-1,offset:void 0};if(!b){var Ie;return{scrollHeight:((Ie=F.current)===null||Ie===void 0?void 0:Ie.offsetHeight)||0,start:0,end:q.length-1,offset:void 0}}for(var Pe=0,lt,mt,Ct,dr=q.length,Cr=0;Cr=x&<===void 0&&(lt=Cr,mt=Pe),er>x+i&&Ct===void 0&&(Ct=Cr),Pe=er}return lt===void 0&&(lt=0,mt=0),Ct===void 0&&(Ct=q.length-1),Ct=Math.min(Ct+1,q.length),{scrollHeight:Pe,start:lt,end:Ct,offset:mt}},[b,S,x,q,He,i]),Oe=it.scrollHeight,Qe=it.start,Fe=it.end,Ze=it.offset;J.current.start=Qe,J.current.end=Fe;var $e=Oe-i,Ge=k.useRef($e);Ge.current=$e;function kt(Ie){var Pe=Ie;return Number.isNaN(Ge.current)||(Pe=Math.min(Pe,Ge.current)),Pe=Math.max(Pe,0),Pe}var $t=x<=0,bt=x>=$e,Je=q1e($t,bt);function ot(Ie){var Pe=Ie;X(Pe)}function ir(Ie){var Pe=Ie.currentTarget.scrollTop;Pe!==x&&X(Pe),y==null||y(Ie)}var he=Srt(S,$t,bt,function(Ie){X(function(Pe){var lt=Pe+Ie;return lt})}),ue=Hm(he,2),se=ue[0],pe=ue[1];krt(S,z,function(Ie,Pe){return Je(Ie,Pe)?!1:(se({preventDefault:function(){},deltaY:Ie}),!0)}),wM(function(){function Ie(Pe){S&&Pe.preventDefault()}return z.current.addEventListener("wheel",se),z.current.addEventListener("DOMMouseScroll",pe),z.current.addEventListener("MozMousePixelScroll",Ie),function(){z.current&&(z.current.removeEventListener("wheel",se),z.current.removeEventListener("DOMMouseScroll",pe),z.current.removeEventListener("MozMousePixelScroll",Ie))}},[S]);var Ne=prt(z,q,xe,s,K,me,X,function(){var Ie;(Ie=$.current)===null||Ie===void 0||Ie.delayHidden()});k.useImperativeHandle(t,function(){return{scrollTo:Ne}}),wM(function(){if(E){var Ie=q.slice(Qe,Fe+1);E(Ie,q)}},[Qe,Fe,q]);var Be=ort(q,Qe,Fe,we,f,U),Ae=null;return i&&(Ae=i3(W1e({},u?"height":"maxHeight",i),Frt),S&&(Ae.overflowY="hidden",D&&(Ae.pointerEvents="none"))),k.createElement("div",AM({style:i3(i3({},l),{},{position:"relative"}),className:M},_),k.createElement(v,{className:"".concat(n,"-holder"),style:Ae,ref:z,onScroll:ir},k.createElement(z1e,{prefixCls:n,height:Oe,offset:Ze,onInnerResize:me,ref:F},Be)),S&&k.createElement(rrt,{ref:$,prefixCls:n,scrollTop:x,height:i,scrollHeight:Oe,count:q.length,onScroll:ot,onStartMove:function(){L(!0)},onStopMove:function(){L(!1)}}))}var K1e=k.forwardRef(Brt);K1e.displayName="List";var s3=function(e,t){var r=e.slice(),n=r.indexOf(t);return n>=0&&r.splice(n,1),r},Dw=function(e,t){var r=e.slice();return r.indexOf(t)===-1&&r.push(t),r},a3="$root",OJ=function(){function e(t){var r=this,n,o,i,s=t.node,a=t.flattenNodes,u=t.parent,l=t.selectedKeySet,c=l===void 0?new Set:l,f=t.expandedKeySet,d=f===void 0?new Set:f,h=t.loadInfo,g=h===void 0?{loadingKeys:[],loadedKeys:[]}:h;this.internal=s,this.parent=u,this.level=((o=(n=this.parent)===null||n===void 0?void 0:n.level)!==null&&o!==void 0?o:-1)+1,this.selected=c.has(s.id),this.expanded=d.has(s.id)||s.id===a3,this.ancestorExpanded=!!(u!=null&&u.expanded&&(u!=null&&u.ancestorExpanded))||s.id===a3,this.loading=g.loadingKeys.includes(s.id),this.loaded=g.loadedKeys.includes(s.id),this.isLeaf=(i=s.isLeaf)!==null&&i!==void 0?i:!(s.children.length>0),e.nodesMap.set(s.id,this),this.level>0&&this.ancestorExpanded&&a.push(this),this.childNodes=s.children.map(function(v){return new e({node:v,parent:r,selectedKeySet:c,expandedKeySet:d,loadInfo:g,flattenNodes:a})})}return Object.defineProperty(e.prototype,"id",{get:function(){return this.internal.id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this.internal.title},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"searchKeys",{get:function(){return this.internal.searchKeys},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isTag",{get:function(){return this.internal.isTag},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ariaLabel",{get:function(){return this.internal.ariaLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"extra",{get:function(){return this.internal.extra},enumerable:!1,configurable:!0}),e.init=function(t,r,n,o){r===void 0&&(r=[]),n===void 0&&(n=[]),e.nodesMap=new Map;var i=[];return e.root=new e({node:{title:"",children:t,searchKeys:[],id:a3},selectedKeySet:new Set(r),expandedKeySet:new Set(n),loadInfo:o,flattenNodes:i}),i},e.nodesMap=new Map,e}();/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -448,21 +448,21 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Qy=function(){return Qy=Object.assign||function(t){for(var r,n=1,o=arguments.length;n"u"?Hm.none:Hm.insertNode,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},t),this._classNameToArgs=(n=r==null?void 0:r.classNameToArgs)!==null&&n!==void 0?n:this._classNameToArgs,this._counter=(o=r==null?void 0:r.counter)!==null&&o!==void 0?o:this._counter,this._keyToClassName=(s=(i=this._config.classNameCache)!==null&&i!==void 0?i:r==null?void 0:r.keyToClassName)!==null&&s!==void 0?s:this._keyToClassName,this._preservedRules=(a=r==null?void 0:r.preservedRules)!==null&&a!==void 0?a:this._preservedRules,this._rules=(u=r==null?void 0:r.rules)!==null&&u!==void 0?u:this._rules}return e.getInstance=function(){if(Qp=p0[kJ],!Qp||Qp._lastStyleElement&&Qp._lastStyleElement.ownerDocument!==document){var t=(p0==null?void 0:p0.FabricConfig)||{},r=new e(t.mergeStyles,t.serializedStylesheet);Qp=r,p0[kJ]=r}return Qp},e.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},e.prototype.setConfig=function(t){this._config=Qy(Qy({},this._config),t)},e.prototype.onReset=function(t){var r=this;return this._onResetCallbacks.push(t),function(){r._onResetCallbacks=r._onResetCallbacks.filter(function(n){return n!==t})}},e.prototype.onInsertRule=function(t){var r=this;return this._onInsertRuleCallbacks.push(t),function(){r._onInsertRuleCallbacks=r._onInsertRuleCallbacks.filter(function(n){return n!==t})}},e.prototype.getClassName=function(t){var r=this._config.namespace,n=t||this._config.defaultPrefix;return(r?r+"-":"")+n+"-"+this._counter++},e.prototype.cacheClassName=function(t,r,n,o){this._keyToClassName[r]=t,this._classNameToArgs[t]={args:n,rules:o}},e.prototype.classNameFromKey=function(t){return this._keyToClassName[t]},e.prototype.getClassNameCache=function(){return this._keyToClassName},e.prototype.argsFromClassName=function(t){var r=this._classNameToArgs[t];return r&&r.args},e.prototype.insertedRulesFromClassName=function(t){var r=this._classNameToArgs[t];return r&&r.rules},e.prototype.insertRule=function(t,r){var n=this._config.injectionMode,o=n!==Hm.none?this._getStyleElement():void 0;if(r&&this._preservedRules.push(t),o)switch(n){case Hm.insertNode:var i=o.sheet;try{i.insertRule(t,i.cssRules.length)}catch{}break;case Hm.appendChild:o.appendChild(document.createTextNode(t));break}else this._rules.push(t);this._config.onInsertRule&&this._config.onInsertRule(t),this._onInsertRuleCallbacks.forEach(function(s){return s()})},e.prototype.getRules=function(t){return(t?this._preservedRules.join(""):"")+this._rules.join("")},e.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach(function(t){return t()})},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._getStyleElement=function(){var t=this;return!this._styleElement&&typeof document<"u"&&(this._styleElement=this._createStyleElement(),Nrt||window.requestAnimationFrame(function(){t._styleElement=void 0})),this._styleElement},e.prototype._createStyleElement=function(){var t=document.head,r=document.createElement("style"),n=null;r.setAttribute("data-merge-styles","true");var o=this._config.cspSettings;if(o&&o.nonce&&r.setAttribute("nonce",o.nonce),this._lastStyleElement)n=this._lastStyleElement.nextElementSibling;else{var i=this._findPlaceholderStyleTag();i?n=i.nextElementSibling:n=t.childNodes[0]}return t.insertBefore(r,t.contains(n)?n:null),this._lastStyleElement=r,r},e.prototype._findPlaceholderStyleTag=function(){var t=document.head;return t?t.querySelector("style[data-merge-styles]"):null},e}();function Crt(){for(var e=[],t=0;t=0)i(l.split(" "));else{var c=o.argsFromClassName(l);c?i(c):r.indexOf(l)===-1&&r.push(l)}else Array.isArray(l)?i(l):typeof l=="object"&&n.push(l)}}return i(e),{classes:r,objects:n}}function L1e(){return Fk===void 0&&(Fk=typeof document<"u"&&!!document.documentElement&&document.documentElement.getAttribute("dir")==="rtl"),Fk}var Fk;Fk=L1e();function Rrt(){return{rtl:L1e()}}var AJ={};function Ort(e,t){var r=e[t];r.charAt(0)!=="-"&&(e[t]=AJ[r]=AJ[r]||r.replace(/([A-Z])/g,"-$1").toLowerCase())}var Rw;function Drt(){var e;if(!Rw){var t=typeof document<"u"?document:void 0,r=typeof navigator<"u"?navigator:void 0,n=(e=r==null?void 0:r.userAgent)===null||e===void 0?void 0:e.toLowerCase();t?Rw={isWebkit:!!(t&&"WebkitAppearance"in t.documentElement.style),isMoz:!!(n&&n.indexOf("firefox")>-1),isOpera:!!(n&&n.indexOf("opera")>-1),isMs:!!(r&&(/rv:11.0/i.test(r.userAgent)||/Edge\/\d./i.test(navigator.userAgent)))}:Rw={isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return Rw}var TJ={"user-select":1};function Frt(e,t){var r=Drt(),n=e[t];if(TJ[n]){var o=e[t+1];TJ[n]&&(r.isWebkit&&e.push("-webkit-"+n,o),r.isMoz&&e.push("-moz-"+n,o),r.isMs&&e.push("-ms-"+n,o),r.isOpera&&e.push("-o-"+n,o))}}var Brt=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function Mrt(e,t){var r=e[t],n=e[t+1];if(typeof n=="number"){var o=Brt.indexOf(r)>-1,i=r.indexOf("--")>-1,s=o||i?"":"px";e[t+1]=""+n+s}}var Ow,Td="left",xd="right",Lrt="@noflip",xJ=(Ow={},Ow[Td]=xd,Ow[xd]=Td,Ow),IJ={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function jrt(e,t,r){if(e.rtl){var n=t[r];if(!n)return;var o=t[r+1];if(typeof o=="string"&&o.indexOf(Lrt)>=0)t[r+1]=o.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(n.indexOf(Td)>=0)t[r]=n.replace(Td,xd);else if(n.indexOf(xd)>=0)t[r]=n.replace(xd,Td);else if(String(o).indexOf(Td)>=0)t[r+1]=o.replace(Td,xd);else if(String(o).indexOf(xd)>=0)t[r+1]=o.replace(xd,Td);else if(xJ[n])t[r]=xJ[n];else if(IJ[o])t[r+1]=IJ[o];else switch(n){case"margin":case"padding":t[r+1]=Hrt(o);break;case"box-shadow":t[r+1]=zrt(o,0);break}}}function zrt(e,t){var r=e.split(" "),n=parseInt(r[t],10);return r[0]=r[0].replace(String(n),String(n*-1)),r.join(" ")}function Hrt(e){if(typeof e=="string"){var t=e.split(" ");if(t.length===4)return t[0]+" "+t[3]+" "+t[2]+" "+t[1]}return e}function $rt(e){for(var t=[],r=0,n=0,o=0;or&&t.push(e.substring(r,o)),r=o+1);break}return r-1&&t.push([n.index,n.index+n[0].length,n[1].split(",").map(function(o){return":global("+o.trim()+")"}).join(", ")]);return t.reverse().reduce(function(o,i){var s=i[0],a=i[1],u=i[2],l=o.slice(0,s),c=o.slice(a);return l+u+c},e)}function NJ(e,t){return e.indexOf(":global(")>=0?e.replace(j1e,"$1"):e.indexOf(":")===0?t+e:e.indexOf("&")<0?t+" "+e:e}function CJ(e,t,r,n){t===void 0&&(t={__order:[]}),r.indexOf("@")===0?(r=r+"{"+e,lg([n],t,r)):r.indexOf(",")>-1?Wrt(r).split(",").map(function(o){return o.trim()}).forEach(function(o){return lg([n],t,NJ(o,e))}):lg([n],t,NJ(r,e))}function lg(e,t,r){t===void 0&&(t={__order:[]}),r===void 0&&(r="&");var n=j9.getInstance(),o=t[r];o||(o={},t[r]=o,t.__order.push(r));for(var i=0,s=e;i"u")){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",r==="top"&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var Jrt=".root_ce9fd48c{margin:0;padding:0}.item_34141342{list-style:none}.content_6abc12be{display:flex;align-items:center}.content_6abc12be:hover{cursor:pointer;background-color:#f3f2f1}.icon_aaa0d589{border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:6px solid #8a8886;margin:0 11px 0 3px}.expanded_6233c4e1{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #8a8886;margin:3px 8px 0 0}.leaf_f2922997{border:6px solid transparent;margin:0 8px 0 0}.group_7e2ac704,.inner_683a43d6{padding:0;margin:0}",gd={root:"root_ce9fd48c",item:"item_34141342",content:"content_6abc12be",icon:"icon_aaa0d589",expanded:"expanded_6233c4e1",leaf:"leaf_f2922997",group:"group_7e2ac704",inner:"inner_683a43d6"};Zrt(Jrt);var ent=function(e){return{root:g0(gd.root,e==null?void 0:e.root)}},tnt=function(e,t){var r,n,o;return{item:g0(gd.item,t==null?void 0:t.item),icon:g0(gd.icon,e.expanded&&gd.expanded,e.isLeaf&&gd.leaf),group:g0(gd.group,t==null?void 0:t.group),inner:g0(gd.inner,t==null?void 0:t.inner),content:g0(gd.content,(r=t==null?void 0:t.content)===null||r===void 0?void 0:r.base,e.expanded&&((n=t==null?void 0:t.content)===null||n===void 0?void 0:n.expand),e.isLeaf&&((o=t==null?void 0:t.content)===null||o===void 0?void 0:o.leaf))}},H1e=k.forwardRef(function(e,t){var r,n,o,i,s,a,u,l,c=e.node,f=e.classes,d=e.indent,h=e.calcIndent,g=e.onNodeClick,v=e.renderIcon,y=e.renderContent,E=e.renderInnerContent,_=!c.isLeaf&&c.expanded,S=tnt(c,f),b=h?h(c):{item:(c.level-1)*((r=d==null?void 0:d.item)!==null&&r!==void 0?r:20)+((n=d==null?void 0:d.root)!==null&&n!==void 0?n:0),innerItem:c.level*((o=d==null?void 0:d.item)!==null&&o!==void 0?o:20)+((i=d==null?void 0:d.root)!==null&&i!==void 0?i:0)},A=k.useCallback(function(x){x.preventDefault(),x.stopPropagation()},[]);return k.createElement("div",{key:c.id,role:"treeitem","aria-selected":c.selected,"aria-expanded":c.expanded,tabIndex:-1,className:S.item,onClick:g.bind(null,c),"data-item-id":c.id,ref:t},k.createElement("div",{className:S.content,style:{paddingLeft:(s=b.item)!==null&&s!==void 0?s:20}},(a=v==null?void 0:v(c))!==null&&a!==void 0?a:k.createElement("span",{className:S.icon}),(u=y==null?void 0:y(c))!==null&&u!==void 0?u:k.createElement("span",{role:"button"},c.title)),_&&k.createElement(k.Fragment,null,E&&k.createElement("div",{role:"group",key:"innerContent",className:S.inner,style:{paddingLeft:(l=b.innerItem)!==null&&l!==void 0?l:40},onClick:A},E(c))))});H1e.displayName="TreeNode";var rnt=k.forwardRef(function(e,t){var r=e.selectedKeys,n=r===void 0?[]:r,o=e.expandedKeys,i=o===void 0?[]:o,s=e.treeData,a=e.classes,u=e.indent,l=e.height,c=e.itemHeight,f=e.virtual,d=e.calcIndent,h=e.onKeyDown,g=e.renderIcon,v=e.renderContent,y=e.renderInnerContent,E=e.onSelect,_=e.multiple,S=e.onExpand,b=e.loadData,A=k.useState({loadedKeys:[],loadingKeys:[]}),x=A[0],T=A[1],N=k.useRef(null),I=k.useRef(null),R=k.useMemo(function(){return wJ.init(s,n,i,x)},[s,n,i,x]);k.useImperativeHandle(t,function(){return{scrollTo:function(X){var J;(J=I.current)===null||J===void 0||J.scrollTo(X)}}}),k.useEffect(function(){q(0)},[]);var D=function(X,J){var ee=n,se=J.id,pe=!J.selected;pe?_?ee=Cw(ee,se):ee=[se]:ee=r3(ee,se),E==null||E(ee,{node:J,selected:pe,nativeEvent:X})},L=function(X,J){var ee=i,se=J.id,pe=!J.expanded;pe?ee=Cw(ee,se):ee=r3(ee,se),S==null||S(ee,{node:J,expanded:pe,nativeEvent:X}),pe&&b&&M(J)},M=function(X){T(function(J){var ee=J.loadedKeys,se=J.loadingKeys,pe=X.id;if(!b||ee.includes(pe)||se.includes(pe))return x;var _e=b(X);return _e.then(function(){var Te=x.loadedKeys,me=x.loadingKeys,Ae=Cw(Te,pe),ve=r3(me,pe);T({loadedKeys:Ae,loadingKeys:ve})}),{loadedKeys:ee,loadingKeys:Cw(se,pe)}})},q=function(X){var J,ee,se=Array.from((ee=(J=N.current)===null||J===void 0?void 0:J.querySelectorAll("div[role='treeitem']"))!==null&&ee!==void 0?ee:[]);se.forEach(function(pe,_e){_e===X?pe.setAttribute("tabindex","0"):pe.setAttribute("tabindex","-1")})},z=function(X){var J,ee,se;X.stopPropagation();var pe=X.target;if(pe.getAttribute("role")!=="treeitem"||X.ctrlKey||X.metaKey)return-1;var _e=Array.from((ee=(J=N.current)===null||J===void 0?void 0:J.querySelectorAll("div[role='treeitem']"))!==null&&ee!==void 0?ee:[]),Te=_e.indexOf(pe),me=X.keyCode>=65&&X.keyCode<=90;if(me){var Ae=-1,ve=_e.findIndex(function(Qe,Ke){var st=Qe.getAttribute("data-item-id"),He=wJ.nodesMap.get(st??""),Ne=He==null?void 0:He.searchKeys.some(function($e){return $e.match(new RegExp("^"+X.key,"i"))});return Ne&&Ke>Te?!0:(Ne&&Ke<=Te&&(Ae=Ae===-1?Ke:Ae),!1)}),we=ve===-1?Ae:ve;return(se=_e[we])===null||se===void 0||se.focus(),we}switch(X.key){case"ArrowDown":{var De=(Te+1)%_e.length;return _e[De].focus(),De}case"ArrowUp":{var De=(Te-1+_e.length)%_e.length;return _e[De].focus(),De}case"ArrowLeft":case"ArrowRight":return pe.click(),Te;case"Home":return _e[0].focus(),0;case"End":return _e[_e.length-1].focus(),_e.length-1;default:return h==null||h(X),Te}},B=function(X){var J=z(X);J>-1&&q(J)},P=function(X,J){J.stopPropagation(),D(J,X),!(X.loading||X.loaded&&X.isLeaf)&&L(J,X)},K=ent(a),U=function(X){return X.id};return k.createElement("div",{role:"tree",className:K.root,onKeyDown:B,ref:N},k.createElement(M1e,{data:R,itemKey:U,height:l,fullHeight:!1,virtual:f,itemHeight:c,ref:I},function(X){return k.createElement(H1e,{key:X.id,node:X,classes:a,indent:u,calcIndent:d,renderIcon:g,renderContent:v,renderInnerContent:y,onNodeClick:P})}))});rnt.displayName="ReactAccessibleTree";var nnt=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),vo=function(){return vo=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"?void 0:Number(n),maxHeight:typeof o>"u"?void 0:Number(o),minWidth:typeof i>"u"?void 0:Number(i),minHeight:typeof s>"u"?void 0:Number(s)}},cnt=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],BJ="__resizable_base__",$1e=function(e){snt(t,e);function t(r){var n=e.call(this,r)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableRight=0,n.resizableTop=0,n.resizableBottom=0,n.targetLeft=0,n.targetTop=0,n.appendBase=function(){if(!n.resizable||!n.window)return null;var o=n.parentNode;if(!o)return null;var i=n.window.document.createElement("div");return i.style.width="100%",i.style.height="100%",i.style.position="absolute",i.style.transform="scale(0, 0)",i.style.left="0",i.style.flex="0 0 100%",i.classList?i.classList.add(BJ):i.className+=BJ,o.appendChild(i),i},n.removeBase=function(o){var i=n.parentNode;i&&i.removeChild(o)},n.ref=function(o){o&&(n.resizable=o)},n.state={isResizing:!1,width:typeof(n.propsSize&&n.propsSize.width)>"u"?"auto":n.propsSize&&n.propsSize.width,height:typeof(n.propsSize&&n.propsSize.height)>"u"?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||ant},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var r=0,n=0;if(this.resizable&&this.window){var o=this.resizable.offsetWidth,i=this.resizable.offsetHeight,s=this.resizable.style.position;s!=="relative"&&(this.resizable.style.position="relative"),r=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:o,n=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:i,this.resizable.style.position=s}return{width:r,height:n}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var r=this,n=this.props.size,o=function(a){if(typeof r.state[a]>"u"||r.state[a]==="auto")return"auto";if(r.propsSize&&r.propsSize[a]&&r.propsSize[a].toString().endsWith("%")){if(r.state[a].toString().endsWith("%"))return r.state[a].toString();var u=r.getParentSize(),l=Number(r.state[a].toString().replace("px","")),c=l/u[a]*100;return c+"%"}return o3(r.state[a])},i=n&&typeof n.width<"u"&&!this.state.isResizing?o3(n.width):o("width"),s=n&&typeof n.height<"u"&&!this.state.isResizing?o3(n.height):o("height");return{width:i,height:s}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var r=this.appendBase();if(!r)return{width:0,height:0};var n=!1,o=this.parentNode.style.flexWrap;o!=="wrap"&&(n=!0,this.parentNode.style.flexWrap="wrap"),r.style.position="relative",r.style.minWidth="100%",r.style.minHeight="100%";var i={width:r.offsetWidth,height:r.offsetHeight};return n&&(this.parentNode.style.flexWrap=o),this.removeBase(r),i},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var r=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:r.flexBasis!=="auto"?r.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(r,n){var o=this.propsSize&&this.propsSize[n];return this.state[n]==="auto"&&this.state.original[n]===r&&(typeof o>"u"||o==="auto")?"auto":r},t.prototype.calculateNewMaxFromBoundary=function(r,n){var o=this.props.boundsByDirection,i=this.state.direction,s=o&&Zp("left",i),a=o&&Zp("top",i),u,l;if(this.props.bounds==="parent"){var c=this.parentNode;c&&(u=s?this.resizableRight-this.parentLeft:c.offsetWidth+(this.parentLeft-this.resizableLeft),l=a?this.resizableBottom-this.parentTop:c.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(u=s?this.resizableRight:this.window.innerWidth-this.resizableLeft,l=a?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(u=s?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),l=a?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return u&&Number.isFinite(u)&&(r=r&&r"u"?10:i.width,f=typeof o.width>"u"||o.width<0?r:o.width,d=typeof i.height>"u"?10:i.height,h=typeof o.height>"u"||o.height<0?n:o.height,g=u||0,v=l||0;if(a){var y=(d-g)*this.ratio+v,E=(h-g)*this.ratio+v,_=(c-v)/this.ratio+g,S=(f-v)/this.ratio+g,b=Math.max(c,y),A=Math.min(f,E),x=Math.max(d,_),T=Math.min(h,S);r=Fw(r,b,A),n=Fw(n,x,T)}else r=Fw(r,c,f),n=Fw(n,d,h);return{newWidth:r,newHeight:n}},t.prototype.setBoundingClientRect=function(){if(this.props.bounds==="parent"){var r=this.parentNode;if(r){var n=r.getBoundingClientRect();this.parentLeft=n.left,this.parentTop=n.top}}if(this.props.bounds&&typeof this.props.bounds!="string"){var o=this.props.bounds.getBoundingClientRect();this.targetLeft=o.left,this.targetTop=o.top}if(this.resizable){var i=this.resizable.getBoundingClientRect(),s=i.left,a=i.top,u=i.right,l=i.bottom;this.resizableLeft=s,this.resizableRight=u,this.resizableTop=a,this.resizableBottom=l}},t.prototype.onResizeStart=function(r,n){if(!(!this.resizable||!this.window)){var o=0,i=0;if(r.nativeEvent&&unt(r.nativeEvent)?(o=r.nativeEvent.clientX,i=r.nativeEvent.clientY):r.nativeEvent&&Bw(r.nativeEvent)&&(o=r.nativeEvent.touches[0].clientX,i=r.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var s=this.props.onResizeStart(r,n,this.resizable);if(s===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var a,u=this.window.getComputedStyle(this.resizable);if(u.flexBasis!=="auto"){var l=this.parentNode;if(l){var c=this.window.getComputedStyle(l).flexDirection;this.flexDir=c.startsWith("row")?"row":"column",a=u.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var f={original:{x:o,y:i,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:Ol(Ol({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(r.target).cursor||"auto"}),direction:n,flexBasis:a};this.setState(f)}},t.prototype.onMouseMove=function(r){var n=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&Bw(r))try{r.preventDefault(),r.stopPropagation()}catch{}var o=this.props,i=o.maxWidth,s=o.maxHeight,a=o.minWidth,u=o.minHeight,l=Bw(r)?r.touches[0].clientX:r.clientX,c=Bw(r)?r.touches[0].clientY:r.clientY,f=this.state,d=f.direction,h=f.original,g=f.width,v=f.height,y=this.getParentSize(),E=lnt(y,this.window.innerWidth,this.window.innerHeight,i,s,a,u);i=E.maxWidth,s=E.maxHeight,a=E.minWidth,u=E.minHeight;var _=this.calculateNewSizeFromDirection(l,c),S=_.newHeight,b=_.newWidth,A=this.calculateNewMaxFromBoundary(i,s);this.props.snap&&this.props.snap.x&&(b=FJ(b,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(S=FJ(S,this.props.snap.y,this.props.snapGap));var x=this.calculateNewSizeFromAspectRatio(b,S,{width:A.maxWidth,height:A.maxHeight},{width:a,height:u});if(b=x.newWidth,S=x.newHeight,this.props.grid){var T=DJ(b,this.props.grid[0]),N=DJ(S,this.props.grid[1]),I=this.props.snapGap||0;b=I===0||Math.abs(T-b)<=I?T:b,S=I===0||Math.abs(N-S)<=I?N:S}var R={width:b-h.width,height:S-h.height};if(g&&typeof g=="string"){if(g.endsWith("%")){var D=b/y.width*100;b=D+"%"}else if(g.endsWith("vw")){var L=b/this.window.innerWidth*100;b=L+"vw"}else if(g.endsWith("vh")){var M=b/this.window.innerHeight*100;b=M+"vh"}}if(v&&typeof v=="string"){if(v.endsWith("%")){var D=S/y.height*100;S=D+"%"}else if(v.endsWith("vw")){var L=S/this.window.innerWidth*100;S=L+"vw"}else if(v.endsWith("vh")){var M=S/this.window.innerHeight*100;S=M+"vh"}}var q={width:this.createSizeForCssProperty(b,"width"),height:this.createSizeForCssProperty(S,"height")};this.flexDir==="row"?q.flexBasis=q.width:this.flexDir==="column"&&(q.flexBasis=q.height),li.flushSync(function(){n.setState(q)}),this.props.onResize&&this.props.onResize(r,d,this.resizable,R)}},t.prototype.onMouseUp=function(r){var n=this.state,o=n.isResizing,i=n.direction,s=n.original;if(!(!o||!this.resizable)){var a={width:this.size.width-s.width,height:this.size.height-s.height};this.props.onResizeStop&&this.props.onResizeStop(r,i,this.resizable,a),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:Ol(Ol({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(r){this.setState({width:r.width,height:r.height})},t.prototype.renderResizer=function(){var r=this,n=this.props,o=n.enable,i=n.handleStyles,s=n.handleClasses,a=n.handleWrapperStyle,u=n.handleWrapperClass,l=n.handleComponent;if(!o)return null;var c=Object.keys(o).map(function(f){return o[f]!==!1?k.createElement(int,{key:f,direction:f,onResizeStart:r.onResizeStart,replaceStyles:i&&i[f],className:s&&s[f]},l&&l[f]?l[f]:null):null});return k.createElement("div",{className:u,style:a},c)},t.prototype.render=function(){var r=this,n=Object.keys(this.props).reduce(function(s,a){return cnt.indexOf(a)!==-1||(s[a]=r.props[a]),s},{}),o=Ol(Ol(Ol({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(o.flexBasis=this.state.flexBasis);var i=this.props.as||"div";return k.createElement(i,Ol({ref:this.ref,style:o,className:this.props.className},n),this.state.isResizing&&k.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(k.PureComponent),MJ;const P1e=(e,t)=>e.map(r=>({...r,level:t,children:r.children?P1e(r.children,t+1):void 0})),Qz=class Qz{constructor(){this.rows$=new at(Ns([])),this.selectedRowId$=new at(void 0),this.startTime=Number.MAX_SAFE_INTEGER,this.endTime=0}toggleRow(t){const r=this.rows$.getSnapshot(),n=r.findIndex(a=>a.id===t),o=r.get(n);if(!o)return;const{children:i}=o;if(!i)return;const s=[...r];s[n]={...o,isExpanded:!o.isExpanded},o.isExpanded?s.splice(n+1,i.length):s.splice(n+1,0,...i),this.rows$.next(Ns(s))}setRows(t){this.rows$.next(Ns(t))}setTasks(t){this.startTime=Number.MAX_SAFE_INTEGER,this.endTime=0,this.rows$.next(Ns(P1e(t,0)));const r=n=>{n.forEach(o=>{o.startTimethis.endTime&&(this.endTime=o.endTime),o.children&&r(o.children)})};r(t)}};MJ=yE,Qz[MJ]=!0;let sT=Qz;const q1e=Jo("GanttViewModel",new sT);function W1e(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t1&&(!e.frozen||e.idx+n-1<=t))return n}function fnt(e){e.stopPropagation()}function Bk(e){e==null||e.scrollIntoView({inline:"nearest",block:"nearest"})}function Zy(e){let t=!1;const r={...e,preventGridDefault(){t=!0},isGridDefaultPrevented(){return t}};return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),r}const dnt=new Set(["Unidentified","Alt","AltGraph","CapsLock","Control","Fn","FnLock","Meta","NumLock","ScrollLock","Shift","Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp","Insert","ContextMenu","Escape","Pause","Play","PrintScreen","F1","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"]);function LJ(e){return(e.ctrlKey||e.metaKey)&&e.key!=="Control"}function hnt(e){return!dnt.has(e.key)}function pnt({key:e,target:t}){var r;return e==="Tab"&&(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement)?((r=t.closest(".rdg-editor-container"))==null?void 0:r.querySelectorAll("input, textarea, select").length)===1:!1}const gnt="m1l09lto7-0-0-beta-39";function vnt(e){return e.map(({key:t,idx:r,minWidth:n,maxWidth:o})=>C.jsx("div",{className:gnt,style:{gridColumnStart:r+1,minWidth:n,maxWidth:o},"data-measuring-cell-key":t},t))}function mnt({selectedPosition:e,columns:t,rows:r}){const n=t[e.idx],o=r[e.rowIdx];return K1e(n,o)}function K1e(e,t){return e.renderEditCell!=null&&(typeof e.editable=="function"?e.editable(t):e.editable)!==!1}function ynt({rows:e,topSummaryRows:t,bottomSummaryRows:r,rowIdx:n,mainHeaderRowIdx:o,lastFrozenColumnIndex:i,column:s}){const a=(t==null?void 0:t.length)??0;if(n===o)return su(s,i,{type:"HEADER"});if(t&&n>o&&n<=a+o)return su(s,i,{type:"SUMMARY",row:t[n+a]});if(n>=0&&n{for(const T of o){const N=T.idx;if(N>y)break;const I=ynt({rows:i,topSummaryRows:s,bottomSummaryRows:a,rowIdx:E,mainHeaderRowIdx:l,lastFrozenColumnIndex:g,column:T});if(I&&y>N&&yx.level+l,A=()=>{if(t){let T=n[y].parent;for(;T!==void 0;){const N=b(T);if(E===N){y=T.idx+T.colSpan;break}T=T.parent}}else if(e){let T=n[y].parent,N=!1;for(;T!==void 0;){const I=b(T);if(E>=I){y=T.idx,E=I,N=!0;break}T=T.parent}N||(y=f,E=d)}};if(v(h)&&(S(t),E=N&&(E=I,y=T.idx),T=T.parent}}return{idx:y,rowIdx:E}}function _nt({maxColIdx:e,minRowIdx:t,maxRowIdx:r,selectedPosition:{rowIdx:n,idx:o},shiftKey:i}){return i?o===0&&n===t:o===e&&n===r}const Ent="c1wupbe7-0-0-beta-39",G1e=`rdg-cell ${Ent}`,Snt="cd0kgiy7-0-0-beta-39",wnt=`rdg-cell-frozen ${Snt}`,knt="c1730fa47-0-0-beta-39",Ant=`rdg-cell-frozen-last ${knt}`;function V1e(e,t){return t!==void 0?{"--rdg-grid-row-start":e,"--rdg-row-height":`${t}px`}:{"--rdg-grid-row-start":e}}function U1e(e,t,r){const n=t+1,o=`calc(${r-1} * var(--rdg-header-row-height))`;return e.parent===void 0?{insetBlockStart:0,gridRowStart:1,gridRowEnd:n,paddingBlockStart:o}:{insetBlockStart:`calc(${t-r} * var(--rdg-header-row-height))`,gridRowStart:n-r,gridRowEnd:n,paddingBlockStart:o}}function bE(e,t=1){const r=e.idx+1;return{gridColumnStart:r,gridColumnEnd:r+t,insetInlineStart:e.frozen?`var(--rdg-frozen-left-${e.idx})`:void 0}}function z9(e,...t){return Of(G1e,...t,e.frozen&&wnt,e.isLastFrozenColumn&&Ant)}const{min:o_,max:aT,round:lbt,floor:jJ,sign:Tnt,abs:xnt}=Math;function zJ(e){if(typeof e!="function")throw new Error("Please specify the rowKeyGetter prop to use selection")}function Y1e(e,{minWidth:t,maxWidth:r}){return e=aT(e,t),typeof r=="number"&&r>=t?o_(e,r):e}function X1e(e,t){return e.parent===void 0?t:e.level-e.parent.level}const Int="c1hs68w07-0-0-beta-39",Nnt=`rdg-checkbox-label ${Int}`,Cnt="cojpd0n7-0-0-beta-39",Rnt=`rdg-checkbox-input ${Cnt}`,Ont="cwsfieb7-0-0-beta-39",Dnt=`rdg-checkbox ${Ont}`,Fnt="c1fgadbl7-0-0-beta-39",Bnt=`rdg-checkbox-label-disabled ${Fnt}`;function Mnt({onChange:e,...t}){function r(n){e(n.target.checked,n.nativeEvent.shiftKey)}return C.jsxs("label",{className:Of(Nnt,t.disabled&&Bnt),children:[C.jsx("input",{type:"checkbox",...t,className:Rnt,onChange:r}),C.jsx("div",{className:Dnt})]})}function Lnt(e){try{return e.row[e.column.key]}catch{return null}}const Q1e=k.createContext(void 0),jnt=Q1e.Provider;function Z1e(){return k.useContext(Q1e)}const znt=k.createContext(void 0),J1e=znt.Provider,Hnt=k.createContext(void 0),$nt=Hnt.Provider,HJ="select-row",Pnt="auto",qnt=50;function Wnt({rawColumns:e,defaultColumnOptions:t,measuredColumnWidths:r,resizedColumnWidths:n,viewportWidth:o,scrollLeft:i,enableVirtualization:s}){const a=(t==null?void 0:t.width)??Pnt,u=(t==null?void 0:t.minWidth)??qnt,l=(t==null?void 0:t.maxWidth)??void 0,c=(t==null?void 0:t.renderCell)??Lnt,f=(t==null?void 0:t.sortable)??!1,d=(t==null?void 0:t.resizable)??!1,h=(t==null?void 0:t.draggable)??!1,{columns:g,colSpanColumns:v,lastFrozenColumnIndex:y,headerRowsCount:E}=k.useMemo(()=>{let N=-1,I=1;const R=[];D(e,1);function D(M,q,z){for(const B of M){if("children"in B){const U={name:B.name,parent:z,idx:-1,colSpan:0,level:0,headerCellClass:B.headerCellClass};D(B.children,q+1,U);continue}const P=B.frozen??!1,K={...B,parent:z,idx:0,level:0,frozen:P,isLastFrozenColumn:!1,width:B.width??a,minWidth:B.minWidth??u,maxWidth:B.maxWidth??l,sortable:B.sortable??f,resizable:B.resizable??d,draggable:B.draggable??h,renderCell:B.renderCell??c};R.push(K),P&&N++,q>I&&(I=q)}}R.sort(({key:M,frozen:q},{key:z,frozen:B})=>M===HJ?-1:z===HJ?1:q?B?0:-1:B?1:0);const L=[];return R.forEach((M,q)=>{M.idx=q,ehe(M,q,0),M.colSpan!=null&&L.push(M)}),N!==-1&&(R[N].isLastFrozenColumn=!0),{columns:R,colSpanColumns:L,lastFrozenColumnIndex:N,headerRowsCount:I}},[e,a,u,l,c,d,f,h]),{templateColumns:_,layoutCssVars:S,totalFrozenColumnWidth:b,columnMetrics:A}=k.useMemo(()=>{const N=new Map;let I=0,R=0;const D=[];for(const M of g){let q=n.get(M.key)??r.get(M.key)??M.width;typeof q=="number"?q=Y1e(q,M):q=M.minWidth,D.push(`${q}px`),N.set(M,{width:q,left:I}),I+=q}if(y!==-1){const M=N.get(g[y]);R=M.left+M.width}const L={};for(let M=0;M<=y;M++){const q=g[M];L[`--rdg-frozen-left-${q.idx}`]=`${N.get(q).left}px`}return{templateColumns:D,layoutCssVars:L,totalFrozenColumnWidth:R,columnMetrics:N}},[r,n,g,y]),[x,T]=k.useMemo(()=>{if(!s)return[0,g.length-1];const N=i+b,I=i+o,R=g.length-1,D=o_(y+1,R);if(N>=I)return[D,D];let L=D;for(;LN)break;L++}let M=L;for(;M=I)break;M++}const q=aT(D,L-1),z=o_(R,M+1);return[q,z]},[A,g,y,i,b,o,s]);return{columns:g,colSpanColumns:v,colOverscanStartIdx:x,colOverscanEndIdx:T,templateColumns:_,layoutCssVars:S,headerRowsCount:E,lastFrozenColumnIndex:y,totalFrozenColumnWidth:b}}function ehe(e,t,r){if(r"u"?k.useEffect:k.useLayoutEffect;function Knt(e,t,r,n,o,i,s,a,u,l){const c=k.useRef(o),f=e.length===t.length,d=f&&o!==c.current,h=[...r],g=[];for(const{key:_,idx:S,width:b}of t)typeof b=="string"&&(d||!s.has(_))&&!i.has(_)&&(h[S]=b,g.push(_));const v=h.join(" ");Yg(()=>{c.current=o,y(g)});function y(_){_.length!==0&&u(S=>{const b=new Map(S);let A=!1;for(const x of _){const T=$J(n,x);A||(A=T!==S.get(x)),T===void 0?b.delete(x):b.set(x,T)}return A?b:S})}function E(_,S){const{key:b}=_,A=[...r],x=[];for(const{key:N,idx:I,width:R}of t)if(b===N){const D=typeof S=="number"?`${S}px`:S;A[I]=D}else f&&typeof R=="string"&&!i.has(N)&&(A[I]=R,x.push(N));n.current.style.gridTemplateColumns=A.join(" ");const T=typeof S=="number"?S:$J(n,b);li.flushSync(()=>{a(N=>{const I=new Map(N);return I.set(b,T),I}),y(x)}),l==null||l(_.idx,T)}return{gridTemplateColumns:v,handleColumnResize:E}}function $J(e,t){const r=`[data-measuring-cell-key="${CSS.escape(t)}"]`,n=e.current.querySelector(r);return n==null?void 0:n.getBoundingClientRect().width}function Gnt(){const e=k.useRef(null),[t,r]=k.useState(1),[n,o]=k.useState(1);return Yg(()=>{const{ResizeObserver:i}=window;if(i==null)return;const{clientWidth:s,clientHeight:a,offsetWidth:u,offsetHeight:l}=e.current,{width:c,height:f}=e.current.getBoundingClientRect(),d=c-u+s,h=f-l+a;r(d),o(h);const g=new i(v=>{const y=v[0].contentBoxSize[0];li.flushSync(()=>{r(y.inlineSize),o(y.blockSize)})});return g.observe(e.current),()=>{g.disconnect()}},[]),[e,t,n]}function Ua(e){const t=k.useRef(e);k.useEffect(()=>{t.current=e});const r=k.useCallback((...n)=>{t.current(...n)},[]);return e&&r}function H9(e){const[t,r]=k.useState(!1);t&&!e&&r(!1);function n(i){i.target!==i.currentTarget&&r(!0)}return{tabIndex:e&&!t?0:-1,childTabIndex:e?0:-1,onFocus:e?n:void 0}}function Vnt({columns:e,colSpanColumns:t,rows:r,topSummaryRows:n,bottomSummaryRows:o,colOverscanStartIdx:i,colOverscanEndIdx:s,lastFrozenColumnIndex:a,rowOverscanStartIdx:u,rowOverscanEndIdx:l}){const c=k.useMemo(()=>{if(i===0)return 0;let f=i;const d=(h,g)=>g!==void 0&&h+g>i?(f=h,!0):!1;for(const h of t){const g=h.idx;if(g>=f||d(g,su(h,a,{type:"HEADER"})))break;for(let v=u;v<=l;v++){const y=r[v];if(d(g,su(h,a,{type:"ROW",row:y})))break}if(n!=null){for(const v of n)if(d(g,su(h,a,{type:"SUMMARY",row:v})))break}if(o!=null){for(const v of o)if(d(g,su(h,a,{type:"SUMMARY",row:v})))break}}return f},[u,l,r,n,o,i,a,t]);return k.useMemo(()=>{const f=[];for(let d=0;d<=s;d++){const h=e[d];d{if(typeof t=="number")return{totalRowHeight:t*e.length,gridTemplateRows:` repeat(${e.length}, ${t}px)`,getRowTop:y=>y*t,getRowHeight:()=>t,findRowIdx:y=>jJ(y/t)};let d=0,h=" ";const g=e.map(y=>{const E=t(y),_={top:d,height:E};return h+=`${E}px `,d+=E,_}),v=y=>aT(0,o_(e.length-1,y));return{totalRowHeight:d,gridTemplateRows:h,getRowTop:y=>g[v(y)].top,getRowHeight:y=>g[v(y)].height,findRowIdx(y){let E=0,_=g.length-1;for(;E<=_;){const S=E+jJ((_-E)/2),b=g[S].top;if(b===y)return S;if(by&&(_=S-1),E>_)return _}return 0}}},[t,e]);let c=0,f=e.length-1;if(o){const h=l(n),g=l(n+r);c=aT(0,h-4),f=o_(e.length-1,g+4)}return{rowOverscanStartIdx:c,rowOverscanEndIdx:f,totalRowHeight:i,gridTemplateRows:s,getRowTop:a,getRowHeight:u,findRowIdx:l}}const Ynt="cadd3bp7-0-0-beta-39",Xnt="ccmuez27-0-0-beta-39",Qnt=`rdg-cell-drag-handle ${Ynt}`;function Znt({gridRowStart:e,rows:t,columns:r,selectedPosition:n,latestDraggedOverRowIdx:o,isCellEditable:i,onRowsChange:s,onFill:a,onClick:u,setDragging:l,setDraggedOverRowIdx:c}){var b;const{idx:f,rowIdx:d}=n,h=r[f];function g(A){if(A.preventDefault(),A.buttons!==1)return;l(!0),window.addEventListener("mouseover",x),window.addEventListener("mouseup",T);function x(N){N.buttons!==1&&T()}function T(){window.removeEventListener("mouseover",x),window.removeEventListener("mouseup",T),l(!1),v()}}function v(){const A=o.current;if(A===void 0)return;const x=d0&&(s==null||s(I,{indexes:R,column:T}))}const _=((b=h.colSpan)==null?void 0:b.call(h,{type:"ROW",row:t[d]}))??1,S=bE(h,_);return C.jsx("div",{style:{...S,gridRowStart:e,insetInlineStart:S.insetInlineStart&&typeof h.width=="number"?`calc(${S.insetInlineStart} + ${h.width}px - var(--rdg-drag-handle-size))`:void 0},className:Of(Qnt,h.frozen&&Xnt),onClick:u,onMouseDown:g,onDoubleClick:y})}const Jnt="c1tngyp17-0-0-beta-39";function eot({column:e,colSpan:t,row:r,rowIdx:n,onRowChange:o,closeEditor:i,onKeyDown:s,navigate:a}){var E,_,S;const u=k.useRef(),l=((E=e.editorOptions)==null?void 0:E.commitOnOutsideClick)!==!1,c=Ua(()=>{h(!0,!1)});k.useEffect(()=>{if(!l)return;function b(){u.current=requestAnimationFrame(c)}return addEventListener("mousedown",b,{capture:!0}),()=>{removeEventListener("mousedown",b,{capture:!0}),f()}},[l,c]);function f(){cancelAnimationFrame(u.current)}function d(b){if(s){const A=Zy(b);if(s({mode:"EDIT",row:r,column:e,rowIdx:n,navigate(){a(b)},onClose:h},A),A.isGridDefaultPrevented())return}b.key==="Escape"?h():b.key==="Enter"?h(!0):pnt(b)&&a(b)}function h(b=!1,A=!0){b?o(r,!0,A):i(A)}function g(b,A=!1){o(b,A,A)}const{cellClass:v}=e,y=z9(e,"rdg-editor-container",typeof v=="function"?v(r):v,!((_=e.editorOptions)!=null&&_.displayCellContent)&&Jnt);return C.jsx("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":!0,className:y,style:bE(e,t),onKeyDown:d,onMouseDownCapture:f,children:e.renderEditCell!=null&&C.jsxs(C.Fragment,{children:[e.renderEditCell({column:e,row:r,onRowChange:g,onClose:h}),((S=e.editorOptions)==null?void 0:S.displayCellContent)&&e.renderCell({column:e,row:r,isCellEditable:!0,tabIndex:-1,onRowChange:g})]})})}function tot({column:e,rowIdx:t,isCellSelected:r,selectCell:n}){const{tabIndex:o,onFocus:i}=H9(r),{colSpan:s}=e,a=X1e(e,t),u=e.idx+1;function l(){n({idx:e.idx,rowIdx:t})}return C.jsx("div",{role:"columnheader","aria-colindex":u,"aria-colspan":s,"aria-rowspan":a,"aria-selected":r,tabIndex:o,className:Of(G1e,e.headerCellClass),style:{...U1e(e,t,a),gridColumnStart:u,gridColumnEnd:u+s},onFocus:i,onClick:l,children:e.name})}const rot="hizp7y17-0-0-beta-39",not="h14cojrm7-0-0-beta-39",oot=`rdg-header-sort-name ${not}`;function iot({column:e,sortDirection:t,priority:r}){return e.sortable?C.jsx(sot,{sortDirection:t,priority:r,children:e.name}):e.name}function sot({sortDirection:e,priority:t,children:r}){const n=Z1e().renderSortStatus;return C.jsxs("span",{className:rot,children:[C.jsx("span",{className:oot,children:r}),C.jsx("span",{children:n({sortDirection:e,priority:t})})]})}const aot="celq7o97-0-0-beta-39",uot="ceqw94e7-0-0-beta-39",lot=`rdg-cell-resizable ${uot}`,cot="r12jy2ca7-0-0-beta-39",fot="c1j3os1p7-0-0-beta-39",dot=`rdg-cell-dragging ${fot}`,hot="c1ui3nad7-0-0-beta-39",pot=`rdg-cell-drag-over ${hot}`;function got({column:e,colSpan:t,rowIdx:r,isCellSelected:n,onColumnResize:o,onColumnsReorder:i,sortColumns:s,onSortColumnsChange:a,selectCell:u,shouldFocusGrid:l,direction:c}){const[f,d]=k.useState(!1),[h,g]=k.useState(!1),v=c==="rtl",y=X1e(e,r),{tabIndex:E,childTabIndex:_,onFocus:S}=H9(n),b=s==null?void 0:s.findIndex(me=>me.columnKey===e.key),A=b!==void 0&&b>-1?s[b]:void 0,x=A==null?void 0:A.direction,T=A!==void 0&&s.length>1?b+1:void 0,N=x&&!T?x==="ASC"?"ascending":"descending":void 0,{sortable:I,resizable:R,draggable:D}=e,L=z9(e,e.headerCellClass,I&&aot,R&&lot,f&&dot,h&&pot),M=e.renderHeaderCell??iot;function q(me){if(me.pointerType==="mouse"&&me.buttons!==1)return;const{currentTarget:Ae,pointerId:ve}=me,we=Ae.parentElement,{right:De,left:Qe}=we.getBoundingClientRect(),Ke=v?me.clientX-Qe:De-me.clientX;function st(Ne){Ne.preventDefault();const{right:$e,left:Dt}=we.getBoundingClientRect(),$t=v?$e+Ke-Ne.clientX:Ne.clientX+Ke-Dt;$t>0&&o(e,Y1e($t,e))}function He(){Ae.removeEventListener("pointermove",st),Ae.removeEventListener("lostpointercapture",He)}Ae.setPointerCapture(ve),Ae.addEventListener("pointermove",st),Ae.addEventListener("lostpointercapture",He)}function z(me){if(a==null)return;const{sortDescendingFirst:Ae}=e;if(A===void 0){const ve={columnKey:e.key,direction:Ae?"DESC":"ASC"};a(s&&me?[...s,ve]:[ve])}else{let ve;if((Ae===!0&&x==="DESC"||Ae!==!0&&x==="ASC")&&(ve={columnKey:e.key,direction:x==="ASC"?"DESC":"ASC"}),me){const we=[...s];ve?we[b]=ve:we.splice(b,1),a(we)}else a(ve?[ve]:[])}}function B(me){u({idx:e.idx,rowIdx:r}),I&&z(me.ctrlKey||me.metaKey)}function P(){o(e,"max-content")}function K(me){S==null||S(me),l&&u({idx:0,rowIdx:r})}function U(me){(me.key===" "||me.key==="Enter")&&(me.preventDefault(),z(me.ctrlKey||me.metaKey))}function X(me){me.dataTransfer.setData("text/plain",e.key),me.dataTransfer.dropEffect="move",d(!0)}function J(){d(!1)}function ee(me){me.preventDefault(),me.dataTransfer.dropEffect="move"}function se(me){g(!1);const Ae=me.dataTransfer.getData("text/plain");Ae!==e.key&&(me.preventDefault(),i==null||i(Ae,e.key))}function pe(me){PJ(me)&&g(!0)}function _e(me){PJ(me)&&g(!1)}let Te;return D&&(Te={draggable:!0,onDragStart:X,onDragEnd:J,onDragOver:ee,onDragEnter:pe,onDragLeave:_e,onDrop:se}),C.jsxs("div",{role:"columnheader","aria-colindex":e.idx+1,"aria-colspan":t,"aria-rowspan":y,"aria-selected":n,"aria-sort":N,tabIndex:l?0:E,className:L,style:{...U1e(e,r,y),...bE(e,t)},onFocus:K,onClick:B,onKeyDown:I?U:void 0,...Te,children:[M({column:e,sortDirection:x,priority:T,tabIndex:_}),R&&C.jsx("div",{className:cot,onClick:fnt,onDoubleClick:P,onPointerDown:q})]})}function PJ(e){const t=e.relatedTarget;return!e.currentTarget.contains(t)}const vot="r1otpg647-0-0-beta-39",the=`rdg-row ${vot}`,mot="rel5gk27-0-0-beta-39",Sj="rdg-row-selected",yot="r1qymf1z7-0-0-beta-39",bot="h197vzie7-0-0-beta-39",rhe=`rdg-header-row ${bot}`;function _ot({rowIdx:e,columns:t,onColumnResize:r,onColumnsReorder:n,sortColumns:o,onSortColumnsChange:i,lastFrozenColumnIndex:s,selectedCellIdx:a,selectCell:u,shouldFocusGrid:l,direction:c}){const f=[];for(let d=0;dt&&u.parent!==void 0;)u=u.parent;if(u.level===t&&!s.has(u)){s.add(u);const{idx:l}=u;i.push(C.jsx(tot,{column:u,rowIdx:e,isCellSelected:n===l,selectCell:o},l))}}}return C.jsx("div",{role:"row","aria-rowindex":e,className:rhe,children:i})}const wot=k.memo(Sot),kot="ccpfvsn7-0-0-beta-39",Aot=`rdg-cell-copied ${kot}`,Tot="c1bmg16t7-0-0-beta-39",xot=`rdg-cell-dragged-over ${Tot}`;function Iot({column:e,colSpan:t,isCellSelected:r,isCopied:n,isDraggedOver:o,row:i,rowIdx:s,onClick:a,onDoubleClick:u,onContextMenu:l,onRowChange:c,selectCell:f,...d}){const{tabIndex:h,childTabIndex:g,onFocus:v}=H9(r),{cellClass:y}=e,E=z9(e,typeof y=="function"?y(i):y,n&&Aot,o&&xot),_=K1e(e,i);function S(N){f({rowIdx:s,idx:e.idx},N)}function b(N){if(a){const I=Zy(N);if(a({row:i,column:e,selectCell:S},I),I.isGridDefaultPrevented())return}S()}function A(N){if(l){const I=Zy(N);if(l({row:i,column:e,selectCell:S},I),I.isGridDefaultPrevented())return}S()}function x(N){if(u){const I=Zy(N);if(u({row:i,column:e,selectCell:S},I),I.isGridDefaultPrevented())return}S(!0)}function T(N){c(e,N)}return C.jsx("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":r,"aria-readonly":!_||void 0,tabIndex:h,className:E,style:bE(e,t),onClick:b,onDoubleClick:x,onContextMenu:A,onFocus:v,...d,children:e.renderCell({column:e,row:i,isCellEditable:_,tabIndex:g,onRowChange:T})})}const Not=k.memo(Iot);function Cot({className:e,rowIdx:t,gridRowStart:r,height:n,selectedCellIdx:o,isRowSelected:i,copiedCellIdx:s,draggedOverCellIdx:a,lastFrozenColumnIndex:u,row:l,viewportColumns:c,selectedCellEditor:f,onCellClick:d,onCellDoubleClick:h,onCellContextMenu:g,rowClass:v,setDraggedOverRowIdx:y,onMouseEnter:E,onRowChange:_,selectCell:S,...b},A){const x=Ua((I,R)=>{_(I,t,R)});function T(I){y==null||y(t),E==null||E(I)}e=Of(the,`rdg-row-${t%2===0?"even":"odd"}`,v==null?void 0:v(l,t),e,o===-1&&Sj);const N=[];for(let I=0;I{Bk(o.current)}),Yg(()=>{function i(){n(null)}const s=new IntersectionObserver(i,{root:r,threshold:1});return s.observe(o.current),()=>{s.disconnect()}},[r,n]),C.jsx("div",{ref:o,style:{gridColumn:e===void 0?"1/-1":e+1,gridRow:t===void 0?"1/-1":t+2}})}const Fot="a1mygwml7-0-0-beta-39",Bot=`rdg-sort-arrow ${Fot}`;function Mot({sortDirection:e,priority:t}){return C.jsxs(C.Fragment,{children:[Lot({sortDirection:e}),jot({priority:t})]})}function Lot({sortDirection:e}){return e===void 0?null:C.jsx("svg",{viewBox:"0 0 12 8",width:"12",height:"8",className:Bot,"aria-hidden":!0,children:C.jsx("path",{d:e==="ASC"?"M0 8 6 0 12 8":"M0 0 6 8 12 0"})})}function jot({priority:e}){return e}const zot="r104f42s7-0-0-beta-39",Hot=`rdg ${zot}`,$ot="v7ly7s7-0-0-beta-39",Pot=`rdg-viewport-dragging ${$ot}`,qot="fc4f4zb7-0-0-beta-39",Wot="fq51q037-0-0-beta-39",Kot="s1n3hxke7-0-0-beta-39";function Got({column:e,colSpan:t,row:r,rowIdx:n,isCellSelected:o,selectCell:i}){var d;const{tabIndex:s,childTabIndex:a,onFocus:u}=H9(o),{summaryCellClass:l}=e,c=z9(e,Kot,typeof l=="function"?l(r):l);function f(){i({rowIdx:n,idx:e.idx})}return C.jsx("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":o,tabIndex:s,className:c,style:bE(e,t),onClick:f,onFocus:u,children:(d=e.renderSummaryCell)==null?void 0:d.call(e,{column:e,row:r,tabIndex:a})})}const Vot=k.memo(Got),Uot="snfqesz7-0-0-beta-39",Yot="t1jijrjz7-0-0-beta-39",Xot="t14bmecc7-0-0-beta-39",Qot="b1odhhml7-0-0-beta-39",Zot=`rdg-summary-row ${Uot}`,Jot=`rdg-top-summary-row ${Yot}`;function eit({rowIdx:e,gridRowStart:t,row:r,viewportColumns:n,top:o,bottom:i,lastFrozenColumnIndex:s,selectedCellIdx:a,isTop:u,showBorder:l,selectCell:c,"aria-rowindex":f}){const d=[];for(let h=0;hnew Map),[Gt,_t]=k.useState(()=>new Map),[tt,rt]=k.useState(null),[ur,he]=k.useState(!1),[le,ae]=k.useState(void 0),[ge,Re]=k.useState(null),[je,ke,Ce]=Gnt(),{columns:Pe,colSpanColumns:ut,lastFrozenColumnIndex:vt,headerRowsCount:xt,colOverscanStartIdx:fr,colOverscanEndIdx:xr,templateColumns:Ft,layoutCssVars:Pr,totalFrozenColumnWidth:cn}=Wnt({rawColumns:r,defaultColumnOptions:v,measuredColumnWidths:Gt,resizedColumnWidths:Dt,scrollLeft:Ne,viewportWidth:ke,enableVirtualization:Qe}),Jt=(o==null?void 0:o.length)??0,It=(i==null?void 0:i.length)??0,qr=Jt+It,Ir=xt+Jt,Wr=xt-1,pr=-Ir,Rt=pr+Wr,ft=n.length+It-1,[Ue,Kr]=k.useState(()=>({idx:-1,rowIdx:pr-1,mode:"SELECT"})),xo=k.useRef(Ue),zr=k.useRef(le),xu=k.useRef(-1),ps=k.useRef(null),po=k.useRef(!1),Fa=pe==="treegrid",Me=xt*Te,Y=Ce-Me-qr*me,Q=f!=null&&d!=null,H=Ke==="rtl",$=H?"ArrowRight":"ArrowLeft",F=H?"ArrowLeft":"ArrowRight",Z=J??xt+n.length+qr,ie=k.useMemo(()=>({renderCheckbox:we,renderSortStatus:ve}),[we,ve]),ue=k.useMemo(()=>{const{length:Ve}=n;return Ve!==0&&f!=null&&s!=null&&f.size>=Ve&&n.every(Je=>f.has(s(Je)))},[n,f,s]),{rowOverscanStartIdx:ne,rowOverscanEndIdx:ye,totalRowHeight:qe,gridTemplateRows:kt,getRowTop:Nt,getRowHeight:Et,findRowIdx:yt}=Unt({rows:n,rowHeight:_e,clientHeight:Y,scrollTop:st,enableVirtualization:Qe}),qt=Vnt({columns:Pe,colSpanColumns:ut,colOverscanStartIdx:fr,colOverscanEndIdx:xr,lastFrozenColumnIndex:vt,rowOverscanStartIdx:ne,rowOverscanEndIdx:ye,rows:n,topSummaryRows:o,bottomSummaryRows:i}),{gridTemplateColumns:Hr,handleColumnResize:Ct}=Knt(Pe,qt,Ft,je,ke,Dt,Gt,$t,_t,x),_n=Fa?-1:0,go=Pe.length-1,ji=Ep(Ue),Iu=Sp(Ue),Ps=Ua(Ct),Nc=Ua(T),Nu=Ua(g),no=Ua(y),Ba=Ua(E),Cc=Ua(_),Cu=Ua(Oc),Rc=Ua(El),Ru=Ua(Uf),Gf=Ua(({idx:Ve,rowIdx:Je})=>{Uf({rowIdx:pr+Je-1,idx:Ve})});Yg(()=>{if(!ji||i3(Ue,xo.current)){xo.current=Ue;return}xo.current=Ue,Ue.idx===-1&&(ps.current.focus({preventScroll:!0}),Bk(ps.current))}),Yg(()=>{po.current&&(po.current=!1,Qv())}),k.useImperativeHandle(t,()=>({element:je.current,scrollToCell({idx:Ve,rowIdx:Je}){const Pt=Ve!==void 0&&Ve>vt&&Ve{ae(Ve),zr.current=Ve},[]);function Oc(Ve){if(!d)return;if(zJ(s),Ve.type==="HEADER"){const Zr=new Set(f);for(const tn of n){const Io=s(tn);Ve.checked?Zr.add(Io):Zr.delete(Io)}d(Zr);return}const{row:Je,checked:Pt,isShiftClick:Bt}=Ve,bt=new Set(f),At=s(Je);if(Pt){bt.add(At);const Zr=xu.current,tn=n.indexOf(Je);if(xu.current=tn,Bt&&Zr!==-1&&Zr!==tn){const Io=Tnt(tn-Zr);for(let Ma=Zr+Io;Ma!==tn;Ma+=Io){const Fc=n[Ma];bt.add(s(Fc))}}}else bt.delete(At),xu.current=-1;d(bt)}function Dc(Ve){const{idx:Je,rowIdx:Pt,mode:Bt}=Ue;if(Bt==="EDIT")return;if(S&&B1(Pt)){const tn=n[Pt],Io=Zy(Ve);if(S({mode:"SELECT",row:tn,column:Pe[Je],rowIdx:Pt,selectCell:Uf},Io),Io.isGridDefaultPrevented())return}if(!(Ve.target instanceof Element))return;const bt=Ve.target.closest(".rdg-cell")!==null,At=Fa&&Ve.target===ps.current;if(!bt&&!At)return;const{keyCode:Zr}=Ve;if(Iu&&(R!=null||I!=null)&&LJ(Ve)){if(Zr===67){Yv();return}if(Zr===86){Vf();return}}switch(Ve.key){case"Escape":rt(null);return;case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Tab":case"Home":case"End":case"PageUp":case"PageDown":$E(Ve);break;default:HE(Ve);break}}function _l(Ve){const{scrollTop:Je,scrollLeft:Pt}=Ve.currentTarget;li.flushSync(()=>{He(Je),$e(xnt(Pt))}),A==null||A(Ve)}function El(Ve,Je,Pt){if(typeof a!="function"||Pt===n[Je])return;const Bt=[...n];Bt[Je]=Pt,a(Bt,{indexes:[Je],column:Ve})}function _p(){Ue.mode==="EDIT"&&El(Pe[Ue.idx],Ue.rowIdx,Ue.row)}function Yv(){const{idx:Ve,rowIdx:Je}=Ue,Pt=n[Je],Bt=Pe[Ve].key;rt({row:Pt,columnKey:Bt}),I==null||I({sourceRow:Pt,sourceColumnKey:Bt})}function Vf(){if(!R||!a||tt===null||!M1(Ue))return;const{idx:Ve,rowIdx:Je}=Ue,Pt=Pe[Ve],Bt=n[Je],bt=R({sourceRow:tt.row,sourceColumnKey:tt.columnKey,targetRow:Bt,targetColumnKey:Pt.key});El(Pt,Je,bt)}function HE(Ve){if(!Iu)return;const Je=n[Ue.rowIdx],{key:Pt,shiftKey:Bt}=Ve;if(Q&&Bt&&Pt===" "){zJ(s);const bt=s(Je);Oc({type:"ROW",row:Je,checked:!f.has(bt),isShiftClick:!1}),Ve.preventDefault();return}M1(Ue)&&hnt(Ve)&&Kr(({idx:bt,rowIdx:At})=>({idx:bt,rowIdx:At,mode:"EDIT",row:Je,originalRow:Je}))}function Xv(Ve){return Ve>=_n&&Ve<=go}function B1(Ve){return Ve>=0&&Ve=pr&&Je<=ft&&Xv(Ve)}function Sp({idx:Ve,rowIdx:Je}){return B1(Je)&&Xv(Ve)}function M1(Ve){return Sp(Ve)&&mnt({columns:Pe,rows:n,selectedPosition:Ve})}function Uf(Ve,Je){if(!Ep(Ve))return;_p();const Pt=n[Ve.rowIdx],Bt=i3(Ue,Ve);Je&&M1(Ve)?Kr({...Ve,mode:"EDIT",row:Pt,originalRow:Pt}):Bt?Bk(WJ(je.current)):(po.current=!0,Kr({...Ve,mode:"SELECT"})),b&&!Bt&&b({rowIdx:Ve.rowIdx,row:Pt,column:Pe[Ve.idx]})}function C5(Ve,Je,Pt){const{idx:Bt,rowIdx:bt}=Ue,At=ji&&Bt===-1;switch(Ve){case"ArrowUp":return{idx:Bt,rowIdx:bt-1};case"ArrowDown":return{idx:Bt,rowIdx:bt+1};case $:return{idx:Bt-1,rowIdx:bt};case F:return{idx:Bt+1,rowIdx:bt};case"Tab":return{idx:Bt+(Pt?-1:1),rowIdx:bt};case"Home":return At?{idx:Bt,rowIdx:pr}:{idx:0,rowIdx:Je?pr:bt};case"End":return At?{idx:Bt,rowIdx:ft}:{idx:go,rowIdx:Je?ft:bt};case"PageUp":{if(Ue.rowIdx===pr)return Ue;const Zr=Nt(bt)+Et(bt)-Y;return{idx:Bt,rowIdx:Zr>0?yt(Zr):0}}case"PageDown":{if(Ue.rowIdx>=n.length)return Ue;const Zr=Nt(bt)+Y;return{idx:Bt,rowIdx:ZrVe&&Ve>=le)?Ue.idx:void 0}function Qv(){const Ve=WJ(je.current);if(Ve===null)return;Bk(Ve),(Ve.querySelector('[tabindex="0"]')??Ve).focus({preventScroll:!0})}function O5(){if(!(N==null||Ue.mode==="EDIT"||!Sp(Ue)))return C.jsx(Znt,{gridRowStart:Ir+Ue.rowIdx+1,rows:n,columns:Pe,selectedPosition:Ue,isCellEditable:M1,latestDraggedOverRowIdx:zr,onRowsChange:a,onClick:Qv,onFill:N,setDragging:he,setDraggedOverRowIdx:bl})}function D5(Ve){if(Ue.rowIdx!==Ve||Ue.mode==="SELECT")return;const{idx:Je,row:Pt}=Ue,Bt=Pe[Je],bt=su(Bt,vt,{type:"ROW",row:Pt}),At=tn=>{po.current=tn,Kr(({idx:Io,rowIdx:Ma})=>({idx:Io,rowIdx:Ma,mode:"SELECT"}))},Zr=(tn,Io,Ma)=>{Io?li.flushSync(()=>{El(Bt,Ue.rowIdx,tn),At(Ma)}):Kr(Fc=>({...Fc,row:tn}))};return n[Ue.rowIdx]!==Ue.originalRow&&At(!1),C.jsx(eot,{column:Bt,colSpan:bt,row:Pt,rowIdx:Ve,onRowChange:Zr,closeEditor:At,onKeyDown:S,navigate:$E},Bt.key)}function L1(Ve){const Je=Ue.idx===-1?void 0:Pe[Ue.idx];return Je!==void 0&&Ue.rowIdx===Ve&&!qt.includes(Je)?Ue.idx>xr?[...qt,Je]:[...qt.slice(0,vt+1),Je,...qt.slice(vt+1)]:qt}function F5(){const Ve=[],{idx:Je,rowIdx:Pt}=Ue,Bt=Iu&&Ptye?ye+1:ye;for(let At=Bt;At<=bt;At++){const Zr=At===ne-1||At===ye+1,tn=Zr?Pt:At;let Io=qt;const Ma=Je===-1?void 0:Pe[Je];Ma!==void 0&&(Zr?Io=[Ma]:Io=L1(tn));const Fc=n[tn],B5=Ir+tn+1;let wp=tn,Zv=!1;typeof s=="function"&&(wp=s(Fc),Zv=(f==null?void 0:f.has(wp))??!1),Ve.push(Ae(wp,{"aria-rowindex":Ir+tn+1,"aria-selected":Q?Zv:void 0,rowIdx:tn,row:Fc,viewportColumns:Io,isRowSelected:Zv,onCellClick:no,onCellDoubleClick:Ba,onCellContextMenu:Cc,rowClass:z,gridRowStart:B5,height:Et(tn),copiedCellIdx:tt!==null&&tt.row===Fc?Pe.findIndex(No=>No.key===tt.columnKey):void 0,selectedCellIdx:Pt===tn?Je:void 0,draggedOverCellIdx:R5(tn),setDraggedOverRowIdx:ur?bl:void 0,lastFrozenColumnIndex:vt,onRowChange:Rc,selectCell:Ru,selectedCellEditor:D5(tn)}))}return Ve}(Ue.idx>go||Ue.rowIdx>ft)&&(Kr({idx:-1,rowIdx:pr-1,mode:"SELECT"}),bl(void 0));let Yf=`repeat(${xt}, ${Te}px)`;Jt>0&&(Yf+=` repeat(${Jt}, ${me}px)`),n.length>0&&(Yf+=kt),It>0&&(Yf+=` repeat(${It}, ${me}px)`);const PE=Ue.idx===-1&&Ue.rowIdx!==pr-1;return C.jsxs("div",{role:pe,"aria-label":K,"aria-labelledby":U,"aria-describedby":X,"aria-multiselectable":Q?!0:void 0,"aria-colcount":Pe.length,"aria-rowcount":Z,className:Of(Hot,M,ur&&Pot),style:{...q,scrollPaddingInlineStart:Ue.idx>vt||(ge==null?void 0:ge.idx)!==void 0?`${cn}px`:void 0,scrollPaddingBlock:B1(Ue.rowIdx)||(ge==null?void 0:ge.rowIdx)!==void 0?`${Me+Jt*me}px ${It*me}px`:void 0,gridTemplateColumns:Hr,gridTemplateRows:Yf,"--rdg-header-row-height":`${Te}px`,"--rdg-summary-row-height":`${me}px`,"--rdg-sign":H?-1:1,...Pr},dir:Ke,ref:je,onScroll:_l,onKeyDown:Dc,"data-testid":ee,children:[C.jsx(jnt,{value:ie,children:C.jsxs($nt,{value:Cu,children:[C.jsxs(J1e,{value:ue,children:[Array.from({length:Wr},(Ve,Je)=>C.jsx(wot,{rowIdx:Je+1,level:-Wr+Je,columns:L1(pr+Je),selectedCellIdx:Ue.rowIdx===pr+Je?Ue.idx:void 0,selectCell:Gf},Je)),C.jsx(Eot,{rowIdx:xt,columns:L1(Rt),onColumnResize:Ps,onColumnsReorder:Nc,sortColumns:h,onSortColumnsChange:Nu,lastFrozenColumnIndex:vt,selectedCellIdx:Ue.rowIdx===Rt?Ue.idx:void 0,selectCell:Gf,shouldFocusGrid:!ji,direction:Ke})]}),n.length===0&&De?De:C.jsxs(C.Fragment,{children:[o==null?void 0:o.map((Ve,Je)=>{const Pt=xt+1+Je,Bt=Rt+1+Je,bt=Ue.rowIdx===Bt,At=Me+me*Je;return C.jsx(qJ,{"aria-rowindex":Pt,rowIdx:Bt,gridRowStart:Pt,row:Ve,top:At,bottom:void 0,viewportColumns:L1(Bt),lastFrozenColumnIndex:vt,selectedCellIdx:bt?Ue.idx:void 0,isTop:!0,showBorder:Je===Jt-1,selectCell:Ru},Je)}),F5(),i==null?void 0:i.map((Ve,Je)=>{const Pt=Ir+n.length+Je+1,Bt=n.length+Je,bt=Ue.rowIdx===Bt,At=Y>qe?Ce-me*(i.length-Je):void 0,Zr=At===void 0?me*(i.length-1-Je):void 0;return C.jsx(qJ,{"aria-rowindex":Z-It+Je+1,rowIdx:Bt,gridRowStart:Pt,row:Ve,top:At,bottom:Zr,viewportColumns:L1(Bt),lastFrozenColumnIndex:vt,selectedCellIdx:bt?Ue.idx:void 0,isTop:!1,showBorder:Je===0,selectCell:Ru},Je)})]})]})}),O5(),vnt(qt),Fa&&C.jsx("div",{ref:ps,tabIndex:PE?0:-1,className:Of(qot,PE&&[mot,vt!==-1&&yot],!B1(Ue.rowIdx)&&Wot),style:{gridRowStart:Ue.rowIdx+Ir+1}}),ge!==null&&C.jsx(Dot,{scrollToPosition:ge,setScrollToCellPosition:Re,gridElement:je.current})]})}function WJ(e){return e.querySelector(':scope > [role="row"] > [tabindex="0"]')}function i3(e,t){return e.idx===t.idx&&e.rowIdx===t.rowIdx}const rit=k.forwardRef(tit),_E=()=>{const[e]=aet(q1e);return e},nit=()=>{const e=_E();return Fi(e.rows$).toArray()},oit=()=>{const e=_E();return k.useCallback(t=>{e.toggleRow(t)},[e])},iit=()=>{const e=_E();return[e.startTime,e.endTime]},sit=()=>{const e=_E();return Fi(e.selectedRowId$)},ait=()=>{const e=_E();return vj(e.selectedRowId$)},uit=({row:e})=>{const[t,r]=iit(),n=`${(e.startTime-t)*100/(r-t)}%`,o=`${(r-e.endTime)*100/(r-t)}%`,i=e.children&&e.children.length>0,s=e.isExpanded;return C.jsx("div",{style:{marginLeft:n,marginRight:o,height:"100%",marginTop:4,marginBottom:4,display:"flex"},children:i&&!s?C.jsx(C.Fragment,{children:(e.children??[]).map((a,u)=>{const l=`${(a.endTime-a.startTime)*100/(e.endTime-e.startTime)}%`;return C.jsx("div",{style:{backgroundColor:a.color??`rgba(0, 120, 212, ${1-.2*u})`,width:l}},a.id)})}):C.jsx("div",{style:{backgroundColor:e.color??"rgba(0, 120, 212, 1)",width:"100%"}})})},lit=({row:e})=>{const t=e.children!==void 0&&e.children.length>0,r=e.isExpanded,n=oit(),o=k.useCallback(i=>{i.preventDefault(),i.stopPropagation(),n(e.id)},[e.id,n]);return C.jsxs("div",{style:{display:"flex",gap:4,paddingLeft:e.level*24},children:[t?C.jsx("div",{onClick:o,role:"button",children:r?"▼":"▶"}):C.jsx(C.Fragment,{}),C.jsx("div",{children:e.node_name||e.name})]})},cit=[{key:"name",name:"node name",resizable:!0,width:320,renderCell({row:e}){return C.jsx(lit,{row:e})}},{key:"duration",name:"duration",resizable:!0,width:60,renderHeaderCell(){return C.jsx("div",{style:{textAlign:"right"},children:"duration"})},renderCell({row:e}){return C.jsxs("div",{style:{textAlign:"right"},children:[Math.round((e.endTime-e.startTime)*1e3).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")," ","ms"]})}},{key:"ganttChart",name:"gantt-chart",renderCell({row:e}){return C.jsx(uit,{row:e})},renderHeaderCell:()=>C.jsx(C.Fragment,{})}],fit=({styles:e,getColumns:t=r=>r})=>{const r=nit(),n=ait(),o=sit(),i=k.useCallback(u=>{const{row:l}=u;n(l.id)},[n]),s=vr(e==null?void 0:e.grid,{borderBottom:"none",borderRight:"none"}),a=k.useCallback(u=>vr(o===u.id?e==null?void 0:e.selectedRow:""),[o,e==null?void 0:e.selectedRow]);return C.jsx(rit,{rows:r,columns:t(cit),onCellClick:i,className:s,rowClass:a})},dit=({viewModel:e,children:t})=>{const r=net({name:"gantt-wrapper"}),n=k.useCallback(o=>{o.register(q1e,{useValue:e})},[e]);return C.jsx(r,{onInitialize:n,children:t})};var EM=(e=>(e.Light="rdg-light",e.Dark="rdg-dark",e))(EM||{});const hit=({viewModel:e,styles:t,getColumns:r})=>C.jsx(dit,{viewModel:e,children:C.jsx(fit,{styles:t,getColumns:r})}),pit=({trace:e,JSONView:t})=>{const r=Mi({root:["api-call-detail",{padding:8,width:"100%",height:"100%",display:"flex",flexDirection:"column"}],header:["api-call-detail-header",{fontWeight:600,fontSize:20,lineHeight:28,marginBottom:16}],section:["api-call-detail-section",{display:"flex",flexDirection:"column",width:"85%",height:"auto",boxShadow:"rgba(0, 0, 0, 0.18) 0px 1.6px 3.6px 0px, rgba(0, 0, 0, 0.22) 0px 0.3px 0.9px 0px",marginBottom:16}],sectionTitle:["api-call-detail-section-title",{fontWeight:500,fontSize:16,marginTop:8,marginBottom:8,lineHeight:20,borderBottom:"1px inset #ccc",padding:"9px 12px"}],sectionContent:["api-call-detail-section-content",{padding:16,overflow:"auto",maxHeight:"600px"}],fieldTitle:["api-call-detail-field-title",{fontWeight:500,fontSize:14,lineHeight:20}],overviewContainer:["api-call-detail-overview-container",{display:"flex",flexDirection:"row"}],overviewColumn:["api-call-detail-overview-column",{display:"flex",flexGrow:1,flexDirection:"column"}]}),n=e.node_name??e.name??"",o=U8(e),i=e.inputs??{},s=e.output??{};return C.jsxs("div",{className:r.root,children:[C.jsx("div",{className:r.header,children:n}),C.jsxs("div",{className:r.section,children:[C.jsx("div",{className:r.sectionTitle,children:"Overview"}),C.jsx("div",{className:r.sectionContent,children:C.jsxs("div",{className:r.overviewContainer,children:[C.jsxs("div",{className:r.overviewColumn,children:[C.jsx("div",{className:r.fieldTitle,children:"total tokens"}),C.jsx("div",{children:Wy(o.totalTokens)}),C.jsx("div",{className:r.fieldTitle,children:"prompt tokens"}),C.jsx("div",{children:Wy(o.promptTokens)}),C.jsx("div",{className:r.fieldTitle,children:"completion tokens"}),C.jsx("div",{children:Wy(o.completionTokens)})]}),C.jsxs("div",{className:r.overviewColumn,children:[C.jsx("div",{className:r.fieldTitle,children:"duration"}),C.jsx("div",{children:e.end_time&&e.start_time?`${Math.round((e.end_time-e.start_time)*1e3).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")} ms`:"N/A"}),C.jsx("div",{className:r.fieldTitle,children:"started at"}),C.jsx("div",{children:e.start_time?bG(e.start_time*1e3):"N/A"}),C.jsx("div",{className:r.fieldTitle,children:"finished at"}),C.jsx("div",{children:e.end_time?bG(e.end_time*1e3):"N/A"})]})]})})]}),C.jsxs("div",{className:r.section,children:[C.jsx("div",{className:r.sectionTitle,children:"Inputs"}),C.jsx("div",{className:r.sectionContent,children:C.jsx(t,{src:i})})]}),C.jsxs("div",{className:r.section,children:[C.jsx("div",{className:r.sectionTitle,children:"Outputs"}),C.jsx("div",{className:r.sectionContent,children:C.jsx(t,{src:s})})]})]})},nhe=new Map,git=e=>{let t=0,r=0;if(e.length===0)return t;for(let n=0;ne.map(t=>{const r=ga.v4();return nhe.set(r,t),{startTime:t.start_time??performance.now(),endTime:t.end_time??performance.now(),color:wle[git(t.name??"")%vit],id:r,name:t.name??"",node_name:t.node_name??"",output:t.output??[],children:t.children?ohe(t.children):void 0}}),mit=({children:e,className:t})=>C.jsx($1e,{enable:{right:!0},className:t,defaultSize:{width:"50%",height:"100%"},children:e}),KJ=({children:e,className:t})=>C.jsx("div",{className:t,children:e}),yit=k.forwardRef(({traces:e,styles:t,isDarkMode:r=!1,classNames:n,RootContainer:o=KJ,GridContainer:i=mit,DetailContainer:s=KJ,renderDetail:a=f=>C.jsx(pit,{JSONView:d=>C.jsx("pre",{children:JSON.stringify(d)}),trace:f}),onChangeSelectedTrace:u,renderUnselectedHint:l=()=>C.jsx("div",{children:"Click on a row to see details"})},c)=>{const f=k.useMemo(()=>e.reduce((x,T)=>[...x,...ohe(T)],[]),[e]),d=k.useMemo(()=>new sT,[]);k.useEffect(()=>{d.setTasks(f)},[f,d]);const h=Fi(d.selectedRowId$),g=vj(d.selectedRowId$),v=k.useMemo(()=>h?nhe.get(h):void 0,[h]),y=k.useMemo(()=>({...t,grid:vr(t==null?void 0:t.grid,r?EM.Dark:EM.Light)}),[t,r]),E=vr({display:"flex",height:"100%",borderTop:"1px solid #ccc"},n==null?void 0:n.root),_=vr({height:"100%",width:"100%",padding:16,borderRight:"1px solid #ccc"},n==null?void 0:n.gridContainer),S=vr({height:"100%",width:"100%",padding:8},n==null?void 0:n.detailContainer),b=k.useCallback(x=>{var N;const T=(N=f.find(I=>I.node_name===x))==null?void 0:N.id;T&&g(T)},[f,g]);k.useImperativeHandle(c,()=>({setSelectedTraceRow:b})),k.useEffect(()=>{u&&u(v)},[u,v]),k.useEffect(()=>{g(void 0)},[e]);const A=k.useCallback(x=>{const T={key:"token",name:"token",resizable:!0,width:60,renderHeaderCell(){return C.jsx("div",{style:{textAlign:"right"},children:"Tokens"})},renderCell({row:R}){const D=U8(R),L=`prompt tokens: ${Wy(D.promptTokens)}, - completion tokens: ${D.completionTokens}`;return C.jsx("div",{style:{textAlign:"right"},title:L,children:Wy(D.totalTokens)})}},[N,...I]=x;return[N,T,...I]},[]);return C.jsxs(o,{className:E,children:[C.jsx(i,{className:_,children:C.jsx(hit,{viewModel:d,styles:y,getColumns:A})}),C.jsx(s,{className:S,children:v?a(v):l()})]})});yit.displayName="ApiLogs";ds((e,t)=>Mi({root:vr({display:"flex",flexDirection:"row",alignItems:"center",height:"30px",background:"var(--background)",width:"100%",...t&&{position:"fixed",top:0,zIndex:100}},e),buttonGroup:{display:"flex",flexDirection:"row",height:"30px"},searchField:{marginRight:"100px",selectors:{"div.root":{height:"30px"}}}}));var bit=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=GJ[t.format]||GJ.default;window.clipboardData.setData(f,e)}else c.clipboardData.clearData(),c.clipboardData.setData(t.format,e);t.onCopy&&(c.preventDefault(),t.onCopy(c.clipboardData))}),document.body.appendChild(a),i.selectNodeContents(a),s.addRange(i);var l=document.execCommand("copy");if(!l)throw new Error("copy command was unsuccessful");u=!0}catch(c){r&&console.error("unable to copy using execCommand: ",c),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(f){r&&console.error("unable to copy using clipboardData: ",f),r&&console.error("falling back to prompt"),n=Sit("message"in t?t.message:Eit),window.prompt(n,e)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(i):s.removeAllRanges()),a&&document.body.removeChild(a),o()}return u}var kit=wit;const ihe=Mf(kit);class Ait extends k.Component{constructor(t){super(t),this.state={}}componentDidCatch(t,r){hi.postMessage({name:ln.ERROR_BOUNDARY_CAUGHT,payload:{error:t,errorInfo:r}}),this.setState({error:t,errorInfo:r})}renderDefaultFallback(){const t=()=>{var r,n;(n=(r=this.props)==null?void 0:r.onReload)==null||n.call(r),this.setState({error:void 0,errorInfo:void 0})};return C.jsxs("div",{children:[C.jsx("div",{children:"Something went wrong!"}),!!this.props.onReload&&C.jsx("button",{onClick:t,children:"Reload"})]})}render(){return this.state.error?this.props.fallback??this.renderDefaultFallback():this.props.children}}var Tit={exports:{}};(function(e,t){(function(r,n){e.exports=n(k)})(Ts,function(r){return function(n){var o={};function i(s){if(o[s])return o[s].exports;var a=o[s]={i:s,l:!1,exports:{}};return n[s].call(a.exports,a,a.exports,i),a.l=!0,a.exports}return i.m=n,i.c=o,i.d=function(s,a,u){i.o(s,a)||Object.defineProperty(s,a,{enumerable:!0,get:u})},i.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},i.t=function(s,a){if(1&a&&(s=i(s)),8&a||4&a&&typeof s=="object"&&s&&s.__esModule)return s;var u=Object.create(null);if(i.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:s}),2&a&&typeof s!="string")for(var l in s)i.d(u,l,(function(c){return s[c]}).bind(null,l));return u},i.n=function(s){var a=s&&s.__esModule?function(){return s.default}:function(){return s};return i.d(a,"a",a),a},i.o=function(s,a){return Object.prototype.hasOwnProperty.call(s,a)},i.p="",i(i.s=48)}([function(n,o){n.exports=r},function(n,o){var i=n.exports={version:"2.6.12"};typeof __e=="number"&&(__e=i)},function(n,o,i){var s=i(26)("wks"),a=i(17),u=i(3).Symbol,l=typeof u=="function";(n.exports=function(c){return s[c]||(s[c]=l&&u[c]||(l?u:a)("Symbol."+c))}).store=s},function(n,o){var i=n.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=i)},function(n,o,i){n.exports=!i(8)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(n,o){var i={}.hasOwnProperty;n.exports=function(s,a){return i.call(s,a)}},function(n,o,i){var s=i(7),a=i(16);n.exports=i(4)?function(u,l,c){return s.f(u,l,a(1,c))}:function(u,l,c){return u[l]=c,u}},function(n,o,i){var s=i(10),a=i(35),u=i(23),l=Object.defineProperty;o.f=i(4)?Object.defineProperty:function(c,f,d){if(s(c),f=u(f,!0),s(d),a)try{return l(c,f,d)}catch{}if("get"in d||"set"in d)throw TypeError("Accessors not supported!");return"value"in d&&(c[f]=d.value),c}},function(n,o){n.exports=function(i){try{return!!i()}catch{return!0}}},function(n,o,i){var s=i(40),a=i(22);n.exports=function(u){return s(a(u))}},function(n,o,i){var s=i(11);n.exports=function(a){if(!s(a))throw TypeError(a+" is not an object!");return a}},function(n,o){n.exports=function(i){return typeof i=="object"?i!==null:typeof i=="function"}},function(n,o){n.exports={}},function(n,o,i){var s=i(39),a=i(27);n.exports=Object.keys||function(u){return s(u,a)}},function(n,o){n.exports=!0},function(n,o,i){var s=i(3),a=i(1),u=i(53),l=i(6),c=i(5),f=function(d,h,g){var v,y,E,_=d&f.F,S=d&f.G,b=d&f.S,A=d&f.P,x=d&f.B,T=d&f.W,N=S?a:a[h]||(a[h]={}),I=N.prototype,R=S?s:b?s[h]:(s[h]||{}).prototype;for(v in S&&(g=h),g)(y=!_&&R&&R[v]!==void 0)&&c(N,v)||(E=y?R[v]:g[v],N[v]=S&&typeof R[v]!="function"?g[v]:x&&y?u(E,s):T&&R[v]==E?function(D){var L=function(M,q,z){if(this instanceof D){switch(arguments.length){case 0:return new D;case 1:return new D(M);case 2:return new D(M,q)}return new D(M,q,z)}return D.apply(this,arguments)};return L.prototype=D.prototype,L}(E):A&&typeof E=="function"?u(Function.call,E):E,A&&((N.virtual||(N.virtual={}))[v]=E,d&f.R&&I&&!I[v]&&l(I,v,E)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,n.exports=f},function(n,o){n.exports=function(i,s){return{enumerable:!(1&i),configurable:!(2&i),writable:!(4&i),value:s}}},function(n,o){var i=0,s=Math.random();n.exports=function(a){return"Symbol(".concat(a===void 0?"":a,")_",(++i+s).toString(36))}},function(n,o,i){var s=i(22);n.exports=function(a){return Object(s(a))}},function(n,o){o.f={}.propertyIsEnumerable},function(n,o,i){var s=i(52)(!0);i(34)(String,"String",function(a){this._t=String(a),this._i=0},function(){var a,u=this._t,l=this._i;return l>=u.length?{value:void 0,done:!0}:(a=s(u,l),this._i+=a.length,{value:a,done:!1})})},function(n,o){var i=Math.ceil,s=Math.floor;n.exports=function(a){return isNaN(a=+a)?0:(a>0?s:i)(a)}},function(n,o){n.exports=function(i){if(i==null)throw TypeError("Can't call method on "+i);return i}},function(n,o,i){var s=i(11);n.exports=function(a,u){if(!s(a))return a;var l,c;if(u&&typeof(l=a.toString)=="function"&&!s(c=l.call(a))||typeof(l=a.valueOf)=="function"&&!s(c=l.call(a))||!u&&typeof(l=a.toString)=="function"&&!s(c=l.call(a)))return c;throw TypeError("Can't convert object to primitive value")}},function(n,o){var i={}.toString;n.exports=function(s){return i.call(s).slice(8,-1)}},function(n,o,i){var s=i(26)("keys"),a=i(17);n.exports=function(u){return s[u]||(s[u]=a(u))}},function(n,o,i){var s=i(1),a=i(3),u=a["__core-js_shared__"]||(a["__core-js_shared__"]={});(n.exports=function(l,c){return u[l]||(u[l]=c!==void 0?c:{})})("versions",[]).push({version:s.version,mode:i(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(n,o){n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(n,o,i){var s=i(7).f,a=i(5),u=i(2)("toStringTag");n.exports=function(l,c,f){l&&!a(l=f?l:l.prototype,u)&&s(l,u,{configurable:!0,value:c})}},function(n,o,i){i(62);for(var s=i(3),a=i(6),u=i(12),l=i(2)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),f=0;fdocument.F=Object<\/script>"),d.close(),f=d.F;g--;)delete f.prototype[u[g]];return f()};n.exports=Object.create||function(d,h){var g;return d!==null?(c.prototype=s(d),g=new c,c.prototype=null,g[l]=d):g=f(),h===void 0?g:a(g,h)}},function(n,o,i){var s=i(5),a=i(9),u=i(57)(!1),l=i(25)("IE_PROTO");n.exports=function(c,f){var d,h=a(c),g=0,v=[];for(d in h)d!=l&&s(h,d)&&v.push(d);for(;f.length>g;)s(h,d=f[g++])&&(~u(v,d)||v.push(d));return v}},function(n,o,i){var s=i(24);n.exports=Object("z").propertyIsEnumerable(0)?Object:function(a){return s(a)=="String"?a.split(""):Object(a)}},function(n,o,i){var s=i(39),a=i(27).concat("length","prototype");o.f=Object.getOwnPropertyNames||function(u){return s(u,a)}},function(n,o,i){var s=i(24),a=i(2)("toStringTag"),u=s(function(){return arguments}())=="Arguments";n.exports=function(l){var c,f,d;return l===void 0?"Undefined":l===null?"Null":typeof(f=function(h,g){try{return h[g]}catch{}}(c=Object(l),a))=="string"?f:u?s(c):(d=s(c))=="Object"&&typeof c.callee=="function"?"Arguments":d}},function(n,o){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch{typeof window=="object"&&(i=window)}n.exports=i},function(n,o){var i=/-?\d+(\.\d+)?%?/g;n.exports=function(s){return s.match(i)}},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.getBase16Theme=o.createStyling=o.invertTheme=void 0;var s=y(i(49)),a=y(i(76)),u=y(i(81)),l=y(i(89)),c=y(i(93)),f=function(I){if(I&&I.__esModule)return I;var R={};if(I!=null)for(var D in I)Object.prototype.hasOwnProperty.call(I,D)&&(R[D]=I[D]);return R.default=I,R}(i(94)),d=y(i(132)),h=y(i(133)),g=y(i(138)),v=i(139);function y(I){return I&&I.__esModule?I:{default:I}}var E=f.default,_=(0,l.default)(E),S=(0,g.default)(h.default,v.rgb2yuv,function(I){var R,D=(0,u.default)(I,3),L=D[0],M=D[1],q=D[2];return[(R=L,R<.25?1:R<.5?.9-R:1.1-R),M,q]},v.yuv2rgb,d.default),b=function(I){return function(R){return{className:[R.className,I.className].filter(Boolean).join(" "),style:(0,a.default)({},R.style||{},I.style||{})}}},A=function(I,R){var D=(0,l.default)(R);for(var L in I)D.indexOf(L)===-1&&D.push(L);return D.reduce(function(M,q){return M[q]=function(z,B){if(z===void 0)return B;if(B===void 0)return z;var P=z===void 0?"undefined":(0,s.default)(z),K=B===void 0?"undefined":(0,s.default)(B);switch(P){case"string":switch(K){case"string":return[B,z].filter(Boolean).join(" ");case"object":return b({className:z,style:B});case"function":return function(U){for(var X=arguments.length,J=Array(X>1?X-1:0),ee=1;ee1?X-1:0),ee=1;ee1?X-1:0),ee=1;ee1?X-1:0),ee=1;ee1?X-1:0),ee=1;ee2?D-2:0),M=2;M3?R-3:0),L=3;L1&&arguments[1]!==void 0?arguments[1]:{},q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},z=M.defaultBase16,B=z===void 0?E:z,P=M.base16Themes,K=P===void 0?null:P,U=N(q,K);U&&(q=(0,a.default)({},U,q));var X=_.reduce(function(pe,_e){return pe[_e]=q[_e]||B[_e],pe},{}),J=(0,l.default)(q).reduce(function(pe,_e){return _.indexOf(_e)===-1&&(pe[_e]=q[_e]),pe},{}),ee=I(X),se=A(J,ee);return(0,c.default)(x,2).apply(void 0,[se].concat(D))},3),o.getBase16Theme=function(I,R){if(I&&I.extend&&(I=I.extend),typeof I=="string"){var D=I.split(":"),L=(0,u.default)(D,2),M=L[0],q=L[1];I=(R||{})[M]||f[M],q==="inverted"&&(I=T(I))}return I&&I.hasOwnProperty("base00")?I:void 0})},function(n,o,i){var s,a=typeof Reflect=="object"?Reflect:null,u=a&&typeof a.apply=="function"?a.apply:function(b,A,x){return Function.prototype.apply.call(b,A,x)};s=a&&typeof a.ownKeys=="function"?a.ownKeys:Object.getOwnPropertySymbols?function(b){return Object.getOwnPropertyNames(b).concat(Object.getOwnPropertySymbols(b))}:function(b){return Object.getOwnPropertyNames(b)};var l=Number.isNaN||function(b){return b!=b};function c(){c.init.call(this)}n.exports=c,n.exports.once=function(b,A){return new Promise(function(x,T){function N(){I!==void 0&&b.removeListener("error",I),x([].slice.call(arguments))}var I;A!=="error"&&(I=function(R){b.removeListener(A,N),T(R)},b.once("error",I)),b.once(A,N)})},c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var f=10;function d(b){if(typeof b!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof b)}function h(b){return b._maxListeners===void 0?c.defaultMaxListeners:b._maxListeners}function g(b,A,x,T){var N,I,R,D;if(d(x),(I=b._events)===void 0?(I=b._events=Object.create(null),b._eventsCount=0):(I.newListener!==void 0&&(b.emit("newListener",A,x.listener?x.listener:x),I=b._events),R=I[A]),R===void 0)R=I[A]=x,++b._eventsCount;else if(typeof R=="function"?R=I[A]=T?[x,R]:[R,x]:T?R.unshift(x):R.push(x),(N=h(b))>0&&R.length>N&&!R.warned){R.warned=!0;var L=new Error("Possible EventEmitter memory leak detected. "+R.length+" "+String(A)+" listeners added. Use emitter.setMaxListeners() to increase limit");L.name="MaxListenersExceededWarning",L.emitter=b,L.type=A,L.count=R.length,D=L,console&&console.warn&&console.warn(D)}return b}function v(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function y(b,A,x){var T={fired:!1,wrapFn:void 0,target:b,type:A,listener:x},N=v.bind(T);return N.listener=x,T.wrapFn=N,N}function E(b,A,x){var T=b._events;if(T===void 0)return[];var N=T[A];return N===void 0?[]:typeof N=="function"?x?[N.listener||N]:[N]:x?function(I){for(var R=new Array(I.length),D=0;D0&&(I=A[0]),I instanceof Error)throw I;var R=new Error("Unhandled error."+(I?" ("+I.message+")":""));throw R.context=I,R}var D=N[b];if(D===void 0)return!1;if(typeof D=="function")u(D,this,A);else{var L=D.length,M=S(D,L);for(x=0;x=0;I--)if(x[I]===A||x[I].listener===A){R=x[I].listener,N=I;break}if(N<0)return this;N===0?x.shift():function(D,L){for(;L+1=0;T--)this.removeListener(b,A[T]);return this},c.prototype.listeners=function(b){return E(this,b,!0)},c.prototype.rawListeners=function(b){return E(this,b,!1)},c.listenerCount=function(b,A){return typeof b.listenerCount=="function"?b.listenerCount(A):_.call(b,A)},c.prototype.listenerCount=_,c.prototype.eventNames=function(){return this._eventsCount>0?s(this._events):[]}},function(n,o,i){n.exports.Dispatcher=i(140)},function(n,o,i){n.exports=i(142)},function(n,o,i){o.__esModule=!0;var s=l(i(50)),a=l(i(65)),u=typeof a.default=="function"&&typeof s.default=="symbol"?function(c){return typeof c}:function(c){return c&&typeof a.default=="function"&&c.constructor===a.default&&c!==a.default.prototype?"symbol":typeof c};function l(c){return c&&c.__esModule?c:{default:c}}o.default=typeof a.default=="function"&&u(s.default)==="symbol"?function(c){return c===void 0?"undefined":u(c)}:function(c){return c&&typeof a.default=="function"&&c.constructor===a.default&&c!==a.default.prototype?"symbol":c===void 0?"undefined":u(c)}},function(n,o,i){n.exports={default:i(51),__esModule:!0}},function(n,o,i){i(20),i(29),n.exports=i(30).f("iterator")},function(n,o,i){var s=i(21),a=i(22);n.exports=function(u){return function(l,c){var f,d,h=String(a(l)),g=s(c),v=h.length;return g<0||g>=v?u?"":void 0:(f=h.charCodeAt(g))<55296||f>56319||g+1===v||(d=h.charCodeAt(g+1))<56320||d>57343?u?h.charAt(g):f:u?h.slice(g,g+2):d-56320+(f-55296<<10)+65536}}},function(n,o,i){var s=i(54);n.exports=function(a,u,l){if(s(a),u===void 0)return a;switch(l){case 1:return function(c){return a.call(u,c)};case 2:return function(c,f){return a.call(u,c,f)};case 3:return function(c,f,d){return a.call(u,c,f,d)}}return function(){return a.apply(u,arguments)}}},function(n,o){n.exports=function(i){if(typeof i!="function")throw TypeError(i+" is not a function!");return i}},function(n,o,i){var s=i(38),a=i(16),u=i(28),l={};i(6)(l,i(2)("iterator"),function(){return this}),n.exports=function(c,f,d){c.prototype=s(l,{next:a(1,d)}),u(c,f+" Iterator")}},function(n,o,i){var s=i(7),a=i(10),u=i(13);n.exports=i(4)?Object.defineProperties:function(l,c){a(l);for(var f,d=u(c),h=d.length,g=0;h>g;)s.f(l,f=d[g++],c[f]);return l}},function(n,o,i){var s=i(9),a=i(58),u=i(59);n.exports=function(l){return function(c,f,d){var h,g=s(c),v=a(g.length),y=u(d,v);if(l&&f!=f){for(;v>y;)if((h=g[y++])!=h)return!0}else for(;v>y;y++)if((l||y in g)&&g[y]===f)return l||y||0;return!l&&-1}}},function(n,o,i){var s=i(21),a=Math.min;n.exports=function(u){return u>0?a(s(u),9007199254740991):0}},function(n,o,i){var s=i(21),a=Math.max,u=Math.min;n.exports=function(l,c){return(l=s(l))<0?a(l+c,0):u(l,c)}},function(n,o,i){var s=i(3).document;n.exports=s&&s.documentElement},function(n,o,i){var s=i(5),a=i(18),u=i(25)("IE_PROTO"),l=Object.prototype;n.exports=Object.getPrototypeOf||function(c){return c=a(c),s(c,u)?c[u]:typeof c.constructor=="function"&&c instanceof c.constructor?c.constructor.prototype:c instanceof Object?l:null}},function(n,o,i){var s=i(63),a=i(64),u=i(12),l=i(9);n.exports=i(34)(Array,"Array",function(c,f){this._t=l(c),this._i=0,this._k=f},function(){var c=this._t,f=this._k,d=this._i++;return!c||d>=c.length?(this._t=void 0,a(1)):a(0,f=="keys"?d:f=="values"?c[d]:[d,c[d]])},"values"),u.Arguments=u.Array,s("keys"),s("values"),s("entries")},function(n,o){n.exports=function(){}},function(n,o){n.exports=function(i,s){return{value:s,done:!!i}}},function(n,o,i){n.exports={default:i(66),__esModule:!0}},function(n,o,i){i(67),i(73),i(74),i(75),n.exports=i(1).Symbol},function(n,o,i){var s=i(3),a=i(5),u=i(4),l=i(15),c=i(37),f=i(68).KEY,d=i(8),h=i(26),g=i(28),v=i(17),y=i(2),E=i(30),_=i(31),S=i(69),b=i(70),A=i(10),x=i(11),T=i(18),N=i(9),I=i(23),R=i(16),D=i(38),L=i(71),M=i(72),q=i(32),z=i(7),B=i(13),P=M.f,K=z.f,U=L.f,X=s.Symbol,J=s.JSON,ee=J&&J.stringify,se=y("_hidden"),pe=y("toPrimitive"),_e={}.propertyIsEnumerable,Te=h("symbol-registry"),me=h("symbols"),Ae=h("op-symbols"),ve=Object.prototype,we=typeof X=="function"&&!!q.f,De=s.QObject,Qe=!De||!De.prototype||!De.prototype.findChild,Ke=u&&d(function(){return D(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a!=7})?function(ae,ge,Re){var je=P(ve,ge);je&&delete ve[ge],K(ae,ge,Re),je&&ae!==ve&&K(ve,ge,je)}:K,st=function(ae){var ge=me[ae]=D(X.prototype);return ge._k=ae,ge},He=we&&typeof X.iterator=="symbol"?function(ae){return typeof ae=="symbol"}:function(ae){return ae instanceof X},Ne=function(ae,ge,Re){return ae===ve&&Ne(Ae,ge,Re),A(ae),ge=I(ge,!0),A(Re),a(me,ge)?(Re.enumerable?(a(ae,se)&&ae[se][ge]&&(ae[se][ge]=!1),Re=D(Re,{enumerable:R(0,!1)})):(a(ae,se)||K(ae,se,R(1,{})),ae[se][ge]=!0),Ke(ae,ge,Re)):K(ae,ge,Re)},$e=function(ae,ge){A(ae);for(var Re,je=S(ge=N(ge)),ke=0,Ce=je.length;Ce>ke;)Ne(ae,Re=je[ke++],ge[Re]);return ae},Dt=function(ae){var ge=_e.call(this,ae=I(ae,!0));return!(this===ve&&a(me,ae)&&!a(Ae,ae))&&(!(ge||!a(this,ae)||!a(me,ae)||a(this,se)&&this[se][ae])||ge)},$t=function(ae,ge){if(ae=N(ae),ge=I(ge,!0),ae!==ve||!a(me,ge)||a(Ae,ge)){var Re=P(ae,ge);return!Re||!a(me,ge)||a(ae,se)&&ae[se][ge]||(Re.enumerable=!0),Re}},Gt=function(ae){for(var ge,Re=U(N(ae)),je=[],ke=0;Re.length>ke;)a(me,ge=Re[ke++])||ge==se||ge==f||je.push(ge);return je},_t=function(ae){for(var ge,Re=ae===ve,je=U(Re?Ae:N(ae)),ke=[],Ce=0;je.length>Ce;)!a(me,ge=je[Ce++])||Re&&!a(ve,ge)||ke.push(me[ge]);return ke};we||(c((X=function(){if(this instanceof X)throw TypeError("Symbol is not a constructor!");var ae=v(arguments.length>0?arguments[0]:void 0),ge=function(Re){this===ve&&ge.call(Ae,Re),a(this,se)&&a(this[se],ae)&&(this[se][ae]=!1),Ke(this,ae,R(1,Re))};return u&&Qe&&Ke(ve,ae,{configurable:!0,set:ge}),st(ae)}).prototype,"toString",function(){return this._k}),M.f=$t,z.f=Ne,i(41).f=L.f=Gt,i(19).f=Dt,q.f=_t,u&&!i(14)&&c(ve,"propertyIsEnumerable",Dt,!0),E.f=function(ae){return st(y(ae))}),l(l.G+l.W+l.F*!we,{Symbol:X});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;tt.length>rt;)y(tt[rt++]);for(var ur=B(y.store),he=0;ur.length>he;)_(ur[he++]);l(l.S+l.F*!we,"Symbol",{for:function(ae){return a(Te,ae+="")?Te[ae]:Te[ae]=X(ae)},keyFor:function(ae){if(!He(ae))throw TypeError(ae+" is not a symbol!");for(var ge in Te)if(Te[ge]===ae)return ge},useSetter:function(){Qe=!0},useSimple:function(){Qe=!1}}),l(l.S+l.F*!we,"Object",{create:function(ae,ge){return ge===void 0?D(ae):$e(D(ae),ge)},defineProperty:Ne,defineProperties:$e,getOwnPropertyDescriptor:$t,getOwnPropertyNames:Gt,getOwnPropertySymbols:_t});var le=d(function(){q.f(1)});l(l.S+l.F*le,"Object",{getOwnPropertySymbols:function(ae){return q.f(T(ae))}}),J&&l(l.S+l.F*(!we||d(function(){var ae=X();return ee([ae])!="[null]"||ee({a:ae})!="{}"||ee(Object(ae))!="{}"})),"JSON",{stringify:function(ae){for(var ge,Re,je=[ae],ke=1;arguments.length>ke;)je.push(arguments[ke++]);if(Re=ge=je[1],(x(ge)||ae!==void 0)&&!He(ae))return b(ge)||(ge=function(Ce,Pe){if(typeof Re=="function"&&(Pe=Re.call(this,Ce,Pe)),!He(Pe))return Pe}),je[1]=ge,ee.apply(J,je)}}),X.prototype[pe]||i(6)(X.prototype,pe,X.prototype.valueOf),g(X,"Symbol"),g(Math,"Math",!0),g(s.JSON,"JSON",!0)},function(n,o,i){var s=i(17)("meta"),a=i(11),u=i(5),l=i(7).f,c=0,f=Object.isExtensible||function(){return!0},d=!i(8)(function(){return f(Object.preventExtensions({}))}),h=function(v){l(v,s,{value:{i:"O"+ ++c,w:{}}})},g=n.exports={KEY:s,NEED:!1,fastKey:function(v,y){if(!a(v))return typeof v=="symbol"?v:(typeof v=="string"?"S":"P")+v;if(!u(v,s)){if(!f(v))return"F";if(!y)return"E";h(v)}return v[s].i},getWeak:function(v,y){if(!u(v,s)){if(!f(v))return!0;if(!y)return!1;h(v)}return v[s].w},onFreeze:function(v){return d&&g.NEED&&f(v)&&!u(v,s)&&h(v),v}}},function(n,o,i){var s=i(13),a=i(32),u=i(19);n.exports=function(l){var c=s(l),f=a.f;if(f)for(var d,h=f(l),g=u.f,v=0;h.length>v;)g.call(l,d=h[v++])&&c.push(d);return c}},function(n,o,i){var s=i(24);n.exports=Array.isArray||function(a){return s(a)=="Array"}},function(n,o,i){var s=i(9),a=i(41).f,u={}.toString,l=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];n.exports.f=function(c){return l&&u.call(c)=="[object Window]"?function(f){try{return a(f)}catch{return l.slice()}}(c):a(s(c))}},function(n,o,i){var s=i(19),a=i(16),u=i(9),l=i(23),c=i(5),f=i(35),d=Object.getOwnPropertyDescriptor;o.f=i(4)?d:function(h,g){if(h=u(h),g=l(g,!0),f)try{return d(h,g)}catch{}if(c(h,g))return a(!s.f.call(h,g),h[g])}},function(n,o){},function(n,o,i){i(31)("asyncIterator")},function(n,o,i){i(31)("observable")},function(n,o,i){o.__esModule=!0;var s,a=i(77),u=(s=a)&&s.__esModule?s:{default:s};o.default=u.default||function(l){for(var c=1;cE;)for(var b,A=f(arguments[E++]),x=_?a(A).concat(_(A)):a(A),T=x.length,N=0;T>N;)b=x[N++],s&&!S.call(A,b)||(v[b]=A[b]);return v}:d},function(n,o,i){o.__esModule=!0;var s=u(i(82)),a=u(i(85));function u(l){return l&&l.__esModule?l:{default:l}}o.default=function(l,c){if(Array.isArray(l))return l;if((0,s.default)(Object(l)))return function(f,d){var h=[],g=!0,v=!1,y=void 0;try{for(var E,_=(0,a.default)(f);!(g=(E=_.next()).done)&&(h.push(E.value),!d||h.length!==d);g=!0);}catch(S){v=!0,y=S}finally{try{!g&&_.return&&_.return()}finally{if(v)throw y}}return h}(l,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(n,o,i){n.exports={default:i(83),__esModule:!0}},function(n,o,i){i(29),i(20),n.exports=i(84)},function(n,o,i){var s=i(42),a=i(2)("iterator"),u=i(12);n.exports=i(1).isIterable=function(l){var c=Object(l);return c[a]!==void 0||"@@iterator"in c||u.hasOwnProperty(s(c))}},function(n,o,i){n.exports={default:i(86),__esModule:!0}},function(n,o,i){i(29),i(20),n.exports=i(87)},function(n,o,i){var s=i(10),a=i(88);n.exports=i(1).getIterator=function(u){var l=a(u);if(typeof l!="function")throw TypeError(u+" is not iterable!");return s(l.call(u))}},function(n,o,i){var s=i(42),a=i(2)("iterator"),u=i(12);n.exports=i(1).getIteratorMethod=function(l){if(l!=null)return l[a]||l["@@iterator"]||u[s(l)]}},function(n,o,i){n.exports={default:i(90),__esModule:!0}},function(n,o,i){i(91),n.exports=i(1).Object.keys},function(n,o,i){var s=i(18),a=i(13);i(92)("keys",function(){return function(u){return a(s(u))}})},function(n,o,i){var s=i(15),a=i(1),u=i(8);n.exports=function(l,c){var f=(a.Object||{})[l]||Object[l],d={};d[l]=c(f),s(s.S+s.F*u(function(){f(1)}),"Object",d)}},function(n,o,i){(function(s){var a=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u=/^\s+|\s+$/g,l=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,c=/\{\n\/\* \[wrapped with (.+)\] \*/,f=/,? & /,d=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,g=/^\[object .+?Constructor\]$/,v=/^0o[0-7]+$/i,y=/^(?:0|[1-9]\d*)$/,E=parseInt,_=typeof s=="object"&&s&&s.Object===Object&&s,S=typeof self=="object"&&self&&self.Object===Object&&self,b=_||S||Function("return this")();function A(he,le,ae){switch(ae.length){case 0:return he.call(le);case 1:return he.call(le,ae[0]);case 2:return he.call(le,ae[0],ae[1]);case 3:return he.call(le,ae[0],ae[1],ae[2])}return he.apply(le,ae)}function x(he,le){return!!(he&&he.length)&&function(ae,ge,Re){if(ge!=ge)return function(Ce,Pe,ut,vt){for(var xt=Ce.length,fr=ut+(vt?1:-1);vt?fr--:++fr-1}function T(he){return he!=he}function N(he,le){for(var ae=he.length,ge=0;ae--;)he[ae]===le&&ge++;return ge}function I(he,le){for(var ae=-1,ge=he.length,Re=0,je=[];++ae2?D:void 0);function _e(he){return tt(he)?J(he):{}}function Te(he){return!(!tt(he)||function(le){return!!B&&B in le}(he))&&(function(le){var ae=tt(le)?U.call(le):"";return ae=="[object Function]"||ae=="[object GeneratorFunction]"}(he)||function(le){var ae=!1;if(le!=null&&typeof le.toString!="function")try{ae=!!(le+"")}catch{}return ae}(he)?X:g).test(function(le){if(le!=null){try{return P.call(le)}catch{}try{return le+""}catch{}}return""}(he))}function me(he,le,ae,ge){for(var Re=-1,je=he.length,ke=ae.length,Ce=-1,Pe=le.length,ut=ee(je-ke,0),vt=Array(Pe+ut),xt=!ge;++Ce1&&It.reverse(),vt&&Pe1?"& ":"")+le[ge],le=le.join(ae>2?", ":" "),he.replace(l,`{ -/* [wrapped with `+le+`] */ -`)}function $e(he,le){return!!(le=le??9007199254740991)&&(typeof he=="number"||y.test(he))&&he>-1&&he%1==0&&he1&&u--,c=6*u<1?s+6*(a-s)*u:2*u<1?a:3*u<2?s+(a-s)*(2/3-u)*6:s,l[g]=255*c;return l}},function(n,o,i){(function(s){var a=typeof s=="object"&&s&&s.Object===Object&&s,u=typeof self=="object"&&self&&self.Object===Object&&self,l=a||u||Function("return this")();function c(I,R,D){switch(D.length){case 0:return I.call(R);case 1:return I.call(R,D[0]);case 2:return I.call(R,D[0],D[1]);case 3:return I.call(R,D[0],D[1],D[2])}return I.apply(R,D)}function f(I,R){for(var D=-1,L=R.length,M=I.length;++D-1&&M%1==0&&M<=9007199254740991}(L.length)&&!function(M){var q=function(z){var B=typeof z;return!!z&&(B=="object"||B=="function")}(M)?g.call(M):"";return q=="[object Function]"||q=="[object GeneratorFunction]"}(L)}(D)}(R)&&h.call(R,"callee")&&(!y.call(R,"callee")||g.call(R)=="[object Arguments]")}(I)||!!(E&&I&&I[E])}var b=Array.isArray,A,x,T,N=(x=function(I){var R=(I=function L(M,q,z,B,P){var K=-1,U=M.length;for(z||(z=S),P||(P=[]);++K0&&z(X)?q>1?L(X,q-1,z,B,P):f(P,X):B||(P[P.length]=X)}return P}(I,1)).length,D=R;for(A;D--;)if(typeof I[D]!="function")throw new TypeError("Expected a function");return function(){for(var L=0,M=R?I[L].apply(this,arguments):arguments[0];++L2?u-2:0),c=2;c"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var H,$=g(Y);if(Q){var F=g(this).constructor;H=Reflect.construct($,arguments,F)}else H=$.apply(this,arguments);return E(this,H)}}i.r(o);var S=i(0),b=i.n(S);function A(){var Y=this.constructor.getDerivedStateFromProps(this.props,this.state);Y!=null&&this.setState(Y)}function x(Y){this.setState((function(Q){var H=this.constructor.getDerivedStateFromProps(Y,Q);return H??null}).bind(this))}function T(Y,Q){try{var H=this.props,$=this.state;this.props=Y,this.state=Q,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(H,$)}finally{this.props=H,this.state=$}}function N(Y){var Q=Y.prototype;if(!Q||!Q.isReactComponent)throw new Error("Can only polyfill class components");if(typeof Y.getDerivedStateFromProps!="function"&&typeof Q.getSnapshotBeforeUpdate!="function")return Y;var H=null,$=null,F=null;if(typeof Q.componentWillMount=="function"?H="componentWillMount":typeof Q.UNSAFE_componentWillMount=="function"&&(H="UNSAFE_componentWillMount"),typeof Q.componentWillReceiveProps=="function"?$="componentWillReceiveProps":typeof Q.UNSAFE_componentWillReceiveProps=="function"&&($="UNSAFE_componentWillReceiveProps"),typeof Q.componentWillUpdate=="function"?F="componentWillUpdate":typeof Q.UNSAFE_componentWillUpdate=="function"&&(F="UNSAFE_componentWillUpdate"),H!==null||$!==null||F!==null){var Z=Y.displayName||Y.name,ie=typeof Y.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. +***************************************************************************** */var Jy=function(){return Jy=Object.assign||function(t){for(var r,n=1,o=arguments.length;n"u"?$m.none:$m.insertNode,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},t),this._classNameToArgs=(n=r==null?void 0:r.classNameToArgs)!==null&&n!==void 0?n:this._classNameToArgs,this._counter=(o=r==null?void 0:r.counter)!==null&&o!==void 0?o:this._counter,this._keyToClassName=(s=(i=this._config.classNameCache)!==null&&i!==void 0?i:r==null?void 0:r.keyToClassName)!==null&&s!==void 0?s:this._keyToClassName,this._preservedRules=(a=r==null?void 0:r.preservedRules)!==null&&a!==void 0?a:this._preservedRules,this._rules=(u=r==null?void 0:r.rules)!==null&&u!==void 0?u:this._rules}return e.getInstance=function(){if(Zp=g0[DJ],!Zp||Zp._lastStyleElement&&Zp._lastStyleElement.ownerDocument!==document){var t=(g0==null?void 0:g0.FabricConfig)||{},r=new e(t.mergeStyles,t.serializedStylesheet);Zp=r,g0[DJ]=r}return Zp},e.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},e.prototype.setConfig=function(t){this._config=Jy(Jy({},this._config),t)},e.prototype.onReset=function(t){var r=this;return this._onResetCallbacks.push(t),function(){r._onResetCallbacks=r._onResetCallbacks.filter(function(n){return n!==t})}},e.prototype.onInsertRule=function(t){var r=this;return this._onInsertRuleCallbacks.push(t),function(){r._onInsertRuleCallbacks=r._onInsertRuleCallbacks.filter(function(n){return n!==t})}},e.prototype.getClassName=function(t){var r=this._config.namespace,n=t||this._config.defaultPrefix;return(r?r+"-":"")+n+"-"+this._counter++},e.prototype.cacheClassName=function(t,r,n,o){this._keyToClassName[r]=t,this._classNameToArgs[t]={args:n,rules:o}},e.prototype.classNameFromKey=function(t){return this._keyToClassName[t]},e.prototype.getClassNameCache=function(){return this._keyToClassName},e.prototype.argsFromClassName=function(t){var r=this._classNameToArgs[t];return r&&r.args},e.prototype.insertedRulesFromClassName=function(t){var r=this._classNameToArgs[t];return r&&r.rules},e.prototype.insertRule=function(t,r){var n=this._config.injectionMode,o=n!==$m.none?this._getStyleElement():void 0;if(r&&this._preservedRules.push(t),o)switch(n){case $m.insertNode:var i=o.sheet;try{i.insertRule(t,i.cssRules.length)}catch{}break;case $m.appendChild:o.appendChild(document.createTextNode(t));break}else this._rules.push(t);this._config.onInsertRule&&this._config.onInsertRule(t),this._onInsertRuleCallbacks.forEach(function(s){return s()})},e.prototype.getRules=function(t){return(t?this._preservedRules.join(""):"")+this._rules.join("")},e.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach(function(t){return t()})},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._getStyleElement=function(){var t=this;return!this._styleElement&&typeof document<"u"&&(this._styleElement=this._createStyleElement(),Lrt||window.requestAnimationFrame(function(){t._styleElement=void 0})),this._styleElement},e.prototype._createStyleElement=function(){var t=document.head,r=document.createElement("style"),n=null;r.setAttribute("data-merge-styles","true");var o=this._config.cspSettings;if(o&&o.nonce&&r.setAttribute("nonce",o.nonce),this._lastStyleElement)n=this._lastStyleElement.nextElementSibling;else{var i=this._findPlaceholderStyleTag();i?n=i.nextElementSibling:n=t.childNodes[0]}return t.insertBefore(r,t.contains(n)?n:null),this._lastStyleElement=r,r},e.prototype._findPlaceholderStyleTag=function(){var t=document.head;return t?t.querySelector("style[data-merge-styles]"):null},e}();function jrt(){for(var e=[],t=0;t=0)i(l.split(" "));else{var c=o.argsFromClassName(l);c?i(c):r.indexOf(l)===-1&&r.push(l)}else Array.isArray(l)?i(l):typeof l=="object"&&n.push(l)}}return i(e),{classes:r,objects:n}}function G1e(){return jA===void 0&&(jA=typeof document<"u"&&!!document.documentElement&&document.documentElement.getAttribute("dir")==="rtl"),jA}var jA;jA=G1e();function zrt(){return{rtl:G1e()}}var FJ={};function Hrt(e,t){var r=e[t];r.charAt(0)!=="-"&&(e[t]=FJ[r]=FJ[r]||r.replace(/([A-Z])/g,"-$1").toLowerCase())}var Fw;function $rt(){var e;if(!Fw){var t=typeof document<"u"?document:void 0,r=typeof navigator<"u"?navigator:void 0,n=(e=r==null?void 0:r.userAgent)===null||e===void 0?void 0:e.toLowerCase();t?Fw={isWebkit:!!(t&&"WebkitAppearance"in t.documentElement.style),isMoz:!!(n&&n.indexOf("firefox")>-1),isOpera:!!(n&&n.indexOf("opera")>-1),isMs:!!(r&&(/rv:11.0/i.test(r.userAgent)||/Edge\/\d./i.test(navigator.userAgent)))}:Fw={isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return Fw}var BJ={"user-select":1};function Prt(e,t){var r=$rt(),n=e[t];if(BJ[n]){var o=e[t+1];BJ[n]&&(r.isWebkit&&e.push("-webkit-"+n,o),r.isMoz&&e.push("-moz-"+n,o),r.isMs&&e.push("-ms-"+n,o),r.isOpera&&e.push("-o-"+n,o))}}var qrt=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function Wrt(e,t){var r=e[t],n=e[t+1];if(typeof n=="number"){var o=qrt.indexOf(r)>-1,i=r.indexOf("--")>-1,s=o||i?"":"px";e[t+1]=""+n+s}}var Bw,xd="left",Td="right",Krt="@noflip",MJ=(Bw={},Bw[xd]=Td,Bw[Td]=xd,Bw),LJ={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function Grt(e,t,r){if(e.rtl){var n=t[r];if(!n)return;var o=t[r+1];if(typeof o=="string"&&o.indexOf(Krt)>=0)t[r+1]=o.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(n.indexOf(xd)>=0)t[r]=n.replace(xd,Td);else if(n.indexOf(Td)>=0)t[r]=n.replace(Td,xd);else if(String(o).indexOf(xd)>=0)t[r+1]=o.replace(xd,Td);else if(String(o).indexOf(Td)>=0)t[r+1]=o.replace(Td,xd);else if(MJ[n])t[r]=MJ[n];else if(LJ[o])t[r+1]=LJ[o];else switch(n){case"margin":case"padding":t[r+1]=Urt(o);break;case"box-shadow":t[r+1]=Vrt(o,0);break}}}function Vrt(e,t){var r=e.split(" "),n=parseInt(r[t],10);return r[0]=r[0].replace(String(n),String(n*-1)),r.join(" ")}function Urt(e){if(typeof e=="string"){var t=e.split(" ");if(t.length===4)return t[0]+" "+t[3]+" "+t[2]+" "+t[1]}return e}function Yrt(e){for(var t=[],r=0,n=0,o=0;or&&t.push(e.substring(r,o)),r=o+1);break}return r-1&&t.push([n.index,n.index+n[0].length,n[1].split(",").map(function(o){return":global("+o.trim()+")"}).join(", ")]);return t.reverse().reduce(function(o,i){var s=i[0],a=i[1],u=i[2],l=o.slice(0,s),c=o.slice(a);return l+u+c},e)}function jJ(e,t){return e.indexOf(":global(")>=0?e.replace(V1e,"$1"):e.indexOf(":")===0?t+e:e.indexOf("&")<0?t+" "+e:e}function zJ(e,t,r,n){t===void 0&&(t={__order:[]}),r.indexOf("@")===0?(r=r+"{"+e,cg([n],t,r)):r.indexOf(",")>-1?Zrt(r).split(",").map(function(o){return o.trim()}).forEach(function(o){return cg([n],t,jJ(o,e))}):cg([n],t,jJ(r,e))}function cg(e,t,r){t===void 0&&(t={__order:[]}),r===void 0&&(r="&");var n=P9.getInstance(),o=t[r];o||(o={},t[r]=o,t.__order.push(r));for(var i=0,s=e;i"u")){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",r==="top"&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var ant=".root_ce9fd48c{margin:0;padding:0}.item_34141342{list-style:none}.content_6abc12be{display:flex;align-items:center}.content_6abc12be:hover{cursor:pointer;background-color:#f3f2f1}.icon_aaa0d589{border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:6px solid #8a8886;margin:0 11px 0 3px}.expanded_6233c4e1{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #8a8886;margin:3px 8px 0 0}.leaf_f2922997{border:6px solid transparent;margin:0 8px 0 0}.group_7e2ac704,.inner_683a43d6{padding:0;margin:0}",gd={root:"root_ce9fd48c",item:"item_34141342",content:"content_6abc12be",icon:"icon_aaa0d589",expanded:"expanded_6233c4e1",leaf:"leaf_f2922997",group:"group_7e2ac704",inner:"inner_683a43d6"};snt(ant);var unt=function(e){return{root:v0(gd.root,e==null?void 0:e.root)}},lnt=function(e,t){var r,n,o;return{item:v0(gd.item,t==null?void 0:t.item),icon:v0(gd.icon,e.expanded&&gd.expanded,e.isLeaf&&gd.leaf),group:v0(gd.group,t==null?void 0:t.group),inner:v0(gd.inner,t==null?void 0:t.inner),content:v0(gd.content,(r=t==null?void 0:t.content)===null||r===void 0?void 0:r.base,e.expanded&&((n=t==null?void 0:t.content)===null||n===void 0?void 0:n.expand),e.isLeaf&&((o=t==null?void 0:t.content)===null||o===void 0?void 0:o.leaf))}},Y1e=k.forwardRef(function(e,t){var r,n,o,i,s,a,u,l,c=e.node,f=e.classes,d=e.indent,h=e.calcIndent,g=e.onNodeClick,v=e.renderIcon,y=e.renderContent,E=e.renderInnerContent,_=!c.isLeaf&&c.expanded,S=lnt(c,f),b=h?h(c):{item:(c.level-1)*((r=d==null?void 0:d.item)!==null&&r!==void 0?r:20)+((n=d==null?void 0:d.root)!==null&&n!==void 0?n:0),innerItem:c.level*((o=d==null?void 0:d.item)!==null&&o!==void 0?o:20)+((i=d==null?void 0:d.root)!==null&&i!==void 0?i:0)},A=k.useCallback(function(T){T.preventDefault(),T.stopPropagation()},[]);return k.createElement("div",{key:c.id,role:"treeitem","aria-selected":c.selected,"aria-expanded":c.expanded,tabIndex:-1,className:S.item,onClick:g.bind(null,c),"data-item-id":c.id,ref:t},k.createElement("div",{className:S.content,style:{paddingLeft:(s=b.item)!==null&&s!==void 0?s:20}},(a=v==null?void 0:v(c))!==null&&a!==void 0?a:k.createElement("span",{className:S.icon}),(u=y==null?void 0:y(c))!==null&&u!==void 0?u:k.createElement("span",{role:"button"},c.title)),_&&k.createElement(k.Fragment,null,E&&k.createElement("div",{role:"group",key:"innerContent",className:S.inner,style:{paddingLeft:(l=b.innerItem)!==null&&l!==void 0?l:40},onClick:A},E(c))))});Y1e.displayName="TreeNode";var cnt=k.forwardRef(function(e,t){var r=e.selectedKeys,n=r===void 0?[]:r,o=e.expandedKeys,i=o===void 0?[]:o,s=e.treeData,a=e.classes,u=e.indent,l=e.height,c=e.itemHeight,f=e.virtual,d=e.calcIndent,h=e.onKeyDown,g=e.renderIcon,v=e.renderContent,y=e.renderInnerContent,E=e.onSelect,_=e.multiple,S=e.onExpand,b=e.loadData,A=k.useState({loadedKeys:[],loadingKeys:[]}),T=A[0],x=A[1],C=k.useRef(null),I=k.useRef(null),R=k.useMemo(function(){return OJ.init(s,n,i,T)},[s,n,i,T]);k.useImperativeHandle(t,function(){return{scrollTo:function(X){var J;(J=I.current)===null||J===void 0||J.scrollTo(X)}}}),k.useEffect(function(){q(0)},[]);var D=function(X,J){var ee=n,fe=J.id,ge=!J.selected;ge?_?ee=Dw(ee,fe):ee=[fe]:ee=s3(ee,fe),E==null||E(ee,{node:J,selected:ge,nativeEvent:X})},L=function(X,J){var ee=i,fe=J.id,ge=!J.expanded;ge?ee=Dw(ee,fe):ee=s3(ee,fe),S==null||S(ee,{node:J,expanded:ge,nativeEvent:X}),ge&&b&&M(J)},M=function(X){x(function(J){var ee=J.loadedKeys,fe=J.loadingKeys,ge=X.id;if(!b||ee.includes(ge)||fe.includes(ge))return T;var Se=b(X);return Se.then(function(){var Ee=T.loadedKeys,ve=T.loadingKeys,we=Dw(Ee,ge),me=s3(ve,ge);x({loadedKeys:we,loadingKeys:me})}),{loadedKeys:ee,loadingKeys:Dw(fe,ge)}})},q=function(X){var J,ee,fe=Array.from((ee=(J=C.current)===null||J===void 0?void 0:J.querySelectorAll("div[role='treeitem']"))!==null&&ee!==void 0?ee:[]);fe.forEach(function(ge,Se){Se===X?ge.setAttribute("tabindex","0"):ge.setAttribute("tabindex","-1")})},z=function(X){var J,ee,fe;X.stopPropagation();var ge=X.target;if(ge.getAttribute("role")!=="treeitem"||X.ctrlKey||X.metaKey)return-1;var Se=Array.from((ee=(J=C.current)===null||J===void 0?void 0:J.querySelectorAll("div[role='treeitem']"))!==null&&ee!==void 0?ee:[]),Ee=Se.indexOf(ge),ve=X.keyCode>=65&&X.keyCode<=90;if(ve){var we=-1,me=Se.findIndex(function(it,Oe){var Qe=it.getAttribute("data-item-id"),Fe=OJ.nodesMap.get(Qe??""),Ze=Fe==null?void 0:Fe.searchKeys.some(function($e){return $e.match(new RegExp("^"+X.key,"i"))});return Ze&&Oe>Ee?!0:(Ze&&Oe<=Ee&&(we=we===-1?Oe:we),!1)}),xe=me===-1?we:me;return(fe=Se[xe])===null||fe===void 0||fe.focus(),xe}switch(X.key){case"ArrowDown":{var He=(Ee+1)%Se.length;return Se[He].focus(),He}case"ArrowUp":{var He=(Ee-1+Se.length)%Se.length;return Se[He].focus(),He}case"ArrowLeft":case"ArrowRight":return ge.click(),Ee;case"Home":return Se[0].focus(),0;case"End":return Se[Se.length-1].focus(),Se.length-1;default:return h==null||h(X),Ee}},F=function(X){var J=z(X);J>-1&&q(J)},$=function(X,J){J.stopPropagation(),D(J,X),!(X.loading||X.loaded&&X.isLeaf)&&L(J,X)},K=unt(a),U=function(X){return X.id};return k.createElement("div",{role:"tree",className:K.root,onKeyDown:F,ref:C},k.createElement(K1e,{data:R,itemKey:U,height:l,fullHeight:!1,virtual:f,itemHeight:c,ref:I},function(X){return k.createElement(Y1e,{key:X.id,node:X,classes:a,indent:u,calcIndent:d,renderIcon:g,renderContent:v,renderInnerContent:y,onNodeClick:$})}))});cnt.displayName="ReactAccessibleTree";var fnt=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),mo=function(){return mo=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"?void 0:Number(n),maxHeight:typeof o>"u"?void 0:Number(o),minWidth:typeof i>"u"?void 0:Number(i),minHeight:typeof s>"u"?void 0:Number(s)}},ynt=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],WJ="__resizable_base__",X1e=function(e){pnt(t,e);function t(r){var n=e.call(this,r)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableRight=0,n.resizableTop=0,n.resizableBottom=0,n.targetLeft=0,n.targetTop=0,n.appendBase=function(){if(!n.resizable||!n.window)return null;var o=n.parentNode;if(!o)return null;var i=n.window.document.createElement("div");return i.style.width="100%",i.style.height="100%",i.style.position="absolute",i.style.transform="scale(0, 0)",i.style.left="0",i.style.flex="0 0 100%",i.classList?i.classList.add(WJ):i.className+=WJ,o.appendChild(i),i},n.removeBase=function(o){var i=n.parentNode;i&&i.removeChild(o)},n.ref=function(o){o&&(n.resizable=o)},n.state={isResizing:!1,width:typeof(n.propsSize&&n.propsSize.width)>"u"?"auto":n.propsSize&&n.propsSize.width,height:typeof(n.propsSize&&n.propsSize.height)>"u"?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||gnt},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var r=0,n=0;if(this.resizable&&this.window){var o=this.resizable.offsetWidth,i=this.resizable.offsetHeight,s=this.resizable.style.position;s!=="relative"&&(this.resizable.style.position="relative"),r=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:o,n=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:i,this.resizable.style.position=s}return{width:r,height:n}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var r=this,n=this.props.size,o=function(a){if(typeof r.state[a]>"u"||r.state[a]==="auto")return"auto";if(r.propsSize&&r.propsSize[a]&&r.propsSize[a].toString().endsWith("%")){if(r.state[a].toString().endsWith("%"))return r.state[a].toString();var u=r.getParentSize(),l=Number(r.state[a].toString().replace("px","")),c=l/u[a]*100;return c+"%"}return u3(r.state[a])},i=n&&typeof n.width<"u"&&!this.state.isResizing?u3(n.width):o("width"),s=n&&typeof n.height<"u"&&!this.state.isResizing?u3(n.height):o("height");return{width:i,height:s}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var r=this.appendBase();if(!r)return{width:0,height:0};var n=!1,o=this.parentNode.style.flexWrap;o!=="wrap"&&(n=!0,this.parentNode.style.flexWrap="wrap"),r.style.position="relative",r.style.minWidth="100%",r.style.minHeight="100%";var i={width:r.offsetWidth,height:r.offsetHeight};return n&&(this.parentNode.style.flexWrap=o),this.removeBase(r),i},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var r=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:r.flexBasis!=="auto"?r.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(r,n){var o=this.propsSize&&this.propsSize[n];return this.state[n]==="auto"&&this.state.original[n]===r&&(typeof o>"u"||o==="auto")?"auto":r},t.prototype.calculateNewMaxFromBoundary=function(r,n){var o=this.props.boundsByDirection,i=this.state.direction,s=o&&Jp("left",i),a=o&&Jp("top",i),u,l;if(this.props.bounds==="parent"){var c=this.parentNode;c&&(u=s?this.resizableRight-this.parentLeft:c.offsetWidth+(this.parentLeft-this.resizableLeft),l=a?this.resizableBottom-this.parentTop:c.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(u=s?this.resizableRight:this.window.innerWidth-this.resizableLeft,l=a?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(u=s?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),l=a?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return u&&Number.isFinite(u)&&(r=r&&r"u"?10:i.width,f=typeof o.width>"u"||o.width<0?r:o.width,d=typeof i.height>"u"?10:i.height,h=typeof o.height>"u"||o.height<0?n:o.height,g=u||0,v=l||0;if(a){var y=(d-g)*this.ratio+v,E=(h-g)*this.ratio+v,_=(c-v)/this.ratio+g,S=(f-v)/this.ratio+g,b=Math.max(c,y),A=Math.min(f,E),T=Math.max(d,_),x=Math.min(h,S);r=Lw(r,b,A),n=Lw(n,T,x)}else r=Lw(r,c,f),n=Lw(n,d,h);return{newWidth:r,newHeight:n}},t.prototype.setBoundingClientRect=function(){if(this.props.bounds==="parent"){var r=this.parentNode;if(r){var n=r.getBoundingClientRect();this.parentLeft=n.left,this.parentTop=n.top}}if(this.props.bounds&&typeof this.props.bounds!="string"){var o=this.props.bounds.getBoundingClientRect();this.targetLeft=o.left,this.targetTop=o.top}if(this.resizable){var i=this.resizable.getBoundingClientRect(),s=i.left,a=i.top,u=i.right,l=i.bottom;this.resizableLeft=s,this.resizableRight=u,this.resizableTop=a,this.resizableBottom=l}},t.prototype.onResizeStart=function(r,n){if(!(!this.resizable||!this.window)){var o=0,i=0;if(r.nativeEvent&&vnt(r.nativeEvent)?(o=r.nativeEvent.clientX,i=r.nativeEvent.clientY):r.nativeEvent&&jw(r.nativeEvent)&&(o=r.nativeEvent.touches[0].clientX,i=r.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var s=this.props.onResizeStart(r,n,this.resizable);if(s===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var a,u=this.window.getComputedStyle(this.resizable);if(u.flexBasis!=="auto"){var l=this.parentNode;if(l){var c=this.window.getComputedStyle(l).flexDirection;this.flexDir=c.startsWith("row")?"row":"column",a=u.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var f={original:{x:o,y:i,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:Bl(Bl({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(r.target).cursor||"auto"}),direction:n,flexBasis:a};this.setState(f)}},t.prototype.onMouseMove=function(r){var n=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&jw(r))try{r.preventDefault(),r.stopPropagation()}catch{}var o=this.props,i=o.maxWidth,s=o.maxHeight,a=o.minWidth,u=o.minHeight,l=jw(r)?r.touches[0].clientX:r.clientX,c=jw(r)?r.touches[0].clientY:r.clientY,f=this.state,d=f.direction,h=f.original,g=f.width,v=f.height,y=this.getParentSize(),E=mnt(y,this.window.innerWidth,this.window.innerHeight,i,s,a,u);i=E.maxWidth,s=E.maxHeight,a=E.minWidth,u=E.minHeight;var _=this.calculateNewSizeFromDirection(l,c),S=_.newHeight,b=_.newWidth,A=this.calculateNewMaxFromBoundary(i,s);this.props.snap&&this.props.snap.x&&(b=qJ(b,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(S=qJ(S,this.props.snap.y,this.props.snapGap));var T=this.calculateNewSizeFromAspectRatio(b,S,{width:A.maxWidth,height:A.maxHeight},{width:a,height:u});if(b=T.newWidth,S=T.newHeight,this.props.grid){var x=PJ(b,this.props.grid[0]),C=PJ(S,this.props.grid[1]),I=this.props.snapGap||0;b=I===0||Math.abs(x-b)<=I?x:b,S=I===0||Math.abs(C-S)<=I?C:S}var R={width:b-h.width,height:S-h.height};if(g&&typeof g=="string"){if(g.endsWith("%")){var D=b/y.width*100;b=D+"%"}else if(g.endsWith("vw")){var L=b/this.window.innerWidth*100;b=L+"vw"}else if(g.endsWith("vh")){var M=b/this.window.innerHeight*100;b=M+"vh"}}if(v&&typeof v=="string"){if(v.endsWith("%")){var D=S/y.height*100;S=D+"%"}else if(v.endsWith("vw")){var L=S/this.window.innerWidth*100;S=L+"vw"}else if(v.endsWith("vh")){var M=S/this.window.innerHeight*100;S=M+"vh"}}var q={width:this.createSizeForCssProperty(b,"width"),height:this.createSizeForCssProperty(S,"height")};this.flexDir==="row"?q.flexBasis=q.width:this.flexDir==="column"&&(q.flexBasis=q.height),li.flushSync(function(){n.setState(q)}),this.props.onResize&&this.props.onResize(r,d,this.resizable,R)}},t.prototype.onMouseUp=function(r){var n=this.state,o=n.isResizing,i=n.direction,s=n.original;if(!(!o||!this.resizable)){var a={width:this.size.width-s.width,height:this.size.height-s.height};this.props.onResizeStop&&this.props.onResizeStop(r,i,this.resizable,a),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:Bl(Bl({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(r){this.setState({width:r.width,height:r.height})},t.prototype.renderResizer=function(){var r=this,n=this.props,o=n.enable,i=n.handleStyles,s=n.handleClasses,a=n.handleWrapperStyle,u=n.handleWrapperClass,l=n.handleComponent;if(!o)return null;var c=Object.keys(o).map(function(f){return o[f]!==!1?k.createElement(hnt,{key:f,direction:f,onResizeStart:r.onResizeStart,replaceStyles:i&&i[f],className:s&&s[f]},l&&l[f]?l[f]:null):null});return k.createElement("div",{className:u,style:a},c)},t.prototype.render=function(){var r=this,n=Object.keys(this.props).reduce(function(s,a){return ynt.indexOf(a)!==-1||(s[a]=r.props[a]),s},{}),o=Bl(Bl(Bl({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(o.flexBasis=this.state.flexBasis);var i=this.props.as||"div";return k.createElement(i,Bl({ref:this.ref,style:o,className:this.props.className},n),this.state.isResizing&&k.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(k.PureComponent);function Q1e(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t1&&(!e.frozen||e.idx+n-1<=t))return n}function bnt(e){e.stopPropagation()}function zA(e){e==null||e.scrollIntoView({inline:"nearest",block:"nearest"})}function eb(e){let t=!1;const r={...e,preventGridDefault(){t=!0},isGridDefaultPrevented(){return t}};return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),r}const _nt=new Set(["Unidentified","Alt","AltGraph","CapsLock","Control","Fn","FnLock","Meta","NumLock","ScrollLock","Shift","Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp","Insert","ContextMenu","Escape","Pause","Play","PrintScreen","F1","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"]);function KJ(e){return(e.ctrlKey||e.metaKey)&&e.key!=="Control"}function Ent(e){return!_nt.has(e.key)}function Snt({key:e,target:t}){var r;return e==="Tab"&&(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement)?((r=t.closest(".rdg-editor-container"))==null?void 0:r.querySelectorAll("input, textarea, select").length)===1:!1}const wnt="m1l09lto7-0-0-beta-39";function Ant(e){return e.map(({key:t,idx:r,minWidth:n,maxWidth:o})=>N.jsx("div",{className:wnt,style:{gridColumnStart:r+1,minWidth:n,maxWidth:o},"data-measuring-cell-key":t},t))}function knt({selectedPosition:e,columns:t,rows:r}){const n=t[e.idx],o=r[e.rowIdx];return Z1e(n,o)}function Z1e(e,t){return e.renderEditCell!=null&&(typeof e.editable=="function"?e.editable(t):e.editable)!==!1}function xnt({rows:e,topSummaryRows:t,bottomSummaryRows:r,rowIdx:n,mainHeaderRowIdx:o,lastFrozenColumnIndex:i,column:s}){const a=(t==null?void 0:t.length)??0;if(n===o)return su(s,i,{type:"HEADER"});if(t&&n>o&&n<=a+o)return su(s,i,{type:"SUMMARY",row:t[n+a]});if(n>=0&&n{for(const x of o){const C=x.idx;if(C>y)break;const I=xnt({rows:i,topSummaryRows:s,bottomSummaryRows:a,rowIdx:E,mainHeaderRowIdx:l,lastFrozenColumnIndex:g,column:x});if(I&&y>C&&yT.level+l,A=()=>{if(t){let x=n[y].parent;for(;x!==void 0;){const C=b(x);if(E===C){y=x.idx+x.colSpan;break}x=x.parent}}else if(e){let x=n[y].parent,C=!1;for(;x!==void 0;){const I=b(x);if(E>=I){y=x.idx,E=I,C=!0;break}x=x.parent}C||(y=f,E=d)}};if(v(h)&&(S(t),E=C&&(E=I,y=x.idx),x=x.parent}}return{idx:y,rowIdx:E}}function Int({maxColIdx:e,minRowIdx:t,maxRowIdx:r,selectedPosition:{rowIdx:n,idx:o},shiftKey:i}){return i?o===0&&n===t:o===e&&n===r}const Cnt="c1wupbe7-0-0-beta-39",J1e=`rdg-cell ${Cnt}`,Nnt="cd0kgiy7-0-0-beta-39",Rnt=`rdg-cell-frozen ${Nnt}`,Ont="c1730fa47-0-0-beta-39",Dnt=`rdg-cell-frozen-last ${Ont}`;function ehe(e,t){return t!==void 0?{"--rdg-grid-row-start":e,"--rdg-row-height":`${t}px`}:{"--rdg-grid-row-start":e}}function the(e,t,r){const n=t+1,o=`calc(${r-1} * var(--rdg-header-row-height))`;return e.parent===void 0?{insetBlockStart:0,gridRowStart:1,gridRowEnd:n,paddingBlockStart:o}:{insetBlockStart:`calc(${t-r} * var(--rdg-header-row-height))`,gridRowStart:n-r,gridRowEnd:n,paddingBlockStart:o}}function SE(e,t=1){const r=e.idx+1;return{gridColumnStart:r,gridColumnEnd:r+t,insetInlineStart:e.frozen?`var(--rdg-frozen-left-${e.idx})`:void 0}}function q9(e,...t){return Df(J1e,...t,e.frozen&&Rnt,e.isLastFrozenColumn&&Dnt)}const{min:a_,max:dx,round:Abt,floor:GJ,sign:Fnt,abs:Bnt}=Math;function VJ(e){if(typeof e!="function")throw new Error("Please specify the rowKeyGetter prop to use selection")}function rhe(e,{minWidth:t,maxWidth:r}){return e=dx(e,t),typeof r=="number"&&r>=t?a_(e,r):e}function nhe(e,t){return e.parent===void 0?t:e.level-e.parent.level}const Mnt="c1hs68w07-0-0-beta-39",Lnt=`rdg-checkbox-label ${Mnt}`,jnt="cojpd0n7-0-0-beta-39",znt=`rdg-checkbox-input ${jnt}`,Hnt="cwsfieb7-0-0-beta-39",$nt=`rdg-checkbox ${Hnt}`,Pnt="c1fgadbl7-0-0-beta-39",qnt=`rdg-checkbox-label-disabled ${Pnt}`;function Wnt({onChange:e,...t}){function r(n){e(n.target.checked,n.nativeEvent.shiftKey)}return N.jsxs("label",{className:Df(Lnt,t.disabled&&qnt),children:[N.jsx("input",{type:"checkbox",...t,className:znt,onChange:r}),N.jsx("div",{className:$nt})]})}function Knt(e){try{return e.row[e.column.key]}catch{return null}}const ohe=k.createContext(void 0),Gnt=ohe.Provider;function ihe(){return k.useContext(ohe)}const Vnt=k.createContext(void 0),she=Vnt.Provider,Unt=k.createContext(void 0),Ynt=Unt.Provider,UJ="select-row",Xnt="auto",Qnt=50;function Znt({rawColumns:e,defaultColumnOptions:t,measuredColumnWidths:r,resizedColumnWidths:n,viewportWidth:o,scrollLeft:i,enableVirtualization:s}){const a=(t==null?void 0:t.width)??Xnt,u=(t==null?void 0:t.minWidth)??Qnt,l=(t==null?void 0:t.maxWidth)??void 0,c=(t==null?void 0:t.renderCell)??Knt,f=(t==null?void 0:t.sortable)??!1,d=(t==null?void 0:t.resizable)??!1,h=(t==null?void 0:t.draggable)??!1,{columns:g,colSpanColumns:v,lastFrozenColumnIndex:y,headerRowsCount:E}=k.useMemo(()=>{let C=-1,I=1;const R=[];D(e,1);function D(M,q,z){for(const F of M){if("children"in F){const U={name:F.name,parent:z,idx:-1,colSpan:0,level:0,headerCellClass:F.headerCellClass};D(F.children,q+1,U);continue}const $=F.frozen??!1,K={...F,parent:z,idx:0,level:0,frozen:$,isLastFrozenColumn:!1,width:F.width??a,minWidth:F.minWidth??u,maxWidth:F.maxWidth??l,sortable:F.sortable??f,resizable:F.resizable??d,draggable:F.draggable??h,renderCell:F.renderCell??c};R.push(K),$&&C++,q>I&&(I=q)}}R.sort(({key:M,frozen:q},{key:z,frozen:F})=>M===UJ?-1:z===UJ?1:q?F?0:-1:F?1:0);const L=[];return R.forEach((M,q)=>{M.idx=q,ahe(M,q,0),M.colSpan!=null&&L.push(M)}),C!==-1&&(R[C].isLastFrozenColumn=!0),{columns:R,colSpanColumns:L,lastFrozenColumnIndex:C,headerRowsCount:I}},[e,a,u,l,c,d,f,h]),{templateColumns:_,layoutCssVars:S,totalFrozenColumnWidth:b,columnMetrics:A}=k.useMemo(()=>{const C=new Map;let I=0,R=0;const D=[];for(const M of g){let q=n.get(M.key)??r.get(M.key)??M.width;typeof q=="number"?q=rhe(q,M):q=M.minWidth,D.push(`${q}px`),C.set(M,{width:q,left:I}),I+=q}if(y!==-1){const M=C.get(g[y]);R=M.left+M.width}const L={};for(let M=0;M<=y;M++){const q=g[M];L[`--rdg-frozen-left-${q.idx}`]=`${C.get(q).left}px`}return{templateColumns:D,layoutCssVars:L,totalFrozenColumnWidth:R,columnMetrics:C}},[r,n,g,y]),[T,x]=k.useMemo(()=>{if(!s)return[0,g.length-1];const C=i+b,I=i+o,R=g.length-1,D=a_(y+1,R);if(C>=I)return[D,D];let L=D;for(;LC)break;L++}let M=L;for(;M=I)break;M++}const q=dx(D,L-1),z=a_(R,M+1);return[q,z]},[A,g,y,i,b,o,s]);return{columns:g,colSpanColumns:v,colOverscanStartIdx:T,colOverscanEndIdx:x,templateColumns:_,layoutCssVars:S,headerRowsCount:E,lastFrozenColumnIndex:y,totalFrozenColumnWidth:b}}function ahe(e,t,r){if(r"u"?k.useEffect:k.useLayoutEffect;function Jnt(e,t,r,n,o,i,s,a,u,l){const c=k.useRef(o),f=e.length===t.length,d=f&&o!==c.current,h=[...r],g=[];for(const{key:_,idx:S,width:b}of t)typeof b=="string"&&(d||!s.has(_))&&!i.has(_)&&(h[S]=b,g.push(_));const v=h.join(" ");Qg(()=>{c.current=o,y(g)});function y(_){_.length!==0&&u(S=>{const b=new Map(S);let A=!1;for(const T of _){const x=YJ(n,T);A||(A=x!==S.get(T)),x===void 0?b.delete(T):b.set(T,x)}return A?b:S})}function E(_,S){const{key:b}=_,A=[...r],T=[];for(const{key:C,idx:I,width:R}of t)if(b===C){const D=typeof S=="number"?`${S}px`:S;A[I]=D}else f&&typeof R=="string"&&!i.has(C)&&(A[I]=R,T.push(C));n.current.style.gridTemplateColumns=A.join(" ");const x=typeof S=="number"?S:YJ(n,b);li.flushSync(()=>{a(C=>{const I=new Map(C);return I.set(b,x),I}),y(T)}),l==null||l(_.idx,x)}return{gridTemplateColumns:v,handleColumnResize:E}}function YJ(e,t){const r=`[data-measuring-cell-key="${CSS.escape(t)}"]`,n=e.current.querySelector(r);return n==null?void 0:n.getBoundingClientRect().width}function eot(){const e=k.useRef(null),[t,r]=k.useState(1),[n,o]=k.useState(1);return Qg(()=>{const{ResizeObserver:i}=window;if(i==null)return;const{clientWidth:s,clientHeight:a,offsetWidth:u,offsetHeight:l}=e.current,{width:c,height:f}=e.current.getBoundingClientRect(),d=c-u+s,h=f-l+a;r(d),o(h);const g=new i(v=>{const y=v[0].contentBoxSize[0];li.flushSync(()=>{r(y.inlineSize),o(y.blockSize)})});return g.observe(e.current),()=>{g.disconnect()}},[]),[e,t,n]}function Ua(e){const t=k.useRef(e);k.useEffect(()=>{t.current=e});const r=k.useCallback((...n)=>{t.current(...n)},[]);return e&&r}function W9(e){const[t,r]=k.useState(!1);t&&!e&&r(!1);function n(i){i.target!==i.currentTarget&&r(!0)}return{tabIndex:e&&!t?0:-1,childTabIndex:e?0:-1,onFocus:e?n:void 0}}function tot({columns:e,colSpanColumns:t,rows:r,topSummaryRows:n,bottomSummaryRows:o,colOverscanStartIdx:i,colOverscanEndIdx:s,lastFrozenColumnIndex:a,rowOverscanStartIdx:u,rowOverscanEndIdx:l}){const c=k.useMemo(()=>{if(i===0)return 0;let f=i;const d=(h,g)=>g!==void 0&&h+g>i?(f=h,!0):!1;for(const h of t){const g=h.idx;if(g>=f||d(g,su(h,a,{type:"HEADER"})))break;for(let v=u;v<=l;v++){const y=r[v];if(d(g,su(h,a,{type:"ROW",row:y})))break}if(n!=null){for(const v of n)if(d(g,su(h,a,{type:"SUMMARY",row:v})))break}if(o!=null){for(const v of o)if(d(g,su(h,a,{type:"SUMMARY",row:v})))break}}return f},[u,l,r,n,o,i,a,t]);return k.useMemo(()=>{const f=[];for(let d=0;d<=s;d++){const h=e[d];d{if(typeof t=="number")return{totalRowHeight:t*e.length,gridTemplateRows:` repeat(${e.length}, ${t}px)`,getRowTop:y=>y*t,getRowHeight:()=>t,findRowIdx:y=>GJ(y/t)};let d=0,h=" ";const g=e.map(y=>{const E=t(y),_={top:d,height:E};return h+=`${E}px `,d+=E,_}),v=y=>dx(0,a_(e.length-1,y));return{totalRowHeight:d,gridTemplateRows:h,getRowTop:y=>g[v(y)].top,getRowHeight:y=>g[v(y)].height,findRowIdx(y){let E=0,_=g.length-1;for(;E<=_;){const S=E+GJ((_-E)/2),b=g[S].top;if(b===y)return S;if(by&&(_=S-1),E>_)return _}return 0}}},[t,e]);let c=0,f=e.length-1;if(o){const h=l(n),g=l(n+r);c=dx(0,h-4),f=a_(e.length-1,g+4)}return{rowOverscanStartIdx:c,rowOverscanEndIdx:f,totalRowHeight:i,gridTemplateRows:s,getRowTop:a,getRowHeight:u,findRowIdx:l}}const not="cadd3bp7-0-0-beta-39",oot="ccmuez27-0-0-beta-39",iot=`rdg-cell-drag-handle ${not}`;function sot({gridRowStart:e,rows:t,columns:r,selectedPosition:n,latestDraggedOverRowIdx:o,isCellEditable:i,onRowsChange:s,onFill:a,onClick:u,setDragging:l,setDraggedOverRowIdx:c}){var b;const{idx:f,rowIdx:d}=n,h=r[f];function g(A){if(A.preventDefault(),A.buttons!==1)return;l(!0),window.addEventListener("mouseover",T),window.addEventListener("mouseup",x);function T(C){C.buttons!==1&&x()}function x(){window.removeEventListener("mouseover",T),window.removeEventListener("mouseup",x),l(!1),v()}}function v(){const A=o.current;if(A===void 0)return;const T=d0&&(s==null||s(I,{indexes:R,column:x}))}const _=((b=h.colSpan)==null?void 0:b.call(h,{type:"ROW",row:t[d]}))??1,S=SE(h,_);return N.jsx("div",{style:{...S,gridRowStart:e,insetInlineStart:S.insetInlineStart&&typeof h.width=="number"?`calc(${S.insetInlineStart} + ${h.width}px - var(--rdg-drag-handle-size))`:void 0},className:Df(iot,h.frozen&&oot),onClick:u,onMouseDown:g,onDoubleClick:y})}const aot="c1tngyp17-0-0-beta-39";function uot({column:e,colSpan:t,row:r,rowIdx:n,onRowChange:o,closeEditor:i,onKeyDown:s,navigate:a}){var E,_,S;const u=k.useRef(),l=((E=e.editorOptions)==null?void 0:E.commitOnOutsideClick)!==!1,c=Ua(()=>{h(!0,!1)});k.useEffect(()=>{if(!l)return;function b(){u.current=requestAnimationFrame(c)}return addEventListener("mousedown",b,{capture:!0}),()=>{removeEventListener("mousedown",b,{capture:!0}),f()}},[l,c]);function f(){cancelAnimationFrame(u.current)}function d(b){if(s){const A=eb(b);if(s({mode:"EDIT",row:r,column:e,rowIdx:n,navigate(){a(b)},onClose:h},A),A.isGridDefaultPrevented())return}b.key==="Escape"?h():b.key==="Enter"?h(!0):Snt(b)&&a(b)}function h(b=!1,A=!0){b?o(r,!0,A):i(A)}function g(b,A=!1){o(b,A,A)}const{cellClass:v}=e,y=q9(e,"rdg-editor-container",typeof v=="function"?v(r):v,!((_=e.editorOptions)!=null&&_.displayCellContent)&&aot);return N.jsx("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":!0,className:y,style:SE(e,t),onKeyDown:d,onMouseDownCapture:f,children:e.renderEditCell!=null&&N.jsxs(N.Fragment,{children:[e.renderEditCell({column:e,row:r,onRowChange:g,onClose:h}),((S=e.editorOptions)==null?void 0:S.displayCellContent)&&e.renderCell({column:e,row:r,isCellEditable:!0,tabIndex:-1,onRowChange:g})]})})}function lot({column:e,rowIdx:t,isCellSelected:r,selectCell:n}){const{tabIndex:o,onFocus:i}=W9(r),{colSpan:s}=e,a=nhe(e,t),u=e.idx+1;function l(){n({idx:e.idx,rowIdx:t})}return N.jsx("div",{role:"columnheader","aria-colindex":u,"aria-colspan":s,"aria-rowspan":a,"aria-selected":r,tabIndex:o,className:Df(J1e,e.headerCellClass),style:{...the(e,t,a),gridColumnStart:u,gridColumnEnd:u+s},onFocus:i,onClick:l,children:e.name})}const cot="hizp7y17-0-0-beta-39",fot="h14cojrm7-0-0-beta-39",dot=`rdg-header-sort-name ${fot}`;function hot({column:e,sortDirection:t,priority:r}){return e.sortable?N.jsx(pot,{sortDirection:t,priority:r,children:e.name}):e.name}function pot({sortDirection:e,priority:t,children:r}){const n=ihe().renderSortStatus;return N.jsxs("span",{className:cot,children:[N.jsx("span",{className:dot,children:r}),N.jsx("span",{children:n({sortDirection:e,priority:t})})]})}const got="celq7o97-0-0-beta-39",vot="ceqw94e7-0-0-beta-39",mot=`rdg-cell-resizable ${vot}`,yot="r12jy2ca7-0-0-beta-39",bot="c1j3os1p7-0-0-beta-39",_ot=`rdg-cell-dragging ${bot}`,Eot="c1ui3nad7-0-0-beta-39",Sot=`rdg-cell-drag-over ${Eot}`;function wot({column:e,colSpan:t,rowIdx:r,isCellSelected:n,onColumnResize:o,onColumnsReorder:i,sortColumns:s,onSortColumnsChange:a,selectCell:u,shouldFocusGrid:l,direction:c}){const[f,d]=k.useState(!1),[h,g]=k.useState(!1),v=c==="rtl",y=nhe(e,r),{tabIndex:E,childTabIndex:_,onFocus:S}=W9(n),b=s==null?void 0:s.findIndex(ve=>ve.columnKey===e.key),A=b!==void 0&&b>-1?s[b]:void 0,T=A==null?void 0:A.direction,x=A!==void 0&&s.length>1?b+1:void 0,C=T&&!x?T==="ASC"?"ascending":"descending":void 0,{sortable:I,resizable:R,draggable:D}=e,L=q9(e,e.headerCellClass,I&&got,R&&mot,f&&_ot,h&&Sot),M=e.renderHeaderCell??hot;function q(ve){if(ve.pointerType==="mouse"&&ve.buttons!==1)return;const{currentTarget:we,pointerId:me}=ve,xe=we.parentElement,{right:He,left:it}=xe.getBoundingClientRect(),Oe=v?ve.clientX-it:He-ve.clientX;function Qe(Ze){Ze.preventDefault();const{right:$e,left:Ge}=xe.getBoundingClientRect(),kt=v?$e+Oe-Ze.clientX:Ze.clientX+Oe-Ge;kt>0&&o(e,rhe(kt,e))}function Fe(){we.removeEventListener("pointermove",Qe),we.removeEventListener("lostpointercapture",Fe)}we.setPointerCapture(me),we.addEventListener("pointermove",Qe),we.addEventListener("lostpointercapture",Fe)}function z(ve){if(a==null)return;const{sortDescendingFirst:we}=e;if(A===void 0){const me={columnKey:e.key,direction:we?"DESC":"ASC"};a(s&&ve?[...s,me]:[me])}else{let me;if((we===!0&&T==="DESC"||we!==!0&&T==="ASC")&&(me={columnKey:e.key,direction:T==="ASC"?"DESC":"ASC"}),ve){const xe=[...s];me?xe[b]=me:xe.splice(b,1),a(xe)}else a(me?[me]:[])}}function F(ve){u({idx:e.idx,rowIdx:r}),I&&z(ve.ctrlKey||ve.metaKey)}function $(){o(e,"max-content")}function K(ve){S==null||S(ve),l&&u({idx:0,rowIdx:r})}function U(ve){(ve.key===" "||ve.key==="Enter")&&(ve.preventDefault(),z(ve.ctrlKey||ve.metaKey))}function X(ve){ve.dataTransfer.setData("text/plain",e.key),ve.dataTransfer.dropEffect="move",d(!0)}function J(){d(!1)}function ee(ve){ve.preventDefault(),ve.dataTransfer.dropEffect="move"}function fe(ve){g(!1);const we=ve.dataTransfer.getData("text/plain");we!==e.key&&(ve.preventDefault(),i==null||i(we,e.key))}function ge(ve){XJ(ve)&&g(!0)}function Se(ve){XJ(ve)&&g(!1)}let Ee;return D&&(Ee={draggable:!0,onDragStart:X,onDragEnd:J,onDragOver:ee,onDragEnter:ge,onDragLeave:Se,onDrop:fe}),N.jsxs("div",{role:"columnheader","aria-colindex":e.idx+1,"aria-colspan":t,"aria-rowspan":y,"aria-selected":n,"aria-sort":C,tabIndex:l?0:E,className:L,style:{...the(e,r,y),...SE(e,t)},onFocus:K,onClick:F,onKeyDown:I?U:void 0,...Ee,children:[M({column:e,sortDirection:T,priority:x,tabIndex:_}),R&&N.jsx("div",{className:yot,onClick:bnt,onDoubleClick:$,onPointerDown:q})]})}function XJ(e){const t=e.relatedTarget;return!e.currentTarget.contains(t)}const Aot="r1otpg647-0-0-beta-39",uhe=`rdg-row ${Aot}`,kot="rel5gk27-0-0-beta-39",Tj="rdg-row-selected",xot="r1qymf1z7-0-0-beta-39",Tot="h197vzie7-0-0-beta-39",lhe=`rdg-header-row ${Tot}`;function Iot({rowIdx:e,columns:t,onColumnResize:r,onColumnsReorder:n,sortColumns:o,onSortColumnsChange:i,lastFrozenColumnIndex:s,selectedCellIdx:a,selectCell:u,shouldFocusGrid:l,direction:c}){const f=[];for(let d=0;dt&&u.parent!==void 0;)u=u.parent;if(u.level===t&&!s.has(u)){s.add(u);const{idx:l}=u;i.push(N.jsx(lot,{column:u,rowIdx:e,isCellSelected:n===l,selectCell:o},l))}}}return N.jsx("div",{role:"row","aria-rowindex":e,className:lhe,children:i})}const Rot=k.memo(Not),Oot="ccpfvsn7-0-0-beta-39",Dot=`rdg-cell-copied ${Oot}`,Fot="c1bmg16t7-0-0-beta-39",Bot=`rdg-cell-dragged-over ${Fot}`;function Mot({column:e,colSpan:t,isCellSelected:r,isCopied:n,isDraggedOver:o,row:i,rowIdx:s,onClick:a,onDoubleClick:u,onContextMenu:l,onRowChange:c,selectCell:f,...d}){const{tabIndex:h,childTabIndex:g,onFocus:v}=W9(r),{cellClass:y}=e,E=q9(e,typeof y=="function"?y(i):y,n&&Dot,o&&Bot),_=Z1e(e,i);function S(C){f({rowIdx:s,idx:e.idx},C)}function b(C){if(a){const I=eb(C);if(a({row:i,column:e,selectCell:S},I),I.isGridDefaultPrevented())return}S()}function A(C){if(l){const I=eb(C);if(l({row:i,column:e,selectCell:S},I),I.isGridDefaultPrevented())return}S()}function T(C){if(u){const I=eb(C);if(u({row:i,column:e,selectCell:S},I),I.isGridDefaultPrevented())return}S(!0)}function x(C){c(e,C)}return N.jsx("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":r,"aria-readonly":!_||void 0,tabIndex:h,className:E,style:SE(e,t),onClick:b,onDoubleClick:T,onContextMenu:A,onFocus:v,...d,children:e.renderCell({column:e,row:i,isCellEditable:_,tabIndex:g,onRowChange:x})})}const Lot=k.memo(Mot);function jot({className:e,rowIdx:t,gridRowStart:r,height:n,selectedCellIdx:o,isRowSelected:i,copiedCellIdx:s,draggedOverCellIdx:a,lastFrozenColumnIndex:u,row:l,viewportColumns:c,selectedCellEditor:f,onCellClick:d,onCellDoubleClick:h,onCellContextMenu:g,rowClass:v,setDraggedOverRowIdx:y,onMouseEnter:E,onRowChange:_,selectCell:S,...b},A){const T=Ua((I,R)=>{_(I,t,R)});function x(I){y==null||y(t),E==null||E(I)}e=Df(uhe,`rdg-row-${t%2===0?"even":"odd"}`,v==null?void 0:v(l,t),e,o===-1&&Tj);const C=[];for(let I=0;I{zA(o.current)}),Qg(()=>{function i(){n(null)}const s=new IntersectionObserver(i,{root:r,threshold:1});return s.observe(o.current),()=>{s.disconnect()}},[r,n]),N.jsx("div",{ref:o,style:{gridColumn:e===void 0?"1/-1":e+1,gridRow:t===void 0?"1/-1":t+2}})}const Pot="a1mygwml7-0-0-beta-39",qot=`rdg-sort-arrow ${Pot}`;function Wot({sortDirection:e,priority:t}){return N.jsxs(N.Fragment,{children:[Kot({sortDirection:e}),Got({priority:t})]})}function Kot({sortDirection:e}){return e===void 0?null:N.jsx("svg",{viewBox:"0 0 12 8",width:"12",height:"8",className:qot,"aria-hidden":!0,children:N.jsx("path",{d:e==="ASC"?"M0 8 6 0 12 8":"M0 0 6 8 12 0"})})}function Got({priority:e}){return e}const Vot="r104f42s7-0-0-beta-39",Uot=`rdg ${Vot}`,Yot="v7ly7s7-0-0-beta-39",Xot=`rdg-viewport-dragging ${Yot}`,Qot="fc4f4zb7-0-0-beta-39",Zot="fq51q037-0-0-beta-39",Jot="s1n3hxke7-0-0-beta-39";function eit({column:e,colSpan:t,row:r,rowIdx:n,isCellSelected:o,selectCell:i}){var d;const{tabIndex:s,childTabIndex:a,onFocus:u}=W9(o),{summaryCellClass:l}=e,c=q9(e,Jot,typeof l=="function"?l(r):l);function f(){i({rowIdx:n,idx:e.idx})}return N.jsx("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":o,tabIndex:s,className:c,style:SE(e,t),onClick:f,onFocus:u,children:(d=e.renderSummaryCell)==null?void 0:d.call(e,{column:e,row:r,tabIndex:a})})}const tit=k.memo(eit),rit="snfqesz7-0-0-beta-39",nit="t1jijrjz7-0-0-beta-39",oit="t14bmecc7-0-0-beta-39",iit="b1odhhml7-0-0-beta-39",sit=`rdg-summary-row ${rit}`,ait=`rdg-top-summary-row ${nit}`;function uit({rowIdx:e,gridRowStart:t,row:r,viewportColumns:n,top:o,bottom:i,lastFrozenColumnIndex:s,selectedCellIdx:a,isTop:u,showBorder:l,selectCell:c,"aria-rowindex":f}){const d=[];for(let h=0;hnew Map),[$t,bt]=k.useState(()=>new Map),[Je,ot]=k.useState(null),[ir,he]=k.useState(!1),[ue,se]=k.useState(void 0),[pe,Ne]=k.useState(null),[Be,Ae,Ie]=eot(),{columns:Pe,colSpanColumns:lt,lastFrozenColumnIndex:mt,headerRowsCount:Ct,colOverscanStartIdx:dr,colOverscanEndIdx:Cr,templateColumns:Bt,layoutCssVars:qr,totalFrozenColumnWidth:cn}=Znt({rawColumns:r,defaultColumnOptions:v,measuredColumnWidths:$t,resizedColumnWidths:Ge,scrollLeft:Ze,viewportWidth:Ae,enableVirtualization:it}),er=(o==null?void 0:o.length)??0,Nt=(i==null?void 0:i.length)??0,Wr=er+Nt,Nr=Ct+er,Kr=Ct-1,gr=-Nr,Dt=gr+Kr,dt=n.length+Nt-1,[Ue,Gr]=k.useState(()=>({idx:-1,rowIdx:gr-1,mode:"SELECT"})),Io=k.useRef(Ue),Hr=k.useRef(ue),Iu=k.useRef(-1),ps=k.useRef(null),go=k.useRef(!1),Fa=ge==="treegrid",Le=Ct*Ee,Y=Ie-Le-Wr*ve,Q=f!=null&&d!=null,H=Oe==="rtl",P=H?"ArrowRight":"ArrowLeft",B=H?"ArrowLeft":"ArrowRight",Z=J??Ct+n.length+Wr,ie=k.useMemo(()=>({renderCheckbox:xe,renderSortStatus:me}),[xe,me]),ae=k.useMemo(()=>{const{length:Ve}=n;return Ve!==0&&f!=null&&s!=null&&f.size>=Ve&&n.every(tt=>f.has(s(tt)))},[n,f,s]),{rowOverscanStartIdx:ne,rowOverscanEndIdx:ye,totalRowHeight:qe,gridTemplateRows:xt,getRowTop:Rt,getRowHeight:St,findRowIdx:_t}=rot({rows:n,rowHeight:Se,clientHeight:Y,scrollTop:Qe,enableVirtualization:it}),Wt=tot({columns:Pe,colSpanColumns:lt,colOverscanStartIdx:dr,colOverscanEndIdx:Cr,lastFrozenColumnIndex:mt,rowOverscanStartIdx:ne,rowOverscanEndIdx:ye,rows:n,topSummaryRows:o,bottomSummaryRows:i}),{gridTemplateColumns:$r,handleColumnResize:Ot}=Jnt(Pe,Wt,Bt,Be,Ae,Ge,$t,kt,bt,T),bn=Fa?-1:0,vo=Pe.length-1,ji=Sp(Ue),Cu=wp(Ue),qs=Ua(Ot),Nc=Ua(x),Nu=Ua(g),oo=Ua(y),Ba=Ua(E),Rc=Ua(_),Ru=Ua(Dc),Oc=Ua(Al),Ou=Ua(Uf),Gf=Ua(({idx:Ve,rowIdx:tt})=>{Uf({rowIdx:gr+tt-1,idx:Ve})});Qg(()=>{if(!ji||l3(Ue,Io.current)){Io.current=Ue;return}Io.current=Ue,Ue.idx===-1&&(ps.current.focus({preventScroll:!0}),zA(ps.current))}),Qg(()=>{go.current&&(go.current=!1,Zv())}),k.useImperativeHandle(t,()=>({element:Be.current,scrollToCell({idx:Ve,rowIdx:tt}){const qt=Ve!==void 0&&Ve>mt&&Ve{se(Ve),Hr.current=Ve},[]);function Dc(Ve){if(!d)return;if(VJ(s),Ve.type==="HEADER"){const Jr=new Set(f);for(const rn of n){const Co=s(rn);Ve.checked?Jr.add(Co):Jr.delete(Co)}d(Jr);return}const{row:tt,checked:qt,isShiftClick:Mt}=Ve,Et=new Set(f),Tt=s(tt);if(qt){Et.add(Tt);const Jr=Iu.current,rn=n.indexOf(tt);if(Iu.current=rn,Mt&&Jr!==-1&&Jr!==rn){const Co=Fnt(rn-Jr);for(let Ma=Jr+Co;Ma!==rn;Ma+=Co){const Bc=n[Ma];Et.add(s(Bc))}}}else Et.delete(Tt),Iu.current=-1;d(Et)}function Fc(Ve){const{idx:tt,rowIdx:qt,mode:Mt}=Ue;if(Mt==="EDIT")return;if(S&&F1(qt)){const rn=n[qt],Co=eb(Ve);if(S({mode:"SELECT",row:rn,column:Pe[tt],rowIdx:qt,selectCell:Uf},Co),Co.isGridDefaultPrevented())return}if(!(Ve.target instanceof Element))return;const Et=Ve.target.closest(".rdg-cell")!==null,Tt=Fa&&Ve.target===ps.current;if(!Et&&!Tt)return;const{keyCode:Jr}=Ve;if(Cu&&(R!=null||I!=null)&&KJ(Ve)){if(Jr===67){Xv();return}if(Jr===86){Vf();return}}switch(Ve.key){case"Escape":ot(null);return;case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Tab":case"Home":case"End":case"PageUp":case"PageDown":WE(Ve);break;default:qE(Ve);break}}function wl(Ve){const{scrollTop:tt,scrollLeft:qt}=Ve.currentTarget;li.flushSync(()=>{Fe(tt),$e(Bnt(qt))}),A==null||A(Ve)}function Al(Ve,tt,qt){if(typeof a!="function"||qt===n[tt])return;const Mt=[...n];Mt[tt]=qt,a(Mt,{indexes:[tt],column:Ve})}function Ep(){Ue.mode==="EDIT"&&Al(Pe[Ue.idx],Ue.rowIdx,Ue.row)}function Xv(){const{idx:Ve,rowIdx:tt}=Ue,qt=n[tt],Mt=Pe[Ve].key;ot({row:qt,columnKey:Mt}),I==null||I({sourceRow:qt,sourceColumnKey:Mt})}function Vf(){if(!R||!a||Je===null||!B1(Ue))return;const{idx:Ve,rowIdx:tt}=Ue,qt=Pe[Ve],Mt=n[tt],Et=R({sourceRow:Je.row,sourceColumnKey:Je.columnKey,targetRow:Mt,targetColumnKey:qt.key});Al(qt,tt,Et)}function qE(Ve){if(!Cu)return;const tt=n[Ue.rowIdx],{key:qt,shiftKey:Mt}=Ve;if(Q&&Mt&&qt===" "){VJ(s);const Et=s(tt);Dc({type:"ROW",row:tt,checked:!f.has(Et),isShiftClick:!1}),Ve.preventDefault();return}B1(Ue)&&Ent(Ve)&&Gr(({idx:Et,rowIdx:Tt})=>({idx:Et,rowIdx:Tt,mode:"EDIT",row:tt,originalRow:tt}))}function Qv(Ve){return Ve>=bn&&Ve<=vo}function F1(Ve){return Ve>=0&&Ve=gr&&tt<=dt&&Qv(Ve)}function wp({idx:Ve,rowIdx:tt}){return F1(tt)&&Qv(Ve)}function B1(Ve){return wp(Ve)&&knt({columns:Pe,rows:n,selectedPosition:Ve})}function Uf(Ve,tt){if(!Sp(Ve))return;Ep();const qt=n[Ve.rowIdx],Mt=l3(Ue,Ve);tt&&B1(Ve)?Gr({...Ve,mode:"EDIT",row:qt,originalRow:qt}):Mt?zA(ZJ(Be.current)):(go.current=!0,Gr({...Ve,mode:"SELECT"})),b&&!Mt&&b({rowIdx:Ve.rowIdx,row:qt,column:Pe[Ve.idx]})}function F5(Ve,tt,qt){const{idx:Mt,rowIdx:Et}=Ue,Tt=ji&&Mt===-1;switch(Ve){case"ArrowUp":return{idx:Mt,rowIdx:Et-1};case"ArrowDown":return{idx:Mt,rowIdx:Et+1};case P:return{idx:Mt-1,rowIdx:Et};case B:return{idx:Mt+1,rowIdx:Et};case"Tab":return{idx:Mt+(qt?-1:1),rowIdx:Et};case"Home":return Tt?{idx:Mt,rowIdx:gr}:{idx:0,rowIdx:tt?gr:Et};case"End":return Tt?{idx:Mt,rowIdx:dt}:{idx:vo,rowIdx:tt?dt:Et};case"PageUp":{if(Ue.rowIdx===gr)return Ue;const Jr=Rt(Et)+St(Et)-Y;return{idx:Mt,rowIdx:Jr>0?_t(Jr):0}}case"PageDown":{if(Ue.rowIdx>=n.length)return Ue;const Jr=Rt(Et)+Y;return{idx:Mt,rowIdx:JrVe&&Ve>=ue)?Ue.idx:void 0}function Zv(){const Ve=ZJ(Be.current);if(Ve===null)return;zA(Ve),(Ve.querySelector('[tabindex="0"]')??Ve).focus({preventScroll:!0})}function M5(){if(!(C==null||Ue.mode==="EDIT"||!wp(Ue)))return N.jsx(sot,{gridRowStart:Nr+Ue.rowIdx+1,rows:n,columns:Pe,selectedPosition:Ue,isCellEditable:B1,latestDraggedOverRowIdx:Hr,onRowsChange:a,onClick:Zv,onFill:C,setDragging:he,setDraggedOverRowIdx:Sl})}function L5(Ve){if(Ue.rowIdx!==Ve||Ue.mode==="SELECT")return;const{idx:tt,row:qt}=Ue,Mt=Pe[tt],Et=su(Mt,mt,{type:"ROW",row:qt}),Tt=rn=>{go.current=rn,Gr(({idx:Co,rowIdx:Ma})=>({idx:Co,rowIdx:Ma,mode:"SELECT"}))},Jr=(rn,Co,Ma)=>{Co?li.flushSync(()=>{Al(Mt,Ue.rowIdx,rn),Tt(Ma)}):Gr(Bc=>({...Bc,row:rn}))};return n[Ue.rowIdx]!==Ue.originalRow&&Tt(!1),N.jsx(uot,{column:Mt,colSpan:Et,row:qt,rowIdx:Ve,onRowChange:Jr,closeEditor:Tt,onKeyDown:S,navigate:WE},Mt.key)}function M1(Ve){const tt=Ue.idx===-1?void 0:Pe[Ue.idx];return tt!==void 0&&Ue.rowIdx===Ve&&!Wt.includes(tt)?Ue.idx>Cr?[...Wt,tt]:[...Wt.slice(0,mt+1),tt,...Wt.slice(mt+1)]:Wt}function j5(){const Ve=[],{idx:tt,rowIdx:qt}=Ue,Mt=Cu&&qtye?ye+1:ye;for(let Tt=Mt;Tt<=Et;Tt++){const Jr=Tt===ne-1||Tt===ye+1,rn=Jr?qt:Tt;let Co=Wt;const Ma=tt===-1?void 0:Pe[tt];Ma!==void 0&&(Jr?Co=[Ma]:Co=M1(rn));const Bc=n[rn],z5=Nr+rn+1;let Ap=rn,Jv=!1;typeof s=="function"&&(Ap=s(Bc),Jv=(f==null?void 0:f.has(Ap))??!1),Ve.push(we(Ap,{"aria-rowindex":Nr+rn+1,"aria-selected":Q?Jv:void 0,rowIdx:rn,row:Bc,viewportColumns:Co,isRowSelected:Jv,onCellClick:oo,onCellDoubleClick:Ba,onCellContextMenu:Rc,rowClass:z,gridRowStart:z5,height:St(rn),copiedCellIdx:Je!==null&&Je.row===Bc?Pe.findIndex(No=>No.key===Je.columnKey):void 0,selectedCellIdx:qt===rn?tt:void 0,draggedOverCellIdx:B5(rn),setDraggedOverRowIdx:ir?Sl:void 0,lastFrozenColumnIndex:mt,onRowChange:Oc,selectCell:Ou,selectedCellEditor:L5(rn)}))}return Ve}(Ue.idx>vo||Ue.rowIdx>dt)&&(Gr({idx:-1,rowIdx:gr-1,mode:"SELECT"}),Sl(void 0));let Yf=`repeat(${Ct}, ${Ee}px)`;er>0&&(Yf+=` repeat(${er}, ${ve}px)`),n.length>0&&(Yf+=xt),Nt>0&&(Yf+=` repeat(${Nt}, ${ve}px)`);const KE=Ue.idx===-1&&Ue.rowIdx!==gr-1;return N.jsxs("div",{role:ge,"aria-label":K,"aria-labelledby":U,"aria-describedby":X,"aria-multiselectable":Q?!0:void 0,"aria-colcount":Pe.length,"aria-rowcount":Z,className:Df(Uot,M,ir&&Xot),style:{...q,scrollPaddingInlineStart:Ue.idx>mt||(pe==null?void 0:pe.idx)!==void 0?`${cn}px`:void 0,scrollPaddingBlock:F1(Ue.rowIdx)||(pe==null?void 0:pe.rowIdx)!==void 0?`${Le+er*ve}px ${Nt*ve}px`:void 0,gridTemplateColumns:$r,gridTemplateRows:Yf,"--rdg-header-row-height":`${Ee}px`,"--rdg-summary-row-height":`${ve}px`,"--rdg-sign":H?-1:1,...qr},dir:Oe,ref:Be,onScroll:wl,onKeyDown:Fc,"data-testid":ee,children:[N.jsx(Gnt,{value:ie,children:N.jsxs(Ynt,{value:Ru,children:[N.jsxs(she,{value:ae,children:[Array.from({length:Kr},(Ve,tt)=>N.jsx(Rot,{rowIdx:tt+1,level:-Kr+tt,columns:M1(gr+tt),selectedCellIdx:Ue.rowIdx===gr+tt?Ue.idx:void 0,selectCell:Gf},tt)),N.jsx(Cot,{rowIdx:Ct,columns:M1(Dt),onColumnResize:qs,onColumnsReorder:Nc,sortColumns:h,onSortColumnsChange:Nu,lastFrozenColumnIndex:mt,selectedCellIdx:Ue.rowIdx===Dt?Ue.idx:void 0,selectCell:Gf,shouldFocusGrid:!ji,direction:Oe})]}),n.length===0&&He?He:N.jsxs(N.Fragment,{children:[o==null?void 0:o.map((Ve,tt)=>{const qt=Ct+1+tt,Mt=Dt+1+tt,Et=Ue.rowIdx===Mt,Tt=Le+ve*tt;return N.jsx(QJ,{"aria-rowindex":qt,rowIdx:Mt,gridRowStart:qt,row:Ve,top:Tt,bottom:void 0,viewportColumns:M1(Mt),lastFrozenColumnIndex:mt,selectedCellIdx:Et?Ue.idx:void 0,isTop:!0,showBorder:tt===er-1,selectCell:Ou},tt)}),j5(),i==null?void 0:i.map((Ve,tt)=>{const qt=Nr+n.length+tt+1,Mt=n.length+tt,Et=Ue.rowIdx===Mt,Tt=Y>qe?Ie-ve*(i.length-tt):void 0,Jr=Tt===void 0?ve*(i.length-1-tt):void 0;return N.jsx(QJ,{"aria-rowindex":Z-Nt+tt+1,rowIdx:Mt,gridRowStart:qt,row:Ve,top:Tt,bottom:Jr,viewportColumns:M1(Mt),lastFrozenColumnIndex:mt,selectedCellIdx:Et?Ue.idx:void 0,isTop:!1,showBorder:tt===0,selectCell:Ou},tt)})]})]})}),M5(),Ant(Wt),Fa&&N.jsx("div",{ref:ps,tabIndex:KE?0:-1,className:Df(Qot,KE&&[kot,mt!==-1&&xot],!F1(Ue.rowIdx)&&Zot),style:{gridRowStart:Ue.rowIdx+Nr+1}}),pe!==null&&N.jsx($ot,{scrollToPosition:pe,setScrollToCellPosition:Ne,gridElement:Be.current})]})}function ZJ(e){return e.querySelector(':scope > [role="row"] > [tabindex="0"]')}function l3(e,t){return e.idx===t.idx&&e.rowIdx===t.rowIdx}const cit=k.forwardRef(lit),wE=()=>{const[e]=vet(I1e);return e},fit=()=>{const e=wE();return Bi(e.rows$).toArray()},dit=()=>{const e=wE();return k.useCallback(t=>{e.toggleRow(t)},[e])},hit=()=>{const e=wE();return[e.startTime,e.endTime]},pit=()=>{const e=wE();return Bi(e.selectedRowId$)},git=()=>{const e=wE();return Ej(e.selectedRowId$)},vit=({row:e})=>{const[t,r]=hit(),n=`${(e.startTime-t)*100/(r-t)}%`,o=`${(r-e.endTime)*100/(r-t)}%`,i=e.children&&e.children.length>0,s=e.isExpanded;return N.jsx("div",{style:{marginLeft:n,marginRight:o,height:"100%",marginTop:4,marginBottom:4,display:"flex"},children:i&&!s?N.jsx(N.Fragment,{children:(e.children??[]).map((a,u)=>{const l=`${(a.endTime-a.startTime)*100/(e.endTime-e.startTime)}%`;return N.jsx("div",{style:{backgroundColor:a.color??`rgba(0, 120, 212, ${1-.2*u})`,width:l}},a.id)})}):N.jsx("div",{style:{backgroundColor:e.color??"rgba(0, 120, 212, 1)",width:"100%"}})})},mit=({row:e})=>{const t=e.children!==void 0&&e.children.length>0,r=e.isExpanded,n=dit(),o=k.useCallback(i=>{i.preventDefault(),i.stopPropagation(),n(e.id)},[e.id,n]);return N.jsxs("div",{style:{display:"flex",gap:4,paddingLeft:e.level*24},children:[t?N.jsx("div",{onClick:o,role:"button",children:r?"▼":"▶"}):N.jsx(N.Fragment,{}),N.jsx("div",{children:e.node_name||e.name})]})},yit=[{key:"name",name:"node name",resizable:!0,width:320,renderCell({row:e}){return N.jsx(mit,{row:e})}},{key:"duration",name:"duration",resizable:!0,width:60,renderHeaderCell(){return N.jsx("div",{style:{textAlign:"right"},children:"duration"})},renderCell({row:e}){return N.jsxs("div",{style:{textAlign:"right"},children:[Math.round((e.endTime-e.startTime)*1e3).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")," ","ms"]})}},{key:"ganttChart",name:"gantt-chart",renderCell({row:e}){return N.jsx(vit,{row:e})},renderHeaderCell:()=>N.jsx(N.Fragment,{})}],bit=({styles:e,gridRef:t,getColumns:r=n=>n})=>{const n=fit(),o=git(),i=pit(),s=k.useCallback(l=>{const{row:c}=l;o(c.id)},[o]),a=mr(e==null?void 0:e.grid,{borderBottom:"none",borderRight:"none"}),u=k.useCallback(l=>mr(i===l.id?e==null?void 0:e.selectedRow:""),[i,e==null?void 0:e.selectedRow]);return N.jsx(cit,{rows:n,columns:r(yit),onCellClick:s,className:a,rowClass:u,ref:t})},_it=({viewModel:e,children:t})=>{const r=det({name:"gantt-wrapper"}),n=k.useCallback(o=>{o.register(I1e,{useValue:e})},[e]);return N.jsx(r,{onInitialize:n,children:t})};var kM=(e=>(e.Light="rdg-light",e.Dark="rdg-dark",e))(kM||{});const Eit=({viewModel:e,styles:t,getColumns:r,gridRef:n})=>N.jsx(_it,{viewModel:e,children:N.jsx(bit,{styles:t,getColumns:r,gridRef:n})}),Sit=({trace:e,JSONView:t})=>{const r=hi({root:["api-call-detail",{padding:8,width:"100%",height:"100%",display:"flex",flexDirection:"column"}],header:["api-call-detail-header",{fontWeight:600,fontSize:20,lineHeight:28,marginBottom:16}],section:["api-call-detail-section",{display:"flex",flexDirection:"column",width:"85%",height:"auto",boxShadow:"rgba(0, 0, 0, 0.18) 0px 1.6px 3.6px 0px, rgba(0, 0, 0, 0.22) 0px 0.3px 0.9px 0px",marginBottom:16}],sectionTitle:["api-call-detail-section-title",{fontWeight:500,fontSize:16,marginTop:8,marginBottom:8,lineHeight:20,borderBottom:"1px inset #ccc",padding:"9px 12px"}],sectionContent:["api-call-detail-section-content",{padding:16,overflow:"auto",maxHeight:"600px"}],fieldTitle:["api-call-detail-field-title",{fontWeight:500,fontSize:14,lineHeight:20}],overviewContainer:["api-call-detail-overview-container",{display:"flex",flexDirection:"row"}],overviewColumn:["api-call-detail-overview-column",{display:"flex",flexGrow:1,flexDirection:"column"}]}),n=e.node_name??e.name??"",o=J8(e),i=e.inputs??{},s=e.output??{};return N.jsxs("div",{className:r.root,children:[N.jsx("div",{className:r.header,children:n}),N.jsxs("div",{className:r.section,children:[N.jsx("div",{className:r.sectionTitle,children:"Overview"}),N.jsx("div",{className:r.sectionContent,children:N.jsxs("div",{className:r.overviewContainer,children:[N.jsxs("div",{className:r.overviewColumn,children:[N.jsx("div",{className:r.fieldTitle,children:"total tokens"}),N.jsx("div",{children:Gy(o.totalTokens)}),N.jsx("div",{className:r.fieldTitle,children:"prompt tokens"}),N.jsx("div",{children:Gy(o.promptTokens)}),N.jsx("div",{className:r.fieldTitle,children:"completion tokens"}),N.jsx("div",{children:Gy(o.completionTokens)})]}),N.jsxs("div",{className:r.overviewColumn,children:[N.jsx("div",{className:r.fieldTitle,children:"duration"}),N.jsx("div",{children:e.end_time&&e.start_time?`${Math.round((e.end_time-e.start_time)*1e3).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")} ms`:"N/A"}),N.jsx("div",{className:r.fieldTitle,children:"started at"}),N.jsx("div",{children:e.start_time?TG(e.start_time*1e3):"N/A"}),N.jsx("div",{className:r.fieldTitle,children:"finished at"}),N.jsx("div",{children:e.end_time?TG(e.end_time*1e3):"N/A"})]})]})})]}),N.jsxs("div",{className:r.section,children:[N.jsx("div",{className:r.sectionTitle,children:"Inputs"}),N.jsx("div",{className:r.sectionContent,children:N.jsx(t,{src:i})})]}),N.jsxs("div",{className:r.section,children:[N.jsx("div",{className:r.sectionTitle,children:"Outputs"}),N.jsx("div",{className:r.sectionContent,children:N.jsx(t,{src:s})})]})]})},che=new Map,wit=e=>{let t=0,r=0;if(e.length===0)return t;for(let n=0;ne.map(t=>{const r=Cs.v4();return che.set(r,t),{startTime:t.start_time??performance.now(),endTime:t.end_time??performance.now(),color:Nle[wit(t.name??"")%Ait],id:r,name:t.name??"",node_name:t.node_name??"",output:t.output??[],children:t.children?fhe(t.children):void 0}}),kit=({children:e,className:t})=>N.jsx(X1e,{enable:{right:!0},className:t,defaultSize:{width:"50%",height:"100%"},children:e}),JJ=({children:e,className:t})=>N.jsx("div",{className:t,children:e}),xit=k.forwardRef(({traces:e,styles:t,isDarkMode:r=!1,classNames:n,RootContainer:o=JJ,GridContainer:i=kit,DetailContainer:s=JJ,renderDetail:a=f=>N.jsx(Sit,{JSONView:d=>N.jsx("pre",{children:JSON.stringify(d)}),trace:f}),onChangeSelectedTrace:u,renderUnselectedHint:l=()=>N.jsx("div",{children:"Click on a row to see details"})},c)=>{const f=k.useMemo(()=>e.reduce((T,x)=>[...T,...fhe(x)],[]),[e]),d=k.useMemo(()=>new sx,[]);k.useEffect(()=>{d.setTasks(f)},[f,d]);const h=Bi(d.selectedRowId$),g=Ej(d.selectedRowId$),v=k.useMemo(()=>h?che.get(h):void 0,[h]),y=k.useMemo(()=>({...t,grid:mr(t==null?void 0:t.grid,r?kM.Dark:kM.Light)}),[t,r]),E=mr({display:"flex",height:"100%",borderTop:"1px solid #ccc"},n==null?void 0:n.root),_=mr({height:"100%",width:"100%",padding:16,borderRight:"1px solid #ccc"},n==null?void 0:n.gridContainer),S=mr({height:"100%",width:"100%",padding:8},n==null?void 0:n.detailContainer),b=k.useCallback(T=>{var C;const x=(C=f.find(I=>I.node_name===T))==null?void 0:C.id;x&&g(x)},[f,g]);k.useImperativeHandle(c,()=>({setSelectedTraceRow:b})),k.useEffect(()=>{u&&u(v)},[u,v]),k.useEffect(()=>{g(void 0)},[e]);const A=k.useCallback(T=>{const x={key:"token",name:"token",resizable:!0,width:60,renderHeaderCell(){return N.jsx("div",{style:{textAlign:"right"},children:"Tokens"})},renderCell({row:R}){const D=J8(R),L=`prompt tokens: ${Gy(D.promptTokens)}, + completion tokens: ${D.completionTokens}`;return N.jsx("div",{style:{textAlign:"right"},title:L,children:Gy(D.totalTokens)})}},[C,...I]=T;return[C,x,...I]},[]);return N.jsxs(o,{className:E,children:[N.jsx(i,{className:_,children:N.jsx(Eit,{viewModel:d,styles:y,getColumns:A})}),N.jsx(s,{className:S,children:v?a(v):l()})]})});xit.displayName="ApiLogs";ds((e,t)=>hi({root:mr({display:"flex",flexDirection:"row",alignItems:"center",height:"30px",background:"var(--background)",width:"100%",...t&&{position:"fixed",top:0,zIndex:100}},e),buttonGroup:{display:"flex",flexDirection:"row",height:"30px"},searchField:{marginRight:"100px",selectors:{"div.root":{height:"30px"}}}}));var Tit=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=eee[t.format]||eee.default;window.clipboardData.setData(f,e)}else c.clipboardData.clearData(),c.clipboardData.setData(t.format,e);t.onCopy&&(c.preventDefault(),t.onCopy(c.clipboardData))}),document.body.appendChild(a),i.selectNodeContents(a),s.addRange(i);var l=document.execCommand("copy");if(!l)throw new Error("copy command was unsuccessful");u=!0}catch(c){r&&console.error("unable to copy using execCommand: ",c),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(f){r&&console.error("unable to copy using clipboardData: ",f),r&&console.error("falling back to prompt"),n=Nit("message"in t?t.message:Cit),window.prompt(n,e)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(i):s.removeAllRanges()),a&&document.body.removeChild(a),o()}return u}var Oit=Rit;const dhe=Lf(Oit);class Dit extends k.Component{constructor(t){super(t),this.state={}}componentDidCatch(t,r){pi.postMessage({name:ln.ERROR_BOUNDARY_CAUGHT,payload:{error:t,errorInfo:r}}),this.setState({error:t,errorInfo:r})}renderDefaultFallback(){const t=()=>{var r,n;(n=(r=this.props)==null?void 0:r.onReload)==null||n.call(r),this.setState({error:void 0,errorInfo:void 0})};return N.jsxs("div",{children:[N.jsx("div",{children:"Something went wrong!"}),!!this.props.onReload&&N.jsx("button",{onClick:t,children:"Reload"})]})}render(){return this.state.error?this.props.fallback??this.renderDefaultFallback():this.props.children}}var Fit={exports:{}};(function(e,t){(function(r,n){e.exports=n(k)})(xs,function(r){return function(n){var o={};function i(s){if(o[s])return o[s].exports;var a=o[s]={i:s,l:!1,exports:{}};return n[s].call(a.exports,a,a.exports,i),a.l=!0,a.exports}return i.m=n,i.c=o,i.d=function(s,a,u){i.o(s,a)||Object.defineProperty(s,a,{enumerable:!0,get:u})},i.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},i.t=function(s,a){if(1&a&&(s=i(s)),8&a||4&a&&typeof s=="object"&&s&&s.__esModule)return s;var u=Object.create(null);if(i.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:s}),2&a&&typeof s!="string")for(var l in s)i.d(u,l,(function(c){return s[c]}).bind(null,l));return u},i.n=function(s){var a=s&&s.__esModule?function(){return s.default}:function(){return s};return i.d(a,"a",a),a},i.o=function(s,a){return Object.prototype.hasOwnProperty.call(s,a)},i.p="",i(i.s=48)}([function(n,o){n.exports=r},function(n,o){var i=n.exports={version:"2.6.12"};typeof __e=="number"&&(__e=i)},function(n,o,i){var s=i(26)("wks"),a=i(17),u=i(3).Symbol,l=typeof u=="function";(n.exports=function(c){return s[c]||(s[c]=l&&u[c]||(l?u:a)("Symbol."+c))}).store=s},function(n,o){var i=n.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=i)},function(n,o,i){n.exports=!i(8)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(n,o){var i={}.hasOwnProperty;n.exports=function(s,a){return i.call(s,a)}},function(n,o,i){var s=i(7),a=i(16);n.exports=i(4)?function(u,l,c){return s.f(u,l,a(1,c))}:function(u,l,c){return u[l]=c,u}},function(n,o,i){var s=i(10),a=i(35),u=i(23),l=Object.defineProperty;o.f=i(4)?Object.defineProperty:function(c,f,d){if(s(c),f=u(f,!0),s(d),a)try{return l(c,f,d)}catch{}if("get"in d||"set"in d)throw TypeError("Accessors not supported!");return"value"in d&&(c[f]=d.value),c}},function(n,o){n.exports=function(i){try{return!!i()}catch{return!0}}},function(n,o,i){var s=i(40),a=i(22);n.exports=function(u){return s(a(u))}},function(n,o,i){var s=i(11);n.exports=function(a){if(!s(a))throw TypeError(a+" is not an object!");return a}},function(n,o){n.exports=function(i){return typeof i=="object"?i!==null:typeof i=="function"}},function(n,o){n.exports={}},function(n,o,i){var s=i(39),a=i(27);n.exports=Object.keys||function(u){return s(u,a)}},function(n,o){n.exports=!0},function(n,o,i){var s=i(3),a=i(1),u=i(53),l=i(6),c=i(5),f=function(d,h,g){var v,y,E,_=d&f.F,S=d&f.G,b=d&f.S,A=d&f.P,T=d&f.B,x=d&f.W,C=S?a:a[h]||(a[h]={}),I=C.prototype,R=S?s:b?s[h]:(s[h]||{}).prototype;for(v in S&&(g=h),g)(y=!_&&R&&R[v]!==void 0)&&c(C,v)||(E=y?R[v]:g[v],C[v]=S&&typeof R[v]!="function"?g[v]:T&&y?u(E,s):x&&R[v]==E?function(D){var L=function(M,q,z){if(this instanceof D){switch(arguments.length){case 0:return new D;case 1:return new D(M);case 2:return new D(M,q)}return new D(M,q,z)}return D.apply(this,arguments)};return L.prototype=D.prototype,L}(E):A&&typeof E=="function"?u(Function.call,E):E,A&&((C.virtual||(C.virtual={}))[v]=E,d&f.R&&I&&!I[v]&&l(I,v,E)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,n.exports=f},function(n,o){n.exports=function(i,s){return{enumerable:!(1&i),configurable:!(2&i),writable:!(4&i),value:s}}},function(n,o){var i=0,s=Math.random();n.exports=function(a){return"Symbol(".concat(a===void 0?"":a,")_",(++i+s).toString(36))}},function(n,o,i){var s=i(22);n.exports=function(a){return Object(s(a))}},function(n,o){o.f={}.propertyIsEnumerable},function(n,o,i){var s=i(52)(!0);i(34)(String,"String",function(a){this._t=String(a),this._i=0},function(){var a,u=this._t,l=this._i;return l>=u.length?{value:void 0,done:!0}:(a=s(u,l),this._i+=a.length,{value:a,done:!1})})},function(n,o){var i=Math.ceil,s=Math.floor;n.exports=function(a){return isNaN(a=+a)?0:(a>0?s:i)(a)}},function(n,o){n.exports=function(i){if(i==null)throw TypeError("Can't call method on "+i);return i}},function(n,o,i){var s=i(11);n.exports=function(a,u){if(!s(a))return a;var l,c;if(u&&typeof(l=a.toString)=="function"&&!s(c=l.call(a))||typeof(l=a.valueOf)=="function"&&!s(c=l.call(a))||!u&&typeof(l=a.toString)=="function"&&!s(c=l.call(a)))return c;throw TypeError("Can't convert object to primitive value")}},function(n,o){var i={}.toString;n.exports=function(s){return i.call(s).slice(8,-1)}},function(n,o,i){var s=i(26)("keys"),a=i(17);n.exports=function(u){return s[u]||(s[u]=a(u))}},function(n,o,i){var s=i(1),a=i(3),u=a["__core-js_shared__"]||(a["__core-js_shared__"]={});(n.exports=function(l,c){return u[l]||(u[l]=c!==void 0?c:{})})("versions",[]).push({version:s.version,mode:i(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(n,o){n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(n,o,i){var s=i(7).f,a=i(5),u=i(2)("toStringTag");n.exports=function(l,c,f){l&&!a(l=f?l:l.prototype,u)&&s(l,u,{configurable:!0,value:c})}},function(n,o,i){i(62);for(var s=i(3),a=i(6),u=i(12),l=i(2)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),f=0;fdocument.F=Object<\/script>"),d.close(),f=d.F;g--;)delete f.prototype[u[g]];return f()};n.exports=Object.create||function(d,h){var g;return d!==null?(c.prototype=s(d),g=new c,c.prototype=null,g[l]=d):g=f(),h===void 0?g:a(g,h)}},function(n,o,i){var s=i(5),a=i(9),u=i(57)(!1),l=i(25)("IE_PROTO");n.exports=function(c,f){var d,h=a(c),g=0,v=[];for(d in h)d!=l&&s(h,d)&&v.push(d);for(;f.length>g;)s(h,d=f[g++])&&(~u(v,d)||v.push(d));return v}},function(n,o,i){var s=i(24);n.exports=Object("z").propertyIsEnumerable(0)?Object:function(a){return s(a)=="String"?a.split(""):Object(a)}},function(n,o,i){var s=i(39),a=i(27).concat("length","prototype");o.f=Object.getOwnPropertyNames||function(u){return s(u,a)}},function(n,o,i){var s=i(24),a=i(2)("toStringTag"),u=s(function(){return arguments}())=="Arguments";n.exports=function(l){var c,f,d;return l===void 0?"Undefined":l===null?"Null":typeof(f=function(h,g){try{return h[g]}catch{}}(c=Object(l),a))=="string"?f:u?s(c):(d=s(c))=="Object"&&typeof c.callee=="function"?"Arguments":d}},function(n,o){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch{typeof window=="object"&&(i=window)}n.exports=i},function(n,o){var i=/-?\d+(\.\d+)?%?/g;n.exports=function(s){return s.match(i)}},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.getBase16Theme=o.createStyling=o.invertTheme=void 0;var s=y(i(49)),a=y(i(76)),u=y(i(81)),l=y(i(89)),c=y(i(93)),f=function(I){if(I&&I.__esModule)return I;var R={};if(I!=null)for(var D in I)Object.prototype.hasOwnProperty.call(I,D)&&(R[D]=I[D]);return R.default=I,R}(i(94)),d=y(i(132)),h=y(i(133)),g=y(i(138)),v=i(139);function y(I){return I&&I.__esModule?I:{default:I}}var E=f.default,_=(0,l.default)(E),S=(0,g.default)(h.default,v.rgb2yuv,function(I){var R,D=(0,u.default)(I,3),L=D[0],M=D[1],q=D[2];return[(R=L,R<.25?1:R<.5?.9-R:1.1-R),M,q]},v.yuv2rgb,d.default),b=function(I){return function(R){return{className:[R.className,I.className].filter(Boolean).join(" "),style:(0,a.default)({},R.style||{},I.style||{})}}},A=function(I,R){var D=(0,l.default)(R);for(var L in I)D.indexOf(L)===-1&&D.push(L);return D.reduce(function(M,q){return M[q]=function(z,F){if(z===void 0)return F;if(F===void 0)return z;var $=z===void 0?"undefined":(0,s.default)(z),K=F===void 0?"undefined":(0,s.default)(F);switch($){case"string":switch(K){case"string":return[F,z].filter(Boolean).join(" ");case"object":return b({className:z,style:F});case"function":return function(U){for(var X=arguments.length,J=Array(X>1?X-1:0),ee=1;ee1?X-1:0),ee=1;ee1?X-1:0),ee=1;ee1?X-1:0),ee=1;ee1?X-1:0),ee=1;ee2?D-2:0),M=2;M3?R-3:0),L=3;L1&&arguments[1]!==void 0?arguments[1]:{},q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},z=M.defaultBase16,F=z===void 0?E:z,$=M.base16Themes,K=$===void 0?null:$,U=C(q,K);U&&(q=(0,a.default)({},U,q));var X=_.reduce(function(ge,Se){return ge[Se]=q[Se]||F[Se],ge},{}),J=(0,l.default)(q).reduce(function(ge,Se){return _.indexOf(Se)===-1&&(ge[Se]=q[Se]),ge},{}),ee=I(X),fe=A(J,ee);return(0,c.default)(T,2).apply(void 0,[fe].concat(D))},3),o.getBase16Theme=function(I,R){if(I&&I.extend&&(I=I.extend),typeof I=="string"){var D=I.split(":"),L=(0,u.default)(D,2),M=L[0],q=L[1];I=(R||{})[M]||f[M],q==="inverted"&&(I=x(I))}return I&&I.hasOwnProperty("base00")?I:void 0})},function(n,o,i){var s,a=typeof Reflect=="object"?Reflect:null,u=a&&typeof a.apply=="function"?a.apply:function(b,A,T){return Function.prototype.apply.call(b,A,T)};s=a&&typeof a.ownKeys=="function"?a.ownKeys:Object.getOwnPropertySymbols?function(b){return Object.getOwnPropertyNames(b).concat(Object.getOwnPropertySymbols(b))}:function(b){return Object.getOwnPropertyNames(b)};var l=Number.isNaN||function(b){return b!=b};function c(){c.init.call(this)}n.exports=c,n.exports.once=function(b,A){return new Promise(function(T,x){function C(){I!==void 0&&b.removeListener("error",I),T([].slice.call(arguments))}var I;A!=="error"&&(I=function(R){b.removeListener(A,C),x(R)},b.once("error",I)),b.once(A,C)})},c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var f=10;function d(b){if(typeof b!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof b)}function h(b){return b._maxListeners===void 0?c.defaultMaxListeners:b._maxListeners}function g(b,A,T,x){var C,I,R,D;if(d(T),(I=b._events)===void 0?(I=b._events=Object.create(null),b._eventsCount=0):(I.newListener!==void 0&&(b.emit("newListener",A,T.listener?T.listener:T),I=b._events),R=I[A]),R===void 0)R=I[A]=T,++b._eventsCount;else if(typeof R=="function"?R=I[A]=x?[T,R]:[R,T]:x?R.unshift(T):R.push(T),(C=h(b))>0&&R.length>C&&!R.warned){R.warned=!0;var L=new Error("Possible EventEmitter memory leak detected. "+R.length+" "+String(A)+" listeners added. Use emitter.setMaxListeners() to increase limit");L.name="MaxListenersExceededWarning",L.emitter=b,L.type=A,L.count=R.length,D=L,console&&console.warn&&console.warn(D)}return b}function v(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function y(b,A,T){var x={fired:!1,wrapFn:void 0,target:b,type:A,listener:T},C=v.bind(x);return C.listener=T,x.wrapFn=C,C}function E(b,A,T){var x=b._events;if(x===void 0)return[];var C=x[A];return C===void 0?[]:typeof C=="function"?T?[C.listener||C]:[C]:T?function(I){for(var R=new Array(I.length),D=0;D0&&(I=A[0]),I instanceof Error)throw I;var R=new Error("Unhandled error."+(I?" ("+I.message+")":""));throw R.context=I,R}var D=C[b];if(D===void 0)return!1;if(typeof D=="function")u(D,this,A);else{var L=D.length,M=S(D,L);for(T=0;T=0;I--)if(T[I]===A||T[I].listener===A){R=T[I].listener,C=I;break}if(C<0)return this;C===0?T.shift():function(D,L){for(;L+1=0;x--)this.removeListener(b,A[x]);return this},c.prototype.listeners=function(b){return E(this,b,!0)},c.prototype.rawListeners=function(b){return E(this,b,!1)},c.listenerCount=function(b,A){return typeof b.listenerCount=="function"?b.listenerCount(A):_.call(b,A)},c.prototype.listenerCount=_,c.prototype.eventNames=function(){return this._eventsCount>0?s(this._events):[]}},function(n,o,i){n.exports.Dispatcher=i(140)},function(n,o,i){n.exports=i(142)},function(n,o,i){o.__esModule=!0;var s=l(i(50)),a=l(i(65)),u=typeof a.default=="function"&&typeof s.default=="symbol"?function(c){return typeof c}:function(c){return c&&typeof a.default=="function"&&c.constructor===a.default&&c!==a.default.prototype?"symbol":typeof c};function l(c){return c&&c.__esModule?c:{default:c}}o.default=typeof a.default=="function"&&u(s.default)==="symbol"?function(c){return c===void 0?"undefined":u(c)}:function(c){return c&&typeof a.default=="function"&&c.constructor===a.default&&c!==a.default.prototype?"symbol":c===void 0?"undefined":u(c)}},function(n,o,i){n.exports={default:i(51),__esModule:!0}},function(n,o,i){i(20),i(29),n.exports=i(30).f("iterator")},function(n,o,i){var s=i(21),a=i(22);n.exports=function(u){return function(l,c){var f,d,h=String(a(l)),g=s(c),v=h.length;return g<0||g>=v?u?"":void 0:(f=h.charCodeAt(g))<55296||f>56319||g+1===v||(d=h.charCodeAt(g+1))<56320||d>57343?u?h.charAt(g):f:u?h.slice(g,g+2):d-56320+(f-55296<<10)+65536}}},function(n,o,i){var s=i(54);n.exports=function(a,u,l){if(s(a),u===void 0)return a;switch(l){case 1:return function(c){return a.call(u,c)};case 2:return function(c,f){return a.call(u,c,f)};case 3:return function(c,f,d){return a.call(u,c,f,d)}}return function(){return a.apply(u,arguments)}}},function(n,o){n.exports=function(i){if(typeof i!="function")throw TypeError(i+" is not a function!");return i}},function(n,o,i){var s=i(38),a=i(16),u=i(28),l={};i(6)(l,i(2)("iterator"),function(){return this}),n.exports=function(c,f,d){c.prototype=s(l,{next:a(1,d)}),u(c,f+" Iterator")}},function(n,o,i){var s=i(7),a=i(10),u=i(13);n.exports=i(4)?Object.defineProperties:function(l,c){a(l);for(var f,d=u(c),h=d.length,g=0;h>g;)s.f(l,f=d[g++],c[f]);return l}},function(n,o,i){var s=i(9),a=i(58),u=i(59);n.exports=function(l){return function(c,f,d){var h,g=s(c),v=a(g.length),y=u(d,v);if(l&&f!=f){for(;v>y;)if((h=g[y++])!=h)return!0}else for(;v>y;y++)if((l||y in g)&&g[y]===f)return l||y||0;return!l&&-1}}},function(n,o,i){var s=i(21),a=Math.min;n.exports=function(u){return u>0?a(s(u),9007199254740991):0}},function(n,o,i){var s=i(21),a=Math.max,u=Math.min;n.exports=function(l,c){return(l=s(l))<0?a(l+c,0):u(l,c)}},function(n,o,i){var s=i(3).document;n.exports=s&&s.documentElement},function(n,o,i){var s=i(5),a=i(18),u=i(25)("IE_PROTO"),l=Object.prototype;n.exports=Object.getPrototypeOf||function(c){return c=a(c),s(c,u)?c[u]:typeof c.constructor=="function"&&c instanceof c.constructor?c.constructor.prototype:c instanceof Object?l:null}},function(n,o,i){var s=i(63),a=i(64),u=i(12),l=i(9);n.exports=i(34)(Array,"Array",function(c,f){this._t=l(c),this._i=0,this._k=f},function(){var c=this._t,f=this._k,d=this._i++;return!c||d>=c.length?(this._t=void 0,a(1)):a(0,f=="keys"?d:f=="values"?c[d]:[d,c[d]])},"values"),u.Arguments=u.Array,s("keys"),s("values"),s("entries")},function(n,o){n.exports=function(){}},function(n,o){n.exports=function(i,s){return{value:s,done:!!i}}},function(n,o,i){n.exports={default:i(66),__esModule:!0}},function(n,o,i){i(67),i(73),i(74),i(75),n.exports=i(1).Symbol},function(n,o,i){var s=i(3),a=i(5),u=i(4),l=i(15),c=i(37),f=i(68).KEY,d=i(8),h=i(26),g=i(28),v=i(17),y=i(2),E=i(30),_=i(31),S=i(69),b=i(70),A=i(10),T=i(11),x=i(18),C=i(9),I=i(23),R=i(16),D=i(38),L=i(71),M=i(72),q=i(32),z=i(7),F=i(13),$=M.f,K=z.f,U=L.f,X=s.Symbol,J=s.JSON,ee=J&&J.stringify,fe=y("_hidden"),ge=y("toPrimitive"),Se={}.propertyIsEnumerable,Ee=h("symbol-registry"),ve=h("symbols"),we=h("op-symbols"),me=Object.prototype,xe=typeof X=="function"&&!!q.f,He=s.QObject,it=!He||!He.prototype||!He.prototype.findChild,Oe=u&&d(function(){return D(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a!=7})?function(se,pe,Ne){var Be=$(me,pe);Be&&delete me[pe],K(se,pe,Ne),Be&&se!==me&&K(me,pe,Be)}:K,Qe=function(se){var pe=ve[se]=D(X.prototype);return pe._k=se,pe},Fe=xe&&typeof X.iterator=="symbol"?function(se){return typeof se=="symbol"}:function(se){return se instanceof X},Ze=function(se,pe,Ne){return se===me&&Ze(we,pe,Ne),A(se),pe=I(pe,!0),A(Ne),a(ve,pe)?(Ne.enumerable?(a(se,fe)&&se[fe][pe]&&(se[fe][pe]=!1),Ne=D(Ne,{enumerable:R(0,!1)})):(a(se,fe)||K(se,fe,R(1,{})),se[fe][pe]=!0),Oe(se,pe,Ne)):K(se,pe,Ne)},$e=function(se,pe){A(se);for(var Ne,Be=S(pe=C(pe)),Ae=0,Ie=Be.length;Ie>Ae;)Ze(se,Ne=Be[Ae++],pe[Ne]);return se},Ge=function(se){var pe=Se.call(this,se=I(se,!0));return!(this===me&&a(ve,se)&&!a(we,se))&&(!(pe||!a(this,se)||!a(ve,se)||a(this,fe)&&this[fe][se])||pe)},kt=function(se,pe){if(se=C(se),pe=I(pe,!0),se!==me||!a(ve,pe)||a(we,pe)){var Ne=$(se,pe);return!Ne||!a(ve,pe)||a(se,fe)&&se[fe][pe]||(Ne.enumerable=!0),Ne}},$t=function(se){for(var pe,Ne=U(C(se)),Be=[],Ae=0;Ne.length>Ae;)a(ve,pe=Ne[Ae++])||pe==fe||pe==f||Be.push(pe);return Be},bt=function(se){for(var pe,Ne=se===me,Be=U(Ne?we:C(se)),Ae=[],Ie=0;Be.length>Ie;)!a(ve,pe=Be[Ie++])||Ne&&!a(me,pe)||Ae.push(ve[pe]);return Ae};xe||(c((X=function(){if(this instanceof X)throw TypeError("Symbol is not a constructor!");var se=v(arguments.length>0?arguments[0]:void 0),pe=function(Ne){this===me&&pe.call(we,Ne),a(this,fe)&&a(this[fe],se)&&(this[fe][se]=!1),Oe(this,se,R(1,Ne))};return u&&it&&Oe(me,se,{configurable:!0,set:pe}),Qe(se)}).prototype,"toString",function(){return this._k}),M.f=kt,z.f=Ze,i(41).f=L.f=$t,i(19).f=Ge,q.f=bt,u&&!i(14)&&c(me,"propertyIsEnumerable",Ge,!0),E.f=function(se){return Qe(y(se))}),l(l.G+l.W+l.F*!xe,{Symbol:X});for(var Je="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ot=0;Je.length>ot;)y(Je[ot++]);for(var ir=F(y.store),he=0;ir.length>he;)_(ir[he++]);l(l.S+l.F*!xe,"Symbol",{for:function(se){return a(Ee,se+="")?Ee[se]:Ee[se]=X(se)},keyFor:function(se){if(!Fe(se))throw TypeError(se+" is not a symbol!");for(var pe in Ee)if(Ee[pe]===se)return pe},useSetter:function(){it=!0},useSimple:function(){it=!1}}),l(l.S+l.F*!xe,"Object",{create:function(se,pe){return pe===void 0?D(se):$e(D(se),pe)},defineProperty:Ze,defineProperties:$e,getOwnPropertyDescriptor:kt,getOwnPropertyNames:$t,getOwnPropertySymbols:bt});var ue=d(function(){q.f(1)});l(l.S+l.F*ue,"Object",{getOwnPropertySymbols:function(se){return q.f(x(se))}}),J&&l(l.S+l.F*(!xe||d(function(){var se=X();return ee([se])!="[null]"||ee({a:se})!="{}"||ee(Object(se))!="{}"})),"JSON",{stringify:function(se){for(var pe,Ne,Be=[se],Ae=1;arguments.length>Ae;)Be.push(arguments[Ae++]);if(Ne=pe=Be[1],(T(pe)||se!==void 0)&&!Fe(se))return b(pe)||(pe=function(Ie,Pe){if(typeof Ne=="function"&&(Pe=Ne.call(this,Ie,Pe)),!Fe(Pe))return Pe}),Be[1]=pe,ee.apply(J,Be)}}),X.prototype[ge]||i(6)(X.prototype,ge,X.prototype.valueOf),g(X,"Symbol"),g(Math,"Math",!0),g(s.JSON,"JSON",!0)},function(n,o,i){var s=i(17)("meta"),a=i(11),u=i(5),l=i(7).f,c=0,f=Object.isExtensible||function(){return!0},d=!i(8)(function(){return f(Object.preventExtensions({}))}),h=function(v){l(v,s,{value:{i:"O"+ ++c,w:{}}})},g=n.exports={KEY:s,NEED:!1,fastKey:function(v,y){if(!a(v))return typeof v=="symbol"?v:(typeof v=="string"?"S":"P")+v;if(!u(v,s)){if(!f(v))return"F";if(!y)return"E";h(v)}return v[s].i},getWeak:function(v,y){if(!u(v,s)){if(!f(v))return!0;if(!y)return!1;h(v)}return v[s].w},onFreeze:function(v){return d&&g.NEED&&f(v)&&!u(v,s)&&h(v),v}}},function(n,o,i){var s=i(13),a=i(32),u=i(19);n.exports=function(l){var c=s(l),f=a.f;if(f)for(var d,h=f(l),g=u.f,v=0;h.length>v;)g.call(l,d=h[v++])&&c.push(d);return c}},function(n,o,i){var s=i(24);n.exports=Array.isArray||function(a){return s(a)=="Array"}},function(n,o,i){var s=i(9),a=i(41).f,u={}.toString,l=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];n.exports.f=function(c){return l&&u.call(c)=="[object Window]"?function(f){try{return a(f)}catch{return l.slice()}}(c):a(s(c))}},function(n,o,i){var s=i(19),a=i(16),u=i(9),l=i(23),c=i(5),f=i(35),d=Object.getOwnPropertyDescriptor;o.f=i(4)?d:function(h,g){if(h=u(h),g=l(g,!0),f)try{return d(h,g)}catch{}if(c(h,g))return a(!s.f.call(h,g),h[g])}},function(n,o){},function(n,o,i){i(31)("asyncIterator")},function(n,o,i){i(31)("observable")},function(n,o,i){o.__esModule=!0;var s,a=i(77),u=(s=a)&&s.__esModule?s:{default:s};o.default=u.default||function(l){for(var c=1;cE;)for(var b,A=f(arguments[E++]),T=_?a(A).concat(_(A)):a(A),x=T.length,C=0;x>C;)b=T[C++],s&&!S.call(A,b)||(v[b]=A[b]);return v}:d},function(n,o,i){o.__esModule=!0;var s=u(i(82)),a=u(i(85));function u(l){return l&&l.__esModule?l:{default:l}}o.default=function(l,c){if(Array.isArray(l))return l;if((0,s.default)(Object(l)))return function(f,d){var h=[],g=!0,v=!1,y=void 0;try{for(var E,_=(0,a.default)(f);!(g=(E=_.next()).done)&&(h.push(E.value),!d||h.length!==d);g=!0);}catch(S){v=!0,y=S}finally{try{!g&&_.return&&_.return()}finally{if(v)throw y}}return h}(l,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(n,o,i){n.exports={default:i(83),__esModule:!0}},function(n,o,i){i(29),i(20),n.exports=i(84)},function(n,o,i){var s=i(42),a=i(2)("iterator"),u=i(12);n.exports=i(1).isIterable=function(l){var c=Object(l);return c[a]!==void 0||"@@iterator"in c||u.hasOwnProperty(s(c))}},function(n,o,i){n.exports={default:i(86),__esModule:!0}},function(n,o,i){i(29),i(20),n.exports=i(87)},function(n,o,i){var s=i(10),a=i(88);n.exports=i(1).getIterator=function(u){var l=a(u);if(typeof l!="function")throw TypeError(u+" is not iterable!");return s(l.call(u))}},function(n,o,i){var s=i(42),a=i(2)("iterator"),u=i(12);n.exports=i(1).getIteratorMethod=function(l){if(l!=null)return l[a]||l["@@iterator"]||u[s(l)]}},function(n,o,i){n.exports={default:i(90),__esModule:!0}},function(n,o,i){i(91),n.exports=i(1).Object.keys},function(n,o,i){var s=i(18),a=i(13);i(92)("keys",function(){return function(u){return a(s(u))}})},function(n,o,i){var s=i(15),a=i(1),u=i(8);n.exports=function(l,c){var f=(a.Object||{})[l]||Object[l],d={};d[l]=c(f),s(s.S+s.F*u(function(){f(1)}),"Object",d)}},function(n,o,i){(function(s){var a=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u=/^\s+|\s+$/g,l=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,c=/\{\n\/\* \[wrapped with (.+)\] \*/,f=/,? & /,d=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,g=/^\[object .+?Constructor\]$/,v=/^0o[0-7]+$/i,y=/^(?:0|[1-9]\d*)$/,E=parseInt,_=typeof s=="object"&&s&&s.Object===Object&&s,S=typeof self=="object"&&self&&self.Object===Object&&self,b=_||S||Function("return this")();function A(he,ue,se){switch(se.length){case 0:return he.call(ue);case 1:return he.call(ue,se[0]);case 2:return he.call(ue,se[0],se[1]);case 3:return he.call(ue,se[0],se[1],se[2])}return he.apply(ue,se)}function T(he,ue){return!!(he&&he.length)&&function(se,pe,Ne){if(pe!=pe)return function(Ie,Pe,lt,mt){for(var Ct=Ie.length,dr=lt+(mt?1:-1);mt?dr--:++dr-1}function x(he){return he!=he}function C(he,ue){for(var se=he.length,pe=0;se--;)he[se]===ue&&pe++;return pe}function I(he,ue){for(var se=-1,pe=he.length,Ne=0,Be=[];++se2?D:void 0);function Se(he){return Je(he)?J(he):{}}function Ee(he){return!(!Je(he)||function(ue){return!!F&&F in ue}(he))&&(function(ue){var se=Je(ue)?U.call(ue):"";return se=="[object Function]"||se=="[object GeneratorFunction]"}(he)||function(ue){var se=!1;if(ue!=null&&typeof ue.toString!="function")try{se=!!(ue+"")}catch{}return se}(he)?X:g).test(function(ue){if(ue!=null){try{return $.call(ue)}catch{}try{return ue+""}catch{}}return""}(he))}function ve(he,ue,se,pe){for(var Ne=-1,Be=he.length,Ae=se.length,Ie=-1,Pe=ue.length,lt=ee(Be-Ae,0),mt=Array(Pe+lt),Ct=!pe;++Ie1&&Nt.reverse(),mt&&Pe1?"& ":"")+ue[pe],ue=ue.join(se>2?", ":" "),he.replace(l,`{ +/* [wrapped with `+ue+`] */ +`)}function $e(he,ue){return!!(ue=ue??9007199254740991)&&(typeof he=="number"||y.test(he))&&he>-1&&he%1==0&&he1&&u--,c=6*u<1?s+6*(a-s)*u:2*u<1?a:3*u<2?s+(a-s)*(2/3-u)*6:s,l[g]=255*c;return l}},function(n,o,i){(function(s){var a=typeof s=="object"&&s&&s.Object===Object&&s,u=typeof self=="object"&&self&&self.Object===Object&&self,l=a||u||Function("return this")();function c(I,R,D){switch(D.length){case 0:return I.call(R);case 1:return I.call(R,D[0]);case 2:return I.call(R,D[0],D[1]);case 3:return I.call(R,D[0],D[1],D[2])}return I.apply(R,D)}function f(I,R){for(var D=-1,L=R.length,M=I.length;++D-1&&M%1==0&&M<=9007199254740991}(L.length)&&!function(M){var q=function(z){var F=typeof z;return!!z&&(F=="object"||F=="function")}(M)?g.call(M):"";return q=="[object Function]"||q=="[object GeneratorFunction]"}(L)}(D)}(R)&&h.call(R,"callee")&&(!y.call(R,"callee")||g.call(R)=="[object Arguments]")}(I)||!!(E&&I&&I[E])}var b=Array.isArray,A,T,x,C=(T=function(I){var R=(I=function L(M,q,z,F,$){var K=-1,U=M.length;for(z||(z=S),$||($=[]);++K0&&z(X)?q>1?L(X,q-1,z,F,$):f($,X):F||($[$.length]=X)}return $}(I,1)).length,D=R;for(A;D--;)if(typeof I[D]!="function")throw new TypeError("Expected a function");return function(){for(var L=0,M=R?I[L].apply(this,arguments):arguments[0];++L2?u-2:0),c=2;c"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var H,P=g(Y);if(Q){var B=g(this).constructor;H=Reflect.construct(P,arguments,B)}else H=P.apply(this,arguments);return E(this,H)}}i.r(o);var S=i(0),b=i.n(S);function A(){var Y=this.constructor.getDerivedStateFromProps(this.props,this.state);Y!=null&&this.setState(Y)}function T(Y){this.setState((function(Q){var H=this.constructor.getDerivedStateFromProps(Y,Q);return H??null}).bind(this))}function x(Y,Q){try{var H=this.props,P=this.state;this.props=Y,this.state=Q,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(H,P)}finally{this.props=H,this.state=P}}function C(Y){var Q=Y.prototype;if(!Q||!Q.isReactComponent)throw new Error("Can only polyfill class components");if(typeof Y.getDerivedStateFromProps!="function"&&typeof Q.getSnapshotBeforeUpdate!="function")return Y;var H=null,P=null,B=null;if(typeof Q.componentWillMount=="function"?H="componentWillMount":typeof Q.UNSAFE_componentWillMount=="function"&&(H="UNSAFE_componentWillMount"),typeof Q.componentWillReceiveProps=="function"?P="componentWillReceiveProps":typeof Q.UNSAFE_componentWillReceiveProps=="function"&&(P="UNSAFE_componentWillReceiveProps"),typeof Q.componentWillUpdate=="function"?B="componentWillUpdate":typeof Q.UNSAFE_componentWillUpdate=="function"&&(B="UNSAFE_componentWillUpdate"),H!==null||P!==null||B!==null){var Z=Y.displayName||Y.name,ie=typeof Y.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. `+Z+" uses "+ie+" but also contains the following legacy lifecycles:"+(H!==null?` - `+H:"")+($!==null?` - `+$:"")+(F!==null?` - `+F:"")+` + `+H:"")+(P!==null?` + `+P:"")+(B!==null?` + `+B:"")+` The above lifecycles should be removed. Learn more about this warning here: -https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof Y.getDerivedStateFromProps=="function"&&(Q.componentWillMount=A,Q.componentWillReceiveProps=x),typeof Q.getSnapshotBeforeUpdate=="function"){if(typeof Q.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");Q.componentWillUpdate=T;var ue=Q.componentDidUpdate;Q.componentDidUpdate=function(ne,ye,qe){var kt=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:qe;ue.call(this,ne,ye,kt)}}return Y}function I(Y,Q){if(Y==null)return{};var H,$,F=function(ie,ue){if(ie==null)return{};var ne,ye,qe={},kt=Object.keys(ie);for(ye=0;ye=0||(qe[ne]=ie[ne]);return qe}(Y,Q);if(Object.getOwnPropertySymbols){var Z=Object.getOwnPropertySymbols(Y);for($=0;$=0||Object.prototype.propertyIsEnumerable.call(Y,H)&&(F[H]=Y[H])}return F}function R(Y){var Q=function(H){return{}.toString.call(H).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}(Y);return Q==="number"&&(Q=isNaN(Y)?"nan":(0|Y)!=Y?"float":"integer"),Q}A.__suppressDeprecationWarning=!0,x.__suppressDeprecationWarning=!0,T.__suppressDeprecationWarning=!0;var D={scheme:"rjv-default",author:"mac gainor",base00:"rgba(0, 0, 0, 0)",base01:"rgb(245, 245, 245)",base02:"rgb(235, 235, 235)",base03:"#93a1a1",base04:"rgba(0, 0, 0, 0.3)",base05:"#586e75",base06:"#073642",base07:"#002b36",base08:"#d33682",base09:"#cb4b16",base0A:"#dc322f",base0B:"#859900",base0C:"#6c71c4",base0D:"#586e75",base0E:"#2aa198",base0F:"#268bd2"},L={scheme:"rjv-grey",author:"mac gainor",base00:"rgba(1, 1, 1, 0)",base01:"rgba(1, 1, 1, 0.1)",base02:"rgba(0, 0, 0, 0.2)",base03:"rgba(1, 1, 1, 0.3)",base04:"rgba(0, 0, 0, 0.4)",base05:"rgba(1, 1, 1, 0.5)",base06:"rgba(1, 1, 1, 0.6)",base07:"rgba(1, 1, 1, 0.7)",base08:"rgba(1, 1, 1, 0.8)",base09:"rgba(1, 1, 1, 0.8)",base0A:"rgba(1, 1, 1, 0.8)",base0B:"rgba(1, 1, 1, 0.8)",base0C:"rgba(1, 1, 1, 0.8)",base0D:"rgba(1, 1, 1, 0.8)",base0E:"rgba(1, 1, 1, 0.8)",base0F:"rgba(1, 1, 1, 0.8)"},M={white:"#fff",black:"#000",transparent:"rgba(1, 1, 1, 0)",globalFontFamily:"monospace",globalCursor:"default",indentBlockWidth:"5px",braceFontWeight:"bold",braceCursor:"pointer",ellipsisFontSize:"18px",ellipsisLineHeight:"10px",ellipsisCursor:"pointer",keyMargin:"0px 5px",keyLetterSpacing:"0.5px",keyFontStyle:"none",keyBorderRadius:"3px",keyColonWeight:"bold",keyVerticalAlign:"top",keyOpacity:"0.85",keyOpacityHover:"1",keyValPaddingTop:"3px",keyValPaddingBottom:"3px",keyValPaddingRight:"5px",keyValBorderLeft:"1px solid",keyValBorderHover:"2px solid",keyValPaddingHover:"3px 5px 3px 4px",pushedContentMarginLeft:"6px",variableValuePaddingRight:"6px",nullFontSize:"11px",nullFontWeight:"bold",nullPadding:"1px 2px",nullBorderRadius:"3px",nanFontSize:"11px",nanFontWeight:"bold",nanPadding:"1px 2px",nanBorderRadius:"3px",undefinedFontSize:"11px",undefinedFontWeight:"bold",undefinedPadding:"1px 2px",undefinedBorderRadius:"3px",dataTypeFontSize:"11px",dataTypeMarginRight:"4px",datatypeOpacity:"0.8",objectSizeBorderRadius:"3px",objectSizeFontStyle:"italic",objectSizeMargin:"0px 6px 0px 0px",clipboardCursor:"pointer",clipboardCheckMarginLeft:"-12px",metaDataPadding:"0px 0px 0px 10px",arrayGroupMetaPadding:"0px 0px 0px 4px",iconContainerWidth:"17px",tooltipPadding:"4px",editInputMinWidth:"130px",editInputBorderRadius:"2px",editInputPadding:"5px",editInputMarginRight:"4px",editInputFontFamily:"monospace",iconCursor:"pointer",iconFontSize:"15px",iconPaddingRight:"1px",dateValueMarginLeft:"2px",iconMarginRight:"3px",detectedRowPaddingTop:"3px",addKeyCoverBackground:"rgba(255, 255, 255, 0.3)",addKeyCoverPosition:"absolute",addKeyCoverPositionPx:"0px",addKeyModalWidth:"200px",addKeyModalMargin:"auto",addKeyModalPadding:"10px",addKeyModalRadius:"3px"},q=i(45),z=function(Y){var Q=function(H){return{backgroundColor:H.base00,ellipsisColor:H.base09,braceColor:H.base07,expandedIcon:H.base0D,collapsedIcon:H.base0E,keyColor:H.base07,arrayKeyColor:H.base0C,objectSize:H.base04,copyToClipboard:H.base0F,copyToClipboardCheck:H.base0D,objectBorder:H.base02,dataTypes:{boolean:H.base0E,date:H.base0D,float:H.base0B,function:H.base0D,integer:H.base0F,string:H.base09,nan:H.base08,null:H.base0A,undefined:H.base05,regexp:H.base0A,background:H.base02},editVariable:{editIcon:H.base0E,cancelIcon:H.base09,removeIcon:H.base09,addIcon:H.base0E,checkIcon:H.base0E,background:H.base01,color:H.base0A,border:H.base07},addKeyModal:{background:H.base05,border:H.base04,color:H.base0A,labelColor:H.base01},validationFailure:{background:H.base09,iconColor:H.base01,fontColor:H.base01}}}(Y);return{"app-container":{fontFamily:M.globalFontFamily,cursor:M.globalCursor,backgroundColor:Q.backgroundColor,position:"relative"},ellipsis:{display:"inline-block",color:Q.ellipsisColor,fontSize:M.ellipsisFontSize,lineHeight:M.ellipsisLineHeight,cursor:M.ellipsisCursor},"brace-row":{display:"inline-block",cursor:"pointer"},brace:{display:"inline-block",cursor:M.braceCursor,fontWeight:M.braceFontWeight,color:Q.braceColor},"expanded-icon":{color:Q.expandedIcon},"collapsed-icon":{color:Q.collapsedIcon},colon:{display:"inline-block",margin:M.keyMargin,color:Q.keyColor,verticalAlign:"top"},objectKeyVal:function(H,$){return{style:u({paddingTop:M.keyValPaddingTop,paddingRight:M.keyValPaddingRight,paddingBottom:M.keyValPaddingBottom,borderLeft:M.keyValBorderLeft+" "+Q.objectBorder,":hover":{paddingLeft:$.paddingLeft-1+"px",borderLeft:M.keyValBorderHover+" "+Q.objectBorder}},$)}},"object-key-val-no-border":{padding:M.keyValPadding},"pushed-content":{marginLeft:M.pushedContentMarginLeft},variableValue:function(H,$){return{style:u({display:"inline-block",paddingRight:M.variableValuePaddingRight,position:"relative"},$)}},"object-name":{display:"inline-block",color:Q.keyColor,letterSpacing:M.keyLetterSpacing,fontStyle:M.keyFontStyle,verticalAlign:M.keyVerticalAlign,opacity:M.keyOpacity,":hover":{opacity:M.keyOpacityHover}},"array-key":{display:"inline-block",color:Q.arrayKeyColor,letterSpacing:M.keyLetterSpacing,fontStyle:M.keyFontStyle,verticalAlign:M.keyVerticalAlign,opacity:M.keyOpacity,":hover":{opacity:M.keyOpacityHover}},"object-size":{color:Q.objectSize,borderRadius:M.objectSizeBorderRadius,fontStyle:M.objectSizeFontStyle,margin:M.objectSizeMargin,cursor:"default"},"data-type-label":{fontSize:M.dataTypeFontSize,marginRight:M.dataTypeMarginRight,opacity:M.datatypeOpacity},boolean:{display:"inline-block",color:Q.dataTypes.boolean},date:{display:"inline-block",color:Q.dataTypes.date},"date-value":{marginLeft:M.dateValueMarginLeft},float:{display:"inline-block",color:Q.dataTypes.float},function:{display:"inline-block",color:Q.dataTypes.function,cursor:"pointer",whiteSpace:"pre-line"},"function-value":{fontStyle:"italic"},integer:{display:"inline-block",color:Q.dataTypes.integer},string:{display:"inline-block",color:Q.dataTypes.string},nan:{display:"inline-block",color:Q.dataTypes.nan,fontSize:M.nanFontSize,fontWeight:M.nanFontWeight,backgroundColor:Q.dataTypes.background,padding:M.nanPadding,borderRadius:M.nanBorderRadius},null:{display:"inline-block",color:Q.dataTypes.null,fontSize:M.nullFontSize,fontWeight:M.nullFontWeight,backgroundColor:Q.dataTypes.background,padding:M.nullPadding,borderRadius:M.nullBorderRadius},undefined:{display:"inline-block",color:Q.dataTypes.undefined,fontSize:M.undefinedFontSize,padding:M.undefinedPadding,borderRadius:M.undefinedBorderRadius,backgroundColor:Q.dataTypes.background},regexp:{display:"inline-block",color:Q.dataTypes.regexp},"copy-to-clipboard":{cursor:M.clipboardCursor},"copy-icon":{color:Q.copyToClipboard,fontSize:M.iconFontSize,marginRight:M.iconMarginRight,verticalAlign:"top"},"copy-icon-copied":{color:Q.copyToClipboardCheck,marginLeft:M.clipboardCheckMarginLeft},"array-group-meta-data":{display:"inline-block",padding:M.arrayGroupMetaPadding},"object-meta-data":{display:"inline-block",padding:M.metaDataPadding},"icon-container":{display:"inline-block",width:M.iconContainerWidth},tooltip:{padding:M.tooltipPadding},removeVarIcon:{verticalAlign:"top",display:"inline-block",color:Q.editVariable.removeIcon,cursor:M.iconCursor,fontSize:M.iconFontSize,marginRight:M.iconMarginRight},addVarIcon:{verticalAlign:"top",display:"inline-block",color:Q.editVariable.addIcon,cursor:M.iconCursor,fontSize:M.iconFontSize,marginRight:M.iconMarginRight},editVarIcon:{verticalAlign:"top",display:"inline-block",color:Q.editVariable.editIcon,cursor:M.iconCursor,fontSize:M.iconFontSize,marginRight:M.iconMarginRight},"edit-icon-container":{display:"inline-block",verticalAlign:"top"},"check-icon":{display:"inline-block",cursor:M.iconCursor,color:Q.editVariable.checkIcon,fontSize:M.iconFontSize,paddingRight:M.iconPaddingRight},"cancel-icon":{display:"inline-block",cursor:M.iconCursor,color:Q.editVariable.cancelIcon,fontSize:M.iconFontSize,paddingRight:M.iconPaddingRight},"edit-input":{display:"inline-block",minWidth:M.editInputMinWidth,borderRadius:M.editInputBorderRadius,backgroundColor:Q.editVariable.background,color:Q.editVariable.color,padding:M.editInputPadding,marginRight:M.editInputMarginRight,fontFamily:M.editInputFontFamily},"detected-row":{paddingTop:M.detectedRowPaddingTop},"key-modal-request":{position:M.addKeyCoverPosition,top:M.addKeyCoverPositionPx,left:M.addKeyCoverPositionPx,right:M.addKeyCoverPositionPx,bottom:M.addKeyCoverPositionPx,backgroundColor:M.addKeyCoverBackground},"key-modal":{width:M.addKeyModalWidth,backgroundColor:Q.addKeyModal.background,marginLeft:M.addKeyModalMargin,marginRight:M.addKeyModalMargin,padding:M.addKeyModalPadding,borderRadius:M.addKeyModalRadius,marginTop:"15px",position:"relative"},"key-modal-label":{color:Q.addKeyModal.labelColor,marginLeft:"2px",marginBottom:"5px",fontSize:"11px"},"key-modal-input-container":{overflow:"hidden"},"key-modal-input":{width:"100%",padding:"3px 6px",fontFamily:"monospace",color:Q.addKeyModal.color,border:"none",boxSizing:"border-box",borderRadius:"2px"},"key-modal-cancel":{backgroundColor:Q.editVariable.removeIcon,position:"absolute",top:"0px",right:"0px",borderRadius:"0px 3px 0px 3px",cursor:"pointer"},"key-modal-cancel-icon":{color:Q.addKeyModal.labelColor,fontSize:M.iconFontSize,transform:"rotate(45deg)"},"key-modal-submit":{color:Q.editVariable.addIcon,fontSize:M.iconFontSize,position:"absolute",right:"2px",top:"3px",cursor:"pointer"},"function-ellipsis":{display:"inline-block",color:Q.ellipsisColor,fontSize:M.ellipsisFontSize,lineHeight:M.ellipsisLineHeight,cursor:M.ellipsisCursor},"validation-failure":{float:"right",padding:"3px 6px",borderRadius:"2px",cursor:"pointer",color:Q.validationFailure.fontColor,backgroundColor:Q.validationFailure.background},"validation-failure-label":{marginRight:"6px"},"validation-failure-clear":{position:"relative",verticalAlign:"top",cursor:"pointer",color:Q.validationFailure.iconColor,fontSize:M.iconFontSize,transform:"rotate(45deg)"}}};function B(Y,Q,H){return Y||console.error("theme has not been set"),function($){var F=D;return $!==!1&&$!=="none"||(F=L),Object(q.createStyling)(z,{defaultBase16:F})($)}(Y)(Q,H)}var P=function(Y){h(H,Y);var Q=_(H);function H(){return l(this,H),Q.apply(this,arguments)}return f(H,[{key:"render",value:function(){var $=this.props,F=($.rjvId,$.type_name),Z=$.displayDataTypes,ie=$.theme;return Z?b.a.createElement("span",Object.assign({className:"data-type-label"},B(ie,"data-type-label")),F):null}}]),H}(b.a.PureComponent),K=function(Y){h(H,Y);var Q=_(H);function H(){return l(this,H),Q.apply(this,arguments)}return f(H,[{key:"render",value:function(){var $=this.props;return b.a.createElement("div",B($.theme,"boolean"),b.a.createElement(P,Object.assign({type_name:"bool"},$)),$.value?"true":"false")}}]),H}(b.a.PureComponent),U=function(Y){h(H,Y);var Q=_(H);function H(){return l(this,H),Q.apply(this,arguments)}return f(H,[{key:"render",value:function(){var $=this.props;return b.a.createElement("div",B($.theme,"date"),b.a.createElement(P,Object.assign({type_name:"date"},$)),b.a.createElement("span",Object.assign({className:"date-value"},B($.theme,"date-value")),$.value.toLocaleTimeString("en-us",{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})))}}]),H}(b.a.PureComponent),X=function(Y){h(H,Y);var Q=_(H);function H(){return l(this,H),Q.apply(this,arguments)}return f(H,[{key:"render",value:function(){var $=this.props;return b.a.createElement("div",B($.theme,"float"),b.a.createElement(P,Object.assign({type_name:"float"},$)),this.props.value)}}]),H}(b.a.PureComponent);function J(Y,Q){(Q==null||Q>Y.length)&&(Q=Y.length);for(var H=0,$=new Array(Q);H"u"||Y[Symbol.iterator]==null){if(Array.isArray(Y)||(H=ee(Y))||Q&&Y&&typeof Y.length=="number"){H&&(Y=H);var $=0,F=function(){};return{s:F,n:function(){return $>=Y.length?{done:!0}:{done:!1,value:Y[$++]}},e:function(ne){throw ne},f:F}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Z,ie=!0,ue=!1;return{s:function(){H=Y[Symbol.iterator]()},n:function(){var ne=H.next();return ie=ne.done,ne},e:function(ne){ue=!0,Z=ne},f:function(){try{ie||H.return==null||H.return()}finally{if(ue)throw Z}}}}function pe(Y){return function(Q){if(Array.isArray(Q))return J(Q)}(Y)||function(Q){if(typeof Symbol<"u"&&Symbol.iterator in Object(Q))return Array.from(Q)}(Y)||ee(Y)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var _e=i(46),Te=new(i(47)).Dispatcher,me=new(function(Y){h(H,Y);var Q=_(H);function H(){var $;l(this,H);for(var F=arguments.length,Z=new Array(F),ie=0;ieF&&(ue.style.cursor="pointer",this.state.collapsed&&(ie=b.a.createElement("span",null,ie.substring(0,F),b.a.createElement("span",B(Z,"ellipsis")," ...")))),b.a.createElement("div",B(Z,"string"),b.a.createElement(P,Object.assign({type_name:"string"},$)),b.a.createElement("span",Object.assign({className:"string-value"},ue,{onClick:this.toggleCollapsed}),'"',ie,'"'))}}]),H}(b.a.PureComponent),He=function(Y){h(H,Y);var Q=_(H);function H(){return l(this,H),Q.apply(this,arguments)}return f(H,[{key:"render",value:function(){return b.a.createElement("div",B(this.props.theme,"undefined"),"undefined")}}]),H}(b.a.PureComponent);function Ne(){return(Ne=Object.assign||function(Y){for(var Q=1;Q=0||(Iu[go]=Ct[go]);return Iu}(Y,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]),qe,kt=ye.value!==void 0,Nt=Object(S.useRef)(null),Et=Gt(Nt,Q),yt=Object(S.useRef)(0),qt=Object(S.useRef)(),Hr=function(){var Ct=Nt.current,_n=H&&qt.current?qt.current:function(Ps){var Nc=window.getComputedStyle(Ps);if(Nc===null)return null;var Nu,no=(Nu=Nc,he.reduce(function(Cc,Cu){return Cc[Cu]=Nu[Cu],Cc},{})),Ba=no.boxSizing;return Ba===""?null:(le&&Ba==="border-box"&&(no.width=parseFloat(no.width)+parseFloat(no.borderRightWidth)+parseFloat(no.borderLeftWidth)+parseFloat(no.paddingRight)+parseFloat(no.paddingLeft)+"px"),{sizingStyle:no,paddingSize:parseFloat(no.paddingBottom)+parseFloat(no.paddingTop),borderSize:parseFloat(no.borderBottomWidth)+parseFloat(no.borderTopWidth)})}(Ct);if(_n){qt.current=_n;var go=function(Ps,Nc,Nu,no){Nu===void 0&&(Nu=1),no===void 0&&(no=1/0),rt||((rt=document.createElement("textarea")).setAttribute("tab-index","-1"),rt.setAttribute("aria-hidden","true"),tt(rt)),rt.parentNode===null&&document.body.appendChild(rt);var Ba=Ps.paddingSize,Cc=Ps.borderSize,Cu=Ps.sizingStyle,Rc=Cu.boxSizing;Object.keys(Cu).forEach(function(Dc){var _l=Dc;rt.style[_l]=Cu[_l]}),tt(rt),rt.value=Nc;var Ru=function(Dc,_l){var El=Dc.scrollHeight;return _l.sizingStyle.boxSizing==="border-box"?El+_l.borderSize:El-_l.paddingSize}(rt,Ps);rt.value="x";var Gf=rt.scrollHeight-Ba,bl=Gf*Nu;Rc==="border-box"&&(bl=bl+Ba+Cc),Ru=Math.max(bl,Ru);var Oc=Gf*no;return Rc==="border-box"&&(Oc=Oc+Ba+Cc),[Ru=Math.min(Oc,Ru),Gf]}(_n,Ct.value||Ct.placeholder||"x",F,$),ji=go[0],Iu=go[1];yt.current!==ji&&(yt.current=ji,Ct.style.setProperty("height",ji+"px","important"),ne(ji,{rowHeight:Iu}))}};return Object(S.useLayoutEffect)(Hr),qe=Dt(Hr),Object(S.useLayoutEffect)(function(){var Ct=function(_n){qe.current(_n)};return window.addEventListener("resize",Ct),function(){window.removeEventListener("resize",Ct)}},[]),Object(S.createElement)("textarea",Ne({},ye,{onChange:function(Ct){kt||Hr(),ie(Ct)},ref:Et}))},ge=Object(S.forwardRef)(ae);function Re(Y){Y=Y.trim();try{if((Y=JSON.stringify(JSON.parse(Y)))[0]==="[")return je("array",JSON.parse(Y));if(Y[0]==="{")return je("object",JSON.parse(Y));if(Y.match(/\-?\d+\.\d+/)&&Y.match(/\-?\d+\.\d+/)[0]===Y)return je("float",parseFloat(Y));if(Y.match(/\-?\d+e-\d+/)&&Y.match(/\-?\d+e-\d+/)[0]===Y)return je("float",Number(Y));if(Y.match(/\-?\d+/)&&Y.match(/\-?\d+/)[0]===Y)return je("integer",parseInt(Y));if(Y.match(/\-?\d+e\+\d+/)&&Y.match(/\-?\d+e\+\d+/)[0]===Y)return je("integer",Number(Y))}catch{}switch(Y=Y.toLowerCase()){case"undefined":return je("undefined",void 0);case"nan":return je("nan",NaN);case"null":return je("null",null);case"true":return je("boolean",!0);case"false":return je("boolean",!1);default:if(Y=Date.parse(Y))return je("date",new Date(Y))}return je(!1,null)}function je(Y,Q){return{type:Y,value:Q}}var ke=function(Y){h(H,Y);var Q=_(H);function H(){return l(this,H),Q.apply(this,arguments)}return f(H,[{key:"render",value:function(){var $=this.props,F=$.style,Z=I($,["style"]);return b.a.createElement("span",Z,b.a.createElement("svg",Object.assign({},It(F),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),b.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M7,13H17V11H7"})))}}]),H}(b.a.PureComponent),Ce=function(Y){h(H,Y);var Q=_(H);function H(){return l(this,H),Q.apply(this,arguments)}return f(H,[{key:"render",value:function(){var $=this.props,F=$.style,Z=I($,["style"]);return b.a.createElement("span",Z,b.a.createElement("svg",Object.assign({},It(F),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),b.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M13,7H11V11H7V13H11V17H13V13H17V11H13V7Z"})))}}]),H}(b.a.PureComponent),Pe=function(Y){h(H,Y);var Q=_(H);function H(){return l(this,H),Q.apply(this,arguments)}return f(H,[{key:"render",value:function(){var $=this.props,F=$.style,Z=I($,["style"]),ie=It(F).style;return b.a.createElement("span",Z,b.a.createElement("svg",{fill:ie.color,width:ie.height,height:ie.width,style:ie,viewBox:"0 0 1792 1792"},b.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-832q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h832q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),H}(b.a.PureComponent),ut=function(Y){h(H,Y);var Q=_(H);function H(){return l(this,H),Q.apply(this,arguments)}return f(H,[{key:"render",value:function(){var $=this.props,F=$.style,Z=I($,["style"]),ie=It(F).style;return b.a.createElement("span",Z,b.a.createElement("svg",{fill:ie.color,width:ie.height,height:ie.width,style:ie,viewBox:"0 0 1792 1792"},b.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-352v352q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23v-352h-352q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h352v-352q0-14 9-23t23-9h64q14 0 23 9t9 23v352h352q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),H}(b.a.PureComponent),vt=function(Y){h(H,Y);var Q=_(H);function H(){return l(this,H),Q.apply(this,arguments)}return f(H,[{key:"render",value:function(){var $=this.props,F=$.style,Z=I($,["style"]);return b.a.createElement("span",Z,b.a.createElement("svg",{style:u(u({},It(F).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},b.a.createElement("path",{d:"M0 14l6-6-6-6z"})))}}]),H}(b.a.PureComponent),xt=function(Y){h(H,Y);var Q=_(H);function H(){return l(this,H),Q.apply(this,arguments)}return f(H,[{key:"render",value:function(){var $=this.props,F=$.style,Z=I($,["style"]);return b.a.createElement("span",Z,b.a.createElement("svg",{style:u(u({},It(F).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},b.a.createElement("path",{d:"M0 5l6 6 6-6z"})))}}]),H}(b.a.PureComponent),fr=function(Y){h(H,Y);var Q=_(H);function H(){return l(this,H),Q.apply(this,arguments)}return f(H,[{key:"render",value:function(){var $=this.props,F=$.style,Z=I($,["style"]);return b.a.createElement("span",Z,b.a.createElement("svg",Object.assign({},It(F),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),b.a.createElement("g",null,b.a.createElement("path",{d:"m30 35h-25v-22.5h25v7.5h2.5v-12.5c0-1.4-1.1-2.5-2.5-2.5h-7.5c0-2.8-2.2-5-5-5s-5 2.2-5 5h-7.5c-1.4 0-2.5 1.1-2.5 2.5v27.5c0 1.4 1.1 2.5 2.5 2.5h25c1.4 0 2.5-1.1 2.5-2.5v-5h-2.5v5z m-20-27.5h2.5s2.5-1.1 2.5-2.5 1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5 1.3 2.5 2.5 2.5h2.5s2.5 1.1 2.5 2.5h-20c0-1.5 1.1-2.5 2.5-2.5z m-2.5 20h5v-2.5h-5v2.5z m17.5-5v-5l-10 7.5 10 7.5v-5h12.5v-5h-12.5z m-17.5 10h7.5v-2.5h-7.5v2.5z m12.5-17.5h-12.5v2.5h12.5v-2.5z m-7.5 5h-5v2.5h5v-2.5z"}))))}}]),H}(b.a.PureComponent),xr=function(Y){h(H,Y);var Q=_(H);function H(){return l(this,H),Q.apply(this,arguments)}return f(H,[{key:"render",value:function(){var $=this.props,F=$.style,Z=I($,["style"]);return b.a.createElement("span",Z,b.a.createElement("svg",Object.assign({},It(F),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),b.a.createElement("g",null,b.a.createElement("path",{d:"m28.6 25q0-0.5-0.4-1l-4-4 4-4q0.4-0.5 0.4-1 0-0.6-0.4-1.1l-2-2q-0.4-0.4-1-0.4-0.6 0-1 0.4l-4.1 4.1-4-4.1q-0.4-0.4-1-0.4-0.6 0-1 0.4l-2 2q-0.5 0.5-0.5 1.1 0 0.5 0.5 1l4 4-4 4q-0.5 0.5-0.5 1 0 0.7 0.5 1.1l2 2q0.4 0.4 1 0.4 0.6 0 1-0.4l4-4.1 4.1 4.1q0.4 0.4 1 0.4 0.6 0 1-0.4l2-2q0.4-0.4 0.4-1z m8.7-5q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),H}(b.a.PureComponent),Ft=function(Y){h(H,Y);var Q=_(H);function H(){return l(this,H),Q.apply(this,arguments)}return f(H,[{key:"render",value:function(){var $=this.props,F=$.style,Z=I($,["style"]);return b.a.createElement("span",Z,b.a.createElement("svg",Object.assign({},It(F),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),b.a.createElement("g",null,b.a.createElement("path",{d:"m30.1 21.4v-2.8q0-0.6-0.4-1t-1-0.5h-5.7v-5.7q0-0.6-0.4-1t-1-0.4h-2.9q-0.6 0-1 0.4t-0.4 1v5.7h-5.7q-0.6 0-1 0.5t-0.5 1v2.8q0 0.6 0.5 1t1 0.5h5.7v5.7q0 0.5 0.4 1t1 0.4h2.9q0.6 0 1-0.4t0.4-1v-5.7h5.7q0.6 0 1-0.5t0.4-1z m7.2-1.4q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),H}(b.a.PureComponent),Pr=function(Y){h(H,Y);var Q=_(H);function H(){return l(this,H),Q.apply(this,arguments)}return f(H,[{key:"render",value:function(){var $=this.props,F=$.style,Z=I($,["style"]);return b.a.createElement("span",Z,b.a.createElement("svg",Object.assign({},It(F),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),b.a.createElement("g",null,b.a.createElement("path",{d:"m31.6 21.6h-10v10h-3.2v-10h-10v-3.2h10v-10h3.2v10h10v3.2z"}))))}}]),H}(b.a.PureComponent),cn=function(Y){h(H,Y);var Q=_(H);function H(){return l(this,H),Q.apply(this,arguments)}return f(H,[{key:"render",value:function(){var $=this.props,F=$.style,Z=I($,["style"]);return b.a.createElement("span",Z,b.a.createElement("svg",Object.assign({},It(F),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),b.a.createElement("g",null,b.a.createElement("path",{d:"m19.8 26.4l2.6-2.6-3.4-3.4-2.6 2.6v1.3h2.2v2.1h1.2z m9.8-16q-0.3-0.4-0.7 0l-7.8 7.8q-0.4 0.4 0 0.7t0.7 0l7.8-7.8q0.4-0.4 0-0.7z m1.8 13.2v4.3q0 2.6-1.9 4.5t-4.5 1.9h-18.6q-2.6 0-4.5-1.9t-1.9-4.5v-18.6q0-2.7 1.9-4.6t4.5-1.8h18.6q1.4 0 2.6 0.5 0.3 0.2 0.4 0.5 0.1 0.4-0.2 0.7l-1.1 1.1q-0.3 0.3-0.7 0.1-0.5-0.1-1-0.1h-18.6q-1.4 0-2.5 1.1t-1 2.5v18.6q0 1.4 1 2.5t2.5 1h18.6q1.5 0 2.5-1t1.1-2.5v-2.9q0-0.2 0.2-0.4l1.4-1.5q0.3-0.3 0.8-0.1t0.4 0.6z m-2.1-16.5l6.4 6.5-15 15h-6.4v-6.5z m9.9 3l-2.1 2-6.4-6.4 2.1-2q0.6-0.7 1.5-0.7t1.5 0.7l3.4 3.4q0.6 0.6 0.6 1.5t-0.6 1.5z"}))))}}]),H}(b.a.PureComponent),Jt=function(Y){h(H,Y);var Q=_(H);function H(){return l(this,H),Q.apply(this,arguments)}return f(H,[{key:"render",value:function(){var $=this.props,F=$.style,Z=I($,["style"]);return b.a.createElement("span",Z,b.a.createElement("svg",Object.assign({},It(F),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),b.a.createElement("g",null,b.a.createElement("path",{d:"m31.7 16.4q0-0.6-0.4-1l-2.1-2.1q-0.4-0.4-1-0.4t-1 0.4l-9.1 9.1-5-5q-0.5-0.4-1-0.4t-1 0.4l-2.1 2q-0.4 0.4-0.4 1 0 0.6 0.4 1l8.1 8.1q0.4 0.4 1 0.4 0.6 0 1-0.4l12.2-12.1q0.4-0.4 0.4-1z m5.6 3.6q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),H}(b.a.PureComponent);function It(Y){return Y||(Y={}),{style:u(u({verticalAlign:"middle"},Y),{},{color:Y.color?Y.color:"#000000",height:"1em",width:"1em"})}}var qr=function(Y){h(H,Y);var Q=_(H);function H($){var F;return l(this,H),(F=Q.call(this,$)).copiedTimer=null,F.handleCopy=function(){var Z=document.createElement("textarea"),ie=F.props,ue=ie.clickCallback,ne=ie.src,ye=ie.namespace;Z.innerHTML=JSON.stringify(F.clipboardValue(ne),null," "),document.body.appendChild(Z),Z.select(),document.execCommand("copy"),document.body.removeChild(Z),F.copiedTimer=setTimeout(function(){F.setState({copied:!1})},5500),F.setState({copied:!0},function(){typeof ue=="function"&&ue({src:ne,namespace:ye,name:ye[ye.length-1]})})},F.getClippyIcon=function(){var Z=F.props.theme;return F.state.copied?b.a.createElement("span",null,b.a.createElement(fr,Object.assign({className:"copy-icon"},B(Z,"copy-icon"))),b.a.createElement("span",B(Z,"copy-icon-copied"),"✔")):b.a.createElement(fr,Object.assign({className:"copy-icon"},B(Z,"copy-icon")))},F.clipboardValue=function(Z){switch(R(Z)){case"function":case"regexp":return Z.toString();default:return Z}},F.state={copied:!1},F}return f(H,[{key:"componentWillUnmount",value:function(){this.copiedTimer&&(clearTimeout(this.copiedTimer),this.copiedTimer=null)}},{key:"render",value:function(){var $=this.props,F=($.src,$.theme),Z=$.hidden,ie=$.rowHovered,ue=B(F,"copy-to-clipboard").style,ne="inline";return Z&&(ne="none"),b.a.createElement("span",{className:"copy-to-clipboard-container",title:"Copy to clipboard",style:{verticalAlign:"top",display:ie?"inline-block":"none"}},b.a.createElement("span",{style:u(u({},ue),{},{display:ne}),onClick:this.handleCopy},this.getClippyIcon()))}}]),H}(b.a.PureComponent),Ir=function(Y){h(H,Y);var Q=_(H);function H($){var F;return l(this,H),(F=Q.call(this,$)).getEditIcon=function(){var Z=F.props,ie=Z.variable,ue=Z.theme;return b.a.createElement("div",{className:"click-to-edit",style:{verticalAlign:"top",display:F.state.hovered?"inline-block":"none"}},b.a.createElement(cn,Object.assign({className:"click-to-edit-icon"},B(ue,"editVarIcon"),{onClick:function(){F.prepopInput(ie)}})))},F.prepopInput=function(Z){if(F.props.onEdit!==!1){var ie=function(ne){var ye;switch(R(ne)){case"undefined":ye="undefined";break;case"nan":ye="NaN";break;case"string":ye=ne;break;case"date":case"function":case"regexp":ye=ne.toString();break;default:try{ye=JSON.stringify(ne,null," ")}catch{ye=""}}return ye}(Z.value),ue=Re(ie);F.setState({editMode:!0,editValue:ie,parsedInput:{type:ue.type,value:ue.value}})}},F.getRemoveIcon=function(){var Z=F.props,ie=Z.variable,ue=Z.namespace,ne=Z.theme,ye=Z.rjvId;return b.a.createElement("div",{className:"click-to-remove",style:{verticalAlign:"top",display:F.state.hovered?"inline-block":"none"}},b.a.createElement(xr,Object.assign({className:"click-to-remove-icon"},B(ne,"removeVarIcon"),{onClick:function(){Te.dispatch({name:"VARIABLE_REMOVED",rjvId:ye,data:{name:ie.name,namespace:ue,existing_value:ie.value,variable_removed:!0}})}})))},F.getValue=function(Z,ie){var ue=!ie&&Z.type,ne=y(F).props;switch(ue){case!1:return F.getEditInput();case"string":return b.a.createElement(st,Object.assign({value:Z.value},ne));case"integer":return b.a.createElement(Qe,Object.assign({value:Z.value},ne));case"float":return b.a.createElement(X,Object.assign({value:Z.value},ne));case"boolean":return b.a.createElement(K,Object.assign({value:Z.value},ne));case"function":return b.a.createElement(ve,Object.assign({value:Z.value},ne));case"null":return b.a.createElement(De,ne);case"nan":return b.a.createElement(we,ne);case"undefined":return b.a.createElement(He,ne);case"date":return b.a.createElement(U,Object.assign({value:Z.value},ne));case"regexp":return b.a.createElement(Ke,Object.assign({value:Z.value},ne));default:return b.a.createElement("div",{className:"object-value"},JSON.stringify(Z.value))}},F.getEditInput=function(){var Z=F.props.theme,ie=F.state.editValue;return b.a.createElement("div",null,b.a.createElement(ge,Object.assign({type:"text",inputRef:function(ue){return ue&&ue.focus()},value:ie,className:"variable-editor",onChange:function(ue){var ne=ue.target.value,ye=Re(ne);F.setState({editValue:ne,parsedInput:{type:ye.type,value:ye.value}})},onKeyDown:function(ue){switch(ue.key){case"Escape":F.setState({editMode:!1,editValue:""});break;case"Enter":(ue.ctrlKey||ue.metaKey)&&F.submitEdit(!0)}ue.stopPropagation()},placeholder:"update this value",minRows:2},B(Z,"edit-input"))),b.a.createElement("div",B(Z,"edit-icon-container"),b.a.createElement(xr,Object.assign({className:"edit-cancel"},B(Z,"cancel-icon"),{onClick:function(){F.setState({editMode:!1,editValue:""})}})),b.a.createElement(Jt,Object.assign({className:"edit-check string-value"},B(Z,"check-icon"),{onClick:function(){F.submitEdit()}})),b.a.createElement("div",null,F.showDetected())))},F.submitEdit=function(Z){var ie=F.props,ue=ie.variable,ne=ie.namespace,ye=ie.rjvId,qe=F.state,kt=qe.editValue,Nt=qe.parsedInput,Et=kt;Z&&Nt.type&&(Et=Nt.value),F.setState({editMode:!1}),Te.dispatch({name:"VARIABLE_UPDATED",rjvId:ye,data:{name:ue.name,namespace:ne,existing_value:ue.value,new_value:Et,variable_removed:!1}})},F.showDetected=function(){var Z=F.props,ie=Z.theme,ue=(Z.variable,Z.namespace,Z.rjvId,F.state.parsedInput),ne=(ue.type,ue.value,F.getDetectedInput());if(ne)return b.a.createElement("div",null,b.a.createElement("div",B(ie,"detected-row"),ne,b.a.createElement(Jt,{className:"edit-check detected",style:u({verticalAlign:"top",paddingLeft:"3px"},B(ie,"check-icon").style),onClick:function(){F.submitEdit(!0)}})))},F.getDetectedInput=function(){var Z=F.state.parsedInput,ie=Z.type,ue=Z.value,ne=y(F).props,ye=ne.theme;if(ie!==!1)switch(ie.toLowerCase()){case"object":return b.a.createElement("span",null,b.a.createElement("span",{style:u(u({},B(ye,"brace").style),{},{cursor:"default"})},"{"),b.a.createElement("span",{style:u(u({},B(ye,"ellipsis").style),{},{cursor:"default"})},"..."),b.a.createElement("span",{style:u(u({},B(ye,"brace").style),{},{cursor:"default"})},"}"));case"array":return b.a.createElement("span",null,b.a.createElement("span",{style:u(u({},B(ye,"brace").style),{},{cursor:"default"})},"["),b.a.createElement("span",{style:u(u({},B(ye,"ellipsis").style),{},{cursor:"default"})},"..."),b.a.createElement("span",{style:u(u({},B(ye,"brace").style),{},{cursor:"default"})},"]"));case"string":return b.a.createElement(st,Object.assign({value:ue},ne));case"integer":return b.a.createElement(Qe,Object.assign({value:ue},ne));case"float":return b.a.createElement(X,Object.assign({value:ue},ne));case"boolean":return b.a.createElement(K,Object.assign({value:ue},ne));case"function":return b.a.createElement(ve,Object.assign({value:ue},ne));case"null":return b.a.createElement(De,ne);case"nan":return b.a.createElement(we,ne);case"undefined":return b.a.createElement(He,ne);case"date":return b.a.createElement(U,Object.assign({value:new Date(ue)},ne))}},F.state={editMode:!1,editValue:"",hovered:!1,renameKey:!1,parsedInput:{type:!1,value:null}},F}return f(H,[{key:"render",value:function(){var $=this,F=this.props,Z=F.variable,ie=F.singleIndent,ue=F.type,ne=F.theme,ye=F.namespace,qe=F.indentWidth,kt=F.enableClipboard,Nt=F.onEdit,Et=F.onDelete,yt=F.onSelect,qt=F.displayArrayKey,Hr=F.quotesOnKeys,Ct=this.state.editMode;return b.a.createElement("div",Object.assign({},B(ne,"objectKeyVal",{paddingLeft:qe*ie}),{onMouseEnter:function(){return $.setState(u(u({},$.state),{},{hovered:!0}))},onMouseLeave:function(){return $.setState(u(u({},$.state),{},{hovered:!1}))},className:"variable-row",key:Z.name}),ue=="array"?qt?b.a.createElement("span",Object.assign({},B(ne,"array-key"),{key:Z.name+"_"+ye}),Z.name,b.a.createElement("div",B(ne,"colon"),":")):null:b.a.createElement("span",null,b.a.createElement("span",Object.assign({},B(ne,"object-name"),{className:"object-key",key:Z.name+"_"+ye}),!!Hr&&b.a.createElement("span",{style:{verticalAlign:"top"}},'"'),b.a.createElement("span",{style:{display:"inline-block"}},Z.name),!!Hr&&b.a.createElement("span",{style:{verticalAlign:"top"}},'"')),b.a.createElement("span",B(ne,"colon"),":")),b.a.createElement("div",Object.assign({className:"variable-value",onClick:yt===!1&&Nt===!1?null:function(_n){var go=pe(ye);(_n.ctrlKey||_n.metaKey)&&Nt!==!1?$.prepopInput(Z):yt!==!1&&(go.shift(),yt(u(u({},Z),{},{namespace:go})))}},B(ne,"variableValue",{cursor:yt===!1?"default":"pointer"})),this.getValue(Z,Ct)),kt?b.a.createElement(qr,{rowHovered:this.state.hovered,hidden:Ct,src:Z.value,clickCallback:kt,theme:ne,namespace:[].concat(pe(ye),[Z.name])}):null,Nt!==!1&&Ct==0?this.getEditIcon():null,Et!==!1&&Ct==0?this.getRemoveIcon():null)}}]),H}(b.a.PureComponent),Wr=function(Y){h(H,Y);var Q=_(H);function H(){var $;l(this,H);for(var F=arguments.length,Z=new Array(F),ie=0;ie0?kt:null,namespace:qe.splice(0,qe.length-1),existing_value:Nt,variable_removed:!1,key_name:null};R(Nt)==="object"?Te.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:Et,data:qt}):Te.dispatch({name:"VARIABLE_ADDED",rjvId:Et,data:u(u({},qt),{},{new_value:[].concat(pe(Nt),[null])})})}})))},$.getRemoveObject=function(ue){var ne=$.props,ye=ne.theme,qe=(ne.hover,ne.namespace),kt=ne.name,Nt=ne.src,Et=ne.rjvId;if(qe.length!==1)return b.a.createElement("span",{className:"click-to-remove",style:{display:ue?"inline-block":"none"}},b.a.createElement(xr,Object.assign({className:"click-to-remove-icon"},B(ye,"removeVarIcon"),{onClick:function(){Te.dispatch({name:"VARIABLE_REMOVED",rjvId:Et,data:{name:kt,namespace:qe.splice(0,qe.length-1),existing_value:Nt,variable_removed:!0}})}})))},$.render=function(){var ue=$.props,ne=ue.theme,ye=ue.onDelete,qe=ue.onAdd,kt=ue.enableClipboard,Nt=ue.src,Et=ue.namespace,yt=ue.rowHovered;return b.a.createElement("div",Object.assign({},B(ne,"object-meta-data"),{className:"object-meta-data",onClick:function(qt){qt.stopPropagation()}}),$.getObjectSize(),kt?b.a.createElement(qr,{rowHovered:yt,clickCallback:kt,src:Nt,theme:ne,namespace:Et}):null,qe!==!1?$.getAddAttribute(yt):null,ye!==!1?$.getRemoveObject(yt):null)},$}return H}(b.a.PureComponent);function pr(Y){var Q=Y.parent_type,H=Y.namespace,$=Y.quotesOnKeys,F=Y.theme,Z=Y.jsvRoot,ie=Y.name,ue=Y.displayArrayKey,ne=Y.name?Y.name:"";return!Z||ie!==!1&&ie!==null?Q=="array"?ue?b.a.createElement("span",Object.assign({},B(F,"array-key"),{key:H}),b.a.createElement("span",{className:"array-key"},ne),b.a.createElement("span",B(F,"colon"),":")):b.a.createElement("span",null):b.a.createElement("span",Object.assign({},B(F,"object-name"),{key:H}),b.a.createElement("span",{className:"object-key"},$&&b.a.createElement("span",{style:{verticalAlign:"top"}},'"'),b.a.createElement("span",null,ne),$&&b.a.createElement("span",{style:{verticalAlign:"top"}},'"')),b.a.createElement("span",B(F,"colon"),":")):b.a.createElement("span",null)}function Rt(Y){var Q=Y.theme;switch(Y.iconStyle){case"triangle":return b.a.createElement(xt,Object.assign({},B(Q,"expanded-icon"),{className:"expanded-icon"}));case"square":return b.a.createElement(Pe,Object.assign({},B(Q,"expanded-icon"),{className:"expanded-icon"}));default:return b.a.createElement(ke,Object.assign({},B(Q,"expanded-icon"),{className:"expanded-icon"}))}}function ft(Y){var Q=Y.theme;switch(Y.iconStyle){case"triangle":return b.a.createElement(vt,Object.assign({},B(Q,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return b.a.createElement(ut,Object.assign({},B(Q,"collapsed-icon"),{className:"collapsed-icon"}));default:return b.a.createElement(Ce,Object.assign({},B(Q,"collapsed-icon"),{className:"collapsed-icon"}))}}var Ue=function(Y){h(H,Y);var Q=_(H);function H($){var F;return l(this,H),(F=Q.call(this,$)).toggleCollapsed=function(Z){var ie=[];for(var ue in F.state.expanded)ie.push(F.state.expanded[ue]);ie[Z]=!ie[Z],F.setState({expanded:ie})},F.state={expanded:[]},F}return f(H,[{key:"getExpandedIcon",value:function($){var F=this.props,Z=F.theme,ie=F.iconStyle;return this.state.expanded[$]?b.a.createElement(Rt,{theme:Z,iconStyle:ie}):b.a.createElement(ft,{theme:Z,iconStyle:ie})}},{key:"render",value:function(){var $=this,F=this.props,Z=F.src,ie=F.groupArraysAfterLength,ue=(F.depth,F.name),ne=F.theme,ye=F.jsvRoot,qe=F.namespace,kt=(F.parent_type,I(F,["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"])),Nt=0,Et=5*this.props.indentWidth;ye||(Nt=5*this.props.indentWidth);var yt=ie,qt=Math.ceil(Z.length/yt);return b.a.createElement("div",Object.assign({className:"object-key-val"},B(ne,ye?"jsv-root":"objectKeyVal",{paddingLeft:Nt})),b.a.createElement(pr,this.props),b.a.createElement("span",null,b.a.createElement(Wr,Object.assign({size:Z.length},this.props))),pe(Array(qt)).map(function(Hr,Ct){return b.a.createElement("div",Object.assign({key:Ct,className:"object-key-val array-group"},B(ne,"objectKeyVal",{marginLeft:6,paddingLeft:Et})),b.a.createElement("span",B(ne,"brace-row"),b.a.createElement("div",Object.assign({className:"icon-container"},B(ne,"icon-container"),{onClick:function(_n){$.toggleCollapsed(Ct)}}),$.getExpandedIcon(Ct)),$.state.expanded[Ct]?b.a.createElement(zr,Object.assign({key:ue+Ct,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:yt,index_offset:Ct*yt,src:Z.slice(Ct*yt,Ct*yt+yt),namespace:qe,type:"array",parent_type:"array_group",theme:ne},kt)):b.a.createElement("span",Object.assign({},B(ne,"brace"),{onClick:function(_n){$.toggleCollapsed(Ct)},className:"array-group-brace"}),"[",b.a.createElement("div",Object.assign({},B(ne,"array-group-meta-data"),{className:"array-group-meta-data"}),b.a.createElement("span",Object.assign({className:"object-size"},B(ne,"object-size")),Ct*yt," - ",Ct*yt+yt>Z.length?Z.length:Ct*yt+yt)),"]")))}))}}]),H}(b.a.PureComponent),Kr=function(Y){h(H,Y);var Q=_(H);function H($){var F;l(this,H),(F=Q.call(this,$)).toggleCollapsed=function(){F.setState({expanded:!F.state.expanded},function(){Ae.set(F.props.rjvId,F.props.namespace,"expanded",F.state.expanded)})},F.getObjectContent=function(ie,ue,ne){return b.a.createElement("div",{className:"pushed-content object-container"},b.a.createElement("div",Object.assign({className:"object-content"},B(F.props.theme,"pushed-content")),F.renderObjectContents(ue,ne)))},F.getEllipsis=function(){return F.state.size===0?null:b.a.createElement("div",Object.assign({},B(F.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:F.toggleCollapsed}),"...")},F.getObjectMetaData=function(ie){var ue=F.props,ne=(ue.rjvId,ue.theme,F.state),ye=ne.size,qe=ne.hovered;return b.a.createElement(Wr,Object.assign({rowHovered:qe,size:ye},F.props))},F.renderObjectContents=function(ie,ue){var ne,ye=F.props,qe=ye.depth,kt=ye.parent_type,Nt=ye.index_offset,Et=ye.groupArraysAfterLength,yt=ye.namespace,qt=F.state.object_type,Hr=[],Ct=Object.keys(ie||{});return F.props.sortKeys&&qt!=="array"&&(Ct=Ct.sort()),Ct.forEach(function(_n){if(ne=new xo(_n,ie[_n]),kt==="array_group"&&Nt&&(ne.name=parseInt(ne.name)+Nt),ie.hasOwnProperty(_n))if(ne.type==="object")Hr.push(b.a.createElement(zr,Object.assign({key:ne.name,depth:qe+1,name:ne.name,src:ne.value,namespace:yt.concat(ne.name),parent_type:qt},ue)));else if(ne.type==="array"){var go=zr;Et&&ne.value.length>Et&&(go=Ue),Hr.push(b.a.createElement(go,Object.assign({key:ne.name,depth:qe+1,name:ne.name,src:ne.value,namespace:yt.concat(ne.name),type:"array",parent_type:qt},ue)))}else Hr.push(b.a.createElement(Ir,Object.assign({key:ne.name+"_"+yt,variable:ne,singleIndent:5,namespace:yt,type:F.props.type},ue)))}),Hr};var Z=H.getState($);return F.state=u(u({},Z),{},{prevProps:{}}),F}return f(H,[{key:"getBraceStart",value:function($,F){var Z=this,ie=this.props,ue=ie.src,ne=ie.theme,ye=ie.iconStyle;if(ie.parent_type==="array_group")return b.a.createElement("span",null,b.a.createElement("span",B(ne,"brace"),$==="array"?"[":"{"),F?this.getObjectMetaData(ue):null);var qe=F?Rt:ft;return b.a.createElement("span",null,b.a.createElement("span",Object.assign({onClick:function(kt){Z.toggleCollapsed()}},B(ne,"brace-row")),b.a.createElement("div",Object.assign({className:"icon-container"},B(ne,"icon-container")),b.a.createElement(qe,{theme:ne,iconStyle:ye})),b.a.createElement(pr,this.props),b.a.createElement("span",B(ne,"brace"),$==="array"?"[":"{")),F?this.getObjectMetaData(ue):null)}},{key:"render",value:function(){var $=this,F=this.props,Z=F.depth,ie=F.src,ue=(F.namespace,F.name,F.type,F.parent_type),ne=F.theme,ye=F.jsvRoot,qe=F.iconStyle,kt=I(F,["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"]),Nt=this.state,Et=Nt.object_type,yt=Nt.expanded,qt={};return ye||ue==="array_group"?ue==="array_group"&&(qt.borderLeft=0,qt.display="inline"):qt.paddingLeft=5*this.props.indentWidth,b.a.createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return $.setState(u(u({},$.state),{},{hovered:!0}))},onMouseLeave:function(){return $.setState(u(u({},$.state),{},{hovered:!1}))}},B(ne,ye?"jsv-root":"objectKeyVal",qt)),this.getBraceStart(Et,yt),yt?this.getObjectContent(Z,ie,u({theme:ne,iconStyle:qe},kt)):this.getEllipsis(),b.a.createElement("span",{className:"brace-row"},b.a.createElement("span",{style:u(u({},B(ne,"brace").style),{},{paddingLeft:yt?"3px":"0px"})},Et==="array"?"]":"}"),yt?null:this.getObjectMetaData(ie)))}}],[{key:"getDerivedStateFromProps",value:function($,F){var Z=F.prevProps;return $.src!==Z.src||$.collapsed!==Z.collapsed||$.name!==Z.name||$.namespace!==Z.namespace||$.rjvId!==Z.rjvId?u(u({},H.getState($)),{},{prevProps:$}):null}}]),H}(b.a.PureComponent);Kr.getState=function(Y){var Q=Object.keys(Y.src).length,H=(Y.collapsed===!1||Y.collapsed!==!0&&Y.collapsed>Y.depth)&&(!Y.shouldCollapse||Y.shouldCollapse({name:Y.name,src:Y.src,type:R(Y.src),namespace:Y.namespace})===!1)&&Q!==0;return{expanded:Ae.get(Y.rjvId,Y.namespace,"expanded",H),object_type:Y.type==="array"?"array":"object",parent_type:Y.type==="array"?"array":"object",size:Q,hovered:!1}};var xo=function Y(Q,H){l(this,Y),this.name=Q,this.value=H,this.type=R(H)};N(Kr);var zr=Kr,xu=function(Y){h(H,Y);var Q=_(H);function H(){var $;l(this,H);for(var F=arguments.length,Z=new Array(F),ie=0;ieue.groupArraysAfterLength&&(ye=Ue),b.a.createElement("div",{className:"pretty-json-container object-container"},b.a.createElement("div",{className:"object-content"},b.a.createElement(ye,Object.assign({namespace:ne,depth:0,jsvRoot:!0},ue))))},$}return H}(b.a.PureComponent),ps=function(Y){h(H,Y);var Q=_(H);function H($){var F;return l(this,H),(F=Q.call(this,$)).closeModal=function(){Te.dispatch({rjvId:F.props.rjvId,name:"RESET"})},F.submit=function(){F.props.submit(F.state.input)},F.state={input:$.input?$.input:""},F}return f(H,[{key:"render",value:function(){var $=this,F=this.props,Z=F.theme,ie=F.rjvId,ue=F.isValid,ne=this.state.input,ye=ue(ne);return b.a.createElement("div",Object.assign({className:"key-modal-request"},B(Z,"key-modal-request"),{onClick:this.closeModal}),b.a.createElement("div",Object.assign({},B(Z,"key-modal"),{onClick:function(qe){qe.stopPropagation()}}),b.a.createElement("div",B(Z,"key-modal-label"),"Key Name:"),b.a.createElement("div",{style:{position:"relative"}},b.a.createElement("input",Object.assign({},B(Z,"key-modal-input"),{className:"key-modal-input",ref:function(qe){return qe&&qe.focus()},spellCheck:!1,value:ne,placeholder:"...",onChange:function(qe){$.setState({input:qe.target.value})},onKeyPress:function(qe){ye&&qe.key==="Enter"?$.submit():qe.key==="Escape"&&$.closeModal()}})),ye?b.a.createElement(Jt,Object.assign({},B(Z,"key-modal-submit"),{className:"key-modal-submit",onClick:function(qe){return $.submit()}})):null),b.a.createElement("span",B(Z,"key-modal-cancel"),b.a.createElement(Pr,Object.assign({},B(Z,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){Te.dispatch({rjvId:ie,name:"RESET"})}})))))}}]),H}(b.a.PureComponent),po=function(Y){h(H,Y);var Q=_(H);function H(){var $;l(this,H);for(var F=arguments.length,Z=new Array(F),ie=0;ie=0)&&(r[o]=e[o]);return r}function Nit(e,t){if(e==null)return{};var r=Iit(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Cit(e,t){return Rit(e)||Oit(e,t)||Dit(e,t)||Fit()}function Rit(e){if(Array.isArray(e))return e}function Oit(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,o=!1,i=void 0;try{for(var s=e[Symbol.iterator](),a;!(n=(a=s.next()).done)&&(r.push(a.value),!(t&&r.length===t));n=!0);}catch(u){o=!0,i=u}finally{try{!n&&s.return!=null&&s.return()}finally{if(o)throw i}}return r}}function Dit(e,t){if(e){if(typeof e=="string")return YJ(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return YJ(e,t)}}function YJ(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?e.apply(this,o):function(){for(var s=arguments.length,a=new Array(s),u=0;u1&&arguments[1]!==void 0?arguments[1]:{};Lw.initial(e),Lw.handler(t);var r={current:e},n=by(Uit)(r,t),o=by(Vit)(r),i=by(Lw.changes)(e),s=by(Git)(r);function a(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(c){return c};return Lw.selector(l),l(r.current)}function u(l){Mit(n,o,i,s)(l)}return[a,u]}function Git(e,t){return i_(t)?t(e.current):t}function Vit(e,t){return e.current=QJ(QJ({},e.current),t),t}function Uit(e,t,r){return i_(t)?t(e.current):Object.keys(r).forEach(function(n){var o;return(o=t[n])===null||o===void 0?void 0:o.call(t,e.current[n])}),r}var Yit={create:Kit},Xit={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};function Qit(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i=e.length?e.apply(this,o):function(){for(var s=arguments.length,a=new Array(s),u=0;u=0||(qe[ne]=ie[ne]);return qe}(Y,Q);if(Object.getOwnPropertySymbols){var Z=Object.getOwnPropertySymbols(Y);for(P=0;P=0||Object.prototype.propertyIsEnumerable.call(Y,H)&&(B[H]=Y[H])}return B}function R(Y){var Q=function(H){return{}.toString.call(H).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}(Y);return Q==="number"&&(Q=isNaN(Y)?"nan":(0|Y)!=Y?"float":"integer"),Q}A.__suppressDeprecationWarning=!0,T.__suppressDeprecationWarning=!0,x.__suppressDeprecationWarning=!0;var D={scheme:"rjv-default",author:"mac gainor",base00:"rgba(0, 0, 0, 0)",base01:"rgb(245, 245, 245)",base02:"rgb(235, 235, 235)",base03:"#93a1a1",base04:"rgba(0, 0, 0, 0.3)",base05:"#586e75",base06:"#073642",base07:"#002b36",base08:"#d33682",base09:"#cb4b16",base0A:"#dc322f",base0B:"#859900",base0C:"#6c71c4",base0D:"#586e75",base0E:"#2aa198",base0F:"#268bd2"},L={scheme:"rjv-grey",author:"mac gainor",base00:"rgba(1, 1, 1, 0)",base01:"rgba(1, 1, 1, 0.1)",base02:"rgba(0, 0, 0, 0.2)",base03:"rgba(1, 1, 1, 0.3)",base04:"rgba(0, 0, 0, 0.4)",base05:"rgba(1, 1, 1, 0.5)",base06:"rgba(1, 1, 1, 0.6)",base07:"rgba(1, 1, 1, 0.7)",base08:"rgba(1, 1, 1, 0.8)",base09:"rgba(1, 1, 1, 0.8)",base0A:"rgba(1, 1, 1, 0.8)",base0B:"rgba(1, 1, 1, 0.8)",base0C:"rgba(1, 1, 1, 0.8)",base0D:"rgba(1, 1, 1, 0.8)",base0E:"rgba(1, 1, 1, 0.8)",base0F:"rgba(1, 1, 1, 0.8)"},M={white:"#fff",black:"#000",transparent:"rgba(1, 1, 1, 0)",globalFontFamily:"monospace",globalCursor:"default",indentBlockWidth:"5px",braceFontWeight:"bold",braceCursor:"pointer",ellipsisFontSize:"18px",ellipsisLineHeight:"10px",ellipsisCursor:"pointer",keyMargin:"0px 5px",keyLetterSpacing:"0.5px",keyFontStyle:"none",keyBorderRadius:"3px",keyColonWeight:"bold",keyVerticalAlign:"top",keyOpacity:"0.85",keyOpacityHover:"1",keyValPaddingTop:"3px",keyValPaddingBottom:"3px",keyValPaddingRight:"5px",keyValBorderLeft:"1px solid",keyValBorderHover:"2px solid",keyValPaddingHover:"3px 5px 3px 4px",pushedContentMarginLeft:"6px",variableValuePaddingRight:"6px",nullFontSize:"11px",nullFontWeight:"bold",nullPadding:"1px 2px",nullBorderRadius:"3px",nanFontSize:"11px",nanFontWeight:"bold",nanPadding:"1px 2px",nanBorderRadius:"3px",undefinedFontSize:"11px",undefinedFontWeight:"bold",undefinedPadding:"1px 2px",undefinedBorderRadius:"3px",dataTypeFontSize:"11px",dataTypeMarginRight:"4px",datatypeOpacity:"0.8",objectSizeBorderRadius:"3px",objectSizeFontStyle:"italic",objectSizeMargin:"0px 6px 0px 0px",clipboardCursor:"pointer",clipboardCheckMarginLeft:"-12px",metaDataPadding:"0px 0px 0px 10px",arrayGroupMetaPadding:"0px 0px 0px 4px",iconContainerWidth:"17px",tooltipPadding:"4px",editInputMinWidth:"130px",editInputBorderRadius:"2px",editInputPadding:"5px",editInputMarginRight:"4px",editInputFontFamily:"monospace",iconCursor:"pointer",iconFontSize:"15px",iconPaddingRight:"1px",dateValueMarginLeft:"2px",iconMarginRight:"3px",detectedRowPaddingTop:"3px",addKeyCoverBackground:"rgba(255, 255, 255, 0.3)",addKeyCoverPosition:"absolute",addKeyCoverPositionPx:"0px",addKeyModalWidth:"200px",addKeyModalMargin:"auto",addKeyModalPadding:"10px",addKeyModalRadius:"3px"},q=i(45),z=function(Y){var Q=function(H){return{backgroundColor:H.base00,ellipsisColor:H.base09,braceColor:H.base07,expandedIcon:H.base0D,collapsedIcon:H.base0E,keyColor:H.base07,arrayKeyColor:H.base0C,objectSize:H.base04,copyToClipboard:H.base0F,copyToClipboardCheck:H.base0D,objectBorder:H.base02,dataTypes:{boolean:H.base0E,date:H.base0D,float:H.base0B,function:H.base0D,integer:H.base0F,string:H.base09,nan:H.base08,null:H.base0A,undefined:H.base05,regexp:H.base0A,background:H.base02},editVariable:{editIcon:H.base0E,cancelIcon:H.base09,removeIcon:H.base09,addIcon:H.base0E,checkIcon:H.base0E,background:H.base01,color:H.base0A,border:H.base07},addKeyModal:{background:H.base05,border:H.base04,color:H.base0A,labelColor:H.base01},validationFailure:{background:H.base09,iconColor:H.base01,fontColor:H.base01}}}(Y);return{"app-container":{fontFamily:M.globalFontFamily,cursor:M.globalCursor,backgroundColor:Q.backgroundColor,position:"relative"},ellipsis:{display:"inline-block",color:Q.ellipsisColor,fontSize:M.ellipsisFontSize,lineHeight:M.ellipsisLineHeight,cursor:M.ellipsisCursor},"brace-row":{display:"inline-block",cursor:"pointer"},brace:{display:"inline-block",cursor:M.braceCursor,fontWeight:M.braceFontWeight,color:Q.braceColor},"expanded-icon":{color:Q.expandedIcon},"collapsed-icon":{color:Q.collapsedIcon},colon:{display:"inline-block",margin:M.keyMargin,color:Q.keyColor,verticalAlign:"top"},objectKeyVal:function(H,P){return{style:u({paddingTop:M.keyValPaddingTop,paddingRight:M.keyValPaddingRight,paddingBottom:M.keyValPaddingBottom,borderLeft:M.keyValBorderLeft+" "+Q.objectBorder,":hover":{paddingLeft:P.paddingLeft-1+"px",borderLeft:M.keyValBorderHover+" "+Q.objectBorder}},P)}},"object-key-val-no-border":{padding:M.keyValPadding},"pushed-content":{marginLeft:M.pushedContentMarginLeft},variableValue:function(H,P){return{style:u({display:"inline-block",paddingRight:M.variableValuePaddingRight,position:"relative"},P)}},"object-name":{display:"inline-block",color:Q.keyColor,letterSpacing:M.keyLetterSpacing,fontStyle:M.keyFontStyle,verticalAlign:M.keyVerticalAlign,opacity:M.keyOpacity,":hover":{opacity:M.keyOpacityHover}},"array-key":{display:"inline-block",color:Q.arrayKeyColor,letterSpacing:M.keyLetterSpacing,fontStyle:M.keyFontStyle,verticalAlign:M.keyVerticalAlign,opacity:M.keyOpacity,":hover":{opacity:M.keyOpacityHover}},"object-size":{color:Q.objectSize,borderRadius:M.objectSizeBorderRadius,fontStyle:M.objectSizeFontStyle,margin:M.objectSizeMargin,cursor:"default"},"data-type-label":{fontSize:M.dataTypeFontSize,marginRight:M.dataTypeMarginRight,opacity:M.datatypeOpacity},boolean:{display:"inline-block",color:Q.dataTypes.boolean},date:{display:"inline-block",color:Q.dataTypes.date},"date-value":{marginLeft:M.dateValueMarginLeft},float:{display:"inline-block",color:Q.dataTypes.float},function:{display:"inline-block",color:Q.dataTypes.function,cursor:"pointer",whiteSpace:"pre-line"},"function-value":{fontStyle:"italic"},integer:{display:"inline-block",color:Q.dataTypes.integer},string:{display:"inline-block",color:Q.dataTypes.string},nan:{display:"inline-block",color:Q.dataTypes.nan,fontSize:M.nanFontSize,fontWeight:M.nanFontWeight,backgroundColor:Q.dataTypes.background,padding:M.nanPadding,borderRadius:M.nanBorderRadius},null:{display:"inline-block",color:Q.dataTypes.null,fontSize:M.nullFontSize,fontWeight:M.nullFontWeight,backgroundColor:Q.dataTypes.background,padding:M.nullPadding,borderRadius:M.nullBorderRadius},undefined:{display:"inline-block",color:Q.dataTypes.undefined,fontSize:M.undefinedFontSize,padding:M.undefinedPadding,borderRadius:M.undefinedBorderRadius,backgroundColor:Q.dataTypes.background},regexp:{display:"inline-block",color:Q.dataTypes.regexp},"copy-to-clipboard":{cursor:M.clipboardCursor},"copy-icon":{color:Q.copyToClipboard,fontSize:M.iconFontSize,marginRight:M.iconMarginRight,verticalAlign:"top"},"copy-icon-copied":{color:Q.copyToClipboardCheck,marginLeft:M.clipboardCheckMarginLeft},"array-group-meta-data":{display:"inline-block",padding:M.arrayGroupMetaPadding},"object-meta-data":{display:"inline-block",padding:M.metaDataPadding},"icon-container":{display:"inline-block",width:M.iconContainerWidth},tooltip:{padding:M.tooltipPadding},removeVarIcon:{verticalAlign:"top",display:"inline-block",color:Q.editVariable.removeIcon,cursor:M.iconCursor,fontSize:M.iconFontSize,marginRight:M.iconMarginRight},addVarIcon:{verticalAlign:"top",display:"inline-block",color:Q.editVariable.addIcon,cursor:M.iconCursor,fontSize:M.iconFontSize,marginRight:M.iconMarginRight},editVarIcon:{verticalAlign:"top",display:"inline-block",color:Q.editVariable.editIcon,cursor:M.iconCursor,fontSize:M.iconFontSize,marginRight:M.iconMarginRight},"edit-icon-container":{display:"inline-block",verticalAlign:"top"},"check-icon":{display:"inline-block",cursor:M.iconCursor,color:Q.editVariable.checkIcon,fontSize:M.iconFontSize,paddingRight:M.iconPaddingRight},"cancel-icon":{display:"inline-block",cursor:M.iconCursor,color:Q.editVariable.cancelIcon,fontSize:M.iconFontSize,paddingRight:M.iconPaddingRight},"edit-input":{display:"inline-block",minWidth:M.editInputMinWidth,borderRadius:M.editInputBorderRadius,backgroundColor:Q.editVariable.background,color:Q.editVariable.color,padding:M.editInputPadding,marginRight:M.editInputMarginRight,fontFamily:M.editInputFontFamily},"detected-row":{paddingTop:M.detectedRowPaddingTop},"key-modal-request":{position:M.addKeyCoverPosition,top:M.addKeyCoverPositionPx,left:M.addKeyCoverPositionPx,right:M.addKeyCoverPositionPx,bottom:M.addKeyCoverPositionPx,backgroundColor:M.addKeyCoverBackground},"key-modal":{width:M.addKeyModalWidth,backgroundColor:Q.addKeyModal.background,marginLeft:M.addKeyModalMargin,marginRight:M.addKeyModalMargin,padding:M.addKeyModalPadding,borderRadius:M.addKeyModalRadius,marginTop:"15px",position:"relative"},"key-modal-label":{color:Q.addKeyModal.labelColor,marginLeft:"2px",marginBottom:"5px",fontSize:"11px"},"key-modal-input-container":{overflow:"hidden"},"key-modal-input":{width:"100%",padding:"3px 6px",fontFamily:"monospace",color:Q.addKeyModal.color,border:"none",boxSizing:"border-box",borderRadius:"2px"},"key-modal-cancel":{backgroundColor:Q.editVariable.removeIcon,position:"absolute",top:"0px",right:"0px",borderRadius:"0px 3px 0px 3px",cursor:"pointer"},"key-modal-cancel-icon":{color:Q.addKeyModal.labelColor,fontSize:M.iconFontSize,transform:"rotate(45deg)"},"key-modal-submit":{color:Q.editVariable.addIcon,fontSize:M.iconFontSize,position:"absolute",right:"2px",top:"3px",cursor:"pointer"},"function-ellipsis":{display:"inline-block",color:Q.ellipsisColor,fontSize:M.ellipsisFontSize,lineHeight:M.ellipsisLineHeight,cursor:M.ellipsisCursor},"validation-failure":{float:"right",padding:"3px 6px",borderRadius:"2px",cursor:"pointer",color:Q.validationFailure.fontColor,backgroundColor:Q.validationFailure.background},"validation-failure-label":{marginRight:"6px"},"validation-failure-clear":{position:"relative",verticalAlign:"top",cursor:"pointer",color:Q.validationFailure.iconColor,fontSize:M.iconFontSize,transform:"rotate(45deg)"}}};function F(Y,Q,H){return Y||console.error("theme has not been set"),function(P){var B=D;return P!==!1&&P!=="none"||(B=L),Object(q.createStyling)(z,{defaultBase16:B})(P)}(Y)(Q,H)}var $=function(Y){h(H,Y);var Q=_(H);function H(){return l(this,H),Q.apply(this,arguments)}return f(H,[{key:"render",value:function(){var P=this.props,B=(P.rjvId,P.type_name),Z=P.displayDataTypes,ie=P.theme;return Z?b.a.createElement("span",Object.assign({className:"data-type-label"},F(ie,"data-type-label")),B):null}}]),H}(b.a.PureComponent),K=function(Y){h(H,Y);var Q=_(H);function H(){return l(this,H),Q.apply(this,arguments)}return f(H,[{key:"render",value:function(){var P=this.props;return b.a.createElement("div",F(P.theme,"boolean"),b.a.createElement($,Object.assign({type_name:"bool"},P)),P.value?"true":"false")}}]),H}(b.a.PureComponent),U=function(Y){h(H,Y);var Q=_(H);function H(){return l(this,H),Q.apply(this,arguments)}return f(H,[{key:"render",value:function(){var P=this.props;return b.a.createElement("div",F(P.theme,"date"),b.a.createElement($,Object.assign({type_name:"date"},P)),b.a.createElement("span",Object.assign({className:"date-value"},F(P.theme,"date-value")),P.value.toLocaleTimeString("en-us",{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})))}}]),H}(b.a.PureComponent),X=function(Y){h(H,Y);var Q=_(H);function H(){return l(this,H),Q.apply(this,arguments)}return f(H,[{key:"render",value:function(){var P=this.props;return b.a.createElement("div",F(P.theme,"float"),b.a.createElement($,Object.assign({type_name:"float"},P)),this.props.value)}}]),H}(b.a.PureComponent);function J(Y,Q){(Q==null||Q>Y.length)&&(Q=Y.length);for(var H=0,P=new Array(Q);H"u"||Y[Symbol.iterator]==null){if(Array.isArray(Y)||(H=ee(Y))||Q&&Y&&typeof Y.length=="number"){H&&(Y=H);var P=0,B=function(){};return{s:B,n:function(){return P>=Y.length?{done:!0}:{done:!1,value:Y[P++]}},e:function(ne){throw ne},f:B}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Z,ie=!0,ae=!1;return{s:function(){H=Y[Symbol.iterator]()},n:function(){var ne=H.next();return ie=ne.done,ne},e:function(ne){ae=!0,Z=ne},f:function(){try{ie||H.return==null||H.return()}finally{if(ae)throw Z}}}}function ge(Y){return function(Q){if(Array.isArray(Q))return J(Q)}(Y)||function(Q){if(typeof Symbol<"u"&&Symbol.iterator in Object(Q))return Array.from(Q)}(Y)||ee(Y)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var Se=i(46),Ee=new(i(47)).Dispatcher,ve=new(function(Y){h(H,Y);var Q=_(H);function H(){var P;l(this,H);for(var B=arguments.length,Z=new Array(B),ie=0;ieB&&(ae.style.cursor="pointer",this.state.collapsed&&(ie=b.a.createElement("span",null,ie.substring(0,B),b.a.createElement("span",F(Z,"ellipsis")," ...")))),b.a.createElement("div",F(Z,"string"),b.a.createElement($,Object.assign({type_name:"string"},P)),b.a.createElement("span",Object.assign({className:"string-value"},ae,{onClick:this.toggleCollapsed}),'"',ie,'"'))}}]),H}(b.a.PureComponent),Fe=function(Y){h(H,Y);var Q=_(H);function H(){return l(this,H),Q.apply(this,arguments)}return f(H,[{key:"render",value:function(){return b.a.createElement("div",F(this.props.theme,"undefined"),"undefined")}}]),H}(b.a.PureComponent);function Ze(){return(Ze=Object.assign||function(Y){for(var Q=1;Q=0||(Cu[vo]=Ot[vo]);return Cu}(Y,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]),qe,xt=ye.value!==void 0,Rt=Object(S.useRef)(null),St=$t(Rt,Q),_t=Object(S.useRef)(0),Wt=Object(S.useRef)(),$r=function(){var Ot=Rt.current,bn=H&&Wt.current?Wt.current:function(qs){var Nc=window.getComputedStyle(qs);if(Nc===null)return null;var Nu,oo=(Nu=Nc,he.reduce(function(Rc,Ru){return Rc[Ru]=Nu[Ru],Rc},{})),Ba=oo.boxSizing;return Ba===""?null:(ue&&Ba==="border-box"&&(oo.width=parseFloat(oo.width)+parseFloat(oo.borderRightWidth)+parseFloat(oo.borderLeftWidth)+parseFloat(oo.paddingRight)+parseFloat(oo.paddingLeft)+"px"),{sizingStyle:oo,paddingSize:parseFloat(oo.paddingBottom)+parseFloat(oo.paddingTop),borderSize:parseFloat(oo.borderBottomWidth)+parseFloat(oo.borderTopWidth)})}(Ot);if(bn){Wt.current=bn;var vo=function(qs,Nc,Nu,oo){Nu===void 0&&(Nu=1),oo===void 0&&(oo=1/0),ot||((ot=document.createElement("textarea")).setAttribute("tab-index","-1"),ot.setAttribute("aria-hidden","true"),Je(ot)),ot.parentNode===null&&document.body.appendChild(ot);var Ba=qs.paddingSize,Rc=qs.borderSize,Ru=qs.sizingStyle,Oc=Ru.boxSizing;Object.keys(Ru).forEach(function(Fc){var wl=Fc;ot.style[wl]=Ru[wl]}),Je(ot),ot.value=Nc;var Ou=function(Fc,wl){var Al=Fc.scrollHeight;return wl.sizingStyle.boxSizing==="border-box"?Al+wl.borderSize:Al-wl.paddingSize}(ot,qs);ot.value="x";var Gf=ot.scrollHeight-Ba,Sl=Gf*Nu;Oc==="border-box"&&(Sl=Sl+Ba+Rc),Ou=Math.max(Sl,Ou);var Dc=Gf*oo;return Oc==="border-box"&&(Dc=Dc+Ba+Rc),[Ou=Math.min(Dc,Ou),Gf]}(bn,Ot.value||Ot.placeholder||"x",B,P),ji=vo[0],Cu=vo[1];_t.current!==ji&&(_t.current=ji,Ot.style.setProperty("height",ji+"px","important"),ne(ji,{rowHeight:Cu}))}};return Object(S.useLayoutEffect)($r),qe=Ge($r),Object(S.useLayoutEffect)(function(){var Ot=function(bn){qe.current(bn)};return window.addEventListener("resize",Ot),function(){window.removeEventListener("resize",Ot)}},[]),Object(S.createElement)("textarea",Ze({},ye,{onChange:function(Ot){xt||$r(),ie(Ot)},ref:St}))},pe=Object(S.forwardRef)(se);function Ne(Y){Y=Y.trim();try{if((Y=JSON.stringify(JSON.parse(Y)))[0]==="[")return Be("array",JSON.parse(Y));if(Y[0]==="{")return Be("object",JSON.parse(Y));if(Y.match(/\-?\d+\.\d+/)&&Y.match(/\-?\d+\.\d+/)[0]===Y)return Be("float",parseFloat(Y));if(Y.match(/\-?\d+e-\d+/)&&Y.match(/\-?\d+e-\d+/)[0]===Y)return Be("float",Number(Y));if(Y.match(/\-?\d+/)&&Y.match(/\-?\d+/)[0]===Y)return Be("integer",parseInt(Y));if(Y.match(/\-?\d+e\+\d+/)&&Y.match(/\-?\d+e\+\d+/)[0]===Y)return Be("integer",Number(Y))}catch{}switch(Y=Y.toLowerCase()){case"undefined":return Be("undefined",void 0);case"nan":return Be("nan",NaN);case"null":return Be("null",null);case"true":return Be("boolean",!0);case"false":return Be("boolean",!1);default:if(Y=Date.parse(Y))return Be("date",new Date(Y))}return Be(!1,null)}function Be(Y,Q){return{type:Y,value:Q}}var Ae=function(Y){h(H,Y);var Q=_(H);function H(){return l(this,H),Q.apply(this,arguments)}return f(H,[{key:"render",value:function(){var P=this.props,B=P.style,Z=I(P,["style"]);return b.a.createElement("span",Z,b.a.createElement("svg",Object.assign({},Nt(B),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),b.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M7,13H17V11H7"})))}}]),H}(b.a.PureComponent),Ie=function(Y){h(H,Y);var Q=_(H);function H(){return l(this,H),Q.apply(this,arguments)}return f(H,[{key:"render",value:function(){var P=this.props,B=P.style,Z=I(P,["style"]);return b.a.createElement("span",Z,b.a.createElement("svg",Object.assign({},Nt(B),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),b.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M13,7H11V11H7V13H11V17H13V13H17V11H13V7Z"})))}}]),H}(b.a.PureComponent),Pe=function(Y){h(H,Y);var Q=_(H);function H(){return l(this,H),Q.apply(this,arguments)}return f(H,[{key:"render",value:function(){var P=this.props,B=P.style,Z=I(P,["style"]),ie=Nt(B).style;return b.a.createElement("span",Z,b.a.createElement("svg",{fill:ie.color,width:ie.height,height:ie.width,style:ie,viewBox:"0 0 1792 1792"},b.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-832q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h832q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),H}(b.a.PureComponent),lt=function(Y){h(H,Y);var Q=_(H);function H(){return l(this,H),Q.apply(this,arguments)}return f(H,[{key:"render",value:function(){var P=this.props,B=P.style,Z=I(P,["style"]),ie=Nt(B).style;return b.a.createElement("span",Z,b.a.createElement("svg",{fill:ie.color,width:ie.height,height:ie.width,style:ie,viewBox:"0 0 1792 1792"},b.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-352v352q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23v-352h-352q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h352v-352q0-14 9-23t23-9h64q14 0 23 9t9 23v352h352q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),H}(b.a.PureComponent),mt=function(Y){h(H,Y);var Q=_(H);function H(){return l(this,H),Q.apply(this,arguments)}return f(H,[{key:"render",value:function(){var P=this.props,B=P.style,Z=I(P,["style"]);return b.a.createElement("span",Z,b.a.createElement("svg",{style:u(u({},Nt(B).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},b.a.createElement("path",{d:"M0 14l6-6-6-6z"})))}}]),H}(b.a.PureComponent),Ct=function(Y){h(H,Y);var Q=_(H);function H(){return l(this,H),Q.apply(this,arguments)}return f(H,[{key:"render",value:function(){var P=this.props,B=P.style,Z=I(P,["style"]);return b.a.createElement("span",Z,b.a.createElement("svg",{style:u(u({},Nt(B).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},b.a.createElement("path",{d:"M0 5l6 6 6-6z"})))}}]),H}(b.a.PureComponent),dr=function(Y){h(H,Y);var Q=_(H);function H(){return l(this,H),Q.apply(this,arguments)}return f(H,[{key:"render",value:function(){var P=this.props,B=P.style,Z=I(P,["style"]);return b.a.createElement("span",Z,b.a.createElement("svg",Object.assign({},Nt(B),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),b.a.createElement("g",null,b.a.createElement("path",{d:"m30 35h-25v-22.5h25v7.5h2.5v-12.5c0-1.4-1.1-2.5-2.5-2.5h-7.5c0-2.8-2.2-5-5-5s-5 2.2-5 5h-7.5c-1.4 0-2.5 1.1-2.5 2.5v27.5c0 1.4 1.1 2.5 2.5 2.5h25c1.4 0 2.5-1.1 2.5-2.5v-5h-2.5v5z m-20-27.5h2.5s2.5-1.1 2.5-2.5 1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5 1.3 2.5 2.5 2.5h2.5s2.5 1.1 2.5 2.5h-20c0-1.5 1.1-2.5 2.5-2.5z m-2.5 20h5v-2.5h-5v2.5z m17.5-5v-5l-10 7.5 10 7.5v-5h12.5v-5h-12.5z m-17.5 10h7.5v-2.5h-7.5v2.5z m12.5-17.5h-12.5v2.5h12.5v-2.5z m-7.5 5h-5v2.5h5v-2.5z"}))))}}]),H}(b.a.PureComponent),Cr=function(Y){h(H,Y);var Q=_(H);function H(){return l(this,H),Q.apply(this,arguments)}return f(H,[{key:"render",value:function(){var P=this.props,B=P.style,Z=I(P,["style"]);return b.a.createElement("span",Z,b.a.createElement("svg",Object.assign({},Nt(B),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),b.a.createElement("g",null,b.a.createElement("path",{d:"m28.6 25q0-0.5-0.4-1l-4-4 4-4q0.4-0.5 0.4-1 0-0.6-0.4-1.1l-2-2q-0.4-0.4-1-0.4-0.6 0-1 0.4l-4.1 4.1-4-4.1q-0.4-0.4-1-0.4-0.6 0-1 0.4l-2 2q-0.5 0.5-0.5 1.1 0 0.5 0.5 1l4 4-4 4q-0.5 0.5-0.5 1 0 0.7 0.5 1.1l2 2q0.4 0.4 1 0.4 0.6 0 1-0.4l4-4.1 4.1 4.1q0.4 0.4 1 0.4 0.6 0 1-0.4l2-2q0.4-0.4 0.4-1z m8.7-5q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),H}(b.a.PureComponent),Bt=function(Y){h(H,Y);var Q=_(H);function H(){return l(this,H),Q.apply(this,arguments)}return f(H,[{key:"render",value:function(){var P=this.props,B=P.style,Z=I(P,["style"]);return b.a.createElement("span",Z,b.a.createElement("svg",Object.assign({},Nt(B),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),b.a.createElement("g",null,b.a.createElement("path",{d:"m30.1 21.4v-2.8q0-0.6-0.4-1t-1-0.5h-5.7v-5.7q0-0.6-0.4-1t-1-0.4h-2.9q-0.6 0-1 0.4t-0.4 1v5.7h-5.7q-0.6 0-1 0.5t-0.5 1v2.8q0 0.6 0.5 1t1 0.5h5.7v5.7q0 0.5 0.4 1t1 0.4h2.9q0.6 0 1-0.4t0.4-1v-5.7h5.7q0.6 0 1-0.5t0.4-1z m7.2-1.4q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),H}(b.a.PureComponent),qr=function(Y){h(H,Y);var Q=_(H);function H(){return l(this,H),Q.apply(this,arguments)}return f(H,[{key:"render",value:function(){var P=this.props,B=P.style,Z=I(P,["style"]);return b.a.createElement("span",Z,b.a.createElement("svg",Object.assign({},Nt(B),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),b.a.createElement("g",null,b.a.createElement("path",{d:"m31.6 21.6h-10v10h-3.2v-10h-10v-3.2h10v-10h3.2v10h10v3.2z"}))))}}]),H}(b.a.PureComponent),cn=function(Y){h(H,Y);var Q=_(H);function H(){return l(this,H),Q.apply(this,arguments)}return f(H,[{key:"render",value:function(){var P=this.props,B=P.style,Z=I(P,["style"]);return b.a.createElement("span",Z,b.a.createElement("svg",Object.assign({},Nt(B),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),b.a.createElement("g",null,b.a.createElement("path",{d:"m19.8 26.4l2.6-2.6-3.4-3.4-2.6 2.6v1.3h2.2v2.1h1.2z m9.8-16q-0.3-0.4-0.7 0l-7.8 7.8q-0.4 0.4 0 0.7t0.7 0l7.8-7.8q0.4-0.4 0-0.7z m1.8 13.2v4.3q0 2.6-1.9 4.5t-4.5 1.9h-18.6q-2.6 0-4.5-1.9t-1.9-4.5v-18.6q0-2.7 1.9-4.6t4.5-1.8h18.6q1.4 0 2.6 0.5 0.3 0.2 0.4 0.5 0.1 0.4-0.2 0.7l-1.1 1.1q-0.3 0.3-0.7 0.1-0.5-0.1-1-0.1h-18.6q-1.4 0-2.5 1.1t-1 2.5v18.6q0 1.4 1 2.5t2.5 1h18.6q1.5 0 2.5-1t1.1-2.5v-2.9q0-0.2 0.2-0.4l1.4-1.5q0.3-0.3 0.8-0.1t0.4 0.6z m-2.1-16.5l6.4 6.5-15 15h-6.4v-6.5z m9.9 3l-2.1 2-6.4-6.4 2.1-2q0.6-0.7 1.5-0.7t1.5 0.7l3.4 3.4q0.6 0.6 0.6 1.5t-0.6 1.5z"}))))}}]),H}(b.a.PureComponent),er=function(Y){h(H,Y);var Q=_(H);function H(){return l(this,H),Q.apply(this,arguments)}return f(H,[{key:"render",value:function(){var P=this.props,B=P.style,Z=I(P,["style"]);return b.a.createElement("span",Z,b.a.createElement("svg",Object.assign({},Nt(B),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),b.a.createElement("g",null,b.a.createElement("path",{d:"m31.7 16.4q0-0.6-0.4-1l-2.1-2.1q-0.4-0.4-1-0.4t-1 0.4l-9.1 9.1-5-5q-0.5-0.4-1-0.4t-1 0.4l-2.1 2q-0.4 0.4-0.4 1 0 0.6 0.4 1l8.1 8.1q0.4 0.4 1 0.4 0.6 0 1-0.4l12.2-12.1q0.4-0.4 0.4-1z m5.6 3.6q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),H}(b.a.PureComponent);function Nt(Y){return Y||(Y={}),{style:u(u({verticalAlign:"middle"},Y),{},{color:Y.color?Y.color:"#000000",height:"1em",width:"1em"})}}var Wr=function(Y){h(H,Y);var Q=_(H);function H(P){var B;return l(this,H),(B=Q.call(this,P)).copiedTimer=null,B.handleCopy=function(){var Z=document.createElement("textarea"),ie=B.props,ae=ie.clickCallback,ne=ie.src,ye=ie.namespace;Z.innerHTML=JSON.stringify(B.clipboardValue(ne),null," "),document.body.appendChild(Z),Z.select(),document.execCommand("copy"),document.body.removeChild(Z),B.copiedTimer=setTimeout(function(){B.setState({copied:!1})},5500),B.setState({copied:!0},function(){typeof ae=="function"&&ae({src:ne,namespace:ye,name:ye[ye.length-1]})})},B.getClippyIcon=function(){var Z=B.props.theme;return B.state.copied?b.a.createElement("span",null,b.a.createElement(dr,Object.assign({className:"copy-icon"},F(Z,"copy-icon"))),b.a.createElement("span",F(Z,"copy-icon-copied"),"✔")):b.a.createElement(dr,Object.assign({className:"copy-icon"},F(Z,"copy-icon")))},B.clipboardValue=function(Z){switch(R(Z)){case"function":case"regexp":return Z.toString();default:return Z}},B.state={copied:!1},B}return f(H,[{key:"componentWillUnmount",value:function(){this.copiedTimer&&(clearTimeout(this.copiedTimer),this.copiedTimer=null)}},{key:"render",value:function(){var P=this.props,B=(P.src,P.theme),Z=P.hidden,ie=P.rowHovered,ae=F(B,"copy-to-clipboard").style,ne="inline";return Z&&(ne="none"),b.a.createElement("span",{className:"copy-to-clipboard-container",title:"Copy to clipboard",style:{verticalAlign:"top",display:ie?"inline-block":"none"}},b.a.createElement("span",{style:u(u({},ae),{},{display:ne}),onClick:this.handleCopy},this.getClippyIcon()))}}]),H}(b.a.PureComponent),Nr=function(Y){h(H,Y);var Q=_(H);function H(P){var B;return l(this,H),(B=Q.call(this,P)).getEditIcon=function(){var Z=B.props,ie=Z.variable,ae=Z.theme;return b.a.createElement("div",{className:"click-to-edit",style:{verticalAlign:"top",display:B.state.hovered?"inline-block":"none"}},b.a.createElement(cn,Object.assign({className:"click-to-edit-icon"},F(ae,"editVarIcon"),{onClick:function(){B.prepopInput(ie)}})))},B.prepopInput=function(Z){if(B.props.onEdit!==!1){var ie=function(ne){var ye;switch(R(ne)){case"undefined":ye="undefined";break;case"nan":ye="NaN";break;case"string":ye=ne;break;case"date":case"function":case"regexp":ye=ne.toString();break;default:try{ye=JSON.stringify(ne,null," ")}catch{ye=""}}return ye}(Z.value),ae=Ne(ie);B.setState({editMode:!0,editValue:ie,parsedInput:{type:ae.type,value:ae.value}})}},B.getRemoveIcon=function(){var Z=B.props,ie=Z.variable,ae=Z.namespace,ne=Z.theme,ye=Z.rjvId;return b.a.createElement("div",{className:"click-to-remove",style:{verticalAlign:"top",display:B.state.hovered?"inline-block":"none"}},b.a.createElement(Cr,Object.assign({className:"click-to-remove-icon"},F(ne,"removeVarIcon"),{onClick:function(){Ee.dispatch({name:"VARIABLE_REMOVED",rjvId:ye,data:{name:ie.name,namespace:ae,existing_value:ie.value,variable_removed:!0}})}})))},B.getValue=function(Z,ie){var ae=!ie&&Z.type,ne=y(B).props;switch(ae){case!1:return B.getEditInput();case"string":return b.a.createElement(Qe,Object.assign({value:Z.value},ne));case"integer":return b.a.createElement(it,Object.assign({value:Z.value},ne));case"float":return b.a.createElement(X,Object.assign({value:Z.value},ne));case"boolean":return b.a.createElement(K,Object.assign({value:Z.value},ne));case"function":return b.a.createElement(me,Object.assign({value:Z.value},ne));case"null":return b.a.createElement(He,ne);case"nan":return b.a.createElement(xe,ne);case"undefined":return b.a.createElement(Fe,ne);case"date":return b.a.createElement(U,Object.assign({value:Z.value},ne));case"regexp":return b.a.createElement(Oe,Object.assign({value:Z.value},ne));default:return b.a.createElement("div",{className:"object-value"},JSON.stringify(Z.value))}},B.getEditInput=function(){var Z=B.props.theme,ie=B.state.editValue;return b.a.createElement("div",null,b.a.createElement(pe,Object.assign({type:"text",inputRef:function(ae){return ae&&ae.focus()},value:ie,className:"variable-editor",onChange:function(ae){var ne=ae.target.value,ye=Ne(ne);B.setState({editValue:ne,parsedInput:{type:ye.type,value:ye.value}})},onKeyDown:function(ae){switch(ae.key){case"Escape":B.setState({editMode:!1,editValue:""});break;case"Enter":(ae.ctrlKey||ae.metaKey)&&B.submitEdit(!0)}ae.stopPropagation()},placeholder:"update this value",minRows:2},F(Z,"edit-input"))),b.a.createElement("div",F(Z,"edit-icon-container"),b.a.createElement(Cr,Object.assign({className:"edit-cancel"},F(Z,"cancel-icon"),{onClick:function(){B.setState({editMode:!1,editValue:""})}})),b.a.createElement(er,Object.assign({className:"edit-check string-value"},F(Z,"check-icon"),{onClick:function(){B.submitEdit()}})),b.a.createElement("div",null,B.showDetected())))},B.submitEdit=function(Z){var ie=B.props,ae=ie.variable,ne=ie.namespace,ye=ie.rjvId,qe=B.state,xt=qe.editValue,Rt=qe.parsedInput,St=xt;Z&&Rt.type&&(St=Rt.value),B.setState({editMode:!1}),Ee.dispatch({name:"VARIABLE_UPDATED",rjvId:ye,data:{name:ae.name,namespace:ne,existing_value:ae.value,new_value:St,variable_removed:!1}})},B.showDetected=function(){var Z=B.props,ie=Z.theme,ae=(Z.variable,Z.namespace,Z.rjvId,B.state.parsedInput),ne=(ae.type,ae.value,B.getDetectedInput());if(ne)return b.a.createElement("div",null,b.a.createElement("div",F(ie,"detected-row"),ne,b.a.createElement(er,{className:"edit-check detected",style:u({verticalAlign:"top",paddingLeft:"3px"},F(ie,"check-icon").style),onClick:function(){B.submitEdit(!0)}})))},B.getDetectedInput=function(){var Z=B.state.parsedInput,ie=Z.type,ae=Z.value,ne=y(B).props,ye=ne.theme;if(ie!==!1)switch(ie.toLowerCase()){case"object":return b.a.createElement("span",null,b.a.createElement("span",{style:u(u({},F(ye,"brace").style),{},{cursor:"default"})},"{"),b.a.createElement("span",{style:u(u({},F(ye,"ellipsis").style),{},{cursor:"default"})},"..."),b.a.createElement("span",{style:u(u({},F(ye,"brace").style),{},{cursor:"default"})},"}"));case"array":return b.a.createElement("span",null,b.a.createElement("span",{style:u(u({},F(ye,"brace").style),{},{cursor:"default"})},"["),b.a.createElement("span",{style:u(u({},F(ye,"ellipsis").style),{},{cursor:"default"})},"..."),b.a.createElement("span",{style:u(u({},F(ye,"brace").style),{},{cursor:"default"})},"]"));case"string":return b.a.createElement(Qe,Object.assign({value:ae},ne));case"integer":return b.a.createElement(it,Object.assign({value:ae},ne));case"float":return b.a.createElement(X,Object.assign({value:ae},ne));case"boolean":return b.a.createElement(K,Object.assign({value:ae},ne));case"function":return b.a.createElement(me,Object.assign({value:ae},ne));case"null":return b.a.createElement(He,ne);case"nan":return b.a.createElement(xe,ne);case"undefined":return b.a.createElement(Fe,ne);case"date":return b.a.createElement(U,Object.assign({value:new Date(ae)},ne))}},B.state={editMode:!1,editValue:"",hovered:!1,renameKey:!1,parsedInput:{type:!1,value:null}},B}return f(H,[{key:"render",value:function(){var P=this,B=this.props,Z=B.variable,ie=B.singleIndent,ae=B.type,ne=B.theme,ye=B.namespace,qe=B.indentWidth,xt=B.enableClipboard,Rt=B.onEdit,St=B.onDelete,_t=B.onSelect,Wt=B.displayArrayKey,$r=B.quotesOnKeys,Ot=this.state.editMode;return b.a.createElement("div",Object.assign({},F(ne,"objectKeyVal",{paddingLeft:qe*ie}),{onMouseEnter:function(){return P.setState(u(u({},P.state),{},{hovered:!0}))},onMouseLeave:function(){return P.setState(u(u({},P.state),{},{hovered:!1}))},className:"variable-row",key:Z.name}),ae=="array"?Wt?b.a.createElement("span",Object.assign({},F(ne,"array-key"),{key:Z.name+"_"+ye}),Z.name,b.a.createElement("div",F(ne,"colon"),":")):null:b.a.createElement("span",null,b.a.createElement("span",Object.assign({},F(ne,"object-name"),{className:"object-key",key:Z.name+"_"+ye}),!!$r&&b.a.createElement("span",{style:{verticalAlign:"top"}},'"'),b.a.createElement("span",{style:{display:"inline-block"}},Z.name),!!$r&&b.a.createElement("span",{style:{verticalAlign:"top"}},'"')),b.a.createElement("span",F(ne,"colon"),":")),b.a.createElement("div",Object.assign({className:"variable-value",onClick:_t===!1&&Rt===!1?null:function(bn){var vo=ge(ye);(bn.ctrlKey||bn.metaKey)&&Rt!==!1?P.prepopInput(Z):_t!==!1&&(vo.shift(),_t(u(u({},Z),{},{namespace:vo})))}},F(ne,"variableValue",{cursor:_t===!1?"default":"pointer"})),this.getValue(Z,Ot)),xt?b.a.createElement(Wr,{rowHovered:this.state.hovered,hidden:Ot,src:Z.value,clickCallback:xt,theme:ne,namespace:[].concat(ge(ye),[Z.name])}):null,Rt!==!1&&Ot==0?this.getEditIcon():null,St!==!1&&Ot==0?this.getRemoveIcon():null)}}]),H}(b.a.PureComponent),Kr=function(Y){h(H,Y);var Q=_(H);function H(){var P;l(this,H);for(var B=arguments.length,Z=new Array(B),ie=0;ie0?xt:null,namespace:qe.splice(0,qe.length-1),existing_value:Rt,variable_removed:!1,key_name:null};R(Rt)==="object"?Ee.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:St,data:Wt}):Ee.dispatch({name:"VARIABLE_ADDED",rjvId:St,data:u(u({},Wt),{},{new_value:[].concat(ge(Rt),[null])})})}})))},P.getRemoveObject=function(ae){var ne=P.props,ye=ne.theme,qe=(ne.hover,ne.namespace),xt=ne.name,Rt=ne.src,St=ne.rjvId;if(qe.length!==1)return b.a.createElement("span",{className:"click-to-remove",style:{display:ae?"inline-block":"none"}},b.a.createElement(Cr,Object.assign({className:"click-to-remove-icon"},F(ye,"removeVarIcon"),{onClick:function(){Ee.dispatch({name:"VARIABLE_REMOVED",rjvId:St,data:{name:xt,namespace:qe.splice(0,qe.length-1),existing_value:Rt,variable_removed:!0}})}})))},P.render=function(){var ae=P.props,ne=ae.theme,ye=ae.onDelete,qe=ae.onAdd,xt=ae.enableClipboard,Rt=ae.src,St=ae.namespace,_t=ae.rowHovered;return b.a.createElement("div",Object.assign({},F(ne,"object-meta-data"),{className:"object-meta-data",onClick:function(Wt){Wt.stopPropagation()}}),P.getObjectSize(),xt?b.a.createElement(Wr,{rowHovered:_t,clickCallback:xt,src:Rt,theme:ne,namespace:St}):null,qe!==!1?P.getAddAttribute(_t):null,ye!==!1?P.getRemoveObject(_t):null)},P}return H}(b.a.PureComponent);function gr(Y){var Q=Y.parent_type,H=Y.namespace,P=Y.quotesOnKeys,B=Y.theme,Z=Y.jsvRoot,ie=Y.name,ae=Y.displayArrayKey,ne=Y.name?Y.name:"";return!Z||ie!==!1&&ie!==null?Q=="array"?ae?b.a.createElement("span",Object.assign({},F(B,"array-key"),{key:H}),b.a.createElement("span",{className:"array-key"},ne),b.a.createElement("span",F(B,"colon"),":")):b.a.createElement("span",null):b.a.createElement("span",Object.assign({},F(B,"object-name"),{key:H}),b.a.createElement("span",{className:"object-key"},P&&b.a.createElement("span",{style:{verticalAlign:"top"}},'"'),b.a.createElement("span",null,ne),P&&b.a.createElement("span",{style:{verticalAlign:"top"}},'"')),b.a.createElement("span",F(B,"colon"),":")):b.a.createElement("span",null)}function Dt(Y){var Q=Y.theme;switch(Y.iconStyle){case"triangle":return b.a.createElement(Ct,Object.assign({},F(Q,"expanded-icon"),{className:"expanded-icon"}));case"square":return b.a.createElement(Pe,Object.assign({},F(Q,"expanded-icon"),{className:"expanded-icon"}));default:return b.a.createElement(Ae,Object.assign({},F(Q,"expanded-icon"),{className:"expanded-icon"}))}}function dt(Y){var Q=Y.theme;switch(Y.iconStyle){case"triangle":return b.a.createElement(mt,Object.assign({},F(Q,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return b.a.createElement(lt,Object.assign({},F(Q,"collapsed-icon"),{className:"collapsed-icon"}));default:return b.a.createElement(Ie,Object.assign({},F(Q,"collapsed-icon"),{className:"collapsed-icon"}))}}var Ue=function(Y){h(H,Y);var Q=_(H);function H(P){var B;return l(this,H),(B=Q.call(this,P)).toggleCollapsed=function(Z){var ie=[];for(var ae in B.state.expanded)ie.push(B.state.expanded[ae]);ie[Z]=!ie[Z],B.setState({expanded:ie})},B.state={expanded:[]},B}return f(H,[{key:"getExpandedIcon",value:function(P){var B=this.props,Z=B.theme,ie=B.iconStyle;return this.state.expanded[P]?b.a.createElement(Dt,{theme:Z,iconStyle:ie}):b.a.createElement(dt,{theme:Z,iconStyle:ie})}},{key:"render",value:function(){var P=this,B=this.props,Z=B.src,ie=B.groupArraysAfterLength,ae=(B.depth,B.name),ne=B.theme,ye=B.jsvRoot,qe=B.namespace,xt=(B.parent_type,I(B,["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"])),Rt=0,St=5*this.props.indentWidth;ye||(Rt=5*this.props.indentWidth);var _t=ie,Wt=Math.ceil(Z.length/_t);return b.a.createElement("div",Object.assign({className:"object-key-val"},F(ne,ye?"jsv-root":"objectKeyVal",{paddingLeft:Rt})),b.a.createElement(gr,this.props),b.a.createElement("span",null,b.a.createElement(Kr,Object.assign({size:Z.length},this.props))),ge(Array(Wt)).map(function($r,Ot){return b.a.createElement("div",Object.assign({key:Ot,className:"object-key-val array-group"},F(ne,"objectKeyVal",{marginLeft:6,paddingLeft:St})),b.a.createElement("span",F(ne,"brace-row"),b.a.createElement("div",Object.assign({className:"icon-container"},F(ne,"icon-container"),{onClick:function(bn){P.toggleCollapsed(Ot)}}),P.getExpandedIcon(Ot)),P.state.expanded[Ot]?b.a.createElement(Hr,Object.assign({key:ae+Ot,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:_t,index_offset:Ot*_t,src:Z.slice(Ot*_t,Ot*_t+_t),namespace:qe,type:"array",parent_type:"array_group",theme:ne},xt)):b.a.createElement("span",Object.assign({},F(ne,"brace"),{onClick:function(bn){P.toggleCollapsed(Ot)},className:"array-group-brace"}),"[",b.a.createElement("div",Object.assign({},F(ne,"array-group-meta-data"),{className:"array-group-meta-data"}),b.a.createElement("span",Object.assign({className:"object-size"},F(ne,"object-size")),Ot*_t," - ",Ot*_t+_t>Z.length?Z.length:Ot*_t+_t)),"]")))}))}}]),H}(b.a.PureComponent),Gr=function(Y){h(H,Y);var Q=_(H);function H(P){var B;l(this,H),(B=Q.call(this,P)).toggleCollapsed=function(){B.setState({expanded:!B.state.expanded},function(){we.set(B.props.rjvId,B.props.namespace,"expanded",B.state.expanded)})},B.getObjectContent=function(ie,ae,ne){return b.a.createElement("div",{className:"pushed-content object-container"},b.a.createElement("div",Object.assign({className:"object-content"},F(B.props.theme,"pushed-content")),B.renderObjectContents(ae,ne)))},B.getEllipsis=function(){return B.state.size===0?null:b.a.createElement("div",Object.assign({},F(B.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:B.toggleCollapsed}),"...")},B.getObjectMetaData=function(ie){var ae=B.props,ne=(ae.rjvId,ae.theme,B.state),ye=ne.size,qe=ne.hovered;return b.a.createElement(Kr,Object.assign({rowHovered:qe,size:ye},B.props))},B.renderObjectContents=function(ie,ae){var ne,ye=B.props,qe=ye.depth,xt=ye.parent_type,Rt=ye.index_offset,St=ye.groupArraysAfterLength,_t=ye.namespace,Wt=B.state.object_type,$r=[],Ot=Object.keys(ie||{});return B.props.sortKeys&&Wt!=="array"&&(Ot=Ot.sort()),Ot.forEach(function(bn){if(ne=new Io(bn,ie[bn]),xt==="array_group"&&Rt&&(ne.name=parseInt(ne.name)+Rt),ie.hasOwnProperty(bn))if(ne.type==="object")$r.push(b.a.createElement(Hr,Object.assign({key:ne.name,depth:qe+1,name:ne.name,src:ne.value,namespace:_t.concat(ne.name),parent_type:Wt},ae)));else if(ne.type==="array"){var vo=Hr;St&&ne.value.length>St&&(vo=Ue),$r.push(b.a.createElement(vo,Object.assign({key:ne.name,depth:qe+1,name:ne.name,src:ne.value,namespace:_t.concat(ne.name),type:"array",parent_type:Wt},ae)))}else $r.push(b.a.createElement(Nr,Object.assign({key:ne.name+"_"+_t,variable:ne,singleIndent:5,namespace:_t,type:B.props.type},ae)))}),$r};var Z=H.getState(P);return B.state=u(u({},Z),{},{prevProps:{}}),B}return f(H,[{key:"getBraceStart",value:function(P,B){var Z=this,ie=this.props,ae=ie.src,ne=ie.theme,ye=ie.iconStyle;if(ie.parent_type==="array_group")return b.a.createElement("span",null,b.a.createElement("span",F(ne,"brace"),P==="array"?"[":"{"),B?this.getObjectMetaData(ae):null);var qe=B?Dt:dt;return b.a.createElement("span",null,b.a.createElement("span",Object.assign({onClick:function(xt){Z.toggleCollapsed()}},F(ne,"brace-row")),b.a.createElement("div",Object.assign({className:"icon-container"},F(ne,"icon-container")),b.a.createElement(qe,{theme:ne,iconStyle:ye})),b.a.createElement(gr,this.props),b.a.createElement("span",F(ne,"brace"),P==="array"?"[":"{")),B?this.getObjectMetaData(ae):null)}},{key:"render",value:function(){var P=this,B=this.props,Z=B.depth,ie=B.src,ae=(B.namespace,B.name,B.type,B.parent_type),ne=B.theme,ye=B.jsvRoot,qe=B.iconStyle,xt=I(B,["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"]),Rt=this.state,St=Rt.object_type,_t=Rt.expanded,Wt={};return ye||ae==="array_group"?ae==="array_group"&&(Wt.borderLeft=0,Wt.display="inline"):Wt.paddingLeft=5*this.props.indentWidth,b.a.createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return P.setState(u(u({},P.state),{},{hovered:!0}))},onMouseLeave:function(){return P.setState(u(u({},P.state),{},{hovered:!1}))}},F(ne,ye?"jsv-root":"objectKeyVal",Wt)),this.getBraceStart(St,_t),_t?this.getObjectContent(Z,ie,u({theme:ne,iconStyle:qe},xt)):this.getEllipsis(),b.a.createElement("span",{className:"brace-row"},b.a.createElement("span",{style:u(u({},F(ne,"brace").style),{},{paddingLeft:_t?"3px":"0px"})},St==="array"?"]":"}"),_t?null:this.getObjectMetaData(ie)))}}],[{key:"getDerivedStateFromProps",value:function(P,B){var Z=B.prevProps;return P.src!==Z.src||P.collapsed!==Z.collapsed||P.name!==Z.name||P.namespace!==Z.namespace||P.rjvId!==Z.rjvId?u(u({},H.getState(P)),{},{prevProps:P}):null}}]),H}(b.a.PureComponent);Gr.getState=function(Y){var Q=Object.keys(Y.src).length,H=(Y.collapsed===!1||Y.collapsed!==!0&&Y.collapsed>Y.depth)&&(!Y.shouldCollapse||Y.shouldCollapse({name:Y.name,src:Y.src,type:R(Y.src),namespace:Y.namespace})===!1)&&Q!==0;return{expanded:we.get(Y.rjvId,Y.namespace,"expanded",H),object_type:Y.type==="array"?"array":"object",parent_type:Y.type==="array"?"array":"object",size:Q,hovered:!1}};var Io=function Y(Q,H){l(this,Y),this.name=Q,this.value=H,this.type=R(H)};C(Gr);var Hr=Gr,Iu=function(Y){h(H,Y);var Q=_(H);function H(){var P;l(this,H);for(var B=arguments.length,Z=new Array(B),ie=0;ieae.groupArraysAfterLength&&(ye=Ue),b.a.createElement("div",{className:"pretty-json-container object-container"},b.a.createElement("div",{className:"object-content"},b.a.createElement(ye,Object.assign({namespace:ne,depth:0,jsvRoot:!0},ae))))},P}return H}(b.a.PureComponent),ps=function(Y){h(H,Y);var Q=_(H);function H(P){var B;return l(this,H),(B=Q.call(this,P)).closeModal=function(){Ee.dispatch({rjvId:B.props.rjvId,name:"RESET"})},B.submit=function(){B.props.submit(B.state.input)},B.state={input:P.input?P.input:""},B}return f(H,[{key:"render",value:function(){var P=this,B=this.props,Z=B.theme,ie=B.rjvId,ae=B.isValid,ne=this.state.input,ye=ae(ne);return b.a.createElement("div",Object.assign({className:"key-modal-request"},F(Z,"key-modal-request"),{onClick:this.closeModal}),b.a.createElement("div",Object.assign({},F(Z,"key-modal"),{onClick:function(qe){qe.stopPropagation()}}),b.a.createElement("div",F(Z,"key-modal-label"),"Key Name:"),b.a.createElement("div",{style:{position:"relative"}},b.a.createElement("input",Object.assign({},F(Z,"key-modal-input"),{className:"key-modal-input",ref:function(qe){return qe&&qe.focus()},spellCheck:!1,value:ne,placeholder:"...",onChange:function(qe){P.setState({input:qe.target.value})},onKeyPress:function(qe){ye&&qe.key==="Enter"?P.submit():qe.key==="Escape"&&P.closeModal()}})),ye?b.a.createElement(er,Object.assign({},F(Z,"key-modal-submit"),{className:"key-modal-submit",onClick:function(qe){return P.submit()}})):null),b.a.createElement("span",F(Z,"key-modal-cancel"),b.a.createElement(qr,Object.assign({},F(Z,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){Ee.dispatch({rjvId:ie,name:"RESET"})}})))))}}]),H}(b.a.PureComponent),go=function(Y){h(H,Y);var Q=_(H);function H(){var P;l(this,H);for(var B=arguments.length,Z=new Array(B),ie=0;ie=0)&&(r[o]=e[o]);return r}function Lit(e,t){if(e==null)return{};var r=Mit(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function jit(e,t){return zit(e)||Hit(e,t)||$it(e,t)||Pit()}function zit(e){if(Array.isArray(e))return e}function Hit(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,o=!1,i=void 0;try{for(var s=e[Symbol.iterator](),a;!(n=(a=s.next()).done)&&(r.push(a.value),!(t&&r.length===t));n=!0);}catch(u){o=!0,i=u}finally{try{!n&&s.return!=null&&s.return()}finally{if(o)throw i}}return r}}function $it(e,t){if(e){if(typeof e=="string")return nee(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nee(e,t)}}function nee(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?e.apply(this,o):function(){for(var s=arguments.length,a=new Array(s),u=0;u1&&arguments[1]!==void 0?arguments[1]:{};Hw.initial(e),Hw.handler(t);var r={current:e},n=_y(rst)(r,t),o=_y(tst)(r),i=_y(Hw.changes)(e),s=_y(est)(r);function a(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(c){return c};return Hw.selector(l),l(r.current)}function u(l){Wit(n,o,i,s)(l)}return[a,u]}function est(e,t){return u_(t)?t(e.current):t}function tst(e,t){return e.current=iee(iee({},e.current),t),t}function rst(e,t,r){return u_(t)?t(e.current):Object.keys(r).forEach(function(n){var o;return(o=t[n])===null||o===void 0?void 0:o.call(t,e.current[n])}),r}var nst={create:Jit},ost={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};function ist(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i=e.length?e.apply(this,o):function(){for(var s=arguments.length,a=new Array(s),u=0;u{n.current=!1}:e,t)}var ta=Sst;function Jy(){}function j0(e,t,r,n){return wst(e,n)||kst(e,t,r,n)}function wst(e,t){return e.editor.getModel(hhe(e,t))}function kst(e,t,r,n){return e.editor.createModel(t,r,n?hhe(e,n):void 0)}function hhe(e,t){return e.Uri.parse(t)}function Ast({original:e,modified:t,language:r,originalLanguage:n,modifiedLanguage:o,originalModelPath:i,modifiedModelPath:s,keepCurrentOriginalModel:a=!1,keepCurrentModifiedModel:u=!1,theme:l="light",loading:c="Loading...",options:f={},height:d="100%",width:h="100%",className:g,wrapperProps:v={},beforeMount:y=Jy,onMount:E=Jy}){let[_,S]=k.useState(!1),[b,A]=k.useState(!0),x=k.useRef(null),T=k.useRef(null),N=k.useRef(null),I=k.useRef(E),R=k.useRef(y),D=k.useRef(!1);dhe(()=>{let z=che.init();return z.then(B=>(T.current=B)&&A(!1)).catch(B=>(B==null?void 0:B.type)!=="cancelation"&&console.error("Monaco initialization: error:",B)),()=>x.current?q():z.cancel()}),ta(()=>{if(x.current&&T.current){let z=x.current.getOriginalEditor(),B=j0(T.current,e||"",n||r||"text",i||"");B!==z.getModel()&&z.setModel(B)}},[i],_),ta(()=>{if(x.current&&T.current){let z=x.current.getModifiedEditor(),B=j0(T.current,t||"",o||r||"text",s||"");B!==z.getModel()&&z.setModel(B)}},[s],_),ta(()=>{let z=x.current.getModifiedEditor();z.getOption(T.current.editor.EditorOption.readOnly)?z.setValue(t||""):t!==z.getValue()&&(z.executeEdits("",[{range:z.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),z.pushUndoStop())},[t],_),ta(()=>{var z,B;(B=(z=x.current)==null?void 0:z.getModel())==null||B.original.setValue(e||"")},[e],_),ta(()=>{let{original:z,modified:B}=x.current.getModel();T.current.editor.setModelLanguage(z,n||r||"text"),T.current.editor.setModelLanguage(B,o||r||"text")},[r,n,o],_),ta(()=>{var z;(z=T.current)==null||z.editor.setTheme(l)},[l],_),ta(()=>{var z;(z=x.current)==null||z.updateOptions(f)},[f],_);let L=k.useCallback(()=>{var P;if(!T.current)return;R.current(T.current);let z=j0(T.current,e||"",n||r||"text",i||""),B=j0(T.current,t||"",o||r||"text",s||"");(P=x.current)==null||P.setModel({original:z,modified:B})},[r,t,o,e,n,i,s]),M=k.useCallback(()=>{var z;!D.current&&N.current&&(x.current=T.current.editor.createDiffEditor(N.current,{automaticLayout:!0,...f}),L(),(z=T.current)==null||z.editor.setTheme(l),S(!0),D.current=!0)},[f,l,L]);k.useEffect(()=>{_&&I.current(x.current,T.current)},[_]),k.useEffect(()=>{!b&&!_&&M()},[b,_,M]);function q(){var B,P,K,U;let z=(B=x.current)==null?void 0:B.getModel();a||((P=z==null?void 0:z.original)==null||P.dispose()),u||((K=z==null?void 0:z.modified)==null||K.dispose()),(U=x.current)==null||U.dispose()}return re.createElement(fhe,{width:h,height:d,isEditorReady:_,loading:c,_ref:N,className:g,wrapperProps:v})}var Tst=Ast;k.memo(Tst);function xst(e){let t=k.useRef();return k.useEffect(()=>{t.current=e},[e]),t.current}var Ist=xst,jw=new Map;function Nst({defaultValue:e,defaultLanguage:t,defaultPath:r,value:n,language:o,path:i,theme:s="light",line:a,loading:u="Loading...",options:l={},overrideServices:c={},saveViewState:f=!0,keepCurrentModel:d=!1,width:h="100%",height:g="100%",className:v,wrapperProps:y={},beforeMount:E=Jy,onMount:_=Jy,onChange:S,onValidate:b=Jy}){let[A,x]=k.useState(!1),[T,N]=k.useState(!0),I=k.useRef(null),R=k.useRef(null),D=k.useRef(null),L=k.useRef(_),M=k.useRef(E),q=k.useRef(),z=k.useRef(n),B=Ist(i),P=k.useRef(!1),K=k.useRef(!1);dhe(()=>{let J=che.init();return J.then(ee=>(I.current=ee)&&N(!1)).catch(ee=>(ee==null?void 0:ee.type)!=="cancelation"&&console.error("Monaco initialization: error:",ee)),()=>R.current?X():J.cancel()}),ta(()=>{var ee,se,pe,_e;let J=j0(I.current,e||n||"",t||o||"",i||r||"");J!==((ee=R.current)==null?void 0:ee.getModel())&&(f&&jw.set(B,(se=R.current)==null?void 0:se.saveViewState()),(pe=R.current)==null||pe.setModel(J),f&&((_e=R.current)==null||_e.restoreViewState(jw.get(i))))},[i],A),ta(()=>{var J;(J=R.current)==null||J.updateOptions(l)},[l],A),ta(()=>{!R.current||n===void 0||(R.current.getOption(I.current.editor.EditorOption.readOnly)?R.current.setValue(n):n!==R.current.getValue()&&(K.current=!0,R.current.executeEdits("",[{range:R.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),R.current.pushUndoStop(),K.current=!1))},[n],A),ta(()=>{var ee,se;let J=(ee=R.current)==null?void 0:ee.getModel();J&&o&&((se=I.current)==null||se.editor.setModelLanguage(J,o))},[o],A),ta(()=>{var J;a!==void 0&&((J=R.current)==null||J.revealLine(a))},[a],A),ta(()=>{var J;(J=I.current)==null||J.editor.setTheme(s)},[s],A);let U=k.useCallback(()=>{var J;if(!(!D.current||!I.current)&&!P.current){M.current(I.current);let ee=i||r,se=j0(I.current,n||e||"",t||o||"",ee||"");R.current=(J=I.current)==null?void 0:J.editor.create(D.current,{model:se,automaticLayout:!0,...l},c),f&&R.current.restoreViewState(jw.get(ee)),I.current.editor.setTheme(s),a!==void 0&&R.current.revealLine(a),x(!0),P.current=!0}},[e,t,r,n,o,i,l,c,f,s,a]);k.useEffect(()=>{A&&L.current(R.current,I.current)},[A]),k.useEffect(()=>{!T&&!A&&U()},[T,A,U]),z.current=n,k.useEffect(()=>{var J,ee;A&&S&&((J=q.current)==null||J.dispose(),q.current=(ee=R.current)==null?void 0:ee.onDidChangeModelContent(se=>{K.current||S(R.current.getValue(),se)}))},[A,S]),k.useEffect(()=>{if(A){let J=I.current.editor.onDidChangeMarkers(ee=>{var pe;let se=(pe=R.current.getModel())==null?void 0:pe.uri;if(se&&ee.find(_e=>_e.path===se.path)){let _e=I.current.editor.getModelMarkers({resource:se});b==null||b(_e)}});return()=>{J==null||J.dispose()}}return()=>{}},[A,b]);function X(){var J,ee;(J=q.current)==null||J.dispose(),d?f&&jw.set(i,R.current.saveViewState()):(ee=R.current.getModel())==null||ee.dispose(),R.current.dispose()}return re.createElement(fhe,{width:h,height:g,isEditorReady:A,loading:u,_ref:D,className:v,wrapperProps:y})}var Cst=Nst,Rst=k.memo(Cst),phe=Rst;const an="default",kh="All variants";Ti.llm,Ti.llm,Ti.llm,Ti.llm,Ti.llm;class ghe{constructor({activeNodeName:t}){this.isRightPanelOpen$=new at(!0),this.errorMessages$=new at([]),this.topbarErrorMessage$=new at(""),this.activeNodeName$=new at(t),this.flowFilePath$=new at(""),this.flowFileRelativePath$=new at(""),this.flowFileNextPath$=new at(""),this.flowFileNextRelativePath$=new at(""),this.isSwitchingFlowPathLocked$=new at(!1),this.flowChatConfig$=new at({chatInputName:"",chatOutputName:"",chatHistoryName:""}),this.flowInputsMap$=new ii,this.flowOutputsMap$=new ii,this.flowOutputPathMap$=new ii,this.flowLastRunId$=new ii,this.flowTestRunStatus$=new ii,this.flowHistoryMap$=new ii,this.sessionIds=new Map,this.chatMessageVariantFilter$=new at([kh]),this.flowSnapshot$=new at(void 0),this.chatUITheme$=new at(So?"dark":"light"),this.chatConsole$=new ii,this.defaultFlowRunMetrics$=new ii,this.rightPanelState$=new at({selectedTab:"Settings",width:560}),this.settingsSubmitting$=new at({}),this.errorMessages$=new at([]),this.topbarErrorMessage$=new at(""),this.chatSourceType$=new at(hn.Dag),this.inferSignature$=new at(void 0),this.activeNodeName$.subscribe(()=>{this.chatMessageVariantFilter$.next([kh])})}}const vhe=re.createContext({viewModel:new ghe({activeNodeName:an,flowFilePath:""})}),Ost=({children:e})=>{const[t]=re.useState(()=>({viewModel:new ghe({activeNodeName:an,flowFilePath:""})})),r=Fi(t.viewModel.chatUITheme$);return C.jsx(vhe.Provider,{value:t,children:e({theme:r})})},wj=Symbol.for("yaml.alias"),SM=Symbol.for("yaml.document"),r1=Symbol.for("yaml.map"),mhe=Symbol.for("yaml.pair"),Df=Symbol.for("yaml.scalar"),Nv=Symbol.for("yaml.seq"),bu=Symbol.for("yaml.node.type"),vp=e=>!!e&&typeof e=="object"&&e[bu]===wj,Cv=e=>!!e&&typeof e=="object"&&e[bu]===SM,Rv=e=>!!e&&typeof e=="object"&&e[bu]===r1,Mn=e=>!!e&&typeof e=="object"&&e[bu]===mhe,vn=e=>!!e&&typeof e=="object"&&e[bu]===Df,Ov=e=>!!e&&typeof e=="object"&&e[bu]===Nv;function qn(e){if(e&&typeof e=="object")switch(e[bu]){case r1:case Nv:return!0}return!1}function fo(e){if(e&&typeof e=="object")switch(e[bu]){case wj:case r1:case Df:case Nv:return!0}return!1}const Dst=e=>(vn(e)||qn(e))&&!!e.anchor,As=Symbol("break visit"),yhe=Symbol("skip children"),tc=Symbol("remove node");function m1(e,t){const r=bhe(t);Cv(e)?z0(null,e.contents,r,Object.freeze([e]))===tc&&(e.contents=null):z0(null,e,r,Object.freeze([]))}m1.BREAK=As;m1.SKIP=yhe;m1.REMOVE=tc;function z0(e,t,r,n){const o=_he(e,t,r,n);if(fo(o)||Mn(o))return Ehe(e,n,o),z0(e,o,r,n);if(typeof o!="symbol"){if(qn(t)){n=Object.freeze(n.concat(t));for(let i=0;ie.replace(/[!,[\]{}]/g,t=>Fst[t]);class Gi{constructor(t,r){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},Gi.defaultYaml,t),this.tags=Object.assign({},Gi.defaultTags,r)}clone(){const t=new Gi(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new Gi(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:Gi.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},Gi.defaultTags);break}return t}add(t,r){this.atNextDocument&&(this.yaml={explicit:Gi.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},Gi.defaultTags),this.atNextDocument=!1);const n=t.trim().split(/[ \t]+/),o=n.shift();switch(o){case"%TAG":{if(n.length!==2&&(r(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;const[i,s]=n;return this.tags[i]=s,!0}case"%YAML":{if(this.yaml.explicit=!0,n.length!==1)return r(0,"%YAML directive should contain exactly one part"),!1;const[i]=n;if(i==="1.1"||i==="1.2")return this.yaml.version=i,!0;{const s=/^\d+\.\d+$/.test(i);return r(6,`Unsupported YAML version ${i}`,s),!1}}default:return r(0,`Unknown directive ${o}`,!0),!1}}tagName(t,r){if(t==="!")return"!";if(t[0]!=="!")return r(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const s=t.slice(2,-1);return s==="!"||s==="!!"?(r(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&r("Verbatim tags must end with a >"),s)}const[,n,o]=t.match(/^(.*!)([^!]*)$/s);o||r(`The ${t} tag has no suffix`);const i=this.tags[n];if(i)try{return i+decodeURIComponent(o)}catch(s){return r(String(s)),null}return n==="!"?t:(r(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[r,n]of Object.entries(this.tags))if(t.startsWith(n))return r+Bst(t.substring(n.length));return t[0]==="!"?t:`!<${t}>`}toString(t){const r=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags);let o;if(t&&n.length>0&&fo(t.contents)){const i={};m1(t.contents,(s,a)=>{fo(a)&&a.tag&&(i[a.tag]=!0)}),o=Object.keys(i)}else o=[];for(const[i,s]of n)i==="!!"&&s==="tag:yaml.org,2002:"||(!t||o.some(a=>a.startsWith(s)))&&r.push(`%TAG ${i} ${s}`);return r.join(` -`)}}Gi.defaultYaml={explicit:!1,version:"1.2"};Gi.defaultTags={"!!":"tag:yaml.org,2002:"};function She(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const r=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(r)}return!0}function whe(e){const t=new Set;return m1(e,{Value(r,n){n.anchor&&t.add(n.anchor)}}),t}function khe(e,t){for(let r=1;;++r){const n=`${e}${r}`;if(!t.has(n))return n}}function Mst(e,t){const r=[],n=new Map;let o=null;return{onAnchor:i=>{r.push(i),o||(o=whe(e));const s=khe(t,o);return o.add(s),s},setAnchors:()=>{for(const i of r){const s=n.get(i);if(typeof s=="object"&&s.anchor&&(vn(s.node)||qn(s.node)))s.node.anchor=s.anchor;else{const a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=i,a}}},sourceObjects:n}}function $0(e,t,r,n){if(n&&typeof n=="object")if(Array.isArray(n))for(let o=0,i=n.length;odu(n,String(o),r));if(e&&typeof e.toJSON=="function"){if(!r||!Dst(e))return e.toJSON(t,r);const n={aliasCount:0,count:1,res:void 0};r.anchors.set(e,n),r.onCreate=i=>{n.res=i,delete r.onCreate};const o=e.toJSON(t,r);return r.onCreate&&r.onCreate(o),o}return typeof e=="bigint"&&!(r!=null&&r.keep)?Number(e):e}class kj{constructor(t){Object.defineProperty(this,bu,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:r,maxAliasCount:n,onAnchor:o,reviver:i}={}){if(!Cv(t))throw new TypeError("A document argument is required");const s={anchors:new Map,doc:t,keep:!0,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},a=du(this,"",s);if(typeof o=="function")for(const{count:u,res:l}of s.anchors.values())o(l,u);return typeof i=="function"?$0(i,{"":a},"",a):a}}class q9 extends kj{constructor(t){super(wj),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let r;return m1(t,{Node:(n,o)=>{if(o===this)return m1.BREAK;o.anchor===this.source&&(r=o)}}),r}toJSON(t,r){if(!r)return{source:this.source};const{anchors:n,doc:o,maxAliasCount:i}=r,s=this.resolve(o);if(!s){const u=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(u)}let a=n.get(s);if(a||(du(s,null,r),a=n.get(s)),!a||a.res===void 0){const u="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(u)}if(i>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=Mk(o,s,n)),a.count*a.aliasCount>i)){const u="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(u)}return a.res}toString(t,r,n){const o=`*${this.source}`;if(t){if(She(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const i=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(i)}if(t.implicitKey)return`${o} `}return o}}function Mk(e,t,r){if(vp(t)){const n=t.resolve(e),o=r&&n&&r.get(n);return o?o.count*o.aliasCount:0}else if(qn(t)){let n=0;for(const o of t.items){const i=Mk(e,o,r);i>n&&(n=i)}return n}else if(Mn(t)){const n=Mk(e,t.key,r),o=Mk(e,t.value,r);return Math.max(n,o)}return 1}const Ahe=e=>!e||typeof e!="function"&&typeof e!="object";class Qt extends kj{constructor(t){super(Df),this.value=t}toJSON(t,r){return r!=null&&r.keep?this.value:du(this.value,t,r)}toString(){return String(this.value)}}Qt.BLOCK_FOLDED="BLOCK_FOLDED";Qt.BLOCK_LITERAL="BLOCK_LITERAL";Qt.PLAIN="PLAIN";Qt.QUOTE_DOUBLE="QUOTE_DOUBLE";Qt.QUOTE_SINGLE="QUOTE_SINGLE";const Lst="tag:yaml.org,2002:";function jst(e,t,r){if(t){const n=r.filter(i=>i.tag===t),o=n.find(i=>!i.format)??n[0];if(!o)throw new Error(`Tag ${t} not found`);return o}return r.find(n=>{var o;return((o=n.identify)==null?void 0:o.call(n,e))&&!n.format})}function s_(e,t,r){var f,d,h;if(Cv(e)&&(e=e.contents),fo(e))return e;if(Mn(e)){const g=(d=(f=r.schema[r1]).createNode)==null?void 0:d.call(f,r.schema,null,r);return g.items.push(e),g}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:n,onAnchor:o,onTagObj:i,schema:s,sourceObjects:a}=r;let u;if(n&&e&&typeof e=="object"){if(u=a.get(e),u)return u.anchor||(u.anchor=o(e)),new q9(u.anchor);u={anchor:null,node:null},a.set(e,u)}t!=null&&t.startsWith("!!")&&(t=Lst+t.slice(2));let l=jst(e,t,s.tags);if(!l){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const g=new Qt(e);return u&&(u.node=g),g}l=e instanceof Map?s[r1]:Symbol.iterator in Object(e)?s[Nv]:s[r1]}i&&(i(l),delete r.onTagObj);const c=l!=null&&l.createNode?l.createNode(r.schema,e,r):typeof((h=l==null?void 0:l.nodeClass)==null?void 0:h.from)=="function"?l.nodeClass.from(r.schema,e,r):new Qt(e);return t?c.tag=t:l.default||(c.tag=l.tag),u&&(u.node=c),c}function lT(e,t,r){let n=r;for(let o=t.length-1;o>=0;--o){const i=t[o];if(typeof i=="number"&&Number.isInteger(i)&&i>=0){const s=[];s[i]=n,n=s}else n=new Map([[i,n]])}return s_(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const _y=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class W9 extends kj{constructor(t,r){super(t),Object.defineProperty(this,"schema",{value:r,configurable:!0,enumerable:!1,writable:!0})}clone(t){const r=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(r.schema=t),r.items=r.items.map(n=>fo(n)||Mn(n)?n.clone(t):n),this.range&&(r.range=this.range.slice()),r}addIn(t,r){if(_y(t))this.add(r);else{const[n,...o]=t,i=this.get(n,!0);if(qn(i))i.addIn(o,r);else if(i===void 0&&this.schema)this.set(n,lT(this.schema,o,r));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${o}`)}}deleteIn(t){const[r,...n]=t;if(n.length===0)return this.delete(r);const o=this.get(r,!0);if(qn(o))return o.deleteIn(n);throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}getIn(t,r){const[n,...o]=t,i=this.get(n,!0);return o.length===0?!r&&vn(i)?i.value:i:qn(i)?i.getIn(o,r):void 0}hasAllNullValues(t){return this.items.every(r=>{if(!Mn(r))return!1;const n=r.value;return n==null||t&&vn(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(t){const[r,...n]=t;if(n.length===0)return this.has(r);const o=this.get(r,!0);return qn(o)?o.hasIn(n):!1}setIn(t,r){const[n,...o]=t;if(o.length===0)this.set(n,r);else{const i=this.get(n,!0);if(qn(i))i.setIn(o,r);else if(i===void 0&&this.schema)this.set(n,lT(this.schema,o,r));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${o}`)}}}W9.maxFlowStringSingleLineLength=60;const zst=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function lf(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const Ld=(e,t,r)=>e.endsWith(` -`)?lf(r,t):r.includes(` + `},see=ist(lst)(hhe),cst={config:ast},fst=function(){for(var t=arguments.length,r=new Array(t),n=0;n{n.current=!1}:e,t)}var ra=Nst;function tb(){}function z0(e,t,r,n){return Rst(e,n)||Ost(e,t,r,n)}function Rst(e,t){return e.editor.getModel(_he(e,t))}function Ost(e,t,r,n){return e.editor.createModel(t,r,n?_he(e,n):void 0)}function _he(e,t){return e.Uri.parse(t)}function Dst({original:e,modified:t,language:r,originalLanguage:n,modifiedLanguage:o,originalModelPath:i,modifiedModelPath:s,keepCurrentOriginalModel:a=!1,keepCurrentModifiedModel:u=!1,theme:l="light",loading:c="Loading...",options:f={},height:d="100%",width:h="100%",className:g,wrapperProps:v={},beforeMount:y=tb,onMount:E=tb}){let[_,S]=k.useState(!1),[b,A]=k.useState(!0),T=k.useRef(null),x=k.useRef(null),C=k.useRef(null),I=k.useRef(E),R=k.useRef(y),D=k.useRef(!1);bhe(()=>{let z=mhe.init();return z.then(F=>(x.current=F)&&A(!1)).catch(F=>(F==null?void 0:F.type)!=="cancelation"&&console.error("Monaco initialization: error:",F)),()=>T.current?q():z.cancel()}),ra(()=>{if(T.current&&x.current){let z=T.current.getOriginalEditor(),F=z0(x.current,e||"",n||r||"text",i||"");F!==z.getModel()&&z.setModel(F)}},[i],_),ra(()=>{if(T.current&&x.current){let z=T.current.getModifiedEditor(),F=z0(x.current,t||"",o||r||"text",s||"");F!==z.getModel()&&z.setModel(F)}},[s],_),ra(()=>{let z=T.current.getModifiedEditor();z.getOption(x.current.editor.EditorOption.readOnly)?z.setValue(t||""):t!==z.getValue()&&(z.executeEdits("",[{range:z.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),z.pushUndoStop())},[t],_),ra(()=>{var z,F;(F=(z=T.current)==null?void 0:z.getModel())==null||F.original.setValue(e||"")},[e],_),ra(()=>{let{original:z,modified:F}=T.current.getModel();x.current.editor.setModelLanguage(z,n||r||"text"),x.current.editor.setModelLanguage(F,o||r||"text")},[r,n,o],_),ra(()=>{var z;(z=x.current)==null||z.editor.setTheme(l)},[l],_),ra(()=>{var z;(z=T.current)==null||z.updateOptions(f)},[f],_);let L=k.useCallback(()=>{var $;if(!x.current)return;R.current(x.current);let z=z0(x.current,e||"",n||r||"text",i||""),F=z0(x.current,t||"",o||r||"text",s||"");($=T.current)==null||$.setModel({original:z,modified:F})},[r,t,o,e,n,i,s]),M=k.useCallback(()=>{var z;!D.current&&C.current&&(T.current=x.current.editor.createDiffEditor(C.current,{automaticLayout:!0,...f}),L(),(z=x.current)==null||z.editor.setTheme(l),S(!0),D.current=!0)},[f,l,L]);k.useEffect(()=>{_&&I.current(T.current,x.current)},[_]),k.useEffect(()=>{!b&&!_&&M()},[b,_,M]);function q(){var F,$,K,U;let z=(F=T.current)==null?void 0:F.getModel();a||(($=z==null?void 0:z.original)==null||$.dispose()),u||((K=z==null?void 0:z.modified)==null||K.dispose()),(U=T.current)==null||U.dispose()}return re.createElement(yhe,{width:h,height:d,isEditorReady:_,loading:c,_ref:C,className:g,wrapperProps:v})}var Fst=Dst;k.memo(Fst);function Bst(e){let t=k.useRef();return k.useEffect(()=>{t.current=e},[e]),t.current}var Mst=Bst,$w=new Map;function Lst({defaultValue:e,defaultLanguage:t,defaultPath:r,value:n,language:o,path:i,theme:s="light",line:a,loading:u="Loading...",options:l={},overrideServices:c={},saveViewState:f=!0,keepCurrentModel:d=!1,width:h="100%",height:g="100%",className:v,wrapperProps:y={},beforeMount:E=tb,onMount:_=tb,onChange:S,onValidate:b=tb}){let[A,T]=k.useState(!1),[x,C]=k.useState(!0),I=k.useRef(null),R=k.useRef(null),D=k.useRef(null),L=k.useRef(_),M=k.useRef(E),q=k.useRef(),z=k.useRef(n),F=Mst(i),$=k.useRef(!1),K=k.useRef(!1);bhe(()=>{let J=mhe.init();return J.then(ee=>(I.current=ee)&&C(!1)).catch(ee=>(ee==null?void 0:ee.type)!=="cancelation"&&console.error("Monaco initialization: error:",ee)),()=>R.current?X():J.cancel()}),ra(()=>{var ee,fe,ge,Se;let J=z0(I.current,e||n||"",t||o||"",i||r||"");J!==((ee=R.current)==null?void 0:ee.getModel())&&(f&&$w.set(F,(fe=R.current)==null?void 0:fe.saveViewState()),(ge=R.current)==null||ge.setModel(J),f&&((Se=R.current)==null||Se.restoreViewState($w.get(i))))},[i],A),ra(()=>{var J;(J=R.current)==null||J.updateOptions(l)},[l],A),ra(()=>{!R.current||n===void 0||(R.current.getOption(I.current.editor.EditorOption.readOnly)?R.current.setValue(n):n!==R.current.getValue()&&(K.current=!0,R.current.executeEdits("",[{range:R.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),R.current.pushUndoStop(),K.current=!1))},[n],A),ra(()=>{var ee,fe;let J=(ee=R.current)==null?void 0:ee.getModel();J&&o&&((fe=I.current)==null||fe.editor.setModelLanguage(J,o))},[o],A),ra(()=>{var J;a!==void 0&&((J=R.current)==null||J.revealLine(a))},[a],A),ra(()=>{var J;(J=I.current)==null||J.editor.setTheme(s)},[s],A);let U=k.useCallback(()=>{var J;if(!(!D.current||!I.current)&&!$.current){M.current(I.current);let ee=i||r,fe=z0(I.current,n||e||"",t||o||"",ee||"");R.current=(J=I.current)==null?void 0:J.editor.create(D.current,{model:fe,automaticLayout:!0,...l},c),f&&R.current.restoreViewState($w.get(ee)),I.current.editor.setTheme(s),a!==void 0&&R.current.revealLine(a),T(!0),$.current=!0}},[e,t,r,n,o,i,l,c,f,s,a]);k.useEffect(()=>{A&&L.current(R.current,I.current)},[A]),k.useEffect(()=>{!x&&!A&&U()},[x,A,U]),z.current=n,k.useEffect(()=>{var J,ee;A&&S&&((J=q.current)==null||J.dispose(),q.current=(ee=R.current)==null?void 0:ee.onDidChangeModelContent(fe=>{K.current||S(R.current.getValue(),fe)}))},[A,S]),k.useEffect(()=>{if(A){let J=I.current.editor.onDidChangeMarkers(ee=>{var ge;let fe=(ge=R.current.getModel())==null?void 0:ge.uri;if(fe&&ee.find(Se=>Se.path===fe.path)){let Se=I.current.editor.getModelMarkers({resource:fe});b==null||b(Se)}});return()=>{J==null||J.dispose()}}return()=>{}},[A,b]);function X(){var J,ee;(J=q.current)==null||J.dispose(),d?f&&$w.set(i,R.current.saveViewState()):(ee=R.current.getModel())==null||ee.dispose(),R.current.dispose()}return re.createElement(yhe,{width:h,height:g,isEditorReady:A,loading:u,_ref:D,className:v,wrapperProps:y})}var jst=Lst,zst=k.memo(jst),Ehe=zst;hi({root:{},header:{display:"flex",alignItems:"center",cursor:"pointer","&:hover":{backgroundColor:"var(--vscode-editor-inactiveSelectionBackground)"}},toggleButton:{marginRight:"0.5em",userSelect:"none"},body:{overflowY:"hidden",height:"fit-content"}});const to="default",wh="All variants";Ti.llm,Ti.llm,Ti.llm,Ti.llm,Ti.llm;class She{constructor({activeNodeName:t}){this.isRightPanelOpen$=new ut(!0),this.errorMessages$=new ut([]),this.topbarErrorMessage$=new ut(""),this.activeNodeName$=new ut(t),this.flowFilePath$=new ut(""),this.flowFileRelativePath$=new ut(""),this.flowFileNextPath$=new ut(""),this.flowFileNextRelativePath$=new ut(""),this.chatSourceFileName$=new ut(""),this.isSwitchingFlowPathLocked$=new ut(!1),this.flowChatConfig$=new ut({chatInputName:"",chatOutputName:"",chatHistoryName:""}),this.flowInputsMap$=new ii,this.flowOutputsMap$=new ii,this.flowOutputPathMap$=new ii,this.flowLastRunId$=new ii,this.flowTestRunStatus$=new ii,this.flowHistoryMap$=new ii,this.sessionIds=new Map,this.chatMessageVariantFilter$=new ut([wh]),this.flowSnapshot$=new ut(void 0),this.chatUITheme$=new ut(eo?"dark":"light"),this.chatConsole$=new ii,this.defaultFlowRunMetrics$=new ii,this.rightPanelState$=new ut({selectedTab:"Settings",width:560}),this.settingsSubmitting$=new ut({}),this.errorMessages$=new ut([]),this.topbarErrorMessage$=new ut(""),this.chatSourceType$=new ut(Gt.Dag),this.inferSignature$=new ut(void 0),this.activeNodeName$.subscribe(()=>{this.chatMessageVariantFilter$.next([wh])})}}const whe=re.createContext({viewModel:new She({activeNodeName:to,flowFilePath:""})}),Hst=({children:e})=>{const[t]=re.useState(()=>({viewModel:new She({activeNodeName:to,flowFilePath:""})})),r=Bi(t.viewModel.chatUITheme$);return N.jsx(whe.Provider,{value:t,children:e({theme:r})})},Ij=Symbol.for("yaml.alias"),xM=Symbol.for("yaml.document"),r1=Symbol.for("yaml.map"),Ahe=Symbol.for("yaml.pair"),Ff=Symbol.for("yaml.scalar"),Ov=Symbol.for("yaml.seq"),bu=Symbol.for("yaml.node.type"),gp=e=>!!e&&typeof e=="object"&&e[bu]===Ij,Dv=e=>!!e&&typeof e=="object"&&e[bu]===xM,Fv=e=>!!e&&typeof e=="object"&&e[bu]===r1,Bn=e=>!!e&&typeof e=="object"&&e[bu]===Ahe,gn=e=>!!e&&typeof e=="object"&&e[bu]===Ff,Bv=e=>!!e&&typeof e=="object"&&e[bu]===Ov;function Pn(e){if(e&&typeof e=="object")switch(e[bu]){case r1:case Ov:return!0}return!1}function ho(e){if(e&&typeof e=="object")switch(e[bu]){case Ij:case r1:case Ff:case Ov:return!0}return!1}const $st=e=>(gn(e)||Pn(e))&&!!e.anchor,ks=Symbol("break visit"),khe=Symbol("skip children"),oc=Symbol("remove node");function v1(e,t){const r=xhe(t);Dv(e)?H0(null,e.contents,r,Object.freeze([e]))===oc&&(e.contents=null):H0(null,e,r,Object.freeze([]))}v1.BREAK=ks;v1.SKIP=khe;v1.REMOVE=oc;function H0(e,t,r,n){const o=The(e,t,r,n);if(ho(o)||Bn(o))return Ihe(e,n,o),H0(e,o,r,n);if(typeof o!="symbol"){if(Pn(t)){n=Object.freeze(n.concat(t));for(let i=0;ie.replace(/[!,[\]{}]/g,t=>Pst[t]);class Gi{constructor(t,r){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},Gi.defaultYaml,t),this.tags=Object.assign({},Gi.defaultTags,r)}clone(){const t=new Gi(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new Gi(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:Gi.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},Gi.defaultTags);break}return t}add(t,r){this.atNextDocument&&(this.yaml={explicit:Gi.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},Gi.defaultTags),this.atNextDocument=!1);const n=t.trim().split(/[ \t]+/),o=n.shift();switch(o){case"%TAG":{if(n.length!==2&&(r(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;const[i,s]=n;return this.tags[i]=s,!0}case"%YAML":{if(this.yaml.explicit=!0,n.length!==1)return r(0,"%YAML directive should contain exactly one part"),!1;const[i]=n;if(i==="1.1"||i==="1.2")return this.yaml.version=i,!0;{const s=/^\d+\.\d+$/.test(i);return r(6,`Unsupported YAML version ${i}`,s),!1}}default:return r(0,`Unknown directive ${o}`,!0),!1}}tagName(t,r){if(t==="!")return"!";if(t[0]!=="!")return r(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const s=t.slice(2,-1);return s==="!"||s==="!!"?(r(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&r("Verbatim tags must end with a >"),s)}const[,n,o]=t.match(/^(.*!)([^!]*)$/s);o||r(`The ${t} tag has no suffix`);const i=this.tags[n];if(i)try{return i+decodeURIComponent(o)}catch(s){return r(String(s)),null}return n==="!"?t:(r(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[r,n]of Object.entries(this.tags))if(t.startsWith(n))return r+qst(t.substring(n.length));return t[0]==="!"?t:`!<${t}>`}toString(t){const r=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags);let o;if(t&&n.length>0&&ho(t.contents)){const i={};v1(t.contents,(s,a)=>{ho(a)&&a.tag&&(i[a.tag]=!0)}),o=Object.keys(i)}else o=[];for(const[i,s]of n)i==="!!"&&s==="tag:yaml.org,2002:"||(!t||o.some(a=>a.startsWith(s)))&&r.push(`%TAG ${i} ${s}`);return r.join(` +`)}}Gi.defaultYaml={explicit:!1,version:"1.2"};Gi.defaultTags={"!!":"tag:yaml.org,2002:"};function Che(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const r=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(r)}return!0}function Nhe(e){const t=new Set;return v1(e,{Value(r,n){n.anchor&&t.add(n.anchor)}}),t}function Rhe(e,t){for(let r=1;;++r){const n=`${e}${r}`;if(!t.has(n))return n}}function Wst(e,t){const r=[],n=new Map;let o=null;return{onAnchor:i=>{r.push(i),o||(o=Nhe(e));const s=Rhe(t,o);return o.add(s),s},setAnchors:()=>{for(const i of r){const s=n.get(i);if(typeof s=="object"&&s.anchor&&(gn(s.node)||Pn(s.node)))s.node.anchor=s.anchor;else{const a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=i,a}}},sourceObjects:n}}function P0(e,t,r,n){if(n&&typeof n=="object")if(Array.isArray(n))for(let o=0,i=n.length;odu(n,String(o),r));if(e&&typeof e.toJSON=="function"){if(!r||!$st(e))return e.toJSON(t,r);const n={aliasCount:0,count:1,res:void 0};r.anchors.set(e,n),r.onCreate=i=>{n.res=i,delete r.onCreate};const o=e.toJSON(t,r);return r.onCreate&&r.onCreate(o),o}return typeof e=="bigint"&&!(r!=null&&r.keep)?Number(e):e}class Cj{constructor(t){Object.defineProperty(this,bu,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:r,maxAliasCount:n,onAnchor:o,reviver:i}={}){if(!Dv(t))throw new TypeError("A document argument is required");const s={anchors:new Map,doc:t,keep:!0,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},a=du(this,"",s);if(typeof o=="function")for(const{count:u,res:l}of s.anchors.values())o(l,u);return typeof i=="function"?P0(i,{"":a},"",a):a}}class V9 extends Cj{constructor(t){super(Ij),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let r;return v1(t,{Node:(n,o)=>{if(o===this)return v1.BREAK;o.anchor===this.source&&(r=o)}}),r}toJSON(t,r){if(!r)return{source:this.source};const{anchors:n,doc:o,maxAliasCount:i}=r,s=this.resolve(o);if(!s){const u=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(u)}let a=n.get(s);if(a||(du(s,null,r),a=n.get(s)),!a||a.res===void 0){const u="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(u)}if(i>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=HA(o,s,n)),a.count*a.aliasCount>i)){const u="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(u)}return a.res}toString(t,r,n){const o=`*${this.source}`;if(t){if(Che(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const i=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(i)}if(t.implicitKey)return`${o} `}return o}}function HA(e,t,r){if(gp(t)){const n=t.resolve(e),o=r&&n&&r.get(n);return o?o.count*o.aliasCount:0}else if(Pn(t)){let n=0;for(const o of t.items){const i=HA(e,o,r);i>n&&(n=i)}return n}else if(Bn(t)){const n=HA(e,t.key,r),o=HA(e,t.value,r);return Math.max(n,o)}return 1}const Ohe=e=>!e||typeof e!="function"&&typeof e!="object";class Zt extends Cj{constructor(t){super(Ff),this.value=t}toJSON(t,r){return r!=null&&r.keep?this.value:du(this.value,t,r)}toString(){return String(this.value)}}Zt.BLOCK_FOLDED="BLOCK_FOLDED";Zt.BLOCK_LITERAL="BLOCK_LITERAL";Zt.PLAIN="PLAIN";Zt.QUOTE_DOUBLE="QUOTE_DOUBLE";Zt.QUOTE_SINGLE="QUOTE_SINGLE";const Kst="tag:yaml.org,2002:";function Gst(e,t,r){if(t){const n=r.filter(i=>i.tag===t),o=n.find(i=>!i.format)??n[0];if(!o)throw new Error(`Tag ${t} not found`);return o}return r.find(n=>{var o;return((o=n.identify)==null?void 0:o.call(n,e))&&!n.format})}function l_(e,t,r){var f,d,h;if(Dv(e)&&(e=e.contents),ho(e))return e;if(Bn(e)){const g=(d=(f=r.schema[r1]).createNode)==null?void 0:d.call(f,r.schema,null,r);return g.items.push(e),g}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:n,onAnchor:o,onTagObj:i,schema:s,sourceObjects:a}=r;let u;if(n&&e&&typeof e=="object"){if(u=a.get(e),u)return u.anchor||(u.anchor=o(e)),new V9(u.anchor);u={anchor:null,node:null},a.set(e,u)}t!=null&&t.startsWith("!!")&&(t=Kst+t.slice(2));let l=Gst(e,t,s.tags);if(!l){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const g=new Zt(e);return u&&(u.node=g),g}l=e instanceof Map?s[r1]:Symbol.iterator in Object(e)?s[Ov]:s[r1]}i&&(i(l),delete r.onTagObj);const c=l!=null&&l.createNode?l.createNode(r.schema,e,r):typeof((h=l==null?void 0:l.nodeClass)==null?void 0:h.from)=="function"?l.nodeClass.from(r.schema,e,r):new Zt(e);return t?c.tag=t:l.default||(c.tag=l.tag),u&&(u.node=c),c}function px(e,t,r){let n=r;for(let o=t.length-1;o>=0;--o){const i=t[o];if(typeof i=="number"&&Number.isInteger(i)&&i>=0){const s=[];s[i]=n,n=s}else n=new Map([[i,n]])}return l_(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const Ey=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class U9 extends Cj{constructor(t,r){super(t),Object.defineProperty(this,"schema",{value:r,configurable:!0,enumerable:!1,writable:!0})}clone(t){const r=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(r.schema=t),r.items=r.items.map(n=>ho(n)||Bn(n)?n.clone(t):n),this.range&&(r.range=this.range.slice()),r}addIn(t,r){if(Ey(t))this.add(r);else{const[n,...o]=t,i=this.get(n,!0);if(Pn(i))i.addIn(o,r);else if(i===void 0&&this.schema)this.set(n,px(this.schema,o,r));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${o}`)}}deleteIn(t){const[r,...n]=t;if(n.length===0)return this.delete(r);const o=this.get(r,!0);if(Pn(o))return o.deleteIn(n);throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}getIn(t,r){const[n,...o]=t,i=this.get(n,!0);return o.length===0?!r&&gn(i)?i.value:i:Pn(i)?i.getIn(o,r):void 0}hasAllNullValues(t){return this.items.every(r=>{if(!Bn(r))return!1;const n=r.value;return n==null||t&&gn(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(t){const[r,...n]=t;if(n.length===0)return this.has(r);const o=this.get(r,!0);return Pn(o)?o.hasIn(n):!1}setIn(t,r){const[n,...o]=t;if(o.length===0)this.set(n,r);else{const i=this.get(n,!0);if(Pn(i))i.setIn(o,r);else if(i===void 0&&this.schema)this.set(n,px(this.schema,o,r));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${o}`)}}}U9.maxFlowStringSingleLineLength=60;const Vst=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function cf(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const Ld=(e,t,r)=>e.endsWith(` +`)?cf(r,t):r.includes(` `)?` -`+lf(r,t):(e.endsWith(" ")?"":" ")+r,The="flow",wM="block",Lk="quoted";function K9(e,t,r="flow",{indentAtStart:n,lineWidth:o=80,minContentWidth:i=20,onFold:s,onOverflow:a}={}){if(!o||o<0)return e;const u=Math.max(1+i,1+o-t.length);if(e.length<=u)return e;const l=[],c={};let f=o-t.length;typeof n=="number"&&(n>o-Math.max(2,i)?l.push(0):f=o-n);let d,h,g=!1,v=-1,y=-1,E=-1;r===wM&&(v=JJ(e,v),v!==-1&&(f=v+u));for(let S;S=e[v+=1];){if(r===Lk&&S==="\\"){switch(y=v,e[v+1]){case"x":v+=3;break;case"u":v+=5;break;case"U":v+=9;break;default:v+=1}E=v}if(S===` -`)r===wM&&(v=JJ(e,v)),f=v+u,d=void 0;else{if(S===" "&&h&&h!==" "&&h!==` +`+cf(r,t):(e.endsWith(" ")?"":" ")+r,Dhe="flow",TM="block",$A="quoted";function Y9(e,t,r="flow",{indentAtStart:n,lineWidth:o=80,minContentWidth:i=20,onFold:s,onOverflow:a}={}){if(!o||o<0)return e;const u=Math.max(1+i,1+o-t.length);if(e.length<=u)return e;const l=[],c={};let f=o-t.length;typeof n=="number"&&(n>o-Math.max(2,i)?l.push(0):f=o-n);let d,h,g=!1,v=-1,y=-1,E=-1;r===TM&&(v=aee(e,v),v!==-1&&(f=v+u));for(let S;S=e[v+=1];){if(r===$A&&S==="\\"){switch(y=v,e[v+1]){case"x":v+=3;break;case"u":v+=5;break;case"U":v+=9;break;default:v+=1}E=v}if(S===` +`)r===TM&&(v=aee(e,v)),f=v+u,d=void 0;else{if(S===" "&&h&&h!==" "&&h!==` `&&h!==" "){const b=e[v+1];b&&b!==" "&&b!==` -`&&b!==" "&&(d=v)}if(v>=f)if(d)l.push(d),f=d+u,d=void 0;else if(r===Lk){for(;h===" "||h===" ";)h=S,S=e[v+=1],g=!0;const b=v>E+1?v-2:y-1;if(c[b])return e;l.push(b),c[b]=!0,f=b+u,d=void 0}else g=!0}h=S}if(g&&a&&a(),l.length===0)return e;s&&s();let _=e.slice(0,l[0]);for(let S=0;S({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),V9=e=>/^(%|---|\.\.\.)/m.test(e);function Hst(e,t,r){if(!t||t<0)return!1;const n=t-r,o=e.length;if(o<=n)return!1;for(let i=0,s=0;in)return!0;if(s=i+1,o-s<=n)return!1}return!0}function eb(e,t){const r=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return r;const{implicitKey:n}=t,o=t.options.doubleQuotedMinMultiLineLength,i=t.indent||(V9(e)?" ":"");let s="",a=0;for(let u=0,l=r[u];l;l=r[++u])if(l===" "&&r[u+1]==="\\"&&r[u+2]==="n"&&(s+=r.slice(a,u)+"\\ ",u+=1,a=u,l="\\"),l==="\\")switch(r[u+1]){case"u":{s+=r.slice(a,u);const c=r.substr(u+2,4);switch(c){case"0000":s+="\\0";break;case"0007":s+="\\a";break;case"000b":s+="\\v";break;case"001b":s+="\\e";break;case"0085":s+="\\N";break;case"00a0":s+="\\_";break;case"2028":s+="\\L";break;case"2029":s+="\\P";break;default:c.substr(0,2)==="00"?s+="\\x"+c.substr(2):s+=r.substr(u,6)}u+=5,a=u+1}break;case"n":if(n||r[u+2]==='"'||r.length=f)if(d)l.push(d),f=d+u,d=void 0;else if(r===$A){for(;h===" "||h===" ";)h=S,S=e[v+=1],g=!0;const b=v>E+1?v-2:y-1;if(c[b])return e;l.push(b),c[b]=!0,f=b+u,d=void 0}else g=!0}h=S}if(g&&a&&a(),l.length===0)return e;s&&s();let _=e.slice(0,l[0]);for(let S=0;S({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),Q9=e=>/^(%|---|\.\.\.)/m.test(e);function Ust(e,t,r){if(!t||t<0)return!1;const n=t-r,o=e.length;if(o<=n)return!1;for(let i=0,s=0;in)return!0;if(s=i+1,o-s<=n)return!1}return!0}function rb(e,t){const r=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return r;const{implicitKey:n}=t,o=t.options.doubleQuotedMinMultiLineLength,i=t.indent||(Q9(e)?" ":"");let s="",a=0;for(let u=0,l=r[u];l;l=r[++u])if(l===" "&&r[u+1]==="\\"&&r[u+2]==="n"&&(s+=r.slice(a,u)+"\\ ",u+=1,a=u,l="\\"),l==="\\")switch(r[u+1]){case"u":{s+=r.slice(a,u);const c=r.substr(u+2,4);switch(c){case"0000":s+="\\0";break;case"0007":s+="\\a";break;case"000b":s+="\\v";break;case"001b":s+="\\e";break;case"0085":s+="\\N";break;case"00a0":s+="\\_";break;case"2028":s+="\\L";break;case"2029":s+="\\P";break;default:c.substr(0,2)==="00"?s+="\\x"+c.substr(2):s+=r.substr(u,6)}u+=5,a=u+1}break;case"n":if(n||r[u+2]==='"'||r.length -`;let f,d;for(d=r.length;d>0;--d){const x=r[d-1];if(x!==` -`&&x!==" "&&x!==" ")break}let h=r.substring(d);const g=h.indexOf(` +`;let f,d;for(d=r.length;d>0;--d){const T=r[d-1];if(T!==` +`&&T!==" "&&T!==" ")break}let h=r.substring(d);const g=h.indexOf(` `);g===-1?f="-":r===h||g!==h.length-1?(f="+",i&&i()):f="",h&&(r=r.slice(0,-h.length),h[h.length-1]===` -`&&(h=h.slice(0,-1)),h=h.replace(AM,`$&${l}`));let v=!1,y,E=-1;for(y=0;y")+(v?l?"2":"1":"")+f;if(e&&(b+=" "+a(e.replace(/ ?[\r\n]+/g," ")),o&&o()),c)return r=r.replace(/\n+/g,`$&${l}`),`${b} ${l}${_}${r}${h}`;r=r.replace(/\n+/g,` -$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${l}`);const A=K9(`${_}${r}${h}`,l,wM,G9(n,!0));return`${b} -${l}${A}`}function $st(e,t,r,n){const{type:o,value:i}=e,{actualString:s,implicitKey:a,indent:u,indentStep:l,inFlow:c}=t;if(a&&i.includes(` -`)||c&&/[[\]{},]/.test(i))return P0(i,t);if(!i||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i))return a||c||!i.includes(` -`)?P0(i,t):jk(e,t,r,n);if(!a&&!c&&o!==Qt.PLAIN&&i.includes(` -`))return jk(e,t,r,n);if(V9(i)){if(u==="")return t.forceBlockIndent=!0,jk(e,t,r,n);if(a&&u===l)return P0(i,t)}const f=i.replace(/\n+/g,`$& -${u}`);if(s){const d=v=>{var y;return v.default&&v.tag!=="tag:yaml.org,2002:str"&&((y=v.test)==null?void 0:y.test(f))},{compat:h,tags:g}=t.doc.schema;if(g.some(d)||h!=null&&h.some(d))return P0(i,t)}return a?f:K9(f,u,The,G9(t,!1))}function SE(e,t,r,n){const{implicitKey:o,inFlow:i}=t,s=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:a}=e;a!==Qt.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(s.value)&&(a=Qt.QUOTE_DOUBLE);const u=c=>{switch(c){case Qt.BLOCK_FOLDED:case Qt.BLOCK_LITERAL:return o||i?P0(s.value,t):jk(s,t,r,n);case Qt.QUOTE_DOUBLE:return eb(s.value,t);case Qt.QUOTE_SINGLE:return kM(s.value,t);case Qt.PLAIN:return $st(s,t,r,n);default:return null}};let l=u(a);if(l===null){const{defaultKeyType:c,defaultStringType:f}=t.options,d=o&&c||f;if(l=u(d),l===null)throw new Error(`Unsupported default string type ${d}`)}return l}function xhe(e,t){const r=Object.assign({blockQuote:!0,commentString:zst,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let n;switch(r.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:e,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:typeof r.indent=="number"?" ".repeat(r.indent):" ",inFlow:n,options:r}}function Pst(e,t){var o;if(t.tag){const i=e.filter(s=>s.tag===t.tag);if(i.length>0)return i.find(s=>s.format===t.format)??i[0]}let r,n;if(vn(t)){n=t.value;const i=e.filter(s=>{var a;return(a=s.identify)==null?void 0:a.call(s,n)});r=i.find(s=>s.format===t.format)??i.find(s=>!s.format)}else n=t,r=e.find(i=>i.nodeClass&&n instanceof i.nodeClass);if(!r){const i=((o=n==null?void 0:n.constructor)==null?void 0:o.name)??typeof n;throw new Error(`Tag not resolved for ${i} value`)}return r}function qst(e,t,{anchors:r,doc:n}){if(!n.directives)return"";const o=[],i=(vn(e)||qn(e))&&e.anchor;i&&She(i)&&(r.add(i),o.push(`&${i}`));const s=e.tag?e.tag:t.default?null:t.tag;return s&&o.push(n.directives.tagString(s)),o.join(" ")}function Xg(e,t,r,n){var u;if(Mn(e))return e.toString(t,r,n);if(vp(e)){if(t.doc.directives)return e.toString(t);if((u=t.resolvedAliases)!=null&&u.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let o;const i=fo(e)?e:t.doc.createNode(e,{onTagObj:l=>o=l});o||(o=Pst(t.doc.schema.tags,i));const s=qst(i,o,t);s.length>0&&(t.indentAtStart=(t.indentAtStart??0)+s.length+1);const a=typeof o.stringify=="function"?o.stringify(i,t,r,n):vn(i)?SE(i,t,r,n):i.toString(t,r,n);return s?vn(i)||a[0]==="{"||a[0]==="["?`${s} ${a}`:`${s} -${t.indent}${a}`:a}function Wst({key:e,value:t},r,n,o){const{allNullValues:i,doc:s,indent:a,indentStep:u,options:{commentString:l,indentSeq:c,simpleKeys:f}}=r;let d=fo(e)&&e.comment||null;if(f){if(d)throw new Error("With simple keys, key nodes cannot have comments");if(qn(e)){const T="With simple keys, collection cannot be used as a key value";throw new Error(T)}}let h=!f&&(!e||d&&t==null&&!r.inFlow||qn(e)||(vn(e)?e.type===Qt.BLOCK_FOLDED||e.type===Qt.BLOCK_LITERAL:typeof e=="object"));r=Object.assign({},r,{allNullValues:!1,implicitKey:!h&&(f||!i),indent:a+u});let g=!1,v=!1,y=Xg(e,r,()=>g=!0,()=>v=!0);if(!h&&!r.inFlow&&y.length>1024){if(f)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");h=!0}if(r.inFlow){if(i||t==null)return g&&n&&n(),y===""?"?":h?`? ${y}`:y}else if(i&&!f||t==null&&h)return y=`? ${y}`,d&&!g?y+=Ld(y,r.indent,l(d)):v&&o&&o(),y;g&&(d=null),h?(d&&(y+=Ld(y,r.indent,l(d))),y=`? ${y} -${a}:`):(y=`${y}:`,d&&(y+=Ld(y,r.indent,l(d))));let E,_,S;fo(t)?(E=!!t.spaceBefore,_=t.commentBefore,S=t.comment):(E=!1,_=null,S=null,t&&typeof t=="object"&&(t=s.createNode(t))),r.implicitKey=!1,!h&&!d&&vn(t)&&(r.indentAtStart=y.length+1),v=!1,!c&&u.length>=2&&!r.inFlow&&!h&&Ov(t)&&!t.flow&&!t.tag&&!t.anchor&&(r.indent=r.indent.substring(2));let b=!1;const A=Xg(t,r,()=>b=!0,()=>v=!0);let x=" ";if(d||E||_){if(x=E?` -`:"",_){const T=l(_);x+=` -${lf(T,r.indent)}`}A===""&&!r.inFlow?x===` -`&&(x=` +$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${l}`);const A=Y9(`${_}${r}${h}`,l,TM,X9(n,!0));return`${b} +${l}${A}`}function Yst(e,t,r,n){const{type:o,value:i}=e,{actualString:s,implicitKey:a,indent:u,indentStep:l,inFlow:c}=t;if(a&&i.includes(` +`)||c&&/[[\]{},]/.test(i))return q0(i,t);if(!i||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i))return a||c||!i.includes(` +`)?q0(i,t):PA(e,t,r,n);if(!a&&!c&&o!==Zt.PLAIN&&i.includes(` +`))return PA(e,t,r,n);if(Q9(i)){if(u==="")return t.forceBlockIndent=!0,PA(e,t,r,n);if(a&&u===l)return q0(i,t)}const f=i.replace(/\n+/g,`$& +${u}`);if(s){const d=v=>{var y;return v.default&&v.tag!=="tag:yaml.org,2002:str"&&((y=v.test)==null?void 0:y.test(f))},{compat:h,tags:g}=t.doc.schema;if(g.some(d)||h!=null&&h.some(d))return q0(i,t)}return a?f:Y9(f,u,Dhe,X9(t,!1))}function kE(e,t,r,n){const{implicitKey:o,inFlow:i}=t,s=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:a}=e;a!==Zt.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(s.value)&&(a=Zt.QUOTE_DOUBLE);const u=c=>{switch(c){case Zt.BLOCK_FOLDED:case Zt.BLOCK_LITERAL:return o||i?q0(s.value,t):PA(s,t,r,n);case Zt.QUOTE_DOUBLE:return rb(s.value,t);case Zt.QUOTE_SINGLE:return IM(s.value,t);case Zt.PLAIN:return Yst(s,t,r,n);default:return null}};let l=u(a);if(l===null){const{defaultKeyType:c,defaultStringType:f}=t.options,d=o&&c||f;if(l=u(d),l===null)throw new Error(`Unsupported default string type ${d}`)}return l}function Fhe(e,t){const r=Object.assign({blockQuote:!0,commentString:Vst,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let n;switch(r.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:e,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:typeof r.indent=="number"?" ".repeat(r.indent):" ",inFlow:n,options:r}}function Xst(e,t){var o;if(t.tag){const i=e.filter(s=>s.tag===t.tag);if(i.length>0)return i.find(s=>s.format===t.format)??i[0]}let r,n;if(gn(t)){n=t.value;const i=e.filter(s=>{var a;return(a=s.identify)==null?void 0:a.call(s,n)});r=i.find(s=>s.format===t.format)??i.find(s=>!s.format)}else n=t,r=e.find(i=>i.nodeClass&&n instanceof i.nodeClass);if(!r){const i=((o=n==null?void 0:n.constructor)==null?void 0:o.name)??typeof n;throw new Error(`Tag not resolved for ${i} value`)}return r}function Qst(e,t,{anchors:r,doc:n}){if(!n.directives)return"";const o=[],i=(gn(e)||Pn(e))&&e.anchor;i&&Che(i)&&(r.add(i),o.push(`&${i}`));const s=e.tag?e.tag:t.default?null:t.tag;return s&&o.push(n.directives.tagString(s)),o.join(" ")}function Zg(e,t,r,n){var u;if(Bn(e))return e.toString(t,r,n);if(gp(e)){if(t.doc.directives)return e.toString(t);if((u=t.resolvedAliases)!=null&&u.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let o;const i=ho(e)?e:t.doc.createNode(e,{onTagObj:l=>o=l});o||(o=Xst(t.doc.schema.tags,i));const s=Qst(i,o,t);s.length>0&&(t.indentAtStart=(t.indentAtStart??0)+s.length+1);const a=typeof o.stringify=="function"?o.stringify(i,t,r,n):gn(i)?kE(i,t,r,n):i.toString(t,r,n);return s?gn(i)||a[0]==="{"||a[0]==="["?`${s} ${a}`:`${s} +${t.indent}${a}`:a}function Zst({key:e,value:t},r,n,o){const{allNullValues:i,doc:s,indent:a,indentStep:u,options:{commentString:l,indentSeq:c,simpleKeys:f}}=r;let d=ho(e)&&e.comment||null;if(f){if(d)throw new Error("With simple keys, key nodes cannot have comments");if(Pn(e)){const x="With simple keys, collection cannot be used as a key value";throw new Error(x)}}let h=!f&&(!e||d&&t==null&&!r.inFlow||Pn(e)||(gn(e)?e.type===Zt.BLOCK_FOLDED||e.type===Zt.BLOCK_LITERAL:typeof e=="object"));r=Object.assign({},r,{allNullValues:!1,implicitKey:!h&&(f||!i),indent:a+u});let g=!1,v=!1,y=Zg(e,r,()=>g=!0,()=>v=!0);if(!h&&!r.inFlow&&y.length>1024){if(f)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");h=!0}if(r.inFlow){if(i||t==null)return g&&n&&n(),y===""?"?":h?`? ${y}`:y}else if(i&&!f||t==null&&h)return y=`? ${y}`,d&&!g?y+=Ld(y,r.indent,l(d)):v&&o&&o(),y;g&&(d=null),h?(d&&(y+=Ld(y,r.indent,l(d))),y=`? ${y} +${a}:`):(y=`${y}:`,d&&(y+=Ld(y,r.indent,l(d))));let E,_,S;ho(t)?(E=!!t.spaceBefore,_=t.commentBefore,S=t.comment):(E=!1,_=null,S=null,t&&typeof t=="object"&&(t=s.createNode(t))),r.implicitKey=!1,!h&&!d&&gn(t)&&(r.indentAtStart=y.length+1),v=!1,!c&&u.length>=2&&!r.inFlow&&!h&&Bv(t)&&!t.flow&&!t.tag&&!t.anchor&&(r.indent=r.indent.substring(2));let b=!1;const A=Zg(t,r,()=>b=!0,()=>v=!0);let T=" ";if(d||E||_){if(T=E?` +`:"",_){const x=l(_);T+=` +${cf(x,r.indent)}`}A===""&&!r.inFlow?T===` +`&&(T=` -`):x+=` -${r.indent}`}else if(!h&&qn(t)){const T=A[0],N=A.indexOf(` -`),I=N!==-1,R=r.inFlow??t.flow??t.items.length===0;if(I||!R){let D=!1;if(I&&(T==="&"||T==="!")){let L=A.indexOf(" ");T==="&"&&L!==-1&&Le===eee||vn(e)&&e.value===eee&&(!e.type||e.type===Qt.PLAIN);function l3(e,t,r){const n=e&&vp(r)?r.resolve(e.doc):r;if(!Rv(n))throw new Error("Merge sources must be maps or map aliases");const o=n.toJSON(null,e,Map);for(const[i,s]of o)t instanceof Map?t.has(i)||t.set(i,s):t instanceof Set?t.add(i):Object.prototype.hasOwnProperty.call(t,i)||Object.defineProperty(t,i,{value:s,writable:!0,enumerable:!0,configurable:!0});return t}function Gst(e,t,r){if(t===null)return"";if(typeof t!="object")return String(t);if(fo(e)&&(r!=null&&r.doc)){const n=xhe(r.doc,{});n.anchors=new Set;for(const i of r.anchors.keys())n.anchors.add(i.anchor);n.inFlow=!0,n.inStringifyKey=!0;const o=e.toString(n);if(!r.mapKeyWarned){let i=JSON.stringify(o);i.length>40&&(i=i.substring(0,36)+'..."'),Ihe(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${i}. Set mapAsMap: true to use object keys.`),r.mapKeyWarned=!0}return o}return JSON.stringify(t)}function Aj(e,t,r){const n=s_(e,void 0,r),o=s_(t,void 0,r);return new Ni(n,o)}class Ni{constructor(t,r=null){Object.defineProperty(this,bu,{value:mhe}),this.key=t,this.value=r}clone(t){let{key:r,value:n}=this;return fo(r)&&(r=r.clone(t)),fo(n)&&(n=n.clone(t)),new Ni(r,n)}toJSON(t,r){const n=r!=null&&r.mapAsMap?new Map:{};return Nhe(r,n,this)}toString(t,r,n){return t!=null&&t.doc?Wst(this,t,r,n):JSON.stringify(this)}}function Che(e,t,r){return(t.inFlow??e.flow?Ust:Vst)(e,t,r)}function Vst({comment:e,items:t},r,{blockItemPrefix:n,flowChars:o,itemIndent:i,onChompKeep:s,onComment:a}){const{indent:u,options:{commentString:l}}=r,c=Object.assign({},r,{indent:i,type:null});let f=!1;const d=[];for(let g=0;gy=null,()=>f=!0);y&&(E+=Ld(E,i,l(y))),f&&y&&(f=!1),d.push(n+E)}let h;if(d.length===0)h=o.start+o.end;else{h=d[0];for(let g=1;ge===uee||gn(e)&&e.value===uee&&(!e.type||e.type===Zt.PLAIN);function h3(e,t,r){const n=e&&gp(r)?r.resolve(e.doc):r;if(!Fv(n))throw new Error("Merge sources must be maps or map aliases");const o=n.toJSON(null,e,Map);for(const[i,s]of o)t instanceof Map?t.has(i)||t.set(i,s):t instanceof Set?t.add(i):Object.prototype.hasOwnProperty.call(t,i)||Object.defineProperty(t,i,{value:s,writable:!0,enumerable:!0,configurable:!0});return t}function eat(e,t,r){if(t===null)return"";if(typeof t!="object")return String(t);if(ho(e)&&(r!=null&&r.doc)){const n=Fhe(r.doc,{});n.anchors=new Set;for(const i of r.anchors.keys())n.anchors.add(i.anchor);n.inFlow=!0,n.inStringifyKey=!0;const o=e.toString(n);if(!r.mapKeyWarned){let i=JSON.stringify(o);i.length>40&&(i=i.substring(0,36)+'..."'),Bhe(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${i}. Set mapAsMap: true to use object keys.`),r.mapKeyWarned=!0}return o}return JSON.stringify(t)}function Nj(e,t,r){const n=l_(e,void 0,r),o=l_(t,void 0,r);return new Ni(n,o)}class Ni{constructor(t,r=null){Object.defineProperty(this,bu,{value:Ahe}),this.key=t,this.value=r}clone(t){let{key:r,value:n}=this;return ho(r)&&(r=r.clone(t)),ho(n)&&(n=n.clone(t)),new Ni(r,n)}toJSON(t,r){const n=r!=null&&r.mapAsMap?new Map:{};return Mhe(r,n,this)}toString(t,r,n){return t!=null&&t.doc?Zst(this,t,r,n):JSON.stringify(this)}}function Lhe(e,t,r){return(t.inFlow??e.flow?rat:tat)(e,t,r)}function tat({comment:e,items:t},r,{blockItemPrefix:n,flowChars:o,itemIndent:i,onChompKeep:s,onComment:a}){const{indent:u,options:{commentString:l}}=r,c=Object.assign({},r,{indent:i,type:null});let f=!1;const d=[];for(let g=0;gy=null,()=>f=!0);y&&(E+=Ld(E,i,l(y))),f&&y&&(f=!1),d.push(n+E)}let h;if(d.length===0)h=o.start+o.end;else{h=d[0];for(let g=1;gS=null);Ed||b.includes(` -`))&&(f=!0),h.push(b),d=h.length}let g;const{start:v,end:y}=n;if(h.length===0)g=v+y;else if(f||(f=h.reduce((_,S)=>_+S.length+2,2)>W9.maxFlowStringSingleLineLength),f){g=v;for(const E of h)g+=E?` +`+cf(l(e),u),a&&a()):f&&s&&s(),h}function rat({comment:e,items:t},r,{flowChars:n,itemIndent:o,onComment:i}){const{indent:s,indentStep:a,flowCollectionPadding:u,options:{commentString:l}}=r;o+=a;const c=Object.assign({},r,{indent:o,inFlow:!0,type:null});let f=!1,d=0;const h=[];for(let E=0;ES=null);Ed||b.includes(` +`))&&(f=!0),h.push(b),d=h.length}let g;const{start:v,end:y}=n;if(h.length===0)g=v+y;else if(f||(f=h.reduce((_,S)=>_+S.length+2,2)>U9.maxFlowStringSingleLineLength),f){g=v;for(const E of h)g+=E?` ${a}${s}${E}`:` `;g+=` -${s}${y}`}else g=`${v}${u}${h.join(" ")}${u}${y}`;return e&&(g+=Ld(g,s,l(e)),i&&i()),g}function cT({indent:e,options:{commentString:t}},r,n,o){if(n&&o&&(n=n.replace(/^\n+/,"")),n){const i=lf(t(n),e);r.push(i.trimStart())}}function Ah(e,t){const r=vn(t)?t.value:t;for(const n of e)if(Mn(n)&&(n.key===t||n.key===r||vn(n.key)&&n.key.value===r))return n}class oa extends W9{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(r1,t),this.items=[]}static from(t,r,n){const{keepUndefined:o,replacer:i}=n,s=new this(t),a=(u,l)=>{if(typeof i=="function")l=i.call(r,u,l);else if(Array.isArray(i)&&!i.includes(u))return;(l!==void 0||o)&&s.items.push(Aj(u,l,n))};if(r instanceof Map)for(const[u,l]of r)a(u,l);else if(r&&typeof r=="object")for(const u of Object.keys(r))a(u,r[u]);return typeof t.sortMapEntries=="function"&&s.items.sort(t.sortMapEntries),s}add(t,r){var s;let n;Mn(t)?n=t:!t||typeof t!="object"||!("key"in t)?n=new Ni(t,t==null?void 0:t.value):n=new Ni(t.key,t.value);const o=Ah(this.items,n.key),i=(s=this.schema)==null?void 0:s.sortMapEntries;if(o){if(!r)throw new Error(`Key ${n.key} already set`);vn(o.value)&&Ahe(n.value)?o.value.value=n.value:o.value=n.value}else if(i){const a=this.items.findIndex(u=>i(n,u)<0);a===-1?this.items.push(n):this.items.splice(a,0,n)}else this.items.push(n)}delete(t){const r=Ah(this.items,t);return r?this.items.splice(this.items.indexOf(r),1).length>0:!1}get(t,r){const n=Ah(this.items,t),o=n==null?void 0:n.value;return(!r&&vn(o)?o.value:o)??void 0}has(t){return!!Ah(this.items,t)}set(t,r){this.add(new Ni(t,r),!0)}toJSON(t,r,n){const o=n?new n:r!=null&&r.mapAsMap?new Map:{};r!=null&&r.onCreate&&r.onCreate(o);for(const i of this.items)Nhe(r,o,i);return o}toString(t,r,n){if(!t)return JSON.stringify(this);for(const o of this.items)if(!Mn(o))throw new Error(`Map items must all be pairs; found ${JSON.stringify(o)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),Che(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:n,onComment:r})}}const Dv={collection:"map",default:!0,nodeClass:oa,tag:"tag:yaml.org,2002:map",resolve(e,t){return Rv(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,r)=>oa.from(e,t,r)};class y1 extends W9{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(Nv,t),this.items=[]}add(t){this.items.push(t)}delete(t){const r=zw(t);return typeof r!="number"?!1:this.items.splice(r,1).length>0}get(t,r){const n=zw(t);if(typeof n!="number")return;const o=this.items[n];return!r&&vn(o)?o.value:o}has(t){const r=zw(t);return typeof r=="number"&&r=0?t:null}const Fv={collection:"seq",default:!0,nodeClass:y1,tag:"tag:yaml.org,2002:seq",resolve(e,t){return Ov(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,r)=>y1.from(e,t,r)},U9={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,r,n){return t=Object.assign({actualString:!0},t),SE(e,t,r,n)}},Y9={identify:e=>e==null,createNode:()=>new Qt(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Qt(null),stringify:({source:e},t)=>typeof e=="string"&&Y9.test.test(e)?e:t.options.nullStr},Tj={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Qt(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},r){if(e&&Tj.test.test(e)){const n=e[0]==="t"||e[0]==="T";if(t===n)return e}return t?r.options.trueStr:r.options.falseStr}};function gl({format:e,minFractionDigits:t,tag:r,value:n}){if(typeof n=="bigint")return String(n);const o=typeof n=="number"?n:Number(n);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let i=JSON.stringify(n);if(!e&&t&&(!r||r==="tag:yaml.org,2002:float")&&/^\d/.test(i)){let s=i.indexOf(".");s<0&&(s=i.length,i+=".");let a=t-(i.length-s-1);for(;a-- >0;)i+="0"}return i}const Rhe={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:gl},Ohe={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():gl(e)}},Dhe={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new Qt(parseFloat(e)),r=e.indexOf(".");return r!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-r-1),t},stringify:gl},X9=e=>typeof e=="bigint"||Number.isInteger(e),xj=(e,t,r,{intAsBigInt:n})=>n?BigInt(e):parseInt(e.substring(t),r);function Fhe(e,t,r){const{value:n}=e;return X9(n)&&n>=0?r+n.toString(t):gl(e)}const Bhe={identify:e=>X9(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,r)=>xj(e,2,8,r),stringify:e=>Fhe(e,8,"0o")},Mhe={identify:X9,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,r)=>xj(e,0,10,r),stringify:gl},Lhe={identify:e=>X9(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,r)=>xj(e,2,16,r),stringify:e=>Fhe(e,16,"0x")},Yst=[Dv,Fv,U9,Y9,Tj,Bhe,Mhe,Lhe,Rhe,Ohe,Dhe];function tee(e){return typeof e=="bigint"||Number.isInteger(e)}const Hw=({value:e})=>JSON.stringify(e),Xst=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:Hw},{identify:e=>e==null,createNode:()=>new Qt(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Hw},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:Hw},{identify:tee,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:r})=>r?BigInt(e):parseInt(e,10),stringify:({value:e})=>tee(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:Hw}],Qst={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},Zst=[Dv,Fv].concat(Xst,Qst),Ij={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Buffer=="function")return Buffer.from(e,"base64");if(typeof atob=="function"){const r=atob(e.replace(/[\n\r]/g,"")),n=new Uint8Array(r.length);for(let o=0;o1&&t("Each pair must have its own sequence indicator");const o=n.items[0]||new Ni(new Qt(null));if(n.commentBefore&&(o.key.commentBefore=o.key.commentBefore?`${n.commentBefore} +${s}${y}`}else g=`${v}${u}${h.join(" ")}${u}${y}`;return e&&(g+=Ld(g,s,l(e)),i&&i()),g}function gx({indent:e,options:{commentString:t}},r,n,o){if(n&&o&&(n=n.replace(/^\n+/,"")),n){const i=cf(t(n),e);r.push(i.trimStart())}}function Ah(e,t){const r=gn(t)?t.value:t;for(const n of e)if(Bn(n)&&(n.key===t||n.key===r||gn(n.key)&&n.key.value===r))return n}class ia extends U9{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(r1,t),this.items=[]}static from(t,r,n){const{keepUndefined:o,replacer:i}=n,s=new this(t),a=(u,l)=>{if(typeof i=="function")l=i.call(r,u,l);else if(Array.isArray(i)&&!i.includes(u))return;(l!==void 0||o)&&s.items.push(Nj(u,l,n))};if(r instanceof Map)for(const[u,l]of r)a(u,l);else if(r&&typeof r=="object")for(const u of Object.keys(r))a(u,r[u]);return typeof t.sortMapEntries=="function"&&s.items.sort(t.sortMapEntries),s}add(t,r){var s;let n;Bn(t)?n=t:!t||typeof t!="object"||!("key"in t)?n=new Ni(t,t==null?void 0:t.value):n=new Ni(t.key,t.value);const o=Ah(this.items,n.key),i=(s=this.schema)==null?void 0:s.sortMapEntries;if(o){if(!r)throw new Error(`Key ${n.key} already set`);gn(o.value)&&Ohe(n.value)?o.value.value=n.value:o.value=n.value}else if(i){const a=this.items.findIndex(u=>i(n,u)<0);a===-1?this.items.push(n):this.items.splice(a,0,n)}else this.items.push(n)}delete(t){const r=Ah(this.items,t);return r?this.items.splice(this.items.indexOf(r),1).length>0:!1}get(t,r){const n=Ah(this.items,t),o=n==null?void 0:n.value;return(!r&&gn(o)?o.value:o)??void 0}has(t){return!!Ah(this.items,t)}set(t,r){this.add(new Ni(t,r),!0)}toJSON(t,r,n){const o=n?new n:r!=null&&r.mapAsMap?new Map:{};r!=null&&r.onCreate&&r.onCreate(o);for(const i of this.items)Mhe(r,o,i);return o}toString(t,r,n){if(!t)return JSON.stringify(this);for(const o of this.items)if(!Bn(o))throw new Error(`Map items must all be pairs; found ${JSON.stringify(o)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),Lhe(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:n,onComment:r})}}const Mv={collection:"map",default:!0,nodeClass:ia,tag:"tag:yaml.org,2002:map",resolve(e,t){return Fv(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,r)=>ia.from(e,t,r)};class m1 extends U9{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(Ov,t),this.items=[]}add(t){this.items.push(t)}delete(t){const r=Pw(t);return typeof r!="number"?!1:this.items.splice(r,1).length>0}get(t,r){const n=Pw(t);if(typeof n!="number")return;const o=this.items[n];return!r&&gn(o)?o.value:o}has(t){const r=Pw(t);return typeof r=="number"&&r=0?t:null}const Lv={collection:"seq",default:!0,nodeClass:m1,tag:"tag:yaml.org,2002:seq",resolve(e,t){return Bv(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,r)=>m1.from(e,t,r)},Z9={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,r,n){return t=Object.assign({actualString:!0},t),kE(e,t,r,n)}},J9={identify:e=>e==null,createNode:()=>new Zt(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Zt(null),stringify:({source:e},t)=>typeof e=="string"&&J9.test.test(e)?e:t.options.nullStr},Rj={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Zt(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},r){if(e&&Rj.test.test(e)){const n=e[0]==="t"||e[0]==="T";if(t===n)return e}return t?r.options.trueStr:r.options.falseStr}};function yl({format:e,minFractionDigits:t,tag:r,value:n}){if(typeof n=="bigint")return String(n);const o=typeof n=="number"?n:Number(n);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let i=JSON.stringify(n);if(!e&&t&&(!r||r==="tag:yaml.org,2002:float")&&/^\d/.test(i)){let s=i.indexOf(".");s<0&&(s=i.length,i+=".");let a=t-(i.length-s-1);for(;a-- >0;)i+="0"}return i}const jhe={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:yl},zhe={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():yl(e)}},Hhe={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new Zt(parseFloat(e)),r=e.indexOf(".");return r!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-r-1),t},stringify:yl},e5=e=>typeof e=="bigint"||Number.isInteger(e),Oj=(e,t,r,{intAsBigInt:n})=>n?BigInt(e):parseInt(e.substring(t),r);function $he(e,t,r){const{value:n}=e;return e5(n)&&n>=0?r+n.toString(t):yl(e)}const Phe={identify:e=>e5(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,r)=>Oj(e,2,8,r),stringify:e=>$he(e,8,"0o")},qhe={identify:e5,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,r)=>Oj(e,0,10,r),stringify:yl},Whe={identify:e=>e5(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,r)=>Oj(e,2,16,r),stringify:e=>$he(e,16,"0x")},nat=[Mv,Lv,Z9,J9,Rj,Phe,qhe,Whe,jhe,zhe,Hhe];function lee(e){return typeof e=="bigint"||Number.isInteger(e)}const qw=({value:e})=>JSON.stringify(e),oat=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:qw},{identify:e=>e==null,createNode:()=>new Zt(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:qw},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:qw},{identify:lee,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:r})=>r?BigInt(e):parseInt(e,10),stringify:({value:e})=>lee(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:qw}],iat={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},sat=[Mv,Lv].concat(oat,iat),Dj={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Buffer=="function")return Buffer.from(e,"base64");if(typeof atob=="function"){const r=atob(e.replace(/[\n\r]/g,"")),n=new Uint8Array(r.length);for(let o=0;o1&&t("Each pair must have its own sequence indicator");const o=n.items[0]||new Ni(new Zt(null));if(n.commentBefore&&(o.key.commentBefore=o.key.commentBefore?`${n.commentBefore} ${o.key.commentBefore}`:n.commentBefore),n.comment){const i=o.value??o.key;i.comment=i.comment?`${n.comment} -${i.comment}`:n.comment}n=o}e.items[r]=Mn(n)?n:new Ni(n)}}else t("Expected a sequence for this tag");return e}function zhe(e,t,r){const{replacer:n}=r,o=new y1(e);o.tag="tag:yaml.org,2002:pairs";let i=0;if(t&&Symbol.iterator in Object(t))for(let s of t){typeof n=="function"&&(s=n.call(t,String(i++),s));let a,u;if(Array.isArray(s))if(s.length===2)a=s[0],u=s[1];else throw new TypeError(`Expected [key, value] tuple: ${s}`);else if(s&&s instanceof Object){const l=Object.keys(s);if(l.length===1)a=l[0],u=s[a];else throw new TypeError(`Expected tuple with one key, not ${l.length} keys`)}else a=s;o.items.push(Aj(a,u,r))}return o}const Nj={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:jhe,createNode:zhe};class cg extends y1{constructor(){super(),this.add=oa.prototype.add.bind(this),this.delete=oa.prototype.delete.bind(this),this.get=oa.prototype.get.bind(this),this.has=oa.prototype.has.bind(this),this.set=oa.prototype.set.bind(this),this.tag=cg.tag}toJSON(t,r){if(!r)return super.toJSON(t);const n=new Map;r!=null&&r.onCreate&&r.onCreate(n);for(const o of this.items){let i,s;if(Mn(o)?(i=du(o.key,"",r),s=du(o.value,i,r)):i=du(o,"",r),n.has(i))throw new Error("Ordered maps must not include duplicate keys");n.set(i,s)}return n}static from(t,r,n){const o=zhe(t,r,n),i=new this;return i.items=o.items,i}}cg.tag="tag:yaml.org,2002:omap";const Cj={collection:"seq",identify:e=>e instanceof Map,nodeClass:cg,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const r=jhe(e,t),n=[];for(const{key:o}of r.items)vn(o)&&(n.includes(o.value)?t(`Ordered maps must not include duplicate keys: ${o.value}`):n.push(o.value));return Object.assign(new cg,r)},createNode:(e,t,r)=>cg.from(e,t,r)};function Hhe({value:e,source:t},r){return t&&(e?$he:Phe).test.test(t)?t:e?r.options.trueStr:r.options.falseStr}const $he={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Qt(!0),stringify:Hhe},Phe={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>new Qt(!1),stringify:Hhe},Jst={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:gl},eat={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():gl(e)}},tat={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new Qt(parseFloat(e.replace(/_/g,""))),r=e.indexOf(".");if(r!==-1){const n=e.substring(r+1).replace(/_/g,"");n[n.length-1]==="0"&&(t.minFractionDigits=n.length)}return t},stringify:gl},wE=e=>typeof e=="bigint"||Number.isInteger(e);function Q9(e,t,r,{intAsBigInt:n}){const o=e[0];if((o==="-"||o==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),n){switch(r){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const s=BigInt(e);return o==="-"?BigInt(-1)*s:s}const i=parseInt(e,r);return o==="-"?-1*i:i}function Rj(e,t,r){const{value:n}=e;if(wE(n)){const o=n.toString(t);return n<0?"-"+r+o.substr(1):r+o}return gl(e)}const rat={identify:wE,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,r)=>Q9(e,2,2,r),stringify:e=>Rj(e,2,"0b")},nat={identify:wE,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,r)=>Q9(e,1,8,r),stringify:e=>Rj(e,8,"0")},oat={identify:wE,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,r)=>Q9(e,0,10,r),stringify:gl},iat={identify:wE,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,r)=>Q9(e,2,16,r),stringify:e=>Rj(e,16,"0x")};class fg extends oa{constructor(t){super(t),this.tag=fg.tag}add(t){let r;Mn(t)?r=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?r=new Ni(t.key,null):r=new Ni(t,null),Ah(this.items,r.key)||this.items.push(r)}get(t,r){const n=Ah(this.items,t);return!r&&Mn(n)?vn(n.key)?n.key.value:n.key:n}set(t,r){if(typeof r!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof r}`);const n=Ah(this.items,t);n&&!r?this.items.splice(this.items.indexOf(n),1):!n&&r&&this.items.push(new Ni(t))}toJSON(t,r){return super.toJSON(t,r,Set)}toString(t,r,n){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),r,n);throw new Error("Set items must all have null values")}static from(t,r,n){const{replacer:o}=n,i=new this(t);if(r&&Symbol.iterator in Object(r))for(let s of r)typeof o=="function"&&(s=o.call(r,s,s)),i.items.push(Aj(s,null,n));return i}}fg.tag="tag:yaml.org,2002:set";const Oj={collection:"map",identify:e=>e instanceof Set,nodeClass:fg,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,r)=>fg.from(e,t,r),resolve(e,t){if(Rv(e)){if(e.hasAllNullValues(!0))return Object.assign(new fg,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function Dj(e,t){const r=e[0],n=r==="-"||r==="+"?e.substring(1):e,o=s=>t?BigInt(s):Number(s),i=n.replace(/_/g,"").split(":").reduce((s,a)=>s*o(60)+o(a),o(0));return r==="-"?o(-1)*i:i}function qhe(e){let{value:t}=e,r=s=>s;if(typeof t=="bigint")r=s=>BigInt(s);else if(isNaN(t)||!isFinite(t))return gl(e);let n="";t<0&&(n="-",t*=r(-1));const o=r(60),i=[t%o];return t<60?i.unshift(0):(t=(t-i[0])/o,i.unshift(t%o),t>=60&&(t=(t-i[0])/o,i.unshift(t))),n+i.map(s=>String(s).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const Whe={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>Dj(e,r),stringify:qhe},Khe={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>Dj(e,!1),stringify:qhe},Z9={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(Z9.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,r,n,o,i,s,a]=t.map(Number),u=t[7]?Number((t[7]+"00").substr(1,3)):0;let l=Date.UTC(r,n-1,o,i||0,s||0,a||0,u);const c=t[8];if(c&&c!=="Z"){let f=Dj(c,!1);Math.abs(f)<30&&(f*=60),l-=6e4*f}return new Date(l)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},ree=[Dv,Fv,U9,Y9,$he,Phe,rat,nat,oat,iat,Jst,eat,tat,Ij,Cj,Nj,Oj,Whe,Khe,Z9],nee=new Map([["core",Yst],["failsafe",[Dv,Fv,U9]],["json",Zst],["yaml11",ree],["yaml-1.1",ree]]),oee={binary:Ij,bool:Tj,float:Dhe,floatExp:Ohe,floatNaN:Rhe,floatTime:Khe,int:Mhe,intHex:Lhe,intOct:Bhe,intTime:Whe,map:Dv,null:Y9,omap:Cj,pairs:Nj,seq:Fv,set:Oj,timestamp:Z9},sat={"tag:yaml.org,2002:binary":Ij,"tag:yaml.org,2002:omap":Cj,"tag:yaml.org,2002:pairs":Nj,"tag:yaml.org,2002:set":Oj,"tag:yaml.org,2002:timestamp":Z9};function c3(e,t){let r=nee.get(t);if(!r)if(Array.isArray(e))r=[];else{const n=Array.from(nee.keys()).filter(o=>o!=="yaml11").map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${n} or define customTags array`)}if(Array.isArray(e))for(const n of e)r=r.concat(n);else typeof e=="function"&&(r=e(r.slice()));return r.map(n=>{if(typeof n!="string")return n;const o=oee[n];if(o)return o;const i=Object.keys(oee).map(s=>JSON.stringify(s)).join(", ");throw new Error(`Unknown custom tag "${n}"; use one of ${i}`)})}const aat=(e,t)=>e.keyt.key?1:0;class J9{constructor({compat:t,customTags:r,merge:n,resolveKnownTags:o,schema:i,sortMapEntries:s,toStringDefaults:a}){this.compat=Array.isArray(t)?c3(t,"compat"):t?c3(null,t):null,this.merge=!!n,this.name=typeof i=="string"&&i||"core",this.knownTags=o?sat:{},this.tags=c3(r,this.name),this.toStringOptions=a??null,Object.defineProperty(this,r1,{value:Dv}),Object.defineProperty(this,Df,{value:U9}),Object.defineProperty(this,Nv,{value:Fv}),this.sortMapEntries=typeof s=="function"?s:s===!0?aat:null}clone(){const t=Object.create(J9.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function uat(e,t){var u;const r=[];let n=t.directives===!0;if(t.directives!==!1&&e.directives){const l=e.directives.toString(e);l?(r.push(l),n=!0):e.directives.docStart&&(n=!0)}n&&r.push("---");const o=xhe(e,t),{commentString:i}=o.options;if(e.commentBefore){r.length!==1&&r.unshift("");const l=i(e.commentBefore);r.unshift(lf(l,""))}let s=!1,a=null;if(e.contents){if(fo(e.contents)){if(e.contents.spaceBefore&&n&&r.push(""),e.contents.commentBefore){const f=i(e.contents.commentBefore);r.push(lf(f,""))}o.forceBlockIndent=!!e.comment,a=e.contents.comment}const l=a?void 0:()=>s=!0;let c=Xg(e.contents,o,()=>a=null,l);a&&(c+=Ld(c,"",i(a))),(c[0]==="|"||c[0]===">")&&r[r.length-1]==="---"?r[r.length-1]=`--- ${c}`:r.push(c)}else r.push(Xg(e.contents,o));if((u=e.directives)!=null&&u.docEnd)if(e.comment){const l=i(e.comment);l.includes(` -`)?(r.push("..."),r.push(lf(l,""))):r.push(`... ${l}`)}else r.push("...");else{let l=e.comment;l&&s&&(l=l.replace(/^\n+/,"")),l&&((!s||a)&&r[r.length-1]!==""&&r.push(""),r.push(lf(i(l),"")))}return r.join(` +${i.comment}`:n.comment}n=o}e.items[r]=Bn(n)?n:new Ni(n)}}else t("Expected a sequence for this tag");return e}function Ghe(e,t,r){const{replacer:n}=r,o=new m1(e);o.tag="tag:yaml.org,2002:pairs";let i=0;if(t&&Symbol.iterator in Object(t))for(let s of t){typeof n=="function"&&(s=n.call(t,String(i++),s));let a,u;if(Array.isArray(s))if(s.length===2)a=s[0],u=s[1];else throw new TypeError(`Expected [key, value] tuple: ${s}`);else if(s&&s instanceof Object){const l=Object.keys(s);if(l.length===1)a=l[0],u=s[a];else throw new TypeError(`Expected tuple with one key, not ${l.length} keys`)}else a=s;o.items.push(Nj(a,u,r))}return o}const Fj={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Khe,createNode:Ghe};class fg extends m1{constructor(){super(),this.add=ia.prototype.add.bind(this),this.delete=ia.prototype.delete.bind(this),this.get=ia.prototype.get.bind(this),this.has=ia.prototype.has.bind(this),this.set=ia.prototype.set.bind(this),this.tag=fg.tag}toJSON(t,r){if(!r)return super.toJSON(t);const n=new Map;r!=null&&r.onCreate&&r.onCreate(n);for(const o of this.items){let i,s;if(Bn(o)?(i=du(o.key,"",r),s=du(o.value,i,r)):i=du(o,"",r),n.has(i))throw new Error("Ordered maps must not include duplicate keys");n.set(i,s)}return n}static from(t,r,n){const o=Ghe(t,r,n),i=new this;return i.items=o.items,i}}fg.tag="tag:yaml.org,2002:omap";const Bj={collection:"seq",identify:e=>e instanceof Map,nodeClass:fg,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const r=Khe(e,t),n=[];for(const{key:o}of r.items)gn(o)&&(n.includes(o.value)?t(`Ordered maps must not include duplicate keys: ${o.value}`):n.push(o.value));return Object.assign(new fg,r)},createNode:(e,t,r)=>fg.from(e,t,r)};function Vhe({value:e,source:t},r){return t&&(e?Uhe:Yhe).test.test(t)?t:e?r.options.trueStr:r.options.falseStr}const Uhe={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Zt(!0),stringify:Vhe},Yhe={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>new Zt(!1),stringify:Vhe},aat={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:yl},uat={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():yl(e)}},lat={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new Zt(parseFloat(e.replace(/_/g,""))),r=e.indexOf(".");if(r!==-1){const n=e.substring(r+1).replace(/_/g,"");n[n.length-1]==="0"&&(t.minFractionDigits=n.length)}return t},stringify:yl},xE=e=>typeof e=="bigint"||Number.isInteger(e);function t5(e,t,r,{intAsBigInt:n}){const o=e[0];if((o==="-"||o==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),n){switch(r){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const s=BigInt(e);return o==="-"?BigInt(-1)*s:s}const i=parseInt(e,r);return o==="-"?-1*i:i}function Mj(e,t,r){const{value:n}=e;if(xE(n)){const o=n.toString(t);return n<0?"-"+r+o.substr(1):r+o}return yl(e)}const cat={identify:xE,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,r)=>t5(e,2,2,r),stringify:e=>Mj(e,2,"0b")},fat={identify:xE,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,r)=>t5(e,1,8,r),stringify:e=>Mj(e,8,"0")},dat={identify:xE,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,r)=>t5(e,0,10,r),stringify:yl},hat={identify:xE,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,r)=>t5(e,2,16,r),stringify:e=>Mj(e,16,"0x")};class dg extends ia{constructor(t){super(t),this.tag=dg.tag}add(t){let r;Bn(t)?r=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?r=new Ni(t.key,null):r=new Ni(t,null),Ah(this.items,r.key)||this.items.push(r)}get(t,r){const n=Ah(this.items,t);return!r&&Bn(n)?gn(n.key)?n.key.value:n.key:n}set(t,r){if(typeof r!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof r}`);const n=Ah(this.items,t);n&&!r?this.items.splice(this.items.indexOf(n),1):!n&&r&&this.items.push(new Ni(t))}toJSON(t,r){return super.toJSON(t,r,Set)}toString(t,r,n){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),r,n);throw new Error("Set items must all have null values")}static from(t,r,n){const{replacer:o}=n,i=new this(t);if(r&&Symbol.iterator in Object(r))for(let s of r)typeof o=="function"&&(s=o.call(r,s,s)),i.items.push(Nj(s,null,n));return i}}dg.tag="tag:yaml.org,2002:set";const Lj={collection:"map",identify:e=>e instanceof Set,nodeClass:dg,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,r)=>dg.from(e,t,r),resolve(e,t){if(Fv(e)){if(e.hasAllNullValues(!0))return Object.assign(new dg,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function jj(e,t){const r=e[0],n=r==="-"||r==="+"?e.substring(1):e,o=s=>t?BigInt(s):Number(s),i=n.replace(/_/g,"").split(":").reduce((s,a)=>s*o(60)+o(a),o(0));return r==="-"?o(-1)*i:i}function Xhe(e){let{value:t}=e,r=s=>s;if(typeof t=="bigint")r=s=>BigInt(s);else if(isNaN(t)||!isFinite(t))return yl(e);let n="";t<0&&(n="-",t*=r(-1));const o=r(60),i=[t%o];return t<60?i.unshift(0):(t=(t-i[0])/o,i.unshift(t%o),t>=60&&(t=(t-i[0])/o,i.unshift(t))),n+i.map(s=>String(s).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const Qhe={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>jj(e,r),stringify:Xhe},Zhe={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>jj(e,!1),stringify:Xhe},r5={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(r5.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,r,n,o,i,s,a]=t.map(Number),u=t[7]?Number((t[7]+"00").substr(1,3)):0;let l=Date.UTC(r,n-1,o,i||0,s||0,a||0,u);const c=t[8];if(c&&c!=="Z"){let f=jj(c,!1);Math.abs(f)<30&&(f*=60),l-=6e4*f}return new Date(l)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},cee=[Mv,Lv,Z9,J9,Uhe,Yhe,cat,fat,dat,hat,aat,uat,lat,Dj,Bj,Fj,Lj,Qhe,Zhe,r5],fee=new Map([["core",nat],["failsafe",[Mv,Lv,Z9]],["json",sat],["yaml11",cee],["yaml-1.1",cee]]),dee={binary:Dj,bool:Rj,float:Hhe,floatExp:zhe,floatNaN:jhe,floatTime:Zhe,int:qhe,intHex:Whe,intOct:Phe,intTime:Qhe,map:Mv,null:J9,omap:Bj,pairs:Fj,seq:Lv,set:Lj,timestamp:r5},pat={"tag:yaml.org,2002:binary":Dj,"tag:yaml.org,2002:omap":Bj,"tag:yaml.org,2002:pairs":Fj,"tag:yaml.org,2002:set":Lj,"tag:yaml.org,2002:timestamp":r5};function p3(e,t){let r=fee.get(t);if(!r)if(Array.isArray(e))r=[];else{const n=Array.from(fee.keys()).filter(o=>o!=="yaml11").map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${n} or define customTags array`)}if(Array.isArray(e))for(const n of e)r=r.concat(n);else typeof e=="function"&&(r=e(r.slice()));return r.map(n=>{if(typeof n!="string")return n;const o=dee[n];if(o)return o;const i=Object.keys(dee).map(s=>JSON.stringify(s)).join(", ");throw new Error(`Unknown custom tag "${n}"; use one of ${i}`)})}const gat=(e,t)=>e.keyt.key?1:0;class n5{constructor({compat:t,customTags:r,merge:n,resolveKnownTags:o,schema:i,sortMapEntries:s,toStringDefaults:a}){this.compat=Array.isArray(t)?p3(t,"compat"):t?p3(null,t):null,this.merge=!!n,this.name=typeof i=="string"&&i||"core",this.knownTags=o?pat:{},this.tags=p3(r,this.name),this.toStringOptions=a??null,Object.defineProperty(this,r1,{value:Mv}),Object.defineProperty(this,Ff,{value:Z9}),Object.defineProperty(this,Ov,{value:Lv}),this.sortMapEntries=typeof s=="function"?s:s===!0?gat:null}clone(){const t=Object.create(n5.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function vat(e,t){var u;const r=[];let n=t.directives===!0;if(t.directives!==!1&&e.directives){const l=e.directives.toString(e);l?(r.push(l),n=!0):e.directives.docStart&&(n=!0)}n&&r.push("---");const o=Fhe(e,t),{commentString:i}=o.options;if(e.commentBefore){r.length!==1&&r.unshift("");const l=i(e.commentBefore);r.unshift(cf(l,""))}let s=!1,a=null;if(e.contents){if(ho(e.contents)){if(e.contents.spaceBefore&&n&&r.push(""),e.contents.commentBefore){const f=i(e.contents.commentBefore);r.push(cf(f,""))}o.forceBlockIndent=!!e.comment,a=e.contents.comment}const l=a?void 0:()=>s=!0;let c=Zg(e.contents,o,()=>a=null,l);a&&(c+=Ld(c,"",i(a))),(c[0]==="|"||c[0]===">")&&r[r.length-1]==="---"?r[r.length-1]=`--- ${c}`:r.push(c)}else r.push(Zg(e.contents,o));if((u=e.directives)!=null&&u.docEnd)if(e.comment){const l=i(e.comment);l.includes(` +`)?(r.push("..."),r.push(cf(l,""))):r.push(`... ${l}`)}else r.push("...");else{let l=e.comment;l&&s&&(l=l.replace(/^\n+/,"")),l&&((!s||a)&&r[r.length-1]!==""&&r.push(""),r.push(cf(i(l),"")))}return r.join(` `)+` -`}let e5=class Ghe{constructor(t,r,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,bu,{value:SM});let o=null;typeof r=="function"||Array.isArray(r)?o=r:n===void 0&&r&&(n=r,r=void 0);const i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},n);this.options=i;let{version:s}=i;n!=null&&n._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(s=this.directives.yaml.version)):this.directives=new Gi({version:s}),this.setSchema(s,n),this.contents=t===void 0?null:this.createNode(t,o,n)}clone(){const t=Object.create(Ghe.prototype,{[bu]:{value:SM}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=fo(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){Jp(this.contents)&&this.contents.add(t)}addIn(t,r){Jp(this.contents)&&this.contents.addIn(t,r)}createAlias(t,r){if(!t.anchor){const n=whe(this);t.anchor=!r||n.has(r)?khe(r||"a",n):r}return new q9(t.anchor)}createNode(t,r,n){let o;if(typeof r=="function")t=r.call({"":t},"",t),o=r;else if(Array.isArray(r)){const y=_=>typeof _=="number"||_ instanceof String||_ instanceof Number,E=r.filter(y).map(String);E.length>0&&(r=r.concat(E)),o=r}else n===void 0&&r&&(n=r,r=void 0);const{aliasDuplicateObjects:i,anchorPrefix:s,flow:a,keepUndefined:u,onTagObj:l,tag:c}=n??{},{onAnchor:f,setAnchors:d,sourceObjects:h}=Mst(this,s||"a"),g={aliasDuplicateObjects:i??!0,keepUndefined:u??!1,onAnchor:f,onTagObj:l,replacer:o,schema:this.schema,sourceObjects:h},v=s_(t,c,g);return a&&qn(v)&&(v.flow=!0),d(),v}createPair(t,r,n={}){const o=this.createNode(t,null,n),i=this.createNode(r,null,n);return new Ni(o,i)}delete(t){return Jp(this.contents)?this.contents.delete(t):!1}deleteIn(t){return _y(t)?this.contents==null?!1:(this.contents=null,!0):Jp(this.contents)?this.contents.deleteIn(t):!1}get(t,r){return qn(this.contents)?this.contents.get(t,r):void 0}getIn(t,r){return _y(t)?!r&&vn(this.contents)?this.contents.value:this.contents:qn(this.contents)?this.contents.getIn(t,r):void 0}has(t){return qn(this.contents)?this.contents.has(t):!1}hasIn(t){return _y(t)?this.contents!==void 0:qn(this.contents)?this.contents.hasIn(t):!1}set(t,r){this.contents==null?this.contents=lT(this.schema,[t],r):Jp(this.contents)&&this.contents.set(t,r)}setIn(t,r){_y(t)?this.contents=r:this.contents==null?this.contents=lT(this.schema,Array.from(t),r):Jp(this.contents)&&this.contents.setIn(t,r)}setSchema(t,r={}){typeof t=="number"&&(t=String(t));let n;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new Gi({version:"1.1"}),n={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new Gi({version:t}),n={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{const o=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${o}`)}}if(r.schema instanceof Object)this.schema=r.schema;else if(n)this.schema=new J9(Object.assign(n,r));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:r,mapAsMap:n,maxAliasCount:o,onAnchor:i,reviver:s}={}){const a={anchors:new Map,doc:this,keep:!t,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof o=="number"?o:100},u=du(this.contents,r??"",a);if(typeof i=="function")for(const{count:l,res:c}of a.anchors.values())i(c,l);return typeof s=="function"?$0(s,{"":u},"",u):u}toJSON(t,r){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:r})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){const r=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${r}`)}return uat(this,t)}};function Jp(e){if(qn(e))return!0;throw new Error("Expected a YAML collection as document contents")}class Fj extends Error{constructor(t,r,n,o){super(),this.name=t,this.code=n,this.message=o,this.pos=r}}class Th extends Fj{constructor(t,r,n){super("YAMLParseError",t,r,n)}}class Vhe extends Fj{constructor(t,r,n){super("YAMLWarning",t,r,n)}}const fT=(e,t)=>r=>{if(r.pos[0]===-1)return;r.linePos=r.pos.map(a=>t.linePos(a));const{line:n,col:o}=r.linePos[0];r.message+=` at line ${n}, column ${o}`;let i=o-1,s=e.substring(t.lineStarts[n-1],t.lineStarts[n]).replace(/[\n\r]+$/,"");if(i>=60&&s.length>80){const a=Math.min(i-39,s.length-79);s="…"+s.substring(a),i-=a-1}if(s.length>80&&(s=s.substring(0,79)+"…"),n>1&&/^ *$/.test(s.substring(0,i))){let a=e.substring(t.lineStarts[n-2],t.lineStarts[n-1]);a.length>80&&(a=a.substring(0,79)+`… +`}let o5=class Jhe{constructor(t,r,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,bu,{value:xM});let o=null;typeof r=="function"||Array.isArray(r)?o=r:n===void 0&&r&&(n=r,r=void 0);const i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},n);this.options=i;let{version:s}=i;n!=null&&n._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(s=this.directives.yaml.version)):this.directives=new Gi({version:s}),this.setSchema(s,n),this.contents=t===void 0?null:this.createNode(t,o,n)}clone(){const t=Object.create(Jhe.prototype,{[bu]:{value:xM}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=ho(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){e0(this.contents)&&this.contents.add(t)}addIn(t,r){e0(this.contents)&&this.contents.addIn(t,r)}createAlias(t,r){if(!t.anchor){const n=Nhe(this);t.anchor=!r||n.has(r)?Rhe(r||"a",n):r}return new V9(t.anchor)}createNode(t,r,n){let o;if(typeof r=="function")t=r.call({"":t},"",t),o=r;else if(Array.isArray(r)){const y=_=>typeof _=="number"||_ instanceof String||_ instanceof Number,E=r.filter(y).map(String);E.length>0&&(r=r.concat(E)),o=r}else n===void 0&&r&&(n=r,r=void 0);const{aliasDuplicateObjects:i,anchorPrefix:s,flow:a,keepUndefined:u,onTagObj:l,tag:c}=n??{},{onAnchor:f,setAnchors:d,sourceObjects:h}=Wst(this,s||"a"),g={aliasDuplicateObjects:i??!0,keepUndefined:u??!1,onAnchor:f,onTagObj:l,replacer:o,schema:this.schema,sourceObjects:h},v=l_(t,c,g);return a&&Pn(v)&&(v.flow=!0),d(),v}createPair(t,r,n={}){const o=this.createNode(t,null,n),i=this.createNode(r,null,n);return new Ni(o,i)}delete(t){return e0(this.contents)?this.contents.delete(t):!1}deleteIn(t){return Ey(t)?this.contents==null?!1:(this.contents=null,!0):e0(this.contents)?this.contents.deleteIn(t):!1}get(t,r){return Pn(this.contents)?this.contents.get(t,r):void 0}getIn(t,r){return Ey(t)?!r&&gn(this.contents)?this.contents.value:this.contents:Pn(this.contents)?this.contents.getIn(t,r):void 0}has(t){return Pn(this.contents)?this.contents.has(t):!1}hasIn(t){return Ey(t)?this.contents!==void 0:Pn(this.contents)?this.contents.hasIn(t):!1}set(t,r){this.contents==null?this.contents=px(this.schema,[t],r):e0(this.contents)&&this.contents.set(t,r)}setIn(t,r){Ey(t)?this.contents=r:this.contents==null?this.contents=px(this.schema,Array.from(t),r):e0(this.contents)&&this.contents.setIn(t,r)}setSchema(t,r={}){typeof t=="number"&&(t=String(t));let n;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new Gi({version:"1.1"}),n={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new Gi({version:t}),n={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{const o=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${o}`)}}if(r.schema instanceof Object)this.schema=r.schema;else if(n)this.schema=new n5(Object.assign(n,r));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:r,mapAsMap:n,maxAliasCount:o,onAnchor:i,reviver:s}={}){const a={anchors:new Map,doc:this,keep:!t,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof o=="number"?o:100},u=du(this.contents,r??"",a);if(typeof i=="function")for(const{count:l,res:c}of a.anchors.values())i(c,l);return typeof s=="function"?P0(s,{"":u},"",u):u}toJSON(t,r){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:r})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){const r=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${r}`)}return vat(this,t)}};function e0(e){if(Pn(e))return!0;throw new Error("Expected a YAML collection as document contents")}class zj extends Error{constructor(t,r,n,o){super(),this.name=t,this.code=n,this.message=o,this.pos=r}}class kh extends zj{constructor(t,r,n){super("YAMLParseError",t,r,n)}}class epe extends zj{constructor(t,r,n){super("YAMLWarning",t,r,n)}}const vx=(e,t)=>r=>{if(r.pos[0]===-1)return;r.linePos=r.pos.map(a=>t.linePos(a));const{line:n,col:o}=r.linePos[0];r.message+=` at line ${n}, column ${o}`;let i=o-1,s=e.substring(t.lineStarts[n-1],t.lineStarts[n]).replace(/[\n\r]+$/,"");if(i>=60&&s.length>80){const a=Math.min(i-39,s.length-79);s="…"+s.substring(a),i-=a-1}if(s.length>80&&(s=s.substring(0,79)+"…"),n>1&&/^ *$/.test(s.substring(0,i))){let a=e.substring(t.lineStarts[n-2],t.lineStarts[n-1]);a.length>80&&(a=a.substring(0,79)+`… `),s=a+s}if(/[^ ]/.test(s)){let a=1;const u=r.linePos[1];u&&u.line===n&&u.col>o&&(a=Math.max(1,Math.min(u.col-o,80-i)));const l=" ".repeat(i)+"^".repeat(a);r.message+=`: ${s} ${l} -`}};function Qg(e,{flow:t,indicator:r,next:n,offset:o,onError:i,startOnNewline:s}){let a=!1,u=s,l=s,c="",f="",d=!1,h=!1,g=!1,v=null,y=null,E=null,_=null,S=null;for(const x of e)switch(g&&(x.type!=="space"&&x.type!=="newline"&&x.type!=="comma"&&i(x.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),g=!1),x.type){case"space":!t&&u&&r!=="doc-start"&&x.source[0]===" "&&i(x,"TAB_AS_INDENT","Tabs are not allowed as indentation"),l=!0;break;case"comment":{l||i(x,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const T=x.source.substring(1)||" ";c?c+=f+T:c=T,f="",u=!1;break}case"newline":u?c?c+=x.source:a=!0:f+=x.source,u=!0,d=!0,(v||y)&&(h=!0),l=!0;break;case"anchor":v&&i(x,"MULTIPLE_ANCHORS","A node can have at most one anchor"),x.source.endsWith(":")&&i(x.offset+x.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),v=x,S===null&&(S=x.offset),u=!1,l=!1,g=!0;break;case"tag":{y&&i(x,"MULTIPLE_TAGS","A node can have at most one tag"),y=x,S===null&&(S=x.offset),u=!1,l=!1,g=!0;break}case r:(v||y)&&i(x,"BAD_PROP_ORDER",`Anchors and tags must be after the ${x.source} indicator`),_&&i(x,"UNEXPECTED_TOKEN",`Unexpected ${x.source} in ${t??"collection"}`),_=x,u=!1,l=!1;break;case"comma":if(t){E&&i(x,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),E=x,u=!1,l=!1;break}default:i(x,"UNEXPECTED_TOKEN",`Unexpected ${x.type} token`),u=!1,l=!1}const b=e[e.length-1],A=b?b.offset+b.source.length:o;return g&&n&&n.type!=="space"&&n.type!=="newline"&&n.type!=="comma"&&(n.type!=="scalar"||n.source!=="")&&i(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:E,found:_,spaceBefore:a,comment:c,hasNewline:d,hasNewlineAfterProp:h,anchor:v,tag:y,end:A,start:S??A}}function a_(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(` -`))return!0;if(e.end){for(const t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(const t of e.items){for(const r of t.start)if(r.type==="newline")return!0;if(t.sep){for(const r of t.sep)if(r.type==="newline")return!0}if(a_(t.key)||a_(t.value))return!0}return!1;default:return!0}}function TM(e,t,r){if((t==null?void 0:t.type)==="flow-collection"){const n=t.end[0];n.indent===e&&(n.source==="]"||n.source==="}")&&a_(t)&&r(n,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function Uhe(e,t,r){const{uniqueKeys:n}=e.options;if(n===!1)return!1;const o=typeof n=="function"?n:(i,s)=>i===s||vn(i)&&vn(s)&&i.value===s.value&&!(i.value==="<<"&&e.schema.merge);return t.some(i=>o(i.key,r))}const iee="All mapping items must start at the same column";function lat({composeNode:e,composeEmptyNode:t},r,n,o,i){var c;const s=(i==null?void 0:i.nodeClass)??oa,a=new s(r.schema);r.atRoot&&(r.atRoot=!1);let u=n.offset,l=null;for(const f of n.items){const{start:d,key:h,sep:g,value:v}=f,y=Qg(d,{indicator:"explicit-key-ind",next:h??(g==null?void 0:g[0]),offset:u,onError:o,startOnNewline:!0}),E=!y.found;if(E){if(h&&(h.type==="block-seq"?o(u,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in h&&h.indent!==n.indent&&o(u,"BAD_INDENT",iee)),!y.anchor&&!y.tag&&!g){l=y.end,y.comment&&(a.comment?a.comment+=` -`+y.comment:a.comment=y.comment);continue}(y.hasNewlineAfterProp||a_(h))&&o(h??d[d.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((c=y.found)==null?void 0:c.indent)!==n.indent&&o(u,"BAD_INDENT",iee);const _=y.end,S=h?e(r,h,y,o):t(r,_,d,null,y,o);r.schema.compat&&TM(n.indent,h,o),Uhe(r,a.items,S)&&o(_,"DUPLICATE_KEY","Map keys must be unique");const b=Qg(g??[],{indicator:"map-value-ind",next:v,offset:S.range[2],onError:o,startOnNewline:!h||h.type==="block-scalar"});if(u=b.end,b.found){E&&((v==null?void 0:v.type)==="block-map"&&!b.hasNewline&&o(u,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),r.options.strict&&y.starte&&(e.type==="block-map"||e.type==="block-seq");function fat({composeNode:e,composeEmptyNode:t},r,n,o,i){const s=n.start.source==="{",a=s?"flow map":"flow sequence",u=(i==null?void 0:i.nodeClass)??(s?oa:y1),l=new u(r.schema);l.flow=!0;const c=r.atRoot;c&&(r.atRoot=!1);let f=n.offset+n.start.source.length;for(let y=0;y0){const y=kE(g,v,r.options.strict,o);y.comment&&(l.comment?l.comment+=` -`+y.comment:l.comment=y.comment),l.range=[n.offset,v,y.offset]}else l.range=[n.offset,v,v];return l}function h3(e,t,r,n,o,i){const s=r.type==="block-map"?lat(e,t,r,n,i):r.type==="block-seq"?cat(e,t,r,n,i):fat(e,t,r,n,i),a=s.constructor;return o==="!"||o===a.tagName?(s.tag=a.tagName,s):(o&&(s.tag=o),s)}function dat(e,t,r,n,o){var f;const i=n?t.directives.tagName(n.source,d=>o(n,"TAG_RESOLVE_FAILED",d)):null,s=r.type==="block-map"?"map":r.type==="block-seq"?"seq":r.start.source==="{"?"map":"seq";if(!n||!i||i==="!"||i===oa.tagName&&s==="map"||i===y1.tagName&&s==="seq"||!s)return h3(e,t,r,o,i);let a=t.schema.tags.find(d=>d.tag===i&&d.collection===s);if(!a){const d=t.schema.knownTags[i];if(d&&d.collection===s)t.schema.tags.push(Object.assign({},d,{default:!1})),a=d;else return d!=null&&d.collection?o(n,"BAD_COLLECTION_TYPE",`${d.tag} used for ${s} collection, but expects ${d.collection}`,!0):o(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${i}`,!0),h3(e,t,r,o,i)}const u=h3(e,t,r,o,i,a),l=((f=a.resolve)==null?void 0:f.call(a,u,d=>o(n,"TAG_RESOLVE_FAILED",d),t.options))??u,c=fo(l)?l:new Qt(l);return c.range=u.range,c.tag=i,a!=null&&a.format&&(c.format=a.format),c}function Yhe(e,t,r){const n=e.offset,o=hat(e,t,r);if(!o)return{value:"",type:null,comment:"",range:[n,n,n]};const i=o.mode===">"?Qt.BLOCK_FOLDED:Qt.BLOCK_LITERAL,s=e.source?pat(e.source):[];let a=s.length;for(let v=s.length-1;v>=0;--v){const y=s[v][1];if(y===""||y==="\r")a=v;else break}if(a===0){const v=o.chomp==="+"&&s.length>0?` +`}};function Jg(e,{flow:t,indicator:r,next:n,offset:o,onError:i,startOnNewline:s}){let a=!1,u=s,l=s,c="",f="",d=!1,h=!1,g=!1,v=null,y=null,E=null,_=null,S=null;for(const T of e)switch(g&&(T.type!=="space"&&T.type!=="newline"&&T.type!=="comma"&&i(T.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),g=!1),T.type){case"space":!t&&u&&r!=="doc-start"&&T.source[0]===" "&&i(T,"TAB_AS_INDENT","Tabs are not allowed as indentation"),l=!0;break;case"comment":{l||i(T,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const x=T.source.substring(1)||" ";c?c+=f+x:c=x,f="",u=!1;break}case"newline":u?c?c+=T.source:a=!0:f+=T.source,u=!0,d=!0,(v||y)&&(h=!0),l=!0;break;case"anchor":v&&i(T,"MULTIPLE_ANCHORS","A node can have at most one anchor"),T.source.endsWith(":")&&i(T.offset+T.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),v=T,S===null&&(S=T.offset),u=!1,l=!1,g=!0;break;case"tag":{y&&i(T,"MULTIPLE_TAGS","A node can have at most one tag"),y=T,S===null&&(S=T.offset),u=!1,l=!1,g=!0;break}case r:(v||y)&&i(T,"BAD_PROP_ORDER",`Anchors and tags must be after the ${T.source} indicator`),_&&i(T,"UNEXPECTED_TOKEN",`Unexpected ${T.source} in ${t??"collection"}`),_=T,u=!1,l=!1;break;case"comma":if(t){E&&i(T,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),E=T,u=!1,l=!1;break}default:i(T,"UNEXPECTED_TOKEN",`Unexpected ${T.type} token`),u=!1,l=!1}const b=e[e.length-1],A=b?b.offset+b.source.length:o;return g&&n&&n.type!=="space"&&n.type!=="newline"&&n.type!=="comma"&&(n.type!=="scalar"||n.source!=="")&&i(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:E,found:_,spaceBefore:a,comment:c,hasNewline:d,hasNewlineAfterProp:h,anchor:v,tag:y,end:A,start:S??A}}function c_(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(` +`))return!0;if(e.end){for(const t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(const t of e.items){for(const r of t.start)if(r.type==="newline")return!0;if(t.sep){for(const r of t.sep)if(r.type==="newline")return!0}if(c_(t.key)||c_(t.value))return!0}return!1;default:return!0}}function NM(e,t,r){if((t==null?void 0:t.type)==="flow-collection"){const n=t.end[0];n.indent===e&&(n.source==="]"||n.source==="}")&&c_(t)&&r(n,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function tpe(e,t,r){const{uniqueKeys:n}=e.options;if(n===!1)return!1;const o=typeof n=="function"?n:(i,s)=>i===s||gn(i)&&gn(s)&&i.value===s.value&&!(i.value==="<<"&&e.schema.merge);return t.some(i=>o(i.key,r))}const hee="All mapping items must start at the same column";function mat({composeNode:e,composeEmptyNode:t},r,n,o,i){var c;const s=(i==null?void 0:i.nodeClass)??ia,a=new s(r.schema);r.atRoot&&(r.atRoot=!1);let u=n.offset,l=null;for(const f of n.items){const{start:d,key:h,sep:g,value:v}=f,y=Jg(d,{indicator:"explicit-key-ind",next:h??(g==null?void 0:g[0]),offset:u,onError:o,startOnNewline:!0}),E=!y.found;if(E){if(h&&(h.type==="block-seq"?o(u,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in h&&h.indent!==n.indent&&o(u,"BAD_INDENT",hee)),!y.anchor&&!y.tag&&!g){l=y.end,y.comment&&(a.comment?a.comment+=` +`+y.comment:a.comment=y.comment);continue}(y.hasNewlineAfterProp||c_(h))&&o(h??d[d.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((c=y.found)==null?void 0:c.indent)!==n.indent&&o(u,"BAD_INDENT",hee);const _=y.end,S=h?e(r,h,y,o):t(r,_,d,null,y,o);r.schema.compat&&NM(n.indent,h,o),tpe(r,a.items,S)&&o(_,"DUPLICATE_KEY","Map keys must be unique");const b=Jg(g??[],{indicator:"map-value-ind",next:v,offset:S.range[2],onError:o,startOnNewline:!h||h.type==="block-scalar"});if(u=b.end,b.found){E&&((v==null?void 0:v.type)==="block-map"&&!b.hasNewline&&o(u,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),r.options.strict&&y.starte&&(e.type==="block-map"||e.type==="block-seq");function bat({composeNode:e,composeEmptyNode:t},r,n,o,i){const s=n.start.source==="{",a=s?"flow map":"flow sequence",u=(i==null?void 0:i.nodeClass)??(s?ia:m1),l=new u(r.schema);l.flow=!0;const c=r.atRoot;c&&(r.atRoot=!1);let f=n.offset+n.start.source.length;for(let y=0;y0){const y=TE(g,v,r.options.strict,o);y.comment&&(l.comment?l.comment+=` +`+y.comment:l.comment=y.comment),l.range=[n.offset,v,y.offset]}else l.range=[n.offset,v,v];return l}function m3(e,t,r,n,o,i){const s=r.type==="block-map"?mat(e,t,r,n,i):r.type==="block-seq"?yat(e,t,r,n,i):bat(e,t,r,n,i),a=s.constructor;return o==="!"||o===a.tagName?(s.tag=a.tagName,s):(o&&(s.tag=o),s)}function _at(e,t,r,n,o){var f;const i=n?t.directives.tagName(n.source,d=>o(n,"TAG_RESOLVE_FAILED",d)):null,s=r.type==="block-map"?"map":r.type==="block-seq"?"seq":r.start.source==="{"?"map":"seq";if(!n||!i||i==="!"||i===ia.tagName&&s==="map"||i===m1.tagName&&s==="seq"||!s)return m3(e,t,r,o,i);let a=t.schema.tags.find(d=>d.tag===i&&d.collection===s);if(!a){const d=t.schema.knownTags[i];if(d&&d.collection===s)t.schema.tags.push(Object.assign({},d,{default:!1})),a=d;else return d!=null&&d.collection?o(n,"BAD_COLLECTION_TYPE",`${d.tag} used for ${s} collection, but expects ${d.collection}`,!0):o(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${i}`,!0),m3(e,t,r,o,i)}const u=m3(e,t,r,o,i,a),l=((f=a.resolve)==null?void 0:f.call(a,u,d=>o(n,"TAG_RESOLVE_FAILED",d),t.options))??u,c=ho(l)?l:new Zt(l);return c.range=u.range,c.tag=i,a!=null&&a.format&&(c.format=a.format),c}function rpe(e,t,r){const n=e.offset,o=Eat(e,t,r);if(!o)return{value:"",type:null,comment:"",range:[n,n,n]};const i=o.mode===">"?Zt.BLOCK_FOLDED:Zt.BLOCK_LITERAL,s=e.source?Sat(e.source):[];let a=s.length;for(let v=s.length-1;v>=0;--v){const y=s[v][1];if(y===""||y==="\r")a=v;else break}if(a===0){const v=o.chomp==="+"&&s.length>0?` `.repeat(Math.max(1,s.length-1)):"";let y=n+o.length;return e.source&&(y+=e.source.length),{value:v,type:i,comment:o.comment,range:[n,y,y]}}let u=e.indent+o.indent,l=e.offset+o.length,c=0;for(let v=0;vu&&(u=y.length);else{if(y.length=a;--v)s[v][0].length>u&&(a=v+1);let f="",d="",h=!1;for(let v=0;vu||E[0]===" "?(d===" "?d=` `:!h&&d===` `&&(d=` @@ -554,82 +554,82 @@ ${l} `+s[v][0].slice(u);f[f.length-1]!==` `&&(f+=` `);break;default:f+=` -`}const g=n+o.length+e.source.length;return{value:f,type:i,comment:o.comment,range:[n,g,g]}}function hat({offset:e,props:t},r,n){if(t[0].type!=="block-scalar-header")return n(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:o}=t[0],i=o[0];let s=0,a="",u=-1;for(let d=1;dr(n+d,h,g);switch(o){case"scalar":a=Qt.PLAIN,u=gat(i,l);break;case"single-quoted-scalar":a=Qt.QUOTE_SINGLE,u=vat(i,l);break;case"double-quoted-scalar":a=Qt.QUOTE_DOUBLE,u=mat(i,l);break;default:return r(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[n,n+i.length,n+i.length]}}const c=n+i.length,f=kE(s,c,t,r);return{value:u,type:a,comment:f.comment,range:[n,c,f.offset]}}function gat(e,t){let r="";switch(e[0]){case" ":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":{r=`block scalar indicator ${e[0]}`;break}case"@":case"`":{r=`reserved character ${e[0]}`;break}}return r&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`),Qhe(e)}function vat(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),Qhe(e.slice(1,-1)).replace(/''/g,"'")}function Qhe(e){let t,r;try{t=new RegExp(`(.*?)(?r(n+d,h,g);switch(o){case"scalar":a=Zt.PLAIN,u=wat(i,l);break;case"single-quoted-scalar":a=Zt.QUOTE_SINGLE,u=Aat(i,l);break;case"double-quoted-scalar":a=Zt.QUOTE_DOUBLE,u=kat(i,l);break;default:return r(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[n,n+i.length,n+i.length]}}const c=n+i.length,f=TE(s,c,t,r);return{value:u,type:a,comment:f.comment,range:[n,c,f.offset]}}function wat(e,t){let r="";switch(e[0]){case" ":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":{r=`block scalar indicator ${e[0]}`;break}case"@":case"`":{r=`reserved character ${e[0]}`;break}}return r&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`),ope(e)}function Aat(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),ope(e.slice(1,-1)).replace(/''/g,"'")}function ope(e){let t,r;try{t=new RegExp(`(.*?)(?i?e.slice(i,n+1):o)}else r+=o}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),r}function yat(e,t){let r="",n=e[t+1];for(;(n===" "||n===" "||n===` +`)&&(r+=n>i?e.slice(i,n+1):o)}else r+=o}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),r}function xat(e,t){let r="",n=e[t+1];for(;(n===" "||n===" "||n===` `||n==="\r")&&!(n==="\r"&&e[t+2]!==` `);)n===` `&&(r+=` -`),t+=1,n=e[t+1];return r||(r=" "),{fold:r,offset:t}}const bat={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:` -`,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function _at(e,t,r,n){const o=e.substr(t,r),s=o.length===r&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;if(isNaN(s)){const a=e.substr(t-2,r+2);return n(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),a}return String.fromCodePoint(s)}function Zhe(e,t,r,n){const{value:o,type:i,comment:s,range:a}=t.type==="block-scalar"?Yhe(t,e.options.strict,n):Xhe(t,e.options.strict,n),u=r?e.directives.tagName(r.source,f=>n(r,"TAG_RESOLVE_FAILED",f)):null,l=r&&u?Eat(e.schema,o,u,r,n):t.type==="scalar"?Sat(e,o,t,n):e.schema[Df];let c;try{const f=l.resolve(o,d=>n(r??t,"TAG_RESOLVE_FAILED",d),e.options);c=vn(f)?f:new Qt(f)}catch(f){const d=f instanceof Error?f.message:String(f);n(r??t,"TAG_RESOLVE_FAILED",d),c=new Qt(o)}return c.range=a,c.source=o,i&&(c.type=i),u&&(c.tag=u),l.format&&(c.format=l.format),s&&(c.comment=s),c}function Eat(e,t,r,n,o){var a;if(r==="!")return e[Df];const i=[];for(const u of e.tags)if(!u.collection&&u.tag===r)if(u.default&&u.test)i.push(u);else return u;for(const u of i)if((a=u.test)!=null&&a.test(t))return u;const s=e.knownTags[r];return s&&!s.collection?(e.tags.push(Object.assign({},s,{default:!1,test:void 0})),s):(o(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,r!=="tag:yaml.org,2002:str"),e[Df])}function Sat({directives:e,schema:t},r,n,o){const i=t.tags.find(s=>{var a;return s.default&&((a=s.test)==null?void 0:a.test(r))})||t[Df];if(t.compat){const s=t.compat.find(a=>{var u;return a.default&&((u=a.test)==null?void 0:u.test(r))})??t[Df];if(i.tag!==s.tag){const a=e.tagString(i.tag),u=e.tagString(s.tag),l=`Value may be parsed as either ${a} or ${u}`;o(n,"TAG_RESOLVE_FAILED",l,!0)}}return i}function wat(e,t,r){if(t){r===null&&(r=t.length);for(let n=r-1;n>=0;--n){let o=t[n];switch(o.type){case"space":case"comment":case"newline":e-=o.source.length;continue}for(o=t[++n];(o==null?void 0:o.type)==="space";)e+=o.source.length,o=t[++n];break}}return e}const kat={composeNode:Jhe,composeEmptyNode:Bj};function Jhe(e,t,r,n){const{spaceBefore:o,comment:i,anchor:s,tag:a}=r;let u,l=!0;switch(t.type){case"alias":u=Aat(e,t,n),(s||a)&&n(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":u=Zhe(e,t,a,n),s&&(u.anchor=s.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":u=dat(kat,e,t,a,n),s&&(u.anchor=s.source.substring(1));break;default:{const c=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;n(t,"UNEXPECTED_TOKEN",c),u=Bj(e,t.offset,void 0,null,r,n),l=!1}}return s&&u.anchor===""&&n(s,"BAD_ALIAS","Anchor cannot be an empty string"),o&&(u.spaceBefore=!0),i&&(t.type==="scalar"&&t.source===""?u.comment=i:u.commentBefore=i),e.options.keepSourceTokens&&l&&(u.srcToken=t),u}function Bj(e,t,r,n,{spaceBefore:o,comment:i,anchor:s,tag:a,end:u},l){const c={type:"scalar",offset:wat(t,r,n),indent:-1,source:""},f=Zhe(e,c,a,l);return s&&(f.anchor=s.source.substring(1),f.anchor===""&&l(s,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(f.spaceBefore=!0),i&&(f.comment=i,f.range[2]=u),f}function Aat({options:e},{offset:t,source:r,end:n},o){const i=new q9(r.substring(1));i.source===""&&o(t,"BAD_ALIAS","Alias cannot be an empty string"),i.source.endsWith(":")&&o(t+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const s=t+r.length,a=kE(n,s,e.strict,o);return i.range=[t,s,a.offset],a.comment&&(i.comment=a.comment),i}function Tat(e,t,{offset:r,start:n,value:o,end:i},s){const a=Object.assign({_directives:t},e),u=new e5(void 0,a),l={atRoot:!0,directives:u.directives,options:u.options,schema:u.schema},c=Qg(n,{indicator:"doc-start",next:o??(i==null?void 0:i[0]),offset:r,onError:s,startOnNewline:!0});c.found&&(u.directives.docStart=!0,o&&(o.type==="block-map"||o.type==="block-seq")&&!c.hasNewline&&s(c.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),u.contents=o?Jhe(l,o,c,s):Bj(l,c.end,n,null,c,s);const f=u.contents.range[2],d=kE(i,f,!1,s);return d.comment&&(u.comment=d.comment),u.range=[r,f,d.offset],u}function $m(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:r}=e;return[t,t+(typeof r=="string"?r.length:1)]}function see(e){var o;let t="",r=!1,n=!1;for(let i=0;in(r,"TAG_RESOLVE_FAILED",f)):null,l=r&&u?Cat(e.schema,o,u,r,n):t.type==="scalar"?Nat(e,o,t,n):e.schema[Ff];let c;try{const f=l.resolve(o,d=>n(r??t,"TAG_RESOLVE_FAILED",d),e.options);c=gn(f)?f:new Zt(f)}catch(f){const d=f instanceof Error?f.message:String(f);n(r??t,"TAG_RESOLVE_FAILED",d),c=new Zt(o)}return c.range=a,c.source=o,i&&(c.type=i),u&&(c.tag=u),l.format&&(c.format=l.format),s&&(c.comment=s),c}function Cat(e,t,r,n,o){var a;if(r==="!")return e[Ff];const i=[];for(const u of e.tags)if(!u.collection&&u.tag===r)if(u.default&&u.test)i.push(u);else return u;for(const u of i)if((a=u.test)!=null&&a.test(t))return u;const s=e.knownTags[r];return s&&!s.collection?(e.tags.push(Object.assign({},s,{default:!1,test:void 0})),s):(o(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,r!=="tag:yaml.org,2002:str"),e[Ff])}function Nat({directives:e,schema:t},r,n,o){const i=t.tags.find(s=>{var a;return s.default&&((a=s.test)==null?void 0:a.test(r))})||t[Ff];if(t.compat){const s=t.compat.find(a=>{var u;return a.default&&((u=a.test)==null?void 0:u.test(r))})??t[Ff];if(i.tag!==s.tag){const a=e.tagString(i.tag),u=e.tagString(s.tag),l=`Value may be parsed as either ${a} or ${u}`;o(n,"TAG_RESOLVE_FAILED",l,!0)}}return i}function Rat(e,t,r){if(t){r===null&&(r=t.length);for(let n=r-1;n>=0;--n){let o=t[n];switch(o.type){case"space":case"comment":case"newline":e-=o.source.length;continue}for(o=t[++n];(o==null?void 0:o.type)==="space";)e+=o.source.length,o=t[++n];break}}return e}const Oat={composeNode:spe,composeEmptyNode:Hj};function spe(e,t,r,n){const{spaceBefore:o,comment:i,anchor:s,tag:a}=r;let u,l=!0;switch(t.type){case"alias":u=Dat(e,t,n),(s||a)&&n(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":u=ipe(e,t,a,n),s&&(u.anchor=s.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":u=_at(Oat,e,t,a,n),s&&(u.anchor=s.source.substring(1));break;default:{const c=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;n(t,"UNEXPECTED_TOKEN",c),u=Hj(e,t.offset,void 0,null,r,n),l=!1}}return s&&u.anchor===""&&n(s,"BAD_ALIAS","Anchor cannot be an empty string"),o&&(u.spaceBefore=!0),i&&(t.type==="scalar"&&t.source===""?u.comment=i:u.commentBefore=i),e.options.keepSourceTokens&&l&&(u.srcToken=t),u}function Hj(e,t,r,n,{spaceBefore:o,comment:i,anchor:s,tag:a,end:u},l){const c={type:"scalar",offset:Rat(t,r,n),indent:-1,source:""},f=ipe(e,c,a,l);return s&&(f.anchor=s.source.substring(1),f.anchor===""&&l(s,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(f.spaceBefore=!0),i&&(f.comment=i,f.range[2]=u),f}function Dat({options:e},{offset:t,source:r,end:n},o){const i=new V9(r.substring(1));i.source===""&&o(t,"BAD_ALIAS","Alias cannot be an empty string"),i.source.endsWith(":")&&o(t+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const s=t+r.length,a=TE(n,s,e.strict,o);return i.range=[t,s,a.offset],a.comment&&(i.comment=a.comment),i}function Fat(e,t,{offset:r,start:n,value:o,end:i},s){const a=Object.assign({_directives:t},e),u=new o5(void 0,a),l={atRoot:!0,directives:u.directives,options:u.options,schema:u.schema},c=Jg(n,{indicator:"doc-start",next:o??(i==null?void 0:i[0]),offset:r,onError:s,startOnNewline:!0});c.found&&(u.directives.docStart=!0,o&&(o.type==="block-map"||o.type==="block-seq")&&!c.hasNewline&&s(c.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),u.contents=o?spe(l,o,c,s):Hj(l,c.end,n,null,c,s);const f=u.contents.range[2],d=TE(i,f,!1,s);return d.comment&&(u.comment=d.comment),u.range=[r,f,d.offset],u}function Pm(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:r}=e;return[t,t+(typeof r=="string"?r.length:1)]}function pee(e){var o;let t="",r=!1,n=!1;for(let i=0;i{const s=$m(r);i?this.warnings.push(new Vhe(s,n,o)):this.errors.push(new Th(s,n,o))},this.directives=new Gi({version:t.version||"1.2"}),this.options=t}decorate(t,r){const{comment:n,afterEmptyLine:o}=see(this.prelude);if(n){const i=t.contents;if(r)t.comment=t.comment?`${t.comment} -${n}`:n;else if(o||t.directives.docStart||!i)t.commentBefore=n;else if(qn(i)&&!i.flow&&i.items.length>0){let s=i.items[0];Mn(s)&&(s=s.key);const a=s.commentBefore;s.commentBefore=a?`${n} +`)+(s.substring(1)||" "),r=!0,n=!1;break;case"%":((o=e[i+1])==null?void 0:o[0])!=="#"&&(i+=1),r=!1;break;default:r||(n=!0),r=!1}}return{comment:t,afterEmptyLine:n}}class $j{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(r,n,o,i)=>{const s=Pm(r);i?this.warnings.push(new epe(s,n,o)):this.errors.push(new kh(s,n,o))},this.directives=new Gi({version:t.version||"1.2"}),this.options=t}decorate(t,r){const{comment:n,afterEmptyLine:o}=pee(this.prelude);if(n){const i=t.contents;if(r)t.comment=t.comment?`${t.comment} +${n}`:n;else if(o||t.directives.docStart||!i)t.commentBefore=n;else if(Pn(i)&&!i.flow&&i.items.length>0){let s=i.items[0];Bn(s)&&(s=s.key);const a=s.commentBefore;s.commentBefore=a?`${n} ${a}`:n}else{const s=i.commentBefore;i.commentBefore=s?`${n} -${s}`:n}}r?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:see(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,r=!1,n=-1){for(const o of t)yield*this.next(o);yield*this.end(r,n)}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(r,n,o)=>{const i=$m(t);i[0]+=r,this.onError(i,"BAD_DIRECTIVE",n,o)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const r=Tat(this.options,this.directives,t,this.onError);this.atDirectives&&!r.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(r,!1),this.doc&&(yield this.doc),this.doc=r,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{const r=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,n=new Th($m(t),"UNEXPECTED_TOKEN",r);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){const n="Unexpected doc-end without preceding document";this.errors.push(new Th($m(t),"UNEXPECTED_TOKEN",n));break}this.doc.directives.docEnd=!0;const r=kE(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),r.comment){const n=this.doc.comment;this.doc.comment=n?`${n} -${r.comment}`:r.comment}this.doc.range[2]=r.offset;break}default:this.errors.push(new Th($m(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,r=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){const n=Object.assign({_directives:this.directives},this.options),o=new e5(void 0,n);this.atDirectives&&this.onError(r,"MISSING_CHAR","Missing directives-end indicator line"),o.range=[0,r,r],this.decorate(o,!1),yield o}}}function xat(e,t=!0,r){if(e){const n=(o,i,s)=>{const a=typeof o=="number"?o:Array.isArray(o)?o[0]:o.offset;if(r)r(a,i,s);else throw new Th([a,a+1],i,s)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return Xhe(e,t,n);case"block-scalar":return Yhe(e,t,n)}}return null}function Iat(e,t){const{implicitKey:r=!1,indent:n,inFlow:o=!1,offset:i=-1,type:s="PLAIN"}=t,a=SE({type:s,value:e},{implicitKey:r,indent:n>0?" ".repeat(n):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}}),u=t.end??[{type:"newline",offset:-1,indent:n,source:` +${s}`:n}}r?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:pee(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,r=!1,n=-1){for(const o of t)yield*this.next(o);yield*this.end(r,n)}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(r,n,o)=>{const i=Pm(t);i[0]+=r,this.onError(i,"BAD_DIRECTIVE",n,o)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const r=Fat(this.options,this.directives,t,this.onError);this.atDirectives&&!r.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(r,!1),this.doc&&(yield this.doc),this.doc=r,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{const r=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,n=new kh(Pm(t),"UNEXPECTED_TOKEN",r);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){const n="Unexpected doc-end without preceding document";this.errors.push(new kh(Pm(t),"UNEXPECTED_TOKEN",n));break}this.doc.directives.docEnd=!0;const r=TE(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),r.comment){const n=this.doc.comment;this.doc.comment=n?`${n} +${r.comment}`:r.comment}this.doc.range[2]=r.offset;break}default:this.errors.push(new kh(Pm(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,r=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){const n=Object.assign({_directives:this.directives},this.options),o=new o5(void 0,n);this.atDirectives&&this.onError(r,"MISSING_CHAR","Missing directives-end indicator line"),o.range=[0,r,r],this.decorate(o,!1),yield o}}}function Bat(e,t=!0,r){if(e){const n=(o,i,s)=>{const a=typeof o=="number"?o:Array.isArray(o)?o[0]:o.offset;if(r)r(a,i,s);else throw new kh([a,a+1],i,s)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return npe(e,t,n);case"block-scalar":return rpe(e,t,n)}}return null}function Mat(e,t){const{implicitKey:r=!1,indent:n,inFlow:o=!1,offset:i=-1,type:s="PLAIN"}=t,a=kE({type:s,value:e},{implicitKey:r,indent:n>0?" ".repeat(n):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}}),u=t.end??[{type:"newline",offset:-1,indent:n,source:` `}];switch(a[0]){case"|":case">":{const l=a.indexOf(` `),c=a.substring(0,l),f=a.substring(l+1)+` -`,d=[{type:"block-scalar-header",offset:i,indent:n,source:c}];return epe(d,u)||d.push({type:"newline",offset:-1,indent:n,source:` -`}),{type:"block-scalar",offset:i,indent:n,props:d,source:f}}case'"':return{type:"double-quoted-scalar",offset:i,indent:n,source:a,end:u};case"'":return{type:"single-quoted-scalar",offset:i,indent:n,source:a,end:u};default:return{type:"scalar",offset:i,indent:n,source:a,end:u}}}function Nat(e,t,r={}){let{afterKey:n=!1,implicitKey:o=!1,inFlow:i=!1,type:s}=r,a="indent"in e?e.indent:null;if(n&&typeof a=="number"&&(a+=2),!s)switch(e.type){case"single-quoted-scalar":s="QUOTE_SINGLE";break;case"double-quoted-scalar":s="QUOTE_DOUBLE";break;case"block-scalar":{const l=e.props[0];if(l.type!=="block-scalar-header")throw new Error("Invalid block scalar header");s=l.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:s="PLAIN"}const u=SE({type:s,value:t},{implicitKey:o||a===null,indent:a!==null&&a>0?" ".repeat(a):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}});switch(u[0]){case"|":case">":Cat(e,u);break;case'"':p3(e,u,"double-quoted-scalar");break;case"'":p3(e,u,"single-quoted-scalar");break;default:p3(e,u,"scalar")}}function Cat(e,t){const r=t.indexOf(` +`,d=[{type:"block-scalar-header",offset:i,indent:n,source:c}];return ape(d,u)||d.push({type:"newline",offset:-1,indent:n,source:` +`}),{type:"block-scalar",offset:i,indent:n,props:d,source:f}}case'"':return{type:"double-quoted-scalar",offset:i,indent:n,source:a,end:u};case"'":return{type:"single-quoted-scalar",offset:i,indent:n,source:a,end:u};default:return{type:"scalar",offset:i,indent:n,source:a,end:u}}}function Lat(e,t,r={}){let{afterKey:n=!1,implicitKey:o=!1,inFlow:i=!1,type:s}=r,a="indent"in e?e.indent:null;if(n&&typeof a=="number"&&(a+=2),!s)switch(e.type){case"single-quoted-scalar":s="QUOTE_SINGLE";break;case"double-quoted-scalar":s="QUOTE_DOUBLE";break;case"block-scalar":{const l=e.props[0];if(l.type!=="block-scalar-header")throw new Error("Invalid block scalar header");s=l.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:s="PLAIN"}const u=kE({type:s,value:t},{implicitKey:o||a===null,indent:a!==null&&a>0?" ".repeat(a):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}});switch(u[0]){case"|":case">":jat(e,u);break;case'"':y3(e,u,"double-quoted-scalar");break;case"'":y3(e,u,"single-quoted-scalar");break;default:y3(e,u,"scalar")}}function jat(e,t){const r=t.indexOf(` `),n=t.substring(0,r),o=t.substring(r+1)+` -`;if(e.type==="block-scalar"){const i=e.props[0];if(i.type!=="block-scalar-header")throw new Error("Invalid block scalar header");i.source=n,e.source=o}else{const{offset:i}=e,s="indent"in e?e.indent:-1,a=[{type:"block-scalar-header",offset:i,indent:s,source:n}];epe(a,"end"in e?e.end:void 0)||a.push({type:"newline",offset:-1,indent:s,source:` -`});for(const u of Object.keys(e))u!=="type"&&u!=="offset"&&delete e[u];Object.assign(e,{type:"block-scalar",indent:s,props:a,source:o})}}function epe(e,t){if(t)for(const r of t)switch(r.type){case"space":case"comment":e.push(r);break;case"newline":return e.push(r),!0}return!1}function p3(e,t,r){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=r,e.source=t;break;case"block-scalar":{const n=e.props.slice(1);let o=t.length;e.props[0].type==="block-scalar-header"&&(o-=e.props[0].source.length);for(const i of n)i.offset+=o;delete e.props,Object.assign(e,{type:r,source:t,end:n});break}case"block-map":case"block-seq":{const o={type:"newline",offset:e.offset+t.length,indent:e.indent,source:` -`};delete e.items,Object.assign(e,{type:r,source:t,end:[o]});break}default:{const n="indent"in e?e.indent:-1,o="end"in e&&Array.isArray(e.end)?e.end.filter(i=>i.type==="space"||i.type==="comment"||i.type==="newline"):[];for(const i of Object.keys(e))i!=="type"&&i!=="offset"&&delete e[i];Object.assign(e,{type:r,indent:n,source:t,end:o})}}}const Rat=e=>"type"in e?dT(e):zk(e);function dT(e){switch(e.type){case"block-scalar":{let t="";for(const r of e.props)t+=dT(r);return t+e.source}case"block-map":case"block-seq":{let t="";for(const r of e.items)t+=zk(r);return t}case"flow-collection":{let t=e.start.source;for(const r of e.items)t+=zk(r);for(const r of e.end)t+=r.source;return t}case"document":{let t=zk(e);if(e.end)for(const r of e.end)t+=r.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const r of e.end)t+=r.source;return t}}}function zk({start:e,key:t,sep:r,value:n}){let o="";for(const i of e)o+=i.source;if(t&&(o+=dT(t)),r)for(const i of r)o+=i.source;return n&&(o+=dT(n)),o}const xM=Symbol("break visit"),Oat=Symbol("skip children"),tpe=Symbol("remove item");function Xh(e,t){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),rpe(Object.freeze([]),e,t)}Xh.BREAK=xM;Xh.SKIP=Oat;Xh.REMOVE=tpe;Xh.itemAtPath=(e,t)=>{let r=e;for(const[n,o]of t){const i=r==null?void 0:r[n];if(i&&"items"in i)r=i.items[o];else return}return r};Xh.parentCollection=(e,t)=>{const r=Xh.itemAtPath(e,t.slice(0,-1)),n=t[t.length-1][0],o=r==null?void 0:r[n];if(o&&"items"in o)return o;throw new Error("Parent collection not found")};function rpe(e,t,r){let n=r(t,e);if(typeof n=="symbol")return n;for(const o of["key","value"]){const i=t[o];if(i&&"items"in i){for(let s=0;s!!e&&"items"in e,Fat=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function Bat(e){switch(e){case t5:return"";case r5:return"";case n5:return"";case u_:return"";default:return JSON.stringify(e)}}function npe(e){switch(e){case t5:return"byte-order-mark";case r5:return"doc-mode";case n5:return"flow-error-end";case u_:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case` +`;if(e.type==="block-scalar"){const i=e.props[0];if(i.type!=="block-scalar-header")throw new Error("Invalid block scalar header");i.source=n,e.source=o}else{const{offset:i}=e,s="indent"in e?e.indent:-1,a=[{type:"block-scalar-header",offset:i,indent:s,source:n}];ape(a,"end"in e?e.end:void 0)||a.push({type:"newline",offset:-1,indent:s,source:` +`});for(const u of Object.keys(e))u!=="type"&&u!=="offset"&&delete e[u];Object.assign(e,{type:"block-scalar",indent:s,props:a,source:o})}}function ape(e,t){if(t)for(const r of t)switch(r.type){case"space":case"comment":e.push(r);break;case"newline":return e.push(r),!0}return!1}function y3(e,t,r){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=r,e.source=t;break;case"block-scalar":{const n=e.props.slice(1);let o=t.length;e.props[0].type==="block-scalar-header"&&(o-=e.props[0].source.length);for(const i of n)i.offset+=o;delete e.props,Object.assign(e,{type:r,source:t,end:n});break}case"block-map":case"block-seq":{const o={type:"newline",offset:e.offset+t.length,indent:e.indent,source:` +`};delete e.items,Object.assign(e,{type:r,source:t,end:[o]});break}default:{const n="indent"in e?e.indent:-1,o="end"in e&&Array.isArray(e.end)?e.end.filter(i=>i.type==="space"||i.type==="comment"||i.type==="newline"):[];for(const i of Object.keys(e))i!=="type"&&i!=="offset"&&delete e[i];Object.assign(e,{type:r,indent:n,source:t,end:o})}}}const zat=e=>"type"in e?mx(e):qA(e);function mx(e){switch(e.type){case"block-scalar":{let t="";for(const r of e.props)t+=mx(r);return t+e.source}case"block-map":case"block-seq":{let t="";for(const r of e.items)t+=qA(r);return t}case"flow-collection":{let t=e.start.source;for(const r of e.items)t+=qA(r);for(const r of e.end)t+=r.source;return t}case"document":{let t=qA(e);if(e.end)for(const r of e.end)t+=r.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const r of e.end)t+=r.source;return t}}}function qA({start:e,key:t,sep:r,value:n}){let o="";for(const i of e)o+=i.source;if(t&&(o+=mx(t)),r)for(const i of r)o+=i.source;return n&&(o+=mx(n)),o}const RM=Symbol("break visit"),Hat=Symbol("skip children"),upe=Symbol("remove item");function Yh(e,t){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),lpe(Object.freeze([]),e,t)}Yh.BREAK=RM;Yh.SKIP=Hat;Yh.REMOVE=upe;Yh.itemAtPath=(e,t)=>{let r=e;for(const[n,o]of t){const i=r==null?void 0:r[n];if(i&&"items"in i)r=i.items[o];else return}return r};Yh.parentCollection=(e,t)=>{const r=Yh.itemAtPath(e,t.slice(0,-1)),n=t[t.length-1][0],o=r==null?void 0:r[n];if(o&&"items"in o)return o;throw new Error("Parent collection not found")};function lpe(e,t,r){let n=r(t,e);if(typeof n=="symbol")return n;for(const o of["key","value"]){const i=t[o];if(i&&"items"in i){for(let s=0;s!!e&&"items"in e,Pat=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function qat(e){switch(e){case i5:return"";case s5:return"";case a5:return"";case f_:return"";default:return JSON.stringify(e)}}function cpe(e){switch(e){case i5:return"byte-order-mark";case s5:return"doc-mode";case a5:return"flow-error-end";case f_:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case` `:case`\r -`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}const Mat=Object.freeze(Object.defineProperty({__proto__:null,BOM:t5,DOCUMENT:r5,FLOW_END:n5,SCALAR:u_,createScalarToken:Iat,isCollection:Dat,isScalar:Fat,prettyToken:Bat,resolveAsScalar:xat,setScalarValue:Nat,stringify:Rat,tokenType:npe,visit:Xh},Symbol.toStringTag,{value:"Module"}));function Ga(e){switch(e){case void 0:case" ":case` -`:case"\r":case" ":return!0;default:return!1}}const aee="0123456789ABCDEFabcdef".split(""),Lat="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),g3=",[]{}".split(""),jat=` ,[]{} -\r `.split(""),v3=e=>!e||jat.includes(e);class ope{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,r=!1){t&&(this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null),this.atEnd=!r;let n=this.next??"stream";for(;n&&(r||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let t=this.pos,r=this.buffer[t];for(;r===" "||r===" ";)r=this.buffer[++t];return!r||r==="#"||r===` +`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}const Wat=Object.freeze(Object.defineProperty({__proto__:null,BOM:i5,DOCUMENT:s5,FLOW_END:a5,SCALAR:f_,createScalarToken:Mat,isCollection:$at,isScalar:Pat,prettyToken:qat,resolveAsScalar:Bat,setScalarValue:Lat,stringify:zat,tokenType:cpe,visit:Yh},Symbol.toStringTag,{value:"Module"}));function Ga(e){switch(e){case void 0:case" ":case` +`:case"\r":case" ":return!0;default:return!1}}const gee="0123456789ABCDEFabcdef".split(""),Kat="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),b3=",[]{}".split(""),Gat=` ,[]{} +\r `.split(""),_3=e=>!e||Gat.includes(e);class fpe{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,r=!1){t&&(this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null),this.atEnd=!r;let n=this.next??"stream";for(;n&&(r||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let t=this.pos,r=this.buffer[t];for(;r===" "||r===" ";)r=this.buffer[++t];return!r||r==="#"||r===` `?!0:r==="\r"?this.buffer[t+1]===` `:!1}charAt(t){return this.buffer[this.pos+t]}continueScalar(t){let r=this.buffer[t];if(this.indentNext>0){let n=0;for(;r===" ";)r=this.buffer[++n+t];if(r==="\r"){const o=this.buffer[n+t+1];if(o===` `||!o&&!this.atEnd)return t+n+1}return r===` `||n>=this.indentNext||!r&&!this.atEnd?t+n:-1}if(r==="-"||r==="."){const n=this.buffer.substr(t,3);if((n==="---"||n==="...")&&Ga(this.buffer[t+3]))return-1}return t}getLine(){let t=this.lineEndPos;return(typeof t!="number"||t!==-1&&tthis.indentValue&&!Ga(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[t,r]=this.peek(2);if(!r&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&Ga(r)){const n=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=n,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const t=this.getLine();if(t===null)return this.setNext("doc");let r=yield*this.pushIndicators();switch(t[r]){case"#":yield*this.pushCount(t.length-r);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(v3),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return r+=yield*this.parseBlockScalarHeader(),r+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-r),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,r,n=-1;do t=yield*this.pushNewline(),t>0?(r=yield*this.pushSpaces(!1),this.indentValue=n=r):r=0,r+=yield*this.pushSpaces(!0);while(t+r>0);const o=this.getLine();if(o===null)return this.setNext("flow");if((n!==-1&&nthis.indentValue&&!Ga(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[t,r]=this.peek(2);if(!r&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&Ga(r)){const n=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=n,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const t=this.getLine();if(t===null)return this.setNext("doc");let r=yield*this.pushIndicators();switch(t[r]){case"#":yield*this.pushCount(t.length-r);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(_3),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return r+=yield*this.parseBlockScalarHeader(),r+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-r),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,r,n=-1;do t=yield*this.pushNewline(),t>0?(r=yield*this.pushSpaces(!1),this.indentValue=n=r):r=0,r+=yield*this.pushSpaces(!0);while(t+r>0);const o=this.getLine();if(o===null)return this.setNext("flow");if((n!==-1&&n"0"&&r<="9")this.blockScalarIndent=Number(r)-1;else if(r!=="-")break}return yield*this.pushUntil(r=>Ga(r)||r==="#")}*parseBlockScalar(){let t=this.pos-1,r=0,n;e:for(let o=this.pos;n=this.buffer[o];++o)switch(n){case" ":r+=1;break;case` `:t=o,r=0;break;case"\r":{const i=this.buffer[o+1];if(!i&&!this.atEnd)return this.setNext("block-scalar");if(i===` `)break}default:break e}if(!n&&!this.atEnd)return this.setNext("block-scalar");if(r>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=r:this.indentNext+=this.blockScalarIndent;do{const o=this.continueScalar(t+1);if(o===-1)break;t=this.buffer.indexOf(` `,o)}while(t!==-1);if(t===-1){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}if(!this.blockScalarKeep)do{let o=t-1,i=this.buffer[o];i==="\r"&&(i=this.buffer[--o]);const s=o;for(;i===" "||i===" ";)i=this.buffer[--o];if(i===` -`&&o>=this.pos&&o+1+r>s)t=o;else break}while(!0);return yield u_,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const t=this.flowLevel>0;let r=this.pos-1,n=this.pos-1,o;for(;o=this.buffer[++n];)if(o===":"){const i=this.buffer[n+1];if(Ga(i)||t&&i===",")break;r=n}else if(Ga(o)){let i=this.buffer[n+1];if(o==="\r"&&(i===` +`&&o>=this.pos&&o+1+r>s)t=o;else break}while(!0);return yield f_,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const t=this.flowLevel>0;let r=this.pos-1,n=this.pos-1,o;for(;o=this.buffer[++n];)if(o===":"){const i=this.buffer[n+1];if(Ga(i)||t&&i===",")break;r=n}else if(Ga(o)){let i=this.buffer[n+1];if(o==="\r"&&(i===` `?(n+=1,o=` -`,i=this.buffer[n+1]):r=n),i==="#"||t&&g3.includes(i))break;if(o===` -`){const s=this.continueScalar(n+1);if(s===-1)break;n=Math.max(n,s-2)}}else{if(t&&g3.includes(o))break;r=n}return!o&&!this.atEnd?this.setNext("plain-scalar"):(yield u_,yield*this.pushToIndex(r+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,r){const n=this.buffer.slice(this.pos,t);return n?(yield n,this.pos+=n.length,n.length):(r&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(v3))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,r=this.charAt(1);if(Ga(r)||t&&g3.includes(r))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,r=this.buffer[t];for(;!Ga(r)&&r!==">";)r=this.buffer[++t];return yield*this.pushToIndex(r===">"?t+1:t,!1)}else{let t=this.pos+1,r=this.buffer[t];for(;r;)if(Lat.includes(r))r=this.buffer[++t];else if(r==="%"&&aee.includes(this.buffer[t+1])&&aee.includes(this.buffer[t+2]))r=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){const t=this.buffer[this.pos];return t===` +`,i=this.buffer[n+1]):r=n),i==="#"||t&&b3.includes(i))break;if(o===` +`){const s=this.continueScalar(n+1);if(s===-1)break;n=Math.max(n,s-2)}}else{if(t&&b3.includes(o))break;r=n}return!o&&!this.atEnd?this.setNext("plain-scalar"):(yield f_,yield*this.pushToIndex(r+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,r){const n=this.buffer.slice(this.pos,t);return n?(yield n,this.pos+=n.length,n.length):(r&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(_3))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,r=this.charAt(1);if(Ga(r)||t&&b3.includes(r))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,r=this.buffer[t];for(;!Ga(r)&&r!==">";)r=this.buffer[++t];return yield*this.pushToIndex(r===">"?t+1:t,!1)}else{let t=this.pos+1,r=this.buffer[t];for(;r;)if(Kat.includes(r))r=this.buffer[++t];else if(r==="%"&&gee.includes(this.buffer[t+1])&&gee.includes(this.buffer[t+2]))r=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){const t=this.buffer[this.pos];return t===` `?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===` -`?yield*this.pushCount(2):0}*pushSpaces(t){let r=this.pos-1,n;do n=this.buffer[++r];while(n===" "||t&&n===" ");const o=r-this.pos;return o>0&&(yield this.buffer.substr(this.pos,o),this.pos=r),o}*pushUntil(t){let r=this.pos,n=this.buffer[r];for(;!t(n);)n=this.buffer[++r];return yield*this.pushToIndex(r,!1)}}class ipe{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let r=0,n=this.lineStarts.length;for(;r>1;this.lineStarts[i]=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;((r=e[++t])==null?void 0:r.type)==="space";);return e.splice(t,e.length)}function lee(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!Wu(t.start,"explicit-key-ind")&&!Wu(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,spe(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}class Lj{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new ope,this.onNewLine=t}*parse(t,r=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const n of this.lexer.lex(t,r))yield*this.next(n);r||(yield*this.end())}*next(t){if(this.source=t,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}const r=npe(t);if(r)if(r==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=r,yield*this.step(),r){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{const n=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:n,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const t=this.peek(1);if(this.type==="doc-end"&&(!t||t.type!=="doc-end")){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){const r=t??this.stack.pop();if(r)if(this.stack.length===0)yield r;else{const n=this.peek(1);switch(r.type==="block-scalar"?r.indent="indent"in n?n.indent:0:r.type==="flow-collection"&&n.type==="document"&&(r.indent=0),r.type==="flow-collection"&&lee(r),n.type){case"document":n.value=r;break;case"block-scalar":n.props.push(r);break;case"block-map":{const o=n.items[n.items.length-1];if(o.value){n.items.push({start:[],key:r,sep:[]}),this.onKeyLine=!0;return}else if(o.sep)o.value=r;else{Object.assign(o,{key:r,sep:[]}),this.onKeyLine=!Wu(o.start,"explicit-key-ind");return}break}case"block-seq":{const o=n.items[n.items.length-1];o.value?n.items.push({start:[],value:r}):o.value=r;break}case"flow-collection":{const o=n.items[n.items.length-1];!o||o.value?n.items.push({start:[],key:r,sep:[]}):o.sep?o.value=r:Object.assign(o,{key:r,sep:[]});return}default:yield*this.pop(),yield*this.pop(r)}if((n.type==="document"||n.type==="block-map"||n.type==="block-seq")&&(r.type==="block-map"||r.type==="block-seq")){const o=r.items[r.items.length-1];o&&!o.sep&&!o.value&&o.start.length>0&&uee(o.start)===-1&&(r.indent===0||o.start.every(i=>i.type!=="comment"||i.indent0&&(yield this.buffer.substr(this.pos,o),this.pos=r),o}*pushUntil(t){let r=this.pos,n=this.buffer[r];for(;!t(n);)n=this.buffer[++r];return yield*this.pushToIndex(r,!1)}}class dpe{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let r=0,n=this.lineStarts.length;for(;r>1;this.lineStarts[i]=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;((r=e[++t])==null?void 0:r.type)==="space";);return e.splice(t,e.length)}function mee(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!Ku(t.start,"explicit-key-ind")&&!Ku(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,hpe(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}class Pj{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new fpe,this.onNewLine=t}*parse(t,r=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const n of this.lexer.lex(t,r))yield*this.next(n);r||(yield*this.end())}*next(t){if(this.source=t,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}const r=cpe(t);if(r)if(r==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=r,yield*this.step(),r){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{const n=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:n,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const t=this.peek(1);if(this.type==="doc-end"&&(!t||t.type!=="doc-end")){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){const r=t??this.stack.pop();if(r)if(this.stack.length===0)yield r;else{const n=this.peek(1);switch(r.type==="block-scalar"?r.indent="indent"in n?n.indent:0:r.type==="flow-collection"&&n.type==="document"&&(r.indent=0),r.type==="flow-collection"&&mee(r),n.type){case"document":n.value=r;break;case"block-scalar":n.props.push(r);break;case"block-map":{const o=n.items[n.items.length-1];if(o.value){n.items.push({start:[],key:r,sep:[]}),this.onKeyLine=!0;return}else if(o.sep)o.value=r;else{Object.assign(o,{key:r,sep:[]}),this.onKeyLine=!Ku(o.start,"explicit-key-ind");return}break}case"block-seq":{const o=n.items[n.items.length-1];o.value?n.items.push({start:[],value:r}):o.value=r;break}case"flow-collection":{const o=n.items[n.items.length-1];!o||o.value?n.items.push({start:[],key:r,sep:[]}):o.sep?o.value=r:Object.assign(o,{key:r,sep:[]});return}default:yield*this.pop(),yield*this.pop(r)}if((n.type==="document"||n.type==="block-map"||n.type==="block-seq")&&(r.type==="block-map"||r.type==="block-seq")){const o=r.items[r.items.length-1];o&&!o.sep&&!o.value&&o.start.length>0&&vee(o.start)===-1&&(r.indent===0||o.start.every(i=>i.type!=="comment"||i.indent=t.indent){const o=!this.onKeyLine&&this.indent===t.indent&&r.sep;let i=[];if(o&&r.sep&&!r.value){const s=[];for(let a=0;at.indent&&(s.length=0);break;default:s.length=0}}s.length>=2&&(i=r.sep.splice(s[1]))}switch(this.type){case"anchor":case"tag":o||r.value?(i.push(this.sourceToken),t.items.push({start:i}),this.onKeyLine=!0):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"explicit-key-ind":!r.sep&&!Wu(r.start,"explicit-key-ind")?r.start.push(this.sourceToken):o||r.value?(i.push(this.sourceToken),t.items.push({start:i})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]}),this.onKeyLine=!0;return;case"map-value-ind":if(Wu(r.start,"explicit-key-ind"))if(r.sep)if(r.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Wu(r.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(spe(r.key)&&!Wu(r.sep,"newline")){const s=e0(r.start),a=r.key,u=r.sep;u.push(this.sourceToken),delete r.key,delete r.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:a,sep:u}]})}else i.length>0?r.sep=r.sep.concat(i,this.sourceToken):r.sep.push(this.sourceToken);else if(Wu(r.start,"newline"))Object.assign(r,{key:null,sep:[this.sourceToken]});else{const s=e0(r.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]})}else r.sep?r.value||o?t.items.push({start:i,key:null,sep:[this.sourceToken]}):Wu(r.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const s=this.flowScalar(this.type);o||r.value?(t.items.push({start:i,key:s,sep:[]}),this.onKeyLine=!0):r.sep?this.stack.push(s):(Object.assign(r,{key:s,sep:[]}),this.onKeyLine=!0);return}default:{const s=this.startBlockValue(t);if(s){o&&s.type!=="block-seq"&&Wu(r.start,"explicit-key-ind")&&t.items.push({start:i}),this.stack.push(s);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){var n;const r=t.items[t.items.length-1];switch(this.type){case"newline":if(r.value){const o="end"in r.value?r.value.end:void 0,i=Array.isArray(o)?o[o.length-1]:void 0;(i==null?void 0:i.type)==="comment"?o==null||o.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(r.start,t.indent)){const o=t.items[t.items.length-2],i=(n=o==null?void 0:o.value)==null?void 0:n.end;if(Array.isArray(i)){Array.prototype.push.apply(i,r.start),i.push(this.sourceToken),t.items.pop();return}}r.start.push(this.sourceToken)}return;case"anchor":case"tag":if(r.value||this.indent<=t.indent)break;r.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;r.value||Wu(r.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return}if(this.indent>t.indent){const o=this.startBlockValue(t);if(o){this.stack.push(o);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){const r=t.items[t.items.length-1];if(this.type==="flow-error-end"){let n;do yield*this.pop(),n=this.peek(1);while(n&&n.type==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!r||r.sep?t.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return;case"map-value-ind":!r||r.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!r||r.value?t.items.push({start:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);!r||r.value?t.items.push({start:[],key:o,sep:[]}):r.sep?this.stack.push(o):Object.assign(r,{key:o,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}const n=this.startBlockValue(t);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{const n=this.peek(2);if(n.type==="block-map"&&(this.type==="map-value-ind"&&n.indent===t.indent||this.type==="newline"&&!n.items[n.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&n.type!=="flow-collection"){const o=$w(n),i=e0(o);lee(t);const s=t.end.splice(1,t.end.length);s.push(this.sourceToken);const a={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:i,key:t,sep:s}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let r=this.source.indexOf(` +`,r)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){var n;const r=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,r.value){const o="end"in r.value?r.value.end:void 0,i=Array.isArray(o)?o[o.length-1]:void 0;(i==null?void 0:i.type)==="comment"?o==null||o.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)t.items.push({start:[this.sourceToken]});else if(r.sep)r.sep.push(this.sourceToken);else{if(this.atIndentedComment(r.start,t.indent)){const o=t.items[t.items.length-2],i=(n=o==null?void 0:o.value)==null?void 0:n.end;if(Array.isArray(i)){Array.prototype.push.apply(i,r.start),i.push(this.sourceToken),t.items.pop();return}}r.start.push(this.sourceToken)}return}if(this.indent>=t.indent){const o=!this.onKeyLine&&this.indent===t.indent&&r.sep;let i=[];if(o&&r.sep&&!r.value){const s=[];for(let a=0;at.indent&&(s.length=0);break;default:s.length=0}}s.length>=2&&(i=r.sep.splice(s[1]))}switch(this.type){case"anchor":case"tag":o||r.value?(i.push(this.sourceToken),t.items.push({start:i}),this.onKeyLine=!0):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"explicit-key-ind":!r.sep&&!Ku(r.start,"explicit-key-ind")?r.start.push(this.sourceToken):o||r.value?(i.push(this.sourceToken),t.items.push({start:i})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]}),this.onKeyLine=!0;return;case"map-value-ind":if(Ku(r.start,"explicit-key-ind"))if(r.sep)if(r.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Ku(r.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(hpe(r.key)&&!Ku(r.sep,"newline")){const s=t0(r.start),a=r.key,u=r.sep;u.push(this.sourceToken),delete r.key,delete r.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:a,sep:u}]})}else i.length>0?r.sep=r.sep.concat(i,this.sourceToken):r.sep.push(this.sourceToken);else if(Ku(r.start,"newline"))Object.assign(r,{key:null,sep:[this.sourceToken]});else{const s=t0(r.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]})}else r.sep?r.value||o?t.items.push({start:i,key:null,sep:[this.sourceToken]}):Ku(r.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const s=this.flowScalar(this.type);o||r.value?(t.items.push({start:i,key:s,sep:[]}),this.onKeyLine=!0):r.sep?this.stack.push(s):(Object.assign(r,{key:s,sep:[]}),this.onKeyLine=!0);return}default:{const s=this.startBlockValue(t);if(s){o&&s.type!=="block-seq"&&Ku(r.start,"explicit-key-ind")&&t.items.push({start:i}),this.stack.push(s);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){var n;const r=t.items[t.items.length-1];switch(this.type){case"newline":if(r.value){const o="end"in r.value?r.value.end:void 0,i=Array.isArray(o)?o[o.length-1]:void 0;(i==null?void 0:i.type)==="comment"?o==null||o.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(r.start,t.indent)){const o=t.items[t.items.length-2],i=(n=o==null?void 0:o.value)==null?void 0:n.end;if(Array.isArray(i)){Array.prototype.push.apply(i,r.start),i.push(this.sourceToken),t.items.pop();return}}r.start.push(this.sourceToken)}return;case"anchor":case"tag":if(r.value||this.indent<=t.indent)break;r.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;r.value||Ku(r.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return}if(this.indent>t.indent){const o=this.startBlockValue(t);if(o){this.stack.push(o);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){const r=t.items[t.items.length-1];if(this.type==="flow-error-end"){let n;do yield*this.pop(),n=this.peek(1);while(n&&n.type==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!r||r.sep?t.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return;case"map-value-ind":!r||r.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!r||r.value?t.items.push({start:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);!r||r.value?t.items.push({start:[],key:o,sep:[]}):r.sep?this.stack.push(o):Object.assign(r,{key:o,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}const n=this.startBlockValue(t);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{const n=this.peek(2);if(n.type==="block-map"&&(this.type==="map-value-ind"&&n.indent===t.indent||this.type==="newline"&&!n.items[n.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&n.type!=="flow-collection"){const o=Ww(n),i=t0(o);mee(t);const s=t.end.splice(1,t.end.length);s.push(this.sourceToken);const a={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:i,key:t,sep:s}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let r=this.source.indexOf(` `)+1;for(;r!==0;)this.onNewLine(this.offset+r),r=this.source.indexOf(` -`,r)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const r=$w(t),n=e0(r);return n.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n}]}}case"map-value-ind":{this.onKeyLine=!0;const r=$w(t),n=e0(r);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,r){return this.type!=="comment"||this.indent<=r?!1:t.every(n=>n.type==="newline"||n.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function ape(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new ipe||null,prettyErrors:t}}function zat(e,t={}){const{lineCounter:r,prettyErrors:n}=ape(t),o=new Lj(r==null?void 0:r.addNewLine),i=new Mj(t),s=Array.from(i.compose(o.parse(e)));if(n&&r)for(const a of s)a.errors.forEach(fT(e,r)),a.warnings.forEach(fT(e,r));return s.length>0?s:Object.assign([],{empty:!0},i.streamInfo())}function upe(e,t={}){const{lineCounter:r,prettyErrors:n}=ape(t),o=new Lj(r==null?void 0:r.addNewLine),i=new Mj(t);let s=null;for(const a of i.compose(o.parse(e),!0,e.length))if(!s)s=a;else if(s.options.logLevel!=="silent"){s.errors.push(new Th(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return n&&r&&(s.errors.forEach(fT(e,r)),s.warnings.forEach(fT(e,r))),s}function Hat(e,t,r){let n;typeof t=="function"?n=t:r===void 0&&t&&typeof t=="object"&&(r=t);const o=upe(e,r);if(!o)return null;if(o.warnings.forEach(i=>Ihe(o.options.logLevel,i)),o.errors.length>0){if(o.options.logLevel!=="silent")throw o.errors[0];o.errors=[]}return o.toJS(Object.assign({reviver:n},r))}function $at(e,t,r){let n=null;if(typeof t=="function"||Array.isArray(t)?n=t:r===void 0&&t&&(r=t),typeof r=="string"&&(r=r.length),typeof r=="number"){const o=Math.round(r);r=o<1?void 0:o>8?{indent:8}:{indent:o}}if(e===void 0){const{keepUndefined:o}=r??t??{};if(!o)return}return new e5(e,n,r).toString(r)}const Pat=Object.freeze(Object.defineProperty({__proto__:null,Alias:q9,CST:Mat,Composer:Mj,Document:e5,Lexer:ope,LineCounter:ipe,Pair:Ni,Parser:Lj,Scalar:Qt,Schema:J9,YAMLError:Fj,YAMLMap:oa,YAMLParseError:Th,YAMLSeq:y1,YAMLWarning:Vhe,isAlias:vp,isCollection:qn,isDocument:Cv,isMap:Rv,isNode:fo,isPair:Mn,isScalar:vn,isSeq:Ov,parse:Hat,parseAllDocuments:zat,parseDocument:upe,stringify:$at,visit:m1,visitAsync:P9},Symbol.toStringTag,{value:"Module"})),hT="pfs-network-error",IM=(e,t)=>t.some(r=>e instanceof r);let cee,fee;function qat(){return cee||(cee=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Wat(){return fee||(fee=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const NM=new WeakMap,m3=new WeakMap,o5=new WeakMap;function Kat(e){const t=new Promise((r,n)=>{const o=()=>{e.removeEventListener("success",i),e.removeEventListener("error",s)},i=()=>{r(pT(e.result)),o()},s=()=>{n(e.error),o()};e.addEventListener("success",i),e.addEventListener("error",s)});return o5.set(t,e),t}function Gat(e){if(NM.has(e))return;const t=new Promise((r,n)=>{const o=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",s),e.removeEventListener("abort",s)},i=()=>{r(),o()},s=()=>{n(e.error||new DOMException("AbortError","AbortError")),o()};e.addEventListener("complete",i),e.addEventListener("error",s),e.addEventListener("abort",s)});NM.set(e,t)}let CM={get(e,t,r){if(e instanceof IDBTransaction){if(t==="done")return NM.get(e);if(t==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return pT(e[t])},set(e,t,r){return e[t]=r,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function lpe(e){CM=e(CM)}function Vat(e){return Wat().includes(e)?function(...t){return e.apply(RM(this),t),pT(this.request)}:function(...t){return pT(e.apply(RM(this),t))}}function Uat(e){return typeof e=="function"?Vat(e):(e instanceof IDBTransaction&&Gat(e),IM(e,qat())?new Proxy(e,CM):e)}function pT(e){if(e instanceof IDBRequest)return Kat(e);if(m3.has(e))return m3.get(e);const t=Uat(e);return t!==e&&(m3.set(e,t),o5.set(t,e)),t}const RM=e=>o5.get(e),Yat=["get","getKey","getAll","getAllKeys","count"],Xat=["put","add","delete","clear"],y3=new Map;function dee(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(y3.get(t))return y3.get(t);const r=t.replace(/FromIndex$/,""),n=t!==r,o=Xat.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(o||Yat.includes(r)))return;const i=async function(s,...a){const u=this.transaction(s,o?"readwrite":"readonly");let l=u.store;return n&&(l=l.index(a.shift())),(await Promise.all([l[r](...a),o&&u.done]))[0]};return y3.set(t,i),i}lpe(e=>({...e,get:(t,r,n)=>dee(t,r)||e.get(t,r,n),has:(t,r)=>!!dee(t,r)||e.has(t,r)}));const Qat=["continue","continuePrimaryKey","advance"],hee={},OM=new WeakMap,cpe=new WeakMap,Zat={get(e,t){if(!Qat.includes(t))return e[t];let r=hee[t];return r||(r=hee[t]=function(...n){OM.set(this,cpe.get(this)[t](...n))}),r}};async function*Jat(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;t=t;const r=new Proxy(t,Zat);for(cpe.set(r,t),o5.set(r,RM(t));t;)yield r,t=await(OM.get(r)||t.continue()),OM.delete(r)}function pee(e,t){return t===Symbol.asyncIterator&&IM(e,[IDBIndex,IDBObjectStore,IDBCursor])||t==="iterate"&&IM(e,[IDBIndex,IDBObjectStore])}lpe(e=>({...e,get(t,r,n){return pee(t,r)?Jat:e.get(t,r,n)},has(t,r){return pee(t,r)||e.has(t,r)}}));class eut{constructor(){this.chatMessagesMap=new Map}async addChatMessage(t,r,n){const o=this.chatMessagesMap.get(r)||[];o.push({...n,flowFilePath:t,chatItemName:r}),this.chatMessagesMap.set(r,o)}async getChatMessages(t,r){return this.chatMessagesMap.get(r)||[]}async clearChatMessages(t){this.chatMessagesMap.clear()}}const DM=new eut;class FM{constructor(){ze(this,"_errors");ze(this,"_summary");this._errors=[],this._summary=void 0}cleanup(){this._errors.length=0,this._summary=void 0}run(t){try{t()}catch(r){this._errors.push(r),this._summary=void 0}}summary(t){if(this._summary===void 0){if(this._errors.length===1)throw this._summary=this._errors[0];this._errors.length>1&&(this._summary=new AggregateError(this._errors,t))}if(this._summary!==void 0)throw this._summary}}function tut(e){const t=new FM;for(const r of e)t.run(()=>r.dispose());t.summary("[disposeAll] Encountered errors while disposing"),t.cleanup()}class fpe{constructor(){ze(this,"_disposed");ze(this,"_disposables");this._disposed=!1,this._disposables=[]}get disposed(){return this._disposed}dispose(){if(!this._disposed){this._disposed=!0;try{tut(this._disposables)}finally{this._disposables.length=0}}}registerDisposable(t){t.disposed||(this._disposed?t.dispose():this._disposables.push(t))}}class jj{constructor(t){ze(this,"_onDispose");ze(this,"_disposed");this._onDispose=t,this._disposed=!1}get disposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._onDispose())}}function rut(e){return e===null||typeof e!="object"?!1:typeof Reflect.get(e,"dispose")=="function"&&typeof Reflect.get(e,"disposed")=="boolean"}const nut=()=>{};class gT{constructor(t){ze(this,"_onDispose");ze(this,"_onNext");ze(this,"_disposed");this._onDispose=(t==null?void 0:t.onDispose)??nut,this._onNext=t.onNext,this._disposed=!1}get disposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._onDispose())}next(t,r){this._disposed||this._onNext(t,r)}}const gee={unsubscribe:()=>{}};class out{constructor(t={}){ze(this,"ARRANGE_THRESHOLD");ze(this,"_disposed");ze(this,"_items");ze(this,"_subscribingCount");this.ARRANGE_THRESHOLD=t.ARRANGE_THRESHOLD??16,this._disposed=!1,this._items=[],this._subscribingCount=0}get size(){return this._subscribingCount}get disposed(){return this._disposed}dispose(){if(this._disposed)return;this._disposed=!0;const t=new FM,r=this._items;for(let n=0;no.subscriber.dispose()))}r.length=0,this._subscribingCount=0,t.summary("Encountered errors while disposing."),t.cleanup()}notify(t,r){if(this._disposed)return;const n=new FM,o=this._items;for(let i=0,s=o.length;ia.subscriber.next(t,r))}n.summary("Encountered errors while notifying subscribers."),n.cleanup()}subscribe(t){if(t.disposed)return gee;if(this.disposed)return t.dispose(),gee;const r={subscriber:t,unsubscribed:!1};return this._items.push(r),this._subscribingCount+=1,{unsubscribe:()=>{r.unsubscribed||(r.unsubscribed=!0,this._subscribingCount-=1,this._arrange())}}}_arrange(){const t=this._items;if(t.length>=this.ARRANGE_THRESHOLD&&this._subscribingCount*2<=t.length){const r=[];for(let n=0;n{},vee={unsubscribe:dpe},mee={unobserve:dpe},iut=e=>e===null||typeof e!="object"?!1:typeof Reflect.get(e,"dispose")=="function"&&typeof Reflect.get(e,"disposed")=="boolean"&&typeof Reflect.get(e,"subscribe")=="function"&&typeof Reflect.get(e,"equals")=="function"&&typeof Reflect.get(e,"getSnapshot")=="function"&&typeof Reflect.get(e,"next")=="function",sut=(e,t)=>Object.is(e,t);class zj extends fpe{constructor(r,n={}){super();ze(this,"equals");ze(this,"_delay");ze(this,"_subscribers");ze(this,"_value");ze(this,"_updateTick");ze(this,"_notifyTick");ze(this,"_lastNotifiedValue");ze(this,"_timer");const{equals:o=sut}=n;this._delay=Math.max(0,Number(n.delay)||0),this._subscribers=new out,this._value=r,this._updateTick=0,this._notifyTick=0,this._lastNotifiedValue=void 0,this._timer=void 0,this.equals=o}dispose(){this.disposed||(super.dispose(),this._flush(),this._subscribers.dispose())}getSnapshot(){return this._value}next(r,n){if(this.disposed){if((n==null?void 0:n.strict)??!0)throw new RangeError(`Don't update a disposed observable. value: ${String(r)}.`);return}!((n==null?void 0:n.force)??!1)&&this.equals(r,this._value)||(this._value=r,this._updateTick+=1,this._notify())}subscribe(r){if(r.disposed)return vee;const n=this._lastNotifiedValue,o=this._value;return this.disposed?(r.next(o,n),r.dispose(),vee):(this._flush(),r.next(o,n),this._subscribers.subscribe(r))}_flush(){this._notifyTick{try{this._notifyImmediate()}finally{this._timer=void 0}this._notify()},this._delay))}}_notifyImmediate(){const r=this._lastNotifiedValue,n=this._value;this._lastNotifiedValue=n,this._notifyTick=this._updateTick,this._subscribers.notify(n,r)}}const aut=(e,t)=>e===t;class hpe extends zj{constructor(t={}){const{start:r=0,delay:n}=t;super(r,{delay:n,equals:aut})}tick(t){this.next(this._value+1,t)}observe(t,r){if(this.disposed){if((r==null?void 0:r.strict)??!0)throw new RangeError("[Ticker.observe] the ticker has been disposed.");return mee}if(t.disposed)return mee;const n=new gT({onNext:()=>this.tick()}),o=t.subscribe(n),i=new jj(()=>{n.dispose(),o.unsubscribe()});return this.registerDisposable(i),{unobserve:()=>i.dispose()}}}class Hj{constructor(t){ze(this,"_observable");ze(this,"getSnapshot",()=>this._observable.getSnapshot());ze(this,"getServerSnapshot",()=>this._observable.getSnapshot());ze(this,"subscribeStateChange",t=>{const r=new gT({onNext:()=>t()}),n=this._observable.subscribe(r),o=new jj(()=>{r.dispose(),n.unsubscribe()});return this._observable.registerDisposable(o),()=>o.dispose()});this._observable=t}static fromObservables(t,r,n){const o=new hpe;for(const u of t)o.observe(u);const i=()=>{const u=t.map(l=>l.getSnapshot());return r(u)},s=new zj(i(),n);s.registerDisposable(o);const a=new gT({onNext:()=>s.next(i())});return o.subscribe(a),new Hj(s)}get disposed(){return this._observable.disposed}dispose(){this._observable.disposed||this._observable.dispose()}registerDisposable(t){this._observable.registerDisposable(t)}subscribe(t){return this._observable.subscribe(t)}}class qo extends zj{constructor(){super(...arguments);ze(this,"getSnapshot",()=>super.getSnapshot());ze(this,"getServerSnapshot",()=>super.getSnapshot());ze(this,"setState",r=>{const n=this.getSnapshot(),o=r(n);super.next(o)});ze(this,"subscribeStateChange",r=>{const n=new gT({onNext:()=>r()}),o=super.subscribe(n),i=new jj(()=>{n.dispose(),o.unsubscribe()});return this.registerDisposable(i),()=>i.dispose()})}}class ppe extends fpe{constructor(){super();ze(this,"_tickerMap");this._tickerMap=new Map}dispose(){if(!this.disposed){super.dispose();for(const r of Reflect.ownKeys(this))if(typeof r=="string"&&r.endsWith("$")){const n=this[r];rut(n)&&n.dispose()}for(const r of this._tickerMap.values())r.ticker.dispose();this._tickerMap.clear()}}ticker(r){const n=Array.from(new Set(r)).sort(),o=n.join("|");let i=this._tickerMap.get(o);if(i===void 0){const s=new hpe;i={keys:n,ticker:s},this.registerDisposable(s),this._tickerMap.set(o,i);for(const a of n){const u=this[a];if(!iut(u)){console.warn("[ViewModel.ticker] not an observable, key:",a,"val:",u);continue}s.observe(u)}}return i}}function uut(e,t,r){const n=t(),[{inst:o},i]=k.useState({inst:{value:n,getSnapshot:t}});return k.useLayoutEffect(()=>{o.value=n,o.getSnapshot=t,b3(o)&&i({inst:o})},[e,n,t]),k.useEffect(()=>(b3(o)&&i({inst:o}),e(()=>{b3(o)&&i({inst:o})})),[e]),k.useDebugValue(n),n}function b3(e){const t=e.getSnapshot,r=e.value;try{const n=t();return!Object.is(r,n)}catch{return!0}}function lut(e,t,r){return t()}const cut=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",fut=cut?uut:lut,yee=k.useSyncExternalStore,gpe=yee||fut;function dut(e){const{getSnapshot:t,getServerSnapshot:r,subscribeStateChange:n}=e;return gpe(n,t,r)}function to(e){const{getSnapshot:t,getServerSnapshot:r,subscribeStateChange:n}=e;return gpe(n,t,r)}var Lo=(e=>(e.System="system",e.Error="error",e.Chatbot="chatbot",e.User="user",e))(Lo||{}),pf=(e=>(e.Message="message",e.SessionSplit="session-split",e))(pf||{}),$u=(e=>(e[e.PENDING=0]="PENDING",e[e.COPYING=1]="COPYING",e[e.COPIED=2]="COPIED",e[e.FAILED=3]="FAILED",e))($u||{}),tb=(e=>(e.MessageBubble="chatbox-message-bubble",e.MessageContent="chatbox-message-content",e.MessageList="chatbox-message-list",e.MessageActionBar="chatbox-message-action-bar",e))(tb||{}),vpe=(e=>(e.MessageBubble='[data-chatbox-locator="chatbox-message-bubble"]',e.MessageContent='[data-chatbox-locator="chatbox-message-content"]',e.MessageList='[data-chatbox-locator="chatbox-message-list"]',e.MessageActionBar='[data-chatbox-locator="chatbox-message-action-bar"]',e))(vpe||{});const mpe={CopyToClipboard:"Copy to clipboard",CopyToClipboard_Copying:"Copying...",CopyToClipboard_Copied:"Copied!",CopyToClipboard_Failed:"Failed!",Header_Clear:"Click to clear all chat histories",Header_Close:"Click to close chat box",Header_EnterFullScreen:"Click to enter full screen mode",Header_ExitFullScreen:"Click to exit full screen mode",Header_Title:"Chat",Input_Placeholder:"Input anything to test...",MessageError_HideDetail:"Hide Detail",MessageError_ShowDetail:"Show Detail",MessageStatus_TimeSpentDesc:"time spent",MessageStatus_TimeSpentDscCapitalized:"Time spent",MessageStatus_TimeSpent_Unit:"sec",MessageStatus_TokensDesc:"Total tokens for generating this",MessageStatus_TokensUint:"tokens",SessionSplit_Desc:"Your session start from here.",Tooltip_Bottom:"Only default variants will be used for chat, if you want to test variants please try bulk test. For chatbot and test app bot, it will only show the chat output.",Tooltip_TotalTokens:"Total tokens",Typing:"Generating chat output for you"};class ype{constructor(t){this.calcContentForCopy=f=>this.calcContentForCopy$.getSnapshot()(f),this.monitorInputContentChange=f=>this.inputContentChangeTick$.subscribeStateChange(f),this.notifyInputContentChange=()=>{this.inputContentChangeTick$.setState(f=>f+1)},this.sendMessage=f=>{const d=this.editorRef.current;if(!d){console.log("!!!editorRef is not mounted.");return}const h=f??d.getContent(),g=this.sendMessage$.getSnapshot(),y=this.makeUserMessage$.getSnapshot()(h);this.messages$.setState(E=>[...E,y]),d.clear(),this.isOthersTyping$.next(!0),g(h,this,y).then(E=>{E!==void 0&&this.messages$.setState(_=>[..._,E])}).finally(()=>{this.isOthersTyping$.next(!1)})},this.setCalcContentForCopy=f=>{this.calcContentForCopy$.next(f)},this.setMakeUserMessage=f=>{this.makeUserMessage$.next(f)},this.setSendMessage=f=>{this.sendMessage$.next(f)},this.sessionSplit=f=>{const d={id:ga.v4(),type:pf.SessionSplit,history:[{category:Lo.System,from:"system",content:f??"",timestamp:new Date().toISOString()}]};return this.messages$.setState(h=>[...h,d]),d};const{alias:r="",initialDisabled:n=!1,initialMessages:o=[],locStrings:i=mpe,calcContentForCopy:s=f=>typeof f.content=="string"?f.content:JSON.stringify(f.content),makeUserMessage:a=f=>({id:ga.v4(),type:pf.Message,history:[{category:Lo.User,from:this.alias$.getSnapshot(),timestamp:new Date().toISOString(),content:f}]}),sendMessage:u=async f=>({id:ga.v4(),type:pf.Message,history:[{category:Lo.Chatbot,from:"chatbot",timestamp:new Date().toISOString(),content:f}]})}=t;this.editorRef={current:null};const l=new qo(0),c=Hj.fromObservables([l],()=>{var f;return(f=this.editorRef.current)==null?void 0:f.isEmpty()});this.alias$=new qo(r),this.disabled$=new qo(n),this.inputContentChangeTick$=l,this.isEditorEmpty$=c,this.isOthersTyping$=new qo(!1),this.locStrings$=new qo(i),this.messages$=new qo(o),this.calcContentForCopy$=new qo(s),this.makeUserMessage$=new qo(a),this.sendMessage$=new qo(u)}}const hut=new ype({sendMessage:()=>Promise.resolve({id:Date.now(),type:pf.Message,history:[{category:Lo.System,from:"system",timestamp:new Date().toISOString(),content:"sendMessage not implemented!"}]})}),bpe=re.createContext({viewmodel:hut}),Au=()=>re.useContext(bpe);function $j(e){const t=k.useRef(e);return k.useLayoutEffect(()=>{t.current=e}),k.useCallback((...r)=>{const n=t.current;return n(...r)},[])}function _pe(){const{viewmodel:e}=Au();return dut(e.isEditorEmpty$)??!0}function Epe(e,t){const[r,n]=re.useState($u.PENDING),o=ar(s=>{if(r===$u.PENDING){n($u.COPYING);try{const a=t(s);ihe(a),n($u.COPIED)}catch{n($u.FAILED)}}});return re.useEffect(()=>{if(r===$u.COPIED||r===$u.FAILED){let s=setTimeout(()=>{s=void 0,n($u.PENDING)},1500);return()=>{s&&clearTimeout(s)}}},[r]),re.useMemo(()=>({key:"copy",group:2,icon:r===$u.PENDING?C.jsx(mae,{}):C.jsx(yae,{}),tooltip:C.jsx(C.Fragment,{children:e.CopyToClipboard}),disabled:r!==$u.PENDING,onClick:o,condition:s=>s.category===Lo.Chatbot||s.category===Lo.User||s.category===Lo.Error}),[e,r,o])}wr({copyButton:{cursor:"pointer"}});const Spe=e=>{const{className:t,disabled:r,icon:n=C.jsx(u3e,{}),title:o,onSend:i}=e;return C.jsx(Kn,{as:"button",appearance:"transparent",size:"medium",title:o,className:t,icon:n,disabled:r,onClick:i})};Spe.displayName="SendButton";const put={Add:"Add",AddAnImage:"Add an image",PasteImageOrLinkHere:"Paste image or link here",UploadFromThisDevice:"Upload from this device"},gut=e=>{const{src:t,alt:r,loading:n=!1,width:o,height:i,styles:s}=e;return t?n?C.jsx("div",{children:"Loading..."}):C.jsx("div",{className:s==null?void 0:s.root,children:C.jsx("img",{className:s==null?void 0:s.image,src:t,alt:r,width:o,height:i})}):C.jsx("div",{children:"This image can not be previewed."})},vut=e=>{const{src:t,alt:r,visible:n,loading:o=!1,width:i,height:s,onDismiss:a}=e,u=mut(),l=C.jsxs("div",{className:u.container,children:[C.jsxs("div",{className:u.header,children:[C.jsx("h2",{className:u.heading,children:"Preview"}),C.jsx(Kn,{as:"button",appearance:"transparent",icon:C.jsx(_ae,{}),className:u.dismissBtn,onClick:a})]}),C.jsx("div",{className:u.main,children:C.jsx(gut,{src:t,alt:r,loading:o,width:i,height:s,styles:{image:u.image}})})]});return C.jsx(Pie,{isOpen:n,isBlocking:!1,onDismiss:a,children:l})},mut=wr({container:{display:"flex",flexDirection:"column",flexWrap:"nowrap",...Ye.padding("16px")},header:{...Ye.flex(0,0,"auto"),display:"flex",flexDirection:"row",flexWrap:"nowrap",justifyContent:"space-between",marginBottom:"20px"},heading:{...Ye.margin(0),fontWeight:In.semibold,fontSize:"inherit"},dismissBtn:{"&&":{fontSize:"16px",lineHeight:"16px",height:"16px",width:"16px",color:zt.colorNeutralStroke1}},main:{...Ye.overflow("auto"),display:"flex",justifyContent:"center",alignItems:"center"},image:{width:"auto",height:"auto",maxWidth:"60vw",maxHeight:"60vh"}}),bee="48px",wpe="__MASK_SELECTOR_CLASS_NAME__",yut=e=>{const{image:t,alt:r,isReadonly:n,onClickDelete:o}=e,[i,s]=re.useState(!1),a=but(),u=re.useMemo(()=>{if(t)return typeof t=="string"?t:URL.createObjectURL(t)},[t]),l=re.useCallback(()=>{s(f=>!f)},[]),c=u||"";return C.jsxs("div",{className:Xe(a.root,n?a.readonlyRoot:void 0),children:[C.jsxs("div",{className:a.imageContainer,children:[C.jsx("img",{decoding:"async",className:a.image,src:c,alt:r}),C.jsx("div",{"aria-hidden":!0,className:Xe(a.mask,wpe),onClick:l,role:"button",children:C.jsx(Eae,{})})]}),!n&&C.jsx(Kn,{as:"button",className:a.closeButton,icon:C.jsx(bae,{}),onClick:o}),C.jsx(vut,{src:c,alt:r||"",visible:i,onDismiss:l})]})},but=wr({root:{boxSizing:"border-box",display:"flex",height:"32px",width:"80px",...Ye.border("1px","solid",zt.colorNeutralStroke2),...Ye.borderRadius("4px")},readonlyRoot:{width:"48px"},imageContainer:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",width:bee,[`:hover .${wpe}`]:{visibility:"visible"}},image:{maxWidth:"100%",maxHeight:"100%",width:"auto",height:"auto"},mask:{visibility:"hidden",cursor:"pointer",position:"absolute",top:0,left:0,width:`calc(${bee} - 2px)`,height:"100%",backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",color:zt.colorNeutralForegroundStaticInverted,...Ye.borderRadius("4px",0,0,"4px")},closeButton:{width:"32px",...Ye.border(0)}}),kpe=re.forwardRef((e,t)=>C.jsx(Kn,{...e,ref:t,as:"button",appearance:"transparent",size:"medium",icon:C.jsx(vae,{})}));kpe.displayName="UploadPopoverTrigger";const _ut=(e,...t)=>{const r={...e};for(const n of Object.keys(e))r[n]=Xe(e[n],...t.map(o=>o==null?void 0:o[n]));return r},Ape=re.forwardRef(({isUploading:e,disabled:t,errorMessage:r,trigger:n=C.jsx(kpe,{}),locStrings:o=put,styles:i,events:s,onUpload:a,onRenderImagePreview:u},l)=>{const c=_ut(Eut(),i),{onDelete:f,onInputBlur:d,onPaste:h,onLocalUpload:g}=s??{};re.useImperativeHandle(l,()=>({open(){y(!0)},close(){y(!1)},reset:()=>{T()},retrieve:()=>S}));const[v,y]=re.useState(!1),[E,_]=re.useState(""),[S,b]=re.useState(void 0),A=re.useRef(null),x=re.useCallback((M,q)=>{y(q.open||!1)},[]),T=re.useCallback(()=>{_(""),b(void 0),A.current&&(A.current.value="")},[]),N=re.useCallback(M=>{const q=M[0];b(q),h==null||h(q)},[h]),I=re.useCallback(M=>{M.clipboardData.files&&N&&N(M.clipboardData.files)},[N]),R=re.useCallback(()=>{d==null||d(E),b(E)},[E,d]),D=re.useCallback(()=>{S&&a(S)},[S,a]),L=re.useMemo(()=>u?u({cachedImage:S,customerInputContent:E,isReadonly:t||e||!1}):C.jsx(yut,{image:S||E,alt:E||"",isReadonly:e,onClickDelete:()=>{T(),f==null||f()}}),[E,S,T,t,e,f,u]);return C.jsxs(Oue,{positioning:"above-end",open:v,onOpenChange:x,children:[C.jsx(A8,{disableButtonEnhancement:!0,children:n}),C.jsxs(Rue,{className:c.attachUploadPopover,children:[C.jsxs("div",{className:c.attachUploadHeader,children:[C.jsx("span",{children:o.AddAnImage}),C.jsx(Kn,{as:"button",disabled:t,appearance:"transparent",icon:C.jsx(_ae,{}),onClick:()=>{y(!1)}})]}),C.jsxs("div",{className:c.attachUploadInputWrapper,children:[S?L:C.jsx(R8,{className:c.attachUploadInput,value:E,disabled:t,placeholder:o.PasteImageOrLinkHere,onChange:(M,q)=>{b(void 0),_(q.value)},onPaste:I,onBlur:R}),C.jsx(Kn,{as:"button",disabled:t||e||!S&&!E,className:c.addButton,onClick:D,children:e?C.jsx(X_,{size:"tiny"}):o.Add})]}),r&&C.jsx("div",{className:c.errorMessage,children:r}),C.jsx("input",{tabIndex:-1,"aria-hidden":!0,ref:A,disabled:t,className:c.invisibleFileInput,onChange:M=>{var z;const q=(z=M.target.files)==null?void 0:z[0];q&&(g==null||g(q)),b(q)},type:"file",accept:"image/*"}),C.jsx("div",{className:c.triggerUploadButton,children:C.jsx(Kn,{as:"button",disabled:t,appearance:"transparent",icon:C.jsx(ZDe,{}),onClick:()=>{var M;(M=A.current)==null||M.click()},children:o.UploadFromThisDevice})})]})]})});Ape.displayName="UploadPopover";const Eut=wr({attachUploadPopover:{width:"400px",backgroundColor:zt.colorNeutralBackground1,...Ye.padding("12px")},attachUploadHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",fontWeight:500,fontSize:"16px",lineHeight:"22px"},attachUploadInputWrapper:{marginTop:"8px",display:"flex",columnGap:"8px",justifyContent:"space-between"},attachUploadInput:{flexGrow:1},addButton:{minWidth:"52px"},errorMessage:{color:zt.colorPaletteRedBackground3},invisibleFileInput:{display:"none"},triggerUploadButton:{marginTop:"8px",display:"flex",justifyContent:"space-between"}}),Tpe=()=>C.jsx("div",{});Tpe.displayName="DefaultInputValidationRenderer";const Sut=()=>C.jsx(C.Fragment,{});function xpe(e){const{content:t,className:r}=e,n=wut(),o=Xe(n.content,r);if(typeof t=="string")return C.jsx("p",{className:o,children:t});const i=JSON.stringify(t,null,2);return C.jsx("pre",{className:o,children:i})}xpe.displayName="DefaultMessageContentRenderer";const wut=wr({content:{...Ye.overflow("auto"),wordBreak:"break-all",whiteSpace:"break-spaces"}});function Ipe(e){const{error:t,locStrings:r,className:n}=e,[o,i]=re.useState(!1),s=kut(),a=Xe(s.errorMessageDetail,!o&&s.errorMessageDetailHidden,n);return C.jsxs(re.Fragment,{children:[C.jsx("p",{children:C.jsx(qb,{onClick:()=>i(u=>!u),children:o?r.MessageError_HideDetail:r.MessageError_ShowDetail})}),C.jsx("p",{className:a,children:t})]})}Ipe.displayName="DefaultMessageErrorRenderer";const kut=wr({errorMessageDetail:{...Ye.margin("0","0","0","0"),wordBreak:"break-word",whiteSpace:"break-spaces"},errorMessageDetailHidden:{display:"none"}}),Aut=()=>re.useMemo(()=>[],[]);function Npe(e){const{useMessageActions:t=Aut,data:r,className:n}=e,o=t(r),i=Tut(),s=re.useMemo(()=>{const l=o.filter(f=>!f.condition||f.condition(r)).sort((f,d)=>f.group-d.group),c=[];for(let f=0,d;f0))return C.jsx(C.Fragment,{});const u=[];for(let l=0;ly(r)},d)},d))}l+1{r>0&&o(r-1)},a=()=>{r=z?q:""+Array(z+1-P.length).join(B)+q},b={s:S,z:function(q){var z=-q.utcOffset(),B=Math.abs(z),P=Math.floor(B/60),K=B%60;return(z<=0?"+":"-")+S(P,2,"0")+":"+S(K,2,"0")},m:function q(z,B){if(z.date()1)return q(X[0])}else{var J=z.name;x[J]=z,K=J}return!P&&K&&(A=K),K||!P&&A},R=function(q,z){if(N(q))return q.clone();var B=typeof z=="object"?z:{};return B.date=q,B.args=arguments,new L(B)},D=b;D.l=I,D.i=N,D.w=function(q,z){return R(q,{locale:z.$L,utc:z.$u,x:z.$x,$offset:z.$offset})};var L=function(){function q(B){this.$L=I(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[T]=!0}var z=q.prototype;return z.parse=function(B){this.$d=function(P){var K=P.date,U=P.utc;if(K===null)return new Date(NaN);if(D.u(K))return new Date;if(K instanceof Date)return new Date(K);if(typeof K=="string"&&!/Z$/i.test(K)){var X=K.match(y);if(X){var J=X[2]-1||0,ee=(X[7]||"0").substring(0,3);return U?new Date(Date.UTC(X[1],J,X[3]||1,X[4]||0,X[5]||0,X[6]||0,ee)):new Date(X[1],J,X[3]||1,X[4]||0,X[5]||0,X[6]||0,ee)}}return new Date(K)}(B),this.init()},z.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},z.$utils=function(){return D},z.isValid=function(){return this.$d.toString()!==v},z.isSame=function(B,P){var K=R(B);return this.startOf(P)<=K&&K<=this.endOf(P)},z.isAfter=function(B,P){return R(B){const{duration:t,tokens:r,locStrings:n,className:o}=e,i=t.toFixed(2).replace(/\.?0*$/,"");return C.jsxs("div",{className:o,children:[r>0&&C.jsxs(re.Fragment,{children:[`${n.MessageStatus_TokensDesc}: `,C.jsx("b",{children:r}),` ${n.MessageStatus_TokensUint}, `]}),`${r>0?n.MessageStatus_TimeSpentDesc:n.MessageStatus_TimeSpentDscCapitalized}: `,C.jsx("b",{children:i}),` ${n.MessageStatus_TimeSpent_Unit}`]})};Dpe.displayName="DefaultMessageStatusRenderer";const Cut=[],Rut=e=>Cut;function Pj(e){const{MessageAvatarRenderer:t,MessageContentRenderer:r=xpe,MessageErrorRenderer:n=Ipe,MessageSenderRenderer:o=Ope,MessagePaginationRenderer:i=Cpe,MessageActionBarRenderer:s=Npe,MessageStatusRenderer:a=Dpe,useMessageContextualMenuItems:u=Rut,useMessageActions:l,initialPage:c=-1,locStrings:f,message:d,className:h}=e,g=Out(),[v,y]=re.useState((c%d.history.length+d.history.length)%d.history.length),[E,_]=re.useState(!1),S=re.useRef(null),b=re.useRef(null),A=re.useCallback(()=>{_(!1)},[]),x=re.useCallback(D=>{const L=S.current,M=b.current;if(L&&M){const q=D.clientX,z=D.clientY,B=L.getBoundingClientRect(),P=B.left+window.scrollX,K=B.top+window.scrollY,U=q-P,X=z-K;M.style.left=`${U}px`,M.style.top=`${X}px`}},[]),T=re.useCallback(D=>{D.preventDefault(),x(D),_(!0)},[]),N=d.history[v],I=N.category===Lo.User?"right":"left",R=u(N);return re.useEffect(()=>{const D=()=>{_(!1)};return document.addEventListener("mousedown",D),()=>document.removeEventListener("mousedown",D)},[]),C.jsx("div",{className:g.container,"data-chatbox-locator":tb.MessageBubble,"data-position":I,children:C.jsxs("div",{className:Xe(g.message,h),"data-position":I,children:[C.jsx("div",{className:g.avatar,children:t&&C.jsx(t,{data:N,position:I})}),C.jsxs("div",{className:g.main,children:[C.jsx("div",{className:g.sender,children:C.jsx(o,{data:N,position:I})}),C.jsxs("div",{ref:S,className:g.content,"data-category":N.category,"data-chatbox-locator":tb.MessageContent,onContextMenu:T,onClick:x,children:[C.jsx(r,{content:N.content,data:N,className:g.contentMain}),N.error&&C.jsx(n,{error:N.error,locStrings:f,className:g.error}),typeof N.duration=="number"&&typeof N.tokens=="number"&&C.jsx(a,{duration:N.duration,tokens:N.tokens,locStrings:f,className:g.status}),d.history.length>1&&C.jsx(i,{className:g.pagination,message:d,current:v,setCurrent:y}),C.jsx("div",{ref:b,className:g.contentMenuAnchor}),R.length>0&&C.jsx(zie,{items:R,hidden:!E,target:b,onItemClick:A,onDismiss:A,className:g.contextualMenu}),C.jsx("div",{className:g.actionBar,"data-chatbox-locator":tb.MessageActionBar,children:C.jsx(s,{data:N,locStrings:f,useMessageActions:l})})]})]})]})})}Pj.displayName="DefaultMessageBubbleRenderer";const Out=wr({container:{...Ye.margin("16px","0"),display:"flex",justifyContent:"flex-start",'&&[data-position="right"]':{justifyContent:"flex-end"},width:"100%"},message:{display:"flex",flexDirection:"row",'&&[data-position="right"]':{flexDirection:"row-reverse"},maxWidth:"calc(100% - 80px)"},avatar:{...Ye.flex(0,0,"auto")},main:{...Ye.flex(1,1,"auto"),display:"flex",flexDirection:"column",width:"100%"},sender:{...Ye.flex(0,0,"auto")},content:{...Ye.flex(1,1,"auto"),...Ye.borderRadius("4px"),position:"relative",boxSizing:"border-box",minWidth:"48px",wordBreak:"break-word",lineHeight:"22px","> p":{...Ye.margin(0)},[`&:hover > ${vpe.MessageActionBar}`]:{display:"flex",visibility:"visible"},[`&&[data-category="${Lo.System}"]`]:{color:zt.colorNeutralForeground4},[`&&[data-category="${Lo.Error}"]`]:{backgroundColor:zt.colorPaletteRedBackground2,color:zt.colorNeutralForeground1},[`&&[data-category="${Lo.Chatbot}"]`]:{backgroundColor:zt.colorNeutralBackground4,color:zt.colorNeutralForeground1},[`&&[data-category="${Lo.User}"]`]:{backgroundColor:zt.colorBrandBackground2,color:zt.colorNeutralForeground1}},contentMain:{...Ye.padding("12px","20px","12px","12px")},contextualMenu:{width:"auto",minWidth:"180px"},contentMenuAnchor:{position:"absolute",top:"0px",left:"0px"},error:{...Ye.borderTop("1px","solid",zt.colorPaletteDarkRedBorderActive),marginTop:"8px !important",paddingTop:"8px"},pagination:{},status:{...Ye.borderTop("1px","solid",zt.colorNeutralStroke1),...Ye.padding("0px","20px","0px","12px"),fontSize:"12px",fontStyle:"italic"},actionBar:{position:"absolute",right:"0px",top:"-32px",display:"none",justifyContent:"space-between"}});function Fpe(e){const{message:t}=e;return C.jsx(C.Fragment,{children:t.history.map(r=>{const n={...t,history:[r]},o={...e,message:n};return C.jsx(Pj,{...o},r.from)})})}Fpe.displayName="SeparatedMessageBubbleRenderer";function Bpe(e){const{locStrings:t,className:r}=e,n=Dut();return C.jsx("div",{className:Xe(n.sessionSplit,r),children:C.jsxs("span",{children:["--- ",t.SessionSplit_Desc," ---"]})})}Bpe.displayName="DefaultSessionSplitRenderer";const Dut=wr({sessionSplit:{display:"flex",justifyContent:"center",height:"24px",color:zt.colorNeutralForeground4}});function Mpe(e){const{locStrings:t,className:r}=e,n=Fut();return C.jsxs(ZNe,{horizontal:!0,verticalAlign:"center",className:r,children:[C.jsx("div",{className:n.hintTyping,children:t.Typing}),C.jsxs("div",{className:n.typingDots,children:[C.jsx("div",{className:n.typingDot}),C.jsx("div",{className:n.typingDot}),C.jsx("div",{className:n.typingDot})]})]})}Mpe.displayName="DefaultTypingIndicatorRenderer";const Fut=wr({hintTyping:{...Ye.overflow("hidden"),width:"1px",height:"1px"},typingDots:{...Ye.transition("opacity","0.1s"),display:"flex",alignItems:"center",height:"22.5px"},typingDot:{...Ye.borderRadius("50%"),...Ye.margin("0","0","0","6px"),display:"inline-block",width:"6px",height:"6px",backgroundColor:zt.colorNeutralStroke1,animationDuration:"1.5s",animationTimingFunction:"linear",animationIterationCount:"infinite",animationName:{"0%":{transform:"scale(1)"},"16.67%":{transform:"scale(0)"},"33.33%":{transform:"scale(0)"},"50%":{transform:"scale(0)"},"66.67%":{transform:"scale(1)"},"83.33%":{transform:"scale(1)"},"100%":{transform:"scale(1)"}},"&:nth-child(1)":{...Ye.margin("0px")},"&:nth-child(2)":{animationDelay:"0.18s"},"&:nth-child(3)":{animationDelay:"0.36s"}}});function Lpe(e){const{ActionRenderers:t}=e,r=But();return!t||t.length<=0?C.jsx("div",{}):C.jsxs("div",{className:r.toolbar,children:[...t.map((n,o)=>C.jsx(n,{},o))]})}Lpe.displayName="DefaultEditorToolbarRenderer";const But=wr({toolbar:{display:"flex",justifyContent:"flex-end"}});function qj(e){const{EditorActionRenderers:t,EditorRenderer:r,EditorToolbarRenderer:n=Lpe,disabled:o,initialContent:i,editorRef:s,isOthersTyping:a,locStrings:u,maxInputHeight:l,className:c,onEnterKeyPress:f,onInputContentChange:d}=e,h=Mut(),g=o||a;return C.jsxs("div",{className:Xe(h.input,c),children:[C.jsx("div",{className:h.editor,children:C.jsx(r,{editorRef:s,placeholder:u.Input_Placeholder,disabled:g,initialContent:i,maxHeight:l,className:h.editorInner,onEnterKeyPress:f,onChange:d})}),C.jsx("div",{className:h.editorToolbar,children:C.jsx(n,{ActionRenderers:t})})]})}qj.displayName="DefaultMessageInputRenderer";const Mut=wr({input:{...Ye.border("1px","solid",zt.colorNeutralBackground5),...Ye.borderRadius("4px"),boxSizing:"border-box",display:"grid",gridTemplateRows:"1fr auto"},editor:{boxSizing:"border-box"},editorInner:{...Ye.border("0px"),boxSizing:"border-box"},editorToolbar:{boxSizing:"border-box",display:"flex",alignItems:"flex-end",justifyContent:"flex-end",height:"100%"}});function jpe(e){const{MessageAvatarRenderer:t,MessageContentRenderer:r,MessageErrorRenderer:n,MessageSenderRenderer:o,MessageBubbleRenderer:i=Pj,SessionSplitRenderer:s=Bpe,className:a,bubbleClassName:u,sessionSplitClassName:l,locStrings:c,messages:f,useMessageContextualMenuItems:d,useMessageActions:h}=e,g=Lut();return C.jsx("div",{className:Xe(g.container,a),"data-chatbox-locator":tb.MessageList,children:f.map(v=>{switch(v.type){case pf.Message:return C.jsx(i,{MessageAvatarRenderer:t,MessageContentRenderer:r,MessageErrorRenderer:n,MessageSenderRenderer:o,locStrings:c,message:v,className:u,useMessageContextualMenuItems:d,useMessageActions:h},v.id);case pf.SessionSplit:return C.jsx(s,{locStrings:c,className:l},v.id);default:return C.jsx(re.Fragment,{},v.id)}})})}jpe.displayName="MessageListRenderer";const Lut=wr({container:{boxSizing:"border-box"}}),Zz=class Zz extends re.PureComponent{render(){const{elements:t,deltaH:r,deltaW:n,scaleH:o,scaleW:i,className:s,elementClassName:a,renderElement:u}=this.props;return C.jsx("div",{className:s,children:t.map((l,c)=>{const f=(l.top-r)*o,d=(l.left-n)*i,h=l.height*o,g=l.width*i,v={top:f,left:d,height:h,width:g};return l.backgroundColor&&(v.backgroundColor=l.backgroundColor),u?u(l,c,a,v):C.jsx("div",{className:a,style:v},c)})})}};Zz.displayName="MinimapOverview";let _ee=Zz;wr({viewport:{display:"block",width:"100%",left:0,right:0,backgroundColor:"rgba(0, 0, 0, 0.15)"}});wr({container:{height:"100%",width:"100%",...Ye.overflow("hidden")},minimap:{position:"relative",width:"100%",height:"100%"},overview:{},minimapElement:{position:"absolute",backgroundColor:"#c292f9"}});wr({editor:{...Ye.padding("8px"),...Ye.border("1px","solid",zt.colorNeutralBackground5),...Ye.borderRadius("4px"),boxSizing:"border-box",display:"block",width:"100%",userSelect:"none",position:"relative",'&[data-disabled="true"]':{backgroundColor:zt.colorNeutralBackgroundDisabled}},textarea:{...Ye.padding("0px"),...Ye.overflow("hidden","auto"),...Ye.borderWidth(0),...Ye.outline(0,"solid","transparent"),backgroundColor:"transparent",boxSizing:"border-box",resize:"none",appearance:"none",overflowWrap:"break-word",lineHeight:"24px",height:"24px",width:"100%",wordBreak:"break-all",color:zt.colorNeutralForeground1,userSelect:"text"}});function jut(e){return{}}const i5={},zut={},zpe={},l_={},rb={},BM={},dg={},Wj={},MM={},c_={},f_={},jd={},Kj={},Gj={},Hpe={},$pe={},Ppe={},qpe={},Wpe={},Kpe={},Gpe={},vT={},Vpe={},Upe={},Ype={},Xpe={},Qpe={},Hut={},$ut={},Put={},Zpe={},qut={},Jpe={},e0e={},t0e={},Vj={},Uj={},LM={},Wut={},Kut={},Gut={},Vut={},r0e={},n0e={},o0e={};var ct=function(e){const t=new URLSearchParams;t.append("code",e);for(let r=1;rn.type==="newline"||n.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function ppe(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new dpe||null,prettyErrors:t}}function Vat(e,t={}){const{lineCounter:r,prettyErrors:n}=ppe(t),o=new Pj(r==null?void 0:r.addNewLine),i=new $j(t),s=Array.from(i.compose(o.parse(e)));if(n&&r)for(const a of s)a.errors.forEach(vx(e,r)),a.warnings.forEach(vx(e,r));return s.length>0?s:Object.assign([],{empty:!0},i.streamInfo())}function gpe(e,t={}){const{lineCounter:r,prettyErrors:n}=ppe(t),o=new Pj(r==null?void 0:r.addNewLine),i=new $j(t);let s=null;for(const a of i.compose(o.parse(e),!0,e.length))if(!s)s=a;else if(s.options.logLevel!=="silent"){s.errors.push(new kh(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return n&&r&&(s.errors.forEach(vx(e,r)),s.warnings.forEach(vx(e,r))),s}function Uat(e,t,r){let n;typeof t=="function"?n=t:r===void 0&&t&&typeof t=="object"&&(r=t);const o=gpe(e,r);if(!o)return null;if(o.warnings.forEach(i=>Bhe(o.options.logLevel,i)),o.errors.length>0){if(o.options.logLevel!=="silent")throw o.errors[0];o.errors=[]}return o.toJS(Object.assign({reviver:n},r))}function Yat(e,t,r){let n=null;if(typeof t=="function"||Array.isArray(t)?n=t:r===void 0&&t&&(r=t),typeof r=="string"&&(r=r.length),typeof r=="number"){const o=Math.round(r);r=o<1?void 0:o>8?{indent:8}:{indent:o}}if(e===void 0){const{keepUndefined:o}=r??t??{};if(!o)return}return new o5(e,n,r).toString(r)}const Xat=Object.freeze(Object.defineProperty({__proto__:null,Alias:V9,CST:Wat,Composer:$j,Document:o5,Lexer:fpe,LineCounter:dpe,Pair:Ni,Parser:Pj,Scalar:Zt,Schema:n5,YAMLError:zj,YAMLMap:ia,YAMLParseError:kh,YAMLSeq:m1,YAMLWarning:epe,isAlias:gp,isCollection:Pn,isDocument:Dv,isMap:Fv,isNode:ho,isPair:Bn,isScalar:gn,isSeq:Bv,parse:Uat,parseAllDocuments:Vat,parseDocument:gpe,stringify:Yat,visit:v1,visitAsync:G9},Symbol.toStringTag,{value:"Module"})),Qat=/.*\.prompty$/,Zat=".prompty",yx="pfs-network-error",OM=(e,t)=>t.some(r=>e instanceof r);let yee,bee;function Jat(){return yee||(yee=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function eut(){return bee||(bee=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const DM=new WeakMap,E3=new WeakMap,u5=new WeakMap;function tut(e){const t=new Promise((r,n)=>{const o=()=>{e.removeEventListener("success",i),e.removeEventListener("error",s)},i=()=>{r(bx(e.result)),o()},s=()=>{n(e.error),o()};e.addEventListener("success",i),e.addEventListener("error",s)});return u5.set(t,e),t}function rut(e){if(DM.has(e))return;const t=new Promise((r,n)=>{const o=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",s),e.removeEventListener("abort",s)},i=()=>{r(),o()},s=()=>{n(e.error||new DOMException("AbortError","AbortError")),o()};e.addEventListener("complete",i),e.addEventListener("error",s),e.addEventListener("abort",s)});DM.set(e,t)}let FM={get(e,t,r){if(e instanceof IDBTransaction){if(t==="done")return DM.get(e);if(t==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return bx(e[t])},set(e,t,r){return e[t]=r,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function vpe(e){FM=e(FM)}function nut(e){return eut().includes(e)?function(...t){return e.apply(BM(this),t),bx(this.request)}:function(...t){return bx(e.apply(BM(this),t))}}function out(e){return typeof e=="function"?nut(e):(e instanceof IDBTransaction&&rut(e),OM(e,Jat())?new Proxy(e,FM):e)}function bx(e){if(e instanceof IDBRequest)return tut(e);if(E3.has(e))return E3.get(e);const t=out(e);return t!==e&&(E3.set(e,t),u5.set(t,e)),t}const BM=e=>u5.get(e),iut=["get","getKey","getAll","getAllKeys","count"],sut=["put","add","delete","clear"],S3=new Map;function _ee(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(S3.get(t))return S3.get(t);const r=t.replace(/FromIndex$/,""),n=t!==r,o=sut.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(o||iut.includes(r)))return;const i=async function(s,...a){const u=this.transaction(s,o?"readwrite":"readonly");let l=u.store;return n&&(l=l.index(a.shift())),(await Promise.all([l[r](...a),o&&u.done]))[0]};return S3.set(t,i),i}vpe(e=>({...e,get:(t,r,n)=>_ee(t,r)||e.get(t,r,n),has:(t,r)=>!!_ee(t,r)||e.has(t,r)}));const aut=["continue","continuePrimaryKey","advance"],Eee={},MM=new WeakMap,mpe=new WeakMap,uut={get(e,t){if(!aut.includes(t))return e[t];let r=Eee[t];return r||(r=Eee[t]=function(...n){MM.set(this,mpe.get(this)[t](...n))}),r}};async function*lut(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;t=t;const r=new Proxy(t,uut);for(mpe.set(r,t),u5.set(r,BM(t));t;)yield r,t=await(MM.get(r)||t.continue()),MM.delete(r)}function See(e,t){return t===Symbol.asyncIterator&&OM(e,[IDBIndex,IDBObjectStore,IDBCursor])||t==="iterate"&&OM(e,[IDBIndex,IDBObjectStore])}vpe(e=>({...e,get(t,r,n){return See(t,r)?lut:e.get(t,r,n)},has(t,r){return See(t,r)||e.has(t,r)}}));class cut{constructor(){this.chatMessagesMap=new Map}async addChatMessage(t,r,n){const o=this.chatMessagesMap.get(r)||[];o.push({...n,flowFilePath:t,chatItemName:r}),this.chatMessagesMap.set(r,o)}async getChatMessages(t,r){return this.chatMessagesMap.get(r)||[]}async clearChatMessages(t){this.chatMessagesMap.clear()}}const LM=new cut;class jM{constructor(){ze(this,"_errors");ze(this,"_summary");this._errors=[],this._summary=void 0}cleanup(){this._errors.length=0,this._summary=void 0}run(t){try{t()}catch(r){this._errors.push(r),this._summary=void 0}}summary(t){if(this._summary===void 0){if(this._errors.length===1)throw this._summary=this._errors[0];this._errors.length>1&&(this._summary=new AggregateError(this._errors,t))}if(this._summary!==void 0)throw this._summary}}function fut(e){const t=new jM;for(const r of e)t.run(()=>r.dispose());t.summary("[disposeAll] Encountered errors while disposing"),t.cleanup()}class ype{constructor(){ze(this,"_disposed");ze(this,"_disposables");this._disposed=!1,this._disposables=[]}get disposed(){return this._disposed}dispose(){if(!this._disposed){this._disposed=!0;try{fut(this._disposables)}finally{this._disposables.length=0}}}registerDisposable(t){t.disposed||(this._disposed?t.dispose():this._disposables.push(t))}}class qj{constructor(t){ze(this,"_onDispose");ze(this,"_disposed");this._onDispose=t,this._disposed=!1}get disposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._onDispose())}}function dut(e){return e===null||typeof e!="object"?!1:typeof Reflect.get(e,"dispose")=="function"&&typeof Reflect.get(e,"disposed")=="boolean"}const hut=()=>{};class _x{constructor(t){ze(this,"_onDispose");ze(this,"_onNext");ze(this,"_disposed");this._onDispose=(t==null?void 0:t.onDispose)??hut,this._onNext=t.onNext,this._disposed=!1}get disposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._onDispose())}next(t,r){this._disposed||this._onNext(t,r)}}const wee={unsubscribe:()=>{}};class put{constructor(t={}){ze(this,"ARRANGE_THRESHOLD");ze(this,"_disposed");ze(this,"_items");ze(this,"_subscribingCount");this.ARRANGE_THRESHOLD=t.ARRANGE_THRESHOLD??16,this._disposed=!1,this._items=[],this._subscribingCount=0}get size(){return this._subscribingCount}get disposed(){return this._disposed}dispose(){if(this._disposed)return;this._disposed=!0;const t=new jM,r=this._items;for(let n=0;no.subscriber.dispose()))}r.length=0,this._subscribingCount=0,t.summary("Encountered errors while disposing."),t.cleanup()}notify(t,r){if(this._disposed)return;const n=new jM,o=this._items;for(let i=0,s=o.length;ia.subscriber.next(t,r))}n.summary("Encountered errors while notifying subscribers."),n.cleanup()}subscribe(t){if(t.disposed)return wee;if(this.disposed)return t.dispose(),wee;const r={subscriber:t,unsubscribed:!1};return this._items.push(r),this._subscribingCount+=1,{unsubscribe:()=>{r.unsubscribed||(r.unsubscribed=!0,this._subscribingCount-=1,this._arrange())}}}_arrange(){const t=this._items;if(t.length>=this.ARRANGE_THRESHOLD&&this._subscribingCount*2<=t.length){const r=[];for(let n=0;n{},Aee={unsubscribe:bpe},kee={unobserve:bpe},gut=e=>e===null||typeof e!="object"?!1:typeof Reflect.get(e,"dispose")=="function"&&typeof Reflect.get(e,"disposed")=="boolean"&&typeof Reflect.get(e,"subscribe")=="function"&&typeof Reflect.get(e,"equals")=="function"&&typeof Reflect.get(e,"getSnapshot")=="function"&&typeof Reflect.get(e,"next")=="function",vut=(e,t)=>Object.is(e,t);class Wj extends ype{constructor(r,n={}){super();ze(this,"equals");ze(this,"_delay");ze(this,"_subscribers");ze(this,"_value");ze(this,"_updateTick");ze(this,"_notifyTick");ze(this,"_lastNotifiedValue");ze(this,"_timer");const{equals:o=vut}=n;this._delay=Math.max(0,Number(n.delay)||0),this._subscribers=new put,this._value=r,this._updateTick=0,this._notifyTick=0,this._lastNotifiedValue=void 0,this._timer=void 0,this.equals=o}dispose(){this.disposed||(super.dispose(),this._flush(),this._subscribers.dispose())}getSnapshot(){return this._value}next(r,n){if(this.disposed){if((n==null?void 0:n.strict)??!0)throw new RangeError(`Don't update a disposed observable. value: ${String(r)}.`);return}!((n==null?void 0:n.force)??!1)&&this.equals(r,this._value)||(this._value=r,this._updateTick+=1,this._notify())}subscribe(r){if(r.disposed)return Aee;const n=this._lastNotifiedValue,o=this._value;return this.disposed?(r.next(o,n),r.dispose(),Aee):(this._flush(),r.next(o,n),this._subscribers.subscribe(r))}_flush(){this._notifyTick{try{this._notifyImmediate()}finally{this._timer=void 0}this._notify()},this._delay))}}_notifyImmediate(){const r=this._lastNotifiedValue,n=this._value;this._lastNotifiedValue=n,this._notifyTick=this._updateTick,this._subscribers.notify(n,r)}}const mut=(e,t)=>e===t;class _pe extends Wj{constructor(t={}){const{start:r=0,delay:n}=t;super(r,{delay:n,equals:mut})}tick(t){this.next(this._value+1,t)}observe(t,r){if(this.disposed){if((r==null?void 0:r.strict)??!0)throw new RangeError("[Ticker.observe] the ticker has been disposed.");return kee}if(t.disposed)return kee;const n=new _x({onNext:()=>this.tick()}),o=t.subscribe(n),i=new qj(()=>{n.dispose(),o.unsubscribe()});return this.registerDisposable(i),{unobserve:()=>i.dispose()}}}class Kj{constructor(t){ze(this,"_observable");ze(this,"getSnapshot",()=>this._observable.getSnapshot());ze(this,"getServerSnapshot",()=>this._observable.getSnapshot());ze(this,"subscribeStateChange",t=>{const r=new _x({onNext:()=>t()}),n=this._observable.subscribe(r),o=new qj(()=>{r.dispose(),n.unsubscribe()});return this._observable.registerDisposable(o),()=>o.dispose()});this._observable=t}static fromObservables(t,r,n){const o=new _pe;for(const u of t)o.observe(u);const i=()=>{const u=t.map(l=>l.getSnapshot());return r(u)},s=new Wj(i(),n);s.registerDisposable(o);const a=new _x({onNext:()=>s.next(i())});return o.subscribe(a),new Kj(s)}get disposed(){return this._observable.disposed}dispose(){this._observable.disposed||this._observable.dispose()}registerDisposable(t){this._observable.registerDisposable(t)}subscribe(t){return this._observable.subscribe(t)}}class qo extends Wj{constructor(){super(...arguments);ze(this,"getSnapshot",()=>super.getSnapshot());ze(this,"getServerSnapshot",()=>super.getSnapshot());ze(this,"setState",r=>{const n=this.getSnapshot(),o=r(n);super.next(o)});ze(this,"subscribeStateChange",r=>{const n=new _x({onNext:()=>r()}),o=super.subscribe(n),i=new qj(()=>{n.dispose(),o.unsubscribe()});return this.registerDisposable(i),()=>i.dispose()})}}class Epe extends ype{constructor(){super();ze(this,"_tickerMap");this._tickerMap=new Map}dispose(){if(!this.disposed){super.dispose();for(const r of Reflect.ownKeys(this))if(typeof r=="string"&&r.endsWith("$")){const n=this[r];dut(n)&&n.dispose()}for(const r of this._tickerMap.values())r.ticker.dispose();this._tickerMap.clear()}}ticker(r){const n=Array.from(new Set(r)).sort(),o=n.join("|");let i=this._tickerMap.get(o);if(i===void 0){const s=new _pe;i={keys:n,ticker:s},this.registerDisposable(s),this._tickerMap.set(o,i);for(const a of n){const u=this[a];if(!gut(u)){console.warn("[ViewModel.ticker] not an observable, key:",a,"val:",u);continue}s.observe(u)}}return i}}function yut(e,t,r){const n=t(),[{inst:o},i]=k.useState({inst:{value:n,getSnapshot:t}});return k.useLayoutEffect(()=>{o.value=n,o.getSnapshot=t,w3(o)&&i({inst:o})},[e,n,t]),k.useEffect(()=>(w3(o)&&i({inst:o}),e(()=>{w3(o)&&i({inst:o})})),[e]),k.useDebugValue(n),n}function w3(e){const t=e.getSnapshot,r=e.value;try{const n=t();return!Object.is(r,n)}catch{return!0}}function but(e,t,r){return t()}const _ut=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Eut=_ut?yut:but,xee=k.useSyncExternalStore,Spe=xee||Eut;function Sut(e){const{getSnapshot:t,getServerSnapshot:r,subscribeStateChange:n}=e;return Spe(n,t,r)}function ro(e){const{getSnapshot:t,getServerSnapshot:r,subscribeStateChange:n}=e;return Spe(n,t,r)}var Eo=(e=>(e.System="system",e.Error="error",e.Chatbot="chatbot",e.User="user",e))(Eo||{}),gf=(e=>(e.Message="message",e.SessionSplit="session-split",e))(gf||{}),Pu=(e=>(e[e.PENDING=0]="PENDING",e[e.COPYING=1]="COPYING",e[e.COPIED=2]="COPIED",e[e.FAILED=3]="FAILED",e))(Pu||{}),nb=(e=>(e.MessageBubble="chatbox-message-bubble",e.MessageContent="chatbox-message-content",e.MessageList="chatbox-message-list",e.MessageActionBar="chatbox-message-action-bar",e))(nb||{}),wpe=(e=>(e.MessageBubble='[data-chatbox-locator="chatbox-message-bubble"]',e.MessageContent='[data-chatbox-locator="chatbox-message-content"]',e.MessageList='[data-chatbox-locator="chatbox-message-list"]',e.MessageActionBar='[data-chatbox-locator="chatbox-message-action-bar"]',e))(wpe||{});const Gj={CopyToClipboard:"Copy to clipboard",CopyToClipboard_Copying:"Copying...",CopyToClipboard_Copied:"Copied!",CopyToClipboard_Failed:"Failed!",Header_Clear:"Click to clear all chat histories",Header_Close:"Click to close chat box",Header_EnterFullScreen:"Click to enter full screen mode",Header_ExitFullScreen:"Click to exit full screen mode",Header_Title:"Chat",Input_Placeholder:"Input anything to test...",MessageError_HideDetail:"Hide Detail",MessageError_ShowDetail:"Show Detail",MessageStatus_TimeSpentDesc:"time spent",MessageStatus_TimeSpentDscCapitalized:"Time spent",MessageStatus_TimeSpent_Unit:"sec",MessageStatus_TokensDesc:"Total tokens for generating this",MessageStatus_TokensUint:"tokens",SessionSplit_Desc:"Your session start from here.",Tooltip_Bottom:"Only default variants will be used for chat, if you want to test variants please try bulk test. For chatbot and test app bot, it will only show the chat output.",Tooltip_TotalTokens:"Total tokens",Typing:"Generating chat output for you"};class Ape{constructor(t){this.calcContentForCopy=f=>this.calcContentForCopy$.getSnapshot()(f),this.monitorInputContentChange=f=>this.inputContentChangeTick$.subscribeStateChange(f),this.notifyInputContentChange=()=>{this.inputContentChangeTick$.setState(f=>f+1)},this.sendMessage=f=>{const d=this.editorRef.current;if(!d){console.log("!!!editorRef is not mounted.");return}const h=f??d.getContent(),g=this.sendMessage$.getSnapshot(),y=this.makeUserMessage$.getSnapshot()(h);this.messages$.setState(E=>[...E,y]),d.clear(),this.isOthersTyping$.next(!0),g(h,this,y).then(E=>{E!==void 0&&this.messages$.setState(_=>[..._,E])}).finally(()=>{this.isOthersTyping$.next(!1)})},this.setCalcContentForCopy=f=>{this.calcContentForCopy$.next(f)},this.setMakeUserMessage=f=>{this.makeUserMessage$.next(f)},this.setSendMessage=f=>{this.sendMessage$.next(f)},this.sessionSplit=f=>{const d={id:Cs.v4(),type:gf.SessionSplit,history:[{category:Eo.System,from:"system",content:f??"",timestamp:new Date().toISOString()}]};return this.messages$.setState(h=>[...h,d]),d};const{alias:r="",initialDisabled:n=!1,initialMessages:o=[],locStrings:i=Gj,calcContentForCopy:s=f=>typeof f.content=="string"?f.content:JSON.stringify(f.content),makeUserMessage:a=f=>({id:Cs.v4(),type:gf.Message,history:[{category:Eo.User,from:this.alias$.getSnapshot(),timestamp:new Date().toISOString(),content:f}]}),sendMessage:u=async f=>({id:Cs.v4(),type:gf.Message,history:[{category:Eo.Chatbot,from:"chatbot",timestamp:new Date().toISOString(),content:f}]})}=t;this.editorRef={current:null};const l=new qo(0),c=Kj.fromObservables([l],()=>{var f;return(f=this.editorRef.current)==null?void 0:f.isEmpty()});this.alias$=new qo(r),this.disabled$=new qo(n),this.inputContentChangeTick$=l,this.isEditorEmpty$=c,this.isOthersTyping$=new qo(!1),this.locStrings$=new qo(i),this.messages$=new qo(o),this.calcContentForCopy$=new qo(s),this.makeUserMessage$=new qo(a),this.sendMessage$=new qo(u)}}const wut=new Ape({sendMessage:()=>Promise.resolve({id:Date.now(),type:gf.Message,history:[{category:Eo.System,from:"system",timestamp:new Date().toISOString(),content:"sendMessage not implemented!"}]})}),kpe=re.createContext({viewmodel:wut}),ku=()=>re.useContext(kpe);function Vj(e){const t=k.useRef(e);return k.useLayoutEffect(()=>{t.current=e}),k.useCallback((...r)=>{const n=t.current;return n(...r)},[])}function xpe(){const{viewmodel:e}=ku();return Sut(e.isEditorEmpty$)??!0}function Tpe(e,t){const[r,n]=re.useState(Pu.PENDING),o=lr(s=>{if(r===Pu.PENDING){n(Pu.COPYING);try{const a=t(s);dhe(a),n(Pu.COPIED)}catch{n(Pu.FAILED)}}});return re.useEffect(()=>{if(r===Pu.COPIED||r===Pu.FAILED){let s=setTimeout(()=>{s=void 0,n(Pu.PENDING)},1500);return()=>{s&&clearTimeout(s)}}},[r]),re.useMemo(()=>({key:"copy",group:2,icon:r===Pu.PENDING?N.jsx(Aae,{}):N.jsx(kae,{}),tooltip:N.jsx(N.Fragment,{children:e.CopyToClipboard}),disabled:r!==Pu.PENDING,onClick:o,condition:s=>s.category===Eo.Chatbot||s.category===Eo.User||s.category===Eo.Error}),[e,r,o])}Ar({copyButton:{cursor:"pointer"}});const Ipe=e=>{const{className:t,disabled:r,icon:n=N.jsx(g3e,{}),title:o,onSend:i}=e;return N.jsx(Wn,{as:"button",appearance:"transparent",size:"medium",title:o,className:t,icon:n,disabled:r,onClick:i})};Ipe.displayName="SendButton";const Aut={Add:"Add",AddAnImage:"Add an image",PasteImageOrLinkHere:"Paste image or link here",UploadFromThisDevice:"Upload from this device"},kut=e=>{const{src:t,alt:r,loading:n=!1,width:o,height:i,styles:s}=e;return t?n?N.jsx("div",{children:"Loading..."}):N.jsx("div",{className:s==null?void 0:s.root,children:N.jsx("img",{className:s==null?void 0:s.image,src:t,alt:r,width:o,height:i})}):N.jsx("div",{children:"This image can not be previewed."})},xut=e=>{const{src:t,alt:r,visible:n,loading:o=!1,width:i,height:s,onDismiss:a}=e,u=Tut(),l=N.jsxs("div",{className:u.container,children:[N.jsxs("div",{className:u.header,children:[N.jsx("h2",{className:u.heading,children:"Preview"}),N.jsx(Wn,{as:"button",appearance:"transparent",icon:N.jsx(Tae,{}),className:u.dismissBtn,onClick:a})]}),N.jsx("div",{className:u.main,children:N.jsx(kut,{src:t,alt:r,loading:o,width:i,height:s,styles:{image:u.image}})})]});return N.jsx(Yie,{isOpen:n,isBlocking:!1,onDismiss:a,children:l})},Tut=Ar({container:{display:"flex",flexDirection:"column",flexWrap:"nowrap",...Ye.padding("16px")},header:{...Ye.flex(0,0,"auto"),display:"flex",flexDirection:"row",flexWrap:"nowrap",justifyContent:"space-between",marginBottom:"20px"},heading:{...Ye.margin(0),fontWeight:Tn.semibold,fontSize:"inherit"},dismissBtn:{"&&":{fontSize:"16px",lineHeight:"16px",height:"16px",width:"16px",color:Pt.colorNeutralStroke1}},main:{...Ye.overflow("auto"),display:"flex",justifyContent:"center",alignItems:"center"},image:{width:"auto",height:"auto",maxWidth:"60vw",maxHeight:"60vh"}}),Tee="48px",Cpe="__MASK_SELECTOR_CLASS_NAME__",Iut=e=>{const{image:t,alt:r,isReadonly:n,onClickDelete:o}=e,[i,s]=re.useState(!1),a=Cut(),u=re.useMemo(()=>{if(t)return typeof t=="string"?t:URL.createObjectURL(t)},[t]),l=re.useCallback(()=>{s(f=>!f)},[]),c=u||"";return N.jsxs("div",{className:Xe(a.root,n?a.readonlyRoot:void 0),children:[N.jsxs("div",{className:a.imageContainer,children:[N.jsx("img",{decoding:"async",className:a.image,src:c,alt:r}),N.jsx("div",{"aria-hidden":!0,className:Xe(a.mask,Cpe),onClick:l,role:"button",children:N.jsx(Iae,{})})]}),!n&&N.jsx(Wn,{as:"button",className:a.closeButton,icon:N.jsx(xae,{}),onClick:o}),N.jsx(xut,{src:c,alt:r||"",visible:i,onDismiss:l})]})},Cut=Ar({root:{boxSizing:"border-box",display:"flex",height:"32px",width:"80px",...Ye.border("1px","solid",Pt.colorNeutralStroke2),...Ye.borderRadius("4px")},readonlyRoot:{width:"48px"},imageContainer:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",width:Tee,[`:hover .${Cpe}`]:{visibility:"visible"}},image:{maxWidth:"100%",maxHeight:"100%",width:"auto",height:"auto"},mask:{visibility:"hidden",cursor:"pointer",position:"absolute",top:0,left:0,width:`calc(${Tee} - 2px)`,height:"100%",backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",color:Pt.colorNeutralForegroundStaticInverted,...Ye.borderRadius("4px",0,0,"4px")},closeButton:{width:"32px",...Ye.border(0)}}),Npe=re.forwardRef((e,t)=>N.jsx(Wn,{...e,ref:t,as:"button",appearance:"transparent",size:"medium",icon:N.jsx(wae,{})}));Npe.displayName="UploadPopoverTrigger";const Nut=(e,...t)=>{const r={...e};for(const n of Object.keys(e))r[n]=Xe(e[n],...t.map(o=>o==null?void 0:o[n]));return r},Rpe=re.forwardRef(({isUploading:e,disabled:t,errorMessage:r,trigger:n=N.jsx(Npe,{}),locStrings:o=Aut,styles:i,events:s,onUpload:a,onRenderImagePreview:u},l)=>{const c=Nut(Rut(),i),{onDelete:f,onInputBlur:d,onPaste:h,onLocalUpload:g}=s??{};re.useImperativeHandle(l,()=>({open(){y(!0)},close(){y(!1)},reset:()=>{x()},retrieve:()=>S}));const[v,y]=re.useState(!1),[E,_]=re.useState(""),[S,b]=re.useState(void 0),A=re.useRef(null),T=re.useCallback((M,q)=>{y(q.open||!1)},[]),x=re.useCallback(()=>{_(""),b(void 0),A.current&&(A.current.value="")},[]),C=re.useCallback(M=>{const q=M[0];b(q),h==null||h(q)},[h]),I=re.useCallback(M=>{M.clipboardData.files&&C&&C(M.clipboardData.files)},[C]),R=re.useCallback(()=>{d==null||d(E),b(E)},[E,d]),D=re.useCallback(()=>{S&&a(S)},[S,a]),L=re.useMemo(()=>u?u({cachedImage:S,customerInputContent:E,isReadonly:t||e||!1}):N.jsx(Iut,{image:S||E,alt:E||"",isReadonly:e,onClickDelete:()=>{x(),f==null||f()}}),[E,S,x,t,e,f,u]);return N.jsxs(zue,{positioning:"above-end",open:v,onOpenChange:T,children:[N.jsx(N8,{disableButtonEnhancement:!0,children:n}),N.jsxs(jue,{className:c.attachUploadPopover,children:[N.jsxs("div",{className:c.attachUploadHeader,children:[N.jsx("span",{children:o.AddAnImage}),N.jsx(Wn,{as:"button",disabled:t,appearance:"transparent",icon:N.jsx(Tae,{}),onClick:()=>{y(!1)}})]}),N.jsxs("div",{className:c.attachUploadInputWrapper,children:[S?L:N.jsx(M8,{className:c.attachUploadInput,value:E,disabled:t,placeholder:o.PasteImageOrLinkHere,onChange:(M,q)=>{b(void 0),_(q.value)},onPaste:I,onBlur:R}),N.jsx(Wn,{as:"button",disabled:t||e||!S&&!E,className:c.addButton,onClick:D,children:e?N.jsx(J_,{size:"tiny"}):o.Add})]}),r&&N.jsx("div",{className:c.errorMessage,children:r}),N.jsx("input",{tabIndex:-1,"aria-hidden":!0,ref:A,disabled:t,className:c.invisibleFileInput,onChange:M=>{var z;const q=(z=M.target.files)==null?void 0:z[0];q&&(g==null||g(q)),b(q)},type:"file",accept:"image/*"}),N.jsx("div",{className:c.triggerUploadButton,children:N.jsx(Wn,{as:"button",disabled:t,appearance:"transparent",icon:N.jsx(i3e,{}),onClick:()=>{var M;(M=A.current)==null||M.click()},children:o.UploadFromThisDevice})})]})]})});Rpe.displayName="UploadPopover";const Rut=Ar({attachUploadPopover:{width:"400px",backgroundColor:Pt.colorNeutralBackground1,...Ye.padding("12px")},attachUploadHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",fontWeight:500,fontSize:"16px",lineHeight:"22px"},attachUploadInputWrapper:{marginTop:"8px",display:"flex",columnGap:"8px",justifyContent:"space-between"},attachUploadInput:{flexGrow:1},addButton:{minWidth:"52px"},errorMessage:{color:Pt.colorPaletteRedBackground3},invisibleFileInput:{display:"none"},triggerUploadButton:{marginTop:"8px",display:"flex",justifyContent:"space-between"}}),Ope=()=>N.jsx("div",{});Ope.displayName="DefaultInputValidationRenderer";const Out=()=>N.jsx(N.Fragment,{});function Dpe(e){const{content:t,className:r}=e,n=Dut(),o=Xe(n.content,r);if(typeof t=="string")return N.jsx("p",{className:o,children:t});const i=JSON.stringify(t,null,2);return N.jsx("pre",{className:o,children:i})}Dpe.displayName="DefaultMessageContentRenderer";const Dut=Ar({content:{...Ye.overflow("auto"),wordBreak:"break-all",whiteSpace:"break-spaces"}});function Fpe(e){const{error:t,locStrings:r,className:n}=e,[o,i]=re.useState(!1),s=Fut(),a=Xe(s.errorMessageDetail,!o&&s.errorMessageDetailHidden,n);return N.jsxs(re.Fragment,{children:[N.jsx("p",{children:N.jsx(Gb,{onClick:()=>i(u=>!u),children:o?r.MessageError_HideDetail:r.MessageError_ShowDetail})}),N.jsx("p",{className:a,children:t})]})}Fpe.displayName="DefaultMessageErrorRenderer";const Fut=Ar({errorMessageDetail:{...Ye.margin("0","0","0","0"),wordBreak:"break-word",whiteSpace:"break-spaces"},errorMessageDetailHidden:{display:"none"}}),But=()=>re.useMemo(()=>[],[]);function Bpe(e){const{useMessageActions:t=But,data:r,className:n}=e,o=t(r),i=Mut(),s=re.useMemo(()=>{const l=o.filter(f=>!f.condition||f.condition(r)).sort((f,d)=>f.group-d.group),c=[];for(let f=0,d;f0))return N.jsx(N.Fragment,{});const u=[];for(let l=0;ly(r)},d)},d))}l+1{r>0&&o(r-1)},a=()=>{r=z?q:""+Array(z+1-$.length).join(F)+q},b={s:S,z:function(q){var z=-q.utcOffset(),F=Math.abs(z),$=Math.floor(F/60),K=F%60;return(z<=0?"+":"-")+S($,2,"0")+":"+S(K,2,"0")},m:function q(z,F){if(z.date()1)return q(X[0])}else{var J=z.name;T[J]=z,K=J}return!$&&K&&(A=K),K||!$&&A},R=function(q,z){if(C(q))return q.clone();var F=typeof z=="object"?z:{};return F.date=q,F.args=arguments,new L(F)},D=b;D.l=I,D.i=C,D.w=function(q,z){return R(q,{locale:z.$L,utc:z.$u,x:z.$x,$offset:z.$offset})};var L=function(){function q(F){this.$L=I(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[x]=!0}var z=q.prototype;return z.parse=function(F){this.$d=function($){var K=$.date,U=$.utc;if(K===null)return new Date(NaN);if(D.u(K))return new Date;if(K instanceof Date)return new Date(K);if(typeof K=="string"&&!/Z$/i.test(K)){var X=K.match(y);if(X){var J=X[2]-1||0,ee=(X[7]||"0").substring(0,3);return U?new Date(Date.UTC(X[1],J,X[3]||1,X[4]||0,X[5]||0,X[6]||0,ee)):new Date(X[1],J,X[3]||1,X[4]||0,X[5]||0,X[6]||0,ee)}}return new Date(K)}(F),this.init()},z.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},z.$utils=function(){return D},z.isValid=function(){return this.$d.toString()!==v},z.isSame=function(F,$){var K=R(F);return this.startOf($)<=K&&K<=this.endOf($)},z.isAfter=function(F,$){return R(F){const{duration:t,tokens:r,locStrings:n,className:o}=e,i=t.toFixed(2).replace(/\.?0*$/,"");return N.jsxs("div",{className:o,children:[r>0&&N.jsxs(re.Fragment,{children:[`${n.MessageStatus_TokensDesc}: `,N.jsx("b",{children:r}),` ${n.MessageStatus_TokensUint}, `]}),`${r>0?n.MessageStatus_TimeSpentDesc:n.MessageStatus_TimeSpentDscCapitalized}: `,N.jsx("b",{children:i}),` ${n.MessageStatus_TimeSpent_Unit}`]})};zpe.displayName="DefaultMessageStatusRenderer";const Hut=[],$ut=e=>Hut;function Uj(e){const{MessageAvatarRenderer:t,MessageContentRenderer:r=Dpe,MessageErrorRenderer:n=Fpe,MessageSenderRenderer:o=jpe,MessagePaginationRenderer:i=Mpe,MessageActionBarRenderer:s=Bpe,MessageStatusRenderer:a=zpe,useMessageContextualMenuItems:u=$ut,useMessageActions:l,initialPage:c=-1,locStrings:f,message:d,className:h}=e,g=Put(),[v,y]=re.useState((c%d.history.length+d.history.length)%d.history.length),[E,_]=re.useState(!1),S=re.useRef(null),b=re.useRef(null),A=re.useCallback(()=>{_(!1)},[]),T=re.useCallback(D=>{const L=S.current,M=b.current;if(L&&M){const q=D.clientX,z=D.clientY,F=L.getBoundingClientRect(),$=F.left+window.scrollX,K=F.top+window.scrollY,U=q-$,X=z-K;M.style.left=`${U}px`,M.style.top=`${X}px`}},[]),x=re.useCallback(D=>{D.preventDefault(),T(D),_(!0)},[]),C=d.history[v],I=C.category===Eo.User?"right":"left",R=u(C);return re.useEffect(()=>{const D=()=>{_(!1)};return document.addEventListener("mousedown",D),()=>document.removeEventListener("mousedown",D)},[]),N.jsx("div",{className:g.container,"data-chatbox-locator":nb.MessageBubble,"data-position":I,children:N.jsxs("div",{className:Xe(g.message,h),"data-position":I,children:[N.jsx("div",{className:g.avatar,children:t&&N.jsx(t,{data:C,position:I})}),N.jsxs("div",{className:g.main,children:[N.jsx("div",{className:g.sender,children:N.jsx(o,{data:C,position:I})}),N.jsxs("div",{ref:S,className:g.content,"data-category":C.category,"data-chatbox-locator":nb.MessageContent,onContextMenu:x,onClick:T,children:[N.jsx(r,{content:C.content,data:C,className:g.contentMain}),C.error&&N.jsx(n,{error:C.error,locStrings:f,className:g.error}),typeof C.duration=="number"&&typeof C.tokens=="number"&&N.jsx(a,{duration:C.duration,tokens:C.tokens,locStrings:f,className:g.status}),d.history.length>1&&N.jsx(i,{className:g.pagination,message:d,current:v,setCurrent:y}),N.jsx("div",{ref:b,className:g.contentMenuAnchor}),R.length>0&&N.jsx(Gie,{items:R,hidden:!E,target:b,onItemClick:A,onDismiss:A,className:g.contextualMenu}),N.jsx("div",{className:g.actionBar,"data-chatbox-locator":nb.MessageActionBar,children:N.jsx(s,{data:C,locStrings:f,useMessageActions:l})})]})]})]})})}Uj.displayName="DefaultMessageBubbleRenderer";const Put=Ar({container:{...Ye.margin("16px","0"),display:"flex",justifyContent:"flex-start",'&&[data-position="right"]':{justifyContent:"flex-end"},width:"100%"},message:{display:"flex",flexDirection:"row",'&&[data-position="right"]':{flexDirection:"row-reverse"},maxWidth:"calc(100% - 80px)"},avatar:{...Ye.flex(0,0,"auto")},main:{...Ye.flex(1,1,"auto"),display:"flex",flexDirection:"column",width:"100%"},sender:{...Ye.flex(0,0,"auto")},content:{...Ye.flex(1,1,"auto"),...Ye.borderRadius("4px"),position:"relative",boxSizing:"border-box",minWidth:"48px",wordBreak:"break-word",lineHeight:"22px","> p":{...Ye.margin(0)},[`&:hover > ${wpe.MessageActionBar}`]:{display:"flex",visibility:"visible"},[`&&[data-category="${Eo.System}"]`]:{color:Pt.colorNeutralForeground4},[`&&[data-category="${Eo.Error}"]`]:{backgroundColor:Pt.colorPaletteRedBackground2,color:Pt.colorNeutralForeground1},[`&&[data-category="${Eo.Chatbot}"]`]:{backgroundColor:Pt.colorNeutralBackground4,color:Pt.colorNeutralForeground1},[`&&[data-category="${Eo.User}"]`]:{backgroundColor:Pt.colorBrandBackground2,color:Pt.colorNeutralForeground1}},contentMain:{...Ye.padding("12px","20px","12px","12px")},contextualMenu:{width:"auto",minWidth:"180px"},contentMenuAnchor:{position:"absolute",top:"0px",left:"0px"},error:{...Ye.borderTop("1px","solid",Pt.colorPaletteDarkRedBorderActive),marginTop:"8px !important",paddingTop:"8px"},pagination:{},status:{...Ye.borderTop("1px","solid",Pt.colorNeutralStroke1),...Ye.padding("0px","20px","0px","12px"),fontSize:"12px",fontStyle:"italic"},actionBar:{position:"absolute",right:"0px",top:"-32px",display:"none",justifyContent:"space-between"}});function Hpe(e){const{message:t}=e;return N.jsx(N.Fragment,{children:t.history.map(r=>{const n={...t,history:[r]},o={...e,message:n};return N.jsx(Uj,{...o},r.from)})})}Hpe.displayName="SeparatedMessageBubbleRenderer";function $pe(e){const{locStrings:t,className:r}=e,n=qut();return N.jsx("div",{className:Xe(n.sessionSplit,r),children:N.jsxs("span",{children:["--- ",t.SessionSplit_Desc," ---"]})})}$pe.displayName="DefaultSessionSplitRenderer";const qut=Ar({sessionSplit:{display:"flex",justifyContent:"center",height:"24px",color:Pt.colorNeutralForeground4}});function Yj(e){const{locStrings:t,className:r}=e,n=Wut();return N.jsxs(iNe,{horizontal:!0,verticalAlign:"center",className:r,children:[N.jsx("div",{className:n.hintTyping,children:t.Typing}),N.jsxs("div",{className:n.typingDots,children:[N.jsx("div",{className:n.typingDot}),N.jsx("div",{className:n.typingDot}),N.jsx("div",{className:n.typingDot})]})]})}Yj.displayName="DefaultTypingIndicatorRenderer";const Wut=Ar({hintTyping:{...Ye.overflow("hidden"),width:"1px",height:"1px"},typingDots:{...Ye.transition("opacity","0.1s"),display:"flex",alignItems:"center",height:"22.5px"},typingDot:{...Ye.borderRadius("50%"),...Ye.margin("0","0","0","6px"),display:"inline-block",width:"6px",height:"6px",backgroundColor:Pt.colorNeutralStroke1,animationDuration:"1.5s",animationTimingFunction:"linear",animationIterationCount:"infinite",animationName:{"0%":{transform:"scale(1)"},"16.67%":{transform:"scale(0)"},"33.33%":{transform:"scale(0)"},"50%":{transform:"scale(0)"},"66.67%":{transform:"scale(1)"},"83.33%":{transform:"scale(1)"},"100%":{transform:"scale(1)"}},"&:nth-child(1)":{...Ye.margin("0px")},"&:nth-child(2)":{animationDelay:"0.18s"},"&:nth-child(3)":{animationDelay:"0.36s"}}});function Ppe(e){const{ActionRenderers:t}=e,r=Kut();return!t||t.length<=0?N.jsx("div",{}):N.jsxs("div",{className:r.toolbar,children:[...t.map((n,o)=>N.jsx(n,{},o))]})}Ppe.displayName="DefaultEditorToolbarRenderer";const Kut=Ar({toolbar:{display:"flex",justifyContent:"flex-end"}});function Xj(e){const{EditorActionRenderers:t,EditorRenderer:r,EditorToolbarRenderer:n=Ppe,disabled:o,initialContent:i,editorRef:s,isOthersTyping:a,locStrings:u,maxInputHeight:l,className:c,onEnterKeyPress:f,onInputContentChange:d}=e,h=Gut(),g=o||a;return N.jsxs("div",{className:Xe(h.input,c),children:[N.jsx("div",{className:h.editor,children:N.jsx(r,{editorRef:s,placeholder:u.Input_Placeholder,disabled:g,initialContent:i,maxHeight:l,className:h.editorInner,onEnterKeyPress:f,onChange:d})}),N.jsx("div",{className:h.editorToolbar,children:N.jsx(n,{ActionRenderers:t})})]})}Xj.displayName="DefaultMessageInputRenderer";const Gut=Ar({input:{...Ye.border("1px","solid",Pt.colorNeutralBackground5),...Ye.borderRadius("4px"),boxSizing:"border-box",display:"grid",gridTemplateRows:"1fr auto"},editor:{boxSizing:"border-box"},editorInner:{...Ye.border("0px"),boxSizing:"border-box"},editorToolbar:{boxSizing:"border-box",display:"flex",alignItems:"flex-end",justifyContent:"flex-end",height:"100%"}});function qpe(e){const{MessageAvatarRenderer:t,MessageContentRenderer:r,MessageErrorRenderer:n,MessageSenderRenderer:o,MessageBubbleRenderer:i=Uj,SessionSplitRenderer:s=$pe,className:a,bubbleClassName:u,sessionSplitClassName:l,locStrings:c,messages:f,useMessageContextualMenuItems:d,useMessageActions:h}=e,g=Vut();return N.jsx("div",{className:Xe(g.container,a),"data-chatbox-locator":nb.MessageList,children:f.map(v=>{switch(v.type){case gf.Message:return N.jsx(i,{MessageAvatarRenderer:t,MessageContentRenderer:r,MessageErrorRenderer:n,MessageSenderRenderer:o,locStrings:c,message:v,className:u,useMessageContextualMenuItems:d,useMessageActions:h},v.id);case gf.SessionSplit:return N.jsx(s,{locStrings:c,className:l},v.id);default:return N.jsx(re.Fragment,{},v.id)}})})}qpe.displayName="MessageListRenderer";const Vut=Ar({container:{boxSizing:"border-box"}}),sH=class sH extends re.PureComponent{render(){const{elements:t,deltaH:r,deltaW:n,scaleH:o,scaleW:i,className:s,elementClassName:a,renderElement:u}=this.props;return N.jsx("div",{className:s,children:t.map((l,c)=>{const f=(l.top-r)*o,d=(l.left-n)*i,h=l.height*o,g=l.width*i,v={top:f,left:d,height:h,width:g};return l.backgroundColor&&(v.backgroundColor=l.backgroundColor),u?u(l,c,a,v):N.jsx("div",{className:a,style:v},c)})})}};sH.displayName="MinimapOverview";let Iee=sH;Ar({viewport:{display:"block",width:"100%",left:0,right:0,backgroundColor:"rgba(0, 0, 0, 0.15)"}});Ar({container:{height:"100%",width:"100%",...Ye.overflow("hidden")},minimap:{position:"relative",width:"100%",height:"100%"},overview:{},minimapElement:{position:"absolute",backgroundColor:"#c292f9"}});Ar({editor:{...Ye.padding("8px"),...Ye.border("1px","solid",Pt.colorNeutralBackground5),...Ye.borderRadius("4px"),boxSizing:"border-box",display:"block",width:"100%",userSelect:"none",position:"relative",'&[data-disabled="true"]':{backgroundColor:Pt.colorNeutralBackgroundDisabled}},textarea:{...Ye.padding("0px"),...Ye.overflow("hidden","auto"),...Ye.borderWidth(0),...Ye.outline(0,"solid","transparent"),backgroundColor:"transparent",boxSizing:"border-box",resize:"none",appearance:"none",overflowWrap:"break-word",lineHeight:"24px",height:"24px",width:"100%",wordBreak:"break-all",color:Pt.colorNeutralForeground1,userSelect:"text"}});function Uut(e){return{}}const l5={},Yut={},Wpe={},d_={},ob={},zM={},hg={},Qj={},HM={},h_={},p_={},jd={},Zj={},Jj={},Kpe={},Gpe={},Vpe={},Upe={},Ype={},Xpe={},Qpe={},Ex={},Zpe={},Jpe={},e0e={},t0e={},r0e={},Xut={},Qut={},Zut={},n0e={},Jut={},o0e={},i0e={},s0e={},ez={},tz={},$M={},elt={},tlt={},rlt={},nlt={},a0e={},u0e={},l0e={};var ft=function(e){const t=new URLSearchParams;t.append("code",e);for(let r=1;rilt;try{ia(e,()=>{const o=pn()||function(d){return d.getEditorState().read(()=>{const h=pn();return h!==null?h.clone():null})}(e),i=new Map,s=e.getRootElement(),a=e._editorState,u=e._blockCursorElement;let l=!1,c="";for(let d=0;d0){let b=0;for(let A=0;A0)for(const[d,h]of i)if(We(h)){const g=h.getChildrenKeys();let v=d.firstChild;for(let y=0;y0){for(let d=0;d{l0e(e,t,r)})}function See(e,t){const r=e.__mode,n=e.__format,o=e.__style,i=t.__mode,s=t.__format,a=t.__style;return!(r!==null&&r!==i||n!==null&&n!==s||o!==null&&o!==a)}function wee(e,t){const r=e.mergeWithSibling(t),n=Bn()._normalizedNodes;return n.add(e.__key),n.add(t.__key),r}function kee(e){let t,r,n=e;if(n.__text!==""||!n.isSimpleText()||n.isUnmergeable()){for(;(t=n.getPreviousSibling())!==null&>(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(t.__text!==""){if(See(t,n)){n=wee(t,n);break}break}t.remove()}for(;(r=n.getNextSibling())!==null&>(r)&&r.isSimpleText()&&!r.isUnmergeable();){if(r.__text!==""){if(See(n,r)){n=wee(n,r);break}break}r.remove()}}else n.remove()}function d0e(e){return Aee(e.anchor),Aee(e.focus),e}function Aee(e){for(;e.type==="element";){const t=e.getNode(),r=e.offset;let n,o;if(r===t.getChildrenSize()?(n=t.getChildAtIndex(r-1),o=!0):(n=t.getChildAtIndex(r),o=!1),gt(n)){e.set(n.__key,o?n.getTextContentSize():0,"text");break}if(!We(n))break;e.set(n.__key,o?n.getChildrenSize():0,"element")}}let llt=1;const clt=typeof queueMicrotask=="function"?queueMicrotask:e=>{Promise.resolve().then(e)};function oz(e){const t=document.activeElement;if(t===null)return!1;const r=t.nodeName;return eo(xE(e))&&(r==="INPUT"||r==="TEXTAREA"||t.contentEditable==="true"&&t.__lexicalEditor==null)}function TE(e,t,r){const n=e.getRootElement();try{return n!==null&&n.contains(t)&&n.contains(r)&&t!==null&&!oz(t)&&iz(t)===e}catch{return!1}}function iz(e){let t=e;for(;t!=null;){const r=t.__lexicalEditor;if(r!=null)return r;t=l5(t)}return null}function zM(e){return e.isToken()||e.isSegmented()}function flt(e){return e.nodeType===D1}function ET(e){let t=e;for(;t!=null;){if(flt(t))return t;t=t.firstChild}return null}function HM(e,t,r){const n=o1[t];if(r!==null&&(e&n)==(r&n))return e;let o=e^n;return t==="subscript"?o&=~o1.superscript:t==="superscript"&&(o&=~o1.subscript),o}function dlt(e){return gt(e)||Mh(e)||eo(e)}function h0e(e,t){if(t!=null)return void(e.__key=t);Zi(),q0e();const r=Bn(),n=kc(),o=""+llt++;n._nodeMap.set(o,e),We(e)?r._dirtyElements.set(o,!0):r._dirtyLeaves.add(o),r._cloneNotNeeded.add(o),r._dirtyType=s0e,e.__key=o}function Bh(e){const t=e.getParent();if(t!==null){const r=e.getWritable(),n=t.getWritable(),o=e.getPreviousSibling(),i=e.getNextSibling();if(o===null)if(i!==null){const s=i.getWritable();n.__first=i.__key,s.__prev=null}else n.__first=null;else{const s=o.getWritable();if(i!==null){const a=i.getWritable();a.__prev=s.__key,s.__next=a.__key}else s.__next=null;r.__prev=null}if(i===null)if(o!==null){const s=o.getWritable();n.__last=o.__key,s.__next=null}else n.__last=null;else{const s=i.getWritable();if(o!==null){const a=o.getWritable();a.__next=s.__key,s.__prev=a.__key}else s.__prev=null;r.__next=null}n.__size--,r.__parent=null}}function ST(e){q0e();const t=e.getLatest(),r=t.__parent,n=kc(),o=Bn(),i=n._nodeMap,s=o._dirtyElements;r!==null&&function(u,l,c){let f=u;for(;f!==null;){if(c.has(f))return;const d=l.get(f);if(d===void 0)break;c.set(f,!1),f=d.__parent}}(r,i,s);const a=t.__key;o._dirtyType=s0e,We(e)?s.set(a,!0):o._dirtyLeaves.add(a)}function Go(e){Zi();const t=Bn(),r=t._compositionKey;if(e!==r){if(t._compositionKey=e,r!==null){const n=Ii(r);n!==null&&n.getWritable()}if(e!==null){const n=Ii(e);n!==null&&n.getWritable()}}}function zd(){return jv()?null:Bn()._compositionKey}function Ii(e,t){const r=(t||kc())._nodeMap.get(e);return r===void 0?null:r}function p0e(e,t){const r=e[`__lexicalKey_${Bn()._key}`];return r!==void 0?Ii(r,t):null}function xE(e,t){let r=e;for(;r!=null;){const n=p0e(r,t);if(n!==null)return n;r=l5(r)}return null}function g0e(e){const t=e._decorators,r=Object.assign({},t);return e._pendingDecorators=r,r}function Tee(e){return e.read(()=>ka().getTextContent())}function ka(){return v0e(kc())}function v0e(e){return e._nodeMap.get("root")}function cc(e){Zi();const t=kc();e!==null&&(e.dirty=!0,e.setCachedNodes(null)),t._selection=e}function q0(e){const t=Bn(),r=function(n,o){let i=n;for(;i!=null;){const s=i[`__lexicalKey_${o._key}`];if(s!==void 0)return s;i=l5(i)}return null}(e,t);return r===null?e===t.getRootElement()?Ii("root"):null:Ii(r)}function xee(e,t){return t?e.getTextContentSize():0}function m0e(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function sz(e){const t=[];let r=e;for(;r!==null;)t.push(r),r=r._parentEditor;return t}function y0e(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function b0e(e){return e.nodeType===D1?e.nodeValue:null}function az(e,t,r){const n=fc(t._window);if(n===null)return;const o=n.anchorNode;let{anchorOffset:i,focusOffset:s}=n;if(o!==null){let a=b0e(o);const u=xE(o);if(a!==null&>(u)){if(a===a5&&r){const l=r.length;a=r,i=l,s=l}a!==null&&uz(u,a,i,s,e)}}}function uz(e,t,r,n,o){let i=e;if(i.isAttached()&&(o||!i.isDirty())){const s=i.isComposing();let a=t;(s||o)&&t[t.length-1]===a5&&(a=t.slice(0,-1));const u=i.getTextContent();if(o||a!==u){if(a===""){if(Go(null),Yj||s5||Xj)i.remove();else{const v=Bn();setTimeout(()=>{v.update(()=>{i.isAttached()&&i.remove()})},20)}return}const l=i.getParent(),c=Lv(),f=i.getTextContentSize(),d=zd(),h=i.getKey();if(i.isToken()||d!==null&&h===d&&!s||Kt(c)&&(l!==null&&!l.canInsertTextBefore()&&c.anchor.offset===0||c.anchor.key===e.__key&&c.anchor.offset===0&&!i.canInsertTextBefore()&&!s||c.focus.key===e.__key&&c.focus.offset===f&&!i.canInsertTextAfter()&&!s))return void i.markDirty();const g=pn();if(!Kt(g)||r===null||n===null)return void i.setTextContent(a);if(g.setTextNodeRange(i,r,i,n),i.isSegmented()){const v=si(i.getTextContent());i.replace(v),i=v}i.setTextContent(a)}}}function hlt(e,t){if(t.isSegmented())return!0;if(!e.isCollapsed())return!1;const r=e.anchor.offset,n=t.getParentOrThrow(),o=t.isToken();return r===0?!t.canInsertTextBefore()||!n.canInsertTextBefore()||o||function(i){const s=i.getPreviousSibling();return(gt(s)||We(s)&&s.isInline())&&!s.canInsertTextAfter()}(t):r===t.getTextContentSize()&&(!t.canInsertTextAfter()||!n.canInsertTextAfter()||o)}function Iee(e){return e===37}function Nee(e){return e===39}function Ey(e,t){return Pu?e:t}function Cee(e){return e===13}function Pm(e){return e===8}function qm(e){return e===46}function Ree(e,t,r){return e===65&&Ey(t,r)}function plt(){const e=ka();cc(d0e(e.select(0,e.getChildrenSize())))}function nb(e,t){e.__lexicalClassNameCache===void 0&&(e.__lexicalClassNameCache={});const r=e.__lexicalClassNameCache,n=r[t];if(n!==void 0)return n;const o=e[t];if(typeof o=="string"){const i=_T(o);return r[t]=i,i}return o}function lz(e,t,r,n,o){if(r.size===0)return;const i=n.__type,s=n.__key,a=t.get(i);a===void 0&&ct(33,i);const u=a.klass;let l=e.get(u);l===void 0&&(l=new Map,e.set(u,l));const c=l.get(s),f=c==="destroyed"&&o==="created";(c===void 0||f)&&l.set(s,f?"updated":o)}function glt(e){const t=kc(),r=t._readOnly,n=e.getType(),o=t._nodeMap,i=[];for(const[,s]of o)s instanceof e&&s.__type===n&&(r||s.isAttached())&&i.push(s);return i}function Oee(e,t,r){const n=e.getParent();let o=r,i=e;return n!==null&&(t&&r===0?(o=i.getIndexWithinParent(),i=n):t||r!==i.getChildrenSize()||(o=i.getIndexWithinParent()+1,i=n)),i.getChildAtIndex(t?o-1:o)}function $M(e,t){const r=e.offset;if(e.type==="element")return Oee(e.getNode(),t,r);{const n=e.getNode();if(t&&r===0||!t&&r===n.getTextContentSize()){const o=t?n.getPreviousSibling():n.getNextSibling();return o===null?Oee(n.getParentOrThrow(),t,n.getIndexWithinParent()+(t?0:1)):o}}return null}function _0e(e){const t=c5(e).event,r=t&&t.inputType;return r==="insertFromPaste"||r==="insertFromPasteAsQuotation"}function lt(e,t,r){return W0e(e,t,r)}function u5(e){return!ma(e)&&!e.isLastChild()&&!e.isInline()}function wT(e,t){const r=e._keyToDOMMap.get(t);return r===void 0&&ct(75,t),r}function l5(e){const t=e.assignedSlot||e.parentElement;return t!==null&&t.nodeType===11?t.host:t}function vlt(e){return Bn()._updateTags.has(e)}function mlt(e){Zi(),Bn()._updateTags.add(e)}function kT(e,t){let r=e.getParent();for(;r!==null;){if(r.is(t))return!0;r=r.getParent()}return!1}function c5(e){const t=e._window;return t===null&&ct(78),t}function ylt(e){return We(e)&&e.isInline()||eo(e)&&e.isInline()}function E0e(e){let t=e.getParentOrThrow();for(;t!==null;){if(b1(t))return t;t=t.getParentOrThrow()}return t}function b1(e){return ma(e)||We(e)&&e.isShadowRoot()}function S0e(e){const t=e.constructor.clone(e);return h0e(t,null),t}function IE(e){const t=Bn(),r=e.constructor.getType(),n=t._nodes.get(r);n===void 0&&ct(97);const o=n.replace;if(o!==null){const i=o(e);return i instanceof e.constructor||ct(98),i}return e}function E3(e,t){!ma(e.getParent())||We(t)||eo(t)||ct(99)}function S3(e){return(eo(e)||We(e)&&!e.canBeEmpty())&&!e.isInline()}function cz(e,t,r){r.style.removeProperty("caret-color"),t._blockCursorElement=null;const n=e.parentElement;n!==null&&n.removeChild(e)}function blt(e,t,r){let n=e._blockCursorElement;if(Kt(r)&&r.isCollapsed()&&r.anchor.type==="element"&&t.contains(document.activeElement)){const o=r.anchor,i=o.getNode(),s=o.offset;let a=!1,u=null;if(s===i.getChildrenSize())S3(i.getChildAtIndex(s-1))&&(a=!0);else{const l=i.getChildAtIndex(s);if(S3(l)){const c=l.getPreviousSibling();(c===null||S3(c))&&(a=!0,u=e.getElementByKey(l.__key))}}if(a){const l=e.getElementByKey(i.__key);return n===null&&(e._blockCursorElement=n=function(c){const f=c.theme,d=document.createElement("div");d.contentEditable="false",d.setAttribute("data-lexical-cursor","true");let h=f.blockCursor;if(h!==void 0){if(typeof h=="string"){const g=_T(h);h=f.blockCursor=g}h!==void 0&&d.classList.add(...h)}return d}(e._config)),t.style.caretColor="transparent",void(u===null?l.appendChild(n):l.insertBefore(n,u))}}n!==null&&cz(n,e,t)}function fc(e){return vl?(e||window).getSelection():null}function _lt(e,t){let r=e.getChildAtIndex(t);r==null&&(r=e),b1(e)&&ct(102);const n=s=>{const a=s.getParentOrThrow(),u=b1(a),l=s!==r||u?S0e(s):s;if(u)return We(s)&&We(l)||ct(133),s.insertAfter(l),[s,l,l];{const[c,f,d]=n(a),h=s.getNextSiblings();return d.append(l,...h),[c,f,l]}},[o,i]=n(r);return[o,i]}function Elt(e){return f5(e)&&e.tagName==="A"}function f5(e){return e.nodeType===1}function v0(e){if(eo(e)&&!e.isInline())return!0;if(!We(e)||b1(e))return!1;const t=e.getFirstChild(),r=t===null||Mh(t)||gt(t)||t.isInline();return!e.isInline()&&e.canBeEmpty()!==!1&&r}function w3(e,t){let r=e;for(;r!==null&&r.getParent()!==null&&!t(r);)r=r.getParentOrThrow();return t(r)?r:null}function Slt(){return Bn()}function w0e(e,t,r,n,o,i){let s=e.getFirstChild();for(;s!==null;){const a=s.__key;s.__parent===t&&(We(s)&&w0e(s,a,r,n,o,i),r.has(a)||i.delete(a),o.push(a)),s=s.getNextSibling()}}let _1,ss,d_,d5,PM,qM,Zh,E1,WM,h_,Fo="",ns="",tf="",k0e=!1,fz=!1,Hk=null;function AT(e,t){const r=Zh.get(e);if(t!==null){const n=VM(e);n.parentNode===t&&t.removeChild(n)}if(E1.has(e)||ss._keyToDOMMap.delete(e),We(r)){const n=xT(r,Zh);KM(n,0,n.length-1,null)}r!==void 0&&lz(h_,d_,d5,r,"destroyed")}function KM(e,t,r,n){let o=t;for(;o<=r;++o){const i=e[o];i!==void 0&&AT(i,n)}}function Q1(e,t){e.setProperty("text-align",t)}const wlt="40px";function A0e(e,t){const r=_1.theme.indent;if(typeof r=="string"){const o=e.classList.contains(r);t>0&&!o?e.classList.add(r):t<1&&o&&e.classList.remove(r)}const n=getComputedStyle(e).getPropertyValue("--lexical-indent-base-value")||wlt;e.style.setProperty("padding-inline-start",t===0?"":`calc(${t} * ${n})`)}function T0e(e,t){const r=e.style;t===0?Q1(r,""):t===Qj?Q1(r,"left"):t===Zj?Q1(r,"center"):t===Jj?Q1(r,"right"):t===ez?Q1(r,"justify"):t===tz?Q1(r,"start"):t===rz&&Q1(r,"end")}function TT(e,t,r){const n=E1.get(e);n===void 0&&ct(60);const o=n.createDOM(_1,ss);if(function(i,s,a){const u=a._keyToDOMMap;s["__lexicalKey_"+a._key]=i,u.set(i,s)}(e,o,ss),gt(n)?o.setAttribute("data-lexical-text","true"):eo(n)&&o.setAttribute("data-lexical-decorator","true"),We(n)){const i=n.__indent,s=n.__size;if(i!==0&&A0e(o,i),s!==0){const u=s-1;(function(l,c,f,d){const h=ns;ns="",GM(l,f,0,c,d,null),I0e(f,d),ns=h})(xT(n,E1),u,n,o)}const a=n.__format;a!==0&&T0e(o,a),n.isInline()||x0e(null,n,o),u5(n)&&(Fo+=Ff,tf+=Ff)}else{const i=n.getTextContent();if(eo(n)){const s=n.decorate(ss,_1);s!==null&&N0e(e,s),o.contentEditable="false"}else gt(n)&&(n.isDirectionless()||(ns+=i));Fo+=i,tf+=i}if(t!==null)if(r!=null)t.insertBefore(o,r);else{const i=t.__lexicalLineBreak;i!=null?t.insertBefore(o,i):t.appendChild(o)}return lz(h_,d_,d5,n,"created"),o}function GM(e,t,r,n,o,i){const s=Fo;Fo="";let a=r;for(;a<=n;++a)TT(e[a],o,i);u5(t)&&(Fo+=Ff),o.__lexicalTextContent=Fo,Fo=s+Fo}function Dee(e,t){const r=t.get(e);return Mh(r)||eo(r)&&r.isInline()}function x0e(e,t,r){const n=e!==null&&(e.__size===0||Dee(e.__last,Zh)),o=t.__size===0||Dee(t.__last,E1);if(n){if(!o){const i=r.__lexicalLineBreak;i!=null&&r.removeChild(i),r.__lexicalLineBreak=null}}else if(o){const i=document.createElement("br");r.__lexicalLineBreak=i,r.appendChild(i)}}function I0e(e,t){const r=t.__lexicalDirTextContent,n=t.__lexicalDir;if(r!==ns||n!==Hk){const i=ns==="",s=i?Hk:(o=ns,Jut.test(o)?"rtl":elt.test(o)?"ltr":null);if(s!==n){const a=t.classList,u=_1.theme;let l=n!==null?u[n]:void 0,c=s!==null?u[s]:void 0;if(l!==void 0){if(typeof l=="string"){const f=_T(l);l=u[n]=f}a.remove(...l)}if(s===null||i&&s==="ltr")t.removeAttribute("dir");else{if(c!==void 0){if(typeof c=="string"){const f=_T(c);c=u[s]=f}c!==void 0&&a.add(...c)}t.dir=s}fz||(e.getWritable().__dir=s)}Hk=s,t.__lexicalDirTextContent=ns,t.__lexicalDir=s}var o}function klt(e,t,r){const n=ns;ns="",function(o,i,s){const a=Fo,u=o.__size,l=i.__size;if(Fo="",u===1&&l===1){const c=o.__first,f=i.__first;if(c===f)Sy(c,s);else{const d=VM(c),h=TT(f,null,null);s.replaceChild(h,d),AT(c,null)}}else{const c=xT(o,Zh),f=xT(i,E1);if(u===0)l!==0&&GM(f,i,0,l-1,s,null);else if(l===0){if(u!==0){const d=s.__lexicalLineBreak==null;KM(c,0,u-1,d?null:s),d&&(s.textContent="")}}else(function(d,h,g,v,y,E){const _=v-1,S=y-1;let b,A,x=(I=E,I.firstChild),T=0,N=0;for(var I;T<=_&&N<=S;){const L=h[T],M=g[N];if(L===M)x=k3(Sy(M,E)),T++,N++;else{b===void 0&&(b=new Set(h)),A===void 0&&(A=new Set(g));const q=A.has(L),z=b.has(M);if(q)if(z){const B=wT(ss,M);B===x?x=k3(Sy(M,E)):(x!=null?E.insertBefore(B,x):E.appendChild(B),Sy(M,E)),T++,N++}else TT(M,E,x),N++;else x=k3(VM(L)),AT(L,E),T++}}const R=T>_,D=N>S;if(R&&!D){const L=g[S+1];GM(g,d,N,S,E,L===void 0?null:ss.getElementByKey(L))}else D&&!R&&KM(h,T,_,E)})(i,c,f,u,l,s)}u5(i)&&(Fo+=Ff),s.__lexicalTextContent=Fo,Fo=a+Fo}(e,t,r),I0e(t,r),ns=n}function xT(e,t){const r=[];let n=e.__first;for(;n!==null;){const o=t.get(n);o===void 0&&ct(101),r.push(n),n=o.__next}return r}function Sy(e,t){const r=Zh.get(e);let n=E1.get(e);r!==void 0&&n!==void 0||ct(61);const o=k0e||qM.has(e)||PM.has(e),i=wT(ss,e);if(r===n&&!o){if(We(r)){const s=i.__lexicalTextContent;s!==void 0&&(Fo+=s,tf+=s);const a=i.__lexicalDirTextContent;a!==void 0&&(ns+=a)}else{const s=r.getTextContent();gt(r)&&!r.isDirectionless()&&(ns+=s),tf+=s,Fo+=s}return i}if(r!==n&&o&&lz(h_,d_,d5,n,"updated"),n.updateDOM(r,i,_1)){const s=TT(e,null,null);return t===null&&ct(62),t.replaceChild(s,i),AT(e,null),s}if(We(r)&&We(n)){const s=n.__indent;s!==r.__indent&&A0e(i,s);const a=n.__format;a!==r.__format&&T0e(i,a),o&&(klt(r,n,i),ma(n)||n.isInline()||x0e(r,n,i)),u5(n)&&(Fo+=Ff,tf+=Ff)}else{const s=n.getTextContent();if(eo(n)){const a=n.decorate(ss,_1);a!==null&&N0e(e,a)}else gt(n)&&!n.isDirectionless()&&(ns+=s);Fo+=s,tf+=s}if(!fz&&ma(n)&&n.__cachedText!==tf){const s=n.getWritable();s.__cachedText=tf,n=s}return i}function N0e(e,t){let r=ss._pendingDecorators;const n=ss._decorators;if(r===null){if(n[e]===t)return;r=g0e(ss)}r[e]=t}function k3(e){let t=e.nextSibling;return t!==null&&t===ss._blockCursorElement&&(t=t.nextSibling),t}function Alt(e,t,r,n,o,i){Fo="",tf="",ns="",k0e=n===Zg,Hk=null,ss=r,_1=r._config,d_=r._nodes,d5=ss._listeners.mutation,PM=o,qM=i,Zh=e._nodeMap,E1=t._nodeMap,fz=t._readOnly,WM=new Map(r._keyToDOMMap);const s=new Map;return h_=s,Sy("root",null),ss=void 0,d_=void 0,PM=void 0,qM=void 0,Zh=void 0,E1=void 0,_1=void 0,WM=void 0,h_=void 0,s}function VM(e){const t=WM.get(e);return t===void 0&&ct(75,e),t}const Vc=Object.freeze({}),UM=30,YM=[["keydown",function(e,t){if(ob=e.timeStamp,C0e=e.keyCode,t.isComposing())return;const{keyCode:r,shiftKey:n,ctrlKey:o,metaKey:i,altKey:s}=e;lt(t,Hpe,e)||(function(a,u,l,c){return Nee(a)&&!u&&!c&&!l}(r,o,s,i)?lt(t,$pe,e):function(a,u,l,c,f){return Nee(a)&&!c&&!l&&(u||f)}(r,o,n,s,i)?lt(t,Ppe,e):function(a,u,l,c){return Iee(a)&&!u&&!c&&!l}(r,o,s,i)?lt(t,qpe,e):function(a,u,l,c,f){return Iee(a)&&!c&&!l&&(u||f)}(r,o,n,s,i)?lt(t,Wpe,e):function(a,u,l){return function(c){return c===38}(a)&&!u&&!l}(r,o,i)?lt(t,Kpe,e):function(a,u,l){return function(c){return c===40}(a)&&!u&&!l}(r,o,i)?lt(t,Gpe,e):function(a,u){return Cee(a)&&u}(r,n)?(ib=!0,lt(t,vT,e)):function(a){return a===32}(r)?lt(t,Vpe,e):function(a,u){return Pu&&u&&a===79}(r,o)?(e.preventDefault(),ib=!0,lt(t,rb,!0)):function(a,u){return Cee(a)&&!u}(r,n)?(ib=!1,lt(t,vT,e)):function(a,u,l,c){return Pu?!u&&!l&&(Pm(a)||a===72&&c):!(c||u||l)&&Pm(a)}(r,s,i,o)?Pm(r)?lt(t,Upe,e):(e.preventDefault(),lt(t,l_,!0)):function(a){return a===27}(r)?lt(t,Ype,e):function(a,u,l,c,f){return Pu?!(l||c||f)&&(qm(a)||a===68&&u):!(u||c||f)&&qm(a)}(r,o,n,s,i)?qm(r)?lt(t,Xpe,e):(e.preventDefault(),lt(t,l_,!1)):function(a,u,l){return Pm(a)&&(Pu?u:l)}(r,s,o)?(e.preventDefault(),lt(t,c_,!0)):function(a,u,l){return qm(a)&&(Pu?u:l)}(r,s,o)?(e.preventDefault(),lt(t,c_,!1)):function(a,u){return Pu&&u&&Pm(a)}(r,i)?(e.preventDefault(),lt(t,f_,!0)):function(a,u){return Pu&&u&&qm(a)}(r,i)?(e.preventDefault(),lt(t,f_,!1)):function(a,u,l,c){return a===66&&!u&&Ey(l,c)}(r,s,i,o)?(e.preventDefault(),lt(t,jd,"bold")):function(a,u,l,c){return a===85&&!u&&Ey(l,c)}(r,s,i,o)?(e.preventDefault(),lt(t,jd,"underline")):function(a,u,l,c){return a===73&&!u&&Ey(l,c)}(r,s,i,o)?(e.preventDefault(),lt(t,jd,"italic")):function(a,u,l,c){return a===9&&!u&&!l&&!c}(r,s,o,i)?lt(t,Qpe,e):function(a,u,l,c){return a===90&&!u&&Ey(l,c)}(r,n,i,o)?(e.preventDefault(),lt(t,Kj,void 0)):function(a,u,l,c){return Pu?a===90&&l&&u:a===89&&c||a===90&&c&&u}(r,n,i,o)?(e.preventDefault(),lt(t,Gj,void 0)):NE(t._editorState._selection)?function(a,u,l,c){return!u&&a===67&&(Pu?l:c)}(r,n,i,o)?(e.preventDefault(),lt(t,Vj,e)):function(a,u,l,c){return!u&&a===88&&(Pu?l:c)}(r,n,i,o)?(e.preventDefault(),lt(t,Uj,e)):Ree(r,i,o)&&(e.preventDefault(),lt(t,LM,e)):!n1&&Ree(r,i,o)&&(e.preventDefault(),lt(t,LM,e)),function(a,u,l,c){return a||u||l||c}(o,n,s,i)&<(t,o0e,e))}],["pointerdown",function(e,t){const r=e.target,n=e.pointerType;r instanceof Node&&n!=="touch"&&ia(t,()=>{eo(xE(r))||(QM=!0)})}],["compositionstart",function(e,t){ia(t,()=>{const r=pn();if(Kt(r)&&!t.isComposing()){const n=r.anchor,o=r.anchor.getNode();Go(n.key),(e.timeStamp{A3(t,e.data)})}],["input",function(e,t){e.stopPropagation(),ia(t,()=>{const r=pn(),n=e.data,o=F0e(e);if(n!=null&&Kt(r)&&D0e(r,o,n,e.timeStamp,!1)){Wm&&(A3(t,n),Wm=!1);const i=r.anchor,s=i.getNode(),a=fc(t._window);if(a===null)return;const u=i.offset;mT&&!r.isCollapsed()&>(s)&&a.anchorNode!==null&&s.getTextContent().slice(0,u)+n+s.getTextContent().slice(u+r.focus.offset)===b0e(a.anchorNode)||lt(t,dg,n);const l=n.length;n1&&l>1&&e.inputType==="insertCompositionText"&&!t.isComposing()&&(r.anchor.offset-=l),Yj||s5||Xj||!t.isComposing()||(ob=0,Go(null))}else az(!1,t,n!==null?n:void 0),Wm&&(A3(t,n||void 0),Wm=!1);Zi(),c0e(Bn())}),m0=null}],["click",function(e,t){ia(t,()=>{const r=pn(),n=fc(t._window),o=Lv();if(n){if(Kt(r)){const i=r.anchor,s=i.getNode();i.type==="element"&&i.offset===0&&r.isCollapsed()&&!ma(s)&&ka().getChildrenSize()===1&&s.getTopLevelElementOrThrow().isEmpty()&&o!==null&&r.is(o)?(n.removeAllRanges(),r.dirty=!0):e.detail===3&&!r.isCollapsed()&&s!==r.focus.getNode()&&(We(s)?s.select(0):s.getParentOrThrow().select(0))}else if(e.pointerType==="touch"){const i=n.anchorNode;if(i!==null){const s=i.nodeType;(s===AE||s===D1)&&cc(dz(o,n,t,e))}}}lt(t,zpe,e)})}],["cut",Vc],["copy",Vc],["dragstart",Vc],["dragover",Vc],["dragend",Vc],["paste",Vc],["focus",Vc],["blur",Vc],["drop",Vc]];mT&&YM.push(["beforeinput",(e,t)=>function(r,n){const o=r.inputType,i=F0e(r);o==="deleteCompositionText"||n1&&_0e(n)||o!=="insertCompositionText"&&ia(n,()=>{const s=pn();if(o==="deleteContentBackward"){if(s===null){const h=Lv();if(!Kt(h))return;cc(h.clone())}if(Kt(s)){const h=s.anchor.key===s.focus.key;if(a=r.timeStamp,C0e===229&&a{ia(n,()=>{Go(null)})},UM),Kt(s)){const g=s.anchor.getNode();g.markDirty(),s.format=g.getFormat(),gt(g)||ct(142),s.style=g.getStyle()}}else{Go(null),r.preventDefault();const g=s.anchor.getNode().getTextContent(),v=s.anchor.offset===0&&s.focus.offset===g.length;Xut&&h&&!v||lt(n,l_,!0)}return}}var a;if(!Kt(s))return;const u=r.data;m0!==null&&az(!1,n,m0),s.dirty&&m0===null||!s.isCollapsed()||ma(s.anchor.getNode())||i===null||s.applyDOMRange(i),m0=null;const l=s.anchor,c=s.focus,f=l.getNode(),d=c.getNode();if(o!=="insertText"&&o!=="insertTranspose")switch(r.preventDefault(),o){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":lt(n,dg,r);break;case"insertFromComposition":Go(null),lt(n,dg,r);break;case"insertLineBreak":Go(null),lt(n,rb,!1);break;case"insertParagraph":Go(null),ib&&!s5?(ib=!1,lt(n,rb,!1)):lt(n,BM,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":lt(n,Wj,r);break;case"deleteByComposition":(function(h,g){return h!==g||We(h)||We(g)||!h.isToken()||!g.isToken()})(f,d)&<(n,MM,r);break;case"deleteByDrag":case"deleteByCut":lt(n,MM,r);break;case"deleteContent":lt(n,l_,!1);break;case"deleteWordBackward":lt(n,c_,!0);break;case"deleteWordForward":lt(n,c_,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":lt(n,f_,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":lt(n,f_,!1);break;case"formatStrikeThrough":lt(n,jd,"strikethrough");break;case"formatBold":lt(n,jd,"bold");break;case"formatItalic":lt(n,jd,"italic");break;case"formatUnderline":lt(n,jd,"underline");break;case"historyUndo":lt(n,Kj,void 0);break;case"historyRedo":lt(n,Gj,void 0)}else{if(u===` -`)r.preventDefault(),lt(n,rb,!1);else if(u===Ff)r.preventDefault(),lt(n,BM,void 0);else if(u==null&&r.dataTransfer){const h=r.dataTransfer.getData("text/plain");r.preventDefault(),s.insertRawText(h)}else u!=null&&D0e(s,i,u,r.timeStamp,!0)?(r.preventDefault(),lt(n,dg,u)):m0=u;R0e=r.timeStamp}})}(e,t)]);let ob=0,C0e=0,R0e=0,m0=null;const IT=new WeakMap;let XM=!1,QM=!1,ib=!1,Wm=!1,O0e=[0,"",0,"root",0];function D0e(e,t,r,n,o){const i=e.anchor,s=e.focus,a=i.getNode(),u=Bn(),l=fc(u._window),c=l!==null?l.anchorNode:null,f=i.key,d=u.getElementByKey(f),h=r.length;return f!==s.key||!gt(a)||(!o&&(!mT||R0e1||(o||!mT)&&d!==null&&!a.isComposing()&&c!==ET(d)||l!==null&&t!==null&&(!t.collapsed||t.startContainer!==l.anchorNode||t.startOffset!==l.anchorOffset)||a.getFormat()!==e.format||a.getStyle()!==e.style||hlt(e,a)}function Fee(e,t){return e!==null&&e.nodeValue!==null&&e.nodeType===D1&&t!==0&&t!==e.nodeValue.length}function Bee(e,t,r){const{anchorNode:n,anchorOffset:o,focusNode:i,focusOffset:s}=e;XM&&(XM=!1,Fee(n,o)&&Fee(i,s))||ia(t,()=>{if(!r)return void cc(null);if(!TE(t,n,i))return;const a=pn();if(Kt(a)){const u=a.anchor,l=u.getNode();if(a.isCollapsed()){e.type==="Range"&&e.anchorNode===e.focusNode&&(a.dirty=!0);const c=c5(t).event,f=c?c.timeStamp:performance.now(),[d,h,g,v,y]=O0e,E=ka(),_=t.isComposing()===!1&&E.getTextContent()==="";f{const l=Lv(),c=r.anchorNode;if(c===null)return;const f=c.nodeType;f!==AE&&f!==D1||cc(dz(l,r,n,e))}));const o=sz(n),i=o[o.length-1],s=i._key,a=hg.get(s),u=a||i;u!==n&&Bee(r,u,!1),Bee(r,n,!0),n!==i?hg.set(s,n):a&&hg.delete(s)}function Mee(e){e._lexicalHandled=!0}function Lee(e){return e._lexicalHandled===!0}function Tlt(e){const t=e.ownerDocument,r=IT.get(t);if(r===void 0)throw Error("Root element not registered");IT.set(t,r-1),r===1&&t.removeEventListener("selectionchange",M0e);const n=e.__lexicalEditor;n!=null&&(function(i){if(i._parentEditor!==null){const s=sz(i),a=s[s.length-1]._key;hg.get(a)===i&&hg.delete(a)}else hg.delete(i._key)}(n),e.__lexicalEditor=null);const o=B0e(e);for(let i=0;io.__key===this.__key);return(gt(this)||!Kt(r)||r.anchor.type!=="element"||r.focus.type!=="element"||r.anchor.key!==r.focus.key||r.anchor.offset!==r.focus.offset)&&n}getKey(){return this.__key}getIndexWithinParent(){const t=this.getParent();if(t===null)return-1;let r=t.getFirstChild(),n=0;for(;r!==null;){if(this.is(r))return n;n++,r=r.getNextSibling()}return-1}getParent(){const t=this.getLatest().__parent;return t===null?null:Ii(t)}getParentOrThrow(){const t=this.getParent();return t===null&&ct(66,this.__key),t}getTopLevelElement(){let t=this;for(;t!==null;){const r=t.getParent();if(b1(r))return We(t)||ct(138),t;t=r}return null}getTopLevelElementOrThrow(){const t=this.getTopLevelElement();return t===null&&ct(67,this.__key),t}getParents(){const t=[];let r=this.getParent();for(;r!==null;)t.push(r),r=r.getParent();return t}getParentKeys(){const t=[];let r=this.getParent();for(;r!==null;)t.push(r.__key),r=r.getParent();return t}getPreviousSibling(){const t=this.getLatest().__prev;return t===null?null:Ii(t)}getPreviousSiblings(){const t=[],r=this.getParent();if(r===null)return t;let n=r.getFirstChild();for(;n!==null&&!n.is(this);)t.push(n),n=n.getNextSibling();return t}getNextSibling(){const t=this.getLatest().__next;return t===null?null:Ii(t)}getNextSiblings(){const t=[];let r=this.getNextSibling();for(;r!==null;)t.push(r),r=r.getNextSibling();return t}getCommonAncestor(t){const r=this.getParents(),n=t.getParents();We(this)&&r.unshift(this),We(t)&&n.unshift(t);const o=r.length,i=n.length;if(o===0||i===0||r[o-1]!==n[i-1])return null;const s=new Set(n);for(let a=0;a{a.append(v)})),Kt(n)){cc(n);const v=n.anchor,y=n.focus;v.key===i&&Pee(v,a),y.key===i&&Pee(y,a)}return zd()===i&&Go(s),a}insertAfter(t,r=!0){Zi(),E3(this,t);const n=this.getWritable(),o=t.getWritable(),i=o.getParent(),s=pn();let a=!1,u=!1;if(i!==null){const h=t.getIndexWithinParent();if(Bh(o),Kt(s)){const g=i.__key,v=s.anchor,y=s.focus;a=v.type==="element"&&v.key===g&&v.offset===h+1,u=y.type==="element"&&y.key===g&&y.offset===h+1}}const l=this.getNextSibling(),c=this.getParentOrThrow().getWritable(),f=o.__key,d=n.__next;if(l===null?c.__last=f:l.getWritable().__prev=f,c.__size++,n.__next=f,o.__next=d,o.__prev=n.__key,o.__parent=n.__parent,r&&Kt(s)){const h=this.getIndexWithinParent();NT(s,c,h+1);const g=c.__key;a&&s.anchor.set(g,h+2,"element"),u&&s.focus.set(g,h+2,"element")}return t}insertBefore(t,r=!0){Zi(),E3(this,t);const n=this.getWritable(),o=t.getWritable(),i=o.__key;Bh(o);const s=this.getPreviousSibling(),a=this.getParentOrThrow().getWritable(),u=n.__prev,l=this.getIndexWithinParent();s===null?a.__first=i:s.getWritable().__next=i,a.__size++,n.__prev=i,o.__prev=u,o.__next=n.__key,o.__parent=n.__parent;const c=pn();return r&&Kt(c)&&NT(c,this.getParentOrThrow(),l),t}isParentRequired(){return!1}createParentElementNode(){return Bf()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(t,r){Zi();const n=this.getPreviousSibling(),o=this.getParentOrThrow();if(n===null)return o.select(0,0);if(We(n))return n.select();if(!gt(n)){const i=n.getIndexWithinParent()+1;return o.select(i,i)}return n.select(t,r)}selectNext(t,r){Zi();const n=this.getNextSibling(),o=this.getParentOrThrow();if(n===null)return o.select();if(We(n))return n.select(0,0);if(!gt(n)){const i=n.getIndexWithinParent();return o.select(i,i)}return n.select(t,r)}markDirty(){this.getWritable()}}class Bv extends h5{static getType(){return"linebreak"}static clone(t){return new Bv(t.__key)}constructor(t){super(t)}getTextContent(){return` -`}createDOM(){return document.createElement("br")}updateDOM(){return!1}static importDOM(){return{br:t=>function(r){const n=r.parentElement;if(n!==null){const o=n.firstChild;if(o===r||o.nextSibling===r&&jee(o)){const i=n.lastChild;if(i===r||i.previousSibling===r&&jee(i))return!0}}return!1}(t)?null:{conversion:xlt,priority:0}}}static importJSON(t){return Jg()}exportJSON(){return{type:"linebreak",version:1}}}function xlt(e){return{node:Jg()}}function Jg(){return IE(new Bv)}function Mh(e){return e instanceof Bv}function jee(e){return e.nodeType===D1&&/^( |\t|\r?\n)+$/.test(e.textContent||"")}function T3(e,t){return 16&t?"code":128&t?"mark":32&t?"sub":64&t?"sup":null}function x3(e,t){return 1&t?"strong":2&t?"em":"span"}function L0e(e,t,r,n,o){const i=n.classList;let s=nb(o,"base");s!==void 0&&i.add(...s),s=nb(o,"underlineStrikethrough");let a=!1;const u=t&bT&&t&yT;s!==void 0&&(r&bT&&r&yT?(a=!0,u||i.add(...s)):u&&i.remove(...s));for(const l in o1){const c=o1[l];if(s=nb(o,l),s!==void 0)if(r&c){if(a&&(l==="underline"||l==="strikethrough")){t&c&&i.remove(...s);continue}(!(t&c)||u&&l==="underline"||l==="strikethrough")&&i.add(...s)}else t&c&&i.remove(...s)}}function j0e(e,t,r){const n=t.firstChild,o=r.isComposing(),i=e+(o?a5:"");if(n==null)t.textContent=i;else{const s=n.nodeValue;if(s!==i)if(o||n1){const[a,u,l]=function(c,f){const d=c.length,h=f.length;let g=0,v=0;for(;g({conversion:Rlt,priority:0}),b:()=>({conversion:Nlt,priority:0}),code:()=>({conversion:dd,priority:0}),em:()=>({conversion:dd,priority:0}),i:()=>({conversion:dd,priority:0}),s:()=>({conversion:dd,priority:0}),span:()=>({conversion:Ilt,priority:0}),strong:()=>({conversion:dd,priority:0}),sub:()=>({conversion:dd,priority:0}),sup:()=>({conversion:dd,priority:0}),u:()=>({conversion:dd,priority:0})}}static importJSON(t){const r=si(t.text);return r.setFormat(t.format),r.setDetail(t.detail),r.setMode(t.mode),r.setStyle(t.style),r}exportDOM(t){let{element:r}=super.exportDOM(t);return r!==null&&f5(r)||ct(132),r.style.whiteSpace="pre-wrap",this.hasFormat("bold")&&(r=Pw(r,"b")),this.hasFormat("italic")&&(r=Pw(r,"i")),this.hasFormat("strikethrough")&&(r=Pw(r,"s")),this.hasFormat("underline")&&(r=Pw(r,"u")),{element:r}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),type:"text",version:1}}selectionTransform(t,r){}setFormat(t){const r=this.getWritable();return r.__format=typeof t=="string"?o1[t]:t,r}setDetail(t){const r=this.getWritable();return r.__detail=typeof t=="string"?tlt[t]:t,r}setStyle(t){const r=this.getWritable();return r.__style=t,r}toggleFormat(t){const r=HM(this.getFormat(),t,null);return this.setFormat(r)}toggleDirectionless(){const t=this.getWritable();return t.__detail^=1,t}toggleUnmergeable(){const t=this.getWritable();return t.__detail^=2,t}setMode(t){const r=nlt[t];if(this.__mode===r)return this;const n=this.getWritable();return n.__mode=r,n}setTextContent(t){if(this.__text===t)return this;const r=this.getWritable();return r.__text=t,r}select(t,r){Zi();let n=t,o=r;const i=pn(),s=this.getTextContent(),a=this.__key;if(typeof s=="string"){const u=s.length;n===void 0&&(n=u),o===void 0&&(o=u)}else n=0,o=0;if(!Kt(i))return P0e(a,n,a,o,"text","text");{const u=zd();u!==i.anchor.key&&u!==i.focus.key||Go(a),i.setTextNodeRange(this,n,this,o)}return i}selectStart(){return this.select(0,0)}selectEnd(){const t=this.getTextContentSize();return this.select(t,t)}spliceText(t,r,n,o){const i=this.getWritable(),s=i.__text,a=n.length;let u=t;u<0&&(u=a+u,u<0&&(u=0));const l=pn();if(o&&Kt(l)){const f=t+a;l.setTextNodeRange(i,f,i,f)}const c=s.slice(0,u)+n+s.slice(u+r);return i.__text=c,i}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...t){Zi();const r=this.getLatest(),n=r.getTextContent(),o=r.__key,i=zd(),s=new Set(t),a=[],u=n.length;let l="";for(let T=0;Tb&&M.offset<=L&&(M.key=D,M.offset-=b,_.dirty=!0),q.key===o&&q.type==="text"&&q.offset>b&&q.offset<=L&&(q.key=D,q.offset-=b,_.dirty=!0)}i===o&&Go(D),b=L,S.push(R)}(function(T){const N=T.getPreviousSibling(),I=T.getNextSibling();N!==null&&ST(N),I!==null&&ST(I)})(this);const A=d.getWritable(),x=this.getIndexWithinParent();return E?(A.splice(x,0,S),this.remove()):A.splice(x,1,S),Kt(_)&&NT(_,d,x,c-1),S}mergeWithSibling(t){const r=t===this.getPreviousSibling();r||t===this.getNextSibling()||ct(50);const n=this.__key,o=t.__key,i=this.__text,s=i.length;zd()===o&&Go(n);const a=pn();if(Kt(a)){const f=a.anchor,d=a.focus;f!==null&&f.key===o&&(Yee(f,r,n,t,s),a.dirty=!0),d!==null&&d.key===o&&(Yee(d,r,n,t,s),a.dirty=!0)}const u=t.__text,l=r?u+i:i+u;this.setTextContent(l);const c=this.getWritable();return t.remove(),c}isTextEntity(){return!1}}function Ilt(e){const t=e,r=t.style.fontWeight==="700",n=t.style.textDecoration==="line-through",o=t.style.fontStyle==="italic",i=t.style.textDecoration==="underline",s=t.style.verticalAlign;return{forChild:a=>(gt(a)&&(r&&a.toggleFormat("bold"),n&&a.toggleFormat("strikethrough"),o&&a.toggleFormat("italic"),i&&a.toggleFormat("underline"),s==="sub"&&a.toggleFormat("subscript"),s==="super"&&a.toggleFormat("superscript")),a),node:null}}function Nlt(e){const t=e.style.fontWeight==="normal";return{forChild:r=>(gt(r)&&!t&&r.toggleFormat("bold"),r),node:null}}const Hee=new WeakMap;function Clt(e){return e.nodeName==="PRE"||e.nodeType===AE&&e.style!==void 0&&e.style.whiteSpace!==void 0&&e.style.whiteSpace.startsWith("pre")}function Rlt(e){const t=e;e.parentElement===null&&ct(129);let r=t.textContent||"";if(function(n){let o,i=n.parentNode;const s=[n];for(;i!==null&&(o=Hee.get(i))===void 0&&!Clt(i);)s.push(i),i=i.parentNode;const a=o===void 0?i:o;for(let u=0;uglt;try{sa(e,()=>{const o=hn()||function(d){return d.getEditorState().read(()=>{const h=hn();return h!==null?h.clone():null})}(e),i=new Map,s=e.getRootElement(),a=e._editorState,u=e._blockCursorElement;let l=!1,c="";for(let d=0;d0){let b=0;for(let A=0;A0)for(const[d,h]of i)if(We(h)){const g=h.getChildrenKeys();let v=d.firstChild;for(let y=0;y0){for(let d=0;d{p0e(e,t,r)})}function Nee(e,t){const r=e.__mode,n=e.__format,o=e.__style,i=t.__mode,s=t.__format,a=t.__style;return!(r!==null&&r!==i||n!==null&&n!==s||o!==null&&o!==a)}function Ree(e,t){const r=e.mergeWithSibling(t),n=Fn()._normalizedNodes;return n.add(e.__key),n.add(t.__key),r}function Oee(e){let t,r,n=e;if(n.__text!==""||!n.isSimpleText()||n.isUnmergeable()){for(;(t=n.getPreviousSibling())!==null&&vt(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(t.__text!==""){if(Nee(t,n)){n=Ree(t,n);break}break}t.remove()}for(;(r=n.getNextSibling())!==null&&vt(r)&&r.isSimpleText()&&!r.isUnmergeable();){if(r.__text!==""){if(Nee(n,r)){n=Ree(n,r);break}break}r.remove()}}else n.remove()}function m0e(e){return Dee(e.anchor),Dee(e.focus),e}function Dee(e){for(;e.type==="element";){const t=e.getNode(),r=e.offset;let n,o;if(r===t.getChildrenSize()?(n=t.getChildAtIndex(r-1),o=!0):(n=t.getChildAtIndex(r),o=!1),vt(n)){e.set(n.__key,o?n.getTextContentSize():0,"text");break}if(!We(n))break;e.set(n.__key,o?n.getChildrenSize():0,"element")}}let blt=1;const _lt=typeof queueMicrotask=="function"?queueMicrotask:e=>{Promise.resolve().then(e)};function fz(e){const t=document.activeElement;if(t===null)return!1;const r=t.nodeName;return Jn(NE(e))&&(r==="INPUT"||r==="TEXTAREA"||t.contentEditable==="true"&&t.__lexicalEditor==null)}function CE(e,t,r){const n=e.getRootElement();try{return n!==null&&n.contains(t)&&n.contains(r)&&t!==null&&!fz(t)&&dz(t)===e}catch{return!1}}function dz(e){let t=e;for(;t!=null;){const r=t.__lexicalEditor;if(r!=null)return r;t=h5(t)}return null}function qM(e){return e.isToken()||e.isSegmented()}function Elt(e){return e.nodeType===O1}function xx(e){let t=e;for(;t!=null;){if(Elt(t))return t;t=t.firstChild}return null}function WM(e,t,r){const n=o1[t];if(r!==null&&(e&n)==(r&n))return e;let o=e^n;return t==="subscript"?o&=~o1.superscript:t==="superscript"&&(o&=~o1.subscript),o}function Slt(e){return vt(e)||Bh(e)||Jn(e)}function y0e(e,t){if(t!=null)return void(e.__key=t);Zi(),U0e();const r=Fn(),n=Tc(),o=""+blt++;n._nodeMap.set(o,e),We(e)?r._dirtyElements.set(o,!0):r._dirtyLeaves.add(o),r._cloneNotNeeded.add(o),r._dirtyType=f0e,e.__key=o}function Fh(e){const t=e.getParent();if(t!==null){const r=e.getWritable(),n=t.getWritable(),o=e.getPreviousSibling(),i=e.getNextSibling();if(o===null)if(i!==null){const s=i.getWritable();n.__first=i.__key,s.__prev=null}else n.__first=null;else{const s=o.getWritable();if(i!==null){const a=i.getWritable();a.__prev=s.__key,s.__next=a.__key}else s.__next=null;r.__prev=null}if(i===null)if(o!==null){const s=o.getWritable();n.__last=o.__key,s.__next=null}else n.__last=null;else{const s=i.getWritable();if(o!==null){const a=o.getWritable();a.__next=s.__key,s.__prev=a.__key}else s.__prev=null;r.__next=null}n.__size--,r.__parent=null}}function Tx(e){U0e();const t=e.getLatest(),r=t.__parent,n=Tc(),o=Fn(),i=n._nodeMap,s=o._dirtyElements;r!==null&&function(u,l,c){let f=u;for(;f!==null;){if(c.has(f))return;const d=l.get(f);if(d===void 0)break;c.set(f,!1),f=d.__parent}}(r,i,s);const a=t.__key;o._dirtyType=f0e,We(e)?s.set(a,!0):o._dirtyLeaves.add(a)}function Go(e){Zi();const t=Fn(),r=t._compositionKey;if(e!==r){if(t._compositionKey=e,r!==null){const n=Ci(r);n!==null&&n.getWritable()}if(e!==null){const n=Ci(e);n!==null&&n.getWritable()}}}function zd(){return $v()?null:Fn()._compositionKey}function Ci(e,t){const r=(t||Tc())._nodeMap.get(e);return r===void 0?null:r}function b0e(e,t){const r=e[`__lexicalKey_${Fn()._key}`];return r!==void 0?Ci(r,t):null}function NE(e,t){let r=e;for(;r!=null;){const n=b0e(r,t);if(n!==null)return n;r=h5(r)}return null}function _0e(e){const t=e._decorators,r=Object.assign({},t);return e._pendingDecorators=r,r}function Fee(e){return e.read(()=>Aa().getTextContent())}function Aa(){return E0e(Tc())}function E0e(e){return e._nodeMap.get("root")}function hc(e){Zi();const t=Tc();e!==null&&(e.dirty=!0,e.setCachedNodes(null)),t._selection=e}function W0(e){const t=Fn(),r=function(n,o){let i=n;for(;i!=null;){const s=i[`__lexicalKey_${o._key}`];if(s!==void 0)return s;i=h5(i)}return null}(e,t);return r===null?e===t.getRootElement()?Ci("root"):null:Ci(r)}function Bee(e,t){return t?e.getTextContentSize():0}function S0e(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function hz(e){const t=[];let r=e;for(;r!==null;)t.push(r),r=r._parentEditor;return t}function w0e(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function A0e(e){return e.nodeType===O1?e.nodeValue:null}function pz(e,t,r){const n=pc(t._window);if(n===null)return;const o=n.anchorNode;let{anchorOffset:i,focusOffset:s}=n;if(o!==null){let a=A0e(o);const u=NE(o);if(a!==null&&vt(u)){if(a===f5&&r){const l=r.length;a=r,i=l,s=l}a!==null&&gz(u,a,i,s,e)}}}function gz(e,t,r,n,o){let i=e;if(i.isAttached()&&(o||!i.isDirty())){const s=i.isComposing();let a=t;(s||o)&&t[t.length-1]===f5&&(a=t.slice(0,-1));const u=i.getTextContent();if(o||a!==u){if(a===""){if(Go(null),rz||c5||nz)i.remove();else{const v=Fn();setTimeout(()=>{v.update(()=>{i.isAttached()&&i.remove()})},20)}return}const l=i.getParent(),c=Hv(),f=i.getTextContentSize(),d=zd(),h=i.getKey();if(i.isToken()||d!==null&&h===d&&!s||Vt(c)&&(l!==null&&!l.canInsertTextBefore()&&c.anchor.offset===0||c.anchor.key===e.__key&&c.anchor.offset===0&&!i.canInsertTextBefore()&&!s||c.focus.key===e.__key&&c.focus.offset===f&&!i.canInsertTextAfter()&&!s))return void i.markDirty();const g=hn();if(!Vt(g)||r===null||n===null)return void i.setTextContent(a);if(g.setTextNodeRange(i,r,i,n),i.isSegmented()){const v=si(i.getTextContent());i.replace(v),i=v}i.setTextContent(a)}}}function wlt(e,t){if(t.isSegmented())return!0;if(!e.isCollapsed())return!1;const r=e.anchor.offset,n=t.getParentOrThrow(),o=t.isToken();return r===0?!t.canInsertTextBefore()||!n.canInsertTextBefore()||o||function(i){const s=i.getPreviousSibling();return(vt(s)||We(s)&&s.isInline())&&!s.canInsertTextAfter()}(t):r===t.getTextContentSize()&&(!t.canInsertTextAfter()||!n.canInsertTextAfter()||o)}function Mee(e){return e===37}function Lee(e){return e===39}function Sy(e,t){return qu?e:t}function jee(e){return e===13}function qm(e){return e===8}function Wm(e){return e===46}function zee(e,t,r){return e===65&&Sy(t,r)}function Alt(){const e=Aa();hc(m0e(e.select(0,e.getChildrenSize())))}function ib(e,t){e.__lexicalClassNameCache===void 0&&(e.__lexicalClassNameCache={});const r=e.__lexicalClassNameCache,n=r[t];if(n!==void 0)return n;const o=e[t];if(typeof o=="string"){const i=kx(o);return r[t]=i,i}return o}function vz(e,t,r,n,o){if(r.size===0)return;const i=n.__type,s=n.__key,a=t.get(i);a===void 0&&ft(33,i);const u=a.klass;let l=e.get(u);l===void 0&&(l=new Map,e.set(u,l));const c=l.get(s),f=c==="destroyed"&&o==="created";(c===void 0||f)&&l.set(s,f?"updated":o)}function klt(e){const t=Tc(),r=t._readOnly,n=e.getType(),o=t._nodeMap,i=[];for(const[,s]of o)s instanceof e&&s.__type===n&&(r||s.isAttached())&&i.push(s);return i}function Hee(e,t,r){const n=e.getParent();let o=r,i=e;return n!==null&&(t&&r===0?(o=i.getIndexWithinParent(),i=n):t||r!==i.getChildrenSize()||(o=i.getIndexWithinParent()+1,i=n)),i.getChildAtIndex(t?o-1:o)}function KM(e,t){const r=e.offset;if(e.type==="element")return Hee(e.getNode(),t,r);{const n=e.getNode();if(t&&r===0||!t&&r===n.getTextContentSize()){const o=t?n.getPreviousSibling():n.getNextSibling();return o===null?Hee(n.getParentOrThrow(),t,n.getIndexWithinParent()+(t?0:1)):o}}return null}function k0e(e){const t=p5(e).event,r=t&&t.inputType;return r==="insertFromPaste"||r==="insertFromPasteAsQuotation"}function ct(e,t,r){return Y0e(e,t,r)}function d5(e){return!ma(e)&&!e.isLastChild()&&!e.isInline()}function Ix(e,t){const r=e._keyToDOMMap.get(t);return r===void 0&&ft(75,t),r}function h5(e){const t=e.assignedSlot||e.parentElement;return t!==null&&t.nodeType===11?t.host:t}function xlt(e){return Fn()._updateTags.has(e)}function Tlt(e){Zi(),Fn()._updateTags.add(e)}function Cx(e,t){let r=e.getParent();for(;r!==null;){if(r.is(t))return!0;r=r.getParent()}return!1}function p5(e){const t=e._window;return t===null&&ft(78),t}function Ilt(e){return We(e)&&e.isInline()||Jn(e)&&e.isInline()}function x0e(e){let t=e.getParentOrThrow();for(;t!==null;){if(y1(t))return t;t=t.getParentOrThrow()}return t}function y1(e){return ma(e)||We(e)&&e.isShadowRoot()}function T0e(e){const t=e.constructor.clone(e);return y0e(t,null),t}function RE(e){const t=Fn(),r=e.constructor.getType(),n=t._nodes.get(r);n===void 0&&ft(97);const o=n.replace;if(o!==null){const i=o(e);return i instanceof e.constructor||ft(98),i}return e}function k3(e,t){!ma(e.getParent())||We(t)||Jn(t)||ft(99)}function x3(e){return(Jn(e)||We(e)&&!e.canBeEmpty())&&!e.isInline()}function mz(e,t,r){r.style.removeProperty("caret-color"),t._blockCursorElement=null;const n=e.parentElement;n!==null&&n.removeChild(e)}function Clt(e,t,r){let n=e._blockCursorElement;if(Vt(r)&&r.isCollapsed()&&r.anchor.type==="element"&&t.contains(document.activeElement)){const o=r.anchor,i=o.getNode(),s=o.offset;let a=!1,u=null;if(s===i.getChildrenSize())x3(i.getChildAtIndex(s-1))&&(a=!0);else{const l=i.getChildAtIndex(s);if(x3(l)){const c=l.getPreviousSibling();(c===null||x3(c))&&(a=!0,u=e.getElementByKey(l.__key))}}if(a){const l=e.getElementByKey(i.__key);return n===null&&(e._blockCursorElement=n=function(c){const f=c.theme,d=document.createElement("div");d.contentEditable="false",d.setAttribute("data-lexical-cursor","true");let h=f.blockCursor;if(h!==void 0){if(typeof h=="string"){const g=kx(h);h=f.blockCursor=g}h!==void 0&&d.classList.add(...h)}return d}(e._config)),t.style.caretColor="transparent",void(u===null?l.appendChild(n):l.insertBefore(n,u))}}n!==null&&mz(n,e,t)}function pc(e){return bl?(e||window).getSelection():null}function Nlt(e,t){let r=e.getChildAtIndex(t);r==null&&(r=e),y1(e)&&ft(102);const n=s=>{const a=s.getParentOrThrow(),u=y1(a),l=s!==r||u?T0e(s):s;if(u)return We(s)&&We(l)||ft(133),s.insertAfter(l),[s,l,l];{const[c,f,d]=n(a),h=s.getNextSiblings();return d.append(l,...h),[c,f,l]}},[o,i]=n(r);return[o,i]}function Rlt(e){return g5(e)&&e.tagName==="A"}function g5(e){return e.nodeType===1}function m0(e){if(Jn(e)&&!e.isInline())return!0;if(!We(e)||y1(e))return!1;const t=e.getFirstChild(),r=t===null||Bh(t)||vt(t)||t.isInline();return!e.isInline()&&e.canBeEmpty()!==!1&&r}function T3(e,t){let r=e;for(;r!==null&&r.getParent()!==null&&!t(r);)r=r.getParentOrThrow();return t(r)?r:null}function Olt(){return Fn()}function I0e(e,t,r,n,o,i){let s=e.getFirstChild();for(;s!==null;){const a=s.__key;s.__parent===t&&(We(s)&&I0e(s,a,r,n,o,i),r.has(a)||i.delete(a),o.push(a)),s=s.getNextSibling()}}let b1,ss,g_,v5,GM,VM,Qh,_1,UM,v_,Bo="",ns="",rf="",C0e=!1,yz=!1,WA=null;function Nx(e,t){const r=Qh.get(e);if(t!==null){const n=QM(e);n.parentNode===t&&t.removeChild(n)}if(_1.has(e)||ss._keyToDOMMap.delete(e),We(r)){const n=Ox(r,Qh);YM(n,0,n.length-1,null)}r!==void 0&&vz(v_,g_,v5,r,"destroyed")}function YM(e,t,r,n){let o=t;for(;o<=r;++o){const i=e[o];i!==void 0&&Nx(i,n)}}function X1(e,t){e.setProperty("text-align",t)}const Dlt="40px";function N0e(e,t){const r=b1.theme.indent;if(typeof r=="string"){const o=e.classList.contains(r);t>0&&!o?e.classList.add(r):t<1&&o&&e.classList.remove(r)}const n=getComputedStyle(e).getPropertyValue("--lexical-indent-base-value")||Dlt;e.style.setProperty("padding-inline-start",t===0?"":`calc(${t} * ${n})`)}function R0e(e,t){const r=e.style;t===0?X1(r,""):t===oz?X1(r,"left"):t===iz?X1(r,"center"):t===sz?X1(r,"right"):t===az?X1(r,"justify"):t===uz?X1(r,"start"):t===lz&&X1(r,"end")}function Rx(e,t,r){const n=_1.get(e);n===void 0&&ft(60);const o=n.createDOM(b1,ss);if(function(i,s,a){const u=a._keyToDOMMap;s["__lexicalKey_"+a._key]=i,u.set(i,s)}(e,o,ss),vt(n)?o.setAttribute("data-lexical-text","true"):Jn(n)&&o.setAttribute("data-lexical-decorator","true"),We(n)){const i=n.__indent,s=n.__size;if(i!==0&&N0e(o,i),s!==0){const u=s-1;(function(l,c,f,d){const h=ns;ns="",XM(l,f,0,c,d,null),D0e(f,d),ns=h})(Ox(n,_1),u,n,o)}const a=n.__format;a!==0&&R0e(o,a),n.isInline()||O0e(null,n,o),d5(n)&&(Bo+=Bf,rf+=Bf)}else{const i=n.getTextContent();if(Jn(n)){const s=n.decorate(ss,b1);s!==null&&F0e(e,s),o.contentEditable="false"}else vt(n)&&(n.isDirectionless()||(ns+=i));Bo+=i,rf+=i}if(t!==null)if(r!=null)t.insertBefore(o,r);else{const i=t.__lexicalLineBreak;i!=null?t.insertBefore(o,i):t.appendChild(o)}return vz(v_,g_,v5,n,"created"),o}function XM(e,t,r,n,o,i){const s=Bo;Bo="";let a=r;for(;a<=n;++a)Rx(e[a],o,i);d5(t)&&(Bo+=Bf),o.__lexicalTextContent=Bo,Bo=s+Bo}function $ee(e,t){const r=t.get(e);return Bh(r)||Jn(r)&&r.isInline()}function O0e(e,t,r){const n=e!==null&&(e.__size===0||$ee(e.__last,Qh)),o=t.__size===0||$ee(t.__last,_1);if(n){if(!o){const i=r.__lexicalLineBreak;i!=null&&r.removeChild(i),r.__lexicalLineBreak=null}}else if(o){const i=document.createElement("br");r.__lexicalLineBreak=i,r.appendChild(i)}}function D0e(e,t){const r=t.__lexicalDirTextContent,n=t.__lexicalDir;if(r!==ns||n!==WA){const i=ns==="",s=i?WA:(o=ns,llt.test(o)?"rtl":clt.test(o)?"ltr":null);if(s!==n){const a=t.classList,u=b1.theme;let l=n!==null?u[n]:void 0,c=s!==null?u[s]:void 0;if(l!==void 0){if(typeof l=="string"){const f=kx(l);l=u[n]=f}a.remove(...l)}if(s===null||i&&s==="ltr")t.removeAttribute("dir");else{if(c!==void 0){if(typeof c=="string"){const f=kx(c);c=u[s]=f}c!==void 0&&a.add(...c)}t.dir=s}yz||(e.getWritable().__dir=s)}WA=s,t.__lexicalDirTextContent=ns,t.__lexicalDir=s}var o}function Flt(e,t,r){const n=ns;ns="",function(o,i,s){const a=Bo,u=o.__size,l=i.__size;if(Bo="",u===1&&l===1){const c=o.__first,f=i.__first;if(c===f)wy(c,s);else{const d=QM(c),h=Rx(f,null,null);s.replaceChild(h,d),Nx(c,null)}}else{const c=Ox(o,Qh),f=Ox(i,_1);if(u===0)l!==0&&XM(f,i,0,l-1,s,null);else if(l===0){if(u!==0){const d=s.__lexicalLineBreak==null;YM(c,0,u-1,d?null:s),d&&(s.textContent="")}}else(function(d,h,g,v,y,E){const _=v-1,S=y-1;let b,A,T=(I=E,I.firstChild),x=0,C=0;for(var I;x<=_&&C<=S;){const L=h[x],M=g[C];if(L===M)T=I3(wy(M,E)),x++,C++;else{b===void 0&&(b=new Set(h)),A===void 0&&(A=new Set(g));const q=A.has(L),z=b.has(M);if(q)if(z){const F=Ix(ss,M);F===T?T=I3(wy(M,E)):(T!=null?E.insertBefore(F,T):E.appendChild(F),wy(M,E)),x++,C++}else Rx(M,E,T),C++;else T=I3(QM(L)),Nx(L,E),x++}}const R=x>_,D=C>S;if(R&&!D){const L=g[S+1];XM(g,d,C,S,E,L===void 0?null:ss.getElementByKey(L))}else D&&!R&&YM(h,x,_,E)})(i,c,f,u,l,s)}d5(i)&&(Bo+=Bf),s.__lexicalTextContent=Bo,Bo=a+Bo}(e,t,r),D0e(t,r),ns=n}function Ox(e,t){const r=[];let n=e.__first;for(;n!==null;){const o=t.get(n);o===void 0&&ft(101),r.push(n),n=o.__next}return r}function wy(e,t){const r=Qh.get(e);let n=_1.get(e);r!==void 0&&n!==void 0||ft(61);const o=C0e||VM.has(e)||GM.has(e),i=Ix(ss,e);if(r===n&&!o){if(We(r)){const s=i.__lexicalTextContent;s!==void 0&&(Bo+=s,rf+=s);const a=i.__lexicalDirTextContent;a!==void 0&&(ns+=a)}else{const s=r.getTextContent();vt(r)&&!r.isDirectionless()&&(ns+=s),rf+=s,Bo+=s}return i}if(r!==n&&o&&vz(v_,g_,v5,n,"updated"),n.updateDOM(r,i,b1)){const s=Rx(e,null,null);return t===null&&ft(62),t.replaceChild(s,i),Nx(e,null),s}if(We(r)&&We(n)){const s=n.__indent;s!==r.__indent&&N0e(i,s);const a=n.__format;a!==r.__format&&R0e(i,a),o&&(Flt(r,n,i),ma(n)||n.isInline()||O0e(r,n,i)),d5(n)&&(Bo+=Bf,rf+=Bf)}else{const s=n.getTextContent();if(Jn(n)){const a=n.decorate(ss,b1);a!==null&&F0e(e,a)}else vt(n)&&!n.isDirectionless()&&(ns+=s);Bo+=s,rf+=s}if(!yz&&ma(n)&&n.__cachedText!==rf){const s=n.getWritable();s.__cachedText=rf,n=s}return i}function F0e(e,t){let r=ss._pendingDecorators;const n=ss._decorators;if(r===null){if(n[e]===t)return;r=_0e(ss)}r[e]=t}function I3(e){let t=e.nextSibling;return t!==null&&t===ss._blockCursorElement&&(t=t.nextSibling),t}function Blt(e,t,r,n,o,i){Bo="",rf="",ns="",C0e=n===ev,WA=null,ss=r,b1=r._config,g_=r._nodes,v5=ss._listeners.mutation,GM=o,VM=i,Qh=e._nodeMap,_1=t._nodeMap,yz=t._readOnly,UM=new Map(r._keyToDOMMap);const s=new Map;return v_=s,wy("root",null),ss=void 0,g_=void 0,GM=void 0,VM=void 0,Qh=void 0,_1=void 0,b1=void 0,UM=void 0,v_=void 0,s}function QM(e){const t=UM.get(e);return t===void 0&&ft(75,e),t}const Uc=Object.freeze({}),ZM=30,JM=[["keydown",function(e,t){if(sb=e.timeStamp,B0e=e.keyCode,t.isComposing())return;const{keyCode:r,shiftKey:n,ctrlKey:o,metaKey:i,altKey:s}=e;ct(t,Kpe,e)||(function(a,u,l,c){return Lee(a)&&!u&&!c&&!l}(r,o,s,i)?ct(t,Gpe,e):function(a,u,l,c,f){return Lee(a)&&!c&&!l&&(u||f)}(r,o,n,s,i)?ct(t,Vpe,e):function(a,u,l,c){return Mee(a)&&!u&&!c&&!l}(r,o,s,i)?ct(t,Upe,e):function(a,u,l,c,f){return Mee(a)&&!c&&!l&&(u||f)}(r,o,n,s,i)?ct(t,Ype,e):function(a,u,l){return function(c){return c===38}(a)&&!u&&!l}(r,o,i)?ct(t,Xpe,e):function(a,u,l){return function(c){return c===40}(a)&&!u&&!l}(r,o,i)?ct(t,Qpe,e):function(a,u){return jee(a)&&u}(r,n)?(ab=!0,ct(t,Ex,e)):function(a){return a===32}(r)?ct(t,Zpe,e):function(a,u){return qu&&u&&a===79}(r,o)?(e.preventDefault(),ab=!0,ct(t,ob,!0)):function(a,u){return jee(a)&&!u}(r,n)?(ab=!1,ct(t,Ex,e)):function(a,u,l,c){return qu?!u&&!l&&(qm(a)||a===72&&c):!(c||u||l)&&qm(a)}(r,s,i,o)?qm(r)?ct(t,Jpe,e):(e.preventDefault(),ct(t,d_,!0)):function(a){return a===27}(r)?ct(t,e0e,e):function(a,u,l,c,f){return qu?!(l||c||f)&&(Wm(a)||a===68&&u):!(u||c||f)&&Wm(a)}(r,o,n,s,i)?Wm(r)?ct(t,t0e,e):(e.preventDefault(),ct(t,d_,!1)):function(a,u,l){return qm(a)&&(qu?u:l)}(r,s,o)?(e.preventDefault(),ct(t,h_,!0)):function(a,u,l){return Wm(a)&&(qu?u:l)}(r,s,o)?(e.preventDefault(),ct(t,h_,!1)):function(a,u){return qu&&u&&qm(a)}(r,i)?(e.preventDefault(),ct(t,p_,!0)):function(a,u){return qu&&u&&Wm(a)}(r,i)?(e.preventDefault(),ct(t,p_,!1)):function(a,u,l,c){return a===66&&!u&&Sy(l,c)}(r,s,i,o)?(e.preventDefault(),ct(t,jd,"bold")):function(a,u,l,c){return a===85&&!u&&Sy(l,c)}(r,s,i,o)?(e.preventDefault(),ct(t,jd,"underline")):function(a,u,l,c){return a===73&&!u&&Sy(l,c)}(r,s,i,o)?(e.preventDefault(),ct(t,jd,"italic")):function(a,u,l,c){return a===9&&!u&&!l&&!c}(r,s,o,i)?ct(t,r0e,e):function(a,u,l,c){return a===90&&!u&&Sy(l,c)}(r,n,i,o)?(e.preventDefault(),ct(t,Zj,void 0)):function(a,u,l,c){return qu?a===90&&l&&u:a===89&&c||a===90&&c&&u}(r,n,i,o)?(e.preventDefault(),ct(t,Jj,void 0)):OE(t._editorState._selection)?function(a,u,l,c){return!u&&a===67&&(qu?l:c)}(r,n,i,o)?(e.preventDefault(),ct(t,ez,e)):function(a,u,l,c){return!u&&a===88&&(qu?l:c)}(r,n,i,o)?(e.preventDefault(),ct(t,tz,e)):zee(r,i,o)&&(e.preventDefault(),ct(t,$M,e)):!n1&&zee(r,i,o)&&(e.preventDefault(),ct(t,$M,e)),function(a,u,l,c){return a||u||l||c}(o,n,s,i)&&ct(t,l0e,e))}],["pointerdown",function(e,t){const r=e.target,n=e.pointerType;r instanceof Node&&n!=="touch"&&sa(t,()=>{Jn(NE(r))||(t6=!0)})}],["compositionstart",function(e,t){sa(t,()=>{const r=hn();if(Vt(r)&&!t.isComposing()){const n=r.anchor,o=r.anchor.getNode();Go(n.key),(e.timeStamp{C3(t,e.data)})}],["input",function(e,t){e.stopPropagation(),sa(t,()=>{const r=hn(),n=e.data,o=z0e(e);if(n!=null&&Vt(r)&&j0e(r,o,n,e.timeStamp,!1)){Km&&(C3(t,n),Km=!1);const i=r.anchor,s=i.getNode(),a=pc(t._window);if(a===null)return;const u=i.offset;Sx&&!r.isCollapsed()&&vt(s)&&a.anchorNode!==null&&s.getTextContent().slice(0,u)+n+s.getTextContent().slice(u+r.focus.offset)===A0e(a.anchorNode)||ct(t,hg,n);const l=n.length;n1&&l>1&&e.inputType==="insertCompositionText"&&!t.isComposing()&&(r.anchor.offset-=l),rz||c5||nz||!t.isComposing()||(sb=0,Go(null))}else pz(!1,t,n!==null?n:void 0),Km&&(C3(t,n||void 0),Km=!1);Zi(),g0e(Fn())}),y0=null}],["click",function(e,t){sa(t,()=>{const r=hn(),n=pc(t._window),o=Hv();if(n){if(Vt(r)){const i=r.anchor,s=i.getNode();i.type==="element"&&i.offset===0&&r.isCollapsed()&&!ma(s)&&Aa().getChildrenSize()===1&&s.getTopLevelElementOrThrow().isEmpty()&&o!==null&&r.is(o)?(n.removeAllRanges(),r.dirty=!0):e.detail===3&&!r.isCollapsed()&&s!==r.focus.getNode()&&(We(s)?s.select(0):s.getParentOrThrow().select(0))}else if(e.pointerType==="touch"){const i=n.anchorNode;if(i!==null){const s=i.nodeType;(s===IE||s===O1)&&hc(bz(o,n,t,e))}}}ct(t,Wpe,e)})}],["cut",Uc],["copy",Uc],["dragstart",Uc],["dragover",Uc],["dragend",Uc],["paste",Uc],["focus",Uc],["blur",Uc],["drop",Uc]];Sx&&JM.push(["beforeinput",(e,t)=>function(r,n){const o=r.inputType,i=z0e(r);o==="deleteCompositionText"||n1&&k0e(n)||o!=="insertCompositionText"&&sa(n,()=>{const s=hn();if(o==="deleteContentBackward"){if(s===null){const h=Hv();if(!Vt(h))return;hc(h.clone())}if(Vt(s)){const h=s.anchor.key===s.focus.key;if(a=r.timeStamp,B0e===229&&a{sa(n,()=>{Go(null)})},ZM),Vt(s)){const g=s.anchor.getNode();g.markDirty(),s.format=g.getFormat(),vt(g)||ft(142),s.style=g.getStyle()}}else{Go(null),r.preventDefault();const g=s.anchor.getNode().getTextContent(),v=s.anchor.offset===0&&s.focus.offset===g.length;slt&&h&&!v||ct(n,d_,!0)}return}}var a;if(!Vt(s))return;const u=r.data;y0!==null&&pz(!1,n,y0),s.dirty&&y0===null||!s.isCollapsed()||ma(s.anchor.getNode())||i===null||s.applyDOMRange(i),y0=null;const l=s.anchor,c=s.focus,f=l.getNode(),d=c.getNode();if(o!=="insertText"&&o!=="insertTranspose")switch(r.preventDefault(),o){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":ct(n,hg,r);break;case"insertFromComposition":Go(null),ct(n,hg,r);break;case"insertLineBreak":Go(null),ct(n,ob,!1);break;case"insertParagraph":Go(null),ab&&!c5?(ab=!1,ct(n,ob,!1)):ct(n,zM,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":ct(n,Qj,r);break;case"deleteByComposition":(function(h,g){return h!==g||We(h)||We(g)||!h.isToken()||!g.isToken()})(f,d)&&ct(n,HM,r);break;case"deleteByDrag":case"deleteByCut":ct(n,HM,r);break;case"deleteContent":ct(n,d_,!1);break;case"deleteWordBackward":ct(n,h_,!0);break;case"deleteWordForward":ct(n,h_,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":ct(n,p_,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":ct(n,p_,!1);break;case"formatStrikeThrough":ct(n,jd,"strikethrough");break;case"formatBold":ct(n,jd,"bold");break;case"formatItalic":ct(n,jd,"italic");break;case"formatUnderline":ct(n,jd,"underline");break;case"historyUndo":ct(n,Zj,void 0);break;case"historyRedo":ct(n,Jj,void 0)}else{if(u===` +`)r.preventDefault(),ct(n,ob,!1);else if(u===Bf)r.preventDefault(),ct(n,zM,void 0);else if(u==null&&r.dataTransfer){const h=r.dataTransfer.getData("text/plain");r.preventDefault(),s.insertRawText(h)}else u!=null&&j0e(s,i,u,r.timeStamp,!0)?(r.preventDefault(),ct(n,hg,u)):y0=u;M0e=r.timeStamp}})}(e,t)]);let sb=0,B0e=0,M0e=0,y0=null;const Dx=new WeakMap;let e6=!1,t6=!1,ab=!1,Km=!1,L0e=[0,"",0,"root",0];function j0e(e,t,r,n,o){const i=e.anchor,s=e.focus,a=i.getNode(),u=Fn(),l=pc(u._window),c=l!==null?l.anchorNode:null,f=i.key,d=u.getElementByKey(f),h=r.length;return f!==s.key||!vt(a)||(!o&&(!Sx||M0e1||(o||!Sx)&&d!==null&&!a.isComposing()&&c!==xx(d)||l!==null&&t!==null&&(!t.collapsed||t.startContainer!==l.anchorNode||t.startOffset!==l.anchorOffset)||a.getFormat()!==e.format||a.getStyle()!==e.style||wlt(e,a)}function Pee(e,t){return e!==null&&e.nodeValue!==null&&e.nodeType===O1&&t!==0&&t!==e.nodeValue.length}function qee(e,t,r){const{anchorNode:n,anchorOffset:o,focusNode:i,focusOffset:s}=e;e6&&(e6=!1,Pee(n,o)&&Pee(i,s))||sa(t,()=>{if(!r)return void hc(null);if(!CE(t,n,i))return;const a=hn();if(Vt(a)){const u=a.anchor,l=u.getNode();if(a.isCollapsed()){e.type==="Range"&&e.anchorNode===e.focusNode&&(a.dirty=!0);const c=p5(t).event,f=c?c.timeStamp:performance.now(),[d,h,g,v,y]=L0e,E=Aa(),_=t.isComposing()===!1&&E.getTextContent()==="";f{const l=Hv(),c=r.anchorNode;if(c===null)return;const f=c.nodeType;f!==IE&&f!==O1||hc(bz(l,r,n,e))}));const o=hz(n),i=o[o.length-1],s=i._key,a=pg.get(s),u=a||i;u!==n&&qee(r,u,!1),qee(r,n,!0),n!==i?pg.set(s,n):a&&pg.delete(s)}function Wee(e){e._lexicalHandled=!0}function Kee(e){return e._lexicalHandled===!0}function Mlt(e){const t=e.ownerDocument,r=Dx.get(t);if(r===void 0)throw Error("Root element not registered");Dx.set(t,r-1),r===1&&t.removeEventListener("selectionchange",$0e);const n=e.__lexicalEditor;n!=null&&(function(i){if(i._parentEditor!==null){const s=hz(i),a=s[s.length-1]._key;pg.get(a)===i&&pg.delete(a)}else pg.delete(i._key)}(n),e.__lexicalEditor=null);const o=H0e(e);for(let i=0;io.__key===this.__key);return(vt(this)||!Vt(r)||r.anchor.type!=="element"||r.focus.type!=="element"||r.anchor.key!==r.focus.key||r.anchor.offset!==r.focus.offset)&&n}getKey(){return this.__key}getIndexWithinParent(){const t=this.getParent();if(t===null)return-1;let r=t.getFirstChild(),n=0;for(;r!==null;){if(this.is(r))return n;n++,r=r.getNextSibling()}return-1}getParent(){const t=this.getLatest().__parent;return t===null?null:Ci(t)}getParentOrThrow(){const t=this.getParent();return t===null&&ft(66,this.__key),t}getTopLevelElement(){let t=this;for(;t!==null;){const r=t.getParent();if(y1(r))return We(t)||ft(138),t;t=r}return null}getTopLevelElementOrThrow(){const t=this.getTopLevelElement();return t===null&&ft(67,this.__key),t}getParents(){const t=[];let r=this.getParent();for(;r!==null;)t.push(r),r=r.getParent();return t}getParentKeys(){const t=[];let r=this.getParent();for(;r!==null;)t.push(r.__key),r=r.getParent();return t}getPreviousSibling(){const t=this.getLatest().__prev;return t===null?null:Ci(t)}getPreviousSiblings(){const t=[],r=this.getParent();if(r===null)return t;let n=r.getFirstChild();for(;n!==null&&!n.is(this);)t.push(n),n=n.getNextSibling();return t}getNextSibling(){const t=this.getLatest().__next;return t===null?null:Ci(t)}getNextSiblings(){const t=[];let r=this.getNextSibling();for(;r!==null;)t.push(r),r=r.getNextSibling();return t}getCommonAncestor(t){const r=this.getParents(),n=t.getParents();We(this)&&r.unshift(this),We(t)&&n.unshift(t);const o=r.length,i=n.length;if(o===0||i===0||r[o-1]!==n[i-1])return null;const s=new Set(n);for(let a=0;a{a.append(v)})),Vt(n)){hc(n);const v=n.anchor,y=n.focus;v.key===i&&Xee(v,a),y.key===i&&Xee(y,a)}return zd()===i&&Go(s),a}insertAfter(t,r=!0){Zi(),k3(this,t);const n=this.getWritable(),o=t.getWritable(),i=o.getParent(),s=hn();let a=!1,u=!1;if(i!==null){const h=t.getIndexWithinParent();if(Fh(o),Vt(s)){const g=i.__key,v=s.anchor,y=s.focus;a=v.type==="element"&&v.key===g&&v.offset===h+1,u=y.type==="element"&&y.key===g&&y.offset===h+1}}const l=this.getNextSibling(),c=this.getParentOrThrow().getWritable(),f=o.__key,d=n.__next;if(l===null?c.__last=f:l.getWritable().__prev=f,c.__size++,n.__next=f,o.__next=d,o.__prev=n.__key,o.__parent=n.__parent,r&&Vt(s)){const h=this.getIndexWithinParent();Fx(s,c,h+1);const g=c.__key;a&&s.anchor.set(g,h+2,"element"),u&&s.focus.set(g,h+2,"element")}return t}insertBefore(t,r=!0){Zi(),k3(this,t);const n=this.getWritable(),o=t.getWritable(),i=o.__key;Fh(o);const s=this.getPreviousSibling(),a=this.getParentOrThrow().getWritable(),u=n.__prev,l=this.getIndexWithinParent();s===null?a.__first=i:s.getWritable().__next=i,a.__size++,n.__prev=i,o.__prev=u,o.__next=n.__key,o.__parent=n.__parent;const c=hn();return r&&Vt(c)&&Fx(c,this.getParentOrThrow(),l),t}isParentRequired(){return!1}createParentElementNode(){return Mf()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(t,r){Zi();const n=this.getPreviousSibling(),o=this.getParentOrThrow();if(n===null)return o.select(0,0);if(We(n))return n.select();if(!vt(n)){const i=n.getIndexWithinParent()+1;return o.select(i,i)}return n.select(t,r)}selectNext(t,r){Zi();const n=this.getNextSibling(),o=this.getParentOrThrow();if(n===null)return o.select();if(We(n))return n.select(0,0);if(!vt(n)){const i=n.getIndexWithinParent();return o.select(i,i)}return n.select(t,r)}markDirty(){this.getWritable()}}class jv extends m5{static getType(){return"linebreak"}static clone(t){return new jv(t.__key)}constructor(t){super(t)}getTextContent(){return` +`}createDOM(){return document.createElement("br")}updateDOM(){return!1}static importDOM(){return{br:t=>function(r){const n=r.parentElement;if(n!==null){const o=n.firstChild;if(o===r||o.nextSibling===r&&Gee(o)){const i=n.lastChild;if(i===r||i.previousSibling===r&&Gee(i))return!0}}return!1}(t)?null:{conversion:Llt,priority:0}}}static importJSON(t){return tv()}exportJSON(){return{type:"linebreak",version:1}}}function Llt(e){return{node:tv()}}function tv(){return RE(new jv)}function Bh(e){return e instanceof jv}function Gee(e){return e.nodeType===O1&&/^( |\t|\r?\n)+$/.test(e.textContent||"")}function N3(e,t){return 16&t?"code":128&t?"mark":32&t?"sub":64&t?"sup":null}function R3(e,t){return 1&t?"strong":2&t?"em":"span"}function P0e(e,t,r,n,o){const i=n.classList;let s=ib(o,"base");s!==void 0&&i.add(...s),s=ib(o,"underlineStrikethrough");let a=!1;const u=t&Ax&&t&wx;s!==void 0&&(r&Ax&&r&wx?(a=!0,u||i.add(...s)):u&&i.remove(...s));for(const l in o1){const c=o1[l];if(s=ib(o,l),s!==void 0)if(r&c){if(a&&(l==="underline"||l==="strikethrough")){t&c&&i.remove(...s);continue}(!(t&c)||u&&l==="underline"||l==="strikethrough")&&i.add(...s)}else t&c&&i.remove(...s)}}function q0e(e,t,r){const n=t.firstChild,o=r.isComposing(),i=e+(o?f5:"");if(n==null)t.textContent=i;else{const s=n.nodeValue;if(s!==i)if(o||n1){const[a,u,l]=function(c,f){const d=c.length,h=f.length;let g=0,v=0;for(;g({conversion:$lt,priority:0}),b:()=>({conversion:zlt,priority:0}),code:()=>({conversion:dd,priority:0}),em:()=>({conversion:dd,priority:0}),i:()=>({conversion:dd,priority:0}),s:()=>({conversion:dd,priority:0}),span:()=>({conversion:jlt,priority:0}),strong:()=>({conversion:dd,priority:0}),sub:()=>({conversion:dd,priority:0}),sup:()=>({conversion:dd,priority:0}),u:()=>({conversion:dd,priority:0})}}static importJSON(t){const r=si(t.text);return r.setFormat(t.format),r.setDetail(t.detail),r.setMode(t.mode),r.setStyle(t.style),r}exportDOM(t){let{element:r}=super.exportDOM(t);return r!==null&&g5(r)||ft(132),r.style.whiteSpace="pre-wrap",this.hasFormat("bold")&&(r=Kw(r,"b")),this.hasFormat("italic")&&(r=Kw(r,"i")),this.hasFormat("strikethrough")&&(r=Kw(r,"s")),this.hasFormat("underline")&&(r=Kw(r,"u")),{element:r}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),type:"text",version:1}}selectionTransform(t,r){}setFormat(t){const r=this.getWritable();return r.__format=typeof t=="string"?o1[t]:t,r}setDetail(t){const r=this.getWritable();return r.__detail=typeof t=="string"?flt[t]:t,r}setStyle(t){const r=this.getWritable();return r.__style=t,r}toggleFormat(t){const r=WM(this.getFormat(),t,null);return this.setFormat(r)}toggleDirectionless(){const t=this.getWritable();return t.__detail^=1,t}toggleUnmergeable(){const t=this.getWritable();return t.__detail^=2,t}setMode(t){const r=hlt[t];if(this.__mode===r)return this;const n=this.getWritable();return n.__mode=r,n}setTextContent(t){if(this.__text===t)return this;const r=this.getWritable();return r.__text=t,r}select(t,r){Zi();let n=t,o=r;const i=hn(),s=this.getTextContent(),a=this.__key;if(typeof s=="string"){const u=s.length;n===void 0&&(n=u),o===void 0&&(o=u)}else n=0,o=0;if(!Vt(i))return V0e(a,n,a,o,"text","text");{const u=zd();u!==i.anchor.key&&u!==i.focus.key||Go(a),i.setTextNodeRange(this,n,this,o)}return i}selectStart(){return this.select(0,0)}selectEnd(){const t=this.getTextContentSize();return this.select(t,t)}spliceText(t,r,n,o){const i=this.getWritable(),s=i.__text,a=n.length;let u=t;u<0&&(u=a+u,u<0&&(u=0));const l=hn();if(o&&Vt(l)){const f=t+a;l.setTextNodeRange(i,f,i,f)}const c=s.slice(0,u)+n+s.slice(u+r);return i.__text=c,i}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...t){Zi();const r=this.getLatest(),n=r.getTextContent(),o=r.__key,i=zd(),s=new Set(t),a=[],u=n.length;let l="";for(let x=0;xb&&M.offset<=L&&(M.key=D,M.offset-=b,_.dirty=!0),q.key===o&&q.type==="text"&&q.offset>b&&q.offset<=L&&(q.key=D,q.offset-=b,_.dirty=!0)}i===o&&Go(D),b=L,S.push(R)}(function(x){const C=x.getPreviousSibling(),I=x.getNextSibling();C!==null&&Tx(C),I!==null&&Tx(I)})(this);const A=d.getWritable(),T=this.getIndexWithinParent();return E?(A.splice(T,0,S),this.remove()):A.splice(T,1,S),Vt(_)&&Fx(_,d,T,c-1),S}mergeWithSibling(t){const r=t===this.getPreviousSibling();r||t===this.getNextSibling()||ft(50);const n=this.__key,o=t.__key,i=this.__text,s=i.length;zd()===o&&Go(n);const a=hn();if(Vt(a)){const f=a.anchor,d=a.focus;f!==null&&f.key===o&&(nte(f,r,n,t,s),a.dirty=!0),d!==null&&d.key===o&&(nte(d,r,n,t,s),a.dirty=!0)}const u=t.__text,l=r?u+i:i+u;this.setTextContent(l);const c=this.getWritable();return t.remove(),c}isTextEntity(){return!1}}function jlt(e){const t=e,r=t.style.fontWeight==="700",n=t.style.textDecoration==="line-through",o=t.style.fontStyle==="italic",i=t.style.textDecoration==="underline",s=t.style.verticalAlign;return{forChild:a=>(vt(a)&&(r&&a.toggleFormat("bold"),n&&a.toggleFormat("strikethrough"),o&&a.toggleFormat("italic"),i&&a.toggleFormat("underline"),s==="sub"&&a.toggleFormat("subscript"),s==="super"&&a.toggleFormat("superscript")),a),node:null}}function zlt(e){const t=e.style.fontWeight==="normal";return{forChild:r=>(vt(r)&&!t&&r.toggleFormat("bold"),r),node:null}}const Uee=new WeakMap;function Hlt(e){return e.nodeName==="PRE"||e.nodeType===IE&&e.style!==void 0&&e.style.whiteSpace!==void 0&&e.style.whiteSpace.startsWith("pre")}function $lt(e){const t=e;e.parentElement===null&&ft(129);let r=t.textContent||"";if(function(n){let o,i=n.parentNode;const s=[n];for(;i!==null&&(o=Uee.get(i))===void 0&&!Hlt(i);)s.push(i),i=i.parentNode;const a=o===void 0?i:o;for(let u=0;u0){/[ \t\n]$/.test(i)&&(r=r.slice(1)),o=!1;break}}o&&(r=r.slice(1))}if(r[r.length-1]===" "){let n=t,o=!0;for(;n!==null&&(n=$ee(n,!0))!==null;)if((n.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){o=!1;break}o&&(r=r.slice(0,r.length-1))}return r===""?{node:null}:{node:si(r)}}const Olt=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/,"i");function $ee(e,t){let r=e;for(;;){let n;for(;(n=t?r.nextSibling:r.previousSibling)===null;){const i=r.parentElement;if(i===null)return null;r=i}if(r=n,r.nodeType===AE){const i=r.style.display;if(i===""&&r.nodeName.match(Olt)===null||i!==""&&!i.startsWith("inline"))return null}let o=r;for(;(o=t?r.firstChild:r.lastChild)!==null;)r=o;if(r.nodeType===D1)return r;if(r.nodeName==="BR")return null}}const Dlt={code:"code",em:"italic",i:"italic",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function dd(e){const t=Dlt[e.nodeName.toLowerCase()];return t===void 0?{node:null}:{forChild:r=>(gt(r)&&!r.hasFormat(t)&&r.toggleFormat(t),r),node:null}}function si(e=""){return IE(new mp(e))}function gt(e){return e instanceof mp}class Mv extends mp{static getType(){return"tab"}static clone(t){const r=new Mv(t.__key);return r.__text=t.__text,r.__format=t.__format,r.__style=t.__style,r}constructor(t){super(" ",t),this.__detail=2}static importDOM(){return null}static importJSON(t){const r=p5();return r.setFormat(t.format),r.setStyle(t.style),r}exportJSON(){return{...super.exportJSON(),type:"tab",version:1}}setTextContent(t){ct(126)}setDetail(t){ct(127)}setMode(t){ct(128)}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function p5(){return IE(new Mv)}function z0e(e){return e instanceof Mv}class Flt{constructor(t,r,n){this._selection=null,this.key=t,this.offset=r,this.type=n}is(t){return this.key===t.key&&this.offset===t.offset&&this.type===t.type}isBefore(t){let r=this.getNode(),n=t.getNode();const o=this.offset,i=t.offset;if(We(r)){const s=r.getDescendantByIndex(o);r=s??r}if(We(n)){const s=n.getDescendantByIndex(i);n=s??n}return r===n?oi&&(n=i)}else if(!We(t)){const i=t.getNextSibling();if(gt(i))r=i.__key,n=0,o="text";else{const s=t.getParent();s&&(r=s.__key,n=t.getIndexWithinParent()+1)}}e.set(r,n,o)}function Pee(e,t){if(We(t)){const r=t.getLastDescendant();We(r)||gt(r)?I3(e,r):I3(e,t)}else I3(e,t)}function qee(e,t,r,n){const o=e.getNode(),i=o.getChildAtIndex(e.offset),s=si(),a=ma(o)?Bf().append(s):s;s.setFormat(r),s.setStyle(n),i===null?o.append(a):i.insertBefore(a),e.is(t)&&t.set(s.__key,0,"text"),e.set(s.__key,0,"text")}function Id(e,t,r,n){e.key=t,e.offset=r,e.type=n}class g5{constructor(t){this._cachedNodes=null,this._nodes=t,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(t){this._cachedNodes=t}is(t){if(!NE(t))return!1;const r=this._nodes,n=t._nodes;return r.size===n.size&&Array.from(r).every(o=>n.has(o))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(t){this.dirty=!0,this._nodes.add(t),this._cachedNodes=null}delete(t){this.dirty=!0,this._nodes.delete(t),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(t){return this._nodes.has(t)}clone(){return new g5(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(t){}insertText(){}insertNodes(t){const r=this.getNodes(),n=r.length,o=r[n-1];let i;if(gt(o))i=o.select();else{const s=o.getIndexWithinParent()+1;i=o.getParentOrThrow().select(s,s)}i.insertNodes(t);for(let s=0;s0?[]:[a]:a.getNodesBetween(u),jv()||(this._cachedNodes=f),f}setTextNodeRange(t,r,n,o){Id(this.anchor,t.__key,r,"text"),Id(this.focus,n.__key,o,"text"),this._cachedNodes=null,this.dirty=!0}getTextContent(){const t=this.getNodes();if(t.length===0)return"";const r=t[0],n=t[t.length-1],o=this.anchor,i=this.focus,s=o.isBefore(i),[a,u]=JM(this);let l="",c=!0;for(let f=0;f0){/[ \t\n]$/.test(i)&&(r=r.slice(1)),o=!1;break}}o&&(r=r.slice(1))}if(r[r.length-1]===" "){let n=t,o=!0;for(;n!==null&&(n=Yee(n,!0))!==null;)if((n.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){o=!1;break}o&&(r=r.slice(0,r.length-1))}return r===""?{node:null}:{node:si(r)}}const Plt=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/,"i");function Yee(e,t){let r=e;for(;;){let n;for(;(n=t?r.nextSibling:r.previousSibling)===null;){const i=r.parentElement;if(i===null)return null;r=i}if(r=n,r.nodeType===IE){const i=r.style.display;if(i===""&&r.nodeName.match(Plt)===null||i!==""&&!i.startsWith("inline"))return null}let o=r;for(;(o=t?r.firstChild:r.lastChild)!==null;)r=o;if(r.nodeType===O1)return r;if(r.nodeName==="BR")return null}}const qlt={code:"code",em:"italic",i:"italic",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function dd(e){const t=qlt[e.nodeName.toLowerCase()];return t===void 0?{node:null}:{forChild:r=>(vt(r)&&!r.hasFormat(t)&&r.toggleFormat(t),r),node:null}}function si(e=""){return RE(new vp(e))}function vt(e){return e instanceof vp}class zv extends vp{static getType(){return"tab"}static clone(t){const r=new zv(t.__key);return r.__text=t.__text,r.__format=t.__format,r.__style=t.__style,r}constructor(t){super(" ",t),this.__detail=2}static importDOM(){return null}static importJSON(t){const r=y5();return r.setFormat(t.format),r.setStyle(t.style),r}exportJSON(){return{...super.exportJSON(),type:"tab",version:1}}setTextContent(t){ft(126)}setDetail(t){ft(127)}setMode(t){ft(128)}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function y5(){return RE(new zv)}function W0e(e){return e instanceof zv}class Wlt{constructor(t,r,n){this._selection=null,this.key=t,this.offset=r,this.type=n}is(t){return this.key===t.key&&this.offset===t.offset&&this.type===t.type}isBefore(t){let r=this.getNode(),n=t.getNode();const o=this.offset,i=t.offset;if(We(r)){const s=r.getDescendantByIndex(o);r=s??r}if(We(n)){const s=n.getDescendantByIndex(i);n=s??n}return r===n?oi&&(n=i)}else if(!We(t)){const i=t.getNextSibling();if(vt(i))r=i.__key,n=0,o="text";else{const s=t.getParent();s&&(r=s.__key,n=t.getIndexWithinParent()+1)}}e.set(r,n,o)}function Xee(e,t){if(We(t)){const r=t.getLastDescendant();We(r)||vt(r)?O3(e,r):O3(e,t)}else O3(e,t)}function Qee(e,t,r,n){const o=e.getNode(),i=o.getChildAtIndex(e.offset),s=si(),a=ma(o)?Mf().append(s):s;s.setFormat(r),s.setStyle(n),i===null?o.append(a):i.insertBefore(a),e.is(t)&&t.set(s.__key,0,"text"),e.set(s.__key,0,"text")}function Id(e,t,r,n){e.key=t,e.offset=r,e.type=n}class b5{constructor(t){this._cachedNodes=null,this._nodes=t,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(t){this._cachedNodes=t}is(t){if(!OE(t))return!1;const r=this._nodes,n=t._nodes;return r.size===n.size&&Array.from(r).every(o=>n.has(o))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(t){this.dirty=!0,this._nodes.add(t),this._cachedNodes=null}delete(t){this.dirty=!0,this._nodes.delete(t),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(t){return this._nodes.has(t)}clone(){return new b5(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(t){}insertText(){}insertNodes(t){const r=this.getNodes(),n=r.length,o=r[n-1];let i;if(vt(o))i=o.select();else{const s=o.getIndexWithinParent()+1;i=o.getParentOrThrow().select(s,s)}i.insertNodes(t);for(let s=0;s0?[]:[a]:a.getNodesBetween(u),$v()||(this._cachedNodes=f),f}setTextNodeRange(t,r,n,o){Id(this.anchor,t.__key,r,"text"),Id(this.focus,n.__key,o,"text"),this._cachedNodes=null,this.dirty=!0}getTextContent(){const t=this.getNodes();if(t.length===0)return"";const r=t[0],n=t[t.length-1],o=this.anchor,i=this.focus,s=o.isBefore(i),[a,u]=n6(this);let l="",c=!0;for(let f=0;f=0;N--){const I=b[N];if(I.is(d)||We(I)&&I.isParentOf(d))break;I.isAttached()&&(!A.has(I)||I.is(S)?x||T.insertAfter(I,!1):I.remove())}if(!x){let N=_,I=null;for(;N!==null;){const R=N.getChildren(),D=R.length;(D===0||R[D-1].is(I))&&(y.delete(N.__key),I=N),N=N.getParent()}}if(d.isToken())if(c===h)d.select();else{const N=si(t);N.select(),d.replace(N)}else d=d.spliceText(c,h-c,t,!0),d.getTextContent()===""?d.remove():d.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=t.length);for(let N=1;N0&&(y!==v.getTextContentSize()&&([v]=v.splitText(y)),v.setFormat(E));for(let _=c+1;_(We(g)||eo(g))&&!g.isInline())){We(r)||ct(135);const g=N3(this);return r.splice(g,0,t),void n.selectEnd()}const o=function(g){const v=Bf();let y=null;for(let E=0;E"__value"in g&&"__checked"in g,u=!We(r)||!r.isEmpty()?this.insertParagraph():null,l=s[s.length-1];let c=s[0];var f;We(f=c)&&v0(f)&&!f.isEmpty()&&We(r)&&(!r.isEmpty()||a(r))&&(We(r)||ct(135),r.append(...c.getChildren()),c=s[1]),c&&function(g,v,y){const E=y||v.getParentOrThrow().getLastChild();let _=v;const S=[v];for(;_!==E;)_.getNextSibling()||ct(140),_=_.getNextSibling(),S.push(_);let b=g;for(const A of S)b=b.insertAfter(A)}(r,c);const d=w3(i,v0);u&&We(d)&&(a(u)||v0(l))&&(d.append(...u.getChildren()),u.remove()),We(r)&&r.isEmpty()&&r.remove(),i.selectEnd();const h=We(r)?r.getLastChild():null;Mh(h)&&d!==r&&h.remove()}insertParagraph(){if(this.anchor.key==="root"){const s=Bf();return ka().splice(this.anchor.offset,0,[s]),s.select(),s}const t=N3(this),r=w3(this.anchor.getNode(),v0);We(r)||ct(136);const n=r.getChildAtIndex(t),o=n?[n,...n.getNextSiblings()]:[],i=r.insertNewAfter(this,!1);return i?(i.append(...o),i.selectStart(),i):null}insertLineBreak(t){const r=Jg();if(this.insertNodes([r]),t){const n=r.getParentOrThrow(),o=r.getIndexWithinParent();n.select(o,o)}}extract(){const t=this.getNodes(),r=t.length,n=r-1,o=this.anchor,i=this.focus;let s=t[0],a=t[n];const[u,l]=JM(this);if(r===0)return[];if(r===1){if(gt(s)&&!this.isCollapsed()){const f=u>l?l:u,d=u>l?u:l,h=s.splitText(f,d),g=f===0?h[0]:h[1];return g!=null?[g]:[]}return[s]}const c=o.isBefore(i);if(gt(s)){const f=c?u:l;f===s.getTextContentSize()?t.shift():f!==0&&([,s]=s.splitText(f),t[0]=s)}if(gt(a)){const f=a.getTextContent().length,d=c?l:u;d===0?t.pop():d!==f&&([a]=a.splitText(d),t[n]=a)}return t}modify(t,r,n){const o=this.focus,i=this.anchor,s=t==="move",a=$M(o,r);if(eo(a)&&!a.isIsolated()){if(s&&a.isKeyboardSelectable()){const h=e6();return h.add(a.__key),void cc(h)}const d=r?a.getPreviousSibling():a.getNextSibling();if(gt(d)){const h=d.__key,g=r?d.getTextContent().length:0;return o.set(h,g,"text"),void(s&&i.set(h,g,"text"))}{const h=a.getParentOrThrow();let g,v;return We(d)?(v=d.__key,g=r?d.getChildrenSize():0):(g=a.getIndexWithinParent(),v=h.__key,r||g++),o.set(v,g,"element"),void(s&&i.set(v,g,"element"))}}const u=Bn(),l=fc(u._window);if(!l)return;const c=u._blockCursorElement,f=u._rootElement;if(f===null||c===null||!We(a)||a.isInline()||a.canBeEmpty()||cz(c,u,f),function(d,h,g,v){d.modify(h,g,v)}(l,t,r?"backward":"forward",n),l.rangeCount>0){const d=l.getRangeAt(0),h=this.anchor.getNode(),g=ma(h)?h:E0e(h);if(this.applyDOMRange(d),this.dirty=!0,!s){const v=this.getNodes(),y=[];let E=!1;for(let _=0;_0)if(r){const _=y[0];We(_)?_.selectStart():_.getParentOrThrow().selectStart()}else{const _=y[y.length-1];We(_)?_.selectEnd():_.getParentOrThrow().selectEnd()}l.anchorNode===d.startContainer&&l.anchorOffset===d.startOffset||function(_){const S=_.focus,b=_.anchor,A=b.key,x=b.offset,T=b.type;Id(b,S.key,S.offset,S.type),Id(S,A,x,T),_._cachedNodes=null}(this)}}}forwardDeletion(t,r,n){if(!n&&(t.type==="element"&&We(r)&&t.offset===r.getChildrenSize()||t.type==="text"&&t.offset===r.getTextContentSize())){const o=r.getParent(),i=r.getNextSibling()||(o===null?null:o.getNextSibling());if(We(i)&&i.isShadowRoot())return!0}return!1}deleteCharacter(t){const r=this.isCollapsed();if(this.isCollapsed()){const n=this.anchor;let o=n.getNode();if(this.forwardDeletion(n,o,t))return;const i=this.focus,s=$M(i,t);if(eo(s)&&!s.isIsolated()){if(s.isKeyboardSelectable()&&We(o)&&o.getChildrenSize()===0){o.remove();const a=e6();a.add(s.__key),cc(a)}else s.remove(),Bn().dispatchCommand(i5,void 0);return}if(!t&&We(s)&&We(o)&&o.isEmpty())return o.remove(),void s.selectStart();if(this.modify("extend",t,"character"),this.isCollapsed()){if(t&&n.offset===0&&(n.type==="element"?n.getNode():n.getNode().getParentOrThrow()).collapseAtStart(this))return}else{const a=i.type==="text"?i.getNode():null;if(o=n.type==="text"?n.getNode():null,a!==null&&a.isSegmented()){const u=i.offset,l=a.getTextContentSize();if(a.is(o)||t&&u!==l||!t&&u!==0)return void Kee(a,t,u)}else if(o!==null&&o.isSegmented()){const u=n.offset,l=o.getTextContentSize();if(o.is(a)||t&&u!==0||!t&&u!==l)return void Kee(o,t,u)}(function(u,l){const c=u.anchor,f=u.focus,d=c.getNode(),h=f.getNode();if(d===h&&c.type==="text"&&f.type==="text"){const g=c.offset,v=f.offset,y=gr||c){o.splice(l,1),c&&(a=void 0);break}}const u=o.join("").trim();u===""?n.remove():(n.setTextContent(u),n.select(a,a))}function Gee(e,t,r,n){let o,i=t;if(e.nodeType===AE){let s=!1;const a=e.childNodes,u=a.length;i===u&&(s=!0,i=u-1);let l=a[i],c=!1;if(l===n._blockCursorElement?(l=a[i+1],c=!0):n._blockCursorElement!==null&&i--,o=q0(l),gt(o))i=xee(o,s);else{let f=q0(e);if(f===null)return null;if(We(f)){let d=f.getChildAtIndex(i);if(We(d)&&function(h,g,v){const y=h.getParent();return v===null||y===null||!y.canBeEmpty()||y!==v.getNode()}(d,0,r)){const h=s?d.getLastDescendant():d.getFirstDescendant();h===null?(f=d,i=0):(d=h,f=We(d)?d:d.getParentOrThrow())}gt(d)?(o=d,f=null,i=xee(d,s)):d!==f&&s&&!c&&i++}else{const d=f.getIndexWithinParent();i=t===0&&eo(f)&&q0(e)===f?d:d+1,f=f.getParentOrThrow()}if(We(f))return cl(f.__key,i,"element")}}else o=q0(e);return gt(o)?cl(o.__key,i,"text"):null}function Vee(e,t,r){const n=e.offset,o=e.getNode();if(n===0){const i=o.getPreviousSibling(),s=o.getParent();if(t){if((r||!t)&&i===null&&We(s)&&s.isInline()){const a=s.getPreviousSibling();gt(a)&&(e.key=a.__key,e.offset=a.getTextContent().length)}}else We(i)&&!r&&i.isInline()?(e.key=i.__key,e.offset=i.getChildrenSize(),e.type="element"):gt(i)&&(e.key=i.__key,e.offset=i.getTextContent().length)}else if(n===o.getTextContent().length){const i=o.getNextSibling(),s=o.getParent();if(t&&We(i)&&i.isInline())e.key=i.__key,e.offset=0,e.type="element";else if((r||t)&&i===null&&We(s)&&s.isInline()&&!s.canInsertTextAfter()){const a=s.getNextSibling();gt(a)&&(e.key=a.__key,e.offset=0)}}}function H0e(e,t,r){if(e.type==="text"&&t.type==="text"){const n=e.isBefore(t),o=e.is(t);Vee(e,n,o),Vee(t,!n,o),o&&(t.key=e.key,t.offset=e.offset,t.type=e.type);const i=Bn();if(i.isComposing()&&i._compositionKey!==e.key&&Kt(r)){const s=r.anchor,a=r.focus;Id(e,s.key,s.offset,s.type),Id(t,a.key,a.offset,a.type)}}}function $0e(e,t,r,n,o,i){if(e===null||r===null||!TE(o,e,r))return null;const s=Gee(e,t,Kt(i)?i.anchor:null,o);if(s===null)return null;const a=Gee(r,n,Kt(i)?i.focus:null,o);if(a===null)return null;if(s.type==="element"&&a.type==="element"){const u=q0(e),l=q0(r);if(eo(u)&&eo(l))return null}return H0e(s,a,i),[s,a]}function Blt(e){return We(e)&&!e.isInline()}function P0e(e,t,r,n,o,i){const s=kc(),a=new F1(cl(e,t,o),cl(r,n,i),0,"");return a.dirty=!0,s._selection=a,a}function Mlt(){const e=cl("root",0,"element"),t=cl("root",0,"element");return new F1(e,t,0,"")}function e6(){return new g5(new Set)}function dz(e,t,r,n){const o=r._window;if(o===null)return null;const i=n||o.event,s=i?i.type:void 0,a=s==="selectionchange",u=!jM&&(a||s==="beforeinput"||s==="compositionstart"||s==="compositionend"||s==="click"&&i&&i.detail===3||s==="drop"||s===void 0);let l,c,f,d;if(Kt(e)&&!u)return e.clone();if(t===null)return null;if(l=t.anchorNode,c=t.focusNode,f=t.anchorOffset,d=t.focusOffset,a&&Kt(e)&&!TE(r,l,c))return e.clone();const h=$0e(l,f,c,d,r,e);if(h===null)return null;const[g,v]=h;return new F1(g,v,Kt(e)?e.format:0,Kt(e)?e.style:"")}function pn(){return kc()._selection}function Lv(){return Bn()._editorState._selection}function NT(e,t,r,n=1){const o=e.anchor,i=e.focus,s=o.getNode(),a=i.getNode();if(!t.is(s)&&!t.is(a))return;const u=t.__key;if(e.isCollapsed()){const l=o.offset;if(r<=l&&n>0||r0||r0||r=a,l=u?i.getChildAtIndex(a-1):i.getChildAtIndex(r);if(gt(l)){let c=0;u&&(c=l.getTextContentSize()),t.set(l.__key,c,"text"),n.set(l.__key,c,"text")}}else{if(We(i)){const a=i.getChildrenSize(),u=r>=a,l=u?i.getChildAtIndex(a-1):i.getChildAtIndex(r);if(gt(l)){let c=0;u&&(c=l.getTextContentSize()),t.set(l.__key,c,"text")}}if(We(s)){const a=s.getChildrenSize(),u=o>=a,l=u?s.getChildAtIndex(a-1):s.getChildAtIndex(o);if(gt(l)){let c=0;u&&(c=l.getTextContentSize()),n.set(l.__key,c,"text")}}}}function CT(e,t,r,n,o){let i=null,s=0,a=null;n!==null?(i=n.__key,gt(n)?(s=n.getTextContentSize(),a="text"):We(n)&&(s=n.getChildrenSize(),a="element")):o!==null&&(i=o.__key,gt(o)?a="text":We(o)&&(a="element")),i!==null&&a!==null?e.set(i,s,a):(s=t.getIndexWithinParent(),s===-1&&(s=r.getChildrenSize()),e.set(r.__key,s,"element"))}function Yee(e,t,r,n,o){e.type==="text"?(e.key=r,t||(e.offset+=o)):e.offset>n.getIndexWithinParent()&&(e.offset-=1)}function Llt(e,t,r,n,o,i,s){const a=n.anchorNode,u=n.focusNode,l=n.anchorOffset,c=n.focusOffset,f=document.activeElement;if(o.has("collaboration")&&f!==i||f!==null&&oz(f))return;if(!Kt(t))return void(e!==null&&TE(r,a,u)&&n.removeAllRanges());const d=t.anchor,h=t.focus,g=d.key,v=h.key,y=wT(r,g),E=wT(r,v),_=d.offset,S=h.offset,b=t.format,A=t.style,x=t.isCollapsed();let T=y,N=E,I=!1;if(d.type==="text"){T=ET(y);const z=d.getNode();I=z.getFormat()!==b||z.getStyle()!==A}else Kt(e)&&e.anchor.type==="text"&&(I=!0);var R,D,L,M,q;if(h.type==="text"&&(N=ET(E)),T!==null&&N!==null&&(x&&(e===null||I||Kt(e)&&(e.format!==b||e.style!==A))&&(R=b,D=A,L=_,M=g,q=performance.now(),O0e=[R,D,L,M,q]),l!==_||c!==S||a!==T||u!==N||n.type==="Range"&&x||(f!==null&&i.contains(f)||i.focus({preventScroll:!0}),d.type==="element"))){try{n.setBaseAndExtent(T,_,N,S)}catch{}if(!o.has("skip-scroll-into-view")&&t.isCollapsed()&&i!==null&&i===document.activeElement){const z=t instanceof F1&&t.anchor.type==="element"?T.childNodes[_]||null:n.rangeCount>0?n.getRangeAt(0):null;if(z!==null){let B;if(z instanceof Text){const P=document.createRange();P.selectNode(z),B=P.getBoundingClientRect()}else B=z.getBoundingClientRect();(function(P,K,U){const X=U.ownerDocument,J=X.defaultView;if(J===null)return;let{top:ee,bottom:se}=K,pe=0,_e=0,Te=U;for(;Te!==null;){const me=Te===X.body;if(me)pe=0,_e=c5(P).innerHeight;else{const ve=Te.getBoundingClientRect();pe=ve.top,_e=ve.bottom}let Ae=0;if(ee_e&&(Ae=se-_e),Ae!==0)if(me)J.scrollBy(0,Ae);else{const ve=Te.scrollTop;Te.scrollTop+=Ae;const we=Te.scrollTop-ve;ee-=we,se-=we}if(me)break;Te=l5(Te)}})(r,B,i)}}XM=!0}}function jlt(e){let t=pn()||Lv();t===null&&(t=ka().selectEnd()),t.insertNodes(e)}function zlt(){const e=pn();return e===null?"":e.getTextContent()}function N3(e){e.isCollapsed()||e.removeText();const t=e.anchor;let r=t.getNode(),n=t.offset;for(;!v0(r);)[r,n]=Hlt(r,n);return n}function Hlt(e,t){const r=e.getParent();if(!r){const o=Bf();return ka().append(o),o.select(),[ka(),0]}if(gt(e)){const o=e.splitText(t);if(o.length===0)return[r,e.getIndexWithinParent()];const i=t===0?0:1;return[r,o[0].getIndexWithinParent()+i]}if(!We(e)||t===0)return[r,e.getIndexWithinParent()];const n=e.getChildAtIndex(t);if(n){const o=new F1(cl(e.__key,t,"element"),cl(e.__key,t,"element"),0,""),i=e.insertNewAfter(o);i&&i.append(n,...n.getNextSiblings())}return[r,e.getIndexWithinParent()+1]}let Vo=null,Uo=null,Bs=!1,C3=!1,$k=0;const Xee={characterData:!0,childList:!0,subtree:!0};function jv(){return Bs||Vo!==null&&Vo._readOnly}function Zi(){Bs&&ct(13)}function q0e(){$k>99&&ct(14)}function kc(){return Vo===null&&ct(15),Vo}function Bn(){return Uo===null&&ct(16),Uo}function $lt(){return Uo}function Qee(e,t,r){const n=t.__type,o=function(a,u){const l=a._nodes.get(u);return l===void 0&&ct(30,u),l}(e,n);let i=r.get(n);i===void 0&&(i=Array.from(o.transforms),r.set(n,i));const s=i.length;for(let a=0;a{o=W0e(e,t,r)}),o}const n=sz(e);for(let o=4;o>=0;o--)for(let i=0;i0||L>0;){if(R>0){S._dirtyLeaves=new Set;for(const M of I){const q=x.get(M);gt(q)&&q.isAttached()&&q.isSimpleText()&&!q.isUnmergeable()&&kee(q),q!==void 0&&Zee(q,T)&&Qee(S,q,N),b.add(M)}if(I=S._dirtyLeaves,R=I.size,R>0){$k++;continue}}S._dirtyLeaves=new Set,S._dirtyElements=new Map;for(const M of D){const q=M[0],z=M[1];if(q!=="root"&&!z)continue;const B=x.get(q);B!==void 0&&Zee(B,T)&&Qee(S,B,N),A.set(q,z)}I=S._dirtyLeaves,R=I.size,D=S._dirtyElements,L=D.size,$k++}S._dirtyLeaves=b,S._dirtyElements=A}(l,e),ete(e),function(_,S,b,A){const x=_._nodeMap,T=S._nodeMap,N=[];for(const[I]of A){const R=T.get(I);R!==void 0&&(R.isAttached()||(We(R)&&w0e(R,I,x,T,N,A),x.has(I)||A.delete(I),N.push(I)))}for(const I of N)T.delete(I);for(const I of b){const R=T.get(I);R===void 0||R.isAttached()||(x.has(I)||b.delete(I),T.delete(I))}}(u,l,e._dirtyLeaves,e._dirtyElements)),y!==e._compositionKey&&(l._flushSync=!0);const E=l._selection;if(Kt(E)){const _=l._nodeMap,S=E.anchor.key,b=E.focus.key;_.get(S)!==void 0&&_.get(b)!==void 0||ct(19)}else NE(E)&&E._nodes.size===0&&(l._selection=null)}catch(y){return y instanceof Error&&e._onError(y),e._pendingEditorState=u,e._dirtyType=Zg,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void Lh(e)}finally{Vo=f,Bs=d,Uo=h,e._updating=g,$k=0}e._dirtyType!==Qh||function(y,E){const _=E.getEditorState()._selection,S=y._selection;if(S!==null){if(S.dirty||!S.is(_))return!0}else if(_!==null)return!0;return!1}(l,e)?l._flushSync?(l._flushSync=!1,Lh(e)):c&&clt(()=>{Lh(e)}):(l._flushSync=!1,c&&(n.clear(),e._deferred=[],e._pendingEditorState=null))}function ia(e,t,r){e._updating?e._updates.push([t,r]):K0e(e,t,r)}class G0e extends h5{constructor(t){super(t)}decorate(t,r){ct(47)}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function eo(e){return e instanceof G0e}class v5 extends h5{constructor(t){super(t),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__indent=0,this.__dir=null}getFormat(){return this.getLatest().__format}getFormatType(){const t=this.getFormat();return rlt[t]||""}getIndent(){return this.getLatest().__indent}getChildren(){const t=[];let r=this.getFirstChild();for(;r!==null;)t.push(r),r=r.getNextSibling();return t}getChildrenKeys(){const t=[];let r=this.getFirstChild();for(;r!==null;)t.push(r.__key),r=r.getNextSibling();return t}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0}isDirty(){const t=Bn()._dirtyElements;return t!==null&&t.has(this.__key)}isLastChild(){const t=this.getLatest(),r=this.getParentOrThrow().getLastChild();return r!==null&&r.is(t)}getAllTextNodes(){const t=[];let r=this.getFirstChild();for(;r!==null;){if(gt(r)&&t.push(r),We(r)){const n=r.getAllTextNodes();t.push(...n)}r=r.getNextSibling()}return t}getFirstDescendant(){let t=this.getFirstChild();for(;We(t);){const r=t.getFirstChild();if(r===null)break;t=r}return t}getLastDescendant(){let t=this.getLastChild();for(;We(t);){const r=t.getLastChild();if(r===null)break;t=r}return t}getDescendantByIndex(t){const r=this.getChildren(),n=r.length;if(t>=n){const i=r[n-1];return We(i)&&i.getLastDescendant()||i||null}const o=r[t];return We(o)&&o.getFirstDescendant()||o||null}getFirstChild(){const t=this.getLatest().__first;return t===null?null:Ii(t)}getFirstChildOrThrow(){const t=this.getFirstChild();return t===null&&ct(45,this.__key),t}getLastChild(){const t=this.getLatest().__last;return t===null?null:Ii(t)}getLastChildOrThrow(){const t=this.getLastChild();return t===null&&ct(96,this.__key),t}getChildAtIndex(t){const r=this.getChildrenSize();let n,o;if(t=t;){if(o===t)return n;n=n.getPreviousSibling(),o--}return null}getTextContent(){let t="";const r=this.getChildren(),n=r.length;for(let o=0;or.remove()),t}append(...t){return this.splice(this.getChildrenSize(),0,t)}setDirection(t){const r=this.getWritable();return r.__dir=t,r}setFormat(t){return this.getWritable().__format=t!==""?Eee[t]:0,this}setIndent(t){return this.getWritable().__indent=t,this}splice(t,r,n){const o=n.length,i=this.getChildrenSize(),s=this.getWritable(),a=s.__key,u=[],l=[],c=this.getChildAtIndex(t+r);let f=null,d=i-r+o;if(t!==0)if(t===i)f=this.getLastChild();else{const g=this.getChildAtIndex(t);g!==null&&(f=g.getPreviousSibling())}if(r>0){let g=f===null?this.getFirstChild():f.getNextSibling();for(let v=0;v({root:V0e(ka())}))}}class Hv extends v5{static getType(){return"paragraph"}static clone(t){return new Hv(t.__key)}createDOM(t){const r=document.createElement("p"),n=nb(t.theme,"paragraph");return n!==void 0&&r.classList.add(...n),r}updateDOM(t,r,n){return!1}static importDOM(){return{p:t=>({conversion:qlt,priority:0})}}exportDOM(t){const{element:r}=super.exportDOM(t);if(r&&f5(r)){this.isEmpty()&&r.append(document.createElement("br"));const n=this.getFormatType();r.style.textAlign=n;const o=this.getDirection();o&&(r.dir=o);const i=this.getIndent();i>0&&(r.style.textIndent=20*i+"px")}return{element:r}}static importJSON(t){const r=Bf();return r.setFormat(t.format),r.setIndent(t.indent),r.setDirection(t.direction),r}exportJSON(){return{...super.exportJSON(),type:"paragraph",version:1}}insertNewAfter(t,r){const n=Bf(),o=this.getDirection();return n.setDirection(o),this.insertAfter(n,r),n}collapseAtStart(){const t=this.getChildren();if(t.length===0||gt(t[0])&&t[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}}function qlt(e){const t=Bf();if(e.style){t.setFormat(e.style.textAlign);const r=parseInt(e.style.textIndent,10)/20;r>0&&t.setIndent(r)}return{node:t}}function Bf(){return IE(new Hv)}function Wlt(e){return e instanceof Hv}const Klt=0,Glt=1,Vlt=2,Ult=3,Ylt=4;function U0e(e,t,r,n){const o=e._keyToDOMMap;o.clear(),e._editorState=pz(),e._pendingEditorState=n,e._compositionKey=null,e._dirtyType=Qh,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),e._normalizedNodes=new Set,e._updateTags=new Set,e._updates=[],e._blockCursorElement=null;const i=e._observer;i!==null&&(i.disconnect(),e._observer=null),t!==null&&(t.textContent=""),r!==null&&(r.textContent="",o.set("root",r))}function Xlt(e){const t=e||{},r=$lt(),n=t.theme||{},o=e===void 0?r:t.parentEditor||null,i=t.disableEvents||!1,s=pz(),a=t.namespace||(o!==null?o._config.namespace:y0e()),u=t.editorState,l=[zv,mp,Bv,Mv,Hv,...t.nodes||[]],{onError:c,html:f}=t,d=t.editable===void 0||t.editable;let h;if(e===void 0&&r!==null)h=r._nodes;else{h=new Map;for(let v=0;v{Object.keys(b).forEach(A=>{let x=E.get(A);x===void 0&&(x=[],E.set(A,x)),x.push(b[A])})};return v.forEach(b=>{const A=b.klass.importDOM;if(A==null||_.has(A))return;_.add(A);const x=A.call(b.klass);x!==null&&S(x)}),y&&S(y),E}(h,f?f.import:void 0),d);return u!==void 0&&(g._pendingEditorState=u,g._dirtyType=Zg),g}class Qlt{constructor(t,r,n,o,i,s,a){this._parentEditor=r,this._rootElement=null,this._editorState=t,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=o,this._nodes=n,this._decorators={},this._pendingDecorators=null,this._dirtyType=Qh,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=y0e(),this._onError=i,this._htmlConversions=s,this._editable=a,this._headless=r!==null&&r._headless,this._window=null,this._blockCursorElement=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(t){const r=this._listeners.update;return r.add(t),()=>{r.delete(t)}}registerEditableListener(t){const r=this._listeners.editable;return r.add(t),()=>{r.delete(t)}}registerDecoratorListener(t){const r=this._listeners.decorator;return r.add(t),()=>{r.delete(t)}}registerTextContentListener(t){const r=this._listeners.textcontent;return r.add(t),()=>{r.delete(t)}}registerRootListener(t){const r=this._listeners.root;return t(this._rootElement,null),r.add(t),()=>{t(null,this._rootElement),r.delete(t)}}registerCommand(t,r,n){n===void 0&&ct(35);const o=this._commands;o.has(t)||o.set(t,[new Set,new Set,new Set,new Set,new Set]);const i=o.get(t);i===void 0&&ct(36,String(t));const s=i[n];return s.add(r),()=>{s.delete(r),i.every(a=>a.size===0)&&o.delete(t)}}registerMutationListener(t,r){this._nodes.get(t.getType())===void 0&&ct(37,t.name);const n=this._listeners.mutation;return n.set(r,t),()=>{n.delete(r)}}registerNodeTransformToKlass(t,r){const n=t.getType(),o=this._nodes.get(n);return o===void 0&&ct(37,t.name),o.transforms.add(r),o}registerNodeTransform(t,r){const n=this.registerNodeTransformToKlass(t,r),o=[n],i=n.replaceWithKlass;if(i!=null){const u=this.registerNodeTransformToKlass(i,r);o.push(u)}var s,a;return s=this,a=t.getType(),ia(s,()=>{const u=kc();if(u.isEmpty())return;if(a==="root")return void ka().markDirty();const l=u._nodeMap;for(const[,c]of l)c.markDirty()},s._pendingEditorState===null?{tag:"history-merge"}:void 0),()=>{o.forEach(u=>u.transforms.delete(r))}}hasNode(t){return this._nodes.has(t.getType())}hasNodes(t){return t.every(this.hasNode.bind(this))}dispatchCommand(t,r){return lt(this,t,r)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(t){const r=this._rootElement;if(t!==r){const n=nb(this._config.theme,"root"),o=this._pendingEditorState||this._editorState;if(this._rootElement=t,U0e(this,r,t,o),r!==null&&(this._config.disableEvents||Tlt(r),n!=null&&r.classList.remove(...n)),t!==null){const i=function(a){const u=a.ownerDocument;return u&&u.defaultView||null}(t),s=t.style;s.userSelect="text",s.whiteSpace="pre-wrap",s.wordBreak="break-word",t.setAttribute("data-lexical-editor","true"),this._window=i,this._dirtyType=Zg,f0e(this),this._updateTags.add("history-merge"),Lh(this),this._config.disableEvents||function(a,u){const l=a.ownerDocument,c=IT.get(l);c===void 0&&l.addEventListener("selectionchange",M0e),IT.set(l,c||1),a.__lexicalEditor=u;const f=B0e(a);for(let d=0;d{Lee(y)||(Mee(y),(u.isEditable()||h==="click")&&g(y,u))}:y=>{if(!Lee(y)&&(Mee(y),u.isEditable()))switch(h){case"cut":return lt(u,Uj,y);case"copy":return lt(u,Vj,y);case"paste":return lt(u,Wj,y);case"dragstart":return lt(u,Jpe,y);case"dragover":return lt(u,e0e,y);case"dragend":return lt(u,t0e,y);case"focus":return lt(u,r0e,y);case"blur":return lt(u,n0e,y);case"drop":return lt(u,Zpe,y)}};a.addEventListener(h,v),f.push(()=>{a.removeEventListener(h,v)})}}(t,this),n!=null&&t.classList.add(...n)}else this._editorState=o,this._pendingEditorState=null,this._window=null;sb("root",this,!1,t,r)}}getElementByKey(t){return this._keyToDOMMap.get(t)||null}getEditorState(){return this._editorState}setEditorState(t,r){t.isEmpty()&&ct(38),c0e(this);const n=this._pendingEditorState,o=this._updateTags,i=r!==void 0?r.tag:null;n===null||n.isEmpty()||(i!=null&&o.add(i),Lh(this)),this._pendingEditorState=t,this._dirtyType=Zg,this._dirtyElements.set("root",!1),this._compositionKey=null,i!=null&&o.add(i),Lh(this)}parseEditorState(t,r){return function(n,o,i){const s=pz(),a=Vo,u=Bs,l=Uo,c=o._dirtyElements,f=o._dirtyLeaves,d=o._cloneNotNeeded,h=o._dirtyType;o._dirtyElements=new Map,o._dirtyLeaves=new Set,o._cloneNotNeeded=new Set,o._dirtyType=0,Vo=s,Bs=!1,Uo=o;try{const g=o._nodes;hz(n.root,g),i&&i(),s._readOnly=!0}catch(g){g instanceof Error&&o._onError(g)}finally{o._dirtyElements=c,o._dirtyLeaves=f,o._cloneNotNeeded=d,o._dirtyType=h,Vo=a,Bs=u,Uo=l}return s}(typeof t=="string"?JSON.parse(t):t,this,r)}update(t,r){ia(this,t,r)}focus(t,r={}){const n=this._rootElement;n!==null&&(n.setAttribute("autocapitalize","off"),ia(this,()=>{const o=pn(),i=ka();o!==null?o.dirty=!0:i.getChildrenSize()!==0&&(r.defaultSelection==="rootStart"?i.selectStart():i.selectEnd())},{onUpdate:()=>{n.removeAttribute("autocapitalize"),t&&t()},tag:"focus"}),this._pendingEditorState===null&&n.removeAttribute("autocapitalize"))}blur(){const t=this._rootElement;t!==null&&t.blur();const r=fc(this._window);r!==null&&r.removeAllRanges()}isEditable(){return this._editable}setEditable(t){this._editable!==t&&(this._editable=t,sb("editable",this,!0,t))}toJSON(){return{editorState:this._editorState.toJSON()}}}const Zlt=Object.freeze(Object.defineProperty({__proto__:null,$addUpdateTag:mlt,$applyNodeReplacement:IE,$copyNode:S0e,$createLineBreakNode:Jg,$createNodeSelection:e6,$createParagraphNode:Bf,$createPoint:cl,$createRangeSelection:Mlt,$createTabNode:p5,$createTextNode:si,$getAdjacentNode:$M,$getCharacterOffsets:JM,$getEditor:Slt,$getNearestNodeFromDOMNode:xE,$getNearestRootOrShadowRoot:E0e,$getNodeByKey:Ii,$getPreviousSelection:Lv,$getRoot:ka,$getSelection:pn,$getTextContent:zlt,$hasAncestor:kT,$hasUpdateTag:vlt,$insertNodes:jlt,$isBlockElementNode:Blt,$isDecoratorNode:eo,$isElementNode:We,$isInlineElementOrDecoratorNode:ylt,$isLeafNode:dlt,$isLineBreakNode:Mh,$isNodeSelection:NE,$isParagraphNode:Wlt,$isRangeSelection:Kt,$isRootNode:ma,$isRootOrShadowRoot:b1,$isTabNode:z0e,$isTextNode:gt,$nodesOfType:glt,$normalizeSelection__EXPERIMENTAL:d0e,$parseSerializedNode:Plt,$selectAll:plt,$setCompositionKey:Go,$setSelection:cc,$splitNode:_lt,BLUR_COMMAND:n0e,CAN_REDO_COMMAND:Gut,CAN_UNDO_COMMAND:Vut,CLEAR_EDITOR_COMMAND:Wut,CLEAR_HISTORY_COMMAND:Kut,CLICK_COMMAND:zpe,COMMAND_PRIORITY_CRITICAL:Ylt,COMMAND_PRIORITY_EDITOR:Klt,COMMAND_PRIORITY_HIGH:Ult,COMMAND_PRIORITY_LOW:Glt,COMMAND_PRIORITY_NORMAL:Vlt,CONTROLLED_TEXT_INSERTION_COMMAND:dg,COPY_COMMAND:Vj,CUT_COMMAND:Uj,DELETE_CHARACTER_COMMAND:l_,DELETE_LINE_COMMAND:f_,DELETE_WORD_COMMAND:c_,DRAGEND_COMMAND:t0e,DRAGOVER_COMMAND:e0e,DRAGSTART_COMMAND:Jpe,DROP_COMMAND:Zpe,DecoratorNode:G0e,ElementNode:v5,FOCUS_COMMAND:r0e,FORMAT_ELEMENT_COMMAND:qut,FORMAT_TEXT_COMMAND:jd,INDENT_CONTENT_COMMAND:$ut,INSERT_LINE_BREAK_COMMAND:rb,INSERT_PARAGRAPH_COMMAND:BM,INSERT_TAB_COMMAND:Hut,KEY_ARROW_DOWN_COMMAND:Gpe,KEY_ARROW_LEFT_COMMAND:qpe,KEY_ARROW_RIGHT_COMMAND:$pe,KEY_ARROW_UP_COMMAND:Kpe,KEY_BACKSPACE_COMMAND:Upe,KEY_DELETE_COMMAND:Xpe,KEY_DOWN_COMMAND:Hpe,KEY_ENTER_COMMAND:vT,KEY_ESCAPE_COMMAND:Ype,KEY_MODIFIER_COMMAND:o0e,KEY_SPACE_COMMAND:Vpe,KEY_TAB_COMMAND:Qpe,LineBreakNode:Bv,MOVE_TO_END:Ppe,MOVE_TO_START:Wpe,OUTDENT_CONTENT_COMMAND:Put,PASTE_COMMAND:Wj,ParagraphNode:Hv,REDO_COMMAND:Gj,REMOVE_TEXT_COMMAND:MM,RootNode:zv,SELECTION_CHANGE_COMMAND:i5,SELECTION_INSERT_CLIPBOARD_NODES_COMMAND:zut,SELECT_ALL_COMMAND:LM,TabNode:Mv,TextNode:mp,UNDO_COMMAND:Kj,createCommand:jut,createEditor:Xlt,getNearestEditorFromDOMNode:iz,isCurrentlyReadOnlyMode:jv,isHTMLAnchorElement:Elt,isHTMLElement:f5,isSelectionCapturedInDecoratorInput:oz,isSelectionWithinEditor:TE},Symbol.toStringTag,{value:"Module"})),Ze=Zlt,CE=Ze.$applyNodeReplacement,Jlt=Ze.$copyNode,ect=Ze.$createNodeSelection,ya=Ze.$createParagraphNode,Y0e=Ze.$createRangeSelection,X0e=Ze.$createTabNode,Jh=Ze.$createTextNode,t6=Ze.$getAdjacentNode,tct=Ze.$getCharacterOffsets,p_=Ze.$getNearestNodeFromDOMNode,RE=Ze.$getNodeByKey,gz=Ze.$getPreviousSelection,cs=Ze.$getRoot,tr=Ze.$getSelection,rct=Ze.$hasAncestor,vz=Ze.$insertNodes,jh=Ze.$isDecoratorNode,Tr=Ze.$isElementNode,nct=Ze.$isLeafNode,oct=Ze.$isLineBreakNode,Ui=Ze.$isNodeSelection,ict=Ze.$isParagraphNode,cr=Ze.$isRangeSelection,y5=Ze.$isRootNode,S1=Ze.$isRootOrShadowRoot,sr=Ze.$isTextNode,sct=Ze.$normalizeSelection__EXPERIMENTAL,act=Ze.$parseSerializedNode,uct=Ze.$selectAll,$v=Ze.$setSelection,Q0e=Ze.$splitNode,qw=Ze.CAN_REDO_COMMAND,Ww=Ze.CAN_UNDO_COMMAND,lct=Ze.CLEAR_EDITOR_COMMAND,cct=Ze.CLEAR_HISTORY_COMMAND,Z0e=Ze.CLICK_COMMAND,fct=Ze.COMMAND_PRIORITY_CRITICAL,kr=Ze.COMMAND_PRIORITY_EDITOR,r6=Ze.COMMAND_PRIORITY_HIGH,Gu=Ze.COMMAND_PRIORITY_LOW,dct=Ze.CONTROLLED_TEXT_INSERTION_COMMAND,J0e=Ze.COPY_COMMAND,hct=Ze.CUT_COMMAND,R3=Ze.DELETE_CHARACTER_COMMAND,pct=Ze.DELETE_LINE_COMMAND,gct=Ze.DELETE_WORD_COMMAND,mz=Ze.DRAGOVER_COMMAND,yz=Ze.DRAGSTART_COMMAND,bz=Ze.DROP_COMMAND,vct=Ze.DecoratorNode,b5=Ze.ElementNode,mct=Ze.FORMAT_ELEMENT_COMMAND,yct=Ze.FORMAT_TEXT_COMMAND,bct=Ze.INDENT_CONTENT_COMMAND,rte=Ze.INSERT_LINE_BREAK_COMMAND,nte=Ze.INSERT_PARAGRAPH_COMMAND,_ct=Ze.INSERT_TAB_COMMAND,Ect=Ze.KEY_ARROW_DOWN_COMMAND,Sct=Ze.KEY_ARROW_LEFT_COMMAND,wct=Ze.KEY_ARROW_RIGHT_COMMAND,kct=Ze.KEY_ARROW_UP_COMMAND,ege=Ze.KEY_BACKSPACE_COMMAND,tge=Ze.KEY_DELETE_COMMAND,rge=Ze.KEY_ENTER_COMMAND,nge=Ze.KEY_ESCAPE_COMMAND,Act=Ze.LineBreakNode,ote=Ze.OUTDENT_CONTENT_COMMAND,Tct=Ze.PASTE_COMMAND,xct=Ze.ParagraphNode,Ict=Ze.REDO_COMMAND,Nct=Ze.REMOVE_TEXT_COMMAND,Cct=Ze.RootNode,Rct=Ze.SELECTION_CHANGE_COMMAND,Oct=Ze.SELECTION_INSERT_CLIPBOARD_NODES_COMMAND,Dct=Ze.SELECT_ALL_COMMAND,g_=Ze.TextNode,Fct=Ze.UNDO_COMMAND,OE=Ze.createCommand,Bct=Ze.createEditor,Mct=Ze.isHTMLAnchorElement,Lct=Ze.isHTMLElement,jct=Ze.isSelectionCapturedInDecoratorInput,zct=Ze.isSelectionWithinEditor,RT=new Map;function ite(e){let t=e;for(;t!=null;){if(t.nodeType===Node.TEXT_NODE)return t;t=t.firstChild}return null}function ste(e){const t=e.parentNode;if(t==null)throw new Error("Should never happen");return[t,Array.from(t.childNodes).indexOf(e)]}function Hct(e,t,r,n,o){const i=t.getKey(),s=n.getKey(),a=document.createRange();let u=e.getElementByKey(i),l=e.getElementByKey(s),c=r,f=o;if(sr(t)&&(u=ite(u)),sr(n)&&(l=ite(l)),t===void 0||n===void 0||u===null||l===null)return null;u.nodeName==="BR"&&([u,c]=ste(u)),l.nodeName==="BR"&&([l,f]=ste(l));const d=u.firstChild;u===l&&d!=null&&d.nodeName==="BR"&&c===0&&f===0&&(f=1);try{a.setStart(u,c),a.setEnd(l,f)}catch{return null}return!a.collapsed||c===f&&i===s||(a.setStart(l,f),a.setEnd(u,c)),a}function $ct(e,t){const r=e.getRootElement();if(r===null)return[];const n=r.getBoundingClientRect(),o=getComputedStyle(r),i=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),s=Array.from(t.getClientRects());let a,u=s.length;s.sort((l,c)=>{const f=l.top-c.top;return Math.abs(f)<=3?l.left-c.left:f});for(let l=0;lc.top&&a.left+a.width>c.left,d=c.width+i===n.width;f||d?(s.splice(l--,1),u--):a=c}return s}function oge(e){const t={},r=e.split(";");for(const n of r)if(n!==""){const[o,i]=n.split(/:([^]+)/);o&&i&&(t[o.trim()]=i.trim())}return t}function _5(e){let t=RT.get(e);return t===void 0&&(t=oge(e),RT.set(e,t)),t}function Pct(e){const t=e.constructor.clone(e);return t.__parent=e.__parent,t.__next=e.__next,t.__prev=e.__prev,Tr(e)&&Tr(t)?(n=e,(r=t).__first=n.__first,r.__last=n.__last,r.__size=n.__size,r.__format=n.__format,r.__indent=n.__indent,r.__dir=n.__dir,r):sr(e)&&sr(t)?function(o,i){return o.__format=i.__format,o.__style=i.__style,o.__mode=i.__mode,o.__detail=i.__detail,o}(t,e):t;var r,n}function qct(e,t){const r=e.getStartEndPoints();if(t.isSelected(e)&&!t.isSegmented()&&!t.isToken()&&r!==null){const[n,o]=r,i=e.isBackward(),s=n.getNode(),a=o.getNode(),u=t.is(s),l=t.is(a);if(u||l){const[c,f]=tct(e),d=s.is(a),h=t.is(i?a:s),g=t.is(i?s:a);let v,y=0;return d?(y=c>f?f:c,v=c>f?c:f):h?(y=i?f:c,v=void 0):g&&(y=0,v=i?c:f),t.__text=t.__text.slice(y,v),t}}return t}function Wct(e){if(e.type==="text")return e.offset===e.getNode().getTextContentSize();const t=e.getNode();if(!Tr(t))throw Error("isAtNodeEnd: node must be a TextNode or ElementNode");return e.offset===t.getChildrenSize()}function Kct(e,t,r){let n=t.getNode(),o=r;if(Tr(n)){const i=n.getDescendantByIndex(t.offset);i!==null&&(n=i)}for(;o>0&&n!==null;){if(Tr(n)){const l=n.getLastDescendant();l!==null&&(n=l)}let i=n.getPreviousSibling(),s=0;if(i===null){let l=n.getParentOrThrow(),c=l.getPreviousSibling();for(;c===null;){if(l=l.getParent(),l===null){i=null;break}c=l.getPreviousSibling()}l!==null&&(s=l.isInline()?0:2,i=c)}let a=n.getTextContent();a===""&&Tr(n)&&!n.isInline()&&(a=` +`?n.push(tv()):s===" "?n.push(y5()):n.push(si(s))}this.insertNodes(n)}insertText(t){const r=this.anchor,n=this.focus,o=this.isCollapsed()||r.isBefore(n),i=this.format,s=this.style;o&&r.type==="element"?Qee(r,n,i,s):o||n.type!=="element"||Qee(n,r,i,s);const a=this.getNodes(),u=a.length,l=o?n:r,c=(o?r:n).offset,f=l.offset;let d=a[0];vt(d)||ft(26);const h=d.getTextContent().length,g=d.getParentOrThrow();let v=a[u-1];if(this.isCollapsed()&&c===h&&(d.isSegmented()||d.isToken()||!d.canInsertTextAfter()||!g.canInsertTextAfter()&&d.getNextSibling()===null)){let y=d.getNextSibling();if(vt(y)&&y.canInsertTextBefore()&&!qM(y)||(y=si(),y.setFormat(i),g.canInsertTextAfter()?d.insertAfter(y):g.insertAfter(y)),y.select(0,0),d=y,t!=="")return void this.insertText(t)}else if(this.isCollapsed()&&c===0&&(d.isSegmented()||d.isToken()||!d.canInsertTextBefore()||!g.canInsertTextBefore()&&d.getPreviousSibling()===null)){let y=d.getPreviousSibling();if(vt(y)&&!qM(y)||(y=si(),y.setFormat(i),g.canInsertTextBefore()?d.insertBefore(y):g.insertBefore(y)),y.select(),d=y,t!=="")return void this.insertText(t)}else if(d.isSegmented()&&c!==h){const y=si(d.getTextContent());y.setFormat(i),d.replace(y),d=y}else if(!this.isCollapsed()&&t!==""){const y=v.getParent();if(!g.canInsertTextBefore()||!g.canInsertTextAfter()||We(y)&&(!y.canInsertTextBefore()||!y.canInsertTextAfter()))return this.insertText(""),K0e(this.anchor,this.focus,null),void this.insertText(t)}if(u===1){if(d.isToken()){const S=si(t);return S.select(),void d.replace(S)}const y=d.getFormat(),E=d.getStyle();if(c!==f||y===i&&E===s){if(W0e(d)){const S=si(t);return S.setFormat(i),S.setStyle(s),S.select(),void d.replace(S)}}else{if(d.getTextContent()!==""){const S=si(t);if(S.setFormat(i),S.setStyle(s),S.select(),c===0)d.insertBefore(S,!1);else{const[b]=d.splitText(c);b.insertAfter(S,!1)}return void(S.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=t.length))}d.setFormat(i),d.setStyle(s)}const _=f-c;d=d.spliceText(c,_,t,!0),d.getTextContent()===""?d.remove():this.anchor.type==="text"&&(d.isComposing()?this.anchor.offset-=t.length:(this.format=y,this.style=E))}else{const y=new Set([...d.getParentKeys(),...v.getParentKeys()]),E=We(d)?d:d.getParentOrThrow();let _=We(v)?v:v.getParentOrThrow(),S=v;if(!E.is(_)&&_.isInline())do S=_,_=_.getParentOrThrow();while(_.isInline());if(l.type==="text"&&(f!==0||v.getTextContent()==="")||l.type==="element"&&v.getIndexWithinParent()=0;C--){const I=b[C];if(I.is(d)||We(I)&&I.isParentOf(d))break;I.isAttached()&&(!A.has(I)||I.is(S)?T||x.insertAfter(I,!1):I.remove())}if(!T){let C=_,I=null;for(;C!==null;){const R=C.getChildren(),D=R.length;(D===0||R[D-1].is(I))&&(y.delete(C.__key),I=C),C=C.getParent()}}if(d.isToken())if(c===h)d.select();else{const C=si(t);C.select(),d.replace(C)}else d=d.spliceText(c,h-c,t,!0),d.getTextContent()===""?d.remove():d.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=t.length);for(let C=1;C0&&(y!==v.getTextContentSize()&&([v]=v.splitText(y)),v.setFormat(E));for(let _=c+1;_(We(g)||Jn(g))&&!g.isInline())){We(r)||ft(135);const g=D3(this);return r.splice(g,0,t),void n.selectEnd()}const o=function(g){const v=Mf();let y=null;for(let E=0;E"__value"in g&&"__checked"in g,u=!We(r)||!r.isEmpty()?this.insertParagraph():null,l=s[s.length-1];let c=s[0];var f;We(f=c)&&m0(f)&&!f.isEmpty()&&We(r)&&(!r.isEmpty()||a(r))&&(We(r)||ft(135),r.append(...c.getChildren()),c=s[1]),c&&function(g,v,y){const E=y||v.getParentOrThrow().getLastChild();let _=v;const S=[v];for(;_!==E;)_.getNextSibling()||ft(140),_=_.getNextSibling(),S.push(_);let b=g;for(const A of S)b=b.insertAfter(A)}(r,c);const d=T3(i,m0);u&&We(d)&&(a(u)||m0(l))&&(d.append(...u.getChildren()),u.remove()),We(r)&&r.isEmpty()&&r.remove(),i.selectEnd();const h=We(r)?r.getLastChild():null;Bh(h)&&d!==r&&h.remove()}insertParagraph(){if(this.anchor.key==="root"){const s=Mf();return Aa().splice(this.anchor.offset,0,[s]),s.select(),s}const t=D3(this),r=T3(this.anchor.getNode(),m0);We(r)||ft(136);const n=r.getChildAtIndex(t),o=n?[n,...n.getNextSiblings()]:[],i=r.insertNewAfter(this,!1);return i?(i.append(...o),i.selectStart(),i):null}insertLineBreak(t){const r=tv();if(this.insertNodes([r]),t){const n=r.getParentOrThrow(),o=r.getIndexWithinParent();n.select(o,o)}}extract(){const t=this.getNodes(),r=t.length,n=r-1,o=this.anchor,i=this.focus;let s=t[0],a=t[n];const[u,l]=n6(this);if(r===0)return[];if(r===1){if(vt(s)&&!this.isCollapsed()){const f=u>l?l:u,d=u>l?u:l,h=s.splitText(f,d),g=f===0?h[0]:h[1];return g!=null?[g]:[]}return[s]}const c=o.isBefore(i);if(vt(s)){const f=c?u:l;f===s.getTextContentSize()?t.shift():f!==0&&([,s]=s.splitText(f),t[0]=s)}if(vt(a)){const f=a.getTextContent().length,d=c?l:u;d===0?t.pop():d!==f&&([a]=a.splitText(d),t[n]=a)}return t}modify(t,r,n){const o=this.focus,i=this.anchor,s=t==="move",a=KM(o,r);if(Jn(a)&&!a.isIsolated()){if(s&&a.isKeyboardSelectable()){const h=o6();return h.add(a.__key),void hc(h)}const d=r?a.getPreviousSibling():a.getNextSibling();if(vt(d)){const h=d.__key,g=r?d.getTextContent().length:0;return o.set(h,g,"text"),void(s&&i.set(h,g,"text"))}{const h=a.getParentOrThrow();let g,v;return We(d)?(v=d.__key,g=r?d.getChildrenSize():0):(g=a.getIndexWithinParent(),v=h.__key,r||g++),o.set(v,g,"element"),void(s&&i.set(v,g,"element"))}}const u=Fn(),l=pc(u._window);if(!l)return;const c=u._blockCursorElement,f=u._rootElement;if(f===null||c===null||!We(a)||a.isInline()||a.canBeEmpty()||mz(c,u,f),function(d,h,g,v){d.modify(h,g,v)}(l,t,r?"backward":"forward",n),l.rangeCount>0){const d=l.getRangeAt(0),h=this.anchor.getNode(),g=ma(h)?h:x0e(h);if(this.applyDOMRange(d),this.dirty=!0,!s){const v=this.getNodes(),y=[];let E=!1;for(let _=0;_0)if(r){const _=y[0];We(_)?_.selectStart():_.getParentOrThrow().selectStart()}else{const _=y[y.length-1];We(_)?_.selectEnd():_.getParentOrThrow().selectEnd()}l.anchorNode===d.startContainer&&l.anchorOffset===d.startOffset||function(_){const S=_.focus,b=_.anchor,A=b.key,T=b.offset,x=b.type;Id(b,S.key,S.offset,S.type),Id(S,A,T,x),_._cachedNodes=null}(this)}}}forwardDeletion(t,r,n){if(!n&&(t.type==="element"&&We(r)&&t.offset===r.getChildrenSize()||t.type==="text"&&t.offset===r.getTextContentSize())){const o=r.getParent(),i=r.getNextSibling()||(o===null?null:o.getNextSibling());if(We(i)&&i.isShadowRoot())return!0}return!1}deleteCharacter(t){const r=this.isCollapsed();if(this.isCollapsed()){const n=this.anchor;let o=n.getNode();if(this.forwardDeletion(n,o,t))return;const i=this.focus,s=KM(i,t);if(Jn(s)&&!s.isIsolated()){if(s.isKeyboardSelectable()&&We(o)&&o.getChildrenSize()===0){o.remove();const a=o6();a.add(s.__key),hc(a)}else s.remove(),Fn().dispatchCommand(l5,void 0);return}if(!t&&We(s)&&We(o)&&o.isEmpty())return o.remove(),void s.selectStart();if(this.modify("extend",t,"character"),this.isCollapsed()){if(t&&n.offset===0&&(n.type==="element"?n.getNode():n.getNode().getParentOrThrow()).collapseAtStart(this))return}else{const a=i.type==="text"?i.getNode():null;if(o=n.type==="text"?n.getNode():null,a!==null&&a.isSegmented()){const u=i.offset,l=a.getTextContentSize();if(a.is(o)||t&&u!==l||!t&&u!==0)return void Jee(a,t,u)}else if(o!==null&&o.isSegmented()){const u=n.offset,l=o.getTextContentSize();if(o.is(a)||t&&u!==0||!t&&u!==l)return void Jee(o,t,u)}(function(u,l){const c=u.anchor,f=u.focus,d=c.getNode(),h=f.getNode();if(d===h&&c.type==="text"&&f.type==="text"){const g=c.offset,v=f.offset,y=gr||c){o.splice(l,1),c&&(a=void 0);break}}const u=o.join("").trim();u===""?n.remove():(n.setTextContent(u),n.select(a,a))}function ete(e,t,r,n){let o,i=t;if(e.nodeType===IE){let s=!1;const a=e.childNodes,u=a.length;i===u&&(s=!0,i=u-1);let l=a[i],c=!1;if(l===n._blockCursorElement?(l=a[i+1],c=!0):n._blockCursorElement!==null&&i--,o=W0(l),vt(o))i=Bee(o,s);else{let f=W0(e);if(f===null)return null;if(We(f)){let d=f.getChildAtIndex(i);if(We(d)&&function(h,g,v){const y=h.getParent();return v===null||y===null||!y.canBeEmpty()||y!==v.getNode()}(d,0,r)){const h=s?d.getLastDescendant():d.getFirstDescendant();h===null?(f=d,i=0):(d=h,f=We(d)?d:d.getParentOrThrow())}vt(d)?(o=d,f=null,i=Bee(d,s)):d!==f&&s&&!c&&i++}else{const d=f.getIndexWithinParent();i=t===0&&Jn(f)&&W0(e)===f?d:d+1,f=f.getParentOrThrow()}if(We(f))return fl(f.__key,i,"element")}}else o=W0(e);return vt(o)?fl(o.__key,i,"text"):null}function tte(e,t,r){const n=e.offset,o=e.getNode();if(n===0){const i=o.getPreviousSibling(),s=o.getParent();if(t){if((r||!t)&&i===null&&We(s)&&s.isInline()){const a=s.getPreviousSibling();vt(a)&&(e.key=a.__key,e.offset=a.getTextContent().length)}}else We(i)&&!r&&i.isInline()?(e.key=i.__key,e.offset=i.getChildrenSize(),e.type="element"):vt(i)&&(e.key=i.__key,e.offset=i.getTextContent().length)}else if(n===o.getTextContent().length){const i=o.getNextSibling(),s=o.getParent();if(t&&We(i)&&i.isInline())e.key=i.__key,e.offset=0,e.type="element";else if((r||t)&&i===null&&We(s)&&s.isInline()&&!s.canInsertTextAfter()){const a=s.getNextSibling();vt(a)&&(e.key=a.__key,e.offset=0)}}}function K0e(e,t,r){if(e.type==="text"&&t.type==="text"){const n=e.isBefore(t),o=e.is(t);tte(e,n,o),tte(t,!n,o),o&&(t.key=e.key,t.offset=e.offset,t.type=e.type);const i=Fn();if(i.isComposing()&&i._compositionKey!==e.key&&Vt(r)){const s=r.anchor,a=r.focus;Id(e,s.key,s.offset,s.type),Id(t,a.key,a.offset,a.type)}}}function G0e(e,t,r,n,o,i){if(e===null||r===null||!CE(o,e,r))return null;const s=ete(e,t,Vt(i)?i.anchor:null,o);if(s===null)return null;const a=ete(r,n,Vt(i)?i.focus:null,o);if(a===null)return null;if(s.type==="element"&&a.type==="element"){const u=W0(e),l=W0(r);if(Jn(u)&&Jn(l))return null}return K0e(s,a,i),[s,a]}function Klt(e){return We(e)&&!e.isInline()}function V0e(e,t,r,n,o,i){const s=Tc(),a=new D1(fl(e,t,o),fl(r,n,i),0,"");return a.dirty=!0,s._selection=a,a}function Glt(){const e=fl("root",0,"element"),t=fl("root",0,"element");return new D1(e,t,0,"")}function o6(){return new b5(new Set)}function bz(e,t,r,n){const o=r._window;if(o===null)return null;const i=n||o.event,s=i?i.type:void 0,a=s==="selectionchange",u=!PM&&(a||s==="beforeinput"||s==="compositionstart"||s==="compositionend"||s==="click"&&i&&i.detail===3||s==="drop"||s===void 0);let l,c,f,d;if(Vt(e)&&!u)return e.clone();if(t===null)return null;if(l=t.anchorNode,c=t.focusNode,f=t.anchorOffset,d=t.focusOffset,a&&Vt(e)&&!CE(r,l,c))return e.clone();const h=G0e(l,f,c,d,r,e);if(h===null)return null;const[g,v]=h;return new D1(g,v,Vt(e)?e.format:0,Vt(e)?e.style:"")}function hn(){return Tc()._selection}function Hv(){return Fn()._editorState._selection}function Fx(e,t,r,n=1){const o=e.anchor,i=e.focus,s=o.getNode(),a=i.getNode();if(!t.is(s)&&!t.is(a))return;const u=t.__key;if(e.isCollapsed()){const l=o.offset;if(r<=l&&n>0||r0||r0||r=a,l=u?i.getChildAtIndex(a-1):i.getChildAtIndex(r);if(vt(l)){let c=0;u&&(c=l.getTextContentSize()),t.set(l.__key,c,"text"),n.set(l.__key,c,"text")}}else{if(We(i)){const a=i.getChildrenSize(),u=r>=a,l=u?i.getChildAtIndex(a-1):i.getChildAtIndex(r);if(vt(l)){let c=0;u&&(c=l.getTextContentSize()),t.set(l.__key,c,"text")}}if(We(s)){const a=s.getChildrenSize(),u=o>=a,l=u?s.getChildAtIndex(a-1):s.getChildAtIndex(o);if(vt(l)){let c=0;u&&(c=l.getTextContentSize()),n.set(l.__key,c,"text")}}}}function Bx(e,t,r,n,o){let i=null,s=0,a=null;n!==null?(i=n.__key,vt(n)?(s=n.getTextContentSize(),a="text"):We(n)&&(s=n.getChildrenSize(),a="element")):o!==null&&(i=o.__key,vt(o)?a="text":We(o)&&(a="element")),i!==null&&a!==null?e.set(i,s,a):(s=t.getIndexWithinParent(),s===-1&&(s=r.getChildrenSize()),e.set(r.__key,s,"element"))}function nte(e,t,r,n,o){e.type==="text"?(e.key=r,t||(e.offset+=o)):e.offset>n.getIndexWithinParent()&&(e.offset-=1)}function Vlt(e,t,r,n,o,i,s){const a=n.anchorNode,u=n.focusNode,l=n.anchorOffset,c=n.focusOffset,f=document.activeElement;if(o.has("collaboration")&&f!==i||f!==null&&fz(f))return;if(!Vt(t))return void(e!==null&&CE(r,a,u)&&n.removeAllRanges());const d=t.anchor,h=t.focus,g=d.key,v=h.key,y=Ix(r,g),E=Ix(r,v),_=d.offset,S=h.offset,b=t.format,A=t.style,T=t.isCollapsed();let x=y,C=E,I=!1;if(d.type==="text"){x=xx(y);const z=d.getNode();I=z.getFormat()!==b||z.getStyle()!==A}else Vt(e)&&e.anchor.type==="text"&&(I=!0);var R,D,L,M,q;if(h.type==="text"&&(C=xx(E)),x!==null&&C!==null&&(T&&(e===null||I||Vt(e)&&(e.format!==b||e.style!==A))&&(R=b,D=A,L=_,M=g,q=performance.now(),L0e=[R,D,L,M,q]),l!==_||c!==S||a!==x||u!==C||n.type==="Range"&&T||(f!==null&&i.contains(f)||i.focus({preventScroll:!0}),d.type==="element"))){try{n.setBaseAndExtent(x,_,C,S)}catch{}if(!o.has("skip-scroll-into-view")&&t.isCollapsed()&&i!==null&&i===document.activeElement){const z=t instanceof D1&&t.anchor.type==="element"?x.childNodes[_]||null:n.rangeCount>0?n.getRangeAt(0):null;if(z!==null){let F;if(z instanceof Text){const $=document.createRange();$.selectNode(z),F=$.getBoundingClientRect()}else F=z.getBoundingClientRect();(function($,K,U){const X=U.ownerDocument,J=X.defaultView;if(J===null)return;let{top:ee,bottom:fe}=K,ge=0,Se=0,Ee=U;for(;Ee!==null;){const ve=Ee===X.body;if(ve)ge=0,Se=p5($).innerHeight;else{const me=Ee.getBoundingClientRect();ge=me.top,Se=me.bottom}let we=0;if(eeSe&&(we=fe-Se),we!==0)if(ve)J.scrollBy(0,we);else{const me=Ee.scrollTop;Ee.scrollTop+=we;const xe=Ee.scrollTop-me;ee-=xe,fe-=xe}if(ve)break;Ee=h5(Ee)}})(r,F,i)}}e6=!0}}function Ult(e){let t=hn()||Hv();t===null&&(t=Aa().selectEnd()),t.insertNodes(e)}function Ylt(){const e=hn();return e===null?"":e.getTextContent()}function D3(e){e.isCollapsed()||e.removeText();const t=e.anchor;let r=t.getNode(),n=t.offset;for(;!m0(r);)[r,n]=Xlt(r,n);return n}function Xlt(e,t){const r=e.getParent();if(!r){const o=Mf();return Aa().append(o),o.select(),[Aa(),0]}if(vt(e)){const o=e.splitText(t);if(o.length===0)return[r,e.getIndexWithinParent()];const i=t===0?0:1;return[r,o[0].getIndexWithinParent()+i]}if(!We(e)||t===0)return[r,e.getIndexWithinParent()];const n=e.getChildAtIndex(t);if(n){const o=new D1(fl(e.__key,t,"element"),fl(e.__key,t,"element"),0,""),i=e.insertNewAfter(o);i&&i.append(n,...n.getNextSiblings())}return[r,e.getIndexWithinParent()+1]}let Vo=null,Uo=null,Ms=!1,F3=!1,KA=0;const ote={characterData:!0,childList:!0,subtree:!0};function $v(){return Ms||Vo!==null&&Vo._readOnly}function Zi(){Ms&&ft(13)}function U0e(){KA>99&&ft(14)}function Tc(){return Vo===null&&ft(15),Vo}function Fn(){return Uo===null&&ft(16),Uo}function Qlt(){return Uo}function ite(e,t,r){const n=t.__type,o=function(a,u){const l=a._nodes.get(u);return l===void 0&&ft(30,u),l}(e,n);let i=r.get(n);i===void 0&&(i=Array.from(o.transforms),r.set(n,i));const s=i.length;for(let a=0;a{o=Y0e(e,t,r)}),o}const n=hz(e);for(let o=4;o>=0;o--)for(let i=0;i0||L>0;){if(R>0){S._dirtyLeaves=new Set;for(const M of I){const q=T.get(M);vt(q)&&q.isAttached()&&q.isSimpleText()&&!q.isUnmergeable()&&Oee(q),q!==void 0&&ste(q,x)&&ite(S,q,C),b.add(M)}if(I=S._dirtyLeaves,R=I.size,R>0){KA++;continue}}S._dirtyLeaves=new Set,S._dirtyElements=new Map;for(const M of D){const q=M[0],z=M[1];if(q!=="root"&&!z)continue;const F=T.get(q);F!==void 0&&ste(F,x)&&ite(S,F,C),A.set(q,z)}I=S._dirtyLeaves,R=I.size,D=S._dirtyElements,L=D.size,KA++}S._dirtyLeaves=b,S._dirtyElements=A}(l,e),ute(e),function(_,S,b,A){const T=_._nodeMap,x=S._nodeMap,C=[];for(const[I]of A){const R=x.get(I);R!==void 0&&(R.isAttached()||(We(R)&&I0e(R,I,T,x,C,A),T.has(I)||A.delete(I),C.push(I)))}for(const I of C)x.delete(I);for(const I of b){const R=x.get(I);R===void 0||R.isAttached()||(T.has(I)||b.delete(I),x.delete(I))}}(u,l,e._dirtyLeaves,e._dirtyElements)),y!==e._compositionKey&&(l._flushSync=!0);const E=l._selection;if(Vt(E)){const _=l._nodeMap,S=E.anchor.key,b=E.focus.key;_.get(S)!==void 0&&_.get(b)!==void 0||ft(19)}else OE(E)&&E._nodes.size===0&&(l._selection=null)}catch(y){return y instanceof Error&&e._onError(y),e._pendingEditorState=u,e._dirtyType=ev,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void Mh(e)}finally{Vo=f,Ms=d,Uo=h,e._updating=g,KA=0}e._dirtyType!==Xh||function(y,E){const _=E.getEditorState()._selection,S=y._selection;if(S!==null){if(S.dirty||!S.is(_))return!0}else if(_!==null)return!0;return!1}(l,e)?l._flushSync?(l._flushSync=!1,Mh(e)):c&&_lt(()=>{Mh(e)}):(l._flushSync=!1,c&&(n.clear(),e._deferred=[],e._pendingEditorState=null))}function sa(e,t,r){e._updating?e._updates.push([t,r]):X0e(e,t,r)}class Q0e extends m5{constructor(t){super(t)}decorate(t,r){ft(47)}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Jn(e){return e instanceof Q0e}class _5 extends m5{constructor(t){super(t),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__indent=0,this.__dir=null}getFormat(){return this.getLatest().__format}getFormatType(){const t=this.getFormat();return dlt[t]||""}getIndent(){return this.getLatest().__indent}getChildren(){const t=[];let r=this.getFirstChild();for(;r!==null;)t.push(r),r=r.getNextSibling();return t}getChildrenKeys(){const t=[];let r=this.getFirstChild();for(;r!==null;)t.push(r.__key),r=r.getNextSibling();return t}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0}isDirty(){const t=Fn()._dirtyElements;return t!==null&&t.has(this.__key)}isLastChild(){const t=this.getLatest(),r=this.getParentOrThrow().getLastChild();return r!==null&&r.is(t)}getAllTextNodes(){const t=[];let r=this.getFirstChild();for(;r!==null;){if(vt(r)&&t.push(r),We(r)){const n=r.getAllTextNodes();t.push(...n)}r=r.getNextSibling()}return t}getFirstDescendant(){let t=this.getFirstChild();for(;We(t);){const r=t.getFirstChild();if(r===null)break;t=r}return t}getLastDescendant(){let t=this.getLastChild();for(;We(t);){const r=t.getLastChild();if(r===null)break;t=r}return t}getDescendantByIndex(t){const r=this.getChildren(),n=r.length;if(t>=n){const i=r[n-1];return We(i)&&i.getLastDescendant()||i||null}const o=r[t];return We(o)&&o.getFirstDescendant()||o||null}getFirstChild(){const t=this.getLatest().__first;return t===null?null:Ci(t)}getFirstChildOrThrow(){const t=this.getFirstChild();return t===null&&ft(45,this.__key),t}getLastChild(){const t=this.getLatest().__last;return t===null?null:Ci(t)}getLastChildOrThrow(){const t=this.getLastChild();return t===null&&ft(96,this.__key),t}getChildAtIndex(t){const r=this.getChildrenSize();let n,o;if(t=t;){if(o===t)return n;n=n.getPreviousSibling(),o--}return null}getTextContent(){let t="";const r=this.getChildren(),n=r.length;for(let o=0;or.remove()),t}append(...t){return this.splice(this.getChildrenSize(),0,t)}setDirection(t){const r=this.getWritable();return r.__dir=t,r}setFormat(t){return this.getWritable().__format=t!==""?Cee[t]:0,this}setIndent(t){return this.getWritable().__indent=t,this}splice(t,r,n){const o=n.length,i=this.getChildrenSize(),s=this.getWritable(),a=s.__key,u=[],l=[],c=this.getChildAtIndex(t+r);let f=null,d=i-r+o;if(t!==0)if(t===i)f=this.getLastChild();else{const g=this.getChildAtIndex(t);g!==null&&(f=g.getPreviousSibling())}if(r>0){let g=f===null?this.getFirstChild():f.getNextSibling();for(let v=0;v({root:Z0e(Aa())}))}}class qv extends _5{static getType(){return"paragraph"}static clone(t){return new qv(t.__key)}createDOM(t){const r=document.createElement("p"),n=ib(t.theme,"paragraph");return n!==void 0&&r.classList.add(...n),r}updateDOM(t,r,n){return!1}static importDOM(){return{p:t=>({conversion:Jlt,priority:0})}}exportDOM(t){const{element:r}=super.exportDOM(t);if(r&&g5(r)){this.isEmpty()&&r.append(document.createElement("br"));const n=this.getFormatType();r.style.textAlign=n;const o=this.getDirection();o&&(r.dir=o);const i=this.getIndent();i>0&&(r.style.textIndent=20*i+"px")}return{element:r}}static importJSON(t){const r=Mf();return r.setFormat(t.format),r.setIndent(t.indent),r.setDirection(t.direction),r}exportJSON(){return{...super.exportJSON(),type:"paragraph",version:1}}insertNewAfter(t,r){const n=Mf(),o=this.getDirection();return n.setDirection(o),this.insertAfter(n,r),n}collapseAtStart(){const t=this.getChildren();if(t.length===0||vt(t[0])&&t[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}}function Jlt(e){const t=Mf();if(e.style){t.setFormat(e.style.textAlign);const r=parseInt(e.style.textIndent,10)/20;r>0&&t.setIndent(r)}return{node:t}}function Mf(){return RE(new qv)}function ect(e){return e instanceof qv}const tct=0,rct=1,nct=2,oct=3,ict=4;function J0e(e,t,r,n){const o=e._keyToDOMMap;o.clear(),e._editorState=Ez(),e._pendingEditorState=n,e._compositionKey=null,e._dirtyType=Xh,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),e._normalizedNodes=new Set,e._updateTags=new Set,e._updates=[],e._blockCursorElement=null;const i=e._observer;i!==null&&(i.disconnect(),e._observer=null),t!==null&&(t.textContent=""),r!==null&&(r.textContent="",o.set("root",r))}function sct(e){const t=e||{},r=Qlt(),n=t.theme||{},o=e===void 0?r:t.parentEditor||null,i=t.disableEvents||!1,s=Ez(),a=t.namespace||(o!==null?o._config.namespace:w0e()),u=t.editorState,l=[Pv,vp,jv,zv,qv,...t.nodes||[]],{onError:c,html:f}=t,d=t.editable===void 0||t.editable;let h;if(e===void 0&&r!==null)h=r._nodes;else{h=new Map;for(let v=0;v{Object.keys(b).forEach(A=>{let T=E.get(A);T===void 0&&(T=[],E.set(A,T)),T.push(b[A])})};return v.forEach(b=>{const A=b.klass.importDOM;if(A==null||_.has(A))return;_.add(A);const T=A.call(b.klass);T!==null&&S(T)}),y&&S(y),E}(h,f?f.import:void 0),d);return u!==void 0&&(g._pendingEditorState=u,g._dirtyType=ev),g}class act{constructor(t,r,n,o,i,s,a){this._parentEditor=r,this._rootElement=null,this._editorState=t,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=o,this._nodes=n,this._decorators={},this._pendingDecorators=null,this._dirtyType=Xh,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=w0e(),this._onError=i,this._htmlConversions=s,this._editable=a,this._headless=r!==null&&r._headless,this._window=null,this._blockCursorElement=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(t){const r=this._listeners.update;return r.add(t),()=>{r.delete(t)}}registerEditableListener(t){const r=this._listeners.editable;return r.add(t),()=>{r.delete(t)}}registerDecoratorListener(t){const r=this._listeners.decorator;return r.add(t),()=>{r.delete(t)}}registerTextContentListener(t){const r=this._listeners.textcontent;return r.add(t),()=>{r.delete(t)}}registerRootListener(t){const r=this._listeners.root;return t(this._rootElement,null),r.add(t),()=>{t(null,this._rootElement),r.delete(t)}}registerCommand(t,r,n){n===void 0&&ft(35);const o=this._commands;o.has(t)||o.set(t,[new Set,new Set,new Set,new Set,new Set]);const i=o.get(t);i===void 0&&ft(36,String(t));const s=i[n];return s.add(r),()=>{s.delete(r),i.every(a=>a.size===0)&&o.delete(t)}}registerMutationListener(t,r){this._nodes.get(t.getType())===void 0&&ft(37,t.name);const n=this._listeners.mutation;return n.set(r,t),()=>{n.delete(r)}}registerNodeTransformToKlass(t,r){const n=t.getType(),o=this._nodes.get(n);return o===void 0&&ft(37,t.name),o.transforms.add(r),o}registerNodeTransform(t,r){const n=this.registerNodeTransformToKlass(t,r),o=[n],i=n.replaceWithKlass;if(i!=null){const u=this.registerNodeTransformToKlass(i,r);o.push(u)}var s,a;return s=this,a=t.getType(),sa(s,()=>{const u=Tc();if(u.isEmpty())return;if(a==="root")return void Aa().markDirty();const l=u._nodeMap;for(const[,c]of l)c.markDirty()},s._pendingEditorState===null?{tag:"history-merge"}:void 0),()=>{o.forEach(u=>u.transforms.delete(r))}}hasNode(t){return this._nodes.has(t.getType())}hasNodes(t){return t.every(this.hasNode.bind(this))}dispatchCommand(t,r){return ct(this,t,r)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(t){const r=this._rootElement;if(t!==r){const n=ib(this._config.theme,"root"),o=this._pendingEditorState||this._editorState;if(this._rootElement=t,J0e(this,r,t,o),r!==null&&(this._config.disableEvents||Mlt(r),n!=null&&r.classList.remove(...n)),t!==null){const i=function(a){const u=a.ownerDocument;return u&&u.defaultView||null}(t),s=t.style;s.userSelect="text",s.whiteSpace="pre-wrap",s.wordBreak="break-word",t.setAttribute("data-lexical-editor","true"),this._window=i,this._dirtyType=ev,v0e(this),this._updateTags.add("history-merge"),Mh(this),this._config.disableEvents||function(a,u){const l=a.ownerDocument,c=Dx.get(l);c===void 0&&l.addEventListener("selectionchange",$0e),Dx.set(l,c||1),a.__lexicalEditor=u;const f=H0e(a);for(let d=0;d{Kee(y)||(Wee(y),(u.isEditable()||h==="click")&&g(y,u))}:y=>{if(!Kee(y)&&(Wee(y),u.isEditable()))switch(h){case"cut":return ct(u,tz,y);case"copy":return ct(u,ez,y);case"paste":return ct(u,Qj,y);case"dragstart":return ct(u,o0e,y);case"dragover":return ct(u,i0e,y);case"dragend":return ct(u,s0e,y);case"focus":return ct(u,a0e,y);case"blur":return ct(u,u0e,y);case"drop":return ct(u,n0e,y)}};a.addEventListener(h,v),f.push(()=>{a.removeEventListener(h,v)})}}(t,this),n!=null&&t.classList.add(...n)}else this._editorState=o,this._pendingEditorState=null,this._window=null;ub("root",this,!1,t,r)}}getElementByKey(t){return this._keyToDOMMap.get(t)||null}getEditorState(){return this._editorState}setEditorState(t,r){t.isEmpty()&&ft(38),g0e(this);const n=this._pendingEditorState,o=this._updateTags,i=r!==void 0?r.tag:null;n===null||n.isEmpty()||(i!=null&&o.add(i),Mh(this)),this._pendingEditorState=t,this._dirtyType=ev,this._dirtyElements.set("root",!1),this._compositionKey=null,i!=null&&o.add(i),Mh(this)}parseEditorState(t,r){return function(n,o,i){const s=Ez(),a=Vo,u=Ms,l=Uo,c=o._dirtyElements,f=o._dirtyLeaves,d=o._cloneNotNeeded,h=o._dirtyType;o._dirtyElements=new Map,o._dirtyLeaves=new Set,o._cloneNotNeeded=new Set,o._dirtyType=0,Vo=s,Ms=!1,Uo=o;try{const g=o._nodes;_z(n.root,g),i&&i(),s._readOnly=!0}catch(g){g instanceof Error&&o._onError(g)}finally{o._dirtyElements=c,o._dirtyLeaves=f,o._cloneNotNeeded=d,o._dirtyType=h,Vo=a,Ms=u,Uo=l}return s}(typeof t=="string"?JSON.parse(t):t,this,r)}update(t,r){sa(this,t,r)}focus(t,r={}){const n=this._rootElement;n!==null&&(n.setAttribute("autocapitalize","off"),sa(this,()=>{const o=hn(),i=Aa();o!==null?o.dirty=!0:i.getChildrenSize()!==0&&(r.defaultSelection==="rootStart"?i.selectStart():i.selectEnd())},{onUpdate:()=>{n.removeAttribute("autocapitalize"),t&&t()},tag:"focus"}),this._pendingEditorState===null&&n.removeAttribute("autocapitalize"))}blur(){const t=this._rootElement;t!==null&&t.blur();const r=pc(this._window);r!==null&&r.removeAllRanges()}isEditable(){return this._editable}setEditable(t){this._editable!==t&&(this._editable=t,ub("editable",this,!0,t))}toJSON(){return{editorState:this._editorState.toJSON()}}}const uct=Object.freeze(Object.defineProperty({__proto__:null,$addUpdateTag:Tlt,$applyNodeReplacement:RE,$copyNode:T0e,$createLineBreakNode:tv,$createNodeSelection:o6,$createParagraphNode:Mf,$createPoint:fl,$createRangeSelection:Glt,$createTabNode:y5,$createTextNode:si,$getAdjacentNode:KM,$getCharacterOffsets:n6,$getEditor:Olt,$getNearestNodeFromDOMNode:NE,$getNearestRootOrShadowRoot:x0e,$getNodeByKey:Ci,$getPreviousSelection:Hv,$getRoot:Aa,$getSelection:hn,$getTextContent:Ylt,$hasAncestor:Cx,$hasUpdateTag:xlt,$insertNodes:Ult,$isBlockElementNode:Klt,$isDecoratorNode:Jn,$isElementNode:We,$isInlineElementOrDecoratorNode:Ilt,$isLeafNode:Slt,$isLineBreakNode:Bh,$isNodeSelection:OE,$isParagraphNode:ect,$isRangeSelection:Vt,$isRootNode:ma,$isRootOrShadowRoot:y1,$isTabNode:W0e,$isTextNode:vt,$nodesOfType:klt,$normalizeSelection__EXPERIMENTAL:m0e,$parseSerializedNode:Zlt,$selectAll:Alt,$setCompositionKey:Go,$setSelection:hc,$splitNode:Nlt,BLUR_COMMAND:u0e,CAN_REDO_COMMAND:rlt,CAN_UNDO_COMMAND:nlt,CLEAR_EDITOR_COMMAND:elt,CLEAR_HISTORY_COMMAND:tlt,CLICK_COMMAND:Wpe,COMMAND_PRIORITY_CRITICAL:ict,COMMAND_PRIORITY_EDITOR:tct,COMMAND_PRIORITY_HIGH:oct,COMMAND_PRIORITY_LOW:rct,COMMAND_PRIORITY_NORMAL:nct,CONTROLLED_TEXT_INSERTION_COMMAND:hg,COPY_COMMAND:ez,CUT_COMMAND:tz,DELETE_CHARACTER_COMMAND:d_,DELETE_LINE_COMMAND:p_,DELETE_WORD_COMMAND:h_,DRAGEND_COMMAND:s0e,DRAGOVER_COMMAND:i0e,DRAGSTART_COMMAND:o0e,DROP_COMMAND:n0e,DecoratorNode:Q0e,ElementNode:_5,FOCUS_COMMAND:a0e,FORMAT_ELEMENT_COMMAND:Jut,FORMAT_TEXT_COMMAND:jd,INDENT_CONTENT_COMMAND:Qut,INSERT_LINE_BREAK_COMMAND:ob,INSERT_PARAGRAPH_COMMAND:zM,INSERT_TAB_COMMAND:Xut,KEY_ARROW_DOWN_COMMAND:Qpe,KEY_ARROW_LEFT_COMMAND:Upe,KEY_ARROW_RIGHT_COMMAND:Gpe,KEY_ARROW_UP_COMMAND:Xpe,KEY_BACKSPACE_COMMAND:Jpe,KEY_DELETE_COMMAND:t0e,KEY_DOWN_COMMAND:Kpe,KEY_ENTER_COMMAND:Ex,KEY_ESCAPE_COMMAND:e0e,KEY_MODIFIER_COMMAND:l0e,KEY_SPACE_COMMAND:Zpe,KEY_TAB_COMMAND:r0e,LineBreakNode:jv,MOVE_TO_END:Vpe,MOVE_TO_START:Ype,OUTDENT_CONTENT_COMMAND:Zut,PASTE_COMMAND:Qj,ParagraphNode:qv,REDO_COMMAND:Jj,REMOVE_TEXT_COMMAND:HM,RootNode:Pv,SELECTION_CHANGE_COMMAND:l5,SELECTION_INSERT_CLIPBOARD_NODES_COMMAND:Yut,SELECT_ALL_COMMAND:$M,TabNode:zv,TextNode:vp,UNDO_COMMAND:Zj,createCommand:Uut,createEditor:sct,getNearestEditorFromDOMNode:dz,isCurrentlyReadOnlyMode:$v,isHTMLAnchorElement:Rlt,isHTMLElement:g5,isSelectionCapturedInDecoratorInput:fz,isSelectionWithinEditor:CE},Symbol.toStringTag,{value:"Module"})),et=uct,DE=et.$applyNodeReplacement,lct=et.$copyNode,cct=et.$createNodeSelection,ya=et.$createParagraphNode,ege=et.$createRangeSelection,tge=et.$createTabNode,Zh=et.$createTextNode,i6=et.$getAdjacentNode,fct=et.$getCharacterOffsets,m_=et.$getNearestNodeFromDOMNode,FE=et.$getNodeByKey,Sz=et.$getPreviousSelection,cs=et.$getRoot,rr=et.$getSelection,dct=et.$hasAncestor,wz=et.$insertNodes,Lh=et.$isDecoratorNode,Ir=et.$isElementNode,hct=et.$isLeafNode,pct=et.$isLineBreakNode,Ui=et.$isNodeSelection,gct=et.$isParagraphNode,fr=et.$isRangeSelection,S5=et.$isRootNode,E1=et.$isRootOrShadowRoot,ur=et.$isTextNode,vct=et.$normalizeSelection__EXPERIMENTAL,mct=et.$parseSerializedNode,yct=et.$selectAll,Wv=et.$setSelection,rge=et.$splitNode,Gw=et.CAN_REDO_COMMAND,Vw=et.CAN_UNDO_COMMAND,bct=et.CLEAR_EDITOR_COMMAND,_ct=et.CLEAR_HISTORY_COMMAND,nge=et.CLICK_COMMAND,Ect=et.COMMAND_PRIORITY_CRITICAL,kr=et.COMMAND_PRIORITY_EDITOR,s6=et.COMMAND_PRIORITY_HIGH,Vu=et.COMMAND_PRIORITY_LOW,Sct=et.CONTROLLED_TEXT_INSERTION_COMMAND,oge=et.COPY_COMMAND,wct=et.CUT_COMMAND,B3=et.DELETE_CHARACTER_COMMAND,Act=et.DELETE_LINE_COMMAND,kct=et.DELETE_WORD_COMMAND,Az=et.DRAGOVER_COMMAND,kz=et.DRAGSTART_COMMAND,xz=et.DROP_COMMAND,xct=et.DecoratorNode,w5=et.ElementNode,Tct=et.FORMAT_ELEMENT_COMMAND,Ict=et.FORMAT_TEXT_COMMAND,Cct=et.INDENT_CONTENT_COMMAND,cte=et.INSERT_LINE_BREAK_COMMAND,fte=et.INSERT_PARAGRAPH_COMMAND,Nct=et.INSERT_TAB_COMMAND,Rct=et.KEY_ARROW_DOWN_COMMAND,Oct=et.KEY_ARROW_LEFT_COMMAND,Dct=et.KEY_ARROW_RIGHT_COMMAND,Fct=et.KEY_ARROW_UP_COMMAND,ige=et.KEY_BACKSPACE_COMMAND,sge=et.KEY_DELETE_COMMAND,age=et.KEY_ENTER_COMMAND,uge=et.KEY_ESCAPE_COMMAND,Bct=et.LineBreakNode,dte=et.OUTDENT_CONTENT_COMMAND,Mct=et.PASTE_COMMAND,Lct=et.ParagraphNode,jct=et.REDO_COMMAND,zct=et.REMOVE_TEXT_COMMAND,Hct=et.RootNode,$ct=et.SELECTION_CHANGE_COMMAND,Pct=et.SELECTION_INSERT_CLIPBOARD_NODES_COMMAND,qct=et.SELECT_ALL_COMMAND,y_=et.TextNode,Wct=et.UNDO_COMMAND,BE=et.createCommand,Kct=et.createEditor,Gct=et.isHTMLAnchorElement,Vct=et.isHTMLElement,Uct=et.isSelectionCapturedInDecoratorInput,Yct=et.isSelectionWithinEditor,Mx=new Map;function hte(e){let t=e;for(;t!=null;){if(t.nodeType===Node.TEXT_NODE)return t;t=t.firstChild}return null}function pte(e){const t=e.parentNode;if(t==null)throw new Error("Should never happen");return[t,Array.from(t.childNodes).indexOf(e)]}function Xct(e,t,r,n,o){const i=t.getKey(),s=n.getKey(),a=document.createRange();let u=e.getElementByKey(i),l=e.getElementByKey(s),c=r,f=o;if(ur(t)&&(u=hte(u)),ur(n)&&(l=hte(l)),t===void 0||n===void 0||u===null||l===null)return null;u.nodeName==="BR"&&([u,c]=pte(u)),l.nodeName==="BR"&&([l,f]=pte(l));const d=u.firstChild;u===l&&d!=null&&d.nodeName==="BR"&&c===0&&f===0&&(f=1);try{a.setStart(u,c),a.setEnd(l,f)}catch{return null}return!a.collapsed||c===f&&i===s||(a.setStart(l,f),a.setEnd(u,c)),a}function Qct(e,t){const r=e.getRootElement();if(r===null)return[];const n=r.getBoundingClientRect(),o=getComputedStyle(r),i=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),s=Array.from(t.getClientRects());let a,u=s.length;s.sort((l,c)=>{const f=l.top-c.top;return Math.abs(f)<=3?l.left-c.left:f});for(let l=0;lc.top&&a.left+a.width>c.left,d=c.width+i===n.width;f||d?(s.splice(l--,1),u--):a=c}return s}function lge(e){const t={},r=e.split(";");for(const n of r)if(n!==""){const[o,i]=n.split(/:([^]+)/);o&&i&&(t[o.trim()]=i.trim())}return t}function A5(e){let t=Mx.get(e);return t===void 0&&(t=lge(e),Mx.set(e,t)),t}function Zct(e){const t=e.constructor.clone(e);return t.__parent=e.__parent,t.__next=e.__next,t.__prev=e.__prev,Ir(e)&&Ir(t)?(n=e,(r=t).__first=n.__first,r.__last=n.__last,r.__size=n.__size,r.__format=n.__format,r.__indent=n.__indent,r.__dir=n.__dir,r):ur(e)&&ur(t)?function(o,i){return o.__format=i.__format,o.__style=i.__style,o.__mode=i.__mode,o.__detail=i.__detail,o}(t,e):t;var r,n}function Jct(e,t){const r=e.getStartEndPoints();if(t.isSelected(e)&&!t.isSegmented()&&!t.isToken()&&r!==null){const[n,o]=r,i=e.isBackward(),s=n.getNode(),a=o.getNode(),u=t.is(s),l=t.is(a);if(u||l){const[c,f]=fct(e),d=s.is(a),h=t.is(i?a:s),g=t.is(i?s:a);let v,y=0;return d?(y=c>f?f:c,v=c>f?c:f):h?(y=i?f:c,v=void 0):g&&(y=0,v=i?c:f),t.__text=t.__text.slice(y,v),t}}return t}function eft(e){if(e.type==="text")return e.offset===e.getNode().getTextContentSize();const t=e.getNode();if(!Ir(t))throw Error("isAtNodeEnd: node must be a TextNode or ElementNode");return e.offset===t.getChildrenSize()}function tft(e,t,r){let n=t.getNode(),o=r;if(Ir(n)){const i=n.getDescendantByIndex(t.offset);i!==null&&(n=i)}for(;o>0&&n!==null;){if(Ir(n)){const l=n.getLastDescendant();l!==null&&(n=l)}let i=n.getPreviousSibling(),s=0;if(i===null){let l=n.getParentOrThrow(),c=l.getPreviousSibling();for(;c===null;){if(l=l.getParent(),l===null){i=null;break}c=l.getPreviousSibling()}l!==null&&(s=l.isInline()?0:2,i=c)}let a=n.getTextContent();a===""&&Ir(n)&&!n.isInline()&&(a=` -`);const u=a.length;if(!sr(n)||o>=u){const l=n.getParent();n.remove(),l==null||l.getChildrenSize()!==0||y5(l)||l.remove(),o-=u+s,n=i}else{const l=n.getKey(),c=e.getEditorState().read(()=>{const h=RE(l);return sr(h)&&h.isSimpleText()?h.getTextContent():null}),f=u-o,d=a.slice(0,f);if(c!==null&&c!==a){const h=gz();let g=n;if(n.isSimpleText())n.setTextContent(c);else{const v=Jh(c);n.replace(v),g=v}if(cr(h)&&h.isCollapsed()){const v=h.anchor.offset;g.select(v,v)}}else if(n.isSimpleText()){const h=t.key===l;let g=t.offset;g(a instanceof Function?i[s]=a(r[s]):a===null?delete i[s]:i[s]=a,i),{...r}),o=function(i){let s="";for(const a in i)a&&(s+=`${a}: ${i[a]};`);return s}(n);e.setStyle(o),RT.set(o,n)}function Vct(e,t){const r=e.getNodes(),n=r.length,o=e.getStartEndPoints();if(o===null)return;const[i,s]=o,a=n-1;let u=r[0],l=r[a];if(e.isCollapsed()&&cr(e))return void t0(e,t);const c=u.getTextContent().length,f=s.offset;let d=i.offset;const h=i.isBefore(s);let g=h?d:f,v=h?f:d;const y=h?i.type:s.type,E=h?s.type:i.type,_=h?s.key:i.key;if(sr(u)&&g===c){const S=u.getNextSibling();sr(S)&&(d=0,g=0,u=S)}if(r.length===1){if(sr(u)&&u.canHaveFormat()){if(g=y==="element"?0:d>f?f:d,v=E==="element"?c:d>f?d:f,g===v)return;if(g===0&&v===c)t0(u,t),u.select(g,v);else{const S=u.splitText(g,v),b=g===0?S[0]:S[1];t0(b,t),b.select(0,v-g)}}}else{if(sr(u)&&gf.append(d)),r&&(f=r.append(f)),void l.replace(f)}let a=null,u=[];for(let l=0;l{_.append(S),f.add(S.getKey()),Tr(S)&&S.getChildrenKeys().forEach(b=>f.add(b))}),Yct(y)}}else if(c.has(v.getKey())){if(!Tr(v))throw Error("Expected node in emptyElements to be an ElementNode");const E=n();E.setFormat(v.getFormatType()),E.setIndent(v.getIndent()),a.push(E),v.remove(!0)}}if(o!==null)for(let g=0;g=0;g--){const v=a[g];u.insertAfter(v)}else{const g=u.getFirstChild();if(Tr(g)&&(u=g),g===null)if(o)u.append(o);else for(let v=0;v=0;g--){const v=a[g];u.insertAfter(v),d=v}const h=gz();cr(h)&&ate(h.anchor)&&ate(h.focus)?$v(h.clone()):d!==null?d.selectEnd():e.dirty=!0}function Qct(e,t){const r=t6(e.focus,t);return jh(r)&&!r.isIsolated()||Tr(r)&&!r.isInline()&&!r.canBeEmpty()}function ige(e,t,r,n){e.modify(t?"extend":"move",r,n)}function sge(e){const t=e.anchor.getNode();return(y5(t)?t:t.getParentOrThrow()).getDirection()==="rtl"}function Zct(e,t,r){const n=sge(e);ige(e,t,r?!n:n,"character")}function Jct(e){const t=e.anchor,r=e.focus,n=t.getNode().getTopLevelElementOrThrow().getParentOrThrow();let o=n.getFirstDescendant(),i=n.getLastDescendant(),s="element",a="element",u=0;sr(o)?s="text":Tr(o)||o===null||(o=o.getParentOrThrow()),sr(i)?(a="text",u=i.getTextContentSize()):Tr(i)||i===null||(i=i.getParentOrThrow()),o&&i&&(t.set(o.getKey(),0,s),r.set(i.getKey(),u,a))}function eft(e,t,r){const n=_5(e.getStyle());return n!==null&&n[t]||r}function tft(e,t,r=""){let n=null;const o=e.getNodes(),i=e.anchor,s=e.focus,a=e.isBackward(),u=a?s.offset:i.offset,l=a?s.getNode():i.getNode();if(e.isCollapsed()&&e.style!==""){const c=_5(e.style);if(c!==null&&t in c)return c[t]}for(let c=0;c{e.forEach(t=>t())}}function jl(e){return`${e}px`}const sft={attributes:!0,characterData:!0,childList:!0,subtree:!0};function cge(e,t,r){let n=null,o=null,i=null,s=[];const a=document.createElement("div");function u(){if(n===null)throw Error("Unexpected null rootDOMNode");if(o===null)throw Error("Unexpected null parentDOMNode");const{left:f,top:d}=n.getBoundingClientRect(),h=o,g=oft(e,t);a.isConnected||h.append(a);let v=!1;for(let y=0;yg.length;)s.pop();v&&r(s)}function l(){o=null,n=null,i!==null&&i.disconnect(),i=null,a.remove();for(const f of s)f.remove();s=[]}const c=e.registerRootListener(function f(){const d=e.getRootElement();if(d===null)return l();const h=d.parentElement;if(!(h instanceof HTMLElement))return l();l(),n=d,o=h,i=new MutationObserver(g=>{const v=e.getRootElement(),y=v&&v.parentElement;if(v!==n||y!==o)return f();for(const E of g)if(!a.contains(E.target))return u()}),i.observe(h,sft),u()});return()=>{c(),l()}}function aft(e,t){let r=null,n=null,o=null,i=null,s=()=>{};function a(u){u.read(()=>{const l=tr();if(!cr(l))return r=null,n=null,o=null,i=null,s(),void(s=()=>{});const{anchor:c,focus:f}=l,d=c.getNode(),h=d.getKey(),g=c.offset,v=f.getNode(),y=v.getKey(),E=f.offset,_=e.getElementByKey(h),S=e.getElementByKey(y),b=r===null||_===null||g!==n||h!==r.getKey()||d!==r&&(!(r instanceof g_)||d.updateDOM(r,_,e._config)),A=o===null||S===null||E!==i||y!==o.getKey()||v!==o&&(!(o instanceof g_)||v.updateDOM(o,S,e._config));if(b||A){const x=e.getElementByKey(c.getNode().getKey()),T=e.getElementByKey(f.getNode().getKey());if(x!==null&&T!==null&&x.tagName==="SPAN"&&T.tagName==="SPAN"){const N=document.createRange();let I,R,D,L;f.isBefore(c)?(I=T,R=f.offset,D=x,L=c.offset):(I=x,R=c.offset,D=T,L=f.offset);const M=I.firstChild;if(M===null)throw Error("Expected text node to be first child of span");const q=D.firstChild;if(q===null)throw Error("Expected text node to be first child of span");N.setStart(M,R),N.setEnd(q,L),s(),s=cge(e,N,z=>{for(const B of z){const P=B.style;P.background!=="Highlight"&&(P.background="Highlight"),P.color!=="HighlightText"&&(P.color="HighlightText"),P.zIndex!=="-1"&&(P.zIndex="-1"),P.pointerEvents!=="none"&&(P.pointerEvents="none"),P.marginTop!==jl(-1.5)&&(P.marginTop=jl(-1.5)),P.paddingTop!==jl(4)&&(P.paddingTop=jl(4)),P.paddingBottom!==jl(0)&&(P.paddingBottom=jl(0))}t!==void 0&&t(z)})}}r=d,n=g,o=v,i=E})}return a(e.getEditorState()),lge(e.registerUpdateListener(({editorState:u})=>a(u)),s,()=>{s()})}function uft(e,...t){const r=uge(...t);r.length>0&&e.classList.add(...r)}function lft(e,...t){const r=uge(...t);r.length>0&&e.classList.remove(...r)}function fge(e,t){for(const r of t)if(e.type.startsWith(r))return!0;return!1}function cft(e,t){const r=e[Symbol.iterator]();return new Promise((n,o)=>{const i=[],s=()=>{const{done:a,value:u}=r.next();if(a)return n(i);const l=new FileReader;l.addEventListener("error",o),l.addEventListener("load",()=>{const c=l.result;typeof c=="string"&&i.push({file:u,result:c}),s()}),fge(u,t)?l.readAsDataURL(u):s()};s()})}function fft(e,t){const r=[],n=(e||cs()).getLatest(),o=t||(Tr(n)?n.getLastDescendant():n);let i=n,s=function(a){let u=a,l=0;for(;(u=u.getParent())!==null;)l++;return l}(i);for(;i!==null&&!i.is(o);)if(r.push({depth:s,node:i}),Tr(i)&&i.getChildrenSize()>0)i=i.getFirstChild(),s++;else{let a=null;for(;a===null&&i!==null;)a=i.getNextSibling(),a===null?(i=i.getParent(),s--):i=a}return i!==null&&i.is(o)&&r.push({depth:s,node:i}),r}function dft(e,t){let r=e;for(;r!=null;){if(r instanceof t)return r;r=r.getParent()}return null}function hft(e){const t=dge(e,r=>Tr(r)&&!r.isInline());return Tr(t)||ift(4,e.__key),t}const dge=(e,t)=>{let r=e;for(;r!==cs()&&r!=null;){if(t(r))return r;r=r.getParent()}return null};function pft(e,t,r,n){const o=i=>i instanceof t;return e.registerNodeTransform(t,i=>{const s=(a=>{const u=a.getChildren();for(let f=0;f0&&(s+=1,n.splitText(o))):(i=n,s=o);const[,a]=Q0e(i,s);a.insertBefore(e),a.selectStart()}}else{if(t!=null){const n=t.getNodes();n[n.length-1].getTopLevelElementOrThrow().insertAfter(e)}else cs().append(e);const r=ya();e.insertAfter(r),r.select()}return e.getLatest()}function mft(e,t){const r=t();return e.replace(r),r.append(e),r}function yft(e,t){return e!==null&&Object.getPrototypeOf(e).constructor.name===t.name}function bft(e,t){const r=[];for(let n=0;n({conversion:xft,priority:1})}}static importJSON(t){const r=v_(t.url,{rel:t.rel,target:t.target,title:t.title});return r.setFormat(t.format),r.setIndent(t.indent),r.setDirection(t.direction),r}sanitizeUrl(t){try{const r=new URL(t);if(!Tft.has(r.protocol))return"about:blank"}catch{return t}return t}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),type:"link",url:this.getURL(),version:1}}getURL(){return this.getLatest().__url}setURL(t){this.getWritable().__url=t}getTarget(){return this.getLatest().__target}setTarget(t){this.getWritable().__target=t}getRel(){return this.getLatest().__rel}setRel(t){this.getWritable().__rel=t}getTitle(){return this.getLatest().__title}setTitle(t){this.getWritable().__title=t}insertNewAfter(t,r=!0){const n=v_(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(n,r),n}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(t,r,n){if(!cr(r))return!1;const o=r.anchor.getNode(),i=r.focus.getNode();return this.isParentOf(o)&&this.isParentOf(i)&&r.getTextContent().length>0}};function xft(e){let t=null;if(kft(e)){const r=e.textContent;(r!==null&&r!==""||e.children.length>0)&&(t=v_(e.getAttribute("href")||"",{rel:e.getAttribute("rel"),target:e.getAttribute("target"),title:e.getAttribute("title")}))}return{node:t}}function v_(e,t){return CE(new E5(e,t))}function y0(e){return e instanceof E5}let wz=class gge extends E5{static getType(){return"autolink"}static clone(t){return new gge(t.__url,{rel:t.__rel,target:t.__target,title:t.__title},t.__key)}static importJSON(t){const r=n6(t.url,{rel:t.rel,target:t.target,title:t.title});return r.setFormat(t.format),r.setIndent(t.indent),r.setDirection(t.direction),r}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),type:"autolink",version:1}}insertNewAfter(t,r=!0){const n=this.getParentOrThrow().insertNewAfter(t,r);if(Tr(n)){const o=n6(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return n.append(o),o}return null}};function n6(e,t){return CE(new wz(e,t))}function Ift(e){return e instanceof wz}const Nft=OE("TOGGLE_LINK_COMMAND");function Cft(e,t={}){const{target:r,title:n}=t,o=t.rel===void 0?"noreferrer":t.rel,i=tr();if(!cr(i))return;const s=i.extract();if(e===null)s.forEach(a=>{const u=a.getParent();if(y0(u)){const l=u.getChildren();for(let c=0;c{const c=l.getParent();if(c!==u&&c!==null&&(!Tr(l)||l.isInline())){if(y0(c))return u=c,c.setURL(e),r!==void 0&&c.setTarget(r),o!==null&&u.setRel(o),void(n!==void 0&&u.setTitle(n));if(c.is(a)||(a=c,u=v_(e,{rel:o,target:r,title:n}),y0(c)?l.getPreviousSibling()===null?c.insertBefore(u):c.insertAfter(u):l.insertBefore(u)),y0(l)){if(l.is(u))return;if(u!==null){const f=l.getChildren();for(let d=0;d{const{theme:n,namespace:o,editor__DEPRECATED:i,nodes:s,onError:a,editorState:u,html:l}=e,c=jft(null,n);let f=i||null;if(f===null){const d=Bct({editable:e.editable,html:l,namespace:o,nodes:s,onError:h=>a(h,d),theme:n});(function(h,g){if(g!==null){if(g===void 0)h.update(()=>{const v=cs();if(v.isEmpty()){const y=ya();v.append(y);const E=bge?document.activeElement:null;(tr()!==null||E!==null&&E===h.getRootElement())&&y.select()}},Kw);else if(g!==null)switch(typeof g){case"string":{const v=h.parseEditorState(g);h.setEditorState(v,Kw);break}case"object":h.setEditorState(g,Kw);break;case"function":h.update(()=>{cs().isEmpty()&&g(h)},Kw)}}})(d,u),f=d}return[f,c]},[]);return zft(()=>{const n=e.editable,[o]=r;o.setEditable(n===void 0||n)},[]),k.createElement(yge.Provider,{value:r},t)}const $ft=Object.freeze(Object.defineProperty({__proto__:null,LexicalComposer:Hft},Symbol.toStringTag,{value:"Module"})),Pft=$ft,qft=Pft.LexicalComposer;function o6(){return o6=Object.assign?Object.assign.bind():function(e){for(var t=1;t{T&&T.ownerDocument&&T.ownerDocument.defaultView&&S.setRootElement(T)},[S]);return Wft(()=>(A(S.isEditable()),S.registerEditableListener(T=>{A(T)})),[S]),k.createElement("div",o6({},_,{"aria-activedescendant":b?e:void 0,"aria-autocomplete":b?t:"none","aria-controls":b?r:void 0,"aria-describedby":n,"aria-expanded":b&&h==="combobox"?!!o:void 0,"aria-label":i,"aria-labelledby":s,"aria-multiline":a,"aria-owns":b?u:void 0,"aria-readonly":!b||void 0,"aria-required":l,autoCapitalize:c,className:f,contentEditable:b,"data-testid":E,id:d,ref:x,role:h,spellCheck:g,style:v,tabIndex:y}))}const Gft=Object.freeze(Object.defineProperty({__proto__:null,ContentEditable:Kft},Symbol.toStringTag,{value:"Module"})),Vft=Gft,Uft=Vft.ContentEditable;function i6(e,t){return i6=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},i6(e,t)}var fte={error:null},Yft=function(e){var t,r;function n(){for(var i,s=arguments.length,a=new Array(s),u=0;u1){const E=t._nodeMap,_=E.get(i.anchor.key),S=E.get(s.anchor.key);return _&&S&&!e._nodeMap.has(_.__key)&&sr(_)&&_.__text.length===1&&i.anchor.offset===1?dte:Vu}const u=a[0],l=e._nodeMap.get(u.__key);if(!sr(l)||!sr(u)||l.__mode!==u.__mode)return Vu;const c=l.__text,f=u.__text;if(c===f)return Vu;const d=i.anchor,h=s.anchor;if(d.key!==h.key||d.type!=="text")return Vu;const g=d.offset,v=h.offset,y=f.length-c.length;return y===1&&v===g-1?dte:y===-1&&v===g+1?tdt:y===-1&&v===g?rdt:Vu}function odt(e,t){let r=Date.now(),n=Vu;return(o,i,s,a,u,l)=>{const c=Date.now();if(l.has("historic"))return n=Vu,r=c,a6;const f=ndt(o,i,a,u,e.isComposing()),d=(()=>{const h=s===null||s.editor===e,g=l.has("history-push");if(!g&&h&&l.has("history-merge"))return Gw;if(o===null)return s6;const v=i._selection;return a.size>0||u.size>0?g===!1&&f!==Vu&&f===n&&c{const d=t.current,h=t.redoStack,g=t.undoStack,v=d===null?null:d.editorState;if(d!==null&&a===v)return;const y=n(u,a,d,l,c,f);if(y===s6)h.length!==0&&(t.redoStack=[],e.dispatchCommand(qw,!1)),d!==null&&(g.push({...d}),e.dispatchCommand(Ww,!0));else if(y===a6)return;t.current={editor:e,editorState:a}},i=qf(e.registerCommand(Fct,()=>(function(a,u){const l=u.redoStack,c=u.undoStack;if(c.length!==0){const f=u.current,d=c.pop();f!==null&&(l.push(f),a.dispatchCommand(qw,!0)),c.length===0&&a.dispatchCommand(Ww,!1),u.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:"historic"})}}(e,t),!0),kr),e.registerCommand(Ict,()=>(function(a,u){const l=u.redoStack,c=u.undoStack;if(l.length!==0){const f=u.current;f!==null&&(c.push(f),a.dispatchCommand(Ww,!0));const d=l.pop();l.length===0&&a.dispatchCommand(qw,!1),u.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:"historic"})}}(e,t),!0),kr),e.registerCommand(lct,()=>(hte(t),!1),kr),e.registerCommand(cct,()=>(hte(t),e.dispatchCommand(qw,!1),e.dispatchCommand(Ww,!1),!0),kr),e.registerUpdateListener(o)),s=e.registerUpdateListener(o);return()=>{i(),s()}}function sdt(){return{current:null,redoStack:[],undoStack:[]}}const adt=Object.freeze(Object.defineProperty({__proto__:null,createEmptyHistoryState:sdt,registerHistory:idt},Symbol.toStringTag,{value:"Module"})),_ge=adt,Ege=_ge.createEmptyHistoryState,udt=_ge.registerHistory;function ldt({externalHistoryState:e}){const[t]=Li();return function(r,n,o=1e3){const i=k.useMemo(()=>n||Ege(),[n]);k.useEffect(()=>udt(r,i,o),[o,r,i])}(t,e),null}const cdt=Object.freeze(Object.defineProperty({__proto__:null,HistoryPlugin:ldt,createEmptyHistoryState:Ege},Symbol.toStringTag,{value:"Module"})),fdt=cdt,ddt=fdt.HistoryPlugin;var hdt=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?k.useLayoutEffect:k.useEffect;function pdt({ignoreHistoryMergeTagChange:e=!0,ignoreSelectionChange:t=!1,onChange:r}){const[n]=Li();return hdt(()=>{if(r)return n.registerUpdateListener(({editorState:o,dirtyElements:i,dirtyLeaves:s,prevEditorState:a,tags:u})=>{t&&i.size===0&&s.size===0||e&&u.has("history-merge")||a.isEmpty()||r(o,n,u)})},[n,e,t,r]),null}const gdt=Object.freeze(Object.defineProperty({__proto__:null,OnChangePlugin:pdt},Symbol.toStringTag,{value:"Module"})),vdt=gdt,Sge=vdt.OnChangePlugin;var mdt=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?k.useLayoutEffect:k.useEffect;function ydt(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}function bdt(){return function(e){const[t]=Li(),r=k.useMemo(()=>e(t),[t,e]),n=k.useRef(r.initialValueFn()),[o,i]=k.useState(n.current);return mdt(()=>{const{initialValueFn:s,subscribe:a}=r,u=s();return n.current!==u&&(n.current=u,i(u)),a(l=>{n.current=l,i(l)})},[r,e]),o}(ydt)}const _dt=Object.freeze(Object.defineProperty({__proto__:null,default:bdt},Symbol.toStringTag,{value:"Module"})),Edt=_dt,Sdt=Edt.default;function wdt(e,t){let r=e.getFirstChild(),n=0;e:for(;r!==null;){if(Tr(r)){const s=r.getFirstChild();if(s!==null){r=s;continue}}else if(sr(r)){const s=r.getTextContentSize();if(n+s>t)return{node:r,offset:t-n};n+=s}const o=r.getNextSibling();if(o!==null){r=o;continue}let i=r.getParent();for(;i!==null;){const s=i.getNextSibling();if(s!==null){r=s;continue e}i=i.getParent()}break}return null}function Az(e,t=!0){if(e)return!1;let r=wge();return t&&(r=r.trim()),r===""}function kdt(e,t){return()=>Az(e,t)}function wge(){return cs().getTextContent()}function kge(e){if(!Az(e,!1))return!1;const t=cs().getChildren(),r=t.length;if(r>1)return!1;for(let n=0;nkge(e)}function Tdt(e,t,r,n){const o=s=>s instanceof r,i=s=>{const a=Jh(s.getTextContent());a.setFormat(s.getFormat()),s.replace(a)};return[e.registerNodeTransform(g_,s=>{if(!s.isSimpleText())return;const a=s.getPreviousSibling();let u,l=s.getTextContent(),c=s;if(sr(a)){const f=a.getTextContent(),d=t(f+l);if(o(a)){if(d===null||(h=>h.getLatest().__mode)(a)!==0)return void i(a);{const h=d.end-f.length;if(h>0){const g=f+l.slice(0,h);if(a.select(),a.setTextContent(g),h===l.length)s.remove();else{const v=l.slice(h);s.setTextContent(v)}return}}}else if(d===null||d.start{const a=s.getTextContent(),u=t(a);if(u===null||u.start!==0)return void i(s);if(a.length>u.end)return void s.splitText(u.end);const l=s.getPreviousSibling();sr(l)&&l.isTextEntity()&&(i(l),i(s));const c=s.getNextSibling();sr(c)&&c.isTextEntity()&&(i(c),o(s)&&i(s))})]}const xdt=Object.freeze(Object.defineProperty({__proto__:null,$canShowPlaceholder:kge,$canShowPlaceholderCurry:Adt,$findTextIntersectionFromCharacters:wdt,$isRootTextContentEmpty:Az,$isRootTextContentEmptyCurry:kdt,$rootTextContent:wge,registerLexicalTextEntity:Tdt},Symbol.toStringTag,{value:"Module"})),Idt=xdt,Ndt=Idt.$canShowPlaceholderCurry;function Cdt(e){const t=window.location.origin,r=n=>{if(n.origin!==t)return;const o=e.getRootElement();if(document.activeElement!==o)return;const i=n.data;if(typeof i=="string"){let s;try{s=JSON.parse(i)}catch{return}if(s&&s.protocol==="nuanria_messaging"&&s.type==="request"){const a=s.payload;if(a&&a.functionId==="makeChanges"){const u=a.args;if(u){const[l,c,f,d,h,g]=u;e.update(()=>{const v=tr();if(cr(v)){const y=v.anchor;let E=y.getNode(),_=0,S=0;if(sr(E)&&l>=0&&c>=0&&(_=l,S=l+c,v.setTextNodeRange(E,_,E,S)),_===S&&f===""||(v.insertRawText(f),E=y.getNode()),sr(E)){_=d,S=d+h;const b=E.getTextContentSize();_=_>b?b:_,S=S>b?b:S,v.setTextNodeRange(E,_,E,S)}n.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",r,!0),()=>{window.removeEventListener("message",r,!0)}}const Rdt=Object.freeze(Object.defineProperty({__proto__:null,registerDragonSupport:Cdt},Symbol.toStringTag,{value:"Module"})),Odt=Rdt,Ddt=Odt.registerDragonSupport;function Fdt(e,t){const r=t.body?t.body.childNodes:[];let n=[];for(let o=0;o"u"||typeof window>"u"&&global.window===void 0)throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");const r=document.createElement("div"),n=cs().getChildren();for(let o=0;ozdt?(e||window).getSelection():null;function Cge(e){const t=tr();if(t==null)throw Error("Expected valid LexicalSelection");return cr(t)&&t.isCollapsed()||t.getNodes().length===0?"":Ldt(e,t)}function Rge(e){const t=tr();if(t==null)throw Error("Expected valid LexicalSelection");return cr(t)&&t.isCollapsed()||t.getNodes().length===0?null:JSON.stringify(Dge(e,t))}function Hdt(e,t){const r=e.getData("text/plain")||e.getData("text/uri-list");r!=null&&t.insertRawText(r)}function $dt(e,t,r){const n=e.getData("application/x-lexical-editor");if(n)try{const s=JSON.parse(n);if(s.namespace===r._config.namespace&&Array.isArray(s.nodes))return u6(r,Fge(s.nodes),t)}catch{}const o=e.getData("text/html");if(o)try{const s=new DOMParser().parseFromString(o,"text/html");return u6(r,jdt(r,s),t)}catch{}const i=e.getData("text/plain")||e.getData("text/uri-list");if(i!=null)if(cr(t)){const s=i.split(/(\r?\n|\t)/);s[s.length-1]===""&&s.pop();for(let a=0;a=u){const l=n.getParent();n.remove(),l==null||l.getChildrenSize()!==0||S5(l)||l.remove(),o-=u+s,n=i}else{const l=n.getKey(),c=e.getEditorState().read(()=>{const h=FE(l);return ur(h)&&h.isSimpleText()?h.getTextContent():null}),f=u-o,d=a.slice(0,f);if(c!==null&&c!==a){const h=Sz();let g=n;if(n.isSimpleText())n.setTextContent(c);else{const v=Zh(c);n.replace(v),g=v}if(fr(h)&&h.isCollapsed()){const v=h.anchor.offset;g.select(v,v)}}else if(n.isSimpleText()){const h=t.key===l;let g=t.offset;g(a instanceof Function?i[s]=a(r[s]):a===null?delete i[s]:i[s]=a,i),{...r}),o=function(i){let s="";for(const a in i)a&&(s+=`${a}: ${i[a]};`);return s}(n);e.setStyle(o),Mx.set(o,n)}function nft(e,t){const r=e.getNodes(),n=r.length,o=e.getStartEndPoints();if(o===null)return;const[i,s]=o,a=n-1;let u=r[0],l=r[a];if(e.isCollapsed()&&fr(e))return void r0(e,t);const c=u.getTextContent().length,f=s.offset;let d=i.offset;const h=i.isBefore(s);let g=h?d:f,v=h?f:d;const y=h?i.type:s.type,E=h?s.type:i.type,_=h?s.key:i.key;if(ur(u)&&g===c){const S=u.getNextSibling();ur(S)&&(d=0,g=0,u=S)}if(r.length===1){if(ur(u)&&u.canHaveFormat()){if(g=y==="element"?0:d>f?f:d,v=E==="element"?c:d>f?d:f,g===v)return;if(g===0&&v===c)r0(u,t),u.select(g,v);else{const S=u.splitText(g,v),b=g===0?S[0]:S[1];r0(b,t),b.select(0,v-g)}}}else{if(ur(u)&&gf.append(d)),r&&(f=r.append(f)),void l.replace(f)}let a=null,u=[];for(let l=0;l{_.append(S),f.add(S.getKey()),Ir(S)&&S.getChildrenKeys().forEach(b=>f.add(b))}),ift(y)}}else if(c.has(v.getKey())){if(!Ir(v))throw Error("Expected node in emptyElements to be an ElementNode");const E=n();E.setFormat(v.getFormatType()),E.setIndent(v.getIndent()),a.push(E),v.remove(!0)}}if(o!==null)for(let g=0;g=0;g--){const v=a[g];u.insertAfter(v)}else{const g=u.getFirstChild();if(Ir(g)&&(u=g),g===null)if(o)u.append(o);else for(let v=0;v=0;g--){const v=a[g];u.insertAfter(v),d=v}const h=Sz();fr(h)&>e(h.anchor)&>e(h.focus)?Wv(h.clone()):d!==null?d.selectEnd():e.dirty=!0}function aft(e,t){const r=i6(e.focus,t);return Lh(r)&&!r.isIsolated()||Ir(r)&&!r.isInline()&&!r.canBeEmpty()}function cge(e,t,r,n){e.modify(t?"extend":"move",r,n)}function fge(e){const t=e.anchor.getNode();return(S5(t)?t:t.getParentOrThrow()).getDirection()==="rtl"}function uft(e,t,r){const n=fge(e);cge(e,t,r?!n:n,"character")}function lft(e){const t=e.anchor,r=e.focus,n=t.getNode().getTopLevelElementOrThrow().getParentOrThrow();let o=n.getFirstDescendant(),i=n.getLastDescendant(),s="element",a="element",u=0;ur(o)?s="text":Ir(o)||o===null||(o=o.getParentOrThrow()),ur(i)?(a="text",u=i.getTextContentSize()):Ir(i)||i===null||(i=i.getParentOrThrow()),o&&i&&(t.set(o.getKey(),0,s),r.set(i.getKey(),u,a))}function cft(e,t,r){const n=A5(e.getStyle());return n!==null&&n[t]||r}function fft(e,t,r=""){let n=null;const o=e.getNodes(),i=e.anchor,s=e.focus,a=e.isBackward(),u=a?s.offset:i.offset,l=a?s.getNode():i.getNode();if(e.isCollapsed()&&e.style!==""){const c=A5(e.style);if(c!==null&&t in c)return c[t]}for(let c=0;c{e.forEach(t=>t())}}function $l(e){return`${e}px`}const vft={attributes:!0,characterData:!0,childList:!0,subtree:!0};function gge(e,t,r){let n=null,o=null,i=null,s=[];const a=document.createElement("div");function u(){if(n===null)throw Error("Unexpected null rootDOMNode");if(o===null)throw Error("Unexpected null parentDOMNode");const{left:f,top:d}=n.getBoundingClientRect(),h=o,g=pft(e,t);a.isConnected||h.append(a);let v=!1;for(let y=0;yg.length;)s.pop();v&&r(s)}function l(){o=null,n=null,i!==null&&i.disconnect(),i=null,a.remove();for(const f of s)f.remove();s=[]}const c=e.registerRootListener(function f(){const d=e.getRootElement();if(d===null)return l();const h=d.parentElement;if(!(h instanceof HTMLElement))return l();l(),n=d,o=h,i=new MutationObserver(g=>{const v=e.getRootElement(),y=v&&v.parentElement;if(v!==n||y!==o)return f();for(const E of g)if(!a.contains(E.target))return u()}),i.observe(h,vft),u()});return()=>{c(),l()}}function mft(e,t){let r=null,n=null,o=null,i=null,s=()=>{};function a(u){u.read(()=>{const l=rr();if(!fr(l))return r=null,n=null,o=null,i=null,s(),void(s=()=>{});const{anchor:c,focus:f}=l,d=c.getNode(),h=d.getKey(),g=c.offset,v=f.getNode(),y=v.getKey(),E=f.offset,_=e.getElementByKey(h),S=e.getElementByKey(y),b=r===null||_===null||g!==n||h!==r.getKey()||d!==r&&(!(r instanceof y_)||d.updateDOM(r,_,e._config)),A=o===null||S===null||E!==i||y!==o.getKey()||v!==o&&(!(o instanceof y_)||v.updateDOM(o,S,e._config));if(b||A){const T=e.getElementByKey(c.getNode().getKey()),x=e.getElementByKey(f.getNode().getKey());if(T!==null&&x!==null&&T.tagName==="SPAN"&&x.tagName==="SPAN"){const C=document.createRange();let I,R,D,L;f.isBefore(c)?(I=x,R=f.offset,D=T,L=c.offset):(I=T,R=c.offset,D=x,L=f.offset);const M=I.firstChild;if(M===null)throw Error("Expected text node to be first child of span");const q=D.firstChild;if(q===null)throw Error("Expected text node to be first child of span");C.setStart(M,R),C.setEnd(q,L),s(),s=gge(e,C,z=>{for(const F of z){const $=F.style;$.background!=="Highlight"&&($.background="Highlight"),$.color!=="HighlightText"&&($.color="HighlightText"),$.zIndex!=="-1"&&($.zIndex="-1"),$.pointerEvents!=="none"&&($.pointerEvents="none"),$.marginTop!==$l(-1.5)&&($.marginTop=$l(-1.5)),$.paddingTop!==$l(4)&&($.paddingTop=$l(4)),$.paddingBottom!==$l(0)&&($.paddingBottom=$l(0))}t!==void 0&&t(z)})}}r=d,n=g,o=v,i=E})}return a(e.getEditorState()),pge(e.registerUpdateListener(({editorState:u})=>a(u)),s,()=>{s()})}function yft(e,...t){const r=hge(...t);r.length>0&&e.classList.add(...r)}function bft(e,...t){const r=hge(...t);r.length>0&&e.classList.remove(...r)}function vge(e,t){for(const r of t)if(e.type.startsWith(r))return!0;return!1}function _ft(e,t){const r=e[Symbol.iterator]();return new Promise((n,o)=>{const i=[],s=()=>{const{done:a,value:u}=r.next();if(a)return n(i);const l=new FileReader;l.addEventListener("error",o),l.addEventListener("load",()=>{const c=l.result;typeof c=="string"&&i.push({file:u,result:c}),s()}),vge(u,t)?l.readAsDataURL(u):s()};s()})}function Eft(e,t){const r=[],n=(e||cs()).getLatest(),o=t||(Ir(n)?n.getLastDescendant():n);let i=n,s=function(a){let u=a,l=0;for(;(u=u.getParent())!==null;)l++;return l}(i);for(;i!==null&&!i.is(o);)if(r.push({depth:s,node:i}),Ir(i)&&i.getChildrenSize()>0)i=i.getFirstChild(),s++;else{let a=null;for(;a===null&&i!==null;)a=i.getNextSibling(),a===null?(i=i.getParent(),s--):i=a}return i!==null&&i.is(o)&&r.push({depth:s,node:i}),r}function Sft(e,t){let r=e;for(;r!=null;){if(r instanceof t)return r;r=r.getParent()}return null}function wft(e){const t=mge(e,r=>Ir(r)&&!r.isInline());return Ir(t)||gft(4,e.__key),t}const mge=(e,t)=>{let r=e;for(;r!==cs()&&r!=null;){if(t(r))return r;r=r.getParent()}return null};function Aft(e,t,r,n){const o=i=>i instanceof t;return e.registerNodeTransform(t,i=>{const s=(a=>{const u=a.getChildren();for(let f=0;f0&&(s+=1,n.splitText(o))):(i=n,s=o);const[,a]=rge(i,s);a.insertBefore(e),a.selectStart()}}else{if(t!=null){const n=t.getNodes();n[n.length-1].getTopLevelElementOrThrow().insertAfter(e)}else cs().append(e);const r=ya();e.insertAfter(r),r.select()}return e.getLatest()}function Tft(e,t){const r=t();return e.replace(r),r.append(e),r}function Ift(e,t){return e!==null&&Object.getPrototypeOf(e).constructor.name===t.name}function Cft(e,t){const r=[];for(let n=0;n({conversion:Lft,priority:1})}}static importJSON(t){const r=b_(t.url,{rel:t.rel,target:t.target,title:t.title});return r.setFormat(t.format),r.setIndent(t.indent),r.setDirection(t.direction),r}sanitizeUrl(t){try{const r=new URL(t);if(!Mft.has(r.protocol))return"about:blank"}catch{return t}return t}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),type:"link",url:this.getURL(),version:1}}getURL(){return this.getLatest().__url}setURL(t){this.getWritable().__url=t}getTarget(){return this.getLatest().__target}setTarget(t){this.getWritable().__target=t}getRel(){return this.getLatest().__rel}setRel(t){this.getWritable().__rel=t}getTitle(){return this.getLatest().__title}setTitle(t){this.getWritable().__title=t}insertNewAfter(t,r=!0){const n=b_(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(n,r),n}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(t,r,n){if(!fr(r))return!1;const o=r.anchor.getNode(),i=r.focus.getNode();return this.isParentOf(o)&&this.isParentOf(i)&&r.getTextContent().length>0}};function Lft(e){let t=null;if(Fft(e)){const r=e.textContent;(r!==null&&r!==""||e.children.length>0)&&(t=b_(e.getAttribute("href")||"",{rel:e.getAttribute("rel"),target:e.getAttribute("target"),title:e.getAttribute("title")}))}return{node:t}}function b_(e,t){return DE(new k5(e,t))}function b0(e){return e instanceof k5}let Nz=class _ge extends k5{static getType(){return"autolink"}static clone(t){return new _ge(t.__url,{rel:t.__rel,target:t.__target,title:t.__title},t.__key)}static importJSON(t){const r=a6(t.url,{rel:t.rel,target:t.target,title:t.title});return r.setFormat(t.format),r.setIndent(t.indent),r.setDirection(t.direction),r}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),type:"autolink",version:1}}insertNewAfter(t,r=!0){const n=this.getParentOrThrow().insertNewAfter(t,r);if(Ir(n)){const o=a6(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return n.append(o),o}return null}};function a6(e,t){return DE(new Nz(e,t))}function jft(e){return e instanceof Nz}const zft=BE("TOGGLE_LINK_COMMAND");function Hft(e,t={}){const{target:r,title:n}=t,o=t.rel===void 0?"noreferrer":t.rel,i=rr();if(!fr(i))return;const s=i.extract();if(e===null)s.forEach(a=>{const u=a.getParent();if(b0(u)){const l=u.getChildren();for(let c=0;c{const c=l.getParent();if(c!==u&&c!==null&&(!Ir(l)||l.isInline())){if(b0(c))return u=c,c.setURL(e),r!==void 0&&c.setTarget(r),o!==null&&u.setRel(o),void(n!==void 0&&u.setTitle(n));if(c.is(a)||(a=c,u=b_(e,{rel:o,target:r,title:n}),b0(c)?l.getPreviousSibling()===null?c.insertBefore(u):c.insertAfter(u):l.insertBefore(u)),b0(l)){if(l.is(u))return;if(u!==null){const f=l.getChildren();for(let d=0;d{const{theme:n,namespace:o,editor__DEPRECATED:i,nodes:s,onError:a,editorState:u,html:l}=e,c=Uft(null,n);let f=i||null;if(f===null){const d=Kct({editable:e.editable,html:l,namespace:o,nodes:s,onError:h=>a(h,d),theme:n});(function(h,g){if(g!==null){if(g===void 0)h.update(()=>{const v=cs();if(v.isEmpty()){const y=ya();v.append(y);const E=Age?document.activeElement:null;(rr()!==null||E!==null&&E===h.getRootElement())&&y.select()}},Uw);else if(g!==null)switch(typeof g){case"string":{const v=h.parseEditorState(g);h.setEditorState(v,Uw);break}case"object":h.setEditorState(g,Uw);break;case"function":h.update(()=>{cs().isEmpty()&&g(h)},Uw)}}})(d,u),f=d}return[f,c]},[]);return Yft(()=>{const n=e.editable,[o]=r;o.setEditable(n===void 0||n)},[]),k.createElement(wge.Provider,{value:r},t)}const Qft=Object.freeze(Object.defineProperty({__proto__:null,LexicalComposer:Xft},Symbol.toStringTag,{value:"Module"})),Zft=Qft,Jft=Zft.LexicalComposer;function u6(){return u6=Object.assign?Object.assign.bind():function(e){for(var t=1;t{x&&x.ownerDocument&&x.ownerDocument.defaultView&&S.setRootElement(x)},[S]);return edt(()=>(A(S.isEditable()),S.registerEditableListener(x=>{A(x)})),[S]),k.createElement("div",u6({},_,{"aria-activedescendant":b?e:void 0,"aria-autocomplete":b?t:"none","aria-controls":b?r:void 0,"aria-describedby":n,"aria-expanded":b&&h==="combobox"?!!o:void 0,"aria-label":i,"aria-labelledby":s,"aria-multiline":a,"aria-owns":b?u:void 0,"aria-readonly":!b||void 0,"aria-required":l,autoCapitalize:c,className:f,contentEditable:b,"data-testid":E,id:d,ref:T,role:h,spellCheck:g,style:v,tabIndex:y}))}const rdt=Object.freeze(Object.defineProperty({__proto__:null,ContentEditable:tdt},Symbol.toStringTag,{value:"Module"})),ndt=rdt,odt=ndt.ContentEditable;function l6(e,t){return l6=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},l6(e,t)}var bte={error:null},idt=function(e){var t,r;function n(){for(var i,s=arguments.length,a=new Array(s),u=0;u1){const E=t._nodeMap,_=E.get(i.anchor.key),S=E.get(s.anchor.key);return _&&S&&!e._nodeMap.has(_.__key)&&ur(_)&&_.__text.length===1&&i.anchor.offset===1?_te:Uu}const u=a[0],l=e._nodeMap.get(u.__key);if(!ur(l)||!ur(u)||l.__mode!==u.__mode)return Uu;const c=l.__text,f=u.__text;if(c===f)return Uu;const d=i.anchor,h=s.anchor;if(d.key!==h.key||d.type!=="text")return Uu;const g=d.offset,v=h.offset,y=f.length-c.length;return y===1&&v===g-1?_te:y===-1&&v===g+1?fdt:y===-1&&v===g?ddt:Uu}function pdt(e,t){let r=Date.now(),n=Uu;return(o,i,s,a,u,l)=>{const c=Date.now();if(l.has("historic"))return n=Uu,r=c,f6;const f=hdt(o,i,a,u,e.isComposing()),d=(()=>{const h=s===null||s.editor===e,g=l.has("history-push");if(!g&&h&&l.has("history-merge"))return Yw;if(o===null)return c6;const v=i._selection;return a.size>0||u.size>0?g===!1&&f!==Uu&&f===n&&c{const d=t.current,h=t.redoStack,g=t.undoStack,v=d===null?null:d.editorState;if(d!==null&&a===v)return;const y=n(u,a,d,l,c,f);if(y===c6)h.length!==0&&(t.redoStack=[],e.dispatchCommand(Gw,!1)),d!==null&&(g.push({...d}),e.dispatchCommand(Vw,!0));else if(y===f6)return;t.current={editor:e,editorState:a}},i=Wf(e.registerCommand(Wct,()=>(function(a,u){const l=u.redoStack,c=u.undoStack;if(c.length!==0){const f=u.current,d=c.pop();f!==null&&(l.push(f),a.dispatchCommand(Gw,!0)),c.length===0&&a.dispatchCommand(Vw,!1),u.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:"historic"})}}(e,t),!0),kr),e.registerCommand(jct,()=>(function(a,u){const l=u.redoStack,c=u.undoStack;if(l.length!==0){const f=u.current;f!==null&&(c.push(f),a.dispatchCommand(Vw,!0));const d=l.pop();l.length===0&&a.dispatchCommand(Gw,!1),u.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:"historic"})}}(e,t),!0),kr),e.registerCommand(bct,()=>(Ete(t),!1),kr),e.registerCommand(_ct,()=>(Ete(t),e.dispatchCommand(Gw,!1),e.dispatchCommand(Vw,!1),!0),kr),e.registerUpdateListener(o)),s=e.registerUpdateListener(o);return()=>{i(),s()}}function vdt(){return{current:null,redoStack:[],undoStack:[]}}const mdt=Object.freeze(Object.defineProperty({__proto__:null,createEmptyHistoryState:vdt,registerHistory:gdt},Symbol.toStringTag,{value:"Module"})),kge=mdt,xge=kge.createEmptyHistoryState,ydt=kge.registerHistory;function bdt({externalHistoryState:e}){const[t]=Li();return function(r,n,o=1e3){const i=k.useMemo(()=>n||xge(),[n]);k.useEffect(()=>ydt(r,i,o),[o,r,i])}(t,e),null}const _dt=Object.freeze(Object.defineProperty({__proto__:null,HistoryPlugin:bdt,createEmptyHistoryState:xge},Symbol.toStringTag,{value:"Module"})),Edt=_dt,Sdt=Edt.HistoryPlugin;var wdt=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?k.useLayoutEffect:k.useEffect;function Adt({ignoreHistoryMergeTagChange:e=!0,ignoreSelectionChange:t=!1,onChange:r}){const[n]=Li();return wdt(()=>{if(r)return n.registerUpdateListener(({editorState:o,dirtyElements:i,dirtyLeaves:s,prevEditorState:a,tags:u})=>{t&&i.size===0&&s.size===0||e&&u.has("history-merge")||a.isEmpty()||r(o,n,u)})},[n,e,t,r]),null}const kdt=Object.freeze(Object.defineProperty({__proto__:null,OnChangePlugin:Adt},Symbol.toStringTag,{value:"Module"})),xdt=kdt,Tge=xdt.OnChangePlugin;var Tdt=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?k.useLayoutEffect:k.useEffect;function Idt(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}function Cdt(){return function(e){const[t]=Li(),r=k.useMemo(()=>e(t),[t,e]),n=k.useRef(r.initialValueFn()),[o,i]=k.useState(n.current);return Tdt(()=>{const{initialValueFn:s,subscribe:a}=r,u=s();return n.current!==u&&(n.current=u,i(u)),a(l=>{n.current=l,i(l)})},[r,e]),o}(Idt)}const Ndt=Object.freeze(Object.defineProperty({__proto__:null,default:Cdt},Symbol.toStringTag,{value:"Module"})),Rdt=Ndt,Odt=Rdt.default;function Ddt(e,t){let r=e.getFirstChild(),n=0;e:for(;r!==null;){if(Ir(r)){const s=r.getFirstChild();if(s!==null){r=s;continue}}else if(ur(r)){const s=r.getTextContentSize();if(n+s>t)return{node:r,offset:t-n};n+=s}const o=r.getNextSibling();if(o!==null){r=o;continue}let i=r.getParent();for(;i!==null;){const s=i.getNextSibling();if(s!==null){r=s;continue e}i=i.getParent()}break}return null}function Oz(e,t=!0){if(e)return!1;let r=Ige();return t&&(r=r.trim()),r===""}function Fdt(e,t){return()=>Oz(e,t)}function Ige(){return cs().getTextContent()}function Cge(e){if(!Oz(e,!1))return!1;const t=cs().getChildren(),r=t.length;if(r>1)return!1;for(let n=0;nCge(e)}function Mdt(e,t,r,n){const o=s=>s instanceof r,i=s=>{const a=Zh(s.getTextContent());a.setFormat(s.getFormat()),s.replace(a)};return[e.registerNodeTransform(y_,s=>{if(!s.isSimpleText())return;const a=s.getPreviousSibling();let u,l=s.getTextContent(),c=s;if(ur(a)){const f=a.getTextContent(),d=t(f+l);if(o(a)){if(d===null||(h=>h.getLatest().__mode)(a)!==0)return void i(a);{const h=d.end-f.length;if(h>0){const g=f+l.slice(0,h);if(a.select(),a.setTextContent(g),h===l.length)s.remove();else{const v=l.slice(h);s.setTextContent(v)}return}}}else if(d===null||d.start{const a=s.getTextContent(),u=t(a);if(u===null||u.start!==0)return void i(s);if(a.length>u.end)return void s.splitText(u.end);const l=s.getPreviousSibling();ur(l)&&l.isTextEntity()&&(i(l),i(s));const c=s.getNextSibling();ur(c)&&c.isTextEntity()&&(i(c),o(s)&&i(s))})]}const Ldt=Object.freeze(Object.defineProperty({__proto__:null,$canShowPlaceholder:Cge,$canShowPlaceholderCurry:Bdt,$findTextIntersectionFromCharacters:Ddt,$isRootTextContentEmpty:Oz,$isRootTextContentEmptyCurry:Fdt,$rootTextContent:Ige,registerLexicalTextEntity:Mdt},Symbol.toStringTag,{value:"Module"})),jdt=Ldt,zdt=jdt.$canShowPlaceholderCurry;function Hdt(e){const t=window.location.origin,r=n=>{if(n.origin!==t)return;const o=e.getRootElement();if(document.activeElement!==o)return;const i=n.data;if(typeof i=="string"){let s;try{s=JSON.parse(i)}catch{return}if(s&&s.protocol==="nuanria_messaging"&&s.type==="request"){const a=s.payload;if(a&&a.functionId==="makeChanges"){const u=a.args;if(u){const[l,c,f,d,h,g]=u;e.update(()=>{const v=rr();if(fr(v)){const y=v.anchor;let E=y.getNode(),_=0,S=0;if(ur(E)&&l>=0&&c>=0&&(_=l,S=l+c,v.setTextNodeRange(E,_,E,S)),_===S&&f===""||(v.insertRawText(f),E=y.getNode()),ur(E)){_=d,S=d+h;const b=E.getTextContentSize();_=_>b?b:_,S=S>b?b:S,v.setTextNodeRange(E,_,E,S)}n.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",r,!0),()=>{window.removeEventListener("message",r,!0)}}const $dt=Object.freeze(Object.defineProperty({__proto__:null,registerDragonSupport:Hdt},Symbol.toStringTag,{value:"Module"})),Pdt=$dt,qdt=Pdt.registerDragonSupport;function Wdt(e,t){const r=t.body?t.body.childNodes:[];let n=[];for(let o=0;o"u"||typeof window>"u"&&global.window===void 0)throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");const r=document.createElement("div"),n=cs().getChildren();for(let o=0;oYdt?(e||window).getSelection():null;function Bge(e){const t=rr();if(t==null)throw Error("Expected valid LexicalSelection");return fr(t)&&t.isCollapsed()||t.getNodes().length===0?"":Vdt(e,t)}function Mge(e){const t=rr();if(t==null)throw Error("Expected valid LexicalSelection");return fr(t)&&t.isCollapsed()||t.getNodes().length===0?null:JSON.stringify(jge(e,t))}function Xdt(e,t){const r=e.getData("text/plain")||e.getData("text/uri-list");r!=null&&t.insertRawText(r)}function Qdt(e,t,r){const n=e.getData("application/x-lexical-editor");if(n)try{const s=JSON.parse(n);if(s.namespace===r._config.namespace&&Array.isArray(s.nodes))return d6(r,zge(s.nodes),t)}catch{}const o=e.getData("text/html");if(o)try{const s=new DOMParser().parseFromString(o,"text/html");return d6(r,Udt(r,s),t)}catch{}const i=e.getData("text/plain")||e.getData("text/uri-list");if(i!=null)if(fr(t)){const s=i.split(/(\r?\n|\t)/);s[s.length-1]===""&&s.pop();for(let a=0;a0?u.text=l:o=!1}for(let l=0;l{e.update(()=>{a(gte(e,t))})});const r=e.getRootElement(),n=e._window==null?window.document:e._window.document,o=Nge(e._window);if(r===null||o===null)return!1;const i=n.createElement("span");i.style.cssText="position: fixed; top: -1000px;",i.append(n.createTextNode("#")),r.append(i);const s=new Range;return s.setStart(i,0),s.setEnd(i,1),o.removeAllRanges(),o.addRange(s),new Promise((a,u)=>{const l=e.registerCommand(J0e,c=>(xh(c,ClipboardEvent)&&(l(),r0!==null&&(window.clearTimeout(r0),r0=null),a(gte(e,c))),!0),fct);r0=window.setTimeout(()=>{l(),r0=null,a(!1)},50),n.execCommand("copy"),i.remove()})}function gte(e,t){const r=Nge(e._window);if(!r)return!1;const n=r.anchorNode,o=r.focusNode;if(n!==null&&o!==null&&!zct(e,n,o))return!1;t.preventDefault();const i=t.clipboardData,s=tr();if(i===null||s===null)return!1;const a=Cge(e),u=Rge(e);let l="";return s!==null&&(l=s.getTextContent()),a!==null&&i.setData("text/html",a),u!==null&&i.setData("application/x-lexical-editor",u),i.setData("text/plain",l),!0}const qdt=Object.freeze(Object.defineProperty({__proto__:null,$generateJSONFromSelectedNodes:Dge,$generateNodesFromSerializedNodes:Fge,$getHtmlContent:Cge,$getLexicalContent:Rge,$insertDataTransferForPlainText:Hdt,$insertDataTransferForRichText:$dt,$insertGeneratedNodes:u6,copyToClipboard:Pdt},Symbol.toStringTag,{value:"Module"})),Bge=qdt,vte=Bge.$insertDataTransferForRichText,mte=Bge.copyToClipboard;function yte(e,t){if(document.caretRangeFromPoint!==void 0){const r=document.caretRangeFromPoint(e,t);return r===null?null:{node:r.startContainer,offset:r.startOffset}}if(document.caretPositionFromPoint!=="undefined"){const r=document.caretPositionFromPoint(e,t);return r===null?null:{node:r.offsetNode,offset:r.offset}}return null}const qv=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,Wdt=qv&&"documentMode"in document?document.documentMode:null,Kdt=!(!qv||!("InputEvent"in window)||Wdt)&&"getTargetRanges"in new window.InputEvent("input"),Gdt=qv&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Vdt=qv&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Udt=qv&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Ydt=qv&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!Udt,l6=OE("DRAG_DROP_PASTE_FILE");class DE extends b5{static getType(){return"quote"}static clone(t){return new DE(t.__key)}constructor(t){super(t)}createDOM(t){const r=document.createElement("blockquote");return Ez(r,t.theme.quote),r}updateDOM(t,r){return!1}static importDOM(){return{blockquote:t=>({conversion:Qdt,priority:0})}}exportDOM(t){const{element:r}=super.exportDOM(t);if(r&&Sz(r)){this.isEmpty()&&r.append(document.createElement("br"));const n=this.getFormatType();r.style.textAlign=n;const o=this.getDirection();o&&(r.dir=o)}return{element:r}}static importJSON(t){const r=Tz();return r.setFormat(t.format),r.setIndent(t.indent),r.setDirection(t.direction),r}exportJSON(){return{...super.exportJSON(),type:"quote"}}insertNewAfter(t,r){const n=ya(),o=this.getDirection();return n.setDirection(o),this.insertAfter(n,r),n}collapseAtStart(){const t=ya();return this.getChildren().forEach(r=>t.append(r)),this.replace(t),!0}}function Tz(){return CE(new DE)}function Xdt(e){return e instanceof DE}class FE extends b5{static getType(){return"heading"}static clone(t){return new FE(t.__tag,t.__key)}constructor(t,r){super(r),this.__tag=t}getTag(){return this.__tag}createDOM(t){const r=this.__tag,n=document.createElement(r),o=t.theme.heading;if(o!==void 0){const i=o[r];Ez(n,i)}return n}updateDOM(t,r){return!1}static importDOM(){return{h1:t=>({conversion:n0,priority:0}),h2:t=>({conversion:n0,priority:0}),h3:t=>({conversion:n0,priority:0}),h4:t=>({conversion:n0,priority:0}),h5:t=>({conversion:n0,priority:0}),h6:t=>({conversion:n0,priority:0}),p:t=>{const r=t.firstChild;return r!==null&&bte(r)?{conversion:()=>({node:null}),priority:3}:null},span:t=>bte(t)?{conversion:r=>({node:W0("h1")}),priority:3}:null}}exportDOM(t){const{element:r}=super.exportDOM(t);if(r&&Sz(r)){this.isEmpty()&&r.append(document.createElement("br"));const n=this.getFormatType();r.style.textAlign=n;const o=this.getDirection();o&&(r.dir=o)}return{element:r}}static importJSON(t){const r=W0(t.tag);return r.setFormat(t.format),r.setIndent(t.indent),r.setDirection(t.direction),r}exportJSON(){return{...super.exportJSON(),tag:this.getTag(),type:"heading",version:1}}insertNewAfter(t,r=!0){const n=t?t.anchor.offset:0,o=n!==this.getTextContentSize()&&t?W0(this.getTag()):ya(),i=this.getDirection();if(o.setDirection(i),this.insertAfter(o,r),n===0&&!this.isEmpty()&&t){const s=ya();s.select(),this.replace(s,!0)}return o}collapseAtStart(){const t=this.isEmpty()?ya():W0(this.getTag());return this.getChildren().forEach(r=>t.append(r)),this.replace(t),!0}extractWithChild(){return!0}}function bte(e){return e.nodeName.toLowerCase()==="span"&&e.style.fontSize==="26pt"}function n0(e){const t=e.nodeName.toLowerCase();let r=null;return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6"||(r=W0(t),e.style!==null&&r.setFormat(e.style.textAlign)),{node:r}}function Qdt(e){const t=Tz();return e.style!==null&&t.setFormat(e.style.textAlign),{node:t}}function W0(e){return CE(new FE(e))}function Zdt(e){return e instanceof FE}function wy(e){let t=null;if(xh(e,DragEvent)?t=e.dataTransfer:xh(e,ClipboardEvent)&&(t=e.clipboardData),t===null)return[!1,[],!1];const r=t.types,n=r.includes("Files"),o=r.includes("text/html")||r.includes("text/plain");return[n,Array.from(t.files),o]}function _te(e){const t=tr();if(!cr(t))return!1;const r=new Set,n=t.getNodes();for(let o=0;o0}function Vw(e){const t=p_(e);return jh(t)}function Jdt(e){return qf(e.registerCommand(Z0e,t=>{const r=tr();return!!Ui(r)&&(r.clear(),!0)},0),e.registerCommand(R3,t=>{const r=tr();return!!cr(r)&&(r.deleteCharacter(t),!0)},kr),e.registerCommand(gct,t=>{const r=tr();return!!cr(r)&&(r.deleteWord(t),!0)},kr),e.registerCommand(pct,t=>{const r=tr();return!!cr(r)&&(r.deleteLine(t),!0)},kr),e.registerCommand(dct,t=>{const r=tr();if(typeof t=="string")r!==null&&r.insertText(t);else{if(r===null)return!1;const n=t.dataTransfer;if(n!=null)vte(n,r,e);else if(cr(r)){const o=t.data;return o&&r.insertText(o),!0}}return!0},kr),e.registerCommand(Nct,()=>{const t=tr();return!!cr(t)&&(t.removeText(),!0)},kr),e.registerCommand(yct,t=>{const r=tr();return!!cr(r)&&(r.formatText(t),!0)},kr),e.registerCommand(mct,t=>{const r=tr();if(!cr(r)&&!Ui(r))return!1;const n=r.getNodes();for(const o of n){const i=Sft(o,s=>Tr(s)&&!s.isInline());i!==null&&i.setFormat(t)}return!0},kr),e.registerCommand(rte,t=>{const r=tr();return!!cr(r)&&(r.insertLineBreak(t),!0)},kr),e.registerCommand(nte,()=>{const t=tr();return!!cr(t)&&(t.insertParagraph(),!0)},kr),e.registerCommand(_ct,()=>(vz([X0e()]),!0),kr),e.registerCommand(bct,()=>_te(t=>{const r=t.getIndent();t.setIndent(r+1)}),kr),e.registerCommand(ote,()=>_te(t=>{const r=t.getIndent();r>0&&t.setIndent(r-1)}),kr),e.registerCommand(kct,t=>{const r=tr();if(Ui(r)&&!Vw(t.target)){const n=r.getNodes();if(n.length>0)return n[0].selectPrevious(),!0}else if(cr(r)){const n=t6(r.focus,!0);if(!t.shiftKey&&jh(n)&&!n.isIsolated()&&!n.isInline())return n.selectPrevious(),t.preventDefault(),!0}return!1},kr),e.registerCommand(Ect,t=>{const r=tr();if(Ui(r)){const n=r.getNodes();if(n.length>0)return n[0].selectNext(0,0),!0}else if(cr(r)){if(function(o){const i=o.focus;return i.key==="root"&&i.offset===cs().getChildrenSize()}(r))return t.preventDefault(),!0;const n=t6(r.focus,!1);if(!t.shiftKey&&jh(n)&&!n.isIsolated()&&!n.isInline())return n.selectNext(),t.preventDefault(),!0}return!1},kr),e.registerCommand(Sct,t=>{const r=tr();if(Ui(r)){const n=r.getNodes();if(n.length>0)return t.preventDefault(),n[0].selectPrevious(),!0}if(!cr(r))return!1;if(cte(r,!0)){const n=t.shiftKey;return t.preventDefault(),lte(r,n,!0),!0}return!1},kr),e.registerCommand(wct,t=>{const r=tr();if(Ui(r)&&!Vw(t.target)){const o=r.getNodes();if(o.length>0)return t.preventDefault(),o[0].selectNext(0,0),!0}if(!cr(r))return!1;const n=t.shiftKey;return!!cte(r,!1)&&(t.preventDefault(),lte(r,n,!1),!0)},kr),e.registerCommand(ege,t=>{if(Vw(t.target))return!1;const r=tr();if(!cr(r))return!1;t.preventDefault();const{anchor:n}=r,o=n.getNode();return r.isCollapsed()&&n.offset===0&&!y5(o)&&hge(o).getIndent()>0?e.dispatchCommand(ote,void 0):e.dispatchCommand(R3,!0)},kr),e.registerCommand(tge,t=>{if(Vw(t.target))return!1;const r=tr();return!!cr(r)&&(t.preventDefault(),e.dispatchCommand(R3,!1))},kr),e.registerCommand(rge,t=>{const r=tr();if(!cr(r))return!1;if(t!==null){if((Vdt||Gdt||Ydt)&&Kdt)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(rte,!1)}return e.dispatchCommand(nte,void 0)},kr),e.registerCommand(nge,()=>{const t=tr();return!!cr(t)&&(e.blur(),!0)},kr),e.registerCommand(bz,t=>{const[,r]=wy(t);if(r.length>0){const o=yte(t.clientX,t.clientY);if(o!==null){const{offset:i,node:s}=o,a=p_(s);if(a!==null){const u=Y0e();if(sr(a))u.anchor.set(a.getKey(),i,"text"),u.focus.set(a.getKey(),i,"text");else{const c=a.getParentOrThrow().getKey(),f=a.getIndexWithinParent()+1;u.anchor.set(c,f,"element"),u.focus.set(c,f,"element")}const l=sct(u);$v(l)}e.dispatchCommand(l6,r)}return t.preventDefault(),!0}const n=tr();return!!cr(n)},kr),e.registerCommand(yz,t=>{const[r]=wy(t),n=tr();return!(r&&!cr(n))},kr),e.registerCommand(mz,t=>{const[r]=wy(t),n=tr();if(r&&!cr(n))return!1;const o=yte(t.clientX,t.clientY);if(o!==null){const i=p_(o.node);jh(i)&&t.preventDefault()}return!0},kr),e.registerCommand(Dct,()=>(uct(),!0),kr),e.registerCommand(J0e,t=>(mte(e,xh(t,ClipboardEvent)?t:null),!0),kr),e.registerCommand(hct,t=>(async function(r,n){await mte(n,xh(r,ClipboardEvent)?r:null),n.update(()=>{const o=tr();cr(o)?o.removeText():Ui(o)&&o.getNodes().forEach(i=>i.remove())})}(t,e),!0),kr),e.registerCommand(Tct,t=>{const[,r,n]=wy(t);return r.length>0&&!n?(e.dispatchCommand(l6,r),!0):jct(t.target)?!1:tr()!==null&&(function(o,i){o.preventDefault(),i.update(()=>{const s=tr(),a=xh(o,InputEvent)||xh(o,KeyboardEvent)?null:o.clipboardData;a!=null&&s!==null&&vte(a,s,i)},{tag:"paste"})}(t,e),!0)},kr))}const e1t=Object.freeze(Object.defineProperty({__proto__:null,$createHeadingNode:W0,$createQuoteNode:Tz,$isHeadingNode:Zdt,$isQuoteNode:Xdt,DRAG_DROP_PASTE:l6,HeadingNode:FE,QuoteNode:DE,eventFiles:wy,registerRichText:Jdt},Symbol.toStringTag,{value:"Module"})),xz=e1t,t1t=xz.DRAG_DROP_PASTE,Ete=xz.eventFiles,r1t=xz.registerRichText;var c6=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?k.useLayoutEffect:k.useEffect;function Ste(e){return e.getEditorState().read(Ndt(e.isComposing()))}function n1t({contentEditable:e,placeholder:t,ErrorBoundary:r}){const[n]=Li(),o=function(i,s){const[a,u]=k.useState(()=>i.getDecorators());return c6(()=>i.registerDecoratorListener(l=>{li.flushSync(()=>{u(l)})}),[i]),k.useEffect(()=>{u(i.getDecorators())},[i]),k.useMemo(()=>{const l=[],c=Object.keys(a);for(let f=0;fi._onError(v)},k.createElement(k.Suspense,{fallback:null},a[d])),g=i.getElementByKey(d);g!==null&&l.push(li.createPortal(h,g,d))}return l},[s,a,i])}(n,r);return function(i){c6(()=>qf(r1t(i),Ddt(i)),[i])}(n),k.createElement(k.Fragment,null,e,k.createElement(o1t,{content:t}),o)}function o1t({content:e}){const[t]=Li(),r=function(o){const[i,s]=k.useState(()=>Ste(o));return c6(()=>{function a(){const u=Ste(o);s(u)}return a(),qf(o.registerUpdateListener(()=>{a()}),o.registerEditableListener(()=>{a()}))},[o]),i}(t),n=Sdt();return r?typeof e=="function"?e(n):e:null}const i1t=Object.freeze(Object.defineProperty({__proto__:null,RichTextPlugin:n1t},Symbol.toStringTag,{value:"Module"})),s1t=i1t,a1t=s1t.RichTextPlugin;var Nr=(e=>(e.IMAGE="image",e.TEXT="text",e))(Nr||{});const OT="fake:",u1t=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function wte(e,t){return e.getEditorState().read(()=>{const r=RE(t);return r!==null&&r.isSelected()})}function l1t(e){const[t]=Li(),[r,n]=k.useState(()=>wte(t,e));return k.useEffect(()=>{let o=!0;const i=t.registerUpdateListener(()=>{o&&n(wte(t,e))});return()=>{o=!1,i()}},[t,e]),[r,k.useCallback(o=>{t.update(()=>{let i=tr();Ui(i)||(i=ect(),$v(i)),Ui(i)&&(o?i.add(e):i.delete(e))})},[t,e]),k.useCallback(()=>{t.update(()=>{const o=tr();Ui(o)&&o.clear()})},[t])]}const c1t=Object.freeze(Object.defineProperty({__proto__:null,useLexicalNodeSelection:l1t},Symbol.toStringTag,{value:"Module"})),f1t=c1t,d1t=f1t.useLexicalNodeSelection;function h1t(e){const t=k.useRef(e);return k.useLayoutEffect(()=>{t.current=e}),k.useCallback((...r)=>{const n=t.current;return n(...r)},[])}const Iz=OE("INSERT_IMAGE_COMMAND"),Mge=OE("INSERT_MULTIPLE_NODES_COMMAND"),kte=OE("RIGHT_CLICK_IMAGE_COMMAND");class Lge extends ppe{constructor(t){super(),this.editor$=new qo(void 0),this.maxHeight$=new qo(void 0),this.resolveUrlByPath$=new qo(void 0),this.resolveUrlByFile$=new qo(void 0),this._resetEditorState=t.resetEditorState,this._replaceImageSrc=t.replaceImageSrc,this._extractEditorData=t.extractEditorData}get requiredEditor(){const t=this.editor$.getSnapshot();if(!t)throw new Error("[RichEditor] editor is not prepared.");return t}focus(){this.requiredEditor.focus()}getContent(){const r=this.requiredEditor.getEditorState();return this._extractEditorData(r)}insert(t){this.requiredEditor.dispatchCommand(Mge,{nodes:t})}isEmpty(){return this.requiredEditor.getEditorState().read(()=>{const o=cs(),i=o.getFirstChild();return i?o.getChildrenSize()===1&&i instanceof b5?i.isEmpty():!1:!0})}replaceImageSrc(t,r){const n=this.editor$.getSnapshot();if(!n)throw new Error("[RichEditor] editor is not prepared.");this._replaceImageSrc(n,t,r)}reset(t){const r=this.requiredEditor;this._resetEditorState(t)(r)}async resolveUrlByFile(t){const r=this.resolveUrlByFile$.getSnapshot();return r?r(t):""}async resolveUrlByPath(t){if(t.startsWith(OT))return t;const r=this.resolveUrlByPath$.getSnapshot();return(r==null?void 0:r(t))??t}}const jge=k.createContext({viewmodel:new Lge({extractEditorData:()=>[],resetEditorState:()=>()=>{},replaceImageSrc:()=>{}})}),S5=()=>{const e=k.useContext(jge),t=k.useContext(yge),r=(t==null?void 0:t[0])??void 0;return r&&e.viewmodel.editor$.next(r),e},zge=()=>{const[e]=Li(),{viewmodel:t}=S5(),r=to(t.maxHeight$);return h1t(()=>{if(r===void 0)return;const o=e==null?void 0:e.getRootElement();if(o){o.style.height="24px";const i=Math.min(r,o.scrollHeight);o.style.height=`${i}px`}})},Ate=new Set;function p1t(e){Ate.has(e)||new Promise(t=>{const r=new Image;r.src=e,r.onload=()=>{Ate.add(e),t(null)}})}function g1t({alt:e,className:t,imageRef:r,src:n,width:o,height:i,maxWidth:s,onLoad:a}){return p1t(n),C.jsx("img",{className:t||void 0,src:n,alt:e,ref:r,style:{height:i,maxWidth:s,width:o,border:"1px solid #E5E5E5"},draggable:!1,onLoad:a})}const v1t=e=>{const{viewmodel:t}=S5(),r=zge(),{src:n,alt:o,nodeKey:i,width:s,height:a,maxWidth:u,isImageNode:l}=e,[c,f]=k.useState(n),d=k.useRef(null),h=k.useRef(null),[g,v,y]=d1t(i),[E]=Li(),[_,S]=k.useState(null),b=k.useRef(null),A=k.useCallback(z=>{if(g&&Ui(tr())){z.preventDefault();const P=RE(i);l(P)&&P.remove()}return!1},[g,i,l]),x=k.useCallback(z=>{const B=tr(),P=h.current;return g&&Ui(B)&&B.getNodes().length===1&&P!==null&&P!==document.activeElement?(z.preventDefault(),P.focus(),!0):!1},[g]),T=k.useCallback(z=>z.target===d.current?(z.preventDefault(),!0):!1,[]),N=k.useCallback(z=>h.current===z.target?($v(null),E.update(()=>{v(!0);const B=E.getRootElement();B!==null&&B.focus()}),!0):!1,[E,v]),I=k.useCallback(z=>{const B=z;return B.target===d.current?(B.shiftKey?v(!g):(y(),v(!0)),!0):!1},[g,v,y]),R=k.useCallback(z=>{E.getEditorState().read(()=>{const B=tr();z.target.tagName==="IMG"&&cr(B)&&B.getNodes().length===1&&E.dispatchCommand(kte,z)})},[E]);k.useEffect(()=>{let z=!1;return t.resolveUrlByPath(n).then(B=>{z||f(B)}),()=>{z=!0}},[t,n]),k.useEffect(()=>{let z=!0;const B=E.getRootElement(),P=qf(E.registerUpdateListener(({editorState:K})=>{z&&S(K.read(tr))}),E.registerCommand(Rct,(K,U)=>(b.current=U,!1),Gu),E.registerCommand(Z0e,I,Gu),E.registerCommand(kte,I,Gu),E.registerCommand(yz,T,Gu),E.registerCommand(tge,A,Gu),E.registerCommand(ege,A,Gu),E.registerCommand(rge,x,Gu),E.registerCommand(nge,N,Gu));return B==null||B.addEventListener("contextmenu",R),()=>{z=!1,P(),B==null||B.removeEventListener("contextmenu",R)}},[E,g,i,y,A,T,x,N,I,R,v]);const D=g&&Ui(_),M=g?`focused ${Ui(_)?"draggable":""}`:void 0,q=(c.startsWith(OT)?c.slice(OT.length):c).replace(/#[\s\S]*$/,"");return C.jsx(k.Suspense,{fallback:null,children:C.jsx("div",{draggable:D,children:C.jsx(g1t,{className:M,src:q,alt:o,imageRef:d,width:s,height:a,maxWidth:u,onLoad:r})})})};class yp extends vct{constructor(t,r,n,o,i,s){super(s),this.src=t,this.alt=r,this.maxWidth=n,this.width=o||"inherit",this.height=i||"inherit"}static getType(){return Nr.IMAGE}static clone(t){return new yp(t.src,t.alt,t.maxWidth,t.width,t.height,t.__key)}static importDOM(){return{img:t=>({conversion:m1t,priority:0})}}static importJSON(t){const{alt:r,height:n,width:o,maxWidth:i,src:s}=t;return Wv({alt:r,height:n,maxWidth:i,src:s,width:o})}exportDOM(){const t=document.createElement("img");return t.setAttribute("src",this.src),t.setAttribute("alt",this.alt),t.setAttribute("width",this.width.toString()),t.setAttribute("height",this.height.toString()),{element:t}}exportJSON(){return{alt:this.getAltText(),height:this.height==="inherit"?0:this.height,maxWidth:this.maxWidth,src:this.getSrc(),type:Nr.IMAGE,version:1,width:this.width==="inherit"?0:this.width}}setWidthAndHeight(t,r){const n=this.getWritable();n.width=t,n.height=r}createDOM(t){const r=document.createElement("span"),o=t.theme.image;return o!==void 0&&(r.className=o),r}updateDOM(){return!1}getSrc(){return this.src}getAltText(){return this.alt}decorate(){return C.jsx(k.Suspense,{fallback:null,children:C.jsx(v1t,{src:this.src,alt:this.alt,width:this.width,height:this.height,maxWidth:this.maxWidth,nodeKey:this.getKey(),isImageNode:Hge})})}}function Wv({alt:e,height:t,maxWidth:r=240,src:n,width:o,key:i}){return CE(new yp(n,e,r,o,t,i))}function Hge(e){return e instanceof yp}function m1t(e){if(e instanceof HTMLImageElement){const{alt:t,src:r,width:n,height:o}=e;return r.startsWith("blob:")?null:{node:Wv({alt:t,height:o,src:r,width:n})}}return null}const $ge=()=>{const[e]=Li();return re.useLayoutEffect(()=>qf(e.registerCommand(Mge,t=>{const{nodes:r}=t;if(r.length===1&&r[0].type===Nr.TEXT){const i=r[0];return e.update(()=>{const s=tr();s&&s.insertRawText(i.value)}),!0}let n;const o=[];for(const i of r)switch(i.type){case Nr.TEXT:{const s=Jh(i.value),a=ya();n=s,a.append(s),o.push(a);break}case Nr.IMAGE:{const s=Wv(i),a=ya();n=s,a.append(s),o.push(a);break}}return o.length<=0||(vz(o),n&&S1(n.getParentOrThrow())&&n.selectEnd()),!0},kr)),[e]),C.jsx(re.Fragment,{})};$ge.displayName="CommandPlugin";const y1t=["image/","image/heic","image/heif","image/gif","image/webp"],Pge=()=>{const[e]=Li(),{viewmodel:t}=S5();return k.useLayoutEffect(()=>e.registerCommand(t1t,r=>{return n(),!0;async function n(){for(const o of r)if(Aft(o,y1t)){const i=o.name,s=await t.resolveUrlByFile(o);e.dispatchCommand(Iz,{alt:i,src:s})}}},Gu),[e,t]),C.jsx(k.Fragment,{})};Pge.displayName="DragDropPastePlugin";class qge{constructor(t,r){this._x=t,this._y=r}get x(){return this._x}get y(){return this._y}equals(t){return this.x===t.x&&this.y===t.y}calcDeltaXTo(t){return this.x-t.x}calcDeltaYTo(t){return this.y-t.y}calcHorizontalDistanceTo(t){return Math.abs(this.calcDeltaXTo(t))}calcVerticalDistance(t){return Math.abs(this.calcDeltaYTo(t))}calcDistanceTo(t){const r=this.calcDeltaXTo(t)**2,n=this.calcDeltaYTo(t)**2;return Math.sqrt(r+n)}}function b1t(e){return e instanceof qge}class vh{constructor(t,r,n,o){const[i,s]=r<=o?[r,o]:[o,r],[a,u]=t<=n?[t,n]:[n,t];this._top=i,this._right=u,this._left=a,this._bottom=s}get top(){return this._top}get right(){return this._right}get bottom(){return this._bottom}get left(){return this._left}get width(){return Math.abs(this._left-this._right)}get height(){return Math.abs(this._bottom-this._top)}static fromLTRB(t,r,n,o){return new vh(t,r,n,o)}static fromLWTH(t,r,n,o){return new vh(t,n,t+r,n+o)}static fromPoints(t,r){const{y:n,x:o}=t,{y:i,x:s}=r;return vh.fromLTRB(o,n,s,i)}static fromDOM(t){const{top:r,width:n,left:o,height:i}=t.getBoundingClientRect();return vh.fromLWTH(o,n,r,i)}equals(t){return t.top===this._top&&t.bottom===this._bottom&&t.left===this._left&&t.right===this._right}contains(t){if(b1t(t)){const{x:r,y:n}=t,o=nthis._bottom,s=rthis._right;return{reason:{isOnBottomSide:i,isOnLeftSide:s,isOnRightSide:a,isOnTopSide:o},result:!o&&!i&&!s&&!a}}else{const{top:r,left:n,bottom:o,right:i}=t;return r>=this._top&&r<=this._bottom&&o>=this._top&&o<=this._bottom&&n>=this._left&&n<=this._right&&i>=this._left&&i<=this._right}}intersectsWith(t){const{left:r,top:n,width:o,height:i}=t,{left:s,top:a,width:u,height:l}=this,c=r+o>=s+u?r+o:s+u,f=n+i>=a+l?n+i:a+l,d=r<=s?r:s,h=n<=a?n:a;return c-d<=o+u&&f-h<=i+l}generateNewRect({left:t=this.left,top:r=this.top,right:n=this.right,bottom:o=this.bottom}){return new vh(t,r,n,o)}}const f6=4,_1t=2,E1t="draggable-block-menu",Tte="application/x-lexical-drag-block",xte=28,S1t=1,w1t=-1,Ite=0,Wge=e=>{const{anchorElem:t=document.body}=e,[r]=Li();return R1t(r,t,r._editable)};Wge.displayName="DraggableBlockPlugin";let Pk=1/0;function k1t(e){return e===0?1/0:Pk>=0&&Pkcs().getChildrenKeys())}function Kge(e){const t=(u,l)=>u?parseFloat(window.getComputedStyle(u)[l]):0,{marginTop:r,marginBottom:n}=window.getComputedStyle(e),o=t(e.previousElementSibling,"marginBottom"),i=t(e.nextElementSibling,"marginTop"),s=Math.max(parseFloat(r),o);return{marginBottom:Math.max(parseFloat(n),i),marginTop:s}}function D3(e,t,r,n=!1){const o=e.getBoundingClientRect(),i=A1t(t);let s=null;return t.getEditorState().read(()=>{if(n){const l=t.getElementByKey(i[0]),c=t.getElementByKey(i[i.length-1]),f=l==null?void 0:l.getBoundingClientRect(),d=c==null?void 0:c.getBoundingClientRect();if(f&&d&&(r.yd.bottom&&(s=c),s))return}let a=k1t(i.length),u=Ite;for(;a>=0&&a{n.transform=r})}function N1t(e,t,r,n){const{top:o,height:i}=t.getBoundingClientRect(),{top:s,width:a}=n.getBoundingClientRect(),{marginTop:u,marginBottom:l}=Kge(t);let c=o;r>=o?c+=i+l/2:c-=u/2;const f=c-s-_1t,d=xte-f6,h=e.style;h.transform=`translate(${d}px, ${f}px)`,h.width=`${a-(xte-f6)*2}px`,h.opacity=".4"}function C1t(e){const t=e==null?void 0:e.style;t&&(t.opacity="0",t.transform="translate(-10000px, -10000px)")}function R1t(e,t,r){const n=t.parentElement,o=k.useRef(null),i=k.useRef(null),s=k.useRef(!1),[a,u]=k.useState(null);k.useLayoutEffect(()=>{function f(h){const g=h.target;if(!F3(g)){u(null);return}if(T1t(g))return;const v=D3(t,e,h);u(v)}function d(){u(null)}return n==null||n.addEventListener("mousemove",f),n==null||n.addEventListener("mouseleave",d),()=>{n==null||n.removeEventListener("mousemove",f),n==null||n.removeEventListener("mouseleave",d)}},[n,t,e]),k.useEffect(()=>{o.current&&x1t(a,o.current,t)},[t,a]),k.useEffect(()=>{function f(h){if(!s.current)return!1;const[g]=Ete(h);if(g)return!1;const{pageY:v,target:y}=h;if(!F3(y))return!1;const E=D3(t,e,h,!0),_=i.current;return E===null||_===null?!1:(N1t(_,E,v,t),h.preventDefault(),!0)}function d(h){if(!s.current)return!1;const[g]=Ete(h);if(g)return!1;const{target:v,dataTransfer:y,pageY:E}=h,_=(y==null?void 0:y.getData(Tte))||"",S=RE(_);if(!S||!F3(v))return!1;const b=D3(t,e,h,!0);if(!b)return!1;const A=p_(b);if(!A)return!1;if(A===S)return!0;const x=b.getBoundingClientRect().top;return E>=x?A.insertAfter(S):A.insertBefore(S),u(null),!0}return qf(e.registerCommand(mz,h=>f(h),Gu),e.registerCommand(bz,h=>d(h),r6))},[t,e]);const l=f=>{const d=f.dataTransfer;if(!d||!a)return;I1t(d,a);let h="";e.update(()=>{const g=p_(a);g&&(h=g.getKey())}),s.current=!0,d.setData(Tte,h)},c=()=>{s.current=!1,C1t(i.current)};return li.createPortal(C.jsxs(k.Fragment,{children:[C.jsx("div",{className:"icon draggable-block-menu",role:"button",ref:o,draggable:!0,onDragStart:l,onDragEnd:c,children:C.jsx("div",{className:r?"icon":""})}),C.jsx("div",{className:"draggable-block-target-line",ref:i})]}),t)}const Gge=e=>{const{editable:t}=e,[r]=Li();return k.useEffect(()=>{r.setEditable(t)},[r,t]),C.jsx(k.Fragment,{})};Gge.displayName="EditablePlugin";const Vge=()=>{const[e]=Li();return k.useLayoutEffect(()=>{if(!e.hasNodes([yp]))throw new Error("[RichEditor] ImagesPlugin: ImageNode not registered on editor");return qf(e.registerCommand(Iz,D1t,kr),e.registerCommand(yz,F1t,r6),e.registerCommand(mz,B1t,Gu),e.registerCommand(bz,t=>M1t(t,e),r6))},[e]),C.jsx(k.Fragment,{})};Vge.displayName="ImagesPlugin";let Uw;const O1t=()=>{if(Uw===void 0){const e="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";Uw=document.createElement("img"),Uw.src=e}return Uw};function D1t(e){const t=Wv(e);return vz([t]),S1(t.getParentOrThrow())&&wft(t,ya).selectEnd(),!0}function F1t(e){const t=Nz();if(!t)return!1;const r=e.dataTransfer;if(!r)return!1;const n=O1t();return r.setData("text/plain","_"),r.setDragImage(n,0,0),r.setData("application/x-lexical-drag",JSON.stringify({type:Nr.IMAGE,data:{alt:t.alt,height:t.height,key:t.getKey(),maxWidth:t.maxWidth,src:t.src,width:t.width}})),!0}function B1t(e){return Nz()?(Uge(e)||e.preventDefault(),!0):!1}function M1t(e,t){const r=Nz();if(!r)return!1;const n=L1t(e);if(!n)return!1;if(e.preventDefault(),Uge(e)){const o=z1t(e);r.remove();const i=Y0e();o!=null&&i.applyDOMRange(o),$v(i),t.dispatchCommand(Iz,n)}return!0}function Nz(){const e=tr();if(!Ui(e))return null;const r=e.getNodes()[0];return Hge(r)?r:null}function L1t(e){var r;const t=(r=e.dataTransfer)==null?void 0:r.getData("application/x-lexical-drag");if(!t)return null;try{const{type:n,data:o}=JSON.parse(t);return n===Nr.IMAGE?o:null}catch{return null}}function Uge(e){const t=e.target;return!!(t&&t instanceof HTMLElement&&!t.closest("code, span.editor-image")&&t.parentElement&&t.parentElement.closest("div.ContentEditable__root"))}const j1t=e=>u1t?(e||window).getSelection():null;function z1t(e){const t=e,r=t.target,n=r==null?null:r.nodeType===9?r.defaultView:r.ownerDocument.defaultView,o=j1t(n);let i;if(document.caretRangeFromPoint)i=document.caretRangeFromPoint(t.clientX,t.clientY);else if(t.rangeParent&&o!==null)o.collapse(t.rangeParent,t.rangeOffset||0),i=o.getRangeAt(0);else throw Error("[RichEditor] ImagesPlugin: Cannot get the selection when dragging");return i}const Yge=e=>{const[t]=Li(),r=k.useRef(e.onKeyDown);return k.useLayoutEffect(()=>{const n=o=>{var i;(i=r.current)==null||i.call(r,o)};return t.registerRootListener((o,i)=>{i!==null&&i.removeEventListener("keydown",n),o!==null&&o.addEventListener("keydown",n)})},[t]),C.jsx(k.Fragment,{})};Yge.displayName="OnKeyDownPlugin";const Xge=()=>{const[e]=Li();return k.useLayoutEffect(()=>qf(e.registerUpdateListener(t=>{t.tags.has("paste")&&e.update(()=>{t.dirtyLeaves.forEach(r=>{const n=RE(r);if(sr(n)){const o=Jlt(n);o.setFormat(0),o.setStyle(""),n.replace(o)}})})}),e.registerNodeTransform(g_,t=>{const r=t.getParentOrThrow();if(Oft(r)){const n=Jh(r.__url);r.insertBefore(n),r.remove()}})),[e]),C.jsx(k.Fragment,{})};Xge.displayName="PlainContentPastePlugin";const Qge=e=>t=>{t.update(()=>{const r=cs();r.clear();for(const n of e)if(n!=null){if(typeof n=="string"){const o=Jh(n),i=ya();i.append(o),r.append(i);continue}if(typeof n=="object"){switch(n.type){case Nr.IMAGE:{const o=Wv({alt:n.alt,src:n.src}),i=ya();i.append(o),r.append(i);break}case Nr.TEXT:{const o=Jh(n.value),i=ya();i.append(o),r.append(i);break}default:throw console.log("item:",n),new TypeError(`[resetEditorState] unknown rich-editor content type: ${n.type}`)}continue}console.error("[resetEditorState] unknown rich-editor data:",n)}})},H1t=Cct.getType(),Zge=xct.getType(),$1t=g_.getType(),Jge=yp.getType(),P1t=Act.getType(),q1t=e=>{const t=e.toJSON(),r=[];for(const o of t.root.children)n(o);return r;function n(o){switch(o.type){case Jge:{const{src:i,alt:s}=o;if(i.startsWith(OT)){const a=r[r.length-1];(a==null?void 0:a.type)===Nr.TEXT&&(a.value+=` -`);break}r.push({type:Nr.IMAGE,src:i,alt:s});break}case P1t:{const i=r[r.length-1];(i==null?void 0:i.type)===Nr.TEXT&&(i.value+=` -`);break}case Zge:{const i=o.children;for(const s of i)n(s);break}case $1t:{const i=o.text,s=r[r.length-1];(s==null?void 0:s.type)===Nr.TEXT?s.value+=i:r.push({type:Nr.TEXT,value:i});break}default:throw new TypeError(`[RichEditor] [extractEditorData] Unknown node.type: (${o.type})`)}}},W1t=(e,t,r)=>{e.update(()=>{const n=cs();o(n);function o(i){switch(i.getType()){case H1t:case Zge:for(const s of i.getChildren())o(s);break;case Jge:{const s=i;if(s.getSrc()===t){const a=Wv({alt:s.getAltText(),src:r});s.replace(a)}break}}}})};class K1t extends k.Component{constructor(t){super(t),this.state={floatingAnchorElem:null};const{editable:r=!0,initialContent:n}=this.props;this.initialConfig={namespace:"react-simple-rich-editor",theme:{ltr:"ltr",rtl:"rtl",placeholder:o0.editorPlaceholder,paragraph:o0.editorParagraph},nodes:[yp,Dft],editable:r,editorState:n?Qge(n):null,onError:o=>{console.error(o)}},this.onKeyDown=this.onKeyDown.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.onChange=this.onChange.bind(this),this.onEditorInputWrapperRef=this.onEditorInputWrapperRef.bind(this)}render(){const{initialConfig:t,onKeyDown:r,onFocus:n,onBlur:o,onChange:i,onEditorInputWrapperRef:s}=this,{editable:a=!0,placeholder:u="Enter some text...",pluginsBeforeRichEditors:l=[],pluginsAfterRichEditors:c=[]}=this.props,{floatingAnchorElem:f}=this.state,d=vr(o0.editorContainer,this.props.editorContainerCls),h=vr(o0.editorInput,this.props.editorInputCls),g=vr(o0.editorInputBox,this.props.editorInputBoxCls),v=vr(o0.editorPlaceholder,this.props.editorPlaceholderCls),y=C.jsx("div",{ref:s,className:g,children:C.jsx(Uft,{onFocus:n,onBlur:o,className:h})});return C.jsxs(qft,{initialConfig:t,children:[C.jsx(Gge,{editable:a}),C.jsx($ge,{}),C.jsxs("div",{className:d,children:[l,C.jsx(a1t,{contentEditable:y,placeholder:C.jsx("div",{className:v,children:u}),ErrorBoundary:Jft}),c,C.jsx(Yge,{onKeyDown:r}),C.jsx(Sge,{onChange:i}),C.jsx(Pge,{}),C.jsx(Xge,{}),C.jsx(Vge,{}),C.jsx(ddt,{}),f&&C.jsx(Wge,{anchorElem:f})]})]})}onKeyDown(t){var r,n;(n=(r=this.props).onKeyDown)==null||n.call(r,t)}onFocus(t){var r,n;(n=(r=this.props).onFocus)==null||n.call(r,t)}onBlur(t){var r,n;(n=(r=this.props).onBlur)==null||n.call(r,t)}onChange(t){var r,n;(n=(r=this.props).onChange)==null||n.call(r,t)}onEditorInputWrapperRef(t){t!==null&&this.setState({floatingAnchorElem:t})}}const o0=Mi({editorContainer:{boxSizing:"border-box",position:"relative"},editorInputBox:{boxSizing:"border-box",overflow:"auto",border:"none",position:"relative",fontWeight:"400",textAlign:"left"},editorInput:{overflow:"auto",boxSizing:"border-box",resize:"none",fontSize:"15px",position:"relative",tabSize:"1",outline:"0","> :last-child":{marginBottom:0}},editorPlaceholder:{boxSizing:"border-box",color:"#999",overflow:"hidden",position:"absolute",textOverflow:"ellipsis",top:"0px",left:"0px",fontSize:"15px",userSelect:"none",display:"inline-block",pointerEvents:"none",width:"100%"},editorParagraph:{margin:"0 0 15px 0",position:"relative"}}),eve=k.forwardRef((e,t)=>{const[r]=k.useState(()=>new Lge({extractEditorData:q1t,replaceImageSrc:W1t,resetEditorState:Qge})),n=k.useMemo(()=>({viewmodel:r}),[r]);return r.resolveUrlByFile$.next(e.resolveUrlByFile),r.resolveUrlByPath$.next(e.resolveUrlByPath),k.useImperativeHandle(t,()=>({focus:()=>{n.viewmodel.focus()},getContent:()=>n.viewmodel.getContent(),insert:o=>{n.viewmodel.insert(o)},isEmpty:()=>n.viewmodel.isEmpty(),replaceImageSrc:(o,i)=>{n.viewmodel.replaceImageSrc(o,i)},reset:o=>{n.viewmodel.reset(o)}})),C.jsx(jge.Provider,{value:n,children:C.jsx(K1t,{...e})})});eve.displayName="ReactRichEditor";const tve=e=>{const{viewmodel:t}=S5(),{maxHeight:r}=e,n=zge();return k.useLayoutEffect(()=>{t.maxHeight$.next(r),n(),setTimeout(n,1e3)},[r,n]),C.jsx(Sge,{onChange:n,ignoreHistoryMergeTagChange:!0,ignoreSelectionChange:!0})};tve.displayName="AutoResizeTextBoxPlugin";const rve=e=>{const{editorRef:t,initialContent:r,disabled:n,placeholder:o,maxHeight:i=Number.MAX_SAFE_INTEGER,pluginsBeforeRichEditors:s,pluginsAfterRichEditors:a,className:u,onChange:l,onEnterKeyPress:c,resolveUrlByFile:f,resolveUrlByPath:d}=e,h=re.useRef(null),g=re.useMemo(()=>i!==void 0?[...a||[],C.jsx(tve,{maxHeight:i},"auto-resize-text-box")]:a,[i,a]),v=$j(E=>{E.key==="Enter"&&!E.shiftKey&&!E.ctrlKey&&(E.preventDefault(),c==null||c())});re.useImperativeHandle(t,()=>({clear:()=>{var E;return(E=h.current)==null?void 0:E.reset([])},focus:()=>{var E;return(E=h.current)==null?void 0:E.focus()},getContent:()=>{var E;return((E=h.current)==null?void 0:E.getContent())??[]},insert:E=>{var _;return(_=h.current)==null?void 0:_.insert(E)},isEmpty:()=>{var E;return((E=h.current)==null?void 0:E.isEmpty())??!0},replaceImageSrc:(E,_)=>{var S;return(S=h.current)==null?void 0:S.replaceImageSrc(E,_)},setContent:E=>{var _;return(_=h.current)==null?void 0:_.reset(E)}}));const y=G1t();return C.jsx("div",{className:Xe(y.editor,u),"data-disabled":n,children:C.jsx(eve,{ref:h,editable:!n,placeholder:o,initialContent:r,onChange:l,onKeyDown:v,pluginsBeforeRichEditors:s,pluginsAfterRichEditors:g,resolveUrlByFile:f,resolveUrlByPath:d})})};rve.displayName="RichTextEditorRenderer";const G1t=wr({editor:{...Ye.padding("8px"),...Ye.border("1px","solid",zt.colorNeutralBackground5),...Ye.borderRadius("4px"),boxSizing:"border-box",display:"block",width:"100%",userSelect:"none",position:"relative"}});function V1t(e){const{availableOnEmpty:t=!1,title:r,icon:n,className:o,onSend:i}=e,s=()=>{const{viewmodel:a}=Au(),u=to(a.disabled$),l=to(a.isOthersTyping$),c=_pe(),f=u||l||!t&&c,d=$j(()=>{(i??a.sendMessage)()});return C.jsx(Spe,{className:o,disabled:f,icon:n,title:r,onSend:d})};return s.displayName="SendAction",s}function U1t(e){const{className:t,header:r,main:n,footer:o}=e,i=Y1t();return C.jsxs("div",{className:Xe(i.chatbox,t),children:[C.jsx("div",{className:i.header,children:r},"header"),C.jsx("div",{className:i.main,children:n},"main"),C.jsx("div",{className:i.footer,children:o},"footer")]})}const Y1t=wr({chatbox:{...Ye.borderRadius("8px"),display:"flex",flexDirection:"column",alignItems:"stretch",backgroundColor:zt.colorNeutralBackground1,width:"100%",height:"100%",boxShadow:"0px 6.4px 14.4px rgba(0, 0, 0, 0.132), 0px 1.2px 3.6px rgba(0, 0, 0, 0.108)","::-webkit-scrollbar":{width:"4px",backgroundColor:zt.colorNeutralBackground1Hover},"::-webkit-scrollbar-thumb":{backgroundColor:zt.colorScrollbarOverlay,...Ye.border("1px","solid",zt.colorNeutralBackground1),...Ye.borderRadius("9999px")},"::-webkit-scrollbar-thumb:hover":{backgroundColor:zt.colorNeutralForeground1Static},"::-webkit-scrollbar-track":{...Ye.borderRadius("9999px"),backgroundColor:"transparent"}},header:{...Ye.flex(0,0,"auto")},main:{...Ye.flex(1,1,"auto"),...Ye.overflow("hidden","auto")},footer:{...Ye.flex(0,0,"auto")}});wr({header:{},topbar:{...Ye.padding("0px","16px"),...Ye.borderBottom("1px","solid",zt.colorNeutralBackground5),boxSizing:"border-box",display:"flex",justifyContent:"space-between",alignItems:"center",height:"48px"},toolbarTitle:{display:"flex",alignItems:"center",columnGap:"2px"},toolbarActionButton:{color:zt.colorNeutralForeground2}});const X1t=()=>{const{viewmodel:e}=Au(),t=to(e.locStrings$),r=Epe(t,e.calcContentForCopy);return re.useMemo(()=>[r],[r])};function nve(e){const{MessageAvatarRenderer:t,MessageContentRenderer:r,MessageErrorRenderer:n,MessageBubbleRenderer:o,MessageSenderRenderer:i,SessionSplitRenderer:s,TypingIndicatorRenderer:a=Mpe,className:u,bubbleClassName:l,sessionSplitClassName:c,typingClassName:f,containerRef:d,useMessageContextualMenuItems:h,useMessageActions:g=X1t}=e,{viewmodel:v}=Au(),y=to(v.messages$),E=to(v.isOthersTyping$),_=to(v.locStrings$),S=re.useRef(null);re.useLayoutEffect(()=>{let A=setTimeout(()=>{A=void 0,S.current&&(S.current.scrollTop=S.current.scrollHeight)},50);return()=>{A&&clearTimeout(A)}},[y]);const b=Q1t();return C.jsxs("div",{ref:A=>{S.current=A,d&&(d.current=A)},className:Xe(b.main,u),children:[C.jsx(jpe,{MessageAvatarRenderer:t,MessageBubbleRenderer:o,MessageContentRenderer:r,MessageErrorRenderer:n,MessageSenderRenderer:i,SessionSplitRenderer:s,locStrings:_,messages:y,bubbleClassName:l,sessionSplitClassName:c,useMessageContextualMenuItems:h,useMessageActions:g}),E&&C.jsx(a,{locStrings:_,className:f})]})}nve.displayName="ChatboxMain";const Q1t=wr({main:{...Ye.padding("0","16px"),...Ye.overflow("hidden","auto"),height:"100%"}});function ove(e){const{EditorRenderer:t,EditorActionRenderers:r,LeftToolbarRenderer:n=Sut,InputValidationRenderer:o=Tpe,MessageInputRenderer:i=qj,initialContent:s,maxInputHeight:a,className:u}=e,{viewmodel:l}=Au(),{editorRef:c,sendMessage:f,notifyInputContentChange:d}=l,h=to(l.locStrings$),g=to(l.disabled$),v=to(l.isOthersTyping$),y=g||v,E=Z1t();return C.jsxs("div",{className:Xe(E.footer,u),children:[C.jsx("div",{className:E.validation,children:C.jsx(o,{className:E.validationInner})}),C.jsxs("div",{className:E.footerContainer,children:[C.jsx("div",{className:E.leftToolbar,children:C.jsx(n,{})}),C.jsx(i,{EditorRenderer:t,EditorActionRenderers:r,editorRef:c,locStrings:h,disabled:y,initialContent:s,isOthersTyping:v,maxInputHeight:a,className:E.editor,onEnterKeyPress:f,onInputContentChange:d})]})]})}ove.displayName="ChatboxFooter";const Z1t=wr({footer:{...Ye.padding("16px"),boxSizing:"border-box"},footerContainer:{display:"flex"},leftToolbar:{...Ye.flex(0,0,"auto")},editor:{...Ye.flex(1),boxSizing:"border-box"},validation:{boxSizing:"border-box"},validationInner:{...Ye.border("1px","solid",zt.colorNeutralBackground5),...Ye.borderRadius("4px"),...Ye.margin("8px","0px"),...Ye.padding("2px","8px"),backgroundColor:zt.colorStatusWarningBackground1,color:zt.colorStatusWarningForeground1}});function J1t(e){const{alias:t,initialDisabled:r,initialMessages:n,locStrings:o,calcContentForCopy:i,makeUserMessage:s,sendMessage:a}=e,[u]=re.useState(()=>new ype({alias:t,initialDisabled:r,initialMessages:n,locStrings:o,calcContentForCopy:i,makeUserMessage:s,sendMessage:a})),l=re.useMemo(()=>({viewmodel:u}),[u]);return re.useEffect(()=>{o&&u.locStrings$.next(o)},[o,u]),re.useEffect(()=>{s&&u.setMakeUserMessage(s)},[s,u]),re.useEffect(()=>{a&&u.setSendMessage(a)},[a,u]),C.jsx(bpe.Provider,{value:l,children:e.children})}function eht(e){switch(e.type){case Nr.TEXT:return e.value;case Nr.IMAGE:return`![${e.alt}](${e.src})`;default:{const t=e;throw new Error(`Didn't expect to get here: ${t}`)}}}function tht(e){switch(e.type){case Nr.TEXT:return e.value;case Nr.IMAGE:return{"data:image/jpg;path":e.src};default:{const t=e;throw new Error(`Didn't expect to get here: ${t}`)}}}function rht(e){switch(e.type){case Nr.TEXT:return{type:"text",text:e.value};case Nr.IMAGE:return e.src.startsWith("http://")||e.src.startsWith("https://")?{type:"image_url",image_url:{url:e.src}}:{type:"image_file",image_file:{path:e.src}};default:{const t=e;throw new Error(`Didn't expect to get here: ${t}`)}}}function d6(e){return e.map(eht).filter(Boolean).join(` +`?t.insertParagraph():u===" "?t.insertNodes([tge()]):t.insertText(u)}}else t.insertRawText(i)}function d6(e,t,r){e.dispatchCommand(Pct,{nodes:t,selection:r})||r.insertNodes(t)}function Lge(e,t,r,n=[]){let o=t===null||r.isSelected(t);const i=Ir(r)&&r.excludeFromCopy("html");let s=r;if(t!==null){let l=Tz(r);l=ur(l)&&t!==null?dge(t,l):l,s=l}const a=Ir(s)?s.getChildren():[],u=function(l){const c=l.exportJSON(),f=l.constructor;if(c.type!==f.getType()&&Ste(58,f.name),Ir(l)){const d=c.children;Array.isArray(d)||Ste(59,f.name)}return c}(s);if(ur(s)){const l=s.__text;l.length>0?u.text=l:o=!1}for(let l=0;l{e.update(()=>{a(wte(e,t))})});const r=e.getRootElement(),n=e._window==null?window.document:e._window.document,o=Fge(e._window);if(r===null||o===null)return!1;const i=n.createElement("span");i.style.cssText="position: fixed; top: -1000px;",i.append(n.createTextNode("#")),r.append(i);const s=new Range;return s.setStart(i,0),s.setEnd(i,1),o.removeAllRanges(),o.addRange(s),new Promise((a,u)=>{const l=e.registerCommand(oge,c=>(xh(c,ClipboardEvent)&&(l(),n0!==null&&(window.clearTimeout(n0),n0=null),a(wte(e,c))),!0),Ect);n0=window.setTimeout(()=>{l(),n0=null,a(!1)},50),n.execCommand("copy"),i.remove()})}function wte(e,t){const r=Fge(e._window);if(!r)return!1;const n=r.anchorNode,o=r.focusNode;if(n!==null&&o!==null&&!Yct(e,n,o))return!1;t.preventDefault();const i=t.clipboardData,s=rr();if(i===null||s===null)return!1;const a=Bge(e),u=Mge(e);let l="";return s!==null&&(l=s.getTextContent()),a!==null&&i.setData("text/html",a),u!==null&&i.setData("application/x-lexical-editor",u),i.setData("text/plain",l),!0}const Jdt=Object.freeze(Object.defineProperty({__proto__:null,$generateJSONFromSelectedNodes:jge,$generateNodesFromSerializedNodes:zge,$getHtmlContent:Bge,$getLexicalContent:Mge,$insertDataTransferForPlainText:Xdt,$insertDataTransferForRichText:Qdt,$insertGeneratedNodes:d6,copyToClipboard:Zdt},Symbol.toStringTag,{value:"Module"})),Hge=Jdt,Ate=Hge.$insertDataTransferForRichText,kte=Hge.copyToClipboard;function xte(e,t){if(document.caretRangeFromPoint!==void 0){const r=document.caretRangeFromPoint(e,t);return r===null?null:{node:r.startContainer,offset:r.startOffset}}if(document.caretPositionFromPoint!=="undefined"){const r=document.caretPositionFromPoint(e,t);return r===null?null:{node:r.offsetNode,offset:r.offset}}return null}const Gv=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,e1t=Gv&&"documentMode"in document?document.documentMode:null,t1t=!(!Gv||!("InputEvent"in window)||e1t)&&"getTargetRanges"in new window.InputEvent("input"),r1t=Gv&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),n1t=Gv&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,o1t=Gv&&/^(?=.*Chrome).*/i.test(navigator.userAgent),i1t=Gv&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!o1t,h6=BE("DRAG_DROP_PASTE_FILE");class ME extends w5{static getType(){return"quote"}static clone(t){return new ME(t.__key)}constructor(t){super(t)}createDOM(t){const r=document.createElement("blockquote");return Iz(r,t.theme.quote),r}updateDOM(t,r){return!1}static importDOM(){return{blockquote:t=>({conversion:a1t,priority:0})}}exportDOM(t){const{element:r}=super.exportDOM(t);if(r&&Cz(r)){this.isEmpty()&&r.append(document.createElement("br"));const n=this.getFormatType();r.style.textAlign=n;const o=this.getDirection();o&&(r.dir=o)}return{element:r}}static importJSON(t){const r=Dz();return r.setFormat(t.format),r.setIndent(t.indent),r.setDirection(t.direction),r}exportJSON(){return{...super.exportJSON(),type:"quote"}}insertNewAfter(t,r){const n=ya(),o=this.getDirection();return n.setDirection(o),this.insertAfter(n,r),n}collapseAtStart(){const t=ya();return this.getChildren().forEach(r=>t.append(r)),this.replace(t),!0}}function Dz(){return DE(new ME)}function s1t(e){return e instanceof ME}class LE extends w5{static getType(){return"heading"}static clone(t){return new LE(t.__tag,t.__key)}constructor(t,r){super(r),this.__tag=t}getTag(){return this.__tag}createDOM(t){const r=this.__tag,n=document.createElement(r),o=t.theme.heading;if(o!==void 0){const i=o[r];Iz(n,i)}return n}updateDOM(t,r){return!1}static importDOM(){return{h1:t=>({conversion:o0,priority:0}),h2:t=>({conversion:o0,priority:0}),h3:t=>({conversion:o0,priority:0}),h4:t=>({conversion:o0,priority:0}),h5:t=>({conversion:o0,priority:0}),h6:t=>({conversion:o0,priority:0}),p:t=>{const r=t.firstChild;return r!==null&&Tte(r)?{conversion:()=>({node:null}),priority:3}:null},span:t=>Tte(t)?{conversion:r=>({node:K0("h1")}),priority:3}:null}}exportDOM(t){const{element:r}=super.exportDOM(t);if(r&&Cz(r)){this.isEmpty()&&r.append(document.createElement("br"));const n=this.getFormatType();r.style.textAlign=n;const o=this.getDirection();o&&(r.dir=o)}return{element:r}}static importJSON(t){const r=K0(t.tag);return r.setFormat(t.format),r.setIndent(t.indent),r.setDirection(t.direction),r}exportJSON(){return{...super.exportJSON(),tag:this.getTag(),type:"heading",version:1}}insertNewAfter(t,r=!0){const n=t?t.anchor.offset:0,o=n!==this.getTextContentSize()&&t?K0(this.getTag()):ya(),i=this.getDirection();if(o.setDirection(i),this.insertAfter(o,r),n===0&&!this.isEmpty()&&t){const s=ya();s.select(),this.replace(s,!0)}return o}collapseAtStart(){const t=this.isEmpty()?ya():K0(this.getTag());return this.getChildren().forEach(r=>t.append(r)),this.replace(t),!0}extractWithChild(){return!0}}function Tte(e){return e.nodeName.toLowerCase()==="span"&&e.style.fontSize==="26pt"}function o0(e){const t=e.nodeName.toLowerCase();let r=null;return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6"||(r=K0(t),e.style!==null&&r.setFormat(e.style.textAlign)),{node:r}}function a1t(e){const t=Dz();return e.style!==null&&t.setFormat(e.style.textAlign),{node:t}}function K0(e){return DE(new LE(e))}function u1t(e){return e instanceof LE}function Ay(e){let t=null;if(xh(e,DragEvent)?t=e.dataTransfer:xh(e,ClipboardEvent)&&(t=e.clipboardData),t===null)return[!1,[],!1];const r=t.types,n=r.includes("Files"),o=r.includes("text/html")||r.includes("text/plain");return[n,Array.from(t.files),o]}function Ite(e){const t=rr();if(!fr(t))return!1;const r=new Set,n=t.getNodes();for(let o=0;o0}function Xw(e){const t=m_(e);return Lh(t)}function l1t(e){return Wf(e.registerCommand(nge,t=>{const r=rr();return!!Ui(r)&&(r.clear(),!0)},0),e.registerCommand(B3,t=>{const r=rr();return!!fr(r)&&(r.deleteCharacter(t),!0)},kr),e.registerCommand(kct,t=>{const r=rr();return!!fr(r)&&(r.deleteWord(t),!0)},kr),e.registerCommand(Act,t=>{const r=rr();return!!fr(r)&&(r.deleteLine(t),!0)},kr),e.registerCommand(Sct,t=>{const r=rr();if(typeof t=="string")r!==null&&r.insertText(t);else{if(r===null)return!1;const n=t.dataTransfer;if(n!=null)Ate(n,r,e);else if(fr(r)){const o=t.data;return o&&r.insertText(o),!0}}return!0},kr),e.registerCommand(zct,()=>{const t=rr();return!!fr(t)&&(t.removeText(),!0)},kr),e.registerCommand(Ict,t=>{const r=rr();return!!fr(r)&&(r.formatText(t),!0)},kr),e.registerCommand(Tct,t=>{const r=rr();if(!fr(r)&&!Ui(r))return!1;const n=r.getNodes();for(const o of n){const i=Oft(o,s=>Ir(s)&&!s.isInline());i!==null&&i.setFormat(t)}return!0},kr),e.registerCommand(cte,t=>{const r=rr();return!!fr(r)&&(r.insertLineBreak(t),!0)},kr),e.registerCommand(fte,()=>{const t=rr();return!!fr(t)&&(t.insertParagraph(),!0)},kr),e.registerCommand(Nct,()=>(wz([tge()]),!0),kr),e.registerCommand(Cct,()=>Ite(t=>{const r=t.getIndent();t.setIndent(r+1)}),kr),e.registerCommand(dte,()=>Ite(t=>{const r=t.getIndent();r>0&&t.setIndent(r-1)}),kr),e.registerCommand(Fct,t=>{const r=rr();if(Ui(r)&&!Xw(t.target)){const n=r.getNodes();if(n.length>0)return n[0].selectPrevious(),!0}else if(fr(r)){const n=i6(r.focus,!0);if(!t.shiftKey&&Lh(n)&&!n.isIsolated()&&!n.isInline())return n.selectPrevious(),t.preventDefault(),!0}return!1},kr),e.registerCommand(Rct,t=>{const r=rr();if(Ui(r)){const n=r.getNodes();if(n.length>0)return n[0].selectNext(0,0),!0}else if(fr(r)){if(function(o){const i=o.focus;return i.key==="root"&&i.offset===cs().getChildrenSize()}(r))return t.preventDefault(),!0;const n=i6(r.focus,!1);if(!t.shiftKey&&Lh(n)&&!n.isIsolated()&&!n.isInline())return n.selectNext(),t.preventDefault(),!0}return!1},kr),e.registerCommand(Oct,t=>{const r=rr();if(Ui(r)){const n=r.getNodes();if(n.length>0)return t.preventDefault(),n[0].selectPrevious(),!0}if(!fr(r))return!1;if(yte(r,!0)){const n=t.shiftKey;return t.preventDefault(),mte(r,n,!0),!0}return!1},kr),e.registerCommand(Dct,t=>{const r=rr();if(Ui(r)&&!Xw(t.target)){const o=r.getNodes();if(o.length>0)return t.preventDefault(),o[0].selectNext(0,0),!0}if(!fr(r))return!1;const n=t.shiftKey;return!!yte(r,!1)&&(t.preventDefault(),mte(r,n,!1),!0)},kr),e.registerCommand(ige,t=>{if(Xw(t.target))return!1;const r=rr();if(!fr(r))return!1;t.preventDefault();const{anchor:n}=r,o=n.getNode();return r.isCollapsed()&&n.offset===0&&!S5(o)&&yge(o).getIndent()>0?e.dispatchCommand(dte,void 0):e.dispatchCommand(B3,!0)},kr),e.registerCommand(sge,t=>{if(Xw(t.target))return!1;const r=rr();return!!fr(r)&&(t.preventDefault(),e.dispatchCommand(B3,!1))},kr),e.registerCommand(age,t=>{const r=rr();if(!fr(r))return!1;if(t!==null){if((n1t||r1t||i1t)&&t1t)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(cte,!1)}return e.dispatchCommand(fte,void 0)},kr),e.registerCommand(uge,()=>{const t=rr();return!!fr(t)&&(e.blur(),!0)},kr),e.registerCommand(xz,t=>{const[,r]=Ay(t);if(r.length>0){const o=xte(t.clientX,t.clientY);if(o!==null){const{offset:i,node:s}=o,a=m_(s);if(a!==null){const u=ege();if(ur(a))u.anchor.set(a.getKey(),i,"text"),u.focus.set(a.getKey(),i,"text");else{const c=a.getParentOrThrow().getKey(),f=a.getIndexWithinParent()+1;u.anchor.set(c,f,"element"),u.focus.set(c,f,"element")}const l=vct(u);Wv(l)}e.dispatchCommand(h6,r)}return t.preventDefault(),!0}const n=rr();return!!fr(n)},kr),e.registerCommand(kz,t=>{const[r]=Ay(t),n=rr();return!(r&&!fr(n))},kr),e.registerCommand(Az,t=>{const[r]=Ay(t),n=rr();if(r&&!fr(n))return!1;const o=xte(t.clientX,t.clientY);if(o!==null){const i=m_(o.node);Lh(i)&&t.preventDefault()}return!0},kr),e.registerCommand(qct,()=>(yct(),!0),kr),e.registerCommand(oge,t=>(kte(e,xh(t,ClipboardEvent)?t:null),!0),kr),e.registerCommand(wct,t=>(async function(r,n){await kte(n,xh(r,ClipboardEvent)?r:null),n.update(()=>{const o=rr();fr(o)?o.removeText():Ui(o)&&o.getNodes().forEach(i=>i.remove())})}(t,e),!0),kr),e.registerCommand(Mct,t=>{const[,r,n]=Ay(t);return r.length>0&&!n?(e.dispatchCommand(h6,r),!0):Uct(t.target)?!1:rr()!==null&&(function(o,i){o.preventDefault(),i.update(()=>{const s=rr(),a=xh(o,InputEvent)||xh(o,KeyboardEvent)?null:o.clipboardData;a!=null&&s!==null&&Ate(a,s,i)},{tag:"paste"})}(t,e),!0)},kr))}const c1t=Object.freeze(Object.defineProperty({__proto__:null,$createHeadingNode:K0,$createQuoteNode:Dz,$isHeadingNode:u1t,$isQuoteNode:s1t,DRAG_DROP_PASTE:h6,HeadingNode:LE,QuoteNode:ME,eventFiles:Ay,registerRichText:l1t},Symbol.toStringTag,{value:"Module"})),Fz=c1t,f1t=Fz.DRAG_DROP_PASTE,Cte=Fz.eventFiles,d1t=Fz.registerRichText;var p6=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?k.useLayoutEffect:k.useEffect;function Nte(e){return e.getEditorState().read(zdt(e.isComposing()))}function h1t({contentEditable:e,placeholder:t,ErrorBoundary:r}){const[n]=Li(),o=function(i,s){const[a,u]=k.useState(()=>i.getDecorators());return p6(()=>i.registerDecoratorListener(l=>{li.flushSync(()=>{u(l)})}),[i]),k.useEffect(()=>{u(i.getDecorators())},[i]),k.useMemo(()=>{const l=[],c=Object.keys(a);for(let f=0;fi._onError(v)},k.createElement(k.Suspense,{fallback:null},a[d])),g=i.getElementByKey(d);g!==null&&l.push(li.createPortal(h,g,d))}return l},[s,a,i])}(n,r);return function(i){p6(()=>Wf(d1t(i),qdt(i)),[i])}(n),k.createElement(k.Fragment,null,e,k.createElement(p1t,{content:t}),o)}function p1t({content:e}){const[t]=Li(),r=function(o){const[i,s]=k.useState(()=>Nte(o));return p6(()=>{function a(){const u=Nte(o);s(u)}return a(),Wf(o.registerUpdateListener(()=>{a()}),o.registerEditableListener(()=>{a()}))},[o]),i}(t),n=Odt();return r?typeof e=="function"?e(n):e:null}const g1t=Object.freeze(Object.defineProperty({__proto__:null,RichTextPlugin:h1t},Symbol.toStringTag,{value:"Module"})),v1t=g1t,m1t=v1t.RichTextPlugin;var xr=(e=>(e.IMAGE="image",e.TEXT="text",e))(xr||{});const Lx="fake:",y1t=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Rte(e,t){return e.getEditorState().read(()=>{const r=FE(t);return r!==null&&r.isSelected()})}function b1t(e){const[t]=Li(),[r,n]=k.useState(()=>Rte(t,e));return k.useEffect(()=>{let o=!0;const i=t.registerUpdateListener(()=>{o&&n(Rte(t,e))});return()=>{o=!1,i()}},[t,e]),[r,k.useCallback(o=>{t.update(()=>{let i=rr();Ui(i)||(i=cct(),Wv(i)),Ui(i)&&(o?i.add(e):i.delete(e))})},[t,e]),k.useCallback(()=>{t.update(()=>{const o=rr();Ui(o)&&o.clear()})},[t])]}const _1t=Object.freeze(Object.defineProperty({__proto__:null,useLexicalNodeSelection:b1t},Symbol.toStringTag,{value:"Module"})),E1t=_1t,S1t=E1t.useLexicalNodeSelection;function w1t(e){const t=k.useRef(e);return k.useLayoutEffect(()=>{t.current=e}),k.useCallback((...r)=>{const n=t.current;return n(...r)},[])}const Bz=BE("INSERT_IMAGE_COMMAND"),$ge=BE("INSERT_MULTIPLE_NODES_COMMAND"),Ote=BE("RIGHT_CLICK_IMAGE_COMMAND");class Pge extends Epe{constructor(t){super(),this.editor$=new qo(void 0),this.maxHeight$=new qo(void 0),this.resolveUrlByPath$=new qo(void 0),this.resolveUrlByFile$=new qo(void 0),this._resetEditorState=t.resetEditorState,this._replaceImageSrc=t.replaceImageSrc,this._extractEditorData=t.extractEditorData}get requiredEditor(){const t=this.editor$.getSnapshot();if(!t)throw new Error("[RichEditor] editor is not prepared.");return t}focus(){this.requiredEditor.focus()}getContent(){const r=this.requiredEditor.getEditorState();return this._extractEditorData(r)}insert(t){this.requiredEditor.dispatchCommand($ge,{nodes:t})}isEmpty(){return this.requiredEditor.getEditorState().read(()=>{const o=cs(),i=o.getFirstChild();return i?o.getChildrenSize()===1&&i instanceof w5?i.isEmpty():!1:!0})}replaceImageSrc(t,r){const n=this.editor$.getSnapshot();if(!n)throw new Error("[RichEditor] editor is not prepared.");this._replaceImageSrc(n,t,r)}reset(t){const r=this.requiredEditor;this._resetEditorState(t)(r)}async resolveUrlByFile(t){const r=this.resolveUrlByFile$.getSnapshot();return r?r(t):""}async resolveUrlByPath(t){if(t.startsWith(Lx))return t;const r=this.resolveUrlByPath$.getSnapshot();return(r==null?void 0:r(t))??t}}const qge=k.createContext({viewmodel:new Pge({extractEditorData:()=>[],resetEditorState:()=>()=>{},replaceImageSrc:()=>{}})}),x5=()=>{const e=k.useContext(qge),t=k.useContext(wge),r=(t==null?void 0:t[0])??void 0;return r&&e.viewmodel.editor$.next(r),e},Wge=()=>{const[e]=Li(),{viewmodel:t}=x5(),r=ro(t.maxHeight$);return w1t(()=>{if(r===void 0)return;const o=e==null?void 0:e.getRootElement();if(o){o.style.height="24px";const i=Math.min(r,o.scrollHeight);o.style.height=`${i}px`}})},Dte=new Set;function A1t(e){Dte.has(e)||new Promise(t=>{const r=new Image;r.src=e,r.onload=()=>{Dte.add(e),t(null)}})}function k1t({alt:e,className:t,imageRef:r,src:n,width:o,height:i,maxWidth:s,onLoad:a}){return A1t(n),N.jsx("img",{className:t||void 0,src:n,alt:e,ref:r,style:{height:i,maxWidth:s,width:o,border:"1px solid #E5E5E5"},draggable:!1,onLoad:a})}const x1t=e=>{const{viewmodel:t}=x5(),r=Wge(),{src:n,alt:o,nodeKey:i,width:s,height:a,maxWidth:u,isImageNode:l}=e,[c,f]=k.useState(n),d=k.useRef(null),h=k.useRef(null),[g,v,y]=S1t(i),[E]=Li(),[_,S]=k.useState(null),b=k.useRef(null),A=k.useCallback(z=>{if(g&&Ui(rr())){z.preventDefault();const $=FE(i);l($)&&$.remove()}return!1},[g,i,l]),T=k.useCallback(z=>{const F=rr(),$=h.current;return g&&Ui(F)&&F.getNodes().length===1&&$!==null&&$!==document.activeElement?(z.preventDefault(),$.focus(),!0):!1},[g]),x=k.useCallback(z=>z.target===d.current?(z.preventDefault(),!0):!1,[]),C=k.useCallback(z=>h.current===z.target?(Wv(null),E.update(()=>{v(!0);const F=E.getRootElement();F!==null&&F.focus()}),!0):!1,[E,v]),I=k.useCallback(z=>{const F=z;return F.target===d.current?(F.shiftKey?v(!g):(y(),v(!0)),!0):!1},[g,v,y]),R=k.useCallback(z=>{E.getEditorState().read(()=>{const F=rr();z.target.tagName==="IMG"&&fr(F)&&F.getNodes().length===1&&E.dispatchCommand(Ote,z)})},[E]);k.useEffect(()=>{let z=!1;return t.resolveUrlByPath(n).then(F=>{z||f(F)}),()=>{z=!0}},[t,n]),k.useEffect(()=>{let z=!0;const F=E.getRootElement(),$=Wf(E.registerUpdateListener(({editorState:K})=>{z&&S(K.read(rr))}),E.registerCommand($ct,(K,U)=>(b.current=U,!1),Vu),E.registerCommand(nge,I,Vu),E.registerCommand(Ote,I,Vu),E.registerCommand(kz,x,Vu),E.registerCommand(sge,A,Vu),E.registerCommand(ige,A,Vu),E.registerCommand(age,T,Vu),E.registerCommand(uge,C,Vu));return F==null||F.addEventListener("contextmenu",R),()=>{z=!1,$(),F==null||F.removeEventListener("contextmenu",R)}},[E,g,i,y,A,x,T,C,I,R,v]);const D=g&&Ui(_),M=g?`focused ${Ui(_)?"draggable":""}`:void 0,q=(c.startsWith(Lx)?c.slice(Lx.length):c).replace(/#[\s\S]*$/,"");return N.jsx(k.Suspense,{fallback:null,children:N.jsx("div",{draggable:D,children:N.jsx(k1t,{className:M,src:q,alt:o,imageRef:d,width:s,height:a,maxWidth:u,onLoad:r})})})};class mp extends xct{constructor(t,r,n,o,i,s){super(s),this.src=t,this.alt=r,this.maxWidth=n,this.width=o||"inherit",this.height=i||"inherit"}static getType(){return xr.IMAGE}static clone(t){return new mp(t.src,t.alt,t.maxWidth,t.width,t.height,t.__key)}static importDOM(){return{img:t=>({conversion:T1t,priority:0})}}static importJSON(t){const{alt:r,height:n,width:o,maxWidth:i,src:s}=t;return Vv({alt:r,height:n,maxWidth:i,src:s,width:o})}exportDOM(){const t=document.createElement("img");return t.setAttribute("src",this.src),t.setAttribute("alt",this.alt),t.setAttribute("width",this.width.toString()),t.setAttribute("height",this.height.toString()),{element:t}}exportJSON(){return{alt:this.getAltText(),height:this.height==="inherit"?0:this.height,maxWidth:this.maxWidth,src:this.getSrc(),type:xr.IMAGE,version:1,width:this.width==="inherit"?0:this.width}}setWidthAndHeight(t,r){const n=this.getWritable();n.width=t,n.height=r}createDOM(t){const r=document.createElement("span"),o=t.theme.image;return o!==void 0&&(r.className=o),r}updateDOM(){return!1}getSrc(){return this.src}getAltText(){return this.alt}decorate(){return N.jsx(k.Suspense,{fallback:null,children:N.jsx(x1t,{src:this.src,alt:this.alt,width:this.width,height:this.height,maxWidth:this.maxWidth,nodeKey:this.getKey(),isImageNode:Kge})})}}function Vv({alt:e,height:t,maxWidth:r=240,src:n,width:o,key:i}){return DE(new mp(n,e,r,o,t,i))}function Kge(e){return e instanceof mp}function T1t(e){if(e instanceof HTMLImageElement){const{alt:t,src:r,width:n,height:o}=e;return r.startsWith("blob:")?null:{node:Vv({alt:t,height:o,src:r,width:n})}}return null}const Gge=()=>{const[e]=Li();return re.useLayoutEffect(()=>Wf(e.registerCommand($ge,t=>{const{nodes:r}=t;if(r.length===1&&r[0].type===xr.TEXT){const i=r[0];return e.update(()=>{const s=rr();s&&s.insertRawText(i.value)}),!0}let n;const o=[];for(const i of r)switch(i.type){case xr.TEXT:{const s=Zh(i.value),a=ya();n=s,a.append(s),o.push(a);break}case xr.IMAGE:{const s=Vv(i),a=ya();n=s,a.append(s),o.push(a);break}}return o.length<=0||(wz(o),n&&E1(n.getParentOrThrow())&&n.selectEnd()),!0},kr)),[e]),N.jsx(re.Fragment,{})};Gge.displayName="CommandPlugin";const I1t=["image/","image/heic","image/heif","image/gif","image/webp"],Vge=()=>{const[e]=Li(),{viewmodel:t}=x5();return k.useLayoutEffect(()=>e.registerCommand(f1t,r=>{return n(),!0;async function n(){for(const o of r)if(Bft(o,I1t)){const i=o.name,s=await t.resolveUrlByFile(o);e.dispatchCommand(Bz,{alt:i,src:s})}}},Vu),[e,t]),N.jsx(k.Fragment,{})};Vge.displayName="DragDropPastePlugin";class Uge{constructor(t,r){this._x=t,this._y=r}get x(){return this._x}get y(){return this._y}equals(t){return this.x===t.x&&this.y===t.y}calcDeltaXTo(t){return this.x-t.x}calcDeltaYTo(t){return this.y-t.y}calcHorizontalDistanceTo(t){return Math.abs(this.calcDeltaXTo(t))}calcVerticalDistance(t){return Math.abs(this.calcDeltaYTo(t))}calcDistanceTo(t){const r=this.calcDeltaXTo(t)**2,n=this.calcDeltaYTo(t)**2;return Math.sqrt(r+n)}}function C1t(e){return e instanceof Uge}class gh{constructor(t,r,n,o){const[i,s]=r<=o?[r,o]:[o,r],[a,u]=t<=n?[t,n]:[n,t];this._top=i,this._right=u,this._left=a,this._bottom=s}get top(){return this._top}get right(){return this._right}get bottom(){return this._bottom}get left(){return this._left}get width(){return Math.abs(this._left-this._right)}get height(){return Math.abs(this._bottom-this._top)}static fromLTRB(t,r,n,o){return new gh(t,r,n,o)}static fromLWTH(t,r,n,o){return new gh(t,n,t+r,n+o)}static fromPoints(t,r){const{y:n,x:o}=t,{y:i,x:s}=r;return gh.fromLTRB(o,n,s,i)}static fromDOM(t){const{top:r,width:n,left:o,height:i}=t.getBoundingClientRect();return gh.fromLWTH(o,n,r,i)}equals(t){return t.top===this._top&&t.bottom===this._bottom&&t.left===this._left&&t.right===this._right}contains(t){if(C1t(t)){const{x:r,y:n}=t,o=nthis._bottom,s=rthis._right;return{reason:{isOnBottomSide:i,isOnLeftSide:s,isOnRightSide:a,isOnTopSide:o},result:!o&&!i&&!s&&!a}}else{const{top:r,left:n,bottom:o,right:i}=t;return r>=this._top&&r<=this._bottom&&o>=this._top&&o<=this._bottom&&n>=this._left&&n<=this._right&&i>=this._left&&i<=this._right}}intersectsWith(t){const{left:r,top:n,width:o,height:i}=t,{left:s,top:a,width:u,height:l}=this,c=r+o>=s+u?r+o:s+u,f=n+i>=a+l?n+i:a+l,d=r<=s?r:s,h=n<=a?n:a;return c-d<=o+u&&f-h<=i+l}generateNewRect({left:t=this.left,top:r=this.top,right:n=this.right,bottom:o=this.bottom}){return new gh(t,r,n,o)}}const g6=4,N1t=2,R1t="draggable-block-menu",Fte="application/x-lexical-drag-block",Bte=28,O1t=1,D1t=-1,Mte=0,Yge=e=>{const{anchorElem:t=document.body}=e,[r]=Li();return $1t(r,t,r._editable)};Yge.displayName="DraggableBlockPlugin";let GA=1/0;function F1t(e){return e===0?1/0:GA>=0&&GAcs().getChildrenKeys())}function Xge(e){const t=(u,l)=>u?parseFloat(window.getComputedStyle(u)[l]):0,{marginTop:r,marginBottom:n}=window.getComputedStyle(e),o=t(e.previousElementSibling,"marginBottom"),i=t(e.nextElementSibling,"marginTop"),s=Math.max(parseFloat(r),o);return{marginBottom:Math.max(parseFloat(n),i),marginTop:s}}function L3(e,t,r,n=!1){const o=e.getBoundingClientRect(),i=B1t(t);let s=null;return t.getEditorState().read(()=>{if(n){const l=t.getElementByKey(i[0]),c=t.getElementByKey(i[i.length-1]),f=l==null?void 0:l.getBoundingClientRect(),d=c==null?void 0:c.getBoundingClientRect();if(f&&d&&(r.yd.bottom&&(s=c),s))return}let a=F1t(i.length),u=Mte;for(;a>=0&&a{n.transform=r})}function z1t(e,t,r,n){const{top:o,height:i}=t.getBoundingClientRect(),{top:s,width:a}=n.getBoundingClientRect(),{marginTop:u,marginBottom:l}=Xge(t);let c=o;r>=o?c+=i+l/2:c-=u/2;const f=c-s-N1t,d=Bte-g6,h=e.style;h.transform=`translate(${d}px, ${f}px)`,h.width=`${a-(Bte-g6)*2}px`,h.opacity=".4"}function H1t(e){const t=e==null?void 0:e.style;t&&(t.opacity="0",t.transform="translate(-10000px, -10000px)")}function $1t(e,t,r){const n=t.parentElement,o=k.useRef(null),i=k.useRef(null),s=k.useRef(!1),[a,u]=k.useState(null);k.useLayoutEffect(()=>{function f(h){const g=h.target;if(!j3(g)){u(null);return}if(M1t(g))return;const v=L3(t,e,h);u(v)}function d(){u(null)}return n==null||n.addEventListener("mousemove",f),n==null||n.addEventListener("mouseleave",d),()=>{n==null||n.removeEventListener("mousemove",f),n==null||n.removeEventListener("mouseleave",d)}},[n,t,e]),k.useEffect(()=>{o.current&&L1t(a,o.current,t)},[t,a]),k.useEffect(()=>{function f(h){if(!s.current)return!1;const[g]=Cte(h);if(g)return!1;const{pageY:v,target:y}=h;if(!j3(y))return!1;const E=L3(t,e,h,!0),_=i.current;return E===null||_===null?!1:(z1t(_,E,v,t),h.preventDefault(),!0)}function d(h){if(!s.current)return!1;const[g]=Cte(h);if(g)return!1;const{target:v,dataTransfer:y,pageY:E}=h,_=(y==null?void 0:y.getData(Fte))||"",S=FE(_);if(!S||!j3(v))return!1;const b=L3(t,e,h,!0);if(!b)return!1;const A=m_(b);if(!A)return!1;if(A===S)return!0;const T=b.getBoundingClientRect().top;return E>=T?A.insertAfter(S):A.insertBefore(S),u(null),!0}return Wf(e.registerCommand(Az,h=>f(h),Vu),e.registerCommand(xz,h=>d(h),s6))},[t,e]);const l=f=>{const d=f.dataTransfer;if(!d||!a)return;j1t(d,a);let h="";e.update(()=>{const g=m_(a);g&&(h=g.getKey())}),s.current=!0,d.setData(Fte,h)},c=()=>{s.current=!1,H1t(i.current)};return li.createPortal(N.jsxs(k.Fragment,{children:[N.jsx("div",{className:"icon draggable-block-menu",role:"button",ref:o,draggable:!0,onDragStart:l,onDragEnd:c,children:N.jsx("div",{className:r?"icon":""})}),N.jsx("div",{className:"draggable-block-target-line",ref:i})]}),t)}const Qge=e=>{const{editable:t}=e,[r]=Li();return k.useEffect(()=>{r.setEditable(t)},[r,t]),N.jsx(k.Fragment,{})};Qge.displayName="EditablePlugin";const Zge=()=>{const[e]=Li();return k.useLayoutEffect(()=>{if(!e.hasNodes([mp]))throw new Error("[RichEditor] ImagesPlugin: ImageNode not registered on editor");return Wf(e.registerCommand(Bz,q1t,kr),e.registerCommand(kz,W1t,s6),e.registerCommand(Az,K1t,Vu),e.registerCommand(xz,t=>G1t(t,e),s6))},[e]),N.jsx(k.Fragment,{})};Zge.displayName="ImagesPlugin";let Qw;const P1t=()=>{if(Qw===void 0){const e="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";Qw=document.createElement("img"),Qw.src=e}return Qw};function q1t(e){const t=Vv(e);return wz([t]),E1(t.getParentOrThrow())&&Dft(t,ya).selectEnd(),!0}function W1t(e){const t=Mz();if(!t)return!1;const r=e.dataTransfer;if(!r)return!1;const n=P1t();return r.setData("text/plain","_"),r.setDragImage(n,0,0),r.setData("application/x-lexical-drag",JSON.stringify({type:xr.IMAGE,data:{alt:t.alt,height:t.height,key:t.getKey(),maxWidth:t.maxWidth,src:t.src,width:t.width}})),!0}function K1t(e){return Mz()?(Jge(e)||e.preventDefault(),!0):!1}function G1t(e,t){const r=Mz();if(!r)return!1;const n=V1t(e);if(!n)return!1;if(e.preventDefault(),Jge(e)){const o=Y1t(e);r.remove();const i=ege();o!=null&&i.applyDOMRange(o),Wv(i),t.dispatchCommand(Bz,n)}return!0}function Mz(){const e=rr();if(!Ui(e))return null;const r=e.getNodes()[0];return Kge(r)?r:null}function V1t(e){var r;const t=(r=e.dataTransfer)==null?void 0:r.getData("application/x-lexical-drag");if(!t)return null;try{const{type:n,data:o}=JSON.parse(t);return n===xr.IMAGE?o:null}catch{return null}}function Jge(e){const t=e.target;return!!(t&&t instanceof HTMLElement&&!t.closest("code, span.editor-image")&&t.parentElement&&t.parentElement.closest("div.ContentEditable__root"))}const U1t=e=>y1t?(e||window).getSelection():null;function Y1t(e){const t=e,r=t.target,n=r==null?null:r.nodeType===9?r.defaultView:r.ownerDocument.defaultView,o=U1t(n);let i;if(document.caretRangeFromPoint)i=document.caretRangeFromPoint(t.clientX,t.clientY);else if(t.rangeParent&&o!==null)o.collapse(t.rangeParent,t.rangeOffset||0),i=o.getRangeAt(0);else throw Error("[RichEditor] ImagesPlugin: Cannot get the selection when dragging");return i}const eve=e=>{const[t]=Li(),r=k.useRef(e.onKeyDown);return k.useLayoutEffect(()=>{const n=o=>{var i;(i=r.current)==null||i.call(r,o)};return t.registerRootListener((o,i)=>{i!==null&&i.removeEventListener("keydown",n),o!==null&&o.addEventListener("keydown",n)})},[t]),N.jsx(k.Fragment,{})};eve.displayName="OnKeyDownPlugin";const tve=()=>{const[e]=Li();return k.useLayoutEffect(()=>Wf(e.registerUpdateListener(t=>{t.tags.has("paste")&&e.update(()=>{t.dirtyLeaves.forEach(r=>{const n=FE(r);if(ur(n)){const o=lct(n);o.setFormat(0),o.setStyle(""),n.replace(o)}})})}),e.registerNodeTransform(y_,t=>{const r=t.getParentOrThrow();if(Pft(r)){const n=Zh(r.__url);r.insertBefore(n),r.remove()}})),[e]),N.jsx(k.Fragment,{})};tve.displayName="PlainContentPastePlugin";const rve=e=>t=>{t.update(()=>{const r=cs();r.clear();for(const n of e)if(n!=null){if(typeof n=="string"){const o=Zh(n),i=ya();i.append(o),r.append(i);continue}if(typeof n=="object"){switch(n.type){case xr.IMAGE:{const o=Vv({alt:n.alt,src:n.src}),i=ya();i.append(o),r.append(i);break}case xr.TEXT:{const o=Zh(n.value),i=ya();i.append(o),r.append(i);break}default:throw console.log("item:",n),new TypeError(`[resetEditorState] unknown rich-editor content type: ${n.type}`)}continue}console.error("[resetEditorState] unknown rich-editor data:",n)}})},X1t=Hct.getType(),nve=Lct.getType(),Q1t=y_.getType(),ove=mp.getType(),Z1t=Bct.getType(),J1t=e=>{const t=e.toJSON(),r=[];for(const o of t.root.children)n(o);return r;function n(o){switch(o.type){case ove:{const{src:i,alt:s}=o;if(i.startsWith(Lx)){const a=r[r.length-1];(a==null?void 0:a.type)===xr.TEXT&&(a.value+=` +`);break}r.push({type:xr.IMAGE,src:i,alt:s});break}case Z1t:{const i=r[r.length-1];(i==null?void 0:i.type)===xr.TEXT&&(i.value+=` +`);break}case nve:{const i=o.children;for(const s of i)n(s);break}case Q1t:{const i=o.text,s=r[r.length-1];(s==null?void 0:s.type)===xr.TEXT?s.value+=i:r.push({type:xr.TEXT,value:i});break}default:throw new TypeError(`[RichEditor] [extractEditorData] Unknown node.type: (${o.type})`)}}},eht=(e,t,r)=>{e.update(()=>{const n=cs();o(n);function o(i){switch(i.getType()){case X1t:case nve:for(const s of i.getChildren())o(s);break;case ove:{const s=i;if(s.getSrc()===t){const a=Vv({alt:s.getAltText(),src:r});s.replace(a)}break}}}})};class tht extends k.Component{constructor(t){super(t),this.state={floatingAnchorElem:null};const{editable:r=!0,initialContent:n}=this.props;this.initialConfig={namespace:"react-simple-rich-editor",theme:{ltr:"ltr",rtl:"rtl",placeholder:i0.editorPlaceholder,paragraph:i0.editorParagraph},nodes:[mp,qft],editable:r,editorState:n?rve(n):null,onError:o=>{console.error(o)}},this.onKeyDown=this.onKeyDown.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.onChange=this.onChange.bind(this),this.onEditorInputWrapperRef=this.onEditorInputWrapperRef.bind(this)}render(){const{initialConfig:t,onKeyDown:r,onFocus:n,onBlur:o,onChange:i,onEditorInputWrapperRef:s}=this,{editable:a=!0,placeholder:u="Enter some text...",pluginsBeforeRichEditors:l=[],pluginsAfterRichEditors:c=[]}=this.props,{floatingAnchorElem:f}=this.state,d=mr(i0.editorContainer,this.props.editorContainerCls),h=mr(i0.editorInput,this.props.editorInputCls),g=mr(i0.editorInputBox,this.props.editorInputBoxCls),v=mr(i0.editorPlaceholder,this.props.editorPlaceholderCls),y=N.jsx("div",{ref:s,className:g,children:N.jsx(odt,{onFocus:n,onBlur:o,className:h})});return N.jsxs(Jft,{initialConfig:t,children:[N.jsx(Qge,{editable:a}),N.jsx(Gge,{}),N.jsxs("div",{className:d,children:[l,N.jsx(m1t,{contentEditable:y,placeholder:N.jsx("div",{className:v,children:u}),ErrorBoundary:ldt}),c,N.jsx(eve,{onKeyDown:r}),N.jsx(Tge,{onChange:i}),N.jsx(Vge,{}),N.jsx(tve,{}),N.jsx(Zge,{}),N.jsx(Sdt,{}),f&&N.jsx(Yge,{anchorElem:f})]})]})}onKeyDown(t){var r,n;(n=(r=this.props).onKeyDown)==null||n.call(r,t)}onFocus(t){var r,n;(n=(r=this.props).onFocus)==null||n.call(r,t)}onBlur(t){var r,n;(n=(r=this.props).onBlur)==null||n.call(r,t)}onChange(t){var r,n;(n=(r=this.props).onChange)==null||n.call(r,t)}onEditorInputWrapperRef(t){t!==null&&this.setState({floatingAnchorElem:t})}}const i0=hi({editorContainer:{boxSizing:"border-box",position:"relative"},editorInputBox:{boxSizing:"border-box",overflow:"auto",border:"none",position:"relative",fontWeight:"400",textAlign:"left"},editorInput:{overflow:"auto",boxSizing:"border-box",resize:"none",fontSize:"15px",position:"relative",tabSize:"1",outline:"0","> :last-child":{marginBottom:0}},editorPlaceholder:{boxSizing:"border-box",color:"#999",overflow:"hidden",position:"absolute",textOverflow:"ellipsis",top:"0px",left:"0px",fontSize:"15px",userSelect:"none",display:"inline-block",pointerEvents:"none",width:"100%"},editorParagraph:{margin:"0 0 15px 0",position:"relative"}}),ive=k.forwardRef((e,t)=>{const[r]=k.useState(()=>new Pge({extractEditorData:J1t,replaceImageSrc:eht,resetEditorState:rve})),n=k.useMemo(()=>({viewmodel:r}),[r]);return r.resolveUrlByFile$.next(e.resolveUrlByFile),r.resolveUrlByPath$.next(e.resolveUrlByPath),k.useImperativeHandle(t,()=>({focus:()=>{n.viewmodel.focus()},getContent:()=>n.viewmodel.getContent(),insert:o=>{n.viewmodel.insert(o)},isEmpty:()=>n.viewmodel.isEmpty(),replaceImageSrc:(o,i)=>{n.viewmodel.replaceImageSrc(o,i)},reset:o=>{n.viewmodel.reset(o)}})),N.jsx(qge.Provider,{value:n,children:N.jsx(tht,{...e})})});ive.displayName="ReactRichEditor";const sve=e=>{const{viewmodel:t}=x5(),{maxHeight:r}=e,n=Wge();return k.useLayoutEffect(()=>{t.maxHeight$.next(r),n(),setTimeout(n,1e3)},[r,n]),N.jsx(Tge,{onChange:n,ignoreHistoryMergeTagChange:!0,ignoreSelectionChange:!0})};sve.displayName="AutoResizeTextBoxPlugin";const ave=e=>{const{editorRef:t,initialContent:r,disabled:n,placeholder:o,maxHeight:i=Number.MAX_SAFE_INTEGER,pluginsBeforeRichEditors:s,pluginsAfterRichEditors:a,className:u,onChange:l,onEnterKeyPress:c,resolveUrlByFile:f,resolveUrlByPath:d}=e,h=re.useRef(null),g=re.useMemo(()=>i!==void 0?[...a||[],N.jsx(sve,{maxHeight:i},"auto-resize-text-box")]:a,[i,a]),v=Vj(E=>{E.key==="Enter"&&!E.shiftKey&&!E.ctrlKey&&(E.preventDefault(),c==null||c())});re.useImperativeHandle(t,()=>({clear:()=>{var E;return(E=h.current)==null?void 0:E.reset([])},focus:()=>{var E;return(E=h.current)==null?void 0:E.focus()},getContent:()=>{var E;return((E=h.current)==null?void 0:E.getContent())??[]},insert:E=>{var _;return(_=h.current)==null?void 0:_.insert(E)},isEmpty:()=>{var E;return((E=h.current)==null?void 0:E.isEmpty())??!0},replaceImageSrc:(E,_)=>{var S;return(S=h.current)==null?void 0:S.replaceImageSrc(E,_)},setContent:E=>{var _;return(_=h.current)==null?void 0:_.reset(E)}}));const y=rht();return N.jsx("div",{className:Xe(y.editor,u),"data-disabled":n,children:N.jsx(ive,{ref:h,editable:!n,placeholder:o,initialContent:r,onChange:l,onKeyDown:v,pluginsBeforeRichEditors:s,pluginsAfterRichEditors:g,resolveUrlByFile:f,resolveUrlByPath:d})})};ave.displayName="RichTextEditorRenderer";const rht=Ar({editor:{...Ye.padding("8px"),...Ye.border("1px","solid",Pt.colorNeutralBackground5),...Ye.borderRadius("4px"),boxSizing:"border-box",display:"block",width:"100%",userSelect:"none",position:"relative"}});function nht(e){const{availableOnEmpty:t=!1,title:r,icon:n,className:o,onSend:i}=e,s=()=>{const{viewmodel:a}=ku(),u=ro(a.disabled$),l=ro(a.isOthersTyping$),c=xpe(),f=u||l||!t&&c,d=Vj(()=>{(i??a.sendMessage)()});return N.jsx(Ipe,{className:o,disabled:f,icon:n,title:r,onSend:d})};return s.displayName="SendAction",s}function oht(e){const{className:t,header:r,main:n,footer:o}=e,i=iht();return N.jsxs("div",{className:Xe(i.chatbox,t),children:[N.jsx("div",{className:i.header,children:r},"header"),N.jsx("div",{className:i.main,children:n},"main"),N.jsx("div",{className:i.footer,children:o},"footer")]})}const iht=Ar({chatbox:{...Ye.borderRadius("8px"),display:"flex",flexDirection:"column",alignItems:"stretch",backgroundColor:Pt.colorNeutralBackground1,width:"100%",height:"100%",boxShadow:"0px 6.4px 14.4px rgba(0, 0, 0, 0.132), 0px 1.2px 3.6px rgba(0, 0, 0, 0.108)","::-webkit-scrollbar":{width:"4px",backgroundColor:Pt.colorNeutralBackground1Hover},"::-webkit-scrollbar-thumb":{backgroundColor:Pt.colorScrollbarOverlay,...Ye.border("1px","solid",Pt.colorNeutralBackground1),...Ye.borderRadius("9999px")},"::-webkit-scrollbar-thumb:hover":{backgroundColor:Pt.colorNeutralForeground1Static},"::-webkit-scrollbar-track":{...Ye.borderRadius("9999px"),backgroundColor:"transparent"}},header:{...Ye.flex(0,0,"auto")},main:{...Ye.flex(1,1,"auto"),...Ye.overflow("hidden","auto")},footer:{...Ye.flex(0,0,"auto")}});Ar({header:{},topbar:{...Ye.padding("0px","16px"),...Ye.borderBottom("1px","solid",Pt.colorNeutralBackground5),boxSizing:"border-box",display:"flex",justifyContent:"space-between",alignItems:"center",height:"48px"},toolbarTitle:{display:"flex",alignItems:"center",columnGap:"2px"},toolbarActionButton:{color:Pt.colorNeutralForeground2}});const sht=()=>{const{viewmodel:e}=ku(),t=ro(e.locStrings$),r=Tpe(t,e.calcContentForCopy);return re.useMemo(()=>[r],[r])};function uve(e){const{MessageAvatarRenderer:t,MessageContentRenderer:r,MessageErrorRenderer:n,MessageBubbleRenderer:o,MessageSenderRenderer:i,SessionSplitRenderer:s,TypingIndicatorRenderer:a=Yj,className:u,bubbleClassName:l,sessionSplitClassName:c,typingClassName:f,containerRef:d,useMessageContextualMenuItems:h,useMessageActions:g=sht}=e,{viewmodel:v}=ku(),y=ro(v.messages$),E=ro(v.isOthersTyping$),_=ro(v.locStrings$),S=re.useRef(null);re.useLayoutEffect(()=>{let A=setTimeout(()=>{A=void 0,S.current&&(S.current.scrollTop=S.current.scrollHeight)},50);return()=>{A&&clearTimeout(A)}},[y]);const b=aht();return N.jsxs("div",{ref:A=>{S.current=A,d&&(d.current=A)},className:Xe(b.main,u),children:[N.jsx(qpe,{MessageAvatarRenderer:t,MessageBubbleRenderer:o,MessageContentRenderer:r,MessageErrorRenderer:n,MessageSenderRenderer:i,SessionSplitRenderer:s,locStrings:_,messages:y,bubbleClassName:l,sessionSplitClassName:c,useMessageContextualMenuItems:h,useMessageActions:g}),E&&N.jsx(a,{locStrings:_,className:f})]})}uve.displayName="ChatboxMain";const aht=Ar({main:{...Ye.padding("0","16px"),...Ye.overflow("hidden","auto"),height:"100%"}});function lve(e){const{EditorRenderer:t,EditorActionRenderers:r,LeftToolbarRenderer:n=Out,InputValidationRenderer:o=Ope,MessageInputRenderer:i=Xj,initialContent:s,maxInputHeight:a,className:u}=e,{viewmodel:l}=ku(),{editorRef:c,sendMessage:f,notifyInputContentChange:d}=l,h=ro(l.locStrings$),g=ro(l.disabled$),v=ro(l.isOthersTyping$),y=g||v,E=uht();return N.jsxs("div",{className:Xe(E.footer,u),children:[N.jsx("div",{className:E.validation,children:N.jsx(o,{className:E.validationInner})}),N.jsxs("div",{className:E.footerContainer,children:[N.jsx("div",{className:E.leftToolbar,children:N.jsx(n,{})}),N.jsx(i,{EditorRenderer:t,EditorActionRenderers:r,editorRef:c,locStrings:h,disabled:y,initialContent:s,isOthersTyping:v,maxInputHeight:a,className:E.editor,onEnterKeyPress:f,onInputContentChange:d})]})]})}lve.displayName="ChatboxFooter";const uht=Ar({footer:{...Ye.padding("16px"),boxSizing:"border-box"},footerContainer:{display:"flex"},leftToolbar:{...Ye.flex(0,0,"auto")},editor:{...Ye.flex(1),boxSizing:"border-box"},validation:{boxSizing:"border-box"},validationInner:{...Ye.border("1px","solid",Pt.colorNeutralBackground5),...Ye.borderRadius("4px"),...Ye.margin("8px","0px"),...Ye.padding("2px","8px"),backgroundColor:Pt.colorStatusWarningBackground1,color:Pt.colorStatusWarningForeground1}});function lht(e){const{alias:t,initialDisabled:r,initialMessages:n,locStrings:o,calcContentForCopy:i,makeUserMessage:s,sendMessage:a}=e,[u]=re.useState(()=>new Ape({alias:t,initialDisabled:r,initialMessages:n,locStrings:o,calcContentForCopy:i,makeUserMessage:s,sendMessage:a})),l=re.useMemo(()=>({viewmodel:u}),[u]);return re.useEffect(()=>{o&&u.locStrings$.next(o)},[o,u]),re.useEffect(()=>{s&&u.setMakeUserMessage(s)},[s,u]),re.useEffect(()=>{a&&u.setSendMessage(a)},[a,u]),N.jsx(kpe.Provider,{value:l,children:e.children})}function cht(e){switch(e.type){case xr.TEXT:return e.value;case xr.IMAGE:return`![${e.alt}](${e.src})`;default:{const t=e;throw new Error(`Didn't expect to get here: ${t}`)}}}function fht(e){switch(e.type){case xr.TEXT:return e.value;case xr.IMAGE:return{"data:image/jpg;path":e.src};default:{const t=e;throw new Error(`Didn't expect to get here: ${t}`)}}}function dht(e){switch(e.type){case xr.TEXT:return{type:"text",text:e.value};case xr.IMAGE:return e.src.startsWith("http://")||e.src.startsWith("https://")?{type:"image_url",image_url:{url:e.src}}:{type:"image_file",image_file:{path:e.src}};default:{const t=e;throw new Error(`Didn't expect to get here: ${t}`)}}}function v6(e){return e.map(cht).filter(Boolean).join(` -`)}function qk(e){return[{type:Nr.TEXT,value:e}]}function nht(e){return e.map(t=>{var r,n;if(typeof t=="string")return{type:Nr.TEXT,value:t};if(t["data:image/jpg;path"]||t["data:image/png;path"]){const o=t["data:image/jpg;path"]??t["data:image/png;path"]??"";return{type:Nr.IMAGE,src:o,alt:o}}if((t==null?void 0:t.type)==="text"&&"text"in t)return{type:Nr.TEXT,value:t.text??""};if((t==null?void 0:t.type)==="image_file"&&"image_file"in t){const o=((r=t.image_file)==null?void 0:r.path)??"";return{type:Nr.IMAGE,src:o,alt:o}}if((t==null?void 0:t.type)==="image_url"&&"image_url"in t){const o=((n=t.image_url)==null?void 0:n.url)??"";return{type:Nr.IMAGE,src:o,alt:o}}return{type:Nr.TEXT,value:JSON.stringify(t)}})}function oht(e){return typeof e=="string"?qk(e):typeof e>"u"?qk(""):Array.isArray(e)?nht(e):qk(JSON.stringify(e))}function h6(e){return e.map(tht)}function p6(e){return e.map(rht)}function ive(e){const t={...e[0]},r=e.slice(1);let n=!1;if((t==null?void 0:t.type)===Nr.TEXT&&(t.value.trim()==="/eval"||t.value.trim().startsWith("/eval ")||t.value.trim().startsWith(`/eval -`))){const s=t.value.trim().match(/^\/eval\s+(.*)/m),a=s==null?void 0:s[1];a?t.value=a:n=!0}return n?r:[t,...r]}function iht(e){const t=ive(e);return h6(t)}function sht(e){const t=ive(e);return p6(t)}const Nte=({id:e,content:t,extra:r,from:n})=>({id:e??ga.v4(),type:pf.Message,history:[{category:Lo.Chatbot,from:n??"Assistant",timestamp:new Date().toISOString(),content:oht(t),extra:r}]}),g6=({id:e,errorMessage:t,stackTrace:r})=>({id:e??ga.v4(),type:pf.Message,history:[{category:Lo.Error,from:"system",timestamp:new Date().toISOString(),content:qk(t),error:r}]}),aht=(...e)=>{const t=e[0];if(!t)throw new Error("messageList should not be empty");const r=[...t.history];return e.slice(1).forEach(o=>{o.history.forEach(i=>{((i==null?void 0:i.category)===Lo.Chatbot||(i==null?void 0:i.category)===Lo.Error)&&r.push(i)})}),{...t,history:r}},uht=e=>{if(!e[0])return[];const t=[...e[0]];return e.slice(1).forEach(n=>{n.forEach(o=>{const i=t.findIndex(s=>s.id===o.id);i>=0&&(t[i]=aht(t[i],o))})}),t},Ht=()=>re.useContext(vhe).viewModel,Kv=()=>{const e=Ht();return wc(e.activeNodeName$)},lht=()=>{const e=Ht();return wc(e.chatMessageVariantFilter$)},Tu=()=>{const e=Ht();return wc(e.flowFilePath$)},Ac=()=>{const e=Ht();return wc(e.chatSourceType$)},cht=()=>{const e=Ht();return wc(e.flowFileRelativePath$)},fht=()=>{const e=Ht();return wc(e.flowFileNextPath$)},dht=()=>{const e=Ht();return wc(e.flowFileNextRelativePath$)},sve=()=>{const e=Ht();return wc(e.isSwitchingFlowPathLocked$)},ml=()=>{const e=Ht();return Fi(e.flowChatConfig$)},hht=e=>{const t=Ht();return y1e(t.flowInputsMap$,e)},pht=e=>{const t=Ht();return y1e(t.flowOutputsMap$,e)},ave=()=>{const e=Ht();return re.useCallback(t=>e.flowInputsMap$.get(t),[e.flowInputsMap$])},BE=()=>{const e=Ht();return re.useCallback((t,r)=>{const n=e.flowInputsMap$.get(t);e.flowInputsMap$.set(t,{...n,...r})},[e.flowInputsMap$])},ght=()=>{const e=Ht();return re.useCallback(t=>e.flowOutputsMap$.get(t),[e.flowOutputsMap$])},uve=()=>{const e=Ht();return re.useCallback((t,r)=>{const n=e.flowOutputsMap$.get(t);e.flowOutputsMap$.set(t,{...n,...r})},[e.flowOutputsMap$])},vht=()=>{const e=Ht();return re.useCallback(t=>e.flowOutputPathMap$.get(t),[e.flowOutputPathMap$])},lve=()=>{const e=Ht();return re.useCallback((t,r)=>{e.flowOutputPathMap$.set(t,r)},[e.flowOutputPathMap$])},mht=()=>{const e=Ht();return re.useCallback(t=>e.flowLastRunId$.get(t),[e.flowLastRunId$])},yht=()=>{const e=Ht();return re.useCallback((t,r)=>{e.flowLastRunId$.set(t,r)},[e.flowLastRunId$])},bht=(e,t)=>{const r=Ht(),[n]=Tu(),[o,i]=re.useState(!1),s=re.useCallback(()=>{var a;return e===an?!((a=r.flowHistoryMap$.get(e))!=null&&a.length):t.some(u=>{var l;return!((l=r.flowHistoryMap$.get(`${e}.${u}`))!=null&&l.length)})},[e,t,r.flowHistoryMap$]);return re.useEffect(()=>{if(s())if(i(!0),e===an){const a=e;DM.getChatMessages(n,a).then(l=>{r.flowHistoryMap$.set(a,l)}).then(()=>{i(!1)})}else{const a=[];t.forEach(u=>{const l=`${e}.${u}`,c=DM.getChatMessages(n,l).then(f=>{r.flowHistoryMap$.set(l,f)});a.push(c)}),Promise.all(a).then(()=>{i(!1)})}},[e,s,n,t,r.flowHistoryMap$]),{loading:o}},_ht=(e,t)=>{const r=Ht(),n=Fi(r.flowHistoryMap$),o=Fi(r.chatMessageVariantFilter$),{loading:i}=bht(e,t);return re.useMemo(()=>{if(i)return[];const s=new Set(o),a=[];return n.forEach((u,l)=>{const[c,f]=l.split(".");c===e&&(s.size===0||s.has(kh)||s.has(f))&&a.push(u)}),uht(a)},[e,o,n,i])},Eht=()=>{const e=Ht();return Fi(e.flowTestRunStatus$)},cve=()=>{const e=Ht();return re.useCallback((t,r)=>{e.flowTestRunStatus$.set(t,r)},[e.flowTestRunStatus$])},Cz=()=>{const e=Ht(),[t]=Tu();return re.useCallback((r,n,o=!1)=>{const i=e.flowHistoryMap$.get(r)??[];e.flowHistoryMap$.set(r,[...i,...n]),o||n.forEach(s=>{DM.addChatMessage(t,r,s)})},[t,e.flowHistoryMap$])},Sht=()=>Ht().sessionIds,ME=()=>{const e=Ht();return Fi(e.flowSnapshot$)},fve=()=>{const e=Ht();return Fi(e.inferSignature$)},wht=()=>{const[e]=Ac(),t=ME(),r=fve();switch(e){case hn.Prompty:return r;case hn.Dag:default:return t}},Gv=()=>{const e=ME(),t=fve(),[r]=Ac();switch(r){case hn.Prompty:return{flowInputDefinition:(t==null?void 0:t.inputs)??{},flowOutputDefinition:(t==null?void 0:t.outputs)??{},inferSignature:t,messageFormat:void 0,flowSnapshot:void 0};case hn.Dag:default:return{flowInputDefinition:(e==null?void 0:e.inputs)??{},flowOutputDefinition:(e==null?void 0:e.outputs)??{},inferSignature:void 0,messageFormat:e==null?void 0:e.message_format,flowSnapshot:e}}},dve=()=>{const{flowInputDefinition:e,flowOutputDefinition:t}=Gv();let r="",n="",o="";for(const i in e){const s=e[i];s.is_chat_input?r=i:s.is_chat_history&&(n=i)}for(const i in t)t[i].is_chat_output&&(o=i);return{chatInputName:r,chatHistoryName:n,chatOutputName:o}},hve=e=>{var o;const t=wht();return((o=((t==null?void 0:t.inputs)??{})[e])==null?void 0:o.type)===Le.list},pve=()=>{const e=Ht();return wc(e.isRightPanelOpen$)},kht=()=>{const e=Ht();return Fi(e.chatUITheme$)},gve=()=>{const e=Ht();return re.useCallback(t=>{e.chatUITheme$.next(t)},[e])},vve=()=>{const e=Ht();return re.useCallback((t,r)=>{e.chatConsole$.set(t,r)},[e])},mve=()=>{const e=Ht();return re.useCallback((t,r)=>{e.defaultFlowRunMetrics$.set(t,r)},[e])},yve=()=>{const e=Ht(),t=re.useCallback(n=>{const o=typeof n=="function"?n(e.rightPanelState$.getSnapshot()):n;e.rightPanelState$.next({...e.rightPanelState$.getSnapshot(),...o})},[e.rightPanelState$]);return[Fi(e.rightPanelState$),t]},bve=()=>{const e=Ht();return Fi(e.settingsSubmitting$)},Aht=()=>{const e=Ht();return re.useCallback((t,r)=>{e.settingsSubmitting$.next({...e.settingsSubmitting$.getSnapshot(),[t]:r})},[e.settingsSubmitting$])},_ve=()=>{const e=Ht();return re.useCallback(t=>{const r={...e.settingsSubmitting$.getSnapshot()},n=Object.keys(r).find(o=>r[o]===t);n&&delete r[n],e.settingsSubmitting$.next(r)},[e.settingsSubmitting$])},Tht=()=>{const e=Ht();return Fi(e.errorMessages$)},xht=()=>{const e=Ht();return re.useCallback(t=>{e.errorMessages$.next([...e.errorMessages$.getSnapshot(),t])},[e.errorMessages$])},Iht=()=>{const e=Ht();return re.useCallback(t=>{const r=e.errorMessages$.getSnapshot();e.errorMessages$.next([...r.slice(0,t),...r.slice(t+1)])},[e.errorMessages$])},Eve=()=>{const e=Ht();return re.useCallback(t=>{const r=e.errorMessages$.getSnapshot();e.errorMessages$.next(r.filter(t))},[e.errorMessages$])},Nht=(e,t)=>{var n;const{flowInputsMap$:r}=e;r.clear(),(n=t.chat_list)==null||n.forEach(o=>{r.set(o.name??"",o.inputs??{})})},Sve=e=>{const{flowInputsMap$:t}=e,r=t.getSnapshot(),n=[];return r.forEach((o,i)=>{n.push({name:i,inputs:o})}),{chat_list:n}},Cht=window.location.origin,Wf=Zze.create({});Wf.interceptors.response.use(e=>(window.dispatchEvent(new CustomEvent(hT,{detail:{error:void 0}})),e),e=>(e.message==="Network Error"&&window.dispatchEvent(new CustomEvent(hT,{detail:{error:e}})),Promise.reject(e)));const Rht=()=>{const e=Ave(),t=Tve(),r=jht(),n=zht(),o=Hht(),i=$ht(),s=Pht(),a=qht(),u=Wht(),l=Kht(),c=Ght(),f=Vht(),d=Uht();return re.useMemo(()=>({getCurrentFlowSnapshot:e,getCurrentInferSignature:t,getCurrentChatSource:r,getFlowExpYaml:n,setFlowExpYaml:o,getFlowChatConfig:i,setFlowChatConfig:s,getCurrentFlowUxInputs:a,updateCurrentFlowUxInputs:u,uploadFile:l,getHttpUrlOfFilePath:c,flowTest:f,flowEvaluate:d}),[e,t,r,n,o,i,s,a,u,l,c,f,d])},Oht=()=>{const e=gve();re.useEffect(()=>{const t=window.matchMedia("(prefers-color-scheme: dark)");e(t.matches?"dark":"light");const r=n=>{e(n.matches?"dark":"light")};return t.addEventListener("change",r),()=>{t.removeEventListener("change",r)}},[e])},Dht=()=>Tt(e=>{e.startsWith("http://")||e.startsWith("https://")?window.open(e,"_blank"):window.open(kve(e),"_blank")}),Fht=()=>Tt(()=>({})),Bht=()=>Tt(e=>{}),Tc=new URLSearchParams(window.location.search).get("flow")??"",i1=atob(Tc),Mht=i1.startsWith("/"),DT=Mht?"/":"\\",Lht=i1.split(DT).pop();document.title=Lht??"Chat";const Rz=()=>hn.Dag,wve=e=>({flowFilePath:i1?[i1,"flow.dag.yaml"].join(DT):e??"",flowDirPath:i1}),kve=e=>`${Cht}/v1.0/ui/media?flow=${Tc}&image_path=${e}`,jht=()=>{const e=Ave(),t=Tve(),r=Rz();return Tt(n=>{switch(r){case hn.Prompty:return t(n);case hn.Dag:default:return e(n)}})},Ave=()=>Tt(e=>new Promise(async(t,r)=>{try{const{flowFilePath:n}=wve(e),o=Rz(),i=await Wf.get("/v1.0/ui/yaml",{params:{flow:Tc}}),s=Pat.parse(i.data??"");t({flowFilePath:n,flowFileRelativePath:n,flowSnapshot:s,chatSourceType:o})}catch(n){r(n)}})),Tve=()=>Tt(e=>new Promise(async(t,r)=>{try{const{flowFilePath:n}=wve(e),o=Rz();t({flowFilePath:n,flowFileRelativePath:n,inferSignature:{inputs:{firstName:{type:"string",is_chat_input:!1,default:"John"},lastName:{type:"string",is_chat_input:!1,default:"Doh"},question:{type:"string",is_chat_input:!0,default:" What is the meaning of life?"}}},chatSourceType:o})}catch(n){r(n)}})),zht=()=>Tt(async()=>new Promise(async(e,t)=>{try{const r=await Wf.get("/v1.0/ui/yaml",{params:{flow:Tc,experiment:"./flow.exp.yaml"}});e(r.data)}catch(r){t(r)}})),Hht=()=>Tt(async e=>new Promise(async(t,r)=>{try{await Wf.post("/v1.0/ui/yaml",{inputs:e},{params:{flow:Tc,experiment:"./flow.exp.yaml"}}),t()}catch(n){r(n)}})),$ht=()=>{const[e]=Tu(),{chatInputName:t,chatOutputName:r,chatHistoryName:n}=dve();return Tt(async()=>{const o=localStorage.getItem(`flowChatConfig##${e}`),i=o?JSON.parse(o):{};return{chatInputName:(i.chatInputName||t)??"",chatOutputName:(i.chatOutputName||r)??"",chatHistoryName:(i.chatHistoryName||n)??""}})},Pht=()=>{const[e]=Tu(),t=ml(),r=Ht();return Tt(async n=>{const o={...t};Object.keys(n).forEach(i=>{const s=n[i];s&&(o[i]=s)}),localStorage.setItem(`flowChatConfig##${e}`,JSON.stringify(o)),r.flowChatConfig$.next(o)})},qht=()=>Tt(()=>new Promise(async e=>{try{const r=(await Wf.get("/v1.0/ui/ux_inputs",{params:{flow:Tc}})).data;e(r)}catch{e({})}})),Wht=()=>{const e=Ht();return Tt(async()=>new Promise(async(t,r)=>{try{await Wf.post("/v1.0/ui/ux_inputs",{ux_inputs:Sve(e)},{params:{flow:Tc}}),t()}catch(n){r(n)}}))},Kht=()=>Tt(e=>new Promise(async(t,r)=>{try{const n=e,i=(await Wf.post("/v1.0/ui/media_save",{extension:n.name.substring(n.name.lastIndexOf(".")+1),base64_data:await Y8(n)},{params:{flow:Tc}})).data;t(i)}catch(n){r(n)}})),Ght=()=>Tt(async e=>e.startsWith("http://")||e.startsWith("https://")?e:new Promise(async(t,r)=>{try{t(kve(e))}catch(n){r(n)}})),Vht=()=>Tt(async e=>{const{sessionId:t,tuningNodeName:r,batchRequest:n}=e;return new Promise(async(o,i)=>{try{const s=await Promise.all((n??[]).map(async l=>{var g,v,y,E,_,S;const c=await Wf.post("/v1.0/Flows/test",{session:t,variant:r?`\${${r}.${l.variantName}}`:void 0,inputs:l.flowInputs},{params:{flow:Tc}}),f=(v=(g=c.data)==null?void 0:g.flow)==null?void 0:v.detail,d=(E=(y=c.data)==null?void 0:y.flow)==null?void 0:E.log;return{flowResult:{flow_runs:(_=f==null?void 0:f.flow_runs)==null?void 0:_.map(b=>{var A,x,T,N,I;return{...b,variant_id:r?l.variantName:void 0,output_path:(I=(N=(T=(x=(A=c.data)==null?void 0:A.flow)==null?void 0:x.output_path)==null?void 0:T.split(i1))==null?void 0:N[1])==null?void 0:I.substring(1)}}),node_runs:(S=f==null?void 0:f.node_runs)==null?void 0:S.map(b=>({...b,variant_id:r?l.variantName:void 0}))},flowLog:d}})),u=(l=>{const c=l.flatMap(d=>d.flowResult.flow_runs??[]),f=l.flatMap(d=>d.flowResult.node_runs??[]);return{flowResult:{flow_runs:c,node_runs:f},flowLog:l.map(d=>d.flowLog).join(` +`)}function VA(e){return[{type:xr.TEXT,value:e}]}function hht(e){return e.map(t=>{var r,n;if(typeof t=="string")return{type:xr.TEXT,value:t};if(t["data:image/jpg;path"]||t["data:image/png;path"]){const o=t["data:image/jpg;path"]??t["data:image/png;path"]??"";return{type:xr.IMAGE,src:o,alt:o}}if((t==null?void 0:t.type)==="text"&&"text"in t)return{type:xr.TEXT,value:t.text??""};if((t==null?void 0:t.type)==="image_file"&&"image_file"in t){const o=((r=t.image_file)==null?void 0:r.path)??"";return{type:xr.IMAGE,src:o,alt:o}}if((t==null?void 0:t.type)==="image_url"&&"image_url"in t){const o=((n=t.image_url)==null?void 0:n.url)??"";return{type:xr.IMAGE,src:o,alt:o}}return{type:xr.TEXT,value:JSON.stringify(t)}})}function pht(e){return typeof e=="string"?VA(e):typeof e>"u"?VA(""):Array.isArray(e)?hht(e):VA(JSON.stringify(e))}function m6(e){return e.map(fht)}function y6(e){return e.map(dht)}function cve(e){const t={...e[0]},r=e.slice(1);let n=!1;if((t==null?void 0:t.type)===xr.TEXT&&(t.value.trim()==="/eval"||t.value.trim().startsWith("/eval ")||t.value.trim().startsWith(`/eval +`))){const s=t.value.trim().match(/^\/eval\s+(.*)/m),a=s==null?void 0:s[1];a?t.value=a:n=!0}return n?r:[t,...r]}function ght(e){const t=cve(e);return m6(t)}function vht(e){const t=cve(e);return y6(t)}const mht=e=>typeof e!="object"||e===null?!1:!!Object.keys(e).find(r=>r.startsWith("data:image/")),yht=(e,t,r)=>Array.isArray(e)?e.map(n=>{var o;if(typeof n=="string")return n;if(mht(n)){const s=Object.keys(n).find(a=>a.startsWith("data:image/"));if(s){const{valType:a}=VHe(s);if(a==="path"){const u=n[s];return{...n,[s]:`${t}${r}${u}`}}}return n}else if(n.type==="image_file"&&((o=n.image_file)!=null&&o.path))return{...n,image_file:{...n.image_file,path:`${t}${r}${n.image_file.path}`}};return n}):e,Zw=({id:e,content:t,extra:r,from:n})=>({id:e??Cs.v4(),type:gf.Message,history:[{category:Eo.Chatbot,from:n??"Assistant",timestamp:new Date().toISOString(),content:pht(t),extra:r}]}),b6=({id:e,errorMessage:t,stackTrace:r})=>({id:e??Cs.v4(),type:gf.Message,history:[{category:Eo.Error,from:"system",timestamp:new Date().toISOString(),content:VA(t),error:r}]}),bht=(...e)=>{const t=e[0];if(!t)throw new Error("messageList should not be empty");const r=[...t.history];return e.slice(1).forEach(o=>{o.history.forEach(i=>{((i==null?void 0:i.category)===Eo.Chatbot||(i==null?void 0:i.category)===Eo.Error)&&r.push(i)})}),{...t,history:r}},_ht=e=>{if(!e[0])return[];const t=[...e[0]];return e.slice(1).forEach(n=>{n.forEach(o=>{const i=t.findIndex(s=>s.id===o.id);i>=0&&(t[i]=bht(t[i],o))})}),t},Ht=()=>re.useContext(whe).viewModel,yp=()=>{const e=Ht();return ml(e.activeNodeName$)},Eht=()=>{const e=Ht();return ml(e.chatMessageVariantFilter$)},xu=()=>{const e=Ht();return ml(e.flowFilePath$)},Tu=()=>{const e=Ht();return ml(e.chatSourceType$)},fve=()=>{const e=Ht();return ml(e.chatSourceFileName$)},Sht=()=>{const e=Ht();return ml(e.flowFileRelativePath$)},wht=()=>{const e=Ht();return ml(e.flowFileNextPath$)},Aht=()=>{const e=Ht();return ml(e.flowFileNextRelativePath$)},dve=()=>{const e=Ht();return ml(e.isSwitchingFlowPathLocked$)},_l=()=>{const e=Ht();return Bi(e.flowChatConfig$)},kht=e=>{const t=Ht();return k1e(t.flowInputsMap$,e)},xht=e=>{const t=Ht();return k1e(t.flowOutputsMap$,e)},hve=()=>{const e=Ht(),{flowInputDefinition:t}=bp();return re.useCallback(r=>{const n=Object.keys(t),o=e.flowInputsMap$.get(r),i={};for(const s of n)i[s]=o==null?void 0:o[s];return i},[t,e.flowInputsMap$])},jE=()=>{const e=Ht();return re.useCallback((t,r)=>{const n=e.flowInputsMap$.get(t);e.flowInputsMap$.set(t,{...n,...r})},[e.flowInputsMap$])},Tht=()=>{const e=Ht();return re.useCallback(t=>e.flowOutputsMap$.get(t),[e.flowOutputsMap$])},pve=()=>{const e=Ht();return re.useCallback((t,r)=>{const n=e.flowOutputsMap$.get(t);e.flowOutputsMap$.set(t,{...n,...r})},[e.flowOutputsMap$])},Iht=()=>{const e=Ht();return re.useCallback(t=>e.flowOutputPathMap$.get(t),[e.flowOutputPathMap$])},gve=()=>{const e=Ht();return re.useCallback((t,r)=>{e.flowOutputPathMap$.set(t,r)},[e.flowOutputPathMap$])},Cht=()=>{const e=Ht();return re.useCallback(t=>e.flowLastRunId$.get(t),[e.flowLastRunId$])},Nht=()=>{const e=Ht();return re.useCallback((t,r)=>{e.flowLastRunId$.set(t,r)},[e.flowLastRunId$])},Rht=(e,t)=>{const r=Ht(),[n]=xu(),[o,i]=re.useState(!1),s=re.useCallback(()=>{var a;return e===to?!((a=r.flowHistoryMap$.get(e))!=null&&a.length):t.some(u=>{var l;return!((l=r.flowHistoryMap$.get(`${e}.${u}`))!=null&&l.length)})},[e,t,r.flowHistoryMap$]);return re.useEffect(()=>{if(s())if(i(!0),e===to){const a=e;LM.getChatMessages(n,a).then(l=>{r.flowHistoryMap$.set(a,l)}).then(()=>{i(!1)})}else{const a=[];t.forEach(u=>{const l=`${e}.${u}`,c=LM.getChatMessages(n,l).then(f=>{r.flowHistoryMap$.set(l,f)});a.push(c)}),Promise.all(a).then(()=>{i(!1)})}},[e,s,n,t,r.flowHistoryMap$]),{loading:o}},Oht=(e,t)=>{const r=Ht(),n=Bi(r.flowHistoryMap$),o=Bi(r.chatMessageVariantFilter$),{loading:i}=Rht(e,t);return re.useMemo(()=>{if(i)return[];const s=new Set(o),a=[];return n.forEach((u,l)=>{const[c,f]=l.split(".");c===e&&(s.size===0||s.has(wh)||s.has(f))&&a.push(u)}),_ht(a)},[e,o,n,i])},Dht=()=>{const e=Ht();return Bi(e.flowTestRunStatus$)},vve=()=>{const e=Ht();return re.useCallback((t,r)=>{e.flowTestRunStatus$.set(t,r)},[e.flowTestRunStatus$])},Lz=()=>{const e=Ht(),[t]=xu();return re.useCallback((r,n,o=!1)=>{const i=e.flowHistoryMap$.get(r)??[];e.flowHistoryMap$.set(r,[...i,...n]),o||n.forEach(s=>{LM.addChatMessage(t,r,s)})},[t,e.flowHistoryMap$])},mve=()=>{const e=Ht();return re.useCallback((t,r)=>{const n=e.flowHistoryMap$.get(t)??[],o=n.findIndex(i=>i.id===r);if(o>=0){const i=[...n.slice(0,o),...n.slice(o+1)];e.flowHistoryMap$.set(t,i)}},[e.flowHistoryMap$])},Fht=()=>Ht().sessionIds,zE=()=>{const e=Ht();return Bi(e.flowSnapshot$)},yve=()=>{const e=Ht();return Bi(e.inferSignature$)},Bht=()=>{const[e]=Tu(),t=zE(),r=yve();switch(e){case Gt.Prompty:return r;case Gt.Dag:case Gt.Flex:default:return t}},bp=()=>{const e=zE(),t=yve(),[r]=Tu();switch(r){case Gt.Prompty:return{flowInputDefinition:(t==null?void 0:t.inputs)??{},flowOutputDefinition:(t==null?void 0:t.outputs)??{},inferSignature:t,messageFormat:void 0,flowSnapshot:void 0};case Gt.Dag:case Gt.Flex:default:return{flowInputDefinition:(e==null?void 0:e.inputs)??{},flowOutputDefinition:(e==null?void 0:e.outputs)??{},inferSignature:void 0,messageFormat:e==null?void 0:e.message_format,flowSnapshot:e}}},bve=()=>{const{flowInputDefinition:e,flowOutputDefinition:t}=bp();let r="",n="",o="";for(const i in e){const s=e[i];s.is_chat_input?r=i:s.is_chat_history&&(n=i)}for(const i in t)t[i].is_chat_output&&(o=i);return{chatInputName:r,chatHistoryName:n,chatOutputName:o}},_ve=e=>{var o;const t=Bht();return((o=((t==null?void 0:t.inputs)??{})[e])==null?void 0:o.type)===je.list},Eve=()=>{const e=Ht();return ml(e.isRightPanelOpen$)},Mht=()=>{const e=Ht();return Bi(e.chatUITheme$)},Sve=()=>{const e=Ht();return re.useCallback(t=>{e.chatUITheme$.next(t)},[e])},wve=()=>{const e=Ht();return re.useCallback((t,r)=>{e.chatConsole$.set(t,r)},[e])},Ave=()=>{const e=Ht();return re.useCallback((t,r)=>{e.defaultFlowRunMetrics$.set(t,r)},[e])},kve=()=>{const e=Ht(),t=re.useCallback(n=>{const o=typeof n=="function"?n(e.rightPanelState$.getSnapshot()):n;e.rightPanelState$.next({...e.rightPanelState$.getSnapshot(),...o})},[e.rightPanelState$]);return[Bi(e.rightPanelState$),t]},xve=()=>{const e=Ht();return Bi(e.settingsSubmitting$)},Lht=()=>{const e=Ht();return re.useCallback((t,r)=>{e.settingsSubmitting$.next({...e.settingsSubmitting$.getSnapshot(),[t]:r})},[e.settingsSubmitting$])},Tve=()=>{const e=Ht();return re.useCallback(t=>{const r={...e.settingsSubmitting$.getSnapshot()},n=Object.keys(r).find(o=>r[o]===t);n&&delete r[n],e.settingsSubmitting$.next(r)},[e.settingsSubmitting$])},jht=()=>{const e=Ht();return Bi(e.errorMessages$)},zht=()=>{const e=Ht();return re.useCallback(t=>{e.errorMessages$.next([...e.errorMessages$.getSnapshot(),t])},[e.errorMessages$])},Hht=()=>{const e=Ht();return re.useCallback(t=>{const r=e.errorMessages$.getSnapshot();e.errorMessages$.next([...r.slice(0,t),...r.slice(t+1)])},[e.errorMessages$])},Ive=()=>{const e=Ht();return re.useCallback(t=>{const r=e.errorMessages$.getSnapshot();e.errorMessages$.next(r.filter(t))},[e.errorMessages$])},$ht=(e,t)=>{var n,o;const{flowInputsMap$:r}=e;r.clear(),(n=t.chat_list)==null||n.forEach(i=>{r.set(i.name??"",i.inputs??{})}),(o=t.prompty_chat_list)==null||o.forEach(i=>{r.set(i.name??"",i.inputs??{})})},Cve=e=>{const{flowInputsMap$:t}=e,r=[],n=[];return t.getSnapshot().forEach((i,s)=>{if(s.endsWith(Zat)){n.push({name:s,inputs:i});return}r.push({name:s,inputs:i})}),{chat_list:r,prompty_chat_list:n}},Pht=window.location.origin,gc=iHe.create({});gc.interceptors.response.use(e=>(window.dispatchEvent(new CustomEvent(yx,{detail:{error:void 0}})),e),e=>(e.message==="Network Error"&&window.dispatchEvent(new CustomEvent(yx,{detail:{error:e}})),Promise.reject(e)));const qht=()=>{const e=Ove(),t=Dve(),r=Xht(),n=Qht(),o=Zht(),i=Jht(),s=ept(),a=tpt(),u=rpt(),l=npt(),c=opt(),f=ipt(),d=spt();return re.useMemo(()=>({getCurrentFlowSnapshot:e,getCurrentInferSignature:t,getCurrentChatSource:r,getFlowExpYaml:n,setFlowExpYaml:o,getFlowChatConfig:i,setFlowChatConfig:s,getCurrentFlowUxInputs:a,updateCurrentFlowUxInputs:u,uploadFile:l,getHttpUrlOfFilePath:c,flowTest:f,flowEvaluate:d}),[e,t,r,n,o,i,s,a,u,l,c,f,d])},Wht=()=>{const e=Sve();re.useEffect(()=>{const t=window.matchMedia("(prefers-color-scheme: dark)");e(t.matches?"dark":"light");const r=n=>{e(n.matches?"dark":"light")};return t.addEventListener("change",r),()=>{t.removeEventListener("change",r)}},[e])},Kht=()=>It(e=>{e.startsWith("http://")||e.startsWith("https://")?window.open(e,"_blank"):window.open(Rve(e),"_blank")}),Ght=()=>It(()=>({})),Vht=()=>It(e=>{}),dl=new URLSearchParams(window.location.search).get("flow")??"",rv=atob(dl),Uht=rv.startsWith("/"),gg=Uht?"/":"\\",jz=rv.split(gg),lb=jz.pop(),UA=jz.join(gg),Yht=jz.pop();document.title=Yht??"Chat";const zz=()=>{let e=Gt.Dag;return lb==="flow.dag.yaml"?e=Gt.Dag:lb==="flow.flex.yaml"?e=Gt.Flex:Qat.test(lb??"")&&(e=Gt.Prompty),e},Nve=e=>rv||(e??""),Rve=e=>`${Pht}/v1.0/ui/media?flow=${dl}&image_path=${e}`,Xht=()=>{const e=Ove(),t=Dve(),r=zz();return It(n=>{switch(r){case Gt.Prompty:return t(n);case Gt.Dag:case Gt.Flex:default:return e(n)}})},Ove=()=>It(e=>new Promise(async(t,r)=>{try{const n=Nve(e),o=zz(),i=await gc.get("/v1.0/ui/yaml",{params:{flow:dl}}),s=Xat.parse(i.data??"");t({flowFilePath:n,flowFileRelativePath:n,flowSnapshot:s,chatSourceType:o,chatSourceFileName:lb??""})}catch(n){r(n)}})),Dve=()=>It(e=>new Promise(async(t,r)=>{try{const n=Nve(e),o=zz();t({flowFilePath:n,flowFileRelativePath:n,inferSignature:{inputs:{firstName:{type:"string",is_chat_input:!1,default:"John"},lastName:{type:"string",is_chat_input:!1,default:"Doh"},question:{type:"string",is_chat_input:!0,default:" What is the meaning of life?"}}},chatSourceType:o,chatSourceFileName:lb??""})}catch(n){r(n)}})),Qht=()=>It(async()=>new Promise(async(e,t)=>{try{const r=await gc.get("/v1.0/ui/yaml",{params:{flow:dl,experiment:"./flow.exp.yaml"}});e(r.data)}catch(r){t(r)}})),Zht=()=>It(async e=>new Promise(async(t,r)=>{try{await gc.post("/v1.0/ui/yaml",{inputs:e},{params:{flow:dl,experiment:"./flow.exp.yaml"}}),t()}catch(n){r(n)}})),Jht=()=>{const[e]=xu(),{chatInputName:t,chatOutputName:r,chatHistoryName:n}=bve();return It(async()=>{const o=localStorage.getItem(`flowChatConfig##${e}`),i=o?JSON.parse(o):{};return{chatInputName:(i.chatInputName||t)??"",chatOutputName:(i.chatOutputName||r)??"",chatHistoryName:(i.chatHistoryName||n)??""}})},ept=()=>{const[e]=xu(),t=_l(),r=Ht();return It(async n=>{const o={...t};Object.keys(n).forEach(i=>{const s=n[i];s&&(o[i]=s)}),localStorage.setItem(`flowChatConfig##${e}`,JSON.stringify(o)),r.flowChatConfig$.next(o)})},tpt=()=>It(()=>new Promise(async e=>{try{const r=(await gc.get("/v1.0/ui/ux_inputs",{params:{flow:dl}})).data;e(r)}catch{e({})}})),rpt=()=>{const e=Ht();return It(async()=>new Promise(async(t,r)=>{try{await gc.post("/v1.0/ui/ux_inputs",{ux_inputs:Cve(e)},{params:{flow:dl}}),t()}catch(n){r(n)}}))},npt=()=>It(e=>new Promise(async(t,r)=>{try{const n=e,i=(await gc.post("/v1.0/ui/media_save",{extension:n.name.substring(n.name.lastIndexOf(".")+1),base64_data:await e7(n)},{params:{flow:dl}})).data;t(i)}catch(n){r(n)}})),opt=()=>It(async e=>e.startsWith("http://")||e.startsWith("https://")?e:new Promise(async(t,r)=>{try{t(Rve(e))}catch(n){r(n)}})),ipt=()=>It(async e=>{const{sessionId:t,tuningNodeName:r,batchRequest:n}=e;return new Promise(async(o,i)=>{try{const s=await Promise.all((n??[]).map(async l=>{var g,v,y,E,_,S;const c=await gc.post("/v1.0/Flows/test",{session:t,variant:r?`\${${r}.${l.variantName}}`:void 0,inputs:l.flowInputs},{params:{flow:dl}}),f=(v=(g=c.data)==null?void 0:g.flow)==null?void 0:v.detail,d=(E=(y=c.data)==null?void 0:y.flow)==null?void 0:E.log;return{flowResult:{flow_runs:(_=f==null?void 0:f.flow_runs)==null?void 0:_.map(b=>{var A,T,x,C,I;return{...b,variant_id:r?l.variantName:void 0,output_path:(I=(C=(x=(T=(A=c.data)==null?void 0:A.flow)==null?void 0:T.output_path)==null?void 0:x.split(UA))==null?void 0:C[1])==null?void 0:I.substring(1)}}),node_runs:(S=f==null?void 0:f.node_runs)==null?void 0:S.map(b=>({...b,variant_id:r?l.variantName:void 0}))},flowLog:d}})),u=(l=>{const c=l.flatMap(d=>d.flowResult.flow_runs??[]),f=l.flatMap(d=>d.flowResult.node_runs??[]);return{flowResult:{flow_runs:c,node_runs:f},flowLog:l.map(d=>d.flowLog).join(` -`)}})(s);o({logs:u.flowLog??"",flowRunResult:u.flowResult})}catch(s){i(s)}})}),Uht=()=>Tt(async e=>{const{mainFlowConfig:t,experimentPath:r}=e,{tuningNodeName:n,batchRequest:o}=t;return new Promise(async(i,s)=>{try{const a=[];await Promise.all((o??[]).map(async u=>{const l=!!u.flowOutputs,c=await Wf.post("/v1.0/Experiments/test",{inputs:l?void 0:u.flowInputs,template:[i1,"flow.exp.yaml"].join(DT),skip_flow:l?[i1,"flow.dag.yaml"].join(DT):void 0,skip_flow_output:l?u.flowOutputs:void 0,skip_flow_run_id:l?u.lastRunId:void 0},{params:{flow:Tc}});a.push({variantName:void 0,result:Object.keys(c.data??{}).map(f=>{var g,v,y;const d=(g=c.data[f])==null?void 0:g.detail,h=(y=(v=d==null?void 0:d.flow_runs)==null?void 0:v[0])==null?void 0:y.output;return{name:f,output:h}})})})),i({logs:"",batchResponse:a})}catch(a){s(a)}})}),Yht=()=>{const e=xve(),t=npt(),r=rpt(),n=opt(),o=ipt(),i=spt(),s=apt(),a=upt(),u=lpt(),l=cpt(),c=fpt(),f=dpt(),d=hpt();return re.useMemo(()=>({getCurrentFlowSnapshot:e,getCurrentInferSignature:t,getCurrentChatSource:r,getFlowExpYaml:n,setFlowExpYaml:o,getFlowChatConfig:i,setFlowChatConfig:s,getCurrentFlowUxInputs:a,updateCurrentFlowUxInputs:u,uploadFile:l,getHttpUrlOfFilePath:c,flowTest:f,flowEvaluate:d}),[e,t,r,n,o,i,s,a,u,l,c,f,d])},Xht=()=>Tt(e=>{hi.postMessage({name:ln.CURRENT_FLOW_CONFIRM,payload:{flowFilePath:e}})}),Qht=e=>{yu(ln.CURRENT_FLOW_RESPONSE,e)},Zht=()=>{const e=gve();yu(ln.READ_VSCODE_THEME_RESPONSE,({theme:t})=>{e(t)}),re.useEffect(()=>{hi.postMessage({name:ln.READ_VSCODE_THEME_REQUEST})},[])},Jht=()=>Tt(e=>{hi.postMessage({name:ln.OPEN_CODE_FILE,payload:{path:e}})}),ept=()=>Tt(()=>hi.getState()),tpt=()=>Tt(e=>{hi.setState(e)}),rpt=()=>{const e=xve();return Tt(t=>e(t))},xve=()=>{const e=re.useRef(new Map);return yu(ln.CURRENT_FLOW_RESPONSE,({id:t,flowFilePath:r,flowFileRelativePath:n,flowSnapshot:o})=>{if(t&&e.current.has(t)){const i=e.current.get(t);i==null||i({flowFilePath:r,flowSnapshot:o,chatSourceType:hn.Dag}),e.current.delete(t)}}),Tt(t=>{const r=Math.random().toString(36).slice(2);return new Promise(n=>{e.current.set(r,n),hi.postMessage({name:ln.CURRENT_FLOW_REQUEST,payload:{id:r,fallbackFlowFilePath:t}})})})},npt=()=>Tt(e=>new Promise((t,r)=>{try{t({flowFilePath:"",flowFileRelativePath:"",inferSignature:{},chatSourceType:hn.Prompty})}catch(n){r(n)}})),opt=()=>Tt(async()=>""),ipt=()=>Tt(async()=>{}),spt=()=>{const{chatInputName:e,chatOutputName:t,chatHistoryName:r}=dve();return Tt(async()=>({chatInputName:e,chatOutputName:t,chatHistoryName:r}))},apt=()=>{const[e]=Tu(),t=ml(),r=Ht();return Tt(async n=>{const o={...t,...n};hi.postMessage({name:ln.SET_FLOW_CHAT_CONFIG,payload:{flowFilePath:e,...n}}),r.flowChatConfig$.next(o)})},upt=()=>{const[e]=Tu(),t=re.useRef(new Map);return yu(ln.READ_FLOW_UX_INPUTS_RESPONSE,({id:r,uxInputs:n})=>{if(r&&t.current.has(r)){const o=t.current.get(r);o==null||o(n),t.current.delete(r)}}),Tt(()=>{const r=Math.random().toString(36).slice(2);return new Promise(n=>{t.current.set(r,n),hi.postMessage({name:ln.READ_FLOW_UX_INPUTS_REQUEST,payload:{id:r,flowFilePath:e}})})})},lpt=()=>{const e=Ht(),[t]=Tu();return Tt(async()=>{hi.postMessage({name:ln.SET_FLOW_UX_INPUTS,payload:{flowFilePath:t,uxInputs:Sve(e)}})})},cpt=()=>{const e=re.useRef(new Map);return yu(ln.FILE_RELATIVE_PATH_RESPONSE,({id:t,relativePath:r})=>{if(t&&e.current.has(t)){const n=e.current.get(t);n==null||n(r??""),e.current.delete(t)}}),Tt(t=>{const r=Math.random().toString(36).slice(2);return new Promise(async n=>{const o=t;e.current.set(r,n),hi.postMessage({name:ln.FILE_RELATIVE_PATH_REQUEST,payload:{id:r,path:o.path,fileName:o.name,fileBase64:o.path?void 0:await Y8(o)}})})})},fpt=()=>{const e=re.useRef({}),t=Tt(async r=>r.startsWith("http://")||r.startsWith("https://")?r:new Promise(n=>{hi.postMessage({name:ln.GET_FILE_WEBVIEW_URI,payload:{filePath:r}}),e.current[r]=n}));return yu(ln.SEND_FILE_WEBVIEW_URI,({filePath:r,uri:n})=>{e.current[r]&&(e.current[r](n),delete e.current[r])}),t},dpt=()=>{const[e]=Tu(),t=re.useRef(new Map);return yu(ln.RUN_RESULT_CHANGED,({flowFilePath:r,flowRunResult:n})=>{if(!(n!=null&&n.flow_runs))return;const o=t.current.get(r);if(o){const[i,s]=o;i==null||i({logs:"",flowRunResult:n??{}}),t.current.delete(r)}}),yu(ln.SUBMIT_FLOW_RUN_FINISHED,({flowFilePath:r,triggerBy:n,tuningNodeName:o,stdoutList:i,errorMessage:s})=>{if(e===r||e===n){const a=t.current.get(e);if(s&&a){const[u,l]=a;l(new Error(s)),t.current.delete(e)}}}),Tt(async r=>{const{submitId:n,tuningNodeName:o,batchRequest:i}=r;return new Promise((s,a)=>{t.current.set(e,[s,a]),hi.postMessage({name:ln.SUBMIT_FLOW_RUN,payload:{submitId:n,flowFilePath:e,validationErrors:{},selections:{mode:kle.Standard,tuningNodeName:o,inChildProcess:!0},batchContent:i}})})})},hpt=()=>{const[e]=Tu(),t=re.useRef(new Map);return yu(ln.SUBMIT_FLOW_EVAL_RESPONSE,({errorMessage:r,batchResponse:n})=>{const o=t.current.get(e);if(o){const[i,s]=o;r?s(new Error(r)):i({logs:"",batchResponse:n}),t.current.delete(e)}}),Tt(async r=>{var u;const{mainFlowConfig:n,experimentPath:o}=r,{tuningNodeName:i="",batchRequest:s=[]}=n,a=(u=s[0])!=null&&u.flowOutputs?"eval_last":"experiment";return new Promise((l,c)=>{if(a==="experiment"&&i){c(new Error("Evaluation of variants is not yet supported"));return}t.current.set(e,[l,c]),hi.postMessage({name:ln.SUBMIT_FLOW_EVAL,payload:{flowFilePath:e,mode:a,tuningNodeName:i,batchRequest:s}})})})},Ive=(...e)=>{},Da=So?Yht:Rht,ppt=So?Xht:()=>Ive,gpt=So?Qht:()=>Ive,vpt=So?Zht:Oht,mpt=So?Jht:Dht,Nve=So?ept:Fht,Cve=So?tpt:Bht,ypt=()=>{const e=vve(),t=bve(),r=_ve(),n=Object.values(t);yu(ln.READ_CHAT_CONSOLE_RESPONSE,({activeNodeName:o,consoles:i,submitId:s})=>{const a=o===""?an:o;a&&e(a,i),s&&n.includes(s)&&r(s)})},bpt=()=>{const e=Ht(),[t,r]=re.useState(!1),{flowFilePath$:n,flowFileRelativePath$:o,flowFileNextPath$:i,flowFileNextRelativePath$:s,flowSnapshot$:a,chatSourceType$:u,topbarErrorMessage$:l,inferSignature$:c}=e,f=re.useRef(new Set),[d]=sve(),h=Da(),g=ppt(),v=Nve(),y=Cve(),E=re.useCallback((b,A)=>{var R,D,L;if(f.current.has(A))return;f.current.add(A);let x,T;const N=Object.keys((b==null?void 0:b.inputs)??{});N.length===1&&(((R=b==null?void 0:b.inputs)==null?void 0:R[N[0]].type)===Le.string||((D=b==null?void 0:b.inputs)==null?void 0:D[N[0]].type)===Le.list)&&(x=N[0]);const I=Object.keys((b==null?void 0:b.outputs)??{});I.length===1&&((L=b==null?void 0:b.outputs)!=null&&L[I[0]])&&(T=I[0]),(x||T)&&h.setFlowChatConfig({chatInputName:x,chatOutputName:T})},[h]),_=Tt(({flowFilePath:b,flowFileRelativePath:A,flowSnapshot:x,chatSourceType:T,inferSignature:N})=>{if(i.next(b),s.next(A),n.getSnapshot()&&d)return;const R=v()??{};y({...R,currentFlowPath:b}),n.next(b),o.next(A),T&&u.next(T),x&&T===hn.Dag&&(a.next(x),So&&setTimeout(()=>{E(x,b)})),N&&T===hn.Prompty&&c.next(N),g(b)}),S=Tt(async()=>{var b,A,x,T,N;r(!1);try{const I=v()??{},R=await h.getCurrentChatSource(I.currentFlowPath),D=R.chatSourceType,L=D===hn.Dag?R.flowSnapshot:void 0,M=D===hn.Prompty?R.inferSignature:void 0;_({flowFilePath:R.flowFilePath,flowFileRelativePath:R.flowFileRelativePath??"",flowSnapshot:L,chatSourceType:D,inferSignature:M}),await _G(0);const q=await h.getFlowChatConfig();if(h.setFlowChatConfig(q),!So){await _G(0);const z=D===hn.Dag?L:M;E(z??{},R.flowFilePath)}l.next("")}catch(I){l.next(((x=(A=(b=I.response)==null?void 0:b.data)==null?void 0:A.error)==null?void 0:x.message)??((N=(T=I.response)==null?void 0:T.data)==null?void 0:N.message)??I.message)}finally{r(!0)}});return gpt(b=>{_(b),r(!0)}),re.useEffect(()=>{S()},[]),t},_pt=()=>{const e=Ht(),[t,r]=re.useState(!1),{flowFilePath$:n}=e,[o]=wc(n),i=Da(),s=Tt(()=>{r(!1),i.getCurrentFlowUxInputs().then(a=>{Nht(e,a)}).finally(()=>{r(!0)})});return re.useEffect(()=>{o&&s()},[s,o]),t},Ept=()=>{const e=bpt();return _pt(),vpt(),ypt(),e},Spt=({children:e})=>C.jsx("div",{style:{display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"},children:e}),wpt=()=>{const[e]=Ac();return re.useMemo(()=>{if(So)return!1;switch(e){case hn.Prompty:return!1;case hn.Dag:default:return!0}},[e])},Cte=`$schema: https://azuremlschemas.azureedge.net/promptflow/latest/Experiment.schema.json +`)}})(s);o({logs:u.flowLog??"",flowRunResult:u.flowResult})}catch(s){i(s)}})}),spt=()=>It(async e=>{const{sessionId:t,mainFlowConfig:r,experimentPath:n}=e,{tuningNodeName:o,batchRequest:i}=r;return new Promise(async(s,a)=>{try{const u=[];await Promise.all((i??[]).map(async l=>{const f=!!l.flowOutputs?await gc.post("/v1.0/Experiments/skip_test",{experiment_template:[UA,"flow.exp.yaml"].join(gg),override_flow_path:rv,session:t,skip_flow:[UA,"flow.dag.yaml"].join(gg),skip_flow_output:l.flowOutputs,skip_flow_run_id:l.lastRunId},{params:{flow:dl}}):await gc.post("/v1.0/Experiments/test_with_flow_override",{inputs:l.flowInputs,experiment_template:[UA,"flow.exp.yaml"].join(gg),override_flow_path:rv,session:t},{params:{flow:dl}});u.push({variantName:void 0,result:Object.keys(f.data??{}).map(d=>{var y,E,_,S,b;const h=(y=f.data[d])==null?void 0:y.detail,g=(_=(E=h==null?void 0:h.flow_runs)==null?void 0:E[0])==null?void 0:_.output,v=(b=(S=h==null?void 0:h.flow_runs)==null?void 0:S[0])==null?void 0:b.root_run_id;return{name:d,output:g,rootRunId:v}})})})),s({logs:"",batchResponse:u})}catch(u){a(u)}})}),apt=()=>{const e=Fve(),t=gpt(),r=ppt(),n=vpt(),o=mpt(),i=ypt(),s=bpt(),a=_pt(),u=Ept(),l=Spt(),c=wpt(),f=Apt(),d=kpt();return re.useMemo(()=>({getCurrentFlowSnapshot:e,getCurrentInferSignature:t,getCurrentChatSource:r,getFlowExpYaml:n,setFlowExpYaml:o,getFlowChatConfig:i,setFlowChatConfig:s,getCurrentFlowUxInputs:a,updateCurrentFlowUxInputs:u,uploadFile:l,getHttpUrlOfFilePath:c,flowTest:f,flowEvaluate:d}),[e,t,r,n,o,i,s,a,u,l,c,f,d])},upt=()=>It(e=>{pi.postMessage({name:ln.CURRENT_FLOW_CONFIRM,payload:{flowFilePath:e}})}),lpt=e=>{yu(ln.CURRENT_FLOW_RESPONSE,e)},cpt=()=>{const e=Sve();yu(ln.READ_VSCODE_THEME_RESPONSE,({theme:t})=>{e(t)}),re.useEffect(()=>{pi.postMessage({name:ln.READ_VSCODE_THEME_REQUEST})},[])},fpt=()=>It(e=>{pi.postMessage({name:ln.OPEN_CODE_FILE,payload:{path:e}})}),dpt=()=>It(()=>pi.getState()),hpt=()=>It(e=>{pi.setState(e)}),ppt=()=>{const e=Fve();return It(t=>e(t))},Fve=()=>{const e=re.useRef(new Map);return yu(ln.CURRENT_FLOW_RESPONSE,({id:t,flowFilePath:r,flowFileRelativePath:n,flowSnapshot:o})=>{if(t&&e.current.has(t)){const i=e.current.get(t);i==null||i({flowFilePath:r,flowSnapshot:o,chatSourceType:Gt.Dag,chatSourceFileName:"flow.dag.yaml"}),e.current.delete(t)}}),It(t=>{const r=Math.random().toString(36).slice(2);return new Promise(n=>{e.current.set(r,n),pi.postMessage({name:ln.CURRENT_FLOW_REQUEST,payload:{id:r,fallbackFlowFilePath:t}})})})},gpt=()=>It(e=>new Promise((t,r)=>{try{t({flowFilePath:"",flowFileRelativePath:"",inferSignature:{},chatSourceType:Gt.Prompty,chatSourceFileName:""})}catch(n){r(n)}})),vpt=()=>It(async()=>""),mpt=()=>It(async()=>{}),ypt=()=>{const{chatInputName:e,chatOutputName:t,chatHistoryName:r}=bve();return It(async()=>({chatInputName:e,chatOutputName:t,chatHistoryName:r}))},bpt=()=>{const[e]=xu(),t=_l(),r=Ht();return It(async n=>{const o={...t,...n};pi.postMessage({name:ln.SET_FLOW_CHAT_CONFIG,payload:{flowFilePath:e,...n}}),r.flowChatConfig$.next(o)})},_pt=()=>{const[e]=xu(),t=re.useRef(new Map);return yu(ln.READ_FLOW_UX_INPUTS_RESPONSE,({id:r,uxInputs:n})=>{if(r&&t.current.has(r)){const o=t.current.get(r);o==null||o(n),t.current.delete(r)}}),It(()=>{const r=Math.random().toString(36).slice(2);return new Promise(n=>{t.current.set(r,n),pi.postMessage({name:ln.READ_FLOW_UX_INPUTS_REQUEST,payload:{id:r,flowFilePath:e}})})})},Ept=()=>{const e=Ht(),[t]=xu();return It(async()=>{pi.postMessage({name:ln.SET_FLOW_UX_INPUTS,payload:{flowFilePath:t,uxInputs:Cve(e)}})})},Spt=()=>{const e=re.useRef(new Map);return yu(ln.FILE_RELATIVE_PATH_RESPONSE,({id:t,relativePath:r})=>{if(t&&e.current.has(t)){const n=e.current.get(t);n==null||n(r??""),e.current.delete(t)}}),It(t=>{const r=Math.random().toString(36).slice(2);return new Promise(async n=>{const o=t;e.current.set(r,n),pi.postMessage({name:ln.FILE_RELATIVE_PATH_REQUEST,payload:{id:r,path:o.path,fileName:o.name,fileBase64:o.path?void 0:await e7(o)}})})})},wpt=()=>{const e=re.useRef({}),t=It(async r=>r.startsWith("http://")||r.startsWith("https://")?r:new Promise(n=>{pi.postMessage({name:ln.GET_FILE_WEBVIEW_URI,payload:{filePath:r}}),e.current[r]=n}));return yu(ln.SEND_FILE_WEBVIEW_URI,({filePath:r,uri:n})=>{e.current[r]&&(e.current[r](n),delete e.current[r])}),t},Apt=()=>{const[e]=xu(),t=re.useRef(new Map);return yu(ln.RUN_RESULT_CHANGED,({flowFilePath:r,flowRunResult:n})=>{if(!(n!=null&&n.flow_runs))return;const o=t.current.get(r);if(o){const[i,s]=o;i==null||i({logs:"",flowRunResult:n??{}}),t.current.delete(r)}}),yu(ln.SUBMIT_FLOW_RUN_FINISHED,({flowFilePath:r,triggerBy:n,tuningNodeName:o,stdoutList:i,errorMessage:s})=>{if(e===r||e===n){const a=t.current.get(e);if(s&&a){const[u,l]=a;l(new Error(s)),t.current.delete(e)}}}),It(async r=>{const{submitId:n,tuningNodeName:o,batchRequest:i}=r;return new Promise((s,a)=>{t.current.set(e,[s,a]),pi.postMessage({name:ln.SUBMIT_FLOW_RUN,payload:{submitId:n,flowFilePath:e,validationErrors:{},selections:{mode:Rle.Standard,tuningNodeName:o,inChildProcess:!0},batchContent:i}})})})},kpt=()=>{const[e]=xu(),t=re.useRef(new Map);return yu(ln.SUBMIT_FLOW_EVAL_RESPONSE,({errorMessage:r,batchResponse:n})=>{const o=t.current.get(e);if(o){const[i,s]=o;r?s(new Error(r)):i({logs:"",batchResponse:n}),t.current.delete(e)}}),It(async r=>{var u;const{mainFlowConfig:n,experimentPath:o}=r,{tuningNodeName:i="",batchRequest:s=[]}=n,a=(u=s[0])!=null&&u.flowOutputs?"eval_last":"experiment";return new Promise((l,c)=>{if(a==="experiment"&&i){c(new Error("Evaluation of variants is not yet supported"));return}t.current.set(e,[l,c]),pi.postMessage({name:ln.SUBMIT_FLOW_EVAL,payload:{flowFilePath:e,mode:a,tuningNodeName:i,batchRequest:s}})})})},Bve=(...e)=>{},Da=eo?apt:qht,xpt=eo?upt:()=>Bve,Tpt=eo?lpt:()=>Bve,Ipt=eo?cpt:Wht,Cpt=eo?fpt:Kht,Mve=eo?dpt:Ght,Lve=eo?hpt:Vht,Npt=()=>{const e=wve(),t=xve(),r=Tve(),n=Object.values(t);yu(ln.READ_CHAT_CONSOLE_RESPONSE,({activeNodeName:o,consoles:i,submitId:s})=>{const a=o===""?to:o;a&&e(a,i),s&&n.includes(s)&&r(s)})},Rpt=()=>{const e=Ht(),[t,r]=re.useState(!1),{flowFilePath$:n,flowFileRelativePath$:o,flowFileNextPath$:i,flowFileNextRelativePath$:s,flowSnapshot$:a,chatSourceType$:u,topbarErrorMessage$:l,inferSignature$:c,chatSourceFileName$:f}=e,d=re.useRef(new Set),[h]=dve(),g=Da(),v=xpt(),y=Mve(),E=Lve(),_=re.useCallback((A,T)=>{var D,L,M;if(d.current.has(T))return;d.current.add(T);let x,C;const I=Object.keys((A==null?void 0:A.inputs)??{});I.length===1&&(((D=A==null?void 0:A.inputs)==null?void 0:D[I[0]].type)===je.string||((L=A==null?void 0:A.inputs)==null?void 0:L[I[0]].type)===je.list)&&(x=I[0]);const R=Object.keys((A==null?void 0:A.outputs)??{});R.length===1&&((M=A==null?void 0:A.outputs)!=null&&M[R[0]])&&(C=R[0]),(x||C)&&g.setFlowChatConfig({chatInputName:x,chatOutputName:C})},[g]),S=It(({flowFilePath:A,flowFileRelativePath:T,flowSnapshot:x,chatSourceType:C,inferSignature:I,chatSourceFileName:R})=>{if(i.next(A),s.next(T),n.getSnapshot()&&h)return;const L=y()??{};E({...L,currentFlowPath:A}),n.next(A),o.next(T),C&&u.next(C),R&&f.next(R),x&&(C===Gt.Dag||C===Gt.Flex)&&(a.next(x),eo&&setTimeout(()=>{_(x,A)})),I&&C===Gt.Prompty&&c.next(I),v(A)}),b=It(async()=>{var A,T,x,C,I;r(!1);try{const R=y()??{},D=await g.getCurrentChatSource(R.currentFlowPath),L=D.chatSourceType,M=L===Gt.Dag||L===Gt.Flex?D.flowSnapshot:void 0,q=L===Gt.Prompty?D.inferSignature:void 0;S({flowFilePath:D.flowFilePath,flowFileRelativePath:D.flowFileRelativePath??"",flowSnapshot:M,chatSourceType:L,inferSignature:q,chatSourceFileName:D.chatSourceFileName}),await IG(0);const z=await g.getFlowChatConfig();if(g.setFlowChatConfig(z),!eo){await IG(0);const F=L===Gt.Dag||L===Gt.Flex?M:q;_(F??{},D.flowFilePath)}l.next("")}catch(R){l.next(((x=(T=(A=R.response)==null?void 0:A.data)==null?void 0:T.error)==null?void 0:x.message)??((I=(C=R.response)==null?void 0:C.data)==null?void 0:I.message)??R.message)}finally{r(!0)}});return Tpt(A=>{S(A),r(!0)}),re.useEffect(()=>{b()},[]),t},Opt=()=>{const e=Ht(),[t,r]=re.useState(!1),{flowFilePath$:n}=e,[o]=ml(n),i=Da(),s=It(()=>{r(!1),i.getCurrentFlowUxInputs().then(a=>{$ht(e,a)}).finally(()=>{r(!0)})});return re.useEffect(()=>{o&&s()},[s,o]),t},Dpt=()=>{const e=Rpt();return Opt(),Ipt(),Npt(),e},Fpt=({children:e})=>N.jsx("div",{style:{display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"},children:e}),Bpt=()=>{const[e]=Tu();return re.useMemo(()=>{if(eo)return!1;switch(e){case Gt.Prompty:return!1;case Gt.Dag:case Gt.Flex:default:return!0}},[e])},Lte=`$schema: https://azuremlschemas.azureedge.net/promptflow/latest/Experiment.schema.json # This a example of a flow experiment yaml file. # For experiment, please edit this file to define your own flow experiment. @@ -656,38 +656,42 @@ nodes: prediction: \${main.outputs.answer} environment_variables: {} connections: {} -`,kpt=()=>{const[e]=Tu(),t=Da(),[r,n]=re.useState(!1),[o,i]=re.useState(""),[s,a]=re.useState(""),u=re.useRef(!1),l=Eet(o,200),c=Tt(async()=>{var f;try{n(!0);const d=await t.getFlowExpYaml();i(d??Cte)}catch(d){((f=d==null?void 0:d.response)==null?void 0:f.status)===404?i(Cte):a((d==null?void 0:d.message)??"Failed to fetch yaml content")}finally{n(!1)}});return re.useEffect(()=>{e&&c()},[c,e]),re.useEffect(()=>{u.current&&t.setFlowExpYaml(l)},[t,l]),r?C.jsx("div",{style:{margin:"16px"},children:"Loading..."}):s?C.jsx("div",{style:{margin:"16px"},children:s}):C.jsx("div",{style:{width:"100%",height:"100%"},children:C.jsx(phe,{defaultLanguage:"yaml",value:o,options:{minimap:{enabled:!1}},onChange:f=>{u.current=!0,i(f??"")}})})},Rve=e=>typeof e=="number"&&Number.isInteger(e),Oz=e=>typeof e=="number"&&Number.isFinite(e),LE=e=>typeof e=="string",Ove=e=>typeof e=="boolean"||e==="true"||e==="false",Dve=e=>e===null,Fve=e=>e===void 0,Apt=e=>Array.isArray(e),Tpt=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),m_=e=>{if(!LE(e))return e;try{return JSON.parse(e)}catch{return e}},Bve=e=>!!LE(e),Mve=(e,t)=>{if(t===""||t===void 0)return!0;switch(e){case Le.int:return Rve(Number(t));case Le.double:return Oz(Number(t));case Le.string:return LE(t);case Le.bool:return Ove(t);case Le.list:return Apt(m_(t));case Le.object:return Tpt(m_(t));case Le.image:return Bve(t);default:return!1}},xpt=(e,t)=>{switch(e){case Le.int:case Le.double:return t?Oz(Number(t))?Number(t):t:"";case Le.string:return t??"";case Le.bool:return t?t==="true":"";case Le.list:return t?m_(t):[];case Le.object:return t?m_(t):{};case Le.image:return t??"";default:return t??""}},Rte=e=>{if(!(Dve(e)||Fve(e)))return LE(e)||Rve(e)||Oz(e)||Ove(e)?String(e):JSON.stringify(e)},Ipt=e=>{if(Dve(e)||Fve(e))return"";try{const t=LE(e)?JSON.parse(e):e;return JSON.stringify(t,null,2)}catch{return e}},Dz=()=>{const e=BE(),t=Da();return re.useCallback((n,o)=>{e(n,o),t.updateCurrentFlowUxInputs()},[t,e])},Npt=(e,t)=>{const[r,n]=re.useState(),o=Dz();return{drawerState:r,setDrawerState:n,onSaveDrawer:()=>{var s,a;if(r){const{variantObserveName:u,key:l}=r,c=(s=t.current)==null?void 0:s.getValue(),f=m_(c);o(u,{[l]:f}),(a=e.current)==null||a.close()}}}},Cpt=(e,t)=>{const{chatInputName:r}=t,n=[];for(const[o,i]of Object.entries(e))if(o!==r){const s=i.type===Le.list;n.push({disabled:!s,text:o})}return n},Lve=(e,t)=>{const{chatHistoryName:r}=t,n=[];for(const[o,i]of Object.entries(e))if(o!==r){const s=i.type===Le.list||i.type===Le.string;n.push({disabled:!s,text:o})}return n},Rpt=e=>Object.keys(e).map(t=>({text:t})),Wk=({children:e,title:t,value:r})=>{const n=Opt();return C.jsxs(pue,{value:r,children:[C.jsx(gue,{expandIconPosition:"end",children:C.jsx("span",{className:n.title,children:t??r})}),C.jsx(vue,{children:e})]})},Opt=wr({title:{color:zt.colorNeutralForeground1,fontSize:"16px",fontWeight:600,lineHeight:"150%"}}),Dpt=({headerText:e,readOnly:t,saveButtonDisabled:r,onClickSaveButton:n,children:o,actionRef:i})=>{const[s,a]=re.useState(!1);re.useImperativeHandle(i,()=>({open(){a(!0)},close(){a(!1)}}),[]);const u=Fpt();return C.jsx(B8,{open:s,onOpenChange:(l,c)=>{a(c.open)},children:C.jsx(z8,{className:u.surface,children:C.jsxs(L8,{children:[C.jsx(j8,{className:u.header,children:e}),C.jsx(H8,{className:u.content,children:o}),C.jsxs(M8,{className:u.actions,children:[!t&&C.jsx(Kn,{appearance:"primary",disabled:r,onClick:n,children:"Save"}),C.jsx(Q_,{disableButtonEnhancement:!0,children:C.jsx(Kn,{appearance:"secondary",children:"Cancel"})})]})]})})})},Fpt=wr({surface:{...Ye.padding(0),...Ye.overflow("hidden"),...Ye.border("none"),width:"60%",maxWidth:"60%"},header:{...Ye.borderBottom("1px","solid",zt.colorNeutralStroke2),...Ye.padding("16px","24px"),backgroundImage:"var(--Gradient-Tint-Light, linear-gradient(90deg, #D9EBF9 0%, #D9EBF9 22.92%, #F2F8FD 68.75%, #F9ECF8 100%))",fontSize:"20px",fontWeight:"600",lineHeight:"28px"},content:{...Ye.margin("24px","24px",0,"24px"),...Ye.overflow("visible")},actions:{...Ye.margin("24px")}}),Bpt=["Flow inputs","Flow outputs"],Mpt=["Prompty inputs","Prompty outputs"],Lpt=()=>{const[e]=Ac();return re.useMemo(()=>{switch(e){case hn.Prompty:return{inputsItemValue:"Prompty inputs",outputsItemValue:"Prompty outputs",defaultOpenItems:Mpt};case hn.Dag:default:return{inputsItemValue:"Flow inputs",outputsItemValue:"Flow outputs",defaultOpenItems:Bpt}}},[e])},jve=e=>{const t={};return Object.keys(e).forEach(r=>{const[n,...o]=r.split("_"),s=[n.charAt(0).toUpperCase()+n.slice(1),...o].join(" ");t[s]=e[r]}),t},Ote=["png","jpg","jpeg","gif","bmp","tif","tiff","svg","webp","ico"],jpt=(e,t,r)=>{const n=BE(),o=Dz(),i=re.useId(),s=mpt(),a=Da(),u=g=>{n(e,{[t]:g}),o(e,{[t]:g})};yu(ln.SELECT_FILE_RESPONSE,({id:g,path:v})=>{i===g&&v!==void 0&&t&&u(v)});const{onPaste:l}=_et(g=>{r===Le.image&&u(g)}),c=Tt(g=>{Bve(g)&&s(g)}),f=()=>{hi.postMessage({name:ln.SELECT_FILE_REQUEST,payload:{id:i,onlyExistingFile:!0,filters:{Images:Ote}}})},d=()=>{const g=document.createElement("input");g.type="file",g.accept=Ote.join(","),g.onchange=async v=>{const y=v.target;if(y.files&&y.files.length>0){const E=y.files[0],_=await a.uploadFile(E);u(_)}},g.click()},h=Tt(async g=>{const v=b1e(g);if(v){const y=await a.uploadFile(v);u(y)}});return{onOpenImage:c,selectFile:So?f:d,onPaste:So?l:h}},zpt=({valueType:e,showOpenFileIcon:t,openFileHandler:r,selectFileHandler:n})=>e!==Le.image?C.jsx(C.Fragment,{}):C.jsxs(re.Fragment,{children:[t&&C.jsx(la,{content:"Open file",relationship:"label",positioning:"above",children:C.jsx(Eae,{style:{cursor:"pointer",marginLeft:"6px"},onClick:r})}),C.jsx(la,{content:"Select another file",relationship:"label",positioning:"above",children:C.jsx(QDe,{style:{cursor:"pointer",marginLeft:"6px"},onClick:n})})]}),Hpt=({tooltipContent:e,isJsonValueType:t,onClick:r})=>t?C.jsx(la,{content:e,relationship:"label",positioning:"above",children:C.jsx(XDe,{style:{cursor:"pointer",marginLeft:"6px"},onClick:r})}):C.jsx(C.Fragment,{}),FT=({label:e,show:t,style:r})=>t?C.jsx(Que,{size:"small",style:r,children:e}):C.jsx(C.Fragment,{}),$pt=({rootClassName:e,contentAfter:t,label:r,readOnly:n,tooltipContent:o,required:i,vKey:s,errorMessage:a,value:u,defaultValue:l,after:c,onChange:f,onBlur:d})=>{const h={outline:"none","&:focus":{outline:"none"}},g=(E,_)=>{f==null||f(s,_.value)},v=E=>{u!==void 0&&(d==null||d(s,u))},y=()=>C.jsx(R8,{style:{flex:1,backgroundColor:n?zt.colorNeutralBackground3:void 0},readOnly:n,input:{style:h},value:u??l??"",onChange:g,onBlur:v,contentAfter:t});return C.jsx("div",{className:e,children:C.jsxs("div",{style:{display:"flex",width:"100%",alignItems:"center"},children:[C.jsx(T8,{label:r,required:i,validationMessage:a,style:{flex:1},children:o?C.jsx(la,{content:o,relationship:"description",positioning:"above-end",children:y()}):y()}),c]})})},Ppt=({definition:e,inputName:t,variantObserveName:r,value:n,defaultValue:o,onPreviewInput:i,onErrorChange:s})=>{const{chatInputName:a,chatHistoryName:u}=ml(),l=t===u,c=t===a,f=e.type,d=l||c,h=o===void 0,g=e.type===Le.list||e.type===Le.object,v=BE(),y=Dz(),{onOpenImage:E,selectFile:_,onPaste:S}=jpt(r,t,e.type),b=Tt((N,I)=>{v(r,{[N]:I})}),A=Tt((N,I)=>{const R=e.type,D=R?xpt(R,I):I;y(r,{[N]:D})}),x=e.type?Mve(e.type,n??o)?h&&!d&&(n===""||n===void 0)?"Required":void 0:"Input type is not valid":void 0;re.useEffect(()=>{s==null||s(t,!!x)},[t,x,s]);const T=C.jsxs("div",{style:{display:"flex"},children:[f?C.jsx(Hpt,{tooltipContent:d?"View full value":"Edit value",isJsonValueType:g,onClick:()=>{i==null||i(r,t,f)}}):void 0,C.jsx(zpt,{valueType:e.type,showOpenFileIcon:!!(n??o),openFileHandler:()=>{const N=n??o;N&&E(N)},selectFileHandler:()=>_()})]});return C.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%"},onPasteCapture:S,onDragCapture:S,children:C.jsx($pt,{rootClassName:qpt.fieldRoot,label:C.jsxs("span",{children:[C.jsxs("span",{style:{marginRight:"4px"},children:[t,":"]}),C.jsx("span",{style:{color:zt.colorNeutralForeground4},children:e.type}),C.jsx(FT,{show:c,label:"chat input",style:{marginLeft:5}}),C.jsx(FT,{show:l,label:"chat history",style:{marginLeft:5}})]}),readOnly:d,tooltipContent:c?"Specify the value of chat_input in the chat window input box.":l?"If you specify chat_history, then the system will automatically collect all history within the conversation.":void 0,required:h,vKey:t,value:n,errorMessage:x,defaultValue:o,onChange:b,onBlur:A,contentAfter:T})})},qpt=Mi({fieldRoot:{margin:"6px 0",flex:1},divider:{paddingTop:6,paddingBottom:6},bold:{fontWeight:600}}),Wpt=({rootClassName:e,label:t,element:r})=>C.jsxs("div",{className:e,style:{margin:2},children:[C.jsx(xf,{children:t}),C.jsx("div",{children:r})]}),Kpt=({imagePath:e})=>{const r=Da().getHttpUrlOfFilePath,[n,o]=re.useState(void 0),[i,s]=re.useState(void 0);return re.useEffect(()=>{r(e).then(o).catch(s)},[r,e]),C.jsx("div",{children:i?i.message:n?C.jsx("img",{src:n,alt:e,style:{width:"100%"}}):C.jsx(X_,{size:"tiny"})})},Gpt=({content:e,style:t})=>{const[n,o]=k.useState(!1),i=()=>{o(!0)},s=`${e}`;return s.length<=300?C.jsx("div",{style:t,children:s}):n?C.jsxs("div",{style:t,children:[s,C.jsx("div",{children:C.jsx(qb,{onClick:()=>o(!1),children:"Collapse"})})]}):C.jsxs("div",{style:t,children:[`${s.slice(0,300)}...`," ",C.jsx("div",{children:C.jsx(qb,{onClick:i,children:"Expand"})})]})},Vpt=({rootClassName:e,inline:t,label:r,value:n})=>C.jsxs("div",{className:e,style:{margin:2},children:[C.jsx(xf,{children:r}),t?C.jsx("span",{children:n}):C.jsx(Gpt,{content:n,style:{fontSize:"12px",fontWeight:400}})]}),Dte=Mi({output:{flex:1}}),Upt=({activeNodeName:e,variantName:t,showTestButton:r,onPreviewInput:n})=>{const o=e===an?an:`${e}.${t}`,i=hht(o),s=pht(o),a=uve(),u=vht(),l=lve(),c=mve(),f=Aht(),d=_ve(),g=!!bve()[o],[v,y]=re.useState(gE()),[E,_]=re.useState(void 0),S=Da(),{flowInputDefinition:b,flowOutputDefinition:A}=Gv(),{chatInputName:x,chatOutputName:T,chatHistoryName:N}=ml(),{inputsItemValue:I,outputsItemValue:R,defaultOpenItems:D}=Lpt(),L=re.useCallback((z,B)=>{y(P=>B?P.add(z):P.remove(z))},[]),M=Tt(async()=>{var B,P,K,U,X;const z=ga.v4();try{_(void 0),f(o,z);const{flowRunResult:J}=await S.flowTest({submitId:z,tuningNodeName:e===an?"":e,batchRequest:[{variantName:e===an?void 0:t,flowInputs:{...i}}]});a(o,((P=(B=J==null?void 0:J.flow_runs)==null?void 0:B[0])==null?void 0:P.output)??{}),l(o,(U=(K=J==null?void 0:J.flow_runs)==null?void 0:K[0])==null?void 0:U.output_path),c(e,jve(((X=J==null?void 0:J.flow_runs)==null?void 0:X[0].system_metrics)||{}))}catch(J){_(J)}finally{d(z)}}),q=()=>{var z,B,P;return C.jsxs(v8,{multiple:!0,collapsible:!0,defaultOpenItems:[...D],children:[C.jsxs(Wk,{value:I,children:[Object.keys(b).map(K=>{const U=`${o}.${K}`,X=Rte(i==null?void 0:i[K]),J=Rte(b[K].default);return C.jsx(Ppt,{definition:b[K],inputName:K,variantObserveName:o,value:X,defaultValue:J,chatInputName:x,chatHistoryName:N,onPreviewInput:n,onErrorChange:L},U)}),r?C.jsx(Kn,{appearance:"primary",style:{marginTop:6},disabled:g||!!v.size,icon:g?C.jsx(X_,{size:"tiny"}):void 0,onClick:M,children:g?"Testing...":"Test"}):void 0,C.jsx("div",{children:!!E&&C.jsx(Mg,{intent:"error",layout:"multiline",style:{marginTop:10,padding:"10px 0 10px 12px"},children:((P=(B=(z=E==null?void 0:E.response)==null?void 0:z.data)==null?void 0:B.error)==null?void 0:P.message)??(E==null?void 0:E.message)??"Test failed"})})]},I),C.jsx(Wk,{value:R,children:Object.keys(A).map(K=>{const U=`${o}.${K}`,X=(s==null?void 0:s[K])??"",J=K===T,ee=X&&typeof X=="string"?X:JSON.stringify(X);if(typeof X=="object"&&X!==null&&Object.keys(X).length===1){const se=Object.keys(X);if(se.length===1&&se[0]==="data:image/png;path"){const _e=u(o)+"/"+X[se[0]];return C.jsx("div",{style:{display:"flex",alignItems:"center",width:"100%"},children:C.jsx(Wpt,{rootClassName:Dte.output,label:C.jsxs("span",{children:[C.jsx("span",{children:K}),C.jsx(FT,{show:J,label:"chat output",style:{marginLeft:5}})]}),name:U,element:C.jsx(Kpt,{imagePath:_e})})},U)}}return C.jsx("div",{style:{display:"flex",alignItems:"center",width:"100%"},children:C.jsx(Vpt,{rootClassName:Dte.output,label:C.jsxs("span",{children:[C.jsx("span",{children:K}),C.jsx(FT,{show:J,label:"chat output",style:{marginLeft:5}})]}),name:U,value:ee})},U)})},R)]},"inputs")};return e===an?q():C.jsx(Wk,{value:t,children:q()},o)},Ypt=({value:e="",language:t,editorRef:r,readOnly:n=!0,containerStyle:o={},onChange:i,onValidate:s})=>{const a=kht(),u=re.useRef(),l=f=>{u.current=f};re.useImperativeHandle(r,()=>({getValue:()=>{var f;return((f=u.current)==null?void 0:f.getValue())??""},isValid:()=>{var d,h;return(((h=(d=u.current)==null?void 0:d.getModel())==null?void 0:h.getAllDecorations())??[]).length===0}}),[]);const c=a==="dark"?"vs-dark":"light";return C.jsx("div",{style:{height:"100%",width:"100%",...o},children:C.jsx(phe,{defaultLanguage:t,theme:c,value:e,options:{readOnly:n,minimap:{enabled:!1}},onChange:i,onValidate:s,onMount:l})})},B3=({label:e,afterLabel:t,value:r,required:n,errorMessage:o,options:i,onValueChange:s})=>{const a=Ia(),u=Xpt(),l=(c,f)=>{s==null||s(f.optionValue??"")};return C.jsx("div",{className:u.field,children:C.jsx(T8,{label:{children:(c,f)=>C.jsxs("div",{style:{display:"inline-flex",alignItems:"center"},children:[C.jsx(xf,{...f,required:n,children:e}),t]})},required:n,validationMessage:o,style:{flex:1},children:C.jsx(C8,{id:`${a}-name`,onOptionSelect:l,appearance:"outline",value:r,placeholder:"Please select an option",children:i.map((c,f)=>C.jsx(N8,{value:c.text,disabled:c.disabled,children:c.text},f))})})})},Xpt=wr({field:{display:"grid",gridRowGap:"3px",paddingBottom:zt.spacingVerticalM}}),M3="Chat input/output field config",Qpt="You need to select chat_input and chat_history from your flow inputs, and chat_output from flow outputs. These inputs and output will be displayed in the chat window on left side.",Zpt="You need to select an input as chat_input, and input the value in the chat window on left side. Chat input can only be list or string type.",Jpt=`If you specify chat_history, then the conversation will have previous memory including all historical flow inputs and outputs. +`,Mpt=()=>{const[e]=xu(),t=Da(),[r,n]=re.useState(!1),[o,i]=re.useState(""),[s,a]=re.useState(""),u=re.useRef(!1),l=Net(o,200),c=It(async()=>{var f;try{n(!0);const d=await t.getFlowExpYaml();i(d??Lte)}catch(d){((f=d==null?void 0:d.response)==null?void 0:f.status)===404?i(Lte):a((d==null?void 0:d.message)??"Failed to fetch yaml content")}finally{n(!1)}});return re.useEffect(()=>{e&&c()},[c,e]),re.useEffect(()=>{u.current&&t.setFlowExpYaml(l)},[t,l]),r?N.jsx("div",{style:{margin:"16px"},children:"Loading..."}):s?N.jsx("div",{style:{margin:"16px"},children:s}):N.jsx("div",{style:{width:"100%",height:"100%"},children:N.jsx(Ehe,{defaultLanguage:"yaml",value:o,options:{minimap:{enabled:!1}},onChange:f=>{u.current=!0,i(f??"")}})})},jve=e=>typeof e=="number"&&Number.isInteger(e),Hz=e=>typeof e=="number"&&Number.isFinite(e),HE=e=>typeof e=="string",zve=e=>typeof e=="boolean"||e==="true"||e==="false",Hve=e=>e===null,$ve=e=>e===void 0,Lpt=e=>Array.isArray(e),jpt=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),__=e=>{if(!HE(e))return e;try{return JSON.parse(e)}catch{return e}},Pve=e=>!!HE(e),qve=(e,t)=>{if(t===""||t===void 0)return!0;switch(e){case je.int:return jve(Number(t));case je.double:return Hz(Number(t));case je.string:return HE(t);case je.bool:return zve(t);case je.list:return Lpt(__(t));case je.object:return jpt(__(t));case je.image:return Pve(t);default:return!1}},zpt=(e,t)=>{switch(e){case je.int:case je.double:return t?Hz(Number(t))?Number(t):t:"";case je.string:return t??"";case je.bool:return t?t==="true":"";case je.list:return t?__(t):[];case je.object:return t?__(t):{};case je.image:return t??"";default:return t??""}},jte=e=>{if(!(Hve(e)||$ve(e)))return HE(e)||jve(e)||Hz(e)||zve(e)?String(e):JSON.stringify(e)},Hpt=e=>{if(Hve(e)||$ve(e))return"";try{const t=HE(e)?JSON.parse(e):e;return JSON.stringify(t,null,2)}catch{return e}},$z=()=>{const e=jE(),t=Da();return re.useCallback((n,o)=>{e(n,o),t.updateCurrentFlowUxInputs()},[t,e])},$pt=(e,t)=>{const[r,n]=re.useState(),o=$z();return{drawerState:r,setDrawerState:n,onSaveDrawer:()=>{var s,a;if(r){const{chatItemName:u,key:l}=r,c=(s=t.current)==null?void 0:s.getValue(),f=__(c);o(u,{[l]:f}),(a=e.current)==null||a.close()}}}},Ppt=(e,t)=>{const{chatInputName:r}=t,n=[];for(const[o,i]of Object.entries(e))if(o!==r){const s=i.type===je.list;n.push({disabled:!s,text:o})}return n},Wve=(e,t)=>{const{chatHistoryName:r}=t,n=[];for(const[o,i]of Object.entries(e))if(o!==r){const s=i.type===je.list||i.type===je.string;n.push({disabled:!s,text:o})}return n},qpt=e=>Object.keys(e).map(t=>({text:t})),YA=({children:e,title:t,value:r})=>{const n=Wpt();return N.jsxs(Eue,{value:r,children:[N.jsx(Sue,{expandIconPosition:"end",children:N.jsx("span",{className:n.title,children:t??r})}),N.jsx(wue,{children:e})]})},Wpt=Ar({title:{color:Pt.colorNeutralForeground1,fontSize:"16px",fontWeight:600,lineHeight:"150%"}}),Kpt=({headerText:e,readOnly:t,saveButtonDisabled:r,onClickSaveButton:n,children:o,actionRef:i})=>{const[s,a]=re.useState(!1);re.useImperativeHandle(i,()=>({open(){a(!0)},close(){a(!1)}}),[]);const u=Gpt();return N.jsx(H8,{open:s,onOpenChange:(l,c)=>{a(c.open)},children:N.jsx(W8,{className:u.surface,children:N.jsxs(P8,{children:[N.jsx(q8,{className:u.header,children:e}),N.jsx(K8,{className:u.content,children:o}),N.jsxs($8,{className:u.actions,children:[!t&&N.jsx(Wn,{appearance:"primary",disabled:r,onClick:n,children:"Save"}),N.jsx(eE,{disableButtonEnhancement:!0,children:N.jsx(Wn,{appearance:"secondary",children:"Cancel"})})]})]})})})},Gpt=Ar({surface:{...Ye.padding(0),...Ye.overflow("hidden"),...Ye.border("none"),width:"60%",maxWidth:"60%"},header:{...Ye.borderBottom("1px","solid",Pt.colorNeutralStroke2),...Ye.padding("16px","24px"),backgroundImage:"var(--Gradient-Tint-Light, linear-gradient(90deg, #D9EBF9 0%, #D9EBF9 22.92%, #F2F8FD 68.75%, #F9ECF8 100%))",fontSize:"20px",fontWeight:"600",lineHeight:"28px"},content:{...Ye.margin("24px","24px",0,"24px"),...Ye.overflow("visible")},actions:{...Ye.margin("24px")}}),Vpt=["Flow inputs","Flow outputs"],Upt=["Prompty inputs","Prompty outputs"],Ypt=()=>{const[e]=Tu();return re.useMemo(()=>{switch(e){case Gt.Prompty:return{inputsItemValue:"Prompty inputs",outputsItemValue:"Prompty outputs",defaultOpenItems:Upt};case Gt.Dag:case Gt.Flex:default:return{inputsItemValue:"Flow inputs",outputsItemValue:"Flow outputs",defaultOpenItems:Vpt}}},[e])},Xpt=(e,t)=>{const[r]=Tu(),[n]=fve();let o="";switch(r){case Gt.Prompty:o=n;break;case Gt.Dag:case Gt.Flex:default:o=e===to?to:`${e}.${t}`}return o},Kve=e=>{const t={};return Object.keys(e).forEach(r=>{const[n,...o]=r.split("_"),s=[n.charAt(0).toUpperCase()+n.slice(1),...o].join(" ");t[s]=e[r]}),t},zte=["png","jpg","jpeg","gif","bmp","tif","tiff","svg","webp","ico"],Qpt=(e,t,r)=>{const n=jE(),o=$z(),i=re.useId(),s=Cpt(),a=Da(),u=g=>{n(e,{[t]:g}),o(e,{[t]:g})};yu(ln.SELECT_FILE_RESPONSE,({id:g,path:v})=>{i===g&&v!==void 0&&t&&u(v)});const{onPaste:l}=Cet(g=>{r===je.image&&u(g)}),c=It(g=>{Pve(g)&&s(g)}),f=()=>{pi.postMessage({name:ln.SELECT_FILE_REQUEST,payload:{id:i,onlyExistingFile:!0,filters:{Images:zte}}})},d=()=>{const g=document.createElement("input");g.type="file",g.accept=zte.join(","),g.onchange=async v=>{const y=v.target;if(y.files&&y.files.length>0){const E=y.files[0],_=await a.uploadFile(E);u(_)}},g.click()},h=It(async g=>{const v=x1e(g);if(v){const y=await a.uploadFile(v);u(y)}});return{onOpenImage:c,selectFile:eo?f:d,onPaste:eo?l:h}},Zpt=({valueType:e,showOpenFileIcon:t,openFileHandler:r,selectFileHandler:n})=>e!==je.image?N.jsx(N.Fragment,{}):N.jsxs(re.Fragment,{children:[t&&N.jsx(ca,{content:"Open file",relationship:"label",positioning:"above",children:N.jsx(Iae,{style:{cursor:"pointer",marginLeft:"6px"},onClick:r})}),N.jsx(ca,{content:"Select another file",relationship:"label",positioning:"above",children:N.jsx(o3e,{style:{cursor:"pointer",marginLeft:"6px"},onClick:n})})]}),Jpt=({tooltipContent:e,isJsonValueType:t,onClick:r})=>t?N.jsx(ca,{content:e,relationship:"label",positioning:"above",children:N.jsx(n3e,{style:{cursor:"pointer",marginLeft:"6px"},onClick:r})}):N.jsx(N.Fragment,{}),jx=({label:e,show:t,style:r})=>t?N.jsx(ole,{size:"small",style:r,children:e}):N.jsx(N.Fragment,{}),e0t=({rootClassName:e,contentAfter:t,label:r,readOnly:n,tooltipContent:o,required:i,vKey:s,errorMessage:a,value:u,defaultValue:l,after:c,onChange:f,onBlur:d})=>{const h={outline:"none","&:focus":{outline:"none"}},g=(E,_)=>{f==null||f(s,_.value)},v=E=>{u!==void 0&&(d==null||d(s,u))},y=()=>N.jsx(M8,{style:{flex:1,backgroundColor:n?Pt.colorNeutralBackground3:void 0},readOnly:n,input:{style:h},value:u??l??"",onChange:g,onBlur:v,contentAfter:t});return N.jsx("div",{className:e,children:N.jsxs("div",{style:{display:"flex",width:"100%",alignItems:"center"},children:[N.jsx(R8,{label:r,required:i,validationMessage:a,style:{flex:1},children:o?N.jsx(ca,{content:o,relationship:"description",positioning:"above-end",children:y()}):y()}),c]})})},t0t=({definition:e,inputName:t,chatItemName:r,value:n,defaultValue:o,onPreviewInput:i,onErrorChange:s})=>{const{chatInputName:a,chatHistoryName:u}=_l(),l=t===u,c=t===a,f=e.type,d=l||c,h=o===void 0,g=e.type===je.list||e.type===je.object,v=jE(),y=$z(),{onOpenImage:E,selectFile:_,onPaste:S}=Qpt(r,t,e.type),b=It((C,I)=>{v(r,{[C]:I})}),A=It((C,I)=>{const R=e.type,D=R?zpt(R,I):I;y(r,{[C]:D})}),T=e.type?qve(e.type,n??o)?h&&!d&&(n===""||n===void 0)?"Required":void 0:"Input type is not valid":void 0;re.useEffect(()=>{s==null||s(t,!!T)},[t,T,s]);const x=N.jsxs("div",{style:{display:"flex"},children:[f?N.jsx(Jpt,{tooltipContent:d?"View full value":"Edit value",isJsonValueType:g,onClick:()=>{i==null||i(r,t,f)}}):void 0,N.jsx(Zpt,{valueType:e.type,showOpenFileIcon:!!(n??o),openFileHandler:()=>{const C=n??o;C&&E(C)},selectFileHandler:()=>_()})]});return N.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%"},onPasteCapture:S,onDragCapture:S,children:N.jsx(e0t,{rootClassName:r0t.fieldRoot,label:N.jsxs("span",{children:[N.jsxs("span",{style:{marginRight:"4px"},children:[t,":"]}),N.jsx("span",{style:{color:Pt.colorNeutralForeground4},children:e.type}),N.jsx(jx,{show:c,label:"chat input",style:{marginLeft:5}}),N.jsx(jx,{show:l,label:"chat history",style:{marginLeft:5}})]}),readOnly:d,tooltipContent:c?"Specify the value of chat_input in the chat window input box.":l?"If you specify chat_history, then the system will automatically collect all history within the conversation.":void 0,required:h,vKey:t,value:n,errorMessage:T,defaultValue:o,onChange:b,onBlur:A,contentAfter:x})})},r0t=hi({fieldRoot:{margin:"6px 0",flex:1},divider:{paddingTop:6,paddingBottom:6},bold:{fontWeight:600}}),n0t=({rootClassName:e,label:t,element:r})=>N.jsxs("div",{className:e,style:{margin:2},children:[N.jsx(If,{children:t}),N.jsx("div",{children:r})]}),o0t=({imagePath:e})=>{const r=Da().getHttpUrlOfFilePath,[n,o]=re.useState(void 0),[i,s]=re.useState(void 0);return re.useEffect(()=>{r(e).then(o).catch(s)},[r,e]),N.jsx("div",{children:i?i.message:n?N.jsx("img",{src:n,alt:e,style:{width:"100%"}}):N.jsx(J_,{size:"tiny"})})},i0t=({content:e,style:t})=>{const[n,o]=k.useState(!1),i=()=>{o(!0)},s=`${e}`;return s.length<=300?N.jsx("div",{style:t,children:s}):n?N.jsxs("div",{style:t,children:[s,N.jsx("div",{children:N.jsx(Gb,{onClick:()=>o(!1),children:"Collapse"})})]}):N.jsxs("div",{style:t,children:[`${s.slice(0,300)}...`," ",N.jsx("div",{children:N.jsx(Gb,{onClick:i,children:"Expand"})})]})},s0t=({rootClassName:e,inline:t,label:r,value:n})=>N.jsxs("div",{className:e,style:{margin:2},children:[N.jsx(If,{children:r}),t?N.jsx("span",{children:n}):N.jsx(i0t,{content:n,style:{fontSize:"12px",fontWeight:400}})]}),Hte=hi({output:{flex:1}}),a0t=({activeNodeName:e,variantName:t,showTestButton:r,onPreviewInput:n})=>{const o=Xpt(e,t),i=kht(o),s=xht(o),a=pve(),u=Iht(),l=gve(),c=Ave(),f=Lht(),d=Tve(),g=!!xve()[o],[v,y]=re.useState(yE()),[E,_]=re.useState(void 0),S=Da(),{flowInputDefinition:b,flowOutputDefinition:A}=bp(),{chatInputName:T,chatOutputName:x,chatHistoryName:C}=_l(),{inputsItemValue:I,outputsItemValue:R,defaultOpenItems:D}=Ypt(),L=re.useCallback((z,F)=>{y($=>F?$.add(z):$.remove(z))},[]),M=It(async()=>{var F,$,K,U,X;const z=Cs.v4();try{_(void 0),f(o,z);const{flowRunResult:J}=await S.flowTest({submitId:z,tuningNodeName:e===to?"":e,batchRequest:[{variantName:e===to?void 0:t,flowInputs:{...i}}]});a(o,(($=(F=J==null?void 0:J.flow_runs)==null?void 0:F[0])==null?void 0:$.output)??{}),l(o,(U=(K=J==null?void 0:J.flow_runs)==null?void 0:K[0])==null?void 0:U.output_path),c(e,Kve(((X=J==null?void 0:J.flow_runs)==null?void 0:X[0].system_metrics)||{}))}catch(J){_(J)}finally{d(z)}}),q=()=>{var z,F,$;return N.jsxs(E8,{multiple:!0,collapsible:!0,defaultOpenItems:[...D],children:[N.jsxs(YA,{value:I,children:[Object.keys(b).map(K=>{const U=`${o}.${K}`,X=jte(i==null?void 0:i[K]),J=jte(b[K].default);return N.jsx(t0t,{definition:b[K],inputName:K,chatItemName:o,value:X,defaultValue:J,chatInputName:T,chatHistoryName:C,onPreviewInput:n,onErrorChange:L},U)}),r?N.jsx(Wn,{appearance:"primary",style:{marginTop:6},disabled:g||!!v.size,icon:g?N.jsx(J_,{size:"tiny"}):void 0,onClick:M,children:g?"Testing...":"Test"}):void 0,N.jsx("div",{children:!!E&&N.jsx(jg,{intent:"error",layout:"multiline",style:{marginTop:10,padding:"10px 0 10px 12px"},children:(($=(F=(z=E==null?void 0:E.response)==null?void 0:z.data)==null?void 0:F.error)==null?void 0:$.message)??(E==null?void 0:E.message)??"Test failed"})})]},I),N.jsx(YA,{value:R,children:Object.keys(A).map(K=>{const U=`${o}.${K}`,X=(s==null?void 0:s[K])??"",J=K===x,ee=X&&typeof X=="string"?X:JSON.stringify(X);if(typeof X=="object"&&X!==null&&Object.keys(X).length===1){const fe=Object.keys(X);if(fe.length===1&&fe[0]==="data:image/png;path"){const Se=u(o)+"/"+X[fe[0]];return N.jsx("div",{style:{display:"flex",alignItems:"center",width:"100%"},children:N.jsx(n0t,{rootClassName:Hte.output,label:N.jsxs("span",{children:[N.jsx("span",{children:K}),N.jsx(jx,{show:J,label:"chat output",style:{marginLeft:5}})]}),name:U,element:N.jsx(o0t,{imagePath:Se})})},U)}}return N.jsx("div",{style:{display:"flex",alignItems:"center",width:"100%"},children:N.jsx(s0t,{rootClassName:Hte.output,label:N.jsxs("span",{children:[N.jsx("span",{children:K}),N.jsx(jx,{show:J,label:"chat output",style:{marginLeft:5}})]}),name:U,value:ee})},U)})},R)]},"inputs")};return e===to?q():N.jsx(YA,{value:t,children:q()},o)},u0t=({value:e="",language:t,editorRef:r,readOnly:n=!0,containerStyle:o={},onChange:i,onValidate:s})=>{const a=Mht(),u=re.useRef(),l=f=>{u.current=f};re.useImperativeHandle(r,()=>({getValue:()=>{var f;return((f=u.current)==null?void 0:f.getValue())??""},isValid:()=>{var d,h;return(((h=(d=u.current)==null?void 0:d.getModel())==null?void 0:h.getAllDecorations())??[]).length===0}}),[]);const c=a==="dark"?"vs-dark":"light";return N.jsx("div",{style:{height:"100%",width:"100%",...o},children:N.jsx(Ehe,{defaultLanguage:t,theme:c,value:e,options:{readOnly:n,minimap:{enabled:!1}},onChange:i,onValidate:s,onMount:l})})},z3=({label:e,afterLabel:t,value:r,required:n,errorMessage:o,options:i,onValueChange:s})=>{const a=Ia(),u=l0t(),l=(c,f)=>{s==null||s(f.optionValue??"")};return N.jsx("div",{className:u.field,children:N.jsx(R8,{label:{children:(c,f)=>N.jsxs("div",{style:{display:"inline-flex",alignItems:"center"},children:[N.jsx(If,{...f,required:n,children:e}),t]})},required:n,validationMessage:o,style:{flex:1},children:N.jsx(B8,{id:`${a}-name`,onOptionSelect:l,appearance:"outline",value:r,placeholder:"Please select an option",children:i.map((c,f)=>N.jsx(F8,{value:c.text,disabled:c.disabled,children:c.text},f))})})})},l0t=Ar({field:{display:"grid",gridRowGap:"3px",paddingBottom:Pt.spacingVerticalM}}),H3="Chat input/output field config",c0t="You need to select chat_input and chat_history from your flow inputs, and chat_output from flow outputs. These inputs and output will be displayed in the chat window on left side.",f0t="You need to select an input as chat_input, and input the value in the chat window on left side. Chat input can only be list or string type.",d0t=`If you specify chat_history, then the conversation will have previous memory including all historical flow inputs and outputs. -If you don’t specify chat_history, each test is a new conversation without any memory.`,e0t="You need to select an input as chat_output, which will be displayed in the chat window on left side.",t0t=()=>{const[e]=Kv(),t=ME(),{flowInputsMap$:r}=Ht(),n=re.useRef(),o=re.useRef(),[i,s]=re.useState(!0),{drawerState:a,setDrawerState:u,onSaveDrawer:l}=Npt(n,o),{flowInputDefinition:c,flowOutputDefinition:f}=Gv(),d=Da(),h=ml(),{chatInputName:g,chatOutputName:v,chatHistoryName:y}=h,[E]=Ac(),_=re.useMemo(()=>Cpt(c,h),[c,h]),S=re.useMemo(()=>Lve(c,h),[c,h]),b=re.useMemo(()=>Rpt(f),[f]),A=re.useMemo(()=>{var L,M;if(e===an)return[an];if(E===hn.Prompty)return[];const D=((M=(L=t==null?void 0:t.node_variants)==null?void 0:L[e])==null?void 0:M.variants)??{};return Object.keys(D)},[e,E,t==null?void 0:t.node_variants]),x=Tt(D=>{g!==D&&d.setFlowChatConfig({chatInputName:D})}),T=Tt(D=>{v!==D&&d.setFlowChatConfig({chatOutputName:D})}),N=Tt(D=>{y!==D&&d.setFlowChatConfig({chatHistoryName:D})}),I=re.useCallback((D,L,M)=>{var X,J;const q=M===Le.list?[]:{},z=((X=r.get(D))==null?void 0:X[L])??q,B=Ipt(z),U=L===y||L===g;s(!0),u({value:B,variantObserveName:D,key:L,valueType:M,readOnly:U}),(J=n.current)==null||J.open()},[y,g,r,u]),R=S.length===0||S.every(D=>D.disabled);return C.jsxs(re.Fragment,{children:[C.jsxs(v8,{multiple:!0,collapsible:!0,defaultOpenItems:[...R?[]:[M3],A[0]],children:[C.jsx(qy,{style:{marginTop:"12px"}}),C.jsxs(Wk,{title:C.jsxs("div",{style:{display:"inline-flex",alignItems:"center"},children:[M3,C.jsx(la,{content:Qpt,relationship:"label",positioning:"after",children:C.jsx(oy,{tabIndex:0,style:{marginLeft:"4px"}})})]}),value:M3,children:[C.jsx(B3,{label:"Chat input",afterLabel:C.jsx(la,{content:Zpt,relationship:"label",positioning:"after",children:C.jsx(oy,{tabIndex:0,style:{marginLeft:"4px"}})}),options:S,value:g,required:!0,errorMessage:g?void 0:"Required",onValueChange:x}),C.jsx(B3,{label:"Chat history",afterLabel:C.jsx(la,{content:Jpt,relationship:"label",positioning:"after",children:C.jsx(oy,{tabIndex:0,style:{marginLeft:"4px"}})}),options:_,value:y,onValueChange:N}),C.jsx(B3,{label:"Chat output",afterLabel:C.jsx(la,{content:e0t,relationship:"label",positioning:"after",children:C.jsx(oy,{tabIndex:0,style:{marginLeft:"4px"}})}),options:b,value:v,required:!0,errorMessage:v?void 0:"Required",onValueChange:T}),C.jsx(qy,{style:{marginTop:5}})]},"inputs-outputs"),C.jsx(qy,{}),A.map(D=>C.jsx(Upt,{activeNodeName:e,variantName:D,showTestButton:Object.keys(c).length>0&&R,onPreviewInput:I},`${e}-${D}`))]},A[0]),C.jsx(Dpt,{headerText:a!=null&&a.readOnly?"View full value":"Edit value",actionRef:n,readOnly:a==null?void 0:a.readOnly,saveButtonDisabled:!i,onClickSaveButton:l,children:C.jsx(Ypt,{value:(a==null?void 0:a.value)??"",containerStyle:{height:"calc(100vh - 320px)"},editorRef:o,language:"json",readOnly:a==null?void 0:a.readOnly,onValidate:D=>{s(D.length===0)}})})]})},r0t=({children:e,selectedKey:t,reuse:r=!1,rootStyle:n,getChildStyle:o=()=>({})})=>{const i=r?re.Children.map(e,s=>{const a=o(s.key,t);return C.jsx("div",{style:{display:s.key===t?"block":"none",...a},children:s})}):e.filter(s=>s.key===t);return n?C.jsx("div",{style:n,children:i}):i},zve=()=>{const[e,t]=pve(),r=re.useCallback(()=>{t(!e)},[e,t]);return C.jsx(Kn,{as:"button",appearance:"transparent",size:"medium",title:"Toggle right panel",icon:e?C.jsx(a3e,{}):C.jsx(s3e,{}),onClick:r})},n0t=()=>{const[{selectedTab:e},t]=yve(),r=wpt(),n=(i,s)=>{t({selectedTab:s.value})},o=i0t();return C.jsxs(re.Fragment,{children:[C.jsxs(Pue,{style:{height:40},selectedValue:e,onTabSelect:n,children:[C.jsx(fB,{value:"Settings",children:"Settings"}),r&&C.jsx(fB,{value:"EvaluationConfig",children:"Experiment"})]}),C.jsx(r0t,{selectedKey:e,reuse:!0,rootStyle:{overflow:"auto",height:"calc(100% - 40px)"},getChildStyle:o0t,children:[C.jsx(t0t,{},"Settings"),...So?[]:[C.jsx(kpt,{},"EvaluationConfig")]]}),C.jsx("div",{className:o.actionButtons,children:C.jsx(zve,{})})]})},o0t=e=>{if(e==="EvaluationConfig")return{height:"100%"}},i0t=wr({actionButtons:{position:"absolute",top:0,right:0}}),s0t=()=>{const{viewmodel:e}=Au(),t=to(e.locStrings$),r=Epe(t,e.calcContentForCopy);return re.useMemo(()=>[r],[r])},Fz=()=>{const[e]=Kv(),t=ME(),r=Cz(),n=cve(),[o]=Ac(),i=Tt((l,c)=>{var f,d;if(l===an)c(an);else{if(o===hn.Prompty)return;Object.keys(((d=(f=t==null?void 0:t.node_variants)==null?void 0:f[l])==null?void 0:d.variants)??{}).forEach(g=>{const v=`${l}.${g}`;c(v)})}}),s=Tt((l,c)=>{var f,d;return l===an?[c(an,void 0)]:o===hn.Prompty?[]:Object.keys(((d=(f=t==null?void 0:t.node_variants)==null?void 0:f[l])==null?void 0:d.variants)??{}).map(v=>{const y=`${l}.${v}`;return c(y,v)})}),a=Tt((l,c)=>{const f=ga.v4();i(l,d=>{const h=[g6({id:f,errorMessage:c??"Unknown error"})];r(d,h,!0),n(d,"stopped")})}),u=Tt(l=>{i(e,c=>{n(c,l)})});return{forEachChatItem:i,mapChatItem:s,addErrorMessageToChatGroup:a,setRunningStatusOfCurrentChatGroup:u}},a0t=()=>{const{flowInputDefinition:e}=Gv(),t=ave(),{chatInputName:r,chatHistoryName:n}=ml();return{validateFlow:i=>{const s=[],a=t(i);return Object.keys(e).forEach(u=>{const l=e[u];if(l.default===void 0&&!r&&!n&&((a==null?void 0:a[u])===void 0||(a==null?void 0:a[u])==="")){s.push(`Flow input "${u}" is required.`);return}const c=(a==null?void 0:a[u])??"";if(l.type&&!Mve(l.type,c)){s.push(`Flow input type of "${u}" is not valid.`);return}}),s}}},Hve=()=>{const[e]=Kv(),{viewmodel:t}=Au(),{validateFlow:r}=a0t(),{mapChatItem:n}=Fz(),o=xht(),i=Eve();return{customSendMessage:Tt(()=>{i(u=>u.type!=="submit_validation");const a=n(e,u=>r(u)).flat();a.length>0?o({type:"submit_validation",message:a.join(` -`),element:C.jsx(C.Fragment,{children:a.map((u,l)=>C.jsx("div",{children:u},l))})}):t.sendMessage()})}},u0t=()=>{const{customSendMessage:e}=Hve(),t=V1t({title:"Send",onSend:e});return C.jsx(t,{})},l0t=()=>{const t="Upload",n=Da(),{chatInputName:o}=ml(),i=hve(o),{viewmodel:s}=Au(),a=to(s.disabled$),u=to(s.isOthersTyping$),l=re.useRef(null),[c,f]=re.useState(!1),[d,h]=re.useState(void 0);_pe();const g=a||!1||!i||u,v=c0t(),y=C.jsx(vae,{}),E=C.jsx(Kn,{as:"button",appearance:"transparent",size:"medium",title:i?t:"The Update button is only available when the chat input type is list",className:void 0,icon:y,disabled:g}),_=$j(async S=>{var b,A,x,T,N,I,R,D;try{if(h(void 0),typeof S=="string"){(A=(b=s.editorRef)==null?void 0:b.current)==null||A.insert([{type:Nr.IMAGE,src:S,alt:S}]),(x=l.current)==null||x.close(),(T=l.current)==null||T.reset();return}f(!0);const L=await n.uploadFile(S);(I=(N=s.editorRef)==null?void 0:N.current)==null||I.insert([{type:Nr.IMAGE,src:L,alt:L}]),(R=l.current)==null||R.close(),(D=l.current)==null||D.reset()}catch(L){h((L==null?void 0:L.message)??"Unknown error")}finally{f(!1)}});return C.jsx("div",{className:v.action,children:C.jsx(Ape,{ref:l,trigger:E,isUploading:c,errorMessage:d,onUpload:_})})},c0t=wr({action:{}}),f0t=()=>C.jsx(qy,{vertical:!0,style:{height:"20px",marginTop:"6px"}}),d0t=()=>{const[e]=Ac();return k.useMemo(()=>[...e===hn.Dag?[l0t,f0t]:[],u0t],[e])},$ve=e=>{const t=ME(),[r]=Ac(),{variantNames:n,defaultVariantName:o}=k.useMemo(()=>{var i,s,a,u;if(r===hn.Prompty)return{variantNames:[],defaultVariantName:void 0};if(e!==an){const l=((s=(i=t==null?void 0:t.node_variants)==null?void 0:i[e])==null?void 0:s.variants)??{};return{defaultVariantName:(u=(a=t==null?void 0:t.node_variants)==null?void 0:a[e])==null?void 0:u.default_variant_id,variantNames:Object.keys(l)}}return{variantNames:[],defaultVariantName:void 0}},[e,r,t==null?void 0:t.node_variants]);return{variantNames:n,defaultVariantName:o}},h0t=()=>{const[e]=Kv(),{variantNames:t}=$ve(e),r=Ia("combo-ChatMessageVariantSelector"),n=[kh,...t],[o,i]=lht(),s=p0t(),a=(u,l)=>{const c=u.includes(l)?"add":"remove";if(l&&c==="add"){i(l===kh?[kh]:u.filter(f=>f!==kh));return}i(u)};return e===an?null:C.jsxs("div",{className:s.root,children:[C.jsx("label",{id:r,style:{marginRight:"12px"},children:"Variant:"}),C.jsx(C8,{defaultValue:o.join(","),selectedOptions:o,"aria-labelledby":r,multiselect:!0,placeholder:"Select variants to filter messages",onOptionSelect:(u,l)=>{a(l.selectedOptions,l.optionValue??"")},children:n.map(u=>C.jsx(N8,{value:u,children:u},u))})]})},p0t=wr({root:{display:"flex",alignItems:"center",...Ye.gap("2px"),maxWidth:"400px"}}),g0t=e=>{const t={};return e&&Object.keys(e).forEach(r=>{const n=e[r];t[r]=n.default}),t},v0t=()=>{const{viewmodel:e}=Au(),t=to(e.isOthersTyping$),[r]=Kv(),[n]=Tu(),{variantNames:o}=$ve(r),i=Sht(),s=_ht(r,o),a=ave(),u=BE(),l=ght(),c=uve(),f=lve(),d=mht(),h=yht(),g=Eht(),v=cve(),y=mve(),E=Cz(),[_,S]=sve(),{flowInputDefinition:b,messageFormat:A}=Gv(),{forEachChatItem:x,mapChatItem:T,addErrorMessageToChatGroup:N,setRunningStatusOfCurrentChatGroup:I}=Fz(),R=Da(),{chatInputName:D,chatOutputName:L,chatHistoryName:M}=ml(),q=hve(D),z=vve(),B=k.useCallback(()=>{setTimeout(()=>{var ee,se;(se=(ee=e.editorRef)==null?void 0:ee.current)==null||se.focus()},100)},[e.editorRef]),P=ee=>ee.map(pe=>`${pe.name??""} flow output: +If you don’t specify chat_history, each test is a new conversation without any memory.`,h0t="You need to select an input as chat_output, which will be displayed in the chat window on left side.",p0t=()=>{const[e]=yp(),t=zE(),{flowInputsMap$:r}=Ht(),n=re.useRef(),o=re.useRef(),[i,s]=re.useState(!0),{drawerState:a,setDrawerState:u,onSaveDrawer:l}=$pt(n,o),{flowInputDefinition:c,flowOutputDefinition:f}=bp(),d=Da(),h=_l(),{chatInputName:g,chatOutputName:v,chatHistoryName:y}=h,[E]=Tu(),_=re.useMemo(()=>Ppt(c,h),[c,h]),S=re.useMemo(()=>Wve(c,h),[c,h]),b=re.useMemo(()=>qpt(f),[f]),A=re.useMemo(()=>{var L,M;if(e===to)return[to];if(E===Gt.Prompty)return[];const D=((M=(L=t==null?void 0:t.node_variants)==null?void 0:L[e])==null?void 0:M.variants)??{};return Object.keys(D)},[e,E,t==null?void 0:t.node_variants]),T=It(D=>{g!==D&&d.setFlowChatConfig({chatInputName:D})}),x=It(D=>{v!==D&&d.setFlowChatConfig({chatOutputName:D})}),C=It(D=>{y!==D&&d.setFlowChatConfig({chatHistoryName:D})}),I=re.useCallback((D,L,M)=>{var X,J;const q=M===je.list?[]:{},z=((X=r.get(D))==null?void 0:X[L])??q,F=Hpt(z),U=L===y||L===g;s(!0),u({value:F,chatItemName:D,key:L,valueType:M,readOnly:U}),(J=n.current)==null||J.open()},[y,g,r,u]),R=S.length===0||S.every(D=>D.disabled);return N.jsxs(re.Fragment,{children:[N.jsxs(E8,{multiple:!0,collapsible:!0,defaultOpenItems:[...R?[]:[H3],A[0]],children:[N.jsx(Ky,{style:{marginTop:"12px"}}),N.jsxs(YA,{title:N.jsxs("div",{style:{display:"inline-flex",alignItems:"center"},children:[H3,N.jsx(ca,{content:c0t,relationship:"label",positioning:"after",children:N.jsx(iy,{tabIndex:0,style:{marginLeft:"4px"}})})]}),value:H3,children:[N.jsx(z3,{label:"Chat input",afterLabel:N.jsx(ca,{content:f0t,relationship:"label",positioning:"after",children:N.jsx(iy,{tabIndex:0,style:{marginLeft:"4px"}})}),options:S,value:g,required:!0,errorMessage:g?void 0:"Required",onValueChange:T}),N.jsx(z3,{label:"Chat history",afterLabel:N.jsx(ca,{content:d0t,relationship:"label",positioning:"after",children:N.jsx(iy,{tabIndex:0,style:{marginLeft:"4px"}})}),options:_,value:y,onValueChange:C}),N.jsx(z3,{label:"Chat output",afterLabel:N.jsx(ca,{content:h0t,relationship:"label",positioning:"after",children:N.jsx(iy,{tabIndex:0,style:{marginLeft:"4px"}})}),options:b,value:v,required:!0,errorMessage:v?void 0:"Required",onValueChange:x}),N.jsx(Ky,{style:{marginTop:5}})]},"inputs-outputs"),N.jsx(Ky,{}),A.map(D=>N.jsx(a0t,{activeNodeName:e,variantName:D,showTestButton:Object.keys(c).length>0&&R,onPreviewInput:I},`${e}-${D}`))]},A[0]),N.jsx(Kpt,{headerText:a!=null&&a.readOnly?"View full value":"Edit value",actionRef:n,readOnly:a==null?void 0:a.readOnly,saveButtonDisabled:!i,onClickSaveButton:l,children:N.jsx(u0t,{value:(a==null?void 0:a.value)??"",containerStyle:{height:"calc(100vh - 320px)"},editorRef:o,language:"json",readOnly:a==null?void 0:a.readOnly,onValidate:D=>{s(D.length===0)}})})]})},g0t=({children:e,selectedKey:t,reuse:r=!1,rootStyle:n,getChildStyle:o=()=>({})})=>{const i=r?re.Children.map(e,s=>{const a=o(s.key,t);return N.jsx("div",{style:{display:s.key===t?"block":"none",...a},children:s})}):e.filter(s=>s.key===t);return n?N.jsx("div",{style:n,children:i}):i},Gve=()=>{const[e,t]=Eve(),r=re.useCallback(()=>{t(!e)},[e,t]);return N.jsx(Wn,{as:"button",appearance:"transparent",size:"medium",title:"Toggle right panel",icon:e?N.jsx(p3e,{}):N.jsx(h3e,{}),onClick:r})},v0t=()=>{const[{selectedTab:e},t]=kve(),r=Bpt(),n=(i,s)=>{t({selectedTab:s.value})},o=y0t();return N.jsxs(re.Fragment,{children:[N.jsxs(Yue,{style:{height:40},selectedValue:e,onTabSelect:n,children:[N.jsx(gB,{value:"Settings",children:"Settings"}),r&&N.jsx(gB,{value:"EvaluationConfig",children:"Experiment"})]}),N.jsx(g0t,{selectedKey:e,reuse:!0,rootStyle:{overflow:"auto",height:"calc(100% - 40px)"},getChildStyle:m0t,children:[N.jsx(p0t,{},"Settings"),...eo?[]:[N.jsx(Mpt,{},"EvaluationConfig")]]}),N.jsx("div",{className:o.actionButtons,children:N.jsx(Gve,{})})]})},m0t=e=>{if(e==="EvaluationConfig")return{height:"100%"}},y0t=Ar({actionButtons:{position:"absolute",top:0,right:0}}),b0t=()=>{const{viewmodel:e}=ku(),t=ro(e.locStrings$),r=Tpe(t,e.calcContentForCopy);return re.useMemo(()=>[r],[r])},ky="dummy-msg-id-loading",_6="dummy-msg-content-loading",Pz=()=>{const[e]=yp(),t=zE(),r=Lz(),n=mve(),o=vve(),[i]=Tu(),s=It((c,f)=>{var d,h;if(i===Gt.Prompty){f(c);return}c===to?f(to):Object.keys(((h=(d=t==null?void 0:t.node_variants)==null?void 0:d[c])==null?void 0:h.variants)??{}).forEach(v=>{const y=`${c}.${v}`;f(y)})}),a=It((c,f)=>{var d,h;return i===Gt.Prompty?[f(c,void 0)]:c===to?[f(to,void 0)]:Object.keys(((h=(d=t==null?void 0:t.node_variants)==null?void 0:d[c])==null?void 0:h.variants)??{}).map(y=>{const E=`${c}.${y}`;return f(E,y)})}),u=It((c,f)=>{const d=Cs.v4();s(c,h=>{const g=[b6({id:d,errorMessage:f??"Unknown error"})];n(h,ky),r(h,g,!0),o(h,"stopped")})}),l=It(c=>{s(e,f=>{o(f,c)})});return{forEachChatItem:s,mapChatItem:a,addErrorMessageToChatGroup:u,setRunningStatusOfCurrentChatGroup:l}},_0t=()=>{const{flowInputDefinition:e}=bp(),t=hve(),{chatInputName:r,chatHistoryName:n}=_l();return{validateFlow:i=>{const s=[],a=t(i);return Object.keys(e).forEach(u=>{const l=e[u];if(l.default===void 0&&!r&&!n&&((a==null?void 0:a[u])===void 0||(a==null?void 0:a[u])==="")){s.push(`Flow input "${u}" is required.`);return}const c=(a==null?void 0:a[u])??"";if(l.type&&!qve(l.type,c)){s.push(`Flow input type of "${u}" is not valid.`);return}}),s}}},Vve=()=>{const[e]=yp(),{viewmodel:t}=ku(),{validateFlow:r}=_0t(),{mapChatItem:n}=Pz(),o=zht(),i=Ive();return{customSendMessage:It(()=>{i(u=>u.type!=="submit_validation");const a=n(e,u=>r(u)).flat();a.length>0?o({type:"submit_validation",message:a.join(` +`),element:N.jsx(N.Fragment,{children:a.map((u,l)=>N.jsx("div",{children:u},l))})}):t.sendMessage()})}},E0t=()=>{const{customSendMessage:e}=Vve(),t=nht({title:"Send",onSend:e});return N.jsx(t,{})},S0t=()=>{const t="Upload",n=Da(),{chatInputName:o}=_l(),i=_ve(o),{viewmodel:s}=ku(),a=ro(s.disabled$),u=ro(s.isOthersTyping$),l=re.useRef(null),[c,f]=re.useState(!1),[d,h]=re.useState(void 0);xpe();const g=a||!1||!i||u,v=w0t(),y=N.jsx(wae,{}),E=N.jsx(Wn,{as:"button",appearance:"transparent",size:"medium",title:i?t:"The Update button is only available when the chat input type is list",className:void 0,icon:y,disabled:g}),_=Vj(async S=>{var b,A,T,x,C,I,R,D;try{if(h(void 0),typeof S=="string"){(A=(b=s.editorRef)==null?void 0:b.current)==null||A.insert([{type:xr.IMAGE,src:S,alt:S}]),(T=l.current)==null||T.close(),(x=l.current)==null||x.reset();return}f(!0);const L=await n.uploadFile(S);(I=(C=s.editorRef)==null?void 0:C.current)==null||I.insert([{type:xr.IMAGE,src:L,alt:L}]),(R=l.current)==null||R.close(),(D=l.current)==null||D.reset()}catch(L){h((L==null?void 0:L.message)??"Unknown error")}finally{f(!1)}});return N.jsx("div",{className:v.action,children:N.jsx(Rpe,{ref:l,trigger:E,isUploading:c,errorMessage:d,onUpload:_})})},w0t=Ar({action:{}}),A0t=()=>N.jsx(Ky,{vertical:!0,style:{height:"20px",marginTop:"6px"}}),k0t=()=>{const[e]=Tu();return k.useMemo(()=>[...e===Gt.Dag||e===Gt.Flex?[S0t,A0t]:[],E0t],[e])},Uve=e=>{const t=zE(),[r]=Tu(),{variantNames:n,defaultVariantName:o}=k.useMemo(()=>{var i,s,a,u;if(r===Gt.Prompty)return{variantNames:[],defaultVariantName:void 0};if(e!==to){const l=((s=(i=t==null?void 0:t.node_variants)==null?void 0:i[e])==null?void 0:s.variants)??{};return{defaultVariantName:(u=(a=t==null?void 0:t.node_variants)==null?void 0:a[e])==null?void 0:u.default_variant_id,variantNames:Object.keys(l)}}return{variantNames:[],defaultVariantName:void 0}},[e,r,t==null?void 0:t.node_variants]);return{variantNames:n,defaultVariantName:o}},x0t=()=>{const[e]=yp(),{variantNames:t}=Uve(e),r=Ia("combo-ChatMessageVariantSelector"),n=[wh,...t],[o,i]=Eht(),s=T0t(),a=(u,l)=>{const c=u.includes(l)?"add":"remove";if(l&&c==="add"){i(l===wh?[wh]:u.filter(f=>f!==wh));return}i(u)};return e===to?null:N.jsxs("div",{className:s.root,children:[N.jsx("label",{id:r,style:{marginRight:"12px"},children:"Variant:"}),N.jsx(B8,{defaultValue:o.join(","),selectedOptions:o,"aria-labelledby":r,multiselect:!0,placeholder:"Select variants to filter messages",onOptionSelect:(u,l)=>{a(l.selectedOptions,l.optionValue??"")},children:n.map(u=>N.jsx(F8,{value:u,children:u},u))})]})},T0t=Ar({root:{display:"flex",alignItems:"center",...Ye.gap("2px"),maxWidth:"400px"}}),I0t=()=>{const[e]=yp(),[t]=fve(),[r]=Tu();let n="",o="",i="";switch(r){case Gt.Prompty:n="",o=t,i=t;break;case Gt.Dag:case Gt.Flex:default:n=e!==to?e:"",o=n||to,i=e}return{tuningNodeName:n,targetNodeName:o,targetChatGroupName:i}},C0t=e=>{const t={};return e&&Object.keys(e).forEach(r=>{const n=e[r];t[r]=n.default}),t},N0t=()=>{const{viewmodel:e}=ku(),t=ro(e.isOthersTyping$),[r]=yp(),[n]=xu(),{variantNames:o}=Uve(r),i=Fht(),s=Oht(r,o),a=hve(),u=jE(),l=Tht(),c=pve(),f=gve(),d=Cht(),h=Nht(),g=Dht(),v=vve(),y=Ave(),E=Lz(),_=mve(),[S,b]=dve(),{flowInputDefinition:A,messageFormat:T}=bp(),{forEachChatItem:x,mapChatItem:C,addErrorMessageToChatGroup:I,setRunningStatusOfCurrentChatGroup:R}=Pz(),D=Da(),{chatInputName:L,chatOutputName:M,chatHistoryName:q}=_l(),z=_ve(L),F=wve(),{tuningNodeName:$,targetNodeName:K,targetChatGroupName:U}=I0t(),X=k.useCallback(()=>{setTimeout(()=>{var Ee,ve;(ve=(Ee=e.editorRef)==null?void 0:Ee.current)==null||ve.focus()},100)},[e.editorRef]),J=Ee=>Ee.map(we=>`${we.name??""} flow output: \`\`\`json -${JSON.stringify(pe.output??{},null,2)} +${JSON.stringify(we.output??{},null,2)} \`\`\` `).join(` -`),K=Tt(async ee=>{var pe,_e,Te,me,Ae,ve;const se=r!==an?r:"";try{let we=i.get(r);we||(we=ga.v4(),i.set(r,we));const{flowRunResult:De,logs:Qe}=await R.flowTest({sessionId:we,tuningNodeName:se,batchRequest:T(r,(He,Ne)=>({variantName:Ne,flowInputs:{...a(He),[D]:ee}}))}),Ke=ga.v4(),st=se||an;if(So||z(st,[{stdout:Qe}]),(pe=De==null?void 0:De.flow_runs)!=null&&pe.length&&n){const He=[];(_e=De==null?void 0:De.flow_runs)==null||_e.forEach(Ne=>{var _t,tt,rt,ur,he,le,ae,ge;const $e=st+(Ne!=null&&Ne.variant_id?`.${Ne==null?void 0:Ne.variant_id}`:""),Dt=!!(Ne!=null&&Ne.error),$t=Dt?[g6({id:Ke,errorMessage:((_t=Ne==null?void 0:Ne.error)==null?void 0:_t.message)??"",stackTrace:((ur=(rt=(tt=Ne==null?void 0:Ne.error)==null?void 0:tt.debugInfo)==null?void 0:rt.stackTrace)==null?void 0:ur.substr(0,300))??""})]:[Nte({id:Ke,content:((he=Ne==null?void 0:Ne.output)==null?void 0:he[L])??"",extra:So?void 0:{root_run_id:Ne.root_run_id,session_id:we},from:Ne==null?void 0:Ne.variant_id})],Gt={...a($e)};if(M&&!Dt){const Re=(((le=Ne==null?void 0:Ne.inputs)==null?void 0:le[M])??[]).concat([{inputs:{[D]:((ae=Ne==null?void 0:Ne.inputs)==null?void 0:ae[D])??""},outputs:{[L]:((ge=Ne==null?void 0:Ne.output)==null?void 0:ge[L])??""}}]).slice(-10);Gt[M]=Re}He.push({chatItemName:$e,inputs:Gt}),u($e,Gt),c($e,(Ne==null?void 0:Ne.output)??{}),f($e,Ne==null?void 0:Ne.output_path),h($e,(Ne==null?void 0:Ne.root_run_id)??""),E($e,$t),v($e,"stopped")}),y(st,jve(((Te=De==null?void 0:De.flow_runs)==null?void 0:Te[0].system_metrics)||{})),R.updateCurrentFlowUxInputs()}return}catch(we){N(se||an,((ve=(Ae=(me=we.response)==null?void 0:me.data)==null?void 0:Ae.error)==null?void 0:ve.message)??we.message);return}finally{B()}}),U=Tt(async ee=>{var pe,_e,Te;const se=r!==an?r:"";try{const me=Qe=>{const Ke={...Qe};return ee&&(Ke[D]=ee),Ke},Ae=g0t(b),{batchResponse:ve}=await R.flowEvaluate({experimentPath:"./flow.exp.yaml",mainFlowConfig:{tuningNodeName:se,batchRequest:T(r,(Qe,Ke)=>({variantName:Ke,flowInputs:me({...Ae,...a(Qe)}),flowOutputs:ee?void 0:l(Qe),lastRunId:ee?void 0:d(Qe)}))}}),we=ga.v4(),De=[];ve==null||ve.forEach(Qe=>{const{variantName:Ke,result:st,errorMessage:He}=Qe,$e=(se||an)+(Ke?`.${Ke}`:""),$t=!!He?[g6({id:we,errorMessage:`Eval error: +`),ee=It(async Ee=>{var ve,we,me,xe,He,it;try{let Oe=i.get(r);Oe||(Oe=Cs.v4(),i.set(r,Oe));const{flowRunResult:Qe,logs:Fe}=await D.flowTest({sessionId:Oe,tuningNodeName:$,batchRequest:C(r,($e,Ge)=>(E($e,[Zw({id:ky,content:_6,extra:{session_id:Oe,root_run_id:""},from:"system"})],!0),{variantName:Ge,flowInputs:{...a($e),[L]:Ee}}))}),Ze=Cs.v4();if(eo||F(K,[{stdout:Fe}]),(ve=Qe==null?void 0:Qe.flow_runs)!=null&&ve.length&&n){const $e=[];(we=Qe==null?void 0:Qe.flow_runs)==null||we.forEach(Ge=>{var he,ue,se,pe,Ne,Be,Ae;const kt=K+(Ge!=null&&Ge.variant_id?`.${Ge==null?void 0:Ge.variant_id}`:""),$t=!!(Ge!=null&&Ge.error),bt=Ge==null?void 0:Ge.output_path,Je=yht(((he=Ge==null?void 0:Ge.output)==null?void 0:he[M])??"",bt,gg),ot=$t?[b6({id:Ze,errorMessage:((ue=Ge==null?void 0:Ge.error)==null?void 0:ue.message)??"",stackTrace:((Ne=(pe=(se=Ge==null?void 0:Ge.error)==null?void 0:se.debugInfo)==null?void 0:pe.stackTrace)==null?void 0:Ne.substr(0,300))??""})]:[Zw({id:Ze,content:Je,extra:eo?void 0:{root_run_id:Ge.root_run_id,session_id:Oe},from:Ge==null?void 0:Ge.variant_id})],ir={...a(kt)};if(q&&!$t){const Ie=(((Be=Ge==null?void 0:Ge.inputs)==null?void 0:Be[q])??[]).concat([{inputs:{[L]:((Ae=Ge==null?void 0:Ge.inputs)==null?void 0:Ae[L])??""},outputs:{[M]:Je}}]).slice(-10);ir[q]=Ie}$e.push({chatItemName:kt,inputs:ir}),u(kt,ir),c(kt,(Ge==null?void 0:Ge.output)??{}),f(kt,bt),h(kt,(Ge==null?void 0:Ge.root_run_id)??""),_(kt,ky),E(kt,ot),v(kt,"stopped")}),y(K,Kve(((me=Qe==null?void 0:Qe.flow_runs)==null?void 0:me[0].system_metrics)||{})),D.updateCurrentFlowUxInputs()}return}catch(Oe){I(K,((it=(He=(xe=Oe.response)==null?void 0:xe.data)==null?void 0:He.error)==null?void 0:it.message)??Oe.message);return}finally{X()}}),fe=It(async Ee=>{var ve,we,me;try{const xe=Ze=>{const $e={...Ze};return Ee&&($e[L]=Ee),$e};let He=i.get(r);He||(He=Cs.v4(),i.set(r,He));const it=C0t(A),{batchResponse:Oe}=await D.flowEvaluate({sessionId:He,experimentPath:"./flow.exp.yaml",mainFlowConfig:{tuningNodeName:$,batchRequest:C(r,(Ze,$e)=>(E(Ze,[Zw({id:ky,content:_6,extra:eo?void 0:{session_id:He,root_run_id:""},from:"system"})],!0),{variantName:$e,flowInputs:xe({...it,...a(Ze)}),flowOutputs:Ee?void 0:l(Ze),lastRunId:Ee?void 0:d(Ze)}))}}),Qe=Cs.v4(),Fe=[];Oe==null||Oe.forEach(Ze=>{const{variantName:$e,result:Ge,errorMessage:kt}=Ze,$t=K+($e?`.${$e}`:""),Je=!!kt?[b6({id:Qe,errorMessage:`Eval error: -${He??"Unknown error"}`})]:[Nte({id:we,content:P(st??[]),from:Ke})];De.push({chatItemName:$e,flowHistoryItems:$t}),E($e,$t,!0),v($e,"stopped")}),De.length===0&&N(se||an,"No eval output");return}catch(me){N(se||an,((Te=(_e=(pe=me.response)==null?void 0:pe.data)==null?void 0:_e.error)==null?void 0:Te.message)??me.message);return}finally{B()}}),X=k.useCallback(async(ee,se,pe)=>{const _e=d6(ee),Te=A==="openai-vision"?p6(ee):h6(ee),me=(ve,we)=>{const De=[pe];if(!M&&we){const Qe=e.sessionSplit();De.unshift(Qe)}x(r,Qe=>{E(Qe,De,ve)}),I("running")};if(_e.trim()==="/eval_last"){if(me(!0,!1),r!==an){N(r,"Evaluations are not currently supported on variants."),I("stopped");return}return U()}if(_e.trim()==="/eval"||_e.trim().startsWith("/eval ")||_e.trim().startsWith(`/eval -`)){const ve=_e.trim().match(/^\/eval\s+(.*)/m),we=ve==null?void 0:ve[1];let De;if(we&&(De=q?(A==="openai-vision"?sht:iht)(ee):we),me(!0,!0),r!==an){N(r,"Evaluations are not currently supported on variants."),I("stopped");return}return U(De)}me(!1,!0);const Ae={[D]:q?Te:_e};return x(r,ve=>{u(ve,Ae)}),R.updateCurrentFlowUxInputs(),K(q?Te:_e)},[r,N,E,R,M,D,x,U,K,q,A,u,I,e]),J=k.useCallback(ee=>{const se=ee.content,pe=d6(se),_e=A==="openai-vision"?p6(se):h6(se);return q?JSON.stringify(_e):pe},[q,A]);return k.useEffect(()=>{e.setSendMessage(X)},[X,e]),k.useEffect(()=>{e.setCalcContentForCopy(J)},[J,e]),k.useEffect(()=>{e.alias$.next("User")},[e.alias$]),k.useEffect(()=>{e.disabled$.next(!D||!L)},[D,L,e.disabled$]),k.useEffect(()=>{e.messages$.next(s),e.isOthersTyping$.next(!!g.find((ee,se)=>(se===r||se.startsWith(`${r}.`))&&ee==="running"))},[r,s,g,e.isOthersTyping$,e.messages$]),k.useEffect(()=>{S(t)},[t,S]),C.jsx(C.Fragment,{})},m0t=()=>{const[e]=Kv(),t=BE(),r=Cz(),n=Da(),{chatInputName:o,chatOutputName:i,chatHistoryName:s}=ml(),{viewmodel:a}=Au(),l=to(a.isOthersTyping$)||!o||!i,{forEachChatItem:c}=Fz(),f=re.useCallback(()=>{const d=a.sessionSplit();c(e,h=>{t(h,s?{[s]:[]}:{}),r(h,[d])}),n.updateCurrentFlowUxInputs()},[e,r,n,s,c,t,a]);return C.jsx("div",{style:{marginRight:"8px"},children:C.jsx(la,{content:"Click to start a new session",relationship:"label",positioning:"above",children:C.jsx(Kn,{as:"button",shape:"circular",size:"medium",icon:C.jsx(JDe,{}),disabled:l,onClick:f})})})},Pve=e=>{const{viewmodel:t}=Au(),r=to(t.disabled$),n=y0t(),o=Xe(e.className,r?n.disabled:void 0);return C.jsx(qj,{...e,className:o})};Pve.displayName="MessageInputRenderer";const y0t=wr({disabled:{backgroundColor:zt.colorNeutralBackground3}}),y_="blockquote",BT="break",ep="code",b_="definition",b0t="delete",qve="emphasis",tp="heading",__="html";var Fte;(function(e){e.CDATA="cdata",e.Closing="closing",e.Comment="comment",e.Declaration="declaration",e.Instruction="instruction",e.Open="open"})(Fte||(Fte={}));const ev="imageReference",E_="image",MT="inlineCode",Hd="linkReference",w1="link",v6="listItem";var ab;(function(e){e.TODO="todo",e.DOING="doing",e.DONE="done"})(ab||(ab={}));const LT="list",rp="paragraph",Wve="strong",_0t="table",S_="text",jT="thematicBreak";var G;(function(e){e[e.NUL=0]="NUL",e[e.SOH=1]="SOH",e[e.STX=2]="STX",e[e.ETX=3]="ETX",e[e.EOT=4]="EOT",e[e.ENQ=5]="ENQ",e[e.ACK=6]="ACK",e[e.BEL=7]="BEL",e[e.BS=8]="BS",e[e.HT=9]="HT",e[e.LF=10]="LF",e[e.VT=11]="VT",e[e.FF=12]="FF",e[e.CR=13]="CR",e[e.SO=14]="SO",e[e.SI=15]="SI",e[e.DLE=16]="DLE",e[e.DC1=17]="DC1",e[e.DC2=18]="DC2",e[e.DC3=19]="DC3",e[e.DC4=20]="DC4",e[e.NAK=21]="NAK",e[e.SYN=22]="SYN",e[e.ETB=23]="ETB",e[e.CAN=24]="CAN",e[e.EM=25]="EM",e[e.SUB=26]="SUB",e[e.ESC=27]="ESC",e[e.FS=28]="FS",e[e.GS=29]="GS",e[e.RS=30]="RS",e[e.US=31]="US",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.DOUBLE_QUOTE=34]="DOUBLE_QUOTE",e[e.NUMBER_SIGN=35]="NUMBER_SIGN",e[e.DOLLAR_SIGN=36]="DOLLAR_SIGN",e[e.PERCENT_SIGN=37]="PERCENT_SIGN",e[e.AMPERSAND=38]="AMPERSAND",e[e.SINGLE_QUOTE=39]="SINGLE_QUOTE",e[e.OPEN_PARENTHESIS=40]="OPEN_PARENTHESIS",e[e.CLOSE_PARENTHESIS=41]="CLOSE_PARENTHESIS",e[e.ASTERISK=42]="ASTERISK",e[e.PLUS_SIGN=43]="PLUS_SIGN",e[e.COMMA=44]="COMMA",e[e.MINUS_SIGN=45]="MINUS_SIGN",e[e.DOT=46]="DOT",e[e.SLASH=47]="SLASH",e[e.DIGIT0=48]="DIGIT0",e[e.DIGIT1=49]="DIGIT1",e[e.DIGIT2=50]="DIGIT2",e[e.DIGIT3=51]="DIGIT3",e[e.DIGIT4=52]="DIGIT4",e[e.DIGIT5=53]="DIGIT5",e[e.DIGIT6=54]="DIGIT6",e[e.DIGIT7=55]="DIGIT7",e[e.DIGIT8=56]="DIGIT8",e[e.DIGIT9=57]="DIGIT9",e[e.COLON=58]="COLON",e[e.SEMICOLON=59]="SEMICOLON",e[e.OPEN_ANGLE=60]="OPEN_ANGLE",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.CLOSE_ANGLE=62]="CLOSE_ANGLE",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.AT_SIGN=64]="AT_SIGN",e[e.UPPERCASE_A=65]="UPPERCASE_A",e[e.UPPERCASE_B=66]="UPPERCASE_B",e[e.UPPERCASE_C=67]="UPPERCASE_C",e[e.UPPERCASE_D=68]="UPPERCASE_D",e[e.UPPERCASE_E=69]="UPPERCASE_E",e[e.UPPERCASE_F=70]="UPPERCASE_F",e[e.UPPERCASE_G=71]="UPPERCASE_G",e[e.UPPERCASE_H=72]="UPPERCASE_H",e[e.UPPERCASE_I=73]="UPPERCASE_I",e[e.UPPERCASE_J=74]="UPPERCASE_J",e[e.UPPERCASE_K=75]="UPPERCASE_K",e[e.UPPERCASE_L=76]="UPPERCASE_L",e[e.UPPERCASE_M=77]="UPPERCASE_M",e[e.UPPERCASE_N=78]="UPPERCASE_N",e[e.UPPERCASE_O=79]="UPPERCASE_O",e[e.UPPERCASE_P=80]="UPPERCASE_P",e[e.UPPERCASE_Q=81]="UPPERCASE_Q",e[e.UPPERCASE_R=82]="UPPERCASE_R",e[e.UPPERCASE_S=83]="UPPERCASE_S",e[e.UPPERCASE_T=84]="UPPERCASE_T",e[e.UPPERCASE_U=85]="UPPERCASE_U",e[e.UPPERCASE_V=86]="UPPERCASE_V",e[e.UPPERCASE_W=87]="UPPERCASE_W",e[e.UPPERCASE_X=88]="UPPERCASE_X",e[e.UPPERCASE_Y=89]="UPPERCASE_Y",e[e.UPPERCASE_Z=90]="UPPERCASE_Z",e[e.OPEN_BRACKET=91]="OPEN_BRACKET",e[e.BACKSLASH=92]="BACKSLASH",e[e.CLOSE_BRACKET=93]="CLOSE_BRACKET",e[e.CARET=94]="CARET",e[e.UNDERSCORE=95]="UNDERSCORE",e[e.BACKTICK=96]="BACKTICK",e[e.LOWERCASE_A=97]="LOWERCASE_A",e[e.LOWERCASE_B=98]="LOWERCASE_B",e[e.LOWERCASE_C=99]="LOWERCASE_C",e[e.LOWERCASE_D=100]="LOWERCASE_D",e[e.LOWERCASE_E=101]="LOWERCASE_E",e[e.LOWERCASE_F=102]="LOWERCASE_F",e[e.LOWERCASE_G=103]="LOWERCASE_G",e[e.LOWERCASE_H=104]="LOWERCASE_H",e[e.LOWERCASE_I=105]="LOWERCASE_I",e[e.LOWERCASE_J=106]="LOWERCASE_J",e[e.LOWERCASE_K=107]="LOWERCASE_K",e[e.LOWERCASE_L=108]="LOWERCASE_L",e[e.LOWERCASE_M=109]="LOWERCASE_M",e[e.LOWERCASE_N=110]="LOWERCASE_N",e[e.LOWERCASE_O=111]="LOWERCASE_O",e[e.LOWERCASE_P=112]="LOWERCASE_P",e[e.LOWERCASE_Q=113]="LOWERCASE_Q",e[e.LOWERCASE_R=114]="LOWERCASE_R",e[e.LOWERCASE_S=115]="LOWERCASE_S",e[e.LOWERCASE_T=116]="LOWERCASE_T",e[e.LOWERCASE_U=117]="LOWERCASE_U",e[e.LOWERCASE_V=118]="LOWERCASE_V",e[e.LOWERCASE_W=119]="LOWERCASE_W",e[e.LOWERCASE_X=120]="LOWERCASE_X",e[e.LOWERCASE_Y=121]="LOWERCASE_Y",e[e.LOWERCASE_Z=122]="LOWERCASE_Z",e[e.OPEN_BRACE=123]="OPEN_BRACE",e[e.VERTICAL_SLASH=124]="VERTICAL_SLASH",e[e.CLOSE_BRACE=125]="CLOSE_BRACE",e[e.TILDE=126]="TILDE",e[e.DELETE=127]="DELETE"})(G||(G={}));const E0t={µ:"μ",À:"à",Á:"á",Â:"â",Ã:"ã",Ä:"ä",Å:"å",Æ:"æ",Ç:"ç",È:"è",É:"é",Ê:"ê",Ë:"ë",Ì:"ì",Í:"í",Î:"î",Ï:"ï",Ð:"ð",Ñ:"ñ",Ò:"ò",Ó:"ó",Ô:"ô",Õ:"õ",Ö:"ö",Ø:"ø",Ù:"ù",Ú:"ú",Û:"û",Ü:"ü",Ý:"ý",Þ:"þ",Ā:"ā",Ă:"ă",Ą:"ą",Ć:"ć",Ĉ:"ĉ",Ċ:"ċ",Č:"č",Ď:"ď",Đ:"đ",Ē:"ē",Ĕ:"ĕ",Ė:"ė",Ę:"ę",Ě:"ě",Ĝ:"ĝ",Ğ:"ğ",Ġ:"ġ",Ģ:"ģ",Ĥ:"ĥ",Ħ:"ħ",Ĩ:"ĩ",Ī:"ī",Ĭ:"ĭ",Į:"į",IJ:"ij",Ĵ:"ĵ",Ķ:"ķ",Ĺ:"ĺ",Ļ:"ļ",Ľ:"ľ",Ŀ:"ŀ",Ł:"ł",Ń:"ń",Ņ:"ņ",Ň:"ň",Ŋ:"ŋ",Ō:"ō",Ŏ:"ŏ",Ő:"ő",Œ:"œ",Ŕ:"ŕ",Ŗ:"ŗ",Ř:"ř",Ś:"ś",Ŝ:"ŝ",Ş:"ş",Š:"š",Ţ:"ţ",Ť:"ť",Ŧ:"ŧ",Ũ:"ũ",Ū:"ū",Ŭ:"ŭ",Ů:"ů",Ű:"ű",Ų:"ų",Ŵ:"ŵ",Ŷ:"ŷ",Ÿ:"ÿ",Ź:"ź",Ż:"ż",Ž:"ž",ſ:"s",Ɓ:"ɓ",Ƃ:"ƃ",Ƅ:"ƅ",Ɔ:"ɔ",Ƈ:"ƈ",Ɖ:"ɖ",Ɗ:"ɗ",Ƌ:"ƌ",Ǝ:"ǝ",Ə:"ə",Ɛ:"ɛ",Ƒ:"ƒ",Ɠ:"ɠ",Ɣ:"ɣ",Ɩ:"ɩ",Ɨ:"ɨ",Ƙ:"ƙ",Ɯ:"ɯ",Ɲ:"ɲ",Ɵ:"ɵ",Ơ:"ơ",Ƣ:"ƣ",Ƥ:"ƥ",Ʀ:"ʀ",Ƨ:"ƨ",Ʃ:"ʃ",Ƭ:"ƭ",Ʈ:"ʈ",Ư:"ư",Ʊ:"ʊ",Ʋ:"ʋ",Ƴ:"ƴ",Ƶ:"ƶ",Ʒ:"ʒ",Ƹ:"ƹ",Ƽ:"ƽ",DŽ:"dž",Dž:"dž",LJ:"lj",Lj:"lj",NJ:"nj",Nj:"nj",Ǎ:"ǎ",Ǐ:"ǐ",Ǒ:"ǒ",Ǔ:"ǔ",Ǖ:"ǖ",Ǘ:"ǘ",Ǚ:"ǚ",Ǜ:"ǜ",Ǟ:"ǟ",Ǡ:"ǡ",Ǣ:"ǣ",Ǥ:"ǥ",Ǧ:"ǧ",Ǩ:"ǩ",Ǫ:"ǫ",Ǭ:"ǭ",Ǯ:"ǯ",DZ:"dz",Dz:"dz",Ǵ:"ǵ",Ƕ:"ƕ",Ƿ:"ƿ",Ǹ:"ǹ",Ǻ:"ǻ",Ǽ:"ǽ",Ǿ:"ǿ",Ȁ:"ȁ",Ȃ:"ȃ",Ȅ:"ȅ",Ȇ:"ȇ",Ȉ:"ȉ",Ȋ:"ȋ",Ȍ:"ȍ",Ȏ:"ȏ",Ȑ:"ȑ",Ȓ:"ȓ",Ȕ:"ȕ",Ȗ:"ȗ",Ș:"ș",Ț:"ț",Ȝ:"ȝ",Ȟ:"ȟ","Ƞ":"ƞ",Ȣ:"ȣ",Ȥ:"ȥ",Ȧ:"ȧ",Ȩ:"ȩ",Ȫ:"ȫ",Ȭ:"ȭ",Ȯ:"ȯ",Ȱ:"ȱ",Ȳ:"ȳ","Ⱥ":"ⱥ","Ȼ":"ȼ","Ƚ":"ƚ","Ⱦ":"ⱦ","Ɂ":"ɂ","Ƀ":"ƀ","Ʉ":"ʉ","Ʌ":"ʌ","Ɇ":"ɇ","Ɉ":"ɉ","Ɋ":"ɋ","Ɍ":"ɍ","Ɏ":"ɏ","ͅ":"ι","Ͱ":"ͱ","Ͳ":"ͳ","Ͷ":"ͷ","Ϳ":"ϳ",Ά:"ά",Έ:"έ",Ή:"ή",Ί:"ί",Ό:"ό",Ύ:"ύ",Ώ:"ώ",Α:"α",Β:"β",Γ:"γ",Δ:"δ",Ε:"ε",Ζ:"ζ",Η:"η",Θ:"θ",Ι:"ι",Κ:"κ",Λ:"λ",Μ:"μ",Ν:"ν",Ξ:"ξ",Ο:"ο",Π:"π",Ρ:"ρ",Σ:"σ",Τ:"τ",Υ:"υ",Φ:"φ",Χ:"χ",Ψ:"ψ",Ω:"ω",Ϊ:"ϊ",Ϋ:"ϋ",ς:"σ","Ϗ":"ϗ",ϐ:"β",ϑ:"θ",ϕ:"φ",ϖ:"π","Ϙ":"ϙ",Ϛ:"ϛ",Ϝ:"ϝ",Ϟ:"ϟ",Ϡ:"ϡ",Ϣ:"ϣ",Ϥ:"ϥ",Ϧ:"ϧ",Ϩ:"ϩ",Ϫ:"ϫ",Ϭ:"ϭ",Ϯ:"ϯ",ϰ:"κ",ϱ:"ρ","ϴ":"θ","ϵ":"ε","Ϸ":"ϸ","Ϲ":"ϲ","Ϻ":"ϻ","Ͻ":"ͻ","Ͼ":"ͼ","Ͽ":"ͽ",Ѐ:"ѐ",Ё:"ё",Ђ:"ђ",Ѓ:"ѓ",Є:"є",Ѕ:"ѕ",І:"і",Ї:"ї",Ј:"ј",Љ:"љ",Њ:"њ",Ћ:"ћ",Ќ:"ќ",Ѝ:"ѝ",Ў:"ў",Џ:"џ",А:"а",Б:"б",В:"в",Г:"г",Д:"д",Е:"е",Ж:"ж",З:"з",И:"и",Й:"й",К:"к",Л:"л",М:"м",Н:"н",О:"о",П:"п",Р:"р",С:"с",Т:"т",У:"у",Ф:"ф",Х:"х",Ц:"ц",Ч:"ч",Ш:"ш",Щ:"щ",Ъ:"ъ",Ы:"ы",Ь:"ь",Э:"э",Ю:"ю",Я:"я",Ѡ:"ѡ",Ѣ:"ѣ",Ѥ:"ѥ",Ѧ:"ѧ",Ѩ:"ѩ",Ѫ:"ѫ",Ѭ:"ѭ",Ѯ:"ѯ",Ѱ:"ѱ",Ѳ:"ѳ",Ѵ:"ѵ",Ѷ:"ѷ",Ѹ:"ѹ",Ѻ:"ѻ",Ѽ:"ѽ",Ѿ:"ѿ",Ҁ:"ҁ","Ҋ":"ҋ",Ҍ:"ҍ",Ҏ:"ҏ",Ґ:"ґ",Ғ:"ғ",Ҕ:"ҕ",Җ:"җ",Ҙ:"ҙ",Қ:"қ",Ҝ:"ҝ",Ҟ:"ҟ",Ҡ:"ҡ",Ң:"ң",Ҥ:"ҥ",Ҧ:"ҧ",Ҩ:"ҩ",Ҫ:"ҫ",Ҭ:"ҭ",Ү:"ү",Ұ:"ұ",Ҳ:"ҳ",Ҵ:"ҵ",Ҷ:"ҷ",Ҹ:"ҹ",Һ:"һ",Ҽ:"ҽ",Ҿ:"ҿ",Ӏ:"ӏ",Ӂ:"ӂ",Ӄ:"ӄ","Ӆ":"ӆ",Ӈ:"ӈ","Ӊ":"ӊ",Ӌ:"ӌ","Ӎ":"ӎ",Ӑ:"ӑ",Ӓ:"ӓ",Ӕ:"ӕ",Ӗ:"ӗ",Ә:"ә",Ӛ:"ӛ",Ӝ:"ӝ",Ӟ:"ӟ",Ӡ:"ӡ",Ӣ:"ӣ",Ӥ:"ӥ",Ӧ:"ӧ",Ө:"ө",Ӫ:"ӫ",Ӭ:"ӭ",Ӯ:"ӯ",Ӱ:"ӱ",Ӳ:"ӳ",Ӵ:"ӵ","Ӷ":"ӷ",Ӹ:"ӹ","Ӻ":"ӻ","Ӽ":"ӽ","Ӿ":"ӿ","Ԁ":"ԁ","Ԃ":"ԃ","Ԅ":"ԅ","Ԇ":"ԇ","Ԉ":"ԉ","Ԋ":"ԋ","Ԍ":"ԍ","Ԏ":"ԏ","Ԑ":"ԑ","Ԓ":"ԓ","Ԕ":"ԕ","Ԗ":"ԗ","Ԙ":"ԙ","Ԛ":"ԛ","Ԝ":"ԝ","Ԟ":"ԟ","Ԡ":"ԡ","Ԣ":"ԣ","Ԥ":"ԥ","Ԧ":"ԧ","Ԩ":"ԩ","Ԫ":"ԫ","Ԭ":"ԭ","Ԯ":"ԯ",Ա:"ա",Բ:"բ",Գ:"գ",Դ:"դ",Ե:"ե",Զ:"զ",Է:"է",Ը:"ը",Թ:"թ",Ժ:"ժ",Ի:"ի",Լ:"լ",Խ:"խ",Ծ:"ծ",Կ:"կ",Հ:"հ",Ձ:"ձ",Ղ:"ղ",Ճ:"ճ",Մ:"մ",Յ:"յ",Ն:"ն",Շ:"շ",Ո:"ո",Չ:"չ",Պ:"պ",Ջ:"ջ",Ռ:"ռ",Ս:"ս",Վ:"վ",Տ:"տ",Ր:"ր",Ց:"ց",Ւ:"ւ",Փ:"փ",Ք:"ք",Օ:"օ",Ֆ:"ֆ",Ⴀ:"ⴀ",Ⴁ:"ⴁ",Ⴂ:"ⴂ",Ⴃ:"ⴃ",Ⴄ:"ⴄ",Ⴅ:"ⴅ",Ⴆ:"ⴆ",Ⴇ:"ⴇ",Ⴈ:"ⴈ",Ⴉ:"ⴉ",Ⴊ:"ⴊ",Ⴋ:"ⴋ",Ⴌ:"ⴌ",Ⴍ:"ⴍ",Ⴎ:"ⴎ",Ⴏ:"ⴏ",Ⴐ:"ⴐ",Ⴑ:"ⴑ",Ⴒ:"ⴒ",Ⴓ:"ⴓ",Ⴔ:"ⴔ",Ⴕ:"ⴕ",Ⴖ:"ⴖ",Ⴗ:"ⴗ",Ⴘ:"ⴘ",Ⴙ:"ⴙ",Ⴚ:"ⴚ",Ⴛ:"ⴛ",Ⴜ:"ⴜ",Ⴝ:"ⴝ",Ⴞ:"ⴞ",Ⴟ:"ⴟ",Ⴠ:"ⴠ",Ⴡ:"ⴡ",Ⴢ:"ⴢ",Ⴣ:"ⴣ",Ⴤ:"ⴤ",Ⴥ:"ⴥ","Ⴧ":"ⴧ","Ⴭ":"ⴭ",Ḁ:"ḁ",Ḃ:"ḃ",Ḅ:"ḅ",Ḇ:"ḇ",Ḉ:"ḉ",Ḋ:"ḋ",Ḍ:"ḍ",Ḏ:"ḏ",Ḑ:"ḑ",Ḓ:"ḓ",Ḕ:"ḕ",Ḗ:"ḗ",Ḙ:"ḙ",Ḛ:"ḛ",Ḝ:"ḝ",Ḟ:"ḟ",Ḡ:"ḡ",Ḣ:"ḣ",Ḥ:"ḥ",Ḧ:"ḧ",Ḩ:"ḩ",Ḫ:"ḫ",Ḭ:"ḭ",Ḯ:"ḯ",Ḱ:"ḱ",Ḳ:"ḳ",Ḵ:"ḵ",Ḷ:"ḷ",Ḹ:"ḹ",Ḻ:"ḻ",Ḽ:"ḽ",Ḿ:"ḿ",Ṁ:"ṁ",Ṃ:"ṃ",Ṅ:"ṅ",Ṇ:"ṇ",Ṉ:"ṉ",Ṋ:"ṋ",Ṍ:"ṍ",Ṏ:"ṏ",Ṑ:"ṑ",Ṓ:"ṓ",Ṕ:"ṕ",Ṗ:"ṗ",Ṙ:"ṙ",Ṛ:"ṛ",Ṝ:"ṝ",Ṟ:"ṟ",Ṡ:"ṡ",Ṣ:"ṣ",Ṥ:"ṥ",Ṧ:"ṧ",Ṩ:"ṩ",Ṫ:"ṫ",Ṭ:"ṭ",Ṯ:"ṯ",Ṱ:"ṱ",Ṳ:"ṳ",Ṵ:"ṵ",Ṷ:"ṷ",Ṹ:"ṹ",Ṻ:"ṻ",Ṽ:"ṽ",Ṿ:"ṿ",Ẁ:"ẁ",Ẃ:"ẃ",Ẅ:"ẅ",Ẇ:"ẇ",Ẉ:"ẉ",Ẋ:"ẋ",Ẍ:"ẍ",Ẏ:"ẏ",Ẑ:"ẑ",Ẓ:"ẓ",Ẕ:"ẕ",ẛ:"ṡ",Ạ:"ạ",Ả:"ả",Ấ:"ấ",Ầ:"ầ",Ẩ:"ẩ",Ẫ:"ẫ",Ậ:"ậ",Ắ:"ắ",Ằ:"ằ",Ẳ:"ẳ",Ẵ:"ẵ",Ặ:"ặ",Ẹ:"ẹ",Ẻ:"ẻ",Ẽ:"ẽ",Ế:"ế",Ề:"ề",Ể:"ể",Ễ:"ễ",Ệ:"ệ",Ỉ:"ỉ",Ị:"ị",Ọ:"ọ",Ỏ:"ỏ",Ố:"ố",Ồ:"ồ",Ổ:"ổ",Ỗ:"ỗ",Ộ:"ộ",Ớ:"ớ",Ờ:"ờ",Ở:"ở",Ỡ:"ỡ",Ợ:"ợ",Ụ:"ụ",Ủ:"ủ",Ứ:"ứ",Ừ:"ừ",Ử:"ử",Ữ:"ữ",Ự:"ự",Ỳ:"ỳ",Ỵ:"ỵ",Ỷ:"ỷ",Ỹ:"ỹ","Ỻ":"ỻ","Ỽ":"ỽ","Ỿ":"ỿ",Ἀ:"ἀ",Ἁ:"ἁ",Ἂ:"ἂ",Ἃ:"ἃ",Ἄ:"ἄ",Ἅ:"ἅ",Ἆ:"ἆ",Ἇ:"ἇ",Ἐ:"ἐ",Ἑ:"ἑ",Ἒ:"ἒ",Ἓ:"ἓ",Ἔ:"ἔ",Ἕ:"ἕ",Ἠ:"ἠ",Ἡ:"ἡ",Ἢ:"ἢ",Ἣ:"ἣ",Ἤ:"ἤ",Ἥ:"ἥ",Ἦ:"ἦ",Ἧ:"ἧ",Ἰ:"ἰ",Ἱ:"ἱ",Ἲ:"ἲ",Ἳ:"ἳ",Ἴ:"ἴ",Ἵ:"ἵ",Ἶ:"ἶ",Ἷ:"ἷ",Ὀ:"ὀ",Ὁ:"ὁ",Ὂ:"ὂ",Ὃ:"ὃ",Ὄ:"ὄ",Ὅ:"ὅ",Ὑ:"ὑ",Ὓ:"ὓ",Ὕ:"ὕ",Ὗ:"ὗ",Ὠ:"ὠ",Ὡ:"ὡ",Ὢ:"ὢ",Ὣ:"ὣ",Ὤ:"ὤ",Ὥ:"ὥ",Ὦ:"ὦ",Ὧ:"ὧ",Ᾰ:"ᾰ",Ᾱ:"ᾱ",Ὰ:"ὰ",Ά:"ά",ι:"ι",Ὲ:"ὲ",Έ:"έ",Ὴ:"ὴ",Ή:"ή",Ῐ:"ῐ",Ῑ:"ῑ",Ὶ:"ὶ",Ί:"ί",Ῠ:"ῠ",Ῡ:"ῡ",Ὺ:"ὺ",Ύ:"ύ",Ῥ:"ῥ",Ὸ:"ὸ",Ό:"ό",Ὼ:"ὼ",Ώ:"ώ",Ω:"ω",K:"k",Å:"å","Ⅎ":"ⅎ","Ⅰ":"ⅰ","Ⅱ":"ⅱ","Ⅲ":"ⅲ","Ⅳ":"ⅳ","Ⅴ":"ⅴ","Ⅵ":"ⅵ","Ⅶ":"ⅶ","Ⅷ":"ⅷ","Ⅸ":"ⅸ","Ⅹ":"ⅹ","Ⅺ":"ⅺ","Ⅻ":"ⅻ","Ⅼ":"ⅼ","Ⅽ":"ⅽ","Ⅾ":"ⅾ","Ⅿ":"ⅿ","Ↄ":"ↄ","Ⓐ":"ⓐ","Ⓑ":"ⓑ","Ⓒ":"ⓒ","Ⓓ":"ⓓ","Ⓔ":"ⓔ","Ⓕ":"ⓕ","Ⓖ":"ⓖ","Ⓗ":"ⓗ","Ⓘ":"ⓘ","Ⓙ":"ⓙ","Ⓚ":"ⓚ","Ⓛ":"ⓛ","Ⓜ":"ⓜ","Ⓝ":"ⓝ","Ⓞ":"ⓞ","Ⓟ":"ⓟ","Ⓠ":"ⓠ","Ⓡ":"ⓡ","Ⓢ":"ⓢ","Ⓣ":"ⓣ","Ⓤ":"ⓤ","Ⓥ":"ⓥ","Ⓦ":"ⓦ","Ⓧ":"ⓧ","Ⓨ":"ⓨ","Ⓩ":"ⓩ","Ⰰ":"ⰰ","Ⰱ":"ⰱ","Ⰲ":"ⰲ","Ⰳ":"ⰳ","Ⰴ":"ⰴ","Ⰵ":"ⰵ","Ⰶ":"ⰶ","Ⰷ":"ⰷ","Ⰸ":"ⰸ","Ⰹ":"ⰹ","Ⰺ":"ⰺ","Ⰻ":"ⰻ","Ⰼ":"ⰼ","Ⰽ":"ⰽ","Ⰾ":"ⰾ","Ⰿ":"ⰿ","Ⱀ":"ⱀ","Ⱁ":"ⱁ","Ⱂ":"ⱂ","Ⱃ":"ⱃ","Ⱄ":"ⱄ","Ⱅ":"ⱅ","Ⱆ":"ⱆ","Ⱇ":"ⱇ","Ⱈ":"ⱈ","Ⱉ":"ⱉ","Ⱊ":"ⱊ","Ⱋ":"ⱋ","Ⱌ":"ⱌ","Ⱍ":"ⱍ","Ⱎ":"ⱎ","Ⱏ":"ⱏ","Ⱐ":"ⱐ","Ⱑ":"ⱑ","Ⱒ":"ⱒ","Ⱓ":"ⱓ","Ⱔ":"ⱔ","Ⱕ":"ⱕ","Ⱖ":"ⱖ","Ⱗ":"ⱗ","Ⱘ":"ⱘ","Ⱙ":"ⱙ","Ⱚ":"ⱚ","Ⱛ":"ⱛ","Ⱜ":"ⱜ","Ⱝ":"ⱝ","Ⱞ":"ⱞ","Ⱡ":"ⱡ","Ɫ":"ɫ","Ᵽ":"ᵽ","Ɽ":"ɽ","Ⱨ":"ⱨ","Ⱪ":"ⱪ","Ⱬ":"ⱬ","Ɑ":"ɑ","Ɱ":"ɱ","Ɐ":"ɐ","Ɒ":"ɒ","Ⱳ":"ⱳ","Ⱶ":"ⱶ","Ȿ":"ȿ","Ɀ":"ɀ","Ⲁ":"ⲁ","Ⲃ":"ⲃ","Ⲅ":"ⲅ","Ⲇ":"ⲇ","Ⲉ":"ⲉ","Ⲋ":"ⲋ","Ⲍ":"ⲍ","Ⲏ":"ⲏ","Ⲑ":"ⲑ","Ⲓ":"ⲓ","Ⲕ":"ⲕ","Ⲗ":"ⲗ","Ⲙ":"ⲙ","Ⲛ":"ⲛ","Ⲝ":"ⲝ","Ⲟ":"ⲟ","Ⲡ":"ⲡ","Ⲣ":"ⲣ","Ⲥ":"ⲥ","Ⲧ":"ⲧ","Ⲩ":"ⲩ","Ⲫ":"ⲫ","Ⲭ":"ⲭ","Ⲯ":"ⲯ","Ⲱ":"ⲱ","Ⲳ":"ⲳ","Ⲵ":"ⲵ","Ⲷ":"ⲷ","Ⲹ":"ⲹ","Ⲻ":"ⲻ","Ⲽ":"ⲽ","Ⲿ":"ⲿ","Ⳁ":"ⳁ","Ⳃ":"ⳃ","Ⳅ":"ⳅ","Ⳇ":"ⳇ","Ⳉ":"ⳉ","Ⳋ":"ⳋ","Ⳍ":"ⳍ","Ⳏ":"ⳏ","Ⳑ":"ⳑ","Ⳓ":"ⳓ","Ⳕ":"ⳕ","Ⳗ":"ⳗ","Ⳙ":"ⳙ","Ⳛ":"ⳛ","Ⳝ":"ⳝ","Ⳟ":"ⳟ","Ⳡ":"ⳡ","Ⳣ":"ⳣ","Ⳬ":"ⳬ","Ⳮ":"ⳮ","Ⳳ":"ⳳ","Ꙁ":"ꙁ","Ꙃ":"ꙃ","Ꙅ":"ꙅ","Ꙇ":"ꙇ","Ꙉ":"ꙉ","Ꙋ":"ꙋ","Ꙍ":"ꙍ","Ꙏ":"ꙏ","Ꙑ":"ꙑ","Ꙓ":"ꙓ","Ꙕ":"ꙕ","Ꙗ":"ꙗ","Ꙙ":"ꙙ","Ꙛ":"ꙛ","Ꙝ":"ꙝ","Ꙟ":"ꙟ","Ꙡ":"ꙡ","Ꙣ":"ꙣ","Ꙥ":"ꙥ","Ꙧ":"ꙧ","Ꙩ":"ꙩ","Ꙫ":"ꙫ","Ꙭ":"ꙭ","Ꚁ":"ꚁ","Ꚃ":"ꚃ","Ꚅ":"ꚅ","Ꚇ":"ꚇ","Ꚉ":"ꚉ","Ꚋ":"ꚋ","Ꚍ":"ꚍ","Ꚏ":"ꚏ","Ꚑ":"ꚑ","Ꚓ":"ꚓ","Ꚕ":"ꚕ","Ꚗ":"ꚗ","Ꚙ":"ꚙ","Ꚛ":"ꚛ","Ꜣ":"ꜣ","Ꜥ":"ꜥ","Ꜧ":"ꜧ","Ꜩ":"ꜩ","Ꜫ":"ꜫ","Ꜭ":"ꜭ","Ꜯ":"ꜯ","Ꜳ":"ꜳ","Ꜵ":"ꜵ","Ꜷ":"ꜷ","Ꜹ":"ꜹ","Ꜻ":"ꜻ","Ꜽ":"ꜽ","Ꜿ":"ꜿ","Ꝁ":"ꝁ","Ꝃ":"ꝃ","Ꝅ":"ꝅ","Ꝇ":"ꝇ","Ꝉ":"ꝉ","Ꝋ":"ꝋ","Ꝍ":"ꝍ","Ꝏ":"ꝏ","Ꝑ":"ꝑ","Ꝓ":"ꝓ","Ꝕ":"ꝕ","Ꝗ":"ꝗ","Ꝙ":"ꝙ","Ꝛ":"ꝛ","Ꝝ":"ꝝ","Ꝟ":"ꝟ","Ꝡ":"ꝡ","Ꝣ":"ꝣ","Ꝥ":"ꝥ","Ꝧ":"ꝧ","Ꝩ":"ꝩ","Ꝫ":"ꝫ","Ꝭ":"ꝭ","Ꝯ":"ꝯ","Ꝺ":"ꝺ","Ꝼ":"ꝼ","Ᵹ":"ᵹ","Ꝿ":"ꝿ","Ꞁ":"ꞁ","Ꞃ":"ꞃ","Ꞅ":"ꞅ","Ꞇ":"ꞇ","Ꞌ":"ꞌ","Ɥ":"ɥ","Ꞑ":"ꞑ","Ꞓ":"ꞓ","Ꞗ":"ꞗ","Ꞙ":"ꞙ","Ꞛ":"ꞛ","Ꞝ":"ꞝ","Ꞟ":"ꞟ","Ꞡ":"ꞡ","Ꞣ":"ꞣ","Ꞥ":"ꞥ","Ꞧ":"ꞧ","Ꞩ":"ꞩ","Ɦ":"ɦ","Ɜ":"ɜ","Ɡ":"ɡ","Ɬ":"ɬ","Ʞ":"ʞ","Ʇ":"ʇ",A:"a",B:"b",C:"c",D:"d",E:"e",F:"f",G:"g",H:"h",I:"i",J:"j",K:"k",L:"l",M:"m",N:"n",O:"o",P:"p",Q:"q",R:"r",S:"s",T:"t",U:"u",V:"v",W:"w",X:"x",Y:"y",Z:"z","𐐀":"𐐨","𐐁":"𐐩","𐐂":"𐐪","𐐃":"𐐫","𐐄":"𐐬","𐐅":"𐐭","𐐆":"𐐮","𐐇":"𐐯","𐐈":"𐐰","𐐉":"𐐱","𐐊":"𐐲","𐐋":"𐐳","𐐌":"𐐴","𐐍":"𐐵","𐐎":"𐐶","𐐏":"𐐷","𐐐":"𐐸","𐐑":"𐐹","𐐒":"𐐺","𐐓":"𐐻","𐐔":"𐐼","𐐕":"𐐽","𐐖":"𐐾","𐐗":"𐐿","𐐘":"𐑀","𐐙":"𐑁","𐐚":"𐑂","𐐛":"𐑃","𐐜":"𐑄","𐐝":"𐑅","𐐞":"𐑆","𐐟":"𐑇","𐐠":"𐑈","𐐡":"𐑉","𐐢":"𐑊","𐐣":"𐑋","𐐤":"𐑌","𐐥":"𐑍","𐐦":"𐑎","𐐧":"𐑏","𑢠":"𑣀","𑢡":"𑣁","𑢢":"𑣂","𑢣":"𑣃","𑢤":"𑣄","𑢥":"𑣅","𑢦":"𑣆","𑢧":"𑣇","𑢨":"𑣈","𑢩":"𑣉","𑢪":"𑣊","𑢫":"𑣋","𑢬":"𑣌","𑢭":"𑣍","𑢮":"𑣎","𑢯":"𑣏","𑢰":"𑣐","𑢱":"𑣑","𑢲":"𑣒","𑢳":"𑣓","𑢴":"𑣔","𑢵":"𑣕","𑢶":"𑣖","𑢷":"𑣗","𑢸":"𑣘","𑢹":"𑣙","𑢺":"𑣚","𑢻":"𑣛","𑢼":"𑣜","𑢽":"𑣝","𑢾":"𑣞","𑢿":"𑣟",ß:"ss",İ:"i̇",ʼn:"ʼn",ǰ:"ǰ",ΐ:"ΐ",ΰ:"ΰ",և:"եւ",ẖ:"ẖ",ẗ:"ẗ",ẘ:"ẘ",ẙ:"ẙ",ẚ:"aʾ","ẞ":"ss",ὐ:"ὐ",ὒ:"ὒ",ὔ:"ὔ",ὖ:"ὖ",ᾀ:"ἀι",ᾁ:"ἁι",ᾂ:"ἂι",ᾃ:"ἃι",ᾄ:"ἄι",ᾅ:"ἅι",ᾆ:"ἆι",ᾇ:"ἇι",ᾈ:"ἀι",ᾉ:"ἁι",ᾊ:"ἂι",ᾋ:"ἃι",ᾌ:"ἄι",ᾍ:"ἅι",ᾎ:"ἆι",ᾏ:"ἇι",ᾐ:"ἠι",ᾑ:"ἡι",ᾒ:"ἢι",ᾓ:"ἣι",ᾔ:"ἤι",ᾕ:"ἥι",ᾖ:"ἦι",ᾗ:"ἧι",ᾘ:"ἠι",ᾙ:"ἡι",ᾚ:"ἢι",ᾛ:"ἣι",ᾜ:"ἤι",ᾝ:"ἥι",ᾞ:"ἦι",ᾟ:"ἧι",ᾠ:"ὠι",ᾡ:"ὡι",ᾢ:"ὢι",ᾣ:"ὣι",ᾤ:"ὤι",ᾥ:"ὥι",ᾦ:"ὦι",ᾧ:"ὧι",ᾨ:"ὠι",ᾩ:"ὡι",ᾪ:"ὢι",ᾫ:"ὣι",ᾬ:"ὤι",ᾭ:"ὥι",ᾮ:"ὦι",ᾯ:"ὧι",ᾲ:"ὰι",ᾳ:"αι",ᾴ:"άι",ᾶ:"ᾶ",ᾷ:"ᾶι",ᾼ:"αι",ῂ:"ὴι",ῃ:"ηι",ῄ:"ήι",ῆ:"ῆ",ῇ:"ῆι",ῌ:"ηι",ῒ:"ῒ",ΐ:"ΐ",ῖ:"ῖ",ῗ:"ῗ",ῢ:"ῢ",ΰ:"ΰ",ῤ:"ῤ",ῦ:"ῦ",ῧ:"ῧ",ῲ:"ὼι",ῳ:"ωι",ῴ:"ώι",ῶ:"ῶ",ῷ:"ῶι",ῼ:"ωι",ff:"ff",fi:"fi",fl:"fl",ffi:"ffi",ffl:"ffl",ſt:"st",st:"st",ﬓ:"մն",ﬔ:"մե",ﬕ:"մի",ﬖ:"վն",ﬗ:"մխ"},S0t=[{key:[65,69,108,105,103,59],value:"Æ"},{key:[65,77,80,59],value:"&"},{key:[65,97,99,117,116,101,59],value:"Á"},{key:[65,98,114,101,118,101,59],value:"Ă"},{key:[65,99,105,114,99,59],value:"Â"},{key:[65,99,121,59],value:"А"},{key:[65,102,114,59],value:"𝔄"},{key:[65,103,114,97,118,101,59],value:"À"},{key:[65,108,112,104,97,59],value:"Α"},{key:[65,109,97,99,114,59],value:"Ā"},{key:[65,110,100,59],value:"⩓"},{key:[65,111,103,111,110,59],value:"Ą"},{key:[65,111,112,102,59],value:"𝔸"},{key:[65,112,112,108,121,70,117,110,99,116,105,111,110,59],value:"⁡"},{key:[65,114,105,110,103,59],value:"Å"},{key:[65,115,99,114,59],value:"𝒜"},{key:[65,115,115,105,103,110,59],value:"≔"},{key:[65,116,105,108,100,101,59],value:"Ã"},{key:[65,117,109,108,59],value:"Ä"},{key:[66,97,99,107,115,108,97,115,104,59],value:"∖"},{key:[66,97,114,118,59],value:"⫧"},{key:[66,97,114,119,101,100,59],value:"⌆"},{key:[66,99,121,59],value:"Б"},{key:[66,101,99,97,117,115,101,59],value:"∵"},{key:[66,101,114,110,111,117,108,108,105,115,59],value:"ℬ"},{key:[66,101,116,97,59],value:"Β"},{key:[66,102,114,59],value:"𝔅"},{key:[66,111,112,102,59],value:"𝔹"},{key:[66,114,101,118,101,59],value:"˘"},{key:[66,115,99,114,59],value:"ℬ"},{key:[66,117,109,112,101,113,59],value:"≎"},{key:[67,72,99,121,59],value:"Ч"},{key:[67,79,80,89,59],value:"©"},{key:[67,97,99,117,116,101,59],value:"Ć"},{key:[67,97,112,59],value:"⋒"},{key:[67,97,112,105,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59],value:"ⅅ"},{key:[67,97,121,108,101,121,115,59],value:"ℭ"},{key:[67,99,97,114,111,110,59],value:"Č"},{key:[67,99,101,100,105,108,59],value:"Ç"},{key:[67,99,105,114,99,59],value:"Ĉ"},{key:[67,99,111,110,105,110,116,59],value:"∰"},{key:[67,100,111,116,59],value:"Ċ"},{key:[67,101,100,105,108,108,97,59],value:"¸"},{key:[67,101,110,116,101,114,68,111,116,59],value:"·"},{key:[67,102,114,59],value:"ℭ"},{key:[67,104,105,59],value:"Χ"},{key:[67,105,114,99,108,101,68,111,116,59],value:"⊙"},{key:[67,105,114,99,108,101,77,105,110,117,115,59],value:"⊖"},{key:[67,105,114,99,108,101,80,108,117,115,59],value:"⊕"},{key:[67,105,114,99,108,101,84,105,109,101,115,59],value:"⊗"},{key:[67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59],value:"∲"},{key:[67,108,111,115,101,67,117,114,108,121,68,111,117,98,108,101,81,117,111,116,101,59],value:"”"},{key:[67,108,111,115,101,67,117,114,108,121,81,117,111,116,101,59],value:"’"},{key:[67,111,108,111,110,59],value:"∷"},{key:[67,111,108,111,110,101,59],value:"⩴"},{key:[67,111,110,103,114,117,101,110,116,59],value:"≡"},{key:[67,111,110,105,110,116,59],value:"∯"},{key:[67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59],value:"∮"},{key:[67,111,112,102,59],value:"ℂ"},{key:[67,111,112,114,111,100,117,99,116,59],value:"∐"},{key:[67,111,117,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59],value:"∳"},{key:[67,114,111,115,115,59],value:"⨯"},{key:[67,115,99,114,59],value:"𝒞"},{key:[67,117,112,59],value:"⋓"},{key:[67,117,112,67,97,112,59],value:"≍"},{key:[68,68,59],value:"ⅅ"},{key:[68,68,111,116,114,97,104,100,59],value:"⤑"},{key:[68,74,99,121,59],value:"Ђ"},{key:[68,83,99,121,59],value:"Ѕ"},{key:[68,90,99,121,59],value:"Џ"},{key:[68,97,103,103,101,114,59],value:"‡"},{key:[68,97,114,114,59],value:"↡"},{key:[68,97,115,104,118,59],value:"⫤"},{key:[68,99,97,114,111,110,59],value:"Ď"},{key:[68,99,121,59],value:"Д"},{key:[68,101,108,59],value:"∇"},{key:[68,101,108,116,97,59],value:"Δ"},{key:[68,102,114,59],value:"𝔇"},{key:[68,105,97,99,114,105,116,105,99,97,108,65,99,117,116,101,59],value:"´"},{key:[68,105,97,99,114,105,116,105,99,97,108,68,111,116,59],value:"˙"},{key:[68,105,97,99,114,105,116,105,99,97,108,68,111,117,98,108,101,65,99,117,116,101,59],value:"˝"},{key:[68,105,97,99,114,105,116,105,99,97,108,71,114,97,118,101,59],value:"`"},{key:[68,105,97,99,114,105,116,105,99,97,108,84,105,108,100,101,59],value:"˜"},{key:[68,105,97,109,111,110,100,59],value:"⋄"},{key:[68,105,102,102,101,114,101,110,116,105,97,108,68,59],value:"ⅆ"},{key:[68,111,112,102,59],value:"𝔻"},{key:[68,111,116,59],value:"¨"},{key:[68,111,116,68,111,116,59],value:"⃜"},{key:[68,111,116,69,113,117,97,108,59],value:"≐"},{key:[68,111,117,98,108,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59],value:"∯"},{key:[68,111,117,98,108,101,68,111,116,59],value:"¨"},{key:[68,111,117,98,108,101,68,111,119,110,65,114,114,111,119,59],value:"⇓"},{key:[68,111,117,98,108,101,76,101,102,116,65,114,114,111,119,59],value:"⇐"},{key:[68,111,117,98,108,101,76,101,102,116,82,105,103,104,116,65,114,114,111,119,59],value:"⇔"},{key:[68,111,117,98,108,101,76,101,102,116,84,101,101,59],value:"⫤"},{key:[68,111,117,98,108,101,76,111,110,103,76,101,102,116,65,114,114,111,119,59],value:"⟸"},{key:[68,111,117,98,108,101,76,111,110,103,76,101,102,116,82,105,103,104,116,65,114,114,111,119,59],value:"⟺"},{key:[68,111,117,98,108,101,76,111,110,103,82,105,103,104,116,65,114,114,111,119,59],value:"⟹"},{key:[68,111,117,98,108,101,82,105,103,104,116,65,114,114,111,119,59],value:"⇒"},{key:[68,111,117,98,108,101,82,105,103,104,116,84,101,101,59],value:"⊨"},{key:[68,111,117,98,108,101,85,112,65,114,114,111,119,59],value:"⇑"},{key:[68,111,117,98,108,101,85,112,68,111,119,110,65,114,114,111,119,59],value:"⇕"},{key:[68,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59],value:"∥"},{key:[68,111,119,110,65,114,114,111,119,59],value:"↓"},{key:[68,111,119,110,65,114,114,111,119,66,97,114,59],value:"⤓"},{key:[68,111,119,110,65,114,114,111,119,85,112,65,114,114,111,119,59],value:"⇵"},{key:[68,111,119,110,66,114,101,118,101,59],value:"̑"},{key:[68,111,119,110,76,101,102,116,82,105,103,104,116,86,101,99,116,111,114,59],value:"⥐"},{key:[68,111,119,110,76,101,102,116,84,101,101,86,101,99,116,111,114,59],value:"⥞"},{key:[68,111,119,110,76,101,102,116,86,101,99,116,111,114,59],value:"↽"},{key:[68,111,119,110,76,101,102,116,86,101,99,116,111,114,66,97,114,59],value:"⥖"},{key:[68,111,119,110,82,105,103,104,116,84,101,101,86,101,99,116,111,114,59],value:"⥟"},{key:[68,111,119,110,82,105,103,104,116,86,101,99,116,111,114,59],value:"⇁"},{key:[68,111,119,110,82,105,103,104,116,86,101,99,116,111,114,66,97,114,59],value:"⥗"},{key:[68,111,119,110,84,101,101,59],value:"⊤"},{key:[68,111,119,110,84,101,101,65,114,114,111,119,59],value:"↧"},{key:[68,111,119,110,97,114,114,111,119,59],value:"⇓"},{key:[68,115,99,114,59],value:"𝒟"},{key:[68,115,116,114,111,107,59],value:"Đ"},{key:[69,78,71,59],value:"Ŋ"},{key:[69,84,72,59],value:"Ð"},{key:[69,97,99,117,116,101,59],value:"É"},{key:[69,99,97,114,111,110,59],value:"Ě"},{key:[69,99,105,114,99,59],value:"Ê"},{key:[69,99,121,59],value:"Э"},{key:[69,100,111,116,59],value:"Ė"},{key:[69,102,114,59],value:"𝔈"},{key:[69,103,114,97,118,101,59],value:"È"},{key:[69,108,101,109,101,110,116,59],value:"∈"},{key:[69,109,97,99,114,59],value:"Ē"},{key:[69,109,112,116,121,83,109,97,108,108,83,113,117,97,114,101,59],value:"◻"},{key:[69,109,112,116,121,86,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59],value:"▫"},{key:[69,111,103,111,110,59],value:"Ę"},{key:[69,111,112,102,59],value:"𝔼"},{key:[69,112,115,105,108,111,110,59],value:"Ε"},{key:[69,113,117,97,108,59],value:"⩵"},{key:[69,113,117,97,108,84,105,108,100,101,59],value:"≂"},{key:[69,113,117,105,108,105,98,114,105,117,109,59],value:"⇌"},{key:[69,115,99,114,59],value:"ℰ"},{key:[69,115,105,109,59],value:"⩳"},{key:[69,116,97,59],value:"Η"},{key:[69,117,109,108,59],value:"Ë"},{key:[69,120,105,115,116,115,59],value:"∃"},{key:[69,120,112,111,110,101,110,116,105,97,108,69,59],value:"ⅇ"},{key:[70,99,121,59],value:"Ф"},{key:[70,102,114,59],value:"𝔉"},{key:[70,105,108,108,101,100,83,109,97,108,108,83,113,117,97,114,101,59],value:"◼"},{key:[70,105,108,108,101,100,86,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59],value:"▪"},{key:[70,111,112,102,59],value:"𝔽"},{key:[70,111,114,65,108,108,59],value:"∀"},{key:[70,111,117,114,105,101,114,116,114,102,59],value:"ℱ"},{key:[70,115,99,114,59],value:"ℱ"},{key:[71,74,99,121,59],value:"Ѓ"},{key:[71,84,59],value:">"},{key:[71,97,109,109,97,59],value:"Γ"},{key:[71,97,109,109,97,100,59],value:"Ϝ"},{key:[71,98,114,101,118,101,59],value:"Ğ"},{key:[71,99,101,100,105,108,59],value:"Ģ"},{key:[71,99,105,114,99,59],value:"Ĝ"},{key:[71,99,121,59],value:"Г"},{key:[71,100,111,116,59],value:"Ġ"},{key:[71,102,114,59],value:"𝔊"},{key:[71,103,59],value:"⋙"},{key:[71,111,112,102,59],value:"𝔾"},{key:[71,114,101,97,116,101,114,69,113,117,97,108,59],value:"≥"},{key:[71,114,101,97,116,101,114,69,113,117,97,108,76,101,115,115,59],value:"⋛"},{key:[71,114,101,97,116,101,114,70,117,108,108,69,113,117,97,108,59],value:"≧"},{key:[71,114,101,97,116,101,114,71,114,101,97,116,101,114,59],value:"⪢"},{key:[71,114,101,97,116,101,114,76,101,115,115,59],value:"≷"},{key:[71,114,101,97,116,101,114,83,108,97,110,116,69,113,117,97,108,59],value:"⩾"},{key:[71,114,101,97,116,101,114,84,105,108,100,101,59],value:"≳"},{key:[71,115,99,114,59],value:"𝒢"},{key:[71,116,59],value:"≫"},{key:[72,65,82,68,99,121,59],value:"Ъ"},{key:[72,97,99,101,107,59],value:"ˇ"},{key:[72,97,116,59],value:"^"},{key:[72,99,105,114,99,59],value:"Ĥ"},{key:[72,102,114,59],value:"ℌ"},{key:[72,105,108,98,101,114,116,83,112,97,99,101,59],value:"ℋ"},{key:[72,111,112,102,59],value:"ℍ"},{key:[72,111,114,105,122,111,110,116,97,108,76,105,110,101,59],value:"─"},{key:[72,115,99,114,59],value:"ℋ"},{key:[72,115,116,114,111,107,59],value:"Ħ"},{key:[72,117,109,112,68,111,119,110,72,117,109,112,59],value:"≎"},{key:[72,117,109,112,69,113,117,97,108,59],value:"≏"},{key:[73,69,99,121,59],value:"Е"},{key:[73,74,108,105,103,59],value:"IJ"},{key:[73,79,99,121,59],value:"Ё"},{key:[73,97,99,117,116,101,59],value:"Í"},{key:[73,99,105,114,99,59],value:"Î"},{key:[73,99,121,59],value:"И"},{key:[73,100,111,116,59],value:"İ"},{key:[73,102,114,59],value:"ℑ"},{key:[73,103,114,97,118,101,59],value:"Ì"},{key:[73,109,59],value:"ℑ"},{key:[73,109,97,99,114,59],value:"Ī"},{key:[73,109,97,103,105,110,97,114,121,73,59],value:"ⅈ"},{key:[73,109,112,108,105,101,115,59],value:"⇒"},{key:[73,110,116,59],value:"∬"},{key:[73,110,116,101,103,114,97,108,59],value:"∫"},{key:[73,110,116,101,114,115,101,99,116,105,111,110,59],value:"⋂"},{key:[73,110,118,105,115,105,98,108,101,67,111,109,109,97,59],value:"⁣"},{key:[73,110,118,105,115,105,98,108,101,84,105,109,101,115,59],value:"⁢"},{key:[73,111,103,111,110,59],value:"Į"},{key:[73,111,112,102,59],value:"𝕀"},{key:[73,111,116,97,59],value:"Ι"},{key:[73,115,99,114,59],value:"ℐ"},{key:[73,116,105,108,100,101,59],value:"Ĩ"},{key:[73,117,107,99,121,59],value:"І"},{key:[73,117,109,108,59],value:"Ï"},{key:[74,99,105,114,99,59],value:"Ĵ"},{key:[74,99,121,59],value:"Й"},{key:[74,102,114,59],value:"𝔍"},{key:[74,111,112,102,59],value:"𝕁"},{key:[74,115,99,114,59],value:"𝒥"},{key:[74,115,101,114,99,121,59],value:"Ј"},{key:[74,117,107,99,121,59],value:"Є"},{key:[75,72,99,121,59],value:"Х"},{key:[75,74,99,121,59],value:"Ќ"},{key:[75,97,112,112,97,59],value:"Κ"},{key:[75,99,101,100,105,108,59],value:"Ķ"},{key:[75,99,121,59],value:"К"},{key:[75,102,114,59],value:"𝔎"},{key:[75,111,112,102,59],value:"𝕂"},{key:[75,115,99,114,59],value:"𝒦"},{key:[76,74,99,121,59],value:"Љ"},{key:[76,84,59],value:"<"},{key:[76,97,99,117,116,101,59],value:"Ĺ"},{key:[76,97,109,98,100,97,59],value:"Λ"},{key:[76,97,110,103,59],value:"⟪"},{key:[76,97,112,108,97,99,101,116,114,102,59],value:"ℒ"},{key:[76,97,114,114,59],value:"↞"},{key:[76,99,97,114,111,110,59],value:"Ľ"},{key:[76,99,101,100,105,108,59],value:"Ļ"},{key:[76,99,121,59],value:"Л"},{key:[76,101,102,116,65,110,103,108,101,66,114,97,99,107,101,116,59],value:"⟨"},{key:[76,101,102,116,65,114,114,111,119,59],value:"←"},{key:[76,101,102,116,65,114,114,111,119,66,97,114,59],value:"⇤"},{key:[76,101,102,116,65,114,114,111,119,82,105,103,104,116,65,114,114,111,119,59],value:"⇆"},{key:[76,101,102,116,67,101,105,108,105,110,103,59],value:"⌈"},{key:[76,101,102,116,68,111,117,98,108,101,66,114,97,99,107,101,116,59],value:"⟦"},{key:[76,101,102,116,68,111,119,110,84,101,101,86,101,99,116,111,114,59],value:"⥡"},{key:[76,101,102,116,68,111,119,110,86,101,99,116,111,114,59],value:"⇃"},{key:[76,101,102,116,68,111,119,110,86,101,99,116,111,114,66,97,114,59],value:"⥙"},{key:[76,101,102,116,70,108,111,111,114,59],value:"⌊"},{key:[76,101,102,116,82,105,103,104,116,65,114,114,111,119,59],value:"↔"},{key:[76,101,102,116,82,105,103,104,116,86,101,99,116,111,114,59],value:"⥎"},{key:[76,101,102,116,84,101,101,59],value:"⊣"},{key:[76,101,102,116,84,101,101,65,114,114,111,119,59],value:"↤"},{key:[76,101,102,116,84,101,101,86,101,99,116,111,114,59],value:"⥚"},{key:[76,101,102,116,84,114,105,97,110,103,108,101,59],value:"⊲"},{key:[76,101,102,116,84,114,105,97,110,103,108,101,66,97,114,59],value:"⧏"},{key:[76,101,102,116,84,114,105,97,110,103,108,101,69,113,117,97,108,59],value:"⊴"},{key:[76,101,102,116,85,112,68,111,119,110,86,101,99,116,111,114,59],value:"⥑"},{key:[76,101,102,116,85,112,84,101,101,86,101,99,116,111,114,59],value:"⥠"},{key:[76,101,102,116,85,112,86,101,99,116,111,114,59],value:"↿"},{key:[76,101,102,116,85,112,86,101,99,116,111,114,66,97,114,59],value:"⥘"},{key:[76,101,102,116,86,101,99,116,111,114,59],value:"↼"},{key:[76,101,102,116,86,101,99,116,111,114,66,97,114,59],value:"⥒"},{key:[76,101,102,116,97,114,114,111,119,59],value:"⇐"},{key:[76,101,102,116,114,105,103,104,116,97,114,114,111,119,59],value:"⇔"},{key:[76,101,115,115,69,113,117,97,108,71,114,101,97,116,101,114,59],value:"⋚"},{key:[76,101,115,115,70,117,108,108,69,113,117,97,108,59],value:"≦"},{key:[76,101,115,115,71,114,101,97,116,101,114,59],value:"≶"},{key:[76,101,115,115,76,101,115,115,59],value:"⪡"},{key:[76,101,115,115,83,108,97,110,116,69,113,117,97,108,59],value:"⩽"},{key:[76,101,115,115,84,105,108,100,101,59],value:"≲"},{key:[76,102,114,59],value:"𝔏"},{key:[76,108,59],value:"⋘"},{key:[76,108,101,102,116,97,114,114,111,119,59],value:"⇚"},{key:[76,109,105,100,111,116,59],value:"Ŀ"},{key:[76,111,110,103,76,101,102,116,65,114,114,111,119,59],value:"⟵"},{key:[76,111,110,103,76,101,102,116,82,105,103,104,116,65,114,114,111,119,59],value:"⟷"},{key:[76,111,110,103,82,105,103,104,116,65,114,114,111,119,59],value:"⟶"},{key:[76,111,110,103,108,101,102,116,97,114,114,111,119,59],value:"⟸"},{key:[76,111,110,103,108,101,102,116,114,105,103,104,116,97,114,114,111,119,59],value:"⟺"},{key:[76,111,110,103,114,105,103,104,116,97,114,114,111,119,59],value:"⟹"},{key:[76,111,112,102,59],value:"𝕃"},{key:[76,111,119,101,114,76,101,102,116,65,114,114,111,119,59],value:"↙"},{key:[76,111,119,101,114,82,105,103,104,116,65,114,114,111,119,59],value:"↘"},{key:[76,115,99,114,59],value:"ℒ"},{key:[76,115,104,59],value:"↰"},{key:[76,115,116,114,111,107,59],value:"Ł"},{key:[76,116,59],value:"≪"},{key:[77,97,112,59],value:"⤅"},{key:[77,99,121,59],value:"М"},{key:[77,101,100,105,117,109,83,112,97,99,101,59],value:" "},{key:[77,101,108,108,105,110,116,114,102,59],value:"ℳ"},{key:[77,102,114,59],value:"𝔐"},{key:[77,105,110,117,115,80,108,117,115,59],value:"∓"},{key:[77,111,112,102,59],value:"𝕄"},{key:[77,115,99,114,59],value:"ℳ"},{key:[77,117,59],value:"Μ"},{key:[78,74,99,121,59],value:"Њ"},{key:[78,97,99,117,116,101,59],value:"Ń"},{key:[78,99,97,114,111,110,59],value:"Ň"},{key:[78,99,101,100,105,108,59],value:"Ņ"},{key:[78,99,121,59],value:"Н"},{key:[78,101,103,97,116,105,118,101,77,101,100,105,117,109,83,112,97,99,101,59],value:"​"},{key:[78,101,103,97,116,105,118,101,84,104,105,99,107,83,112,97,99,101,59],value:"​"},{key:[78,101,103,97,116,105,118,101,84,104,105,110,83,112,97,99,101,59],value:"​"},{key:[78,101,103,97,116,105,118,101,86,101,114,121,84,104,105,110,83,112,97,99,101,59],value:"​"},{key:[78,101,115,116,101,100,71,114,101,97,116,101,114,71,114,101,97,116,101,114,59],value:"≫"},{key:[78,101,115,116,101,100,76,101,115,115,76,101,115,115,59],value:"≪"},{key:[78,101,119,76,105,110,101,59],value:` -`},{key:[78,102,114,59],value:"𝔑"},{key:[78,111,66,114,101,97,107,59],value:"⁠"},{key:[78,111,110,66,114,101,97,107,105,110,103,83,112,97,99,101,59],value:" "},{key:[78,111,112,102,59],value:"ℕ"},{key:[78,111,116,59],value:"⫬"},{key:[78,111,116,67,111,110,103,114,117,101,110,116,59],value:"≢"},{key:[78,111,116,67,117,112,67,97,112,59],value:"≭"},{key:[78,111,116,68,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59],value:"∦"},{key:[78,111,116,69,108,101,109,101,110,116,59],value:"∉"},{key:[78,111,116,69,113,117,97,108,59],value:"≠"},{key:[78,111,116,69,113,117,97,108,84,105,108,100,101,59],value:"≂̸"},{key:[78,111,116,69,120,105,115,116,115,59],value:"∄"},{key:[78,111,116,71,114,101,97,116,101,114,59],value:"≯"},{key:[78,111,116,71,114,101,97,116,101,114,69,113,117,97,108,59],value:"≱"},{key:[78,111,116,71,114,101,97,116,101,114,70,117,108,108,69,113,117,97,108,59],value:"≧̸"},{key:[78,111,116,71,114,101,97,116,101,114,71,114,101,97,116,101,114,59],value:"≫̸"},{key:[78,111,116,71,114,101,97,116,101,114,76,101,115,115,59],value:"≹"},{key:[78,111,116,71,114,101,97,116,101,114,83,108,97,110,116,69,113,117,97,108,59],value:"⩾̸"},{key:[78,111,116,71,114,101,97,116,101,114,84,105,108,100,101,59],value:"≵"},{key:[78,111,116,72,117,109,112,68,111,119,110,72,117,109,112,59],value:"≎̸"},{key:[78,111,116,72,117,109,112,69,113,117,97,108,59],value:"≏̸"},{key:[78,111,116,76,101,102,116,84,114,105,97,110,103,108,101,59],value:"⋪"},{key:[78,111,116,76,101,102,116,84,114,105,97,110,103,108,101,66,97,114,59],value:"⧏̸"},{key:[78,111,116,76,101,102,116,84,114,105,97,110,103,108,101,69,113,117,97,108,59],value:"⋬"},{key:[78,111,116,76,101,115,115,59],value:"≮"},{key:[78,111,116,76,101,115,115,69,113,117,97,108,59],value:"≰"},{key:[78,111,116,76,101,115,115,71,114,101,97,116,101,114,59],value:"≸"},{key:[78,111,116,76,101,115,115,76,101,115,115,59],value:"≪̸"},{key:[78,111,116,76,101,115,115,83,108,97,110,116,69,113,117,97,108,59],value:"⩽̸"},{key:[78,111,116,76,101,115,115,84,105,108,100,101,59],value:"≴"},{key:[78,111,116,78,101,115,116,101,100,71,114,101,97,116,101,114,71,114,101,97,116,101,114,59],value:"⪢̸"},{key:[78,111,116,78,101,115,116,101,100,76,101,115,115,76,101,115,115,59],value:"⪡̸"},{key:[78,111,116,80,114,101,99,101,100,101,115,59],value:"⊀"},{key:[78,111,116,80,114,101,99,101,100,101,115,69,113,117,97,108,59],value:"⪯̸"},{key:[78,111,116,80,114,101,99,101,100,101,115,83,108,97,110,116,69,113,117,97,108,59],value:"⋠"},{key:[78,111,116,82,101,118,101,114,115,101,69,108,101,109,101,110,116,59],value:"∌"},{key:[78,111,116,82,105,103,104,116,84,114,105,97,110,103,108,101,59],value:"⋫"},{key:[78,111,116,82,105,103,104,116,84,114,105,97,110,103,108,101,66,97,114,59],value:"⧐̸"},{key:[78,111,116,82,105,103,104,116,84,114,105,97,110,103,108,101,69,113,117,97,108,59],value:"⋭"},{key:[78,111,116,83,113,117,97,114,101,83,117,98,115,101,116,59],value:"⊏̸"},{key:[78,111,116,83,113,117,97,114,101,83,117,98,115,101,116,69,113,117,97,108,59],value:"⋢"},{key:[78,111,116,83,113,117,97,114,101,83,117,112,101,114,115,101,116,59],value:"⊐̸"},{key:[78,111,116,83,113,117,97,114,101,83,117,112,101,114,115,101,116,69,113,117,97,108,59],value:"⋣"},{key:[78,111,116,83,117,98,115,101,116,59],value:"⊂⃒"},{key:[78,111,116,83,117,98,115,101,116,69,113,117,97,108,59],value:"⊈"},{key:[78,111,116,83,117,99,99,101,101,100,115,59],value:"⊁"},{key:[78,111,116,83,117,99,99,101,101,100,115,69,113,117,97,108,59],value:"⪰̸"},{key:[78,111,116,83,117,99,99,101,101,100,115,83,108,97,110,116,69,113,117,97,108,59],value:"⋡"},{key:[78,111,116,83,117,99,99,101,101,100,115,84,105,108,100,101,59],value:"≿̸"},{key:[78,111,116,83,117,112,101,114,115,101,116,59],value:"⊃⃒"},{key:[78,111,116,83,117,112,101,114,115,101,116,69,113,117,97,108,59],value:"⊉"},{key:[78,111,116,84,105,108,100,101,59],value:"≁"},{key:[78,111,116,84,105,108,100,101,69,113,117,97,108,59],value:"≄"},{key:[78,111,116,84,105,108,100,101,70,117,108,108,69,113,117,97,108,59],value:"≇"},{key:[78,111,116,84,105,108,100,101,84,105,108,100,101,59],value:"≉"},{key:[78,111,116,86,101,114,116,105,99,97,108,66,97,114,59],value:"∤"},{key:[78,115,99,114,59],value:"𝒩"},{key:[78,116,105,108,100,101,59],value:"Ñ"},{key:[78,117,59],value:"Ν"},{key:[79,69,108,105,103,59],value:"Œ"},{key:[79,97,99,117,116,101,59],value:"Ó"},{key:[79,99,105,114,99,59],value:"Ô"},{key:[79,99,121,59],value:"О"},{key:[79,100,98,108,97,99,59],value:"Ő"},{key:[79,102,114,59],value:"𝔒"},{key:[79,103,114,97,118,101,59],value:"Ò"},{key:[79,109,97,99,114,59],value:"Ō"},{key:[79,109,101,103,97,59],value:"Ω"},{key:[79,109,105,99,114,111,110,59],value:"Ο"},{key:[79,111,112,102,59],value:"𝕆"},{key:[79,112,101,110,67,117,114,108,121,68,111,117,98,108,101,81,117,111,116,101,59],value:"“"},{key:[79,112,101,110,67,117,114,108,121,81,117,111,116,101,59],value:"‘"},{key:[79,114,59],value:"⩔"},{key:[79,115,99,114,59],value:"𝒪"},{key:[79,115,108,97,115,104,59],value:"Ø"},{key:[79,116,105,108,100,101,59],value:"Õ"},{key:[79,116,105,109,101,115,59],value:"⨷"},{key:[79,117,109,108,59],value:"Ö"},{key:[79,118,101,114,66,97,114,59],value:"‾"},{key:[79,118,101,114,66,114,97,99,101,59],value:"⏞"},{key:[79,118,101,114,66,114,97,99,107,101,116,59],value:"⎴"},{key:[79,118,101,114,80,97,114,101,110,116,104,101,115,105,115,59],value:"⏜"},{key:[80,97,114,116,105,97,108,68,59],value:"∂"},{key:[80,99,121,59],value:"П"},{key:[80,102,114,59],value:"𝔓"},{key:[80,104,105,59],value:"Φ"},{key:[80,105,59],value:"Π"},{key:[80,108,117,115,77,105,110,117,115,59],value:"±"},{key:[80,111,105,110,99,97,114,101,112,108,97,110,101,59],value:"ℌ"},{key:[80,111,112,102,59],value:"ℙ"},{key:[80,114,59],value:"⪻"},{key:[80,114,101,99,101,100,101,115,59],value:"≺"},{key:[80,114,101,99,101,100,101,115,69,113,117,97,108,59],value:"⪯"},{key:[80,114,101,99,101,100,101,115,83,108,97,110,116,69,113,117,97,108,59],value:"≼"},{key:[80,114,101,99,101,100,101,115,84,105,108,100,101,59],value:"≾"},{key:[80,114,105,109,101,59],value:"″"},{key:[80,114,111,100,117,99,116,59],value:"∏"},{key:[80,114,111,112,111,114,116,105,111,110,59],value:"∷"},{key:[80,114,111,112,111,114,116,105,111,110,97,108,59],value:"∝"},{key:[80,115,99,114,59],value:"𝒫"},{key:[80,115,105,59],value:"Ψ"},{key:[81,85,79,84,59],value:'"'},{key:[81,102,114,59],value:"𝔔"},{key:[81,111,112,102,59],value:"ℚ"},{key:[81,115,99,114,59],value:"𝒬"},{key:[82,66,97,114,114,59],value:"⤐"},{key:[82,69,71,59],value:"®"},{key:[82,97,99,117,116,101,59],value:"Ŕ"},{key:[82,97,110,103,59],value:"⟫"},{key:[82,97,114,114,59],value:"↠"},{key:[82,97,114,114,116,108,59],value:"⤖"},{key:[82,99,97,114,111,110,59],value:"Ř"},{key:[82,99,101,100,105,108,59],value:"Ŗ"},{key:[82,99,121,59],value:"Р"},{key:[82,101,59],value:"ℜ"},{key:[82,101,118,101,114,115,101,69,108,101,109,101,110,116,59],value:"∋"},{key:[82,101,118,101,114,115,101,69,113,117,105,108,105,98,114,105,117,109,59],value:"⇋"},{key:[82,101,118,101,114,115,101,85,112,69,113,117,105,108,105,98,114,105,117,109,59],value:"⥯"},{key:[82,102,114,59],value:"ℜ"},{key:[82,104,111,59],value:"Ρ"},{key:[82,105,103,104,116,65,110,103,108,101,66,114,97,99,107,101,116,59],value:"⟩"},{key:[82,105,103,104,116,65,114,114,111,119,59],value:"→"},{key:[82,105,103,104,116,65,114,114,111,119,66,97,114,59],value:"⇥"},{key:[82,105,103,104,116,65,114,114,111,119,76,101,102,116,65,114,114,111,119,59],value:"⇄"},{key:[82,105,103,104,116,67,101,105,108,105,110,103,59],value:"⌉"},{key:[82,105,103,104,116,68,111,117,98,108,101,66,114,97,99,107,101,116,59],value:"⟧"},{key:[82,105,103,104,116,68,111,119,110,84,101,101,86,101,99,116,111,114,59],value:"⥝"},{key:[82,105,103,104,116,68,111,119,110,86,101,99,116,111,114,59],value:"⇂"},{key:[82,105,103,104,116,68,111,119,110,86,101,99,116,111,114,66,97,114,59],value:"⥕"},{key:[82,105,103,104,116,70,108,111,111,114,59],value:"⌋"},{key:[82,105,103,104,116,84,101,101,59],value:"⊢"},{key:[82,105,103,104,116,84,101,101,65,114,114,111,119,59],value:"↦"},{key:[82,105,103,104,116,84,101,101,86,101,99,116,111,114,59],value:"⥛"},{key:[82,105,103,104,116,84,114,105,97,110,103,108,101,59],value:"⊳"},{key:[82,105,103,104,116,84,114,105,97,110,103,108,101,66,97,114,59],value:"⧐"},{key:[82,105,103,104,116,84,114,105,97,110,103,108,101,69,113,117,97,108,59],value:"⊵"},{key:[82,105,103,104,116,85,112,68,111,119,110,86,101,99,116,111,114,59],value:"⥏"},{key:[82,105,103,104,116,85,112,84,101,101,86,101,99,116,111,114,59],value:"⥜"},{key:[82,105,103,104,116,85,112,86,101,99,116,111,114,59],value:"↾"},{key:[82,105,103,104,116,85,112,86,101,99,116,111,114,66,97,114,59],value:"⥔"},{key:[82,105,103,104,116,86,101,99,116,111,114,59],value:"⇀"},{key:[82,105,103,104,116,86,101,99,116,111,114,66,97,114,59],value:"⥓"},{key:[82,105,103,104,116,97,114,114,111,119,59],value:"⇒"},{key:[82,111,112,102,59],value:"ℝ"},{key:[82,111,117,110,100,73,109,112,108,105,101,115,59],value:"⥰"},{key:[82,114,105,103,104,116,97,114,114,111,119,59],value:"⇛"},{key:[82,115,99,114,59],value:"ℛ"},{key:[82,115,104,59],value:"↱"},{key:[82,117,108,101,68,101,108,97,121,101,100,59],value:"⧴"},{key:[83,72,67,72,99,121,59],value:"Щ"},{key:[83,72,99,121,59],value:"Ш"},{key:[83,79,70,84,99,121,59],value:"Ь"},{key:[83,97,99,117,116,101,59],value:"Ś"},{key:[83,99,59],value:"⪼"},{key:[83,99,97,114,111,110,59],value:"Š"},{key:[83,99,101,100,105,108,59],value:"Ş"},{key:[83,99,105,114,99,59],value:"Ŝ"},{key:[83,99,121,59],value:"С"},{key:[83,102,114,59],value:"𝔖"},{key:[83,104,111,114,116,68,111,119,110,65,114,114,111,119,59],value:"↓"},{key:[83,104,111,114,116,76,101,102,116,65,114,114,111,119,59],value:"←"},{key:[83,104,111,114,116,82,105,103,104,116,65,114,114,111,119,59],value:"→"},{key:[83,104,111,114,116,85,112,65,114,114,111,119,59],value:"↑"},{key:[83,105,103,109,97,59],value:"Σ"},{key:[83,109,97,108,108,67,105,114,99,108,101,59],value:"∘"},{key:[83,111,112,102,59],value:"𝕊"},{key:[83,113,114,116,59],value:"√"},{key:[83,113,117,97,114,101,59],value:"□"},{key:[83,113,117,97,114,101,73,110,116,101,114,115,101,99,116,105,111,110,59],value:"⊓"},{key:[83,113,117,97,114,101,83,117,98,115,101,116,59],value:"⊏"},{key:[83,113,117,97,114,101,83,117,98,115,101,116,69,113,117,97,108,59],value:"⊑"},{key:[83,113,117,97,114,101,83,117,112,101,114,115,101,116,59],value:"⊐"},{key:[83,113,117,97,114,101,83,117,112,101,114,115,101,116,69,113,117,97,108,59],value:"⊒"},{key:[83,113,117,97,114,101,85,110,105,111,110,59],value:"⊔"},{key:[83,115,99,114,59],value:"𝒮"},{key:[83,116,97,114,59],value:"⋆"},{key:[83,117,98,59],value:"⋐"},{key:[83,117,98,115,101,116,59],value:"⋐"},{key:[83,117,98,115,101,116,69,113,117,97,108,59],value:"⊆"},{key:[83,117,99,99,101,101,100,115,59],value:"≻"},{key:[83,117,99,99,101,101,100,115,69,113,117,97,108,59],value:"⪰"},{key:[83,117,99,99,101,101,100,115,83,108,97,110,116,69,113,117,97,108,59],value:"≽"},{key:[83,117,99,99,101,101,100,115,84,105,108,100,101,59],value:"≿"},{key:[83,117,99,104,84,104,97,116,59],value:"∋"},{key:[83,117,109,59],value:"∑"},{key:[83,117,112,59],value:"⋑"},{key:[83,117,112,101,114,115,101,116,59],value:"⊃"},{key:[83,117,112,101,114,115,101,116,69,113,117,97,108,59],value:"⊇"},{key:[83,117,112,115,101,116,59],value:"⋑"},{key:[84,72,79,82,78,59],value:"Þ"},{key:[84,82,65,68,69,59],value:"™"},{key:[84,83,72,99,121,59],value:"Ћ"},{key:[84,83,99,121,59],value:"Ц"},{key:[84,97,98,59],value:" "},{key:[84,97,117,59],value:"Τ"},{key:[84,99,97,114,111,110,59],value:"Ť"},{key:[84,99,101,100,105,108,59],value:"Ţ"},{key:[84,99,121,59],value:"Т"},{key:[84,102,114,59],value:"𝔗"},{key:[84,104,101,114,101,102,111,114,101,59],value:"∴"},{key:[84,104,101,116,97,59],value:"Θ"},{key:[84,104,105,99,107,83,112,97,99,101,59],value:"  "},{key:[84,104,105,110,83,112,97,99,101,59],value:" "},{key:[84,105,108,100,101,59],value:"∼"},{key:[84,105,108,100,101,69,113,117,97,108,59],value:"≃"},{key:[84,105,108,100,101,70,117,108,108,69,113,117,97,108,59],value:"≅"},{key:[84,105,108,100,101,84,105,108,100,101,59],value:"≈"},{key:[84,111,112,102,59],value:"𝕋"},{key:[84,114,105,112,108,101,68,111,116,59],value:"⃛"},{key:[84,115,99,114,59],value:"𝒯"},{key:[84,115,116,114,111,107,59],value:"Ŧ"},{key:[85,97,99,117,116,101,59],value:"Ú"},{key:[85,97,114,114,59],value:"↟"},{key:[85,97,114,114,111,99,105,114,59],value:"⥉"},{key:[85,98,114,99,121,59],value:"Ў"},{key:[85,98,114,101,118,101,59],value:"Ŭ"},{key:[85,99,105,114,99,59],value:"Û"},{key:[85,99,121,59],value:"У"},{key:[85,100,98,108,97,99,59],value:"Ű"},{key:[85,102,114,59],value:"𝔘"},{key:[85,103,114,97,118,101,59],value:"Ù"},{key:[85,109,97,99,114,59],value:"Ū"},{key:[85,110,100,101,114,66,97,114,59],value:"_"},{key:[85,110,100,101,114,66,114,97,99,101,59],value:"⏟"},{key:[85,110,100,101,114,66,114,97,99,107,101,116,59],value:"⎵"},{key:[85,110,100,101,114,80,97,114,101,110,116,104,101,115,105,115,59],value:"⏝"},{key:[85,110,105,111,110,59],value:"⋃"},{key:[85,110,105,111,110,80,108,117,115,59],value:"⊎"},{key:[85,111,103,111,110,59],value:"Ų"},{key:[85,111,112,102,59],value:"𝕌"},{key:[85,112,65,114,114,111,119,59],value:"↑"},{key:[85,112,65,114,114,111,119,66,97,114,59],value:"⤒"},{key:[85,112,65,114,114,111,119,68,111,119,110,65,114,114,111,119,59],value:"⇅"},{key:[85,112,68,111,119,110,65,114,114,111,119,59],value:"↕"},{key:[85,112,69,113,117,105,108,105,98,114,105,117,109,59],value:"⥮"},{key:[85,112,84,101,101,59],value:"⊥"},{key:[85,112,84,101,101,65,114,114,111,119,59],value:"↥"},{key:[85,112,97,114,114,111,119,59],value:"⇑"},{key:[85,112,100,111,119,110,97,114,114,111,119,59],value:"⇕"},{key:[85,112,112,101,114,76,101,102,116,65,114,114,111,119,59],value:"↖"},{key:[85,112,112,101,114,82,105,103,104,116,65,114,114,111,119,59],value:"↗"},{key:[85,112,115,105,59],value:"ϒ"},{key:[85,112,115,105,108,111,110,59],value:"Υ"},{key:[85,114,105,110,103,59],value:"Ů"},{key:[85,115,99,114,59],value:"𝒰"},{key:[85,116,105,108,100,101,59],value:"Ũ"},{key:[85,117,109,108,59],value:"Ü"},{key:[86,68,97,115,104,59],value:"⊫"},{key:[86,98,97,114,59],value:"⫫"},{key:[86,99,121,59],value:"В"},{key:[86,100,97,115,104,59],value:"⊩"},{key:[86,100,97,115,104,108,59],value:"⫦"},{key:[86,101,101,59],value:"⋁"},{key:[86,101,114,98,97,114,59],value:"‖"},{key:[86,101,114,116,59],value:"‖"},{key:[86,101,114,116,105,99,97,108,66,97,114,59],value:"∣"},{key:[86,101,114,116,105,99,97,108,76,105,110,101,59],value:"|"},{key:[86,101,114,116,105,99,97,108,83,101,112,97,114,97,116,111,114,59],value:"❘"},{key:[86,101,114,116,105,99,97,108,84,105,108,100,101,59],value:"≀"},{key:[86,101,114,121,84,104,105,110,83,112,97,99,101,59],value:" "},{key:[86,102,114,59],value:"𝔙"},{key:[86,111,112,102,59],value:"𝕍"},{key:[86,115,99,114,59],value:"𝒱"},{key:[86,118,100,97,115,104,59],value:"⊪"},{key:[87,99,105,114,99,59],value:"Ŵ"},{key:[87,101,100,103,101,59],value:"⋀"},{key:[87,102,114,59],value:"𝔚"},{key:[87,111,112,102,59],value:"𝕎"},{key:[87,115,99,114,59],value:"𝒲"},{key:[88,102,114,59],value:"𝔛"},{key:[88,105,59],value:"Ξ"},{key:[88,111,112,102,59],value:"𝕏"},{key:[88,115,99,114,59],value:"𝒳"},{key:[89,65,99,121,59],value:"Я"},{key:[89,73,99,121,59],value:"Ї"},{key:[89,85,99,121,59],value:"Ю"},{key:[89,97,99,117,116,101,59],value:"Ý"},{key:[89,99,105,114,99,59],value:"Ŷ"},{key:[89,99,121,59],value:"Ы"},{key:[89,102,114,59],value:"𝔜"},{key:[89,111,112,102,59],value:"𝕐"},{key:[89,115,99,114,59],value:"𝒴"},{key:[89,117,109,108,59],value:"Ÿ"},{key:[90,72,99,121,59],value:"Ж"},{key:[90,97,99,117,116,101,59],value:"Ź"},{key:[90,99,97,114,111,110,59],value:"Ž"},{key:[90,99,121,59],value:"З"},{key:[90,100,111,116,59],value:"Ż"},{key:[90,101,114,111,87,105,100,116,104,83,112,97,99,101,59],value:"​"},{key:[90,101,116,97,59],value:"Ζ"},{key:[90,102,114,59],value:"ℨ"},{key:[90,111,112,102,59],value:"ℤ"},{key:[90,115,99,114,59],value:"𝒵"},{key:[97,97,99,117,116,101,59],value:"á"},{key:[97,98,114,101,118,101,59],value:"ă"},{key:[97,99,59],value:"∾"},{key:[97,99,69,59],value:"∾̳"},{key:[97,99,100,59],value:"∿"},{key:[97,99,105,114,99,59],value:"â"},{key:[97,99,117,116,101,59],value:"´"},{key:[97,99,121,59],value:"а"},{key:[97,101,108,105,103,59],value:"æ"},{key:[97,102,59],value:"⁡"},{key:[97,102,114,59],value:"𝔞"},{key:[97,103,114,97,118,101,59],value:"à"},{key:[97,108,101,102,115,121,109,59],value:"ℵ"},{key:[97,108,101,112,104,59],value:"ℵ"},{key:[97,108,112,104,97,59],value:"α"},{key:[97,109,97,99,114,59],value:"ā"},{key:[97,109,97,108,103,59],value:"⨿"},{key:[97,109,112,59],value:"&"},{key:[97,110,100,59],value:"∧"},{key:[97,110,100,97,110,100,59],value:"⩕"},{key:[97,110,100,100,59],value:"⩜"},{key:[97,110,100,115,108,111,112,101,59],value:"⩘"},{key:[97,110,100,118,59],value:"⩚"},{key:[97,110,103,59],value:"∠"},{key:[97,110,103,101,59],value:"⦤"},{key:[97,110,103,108,101,59],value:"∠"},{key:[97,110,103,109,115,100,59],value:"∡"},{key:[97,110,103,109,115,100,97,97,59],value:"⦨"},{key:[97,110,103,109,115,100,97,98,59],value:"⦩"},{key:[97,110,103,109,115,100,97,99,59],value:"⦪"},{key:[97,110,103,109,115,100,97,100,59],value:"⦫"},{key:[97,110,103,109,115,100,97,101,59],value:"⦬"},{key:[97,110,103,109,115,100,97,102,59],value:"⦭"},{key:[97,110,103,109,115,100,97,103,59],value:"⦮"},{key:[97,110,103,109,115,100,97,104,59],value:"⦯"},{key:[97,110,103,114,116,59],value:"∟"},{key:[97,110,103,114,116,118,98,59],value:"⊾"},{key:[97,110,103,114,116,118,98,100,59],value:"⦝"},{key:[97,110,103,115,112,104,59],value:"∢"},{key:[97,110,103,115,116,59],value:"Å"},{key:[97,110,103,122,97,114,114,59],value:"⍼"},{key:[97,111,103,111,110,59],value:"ą"},{key:[97,111,112,102,59],value:"𝕒"},{key:[97,112,59],value:"≈"},{key:[97,112,69,59],value:"⩰"},{key:[97,112,97,99,105,114,59],value:"⩯"},{key:[97,112,101,59],value:"≊"},{key:[97,112,105,100,59],value:"≋"},{key:[97,112,111,115,59],value:"'"},{key:[97,112,112,114,111,120,59],value:"≈"},{key:[97,112,112,114,111,120,101,113,59],value:"≊"},{key:[97,114,105,110,103,59],value:"å"},{key:[97,115,99,114,59],value:"𝒶"},{key:[97,115,116,59],value:"*"},{key:[97,115,121,109,112,59],value:"≈"},{key:[97,115,121,109,112,101,113,59],value:"≍"},{key:[97,116,105,108,100,101,59],value:"ã"},{key:[97,117,109,108,59],value:"ä"},{key:[97,119,99,111,110,105,110,116,59],value:"∳"},{key:[97,119,105,110,116,59],value:"⨑"},{key:[98,78,111,116,59],value:"⫭"},{key:[98,97,99,107,99,111,110,103,59],value:"≌"},{key:[98,97,99,107,101,112,115,105,108,111,110,59],value:"϶"},{key:[98,97,99,107,112,114,105,109,101,59],value:"‵"},{key:[98,97,99,107,115,105,109,59],value:"∽"},{key:[98,97,99,107,115,105,109,101,113,59],value:"⋍"},{key:[98,97,114,118,101,101,59],value:"⊽"},{key:[98,97,114,119,101,100,59],value:"⌅"},{key:[98,97,114,119,101,100,103,101,59],value:"⌅"},{key:[98,98,114,107,59],value:"⎵"},{key:[98,98,114,107,116,98,114,107,59],value:"⎶"},{key:[98,99,111,110,103,59],value:"≌"},{key:[98,99,121,59],value:"б"},{key:[98,100,113,117,111,59],value:"„"},{key:[98,101,99,97,117,115,59],value:"∵"},{key:[98,101,99,97,117,115,101,59],value:"∵"},{key:[98,101,109,112,116,121,118,59],value:"⦰"},{key:[98,101,112,115,105,59],value:"϶"},{key:[98,101,114,110,111,117,59],value:"ℬ"},{key:[98,101,116,97,59],value:"β"},{key:[98,101,116,104,59],value:"ℶ"},{key:[98,101,116,119,101,101,110,59],value:"≬"},{key:[98,102,114,59],value:"𝔟"},{key:[98,105,103,99,97,112,59],value:"⋂"},{key:[98,105,103,99,105,114,99,59],value:"◯"},{key:[98,105,103,99,117,112,59],value:"⋃"},{key:[98,105,103,111,100,111,116,59],value:"⨀"},{key:[98,105,103,111,112,108,117,115,59],value:"⨁"},{key:[98,105,103,111,116,105,109,101,115,59],value:"⨂"},{key:[98,105,103,115,113,99,117,112,59],value:"⨆"},{key:[98,105,103,115,116,97,114,59],value:"★"},{key:[98,105,103,116,114,105,97,110,103,108,101,100,111,119,110,59],value:"▽"},{key:[98,105,103,116,114,105,97,110,103,108,101,117,112,59],value:"△"},{key:[98,105,103,117,112,108,117,115,59],value:"⨄"},{key:[98,105,103,118,101,101,59],value:"⋁"},{key:[98,105,103,119,101,100,103,101,59],value:"⋀"},{key:[98,107,97,114,111,119,59],value:"⤍"},{key:[98,108,97,99,107,108,111,122,101,110,103,101,59],value:"⧫"},{key:[98,108,97,99,107,115,113,117,97,114,101,59],value:"▪"},{key:[98,108,97,99,107,116,114,105,97,110,103,108,101,59],value:"▴"},{key:[98,108,97,99,107,116,114,105,97,110,103,108,101,100,111,119,110,59],value:"▾"},{key:[98,108,97,99,107,116,114,105,97,110,103,108,101,108,101,102,116,59],value:"◂"},{key:[98,108,97,99,107,116,114,105,97,110,103,108,101,114,105,103,104,116,59],value:"▸"},{key:[98,108,97,110,107,59],value:"␣"},{key:[98,108,107,49,50,59],value:"▒"},{key:[98,108,107,49,52,59],value:"░"},{key:[98,108,107,51,52,59],value:"▓"},{key:[98,108,111,99,107,59],value:"█"},{key:[98,110,101,59],value:"=⃥"},{key:[98,110,101,113,117,105,118,59],value:"≡⃥"},{key:[98,110,111,116,59],value:"⌐"},{key:[98,111,112,102,59],value:"𝕓"},{key:[98,111,116,59],value:"⊥"},{key:[98,111,116,116,111,109,59],value:"⊥"},{key:[98,111,119,116,105,101,59],value:"⋈"},{key:[98,111,120,68,76,59],value:"╗"},{key:[98,111,120,68,82,59],value:"╔"},{key:[98,111,120,68,108,59],value:"╖"},{key:[98,111,120,68,114,59],value:"╓"},{key:[98,111,120,72,59],value:"═"},{key:[98,111,120,72,68,59],value:"╦"},{key:[98,111,120,72,85,59],value:"╩"},{key:[98,111,120,72,100,59],value:"╤"},{key:[98,111,120,72,117,59],value:"╧"},{key:[98,111,120,85,76,59],value:"╝"},{key:[98,111,120,85,82,59],value:"╚"},{key:[98,111,120,85,108,59],value:"╜"},{key:[98,111,120,85,114,59],value:"╙"},{key:[98,111,120,86,59],value:"║"},{key:[98,111,120,86,72,59],value:"╬"},{key:[98,111,120,86,76,59],value:"╣"},{key:[98,111,120,86,82,59],value:"╠"},{key:[98,111,120,86,104,59],value:"╫"},{key:[98,111,120,86,108,59],value:"╢"},{key:[98,111,120,86,114,59],value:"╟"},{key:[98,111,120,98,111,120,59],value:"⧉"},{key:[98,111,120,100,76,59],value:"╕"},{key:[98,111,120,100,82,59],value:"╒"},{key:[98,111,120,100,108,59],value:"┐"},{key:[98,111,120,100,114,59],value:"┌"},{key:[98,111,120,104,59],value:"─"},{key:[98,111,120,104,68,59],value:"╥"},{key:[98,111,120,104,85,59],value:"╨"},{key:[98,111,120,104,100,59],value:"┬"},{key:[98,111,120,104,117,59],value:"┴"},{key:[98,111,120,109,105,110,117,115,59],value:"⊟"},{key:[98,111,120,112,108,117,115,59],value:"⊞"},{key:[98,111,120,116,105,109,101,115,59],value:"⊠"},{key:[98,111,120,117,76,59],value:"╛"},{key:[98,111,120,117,82,59],value:"╘"},{key:[98,111,120,117,108,59],value:"┘"},{key:[98,111,120,117,114,59],value:"└"},{key:[98,111,120,118,59],value:"│"},{key:[98,111,120,118,72,59],value:"╪"},{key:[98,111,120,118,76,59],value:"╡"},{key:[98,111,120,118,82,59],value:"╞"},{key:[98,111,120,118,104,59],value:"┼"},{key:[98,111,120,118,108,59],value:"┤"},{key:[98,111,120,118,114,59],value:"├"},{key:[98,112,114,105,109,101,59],value:"‵"},{key:[98,114,101,118,101,59],value:"˘"},{key:[98,114,118,98,97,114,59],value:"¦"},{key:[98,115,99,114,59],value:"𝒷"},{key:[98,115,101,109,105,59],value:"⁏"},{key:[98,115,105,109,59],value:"∽"},{key:[98,115,105,109,101,59],value:"⋍"},{key:[98,115,111,108,59],value:"\\"},{key:[98,115,111,108,98,59],value:"⧅"},{key:[98,115,111,108,104,115,117,98,59],value:"⟈"},{key:[98,117,108,108,59],value:"•"},{key:[98,117,108,108,101,116,59],value:"•"},{key:[98,117,109,112,59],value:"≎"},{key:[98,117,109,112,69,59],value:"⪮"},{key:[98,117,109,112,101,59],value:"≏"},{key:[98,117,109,112,101,113,59],value:"≏"},{key:[99,97,99,117,116,101,59],value:"ć"},{key:[99,97,112,59],value:"∩"},{key:[99,97,112,97,110,100,59],value:"⩄"},{key:[99,97,112,98,114,99,117,112,59],value:"⩉"},{key:[99,97,112,99,97,112,59],value:"⩋"},{key:[99,97,112,99,117,112,59],value:"⩇"},{key:[99,97,112,100,111,116,59],value:"⩀"},{key:[99,97,112,115,59],value:"∩︀"},{key:[99,97,114,101,116,59],value:"⁁"},{key:[99,97,114,111,110,59],value:"ˇ"},{key:[99,99,97,112,115,59],value:"⩍"},{key:[99,99,97,114,111,110,59],value:"č"},{key:[99,99,101,100,105,108,59],value:"ç"},{key:[99,99,105,114,99,59],value:"ĉ"},{key:[99,99,117,112,115,59],value:"⩌"},{key:[99,99,117,112,115,115,109,59],value:"⩐"},{key:[99,100,111,116,59],value:"ċ"},{key:[99,101,100,105,108,59],value:"¸"},{key:[99,101,109,112,116,121,118,59],value:"⦲"},{key:[99,101,110,116,59],value:"¢"},{key:[99,101,110,116,101,114,100,111,116,59],value:"·"},{key:[99,102,114,59],value:"𝔠"},{key:[99,104,99,121,59],value:"ч"},{key:[99,104,101,99,107,59],value:"✓"},{key:[99,104,101,99,107,109,97,114,107,59],value:"✓"},{key:[99,104,105,59],value:"χ"},{key:[99,105,114,59],value:"○"},{key:[99,105,114,69,59],value:"⧃"},{key:[99,105,114,99,59],value:"ˆ"},{key:[99,105,114,99,101,113,59],value:"≗"},{key:[99,105,114,99,108,101,97,114,114,111,119,108,101,102,116,59],value:"↺"},{key:[99,105,114,99,108,101,97,114,114,111,119,114,105,103,104,116,59],value:"↻"},{key:[99,105,114,99,108,101,100,82,59],value:"®"},{key:[99,105,114,99,108,101,100,83,59],value:"Ⓢ"},{key:[99,105,114,99,108,101,100,97,115,116,59],value:"⊛"},{key:[99,105,114,99,108,101,100,99,105,114,99,59],value:"⊚"},{key:[99,105,114,99,108,101,100,100,97,115,104,59],value:"⊝"},{key:[99,105,114,101,59],value:"≗"},{key:[99,105,114,102,110,105,110,116,59],value:"⨐"},{key:[99,105,114,109,105,100,59],value:"⫯"},{key:[99,105,114,115,99,105,114,59],value:"⧂"},{key:[99,108,117,98,115,59],value:"♣"},{key:[99,108,117,98,115,117,105,116,59],value:"♣"},{key:[99,111,108,111,110,59],value:":"},{key:[99,111,108,111,110,101,59],value:"≔"},{key:[99,111,108,111,110,101,113,59],value:"≔"},{key:[99,111,109,109,97,59],value:","},{key:[99,111,109,109,97,116,59],value:"@"},{key:[99,111,109,112,59],value:"∁"},{key:[99,111,109,112,102,110,59],value:"∘"},{key:[99,111,109,112,108,101,109,101,110,116,59],value:"∁"},{key:[99,111,109,112,108,101,120,101,115,59],value:"ℂ"},{key:[99,111,110,103,59],value:"≅"},{key:[99,111,110,103,100,111,116,59],value:"⩭"},{key:[99,111,110,105,110,116,59],value:"∮"},{key:[99,111,112,102,59],value:"𝕔"},{key:[99,111,112,114,111,100,59],value:"∐"},{key:[99,111,112,121,59],value:"©"},{key:[99,111,112,121,115,114,59],value:"℗"},{key:[99,114,97,114,114,59],value:"↵"},{key:[99,114,111,115,115,59],value:"✗"},{key:[99,115,99,114,59],value:"𝒸"},{key:[99,115,117,98,59],value:"⫏"},{key:[99,115,117,98,101,59],value:"⫑"},{key:[99,115,117,112,59],value:"⫐"},{key:[99,115,117,112,101,59],value:"⫒"},{key:[99,116,100,111,116,59],value:"⋯"},{key:[99,117,100,97,114,114,108,59],value:"⤸"},{key:[99,117,100,97,114,114,114,59],value:"⤵"},{key:[99,117,101,112,114,59],value:"⋞"},{key:[99,117,101,115,99,59],value:"⋟"},{key:[99,117,108,97,114,114,59],value:"↶"},{key:[99,117,108,97,114,114,112,59],value:"⤽"},{key:[99,117,112,59],value:"∪"},{key:[99,117,112,98,114,99,97,112,59],value:"⩈"},{key:[99,117,112,99,97,112,59],value:"⩆"},{key:[99,117,112,99,117,112,59],value:"⩊"},{key:[99,117,112,100,111,116,59],value:"⊍"},{key:[99,117,112,111,114,59],value:"⩅"},{key:[99,117,112,115,59],value:"∪︀"},{key:[99,117,114,97,114,114,59],value:"↷"},{key:[99,117,114,97,114,114,109,59],value:"⤼"},{key:[99,117,114,108,121,101,113,112,114,101,99,59],value:"⋞"},{key:[99,117,114,108,121,101,113,115,117,99,99,59],value:"⋟"},{key:[99,117,114,108,121,118,101,101,59],value:"⋎"},{key:[99,117,114,108,121,119,101,100,103,101,59],value:"⋏"},{key:[99,117,114,114,101,110,59],value:"¤"},{key:[99,117,114,118,101,97,114,114,111,119,108,101,102,116,59],value:"↶"},{key:[99,117,114,118,101,97,114,114,111,119,114,105,103,104,116,59],value:"↷"},{key:[99,117,118,101,101,59],value:"⋎"},{key:[99,117,119,101,100,59],value:"⋏"},{key:[99,119,99,111,110,105,110,116,59],value:"∲"},{key:[99,119,105,110,116,59],value:"∱"},{key:[99,121,108,99,116,121,59],value:"⌭"},{key:[100,65,114,114,59],value:"⇓"},{key:[100,72,97,114,59],value:"⥥"},{key:[100,97,103,103,101,114,59],value:"†"},{key:[100,97,108,101,116,104,59],value:"ℸ"},{key:[100,97,114,114,59],value:"↓"},{key:[100,97,115,104,59],value:"‐"},{key:[100,97,115,104,118,59],value:"⊣"},{key:[100,98,107,97,114,111,119,59],value:"⤏"},{key:[100,98,108,97,99,59],value:"˝"},{key:[100,99,97,114,111,110,59],value:"ď"},{key:[100,99,121,59],value:"д"},{key:[100,100,59],value:"ⅆ"},{key:[100,100,97,103,103,101,114,59],value:"‡"},{key:[100,100,97,114,114,59],value:"⇊"},{key:[100,100,111,116,115,101,113,59],value:"⩷"},{key:[100,101,103,59],value:"°"},{key:[100,101,108,116,97,59],value:"δ"},{key:[100,101,109,112,116,121,118,59],value:"⦱"},{key:[100,102,105,115,104,116,59],value:"⥿"},{key:[100,102,114,59],value:"𝔡"},{key:[100,104,97,114,108,59],value:"⇃"},{key:[100,104,97,114,114,59],value:"⇂"},{key:[100,105,97,109,59],value:"⋄"},{key:[100,105,97,109,111,110,100,59],value:"⋄"},{key:[100,105,97,109,111,110,100,115,117,105,116,59],value:"♦"},{key:[100,105,97,109,115,59],value:"♦"},{key:[100,105,101,59],value:"¨"},{key:[100,105,103,97,109,109,97,59],value:"ϝ"},{key:[100,105,115,105,110,59],value:"⋲"},{key:[100,105,118,59],value:"÷"},{key:[100,105,118,105,100,101,59],value:"÷"},{key:[100,105,118,105,100,101,111,110,116,105,109,101,115,59],value:"⋇"},{key:[100,105,118,111,110,120,59],value:"⋇"},{key:[100,106,99,121,59],value:"ђ"},{key:[100,108,99,111,114,110,59],value:"⌞"},{key:[100,108,99,114,111,112,59],value:"⌍"},{key:[100,111,108,108,97,114,59],value:"$"},{key:[100,111,112,102,59],value:"𝕕"},{key:[100,111,116,59],value:"˙"},{key:[100,111,116,101,113,59],value:"≐"},{key:[100,111,116,101,113,100,111,116,59],value:"≑"},{key:[100,111,116,109,105,110,117,115,59],value:"∸"},{key:[100,111,116,112,108,117,115,59],value:"∔"},{key:[100,111,116,115,113,117,97,114,101,59],value:"⊡"},{key:[100,111,117,98,108,101,98,97,114,119,101,100,103,101,59],value:"⌆"},{key:[100,111,119,110,97,114,114,111,119,59],value:"↓"},{key:[100,111,119,110,100,111,119,110,97,114,114,111,119,115,59],value:"⇊"},{key:[100,111,119,110,104,97,114,112,111,111,110,108,101,102,116,59],value:"⇃"},{key:[100,111,119,110,104,97,114,112,111,111,110,114,105,103,104,116,59],value:"⇂"},{key:[100,114,98,107,97,114,111,119,59],value:"⤐"},{key:[100,114,99,111,114,110,59],value:"⌟"},{key:[100,114,99,114,111,112,59],value:"⌌"},{key:[100,115,99,114,59],value:"𝒹"},{key:[100,115,99,121,59],value:"ѕ"},{key:[100,115,111,108,59],value:"⧶"},{key:[100,115,116,114,111,107,59],value:"đ"},{key:[100,116,100,111,116,59],value:"⋱"},{key:[100,116,114,105,59],value:"▿"},{key:[100,116,114,105,102,59],value:"▾"},{key:[100,117,97,114,114,59],value:"⇵"},{key:[100,117,104,97,114,59],value:"⥯"},{key:[100,119,97,110,103,108,101,59],value:"⦦"},{key:[100,122,99,121,59],value:"џ"},{key:[100,122,105,103,114,97,114,114,59],value:"⟿"},{key:[101,68,68,111,116,59],value:"⩷"},{key:[101,68,111,116,59],value:"≑"},{key:[101,97,99,117,116,101,59],value:"é"},{key:[101,97,115,116,101,114,59],value:"⩮"},{key:[101,99,97,114,111,110,59],value:"ě"},{key:[101,99,105,114,59],value:"≖"},{key:[101,99,105,114,99,59],value:"ê"},{key:[101,99,111,108,111,110,59],value:"≕"},{key:[101,99,121,59],value:"э"},{key:[101,100,111,116,59],value:"ė"},{key:[101,101,59],value:"ⅇ"},{key:[101,102,68,111,116,59],value:"≒"},{key:[101,102,114,59],value:"𝔢"},{key:[101,103,59],value:"⪚"},{key:[101,103,114,97,118,101,59],value:"è"},{key:[101,103,115,59],value:"⪖"},{key:[101,103,115,100,111,116,59],value:"⪘"},{key:[101,108,59],value:"⪙"},{key:[101,108,105,110,116,101,114,115,59],value:"⏧"},{key:[101,108,108,59],value:"ℓ"},{key:[101,108,115,59],value:"⪕"},{key:[101,108,115,100,111,116,59],value:"⪗"},{key:[101,109,97,99,114,59],value:"ē"},{key:[101,109,112,116,121,59],value:"∅"},{key:[101,109,112,116,121,115,101,116,59],value:"∅"},{key:[101,109,112,116,121,118,59],value:"∅"},{key:[101,109,115,112,49,51,59],value:" "},{key:[101,109,115,112,49,52,59],value:" "},{key:[101,109,115,112,59],value:" "},{key:[101,110,103,59],value:"ŋ"},{key:[101,110,115,112,59],value:" "},{key:[101,111,103,111,110,59],value:"ę"},{key:[101,111,112,102,59],value:"𝕖"},{key:[101,112,97,114,59],value:"⋕"},{key:[101,112,97,114,115,108,59],value:"⧣"},{key:[101,112,108,117,115,59],value:"⩱"},{key:[101,112,115,105,59],value:"ε"},{key:[101,112,115,105,108,111,110,59],value:"ε"},{key:[101,112,115,105,118,59],value:"ϵ"},{key:[101,113,99,105,114,99,59],value:"≖"},{key:[101,113,99,111,108,111,110,59],value:"≕"},{key:[101,113,115,105,109,59],value:"≂"},{key:[101,113,115,108,97,110,116,103,116,114,59],value:"⪖"},{key:[101,113,115,108,97,110,116,108,101,115,115,59],value:"⪕"},{key:[101,113,117,97,108,115,59],value:"="},{key:[101,113,117,101,115,116,59],value:"≟"},{key:[101,113,117,105,118,59],value:"≡"},{key:[101,113,117,105,118,68,68,59],value:"⩸"},{key:[101,113,118,112,97,114,115,108,59],value:"⧥"},{key:[101,114,68,111,116,59],value:"≓"},{key:[101,114,97,114,114,59],value:"⥱"},{key:[101,115,99,114,59],value:"ℯ"},{key:[101,115,100,111,116,59],value:"≐"},{key:[101,115,105,109,59],value:"≂"},{key:[101,116,97,59],value:"η"},{key:[101,116,104,59],value:"ð"},{key:[101,117,109,108,59],value:"ë"},{key:[101,117,114,111,59],value:"€"},{key:[101,120,99,108,59],value:"!"},{key:[101,120,105,115,116,59],value:"∃"},{key:[101,120,112,101,99,116,97,116,105,111,110,59],value:"ℰ"},{key:[101,120,112,111,110,101,110,116,105,97,108,101,59],value:"ⅇ"},{key:[102,97,108,108,105,110,103,100,111,116,115,101,113,59],value:"≒"},{key:[102,99,121,59],value:"ф"},{key:[102,101,109,97,108,101,59],value:"♀"},{key:[102,102,105,108,105,103,59],value:"ffi"},{key:[102,102,108,105,103,59],value:"ff"},{key:[102,102,108,108,105,103,59],value:"ffl"},{key:[102,102,114,59],value:"𝔣"},{key:[102,105,108,105,103,59],value:"fi"},{key:[102,106,108,105,103,59],value:"fj"},{key:[102,108,97,116,59],value:"♭"},{key:[102,108,108,105,103,59],value:"fl"},{key:[102,108,116,110,115,59],value:"▱"},{key:[102,110,111,102,59],value:"ƒ"},{key:[102,111,112,102,59],value:"𝕗"},{key:[102,111,114,97,108,108,59],value:"∀"},{key:[102,111,114,107,59],value:"⋔"},{key:[102,111,114,107,118,59],value:"⫙"},{key:[102,112,97,114,116,105,110,116,59],value:"⨍"},{key:[102,114,97,99,49,50,59],value:"½"},{key:[102,114,97,99,49,51,59],value:"⅓"},{key:[102,114,97,99,49,52,59],value:"¼"},{key:[102,114,97,99,49,53,59],value:"⅕"},{key:[102,114,97,99,49,54,59],value:"⅙"},{key:[102,114,97,99,49,56,59],value:"⅛"},{key:[102,114,97,99,50,51,59],value:"⅔"},{key:[102,114,97,99,50,53,59],value:"⅖"},{key:[102,114,97,99,51,52,59],value:"¾"},{key:[102,114,97,99,51,53,59],value:"⅗"},{key:[102,114,97,99,51,56,59],value:"⅜"},{key:[102,114,97,99,52,53,59],value:"⅘"},{key:[102,114,97,99,53,54,59],value:"⅚"},{key:[102,114,97,99,53,56,59],value:"⅝"},{key:[102,114,97,99,55,56,59],value:"⅞"},{key:[102,114,97,115,108,59],value:"⁄"},{key:[102,114,111,119,110,59],value:"⌢"},{key:[102,115,99,114,59],value:"𝒻"},{key:[103,69,59],value:"≧"},{key:[103,69,108,59],value:"⪌"},{key:[103,97,99,117,116,101,59],value:"ǵ"},{key:[103,97,109,109,97,59],value:"γ"},{key:[103,97,109,109,97,100,59],value:"ϝ"},{key:[103,97,112,59],value:"⪆"},{key:[103,98,114,101,118,101,59],value:"ğ"},{key:[103,99,105,114,99,59],value:"ĝ"},{key:[103,99,121,59],value:"г"},{key:[103,100,111,116,59],value:"ġ"},{key:[103,101,59],value:"≥"},{key:[103,101,108,59],value:"⋛"},{key:[103,101,113,59],value:"≥"},{key:[103,101,113,113,59],value:"≧"},{key:[103,101,113,115,108,97,110,116,59],value:"⩾"},{key:[103,101,115,59],value:"⩾"},{key:[103,101,115,99,99,59],value:"⪩"},{key:[103,101,115,100,111,116,59],value:"⪀"},{key:[103,101,115,100,111,116,111,59],value:"⪂"},{key:[103,101,115,100,111,116,111,108,59],value:"⪄"},{key:[103,101,115,108,59],value:"⋛︀"},{key:[103,101,115,108,101,115,59],value:"⪔"},{key:[103,102,114,59],value:"𝔤"},{key:[103,103,59],value:"≫"},{key:[103,103,103,59],value:"⋙"},{key:[103,105,109,101,108,59],value:"ℷ"},{key:[103,106,99,121,59],value:"ѓ"},{key:[103,108,59],value:"≷"},{key:[103,108,69,59],value:"⪒"},{key:[103,108,97,59],value:"⪥"},{key:[103,108,106,59],value:"⪤"},{key:[103,110,69,59],value:"≩"},{key:[103,110,97,112,59],value:"⪊"},{key:[103,110,97,112,112,114,111,120,59],value:"⪊"},{key:[103,110,101,59],value:"⪈"},{key:[103,110,101,113,59],value:"⪈"},{key:[103,110,101,113,113,59],value:"≩"},{key:[103,110,115,105,109,59],value:"⋧"},{key:[103,111,112,102,59],value:"𝕘"},{key:[103,114,97,118,101,59],value:"`"},{key:[103,115,99,114,59],value:"ℊ"},{key:[103,115,105,109,59],value:"≳"},{key:[103,115,105,109,101,59],value:"⪎"},{key:[103,115,105,109,108,59],value:"⪐"},{key:[103,116,59],value:">"},{key:[103,116,99,99,59],value:"⪧"},{key:[103,116,99,105,114,59],value:"⩺"},{key:[103,116,100,111,116,59],value:"⋗"},{key:[103,116,108,80,97,114,59],value:"⦕"},{key:[103,116,113,117,101,115,116,59],value:"⩼"},{key:[103,116,114,97,112,112,114,111,120,59],value:"⪆"},{key:[103,116,114,97,114,114,59],value:"⥸"},{key:[103,116,114,100,111,116,59],value:"⋗"},{key:[103,116,114,101,113,108,101,115,115,59],value:"⋛"},{key:[103,116,114,101,113,113,108,101,115,115,59],value:"⪌"},{key:[103,116,114,108,101,115,115,59],value:"≷"},{key:[103,116,114,115,105,109,59],value:"≳"},{key:[103,118,101,114,116,110,101,113,113,59],value:"≩︀"},{key:[103,118,110,69,59],value:"≩︀"},{key:[104,65,114,114,59],value:"⇔"},{key:[104,97,105,114,115,112,59],value:" "},{key:[104,97,108,102,59],value:"½"},{key:[104,97,109,105,108,116,59],value:"ℋ"},{key:[104,97,114,100,99,121,59],value:"ъ"},{key:[104,97,114,114,59],value:"↔"},{key:[104,97,114,114,99,105,114,59],value:"⥈"},{key:[104,97,114,114,119,59],value:"↭"},{key:[104,98,97,114,59],value:"ℏ"},{key:[104,99,105,114,99,59],value:"ĥ"},{key:[104,101,97,114,116,115,59],value:"♥"},{key:[104,101,97,114,116,115,117,105,116,59],value:"♥"},{key:[104,101,108,108,105,112,59],value:"…"},{key:[104,101,114,99,111,110,59],value:"⊹"},{key:[104,102,114,59],value:"𝔥"},{key:[104,107,115,101,97,114,111,119,59],value:"⤥"},{key:[104,107,115,119,97,114,111,119,59],value:"⤦"},{key:[104,111,97,114,114,59],value:"⇿"},{key:[104,111,109,116,104,116,59],value:"∻"},{key:[104,111,111,107,108,101,102,116,97,114,114,111,119,59],value:"↩"},{key:[104,111,111,107,114,105,103,104,116,97,114,114,111,119,59],value:"↪"},{key:[104,111,112,102,59],value:"𝕙"},{key:[104,111,114,98,97,114,59],value:"―"},{key:[104,115,99,114,59],value:"𝒽"},{key:[104,115,108,97,115,104,59],value:"ℏ"},{key:[104,115,116,114,111,107,59],value:"ħ"},{key:[104,121,98,117,108,108,59],value:"⁃"},{key:[104,121,112,104,101,110,59],value:"‐"},{key:[105,97,99,117,116,101,59],value:"í"},{key:[105,99,59],value:"⁣"},{key:[105,99,105,114,99,59],value:"î"},{key:[105,99,121,59],value:"и"},{key:[105,101,99,121,59],value:"е"},{key:[105,101,120,99,108,59],value:"¡"},{key:[105,102,102,59],value:"⇔"},{key:[105,102,114,59],value:"𝔦"},{key:[105,103,114,97,118,101,59],value:"ì"},{key:[105,105,59],value:"ⅈ"},{key:[105,105,105,105,110,116,59],value:"⨌"},{key:[105,105,105,110,116,59],value:"∭"},{key:[105,105,110,102,105,110,59],value:"⧜"},{key:[105,105,111,116,97,59],value:"℩"},{key:[105,106,108,105,103,59],value:"ij"},{key:[105,109,97,99,114,59],value:"ī"},{key:[105,109,97,103,101,59],value:"ℑ"},{key:[105,109,97,103,108,105,110,101,59],value:"ℐ"},{key:[105,109,97,103,112,97,114,116,59],value:"ℑ"},{key:[105,109,97,116,104,59],value:"ı"},{key:[105,109,111,102,59],value:"⊷"},{key:[105,109,112,101,100,59],value:"Ƶ"},{key:[105,110,59],value:"∈"},{key:[105,110,99,97,114,101,59],value:"℅"},{key:[105,110,102,105,110,59],value:"∞"},{key:[105,110,102,105,110,116,105,101,59],value:"⧝"},{key:[105,110,111,100,111,116,59],value:"ı"},{key:[105,110,116,59],value:"∫"},{key:[105,110,116,99,97,108,59],value:"⊺"},{key:[105,110,116,101,103,101,114,115,59],value:"ℤ"},{key:[105,110,116,101,114,99,97,108,59],value:"⊺"},{key:[105,110,116,108,97,114,104,107,59],value:"⨗"},{key:[105,110,116,112,114,111,100,59],value:"⨼"},{key:[105,111,99,121,59],value:"ё"},{key:[105,111,103,111,110,59],value:"į"},{key:[105,111,112,102,59],value:"𝕚"},{key:[105,111,116,97,59],value:"ι"},{key:[105,112,114,111,100,59],value:"⨼"},{key:[105,113,117,101,115,116,59],value:"¿"},{key:[105,115,99,114,59],value:"𝒾"},{key:[105,115,105,110,59],value:"∈"},{key:[105,115,105,110,69,59],value:"⋹"},{key:[105,115,105,110,100,111,116,59],value:"⋵"},{key:[105,115,105,110,115,59],value:"⋴"},{key:[105,115,105,110,115,118,59],value:"⋳"},{key:[105,115,105,110,118,59],value:"∈"},{key:[105,116,59],value:"⁢"},{key:[105,116,105,108,100,101,59],value:"ĩ"},{key:[105,117,107,99,121,59],value:"і"},{key:[105,117,109,108,59],value:"ï"},{key:[106,99,105,114,99,59],value:"ĵ"},{key:[106,99,121,59],value:"й"},{key:[106,102,114,59],value:"𝔧"},{key:[106,109,97,116,104,59],value:"ȷ"},{key:[106,111,112,102,59],value:"𝕛"},{key:[106,115,99,114,59],value:"𝒿"},{key:[106,115,101,114,99,121,59],value:"ј"},{key:[106,117,107,99,121,59],value:"є"},{key:[107,97,112,112,97,59],value:"κ"},{key:[107,97,112,112,97,118,59],value:"ϰ"},{key:[107,99,101,100,105,108,59],value:"ķ"},{key:[107,99,121,59],value:"к"},{key:[107,102,114,59],value:"𝔨"},{key:[107,103,114,101,101,110,59],value:"ĸ"},{key:[107,104,99,121,59],value:"х"},{key:[107,106,99,121,59],value:"ќ"},{key:[107,111,112,102,59],value:"𝕜"},{key:[107,115,99,114,59],value:"𝓀"},{key:[108,65,97,114,114,59],value:"⇚"},{key:[108,65,114,114,59],value:"⇐"},{key:[108,65,116,97,105,108,59],value:"⤛"},{key:[108,66,97,114,114,59],value:"⤎"},{key:[108,69,59],value:"≦"},{key:[108,69,103,59],value:"⪋"},{key:[108,72,97,114,59],value:"⥢"},{key:[108,97,99,117,116,101,59],value:"ĺ"},{key:[108,97,101,109,112,116,121,118,59],value:"⦴"},{key:[108,97,103,114,97,110,59],value:"ℒ"},{key:[108,97,109,98,100,97,59],value:"λ"},{key:[108,97,110,103,59],value:"⟨"},{key:[108,97,110,103,100,59],value:"⦑"},{key:[108,97,110,103,108,101,59],value:"⟨"},{key:[108,97,112,59],value:"⪅"},{key:[108,97,113,117,111,59],value:"«"},{key:[108,97,114,114,59],value:"←"},{key:[108,97,114,114,98,59],value:"⇤"},{key:[108,97,114,114,98,102,115,59],value:"⤟"},{key:[108,97,114,114,102,115,59],value:"⤝"},{key:[108,97,114,114,104,107,59],value:"↩"},{key:[108,97,114,114,108,112,59],value:"↫"},{key:[108,97,114,114,112,108,59],value:"⤹"},{key:[108,97,114,114,115,105,109,59],value:"⥳"},{key:[108,97,114,114,116,108,59],value:"↢"},{key:[108,97,116,59],value:"⪫"},{key:[108,97,116,97,105,108,59],value:"⤙"},{key:[108,97,116,101,59],value:"⪭"},{key:[108,97,116,101,115,59],value:"⪭︀"},{key:[108,98,97,114,114,59],value:"⤌"},{key:[108,98,98,114,107,59],value:"❲"},{key:[108,98,114,97,99,101,59],value:"{ "},{key:[108,98,114,97,99,107,59],value:"["},{key:[108,98,114,107,101,59],value:"⦋"},{key:[108,98,114,107,115,108,100,59],value:"⦏"},{key:[108,98,114,107,115,108,117,59],value:"⦍"},{key:[108,99,97,114,111,110,59],value:"ľ"},{key:[108,99,101,100,105,108,59],value:"ļ"},{key:[108,99,101,105,108,59],value:"⌈"},{key:[108,99,117,98,59],value:"{ "},{key:[108,99,121,59],value:"л"},{key:[108,100,99,97,59],value:"⤶"},{key:[108,100,113,117,111,59],value:"“"},{key:[108,100,113,117,111,114,59],value:"„"},{key:[108,100,114,100,104,97,114,59],value:"⥧"},{key:[108,100,114,117,115,104,97,114,59],value:"⥋"},{key:[108,100,115,104,59],value:"↲"},{key:[108,101,59],value:"≤"},{key:[108,101,102,116,97,114,114,111,119,59],value:"←"},{key:[108,101,102,116,97,114,114,111,119,116,97,105,108,59],value:"↢"},{key:[108,101,102,116,104,97,114,112,111,111,110,100,111,119,110,59],value:"↽"},{key:[108,101,102,116,104,97,114,112,111,111,110,117,112,59],value:"↼"},{key:[108,101,102,116,108,101,102,116,97,114,114,111,119,115,59],value:"⇇"},{key:[108,101,102,116,114,105,103,104,116,97,114,114,111,119,59],value:"↔"},{key:[108,101,102,116,114,105,103,104,116,97,114,114,111,119,115,59],value:"⇆"},{key:[108,101,102,116,114,105,103,104,116,104,97,114,112,111,111,110,115,59],value:"⇋"},{key:[108,101,102,116,114,105,103,104,116,115,113,117,105,103,97,114,114,111,119,59],value:"↭"},{key:[108,101,102,116,116,104,114,101,101,116,105,109,101,115,59],value:"⋋"},{key:[108,101,103,59],value:"⋚"},{key:[108,101,113,59],value:"≤"},{key:[108,101,113,113,59],value:"≦"},{key:[108,101,113,115,108,97,110,116,59],value:"⩽"},{key:[108,101,115,59],value:"⩽"},{key:[108,101,115,99,99,59],value:"⪨"},{key:[108,101,115,100,111,116,59],value:"⩿"},{key:[108,101,115,100,111,116,111,59],value:"⪁"},{key:[108,101,115,100,111,116,111,114,59],value:"⪃"},{key:[108,101,115,103,59],value:"⋚︀"},{key:[108,101,115,103,101,115,59],value:"⪓"},{key:[108,101,115,115,97,112,112,114,111,120,59],value:"⪅"},{key:[108,101,115,115,100,111,116,59],value:"⋖"},{key:[108,101,115,115,101,113,103,116,114,59],value:"⋚"},{key:[108,101,115,115,101,113,113,103,116,114,59],value:"⪋"},{key:[108,101,115,115,103,116,114,59],value:"≶"},{key:[108,101,115,115,115,105,109,59],value:"≲"},{key:[108,102,105,115,104,116,59],value:"⥼"},{key:[108,102,108,111,111,114,59],value:"⌊"},{key:[108,102,114,59],value:"𝔩"},{key:[108,103,59],value:"≶"},{key:[108,103,69,59],value:"⪑"},{key:[108,104,97,114,100,59],value:"↽"},{key:[108,104,97,114,117,59],value:"↼"},{key:[108,104,97,114,117,108,59],value:"⥪"},{key:[108,104,98,108,107,59],value:"▄"},{key:[108,106,99,121,59],value:"љ"},{key:[108,108,59],value:"≪"},{key:[108,108,97,114,114,59],value:"⇇"},{key:[108,108,99,111,114,110,101,114,59],value:"⌞"},{key:[108,108,104,97,114,100,59],value:"⥫"},{key:[108,108,116,114,105,59],value:"◺"},{key:[108,109,105,100,111,116,59],value:"ŀ"},{key:[108,109,111,117,115,116,59],value:"⎰"},{key:[108,109,111,117,115,116,97,99,104,101,59],value:"⎰"},{key:[108,110,69,59],value:"≨"},{key:[108,110,97,112,59],value:"⪉"},{key:[108,110,97,112,112,114,111,120,59],value:"⪉"},{key:[108,110,101,59],value:"⪇"},{key:[108,110,101,113,59],value:"⪇"},{key:[108,110,101,113,113,59],value:"≨"},{key:[108,110,115,105,109,59],value:"⋦"},{key:[108,111,97,110,103,59],value:"⟬"},{key:[108,111,97,114,114,59],value:"⇽"},{key:[108,111,98,114,107,59],value:"⟦"},{key:[108,111,110,103,108,101,102,116,97,114,114,111,119,59],value:"⟵"},{key:[108,111,110,103,108,101,102,116,114,105,103,104,116,97,114,114,111,119,59],value:"⟷"},{key:[108,111,110,103,109,97,112,115,116,111,59],value:"⟼"},{key:[108,111,110,103,114,105,103,104,116,97,114,114,111,119,59],value:"⟶"},{key:[108,111,111,112,97,114,114,111,119,108,101,102,116,59],value:"↫"},{key:[108,111,111,112,97,114,114,111,119,114,105,103,104,116,59],value:"↬"},{key:[108,111,112,97,114,59],value:"⦅"},{key:[108,111,112,102,59],value:"𝕝"},{key:[108,111,112,108,117,115,59],value:"⨭"},{key:[108,111,116,105,109,101,115,59],value:"⨴"},{key:[108,111,119,97,115,116,59],value:"∗"},{key:[108,111,119,98,97,114,59],value:"_"},{key:[108,111,122,59],value:"◊"},{key:[108,111,122,101,110,103,101,59],value:"◊"},{key:[108,111,122,102,59],value:"⧫"},{key:[108,112,97,114,59],value:"("},{key:[108,112,97,114,108,116,59],value:"⦓"},{key:[108,114,97,114,114,59],value:"⇆"},{key:[108,114,99,111,114,110,101,114,59],value:"⌟"},{key:[108,114,104,97,114,59],value:"⇋"},{key:[108,114,104,97,114,100,59],value:"⥭"},{key:[108,114,109,59],value:"‎"},{key:[108,114,116,114,105,59],value:"⊿"},{key:[108,115,97,113,117,111,59],value:"‹"},{key:[108,115,99,114,59],value:"𝓁"},{key:[108,115,104,59],value:"↰"},{key:[108,115,105,109,59],value:"≲"},{key:[108,115,105,109,101,59],value:"⪍"},{key:[108,115,105,109,103,59],value:"⪏"},{key:[108,115,113,98,59],value:"["},{key:[108,115,113,117,111,59],value:"‘"},{key:[108,115,113,117,111,114,59],value:"‚"},{key:[108,115,116,114,111,107,59],value:"ł"},{key:[108,116,59],value:"<"},{key:[108,116,99,99,59],value:"⪦"},{key:[108,116,99,105,114,59],value:"⩹"},{key:[108,116,100,111,116,59],value:"⋖"},{key:[108,116,104,114,101,101,59],value:"⋋"},{key:[108,116,105,109,101,115,59],value:"⋉"},{key:[108,116,108,97,114,114,59],value:"⥶"},{key:[108,116,113,117,101,115,116,59],value:"⩻"},{key:[108,116,114,80,97,114,59],value:"⦖"},{key:[108,116,114,105,59],value:"◃"},{key:[108,116,114,105,101,59],value:"⊴"},{key:[108,116,114,105,102,59],value:"◂"},{key:[108,117,114,100,115,104,97,114,59],value:"⥊"},{key:[108,117,114,117,104,97,114,59],value:"⥦"},{key:[108,118,101,114,116,110,101,113,113,59],value:"≨︀"},{key:[108,118,110,69,59],value:"≨︀"},{key:[109,68,68,111,116,59],value:"∺"},{key:[109,97,99,114,59],value:"¯"},{key:[109,97,108,101,59],value:"♂"},{key:[109,97,108,116,59],value:"✠"},{key:[109,97,108,116,101,115,101,59],value:"✠"},{key:[109,97,112,59],value:"↦"},{key:[109,97,112,115,116,111,59],value:"↦"},{key:[109,97,112,115,116,111,100,111,119,110,59],value:"↧"},{key:[109,97,112,115,116,111,108,101,102,116,59],value:"↤"},{key:[109,97,112,115,116,111,117,112,59],value:"↥"},{key:[109,97,114,107,101,114,59],value:"▮"},{key:[109,99,111,109,109,97,59],value:"⨩"},{key:[109,99,121,59],value:"м"},{key:[109,100,97,115,104,59],value:"—"},{key:[109,101,97,115,117,114,101,100,97,110,103,108,101,59],value:"∡"},{key:[109,102,114,59],value:"𝔪"},{key:[109,104,111,59],value:"℧"},{key:[109,105,99,114,111,59],value:"µ"},{key:[109,105,100,59],value:"∣"},{key:[109,105,100,97,115,116,59],value:"*"},{key:[109,105,100,99,105,114,59],value:"⫰"},{key:[109,105,100,100,111,116,59],value:"·"},{key:[109,105,110,117,115,59],value:"−"},{key:[109,105,110,117,115,98,59],value:"⊟"},{key:[109,105,110,117,115,100,59],value:"∸"},{key:[109,105,110,117,115,100,117,59],value:"⨪"},{key:[109,108,99,112,59],value:"⫛"},{key:[109,108,100,114,59],value:"…"},{key:[109,110,112,108,117,115,59],value:"∓"},{key:[109,111,100,101,108,115,59],value:"⊧"},{key:[109,111,112,102,59],value:"𝕞"},{key:[109,112,59],value:"∓"},{key:[109,115,99,114,59],value:"𝓂"},{key:[109,115,116,112,111,115,59],value:"∾"},{key:[109,117,59],value:"μ"},{key:[109,117,108,116,105,109,97,112,59],value:"⊸"},{key:[109,117,109,97,112,59],value:"⊸"},{key:[110,71,103,59],value:"⋙̸"},{key:[110,71,116,59],value:"≫⃒"},{key:[110,71,116,118,59],value:"≫̸"},{key:[110,76,101,102,116,97,114,114,111,119,59],value:"⇍"},{key:[110,76,101,102,116,114,105,103,104,116,97,114,114,111,119,59],value:"⇎"},{key:[110,76,108,59],value:"⋘̸"},{key:[110,76,116,59],value:"≪⃒"},{key:[110,76,116,118,59],value:"≪̸"},{key:[110,82,105,103,104,116,97,114,114,111,119,59],value:"⇏"},{key:[110,86,68,97,115,104,59],value:"⊯"},{key:[110,86,100,97,115,104,59],value:"⊮"},{key:[110,97,98,108,97,59],value:"∇"},{key:[110,97,99,117,116,101,59],value:"ń"},{key:[110,97,110,103,59],value:"∠⃒"},{key:[110,97,112,59],value:"≉"},{key:[110,97,112,69,59],value:"⩰̸"},{key:[110,97,112,105,100,59],value:"≋̸"},{key:[110,97,112,111,115,59],value:"ʼn"},{key:[110,97,112,112,114,111,120,59],value:"≉"},{key:[110,97,116,117,114,59],value:"♮"},{key:[110,97,116,117,114,97,108,59],value:"♮"},{key:[110,97,116,117,114,97,108,115,59],value:"ℕ"},{key:[110,98,115,112,59],value:" "},{key:[110,98,117,109,112,59],value:"≎̸"},{key:[110,98,117,109,112,101,59],value:"≏̸"},{key:[110,99,97,112,59],value:"⩃"},{key:[110,99,97,114,111,110,59],value:"ň"},{key:[110,99,101,100,105,108,59],value:"ņ"},{key:[110,99,111,110,103,59],value:"≇"},{key:[110,99,111,110,103,100,111,116,59],value:"⩭̸"},{key:[110,99,117,112,59],value:"⩂"},{key:[110,99,121,59],value:"н"},{key:[110,100,97,115,104,59],value:"–"},{key:[110,101,59],value:"≠"},{key:[110,101,65,114,114,59],value:"⇗"},{key:[110,101,97,114,104,107,59],value:"⤤"},{key:[110,101,97,114,114,59],value:"↗"},{key:[110,101,97,114,114,111,119,59],value:"↗"},{key:[110,101,100,111,116,59],value:"≐̸"},{key:[110,101,113,117,105,118,59],value:"≢"},{key:[110,101,115,101,97,114,59],value:"⤨"},{key:[110,101,115,105,109,59],value:"≂̸"},{key:[110,101,120,105,115,116,59],value:"∄"},{key:[110,101,120,105,115,116,115,59],value:"∄"},{key:[110,102,114,59],value:"𝔫"},{key:[110,103,69,59],value:"≧̸"},{key:[110,103,101,59],value:"≱"},{key:[110,103,101,113,59],value:"≱"},{key:[110,103,101,113,113,59],value:"≧̸"},{key:[110,103,101,113,115,108,97,110,116,59],value:"⩾̸"},{key:[110,103,101,115,59],value:"⩾̸"},{key:[110,103,115,105,109,59],value:"≵"},{key:[110,103,116,59],value:"≯"},{key:[110,103,116,114,59],value:"≯"},{key:[110,104,65,114,114,59],value:"⇎"},{key:[110,104,97,114,114,59],value:"↮"},{key:[110,104,112,97,114,59],value:"⫲"},{key:[110,105,59],value:"∋"},{key:[110,105,115,59],value:"⋼"},{key:[110,105,115,100,59],value:"⋺"},{key:[110,105,118,59],value:"∋"},{key:[110,106,99,121,59],value:"њ"},{key:[110,108,65,114,114,59],value:"⇍"},{key:[110,108,69,59],value:"≦̸"},{key:[110,108,97,114,114,59],value:"↚"},{key:[110,108,100,114,59],value:"‥"},{key:[110,108,101,59],value:"≰"},{key:[110,108,101,102,116,97,114,114,111,119,59],value:"↚"},{key:[110,108,101,102,116,114,105,103,104,116,97,114,114,111,119,59],value:"↮"},{key:[110,108,101,113,59],value:"≰"},{key:[110,108,101,113,113,59],value:"≦̸"},{key:[110,108,101,113,115,108,97,110,116,59],value:"⩽̸"},{key:[110,108,101,115,59],value:"⩽̸"},{key:[110,108,101,115,115,59],value:"≮"},{key:[110,108,115,105,109,59],value:"≴"},{key:[110,108,116,59],value:"≮"},{key:[110,108,116,114,105,59],value:"⋪"},{key:[110,108,116,114,105,101,59],value:"⋬"},{key:[110,109,105,100,59],value:"∤"},{key:[110,111,112,102,59],value:"𝕟"},{key:[110,111,116,59],value:"¬"},{key:[110,111,116,105,110,59],value:"∉"},{key:[110,111,116,105,110,69,59],value:"⋹̸"},{key:[110,111,116,105,110,100,111,116,59],value:"⋵̸"},{key:[110,111,116,105,110,118,97,59],value:"∉"},{key:[110,111,116,105,110,118,98,59],value:"⋷"},{key:[110,111,116,105,110,118,99,59],value:"⋶"},{key:[110,111,116,110,105,59],value:"∌"},{key:[110,111,116,110,105,118,97,59],value:"∌"},{key:[110,111,116,110,105,118,98,59],value:"⋾"},{key:[110,111,116,110,105,118,99,59],value:"⋽"},{key:[110,112,97,114,59],value:"∦"},{key:[110,112,97,114,97,108,108,101,108,59],value:"∦"},{key:[110,112,97,114,115,108,59],value:"⫽⃥"},{key:[110,112,97,114,116,59],value:"∂̸"},{key:[110,112,111,108,105,110,116,59],value:"⨔"},{key:[110,112,114,59],value:"⊀"},{key:[110,112,114,99,117,101,59],value:"⋠"},{key:[110,112,114,101,59],value:"⪯̸"},{key:[110,112,114,101,99,59],value:"⊀"},{key:[110,112,114,101,99,101,113,59],value:"⪯̸"},{key:[110,114,65,114,114,59],value:"⇏"},{key:[110,114,97,114,114,59],value:"↛"},{key:[110,114,97,114,114,99,59],value:"⤳̸"},{key:[110,114,97,114,114,119,59],value:"↝̸"},{key:[110,114,105,103,104,116,97,114,114,111,119,59],value:"↛"},{key:[110,114,116,114,105,59],value:"⋫"},{key:[110,114,116,114,105,101,59],value:"⋭"},{key:[110,115,99,59],value:"⊁"},{key:[110,115,99,99,117,101,59],value:"⋡"},{key:[110,115,99,101,59],value:"⪰̸"},{key:[110,115,99,114,59],value:"𝓃"},{key:[110,115,104,111,114,116,109,105,100,59],value:"∤"},{key:[110,115,104,111,114,116,112,97,114,97,108,108,101,108,59],value:"∦"},{key:[110,115,105,109,59],value:"≁"},{key:[110,115,105,109,101,59],value:"≄"},{key:[110,115,105,109,101,113,59],value:"≄"},{key:[110,115,109,105,100,59],value:"∤"},{key:[110,115,112,97,114,59],value:"∦"},{key:[110,115,113,115,117,98,101,59],value:"⋢"},{key:[110,115,113,115,117,112,101,59],value:"⋣"},{key:[110,115,117,98,59],value:"⊄"},{key:[110,115,117,98,69,59],value:"⫅̸"},{key:[110,115,117,98,101,59],value:"⊈"},{key:[110,115,117,98,115,101,116,59],value:"⊂⃒"},{key:[110,115,117,98,115,101,116,101,113,59],value:"⊈"},{key:[110,115,117,98,115,101,116,101,113,113,59],value:"⫅̸"},{key:[110,115,117,99,99,59],value:"⊁"},{key:[110,115,117,99,99,101,113,59],value:"⪰̸"},{key:[110,115,117,112,59],value:"⊅"},{key:[110,115,117,112,69,59],value:"⫆̸"},{key:[110,115,117,112,101,59],value:"⊉"},{key:[110,115,117,112,115,101,116,59],value:"⊃⃒"},{key:[110,115,117,112,115,101,116,101,113,59],value:"⊉"},{key:[110,115,117,112,115,101,116,101,113,113,59],value:"⫆̸"},{key:[110,116,103,108,59],value:"≹"},{key:[110,116,105,108,100,101,59],value:"ñ"},{key:[110,116,108,103,59],value:"≸"},{key:[110,116,114,105,97,110,103,108,101,108,101,102,116,59],value:"⋪"},{key:[110,116,114,105,97,110,103,108,101,108,101,102,116,101,113,59],value:"⋬"},{key:[110,116,114,105,97,110,103,108,101,114,105,103,104,116,59],value:"⋫"},{key:[110,116,114,105,97,110,103,108,101,114,105,103,104,116,101,113,59],value:"⋭"},{key:[110,117,59],value:"ν"},{key:[110,117,109,59],value:"#"},{key:[110,117,109,101,114,111,59],value:"№"},{key:[110,117,109,115,112,59],value:" "},{key:[110,118,68,97,115,104,59],value:"⊭"},{key:[110,118,72,97,114,114,59],value:"⤄"},{key:[110,118,97,112,59],value:"≍⃒"},{key:[110,118,100,97,115,104,59],value:"⊬"},{key:[110,118,103,101,59],value:"≥⃒"},{key:[110,118,103,116,59],value:">⃒"},{key:[110,118,105,110,102,105,110,59],value:"⧞"},{key:[110,118,108,65,114,114,59],value:"⤂"},{key:[110,118,108,101,59],value:"≤⃒"},{key:[110,118,108,116,59],value:"<⃒"},{key:[110,118,108,116,114,105,101,59],value:"⊴⃒"},{key:[110,118,114,65,114,114,59],value:"⤃"},{key:[110,118,114,116,114,105,101,59],value:"⊵⃒"},{key:[110,118,115,105,109,59],value:"∼⃒"},{key:[110,119,65,114,114,59],value:"⇖"},{key:[110,119,97,114,104,107,59],value:"⤣"},{key:[110,119,97,114,114,59],value:"↖"},{key:[110,119,97,114,114,111,119,59],value:"↖"},{key:[110,119,110,101,97,114,59],value:"⤧"},{key:[111,83,59],value:"Ⓢ"},{key:[111,97,99,117,116,101,59],value:"ó"},{key:[111,97,115,116,59],value:"⊛"},{key:[111,99,105,114,59],value:"⊚"},{key:[111,99,105,114,99,59],value:"ô"},{key:[111,99,121,59],value:"о"},{key:[111,100,97,115,104,59],value:"⊝"},{key:[111,100,98,108,97,99,59],value:"ő"},{key:[111,100,105,118,59],value:"⨸"},{key:[111,100,111,116,59],value:"⊙"},{key:[111,100,115,111,108,100,59],value:"⦼"},{key:[111,101,108,105,103,59],value:"œ"},{key:[111,102,99,105,114,59],value:"⦿"},{key:[111,102,114,59],value:"𝔬"},{key:[111,103,111,110,59],value:"˛"},{key:[111,103,114,97,118,101,59],value:"ò"},{key:[111,103,116,59],value:"⧁"},{key:[111,104,98,97,114,59],value:"⦵"},{key:[111,104,109,59],value:"Ω"},{key:[111,105,110,116,59],value:"∮"},{key:[111,108,97,114,114,59],value:"↺"},{key:[111,108,99,105,114,59],value:"⦾"},{key:[111,108,99,114,111,115,115,59],value:"⦻"},{key:[111,108,105,110,101,59],value:"‾"},{key:[111,108,116,59],value:"⧀"},{key:[111,109,97,99,114,59],value:"ō"},{key:[111,109,101,103,97,59],value:"ω"},{key:[111,109,105,99,114,111,110,59],value:"ο"},{key:[111,109,105,100,59],value:"⦶"},{key:[111,109,105,110,117,115,59],value:"⊖"},{key:[111,111,112,102,59],value:"𝕠"},{key:[111,112,97,114,59],value:"⦷"},{key:[111,112,101,114,112,59],value:"⦹"},{key:[111,112,108,117,115,59],value:"⊕"},{key:[111,114,59],value:"∨"},{key:[111,114,97,114,114,59],value:"↻"},{key:[111,114,100,59],value:"⩝"},{key:[111,114,100,101,114,59],value:"ℴ"},{key:[111,114,100,101,114,111,102,59],value:"ℴ"},{key:[111,114,100,102,59],value:"ª"},{key:[111,114,100,109,59],value:"º"},{key:[111,114,105,103,111,102,59],value:"⊶"},{key:[111,114,111,114,59],value:"⩖"},{key:[111,114,115,108,111,112,101,59],value:"⩗"},{key:[111,114,118,59],value:"⩛"},{key:[111,115,99,114,59],value:"ℴ"},{key:[111,115,108,97,115,104,59],value:"ø"},{key:[111,115,111,108,59],value:"⊘"},{key:[111,116,105,108,100,101,59],value:"õ"},{key:[111,116,105,109,101,115,59],value:"⊗"},{key:[111,116,105,109,101,115,97,115,59],value:"⨶"},{key:[111,117,109,108,59],value:"ö"},{key:[111,118,98,97,114,59],value:"⌽"},{key:[112,97,114,59],value:"∥"},{key:[112,97,114,97,59],value:"¶"},{key:[112,97,114,97,108,108,101,108,59],value:"∥"},{key:[112,97,114,115,105,109,59],value:"⫳"},{key:[112,97,114,115,108,59],value:"⫽"},{key:[112,97,114,116,59],value:"∂"},{key:[112,99,121,59],value:"п"},{key:[112,101,114,99,110,116,59],value:"%"},{key:[112,101,114,105,111,100,59],value:"."},{key:[112,101,114,109,105,108,59],value:"‰"},{key:[112,101,114,112,59],value:"⊥"},{key:[112,101,114,116,101,110,107,59],value:"‱"},{key:[112,102,114,59],value:"𝔭"},{key:[112,104,105,59],value:"φ"},{key:[112,104,105,118,59],value:"ϕ"},{key:[112,104,109,109,97,116,59],value:"ℳ"},{key:[112,104,111,110,101,59],value:"☎"},{key:[112,105,59],value:"π"},{key:[112,105,116,99,104,102,111,114,107,59],value:"⋔"},{key:[112,105,118,59],value:"ϖ"},{key:[112,108,97,110,99,107,59],value:"ℏ"},{key:[112,108,97,110,99,107,104,59],value:"ℎ"},{key:[112,108,97,110,107,118,59],value:"ℏ"},{key:[112,108,117,115,59],value:"+"},{key:[112,108,117,115,97,99,105,114,59],value:"⨣"},{key:[112,108,117,115,98,59],value:"⊞"},{key:[112,108,117,115,99,105,114,59],value:"⨢"},{key:[112,108,117,115,100,111,59],value:"∔"},{key:[112,108,117,115,100,117,59],value:"⨥"},{key:[112,108,117,115,101,59],value:"⩲"},{key:[112,108,117,115,109,110,59],value:"±"},{key:[112,108,117,115,115,105,109,59],value:"⨦"},{key:[112,108,117,115,116,119,111,59],value:"⨧"},{key:[112,109,59],value:"±"},{key:[112,111,105,110,116,105,110,116,59],value:"⨕"},{key:[112,111,112,102,59],value:"𝕡"},{key:[112,111,117,110,100,59],value:"£"},{key:[112,114,59],value:"≺"},{key:[112,114,69,59],value:"⪳"},{key:[112,114,97,112,59],value:"⪷"},{key:[112,114,99,117,101,59],value:"≼"},{key:[112,114,101,59],value:"⪯"},{key:[112,114,101,99,59],value:"≺"},{key:[112,114,101,99,97,112,112,114,111,120,59],value:"⪷"},{key:[112,114,101,99,99,117,114,108,121,101,113,59],value:"≼"},{key:[112,114,101,99,101,113,59],value:"⪯"},{key:[112,114,101,99,110,97,112,112,114,111,120,59],value:"⪹"},{key:[112,114,101,99,110,101,113,113,59],value:"⪵"},{key:[112,114,101,99,110,115,105,109,59],value:"⋨"},{key:[112,114,101,99,115,105,109,59],value:"≾"},{key:[112,114,105,109,101,59],value:"′"},{key:[112,114,105,109,101,115,59],value:"ℙ"},{key:[112,114,110,69,59],value:"⪵"},{key:[112,114,110,97,112,59],value:"⪹"},{key:[112,114,110,115,105,109,59],value:"⋨"},{key:[112,114,111,100,59],value:"∏"},{key:[112,114,111,102,97,108,97,114,59],value:"⌮"},{key:[112,114,111,102,108,105,110,101,59],value:"⌒"},{key:[112,114,111,102,115,117,114,102,59],value:"⌓"},{key:[112,114,111,112,59],value:"∝"},{key:[112,114,111,112,116,111,59],value:"∝"},{key:[112,114,115,105,109,59],value:"≾"},{key:[112,114,117,114,101,108,59],value:"⊰"},{key:[112,115,99,114,59],value:"𝓅"},{key:[112,115,105,59],value:"ψ"},{key:[112,117,110,99,115,112,59],value:" "},{key:[113,102,114,59],value:"𝔮"},{key:[113,105,110,116,59],value:"⨌"},{key:[113,111,112,102,59],value:"𝕢"},{key:[113,112,114,105,109,101,59],value:"⁗"},{key:[113,115,99,114,59],value:"𝓆"},{key:[113,117,97,116,101,114,110,105,111,110,115,59],value:"ℍ"},{key:[113,117,97,116,105,110,116,59],value:"⨖"},{key:[113,117,101,115,116,59],value:"?"},{key:[113,117,101,115,116,101,113,59],value:"≟"},{key:[113,117,111,116,59],value:'"'},{key:[114,65,97,114,114,59],value:"⇛"},{key:[114,65,114,114,59],value:"⇒"},{key:[114,65,116,97,105,108,59],value:"⤜"},{key:[114,66,97,114,114,59],value:"⤏"},{key:[114,72,97,114,59],value:"⥤"},{key:[114,97,99,101,59],value:"∽̱"},{key:[114,97,99,117,116,101,59],value:"ŕ"},{key:[114,97,100,105,99,59],value:"√"},{key:[114,97,101,109,112,116,121,118,59],value:"⦳"},{key:[114,97,110,103,59],value:"⟩"},{key:[114,97,110,103,100,59],value:"⦒"},{key:[114,97,110,103,101,59],value:"⦥"},{key:[114,97,110,103,108,101,59],value:"⟩"},{key:[114,97,113,117,111,59],value:"»"},{key:[114,97,114,114,59],value:"→"},{key:[114,97,114,114,97,112,59],value:"⥵"},{key:[114,97,114,114,98,59],value:"⇥"},{key:[114,97,114,114,98,102,115,59],value:"⤠"},{key:[114,97,114,114,99,59],value:"⤳"},{key:[114,97,114,114,102,115,59],value:"⤞"},{key:[114,97,114,114,104,107,59],value:"↪"},{key:[114,97,114,114,108,112,59],value:"↬"},{key:[114,97,114,114,112,108,59],value:"⥅"},{key:[114,97,114,114,115,105,109,59],value:"⥴"},{key:[114,97,114,114,116,108,59],value:"↣"},{key:[114,97,114,114,119,59],value:"↝"},{key:[114,97,116,97,105,108,59],value:"⤚"},{key:[114,97,116,105,111,59],value:"∶"},{key:[114,97,116,105,111,110,97,108,115,59],value:"ℚ"},{key:[114,98,97,114,114,59],value:"⤍"},{key:[114,98,98,114,107,59],value:"❳"},{key:[114,98,114,97,99,101,59],value:" }"},{key:[114,98,114,97,99,107,59],value:"]"},{key:[114,98,114,107,101,59],value:"⦌"},{key:[114,98,114,107,115,108,100,59],value:"⦎"},{key:[114,98,114,107,115,108,117,59],value:"⦐"},{key:[114,99,97,114,111,110,59],value:"ř"},{key:[114,99,101,100,105,108,59],value:"ŗ"},{key:[114,99,101,105,108,59],value:"⌉"},{key:[114,99,117,98,59],value:" }"},{key:[114,99,121,59],value:"р"},{key:[114,100,99,97,59],value:"⤷"},{key:[114,100,108,100,104,97,114,59],value:"⥩"},{key:[114,100,113,117,111,59],value:"”"},{key:[114,100,113,117,111,114,59],value:"”"},{key:[114,100,115,104,59],value:"↳"},{key:[114,101,97,108,59],value:"ℜ"},{key:[114,101,97,108,105,110,101,59],value:"ℛ"},{key:[114,101,97,108,112,97,114,116,59],value:"ℜ"},{key:[114,101,97,108,115,59],value:"ℝ"},{key:[114,101,99,116,59],value:"▭"},{key:[114,101,103,59],value:"®"},{key:[114,102,105,115,104,116,59],value:"⥽"},{key:[114,102,108,111,111,114,59],value:"⌋"},{key:[114,102,114,59],value:"𝔯"},{key:[114,104,97,114,100,59],value:"⇁"},{key:[114,104,97,114,117,59],value:"⇀"},{key:[114,104,97,114,117,108,59],value:"⥬"},{key:[114,104,111,59],value:"ρ"},{key:[114,104,111,118,59],value:"ϱ"},{key:[114,105,103,104,116,97,114,114,111,119,59],value:"→"},{key:[114,105,103,104,116,97,114,114,111,119,116,97,105,108,59],value:"↣"},{key:[114,105,103,104,116,104,97,114,112,111,111,110,100,111,119,110,59],value:"⇁"},{key:[114,105,103,104,116,104,97,114,112,111,111,110,117,112,59],value:"⇀"},{key:[114,105,103,104,116,108,101,102,116,97,114,114,111,119,115,59],value:"⇄"},{key:[114,105,103,104,116,108,101,102,116,104,97,114,112,111,111,110,115,59],value:"⇌"},{key:[114,105,103,104,116,114,105,103,104,116,97,114,114,111,119,115,59],value:"⇉"},{key:[114,105,103,104,116,115,113,117,105,103,97,114,114,111,119,59],value:"↝"},{key:[114,105,103,104,116,116,104,114,101,101,116,105,109,101,115,59],value:"⋌"},{key:[114,105,110,103,59],value:"˚"},{key:[114,105,115,105,110,103,100,111,116,115,101,113,59],value:"≓"},{key:[114,108,97,114,114,59],value:"⇄"},{key:[114,108,104,97,114,59],value:"⇌"},{key:[114,108,109,59],value:"‏"},{key:[114,109,111,117,115,116,59],value:"⎱"},{key:[114,109,111,117,115,116,97,99,104,101,59],value:"⎱"},{key:[114,110,109,105,100,59],value:"⫮"},{key:[114,111,97,110,103,59],value:"⟭"},{key:[114,111,97,114,114,59],value:"⇾"},{key:[114,111,98,114,107,59],value:"⟧"},{key:[114,111,112,97,114,59],value:"⦆"},{key:[114,111,112,102,59],value:"𝕣"},{key:[114,111,112,108,117,115,59],value:"⨮"},{key:[114,111,116,105,109,101,115,59],value:"⨵"},{key:[114,112,97,114,59],value:")"},{key:[114,112,97,114,103,116,59],value:"⦔"},{key:[114,112,112,111,108,105,110,116,59],value:"⨒"},{key:[114,114,97,114,114,59],value:"⇉"},{key:[114,115,97,113,117,111,59],value:"›"},{key:[114,115,99,114,59],value:"𝓇"},{key:[114,115,104,59],value:"↱"},{key:[114,115,113,98,59],value:"]"},{key:[114,115,113,117,111,59],value:"’"},{key:[114,115,113,117,111,114,59],value:"’"},{key:[114,116,104,114,101,101,59],value:"⋌"},{key:[114,116,105,109,101,115,59],value:"⋊"},{key:[114,116,114,105,59],value:"▹"},{key:[114,116,114,105,101,59],value:"⊵"},{key:[114,116,114,105,102,59],value:"▸"},{key:[114,116,114,105,108,116,114,105,59],value:"⧎"},{key:[114,117,108,117,104,97,114,59],value:"⥨"},{key:[114,120,59],value:"℞"},{key:[115,97,99,117,116,101,59],value:"ś"},{key:[115,98,113,117,111,59],value:"‚"},{key:[115,99,59],value:"≻"},{key:[115,99,69,59],value:"⪴"},{key:[115,99,97,112,59],value:"⪸"},{key:[115,99,97,114,111,110,59],value:"š"},{key:[115,99,99,117,101,59],value:"≽"},{key:[115,99,101,59],value:"⪰"},{key:[115,99,101,100,105,108,59],value:"ş"},{key:[115,99,105,114,99,59],value:"ŝ"},{key:[115,99,110,69,59],value:"⪶"},{key:[115,99,110,97,112,59],value:"⪺"},{key:[115,99,110,115,105,109,59],value:"⋩"},{key:[115,99,112,111,108,105,110,116,59],value:"⨓"},{key:[115,99,115,105,109,59],value:"≿"},{key:[115,99,121,59],value:"с"},{key:[115,100,111,116,59],value:"⋅"},{key:[115,100,111,116,98,59],value:"⊡"},{key:[115,100,111,116,101,59],value:"⩦"},{key:[115,101,65,114,114,59],value:"⇘"},{key:[115,101,97,114,104,107,59],value:"⤥"},{key:[115,101,97,114,114,59],value:"↘"},{key:[115,101,97,114,114,111,119,59],value:"↘"},{key:[115,101,99,116,59],value:"§"},{key:[115,101,109,105,59],value:";"},{key:[115,101,115,119,97,114,59],value:"⤩"},{key:[115,101,116,109,105,110,117,115,59],value:"∖"},{key:[115,101,116,109,110,59],value:"∖"},{key:[115,101,120,116,59],value:"✶"},{key:[115,102,114,59],value:"𝔰"},{key:[115,102,114,111,119,110,59],value:"⌢"},{key:[115,104,97,114,112,59],value:"♯"},{key:[115,104,99,104,99,121,59],value:"щ"},{key:[115,104,99,121,59],value:"ш"},{key:[115,104,111,114,116,109,105,100,59],value:"∣"},{key:[115,104,111,114,116,112,97,114,97,108,108,101,108,59],value:"∥"},{key:[115,104,121,59],value:"­"},{key:[115,105,103,109,97,59],value:"σ"},{key:[115,105,103,109,97,102,59],value:"ς"},{key:[115,105,103,109,97,118,59],value:"ς"},{key:[115,105,109,59],value:"∼"},{key:[115,105,109,100,111,116,59],value:"⩪"},{key:[115,105,109,101,59],value:"≃"},{key:[115,105,109,101,113,59],value:"≃"},{key:[115,105,109,103,59],value:"⪞"},{key:[115,105,109,103,69,59],value:"⪠"},{key:[115,105,109,108,59],value:"⪝"},{key:[115,105,109,108,69,59],value:"⪟"},{key:[115,105,109,110,101,59],value:"≆"},{key:[115,105,109,112,108,117,115,59],value:"⨤"},{key:[115,105,109,114,97,114,114,59],value:"⥲"},{key:[115,108,97,114,114,59],value:"←"},{key:[115,109,97,108,108,115,101,116,109,105,110,117,115,59],value:"∖"},{key:[115,109,97,115,104,112,59],value:"⨳"},{key:[115,109,101,112,97,114,115,108,59],value:"⧤"},{key:[115,109,105,100,59],value:"∣"},{key:[115,109,105,108,101,59],value:"⌣"},{key:[115,109,116,59],value:"⪪"},{key:[115,109,116,101,59],value:"⪬"},{key:[115,109,116,101,115,59],value:"⪬︀"},{key:[115,111,102,116,99,121,59],value:"ь"},{key:[115,111,108,59],value:"/"},{key:[115,111,108,98,59],value:"⧄"},{key:[115,111,108,98,97,114,59],value:"⌿"},{key:[115,111,112,102,59],value:"𝕤"},{key:[115,112,97,100,101,115,59],value:"♠"},{key:[115,112,97,100,101,115,117,105,116,59],value:"♠"},{key:[115,112,97,114,59],value:"∥"},{key:[115,113,99,97,112,59],value:"⊓"},{key:[115,113,99,97,112,115,59],value:"⊓︀"},{key:[115,113,99,117,112,59],value:"⊔"},{key:[115,113,99,117,112,115,59],value:"⊔︀"},{key:[115,113,115,117,98,59],value:"⊏"},{key:[115,113,115,117,98,101,59],value:"⊑"},{key:[115,113,115,117,98,115,101,116,59],value:"⊏"},{key:[115,113,115,117,98,115,101,116,101,113,59],value:"⊑"},{key:[115,113,115,117,112,59],value:"⊐"},{key:[115,113,115,117,112,101,59],value:"⊒"},{key:[115,113,115,117,112,115,101,116,59],value:"⊐"},{key:[115,113,115,117,112,115,101,116,101,113,59],value:"⊒"},{key:[115,113,117,59],value:"□"},{key:[115,113,117,97,114,101,59],value:"□"},{key:[115,113,117,97,114,102,59],value:"▪"},{key:[115,113,117,102,59],value:"▪"},{key:[115,114,97,114,114,59],value:"→"},{key:[115,115,99,114,59],value:"𝓈"},{key:[115,115,101,116,109,110,59],value:"∖"},{key:[115,115,109,105,108,101,59],value:"⌣"},{key:[115,115,116,97,114,102,59],value:"⋆"},{key:[115,116,97,114,59],value:"☆"},{key:[115,116,97,114,102,59],value:"★"},{key:[115,116,114,97,105,103,104,116,101,112,115,105,108,111,110,59],value:"ϵ"},{key:[115,116,114,97,105,103,104,116,112,104,105,59],value:"ϕ"},{key:[115,116,114,110,115,59],value:"¯"},{key:[115,117,98,59],value:"⊂"},{key:[115,117,98,69,59],value:"⫅"},{key:[115,117,98,100,111,116,59],value:"⪽"},{key:[115,117,98,101,59],value:"⊆"},{key:[115,117,98,101,100,111,116,59],value:"⫃"},{key:[115,117,98,109,117,108,116,59],value:"⫁"},{key:[115,117,98,110,69,59],value:"⫋"},{key:[115,117,98,110,101,59],value:"⊊"},{key:[115,117,98,112,108,117,115,59],value:"⪿"},{key:[115,117,98,114,97,114,114,59],value:"⥹"},{key:[115,117,98,115,101,116,59],value:"⊂"},{key:[115,117,98,115,101,116,101,113,59],value:"⊆"},{key:[115,117,98,115,101,116,101,113,113,59],value:"⫅"},{key:[115,117,98,115,101,116,110,101,113,59],value:"⊊"},{key:[115,117,98,115,101,116,110,101,113,113,59],value:"⫋"},{key:[115,117,98,115,105,109,59],value:"⫇"},{key:[115,117,98,115,117,98,59],value:"⫕"},{key:[115,117,98,115,117,112,59],value:"⫓"},{key:[115,117,99,99,59],value:"≻"},{key:[115,117,99,99,97,112,112,114,111,120,59],value:"⪸"},{key:[115,117,99,99,99,117,114,108,121,101,113,59],value:"≽"},{key:[115,117,99,99,101,113,59],value:"⪰"},{key:[115,117,99,99,110,97,112,112,114,111,120,59],value:"⪺"},{key:[115,117,99,99,110,101,113,113,59],value:"⪶"},{key:[115,117,99,99,110,115,105,109,59],value:"⋩"},{key:[115,117,99,99,115,105,109,59],value:"≿"},{key:[115,117,109,59],value:"∑"},{key:[115,117,110,103,59],value:"♪"},{key:[115,117,112,49,59],value:"¹"},{key:[115,117,112,50,59],value:"²"},{key:[115,117,112,51,59],value:"³"},{key:[115,117,112,59],value:"⊃"},{key:[115,117,112,69,59],value:"⫆"},{key:[115,117,112,100,111,116,59],value:"⪾"},{key:[115,117,112,100,115,117,98,59],value:"⫘"},{key:[115,117,112,101,59],value:"⊇"},{key:[115,117,112,101,100,111,116,59],value:"⫄"},{key:[115,117,112,104,115,111,108,59],value:"⟉"},{key:[115,117,112,104,115,117,98,59],value:"⫗"},{key:[115,117,112,108,97,114,114,59],value:"⥻"},{key:[115,117,112,109,117,108,116,59],value:"⫂"},{key:[115,117,112,110,69,59],value:"⫌"},{key:[115,117,112,110,101,59],value:"⊋"},{key:[115,117,112,112,108,117,115,59],value:"⫀"},{key:[115,117,112,115,101,116,59],value:"⊃"},{key:[115,117,112,115,101,116,101,113,59],value:"⊇"},{key:[115,117,112,115,101,116,101,113,113,59],value:"⫆"},{key:[115,117,112,115,101,116,110,101,113,59],value:"⊋"},{key:[115,117,112,115,101,116,110,101,113,113,59],value:"⫌"},{key:[115,117,112,115,105,109,59],value:"⫈"},{key:[115,117,112,115,117,98,59],value:"⫔"},{key:[115,117,112,115,117,112,59],value:"⫖"},{key:[115,119,65,114,114,59],value:"⇙"},{key:[115,119,97,114,104,107,59],value:"⤦"},{key:[115,119,97,114,114,59],value:"↙"},{key:[115,119,97,114,114,111,119,59],value:"↙"},{key:[115,119,110,119,97,114,59],value:"⤪"},{key:[115,122,108,105,103,59],value:"ß"},{key:[116,97,114,103,101,116,59],value:"⌖"},{key:[116,97,117,59],value:"τ"},{key:[116,98,114,107,59],value:"⎴"},{key:[116,99,97,114,111,110,59],value:"ť"},{key:[116,99,101,100,105,108,59],value:"ţ"},{key:[116,99,121,59],value:"т"},{key:[116,100,111,116,59],value:"⃛"},{key:[116,101,108,114,101,99,59],value:"⌕"},{key:[116,102,114,59],value:"𝔱"},{key:[116,104,101,114,101,52,59],value:"∴"},{key:[116,104,101,114,101,102,111,114,101,59],value:"∴"},{key:[116,104,101,116,97,59],value:"θ"},{key:[116,104,101,116,97,115,121,109,59],value:"ϑ"},{key:[116,104,101,116,97,118,59],value:"ϑ"},{key:[116,104,105,99,107,97,112,112,114,111,120,59],value:"≈"},{key:[116,104,105,99,107,115,105,109,59],value:"∼"},{key:[116,104,105,110,115,112,59],value:" "},{key:[116,104,107,97,112,59],value:"≈"},{key:[116,104,107,115,105,109,59],value:"∼"},{key:[116,104,111,114,110,59],value:"þ"},{key:[116,105,108,100,101,59],value:"˜"},{key:[116,105,109,101,115,59],value:"×"},{key:[116,105,109,101,115,98,59],value:"⊠"},{key:[116,105,109,101,115,98,97,114,59],value:"⨱"},{key:[116,105,109,101,115,100,59],value:"⨰"},{key:[116,105,110,116,59],value:"∭"},{key:[116,111,101,97,59],value:"⤨"},{key:[116,111,112,59],value:"⊤"},{key:[116,111,112,98,111,116,59],value:"⌶"},{key:[116,111,112,99,105,114,59],value:"⫱"},{key:[116,111,112,102,59],value:"𝕥"},{key:[116,111,112,102,111,114,107,59],value:"⫚"},{key:[116,111,115,97,59],value:"⤩"},{key:[116,112,114,105,109,101,59],value:"‴"},{key:[116,114,97,100,101,59],value:"™"},{key:[116,114,105,97,110,103,108,101,59],value:"▵"},{key:[116,114,105,97,110,103,108,101,100,111,119,110,59],value:"▿"},{key:[116,114,105,97,110,103,108,101,108,101,102,116,59],value:"◃"},{key:[116,114,105,97,110,103,108,101,108,101,102,116,101,113,59],value:"⊴"},{key:[116,114,105,97,110,103,108,101,113,59],value:"≜"},{key:[116,114,105,97,110,103,108,101,114,105,103,104,116,59],value:"▹"},{key:[116,114,105,97,110,103,108,101,114,105,103,104,116,101,113,59],value:"⊵"},{key:[116,114,105,100,111,116,59],value:"◬"},{key:[116,114,105,101,59],value:"≜"},{key:[116,114,105,109,105,110,117,115,59],value:"⨺"},{key:[116,114,105,112,108,117,115,59],value:"⨹"},{key:[116,114,105,115,98,59],value:"⧍"},{key:[116,114,105,116,105,109,101,59],value:"⨻"},{key:[116,114,112,101,122,105,117,109,59],value:"⏢"},{key:[116,115,99,114,59],value:"𝓉"},{key:[116,115,99,121,59],value:"ц"},{key:[116,115,104,99,121,59],value:"ћ"},{key:[116,115,116,114,111,107,59],value:"ŧ"},{key:[116,119,105,120,116,59],value:"≬"},{key:[116,119,111,104,101,97,100,108,101,102,116,97,114,114,111,119,59],value:"↞"},{key:[116,119,111,104,101,97,100,114,105,103,104,116,97,114,114,111,119,59],value:"↠"},{key:[117,65,114,114,59],value:"⇑"},{key:[117,72,97,114,59],value:"⥣"},{key:[117,97,99,117,116,101,59],value:"ú"},{key:[117,97,114,114,59],value:"↑"},{key:[117,98,114,99,121,59],value:"ў"},{key:[117,98,114,101,118,101,59],value:"ŭ"},{key:[117,99,105,114,99,59],value:"û"},{key:[117,99,121,59],value:"у"},{key:[117,100,97,114,114,59],value:"⇅"},{key:[117,100,98,108,97,99,59],value:"ű"},{key:[117,100,104,97,114,59],value:"⥮"},{key:[117,102,105,115,104,116,59],value:"⥾"},{key:[117,102,114,59],value:"𝔲"},{key:[117,103,114,97,118,101,59],value:"ù"},{key:[117,104,97,114,108,59],value:"↿"},{key:[117,104,97,114,114,59],value:"↾"},{key:[117,104,98,108,107,59],value:"▀"},{key:[117,108,99,111,114,110,59],value:"⌜"},{key:[117,108,99,111,114,110,101,114,59],value:"⌜"},{key:[117,108,99,114,111,112,59],value:"⌏"},{key:[117,108,116,114,105,59],value:"◸"},{key:[117,109,97,99,114,59],value:"ū"},{key:[117,109,108,59],value:"¨"},{key:[117,111,103,111,110,59],value:"ų"},{key:[117,111,112,102,59],value:"𝕦"},{key:[117,112,97,114,114,111,119,59],value:"↑"},{key:[117,112,100,111,119,110,97,114,114,111,119,59],value:"↕"},{key:[117,112,104,97,114,112,111,111,110,108,101,102,116,59],value:"↿"},{key:[117,112,104,97,114,112,111,111,110,114,105,103,104,116,59],value:"↾"},{key:[117,112,108,117,115,59],value:"⊎"},{key:[117,112,115,105,59],value:"υ"},{key:[117,112,115,105,104,59],value:"ϒ"},{key:[117,112,115,105,108,111,110,59],value:"υ"},{key:[117,112,117,112,97,114,114,111,119,115,59],value:"⇈"},{key:[117,114,99,111,114,110,59],value:"⌝"},{key:[117,114,99,111,114,110,101,114,59],value:"⌝"},{key:[117,114,99,114,111,112,59],value:"⌎"},{key:[117,114,105,110,103,59],value:"ů"},{key:[117,114,116,114,105,59],value:"◹"},{key:[117,115,99,114,59],value:"𝓊"},{key:[117,116,100,111,116,59],value:"⋰"},{key:[117,116,105,108,100,101,59],value:"ũ"},{key:[117,116,114,105,59],value:"▵"},{key:[117,116,114,105,102,59],value:"▴"},{key:[117,117,97,114,114,59],value:"⇈"},{key:[117,117,109,108,59],value:"ü"},{key:[117,119,97,110,103,108,101,59],value:"⦧"},{key:[118,65,114,114,59],value:"⇕"},{key:[118,66,97,114,59],value:"⫨"},{key:[118,66,97,114,118,59],value:"⫩"},{key:[118,68,97,115,104,59],value:"⊨"},{key:[118,97,110,103,114,116,59],value:"⦜"},{key:[118,97,114,101,112,115,105,108,111,110,59],value:"ϵ"},{key:[118,97,114,107,97,112,112,97,59],value:"ϰ"},{key:[118,97,114,110,111,116,104,105,110,103,59],value:"∅"},{key:[118,97,114,112,104,105,59],value:"ϕ"},{key:[118,97,114,112,105,59],value:"ϖ"},{key:[118,97,114,112,114,111,112,116,111,59],value:"∝"},{key:[118,97,114,114,59],value:"↕"},{key:[118,97,114,114,104,111,59],value:"ϱ"},{key:[118,97,114,115,105,103,109,97,59],value:"ς"},{key:[118,97,114,115,117,98,115,101,116,110,101,113,59],value:"⊊︀"},{key:[118,97,114,115,117,98,115,101,116,110,101,113,113,59],value:"⫋︀"},{key:[118,97,114,115,117,112,115,101,116,110,101,113,59],value:"⊋︀"},{key:[118,97,114,115,117,112,115,101,116,110,101,113,113,59],value:"⫌︀"},{key:[118,97,114,116,104,101,116,97,59],value:"ϑ"},{key:[118,97,114,116,114,105,97,110,103,108,101,108,101,102,116,59],value:"⊲"},{key:[118,97,114,116,114,105,97,110,103,108,101,114,105,103,104,116,59],value:"⊳"},{key:[118,99,121,59],value:"в"},{key:[118,100,97,115,104,59],value:"⊢"},{key:[118,101,101,59],value:"∨"},{key:[118,101,101,98,97,114,59],value:"⊻"},{key:[118,101,101,101,113,59],value:"≚"},{key:[118,101,108,108,105,112,59],value:"⋮"},{key:[118,101,114,98,97,114,59],value:"|"},{key:[118,101,114,116,59],value:"|"},{key:[118,102,114,59],value:"𝔳"},{key:[118,108,116,114,105,59],value:"⊲"},{key:[118,110,115,117,98,59],value:"⊂⃒"},{key:[118,110,115,117,112,59],value:"⊃⃒"},{key:[118,111,112,102,59],value:"𝕧"},{key:[118,112,114,111,112,59],value:"∝"},{key:[118,114,116,114,105,59],value:"⊳"},{key:[118,115,99,114,59],value:"𝓋"},{key:[118,115,117,98,110,69,59],value:"⫋︀"},{key:[118,115,117,98,110,101,59],value:"⊊︀"},{key:[118,115,117,112,110,69,59],value:"⫌︀"},{key:[118,115,117,112,110,101,59],value:"⊋︀"},{key:[118,122,105,103,122,97,103,59],value:"⦚"},{key:[119,99,105,114,99,59],value:"ŵ"},{key:[119,101,100,98,97,114,59],value:"⩟"},{key:[119,101,100,103,101,59],value:"∧"},{key:[119,101,100,103,101,113,59],value:"≙"},{key:[119,101,105,101,114,112,59],value:"℘"},{key:[119,102,114,59],value:"𝔴"},{key:[119,111,112,102,59],value:"𝕨"},{key:[119,112,59],value:"℘"},{key:[119,114,59],value:"≀"},{key:[119,114,101,97,116,104,59],value:"≀"},{key:[119,115,99,114,59],value:"𝓌"},{key:[120,99,97,112,59],value:"⋂"},{key:[120,99,105,114,99,59],value:"◯"},{key:[120,99,117,112,59],value:"⋃"},{key:[120,100,116,114,105,59],value:"▽"},{key:[120,102,114,59],value:"𝔵"},{key:[120,104,65,114,114,59],value:"⟺"},{key:[120,104,97,114,114,59],value:"⟷"},{key:[120,105,59],value:"ξ"},{key:[120,108,65,114,114,59],value:"⟸"},{key:[120,108,97,114,114,59],value:"⟵"},{key:[120,109,97,112,59],value:"⟼"},{key:[120,110,105,115,59],value:"⋻"},{key:[120,111,100,111,116,59],value:"⨀"},{key:[120,111,112,102,59],value:"𝕩"},{key:[120,111,112,108,117,115,59],value:"⨁"},{key:[120,111,116,105,109,101,59],value:"⨂"},{key:[120,114,65,114,114,59],value:"⟹"},{key:[120,114,97,114,114,59],value:"⟶"},{key:[120,115,99,114,59],value:"𝓍"},{key:[120,115,113,99,117,112,59],value:"⨆"},{key:[120,117,112,108,117,115,59],value:"⨄"},{key:[120,117,116,114,105,59],value:"△"},{key:[120,118,101,101,59],value:"⋁"},{key:[120,119,101,100,103,101,59],value:"⋀"},{key:[121,97,99,117,116,101,59],value:"ý"},{key:[121,97,99,121,59],value:"я"},{key:[121,99,105,114,99,59],value:"ŷ"},{key:[121,99,121,59],value:"ы"},{key:[121,101,110,59],value:"¥"},{key:[121,102,114,59],value:"𝔶"},{key:[121,105,99,121,59],value:"ї"},{key:[121,111,112,102,59],value:"𝕪"},{key:[121,115,99,114,59],value:"𝓎"},{key:[121,117,99,121,59],value:"ю"},{key:[121,117,109,108,59],value:"ÿ"},{key:[122,97,99,117,116,101,59],value:"ź"},{key:[122,99,97,114,111,110,59],value:"ž"},{key:[122,99,121,59],value:"з"},{key:[122,100,111,116,59],value:"ż"},{key:[122,101,101,116,114,102,59],value:"ℨ"},{key:[122,101,116,97,59],value:"ζ"},{key:[122,102,114,59],value:"𝔷"},{key:[122,104,99,121,59],value:"ж"},{key:[122,105,103,114,97,114,114,59],value:"⇝"},{key:[122,111,112,102,59],value:"𝕫"},{key:[122,115,99,114,59],value:"𝓏"},{key:[122,119,106,59],value:"‍"},{key:[122,119,110,106,59],value:"‌"}];var m6;(function(e){e[e.LOW_LINE=95]="LOW_LINE",e[e.UNDERTIE=8255]="UNDERTIE",e[e.CHARACTER_TIE=8256]="CHARACTER_TIE",e[e.INVERTED_UNDERTIE=8276]="INVERTED_UNDERTIE",e[e.PRESENTATION_FORM_FOR_VERTICAL_LOW_LINE=65075]="PRESENTATION_FORM_FOR_VERTICAL_LOW_LINE",e[e.PRESENTATION_FORM_FOR_VERTICAL_WAVY_LOW_LINE=65076]="PRESENTATION_FORM_FOR_VERTICAL_WAVY_LOW_LINE",e[e.DASHED_LOW_LINE=65101]="DASHED_LOW_LINE",e[e.CENTRELINE_LOW_LINE=65102]="CENTRELINE_LOW_LINE",e[e.WAVY_LOW_LINE=65103]="WAVY_LOW_LINE",e[e.FULLWIDTH_LOW_LINE=65343]="FULLWIDTH_LOW_LINE"})(m6||(m6={}));var y6;(function(e){e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.ARMENIAN_HYPHEN=1418]="ARMENIAN_HYPHEN",e[e.HEBREW_PUNCTUATION_MAQAF=1470]="HEBREW_PUNCTUATION_MAQAF",e[e.CANADIAN_SYLLABICS_HYPHEN=5120]="CANADIAN_SYLLABICS_HYPHEN",e[e.MONGOLIAN_TODO_SOFT_HYPHEN=6150]="MONGOLIAN_TODO_SOFT_HYPHEN",e[e.HYPHEN=8208]="HYPHEN",e[e.NON_BREAKING_HYPHEN=8209]="NON_BREAKING_HYPHEN",e[e.FIGURE_DASH=8210]="FIGURE_DASH",e[e.EN_DASH=8211]="EN_DASH",e[e.EM_DASH=8212]="EM_DASH",e[e.HORIZONTAL_BAR=8213]="HORIZONTAL_BAR",e[e.DOUBLE_OBLIQUE_HYPHEN=11799]="DOUBLE_OBLIQUE_HYPHEN",e[e.HYPHEN_WITH_DIAERESIS=11802]="HYPHEN_WITH_DIAERESIS",e[e.TWO_EM_DASH=11834]="TWO_EM_DASH",e[e.THREE_EM_DASH=11835]="THREE_EM_DASH",e[e.DOUBLE_HYPHEN=11840]="DOUBLE_HYPHEN",e[e.WAVE_DASH=12316]="WAVE_DASH",e[e.WAVY_DASH=12336]="WAVY_DASH",e[e.KATAKANA_HIRAGANA_DOUBLE_HYPHEN=12448]="KATAKANA_HIRAGANA_DOUBLE_HYPHEN",e[e.PRESENTATION_FORM_FOR_VERTICAL_EM_DASH=65073]="PRESENTATION_FORM_FOR_VERTICAL_EM_DASH",e[e.PRESENTATION_FORM_FOR_VERTICAL_EN_DASH=65074]="PRESENTATION_FORM_FOR_VERTICAL_EN_DASH",e[e.SMALL_EM_DASH=65112]="SMALL_EM_DASH",e[e.SMALL_HYPHEN_MINUS=65123]="SMALL_HYPHEN_MINUS",e[e.FULLWIDTH_HYPHEN_MINUS=65293]="FULLWIDTH_HYPHEN_MINUS",e[e.YEZIDI_HYPHENATION_MARK=69293]="YEZIDI_HYPHENATION_MARK"})(y6||(y6={}));var b6;(function(e){e[e.RIGHT_PARENTHESIS=41]="RIGHT_PARENTHESIS",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.RIGHT_CURLY_BRACKET=125]="RIGHT_CURLY_BRACKET",e[e.TIBETAN_MARK_GUG_RTAGS_GYAS=3899]="TIBETAN_MARK_GUG_RTAGS_GYAS",e[e.TIBETAN_MARK_ANG_KHANG_GYAS=3901]="TIBETAN_MARK_ANG_KHANG_GYAS",e[e.OGHAM_REVERSED_FEATHER_MARK=5788]="OGHAM_REVERSED_FEATHER_MARK",e[e.RIGHT_SQUARE_BRACKET_WITH_QUILL=8262]="RIGHT_SQUARE_BRACKET_WITH_QUILL",e[e.SUPERSCRIPT_RIGHT_PARENTHESIS=8318]="SUPERSCRIPT_RIGHT_PARENTHESIS",e[e.SUBSCRIPT_RIGHT_PARENTHESIS=8334]="SUBSCRIPT_RIGHT_PARENTHESIS",e[e.RIGHT_CEILING=8969]="RIGHT_CEILING",e[e.RIGHT_FLOOR=8971]="RIGHT_FLOOR",e[e.RIGHT_POINTING_ANGLE_BRACKET=9002]="RIGHT_POINTING_ANGLE_BRACKET",e[e.MEDIUM_RIGHT_PARENTHESIS_ORNAMENT=10089]="MEDIUM_RIGHT_PARENTHESIS_ORNAMENT",e[e.MEDIUM_FLATTENED_RIGHT_PARENTHESIS_ORNAMENT=10091]="MEDIUM_FLATTENED_RIGHT_PARENTHESIS_ORNAMENT",e[e.MEDIUM_RIGHT_POINTING_ANGLE_BRACKET_ORNAMENT=10093]="MEDIUM_RIGHT_POINTING_ANGLE_BRACKET_ORNAMENT",e[e.HEAVY_RIGHT_POINTING_ANGLE_QUOTATION_MARK_ORNAMENT=10095]="HEAVY_RIGHT_POINTING_ANGLE_QUOTATION_MARK_ORNAMENT",e[e.HEAVY_RIGHT_POINTING_ANGLE_BRACKET_ORNAMENT=10097]="HEAVY_RIGHT_POINTING_ANGLE_BRACKET_ORNAMENT",e[e.LIGHT_RIGHT_TORTOISE_SHELL_BRACKET_ORNAMENT=10099]="LIGHT_RIGHT_TORTOISE_SHELL_BRACKET_ORNAMENT",e[e.MEDIUM_RIGHT_CURLY_BRACKET_ORNAMENT=10101]="MEDIUM_RIGHT_CURLY_BRACKET_ORNAMENT",e[e.RIGHT_S_SHAPED_BAG_DELIMITER=10182]="RIGHT_S_SHAPED_BAG_DELIMITER",e[e.MATHEMATICAL_RIGHT_WHITE_SQUARE_BRACKET=10215]="MATHEMATICAL_RIGHT_WHITE_SQUARE_BRACKET",e[e.MATHEMATICAL_RIGHT_ANGLE_BRACKET=10217]="MATHEMATICAL_RIGHT_ANGLE_BRACKET",e[e.MATHEMATICAL_RIGHT_DOUBLE_ANGLE_BRACKET=10219]="MATHEMATICAL_RIGHT_DOUBLE_ANGLE_BRACKET",e[e.MATHEMATICAL_RIGHT_WHITE_TORTOISE_SHELL_BRACKET=10221]="MATHEMATICAL_RIGHT_WHITE_TORTOISE_SHELL_BRACKET",e[e.MATHEMATICAL_RIGHT_FLATTENED_PARENTHESIS=10223]="MATHEMATICAL_RIGHT_FLATTENED_PARENTHESIS",e[e.RIGHT_WHITE_CURLY_BRACKET=10628]="RIGHT_WHITE_CURLY_BRACKET",e[e.RIGHT_WHITE_PARENTHESIS=10630]="RIGHT_WHITE_PARENTHESIS",e[e.Z_NOTATION_RIGHT_IMAGE_BRACKET=10632]="Z_NOTATION_RIGHT_IMAGE_BRACKET",e[e.Z_NOTATION_RIGHT_BINDING_BRACKET=10634]="Z_NOTATION_RIGHT_BINDING_BRACKET",e[e.RIGHT_SQUARE_BRACKET_WITH_UNDERBAR=10636]="RIGHT_SQUARE_BRACKET_WITH_UNDERBAR",e[e.RIGHT_SQUARE_BRACKET_WITH_TICK_IN_BOTTOM_CORNER=10638]="RIGHT_SQUARE_BRACKET_WITH_TICK_IN_BOTTOM_CORNER",e[e.RIGHT_SQUARE_BRACKET_WITH_TICK_IN_TOP_CORNER=10640]="RIGHT_SQUARE_BRACKET_WITH_TICK_IN_TOP_CORNER",e[e.RIGHT_ANGLE_BRACKET_WITH_DOT=10642]="RIGHT_ANGLE_BRACKET_WITH_DOT",e[e.RIGHT_ARC_GREATER_THAN_BRACKET=10644]="RIGHT_ARC_GREATER_THAN_BRACKET",e[e.DOUBLE_RIGHT_ARC_LESS_THAN_BRACKET=10646]="DOUBLE_RIGHT_ARC_LESS_THAN_BRACKET",e[e.RIGHT_BLACK_TORTOISE_SHELL_BRACKET=10648]="RIGHT_BLACK_TORTOISE_SHELL_BRACKET",e[e.RIGHT_WIGGLY_FENCE=10713]="RIGHT_WIGGLY_FENCE",e[e.RIGHT_DOUBLE_WIGGLY_FENCE=10715]="RIGHT_DOUBLE_WIGGLY_FENCE",e[e.RIGHT_POINTING_CURVED_ANGLE_BRACKET=10749]="RIGHT_POINTING_CURVED_ANGLE_BRACKET",e[e.TOP_RIGHT_HALF_BRACKET=11811]="TOP_RIGHT_HALF_BRACKET",e[e.BOTTOM_RIGHT_HALF_BRACKET=11813]="BOTTOM_RIGHT_HALF_BRACKET",e[e.RIGHT_SIDEWAYS_U_BRACKET=11815]="RIGHT_SIDEWAYS_U_BRACKET",e[e.RIGHT_DOUBLE_PARENTHESIS=11817]="RIGHT_DOUBLE_PARENTHESIS",e[e.RIGHT_ANGLE_BRACKET=12297]="RIGHT_ANGLE_BRACKET",e[e.RIGHT_DOUBLE_ANGLE_BRACKET=12299]="RIGHT_DOUBLE_ANGLE_BRACKET",e[e.RIGHT_CORNER_BRACKET=12301]="RIGHT_CORNER_BRACKET",e[e.RIGHT_WHITE_CORNER_BRACKET=12303]="RIGHT_WHITE_CORNER_BRACKET",e[e.RIGHT_BLACK_LENTICULAR_BRACKET=12305]="RIGHT_BLACK_LENTICULAR_BRACKET",e[e.RIGHT_TORTOISE_SHELL_BRACKET=12309]="RIGHT_TORTOISE_SHELL_BRACKET",e[e.RIGHT_WHITE_LENTICULAR_BRACKET=12311]="RIGHT_WHITE_LENTICULAR_BRACKET",e[e.RIGHT_WHITE_TORTOISE_SHELL_BRACKET=12313]="RIGHT_WHITE_TORTOISE_SHELL_BRACKET",e[e.RIGHT_WHITE_SQUARE_BRACKET=12315]="RIGHT_WHITE_SQUARE_BRACKET",e[e.DOUBLE_PRIME_QUOTATION_MARK=12318]="DOUBLE_PRIME_QUOTATION_MARK",e[e.LOW_DOUBLE_PRIME_QUOTATION_MARK=12319]="LOW_DOUBLE_PRIME_QUOTATION_MARK",e[e.ORNATE_LEFT_PARENTHESIS=64830]="ORNATE_LEFT_PARENTHESIS",e[e.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_WHITE_LENTICULAR_BRAKCET=65048]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_WHITE_LENTICULAR_BRAKCET",e[e.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_PARENTHESIS=65078]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_PARENTHESIS",e[e.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_CURLY_BRACKET=65080]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_CURLY_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_TORTOISE_SHELL_BRACKET=65082]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_TORTOISE_SHELL_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_BLACK_LENTICULAR_BRACKET=65084]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_BLACK_LENTICULAR_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_DOUBLE_ANGLE_BRACKET=65086]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_DOUBLE_ANGLE_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_ANGLE_BRACKET=65088]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_ANGLE_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_CORNER_BRACKET=65090]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_CORNER_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_WHITE_CORNER_BRACKET=65092]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_WHITE_CORNER_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_SQUARE_BRACKET=65096]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_SQUARE_BRACKET",e[e.SMALL_RIGHT_PARENTHESIS=65114]="SMALL_RIGHT_PARENTHESIS",e[e.SMALL_RIGHT_CURLY_BRACKET=65116]="SMALL_RIGHT_CURLY_BRACKET",e[e.SMALL_RIGHT_TORTOISE_SHELL_BRACKET=65118]="SMALL_RIGHT_TORTOISE_SHELL_BRACKET",e[e.FULLWIDTH_RIGHT_PARENTHESIS=65289]="FULLWIDTH_RIGHT_PARENTHESIS",e[e.FULLWIDTH_RIGHT_SQUARE_BRACKET=65341]="FULLWIDTH_RIGHT_SQUARE_BRACKET",e[e.FULLWIDTH_RIGHT_CURLY_BRACKET=65373]="FULLWIDTH_RIGHT_CURLY_BRACKET",e[e.FULLWIDTH_RIGHT_WHITE_PARENTHESIS=65376]="FULLWIDTH_RIGHT_WHITE_PARENTHESIS",e[e.HALFWIDTH_RIGHT_CORNER_BRACKET=65379]="HALFWIDTH_RIGHT_CORNER_BRACKET"})(b6||(b6={}));var _6;(function(e){e[e.RIGHT_POINTING_DOUBLE_ANGLE_QUOTATION_MARK=187]="RIGHT_POINTING_DOUBLE_ANGLE_QUOTATION_MARK",e[e.RIGHT_SINGLE_QUOTATION_MARK=8217]="RIGHT_SINGLE_QUOTATION_MARK",e[e.RIGHT_DOUBLE_QUOTATION_MARK=8221]="RIGHT_DOUBLE_QUOTATION_MARK",e[e.SINGLE_RIGHT_POINTING_ANGLE_QUOTATION_MARK=8250]="SINGLE_RIGHT_POINTING_ANGLE_QUOTATION_MARK",e[e.RIGHT_SUBSTITUTION_BRACKET=11779]="RIGHT_SUBSTITUTION_BRACKET",e[e.RIGHT_DOTTED_SUBSTITUTION_BRACKET=11781]="RIGHT_DOTTED_SUBSTITUTION_BRACKET",e[e.RIGHT_TRANSPOSITION_BRACKET=11786]="RIGHT_TRANSPOSITION_BRACKET",e[e.RIGHT_RAISED_OMISSION_BRACKET=11789]="RIGHT_RAISED_OMISSION_BRACKET",e[e.RIGHT_LOW_PARAPHRASE_BRACKET=11805]="RIGHT_LOW_PARAPHRASE_BRACKET",e[e.RIGHT_VERTICAL_BAR_WITH_QUILL=11809]="RIGHT_VERTICAL_BAR_WITH_QUILL"})(_6||(_6={}));var E6;(function(e){e[e.LEFT_POINTING_DOUBLE_ANGLE_QUOTATION_MARK=171]="LEFT_POINTING_DOUBLE_ANGLE_QUOTATION_MARK",e[e.LEFT_SINGLE_QUOTATION_MARK=8216]="LEFT_SINGLE_QUOTATION_MARK",e[e.SINGLE_HIGH_REVERSED_9_QUOTATION_MARK=8219]="SINGLE_HIGH_REVERSED_9_QUOTATION_MARK",e[e.LEFT_DOUBLE_QUOTATION_MARK=8220]="LEFT_DOUBLE_QUOTATION_MARK",e[e.DOUBLE_HIGH_REVERSED_9_QUOTATION_MARK=8223]="DOUBLE_HIGH_REVERSED_9_QUOTATION_MARK",e[e.SINGLE_LEFT_POINTING_ANGLE_QUOTATION_MARK=8249]="SINGLE_LEFT_POINTING_ANGLE_QUOTATION_MARK",e[e.LEFT_SUBSTITUTION_BRACKET=11778]="LEFT_SUBSTITUTION_BRACKET",e[e.LEFT_DOTTED_SUBSTITUTION_BRACKET=11780]="LEFT_DOTTED_SUBSTITUTION_BRACKET",e[e.LEFT_TRANSPOSITION_BRACKET=11785]="LEFT_TRANSPOSITION_BRACKET",e[e.LEFT_RAISED_OMISSION_BRACKET=11788]="LEFT_RAISED_OMISSION_BRACKET",e[e.LEFT_LOW_PARAPHRASE_BRACKET=11804]="LEFT_LOW_PARAPHRASE_BRACKET",e[e.LEFT_VERTICAL_BAR_WITH_QUILL=11808]="LEFT_VERTICAL_BAR_WITH_QUILL"})(E6||(E6={}));var S6;(function(e){e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.NUMBER_SIGN=35]="NUMBER_SIGN",e[e.PERCENT_SIGN=37]="PERCENT_SIGN",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.ASTERISK=42]="ASTERISK",e[e.COMMA=44]="COMMA",e[e.FULL_STOP=46]="FULL_STOP",e[e.SOLIDUS=47]="SOLIDUS",e[e.COLON=58]="COLON",e[e.SEMICOLON=59]="SEMICOLON",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.COMMERCIAL_AT=64]="COMMERCIAL_AT",e[e.REVERSE_SOLIDUS=92]="REVERSE_SOLIDUS",e[e.INVERTED_EXCLAMATION_MARK=161]="INVERTED_EXCLAMATION_MARK",e[e.SECTION_SIGN=167]="SECTION_SIGN",e[e.PILCROW_SIGN=182]="PILCROW_SIGN",e[e.MIDDLE_DOT=183]="MIDDLE_DOT",e[e.INVERTED_QUESTION_MARK=191]="INVERTED_QUESTION_MARK",e[e.GREEK_QUESTION_MARK=894]="GREEK_QUESTION_MARK",e[e.GREEK_ANO_TELEIA=903]="GREEK_ANO_TELEIA",e[e.ARMENIAN_APOSTROPHE=1370]="ARMENIAN_APOSTROPHE",e[e.ARMENIAN_EMPHASIS_MARK=1371]="ARMENIAN_EMPHASIS_MARK",e[e.ARMENIAN_EXCLAMATION_MARK=1372]="ARMENIAN_EXCLAMATION_MARK",e[e.ARMENIAN_COMMA=1373]="ARMENIAN_COMMA",e[e.ARMENIAN_QUESTION_MARK=1374]="ARMENIAN_QUESTION_MARK",e[e.ARMENIAN_ABBREVIATION_MARK=1375]="ARMENIAN_ABBREVIATION_MARK",e[e.ARMENIAN_FULL_STOP=1417]="ARMENIAN_FULL_STOP",e[e.HEBREW_PUNCTUATION_PASEQ=1472]="HEBREW_PUNCTUATION_PASEQ",e[e.HEBREW_PUNCTUATION_SOF_PASUQ=1475]="HEBREW_PUNCTUATION_SOF_PASUQ",e[e.HEBREW_PUNCTUATION_NUN_HAFUKHA=1478]="HEBREW_PUNCTUATION_NUN_HAFUKHA",e[e.HEBREW_PUNCTUATION_GERESH=1523]="HEBREW_PUNCTUATION_GERESH",e[e.HEBREW_PUNCTUATION_GERSHAYIM=1524]="HEBREW_PUNCTUATION_GERSHAYIM",e[e.ARABIC_INDIC_PER_MILLE_SIGN=1545]="ARABIC_INDIC_PER_MILLE_SIGN",e[e.ARABIC_INDIC_PER_TEN_THOUSAND_SIGN=1546]="ARABIC_INDIC_PER_TEN_THOUSAND_SIGN",e[e.ARABIC_COMMA=1548]="ARABIC_COMMA",e[e.ARABIC_DATE_SEPARATOR=1549]="ARABIC_DATE_SEPARATOR",e[e.ARABIC_SEMICOLON=1563]="ARABIC_SEMICOLON",e[e.ARABIC_TRIPLE_DOT_PUNCTUATION_MARK=1566]="ARABIC_TRIPLE_DOT_PUNCTUATION_MARK",e[e.ARABIC_QUESTION_MARK=1567]="ARABIC_QUESTION_MARK",e[e.ARABIC_PERCENT_SIGN=1642]="ARABIC_PERCENT_SIGN",e[e.ARABIC_DECIMAL_SEPARATOR=1643]="ARABIC_DECIMAL_SEPARATOR",e[e.ARABIC_THOUSANDS_SEPARATOR=1644]="ARABIC_THOUSANDS_SEPARATOR",e[e.ARABIC_FIVE_POINTED_STAR=1645]="ARABIC_FIVE_POINTED_STAR",e[e.ARABIC_FULL_STOP=1748]="ARABIC_FULL_STOP",e[e.SYRIAC_END_OF_PARAGRAPH=1792]="SYRIAC_END_OF_PARAGRAPH",e[e.SYRIAC_SUPRALINEAR_FULL_STOP=1793]="SYRIAC_SUPRALINEAR_FULL_STOP",e[e.SYRIAC_SUBLINEAR_FULL_STOP=1794]="SYRIAC_SUBLINEAR_FULL_STOP",e[e.SYRIAC_SUPRALINEAR_COLON=1795]="SYRIAC_SUPRALINEAR_COLON",e[e.SYRIAC_SUBLINEAR_COLON=1796]="SYRIAC_SUBLINEAR_COLON",e[e.SYRIAC_HORIZONTAL_COLON=1797]="SYRIAC_HORIZONTAL_COLON",e[e.SYRIAC_COLON_SKEWED_LEFT=1798]="SYRIAC_COLON_SKEWED_LEFT",e[e.SYRIAC_COLON_SKEWED_RIGHT=1799]="SYRIAC_COLON_SKEWED_RIGHT",e[e.SYRIAC_SUPRALINEAR_COLON_SKEWED_LEFT=1800]="SYRIAC_SUPRALINEAR_COLON_SKEWED_LEFT",e[e.SYRIAC_SUBLINEAR_COLON_SKEWED_RIGHT=1801]="SYRIAC_SUBLINEAR_COLON_SKEWED_RIGHT",e[e.SYRIAC_CONTRACTION=1802]="SYRIAC_CONTRACTION",e[e.SYRIAC_HARKLEAN_OBELUS=1803]="SYRIAC_HARKLEAN_OBELUS",e[e.SYRIAC_HARKLEAN_METOBELUS=1804]="SYRIAC_HARKLEAN_METOBELUS",e[e.SYRIAC_HARKLEAN_ASTERISCUS=1805]="SYRIAC_HARKLEAN_ASTERISCUS",e[e.NKO_SYMBOL_GBAKURUNEN=2039]="NKO_SYMBOL_GBAKURUNEN",e[e.NKO_COMMA=2040]="NKO_COMMA",e[e.NKO_EXCLAMATION_MARK=2041]="NKO_EXCLAMATION_MARK",e[e.SAMARITAN_PUNCTUATION_NEQUDAA=2096]="SAMARITAN_PUNCTUATION_NEQUDAA",e[e.SAMARITAN_PUNCTUATION_AFSAAQ=2097]="SAMARITAN_PUNCTUATION_AFSAAQ",e[e.SAMARITAN_PUNCTUATION_ANGED=2098]="SAMARITAN_PUNCTUATION_ANGED",e[e.SAMARITAN_PUNCTUATION_BAU=2099]="SAMARITAN_PUNCTUATION_BAU",e[e.SAMARITAN_PUNCTUATION_ATMAAU=2100]="SAMARITAN_PUNCTUATION_ATMAAU",e[e.SAMARITAN_PUNCTUATION_SHIYYAALAA=2101]="SAMARITAN_PUNCTUATION_SHIYYAALAA",e[e.SAMARITAN_ABBREVIATION_MARK=2102]="SAMARITAN_ABBREVIATION_MARK",e[e.SAMARITAN_PUNCTUATION_MELODIC_QITSA=2103]="SAMARITAN_PUNCTUATION_MELODIC_QITSA",e[e.SAMARITAN_PUNCTUATION_ZIQAA=2104]="SAMARITAN_PUNCTUATION_ZIQAA",e[e.SAMARITAN_PUNCTUATION_QITSA=2105]="SAMARITAN_PUNCTUATION_QITSA",e[e.SAMARITAN_PUNCTUATION_ZAEF=2106]="SAMARITAN_PUNCTUATION_ZAEF",e[e.SAMARITAN_PUNCTUATION_TURU=2107]="SAMARITAN_PUNCTUATION_TURU",e[e.SAMARITAN_PUNCTUATION_ARKAANU=2108]="SAMARITAN_PUNCTUATION_ARKAANU",e[e.SAMARITAN_PUNCTUATION_SOF_MASHFAAT=2109]="SAMARITAN_PUNCTUATION_SOF_MASHFAAT",e[e.SAMARITAN_PUNCTUATION_ANNAAU=2110]="SAMARITAN_PUNCTUATION_ANNAAU",e[e.MANDAIC_PUNCTUATION=2142]="MANDAIC_PUNCTUATION",e[e.DEVANAGARI_DANDA=2404]="DEVANAGARI_DANDA",e[e.DEVANAGARI_DOUBLE_DANDA=2405]="DEVANAGARI_DOUBLE_DANDA",e[e.DEVANAGARI_ABBREVIATION_SIGN=2416]="DEVANAGARI_ABBREVIATION_SIGN",e[e.BENGALI_ABBREVIATION_SIGN=2557]="BENGALI_ABBREVIATION_SIGN",e[e.GURMUKHI_ABBREVIATION_SIGN=2678]="GURMUKHI_ABBREVIATION_SIGN",e[e.GUJARATI_ABBREVIATION_SIGN=2800]="GUJARATI_ABBREVIATION_SIGN",e[e.TELUGU_SIGN_SIDDHAM=3191]="TELUGU_SIGN_SIDDHAM",e[e.KANNADA_SIGN_SIDDHAM=3204]="KANNADA_SIGN_SIDDHAM",e[e.SINHALA_PUNCTUATION_KUNDDALIYA=3572]="SINHALA_PUNCTUATION_KUNDDALIYA",e[e.THAI_CHARACTER_FONGMAN=3663]="THAI_CHARACTER_FONGMAN",e[e.THAI_CHARACTER_ANGKHANKHU=3674]="THAI_CHARACTER_ANGKHANKHU",e[e.THAI_CHARACTER_KHOMUT=3675]="THAI_CHARACTER_KHOMUT",e[e.TIBETAN_MARK_INITIAL_YIG_MGO_MDUN_MA=3844]="TIBETAN_MARK_INITIAL_YIG_MGO_MDUN_MA",e[e.TIBETAN_MARK_CLOSING_YIG_MGO_SGAB_MA=3845]="TIBETAN_MARK_CLOSING_YIG_MGO_SGAB_MA",e[e.TIBETAN_MARK_CARET_YIG_MGO_PHUR_SHAD_MA=3846]="TIBETAN_MARK_CARET_YIG_MGO_PHUR_SHAD_MA",e[e.TIBETAN_MARK_YIG_MGO_TSHEG_SHAD_MA=3847]="TIBETAN_MARK_YIG_MGO_TSHEG_SHAD_MA",e[e.TIBETAN_MARK_SBRUL_SHAD=3848]="TIBETAN_MARK_SBRUL_SHAD",e[e.TIBETAN_MARK_BSKUR_YIG_MGO=3849]="TIBETAN_MARK_BSKUR_YIG_MGO",e[e.TIBETAN_MARK_BKA__SHOG_YIG_MGO=3850]="TIBETAN_MARK_BKA__SHOG_YIG_MGO",e[e.TIBETAN_MARK_INTERSYLLABIC_TSHEG=3851]="TIBETAN_MARK_INTERSYLLABIC_TSHEG",e[e.TIBETAN_MARK_DELIMITER_TSHEG_BSTAR=3852]="TIBETAN_MARK_DELIMITER_TSHEG_BSTAR",e[e.TIBETAN_MARK_SHAD=3853]="TIBETAN_MARK_SHAD",e[e.TIBETAN_MARK_NYIS_SHAD=3854]="TIBETAN_MARK_NYIS_SHAD",e[e.TIBETAN_MARK_TSHEG_SHAD=3855]="TIBETAN_MARK_TSHEG_SHAD",e[e.TIBETAN_MARK_NYIS_TSHEG_SHAD=3856]="TIBETAN_MARK_NYIS_TSHEG_SHAD",e[e.TIBETAN_MARK_RIN_CHEN_SPUNGS_SHAD=3857]="TIBETAN_MARK_RIN_CHEN_SPUNGS_SHAD",e[e.TIBETAN_MARK_RGYA_GRAM_SHAD=3858]="TIBETAN_MARK_RGYA_GRAM_SHAD",e[e.TIBETAN_MARK_GTER_TSHEG=3860]="TIBETAN_MARK_GTER_TSHEG",e[e.TIBETAN_MARK_PALUTA=3973]="TIBETAN_MARK_PALUTA",e[e.TIBETAN_MARK_BSKA__SHOG_GI_MGO_RGYAN=4048]="TIBETAN_MARK_BSKA__SHOG_GI_MGO_RGYAN",e[e.TIBETAN_MARK_MNYAM_YIG_GI_MGO_RGYAN=4049]="TIBETAN_MARK_MNYAM_YIG_GI_MGO_RGYAN",e[e.TIBETAN_MARK_NYIS_TSHEG=4050]="TIBETAN_MARK_NYIS_TSHEG",e[e.TIBETAN_MARK_INITIAL_BRDA_RNYING_YIG_MGO_MDUN_MA=4051]="TIBETAN_MARK_INITIAL_BRDA_RNYING_YIG_MGO_MDUN_MA",e[e.TIBETAN_MARK_CLOSING_BRDA_RNYING_YIG_MGO_SGAB_MA=4052]="TIBETAN_MARK_CLOSING_BRDA_RNYING_YIG_MGO_SGAB_MA",e[e.TIBETAN_MARK_LEADING_MCHAN_RTAGS=4057]="TIBETAN_MARK_LEADING_MCHAN_RTAGS",e[e.TIBETAN_MARK_TRAILING_MCHAN_RTAGS=4058]="TIBETAN_MARK_TRAILING_MCHAN_RTAGS",e[e.MYANMAR_SIGN_LITTLE_SECTION=4170]="MYANMAR_SIGN_LITTLE_SECTION",e[e.MYANMAR_SIGN_SECTION=4171]="MYANMAR_SIGN_SECTION",e[e.MYANMAR_SYMBOL_LOCATIVE=4172]="MYANMAR_SYMBOL_LOCATIVE",e[e.MYANMAR_SYMBOL_COMPLETED=4173]="MYANMAR_SYMBOL_COMPLETED",e[e.MYANMAR_SYMBOL_AFOREMENTIONED=4174]="MYANMAR_SYMBOL_AFOREMENTIONED",e[e.MYANMAR_SYMBOL_GENITIVE=4175]="MYANMAR_SYMBOL_GENITIVE",e[e.GEORGIAN_PARAGRAPH_SEPARATOR=4347]="GEORGIAN_PARAGRAPH_SEPARATOR",e[e.ETHIOPIC_SECTION_MARK=4960]="ETHIOPIC_SECTION_MARK",e[e.ETHIOPIC_WORDSPACE=4961]="ETHIOPIC_WORDSPACE",e[e.ETHIOPIC_FULL_STOP=4962]="ETHIOPIC_FULL_STOP",e[e.ETHIOPIC_COMMA=4963]="ETHIOPIC_COMMA",e[e.ETHIOPIC_SEMICOLON=4964]="ETHIOPIC_SEMICOLON",e[e.ETHIOPIC_COLON=4965]="ETHIOPIC_COLON",e[e.ETHIOPIC_PREFACE_COLON=4966]="ETHIOPIC_PREFACE_COLON",e[e.ETHIOPIC_QUESTION_MARK=4967]="ETHIOPIC_QUESTION_MARK",e[e.ETHIOPIC_PARAGRAPH_SEPARATOR=4968]="ETHIOPIC_PARAGRAPH_SEPARATOR",e[e.CANADIAN_SYLLABICS_FULL_STOP=5742]="CANADIAN_SYLLABICS_FULL_STOP",e[e.RUNIC_SINGLE_PUNCTUATION=5867]="RUNIC_SINGLE_PUNCTUATION",e[e.RUNIC_MULTIPLE_PUNCTUATION=5868]="RUNIC_MULTIPLE_PUNCTUATION",e[e.RUNIC_CROSS_PUNCTUATION=5869]="RUNIC_CROSS_PUNCTUATION",e[e.PHILIPPINE_SINGLE_PUNCTUATION=5941]="PHILIPPINE_SINGLE_PUNCTUATION",e[e.PHILIPPINE_DOUBLE_PUNCTUATION=5942]="PHILIPPINE_DOUBLE_PUNCTUATION",e[e.KHMER_SIGN_KHAN=6100]="KHMER_SIGN_KHAN",e[e.KHMER_SIGN_BARIYOOSAN=6101]="KHMER_SIGN_BARIYOOSAN",e[e.KHMER_SIGN_CAMNUC_PII_KUUH=6102]="KHMER_SIGN_CAMNUC_PII_KUUH",e[e.KHMER_SIGN_BEYYAL=6104]="KHMER_SIGN_BEYYAL",e[e.KHMER_SIGN_PHNAEK_MUAN=6105]="KHMER_SIGN_PHNAEK_MUAN",e[e.KHMER_SIGN_KOOMUUT=6106]="KHMER_SIGN_KOOMUUT",e[e.MONGOLIAN_BIRGA=6144]="MONGOLIAN_BIRGA",e[e.MONGOLIAN_ELLIPSIS=6145]="MONGOLIAN_ELLIPSIS",e[e.MONGOLIAN_COMMA=6146]="MONGOLIAN_COMMA",e[e.MONGOLIAN_FULL_STOP=6147]="MONGOLIAN_FULL_STOP",e[e.MONGOLIAN_COLON=6148]="MONGOLIAN_COLON",e[e.MONGOLIAN_FOUR_DOTS=6149]="MONGOLIAN_FOUR_DOTS",e[e.MONGOLIAN_SIBE_SYLLABLE_BOUNDARY_MARKER=6151]="MONGOLIAN_SIBE_SYLLABLE_BOUNDARY_MARKER",e[e.MONGOLIAN_MANCHU_COMMA=6152]="MONGOLIAN_MANCHU_COMMA",e[e.MONGOLIAN_MANCHU_FULL_STOP=6153]="MONGOLIAN_MANCHU_FULL_STOP",e[e.MONGOLIAN_NIRUGU=6154]="MONGOLIAN_NIRUGU",e[e.LIMBU_EXCLAMATION_MARK=6468]="LIMBU_EXCLAMATION_MARK",e[e.LIMBU_QUESTION_MARK=6469]="LIMBU_QUESTION_MARK",e[e.BUGINESE_PALLAWA=6686]="BUGINESE_PALLAWA",e[e.BUGINESE_END_OF_SECTION=6687]="BUGINESE_END_OF_SECTION",e[e.TAI_THAM_SIGN_WIANG=6816]="TAI_THAM_SIGN_WIANG",e[e.TAI_THAM_SIGN_WIANGWAAK=6817]="TAI_THAM_SIGN_WIANGWAAK",e[e.TAI_THAM_SIGN_SAWAN=6818]="TAI_THAM_SIGN_SAWAN",e[e.TAI_THAM_SIGN_KEOW=6819]="TAI_THAM_SIGN_KEOW",e[e.TAI_THAM_SIGN_HOY=6820]="TAI_THAM_SIGN_HOY",e[e.TAI_THAM_SIGN_DOKMAI=6821]="TAI_THAM_SIGN_DOKMAI",e[e.TAI_THAM_SIGN_REVERSED_ROTATED_RANA=6822]="TAI_THAM_SIGN_REVERSED_ROTATED_RANA",e[e.TAI_THAM_SIGN_KAAN=6824]="TAI_THAM_SIGN_KAAN",e[e.TAI_THAM_SIGN_KAANKUU=6825]="TAI_THAM_SIGN_KAANKUU",e[e.TAI_THAM_SIGN_SATKAAN=6826]="TAI_THAM_SIGN_SATKAAN",e[e.TAI_THAM_SIGN_SATKAANKUU=6827]="TAI_THAM_SIGN_SATKAANKUU",e[e.TAI_THAM_SIGN_HANG=6828]="TAI_THAM_SIGN_HANG",e[e.TAI_THAM_SIGN_CAANG=6829]="TAI_THAM_SIGN_CAANG",e[e.BALINESE_PANTI=7002]="BALINESE_PANTI",e[e.BALINESE_PAMADA=7003]="BALINESE_PAMADA",e[e.BALINESE_WINDU=7004]="BALINESE_WINDU",e[e.BALINESE_CARIK_PAMUNGKAH=7005]="BALINESE_CARIK_PAMUNGKAH",e[e.BALINESE_CARIK_SIKI=7006]="BALINESE_CARIK_SIKI",e[e.BALINESE_CARIK_PAREREN=7007]="BALINESE_CARIK_PAREREN",e[e.BALINESE_PAMENENG=7008]="BALINESE_PAMENENG",e[e.BATAK_SYMBOL_BINDU_NA_METEK=7164]="BATAK_SYMBOL_BINDU_NA_METEK",e[e.BATAK_SYMBOL_BINDU_PINARBORAS=7165]="BATAK_SYMBOL_BINDU_PINARBORAS",e[e.BATAK_SYMBOL_BINDU_JUDUL=7166]="BATAK_SYMBOL_BINDU_JUDUL",e[e.BATAK_SYMBOL_BINDU_PANGOLAT=7167]="BATAK_SYMBOL_BINDU_PANGOLAT",e[e.LEPCHA_PUNCTUATION_TA_ROL=7227]="LEPCHA_PUNCTUATION_TA_ROL",e[e.LEPCHA_PUNCTUATION_NYET_THYOOM_TA_ROL=7228]="LEPCHA_PUNCTUATION_NYET_THYOOM_TA_ROL",e[e.LEPCHA_PUNCTUATION_CER_WA=7229]="LEPCHA_PUNCTUATION_CER_WA",e[e.LEPCHA_PUNCTUATION_TSHOOK_CER_WA=7230]="LEPCHA_PUNCTUATION_TSHOOK_CER_WA",e[e.LEPCHA_PUNCTUATION_TSHOOK=7231]="LEPCHA_PUNCTUATION_TSHOOK",e[e.OL_CHIKI_PUNCTUATION_MUCAAD=7294]="OL_CHIKI_PUNCTUATION_MUCAAD",e[e.OL_CHIKI_PUNCTUATION_DOUBLE_MUCAAD=7295]="OL_CHIKI_PUNCTUATION_DOUBLE_MUCAAD",e[e.SUNDANESE_PUNCTUATION_BINDU_SURYA=7360]="SUNDANESE_PUNCTUATION_BINDU_SURYA",e[e.SUNDANESE_PUNCTUATION_BINDU_PANGLONG=7361]="SUNDANESE_PUNCTUATION_BINDU_PANGLONG",e[e.SUNDANESE_PUNCTUATION_BINDU_PURNAMA=7362]="SUNDANESE_PUNCTUATION_BINDU_PURNAMA",e[e.SUNDANESE_PUNCTUATION_BINDU_CAKRA=7363]="SUNDANESE_PUNCTUATION_BINDU_CAKRA",e[e.SUNDANESE_PUNCTUATION_BINDU_LEU_SATANGA=7364]="SUNDANESE_PUNCTUATION_BINDU_LEU_SATANGA",e[e.SUNDANESE_PUNCTUATION_BINDU_KA_SATANGA=7365]="SUNDANESE_PUNCTUATION_BINDU_KA_SATANGA",e[e.SUNDANESE_PUNCTUATION_BINDU_DA_SATANGA=7366]="SUNDANESE_PUNCTUATION_BINDU_DA_SATANGA",e[e.SUNDANESE_PUNCTUATION_BINDU_BA_SATANGA=7367]="SUNDANESE_PUNCTUATION_BINDU_BA_SATANGA",e[e.VEDIC_SIGN_NIHSHVASA=7379]="VEDIC_SIGN_NIHSHVASA",e[e.DOUBLE_VERTICAL_LINE=8214]="DOUBLE_VERTICAL_LINE",e[e.DOUBLE_LOW_LINE=8215]="DOUBLE_LOW_LINE",e[e.DAGGER=8224]="DAGGER",e[e.DOUBLE_DAGGER=8225]="DOUBLE_DAGGER",e[e.BULLET=8226]="BULLET",e[e.TRIANGULAR_BULLET=8227]="TRIANGULAR_BULLET",e[e.ONE_DOT_LEADER=8228]="ONE_DOT_LEADER",e[e.TWO_DOT_LEADER=8229]="TWO_DOT_LEADER",e[e.HORIZONTAL_ELLIPSIS=8230]="HORIZONTAL_ELLIPSIS",e[e.HYPHENATION_POINT=8231]="HYPHENATION_POINT",e[e.PER_MILLE_SIGN=8240]="PER_MILLE_SIGN",e[e.PER_TEN_THOUSAND_SIGN=8241]="PER_TEN_THOUSAND_SIGN",e[e.PRIME=8242]="PRIME",e[e.DOUBLE_PRIME=8243]="DOUBLE_PRIME",e[e.TRIPLE_PRIME=8244]="TRIPLE_PRIME",e[e.REVERSED_PRIME=8245]="REVERSED_PRIME",e[e.REVERSED_DOUBLE_PRIME=8246]="REVERSED_DOUBLE_PRIME",e[e.REVERSED_TRIPLE_PRIME=8247]="REVERSED_TRIPLE_PRIME",e[e.CARET=8248]="CARET",e[e.REFERENCE_MARK=8251]="REFERENCE_MARK",e[e.DOUBLE_EXCLAMATION_MARK=8252]="DOUBLE_EXCLAMATION_MARK",e[e.INTERROBANG=8253]="INTERROBANG",e[e.OVERLINE=8254]="OVERLINE",e[e.CARET_INSERTION_POINT=8257]="CARET_INSERTION_POINT",e[e.ASTERISM=8258]="ASTERISM",e[e.HYPHEN_BULLET=8259]="HYPHEN_BULLET",e[e.DOUBLE_QUESTION_MARK=8263]="DOUBLE_QUESTION_MARK",e[e.QUESTION_EXCLAMATION_MARK=8264]="QUESTION_EXCLAMATION_MARK",e[e.EXCLAMATION_QUESTION_MARK=8265]="EXCLAMATION_QUESTION_MARK",e[e.TIRONIAN_SIGN_ET=8266]="TIRONIAN_SIGN_ET",e[e.REVERSED_PILCROW_SIGN=8267]="REVERSED_PILCROW_SIGN",e[e.BLACK_LEFTWARDS_BULLET=8268]="BLACK_LEFTWARDS_BULLET",e[e.BLACK_RIGHTWARDS_BULLET=8269]="BLACK_RIGHTWARDS_BULLET",e[e.LOW_ASTERISK=8270]="LOW_ASTERISK",e[e.REVERSED_SEMICOLON=8271]="REVERSED_SEMICOLON",e[e.CLOSE_UP=8272]="CLOSE_UP",e[e.TWO_ASTERISKS_ALIGNED_VERTICALLY=8273]="TWO_ASTERISKS_ALIGNED_VERTICALLY",e[e.SWUNG_DASH=8275]="SWUNG_DASH",e[e.FLOWER_PUNCTUATION_MARK=8277]="FLOWER_PUNCTUATION_MARK",e[e.THREE_DOT_PUNCTUATION=8278]="THREE_DOT_PUNCTUATION",e[e.QUADRUPLE_PRIME=8279]="QUADRUPLE_PRIME",e[e.FOUR_DOT_PUNCTUATION=8280]="FOUR_DOT_PUNCTUATION",e[e.FIVE_DOT_PUNCTUATION=8281]="FIVE_DOT_PUNCTUATION",e[e.TWO_DOT_PUNCTUATION=8282]="TWO_DOT_PUNCTUATION",e[e.FOUR_DOT_MARK=8283]="FOUR_DOT_MARK",e[e.DOTTED_CROSS=8284]="DOTTED_CROSS",e[e.TRICOLON=8285]="TRICOLON",e[e.VERTICAL_FOUR_DOTS=8286]="VERTICAL_FOUR_DOTS",e[e.COPTIC_OLD_NUBIAN_FULL_STOP=11513]="COPTIC_OLD_NUBIAN_FULL_STOP",e[e.COPTIC_OLD_NUBIAN_DIRECT_QUESTION_MARK=11514]="COPTIC_OLD_NUBIAN_DIRECT_QUESTION_MARK",e[e.COPTIC_OLD_NUBIAN_INDIRECT_QUESTION_MARK=11515]="COPTIC_OLD_NUBIAN_INDIRECT_QUESTION_MARK",e[e.COPTIC_OLD_NUBIAN_VERSE_DIVIDER=11516]="COPTIC_OLD_NUBIAN_VERSE_DIVIDER",e[e.COPTIC_FULL_STOP=11518]="COPTIC_FULL_STOP",e[e.COPTIC_MORPHOLOGICAL_DIVIDER=11519]="COPTIC_MORPHOLOGICAL_DIVIDER",e[e.TIFINAGH_SEPARATOR_MARK=11632]="TIFINAGH_SEPARATOR_MARK",e[e.RIGHT_ANGLE_SUBSTITUTION_MARKER=11776]="RIGHT_ANGLE_SUBSTITUTION_MARKER",e[e.RIGHT_ANGLE_DOTTED_SUBSTITUTION_MARKER=11777]="RIGHT_ANGLE_DOTTED_SUBSTITUTION_MARKER",e[e.RAISED_INTERPOLATION_MARKER=11782]="RAISED_INTERPOLATION_MARKER",e[e.RAISED_DOTTED_INTERPOLATION_MARKER=11783]="RAISED_DOTTED_INTERPOLATION_MARKER",e[e.DOTTED_TRANSPOSITION_MARKER=11784]="DOTTED_TRANSPOSITION_MARKER",e[e.RAISED_SQUARE=11787]="RAISED_SQUARE",e[e.EDITORIAL_CORONIS=11790]="EDITORIAL_CORONIS",e[e.PARAGRAPHOS=11791]="PARAGRAPHOS",e[e.FORKED_PARAGRAPHOS=11792]="FORKED_PARAGRAPHOS",e[e.REVERSED_FORKED_PARAGRAPHOS=11793]="REVERSED_FORKED_PARAGRAPHOS",e[e.HYPODIASTOLE=11794]="HYPODIASTOLE",e[e.DOTTED_OBELOS=11795]="DOTTED_OBELOS",e[e.DOWNWARDS_ANCORA=11796]="DOWNWARDS_ANCORA",e[e.UPWARDS_ANCORA=11797]="UPWARDS_ANCORA",e[e.DOTTED_RIGHT_POINTING_ANGLE=11798]="DOTTED_RIGHT_POINTING_ANGLE",e[e.INVERTED_INTERROBANG=11800]="INVERTED_INTERROBANG",e[e.PALM_BRANCH=11801]="PALM_BRANCH",e[e.TILDE_WITH_RING_ABOVE=11803]="TILDE_WITH_RING_ABOVE",e[e.TILDE_WITH_DOT_ABOVE=11806]="TILDE_WITH_DOT_ABOVE",e[e.TILDE_WITH_DOT_BELOW=11807]="TILDE_WITH_DOT_BELOW",e[e.TWO_DOTS_OVER_ONE_DOT_PUNCTUATION=11818]="TWO_DOTS_OVER_ONE_DOT_PUNCTUATION",e[e.ONE_DOT_OVER_TWO_DOTS_PUNCTUATION=11819]="ONE_DOT_OVER_TWO_DOTS_PUNCTUATION",e[e.SQUARED_FOUR_DOT_PUNCTUATION=11820]="SQUARED_FOUR_DOT_PUNCTUATION",e[e.FIVE_DOT_MARK=11821]="FIVE_DOT_MARK",e[e.REVERSED_QUESTION_MARK=11822]="REVERSED_QUESTION_MARK",e[e.RING_POINT=11824]="RING_POINT",e[e.WORD_SEPARATOR_MIDDLE_DOT=11825]="WORD_SEPARATOR_MIDDLE_DOT",e[e.TURNED_COMMA=11826]="TURNED_COMMA",e[e.RAISED_DOT=11827]="RAISED_DOT",e[e.RAISED_COMMA=11828]="RAISED_COMMA",e[e.TURNED_SEMICOLON=11829]="TURNED_SEMICOLON",e[e.DAGGER_WITH_LEFT_GUARD=11830]="DAGGER_WITH_LEFT_GUARD",e[e.DAGGER_WITH_RIGHT_GUARD=11831]="DAGGER_WITH_RIGHT_GUARD",e[e.TURNED_DAGGER=11832]="TURNED_DAGGER",e[e.TOP_HALF_SECTION_SIGN=11833]="TOP_HALF_SECTION_SIGN",e[e.STENOGRAPHIC_FULL_STOP=11836]="STENOGRAPHIC_FULL_STOP",e[e.VERTICAL_SIX_DOTS=11837]="VERTICAL_SIX_DOTS",e[e.WIGGLY_VERTICAL_LINE=11838]="WIGGLY_VERTICAL_LINE",e[e.CAPITULUM=11839]="CAPITULUM",e[e.REVERSED_COMMA=11841]="REVERSED_COMMA",e[e.DASH_WITH_LEFT_UPTURN=11843]="DASH_WITH_LEFT_UPTURN",e[e.DOUBLE_SUSPENSION_MARK=11844]="DOUBLE_SUSPENSION_MARK",e[e.INVERTED_LOW_KAVYKA=11845]="INVERTED_LOW_KAVYKA",e[e.INVERTED_LOW_KAVYKA_WITH_KAVYKA_ABOVE=11846]="INVERTED_LOW_KAVYKA_WITH_KAVYKA_ABOVE",e[e.LOW_KAVYKA=11847]="LOW_KAVYKA",e[e.LOW_KAVYKA_WITH_DOT=11848]="LOW_KAVYKA_WITH_DOT",e[e.DOUBLE_STACKED_COMMA=11849]="DOUBLE_STACKED_COMMA",e[e.DOTTED_SOLIDUS=11850]="DOTTED_SOLIDUS",e[e.TRIPLE_DAGGER=11851]="TRIPLE_DAGGER",e[e.MEDIEVAL_COMMA=11852]="MEDIEVAL_COMMA",e[e.PARAGRAPHUS_MARK=11853]="PARAGRAPHUS_MARK",e[e.PUNCTUS_ELEVATUS_MARK=11854]="PUNCTUS_ELEVATUS_MARK",e[e.CORNISH_VERSE_DIVIDER=11855]="CORNISH_VERSE_DIVIDER",e[e.TIRONIAN_SIGN_CAPITAL_ET=11858]="TIRONIAN_SIGN_CAPITAL_ET",e[e.IDEOGRAPHIC_COMMA=12289]="IDEOGRAPHIC_COMMA",e[e.IDEOGRAPHIC_FULL_STOP=12290]="IDEOGRAPHIC_FULL_STOP",e[e.DITTO_MARK=12291]="DITTO_MARK",e[e.PART_ALTERNATION_MARK=12349]="PART_ALTERNATION_MARK",e[e.KATAKANA_MIDDLE_DOT=12539]="KATAKANA_MIDDLE_DOT",e[e.LISU_PUNCTUATION_COMMA=42238]="LISU_PUNCTUATION_COMMA",e[e.LISU_PUNCTUATION_FULL_STOP=42239]="LISU_PUNCTUATION_FULL_STOP",e[e.VAI_COMMA=42509]="VAI_COMMA",e[e.VAI_FULL_STOP=42510]="VAI_FULL_STOP",e[e.VAI_QUESTION_MARK=42511]="VAI_QUESTION_MARK",e[e.SLAVONIC_ASTERISK=42611]="SLAVONIC_ASTERISK",e[e.CYRILLIC_KAVYKA=42622]="CYRILLIC_KAVYKA",e[e.BAMUM_NJAEMLI=42738]="BAMUM_NJAEMLI",e[e.BAMUM_FULL_STOP=42739]="BAMUM_FULL_STOP",e[e.BAMUM_COLON=42740]="BAMUM_COLON",e[e.BAMUM_COMMA=42741]="BAMUM_COMMA",e[e.BAMUM_SEMICOLON=42742]="BAMUM_SEMICOLON",e[e.BAMUM_QUESTION_MARK=42743]="BAMUM_QUESTION_MARK",e[e.PHAGS_PA_SINGLE_HEAD_MARK=43124]="PHAGS_PA_SINGLE_HEAD_MARK",e[e.PHAGS_PA_DOUBLE_HEAD_MARK=43125]="PHAGS_PA_DOUBLE_HEAD_MARK",e[e.PHAGS_PA_MARK_SHAD=43126]="PHAGS_PA_MARK_SHAD",e[e.PHAGS_PA_MARK_DOUBLE_SHAD=43127]="PHAGS_PA_MARK_DOUBLE_SHAD",e[e.SAURASHTRA_DANDA=43214]="SAURASHTRA_DANDA",e[e.SAURASHTRA_DOUBLE_DANDA=43215]="SAURASHTRA_DOUBLE_DANDA",e[e.DEVANAGARI_SIGN_PUSHPIKA=43256]="DEVANAGARI_SIGN_PUSHPIKA",e[e.DEVANAGARI_GAP_FILLER=43257]="DEVANAGARI_GAP_FILLER",e[e.DEVANAGARI_CARET=43258]="DEVANAGARI_CARET",e[e.DEVANAGARI_SIGN_SIDDHAM=43260]="DEVANAGARI_SIGN_SIDDHAM",e[e.KAYAH_LI_SIGN_CWI=43310]="KAYAH_LI_SIGN_CWI",e[e.KAYAH_LI_SIGN_SHYA=43311]="KAYAH_LI_SIGN_SHYA",e[e.REJANG_SECTION_MARK=43359]="REJANG_SECTION_MARK",e[e.JAVANESE_LEFT_RERENGGAN=43457]="JAVANESE_LEFT_RERENGGAN",e[e.JAVANESE_RIGHT_RERENGGAN=43458]="JAVANESE_RIGHT_RERENGGAN",e[e.JAVANESE_PADA_ANDAP=43459]="JAVANESE_PADA_ANDAP",e[e.JAVANESE_PADA_MADYA=43460]="JAVANESE_PADA_MADYA",e[e.JAVANESE_PADA_LUHUR=43461]="JAVANESE_PADA_LUHUR",e[e.JAVANESE_PADA_WINDU=43462]="JAVANESE_PADA_WINDU",e[e.JAVANESE_PADA_PANGKAT=43463]="JAVANESE_PADA_PANGKAT",e[e.JAVANESE_PADA_LINGSA=43464]="JAVANESE_PADA_LINGSA",e[e.JAVANESE_PADA_LUNGSI=43465]="JAVANESE_PADA_LUNGSI",e[e.JAVANESE_PADA_ADEG=43466]="JAVANESE_PADA_ADEG",e[e.JAVANESE_PADA_ADEG_ADEG=43467]="JAVANESE_PADA_ADEG_ADEG",e[e.JAVANESE_PADA_PISELEH=43468]="JAVANESE_PADA_PISELEH",e[e.JAVANESE_TURNED_PADA_PISELEH=43469]="JAVANESE_TURNED_PADA_PISELEH",e[e.JAVANESE_PADA_TIRTA_TUMETES=43486]="JAVANESE_PADA_TIRTA_TUMETES",e[e.JAVANESE_PADA_ISEN_ISEN=43487]="JAVANESE_PADA_ISEN_ISEN",e[e.CHAM_PUNCTUATION_SPIRAL=43612]="CHAM_PUNCTUATION_SPIRAL",e[e.CHAM_PUNCTUATION_DANDA=43613]="CHAM_PUNCTUATION_DANDA",e[e.CHAM_PUNCTUATION_DOUBLE_DANDA=43614]="CHAM_PUNCTUATION_DOUBLE_DANDA",e[e.CHAM_PUNCTUATION_TRIPLE_DANDA=43615]="CHAM_PUNCTUATION_TRIPLE_DANDA",e[e.TAI_VIET_SYMBOL_HO_HOI=43742]="TAI_VIET_SYMBOL_HO_HOI",e[e.TAI_VIET_SYMBOL_KOI_KOI=43743]="TAI_VIET_SYMBOL_KOI_KOI",e[e.MEETEI_MAYEK_CHEIKHAN=43760]="MEETEI_MAYEK_CHEIKHAN",e[e.MEETEI_MAYEK_AHANG_KHUDAM=43761]="MEETEI_MAYEK_AHANG_KHUDAM",e[e.MEETEI_MAYEK_CHEIKHEI=44011]="MEETEI_MAYEK_CHEIKHEI",e[e.PRESENTATION_FORM_FOR_VERTICAL_COMMA=65040]="PRESENTATION_FORM_FOR_VERTICAL_COMMA",e[e.PRESENTATION_FORM_FOR_VERTICAL_IDEOGRAPHIC_COMMA=65041]="PRESENTATION_FORM_FOR_VERTICAL_IDEOGRAPHIC_COMMA",e[e.PRESENTATION_FORM_FOR_VERTICAL_IDEOGRAPHIC_FULL_STOP=65042]="PRESENTATION_FORM_FOR_VERTICAL_IDEOGRAPHIC_FULL_STOP",e[e.PRESENTATION_FORM_FOR_VERTICAL_COLON=65043]="PRESENTATION_FORM_FOR_VERTICAL_COLON",e[e.PRESENTATION_FORM_FOR_VERTICAL_SEMICOLON=65044]="PRESENTATION_FORM_FOR_VERTICAL_SEMICOLON",e[e.PRESENTATION_FORM_FOR_VERTICAL_EXCLAMATION_MARK=65045]="PRESENTATION_FORM_FOR_VERTICAL_EXCLAMATION_MARK",e[e.PRESENTATION_FORM_FOR_VERTICAL_QUESTION_MARK=65046]="PRESENTATION_FORM_FOR_VERTICAL_QUESTION_MARK",e[e.PRESENTATION_FORM_FOR_VERTICAL_HORIZONTAL_ELLIPSIS=65049]="PRESENTATION_FORM_FOR_VERTICAL_HORIZONTAL_ELLIPSIS",e[e.PRESENTATION_FORM_FOR_VERTICAL_TWO_DOT_LEADER=65072]="PRESENTATION_FORM_FOR_VERTICAL_TWO_DOT_LEADER",e[e.SESAME_DOT=65093]="SESAME_DOT",e[e.WHITE_SESAME_DOT=65094]="WHITE_SESAME_DOT",e[e.DASHED_OVERLINE=65097]="DASHED_OVERLINE",e[e.CENTRELINE_OVERLINE=65098]="CENTRELINE_OVERLINE",e[e.WAVY_OVERLINE=65099]="WAVY_OVERLINE",e[e.DOUBLE_WAVY_OVERLINE=65100]="DOUBLE_WAVY_OVERLINE",e[e.SMALL_COMMA=65104]="SMALL_COMMA",e[e.SMALL_IDEOGRAPHIC_COMMA=65105]="SMALL_IDEOGRAPHIC_COMMA",e[e.SMALL_FULL_STOP=65106]="SMALL_FULL_STOP",e[e.SMALL_SEMICOLON=65108]="SMALL_SEMICOLON",e[e.SMALL_COLON=65109]="SMALL_COLON",e[e.SMALL_QUESTION_MARK=65110]="SMALL_QUESTION_MARK",e[e.SMALL_EXCLAMATION_MARK=65111]="SMALL_EXCLAMATION_MARK",e[e.SMALL_NUMBER_SIGN=65119]="SMALL_NUMBER_SIGN",e[e.SMALL_AMPERSAND=65120]="SMALL_AMPERSAND",e[e.SMALL_ASTERISK=65121]="SMALL_ASTERISK",e[e.SMALL_REVERSE_SOLIDUS=65128]="SMALL_REVERSE_SOLIDUS",e[e.SMALL_PERCENT_SIGN=65130]="SMALL_PERCENT_SIGN",e[e.SMALL_COMMERCIAL_AT=65131]="SMALL_COMMERCIAL_AT",e[e.FULLWIDTH_EXCLAMATION_MARK=65281]="FULLWIDTH_EXCLAMATION_MARK",e[e.FULLWIDTH_QUOTATION_MARK=65282]="FULLWIDTH_QUOTATION_MARK",e[e.FULLWIDTH_NUMBER_SIGN=65283]="FULLWIDTH_NUMBER_SIGN",e[e.FULLWIDTH_PERCENT_SIGN=65285]="FULLWIDTH_PERCENT_SIGN",e[e.FULLWIDTH_AMPERSAND=65286]="FULLWIDTH_AMPERSAND",e[e.FULLWIDTH_APOSTROPHE=65287]="FULLWIDTH_APOSTROPHE",e[e.FULLWIDTH_ASTERISK=65290]="FULLWIDTH_ASTERISK",e[e.FULLWIDTH_COMMA=65292]="FULLWIDTH_COMMA",e[e.FULLWIDTH_FULL_STOP=65294]="FULLWIDTH_FULL_STOP",e[e.FULLWIDTH_SOLIDUS=65295]="FULLWIDTH_SOLIDUS",e[e.FULLWIDTH_COLON=65306]="FULLWIDTH_COLON",e[e.FULLWIDTH_SEMICOLON=65307]="FULLWIDTH_SEMICOLON",e[e.FULLWIDTH_QUESTION_MARK=65311]="FULLWIDTH_QUESTION_MARK",e[e.FULLWIDTH_COMMERCIAL_AT=65312]="FULLWIDTH_COMMERCIAL_AT",e[e.FULLWIDTH_REVERSE_SOLIDUS=65340]="FULLWIDTH_REVERSE_SOLIDUS",e[e.HALFWIDTH_IDEOGRAPHIC_FULL_STOP=65377]="HALFWIDTH_IDEOGRAPHIC_FULL_STOP",e[e.HALFWIDTH_IDEOGRAPHIC_COMMA=65380]="HALFWIDTH_IDEOGRAPHIC_COMMA",e[e.HALFWIDTH_KATAKANA_MIDDLE_DOT=65381]="HALFWIDTH_KATAKANA_MIDDLE_DOT",e[e.AEGEAN_WORD_SEPARATOR_LINE=65792]="AEGEAN_WORD_SEPARATOR_LINE",e[e.AEGEAN_WORD_SEPARATOR_DOT=65793]="AEGEAN_WORD_SEPARATOR_DOT",e[e.AEGEAN_CHECK_MARK=65794]="AEGEAN_CHECK_MARK",e[e.UGARITIC_WORD_DIVIDER=66463]="UGARITIC_WORD_DIVIDER",e[e.OLD_PERSIAN_WORD_DIVIDER=66512]="OLD_PERSIAN_WORD_DIVIDER",e[e.CAUCASIAN_ALBANIAN_CITATION_MARK=66927]="CAUCASIAN_ALBANIAN_CITATION_MARK",e[e.IMPERIAL_ARAMAIC_SECTION_SIGN=67671]="IMPERIAL_ARAMAIC_SECTION_SIGN",e[e.PHOENICIAN_WORD_SEPARATOR=67871]="PHOENICIAN_WORD_SEPARATOR",e[e.LYDIAN_TRIANGULAR_MARK=67903]="LYDIAN_TRIANGULAR_MARK",e[e.KHAROSHTHI_PUNCTUATION_DOT=68176]="KHAROSHTHI_PUNCTUATION_DOT",e[e.KHAROSHTHI_PUNCTUATION_SMALL_CIRCLE=68177]="KHAROSHTHI_PUNCTUATION_SMALL_CIRCLE",e[e.KHAROSHTHI_PUNCTUATION_CIRCLE=68178]="KHAROSHTHI_PUNCTUATION_CIRCLE",e[e.KHAROSHTHI_PUNCTUATION_CRESCENT_BAR=68179]="KHAROSHTHI_PUNCTUATION_CRESCENT_BAR",e[e.KHAROSHTHI_PUNCTUATION_MANGALAM=68180]="KHAROSHTHI_PUNCTUATION_MANGALAM",e[e.KHAROSHTHI_PUNCTUATION_LOTUS=68181]="KHAROSHTHI_PUNCTUATION_LOTUS",e[e.KHAROSHTHI_PUNCTUATION_DANDA=68182]="KHAROSHTHI_PUNCTUATION_DANDA",e[e.KHAROSHTHI_PUNCTUATION_DOUBLE_DANDA=68183]="KHAROSHTHI_PUNCTUATION_DOUBLE_DANDA",e[e.KHAROSHTHI_PUNCTUATION_LINES=68184]="KHAROSHTHI_PUNCTUATION_LINES",e[e.OLD_SOUTH_ARABIAN_NUMERIC_INDICATOR=68223]="OLD_SOUTH_ARABIAN_NUMERIC_INDICATOR",e[e.MANICHAEAN_PUNCTUATION_STAR=68336]="MANICHAEAN_PUNCTUATION_STAR",e[e.MANICHAEAN_PUNCTUATION_FLEURON=68337]="MANICHAEAN_PUNCTUATION_FLEURON",e[e.MANICHAEAN_PUNCTUATION_DOUBLE_DOT_WITHIN_DOT=68338]="MANICHAEAN_PUNCTUATION_DOUBLE_DOT_WITHIN_DOT",e[e.MANICHAEAN_PUNCTUATION_DOT_WITHIN_DOT=68339]="MANICHAEAN_PUNCTUATION_DOT_WITHIN_DOT",e[e.MANICHAEAN_PUNCTUATION_DOT=68340]="MANICHAEAN_PUNCTUATION_DOT",e[e.MANICHAEAN_PUNCTUATION_TWO_DOTS=68341]="MANICHAEAN_PUNCTUATION_TWO_DOTS",e[e.MANICHAEAN_PUNCTUATION_LINE_FILLER=68342]="MANICHAEAN_PUNCTUATION_LINE_FILLER",e[e.AVESTAN_ABBREVIATION_MARK=68409]="AVESTAN_ABBREVIATION_MARK",e[e.TINY_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION=68410]="TINY_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION",e[e.SMALL_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION=68411]="SMALL_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION",e[e.LARGE_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION=68412]="LARGE_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION",e[e.LARGE_ONE_DOT_OVER_TWO_DOTS_PUNCTUATION=68413]="LARGE_ONE_DOT_OVER_TWO_DOTS_PUNCTUATION",e[e.LARGE_TWO_RINGS_OVER_ONE_RING_PUNCTUATION=68414]="LARGE_TWO_RINGS_OVER_ONE_RING_PUNCTUATION",e[e.LARGE_ONE_RING_OVER_TWO_RINGS_PUNCTUATION=68415]="LARGE_ONE_RING_OVER_TWO_RINGS_PUNCTUATION",e[e.PSALTER_PAHLAVI_SECTION_MARK=68505]="PSALTER_PAHLAVI_SECTION_MARK",e[e.PSALTER_PAHLAVI_TURNED_SECTION_MARK=68506]="PSALTER_PAHLAVI_TURNED_SECTION_MARK",e[e.PSALTER_PAHLAVI_FOUR_DOTS_WITH_CROSS=68507]="PSALTER_PAHLAVI_FOUR_DOTS_WITH_CROSS",e[e.PSALTER_PAHLAVI_FOUR_DOTS_WITH_DOT=68508]="PSALTER_PAHLAVI_FOUR_DOTS_WITH_DOT",e[e.SOGDIAN_PUNCTUATION_TWO_VERTICAL_BARS=69461]="SOGDIAN_PUNCTUATION_TWO_VERTICAL_BARS",e[e.SOGDIAN_PUNCTUATION_TWO_VERTICAL_BARS_WITH_DOTS=69462]="SOGDIAN_PUNCTUATION_TWO_VERTICAL_BARS_WITH_DOTS",e[e.SOGDIAN_PUNCTUATION_CIRCLE_WITH_DOT=69463]="SOGDIAN_PUNCTUATION_CIRCLE_WITH_DOT",e[e.SOGDIAN_PUNCTUATION_TWO_CIRCLES_WITH_DOTS=69464]="SOGDIAN_PUNCTUATION_TWO_CIRCLES_WITH_DOTS",e[e.SOGDIAN_PUNCTUATION_HALF_CIRCLE_WITH_DOT=69465]="SOGDIAN_PUNCTUATION_HALF_CIRCLE_WITH_DOT",e[e.BRAHMI_DANDA=69703]="BRAHMI_DANDA",e[e.BRAHMI_DOUBLE_DANDA=69704]="BRAHMI_DOUBLE_DANDA",e[e.BRAHMI_PUNCTUATION_DOT=69705]="BRAHMI_PUNCTUATION_DOT",e[e.BRAHMI_PUNCTUATION_DOUBLE_DOT=69706]="BRAHMI_PUNCTUATION_DOUBLE_DOT",e[e.BRAHMI_PUNCTUATION_LINE=69707]="BRAHMI_PUNCTUATION_LINE",e[e.BRAHMI_PUNCTUATION_CRESCENT_BAR=69708]="BRAHMI_PUNCTUATION_CRESCENT_BAR",e[e.BRAHMI_PUNCTUATION_LOTUS=69709]="BRAHMI_PUNCTUATION_LOTUS",e[e.KAITHI_ABBREVIATION_SIGN=69819]="KAITHI_ABBREVIATION_SIGN",e[e.KAITHI_ENUMERATION_SIGN=69820]="KAITHI_ENUMERATION_SIGN",e[e.KAITHI_SECTION_MARK=69822]="KAITHI_SECTION_MARK",e[e.KAITHI_DOUBLE_SECTION_MARK=69823]="KAITHI_DOUBLE_SECTION_MARK",e[e.KAITHI_DANDA=69824]="KAITHI_DANDA",e[e.KAITHI_DOUBLE_DANDA=69825]="KAITHI_DOUBLE_DANDA",e[e.CHAKMA_SECTION_MARK=69952]="CHAKMA_SECTION_MARK",e[e.CHAKMA_DANDA=69953]="CHAKMA_DANDA",e[e.CHAKMA_DOUBLE_DANDA=69954]="CHAKMA_DOUBLE_DANDA",e[e.CHAKMA_QUESTION_MARK=69955]="CHAKMA_QUESTION_MARK",e[e.MAHAJANI_ABBREVIATION_SIGN=70004]="MAHAJANI_ABBREVIATION_SIGN",e[e.MAHAJANI_SECTION_MARK=70005]="MAHAJANI_SECTION_MARK",e[e.SHARADA_DANDA=70085]="SHARADA_DANDA",e[e.SHARADA_DOUBLE_DANDA=70086]="SHARADA_DOUBLE_DANDA",e[e.SHARADA_ABBREVIATION_SIGN=70087]="SHARADA_ABBREVIATION_SIGN",e[e.SHARADA_SEPARATOR=70088]="SHARADA_SEPARATOR",e[e.SHARADA_SUTRA_MARK=70093]="SHARADA_SUTRA_MARK",e[e.SHARADA_SIGN_SIDDHAM=70107]="SHARADA_SIGN_SIDDHAM",e[e.SHARADA_CONTINUATION_SIGN=70109]="SHARADA_CONTINUATION_SIGN",e[e.SHARADA_SECTION_MARK_1=70110]="SHARADA_SECTION_MARK_1",e[e.SHARADA_SECTION_MARK_2=70111]="SHARADA_SECTION_MARK_2",e[e.KHOJKI_DANDA=70200]="KHOJKI_DANDA",e[e.KHOJKI_DOUBLE_DANDA=70201]="KHOJKI_DOUBLE_DANDA",e[e.KHOJKI_WORD_SEPARATOR=70202]="KHOJKI_WORD_SEPARATOR",e[e.KHOJKI_SECTION_MARK=70203]="KHOJKI_SECTION_MARK",e[e.KHOJKI_DOUBLE_SECTION_MARK=70204]="KHOJKI_DOUBLE_SECTION_MARK",e[e.KHOJKI_ABBREVIATION_SIGN=70205]="KHOJKI_ABBREVIATION_SIGN",e[e.MULTANI_SECTION_MARK=70313]="MULTANI_SECTION_MARK",e[e.NEWA_DANDA=70731]="NEWA_DANDA",e[e.NEWA_DOUBLE_DANDA=70732]="NEWA_DOUBLE_DANDA",e[e.NEWA_COMMA=70733]="NEWA_COMMA",e[e.NEWA_GAP_FILLER=70734]="NEWA_GAP_FILLER",e[e.NEWA_ABBREVIATION_SIGN=70735]="NEWA_ABBREVIATION_SIGN",e[e.NEWA_DOUBLE_COMMA=70746]="NEWA_DOUBLE_COMMA",e[e.NEWA_PLACEHOLDER_MARK=70747]="NEWA_PLACEHOLDER_MARK",e[e.NEWA_INSERTION_SIGN=70749]="NEWA_INSERTION_SIGN",e[e.TIRHUTA_ABBREVIATION_SIGN=70854]="TIRHUTA_ABBREVIATION_SIGN",e[e.SIDDHAM_SIGN_SIDDHAM=71105]="SIDDHAM_SIGN_SIDDHAM",e[e.SIDDHAM_DANDA=71106]="SIDDHAM_DANDA",e[e.SIDDHAM_DOUBLE_DANDA=71107]="SIDDHAM_DOUBLE_DANDA",e[e.SIDDHAM_SEPARATOR_DOT=71108]="SIDDHAM_SEPARATOR_DOT",e[e.SIDDHAM_SEPARATOR_BAR=71109]="SIDDHAM_SEPARATOR_BAR",e[e.SIDDHAM_REPETITION_MARK_1=71110]="SIDDHAM_REPETITION_MARK_1",e[e.SIDDHAM_REPETITION_MARK_2=71111]="SIDDHAM_REPETITION_MARK_2",e[e.SIDDHAM_REPETITION_MARK_3=71112]="SIDDHAM_REPETITION_MARK_3",e[e.SIDDHAM_END_OF_TEXT_MARK=71113]="SIDDHAM_END_OF_TEXT_MARK",e[e.SIDDHAM_SECTION_MARK_WITH_TRIDENT_AND_U_SHAPED_ORNAMENTS=71114]="SIDDHAM_SECTION_MARK_WITH_TRIDENT_AND_U_SHAPED_ORNAMENTS",e[e.SIDDHAM_SECTION_MARK_WITH_TRIDENT_AND_DOTTED_CRESCENTS=71115]="SIDDHAM_SECTION_MARK_WITH_TRIDENT_AND_DOTTED_CRESCENTS",e[e.SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_CRESCENTS=71116]="SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_CRESCENTS",e[e.SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_DOUBLE_CRESCENTS=71117]="SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_DOUBLE_CRESCENTS",e[e.SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_TRIPLE_CRESCENTS=71118]="SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_TRIPLE_CRESCENTS",e[e.SIDDHAM_SECTION_MARK_DOUBLE_RING=71119]="SIDDHAM_SECTION_MARK_DOUBLE_RING",e[e.SIDDHAM_SECTION_MARK_DOUBLE_RING_WITH_RAYS=71120]="SIDDHAM_SECTION_MARK_DOUBLE_RING_WITH_RAYS",e[e.SIDDHAM_SECTION_MARK_WITH_DOUBLE_CRESCENTS=71121]="SIDDHAM_SECTION_MARK_WITH_DOUBLE_CRESCENTS",e[e.SIDDHAM_SECTION_MARK_WITH_TRIPLE_CRESCENTS=71122]="SIDDHAM_SECTION_MARK_WITH_TRIPLE_CRESCENTS",e[e.SIDDHAM_SECTION_MARK_WITH_QUADRUPLE_CRESCENTS=71123]="SIDDHAM_SECTION_MARK_WITH_QUADRUPLE_CRESCENTS",e[e.SIDDHAM_SECTION_MARK_WITH_SEPTUPLE_CRESCENTS=71124]="SIDDHAM_SECTION_MARK_WITH_SEPTUPLE_CRESCENTS",e[e.SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_RAYS=71125]="SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_RAYS",e[e.SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_TWO_ENCLOSURES=71126]="SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_TWO_ENCLOSURES",e[e.SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_FOUR_ENCLOSURES=71127]="SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_FOUR_ENCLOSURES",e[e.MODI_DANDA=71233]="MODI_DANDA",e[e.MODI_DOUBLE_DANDA=71234]="MODI_DOUBLE_DANDA",e[e.MODI_ABBREVIATION_SIGN=71235]="MODI_ABBREVIATION_SIGN",e[e.MONGOLIAN_BIRGA_WITH_ORNAMENT=71264]="MONGOLIAN_BIRGA_WITH_ORNAMENT",e[e.MONGOLIAN_ROTATED_BIRGA=71265]="MONGOLIAN_ROTATED_BIRGA",e[e.MONGOLIAN_DOUBLE_BIRGA_WITH_ORNAMENT=71266]="MONGOLIAN_DOUBLE_BIRGA_WITH_ORNAMENT",e[e.MONGOLIAN_TRIPLE_BIRGA_WITH_ORNAMENT=71267]="MONGOLIAN_TRIPLE_BIRGA_WITH_ORNAMENT",e[e.MONGOLIAN_BIRGA_WITH_DOUBLE_ORNAMENT=71268]="MONGOLIAN_BIRGA_WITH_DOUBLE_ORNAMENT",e[e.MONGOLIAN_ROTATED_BIRGA_WITH_ORNAMENT=71269]="MONGOLIAN_ROTATED_BIRGA_WITH_ORNAMENT",e[e.MONGOLIAN_ROTATED_BIRGA_WITH_DOUBLE_ORNAMENT=71270]="MONGOLIAN_ROTATED_BIRGA_WITH_DOUBLE_ORNAMENT",e[e.MONGOLIAN_INVERTED_BIRGA=71271]="MONGOLIAN_INVERTED_BIRGA",e[e.MONGOLIAN_INVERTED_BIRGA_WITH_DOUBLE_ORNAMENT=71272]="MONGOLIAN_INVERTED_BIRGA_WITH_DOUBLE_ORNAMENT",e[e.MONGOLIAN_SWIRL_BIRGA=71273]="MONGOLIAN_SWIRL_BIRGA",e[e.MONGOLIAN_SWIRL_BIRGA_WITH_ORNAMENT=71274]="MONGOLIAN_SWIRL_BIRGA_WITH_ORNAMENT",e[e.MONGOLIAN_SWIRL_BIRGA_WITH_DOUBLE_ORNAMENT=71275]="MONGOLIAN_SWIRL_BIRGA_WITH_DOUBLE_ORNAMENT",e[e.MONGOLIAN_TURNED_SWIRL_BIRGA_WITH_DOUBLE_ORNAMENT=71276]="MONGOLIAN_TURNED_SWIRL_BIRGA_WITH_DOUBLE_ORNAMENT",e[e.AHOM_SIGN_SMALL_SECTION=71484]="AHOM_SIGN_SMALL_SECTION",e[e.AHOM_SIGN_SECTION=71485]="AHOM_SIGN_SECTION",e[e.AHOM_SIGN_RULAI=71486]="AHOM_SIGN_RULAI",e[e.DOGRA_ABBREVIATION_SIGN=71739]="DOGRA_ABBREVIATION_SIGN",e[e.DIVES_AKURU_DOUBLE_DANDA=72004]="DIVES_AKURU_DOUBLE_DANDA",e[e.DIVES_AKURU_GAP_FILLER=72005]="DIVES_AKURU_GAP_FILLER",e[e.DIVES_AKURU_END_OF_TEXT_MARK=72006]="DIVES_AKURU_END_OF_TEXT_MARK",e[e.NANDINAGARI_SIGN_SIDDHAM=72162]="NANDINAGARI_SIGN_SIDDHAM",e[e.ZANABAZAR_SQUARE_INITIAL_HEAD_MARK=72255]="ZANABAZAR_SQUARE_INITIAL_HEAD_MARK",e[e.ZANABAZAR_SQUARE_CLOSING_HEAD_MARK=72256]="ZANABAZAR_SQUARE_CLOSING_HEAD_MARK",e[e.ZANABAZAR_SQUARE_MARK_TSHEG=72257]="ZANABAZAR_SQUARE_MARK_TSHEG",e[e.ZANABAZAR_SQUARE_MARK_SHAD=72258]="ZANABAZAR_SQUARE_MARK_SHAD",e[e.ZANABAZAR_SQUARE_MARK_DOUBLE_SHAD=72259]="ZANABAZAR_SQUARE_MARK_DOUBLE_SHAD",e[e.ZANABAZAR_SQUARE_MARK_LONG_TSHEG=72260]="ZANABAZAR_SQUARE_MARK_LONG_TSHEG",e[e.ZANABAZAR_SQUARE_INITIAL_DOUBLE_LINED_HEAD_MARK=72261]="ZANABAZAR_SQUARE_INITIAL_DOUBLE_LINED_HEAD_MARK",e[e.ZANABAZAR_SQUARE_CLOSING_DOUBLE_LINED_HEAD_MARK=72262]="ZANABAZAR_SQUARE_CLOSING_DOUBLE_LINED_HEAD_MARK",e[e.SOYOMBO_MARK_TSHEG=72346]="SOYOMBO_MARK_TSHEG",e[e.SOYOMBO_MARK_SHAD=72347]="SOYOMBO_MARK_SHAD",e[e.SOYOMBO_MARK_DOUBLE_SHAD=72348]="SOYOMBO_MARK_DOUBLE_SHAD",e[e.SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN_AND_TRIPLE_FLAME=72350]="SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN_AND_TRIPLE_FLAME",e[e.SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN_AND_FLAME=72351]="SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN_AND_FLAME",e[e.SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN=72352]="SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN",e[e.SOYOMBO_TERMINAL_MARK_1=72353]="SOYOMBO_TERMINAL_MARK_1",e[e.SOYOMBO_TERMINAL_MARK_2=72354]="SOYOMBO_TERMINAL_MARK_2",e[e.BHAIKSUKI_DANDA=72769]="BHAIKSUKI_DANDA",e[e.BHAIKSUKI_DOUBLE_DANDA=72770]="BHAIKSUKI_DOUBLE_DANDA",e[e.BHAIKSUKI_WORD_SEPARATOR=72771]="BHAIKSUKI_WORD_SEPARATOR",e[e.BHAIKSUKI_GAP_FILLER_1=72772]="BHAIKSUKI_GAP_FILLER_1",e[e.BHAIKSUKI_GAP_FILLER_2=72773]="BHAIKSUKI_GAP_FILLER_2",e[e.MARCHEN_HEAD_MARK=72816]="MARCHEN_HEAD_MARK",e[e.MARCHEN_MARK_SHAD=72817]="MARCHEN_MARK_SHAD",e[e.MAKASAR_PASSIMBANG=73463]="MAKASAR_PASSIMBANG",e[e.MAKASAR_END_OF_SECTION=73464]="MAKASAR_END_OF_SECTION",e[e.TAMIL_PUNCTUATION_END_OF_TEXT=73727]="TAMIL_PUNCTUATION_END_OF_TEXT",e[e.CUNEIFORM_PUNCTUATION_SIGN_OLD_ASSYRIAN_WORD_DIVIDER=74864]="CUNEIFORM_PUNCTUATION_SIGN_OLD_ASSYRIAN_WORD_DIVIDER",e[e.CUNEIFORM_PUNCTUATION_SIGN_VERTICAL_COLON=74865]="CUNEIFORM_PUNCTUATION_SIGN_VERTICAL_COLON",e[e.CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_COLON=74866]="CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_COLON",e[e.CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_TRICOLON=74867]="CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_TRICOLON",e[e.CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_QUADCOLON=74868]="CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_QUADCOLON",e[e.MRO_DANDA=92782]="MRO_DANDA",e[e.MRO_DOUBLE_DANDA=92783]="MRO_DOUBLE_DANDA",e[e.BASSA_VAH_FULL_STOP=92917]="BASSA_VAH_FULL_STOP",e[e.PAHAWH_HMONG_SIGN_VOS_THOM=92983]="PAHAWH_HMONG_SIGN_VOS_THOM",e[e.PAHAWH_HMONG_SIGN_VOS_TSHAB_CEEB=92984]="PAHAWH_HMONG_SIGN_VOS_TSHAB_CEEB",e[e.PAHAWH_HMONG_SIGN_CIM_CHEEM=92985]="PAHAWH_HMONG_SIGN_CIM_CHEEM",e[e.PAHAWH_HMONG_SIGN_VOS_THIAB=92986]="PAHAWH_HMONG_SIGN_VOS_THIAB",e[e.PAHAWH_HMONG_SIGN_VOS_FEEM=92987]="PAHAWH_HMONG_SIGN_VOS_FEEM",e[e.PAHAWH_HMONG_SIGN_XAUS=92996]="PAHAWH_HMONG_SIGN_XAUS",e[e.MEDEFAIDRIN_COMMA=93847]="MEDEFAIDRIN_COMMA",e[e.MEDEFAIDRIN_FULL_STOP=93848]="MEDEFAIDRIN_FULL_STOP",e[e.MEDEFAIDRIN_SYMBOL_AIVA=93849]="MEDEFAIDRIN_SYMBOL_AIVA",e[e.MEDEFAIDRIN_EXCLAMATION_OH=93850]="MEDEFAIDRIN_EXCLAMATION_OH",e[e.OLD_CHINESE_HOOK_MARK=94178]="OLD_CHINESE_HOOK_MARK",e[e.DUPLOYAN_PUNCTUATION_CHINOOK_FULL_STOP=113823]="DUPLOYAN_PUNCTUATION_CHINOOK_FULL_STOP",e[e.SIGNWRITING_COMMA=121479]="SIGNWRITING_COMMA",e[e.SIGNWRITING_FULL_STOP=121480]="SIGNWRITING_FULL_STOP",e[e.SIGNWRITING_SEMICOLON=121481]="SIGNWRITING_SEMICOLON",e[e.SIGNWRITING_COLON=121482]="SIGNWRITING_COLON",e[e.SIGNWRITING_PARENTHESIS=121483]="SIGNWRITING_PARENTHESIS",e[e.ADLAM_INITIAL_EXCLAMATION_MARK=125278]="ADLAM_INITIAL_EXCLAMATION_MARK",e[e.ADLAM_INITIAL_QUESTION_MARK=125279]="ADLAM_INITIAL_QUESTION_MARK"})(S6||(S6={}));var w6;(function(e){e[e.LEFT_PARENTHESIS=40]="LEFT_PARENTHESIS",e[e.LEFT_SQUARE_BRACKET=91]="LEFT_SQUARE_BRACKET",e[e.LEFT_CURLY_BRACKET=123]="LEFT_CURLY_BRACKET",e[e.TIBETAN_MARK_GUG_RTAGS_GYON=3898]="TIBETAN_MARK_GUG_RTAGS_GYON",e[e.TIBETAN_MARK_ANG_KHANG_GYON=3900]="TIBETAN_MARK_ANG_KHANG_GYON",e[e.OGHAM_FEATHER_MARK=5787]="OGHAM_FEATHER_MARK",e[e.SINGLE_LOW_9_QUOTATION_MARK=8218]="SINGLE_LOW_9_QUOTATION_MARK",e[e.DOUBLE_LOW_9_QUOTATION_MARK=8222]="DOUBLE_LOW_9_QUOTATION_MARK",e[e.LEFT_SQUARE_BRACKET_WITH_QUILL=8261]="LEFT_SQUARE_BRACKET_WITH_QUILL",e[e.SUPERSCRIPT_LEFT_PARENTHESIS=8317]="SUPERSCRIPT_LEFT_PARENTHESIS",e[e.SUBSCRIPT_LEFT_PARENTHESIS=8333]="SUBSCRIPT_LEFT_PARENTHESIS",e[e.LEFT_CEILING=8968]="LEFT_CEILING",e[e.LEFT_FLOOR=8970]="LEFT_FLOOR",e[e.LEFT_POINTING_ANGLE_BRACKET=9001]="LEFT_POINTING_ANGLE_BRACKET",e[e.MEDIUM_LEFT_PARENTHESIS_ORNAMENT=10088]="MEDIUM_LEFT_PARENTHESIS_ORNAMENT",e[e.MEDIUM_FLATTENED_LEFT_PARENTHESIS_ORNAMENT=10090]="MEDIUM_FLATTENED_LEFT_PARENTHESIS_ORNAMENT",e[e.MEDIUM_LEFT_POINTING_ANGLE_BRACKET_ORNAMENT=10092]="MEDIUM_LEFT_POINTING_ANGLE_BRACKET_ORNAMENT",e[e.HEAVY_LEFT_POINTING_ANGLE_QUOTATION_MARK_ORNAMENT=10094]="HEAVY_LEFT_POINTING_ANGLE_QUOTATION_MARK_ORNAMENT",e[e.HEAVY_LEFT_POINTING_ANGLE_BRACKET_ORNAMENT=10096]="HEAVY_LEFT_POINTING_ANGLE_BRACKET_ORNAMENT",e[e.LIGHT_LEFT_TORTOISE_SHELL_BRACKET_ORNAMENT=10098]="LIGHT_LEFT_TORTOISE_SHELL_BRACKET_ORNAMENT",e[e.MEDIUM_LEFT_CURLY_BRACKET_ORNAMENT=10100]="MEDIUM_LEFT_CURLY_BRACKET_ORNAMENT",e[e.LEFT_S_SHAPED_BAG_DELIMITER=10181]="LEFT_S_SHAPED_BAG_DELIMITER",e[e.MATHEMATICAL_LEFT_WHITE_SQUARE_BRACKET=10214]="MATHEMATICAL_LEFT_WHITE_SQUARE_BRACKET",e[e.MATHEMATICAL_LEFT_ANGLE_BRACKET=10216]="MATHEMATICAL_LEFT_ANGLE_BRACKET",e[e.MATHEMATICAL_LEFT_DOUBLE_ANGLE_BRACKET=10218]="MATHEMATICAL_LEFT_DOUBLE_ANGLE_BRACKET",e[e.MATHEMATICAL_LEFT_WHITE_TORTOISE_SHELL_BRACKET=10220]="MATHEMATICAL_LEFT_WHITE_TORTOISE_SHELL_BRACKET",e[e.MATHEMATICAL_LEFT_FLATTENED_PARENTHESIS=10222]="MATHEMATICAL_LEFT_FLATTENED_PARENTHESIS",e[e.LEFT_WHITE_CURLY_BRACKET=10627]="LEFT_WHITE_CURLY_BRACKET",e[e.LEFT_WHITE_PARENTHESIS=10629]="LEFT_WHITE_PARENTHESIS",e[e.Z_NOTATION_LEFT_IMAGE_BRACKET=10631]="Z_NOTATION_LEFT_IMAGE_BRACKET",e[e.Z_NOTATION_LEFT_BINDING_BRACKET=10633]="Z_NOTATION_LEFT_BINDING_BRACKET",e[e.LEFT_SQUARE_BRACKET_WITH_UNDERBAR=10635]="LEFT_SQUARE_BRACKET_WITH_UNDERBAR",e[e.LEFT_SQUARE_BRACKET_WITH_TICK_IN_TOP_CORNER=10637]="LEFT_SQUARE_BRACKET_WITH_TICK_IN_TOP_CORNER",e[e.LEFT_SQUARE_BRACKET_WITH_TICK_IN_BOTTOM_CORNER=10639]="LEFT_SQUARE_BRACKET_WITH_TICK_IN_BOTTOM_CORNER",e[e.LEFT_ANGLE_BRACKET_WITH_DOT=10641]="LEFT_ANGLE_BRACKET_WITH_DOT",e[e.LEFT_ARC_LESS_THAN_BRACKET=10643]="LEFT_ARC_LESS_THAN_BRACKET",e[e.DOUBLE_LEFT_ARC_GREATER_THAN_BRACKET=10645]="DOUBLE_LEFT_ARC_GREATER_THAN_BRACKET",e[e.LEFT_BLACK_TORTOISE_SHELL_BRACKET=10647]="LEFT_BLACK_TORTOISE_SHELL_BRACKET",e[e.LEFT_WIGGLY_FENCE=10712]="LEFT_WIGGLY_FENCE",e[e.LEFT_DOUBLE_WIGGLY_FENCE=10714]="LEFT_DOUBLE_WIGGLY_FENCE",e[e.LEFT_POINTING_CURVED_ANGLE_BRACKET=10748]="LEFT_POINTING_CURVED_ANGLE_BRACKET",e[e.TOP_LEFT_HALF_BRACKET=11810]="TOP_LEFT_HALF_BRACKET",e[e.BOTTOM_LEFT_HALF_BRACKET=11812]="BOTTOM_LEFT_HALF_BRACKET",e[e.LEFT_SIDEWAYS_U_BRACKET=11814]="LEFT_SIDEWAYS_U_BRACKET",e[e.LEFT_DOUBLE_PARENTHESIS=11816]="LEFT_DOUBLE_PARENTHESIS",e[e.DOUBLE_LOW_REVERSED_9_QUOTATION_MARK=11842]="DOUBLE_LOW_REVERSED_9_QUOTATION_MARK",e[e.LEFT_ANGLE_BRACKET=12296]="LEFT_ANGLE_BRACKET",e[e.LEFT_DOUBLE_ANGLE_BRACKET=12298]="LEFT_DOUBLE_ANGLE_BRACKET",e[e.LEFT_CORNER_BRACKET=12300]="LEFT_CORNER_BRACKET",e[e.LEFT_WHITE_CORNER_BRACKET=12302]="LEFT_WHITE_CORNER_BRACKET",e[e.LEFT_BLACK_LENTICULAR_BRACKET=12304]="LEFT_BLACK_LENTICULAR_BRACKET",e[e.LEFT_TORTOISE_SHELL_BRACKET=12308]="LEFT_TORTOISE_SHELL_BRACKET",e[e.LEFT_WHITE_LENTICULAR_BRACKET=12310]="LEFT_WHITE_LENTICULAR_BRACKET",e[e.LEFT_WHITE_TORTOISE_SHELL_BRACKET=12312]="LEFT_WHITE_TORTOISE_SHELL_BRACKET",e[e.LEFT_WHITE_SQUARE_BRACKET=12314]="LEFT_WHITE_SQUARE_BRACKET",e[e.REVERSED_DOUBLE_PRIME_QUOTATION_MARK=12317]="REVERSED_DOUBLE_PRIME_QUOTATION_MARK",e[e.ORNATE_RIGHT_PARENTHESIS=64831]="ORNATE_RIGHT_PARENTHESIS",e[e.PRESENTATION_FORM_FOR_VERTICAL_LEFT_WHITE_LENTICULAR_BRACKET=65047]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_WHITE_LENTICULAR_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_LEFT_PARENTHESIS=65077]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_PARENTHESIS",e[e.PRESENTATION_FORM_FOR_VERTICAL_LEFT_CURLY_BRACKET=65079]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_CURLY_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_LEFT_TORTOISE_SHELL_BRACKET=65081]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_TORTOISE_SHELL_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_LEFT_BLACK_LENTICULAR_BRACKET=65083]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_BLACK_LENTICULAR_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_LEFT_DOUBLE_ANGLE_BRACKET=65085]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_DOUBLE_ANGLE_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_LEFT_ANGLE_BRACKET=65087]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_ANGLE_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_LEFT_CORNER_BRACKET=65089]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_CORNER_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_LEFT_WHITE_CORNER_BRACKET=65091]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_WHITE_CORNER_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_LEFT_SQUARE_BRACKET=65095]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_SQUARE_BRACKET",e[e.SMALL_LEFT_PARENTHESIS=65113]="SMALL_LEFT_PARENTHESIS",e[e.SMALL_LEFT_CURLY_BRACKET=65115]="SMALL_LEFT_CURLY_BRACKET",e[e.SMALL_LEFT_TORTOISE_SHELL_BRACKET=65117]="SMALL_LEFT_TORTOISE_SHELL_BRACKET",e[e.FULLWIDTH_LEFT_PARENTHESIS=65288]="FULLWIDTH_LEFT_PARENTHESIS",e[e.FULLWIDTH_LEFT_SQUARE_BRACKET=65339]="FULLWIDTH_LEFT_SQUARE_BRACKET",e[e.FULLWIDTH_LEFT_CURLY_BRACKET=65371]="FULLWIDTH_LEFT_CURLY_BRACKET",e[e.FULLWIDTH_LEFT_WHITE_PARENTHESIS=65375]="FULLWIDTH_LEFT_WHITE_PARENTHESIS",e[e.HALFWIDTH_LEFT_CORNER_BRACKET=65378]="HALFWIDTH_LEFT_CORNER_BRACKET"})(w6||(w6={}));var k6;(function(e){e[e.SPACE=32]="SPACE",e[e.NO_BREAK_SPACE=160]="NO_BREAK_SPACE",e[e.OGHAM_SPACE_MARK=5760]="OGHAM_SPACE_MARK",e[e.EN_QUAD=8192]="EN_QUAD",e[e.EM_QUAD=8193]="EM_QUAD",e[e.EN_SPACE=8194]="EN_SPACE",e[e.EM_SPACE=8195]="EM_SPACE",e[e.THREE_PER_EM_SPACE=8196]="THREE_PER_EM_SPACE",e[e.FOUR_PER_EM_SPACE=8197]="FOUR_PER_EM_SPACE",e[e.SIX_PER_EM_SPACE=8198]="SIX_PER_EM_SPACE",e[e.FIGURE_SPACE=8199]="FIGURE_SPACE",e[e.PUNCTUATION_SPACE=8200]="PUNCTUATION_SPACE",e[e.THIN_SPACE=8201]="THIN_SPACE",e[e.HAIR_SPACE=8202]="HAIR_SPACE",e[e.NARROW_NO_BREAK_SPACE=8239]="NARROW_NO_BREAK_SPACE",e[e.MEDIUM_MATHEMATICAL_SPACE=8287]="MEDIUM_MATHEMATICAL_SPACE",e[e.IDEOGRAPHIC_SPACE=12288]="IDEOGRAPHIC_SPACE"})(k6||(k6={}));var Cr;(function(e){e[e.LINE_END=-1]="LINE_END",e[e.SPACE=-2]="SPACE"})(Cr||(Cr={}));function Vv(e){const t=[...new Set(e)].sort((o,i)=>o-i),r=t.length;if(r<8)return[o=>{for(let i=0;is+i);++i);n.push(s,s+i)}if(n.length*1.5{for(let s=0;s{let s=0,a=o;for(;s>>1;i{let i=0,s=r;for(;i>>1;otypeof t=="number")}Vv([G.HT,G.LF,G.VT,G.FF,G.CR,G.SPACE]);const[w0t,k0t]=Vv([G.EXCLAMATION_MARK,G.DOUBLE_QUOTE,G.NUMBER_SIGN,G.DOLLAR_SIGN,G.PERCENT_SIGN,G.AMPERSAND,G.SINGLE_QUOTE,G.OPEN_PARENTHESIS,G.CLOSE_PARENTHESIS,G.ASTERISK,G.PLUS_SIGN,G.COMMA,G.MINUS_SIGN,G.DOT,G.SLASH,G.COLON,G.SEMICOLON,G.OPEN_ANGLE,G.EQUALS_SIGN,G.CLOSE_ANGLE,G.QUESTION_MARK,G.AT_SIGN,G.OPEN_BRACKET,G.BACKSLASH,G.CLOSE_BRACKET,G.CARET,G.UNDERSCORE,G.BACKTICK,G.OPEN_BRACE,G.VERTICAL_SLASH,G.CLOSE_BRACE,G.TILDE]),dc=e=>e>=G.DIGIT0&&e<=G.DIGIT9,Bz=e=>e>=G.LOWERCASE_A&&e<=G.LOWERCASE_Z,jE=e=>e>=G.UPPERCASE_A&&e<=G.UPPERCASE_Z,k1=e=>Bz(e)||jE(e),Kve=e=>Bz(e)||jE(e)||dc(e),A0t=e=>e>=G.NUL&&e<=G.DELETE,[Mz,cbt]=Vv([G.NUL,G.SOH,G.STX,G.ETX,G.EOT,G.ENQ,G.ACK,G.BEL,G.BS,G.HT,G.LF,G.VT,G.FF,G.CR,G.SO,G.SI,G.DLE,G.DC1,G.DC2,G.DC3,G.DC4,G.NAK,G.SYN,G.ETB,G.CAN,G.EM,G.SUB,G.ESC,G.FS,G.GS,G.RS,G.US,G.DELETE]),[Bi,fbt]=Vv([G.VT,G.FF,G.SPACE,Cr.SPACE,Cr.LINE_END]);G.SPACE,Cr.SPACE;const hc=e=>e===G.SPACE||e===Cr.SPACE,Lz=e=>e===Cr.LINE_END,[i0,dbt]=Vv([...k0t,...vd(m6),...vd(y6),...vd(b6),...vd(_6),...vd(E6),...vd(S6),...vd(w6)]),L3=e=>hc(e)||Lz(e),[Ih,hbt]=Vv([G.HT,G.LF,G.FF,G.CR,Cr.SPACE,Cr.LINE_END,...vd(k6)]);var w_;(function(e){e[e.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER"})(w_||(w_={}));function T0t(){const e=(o,i)=>{if(o.length<=4){for(let u=0;u=i)return u;return o.length}let s=0,a=o.length;for(;s>>1;o[u].key{let s=t;for(const a of o){const u=e(s.children,a);if(u>=s.children.length){const c={key:a,children:[]};s.children.push(c),s=c;continue}let l=s.children[u];if(l.key===a){s=l;continue}l={key:a,children:[]},s.children.splice(u,0,l),s=l}s.value=i},search:(o,i,s)=>{let a=t;for(let u=i;u=a.children.length)return null;const f=a.children[c];if(f.key!==l)return null;if(f.value!=null)return{nextIndex:u+1,value:f.value};a=f}return null}}}const Gve=T0t();S0t.forEach(e=>Gve.insert(e.key,e.value));function x0t(e,t,r){if(t+1>=r)return null;const n=Gve.search(e,t,r);if(n!=null)return n;if(e[t].codePoint!==G.NUMBER_SIGN)return null;let o=0,i=t+1;if(e[i].codePoint===G.LOWERCASE_X||e[i].codePoint===G.UPPERCASE_X){i+=1;for(let a=1;a<=6&&i=G.UPPERCASE_A&&u<=G.UPPERCASE_F){o=(o<<4)+(u-G.UPPERCASE_A+10);continue}if(u>=G.LOWERCASE_A&&u<=G.LOWERCASE_F){o=(o<<4)+(u-G.LOWERCASE_A+10);continue}break}}else for(let a=1;a<=7&&i=r||e[i].codePoint!==G.SEMICOLON)return null;let s;try{o===0&&(o=w_.REPLACEMENT_CHARACTER),s=String.fromCodePoint(o)}catch{s=String.fromCodePoint(w_.REPLACEMENT_CHARACTER)}return{nextIndex:i+1,value:s}}function I0t(e){return Array.from(e).map(t=>E0t[t]??t).join("")}(()=>{try{const e=new RegExp("\\p{Script=Han}|[\\u{3002}\\u{ff1f}\\u{ff01}\\u{ff0c}\\u{3001}\\u{ff1b}\\u{ff1a}\\u{201c}\\u{201d}\\u{2018}\\u{2019}\\u{ff08}\\u{ff09}\\u{300a}\\u{300b}\\u{3008}\\u{3009}\\u{3010}\\u{3011}\\u{300e}\\u{300f}\\u{300c}\\u{300d}\\u{fe43}\\u{fe44}\\u{3014}\\u{3015}\\u{2026}\\u{2014}\\u{ff5e}\\u{fe4f}\\u{ffe5}]","u").source,t=new RegExp(`(${e})\\n+(${e})`,"gu");return r=>r.replace(t,"$1$2")}catch{const e=/[\u{4E00}-\u{9FCC}\u{3400}-\u{4DB5}\u{FA0E}\u{FA0F}\u{FA11}\u{FA13}\u{FA14}\u{FA1F}\u{FA21}\u{FA23}\u{FA24}\u{FA27}-\u{FA29}]|[\u{d840}-\u{d868}][\u{dc00}-\u{dfff}]|\u{d869}[\u{dc00}-\u{ded6}\u{df00}-\u{dfff}]|[\u{d86a}-\u{d86c}][\u{dc00}-\u{dfff}]|\u{d86d}[\u{dc00}-\u{df34}\u{df40}-\u{dfff}]|\u{d86e}[\u{dc00}-\u{dc1d}]/u.source,t=new RegExp(`(${e})\\n+(${e})`,"gu");return r=>r.replace(t,"$1$2")}})();(()=>{try{const e=new RegExp("\\p{Script=Han}|[\\u{3002}\\u{ff1f}\\u{ff01}\\u{ff0c}\\u{3001}\\u{ff1b}\\u{ff1a}\\u{201c}\\u{201d}\\u{2018}\\u{2019}\\u{ff08}\\u{ff09}\\u{300a}\\u{300b}\\u{3008}\\u{3009}\\u{3010}\\u{3011}\\u{300e}\\u{300f}\\u{300c}\\u{300d}\\u{fe43}\\u{fe44}\\u{3014}\\u{3015}\\u{2026}\\u{2014}\\u{ff5e}\\u{fe4f}\\u{ffe5}]","u").source,t=new RegExp(`(${e})[\\s\\n]+(${e})`,"gu");return r=>r.replace(t,"$1$2")}catch{const e=/[\u{4E00}-\u{9FCC}\u{3400}-\u{4DB5}\u{FA0E}\u{FA0F}\u{FA11}\u{FA13}\u{FA14}\u{FA1F}\u{FA21}\u{FA23}\u{FA24}\u{FA27}-\u{FA29}]|[\u{d840}-\u{d868}][\u{dc00}-\u{dfff}]|\u{d869}[\u{dc00}-\u{ded6}\u{df00}-\u{dfff}]|[\u{d86a}-\u{d86c}][\u{dc00}-\u{dfff}]|\u{d86d}[\u{dc00}-\u{df34}\u{df40}-\u{dfff}]|\u{d86e}[\u{dc00}-\u{dc1d}]/u.source,t=new RegExp(`(${e})[\\s\\n]+(${e})`,"gu");return r=>r.replace(t,"$1$2")}})();function*N0t(e){let t=0,r=1,n=1;const o=typeof e=="string"?[e]:e;for(const i of o){const s=[];for(const l of i){const c=l.codePointAt(0);s.push(c)}const a=[],u=s.length;for(let l=0;l>2,l=s-i&3;for(let c=0;c>2,l=s-i&3;for(let c=0;c!0;if(e instanceof Function)return e;if(e.length===0)return()=>!1;if(e.length===1){const t=e[0];return r=>r.type===t}if(e.length===2){const[t,r]=e;return n=>n.type===t||n.type===r}return t=>{for(const r of e)if(t.type===r)return!0;return!1}}function R0t(e,t,r){const n=C0t(t),o=i=>{const{children:s}=i;for(let a=0;a{const n={};R0t(e,t,s=>{const a=s;n[a.identifier]===void 0&&(n[a.identifier]=a)});const o=[];for(const s of r)n[s.identifier]===void 0&&(n[s.identifier]=s,o.push(s));return{root:o.length>0?{...e,children:e.children.concat(o)}:e,definitionMap:n}},Gn=Mi({root:{"--colorBgBlockquote":"none","--colorBgTableHead":"hsl(0deg, 0%, 94%)","--colorBgTableEvenRow":"hsl(0deg, 0%, 96%)","--colorBgTableOddRow":"hsl(0deg, 0%, 100%)","--colorBorderBlockquote":"hsl(210deg, 13%, 85%)","--colorBorderHeading":"hsl(0deg, 0%, 80%)","--colorBorderImage":"hsl(277deg, 19%, 47%)","--colorBorderTable":"hsl(220deg, 7%, 90%)","--colorBgCode":"#f5f7f9","--colorDelete":"hsl(210deg, 8%, 65%)","--colorHeading":"hsl(0deg, 0%, 25%)","--colorImageTitle":"hsl(0deg, 0%, 50%)","--colorInlineCode":"hsl(348deg, 60%, 47%)","--colorLink":"hsl(206deg, 53%, 47%)","--colorLinkActive":"hsl(206deg, 53%, 52%)","--colorLinkHover":"hsl(206deg, 53%, 52%)","--colorLinkVisited":"hsl(206deg, 53%, 47%)","--fontFamilyCode":"Consolas, 'Source Code Pro', 'Roboto Mono', monospace, sans-serif","--fontFamilyHeading":"Consolas, 'Source Code Pro', 'Roboto Mono', monospace, sans-serif"},rootDarken:{"&&":{"--colorBgBlockquote":"none","--colorBgTableHead":"hsl(200deg, 10%, 16%)","--colorBgTableEvenRow":"hsl(200deg, 10%, 16%)","--colorBgTableOddRow":"hsl(0deg, 0%, 9%)","--colorBorderBlockquote":"hsl(207deg, 7%, 45%)","--colorBorderHeading":"hsla(0deg, 0%, 30%, 0.8)","--colorBorderImage":"hsl(290deg, 15%, 49%)","--colorBorderTable":"hsl(0deg, 0%, 50%)","--colorBgCode":"hsl(0deg, 0%, 12%)","--colorDelete":"hsl(220deg, 5%, 68%)","--colorHeading":"hsl(0deg, 0%, 65%)","--colorImageTitle":"hsl(0deg, 0%, 50%)","--colorInlineCode":"hsl(348deg, 70%, 52%)","--colorLink":"hsl(207deg, 53%, 50%)","--colorLinkActive":"hsl(207deg, 53%, 50%)","--colorLinkHover":"hsl(207deg, 53%, 50%)","--colorLinkVisited":"hsl(207deg, 53%, 50%)","--fontFamilyCode":"Consolas, 'Source Code Pro', 'Roboto Mono', monospace, sans-serif","--fontFamilyHeading":"Consolas, 'Source Code Pro', 'Roboto Mono', monospace, sans-serif"}},blockquote:{},break:{},code:{},delete:{},emphasis:{},heading:{},image:{},imageReference:{},inlineCode:{},link:{},linkReference:{},list:{},listItem:{},paragraph:{},strong:{},table:{},text:{},thematicBreak:{}}),jz=re.createContext(null);jz.displayName="NodeRendererContextType";const k5=()=>re.useContext(jz);class D0t extends ppe{constructor(t){super(),this.preferCodeWrap$=new qo(!1);const{definitionMap:r,rendererMap:n,showCodeLineno:o,themeScheme:i}=t;this.definitionMap$=new qo(r),this.rendererMap$=new qo(n),this.showCodeLineno$=new qo(o),this.themeScheme$=new qo(i)}}const Aa=e=>{const{nodes:t}=e,{viewmodel:r}=k5(),n=to(r.rendererMap$);return!Array.isArray(t)||t.length<=0?C.jsx(re.Fragment,{}):C.jsx(F0t,{nodes:t,rendererMap:n})};class F0t extends re.Component{shouldComponentUpdate(t){const r=this.props;return!Kb.isEqual(r.nodes,t.nodes)||r.rendererMap!==t.rendererMap}render(){const{nodes:t,rendererMap:r}=this.props;return C.jsx(re.Fragment,{children:t.map((n,o)=>{const i=`${n.type}-${o}`,s=r[n.type]??r._fallback;return C.jsx(s,{...n},i)})})}}var zl;(function(e){e.BLOCK="block",e.INLINE="inline"})(zl||(zl={}));var Yn;(function(e){e[e.ATOMIC=10]="ATOMIC",e[e.FENCED_BLOCK=10]="FENCED_BLOCK",e[e.CONTAINING_BLOCK=10]="CONTAINING_BLOCK",e[e.INTERRUPTABLE_BLOCK=2]="INTERRUPTABLE_BLOCK",e[e.IMAGES=4]="IMAGES",e[e.LINKS=3]="LINKS",e[e.CONTAINING_INLINE=2]="CONTAINING_INLINE",e[e.SOFT_INLINE=1]="SOFT_INLINE",e[e.FALLBACK=-1]="FALLBACK"})(Yn||(Yn={}));class xc{constructor(t){ze(this,"type",zl.INLINE);ze(this,"name");ze(this,"priority");this.name=t.name,this.priority=t.priority}toString(){return this.name}}function*Kf(e){let t=-1,r=null;for(;;){const[n,o]=yield r;t===o&&(r==null||r.startIndex>=n)||(t=o,r=e(n,o))}}class Ic{constructor(t){ze(this,"type",zl.BLOCK);ze(this,"name");ze(this,"priority");this.name=t.name,this.priority=t.priority}extractPhrasingContentLines(t){return null}buildBlockToken(t,r){return null}toString(){return this.name}}function yl(e,t){const{line:r,column:n,offset:o}=e[t];return{line:r,column:n,offset:o}}function Ms(e,t){const{line:r,column:n,offset:o}=e[t];return{line:r,column:n+1,offset:o+1}}function Vve(e){const t=e[0],r=e[e.length-1];return{start:yl(t.nodePoints,t.startIndex),end:Ms(r.nodePoints,r.endIndex-1)}}function zz(e,t=0,r=e.length){if(t>=r||t<0||r>e.length)return[];const n=[];for(let o=t;o=r||t<0||r>e.length)return[];for(let u=t;u+1=0;--a){const u=o[a];if(!Bi(u.codePoint))break}for(let u=s;u<=a;++u)n.push(o[u]);return n}function B0t(e){let t=e;for(;;)try{const r=decodeURIComponent(t);if(r===t)break;t=r}catch{break}return encodeURI(t)}function Uve(e){const t=e.trim().replace(/\s+/gu," ").toLowerCase();return I0t(t)}function M0t(e,t,r){const n=_u(e,t,r,!0);if(n.length<=0)return null;const o=Uve(n);return{label:n,identifier:o}}function K0(e,t,r){let n=t+1;const o=Math.min(n+1e3,r);for(;nt;--r){const n=e[r];if(n.firstNonWhitespaceIndexr?[]:e.slice(t,r+1)}const j0t="Invariant failed";function ub(e,t){if(!e)throw new Error(j0t)}const Xve=(e,t)=>{const r={_tokenizer:"root",nodeType:"root",position:{start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}},children:[]},n=[];n.push({hook:{isContainingBlock:!0},token:r});let o=0;const i=h=>{for(let g=o;g>=0;--g){const v=n[g];v.token.position.end={...h}}},s=(h,g)=>{if(g.length<=0)return null;const v=e.filter(E=>E!==h),y=Xve(v,t);for(const E of g)y.consume(E);return y},a=()=>{const h=n.pop();if(h!=null){if(n.length>0){const g=n[n.length-1];if(h.hook.onClose!=null){const v=h.hook.onClose(h.token);if(v!=null)switch(v.status){case"closingAndRollback":{const y=s(h.hook,v.lines);if(y==null)break;const E=y.done();g.token.children.push(...E.children);break}case"failedAndRollback":{g.token.children.pop();const y=s(h.hook,v.lines);if(y==null)break;const E=y.done();g.token.children.push(...E.children);break}}}}return o>=n.length&&(o=n.length-1),h}},u=h=>{for(;n.length>h;)a()},l=(h,g,v)=>{u(o+1),n[o].token.children.push(g),i(g.position.end),o+=1,n.push({hook:h,token:g}),v&&a()},c=(h,g,v)=>{const y=s(h,g);if(y==null)return!1;const E=y.shallowSnapshot(),_=E[0];_.token.children!=null&&v.token.children.push(..._.token.children),i(_.token.position.end);for(let S=1;S{const{nodePoints:g,startIndex:v,endIndex:y}=h;let{firstNonWhitespaceIndex:E,countOfPrecedeSpaces:_,startIndex:S}=h;const b=()=>({nodePoints:g,startIndex:S,endIndex:y,firstNonWhitespaceIndex:E,countOfPrecedeSpaces:_}),A=(D,L)=>{if(ub(S<=D),L){const M=Ms(g,D-1);i(M)}if(S!==D)for(S=D,_=0,E=D;E{const{token:M}=n[o],q=D.eatOpener(L,M);if(q==null)return!1;ub(q.nextIndex>S,`[consumeNewOpener] The marker of the new data node cannot be empty. - tokenizer(${q.token._tokenizer})`),A(q.nextIndex,!1);const z=q.token;return z._tokenizer=D.name,l(D,z,!!q.saturated),!0},T=(D,L)=>{if(D.eatAndInterruptPreviousSibling==null)return!1;const{hook:M,token:q}=n[o],{token:z}=n[o-1];if(D.priority<=M.priority)return!1;const B=D.eatAndInterruptPreviousSibling(L,q,z);if(B==null)return!1;u(o),z.children.pop(),B.remainingSibling!=null&&(Array.isArray(B.remainingSibling)?z.children.push(...B.remainingSibling):z.children.push(B.remainingSibling)),A(B.nextIndex,!1);const P=B.token;return P._tokenizer=D.name,l(D,P,!!B.saturated),!0},N=()=>{if(o=1,n.length<2)return;let{token:D}=n[o-1];for(;SK!==M&&T(K,q)))break;const z=M.eatContinuationText==null?{status:"notMatched"}:M.eatContinuationText(q,L.token,D);let B=!1,P=!1;switch(z.status){case"failedAndRollback":{if(D.children.pop(),n.length=o,o-=1,z.lines.length>0){const K=n[o];if(c(M,z.lines,K)){P=!0;break}}B=!0;break}case"closingAndRollback":{if(u(o),z.lines.length>0){const K=n[o];if(c(M,z.lines,K)){P=!0;break}}B=!0;break}case"notMatched":{o-=1,B=!0;break}case"closing":{A(z.nextIndex,!0),o-=1,B=!0;break}case"opening":{A(z.nextIndex,!0);break}default:throw new TypeError(`[eatContinuationText] unexpected status (${z.status}).`)}if(B)break;P||(o+=1,D=L.token)}},I=()=>{if(!(S>=y)){if(o=4)return}else o=n.length-1;for(;S{if(S>=y||o+1>=n.length)return!1;const{hook:D,token:L}=n[n.length-1];if(D.eatLazyContinuationText==null)return!1;const{token:M}=n[n.length-2],q=b(),z=D.eatLazyContinuationText(q,L,M);switch(z.status){case"notMatched":return!1;case"opening":return o=n.length-1,A(z.nextIndex,!0),o=n.length-1,!0;default:throw new TypeError(`[eatLazyContinuationText] unexpected status (${z.status}).`)}};if(N(),I(),R()||u(o+1),t!=null&&S=y)},done:()=>{for(;n.length>1;)a();return r},shallowSnapshot:()=>[...n]}},z0t=()=>{let e=0;const t=[],r=[],n=[],o=f=>{let d=f-1;for(;d>=0&&r[d].inactive;)d-=1;r.length=d+1},i=(f,d)=>{r.push({hook:f,delimiter:d,inactive:!1,tokenStackIndex:n.length})},s=(f,d)=>{if(r.length<=0)return null;let h=null;for(let g=r.length-1;g>=0;--g){if(h=r[g],h.inactive||h.hook!==f)continue;const v=h.delimiter,y=f.isDelimiterPair(v,d,t);if(y.paired)return v;if(!y.closer)return null}return null},a=(f,d)=>{if(r.length<=0)return d;let h,g=d,v=[];for(let y=r.length-1;y>=0;--y){const E=r[y];if(E.hook!==f||E.inactive)continue;const _=E.tokenStackIndex;for(_0){for(const x of A)x._tokenizer=f.name;v.unshift(...A)}h=void 0,E.inactive=!0}if(!S.closer){const A=f.processSingleDelimiter(g);if(A.length>0){for(const x of A)x._tokenizer=f.name;v.push(...A)}g=void 0}break}const b=f.processDelimiterPair(h,g,v);{for(const A of b.tokens)A._tokenizer==null&&(A._tokenizer=f.name);v=b.tokens}h=b.remainOpenerDelimiter,g=b.remainCloserDelimiter,o(y),y=Math.min(y,r.length),h!=null&&i(f,h)}if(g==null||g.type==="full")break}if(n.push(...v),g==null)return null;if(g.type==="full"||g.type==="closer"){const y=f.processSingleDelimiter(g);for(const E of y)E._tokenizer=f.name,n.push(E);return null}return g};return{process:(f,d)=>{for(;e=d.endIndex)break;h.startIndex>=d.startIndex||n.push(h)}switch(d.type){case"opener":{i(f,d);break}case"both":{const h=a(f,d);h!=null&&i(f,h);break}case"closer":{a(f,d);break}case"full":{const h=f.processSingleDelimiter(d);for(const g of h)g._tokenizer=f.name,n.push(g);break}default:throw new TypeError(`Unexpected delimiter type(${d.type}) from ${f.name}.`)}},done:()=>{const f=[];for(const{delimiter:h,hook:g}of r){const v=g.processSingleDelimiter(h);for(const y of v)y._tokenizer=g.name,f.push(y)}if(r.length=0,f.length>0){const h=H0t(n,f);n.length=0,n.push(...h)}return n.concat(t.slice(e))},reset:f=>{t.length=f.length;for(let d=0;d{if(e.length<=0)return t;if(t.length<=0)return e;const r=[];let n=0,o=0;for(;n{const r=(i,s,a)=>{let u=[],l=null;const c=[i,s];for(const d of a){const h=d.findDelimiter(c);if(h!=null){if(l!=null){if(h.startIndex>l)continue;h.startIndex1){let d=0;for(const h of u){const g=h.delimiter.type;if(g==="full")return{items:[h],nextIndex:h.delimiter.endIndex};(g==="both"||g==="closer")&&(d+=1)}if(d>1){let h=-1,g=-1;for(let y=0;y-1?[u[h]]:u.filter(y=>y.delimiter.type!=="closer"),nextIndex:f}}}return{items:u,nextIndex:f}},n=z0t();return{process:(i,s,a)=>{let u=i;for(let l=t;l{const n=[];for(let o=0;o{let d=s.process(l,c,f);return d=r(d,c,f),d}}),u=e[o].priority;for(;o{let r;const n=e.match(t);return{isDelimiterPair:()=>({paired:!0}),processDelimiterPair:(o,i,s)=>({tokens:s}),processSingleDelimiter:()=>[],...n,name:e.name,priority:e.priority,findDelimiter:o=>r.next(o).value,reset:()=>{r=n.findDelimiter(),r.next()}}};function q0t(e){const{inlineTokenizers:t,inlineTokenizerMap:r,blockTokenizers:n,blockTokenizerMap:o,blockFallbackTokenizer:i,inlineFallbackTokenizer:s,shouldReservePosition:a,presetDefinitions:u,presetFootnoteDefinitions:l,formatUrl:c}=e;let f=!1;const d=new Set,h=new Set;let g=[],v=-1,y=-1;const E=Object.freeze({matchBlockApi:{extractPhrasingLines:I,rollbackPhrasingLines:R,registerDefinitionIdentifier:P=>{f&&d.add(P)},registerFootnoteDefinitionIdentifier:P=>{f&&h.add(P)}},parseBlockApi:{shouldReservePosition:a,formatUrl:c,processInlines:q,parseBlockTokens:M},matchInlineApi:{hasDefinition:P=>d.has(P),hasFootnoteDefinition:P=>h.has(P),getNodePoints:()=>g,getBlockStartIndex:()=>v,getBlockEndIndex:()=>y,resolveFallbackTokens:D},parseInlineApi:{shouldReservePosition:a,calcPosition:P=>({start:yl(g,P.startIndex),end:Ms(g,P.endIndex-1)}),formatUrl:c,getNodePoints:()=>g,hasDefinition:P=>d.has(P),hasFootnoteDefinition:P=>h.has(P),parseInlineTokens:B}}),_=n.map(P=>({...P.match(E.matchBlockApi),name:P.name,priority:P.priority})),S=new Map(Array.from(o.entries()).map(P=>[P[0],P[1].parse(E.parseBlockApi)])),b=i?{...i.match(E.matchBlockApi),name:i.name,priority:i.priority}:null,A=$0t(t,E.matchInlineApi,D),x=new Map(Array.from(r.entries()).map(P=>[P[0],P[1].parse(E.parseInlineApi)])),T=Qve(A,0);return{process:N};function N(P){d.clear(),h.clear(),f=!0;const K=L(P);f=!1;for(const J of u)d.add(J.identifier);for(const J of l)h.add(J.identifier);const U=M(K.children);return a?{type:"root",position:K.position,children:U}:{type:"root",children:U}}function I(P){const K=o.get(P._tokenizer);return(K==null?void 0:K.extractPhrasingContentLines(P))??null}function R(P,K){if(K!=null){const X=o.get(K._tokenizer);if(X!==void 0&&X.buildBlockToken!=null){const J=X.buildBlockToken(P,K);if(J!==null)return J._tokenizer=X.name,[J]}}return L([P]).children}function D(P,K,U){if(s==null)return P;let X=K;const J=[];for(const ee of P){if(Xs.priority)break}i<0||i>=t.length?t.push(n):t.splice(i,0,n)}_unregisterTokenizer(t,r,n){var a,u;const o=typeof n=="string"?n:n.name;if(!r.delete(o))return;((a=this.blockFallbackTokenizer)==null?void 0:a.name)===o&&(this.blockFallbackTokenizer=null),((u=this.inlineFallbackTokenizer)==null?void 0:u.name)===o&&(this.inlineFallbackTokenizer=null);const s=t.findIndex(l=>l.name===o);s>=0&&t.splice(s,1)}}function G0t(e,t,r){let n=t;for(;n=r||e[n].codePoint!==G.AT_SIGN||!Kve(e[n+1].codePoint))return{valid:!1,nextIndex:n+1};for(n=Mte(e,n+2,r);n+1=t?o+1:t}function V0t(e,t,r){const n=U0t(e,t,r);let{nextIndex:o}=n;if(!n.valid||o>=r||e[o].codePoint!==G.COLON)return{valid:!1,nextIndex:o};for(o+=1;o32?{valid:!1,nextIndex:n+1}:{valid:!0,nextIndex:n}}const Y0t=[{contentType:"uri",eat:V0t},{contentType:"email",eat:G0t}],X0t=function(e){return{findDelimiter:()=>Kf(t),processSingleDelimiter:r};function t(n,o){const i=e.getNodePoints();for(let s=n;st.map(r=>{const n=e.getNodePoints();let o=_u(n,r.startIndex+1,r.endIndex-1);r.contentType==="email"&&(o="mailto:"+o);const i=e.formatUrl(o),s=e.parseInlineTokens(r.children);return e.shouldReservePosition?{type:w1,position:e.calcPosition(r),url:i,children:s}:{type:w1,url:i,children:s}})}},Z0t="@yozora/tokenizer-autolink";class J0t extends xc{constructor(r={}){super({name:r.name??Z0t,priority:r.priority??Yn.ATOMIC});ze(this,"match",X0t);ze(this,"parse",Q0t)}}const egt=function(){return{isContainingBlock:!0,eatOpener:e,eatAndInterruptPreviousSibling:t,eatContinuationText:r};function e(n){if(n.countOfPrecedeSpaces>=4)return null;const{nodePoints:o,startIndex:i,endIndex:s,firstNonWhitespaceIndex:a}=n;if(a>=s||o[a].codePoint!==G.CLOSE_ANGLE)return null;let u=a+1;return u=4||l>=u||s[l].codePoint!==G.CLOSE_ANGLE?i.nodeType===y_?{status:"opening",nextIndex:a}:{status:"notMatched"}:{status:"opening",nextIndex:l+1t.map(r=>{const n=e.parseBlockTokens(r.children);return e.shouldReservePosition?{type:y_,position:r.position,children:n}:{type:y_,children:n}})}},rgt="@yozora/tokenizer-blockquote";class ngt extends Ic{constructor(r={}){super({name:r.name??rgt,priority:r.priority??Yn.CONTAINING_BLOCK});ze(this,"match",egt);ze(this,"parse",tgt)}}const ogt="@yozora/tokenizer-break";var zT;(function(e){e.BACKSLASH="backslash",e.MORE_THAN_TWO_SPACES="more-than-two-spaces"})(zT||(zT={}));const igt=function(e){return{findDelimiter:()=>Kf(t),processSingleDelimiter:r};function t(n,o){const i=e.getNodePoints();for(let s=n+1;s=n&&i[c].codePoint===G.BACKSLASH;c-=1);s-c&1||(u=s-1,l=zT.BACKSLASH);break}case G.SPACE:{let c=s-2;for(;c>=n&&i[c].codePoint===G.SPACE;c-=1);s-c>2&&(u=c+1,l=zT.MORE_THAN_TWO_SPACES);break}}if(!(u==null||l==null))return{type:"full",markerType:l,startIndex:u,endIndex:s}}return null}function r(n){return[{nodeType:BT,startIndex:n.startIndex,endIndex:n.endIndex}]}},sgt=function(e){return{parse:t=>t.map(r=>e.shouldReservePosition?{type:BT,position:e.calcPosition(r)}:{type:BT})}};class agt extends xc{constructor(r={}){super({name:r.name??ogt,priority:r.priority??Yn.SOFT_INLINE});ze(this,"match",igt);ze(this,"parse",sgt)}}function Lte(e,t,r,n){let o=t;n==null&&(n={saturated:!1,nodePoints:[],hasOpenAngleBracket:!1,openParensCount:0});const i=wn(e,o,r);if(i>=r)return{nextIndex:-1,state:n};if(n.nodePoints.length<=0){o=i;const s=e[o];s.codePoint===G.OPEN_ANGLE&&(o+=1,n.hasOpenAngleBracket=!0,n.nodePoints.push(s))}if(n.hasOpenAngleBracket){for(;o=r)return{nextIndex:-1,state:n};if(n.nodePoints.length<=0){o=i;const s=e[o];if(s.codePoint!==G.OPEN_BRACKET)return{nextIndex:-1,state:n};o+=1,n.nodePoints.push(s)}for(;o=r)return{nextIndex:-1,state:n};if(n.nodePoints.length<=0){o=i;const s=e[o];switch(s.codePoint){case G.DOUBLE_QUOTE:case G.SINGLE_QUOTE:case G.OPEN_PARENTHESIS:n.wrapSymbol=s.codePoint,n.nodePoints.push(s),o+=1;break;default:return{nextIndex:-1,state:n}}}if(n.wrapSymbol==null)return{nextIndex:-1,state:n};switch(n.wrapSymbol){case G.DOUBLE_QUOTE:case G.SINGLE_QUOTE:{for(;o=r||e[o+1].codePoint===Cr.LINE_END){n.nodePoints.push(s),n.saturated=!0;break}return{nextIndex:-1,state:n};default:n.nodePoints.push(s)}}break}}return{nextIndex:r,state:n}}const ugt=function(e){return{isContainingBlock:!1,eatOpener:t,eatContinuationText:r,onClose:n};function t(o){if(o.countOfPrecedeSpaces>=4)return null;const{nodePoints:i,startIndex:s,endIndex:a,firstNonWhitespaceIndex:u}=o;if(u>=a)return null;let l=u;const{nextIndex:c,state:f}=jte(i,l,a,null);if(c<0)return null;const d=i[s].line,h=()=>({nodeType:b_,position:{start:yl(i,s),end:Ms(i,a-1)},label:f,destination:null,title:null,lineNoOfLabel:d,lineNoOfDestination:-1,lineNoOfTitle:-1,lines:[o]});if(!f.saturated)return{token:h(),nextIndex:a};if(c<0||c+1>=a||i[c].codePoint!==G.COLON)return null;if(l=wn(i,c+1,a),l>=a)return{token:h(),nextIndex:a};const{nextIndex:g,state:v}=Lte(i,l,a,null);if(g<0||!v.saturated&&g!==a)return null;if(l=wn(i,g,a),l>=a){const S=h();return S.destination=v,S.lineNoOfDestination=d,{token:S,nextIndex:a}}if(l===g)return null;const{nextIndex:y,state:E}=zte(i,l,a,null);if(y>=0&&(l=y),l=l||s[y].codePoint!==G.COLON)return{status:"failedAndRollback",lines:i.lines};f=y+1}if(i.destination==null){if(f=wn(s,f,l),f>=l)return{status:"failedAndRollback",lines:i.lines};const{nextIndex:y,state:E}=Lte(s,f,l,null);if(y<0||!E.saturated)return{status:"failedAndRollback",lines:i.lines};if(f=wn(s,y,l),f>=l)return i.destination=E,i.lines.push(o),{status:"opening",nextIndex:l};i.lineNoOfDestination=c,i.lineNoOfTitle=c}i.lineNoOfTitle<0&&(i.lineNoOfTitle=c);const{nextIndex:d,state:h}=zte(s,f,l,i.title);if(i.title=h,d<0||h.nodePoints.length<=0||h.saturated&&wn(s,d,l)t.map(r=>{const n=r._label,o=r._identifier,i=r.destination.nodePoints,s=i[0].codePoint===G.OPEN_ANGLE?rc(i,1,i.length-1,!0):rc(i,0,i.length,!0),a=e.formatUrl(s),u=r.title==null?void 0:rc(r.title.nodePoints,1,r.title.nodePoints.length-1);return e.shouldReservePosition?{type:b_,position:r.position,identifier:o,label:n,url:a,title:u}:{type:b_,identifier:o,label:n,url:a,title:u}})}},cgt="@yozora/tokenizer-definition";class fgt extends Ic{constructor(r={}){super({name:r.name??cgt,priority:r.priority??Yn.ATOMIC});ze(this,"match",ugt);ze(this,"parse",lgt)}}const dgt=function(e){return{findDelimiter:()=>Kf(t),isDelimiterPair:r,processDelimiterPair:n};function t(o,i){const s=e.getNodePoints(),a=e.getBlockStartIndex(),u=e.getBlockEndIndex(),l=(f,d)=>{if(d===u)return!1;if(d===i)return!0;const h=s[d];if(Ih(h.codePoint))return!1;if(!i0(h.codePoint)||f<=o)return!0;const g=s[f-1];return Ih(g.codePoint)||i0(g.codePoint)},c=(f,d)=>{if(f===a)return!1;if(f===o)return!0;const h=s[f-1];if(Ih(h.codePoint))return!1;if(!i0(h.codePoint)||d>=i)return!0;const g=s[d];return Ih(g.codePoint)||i0(g.codePoint)};for(let f=o;fo&&!i0(s[h-1].codePoint)&&(E=!1);const b=s[g];i0(b.codePoint)||(_=!1)}if(!E&&!_)break;const S=g-h;return{type:E?_?"both":"opener":"closer",startIndex:h,endIndex:g,thickness:S,originalThickness:S}}}}return null}function r(o,i){const s=e.getNodePoints();return s[o.startIndex].codePoint!==s[i.startIndex].codePoint||(o.type==="both"||i.type==="both")&&(o.originalThickness+i.originalThickness)%3===0&&o.originalThickness%3!==0?{paired:!1,opener:!0,closer:!0}:{paired:!0}}function n(o,i,s){let a=1;o.thickness>1&&i.thickness>1&&(a=2),s=e.resolveInternalTokens(s,o.endIndex,i.startIndex);const u={nodeType:a===1?qve:Wve,startIndex:o.endIndex-a,endIndex:i.startIndex+a,thickness:a,children:s},l=o.thickness>a?{type:o.type,startIndex:o.startIndex,endIndex:o.endIndex-a,thickness:o.thickness-a,originalThickness:o.originalThickness}:void 0,c=i.thickness>a?{type:i.type,startIndex:i.startIndex+a,endIndex:i.endIndex,thickness:i.thickness-a,originalThickness:i.originalThickness}:void 0;return{tokens:[u],remainOpenerDelimiter:l,remainCloserDelimiter:c}}},hgt=function(e){return{parse:t=>t.map(r=>{const n=e.parseInlineTokens(r.children);return e.shouldReservePosition?{type:r.nodeType,position:e.calcPosition(r),children:n}:{type:r.nodeType,children:n}})}},pgt="@yozora/tokenizer-emphasis";class ggt extends xc{constructor(r={}){super({name:r.name??pgt,priority:r.priority??Yn.CONTAINING_INLINE});ze(this,"match",dgt);ze(this,"parse",hgt)}}function Zve(e){const{nodeType:t,markers:r,markersRequired:n,checkInfoString:o}=this;return{isContainingBlock:!1,eatOpener:i,eatAndInterruptPreviousSibling:s,eatContinuationText:a};function i(u){if(u.countOfPrecedeSpaces>=4)return null;const{endIndex:l,firstNonWhitespaceIndex:c}=u;if(c+n-1>=l)return null;const{nodePoints:f,startIndex:d}=u,h=f[c].codePoint;if(r.indexOf(h)<0)return null;const g=tv(f,c+1,l,h),v=g-c;if(v=l.markerCount){for(;y=d)return{status:"closing",nextIndex:d}}}const v=Math.min(f+l.indent,h,d-1);return l.lines.push({nodePoints:c,startIndex:v,endIndex:d,firstNonWhitespaceIndex:h,countOfPrecedeSpaces:g}),{status:"opening",nextIndex:d}}}class vgt extends Ic{constructor(r){super({name:r.name,priority:r.priority??Yn.FENCED_BLOCK});ze(this,"nodeType");ze(this,"markers",[]);ze(this,"markersRequired");ze(this,"checkInfoString");ze(this,"match",Zve);this.nodeType=r.nodeType,this.markers=r.markers,this.markersRequired=r.markersRequired,this.checkInfoString=r.checkInfoString}}const mgt=function(e){return{...Zve.call(this,e),isContainingBlock:!1}},ygt=function(e){return{parse:t=>t.map(r=>{const n=r.infoString;let o=0;const i=[];for(;o0?s:null,meta:a.length>0?a:null,value:l}:{type:ep,lang:s.length>0?s:null,meta:a.length>0?a:null,value:l}})}},bgt="@yozora/tokenizer-fenced-code";class _gt extends vgt{constructor(r={}){super({name:r.name??bgt,priority:r.priority??Yn.FENCED_BLOCK,nodeType:ep,markers:[G.BACKTICK,G.TILDE],markersRequired:3,checkInfoString:(n,o)=>{if(o===G.BACKTICK){for(const i of n)if(i.codePoint===G.BACKTICK)return!1}return!0}});ze(this,"match",mgt);ze(this,"parse",ygt)}}const Egt=function(){return{isContainingBlock:!1,eatOpener:e,eatAndInterruptPreviousSibling:t};function e(r){if(r.countOfPrecedeSpaces>=4)return null;const{nodePoints:n,startIndex:o,endIndex:i,firstNonWhitespaceIndex:s}=r;if(s>=i||n[s].codePoint!==G.NUMBER_SIGN)return null;const a=tv(n,s+1,i,G.NUMBER_SIGN),u=a-s;if(u>6||a+1t.map(r=>{const{nodePoints:n,firstNonWhitespaceIndex:o,endIndex:i}=r.line;let[s,a]=w5(n,o+r.depth,i),u=0;for(let h=a-1;h>=s&&n[h].codePoint===G.NUMBER_SIGN;--h)u+=1;if(u>0){let h=0,g=a-1-u;for(;g>=s;--g){const v=n[g].codePoint;if(!Bi(v))break;h+=1}(h>0||g=r)return null;const o=n;let i=e[n].codePoint;if(!k1(i)&&i!==G.UNDERSCORE&&i!==G.COLON)return null;for(n=o+1;nl&&(a.value={startIndex:l,endIndex:c});break}}if(a.value!=null)return{attribute:a,nextIndex:n}}return{attribute:a,nextIndex:s}}function k_(e,t,r){if(t>=r||!k1(e[t].codePoint))return null;let n=t;for(;n=r)return r;const o=e[t].codePoint;return Bi(o)||o===G.CLOSE_ANGLE?t+1:null}function Tgt(e,t,r){for(let n=t;n=r||e[i].codePoint!==G.CLOSE_ANGLE){n+=1;continue}const a=_u(e,o,i,!0).toLowerCase();if(eme.includes(a))return i}return null}function xgt(e,t,r){const n=t;return n+2=r)return r;const o=e[t].codePoint;return Bi(o)||o===G.CLOSE_ANGLE?t+1:o===G.SLASH&&t+1=r)return null;let i=t;if(o){for(;i=r)return null;e[i].codePoint===G.SLASH&&(i+=1)}else i=wn(e,t,r);if(i>=r||e[i].codePoint!==G.CLOSE_ANGLE)return null;for(i+=1;i=4)return null;const{nodePoints:s,startIndex:a,endIndex:u,firstNonWhitespaceIndex:l}=i;if(l>=u||s[l].codePoint!==G.OPEN_ANGLE)return null;const c=l+1,f=n(s,c,u);if(f==null)return null;const{condition:d}=f;let h=!1;d!==6&&d!==7&&o(s,f.nextIndex,u,d)!=null&&(h=!0);const g=u;return{token:{nodeType:__,position:{start:yl(s,a),end:Ms(s,g-1)},condition:d,lines:[i]},nextIndex:g,saturated:h}}function t(i,s){const a=e(i);if(a==null||a.token.condition===7)return null;const{token:u,nextIndex:l}=a;return{token:u,nextIndex:l,remainingSibling:s}}function r(i,s){const{nodePoints:a,endIndex:u,firstNonWhitespaceIndex:l}=i,c=o(a,l,u,s.condition);return c===-1?{status:"notMatched"}:(s.lines.push(i),c!=null?{status:"closing",nextIndex:u}:{status:"opening",nextIndex:u})}function n(i,s,a){let u=null;if(s>=a)return null;if(u=xgt(i,s,a),u!=null)return{nextIndex:u,condition:2};if(u=Ngt(i,s,a),u!=null)return{nextIndex:u,condition:3};if(u=Rgt(i,s,a),u!=null)return{nextIndex:u,condition:4};if(u=Dgt(i,s,a),u!=null)return{nextIndex:u,condition:5};if(i[s].codePoint!==G.SLASH){const g=s,v=k_(i,g,a);if(v==null)return null;const y={startIndex:g,endIndex:v},_=_u(i,y.startIndex,y.endIndex).toLowerCase();return u=Agt(i,y.endIndex,a,_),u!=null?{nextIndex:u,condition:1}:(u=Hte(i,y.endIndex,a,_),u!=null?{nextIndex:u,condition:6}:(u=$te(i,y.endIndex,a,_,!0),u!=null?{nextIndex:u,condition:7}:null))}const l=s+1,c=k_(i,l,a);if(c==null)return null;const f={startIndex:l,endIndex:c},h=_u(i,f.startIndex,f.endIndex).toLowerCase();return u=Hte(i,f.endIndex,a,h),u!=null?{nextIndex:u,condition:6}:(u=$te(i,f.endIndex,a,h,!1),u!=null?{nextIndex:u,condition:7}:null)}function o(i,s,a,u){switch(u){case 1:return Tgt(i,s,a)==null?null:a;case 2:return Igt(i,s,a)==null?null:a;case 3:return Cgt(i,s,a)==null?null:a;case 4:return Ogt(i,s,a)==null?null:a;case 5:return Fgt(i,s,a)==null?null:a;case 6:case 7:return wn(i,s,a)>=a?-1:null}}},jgt=function(e){return{parse:t=>t.map(r=>{const n=zz(r.lines);return e.shouldReservePosition?{type:"html",position:r.position,value:_u(n)}:{type:"html",value:_u(n)}})}},zgt="@yozora/tokenizer-html-block";class Hgt extends Ic{constructor(r={}){super({name:r.name??zgt,priority:r.priority??Yn.ATOMIC});ze(this,"match",Lgt);ze(this,"parse",jgt)}}function $gt(e,t,r){let n=t;if(n+11>=r||e[n+1].codePoint!==G.EXCLAMATION_MARK||e[n+2].codePoint!==G.OPEN_BRACKET||e[n+3].codePoint!==G.UPPERCASE_C||e[n+4].codePoint!==G.UPPERCASE_D||e[n+5].codePoint!==G.UPPERCASE_A||e[n+6].codePoint!==G.UPPERCASE_T||e[n+7].codePoint!==G.UPPERCASE_A||e[n+8].codePoint!==G.OPEN_BRACKET)return null;const o=n+9;for(n=o;n=r)return null;if(e[n+1].codePoint===G.CLOSE_BRACKET&&e[n+2].codePoint===G.CLOSE_ANGLE)return{type:"full",startIndex:t,endIndex:n+3,htmlType:"cdata"}}return null}function Pgt(e,t,r){let n=t;if(n+3>=r||e[n+1].codePoint!==G.SLASH)return null;const o=n+2,i=k_(e,o,r);return i==null||(n=wn(e,i,r),n>=r||e[n].codePoint!==G.CLOSE_ANGLE)?null:{type:"full",startIndex:t,endIndex:n+1,htmlType:"closing",tagName:{startIndex:o,endIndex:i}}}function qgt(e,t,r){let n=t;if(n+6>=r||e[n+1].codePoint!==G.EXCLAMATION_MARK||e[n+2].codePoint!==G.MINUS_SIGN||e[n+3].codePoint!==G.MINUS_SIGN||e[n+4].codePoint===G.CLOSE_ANGLE||e[n+4].codePoint===G.MINUS_SIGN&&e[n+5].codePoint===G.CLOSE_ANGLE)return null;const o=n+4;for(n=o;n2||n+2>=r||e[n+2].codePoint!==G.CLOSE_ANGLE?null:{type:"full",startIndex:t,endIndex:n+3,htmlType:"comment"}}return null}function Wgt(e,t,r){let n=t;if(n+4>=r||e[n+1].codePoint!==G.EXCLAMATION_MARK)return null;const o=n+2;for(n=o;n=r||!Bi(e[n].codePoint))return null;const i=n,s=n+1;for(n=s;n=r||e[n+1].codePoint!==G.QUESTION_MARK)return null;const o=n+2;for(n=o;n=r)return null;if(e[n+1].codePoint===G.CLOSE_ANGLE)return{type:"full",startIndex:t,endIndex:n+2,htmlType:"instruction"}}return null}function Ggt(e,t,r){let n=t;if(n+2>=r)return null;const o=n+1,i=k_(e,o,r);if(i==null)return null;const s=[];for(n=i;n=r)return null;let a=!1;return e[n].codePoint===G.SLASH&&(n+=1,a=!0),n>=r||e[n].codePoint!==G.CLOSE_ANGLE?null:{type:"full",startIndex:t,endIndex:n+1,htmlType:"open",tagName:{startIndex:o,endIndex:i},attributes:s,selfClosed:a}}const Vgt=function(e){return{findDelimiter:()=>Kf(t),processSingleDelimiter:r};function t(n,o){const i=e.getNodePoints();for(let s=n;s=o));++s)switch(i[s].codePoint){case G.BACKSLASH:s+=1;break;case G.OPEN_ANGLE:{const u=Ugt(i,s,o);if(u!=null)return u;break}}return null}function r(n){return[{...n,nodeType:__}]}};function Ugt(e,t,r){let n=null;return n=Ggt(e,t,r),n!=null||(n=Pgt(e,t,r),n!=null)||(n=qgt(e,t,r),n!=null)||(n=Kgt(e,t,r),n!=null)||(n=Wgt(e,t,r),n!=null)||(n=$gt(e,t,r)),n}const Ygt=function(e){return{parse:t=>t.map(r=>{const{startIndex:n,endIndex:o}=r,i=e.getNodePoints(),s=_u(i,n,o);return e.shouldReservePosition?{type:__,position:e.calcPosition(r),value:s}:{type:__,value:s}})}},Xgt="@yozora/tokenizer-html-inline";class Qgt extends xc{constructor(r={}){super({name:r.name??Xgt,priority:r.priority??Yn.ATOMIC});ze(this,"match",Vgt);ze(this,"parse",Ygt)}}const A5=(e,t,r,n)=>{let o=e,i=0;const s=()=>{switch(n[o].codePoint){case G.BACKSLASH:o+=1;break;case G.OPEN_BRACKET:i+=1;break;case G.CLOSE_BRACKET:i-=1;break}};for(const a of r)if(!(a.startIndext)break;for(;o0?1:0};function tme(e,t,r){if(t>=r)return-1;let n=t;switch(e[n].codePoint){case G.OPEN_ANGLE:{for(n+=1;n=r)return-1;let n=t;const o=e[n].codePoint;switch(o){case G.DOUBLE_QUOTE:case G.SINGLE_QUOTE:{for(n+=1;ni.line+1)return-1;break}}}break}case G.OPEN_PARENTHESIS:{let i=1;for(n+=1;ns.line+1)return-1;break}case G.OPEN_PARENTHESIS:i+=1;break;case G.CLOSE_PARENTHESIS:if(i-=1,i===0)return n+1;break}}break}case G.CLOSE_PARENTHESIS:return n;default:return-1}return-1}const Zgt=function(e){return{findDelimiter:()=>Kf(t),isDelimiterPair:r,processDelimiterPair:n};function t(o,i){const s=e.getNodePoints(),a=e.getBlockEndIndex();for(let u=o;u=i||s[u+1].codePoint!==G.OPEN_PARENTHESIS)break;const c=wn(s,u+2,a),f=tme(s,c,a);if(f<0)break;const d=wn(s,f,a),h=rme(s,d,a);if(h<0)break;const g=u,v=wn(s,h,a)+1;if(v>a||s[v-1].codePoint!==G.CLOSE_PARENTHESIS)break;return{type:"closer",startIndex:g,endIndex:v,destinationContent:ct.map(r=>{const n=e.getNodePoints();let o="";if(r.destinationContent!=null){let{startIndex:u,endIndex:l}=r.destinationContent;n[u].codePoint===G.OPEN_ANGLE&&(u+=1,l-=1);const c=rc(n,u,l,!0);o=e.formatUrl(c)}let i;if(r.titleContent!=null){const{startIndex:u,endIndex:l}=r.titleContent;i=rc(n,u+1,l-1)}const s=e.parseInlineTokens(r.children);return e.shouldReservePosition?{type:w1,position:e.calcPosition(r),url:o,title:i,children:s}:{type:w1,url:o,title:i,children:s}})}},evt="@yozora/tokenizer-link";class tvt extends xc{constructor(r={}){super({name:r.name??evt,priority:r.priority??Yn.LINKS});ze(this,"match",Zgt);ze(this,"parse",Jgt)}}function $z(e){return e.map(t=>t.value!=null?t.value:t.alt!=null?t.alt:t.children!=null?$z(t.children):"").join("")}const rvt=function(e){return{findDelimiter:()=>Kf(t),isDelimiterPair:r,processDelimiterPair:n};function t(o,i){const s=e.getNodePoints(),a=e.getBlockEndIndex();for(let u=o;u=i||s[u+1].codePoint!==G.OPEN_PARENTHESIS)break;const c=wn(s,u+2,a),f=tme(s,c,a);if(f<0)break;const d=wn(s,f,a),h=rme(s,d,a);if(h<0)break;const g=u,v=wn(s,h,a)+1;if(v>a||s[v-1].codePoint!==G.CLOSE_PARENTHESIS)break;return{type:"closer",startIndex:g,endIndex:v,destinationContent:ct.map(r=>{const n=e.getNodePoints();let o="";if(r.destinationContent!=null){let{startIndex:l,endIndex:c}=r.destinationContent;n[l].codePoint===G.OPEN_ANGLE&&(l+=1,c-=1);const f=rc(n,l,c,!0);o=e.formatUrl(f)}const i=e.parseInlineTokens(r.children),s=$z(i);let a;if(r.titleContent!=null){const{startIndex:l,endIndex:c}=r.titleContent;a=rc(n,l+1,c-1)}return e.shouldReservePosition?{type:E_,position:e.calcPosition(r),url:o,alt:s,title:a}:{type:E_,url:o,alt:s,title:a}})}},ovt="@yozora/tokenizer-image";class ivt extends xc{constructor(r={}){super({name:r.name??ovt,priority:r.priority??Yn.LINKS});ze(this,"match",rvt);ze(this,"parse",nvt)}}const svt=function(e){return{findDelimiter:()=>Kf(t),isDelimiterPair:r,processDelimiterPair:n};function t(o,i){const s=e.getNodePoints();for(let a=o;a=i||s[a+1].codePoint!==G.OPEN_BRACKET)break;return{type:"opener",startIndex:a,endIndex:a+2,brackets:[]}}case G.CLOSE_BRACKET:{const l={type:"closer",startIndex:a,endIndex:a+1,brackets:[]};if(a+1>=i||s[a+1].codePoint!==G.OPEN_BRACKET)return l;const c=K0(s,a+1,i);return c.nextIndex<0?l:c.labelAndIdentifier==null?{type:"closer",startIndex:a,endIndex:c.nextIndex,brackets:[{startIndex:a+1,endIndex:c.nextIndex}]}:{type:"closer",startIndex:a,endIndex:c.nextIndex,brackets:[{startIndex:a+1,endIndex:c.nextIndex,label:c.labelAndIdentifier.label,identifier:c.labelAndIdentifier.identifier}]}}}return null}function r(o,i,s){const a=e.getNodePoints();switch(A5(o.endIndex,i.startIndex,s,a)){case-1:return{paired:!1,opener:!1,closer:!0};case 0:return{paired:!0};case 1:return{paired:!1,opener:!0,closer:!1}}}function n(o,i,s){const a=e.getNodePoints(),u=i.brackets[0];if(u!=null&&u.identifier!=null)return e.hasDefinition(u.identifier)?{tokens:[{nodeType:ev,startIndex:o.startIndex,endIndex:u.endIndex,referenceType:"full",label:u.label,identifier:u.identifier,children:e.resolveInternalTokens(s,o.endIndex,i.startIndex)}]}:{tokens:s};const{nextIndex:l,labelAndIdentifier:c}=K0(a,o.endIndex-1,i.startIndex+1);return l===i.startIndex+1&&c!=null&&e.hasDefinition(c.identifier)?{tokens:[{nodeType:ev,startIndex:o.startIndex,endIndex:i.endIndex,referenceType:u==null?"shortcut":"collapsed",label:c.label,identifier:c.identifier,children:e.resolveInternalTokens(s,o.endIndex,i.startIndex)}]}:{tokens:s}}},avt=function(e){return{parse:t=>t.map(r=>{const{identifier:n,label:o,referenceType:i}=r,s=e.parseInlineTokens(r.children),a=$z(s);return e.shouldReservePosition?{type:ev,position:e.calcPosition(r),identifier:n,label:o,referenceType:i,alt:a}:{type:ev,identifier:n,label:o,referenceType:i,alt:a}})}},uvt="@yozora/tokenizer-image-reference";class lvt extends xc{constructor(r={}){super({name:r.name??uvt,priority:r.priority??Yn.LINKS});ze(this,"match",svt);ze(this,"parse",avt)}}const cvt=function(){return{isContainingBlock:!1,eatOpener:e,eatContinuationText:t};function e(r){if(r.countOfPrecedeSpaces<4)return null;const{nodePoints:n,startIndex:o,firstNonWhitespaceIndex:i,endIndex:s}=r;let a=o+4;if(n[o].codePoint===G.SPACE&&n[o+3].codePoint===Cr.SPACE){let c=o+1;for(;ct.map(r=>{const{lines:n}=r;let o=0,i=n.length;for(;oc+1&&s.push({type:"opener",startIndex:c+1,endIndex:d}),c=d-1}break}case G.BACKTICK:{const d=c,h=tv(n,c+1,i,f);s.push({type:"both",startIndex:d,endIndex:h}),c=h-1;break}}}let a=0,u=-1,l=null;for(;a=c))continue;u=f;let d=null,h=null;for(;a=c&&v.type!=="closer")break}if(a+1>=s.length)return;d=s[a];const g=d.endIndex-d.startIndex;for(let v=a+1;vt.map(r=>{const n=e.getNodePoints();let o=r.startIndex+r.thickness,i=r.endIndex-r.thickness,s=!0;for(let l=o;lKf(t),isDelimiterPair:r,processDelimiterPair:n,processSingleDelimiter:o};function t(i,s){const a=e.getNodePoints();for(let u=i;u=s||a[u+1].codePoint!==G.OPEN_BRACKET)break;const c=K0(a,u+1,s);if(c.nextIndex===-1)return{type:"opener",startIndex:u+1,endIndex:u+2,brackets:[]};if(c.labelAndIdentifier==null){u=c.nextIndex-1;break}const f=[{startIndex:u+1,endIndex:c.nextIndex,label:c.labelAndIdentifier.label,identifier:c.labelAndIdentifier.identifier}],d={type:"closer",startIndex:u,endIndex:c.nextIndex,brackets:f};for(u=c.nextIndex;u=a.length)break;if(l+1t.map(r=>{const{identifier:n,label:o,referenceType:i}=r,s=e.parseInlineTokens(r.children);return e.shouldReservePosition?{type:Hd,position:e.calcPosition(r),identifier:n,label:o,referenceType:i,children:s}:{type:Hd,identifier:n,label:o,referenceType:i,children:s}})}},_vt="@yozora/tokenizer-link-reference";class Evt extends xc{constructor(r={}){super({name:r.name??_vt,priority:r.priority??Yn.LINKS});ze(this,"match",yvt);ze(this,"parse",bvt)}}const Svt=function(){const{emptyItemCouldNotInterruptedTypes:e,enableTaskListItem:t}=this;return{isContainingBlock:!0,eatOpener:r,eatAndInterruptPreviousSibling:n,eatContinuationText:o};function r(i){if(i.countOfPrecedeSpaces>=4)return null;const{nodePoints:s,startIndex:a,endIndex:u,firstNonWhitespaceIndex:l}=i;if(l>=u)return null;let c=!1,f=null,d,h,g=l,v=s[g].codePoint;if(g+1l&&g-l<=9&&(v===G.DOT||v===G.CLOSE_PARENTHESIS)&&(g+=1,c=!0,f=v)}if(c||(v===G.PLUS_SIGN||v===G.MINUS_SIGN||v===G.ASTERISK)&&(g+=1,f=v),f==null)return null;let y=0,E=g;for(E4&&(E-=y-1,y=1),y===0&&E=u){if(s.countOfTopBlankLine>=0&&(s.countOfTopBlankLine+=1,s.countOfTopBlankLine>1))return{status:"notMatched"}}else s.countOfTopBlankLine=-1;return{status:"opening",nextIndex:Math.min(a+s.indent,u-1)}}};function wvt(e,t,r){let n=t;for(;n=r||e[n].codePoint!==G.OPEN_BRACKET||e[n+2].codePoint!==G.CLOSE_BRACKET||!Bi(e[n+3].codePoint))return{status:null,nextIndex:t};let o;switch(e[n+1].codePoint){case G.SPACE:o=ab.TODO;break;case G.MINUS_SIGN:o=ab.DOING;break;case G.LOWERCASE_X:case G.UPPERCASE_X:o=ab.DONE;break;default:return{status:null,nextIndex:t}}return{status:o,nextIndex:n+4}}const kvt=function(e){return{parse:t=>{const r=[];let n=[];for(let i=0;i{if(e.length<=0)return null;let r=e.some(i=>{if(i.children==null||i.children.length<=1)return!1;let s=i.children[0].position;for(let a=1;a1){let i=e[0];for(let s=1;s{const s=t.parseBlockTokens(i.children),a=r?s:s.map(l=>l.type===rp?l.children:l).flat();return t.shouldReservePosition?{type:v6,position:i.position,status:i.status,children:a}:{type:v6,status:i.status,children:a}});return t.shouldReservePosition?{type:LT,position:{start:{...e[0].position.start},end:{...e[e.length-1].position.end}},ordered:e[0].ordered,orderType:e[0].orderType,start:e[0].order,marker:e[0].marker,spread:r,children:n}:{type:LT,ordered:e[0].ordered,orderType:e[0].orderType,start:e[0].order,marker:e[0].marker,spread:r,children:n}},Avt="@yozora/tokenizer-list";class Tvt extends Ic{constructor(r={}){super({name:r.name??Avt,priority:r.priority??Yn.CONTAINING_BLOCK});ze(this,"enableTaskListItem");ze(this,"emptyItemCouldNotInterruptedTypes");ze(this,"match",Svt);ze(this,"parse",kvt);this.enableTaskListItem=r.enableTaskListItem??!1,this.emptyItemCouldNotInterruptedTypes=r.emptyItemCouldNotInterruptedTypes??[rp]}}const xvt=function(){return{isContainingBlock:!1,eatOpener:e,eatContinuationText:t,eatLazyContinuationText:r};function e(n){const{endIndex:o,firstNonWhitespaceIndex:i}=n;if(i>=o)return null;const s=[n],a=Vve(s);return{token:{nodeType:rp,position:a,lines:s},nextIndex:o}}function t(n,o){const{endIndex:i,firstNonWhitespaceIndex:s}=n;return s>=i?{status:"notMatched"}:(o.lines.push(n),{status:"opening",nextIndex:i})}function r(n,o){return t(n,o)}},Ivt=function(e){return{parse:t=>{const r=[];for(const n of t){const o=Hz(n.lines),i=e.processInlines(o);if(i.length<=0)continue;const s=e.shouldReservePosition?{type:rp,position:n.position,children:i}:{type:rp,children:i};r.push(s)}return r}}},Nvt="@yozora/tokenizer-paragraph";class Cvt extends Ic{constructor(r={}){super({name:r.name??Nvt,priority:r.priority??Yn.FALLBACK});ze(this,"match",xvt);ze(this,"parse",Ivt)}extractPhrasingContentLines(r){return r.lines}buildBlockToken(r){const n=L0t(r);if(n.length<=0)return null;const o=Vve(n);return{nodeType:rp,lines:n,position:o}}}const Rvt=function(e){return{isContainingBlock:!1,eatOpener:t,eatAndInterruptPreviousSibling:r};function t(){return null}function r(n,o){const{nodePoints:i,endIndex:s,firstNonWhitespaceIndex:a,countOfPrecedeSpaces:u}=n;if(u>=4||a>=s)return null;let l=null,c=!1;for(let g=a;gt.map(r=>{let n=1;switch(r.marker){case G.EQUALS_SIGN:n=1;break;case G.MINUS_SIGN:n=2;break}const o=Hz(r.lines),i=e.processInlines(o);return e.shouldReservePosition?{type:tp,position:r.position,depth:n,children:i}:{type:tp,depth:n,children:i}})}},Dvt="@yozora/tokenizer-setext-heading";class Fvt extends Ic{constructor(r={}){super({name:r.name??Dvt,priority:r.priority??Yn.ATOMIC});ze(this,"match",Rvt);ze(this,"parse",Ovt)}}const Bvt=function(){return{findDelimiter:()=>Kf((e,t)=>({type:"full",startIndex:e,endIndex:t})),processSingleDelimiter:e=>[{nodeType:S_,startIndex:e.startIndex,endIndex:e.endIndex}]}},Mvt=function(e){return{parse:t=>t.map(r=>{const n=e.getNodePoints();let o=rc(n,r.startIndex,r.endIndex);return o=jvt(o),e.shouldReservePosition?{type:S_,position:e.calcPosition(r),value:o}:{type:S_,value:o}})}},Lvt=/[^\S\n]*\n[^\S\n]*/g,jvt=e=>e.replace(Lvt,` -`),zvt="@yozora/tokenizer-text";class Hvt extends xc{constructor(r={}){super({name:r.name??zvt,priority:r.priority??Yn.FALLBACK});ze(this,"match",Bvt);ze(this,"parse",Mvt)}findAndHandleDelimiter(r,n){return{nodeType:S_,startIndex:r,endIndex:n}}}const $vt=function(){return{isContainingBlock:!1,eatOpener:e,eatAndInterruptPreviousSibling:t};function e(r){if(r.countOfPrecedeSpaces>=4)return null;const{nodePoints:n,startIndex:o,endIndex:i,firstNonWhitespaceIndex:s}=r;if(s+2>=i)return null;let a,u=0,l=!0,c=!1;for(let d=s;dt.map(r=>e.shouldReservePosition?{type:jT,position:r.position}:{type:jT})}},qvt="@yozora/tokenizer-thematic-break";class Wvt extends Ic{constructor(r={}){super({name:r.name??qvt,priority:r.priority??Yn.ATOMIC});ze(this,"match",$vt);ze(this,"parse",Pvt)}}class Kvt extends K0t{constructor(t={}){super({...t,blockFallbackTokenizer:t.blockFallbackTokenizer??new Cvt,inlineFallbackTokenizer:t.inlineFallbackTokenizer??new Hvt}),this.useTokenizer(new hvt).useTokenizer(new Hgt).useTokenizer(new Fvt).useTokenizer(new Wvt).useTokenizer(new ngt).useTokenizer(new Tvt({enableTaskListItem:!1})).useTokenizer(new kgt).useTokenizer(new _gt).useTokenizer(new fgt).useTokenizer(new Qgt).useTokenizer(new mvt).useTokenizer(new J0t).useTokenizer(new agt).useTokenizer(new ivt).useTokenizer(new lvt).useTokenizer(new tvt).useTokenizer(new Evt).useTokenizer(new ggt)}}const Gvt=new Kvt({defaultParseOptions:{shouldReservePosition:!1}});class Vvt extends re.Component{shouldComponentUpdate(t){return this.props.children!==t.children}render(){const t=this.props.children;return C.jsx("blockquote",{className:Uvt,children:C.jsx(Aa,{nodes:t})})}}const Uvt=vr(Gn.blockquote,{boxSizing:"border-box",padding:"0.625em 1em",borderLeft:"0.25em solid var(--colorBorderBlockquote)",margin:"0px 0px 1.25em 0px",background:"var(--colorBgBlockquote)",boxShadow:"0 1px 2px 0 hsla(0deg, 0%, 0%, 0.1)","> :last-child":{marginBottom:0}});class Yvt extends re.Component{shouldComponentUpdate(){return!1}render(){return C.jsx("br",{className:Xvt})}}const Xvt=vr(Gn.break,{boxSizing:"border-box"});var nme={exports:{}};(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** +${kt??"Unknown error"}`})]:[Zw({id:Qe,content:J(Ge??[]),extra:eo?void 0:{session_id:He,root_run_id:Ge==null?void 0:Ge[0].rootRunId},from:$e})];Fe.push({chatItemName:$t,flowHistoryItems:Je}),_($t,ky),E($t,Je,!0),v($t,"stopped")}),Fe.length===0&&I(K,"No eval output");return}catch(xe){I(K,((me=(we=(ve=xe.response)==null?void 0:ve.data)==null?void 0:we.error)==null?void 0:me.message)??xe.message);return}finally{X()}}),ge=k.useCallback(async(Ee,ve,we)=>{const me=v6(Ee),xe=T==="openai-vision"?y6(Ee):m6(Ee),He=(Oe,Qe)=>{const Fe=[we];if(!q&&Qe){const Ze=e.sessionSplit();Fe.unshift(Ze)}x(U,Ze=>{E(Ze,Fe,Oe)}),R("running")};if(me.trim()==="/eval_last"){if(He(!0,!1),r!==to){I(r,"Evaluations are not currently supported on variants."),R("stopped");return}return fe()}if(me.trim()==="/eval"||me.trim().startsWith("/eval ")||me.trim().startsWith(`/eval +`)){const Oe=me.trim().match(/^\/eval\s+(.*)/m),Qe=Oe==null?void 0:Oe[1];let Fe;if(Qe&&(Fe=z?(T==="openai-vision"?vht:ght)(Ee):Qe),He(!0,!0),r!==to){I(r,"Evaluations are not currently supported on variants."),R("stopped");return}return fe(Fe)}He(!1,!0);const it={[L]:z?xe:me};return x(U,Oe=>{u(Oe,it)}),D.updateCurrentFlowUxInputs(),ee(z?xe:me)},[r,I,E,D,q,L,x,fe,ee,z,T,u,R,U,e]),Se=k.useCallback(Ee=>{const ve=Ee.content,we=v6(ve),me=T==="openai-vision"?y6(ve):m6(ve);return z?JSON.stringify(me):we},[z,T]);return k.useEffect(()=>{q&&x(U,Ee=>{var we;const ve=a(Ee)[q]??((we=A[q])==null?void 0:we.default);if(!Array.isArray(ve)){if(typeof ve=="string")try{const me=JSON.parse(ve);if(Array.isArray(me)){u(Ee,{[q]:me});return}}catch{}u(Ee,{[q]:[]})}})},[q,A,x,a,u,U]),k.useEffect(()=>{e.setSendMessage(ge)},[ge,e]),k.useEffect(()=>{e.setCalcContentForCopy(Se)},[Se,e]),k.useEffect(()=>{e.alias$.next("User")},[e.alias$]),k.useEffect(()=>{e.disabled$.next(!L||!M)},[L,M,e.disabled$]),k.useEffect(()=>{e.messages$.next(s),e.isOthersTyping$.next(!!g.find((Ee,ve)=>(ve===r||ve.startsWith(`${r}.`))&&Ee==="running"))},[r,s,g,e.isOthersTyping$,e.messages$]),k.useEffect(()=>{b(t)},[t,b]),N.jsx(N.Fragment,{})},R0t=()=>{const[e]=yp(),t=jE(),r=Lz(),n=Da(),{chatInputName:o,chatOutputName:i,chatHistoryName:s}=_l(),{viewmodel:a}=ku(),l=ro(a.isOthersTyping$)||!o||!i,{forEachChatItem:c}=Pz(),f=re.useCallback(()=>{const d=a.sessionSplit();c(e,h=>{t(h,s?{[s]:[]}:{}),r(h,[d])}),n.updateCurrentFlowUxInputs()},[e,r,n,s,c,t,a]);return N.jsx("div",{style:{marginRight:"8px"},children:N.jsx(ca,{content:"Click to start a new session",relationship:"label",positioning:"above",children:N.jsx(Wn,{as:"button",shape:"circular",size:"medium",icon:N.jsx(s3e,{}),disabled:l,onClick:f})})})},Yve=e=>{const{viewmodel:t}=ku(),r=ro(t.disabled$),n=O0t(),o=Xe(e.className,r?n.disabled:void 0);return N.jsx(Xj,{...e,className:o})};Yve.displayName="MessageInputRenderer";const O0t=Ar({disabled:{backgroundColor:Pt.colorNeutralBackground3}}),E_="blockquote",zx="break",Jh="code",S_="definition",D0t="delete",Xve="emphasis",ep="heading",w_="html";var $te;(function(e){e.CDATA="cdata",e.Closing="closing",e.Comment="comment",e.Declaration="declaration",e.Instruction="instruction",e.Open="open"})($te||($te={}));const nv="imageReference",A_="image",Hx="inlineCode",Hd="linkReference",S1="link",E6="listItem";var cb;(function(e){e.TODO="todo",e.DOING="doing",e.DONE="done"})(cb||(cb={}));const $x="list",tp="paragraph",Qve="strong",F0t="table",k_="text",Px="thematicBreak";var G;(function(e){e[e.NUL=0]="NUL",e[e.SOH=1]="SOH",e[e.STX=2]="STX",e[e.ETX=3]="ETX",e[e.EOT=4]="EOT",e[e.ENQ=5]="ENQ",e[e.ACK=6]="ACK",e[e.BEL=7]="BEL",e[e.BS=8]="BS",e[e.HT=9]="HT",e[e.LF=10]="LF",e[e.VT=11]="VT",e[e.FF=12]="FF",e[e.CR=13]="CR",e[e.SO=14]="SO",e[e.SI=15]="SI",e[e.DLE=16]="DLE",e[e.DC1=17]="DC1",e[e.DC2=18]="DC2",e[e.DC3=19]="DC3",e[e.DC4=20]="DC4",e[e.NAK=21]="NAK",e[e.SYN=22]="SYN",e[e.ETB=23]="ETB",e[e.CAN=24]="CAN",e[e.EM=25]="EM",e[e.SUB=26]="SUB",e[e.ESC=27]="ESC",e[e.FS=28]="FS",e[e.GS=29]="GS",e[e.RS=30]="RS",e[e.US=31]="US",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.DOUBLE_QUOTE=34]="DOUBLE_QUOTE",e[e.NUMBER_SIGN=35]="NUMBER_SIGN",e[e.DOLLAR_SIGN=36]="DOLLAR_SIGN",e[e.PERCENT_SIGN=37]="PERCENT_SIGN",e[e.AMPERSAND=38]="AMPERSAND",e[e.SINGLE_QUOTE=39]="SINGLE_QUOTE",e[e.OPEN_PARENTHESIS=40]="OPEN_PARENTHESIS",e[e.CLOSE_PARENTHESIS=41]="CLOSE_PARENTHESIS",e[e.ASTERISK=42]="ASTERISK",e[e.PLUS_SIGN=43]="PLUS_SIGN",e[e.COMMA=44]="COMMA",e[e.MINUS_SIGN=45]="MINUS_SIGN",e[e.DOT=46]="DOT",e[e.SLASH=47]="SLASH",e[e.DIGIT0=48]="DIGIT0",e[e.DIGIT1=49]="DIGIT1",e[e.DIGIT2=50]="DIGIT2",e[e.DIGIT3=51]="DIGIT3",e[e.DIGIT4=52]="DIGIT4",e[e.DIGIT5=53]="DIGIT5",e[e.DIGIT6=54]="DIGIT6",e[e.DIGIT7=55]="DIGIT7",e[e.DIGIT8=56]="DIGIT8",e[e.DIGIT9=57]="DIGIT9",e[e.COLON=58]="COLON",e[e.SEMICOLON=59]="SEMICOLON",e[e.OPEN_ANGLE=60]="OPEN_ANGLE",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.CLOSE_ANGLE=62]="CLOSE_ANGLE",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.AT_SIGN=64]="AT_SIGN",e[e.UPPERCASE_A=65]="UPPERCASE_A",e[e.UPPERCASE_B=66]="UPPERCASE_B",e[e.UPPERCASE_C=67]="UPPERCASE_C",e[e.UPPERCASE_D=68]="UPPERCASE_D",e[e.UPPERCASE_E=69]="UPPERCASE_E",e[e.UPPERCASE_F=70]="UPPERCASE_F",e[e.UPPERCASE_G=71]="UPPERCASE_G",e[e.UPPERCASE_H=72]="UPPERCASE_H",e[e.UPPERCASE_I=73]="UPPERCASE_I",e[e.UPPERCASE_J=74]="UPPERCASE_J",e[e.UPPERCASE_K=75]="UPPERCASE_K",e[e.UPPERCASE_L=76]="UPPERCASE_L",e[e.UPPERCASE_M=77]="UPPERCASE_M",e[e.UPPERCASE_N=78]="UPPERCASE_N",e[e.UPPERCASE_O=79]="UPPERCASE_O",e[e.UPPERCASE_P=80]="UPPERCASE_P",e[e.UPPERCASE_Q=81]="UPPERCASE_Q",e[e.UPPERCASE_R=82]="UPPERCASE_R",e[e.UPPERCASE_S=83]="UPPERCASE_S",e[e.UPPERCASE_T=84]="UPPERCASE_T",e[e.UPPERCASE_U=85]="UPPERCASE_U",e[e.UPPERCASE_V=86]="UPPERCASE_V",e[e.UPPERCASE_W=87]="UPPERCASE_W",e[e.UPPERCASE_X=88]="UPPERCASE_X",e[e.UPPERCASE_Y=89]="UPPERCASE_Y",e[e.UPPERCASE_Z=90]="UPPERCASE_Z",e[e.OPEN_BRACKET=91]="OPEN_BRACKET",e[e.BACKSLASH=92]="BACKSLASH",e[e.CLOSE_BRACKET=93]="CLOSE_BRACKET",e[e.CARET=94]="CARET",e[e.UNDERSCORE=95]="UNDERSCORE",e[e.BACKTICK=96]="BACKTICK",e[e.LOWERCASE_A=97]="LOWERCASE_A",e[e.LOWERCASE_B=98]="LOWERCASE_B",e[e.LOWERCASE_C=99]="LOWERCASE_C",e[e.LOWERCASE_D=100]="LOWERCASE_D",e[e.LOWERCASE_E=101]="LOWERCASE_E",e[e.LOWERCASE_F=102]="LOWERCASE_F",e[e.LOWERCASE_G=103]="LOWERCASE_G",e[e.LOWERCASE_H=104]="LOWERCASE_H",e[e.LOWERCASE_I=105]="LOWERCASE_I",e[e.LOWERCASE_J=106]="LOWERCASE_J",e[e.LOWERCASE_K=107]="LOWERCASE_K",e[e.LOWERCASE_L=108]="LOWERCASE_L",e[e.LOWERCASE_M=109]="LOWERCASE_M",e[e.LOWERCASE_N=110]="LOWERCASE_N",e[e.LOWERCASE_O=111]="LOWERCASE_O",e[e.LOWERCASE_P=112]="LOWERCASE_P",e[e.LOWERCASE_Q=113]="LOWERCASE_Q",e[e.LOWERCASE_R=114]="LOWERCASE_R",e[e.LOWERCASE_S=115]="LOWERCASE_S",e[e.LOWERCASE_T=116]="LOWERCASE_T",e[e.LOWERCASE_U=117]="LOWERCASE_U",e[e.LOWERCASE_V=118]="LOWERCASE_V",e[e.LOWERCASE_W=119]="LOWERCASE_W",e[e.LOWERCASE_X=120]="LOWERCASE_X",e[e.LOWERCASE_Y=121]="LOWERCASE_Y",e[e.LOWERCASE_Z=122]="LOWERCASE_Z",e[e.OPEN_BRACE=123]="OPEN_BRACE",e[e.VERTICAL_SLASH=124]="VERTICAL_SLASH",e[e.CLOSE_BRACE=125]="CLOSE_BRACE",e[e.TILDE=126]="TILDE",e[e.DELETE=127]="DELETE"})(G||(G={}));const B0t={µ:"μ",À:"à",Á:"á",Â:"â",Ã:"ã",Ä:"ä",Å:"å",Æ:"æ",Ç:"ç",È:"è",É:"é",Ê:"ê",Ë:"ë",Ì:"ì",Í:"í",Î:"î",Ï:"ï",Ð:"ð",Ñ:"ñ",Ò:"ò",Ó:"ó",Ô:"ô",Õ:"õ",Ö:"ö",Ø:"ø",Ù:"ù",Ú:"ú",Û:"û",Ü:"ü",Ý:"ý",Þ:"þ",Ā:"ā",Ă:"ă",Ą:"ą",Ć:"ć",Ĉ:"ĉ",Ċ:"ċ",Č:"č",Ď:"ď",Đ:"đ",Ē:"ē",Ĕ:"ĕ",Ė:"ė",Ę:"ę",Ě:"ě",Ĝ:"ĝ",Ğ:"ğ",Ġ:"ġ",Ģ:"ģ",Ĥ:"ĥ",Ħ:"ħ",Ĩ:"ĩ",Ī:"ī",Ĭ:"ĭ",Į:"į",IJ:"ij",Ĵ:"ĵ",Ķ:"ķ",Ĺ:"ĺ",Ļ:"ļ",Ľ:"ľ",Ŀ:"ŀ",Ł:"ł",Ń:"ń",Ņ:"ņ",Ň:"ň",Ŋ:"ŋ",Ō:"ō",Ŏ:"ŏ",Ő:"ő",Œ:"œ",Ŕ:"ŕ",Ŗ:"ŗ",Ř:"ř",Ś:"ś",Ŝ:"ŝ",Ş:"ş",Š:"š",Ţ:"ţ",Ť:"ť",Ŧ:"ŧ",Ũ:"ũ",Ū:"ū",Ŭ:"ŭ",Ů:"ů",Ű:"ű",Ų:"ų",Ŵ:"ŵ",Ŷ:"ŷ",Ÿ:"ÿ",Ź:"ź",Ż:"ż",Ž:"ž",ſ:"s",Ɓ:"ɓ",Ƃ:"ƃ",Ƅ:"ƅ",Ɔ:"ɔ",Ƈ:"ƈ",Ɖ:"ɖ",Ɗ:"ɗ",Ƌ:"ƌ",Ǝ:"ǝ",Ə:"ə",Ɛ:"ɛ",Ƒ:"ƒ",Ɠ:"ɠ",Ɣ:"ɣ",Ɩ:"ɩ",Ɨ:"ɨ",Ƙ:"ƙ",Ɯ:"ɯ",Ɲ:"ɲ",Ɵ:"ɵ",Ơ:"ơ",Ƣ:"ƣ",Ƥ:"ƥ",Ʀ:"ʀ",Ƨ:"ƨ",Ʃ:"ʃ",Ƭ:"ƭ",Ʈ:"ʈ",Ư:"ư",Ʊ:"ʊ",Ʋ:"ʋ",Ƴ:"ƴ",Ƶ:"ƶ",Ʒ:"ʒ",Ƹ:"ƹ",Ƽ:"ƽ",DŽ:"dž",Dž:"dž",LJ:"lj",Lj:"lj",NJ:"nj",Nj:"nj",Ǎ:"ǎ",Ǐ:"ǐ",Ǒ:"ǒ",Ǔ:"ǔ",Ǖ:"ǖ",Ǘ:"ǘ",Ǚ:"ǚ",Ǜ:"ǜ",Ǟ:"ǟ",Ǡ:"ǡ",Ǣ:"ǣ",Ǥ:"ǥ",Ǧ:"ǧ",Ǩ:"ǩ",Ǫ:"ǫ",Ǭ:"ǭ",Ǯ:"ǯ",DZ:"dz",Dz:"dz",Ǵ:"ǵ",Ƕ:"ƕ",Ƿ:"ƿ",Ǹ:"ǹ",Ǻ:"ǻ",Ǽ:"ǽ",Ǿ:"ǿ",Ȁ:"ȁ",Ȃ:"ȃ",Ȅ:"ȅ",Ȇ:"ȇ",Ȉ:"ȉ",Ȋ:"ȋ",Ȍ:"ȍ",Ȏ:"ȏ",Ȑ:"ȑ",Ȓ:"ȓ",Ȕ:"ȕ",Ȗ:"ȗ",Ș:"ș",Ț:"ț",Ȝ:"ȝ",Ȟ:"ȟ","Ƞ":"ƞ",Ȣ:"ȣ",Ȥ:"ȥ",Ȧ:"ȧ",Ȩ:"ȩ",Ȫ:"ȫ",Ȭ:"ȭ",Ȯ:"ȯ",Ȱ:"ȱ",Ȳ:"ȳ","Ⱥ":"ⱥ","Ȼ":"ȼ","Ƚ":"ƚ","Ⱦ":"ⱦ","Ɂ":"ɂ","Ƀ":"ƀ","Ʉ":"ʉ","Ʌ":"ʌ","Ɇ":"ɇ","Ɉ":"ɉ","Ɋ":"ɋ","Ɍ":"ɍ","Ɏ":"ɏ","ͅ":"ι","Ͱ":"ͱ","Ͳ":"ͳ","Ͷ":"ͷ","Ϳ":"ϳ",Ά:"ά",Έ:"έ",Ή:"ή",Ί:"ί",Ό:"ό",Ύ:"ύ",Ώ:"ώ",Α:"α",Β:"β",Γ:"γ",Δ:"δ",Ε:"ε",Ζ:"ζ",Η:"η",Θ:"θ",Ι:"ι",Κ:"κ",Λ:"λ",Μ:"μ",Ν:"ν",Ξ:"ξ",Ο:"ο",Π:"π",Ρ:"ρ",Σ:"σ",Τ:"τ",Υ:"υ",Φ:"φ",Χ:"χ",Ψ:"ψ",Ω:"ω",Ϊ:"ϊ",Ϋ:"ϋ",ς:"σ","Ϗ":"ϗ",ϐ:"β",ϑ:"θ",ϕ:"φ",ϖ:"π","Ϙ":"ϙ",Ϛ:"ϛ",Ϝ:"ϝ",Ϟ:"ϟ",Ϡ:"ϡ",Ϣ:"ϣ",Ϥ:"ϥ",Ϧ:"ϧ",Ϩ:"ϩ",Ϫ:"ϫ",Ϭ:"ϭ",Ϯ:"ϯ",ϰ:"κ",ϱ:"ρ","ϴ":"θ","ϵ":"ε","Ϸ":"ϸ","Ϲ":"ϲ","Ϻ":"ϻ","Ͻ":"ͻ","Ͼ":"ͼ","Ͽ":"ͽ",Ѐ:"ѐ",Ё:"ё",Ђ:"ђ",Ѓ:"ѓ",Є:"є",Ѕ:"ѕ",І:"і",Ї:"ї",Ј:"ј",Љ:"љ",Њ:"њ",Ћ:"ћ",Ќ:"ќ",Ѝ:"ѝ",Ў:"ў",Џ:"џ",А:"а",Б:"б",В:"в",Г:"г",Д:"д",Е:"е",Ж:"ж",З:"з",И:"и",Й:"й",К:"к",Л:"л",М:"м",Н:"н",О:"о",П:"п",Р:"р",С:"с",Т:"т",У:"у",Ф:"ф",Х:"х",Ц:"ц",Ч:"ч",Ш:"ш",Щ:"щ",Ъ:"ъ",Ы:"ы",Ь:"ь",Э:"э",Ю:"ю",Я:"я",Ѡ:"ѡ",Ѣ:"ѣ",Ѥ:"ѥ",Ѧ:"ѧ",Ѩ:"ѩ",Ѫ:"ѫ",Ѭ:"ѭ",Ѯ:"ѯ",Ѱ:"ѱ",Ѳ:"ѳ",Ѵ:"ѵ",Ѷ:"ѷ",Ѹ:"ѹ",Ѻ:"ѻ",Ѽ:"ѽ",Ѿ:"ѿ",Ҁ:"ҁ","Ҋ":"ҋ",Ҍ:"ҍ",Ҏ:"ҏ",Ґ:"ґ",Ғ:"ғ",Ҕ:"ҕ",Җ:"җ",Ҙ:"ҙ",Қ:"қ",Ҝ:"ҝ",Ҟ:"ҟ",Ҡ:"ҡ",Ң:"ң",Ҥ:"ҥ",Ҧ:"ҧ",Ҩ:"ҩ",Ҫ:"ҫ",Ҭ:"ҭ",Ү:"ү",Ұ:"ұ",Ҳ:"ҳ",Ҵ:"ҵ",Ҷ:"ҷ",Ҹ:"ҹ",Һ:"һ",Ҽ:"ҽ",Ҿ:"ҿ",Ӏ:"ӏ",Ӂ:"ӂ",Ӄ:"ӄ","Ӆ":"ӆ",Ӈ:"ӈ","Ӊ":"ӊ",Ӌ:"ӌ","Ӎ":"ӎ",Ӑ:"ӑ",Ӓ:"ӓ",Ӕ:"ӕ",Ӗ:"ӗ",Ә:"ә",Ӛ:"ӛ",Ӝ:"ӝ",Ӟ:"ӟ",Ӡ:"ӡ",Ӣ:"ӣ",Ӥ:"ӥ",Ӧ:"ӧ",Ө:"ө",Ӫ:"ӫ",Ӭ:"ӭ",Ӯ:"ӯ",Ӱ:"ӱ",Ӳ:"ӳ",Ӵ:"ӵ","Ӷ":"ӷ",Ӹ:"ӹ","Ӻ":"ӻ","Ӽ":"ӽ","Ӿ":"ӿ","Ԁ":"ԁ","Ԃ":"ԃ","Ԅ":"ԅ","Ԇ":"ԇ","Ԉ":"ԉ","Ԋ":"ԋ","Ԍ":"ԍ","Ԏ":"ԏ","Ԑ":"ԑ","Ԓ":"ԓ","Ԕ":"ԕ","Ԗ":"ԗ","Ԙ":"ԙ","Ԛ":"ԛ","Ԝ":"ԝ","Ԟ":"ԟ","Ԡ":"ԡ","Ԣ":"ԣ","Ԥ":"ԥ","Ԧ":"ԧ","Ԩ":"ԩ","Ԫ":"ԫ","Ԭ":"ԭ","Ԯ":"ԯ",Ա:"ա",Բ:"բ",Գ:"գ",Դ:"դ",Ե:"ե",Զ:"զ",Է:"է",Ը:"ը",Թ:"թ",Ժ:"ժ",Ի:"ի",Լ:"լ",Խ:"խ",Ծ:"ծ",Կ:"կ",Հ:"հ",Ձ:"ձ",Ղ:"ղ",Ճ:"ճ",Մ:"մ",Յ:"յ",Ն:"ն",Շ:"շ",Ո:"ո",Չ:"չ",Պ:"պ",Ջ:"ջ",Ռ:"ռ",Ս:"ս",Վ:"վ",Տ:"տ",Ր:"ր",Ց:"ց",Ւ:"ւ",Փ:"փ",Ք:"ք",Օ:"օ",Ֆ:"ֆ",Ⴀ:"ⴀ",Ⴁ:"ⴁ",Ⴂ:"ⴂ",Ⴃ:"ⴃ",Ⴄ:"ⴄ",Ⴅ:"ⴅ",Ⴆ:"ⴆ",Ⴇ:"ⴇ",Ⴈ:"ⴈ",Ⴉ:"ⴉ",Ⴊ:"ⴊ",Ⴋ:"ⴋ",Ⴌ:"ⴌ",Ⴍ:"ⴍ",Ⴎ:"ⴎ",Ⴏ:"ⴏ",Ⴐ:"ⴐ",Ⴑ:"ⴑ",Ⴒ:"ⴒ",Ⴓ:"ⴓ",Ⴔ:"ⴔ",Ⴕ:"ⴕ",Ⴖ:"ⴖ",Ⴗ:"ⴗ",Ⴘ:"ⴘ",Ⴙ:"ⴙ",Ⴚ:"ⴚ",Ⴛ:"ⴛ",Ⴜ:"ⴜ",Ⴝ:"ⴝ",Ⴞ:"ⴞ",Ⴟ:"ⴟ",Ⴠ:"ⴠ",Ⴡ:"ⴡ",Ⴢ:"ⴢ",Ⴣ:"ⴣ",Ⴤ:"ⴤ",Ⴥ:"ⴥ","Ⴧ":"ⴧ","Ⴭ":"ⴭ",Ḁ:"ḁ",Ḃ:"ḃ",Ḅ:"ḅ",Ḇ:"ḇ",Ḉ:"ḉ",Ḋ:"ḋ",Ḍ:"ḍ",Ḏ:"ḏ",Ḑ:"ḑ",Ḓ:"ḓ",Ḕ:"ḕ",Ḗ:"ḗ",Ḙ:"ḙ",Ḛ:"ḛ",Ḝ:"ḝ",Ḟ:"ḟ",Ḡ:"ḡ",Ḣ:"ḣ",Ḥ:"ḥ",Ḧ:"ḧ",Ḩ:"ḩ",Ḫ:"ḫ",Ḭ:"ḭ",Ḯ:"ḯ",Ḱ:"ḱ",Ḳ:"ḳ",Ḵ:"ḵ",Ḷ:"ḷ",Ḹ:"ḹ",Ḻ:"ḻ",Ḽ:"ḽ",Ḿ:"ḿ",Ṁ:"ṁ",Ṃ:"ṃ",Ṅ:"ṅ",Ṇ:"ṇ",Ṉ:"ṉ",Ṋ:"ṋ",Ṍ:"ṍ",Ṏ:"ṏ",Ṑ:"ṑ",Ṓ:"ṓ",Ṕ:"ṕ",Ṗ:"ṗ",Ṙ:"ṙ",Ṛ:"ṛ",Ṝ:"ṝ",Ṟ:"ṟ",Ṡ:"ṡ",Ṣ:"ṣ",Ṥ:"ṥ",Ṧ:"ṧ",Ṩ:"ṩ",Ṫ:"ṫ",Ṭ:"ṭ",Ṯ:"ṯ",Ṱ:"ṱ",Ṳ:"ṳ",Ṵ:"ṵ",Ṷ:"ṷ",Ṹ:"ṹ",Ṻ:"ṻ",Ṽ:"ṽ",Ṿ:"ṿ",Ẁ:"ẁ",Ẃ:"ẃ",Ẅ:"ẅ",Ẇ:"ẇ",Ẉ:"ẉ",Ẋ:"ẋ",Ẍ:"ẍ",Ẏ:"ẏ",Ẑ:"ẑ",Ẓ:"ẓ",Ẕ:"ẕ",ẛ:"ṡ",Ạ:"ạ",Ả:"ả",Ấ:"ấ",Ầ:"ầ",Ẩ:"ẩ",Ẫ:"ẫ",Ậ:"ậ",Ắ:"ắ",Ằ:"ằ",Ẳ:"ẳ",Ẵ:"ẵ",Ặ:"ặ",Ẹ:"ẹ",Ẻ:"ẻ",Ẽ:"ẽ",Ế:"ế",Ề:"ề",Ể:"ể",Ễ:"ễ",Ệ:"ệ",Ỉ:"ỉ",Ị:"ị",Ọ:"ọ",Ỏ:"ỏ",Ố:"ố",Ồ:"ồ",Ổ:"ổ",Ỗ:"ỗ",Ộ:"ộ",Ớ:"ớ",Ờ:"ờ",Ở:"ở",Ỡ:"ỡ",Ợ:"ợ",Ụ:"ụ",Ủ:"ủ",Ứ:"ứ",Ừ:"ừ",Ử:"ử",Ữ:"ữ",Ự:"ự",Ỳ:"ỳ",Ỵ:"ỵ",Ỷ:"ỷ",Ỹ:"ỹ","Ỻ":"ỻ","Ỽ":"ỽ","Ỿ":"ỿ",Ἀ:"ἀ",Ἁ:"ἁ",Ἂ:"ἂ",Ἃ:"ἃ",Ἄ:"ἄ",Ἅ:"ἅ",Ἆ:"ἆ",Ἇ:"ἇ",Ἐ:"ἐ",Ἑ:"ἑ",Ἒ:"ἒ",Ἓ:"ἓ",Ἔ:"ἔ",Ἕ:"ἕ",Ἠ:"ἠ",Ἡ:"ἡ",Ἢ:"ἢ",Ἣ:"ἣ",Ἤ:"ἤ",Ἥ:"ἥ",Ἦ:"ἦ",Ἧ:"ἧ",Ἰ:"ἰ",Ἱ:"ἱ",Ἲ:"ἲ",Ἳ:"ἳ",Ἴ:"ἴ",Ἵ:"ἵ",Ἶ:"ἶ",Ἷ:"ἷ",Ὀ:"ὀ",Ὁ:"ὁ",Ὂ:"ὂ",Ὃ:"ὃ",Ὄ:"ὄ",Ὅ:"ὅ",Ὑ:"ὑ",Ὓ:"ὓ",Ὕ:"ὕ",Ὗ:"ὗ",Ὠ:"ὠ",Ὡ:"ὡ",Ὢ:"ὢ",Ὣ:"ὣ",Ὤ:"ὤ",Ὥ:"ὥ",Ὦ:"ὦ",Ὧ:"ὧ",Ᾰ:"ᾰ",Ᾱ:"ᾱ",Ὰ:"ὰ",Ά:"ά",ι:"ι",Ὲ:"ὲ",Έ:"έ",Ὴ:"ὴ",Ή:"ή",Ῐ:"ῐ",Ῑ:"ῑ",Ὶ:"ὶ",Ί:"ί",Ῠ:"ῠ",Ῡ:"ῡ",Ὺ:"ὺ",Ύ:"ύ",Ῥ:"ῥ",Ὸ:"ὸ",Ό:"ό",Ὼ:"ὼ",Ώ:"ώ",Ω:"ω",K:"k",Å:"å","Ⅎ":"ⅎ","Ⅰ":"ⅰ","Ⅱ":"ⅱ","Ⅲ":"ⅲ","Ⅳ":"ⅳ","Ⅴ":"ⅴ","Ⅵ":"ⅵ","Ⅶ":"ⅶ","Ⅷ":"ⅷ","Ⅸ":"ⅸ","Ⅹ":"ⅹ","Ⅺ":"ⅺ","Ⅻ":"ⅻ","Ⅼ":"ⅼ","Ⅽ":"ⅽ","Ⅾ":"ⅾ","Ⅿ":"ⅿ","Ↄ":"ↄ","Ⓐ":"ⓐ","Ⓑ":"ⓑ","Ⓒ":"ⓒ","Ⓓ":"ⓓ","Ⓔ":"ⓔ","Ⓕ":"ⓕ","Ⓖ":"ⓖ","Ⓗ":"ⓗ","Ⓘ":"ⓘ","Ⓙ":"ⓙ","Ⓚ":"ⓚ","Ⓛ":"ⓛ","Ⓜ":"ⓜ","Ⓝ":"ⓝ","Ⓞ":"ⓞ","Ⓟ":"ⓟ","Ⓠ":"ⓠ","Ⓡ":"ⓡ","Ⓢ":"ⓢ","Ⓣ":"ⓣ","Ⓤ":"ⓤ","Ⓥ":"ⓥ","Ⓦ":"ⓦ","Ⓧ":"ⓧ","Ⓨ":"ⓨ","Ⓩ":"ⓩ","Ⰰ":"ⰰ","Ⰱ":"ⰱ","Ⰲ":"ⰲ","Ⰳ":"ⰳ","Ⰴ":"ⰴ","Ⰵ":"ⰵ","Ⰶ":"ⰶ","Ⰷ":"ⰷ","Ⰸ":"ⰸ","Ⰹ":"ⰹ","Ⰺ":"ⰺ","Ⰻ":"ⰻ","Ⰼ":"ⰼ","Ⰽ":"ⰽ","Ⰾ":"ⰾ","Ⰿ":"ⰿ","Ⱀ":"ⱀ","Ⱁ":"ⱁ","Ⱂ":"ⱂ","Ⱃ":"ⱃ","Ⱄ":"ⱄ","Ⱅ":"ⱅ","Ⱆ":"ⱆ","Ⱇ":"ⱇ","Ⱈ":"ⱈ","Ⱉ":"ⱉ","Ⱊ":"ⱊ","Ⱋ":"ⱋ","Ⱌ":"ⱌ","Ⱍ":"ⱍ","Ⱎ":"ⱎ","Ⱏ":"ⱏ","Ⱐ":"ⱐ","Ⱑ":"ⱑ","Ⱒ":"ⱒ","Ⱓ":"ⱓ","Ⱔ":"ⱔ","Ⱕ":"ⱕ","Ⱖ":"ⱖ","Ⱗ":"ⱗ","Ⱘ":"ⱘ","Ⱙ":"ⱙ","Ⱚ":"ⱚ","Ⱛ":"ⱛ","Ⱜ":"ⱜ","Ⱝ":"ⱝ","Ⱞ":"ⱞ","Ⱡ":"ⱡ","Ɫ":"ɫ","Ᵽ":"ᵽ","Ɽ":"ɽ","Ⱨ":"ⱨ","Ⱪ":"ⱪ","Ⱬ":"ⱬ","Ɑ":"ɑ","Ɱ":"ɱ","Ɐ":"ɐ","Ɒ":"ɒ","Ⱳ":"ⱳ","Ⱶ":"ⱶ","Ȿ":"ȿ","Ɀ":"ɀ","Ⲁ":"ⲁ","Ⲃ":"ⲃ","Ⲅ":"ⲅ","Ⲇ":"ⲇ","Ⲉ":"ⲉ","Ⲋ":"ⲋ","Ⲍ":"ⲍ","Ⲏ":"ⲏ","Ⲑ":"ⲑ","Ⲓ":"ⲓ","Ⲕ":"ⲕ","Ⲗ":"ⲗ","Ⲙ":"ⲙ","Ⲛ":"ⲛ","Ⲝ":"ⲝ","Ⲟ":"ⲟ","Ⲡ":"ⲡ","Ⲣ":"ⲣ","Ⲥ":"ⲥ","Ⲧ":"ⲧ","Ⲩ":"ⲩ","Ⲫ":"ⲫ","Ⲭ":"ⲭ","Ⲯ":"ⲯ","Ⲱ":"ⲱ","Ⲳ":"ⲳ","Ⲵ":"ⲵ","Ⲷ":"ⲷ","Ⲹ":"ⲹ","Ⲻ":"ⲻ","Ⲽ":"ⲽ","Ⲿ":"ⲿ","Ⳁ":"ⳁ","Ⳃ":"ⳃ","Ⳅ":"ⳅ","Ⳇ":"ⳇ","Ⳉ":"ⳉ","Ⳋ":"ⳋ","Ⳍ":"ⳍ","Ⳏ":"ⳏ","Ⳑ":"ⳑ","Ⳓ":"ⳓ","Ⳕ":"ⳕ","Ⳗ":"ⳗ","Ⳙ":"ⳙ","Ⳛ":"ⳛ","Ⳝ":"ⳝ","Ⳟ":"ⳟ","Ⳡ":"ⳡ","Ⳣ":"ⳣ","Ⳬ":"ⳬ","Ⳮ":"ⳮ","Ⳳ":"ⳳ","Ꙁ":"ꙁ","Ꙃ":"ꙃ","Ꙅ":"ꙅ","Ꙇ":"ꙇ","Ꙉ":"ꙉ","Ꙋ":"ꙋ","Ꙍ":"ꙍ","Ꙏ":"ꙏ","Ꙑ":"ꙑ","Ꙓ":"ꙓ","Ꙕ":"ꙕ","Ꙗ":"ꙗ","Ꙙ":"ꙙ","Ꙛ":"ꙛ","Ꙝ":"ꙝ","Ꙟ":"ꙟ","Ꙡ":"ꙡ","Ꙣ":"ꙣ","Ꙥ":"ꙥ","Ꙧ":"ꙧ","Ꙩ":"ꙩ","Ꙫ":"ꙫ","Ꙭ":"ꙭ","Ꚁ":"ꚁ","Ꚃ":"ꚃ","Ꚅ":"ꚅ","Ꚇ":"ꚇ","Ꚉ":"ꚉ","Ꚋ":"ꚋ","Ꚍ":"ꚍ","Ꚏ":"ꚏ","Ꚑ":"ꚑ","Ꚓ":"ꚓ","Ꚕ":"ꚕ","Ꚗ":"ꚗ","Ꚙ":"ꚙ","Ꚛ":"ꚛ","Ꜣ":"ꜣ","Ꜥ":"ꜥ","Ꜧ":"ꜧ","Ꜩ":"ꜩ","Ꜫ":"ꜫ","Ꜭ":"ꜭ","Ꜯ":"ꜯ","Ꜳ":"ꜳ","Ꜵ":"ꜵ","Ꜷ":"ꜷ","Ꜹ":"ꜹ","Ꜻ":"ꜻ","Ꜽ":"ꜽ","Ꜿ":"ꜿ","Ꝁ":"ꝁ","Ꝃ":"ꝃ","Ꝅ":"ꝅ","Ꝇ":"ꝇ","Ꝉ":"ꝉ","Ꝋ":"ꝋ","Ꝍ":"ꝍ","Ꝏ":"ꝏ","Ꝑ":"ꝑ","Ꝓ":"ꝓ","Ꝕ":"ꝕ","Ꝗ":"ꝗ","Ꝙ":"ꝙ","Ꝛ":"ꝛ","Ꝝ":"ꝝ","Ꝟ":"ꝟ","Ꝡ":"ꝡ","Ꝣ":"ꝣ","Ꝥ":"ꝥ","Ꝧ":"ꝧ","Ꝩ":"ꝩ","Ꝫ":"ꝫ","Ꝭ":"ꝭ","Ꝯ":"ꝯ","Ꝺ":"ꝺ","Ꝼ":"ꝼ","Ᵹ":"ᵹ","Ꝿ":"ꝿ","Ꞁ":"ꞁ","Ꞃ":"ꞃ","Ꞅ":"ꞅ","Ꞇ":"ꞇ","Ꞌ":"ꞌ","Ɥ":"ɥ","Ꞑ":"ꞑ","Ꞓ":"ꞓ","Ꞗ":"ꞗ","Ꞙ":"ꞙ","Ꞛ":"ꞛ","Ꞝ":"ꞝ","Ꞟ":"ꞟ","Ꞡ":"ꞡ","Ꞣ":"ꞣ","Ꞥ":"ꞥ","Ꞧ":"ꞧ","Ꞩ":"ꞩ","Ɦ":"ɦ","Ɜ":"ɜ","Ɡ":"ɡ","Ɬ":"ɬ","Ʞ":"ʞ","Ʇ":"ʇ",A:"a",B:"b",C:"c",D:"d",E:"e",F:"f",G:"g",H:"h",I:"i",J:"j",K:"k",L:"l",M:"m",N:"n",O:"o",P:"p",Q:"q",R:"r",S:"s",T:"t",U:"u",V:"v",W:"w",X:"x",Y:"y",Z:"z","𐐀":"𐐨","𐐁":"𐐩","𐐂":"𐐪","𐐃":"𐐫","𐐄":"𐐬","𐐅":"𐐭","𐐆":"𐐮","𐐇":"𐐯","𐐈":"𐐰","𐐉":"𐐱","𐐊":"𐐲","𐐋":"𐐳","𐐌":"𐐴","𐐍":"𐐵","𐐎":"𐐶","𐐏":"𐐷","𐐐":"𐐸","𐐑":"𐐹","𐐒":"𐐺","𐐓":"𐐻","𐐔":"𐐼","𐐕":"𐐽","𐐖":"𐐾","𐐗":"𐐿","𐐘":"𐑀","𐐙":"𐑁","𐐚":"𐑂","𐐛":"𐑃","𐐜":"𐑄","𐐝":"𐑅","𐐞":"𐑆","𐐟":"𐑇","𐐠":"𐑈","𐐡":"𐑉","𐐢":"𐑊","𐐣":"𐑋","𐐤":"𐑌","𐐥":"𐑍","𐐦":"𐑎","𐐧":"𐑏","𑢠":"𑣀","𑢡":"𑣁","𑢢":"𑣂","𑢣":"𑣃","𑢤":"𑣄","𑢥":"𑣅","𑢦":"𑣆","𑢧":"𑣇","𑢨":"𑣈","𑢩":"𑣉","𑢪":"𑣊","𑢫":"𑣋","𑢬":"𑣌","𑢭":"𑣍","𑢮":"𑣎","𑢯":"𑣏","𑢰":"𑣐","𑢱":"𑣑","𑢲":"𑣒","𑢳":"𑣓","𑢴":"𑣔","𑢵":"𑣕","𑢶":"𑣖","𑢷":"𑣗","𑢸":"𑣘","𑢹":"𑣙","𑢺":"𑣚","𑢻":"𑣛","𑢼":"𑣜","𑢽":"𑣝","𑢾":"𑣞","𑢿":"𑣟",ß:"ss",İ:"i̇",ʼn:"ʼn",ǰ:"ǰ",ΐ:"ΐ",ΰ:"ΰ",և:"եւ",ẖ:"ẖ",ẗ:"ẗ",ẘ:"ẘ",ẙ:"ẙ",ẚ:"aʾ","ẞ":"ss",ὐ:"ὐ",ὒ:"ὒ",ὔ:"ὔ",ὖ:"ὖ",ᾀ:"ἀι",ᾁ:"ἁι",ᾂ:"ἂι",ᾃ:"ἃι",ᾄ:"ἄι",ᾅ:"ἅι",ᾆ:"ἆι",ᾇ:"ἇι",ᾈ:"ἀι",ᾉ:"ἁι",ᾊ:"ἂι",ᾋ:"ἃι",ᾌ:"ἄι",ᾍ:"ἅι",ᾎ:"ἆι",ᾏ:"ἇι",ᾐ:"ἠι",ᾑ:"ἡι",ᾒ:"ἢι",ᾓ:"ἣι",ᾔ:"ἤι",ᾕ:"ἥι",ᾖ:"ἦι",ᾗ:"ἧι",ᾘ:"ἠι",ᾙ:"ἡι",ᾚ:"ἢι",ᾛ:"ἣι",ᾜ:"ἤι",ᾝ:"ἥι",ᾞ:"ἦι",ᾟ:"ἧι",ᾠ:"ὠι",ᾡ:"ὡι",ᾢ:"ὢι",ᾣ:"ὣι",ᾤ:"ὤι",ᾥ:"ὥι",ᾦ:"ὦι",ᾧ:"ὧι",ᾨ:"ὠι",ᾩ:"ὡι",ᾪ:"ὢι",ᾫ:"ὣι",ᾬ:"ὤι",ᾭ:"ὥι",ᾮ:"ὦι",ᾯ:"ὧι",ᾲ:"ὰι",ᾳ:"αι",ᾴ:"άι",ᾶ:"ᾶ",ᾷ:"ᾶι",ᾼ:"αι",ῂ:"ὴι",ῃ:"ηι",ῄ:"ήι",ῆ:"ῆ",ῇ:"ῆι",ῌ:"ηι",ῒ:"ῒ",ΐ:"ΐ",ῖ:"ῖ",ῗ:"ῗ",ῢ:"ῢ",ΰ:"ΰ",ῤ:"ῤ",ῦ:"ῦ",ῧ:"ῧ",ῲ:"ὼι",ῳ:"ωι",ῴ:"ώι",ῶ:"ῶ",ῷ:"ῶι",ῼ:"ωι",ff:"ff",fi:"fi",fl:"fl",ffi:"ffi",ffl:"ffl",ſt:"st",st:"st",ﬓ:"մն",ﬔ:"մե",ﬕ:"մի",ﬖ:"վն",ﬗ:"մխ"},M0t=[{key:[65,69,108,105,103,59],value:"Æ"},{key:[65,77,80,59],value:"&"},{key:[65,97,99,117,116,101,59],value:"Á"},{key:[65,98,114,101,118,101,59],value:"Ă"},{key:[65,99,105,114,99,59],value:"Â"},{key:[65,99,121,59],value:"А"},{key:[65,102,114,59],value:"𝔄"},{key:[65,103,114,97,118,101,59],value:"À"},{key:[65,108,112,104,97,59],value:"Α"},{key:[65,109,97,99,114,59],value:"Ā"},{key:[65,110,100,59],value:"⩓"},{key:[65,111,103,111,110,59],value:"Ą"},{key:[65,111,112,102,59],value:"𝔸"},{key:[65,112,112,108,121,70,117,110,99,116,105,111,110,59],value:"⁡"},{key:[65,114,105,110,103,59],value:"Å"},{key:[65,115,99,114,59],value:"𝒜"},{key:[65,115,115,105,103,110,59],value:"≔"},{key:[65,116,105,108,100,101,59],value:"Ã"},{key:[65,117,109,108,59],value:"Ä"},{key:[66,97,99,107,115,108,97,115,104,59],value:"∖"},{key:[66,97,114,118,59],value:"⫧"},{key:[66,97,114,119,101,100,59],value:"⌆"},{key:[66,99,121,59],value:"Б"},{key:[66,101,99,97,117,115,101,59],value:"∵"},{key:[66,101,114,110,111,117,108,108,105,115,59],value:"ℬ"},{key:[66,101,116,97,59],value:"Β"},{key:[66,102,114,59],value:"𝔅"},{key:[66,111,112,102,59],value:"𝔹"},{key:[66,114,101,118,101,59],value:"˘"},{key:[66,115,99,114,59],value:"ℬ"},{key:[66,117,109,112,101,113,59],value:"≎"},{key:[67,72,99,121,59],value:"Ч"},{key:[67,79,80,89,59],value:"©"},{key:[67,97,99,117,116,101,59],value:"Ć"},{key:[67,97,112,59],value:"⋒"},{key:[67,97,112,105,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59],value:"ⅅ"},{key:[67,97,121,108,101,121,115,59],value:"ℭ"},{key:[67,99,97,114,111,110,59],value:"Č"},{key:[67,99,101,100,105,108,59],value:"Ç"},{key:[67,99,105,114,99,59],value:"Ĉ"},{key:[67,99,111,110,105,110,116,59],value:"∰"},{key:[67,100,111,116,59],value:"Ċ"},{key:[67,101,100,105,108,108,97,59],value:"¸"},{key:[67,101,110,116,101,114,68,111,116,59],value:"·"},{key:[67,102,114,59],value:"ℭ"},{key:[67,104,105,59],value:"Χ"},{key:[67,105,114,99,108,101,68,111,116,59],value:"⊙"},{key:[67,105,114,99,108,101,77,105,110,117,115,59],value:"⊖"},{key:[67,105,114,99,108,101,80,108,117,115,59],value:"⊕"},{key:[67,105,114,99,108,101,84,105,109,101,115,59],value:"⊗"},{key:[67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59],value:"∲"},{key:[67,108,111,115,101,67,117,114,108,121,68,111,117,98,108,101,81,117,111,116,101,59],value:"”"},{key:[67,108,111,115,101,67,117,114,108,121,81,117,111,116,101,59],value:"’"},{key:[67,111,108,111,110,59],value:"∷"},{key:[67,111,108,111,110,101,59],value:"⩴"},{key:[67,111,110,103,114,117,101,110,116,59],value:"≡"},{key:[67,111,110,105,110,116,59],value:"∯"},{key:[67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59],value:"∮"},{key:[67,111,112,102,59],value:"ℂ"},{key:[67,111,112,114,111,100,117,99,116,59],value:"∐"},{key:[67,111,117,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59],value:"∳"},{key:[67,114,111,115,115,59],value:"⨯"},{key:[67,115,99,114,59],value:"𝒞"},{key:[67,117,112,59],value:"⋓"},{key:[67,117,112,67,97,112,59],value:"≍"},{key:[68,68,59],value:"ⅅ"},{key:[68,68,111,116,114,97,104,100,59],value:"⤑"},{key:[68,74,99,121,59],value:"Ђ"},{key:[68,83,99,121,59],value:"Ѕ"},{key:[68,90,99,121,59],value:"Џ"},{key:[68,97,103,103,101,114,59],value:"‡"},{key:[68,97,114,114,59],value:"↡"},{key:[68,97,115,104,118,59],value:"⫤"},{key:[68,99,97,114,111,110,59],value:"Ď"},{key:[68,99,121,59],value:"Д"},{key:[68,101,108,59],value:"∇"},{key:[68,101,108,116,97,59],value:"Δ"},{key:[68,102,114,59],value:"𝔇"},{key:[68,105,97,99,114,105,116,105,99,97,108,65,99,117,116,101,59],value:"´"},{key:[68,105,97,99,114,105,116,105,99,97,108,68,111,116,59],value:"˙"},{key:[68,105,97,99,114,105,116,105,99,97,108,68,111,117,98,108,101,65,99,117,116,101,59],value:"˝"},{key:[68,105,97,99,114,105,116,105,99,97,108,71,114,97,118,101,59],value:"`"},{key:[68,105,97,99,114,105,116,105,99,97,108,84,105,108,100,101,59],value:"˜"},{key:[68,105,97,109,111,110,100,59],value:"⋄"},{key:[68,105,102,102,101,114,101,110,116,105,97,108,68,59],value:"ⅆ"},{key:[68,111,112,102,59],value:"𝔻"},{key:[68,111,116,59],value:"¨"},{key:[68,111,116,68,111,116,59],value:"⃜"},{key:[68,111,116,69,113,117,97,108,59],value:"≐"},{key:[68,111,117,98,108,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59],value:"∯"},{key:[68,111,117,98,108,101,68,111,116,59],value:"¨"},{key:[68,111,117,98,108,101,68,111,119,110,65,114,114,111,119,59],value:"⇓"},{key:[68,111,117,98,108,101,76,101,102,116,65,114,114,111,119,59],value:"⇐"},{key:[68,111,117,98,108,101,76,101,102,116,82,105,103,104,116,65,114,114,111,119,59],value:"⇔"},{key:[68,111,117,98,108,101,76,101,102,116,84,101,101,59],value:"⫤"},{key:[68,111,117,98,108,101,76,111,110,103,76,101,102,116,65,114,114,111,119,59],value:"⟸"},{key:[68,111,117,98,108,101,76,111,110,103,76,101,102,116,82,105,103,104,116,65,114,114,111,119,59],value:"⟺"},{key:[68,111,117,98,108,101,76,111,110,103,82,105,103,104,116,65,114,114,111,119,59],value:"⟹"},{key:[68,111,117,98,108,101,82,105,103,104,116,65,114,114,111,119,59],value:"⇒"},{key:[68,111,117,98,108,101,82,105,103,104,116,84,101,101,59],value:"⊨"},{key:[68,111,117,98,108,101,85,112,65,114,114,111,119,59],value:"⇑"},{key:[68,111,117,98,108,101,85,112,68,111,119,110,65,114,114,111,119,59],value:"⇕"},{key:[68,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59],value:"∥"},{key:[68,111,119,110,65,114,114,111,119,59],value:"↓"},{key:[68,111,119,110,65,114,114,111,119,66,97,114,59],value:"⤓"},{key:[68,111,119,110,65,114,114,111,119,85,112,65,114,114,111,119,59],value:"⇵"},{key:[68,111,119,110,66,114,101,118,101,59],value:"̑"},{key:[68,111,119,110,76,101,102,116,82,105,103,104,116,86,101,99,116,111,114,59],value:"⥐"},{key:[68,111,119,110,76,101,102,116,84,101,101,86,101,99,116,111,114,59],value:"⥞"},{key:[68,111,119,110,76,101,102,116,86,101,99,116,111,114,59],value:"↽"},{key:[68,111,119,110,76,101,102,116,86,101,99,116,111,114,66,97,114,59],value:"⥖"},{key:[68,111,119,110,82,105,103,104,116,84,101,101,86,101,99,116,111,114,59],value:"⥟"},{key:[68,111,119,110,82,105,103,104,116,86,101,99,116,111,114,59],value:"⇁"},{key:[68,111,119,110,82,105,103,104,116,86,101,99,116,111,114,66,97,114,59],value:"⥗"},{key:[68,111,119,110,84,101,101,59],value:"⊤"},{key:[68,111,119,110,84,101,101,65,114,114,111,119,59],value:"↧"},{key:[68,111,119,110,97,114,114,111,119,59],value:"⇓"},{key:[68,115,99,114,59],value:"𝒟"},{key:[68,115,116,114,111,107,59],value:"Đ"},{key:[69,78,71,59],value:"Ŋ"},{key:[69,84,72,59],value:"Ð"},{key:[69,97,99,117,116,101,59],value:"É"},{key:[69,99,97,114,111,110,59],value:"Ě"},{key:[69,99,105,114,99,59],value:"Ê"},{key:[69,99,121,59],value:"Э"},{key:[69,100,111,116,59],value:"Ė"},{key:[69,102,114,59],value:"𝔈"},{key:[69,103,114,97,118,101,59],value:"È"},{key:[69,108,101,109,101,110,116,59],value:"∈"},{key:[69,109,97,99,114,59],value:"Ē"},{key:[69,109,112,116,121,83,109,97,108,108,83,113,117,97,114,101,59],value:"◻"},{key:[69,109,112,116,121,86,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59],value:"▫"},{key:[69,111,103,111,110,59],value:"Ę"},{key:[69,111,112,102,59],value:"𝔼"},{key:[69,112,115,105,108,111,110,59],value:"Ε"},{key:[69,113,117,97,108,59],value:"⩵"},{key:[69,113,117,97,108,84,105,108,100,101,59],value:"≂"},{key:[69,113,117,105,108,105,98,114,105,117,109,59],value:"⇌"},{key:[69,115,99,114,59],value:"ℰ"},{key:[69,115,105,109,59],value:"⩳"},{key:[69,116,97,59],value:"Η"},{key:[69,117,109,108,59],value:"Ë"},{key:[69,120,105,115,116,115,59],value:"∃"},{key:[69,120,112,111,110,101,110,116,105,97,108,69,59],value:"ⅇ"},{key:[70,99,121,59],value:"Ф"},{key:[70,102,114,59],value:"𝔉"},{key:[70,105,108,108,101,100,83,109,97,108,108,83,113,117,97,114,101,59],value:"◼"},{key:[70,105,108,108,101,100,86,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59],value:"▪"},{key:[70,111,112,102,59],value:"𝔽"},{key:[70,111,114,65,108,108,59],value:"∀"},{key:[70,111,117,114,105,101,114,116,114,102,59],value:"ℱ"},{key:[70,115,99,114,59],value:"ℱ"},{key:[71,74,99,121,59],value:"Ѓ"},{key:[71,84,59],value:">"},{key:[71,97,109,109,97,59],value:"Γ"},{key:[71,97,109,109,97,100,59],value:"Ϝ"},{key:[71,98,114,101,118,101,59],value:"Ğ"},{key:[71,99,101,100,105,108,59],value:"Ģ"},{key:[71,99,105,114,99,59],value:"Ĝ"},{key:[71,99,121,59],value:"Г"},{key:[71,100,111,116,59],value:"Ġ"},{key:[71,102,114,59],value:"𝔊"},{key:[71,103,59],value:"⋙"},{key:[71,111,112,102,59],value:"𝔾"},{key:[71,114,101,97,116,101,114,69,113,117,97,108,59],value:"≥"},{key:[71,114,101,97,116,101,114,69,113,117,97,108,76,101,115,115,59],value:"⋛"},{key:[71,114,101,97,116,101,114,70,117,108,108,69,113,117,97,108,59],value:"≧"},{key:[71,114,101,97,116,101,114,71,114,101,97,116,101,114,59],value:"⪢"},{key:[71,114,101,97,116,101,114,76,101,115,115,59],value:"≷"},{key:[71,114,101,97,116,101,114,83,108,97,110,116,69,113,117,97,108,59],value:"⩾"},{key:[71,114,101,97,116,101,114,84,105,108,100,101,59],value:"≳"},{key:[71,115,99,114,59],value:"𝒢"},{key:[71,116,59],value:"≫"},{key:[72,65,82,68,99,121,59],value:"Ъ"},{key:[72,97,99,101,107,59],value:"ˇ"},{key:[72,97,116,59],value:"^"},{key:[72,99,105,114,99,59],value:"Ĥ"},{key:[72,102,114,59],value:"ℌ"},{key:[72,105,108,98,101,114,116,83,112,97,99,101,59],value:"ℋ"},{key:[72,111,112,102,59],value:"ℍ"},{key:[72,111,114,105,122,111,110,116,97,108,76,105,110,101,59],value:"─"},{key:[72,115,99,114,59],value:"ℋ"},{key:[72,115,116,114,111,107,59],value:"Ħ"},{key:[72,117,109,112,68,111,119,110,72,117,109,112,59],value:"≎"},{key:[72,117,109,112,69,113,117,97,108,59],value:"≏"},{key:[73,69,99,121,59],value:"Е"},{key:[73,74,108,105,103,59],value:"IJ"},{key:[73,79,99,121,59],value:"Ё"},{key:[73,97,99,117,116,101,59],value:"Í"},{key:[73,99,105,114,99,59],value:"Î"},{key:[73,99,121,59],value:"И"},{key:[73,100,111,116,59],value:"İ"},{key:[73,102,114,59],value:"ℑ"},{key:[73,103,114,97,118,101,59],value:"Ì"},{key:[73,109,59],value:"ℑ"},{key:[73,109,97,99,114,59],value:"Ī"},{key:[73,109,97,103,105,110,97,114,121,73,59],value:"ⅈ"},{key:[73,109,112,108,105,101,115,59],value:"⇒"},{key:[73,110,116,59],value:"∬"},{key:[73,110,116,101,103,114,97,108,59],value:"∫"},{key:[73,110,116,101,114,115,101,99,116,105,111,110,59],value:"⋂"},{key:[73,110,118,105,115,105,98,108,101,67,111,109,109,97,59],value:"⁣"},{key:[73,110,118,105,115,105,98,108,101,84,105,109,101,115,59],value:"⁢"},{key:[73,111,103,111,110,59],value:"Į"},{key:[73,111,112,102,59],value:"𝕀"},{key:[73,111,116,97,59],value:"Ι"},{key:[73,115,99,114,59],value:"ℐ"},{key:[73,116,105,108,100,101,59],value:"Ĩ"},{key:[73,117,107,99,121,59],value:"І"},{key:[73,117,109,108,59],value:"Ï"},{key:[74,99,105,114,99,59],value:"Ĵ"},{key:[74,99,121,59],value:"Й"},{key:[74,102,114,59],value:"𝔍"},{key:[74,111,112,102,59],value:"𝕁"},{key:[74,115,99,114,59],value:"𝒥"},{key:[74,115,101,114,99,121,59],value:"Ј"},{key:[74,117,107,99,121,59],value:"Є"},{key:[75,72,99,121,59],value:"Х"},{key:[75,74,99,121,59],value:"Ќ"},{key:[75,97,112,112,97,59],value:"Κ"},{key:[75,99,101,100,105,108,59],value:"Ķ"},{key:[75,99,121,59],value:"К"},{key:[75,102,114,59],value:"𝔎"},{key:[75,111,112,102,59],value:"𝕂"},{key:[75,115,99,114,59],value:"𝒦"},{key:[76,74,99,121,59],value:"Љ"},{key:[76,84,59],value:"<"},{key:[76,97,99,117,116,101,59],value:"Ĺ"},{key:[76,97,109,98,100,97,59],value:"Λ"},{key:[76,97,110,103,59],value:"⟪"},{key:[76,97,112,108,97,99,101,116,114,102,59],value:"ℒ"},{key:[76,97,114,114,59],value:"↞"},{key:[76,99,97,114,111,110,59],value:"Ľ"},{key:[76,99,101,100,105,108,59],value:"Ļ"},{key:[76,99,121,59],value:"Л"},{key:[76,101,102,116,65,110,103,108,101,66,114,97,99,107,101,116,59],value:"⟨"},{key:[76,101,102,116,65,114,114,111,119,59],value:"←"},{key:[76,101,102,116,65,114,114,111,119,66,97,114,59],value:"⇤"},{key:[76,101,102,116,65,114,114,111,119,82,105,103,104,116,65,114,114,111,119,59],value:"⇆"},{key:[76,101,102,116,67,101,105,108,105,110,103,59],value:"⌈"},{key:[76,101,102,116,68,111,117,98,108,101,66,114,97,99,107,101,116,59],value:"⟦"},{key:[76,101,102,116,68,111,119,110,84,101,101,86,101,99,116,111,114,59],value:"⥡"},{key:[76,101,102,116,68,111,119,110,86,101,99,116,111,114,59],value:"⇃"},{key:[76,101,102,116,68,111,119,110,86,101,99,116,111,114,66,97,114,59],value:"⥙"},{key:[76,101,102,116,70,108,111,111,114,59],value:"⌊"},{key:[76,101,102,116,82,105,103,104,116,65,114,114,111,119,59],value:"↔"},{key:[76,101,102,116,82,105,103,104,116,86,101,99,116,111,114,59],value:"⥎"},{key:[76,101,102,116,84,101,101,59],value:"⊣"},{key:[76,101,102,116,84,101,101,65,114,114,111,119,59],value:"↤"},{key:[76,101,102,116,84,101,101,86,101,99,116,111,114,59],value:"⥚"},{key:[76,101,102,116,84,114,105,97,110,103,108,101,59],value:"⊲"},{key:[76,101,102,116,84,114,105,97,110,103,108,101,66,97,114,59],value:"⧏"},{key:[76,101,102,116,84,114,105,97,110,103,108,101,69,113,117,97,108,59],value:"⊴"},{key:[76,101,102,116,85,112,68,111,119,110,86,101,99,116,111,114,59],value:"⥑"},{key:[76,101,102,116,85,112,84,101,101,86,101,99,116,111,114,59],value:"⥠"},{key:[76,101,102,116,85,112,86,101,99,116,111,114,59],value:"↿"},{key:[76,101,102,116,85,112,86,101,99,116,111,114,66,97,114,59],value:"⥘"},{key:[76,101,102,116,86,101,99,116,111,114,59],value:"↼"},{key:[76,101,102,116,86,101,99,116,111,114,66,97,114,59],value:"⥒"},{key:[76,101,102,116,97,114,114,111,119,59],value:"⇐"},{key:[76,101,102,116,114,105,103,104,116,97,114,114,111,119,59],value:"⇔"},{key:[76,101,115,115,69,113,117,97,108,71,114,101,97,116,101,114,59],value:"⋚"},{key:[76,101,115,115,70,117,108,108,69,113,117,97,108,59],value:"≦"},{key:[76,101,115,115,71,114,101,97,116,101,114,59],value:"≶"},{key:[76,101,115,115,76,101,115,115,59],value:"⪡"},{key:[76,101,115,115,83,108,97,110,116,69,113,117,97,108,59],value:"⩽"},{key:[76,101,115,115,84,105,108,100,101,59],value:"≲"},{key:[76,102,114,59],value:"𝔏"},{key:[76,108,59],value:"⋘"},{key:[76,108,101,102,116,97,114,114,111,119,59],value:"⇚"},{key:[76,109,105,100,111,116,59],value:"Ŀ"},{key:[76,111,110,103,76,101,102,116,65,114,114,111,119,59],value:"⟵"},{key:[76,111,110,103,76,101,102,116,82,105,103,104,116,65,114,114,111,119,59],value:"⟷"},{key:[76,111,110,103,82,105,103,104,116,65,114,114,111,119,59],value:"⟶"},{key:[76,111,110,103,108,101,102,116,97,114,114,111,119,59],value:"⟸"},{key:[76,111,110,103,108,101,102,116,114,105,103,104,116,97,114,114,111,119,59],value:"⟺"},{key:[76,111,110,103,114,105,103,104,116,97,114,114,111,119,59],value:"⟹"},{key:[76,111,112,102,59],value:"𝕃"},{key:[76,111,119,101,114,76,101,102,116,65,114,114,111,119,59],value:"↙"},{key:[76,111,119,101,114,82,105,103,104,116,65,114,114,111,119,59],value:"↘"},{key:[76,115,99,114,59],value:"ℒ"},{key:[76,115,104,59],value:"↰"},{key:[76,115,116,114,111,107,59],value:"Ł"},{key:[76,116,59],value:"≪"},{key:[77,97,112,59],value:"⤅"},{key:[77,99,121,59],value:"М"},{key:[77,101,100,105,117,109,83,112,97,99,101,59],value:" "},{key:[77,101,108,108,105,110,116,114,102,59],value:"ℳ"},{key:[77,102,114,59],value:"𝔐"},{key:[77,105,110,117,115,80,108,117,115,59],value:"∓"},{key:[77,111,112,102,59],value:"𝕄"},{key:[77,115,99,114,59],value:"ℳ"},{key:[77,117,59],value:"Μ"},{key:[78,74,99,121,59],value:"Њ"},{key:[78,97,99,117,116,101,59],value:"Ń"},{key:[78,99,97,114,111,110,59],value:"Ň"},{key:[78,99,101,100,105,108,59],value:"Ņ"},{key:[78,99,121,59],value:"Н"},{key:[78,101,103,97,116,105,118,101,77,101,100,105,117,109,83,112,97,99,101,59],value:"​"},{key:[78,101,103,97,116,105,118,101,84,104,105,99,107,83,112,97,99,101,59],value:"​"},{key:[78,101,103,97,116,105,118,101,84,104,105,110,83,112,97,99,101,59],value:"​"},{key:[78,101,103,97,116,105,118,101,86,101,114,121,84,104,105,110,83,112,97,99,101,59],value:"​"},{key:[78,101,115,116,101,100,71,114,101,97,116,101,114,71,114,101,97,116,101,114,59],value:"≫"},{key:[78,101,115,116,101,100,76,101,115,115,76,101,115,115,59],value:"≪"},{key:[78,101,119,76,105,110,101,59],value:` +`},{key:[78,102,114,59],value:"𝔑"},{key:[78,111,66,114,101,97,107,59],value:"⁠"},{key:[78,111,110,66,114,101,97,107,105,110,103,83,112,97,99,101,59],value:" "},{key:[78,111,112,102,59],value:"ℕ"},{key:[78,111,116,59],value:"⫬"},{key:[78,111,116,67,111,110,103,114,117,101,110,116,59],value:"≢"},{key:[78,111,116,67,117,112,67,97,112,59],value:"≭"},{key:[78,111,116,68,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59],value:"∦"},{key:[78,111,116,69,108,101,109,101,110,116,59],value:"∉"},{key:[78,111,116,69,113,117,97,108,59],value:"≠"},{key:[78,111,116,69,113,117,97,108,84,105,108,100,101,59],value:"≂̸"},{key:[78,111,116,69,120,105,115,116,115,59],value:"∄"},{key:[78,111,116,71,114,101,97,116,101,114,59],value:"≯"},{key:[78,111,116,71,114,101,97,116,101,114,69,113,117,97,108,59],value:"≱"},{key:[78,111,116,71,114,101,97,116,101,114,70,117,108,108,69,113,117,97,108,59],value:"≧̸"},{key:[78,111,116,71,114,101,97,116,101,114,71,114,101,97,116,101,114,59],value:"≫̸"},{key:[78,111,116,71,114,101,97,116,101,114,76,101,115,115,59],value:"≹"},{key:[78,111,116,71,114,101,97,116,101,114,83,108,97,110,116,69,113,117,97,108,59],value:"⩾̸"},{key:[78,111,116,71,114,101,97,116,101,114,84,105,108,100,101,59],value:"≵"},{key:[78,111,116,72,117,109,112,68,111,119,110,72,117,109,112,59],value:"≎̸"},{key:[78,111,116,72,117,109,112,69,113,117,97,108,59],value:"≏̸"},{key:[78,111,116,76,101,102,116,84,114,105,97,110,103,108,101,59],value:"⋪"},{key:[78,111,116,76,101,102,116,84,114,105,97,110,103,108,101,66,97,114,59],value:"⧏̸"},{key:[78,111,116,76,101,102,116,84,114,105,97,110,103,108,101,69,113,117,97,108,59],value:"⋬"},{key:[78,111,116,76,101,115,115,59],value:"≮"},{key:[78,111,116,76,101,115,115,69,113,117,97,108,59],value:"≰"},{key:[78,111,116,76,101,115,115,71,114,101,97,116,101,114,59],value:"≸"},{key:[78,111,116,76,101,115,115,76,101,115,115,59],value:"≪̸"},{key:[78,111,116,76,101,115,115,83,108,97,110,116,69,113,117,97,108,59],value:"⩽̸"},{key:[78,111,116,76,101,115,115,84,105,108,100,101,59],value:"≴"},{key:[78,111,116,78,101,115,116,101,100,71,114,101,97,116,101,114,71,114,101,97,116,101,114,59],value:"⪢̸"},{key:[78,111,116,78,101,115,116,101,100,76,101,115,115,76,101,115,115,59],value:"⪡̸"},{key:[78,111,116,80,114,101,99,101,100,101,115,59],value:"⊀"},{key:[78,111,116,80,114,101,99,101,100,101,115,69,113,117,97,108,59],value:"⪯̸"},{key:[78,111,116,80,114,101,99,101,100,101,115,83,108,97,110,116,69,113,117,97,108,59],value:"⋠"},{key:[78,111,116,82,101,118,101,114,115,101,69,108,101,109,101,110,116,59],value:"∌"},{key:[78,111,116,82,105,103,104,116,84,114,105,97,110,103,108,101,59],value:"⋫"},{key:[78,111,116,82,105,103,104,116,84,114,105,97,110,103,108,101,66,97,114,59],value:"⧐̸"},{key:[78,111,116,82,105,103,104,116,84,114,105,97,110,103,108,101,69,113,117,97,108,59],value:"⋭"},{key:[78,111,116,83,113,117,97,114,101,83,117,98,115,101,116,59],value:"⊏̸"},{key:[78,111,116,83,113,117,97,114,101,83,117,98,115,101,116,69,113,117,97,108,59],value:"⋢"},{key:[78,111,116,83,113,117,97,114,101,83,117,112,101,114,115,101,116,59],value:"⊐̸"},{key:[78,111,116,83,113,117,97,114,101,83,117,112,101,114,115,101,116,69,113,117,97,108,59],value:"⋣"},{key:[78,111,116,83,117,98,115,101,116,59],value:"⊂⃒"},{key:[78,111,116,83,117,98,115,101,116,69,113,117,97,108,59],value:"⊈"},{key:[78,111,116,83,117,99,99,101,101,100,115,59],value:"⊁"},{key:[78,111,116,83,117,99,99,101,101,100,115,69,113,117,97,108,59],value:"⪰̸"},{key:[78,111,116,83,117,99,99,101,101,100,115,83,108,97,110,116,69,113,117,97,108,59],value:"⋡"},{key:[78,111,116,83,117,99,99,101,101,100,115,84,105,108,100,101,59],value:"≿̸"},{key:[78,111,116,83,117,112,101,114,115,101,116,59],value:"⊃⃒"},{key:[78,111,116,83,117,112,101,114,115,101,116,69,113,117,97,108,59],value:"⊉"},{key:[78,111,116,84,105,108,100,101,59],value:"≁"},{key:[78,111,116,84,105,108,100,101,69,113,117,97,108,59],value:"≄"},{key:[78,111,116,84,105,108,100,101,70,117,108,108,69,113,117,97,108,59],value:"≇"},{key:[78,111,116,84,105,108,100,101,84,105,108,100,101,59],value:"≉"},{key:[78,111,116,86,101,114,116,105,99,97,108,66,97,114,59],value:"∤"},{key:[78,115,99,114,59],value:"𝒩"},{key:[78,116,105,108,100,101,59],value:"Ñ"},{key:[78,117,59],value:"Ν"},{key:[79,69,108,105,103,59],value:"Œ"},{key:[79,97,99,117,116,101,59],value:"Ó"},{key:[79,99,105,114,99,59],value:"Ô"},{key:[79,99,121,59],value:"О"},{key:[79,100,98,108,97,99,59],value:"Ő"},{key:[79,102,114,59],value:"𝔒"},{key:[79,103,114,97,118,101,59],value:"Ò"},{key:[79,109,97,99,114,59],value:"Ō"},{key:[79,109,101,103,97,59],value:"Ω"},{key:[79,109,105,99,114,111,110,59],value:"Ο"},{key:[79,111,112,102,59],value:"𝕆"},{key:[79,112,101,110,67,117,114,108,121,68,111,117,98,108,101,81,117,111,116,101,59],value:"“"},{key:[79,112,101,110,67,117,114,108,121,81,117,111,116,101,59],value:"‘"},{key:[79,114,59],value:"⩔"},{key:[79,115,99,114,59],value:"𝒪"},{key:[79,115,108,97,115,104,59],value:"Ø"},{key:[79,116,105,108,100,101,59],value:"Õ"},{key:[79,116,105,109,101,115,59],value:"⨷"},{key:[79,117,109,108,59],value:"Ö"},{key:[79,118,101,114,66,97,114,59],value:"‾"},{key:[79,118,101,114,66,114,97,99,101,59],value:"⏞"},{key:[79,118,101,114,66,114,97,99,107,101,116,59],value:"⎴"},{key:[79,118,101,114,80,97,114,101,110,116,104,101,115,105,115,59],value:"⏜"},{key:[80,97,114,116,105,97,108,68,59],value:"∂"},{key:[80,99,121,59],value:"П"},{key:[80,102,114,59],value:"𝔓"},{key:[80,104,105,59],value:"Φ"},{key:[80,105,59],value:"Π"},{key:[80,108,117,115,77,105,110,117,115,59],value:"±"},{key:[80,111,105,110,99,97,114,101,112,108,97,110,101,59],value:"ℌ"},{key:[80,111,112,102,59],value:"ℙ"},{key:[80,114,59],value:"⪻"},{key:[80,114,101,99,101,100,101,115,59],value:"≺"},{key:[80,114,101,99,101,100,101,115,69,113,117,97,108,59],value:"⪯"},{key:[80,114,101,99,101,100,101,115,83,108,97,110,116,69,113,117,97,108,59],value:"≼"},{key:[80,114,101,99,101,100,101,115,84,105,108,100,101,59],value:"≾"},{key:[80,114,105,109,101,59],value:"″"},{key:[80,114,111,100,117,99,116,59],value:"∏"},{key:[80,114,111,112,111,114,116,105,111,110,59],value:"∷"},{key:[80,114,111,112,111,114,116,105,111,110,97,108,59],value:"∝"},{key:[80,115,99,114,59],value:"𝒫"},{key:[80,115,105,59],value:"Ψ"},{key:[81,85,79,84,59],value:'"'},{key:[81,102,114,59],value:"𝔔"},{key:[81,111,112,102,59],value:"ℚ"},{key:[81,115,99,114,59],value:"𝒬"},{key:[82,66,97,114,114,59],value:"⤐"},{key:[82,69,71,59],value:"®"},{key:[82,97,99,117,116,101,59],value:"Ŕ"},{key:[82,97,110,103,59],value:"⟫"},{key:[82,97,114,114,59],value:"↠"},{key:[82,97,114,114,116,108,59],value:"⤖"},{key:[82,99,97,114,111,110,59],value:"Ř"},{key:[82,99,101,100,105,108,59],value:"Ŗ"},{key:[82,99,121,59],value:"Р"},{key:[82,101,59],value:"ℜ"},{key:[82,101,118,101,114,115,101,69,108,101,109,101,110,116,59],value:"∋"},{key:[82,101,118,101,114,115,101,69,113,117,105,108,105,98,114,105,117,109,59],value:"⇋"},{key:[82,101,118,101,114,115,101,85,112,69,113,117,105,108,105,98,114,105,117,109,59],value:"⥯"},{key:[82,102,114,59],value:"ℜ"},{key:[82,104,111,59],value:"Ρ"},{key:[82,105,103,104,116,65,110,103,108,101,66,114,97,99,107,101,116,59],value:"⟩"},{key:[82,105,103,104,116,65,114,114,111,119,59],value:"→"},{key:[82,105,103,104,116,65,114,114,111,119,66,97,114,59],value:"⇥"},{key:[82,105,103,104,116,65,114,114,111,119,76,101,102,116,65,114,114,111,119,59],value:"⇄"},{key:[82,105,103,104,116,67,101,105,108,105,110,103,59],value:"⌉"},{key:[82,105,103,104,116,68,111,117,98,108,101,66,114,97,99,107,101,116,59],value:"⟧"},{key:[82,105,103,104,116,68,111,119,110,84,101,101,86,101,99,116,111,114,59],value:"⥝"},{key:[82,105,103,104,116,68,111,119,110,86,101,99,116,111,114,59],value:"⇂"},{key:[82,105,103,104,116,68,111,119,110,86,101,99,116,111,114,66,97,114,59],value:"⥕"},{key:[82,105,103,104,116,70,108,111,111,114,59],value:"⌋"},{key:[82,105,103,104,116,84,101,101,59],value:"⊢"},{key:[82,105,103,104,116,84,101,101,65,114,114,111,119,59],value:"↦"},{key:[82,105,103,104,116,84,101,101,86,101,99,116,111,114,59],value:"⥛"},{key:[82,105,103,104,116,84,114,105,97,110,103,108,101,59],value:"⊳"},{key:[82,105,103,104,116,84,114,105,97,110,103,108,101,66,97,114,59],value:"⧐"},{key:[82,105,103,104,116,84,114,105,97,110,103,108,101,69,113,117,97,108,59],value:"⊵"},{key:[82,105,103,104,116,85,112,68,111,119,110,86,101,99,116,111,114,59],value:"⥏"},{key:[82,105,103,104,116,85,112,84,101,101,86,101,99,116,111,114,59],value:"⥜"},{key:[82,105,103,104,116,85,112,86,101,99,116,111,114,59],value:"↾"},{key:[82,105,103,104,116,85,112,86,101,99,116,111,114,66,97,114,59],value:"⥔"},{key:[82,105,103,104,116,86,101,99,116,111,114,59],value:"⇀"},{key:[82,105,103,104,116,86,101,99,116,111,114,66,97,114,59],value:"⥓"},{key:[82,105,103,104,116,97,114,114,111,119,59],value:"⇒"},{key:[82,111,112,102,59],value:"ℝ"},{key:[82,111,117,110,100,73,109,112,108,105,101,115,59],value:"⥰"},{key:[82,114,105,103,104,116,97,114,114,111,119,59],value:"⇛"},{key:[82,115,99,114,59],value:"ℛ"},{key:[82,115,104,59],value:"↱"},{key:[82,117,108,101,68,101,108,97,121,101,100,59],value:"⧴"},{key:[83,72,67,72,99,121,59],value:"Щ"},{key:[83,72,99,121,59],value:"Ш"},{key:[83,79,70,84,99,121,59],value:"Ь"},{key:[83,97,99,117,116,101,59],value:"Ś"},{key:[83,99,59],value:"⪼"},{key:[83,99,97,114,111,110,59],value:"Š"},{key:[83,99,101,100,105,108,59],value:"Ş"},{key:[83,99,105,114,99,59],value:"Ŝ"},{key:[83,99,121,59],value:"С"},{key:[83,102,114,59],value:"𝔖"},{key:[83,104,111,114,116,68,111,119,110,65,114,114,111,119,59],value:"↓"},{key:[83,104,111,114,116,76,101,102,116,65,114,114,111,119,59],value:"←"},{key:[83,104,111,114,116,82,105,103,104,116,65,114,114,111,119,59],value:"→"},{key:[83,104,111,114,116,85,112,65,114,114,111,119,59],value:"↑"},{key:[83,105,103,109,97,59],value:"Σ"},{key:[83,109,97,108,108,67,105,114,99,108,101,59],value:"∘"},{key:[83,111,112,102,59],value:"𝕊"},{key:[83,113,114,116,59],value:"√"},{key:[83,113,117,97,114,101,59],value:"□"},{key:[83,113,117,97,114,101,73,110,116,101,114,115,101,99,116,105,111,110,59],value:"⊓"},{key:[83,113,117,97,114,101,83,117,98,115,101,116,59],value:"⊏"},{key:[83,113,117,97,114,101,83,117,98,115,101,116,69,113,117,97,108,59],value:"⊑"},{key:[83,113,117,97,114,101,83,117,112,101,114,115,101,116,59],value:"⊐"},{key:[83,113,117,97,114,101,83,117,112,101,114,115,101,116,69,113,117,97,108,59],value:"⊒"},{key:[83,113,117,97,114,101,85,110,105,111,110,59],value:"⊔"},{key:[83,115,99,114,59],value:"𝒮"},{key:[83,116,97,114,59],value:"⋆"},{key:[83,117,98,59],value:"⋐"},{key:[83,117,98,115,101,116,59],value:"⋐"},{key:[83,117,98,115,101,116,69,113,117,97,108,59],value:"⊆"},{key:[83,117,99,99,101,101,100,115,59],value:"≻"},{key:[83,117,99,99,101,101,100,115,69,113,117,97,108,59],value:"⪰"},{key:[83,117,99,99,101,101,100,115,83,108,97,110,116,69,113,117,97,108,59],value:"≽"},{key:[83,117,99,99,101,101,100,115,84,105,108,100,101,59],value:"≿"},{key:[83,117,99,104,84,104,97,116,59],value:"∋"},{key:[83,117,109,59],value:"∑"},{key:[83,117,112,59],value:"⋑"},{key:[83,117,112,101,114,115,101,116,59],value:"⊃"},{key:[83,117,112,101,114,115,101,116,69,113,117,97,108,59],value:"⊇"},{key:[83,117,112,115,101,116,59],value:"⋑"},{key:[84,72,79,82,78,59],value:"Þ"},{key:[84,82,65,68,69,59],value:"™"},{key:[84,83,72,99,121,59],value:"Ћ"},{key:[84,83,99,121,59],value:"Ц"},{key:[84,97,98,59],value:" "},{key:[84,97,117,59],value:"Τ"},{key:[84,99,97,114,111,110,59],value:"Ť"},{key:[84,99,101,100,105,108,59],value:"Ţ"},{key:[84,99,121,59],value:"Т"},{key:[84,102,114,59],value:"𝔗"},{key:[84,104,101,114,101,102,111,114,101,59],value:"∴"},{key:[84,104,101,116,97,59],value:"Θ"},{key:[84,104,105,99,107,83,112,97,99,101,59],value:"  "},{key:[84,104,105,110,83,112,97,99,101,59],value:" "},{key:[84,105,108,100,101,59],value:"∼"},{key:[84,105,108,100,101,69,113,117,97,108,59],value:"≃"},{key:[84,105,108,100,101,70,117,108,108,69,113,117,97,108,59],value:"≅"},{key:[84,105,108,100,101,84,105,108,100,101,59],value:"≈"},{key:[84,111,112,102,59],value:"𝕋"},{key:[84,114,105,112,108,101,68,111,116,59],value:"⃛"},{key:[84,115,99,114,59],value:"𝒯"},{key:[84,115,116,114,111,107,59],value:"Ŧ"},{key:[85,97,99,117,116,101,59],value:"Ú"},{key:[85,97,114,114,59],value:"↟"},{key:[85,97,114,114,111,99,105,114,59],value:"⥉"},{key:[85,98,114,99,121,59],value:"Ў"},{key:[85,98,114,101,118,101,59],value:"Ŭ"},{key:[85,99,105,114,99,59],value:"Û"},{key:[85,99,121,59],value:"У"},{key:[85,100,98,108,97,99,59],value:"Ű"},{key:[85,102,114,59],value:"𝔘"},{key:[85,103,114,97,118,101,59],value:"Ù"},{key:[85,109,97,99,114,59],value:"Ū"},{key:[85,110,100,101,114,66,97,114,59],value:"_"},{key:[85,110,100,101,114,66,114,97,99,101,59],value:"⏟"},{key:[85,110,100,101,114,66,114,97,99,107,101,116,59],value:"⎵"},{key:[85,110,100,101,114,80,97,114,101,110,116,104,101,115,105,115,59],value:"⏝"},{key:[85,110,105,111,110,59],value:"⋃"},{key:[85,110,105,111,110,80,108,117,115,59],value:"⊎"},{key:[85,111,103,111,110,59],value:"Ų"},{key:[85,111,112,102,59],value:"𝕌"},{key:[85,112,65,114,114,111,119,59],value:"↑"},{key:[85,112,65,114,114,111,119,66,97,114,59],value:"⤒"},{key:[85,112,65,114,114,111,119,68,111,119,110,65,114,114,111,119,59],value:"⇅"},{key:[85,112,68,111,119,110,65,114,114,111,119,59],value:"↕"},{key:[85,112,69,113,117,105,108,105,98,114,105,117,109,59],value:"⥮"},{key:[85,112,84,101,101,59],value:"⊥"},{key:[85,112,84,101,101,65,114,114,111,119,59],value:"↥"},{key:[85,112,97,114,114,111,119,59],value:"⇑"},{key:[85,112,100,111,119,110,97,114,114,111,119,59],value:"⇕"},{key:[85,112,112,101,114,76,101,102,116,65,114,114,111,119,59],value:"↖"},{key:[85,112,112,101,114,82,105,103,104,116,65,114,114,111,119,59],value:"↗"},{key:[85,112,115,105,59],value:"ϒ"},{key:[85,112,115,105,108,111,110,59],value:"Υ"},{key:[85,114,105,110,103,59],value:"Ů"},{key:[85,115,99,114,59],value:"𝒰"},{key:[85,116,105,108,100,101,59],value:"Ũ"},{key:[85,117,109,108,59],value:"Ü"},{key:[86,68,97,115,104,59],value:"⊫"},{key:[86,98,97,114,59],value:"⫫"},{key:[86,99,121,59],value:"В"},{key:[86,100,97,115,104,59],value:"⊩"},{key:[86,100,97,115,104,108,59],value:"⫦"},{key:[86,101,101,59],value:"⋁"},{key:[86,101,114,98,97,114,59],value:"‖"},{key:[86,101,114,116,59],value:"‖"},{key:[86,101,114,116,105,99,97,108,66,97,114,59],value:"∣"},{key:[86,101,114,116,105,99,97,108,76,105,110,101,59],value:"|"},{key:[86,101,114,116,105,99,97,108,83,101,112,97,114,97,116,111,114,59],value:"❘"},{key:[86,101,114,116,105,99,97,108,84,105,108,100,101,59],value:"≀"},{key:[86,101,114,121,84,104,105,110,83,112,97,99,101,59],value:" "},{key:[86,102,114,59],value:"𝔙"},{key:[86,111,112,102,59],value:"𝕍"},{key:[86,115,99,114,59],value:"𝒱"},{key:[86,118,100,97,115,104,59],value:"⊪"},{key:[87,99,105,114,99,59],value:"Ŵ"},{key:[87,101,100,103,101,59],value:"⋀"},{key:[87,102,114,59],value:"𝔚"},{key:[87,111,112,102,59],value:"𝕎"},{key:[87,115,99,114,59],value:"𝒲"},{key:[88,102,114,59],value:"𝔛"},{key:[88,105,59],value:"Ξ"},{key:[88,111,112,102,59],value:"𝕏"},{key:[88,115,99,114,59],value:"𝒳"},{key:[89,65,99,121,59],value:"Я"},{key:[89,73,99,121,59],value:"Ї"},{key:[89,85,99,121,59],value:"Ю"},{key:[89,97,99,117,116,101,59],value:"Ý"},{key:[89,99,105,114,99,59],value:"Ŷ"},{key:[89,99,121,59],value:"Ы"},{key:[89,102,114,59],value:"𝔜"},{key:[89,111,112,102,59],value:"𝕐"},{key:[89,115,99,114,59],value:"𝒴"},{key:[89,117,109,108,59],value:"Ÿ"},{key:[90,72,99,121,59],value:"Ж"},{key:[90,97,99,117,116,101,59],value:"Ź"},{key:[90,99,97,114,111,110,59],value:"Ž"},{key:[90,99,121,59],value:"З"},{key:[90,100,111,116,59],value:"Ż"},{key:[90,101,114,111,87,105,100,116,104,83,112,97,99,101,59],value:"​"},{key:[90,101,116,97,59],value:"Ζ"},{key:[90,102,114,59],value:"ℨ"},{key:[90,111,112,102,59],value:"ℤ"},{key:[90,115,99,114,59],value:"𝒵"},{key:[97,97,99,117,116,101,59],value:"á"},{key:[97,98,114,101,118,101,59],value:"ă"},{key:[97,99,59],value:"∾"},{key:[97,99,69,59],value:"∾̳"},{key:[97,99,100,59],value:"∿"},{key:[97,99,105,114,99,59],value:"â"},{key:[97,99,117,116,101,59],value:"´"},{key:[97,99,121,59],value:"а"},{key:[97,101,108,105,103,59],value:"æ"},{key:[97,102,59],value:"⁡"},{key:[97,102,114,59],value:"𝔞"},{key:[97,103,114,97,118,101,59],value:"à"},{key:[97,108,101,102,115,121,109,59],value:"ℵ"},{key:[97,108,101,112,104,59],value:"ℵ"},{key:[97,108,112,104,97,59],value:"α"},{key:[97,109,97,99,114,59],value:"ā"},{key:[97,109,97,108,103,59],value:"⨿"},{key:[97,109,112,59],value:"&"},{key:[97,110,100,59],value:"∧"},{key:[97,110,100,97,110,100,59],value:"⩕"},{key:[97,110,100,100,59],value:"⩜"},{key:[97,110,100,115,108,111,112,101,59],value:"⩘"},{key:[97,110,100,118,59],value:"⩚"},{key:[97,110,103,59],value:"∠"},{key:[97,110,103,101,59],value:"⦤"},{key:[97,110,103,108,101,59],value:"∠"},{key:[97,110,103,109,115,100,59],value:"∡"},{key:[97,110,103,109,115,100,97,97,59],value:"⦨"},{key:[97,110,103,109,115,100,97,98,59],value:"⦩"},{key:[97,110,103,109,115,100,97,99,59],value:"⦪"},{key:[97,110,103,109,115,100,97,100,59],value:"⦫"},{key:[97,110,103,109,115,100,97,101,59],value:"⦬"},{key:[97,110,103,109,115,100,97,102,59],value:"⦭"},{key:[97,110,103,109,115,100,97,103,59],value:"⦮"},{key:[97,110,103,109,115,100,97,104,59],value:"⦯"},{key:[97,110,103,114,116,59],value:"∟"},{key:[97,110,103,114,116,118,98,59],value:"⊾"},{key:[97,110,103,114,116,118,98,100,59],value:"⦝"},{key:[97,110,103,115,112,104,59],value:"∢"},{key:[97,110,103,115,116,59],value:"Å"},{key:[97,110,103,122,97,114,114,59],value:"⍼"},{key:[97,111,103,111,110,59],value:"ą"},{key:[97,111,112,102,59],value:"𝕒"},{key:[97,112,59],value:"≈"},{key:[97,112,69,59],value:"⩰"},{key:[97,112,97,99,105,114,59],value:"⩯"},{key:[97,112,101,59],value:"≊"},{key:[97,112,105,100,59],value:"≋"},{key:[97,112,111,115,59],value:"'"},{key:[97,112,112,114,111,120,59],value:"≈"},{key:[97,112,112,114,111,120,101,113,59],value:"≊"},{key:[97,114,105,110,103,59],value:"å"},{key:[97,115,99,114,59],value:"𝒶"},{key:[97,115,116,59],value:"*"},{key:[97,115,121,109,112,59],value:"≈"},{key:[97,115,121,109,112,101,113,59],value:"≍"},{key:[97,116,105,108,100,101,59],value:"ã"},{key:[97,117,109,108,59],value:"ä"},{key:[97,119,99,111,110,105,110,116,59],value:"∳"},{key:[97,119,105,110,116,59],value:"⨑"},{key:[98,78,111,116,59],value:"⫭"},{key:[98,97,99,107,99,111,110,103,59],value:"≌"},{key:[98,97,99,107,101,112,115,105,108,111,110,59],value:"϶"},{key:[98,97,99,107,112,114,105,109,101,59],value:"‵"},{key:[98,97,99,107,115,105,109,59],value:"∽"},{key:[98,97,99,107,115,105,109,101,113,59],value:"⋍"},{key:[98,97,114,118,101,101,59],value:"⊽"},{key:[98,97,114,119,101,100,59],value:"⌅"},{key:[98,97,114,119,101,100,103,101,59],value:"⌅"},{key:[98,98,114,107,59],value:"⎵"},{key:[98,98,114,107,116,98,114,107,59],value:"⎶"},{key:[98,99,111,110,103,59],value:"≌"},{key:[98,99,121,59],value:"б"},{key:[98,100,113,117,111,59],value:"„"},{key:[98,101,99,97,117,115,59],value:"∵"},{key:[98,101,99,97,117,115,101,59],value:"∵"},{key:[98,101,109,112,116,121,118,59],value:"⦰"},{key:[98,101,112,115,105,59],value:"϶"},{key:[98,101,114,110,111,117,59],value:"ℬ"},{key:[98,101,116,97,59],value:"β"},{key:[98,101,116,104,59],value:"ℶ"},{key:[98,101,116,119,101,101,110,59],value:"≬"},{key:[98,102,114,59],value:"𝔟"},{key:[98,105,103,99,97,112,59],value:"⋂"},{key:[98,105,103,99,105,114,99,59],value:"◯"},{key:[98,105,103,99,117,112,59],value:"⋃"},{key:[98,105,103,111,100,111,116,59],value:"⨀"},{key:[98,105,103,111,112,108,117,115,59],value:"⨁"},{key:[98,105,103,111,116,105,109,101,115,59],value:"⨂"},{key:[98,105,103,115,113,99,117,112,59],value:"⨆"},{key:[98,105,103,115,116,97,114,59],value:"★"},{key:[98,105,103,116,114,105,97,110,103,108,101,100,111,119,110,59],value:"▽"},{key:[98,105,103,116,114,105,97,110,103,108,101,117,112,59],value:"△"},{key:[98,105,103,117,112,108,117,115,59],value:"⨄"},{key:[98,105,103,118,101,101,59],value:"⋁"},{key:[98,105,103,119,101,100,103,101,59],value:"⋀"},{key:[98,107,97,114,111,119,59],value:"⤍"},{key:[98,108,97,99,107,108,111,122,101,110,103,101,59],value:"⧫"},{key:[98,108,97,99,107,115,113,117,97,114,101,59],value:"▪"},{key:[98,108,97,99,107,116,114,105,97,110,103,108,101,59],value:"▴"},{key:[98,108,97,99,107,116,114,105,97,110,103,108,101,100,111,119,110,59],value:"▾"},{key:[98,108,97,99,107,116,114,105,97,110,103,108,101,108,101,102,116,59],value:"◂"},{key:[98,108,97,99,107,116,114,105,97,110,103,108,101,114,105,103,104,116,59],value:"▸"},{key:[98,108,97,110,107,59],value:"␣"},{key:[98,108,107,49,50,59],value:"▒"},{key:[98,108,107,49,52,59],value:"░"},{key:[98,108,107,51,52,59],value:"▓"},{key:[98,108,111,99,107,59],value:"█"},{key:[98,110,101,59],value:"=⃥"},{key:[98,110,101,113,117,105,118,59],value:"≡⃥"},{key:[98,110,111,116,59],value:"⌐"},{key:[98,111,112,102,59],value:"𝕓"},{key:[98,111,116,59],value:"⊥"},{key:[98,111,116,116,111,109,59],value:"⊥"},{key:[98,111,119,116,105,101,59],value:"⋈"},{key:[98,111,120,68,76,59],value:"╗"},{key:[98,111,120,68,82,59],value:"╔"},{key:[98,111,120,68,108,59],value:"╖"},{key:[98,111,120,68,114,59],value:"╓"},{key:[98,111,120,72,59],value:"═"},{key:[98,111,120,72,68,59],value:"╦"},{key:[98,111,120,72,85,59],value:"╩"},{key:[98,111,120,72,100,59],value:"╤"},{key:[98,111,120,72,117,59],value:"╧"},{key:[98,111,120,85,76,59],value:"╝"},{key:[98,111,120,85,82,59],value:"╚"},{key:[98,111,120,85,108,59],value:"╜"},{key:[98,111,120,85,114,59],value:"╙"},{key:[98,111,120,86,59],value:"║"},{key:[98,111,120,86,72,59],value:"╬"},{key:[98,111,120,86,76,59],value:"╣"},{key:[98,111,120,86,82,59],value:"╠"},{key:[98,111,120,86,104,59],value:"╫"},{key:[98,111,120,86,108,59],value:"╢"},{key:[98,111,120,86,114,59],value:"╟"},{key:[98,111,120,98,111,120,59],value:"⧉"},{key:[98,111,120,100,76,59],value:"╕"},{key:[98,111,120,100,82,59],value:"╒"},{key:[98,111,120,100,108,59],value:"┐"},{key:[98,111,120,100,114,59],value:"┌"},{key:[98,111,120,104,59],value:"─"},{key:[98,111,120,104,68,59],value:"╥"},{key:[98,111,120,104,85,59],value:"╨"},{key:[98,111,120,104,100,59],value:"┬"},{key:[98,111,120,104,117,59],value:"┴"},{key:[98,111,120,109,105,110,117,115,59],value:"⊟"},{key:[98,111,120,112,108,117,115,59],value:"⊞"},{key:[98,111,120,116,105,109,101,115,59],value:"⊠"},{key:[98,111,120,117,76,59],value:"╛"},{key:[98,111,120,117,82,59],value:"╘"},{key:[98,111,120,117,108,59],value:"┘"},{key:[98,111,120,117,114,59],value:"└"},{key:[98,111,120,118,59],value:"│"},{key:[98,111,120,118,72,59],value:"╪"},{key:[98,111,120,118,76,59],value:"╡"},{key:[98,111,120,118,82,59],value:"╞"},{key:[98,111,120,118,104,59],value:"┼"},{key:[98,111,120,118,108,59],value:"┤"},{key:[98,111,120,118,114,59],value:"├"},{key:[98,112,114,105,109,101,59],value:"‵"},{key:[98,114,101,118,101,59],value:"˘"},{key:[98,114,118,98,97,114,59],value:"¦"},{key:[98,115,99,114,59],value:"𝒷"},{key:[98,115,101,109,105,59],value:"⁏"},{key:[98,115,105,109,59],value:"∽"},{key:[98,115,105,109,101,59],value:"⋍"},{key:[98,115,111,108,59],value:"\\"},{key:[98,115,111,108,98,59],value:"⧅"},{key:[98,115,111,108,104,115,117,98,59],value:"⟈"},{key:[98,117,108,108,59],value:"•"},{key:[98,117,108,108,101,116,59],value:"•"},{key:[98,117,109,112,59],value:"≎"},{key:[98,117,109,112,69,59],value:"⪮"},{key:[98,117,109,112,101,59],value:"≏"},{key:[98,117,109,112,101,113,59],value:"≏"},{key:[99,97,99,117,116,101,59],value:"ć"},{key:[99,97,112,59],value:"∩"},{key:[99,97,112,97,110,100,59],value:"⩄"},{key:[99,97,112,98,114,99,117,112,59],value:"⩉"},{key:[99,97,112,99,97,112,59],value:"⩋"},{key:[99,97,112,99,117,112,59],value:"⩇"},{key:[99,97,112,100,111,116,59],value:"⩀"},{key:[99,97,112,115,59],value:"∩︀"},{key:[99,97,114,101,116,59],value:"⁁"},{key:[99,97,114,111,110,59],value:"ˇ"},{key:[99,99,97,112,115,59],value:"⩍"},{key:[99,99,97,114,111,110,59],value:"č"},{key:[99,99,101,100,105,108,59],value:"ç"},{key:[99,99,105,114,99,59],value:"ĉ"},{key:[99,99,117,112,115,59],value:"⩌"},{key:[99,99,117,112,115,115,109,59],value:"⩐"},{key:[99,100,111,116,59],value:"ċ"},{key:[99,101,100,105,108,59],value:"¸"},{key:[99,101,109,112,116,121,118,59],value:"⦲"},{key:[99,101,110,116,59],value:"¢"},{key:[99,101,110,116,101,114,100,111,116,59],value:"·"},{key:[99,102,114,59],value:"𝔠"},{key:[99,104,99,121,59],value:"ч"},{key:[99,104,101,99,107,59],value:"✓"},{key:[99,104,101,99,107,109,97,114,107,59],value:"✓"},{key:[99,104,105,59],value:"χ"},{key:[99,105,114,59],value:"○"},{key:[99,105,114,69,59],value:"⧃"},{key:[99,105,114,99,59],value:"ˆ"},{key:[99,105,114,99,101,113,59],value:"≗"},{key:[99,105,114,99,108,101,97,114,114,111,119,108,101,102,116,59],value:"↺"},{key:[99,105,114,99,108,101,97,114,114,111,119,114,105,103,104,116,59],value:"↻"},{key:[99,105,114,99,108,101,100,82,59],value:"®"},{key:[99,105,114,99,108,101,100,83,59],value:"Ⓢ"},{key:[99,105,114,99,108,101,100,97,115,116,59],value:"⊛"},{key:[99,105,114,99,108,101,100,99,105,114,99,59],value:"⊚"},{key:[99,105,114,99,108,101,100,100,97,115,104,59],value:"⊝"},{key:[99,105,114,101,59],value:"≗"},{key:[99,105,114,102,110,105,110,116,59],value:"⨐"},{key:[99,105,114,109,105,100,59],value:"⫯"},{key:[99,105,114,115,99,105,114,59],value:"⧂"},{key:[99,108,117,98,115,59],value:"♣"},{key:[99,108,117,98,115,117,105,116,59],value:"♣"},{key:[99,111,108,111,110,59],value:":"},{key:[99,111,108,111,110,101,59],value:"≔"},{key:[99,111,108,111,110,101,113,59],value:"≔"},{key:[99,111,109,109,97,59],value:","},{key:[99,111,109,109,97,116,59],value:"@"},{key:[99,111,109,112,59],value:"∁"},{key:[99,111,109,112,102,110,59],value:"∘"},{key:[99,111,109,112,108,101,109,101,110,116,59],value:"∁"},{key:[99,111,109,112,108,101,120,101,115,59],value:"ℂ"},{key:[99,111,110,103,59],value:"≅"},{key:[99,111,110,103,100,111,116,59],value:"⩭"},{key:[99,111,110,105,110,116,59],value:"∮"},{key:[99,111,112,102,59],value:"𝕔"},{key:[99,111,112,114,111,100,59],value:"∐"},{key:[99,111,112,121,59],value:"©"},{key:[99,111,112,121,115,114,59],value:"℗"},{key:[99,114,97,114,114,59],value:"↵"},{key:[99,114,111,115,115,59],value:"✗"},{key:[99,115,99,114,59],value:"𝒸"},{key:[99,115,117,98,59],value:"⫏"},{key:[99,115,117,98,101,59],value:"⫑"},{key:[99,115,117,112,59],value:"⫐"},{key:[99,115,117,112,101,59],value:"⫒"},{key:[99,116,100,111,116,59],value:"⋯"},{key:[99,117,100,97,114,114,108,59],value:"⤸"},{key:[99,117,100,97,114,114,114,59],value:"⤵"},{key:[99,117,101,112,114,59],value:"⋞"},{key:[99,117,101,115,99,59],value:"⋟"},{key:[99,117,108,97,114,114,59],value:"↶"},{key:[99,117,108,97,114,114,112,59],value:"⤽"},{key:[99,117,112,59],value:"∪"},{key:[99,117,112,98,114,99,97,112,59],value:"⩈"},{key:[99,117,112,99,97,112,59],value:"⩆"},{key:[99,117,112,99,117,112,59],value:"⩊"},{key:[99,117,112,100,111,116,59],value:"⊍"},{key:[99,117,112,111,114,59],value:"⩅"},{key:[99,117,112,115,59],value:"∪︀"},{key:[99,117,114,97,114,114,59],value:"↷"},{key:[99,117,114,97,114,114,109,59],value:"⤼"},{key:[99,117,114,108,121,101,113,112,114,101,99,59],value:"⋞"},{key:[99,117,114,108,121,101,113,115,117,99,99,59],value:"⋟"},{key:[99,117,114,108,121,118,101,101,59],value:"⋎"},{key:[99,117,114,108,121,119,101,100,103,101,59],value:"⋏"},{key:[99,117,114,114,101,110,59],value:"¤"},{key:[99,117,114,118,101,97,114,114,111,119,108,101,102,116,59],value:"↶"},{key:[99,117,114,118,101,97,114,114,111,119,114,105,103,104,116,59],value:"↷"},{key:[99,117,118,101,101,59],value:"⋎"},{key:[99,117,119,101,100,59],value:"⋏"},{key:[99,119,99,111,110,105,110,116,59],value:"∲"},{key:[99,119,105,110,116,59],value:"∱"},{key:[99,121,108,99,116,121,59],value:"⌭"},{key:[100,65,114,114,59],value:"⇓"},{key:[100,72,97,114,59],value:"⥥"},{key:[100,97,103,103,101,114,59],value:"†"},{key:[100,97,108,101,116,104,59],value:"ℸ"},{key:[100,97,114,114,59],value:"↓"},{key:[100,97,115,104,59],value:"‐"},{key:[100,97,115,104,118,59],value:"⊣"},{key:[100,98,107,97,114,111,119,59],value:"⤏"},{key:[100,98,108,97,99,59],value:"˝"},{key:[100,99,97,114,111,110,59],value:"ď"},{key:[100,99,121,59],value:"д"},{key:[100,100,59],value:"ⅆ"},{key:[100,100,97,103,103,101,114,59],value:"‡"},{key:[100,100,97,114,114,59],value:"⇊"},{key:[100,100,111,116,115,101,113,59],value:"⩷"},{key:[100,101,103,59],value:"°"},{key:[100,101,108,116,97,59],value:"δ"},{key:[100,101,109,112,116,121,118,59],value:"⦱"},{key:[100,102,105,115,104,116,59],value:"⥿"},{key:[100,102,114,59],value:"𝔡"},{key:[100,104,97,114,108,59],value:"⇃"},{key:[100,104,97,114,114,59],value:"⇂"},{key:[100,105,97,109,59],value:"⋄"},{key:[100,105,97,109,111,110,100,59],value:"⋄"},{key:[100,105,97,109,111,110,100,115,117,105,116,59],value:"♦"},{key:[100,105,97,109,115,59],value:"♦"},{key:[100,105,101,59],value:"¨"},{key:[100,105,103,97,109,109,97,59],value:"ϝ"},{key:[100,105,115,105,110,59],value:"⋲"},{key:[100,105,118,59],value:"÷"},{key:[100,105,118,105,100,101,59],value:"÷"},{key:[100,105,118,105,100,101,111,110,116,105,109,101,115,59],value:"⋇"},{key:[100,105,118,111,110,120,59],value:"⋇"},{key:[100,106,99,121,59],value:"ђ"},{key:[100,108,99,111,114,110,59],value:"⌞"},{key:[100,108,99,114,111,112,59],value:"⌍"},{key:[100,111,108,108,97,114,59],value:"$"},{key:[100,111,112,102,59],value:"𝕕"},{key:[100,111,116,59],value:"˙"},{key:[100,111,116,101,113,59],value:"≐"},{key:[100,111,116,101,113,100,111,116,59],value:"≑"},{key:[100,111,116,109,105,110,117,115,59],value:"∸"},{key:[100,111,116,112,108,117,115,59],value:"∔"},{key:[100,111,116,115,113,117,97,114,101,59],value:"⊡"},{key:[100,111,117,98,108,101,98,97,114,119,101,100,103,101,59],value:"⌆"},{key:[100,111,119,110,97,114,114,111,119,59],value:"↓"},{key:[100,111,119,110,100,111,119,110,97,114,114,111,119,115,59],value:"⇊"},{key:[100,111,119,110,104,97,114,112,111,111,110,108,101,102,116,59],value:"⇃"},{key:[100,111,119,110,104,97,114,112,111,111,110,114,105,103,104,116,59],value:"⇂"},{key:[100,114,98,107,97,114,111,119,59],value:"⤐"},{key:[100,114,99,111,114,110,59],value:"⌟"},{key:[100,114,99,114,111,112,59],value:"⌌"},{key:[100,115,99,114,59],value:"𝒹"},{key:[100,115,99,121,59],value:"ѕ"},{key:[100,115,111,108,59],value:"⧶"},{key:[100,115,116,114,111,107,59],value:"đ"},{key:[100,116,100,111,116,59],value:"⋱"},{key:[100,116,114,105,59],value:"▿"},{key:[100,116,114,105,102,59],value:"▾"},{key:[100,117,97,114,114,59],value:"⇵"},{key:[100,117,104,97,114,59],value:"⥯"},{key:[100,119,97,110,103,108,101,59],value:"⦦"},{key:[100,122,99,121,59],value:"џ"},{key:[100,122,105,103,114,97,114,114,59],value:"⟿"},{key:[101,68,68,111,116,59],value:"⩷"},{key:[101,68,111,116,59],value:"≑"},{key:[101,97,99,117,116,101,59],value:"é"},{key:[101,97,115,116,101,114,59],value:"⩮"},{key:[101,99,97,114,111,110,59],value:"ě"},{key:[101,99,105,114,59],value:"≖"},{key:[101,99,105,114,99,59],value:"ê"},{key:[101,99,111,108,111,110,59],value:"≕"},{key:[101,99,121,59],value:"э"},{key:[101,100,111,116,59],value:"ė"},{key:[101,101,59],value:"ⅇ"},{key:[101,102,68,111,116,59],value:"≒"},{key:[101,102,114,59],value:"𝔢"},{key:[101,103,59],value:"⪚"},{key:[101,103,114,97,118,101,59],value:"è"},{key:[101,103,115,59],value:"⪖"},{key:[101,103,115,100,111,116,59],value:"⪘"},{key:[101,108,59],value:"⪙"},{key:[101,108,105,110,116,101,114,115,59],value:"⏧"},{key:[101,108,108,59],value:"ℓ"},{key:[101,108,115,59],value:"⪕"},{key:[101,108,115,100,111,116,59],value:"⪗"},{key:[101,109,97,99,114,59],value:"ē"},{key:[101,109,112,116,121,59],value:"∅"},{key:[101,109,112,116,121,115,101,116,59],value:"∅"},{key:[101,109,112,116,121,118,59],value:"∅"},{key:[101,109,115,112,49,51,59],value:" "},{key:[101,109,115,112,49,52,59],value:" "},{key:[101,109,115,112,59],value:" "},{key:[101,110,103,59],value:"ŋ"},{key:[101,110,115,112,59],value:" "},{key:[101,111,103,111,110,59],value:"ę"},{key:[101,111,112,102,59],value:"𝕖"},{key:[101,112,97,114,59],value:"⋕"},{key:[101,112,97,114,115,108,59],value:"⧣"},{key:[101,112,108,117,115,59],value:"⩱"},{key:[101,112,115,105,59],value:"ε"},{key:[101,112,115,105,108,111,110,59],value:"ε"},{key:[101,112,115,105,118,59],value:"ϵ"},{key:[101,113,99,105,114,99,59],value:"≖"},{key:[101,113,99,111,108,111,110,59],value:"≕"},{key:[101,113,115,105,109,59],value:"≂"},{key:[101,113,115,108,97,110,116,103,116,114,59],value:"⪖"},{key:[101,113,115,108,97,110,116,108,101,115,115,59],value:"⪕"},{key:[101,113,117,97,108,115,59],value:"="},{key:[101,113,117,101,115,116,59],value:"≟"},{key:[101,113,117,105,118,59],value:"≡"},{key:[101,113,117,105,118,68,68,59],value:"⩸"},{key:[101,113,118,112,97,114,115,108,59],value:"⧥"},{key:[101,114,68,111,116,59],value:"≓"},{key:[101,114,97,114,114,59],value:"⥱"},{key:[101,115,99,114,59],value:"ℯ"},{key:[101,115,100,111,116,59],value:"≐"},{key:[101,115,105,109,59],value:"≂"},{key:[101,116,97,59],value:"η"},{key:[101,116,104,59],value:"ð"},{key:[101,117,109,108,59],value:"ë"},{key:[101,117,114,111,59],value:"€"},{key:[101,120,99,108,59],value:"!"},{key:[101,120,105,115,116,59],value:"∃"},{key:[101,120,112,101,99,116,97,116,105,111,110,59],value:"ℰ"},{key:[101,120,112,111,110,101,110,116,105,97,108,101,59],value:"ⅇ"},{key:[102,97,108,108,105,110,103,100,111,116,115,101,113,59],value:"≒"},{key:[102,99,121,59],value:"ф"},{key:[102,101,109,97,108,101,59],value:"♀"},{key:[102,102,105,108,105,103,59],value:"ffi"},{key:[102,102,108,105,103,59],value:"ff"},{key:[102,102,108,108,105,103,59],value:"ffl"},{key:[102,102,114,59],value:"𝔣"},{key:[102,105,108,105,103,59],value:"fi"},{key:[102,106,108,105,103,59],value:"fj"},{key:[102,108,97,116,59],value:"♭"},{key:[102,108,108,105,103,59],value:"fl"},{key:[102,108,116,110,115,59],value:"▱"},{key:[102,110,111,102,59],value:"ƒ"},{key:[102,111,112,102,59],value:"𝕗"},{key:[102,111,114,97,108,108,59],value:"∀"},{key:[102,111,114,107,59],value:"⋔"},{key:[102,111,114,107,118,59],value:"⫙"},{key:[102,112,97,114,116,105,110,116,59],value:"⨍"},{key:[102,114,97,99,49,50,59],value:"½"},{key:[102,114,97,99,49,51,59],value:"⅓"},{key:[102,114,97,99,49,52,59],value:"¼"},{key:[102,114,97,99,49,53,59],value:"⅕"},{key:[102,114,97,99,49,54,59],value:"⅙"},{key:[102,114,97,99,49,56,59],value:"⅛"},{key:[102,114,97,99,50,51,59],value:"⅔"},{key:[102,114,97,99,50,53,59],value:"⅖"},{key:[102,114,97,99,51,52,59],value:"¾"},{key:[102,114,97,99,51,53,59],value:"⅗"},{key:[102,114,97,99,51,56,59],value:"⅜"},{key:[102,114,97,99,52,53,59],value:"⅘"},{key:[102,114,97,99,53,54,59],value:"⅚"},{key:[102,114,97,99,53,56,59],value:"⅝"},{key:[102,114,97,99,55,56,59],value:"⅞"},{key:[102,114,97,115,108,59],value:"⁄"},{key:[102,114,111,119,110,59],value:"⌢"},{key:[102,115,99,114,59],value:"𝒻"},{key:[103,69,59],value:"≧"},{key:[103,69,108,59],value:"⪌"},{key:[103,97,99,117,116,101,59],value:"ǵ"},{key:[103,97,109,109,97,59],value:"γ"},{key:[103,97,109,109,97,100,59],value:"ϝ"},{key:[103,97,112,59],value:"⪆"},{key:[103,98,114,101,118,101,59],value:"ğ"},{key:[103,99,105,114,99,59],value:"ĝ"},{key:[103,99,121,59],value:"г"},{key:[103,100,111,116,59],value:"ġ"},{key:[103,101,59],value:"≥"},{key:[103,101,108,59],value:"⋛"},{key:[103,101,113,59],value:"≥"},{key:[103,101,113,113,59],value:"≧"},{key:[103,101,113,115,108,97,110,116,59],value:"⩾"},{key:[103,101,115,59],value:"⩾"},{key:[103,101,115,99,99,59],value:"⪩"},{key:[103,101,115,100,111,116,59],value:"⪀"},{key:[103,101,115,100,111,116,111,59],value:"⪂"},{key:[103,101,115,100,111,116,111,108,59],value:"⪄"},{key:[103,101,115,108,59],value:"⋛︀"},{key:[103,101,115,108,101,115,59],value:"⪔"},{key:[103,102,114,59],value:"𝔤"},{key:[103,103,59],value:"≫"},{key:[103,103,103,59],value:"⋙"},{key:[103,105,109,101,108,59],value:"ℷ"},{key:[103,106,99,121,59],value:"ѓ"},{key:[103,108,59],value:"≷"},{key:[103,108,69,59],value:"⪒"},{key:[103,108,97,59],value:"⪥"},{key:[103,108,106,59],value:"⪤"},{key:[103,110,69,59],value:"≩"},{key:[103,110,97,112,59],value:"⪊"},{key:[103,110,97,112,112,114,111,120,59],value:"⪊"},{key:[103,110,101,59],value:"⪈"},{key:[103,110,101,113,59],value:"⪈"},{key:[103,110,101,113,113,59],value:"≩"},{key:[103,110,115,105,109,59],value:"⋧"},{key:[103,111,112,102,59],value:"𝕘"},{key:[103,114,97,118,101,59],value:"`"},{key:[103,115,99,114,59],value:"ℊ"},{key:[103,115,105,109,59],value:"≳"},{key:[103,115,105,109,101,59],value:"⪎"},{key:[103,115,105,109,108,59],value:"⪐"},{key:[103,116,59],value:">"},{key:[103,116,99,99,59],value:"⪧"},{key:[103,116,99,105,114,59],value:"⩺"},{key:[103,116,100,111,116,59],value:"⋗"},{key:[103,116,108,80,97,114,59],value:"⦕"},{key:[103,116,113,117,101,115,116,59],value:"⩼"},{key:[103,116,114,97,112,112,114,111,120,59],value:"⪆"},{key:[103,116,114,97,114,114,59],value:"⥸"},{key:[103,116,114,100,111,116,59],value:"⋗"},{key:[103,116,114,101,113,108,101,115,115,59],value:"⋛"},{key:[103,116,114,101,113,113,108,101,115,115,59],value:"⪌"},{key:[103,116,114,108,101,115,115,59],value:"≷"},{key:[103,116,114,115,105,109,59],value:"≳"},{key:[103,118,101,114,116,110,101,113,113,59],value:"≩︀"},{key:[103,118,110,69,59],value:"≩︀"},{key:[104,65,114,114,59],value:"⇔"},{key:[104,97,105,114,115,112,59],value:" "},{key:[104,97,108,102,59],value:"½"},{key:[104,97,109,105,108,116,59],value:"ℋ"},{key:[104,97,114,100,99,121,59],value:"ъ"},{key:[104,97,114,114,59],value:"↔"},{key:[104,97,114,114,99,105,114,59],value:"⥈"},{key:[104,97,114,114,119,59],value:"↭"},{key:[104,98,97,114,59],value:"ℏ"},{key:[104,99,105,114,99,59],value:"ĥ"},{key:[104,101,97,114,116,115,59],value:"♥"},{key:[104,101,97,114,116,115,117,105,116,59],value:"♥"},{key:[104,101,108,108,105,112,59],value:"…"},{key:[104,101,114,99,111,110,59],value:"⊹"},{key:[104,102,114,59],value:"𝔥"},{key:[104,107,115,101,97,114,111,119,59],value:"⤥"},{key:[104,107,115,119,97,114,111,119,59],value:"⤦"},{key:[104,111,97,114,114,59],value:"⇿"},{key:[104,111,109,116,104,116,59],value:"∻"},{key:[104,111,111,107,108,101,102,116,97,114,114,111,119,59],value:"↩"},{key:[104,111,111,107,114,105,103,104,116,97,114,114,111,119,59],value:"↪"},{key:[104,111,112,102,59],value:"𝕙"},{key:[104,111,114,98,97,114,59],value:"―"},{key:[104,115,99,114,59],value:"𝒽"},{key:[104,115,108,97,115,104,59],value:"ℏ"},{key:[104,115,116,114,111,107,59],value:"ħ"},{key:[104,121,98,117,108,108,59],value:"⁃"},{key:[104,121,112,104,101,110,59],value:"‐"},{key:[105,97,99,117,116,101,59],value:"í"},{key:[105,99,59],value:"⁣"},{key:[105,99,105,114,99,59],value:"î"},{key:[105,99,121,59],value:"и"},{key:[105,101,99,121,59],value:"е"},{key:[105,101,120,99,108,59],value:"¡"},{key:[105,102,102,59],value:"⇔"},{key:[105,102,114,59],value:"𝔦"},{key:[105,103,114,97,118,101,59],value:"ì"},{key:[105,105,59],value:"ⅈ"},{key:[105,105,105,105,110,116,59],value:"⨌"},{key:[105,105,105,110,116,59],value:"∭"},{key:[105,105,110,102,105,110,59],value:"⧜"},{key:[105,105,111,116,97,59],value:"℩"},{key:[105,106,108,105,103,59],value:"ij"},{key:[105,109,97,99,114,59],value:"ī"},{key:[105,109,97,103,101,59],value:"ℑ"},{key:[105,109,97,103,108,105,110,101,59],value:"ℐ"},{key:[105,109,97,103,112,97,114,116,59],value:"ℑ"},{key:[105,109,97,116,104,59],value:"ı"},{key:[105,109,111,102,59],value:"⊷"},{key:[105,109,112,101,100,59],value:"Ƶ"},{key:[105,110,59],value:"∈"},{key:[105,110,99,97,114,101,59],value:"℅"},{key:[105,110,102,105,110,59],value:"∞"},{key:[105,110,102,105,110,116,105,101,59],value:"⧝"},{key:[105,110,111,100,111,116,59],value:"ı"},{key:[105,110,116,59],value:"∫"},{key:[105,110,116,99,97,108,59],value:"⊺"},{key:[105,110,116,101,103,101,114,115,59],value:"ℤ"},{key:[105,110,116,101,114,99,97,108,59],value:"⊺"},{key:[105,110,116,108,97,114,104,107,59],value:"⨗"},{key:[105,110,116,112,114,111,100,59],value:"⨼"},{key:[105,111,99,121,59],value:"ё"},{key:[105,111,103,111,110,59],value:"į"},{key:[105,111,112,102,59],value:"𝕚"},{key:[105,111,116,97,59],value:"ι"},{key:[105,112,114,111,100,59],value:"⨼"},{key:[105,113,117,101,115,116,59],value:"¿"},{key:[105,115,99,114,59],value:"𝒾"},{key:[105,115,105,110,59],value:"∈"},{key:[105,115,105,110,69,59],value:"⋹"},{key:[105,115,105,110,100,111,116,59],value:"⋵"},{key:[105,115,105,110,115,59],value:"⋴"},{key:[105,115,105,110,115,118,59],value:"⋳"},{key:[105,115,105,110,118,59],value:"∈"},{key:[105,116,59],value:"⁢"},{key:[105,116,105,108,100,101,59],value:"ĩ"},{key:[105,117,107,99,121,59],value:"і"},{key:[105,117,109,108,59],value:"ï"},{key:[106,99,105,114,99,59],value:"ĵ"},{key:[106,99,121,59],value:"й"},{key:[106,102,114,59],value:"𝔧"},{key:[106,109,97,116,104,59],value:"ȷ"},{key:[106,111,112,102,59],value:"𝕛"},{key:[106,115,99,114,59],value:"𝒿"},{key:[106,115,101,114,99,121,59],value:"ј"},{key:[106,117,107,99,121,59],value:"є"},{key:[107,97,112,112,97,59],value:"κ"},{key:[107,97,112,112,97,118,59],value:"ϰ"},{key:[107,99,101,100,105,108,59],value:"ķ"},{key:[107,99,121,59],value:"к"},{key:[107,102,114,59],value:"𝔨"},{key:[107,103,114,101,101,110,59],value:"ĸ"},{key:[107,104,99,121,59],value:"х"},{key:[107,106,99,121,59],value:"ќ"},{key:[107,111,112,102,59],value:"𝕜"},{key:[107,115,99,114,59],value:"𝓀"},{key:[108,65,97,114,114,59],value:"⇚"},{key:[108,65,114,114,59],value:"⇐"},{key:[108,65,116,97,105,108,59],value:"⤛"},{key:[108,66,97,114,114,59],value:"⤎"},{key:[108,69,59],value:"≦"},{key:[108,69,103,59],value:"⪋"},{key:[108,72,97,114,59],value:"⥢"},{key:[108,97,99,117,116,101,59],value:"ĺ"},{key:[108,97,101,109,112,116,121,118,59],value:"⦴"},{key:[108,97,103,114,97,110,59],value:"ℒ"},{key:[108,97,109,98,100,97,59],value:"λ"},{key:[108,97,110,103,59],value:"⟨"},{key:[108,97,110,103,100,59],value:"⦑"},{key:[108,97,110,103,108,101,59],value:"⟨"},{key:[108,97,112,59],value:"⪅"},{key:[108,97,113,117,111,59],value:"«"},{key:[108,97,114,114,59],value:"←"},{key:[108,97,114,114,98,59],value:"⇤"},{key:[108,97,114,114,98,102,115,59],value:"⤟"},{key:[108,97,114,114,102,115,59],value:"⤝"},{key:[108,97,114,114,104,107,59],value:"↩"},{key:[108,97,114,114,108,112,59],value:"↫"},{key:[108,97,114,114,112,108,59],value:"⤹"},{key:[108,97,114,114,115,105,109,59],value:"⥳"},{key:[108,97,114,114,116,108,59],value:"↢"},{key:[108,97,116,59],value:"⪫"},{key:[108,97,116,97,105,108,59],value:"⤙"},{key:[108,97,116,101,59],value:"⪭"},{key:[108,97,116,101,115,59],value:"⪭︀"},{key:[108,98,97,114,114,59],value:"⤌"},{key:[108,98,98,114,107,59],value:"❲"},{key:[108,98,114,97,99,101,59],value:"{ "},{key:[108,98,114,97,99,107,59],value:"["},{key:[108,98,114,107,101,59],value:"⦋"},{key:[108,98,114,107,115,108,100,59],value:"⦏"},{key:[108,98,114,107,115,108,117,59],value:"⦍"},{key:[108,99,97,114,111,110,59],value:"ľ"},{key:[108,99,101,100,105,108,59],value:"ļ"},{key:[108,99,101,105,108,59],value:"⌈"},{key:[108,99,117,98,59],value:"{ "},{key:[108,99,121,59],value:"л"},{key:[108,100,99,97,59],value:"⤶"},{key:[108,100,113,117,111,59],value:"“"},{key:[108,100,113,117,111,114,59],value:"„"},{key:[108,100,114,100,104,97,114,59],value:"⥧"},{key:[108,100,114,117,115,104,97,114,59],value:"⥋"},{key:[108,100,115,104,59],value:"↲"},{key:[108,101,59],value:"≤"},{key:[108,101,102,116,97,114,114,111,119,59],value:"←"},{key:[108,101,102,116,97,114,114,111,119,116,97,105,108,59],value:"↢"},{key:[108,101,102,116,104,97,114,112,111,111,110,100,111,119,110,59],value:"↽"},{key:[108,101,102,116,104,97,114,112,111,111,110,117,112,59],value:"↼"},{key:[108,101,102,116,108,101,102,116,97,114,114,111,119,115,59],value:"⇇"},{key:[108,101,102,116,114,105,103,104,116,97,114,114,111,119,59],value:"↔"},{key:[108,101,102,116,114,105,103,104,116,97,114,114,111,119,115,59],value:"⇆"},{key:[108,101,102,116,114,105,103,104,116,104,97,114,112,111,111,110,115,59],value:"⇋"},{key:[108,101,102,116,114,105,103,104,116,115,113,117,105,103,97,114,114,111,119,59],value:"↭"},{key:[108,101,102,116,116,104,114,101,101,116,105,109,101,115,59],value:"⋋"},{key:[108,101,103,59],value:"⋚"},{key:[108,101,113,59],value:"≤"},{key:[108,101,113,113,59],value:"≦"},{key:[108,101,113,115,108,97,110,116,59],value:"⩽"},{key:[108,101,115,59],value:"⩽"},{key:[108,101,115,99,99,59],value:"⪨"},{key:[108,101,115,100,111,116,59],value:"⩿"},{key:[108,101,115,100,111,116,111,59],value:"⪁"},{key:[108,101,115,100,111,116,111,114,59],value:"⪃"},{key:[108,101,115,103,59],value:"⋚︀"},{key:[108,101,115,103,101,115,59],value:"⪓"},{key:[108,101,115,115,97,112,112,114,111,120,59],value:"⪅"},{key:[108,101,115,115,100,111,116,59],value:"⋖"},{key:[108,101,115,115,101,113,103,116,114,59],value:"⋚"},{key:[108,101,115,115,101,113,113,103,116,114,59],value:"⪋"},{key:[108,101,115,115,103,116,114,59],value:"≶"},{key:[108,101,115,115,115,105,109,59],value:"≲"},{key:[108,102,105,115,104,116,59],value:"⥼"},{key:[108,102,108,111,111,114,59],value:"⌊"},{key:[108,102,114,59],value:"𝔩"},{key:[108,103,59],value:"≶"},{key:[108,103,69,59],value:"⪑"},{key:[108,104,97,114,100,59],value:"↽"},{key:[108,104,97,114,117,59],value:"↼"},{key:[108,104,97,114,117,108,59],value:"⥪"},{key:[108,104,98,108,107,59],value:"▄"},{key:[108,106,99,121,59],value:"љ"},{key:[108,108,59],value:"≪"},{key:[108,108,97,114,114,59],value:"⇇"},{key:[108,108,99,111,114,110,101,114,59],value:"⌞"},{key:[108,108,104,97,114,100,59],value:"⥫"},{key:[108,108,116,114,105,59],value:"◺"},{key:[108,109,105,100,111,116,59],value:"ŀ"},{key:[108,109,111,117,115,116,59],value:"⎰"},{key:[108,109,111,117,115,116,97,99,104,101,59],value:"⎰"},{key:[108,110,69,59],value:"≨"},{key:[108,110,97,112,59],value:"⪉"},{key:[108,110,97,112,112,114,111,120,59],value:"⪉"},{key:[108,110,101,59],value:"⪇"},{key:[108,110,101,113,59],value:"⪇"},{key:[108,110,101,113,113,59],value:"≨"},{key:[108,110,115,105,109,59],value:"⋦"},{key:[108,111,97,110,103,59],value:"⟬"},{key:[108,111,97,114,114,59],value:"⇽"},{key:[108,111,98,114,107,59],value:"⟦"},{key:[108,111,110,103,108,101,102,116,97,114,114,111,119,59],value:"⟵"},{key:[108,111,110,103,108,101,102,116,114,105,103,104,116,97,114,114,111,119,59],value:"⟷"},{key:[108,111,110,103,109,97,112,115,116,111,59],value:"⟼"},{key:[108,111,110,103,114,105,103,104,116,97,114,114,111,119,59],value:"⟶"},{key:[108,111,111,112,97,114,114,111,119,108,101,102,116,59],value:"↫"},{key:[108,111,111,112,97,114,114,111,119,114,105,103,104,116,59],value:"↬"},{key:[108,111,112,97,114,59],value:"⦅"},{key:[108,111,112,102,59],value:"𝕝"},{key:[108,111,112,108,117,115,59],value:"⨭"},{key:[108,111,116,105,109,101,115,59],value:"⨴"},{key:[108,111,119,97,115,116,59],value:"∗"},{key:[108,111,119,98,97,114,59],value:"_"},{key:[108,111,122,59],value:"◊"},{key:[108,111,122,101,110,103,101,59],value:"◊"},{key:[108,111,122,102,59],value:"⧫"},{key:[108,112,97,114,59],value:"("},{key:[108,112,97,114,108,116,59],value:"⦓"},{key:[108,114,97,114,114,59],value:"⇆"},{key:[108,114,99,111,114,110,101,114,59],value:"⌟"},{key:[108,114,104,97,114,59],value:"⇋"},{key:[108,114,104,97,114,100,59],value:"⥭"},{key:[108,114,109,59],value:"‎"},{key:[108,114,116,114,105,59],value:"⊿"},{key:[108,115,97,113,117,111,59],value:"‹"},{key:[108,115,99,114,59],value:"𝓁"},{key:[108,115,104,59],value:"↰"},{key:[108,115,105,109,59],value:"≲"},{key:[108,115,105,109,101,59],value:"⪍"},{key:[108,115,105,109,103,59],value:"⪏"},{key:[108,115,113,98,59],value:"["},{key:[108,115,113,117,111,59],value:"‘"},{key:[108,115,113,117,111,114,59],value:"‚"},{key:[108,115,116,114,111,107,59],value:"ł"},{key:[108,116,59],value:"<"},{key:[108,116,99,99,59],value:"⪦"},{key:[108,116,99,105,114,59],value:"⩹"},{key:[108,116,100,111,116,59],value:"⋖"},{key:[108,116,104,114,101,101,59],value:"⋋"},{key:[108,116,105,109,101,115,59],value:"⋉"},{key:[108,116,108,97,114,114,59],value:"⥶"},{key:[108,116,113,117,101,115,116,59],value:"⩻"},{key:[108,116,114,80,97,114,59],value:"⦖"},{key:[108,116,114,105,59],value:"◃"},{key:[108,116,114,105,101,59],value:"⊴"},{key:[108,116,114,105,102,59],value:"◂"},{key:[108,117,114,100,115,104,97,114,59],value:"⥊"},{key:[108,117,114,117,104,97,114,59],value:"⥦"},{key:[108,118,101,114,116,110,101,113,113,59],value:"≨︀"},{key:[108,118,110,69,59],value:"≨︀"},{key:[109,68,68,111,116,59],value:"∺"},{key:[109,97,99,114,59],value:"¯"},{key:[109,97,108,101,59],value:"♂"},{key:[109,97,108,116,59],value:"✠"},{key:[109,97,108,116,101,115,101,59],value:"✠"},{key:[109,97,112,59],value:"↦"},{key:[109,97,112,115,116,111,59],value:"↦"},{key:[109,97,112,115,116,111,100,111,119,110,59],value:"↧"},{key:[109,97,112,115,116,111,108,101,102,116,59],value:"↤"},{key:[109,97,112,115,116,111,117,112,59],value:"↥"},{key:[109,97,114,107,101,114,59],value:"▮"},{key:[109,99,111,109,109,97,59],value:"⨩"},{key:[109,99,121,59],value:"м"},{key:[109,100,97,115,104,59],value:"—"},{key:[109,101,97,115,117,114,101,100,97,110,103,108,101,59],value:"∡"},{key:[109,102,114,59],value:"𝔪"},{key:[109,104,111,59],value:"℧"},{key:[109,105,99,114,111,59],value:"µ"},{key:[109,105,100,59],value:"∣"},{key:[109,105,100,97,115,116,59],value:"*"},{key:[109,105,100,99,105,114,59],value:"⫰"},{key:[109,105,100,100,111,116,59],value:"·"},{key:[109,105,110,117,115,59],value:"−"},{key:[109,105,110,117,115,98,59],value:"⊟"},{key:[109,105,110,117,115,100,59],value:"∸"},{key:[109,105,110,117,115,100,117,59],value:"⨪"},{key:[109,108,99,112,59],value:"⫛"},{key:[109,108,100,114,59],value:"…"},{key:[109,110,112,108,117,115,59],value:"∓"},{key:[109,111,100,101,108,115,59],value:"⊧"},{key:[109,111,112,102,59],value:"𝕞"},{key:[109,112,59],value:"∓"},{key:[109,115,99,114,59],value:"𝓂"},{key:[109,115,116,112,111,115,59],value:"∾"},{key:[109,117,59],value:"μ"},{key:[109,117,108,116,105,109,97,112,59],value:"⊸"},{key:[109,117,109,97,112,59],value:"⊸"},{key:[110,71,103,59],value:"⋙̸"},{key:[110,71,116,59],value:"≫⃒"},{key:[110,71,116,118,59],value:"≫̸"},{key:[110,76,101,102,116,97,114,114,111,119,59],value:"⇍"},{key:[110,76,101,102,116,114,105,103,104,116,97,114,114,111,119,59],value:"⇎"},{key:[110,76,108,59],value:"⋘̸"},{key:[110,76,116,59],value:"≪⃒"},{key:[110,76,116,118,59],value:"≪̸"},{key:[110,82,105,103,104,116,97,114,114,111,119,59],value:"⇏"},{key:[110,86,68,97,115,104,59],value:"⊯"},{key:[110,86,100,97,115,104,59],value:"⊮"},{key:[110,97,98,108,97,59],value:"∇"},{key:[110,97,99,117,116,101,59],value:"ń"},{key:[110,97,110,103,59],value:"∠⃒"},{key:[110,97,112,59],value:"≉"},{key:[110,97,112,69,59],value:"⩰̸"},{key:[110,97,112,105,100,59],value:"≋̸"},{key:[110,97,112,111,115,59],value:"ʼn"},{key:[110,97,112,112,114,111,120,59],value:"≉"},{key:[110,97,116,117,114,59],value:"♮"},{key:[110,97,116,117,114,97,108,59],value:"♮"},{key:[110,97,116,117,114,97,108,115,59],value:"ℕ"},{key:[110,98,115,112,59],value:" "},{key:[110,98,117,109,112,59],value:"≎̸"},{key:[110,98,117,109,112,101,59],value:"≏̸"},{key:[110,99,97,112,59],value:"⩃"},{key:[110,99,97,114,111,110,59],value:"ň"},{key:[110,99,101,100,105,108,59],value:"ņ"},{key:[110,99,111,110,103,59],value:"≇"},{key:[110,99,111,110,103,100,111,116,59],value:"⩭̸"},{key:[110,99,117,112,59],value:"⩂"},{key:[110,99,121,59],value:"н"},{key:[110,100,97,115,104,59],value:"–"},{key:[110,101,59],value:"≠"},{key:[110,101,65,114,114,59],value:"⇗"},{key:[110,101,97,114,104,107,59],value:"⤤"},{key:[110,101,97,114,114,59],value:"↗"},{key:[110,101,97,114,114,111,119,59],value:"↗"},{key:[110,101,100,111,116,59],value:"≐̸"},{key:[110,101,113,117,105,118,59],value:"≢"},{key:[110,101,115,101,97,114,59],value:"⤨"},{key:[110,101,115,105,109,59],value:"≂̸"},{key:[110,101,120,105,115,116,59],value:"∄"},{key:[110,101,120,105,115,116,115,59],value:"∄"},{key:[110,102,114,59],value:"𝔫"},{key:[110,103,69,59],value:"≧̸"},{key:[110,103,101,59],value:"≱"},{key:[110,103,101,113,59],value:"≱"},{key:[110,103,101,113,113,59],value:"≧̸"},{key:[110,103,101,113,115,108,97,110,116,59],value:"⩾̸"},{key:[110,103,101,115,59],value:"⩾̸"},{key:[110,103,115,105,109,59],value:"≵"},{key:[110,103,116,59],value:"≯"},{key:[110,103,116,114,59],value:"≯"},{key:[110,104,65,114,114,59],value:"⇎"},{key:[110,104,97,114,114,59],value:"↮"},{key:[110,104,112,97,114,59],value:"⫲"},{key:[110,105,59],value:"∋"},{key:[110,105,115,59],value:"⋼"},{key:[110,105,115,100,59],value:"⋺"},{key:[110,105,118,59],value:"∋"},{key:[110,106,99,121,59],value:"њ"},{key:[110,108,65,114,114,59],value:"⇍"},{key:[110,108,69,59],value:"≦̸"},{key:[110,108,97,114,114,59],value:"↚"},{key:[110,108,100,114,59],value:"‥"},{key:[110,108,101,59],value:"≰"},{key:[110,108,101,102,116,97,114,114,111,119,59],value:"↚"},{key:[110,108,101,102,116,114,105,103,104,116,97,114,114,111,119,59],value:"↮"},{key:[110,108,101,113,59],value:"≰"},{key:[110,108,101,113,113,59],value:"≦̸"},{key:[110,108,101,113,115,108,97,110,116,59],value:"⩽̸"},{key:[110,108,101,115,59],value:"⩽̸"},{key:[110,108,101,115,115,59],value:"≮"},{key:[110,108,115,105,109,59],value:"≴"},{key:[110,108,116,59],value:"≮"},{key:[110,108,116,114,105,59],value:"⋪"},{key:[110,108,116,114,105,101,59],value:"⋬"},{key:[110,109,105,100,59],value:"∤"},{key:[110,111,112,102,59],value:"𝕟"},{key:[110,111,116,59],value:"¬"},{key:[110,111,116,105,110,59],value:"∉"},{key:[110,111,116,105,110,69,59],value:"⋹̸"},{key:[110,111,116,105,110,100,111,116,59],value:"⋵̸"},{key:[110,111,116,105,110,118,97,59],value:"∉"},{key:[110,111,116,105,110,118,98,59],value:"⋷"},{key:[110,111,116,105,110,118,99,59],value:"⋶"},{key:[110,111,116,110,105,59],value:"∌"},{key:[110,111,116,110,105,118,97,59],value:"∌"},{key:[110,111,116,110,105,118,98,59],value:"⋾"},{key:[110,111,116,110,105,118,99,59],value:"⋽"},{key:[110,112,97,114,59],value:"∦"},{key:[110,112,97,114,97,108,108,101,108,59],value:"∦"},{key:[110,112,97,114,115,108,59],value:"⫽⃥"},{key:[110,112,97,114,116,59],value:"∂̸"},{key:[110,112,111,108,105,110,116,59],value:"⨔"},{key:[110,112,114,59],value:"⊀"},{key:[110,112,114,99,117,101,59],value:"⋠"},{key:[110,112,114,101,59],value:"⪯̸"},{key:[110,112,114,101,99,59],value:"⊀"},{key:[110,112,114,101,99,101,113,59],value:"⪯̸"},{key:[110,114,65,114,114,59],value:"⇏"},{key:[110,114,97,114,114,59],value:"↛"},{key:[110,114,97,114,114,99,59],value:"⤳̸"},{key:[110,114,97,114,114,119,59],value:"↝̸"},{key:[110,114,105,103,104,116,97,114,114,111,119,59],value:"↛"},{key:[110,114,116,114,105,59],value:"⋫"},{key:[110,114,116,114,105,101,59],value:"⋭"},{key:[110,115,99,59],value:"⊁"},{key:[110,115,99,99,117,101,59],value:"⋡"},{key:[110,115,99,101,59],value:"⪰̸"},{key:[110,115,99,114,59],value:"𝓃"},{key:[110,115,104,111,114,116,109,105,100,59],value:"∤"},{key:[110,115,104,111,114,116,112,97,114,97,108,108,101,108,59],value:"∦"},{key:[110,115,105,109,59],value:"≁"},{key:[110,115,105,109,101,59],value:"≄"},{key:[110,115,105,109,101,113,59],value:"≄"},{key:[110,115,109,105,100,59],value:"∤"},{key:[110,115,112,97,114,59],value:"∦"},{key:[110,115,113,115,117,98,101,59],value:"⋢"},{key:[110,115,113,115,117,112,101,59],value:"⋣"},{key:[110,115,117,98,59],value:"⊄"},{key:[110,115,117,98,69,59],value:"⫅̸"},{key:[110,115,117,98,101,59],value:"⊈"},{key:[110,115,117,98,115,101,116,59],value:"⊂⃒"},{key:[110,115,117,98,115,101,116,101,113,59],value:"⊈"},{key:[110,115,117,98,115,101,116,101,113,113,59],value:"⫅̸"},{key:[110,115,117,99,99,59],value:"⊁"},{key:[110,115,117,99,99,101,113,59],value:"⪰̸"},{key:[110,115,117,112,59],value:"⊅"},{key:[110,115,117,112,69,59],value:"⫆̸"},{key:[110,115,117,112,101,59],value:"⊉"},{key:[110,115,117,112,115,101,116,59],value:"⊃⃒"},{key:[110,115,117,112,115,101,116,101,113,59],value:"⊉"},{key:[110,115,117,112,115,101,116,101,113,113,59],value:"⫆̸"},{key:[110,116,103,108,59],value:"≹"},{key:[110,116,105,108,100,101,59],value:"ñ"},{key:[110,116,108,103,59],value:"≸"},{key:[110,116,114,105,97,110,103,108,101,108,101,102,116,59],value:"⋪"},{key:[110,116,114,105,97,110,103,108,101,108,101,102,116,101,113,59],value:"⋬"},{key:[110,116,114,105,97,110,103,108,101,114,105,103,104,116,59],value:"⋫"},{key:[110,116,114,105,97,110,103,108,101,114,105,103,104,116,101,113,59],value:"⋭"},{key:[110,117,59],value:"ν"},{key:[110,117,109,59],value:"#"},{key:[110,117,109,101,114,111,59],value:"№"},{key:[110,117,109,115,112,59],value:" "},{key:[110,118,68,97,115,104,59],value:"⊭"},{key:[110,118,72,97,114,114,59],value:"⤄"},{key:[110,118,97,112,59],value:"≍⃒"},{key:[110,118,100,97,115,104,59],value:"⊬"},{key:[110,118,103,101,59],value:"≥⃒"},{key:[110,118,103,116,59],value:">⃒"},{key:[110,118,105,110,102,105,110,59],value:"⧞"},{key:[110,118,108,65,114,114,59],value:"⤂"},{key:[110,118,108,101,59],value:"≤⃒"},{key:[110,118,108,116,59],value:"<⃒"},{key:[110,118,108,116,114,105,101,59],value:"⊴⃒"},{key:[110,118,114,65,114,114,59],value:"⤃"},{key:[110,118,114,116,114,105,101,59],value:"⊵⃒"},{key:[110,118,115,105,109,59],value:"∼⃒"},{key:[110,119,65,114,114,59],value:"⇖"},{key:[110,119,97,114,104,107,59],value:"⤣"},{key:[110,119,97,114,114,59],value:"↖"},{key:[110,119,97,114,114,111,119,59],value:"↖"},{key:[110,119,110,101,97,114,59],value:"⤧"},{key:[111,83,59],value:"Ⓢ"},{key:[111,97,99,117,116,101,59],value:"ó"},{key:[111,97,115,116,59],value:"⊛"},{key:[111,99,105,114,59],value:"⊚"},{key:[111,99,105,114,99,59],value:"ô"},{key:[111,99,121,59],value:"о"},{key:[111,100,97,115,104,59],value:"⊝"},{key:[111,100,98,108,97,99,59],value:"ő"},{key:[111,100,105,118,59],value:"⨸"},{key:[111,100,111,116,59],value:"⊙"},{key:[111,100,115,111,108,100,59],value:"⦼"},{key:[111,101,108,105,103,59],value:"œ"},{key:[111,102,99,105,114,59],value:"⦿"},{key:[111,102,114,59],value:"𝔬"},{key:[111,103,111,110,59],value:"˛"},{key:[111,103,114,97,118,101,59],value:"ò"},{key:[111,103,116,59],value:"⧁"},{key:[111,104,98,97,114,59],value:"⦵"},{key:[111,104,109,59],value:"Ω"},{key:[111,105,110,116,59],value:"∮"},{key:[111,108,97,114,114,59],value:"↺"},{key:[111,108,99,105,114,59],value:"⦾"},{key:[111,108,99,114,111,115,115,59],value:"⦻"},{key:[111,108,105,110,101,59],value:"‾"},{key:[111,108,116,59],value:"⧀"},{key:[111,109,97,99,114,59],value:"ō"},{key:[111,109,101,103,97,59],value:"ω"},{key:[111,109,105,99,114,111,110,59],value:"ο"},{key:[111,109,105,100,59],value:"⦶"},{key:[111,109,105,110,117,115,59],value:"⊖"},{key:[111,111,112,102,59],value:"𝕠"},{key:[111,112,97,114,59],value:"⦷"},{key:[111,112,101,114,112,59],value:"⦹"},{key:[111,112,108,117,115,59],value:"⊕"},{key:[111,114,59],value:"∨"},{key:[111,114,97,114,114,59],value:"↻"},{key:[111,114,100,59],value:"⩝"},{key:[111,114,100,101,114,59],value:"ℴ"},{key:[111,114,100,101,114,111,102,59],value:"ℴ"},{key:[111,114,100,102,59],value:"ª"},{key:[111,114,100,109,59],value:"º"},{key:[111,114,105,103,111,102,59],value:"⊶"},{key:[111,114,111,114,59],value:"⩖"},{key:[111,114,115,108,111,112,101,59],value:"⩗"},{key:[111,114,118,59],value:"⩛"},{key:[111,115,99,114,59],value:"ℴ"},{key:[111,115,108,97,115,104,59],value:"ø"},{key:[111,115,111,108,59],value:"⊘"},{key:[111,116,105,108,100,101,59],value:"õ"},{key:[111,116,105,109,101,115,59],value:"⊗"},{key:[111,116,105,109,101,115,97,115,59],value:"⨶"},{key:[111,117,109,108,59],value:"ö"},{key:[111,118,98,97,114,59],value:"⌽"},{key:[112,97,114,59],value:"∥"},{key:[112,97,114,97,59],value:"¶"},{key:[112,97,114,97,108,108,101,108,59],value:"∥"},{key:[112,97,114,115,105,109,59],value:"⫳"},{key:[112,97,114,115,108,59],value:"⫽"},{key:[112,97,114,116,59],value:"∂"},{key:[112,99,121,59],value:"п"},{key:[112,101,114,99,110,116,59],value:"%"},{key:[112,101,114,105,111,100,59],value:"."},{key:[112,101,114,109,105,108,59],value:"‰"},{key:[112,101,114,112,59],value:"⊥"},{key:[112,101,114,116,101,110,107,59],value:"‱"},{key:[112,102,114,59],value:"𝔭"},{key:[112,104,105,59],value:"φ"},{key:[112,104,105,118,59],value:"ϕ"},{key:[112,104,109,109,97,116,59],value:"ℳ"},{key:[112,104,111,110,101,59],value:"☎"},{key:[112,105,59],value:"π"},{key:[112,105,116,99,104,102,111,114,107,59],value:"⋔"},{key:[112,105,118,59],value:"ϖ"},{key:[112,108,97,110,99,107,59],value:"ℏ"},{key:[112,108,97,110,99,107,104,59],value:"ℎ"},{key:[112,108,97,110,107,118,59],value:"ℏ"},{key:[112,108,117,115,59],value:"+"},{key:[112,108,117,115,97,99,105,114,59],value:"⨣"},{key:[112,108,117,115,98,59],value:"⊞"},{key:[112,108,117,115,99,105,114,59],value:"⨢"},{key:[112,108,117,115,100,111,59],value:"∔"},{key:[112,108,117,115,100,117,59],value:"⨥"},{key:[112,108,117,115,101,59],value:"⩲"},{key:[112,108,117,115,109,110,59],value:"±"},{key:[112,108,117,115,115,105,109,59],value:"⨦"},{key:[112,108,117,115,116,119,111,59],value:"⨧"},{key:[112,109,59],value:"±"},{key:[112,111,105,110,116,105,110,116,59],value:"⨕"},{key:[112,111,112,102,59],value:"𝕡"},{key:[112,111,117,110,100,59],value:"£"},{key:[112,114,59],value:"≺"},{key:[112,114,69,59],value:"⪳"},{key:[112,114,97,112,59],value:"⪷"},{key:[112,114,99,117,101,59],value:"≼"},{key:[112,114,101,59],value:"⪯"},{key:[112,114,101,99,59],value:"≺"},{key:[112,114,101,99,97,112,112,114,111,120,59],value:"⪷"},{key:[112,114,101,99,99,117,114,108,121,101,113,59],value:"≼"},{key:[112,114,101,99,101,113,59],value:"⪯"},{key:[112,114,101,99,110,97,112,112,114,111,120,59],value:"⪹"},{key:[112,114,101,99,110,101,113,113,59],value:"⪵"},{key:[112,114,101,99,110,115,105,109,59],value:"⋨"},{key:[112,114,101,99,115,105,109,59],value:"≾"},{key:[112,114,105,109,101,59],value:"′"},{key:[112,114,105,109,101,115,59],value:"ℙ"},{key:[112,114,110,69,59],value:"⪵"},{key:[112,114,110,97,112,59],value:"⪹"},{key:[112,114,110,115,105,109,59],value:"⋨"},{key:[112,114,111,100,59],value:"∏"},{key:[112,114,111,102,97,108,97,114,59],value:"⌮"},{key:[112,114,111,102,108,105,110,101,59],value:"⌒"},{key:[112,114,111,102,115,117,114,102,59],value:"⌓"},{key:[112,114,111,112,59],value:"∝"},{key:[112,114,111,112,116,111,59],value:"∝"},{key:[112,114,115,105,109,59],value:"≾"},{key:[112,114,117,114,101,108,59],value:"⊰"},{key:[112,115,99,114,59],value:"𝓅"},{key:[112,115,105,59],value:"ψ"},{key:[112,117,110,99,115,112,59],value:" "},{key:[113,102,114,59],value:"𝔮"},{key:[113,105,110,116,59],value:"⨌"},{key:[113,111,112,102,59],value:"𝕢"},{key:[113,112,114,105,109,101,59],value:"⁗"},{key:[113,115,99,114,59],value:"𝓆"},{key:[113,117,97,116,101,114,110,105,111,110,115,59],value:"ℍ"},{key:[113,117,97,116,105,110,116,59],value:"⨖"},{key:[113,117,101,115,116,59],value:"?"},{key:[113,117,101,115,116,101,113,59],value:"≟"},{key:[113,117,111,116,59],value:'"'},{key:[114,65,97,114,114,59],value:"⇛"},{key:[114,65,114,114,59],value:"⇒"},{key:[114,65,116,97,105,108,59],value:"⤜"},{key:[114,66,97,114,114,59],value:"⤏"},{key:[114,72,97,114,59],value:"⥤"},{key:[114,97,99,101,59],value:"∽̱"},{key:[114,97,99,117,116,101,59],value:"ŕ"},{key:[114,97,100,105,99,59],value:"√"},{key:[114,97,101,109,112,116,121,118,59],value:"⦳"},{key:[114,97,110,103,59],value:"⟩"},{key:[114,97,110,103,100,59],value:"⦒"},{key:[114,97,110,103,101,59],value:"⦥"},{key:[114,97,110,103,108,101,59],value:"⟩"},{key:[114,97,113,117,111,59],value:"»"},{key:[114,97,114,114,59],value:"→"},{key:[114,97,114,114,97,112,59],value:"⥵"},{key:[114,97,114,114,98,59],value:"⇥"},{key:[114,97,114,114,98,102,115,59],value:"⤠"},{key:[114,97,114,114,99,59],value:"⤳"},{key:[114,97,114,114,102,115,59],value:"⤞"},{key:[114,97,114,114,104,107,59],value:"↪"},{key:[114,97,114,114,108,112,59],value:"↬"},{key:[114,97,114,114,112,108,59],value:"⥅"},{key:[114,97,114,114,115,105,109,59],value:"⥴"},{key:[114,97,114,114,116,108,59],value:"↣"},{key:[114,97,114,114,119,59],value:"↝"},{key:[114,97,116,97,105,108,59],value:"⤚"},{key:[114,97,116,105,111,59],value:"∶"},{key:[114,97,116,105,111,110,97,108,115,59],value:"ℚ"},{key:[114,98,97,114,114,59],value:"⤍"},{key:[114,98,98,114,107,59],value:"❳"},{key:[114,98,114,97,99,101,59],value:" }"},{key:[114,98,114,97,99,107,59],value:"]"},{key:[114,98,114,107,101,59],value:"⦌"},{key:[114,98,114,107,115,108,100,59],value:"⦎"},{key:[114,98,114,107,115,108,117,59],value:"⦐"},{key:[114,99,97,114,111,110,59],value:"ř"},{key:[114,99,101,100,105,108,59],value:"ŗ"},{key:[114,99,101,105,108,59],value:"⌉"},{key:[114,99,117,98,59],value:" }"},{key:[114,99,121,59],value:"р"},{key:[114,100,99,97,59],value:"⤷"},{key:[114,100,108,100,104,97,114,59],value:"⥩"},{key:[114,100,113,117,111,59],value:"”"},{key:[114,100,113,117,111,114,59],value:"”"},{key:[114,100,115,104,59],value:"↳"},{key:[114,101,97,108,59],value:"ℜ"},{key:[114,101,97,108,105,110,101,59],value:"ℛ"},{key:[114,101,97,108,112,97,114,116,59],value:"ℜ"},{key:[114,101,97,108,115,59],value:"ℝ"},{key:[114,101,99,116,59],value:"▭"},{key:[114,101,103,59],value:"®"},{key:[114,102,105,115,104,116,59],value:"⥽"},{key:[114,102,108,111,111,114,59],value:"⌋"},{key:[114,102,114,59],value:"𝔯"},{key:[114,104,97,114,100,59],value:"⇁"},{key:[114,104,97,114,117,59],value:"⇀"},{key:[114,104,97,114,117,108,59],value:"⥬"},{key:[114,104,111,59],value:"ρ"},{key:[114,104,111,118,59],value:"ϱ"},{key:[114,105,103,104,116,97,114,114,111,119,59],value:"→"},{key:[114,105,103,104,116,97,114,114,111,119,116,97,105,108,59],value:"↣"},{key:[114,105,103,104,116,104,97,114,112,111,111,110,100,111,119,110,59],value:"⇁"},{key:[114,105,103,104,116,104,97,114,112,111,111,110,117,112,59],value:"⇀"},{key:[114,105,103,104,116,108,101,102,116,97,114,114,111,119,115,59],value:"⇄"},{key:[114,105,103,104,116,108,101,102,116,104,97,114,112,111,111,110,115,59],value:"⇌"},{key:[114,105,103,104,116,114,105,103,104,116,97,114,114,111,119,115,59],value:"⇉"},{key:[114,105,103,104,116,115,113,117,105,103,97,114,114,111,119,59],value:"↝"},{key:[114,105,103,104,116,116,104,114,101,101,116,105,109,101,115,59],value:"⋌"},{key:[114,105,110,103,59],value:"˚"},{key:[114,105,115,105,110,103,100,111,116,115,101,113,59],value:"≓"},{key:[114,108,97,114,114,59],value:"⇄"},{key:[114,108,104,97,114,59],value:"⇌"},{key:[114,108,109,59],value:"‏"},{key:[114,109,111,117,115,116,59],value:"⎱"},{key:[114,109,111,117,115,116,97,99,104,101,59],value:"⎱"},{key:[114,110,109,105,100,59],value:"⫮"},{key:[114,111,97,110,103,59],value:"⟭"},{key:[114,111,97,114,114,59],value:"⇾"},{key:[114,111,98,114,107,59],value:"⟧"},{key:[114,111,112,97,114,59],value:"⦆"},{key:[114,111,112,102,59],value:"𝕣"},{key:[114,111,112,108,117,115,59],value:"⨮"},{key:[114,111,116,105,109,101,115,59],value:"⨵"},{key:[114,112,97,114,59],value:")"},{key:[114,112,97,114,103,116,59],value:"⦔"},{key:[114,112,112,111,108,105,110,116,59],value:"⨒"},{key:[114,114,97,114,114,59],value:"⇉"},{key:[114,115,97,113,117,111,59],value:"›"},{key:[114,115,99,114,59],value:"𝓇"},{key:[114,115,104,59],value:"↱"},{key:[114,115,113,98,59],value:"]"},{key:[114,115,113,117,111,59],value:"’"},{key:[114,115,113,117,111,114,59],value:"’"},{key:[114,116,104,114,101,101,59],value:"⋌"},{key:[114,116,105,109,101,115,59],value:"⋊"},{key:[114,116,114,105,59],value:"▹"},{key:[114,116,114,105,101,59],value:"⊵"},{key:[114,116,114,105,102,59],value:"▸"},{key:[114,116,114,105,108,116,114,105,59],value:"⧎"},{key:[114,117,108,117,104,97,114,59],value:"⥨"},{key:[114,120,59],value:"℞"},{key:[115,97,99,117,116,101,59],value:"ś"},{key:[115,98,113,117,111,59],value:"‚"},{key:[115,99,59],value:"≻"},{key:[115,99,69,59],value:"⪴"},{key:[115,99,97,112,59],value:"⪸"},{key:[115,99,97,114,111,110,59],value:"š"},{key:[115,99,99,117,101,59],value:"≽"},{key:[115,99,101,59],value:"⪰"},{key:[115,99,101,100,105,108,59],value:"ş"},{key:[115,99,105,114,99,59],value:"ŝ"},{key:[115,99,110,69,59],value:"⪶"},{key:[115,99,110,97,112,59],value:"⪺"},{key:[115,99,110,115,105,109,59],value:"⋩"},{key:[115,99,112,111,108,105,110,116,59],value:"⨓"},{key:[115,99,115,105,109,59],value:"≿"},{key:[115,99,121,59],value:"с"},{key:[115,100,111,116,59],value:"⋅"},{key:[115,100,111,116,98,59],value:"⊡"},{key:[115,100,111,116,101,59],value:"⩦"},{key:[115,101,65,114,114,59],value:"⇘"},{key:[115,101,97,114,104,107,59],value:"⤥"},{key:[115,101,97,114,114,59],value:"↘"},{key:[115,101,97,114,114,111,119,59],value:"↘"},{key:[115,101,99,116,59],value:"§"},{key:[115,101,109,105,59],value:";"},{key:[115,101,115,119,97,114,59],value:"⤩"},{key:[115,101,116,109,105,110,117,115,59],value:"∖"},{key:[115,101,116,109,110,59],value:"∖"},{key:[115,101,120,116,59],value:"✶"},{key:[115,102,114,59],value:"𝔰"},{key:[115,102,114,111,119,110,59],value:"⌢"},{key:[115,104,97,114,112,59],value:"♯"},{key:[115,104,99,104,99,121,59],value:"щ"},{key:[115,104,99,121,59],value:"ш"},{key:[115,104,111,114,116,109,105,100,59],value:"∣"},{key:[115,104,111,114,116,112,97,114,97,108,108,101,108,59],value:"∥"},{key:[115,104,121,59],value:"­"},{key:[115,105,103,109,97,59],value:"σ"},{key:[115,105,103,109,97,102,59],value:"ς"},{key:[115,105,103,109,97,118,59],value:"ς"},{key:[115,105,109,59],value:"∼"},{key:[115,105,109,100,111,116,59],value:"⩪"},{key:[115,105,109,101,59],value:"≃"},{key:[115,105,109,101,113,59],value:"≃"},{key:[115,105,109,103,59],value:"⪞"},{key:[115,105,109,103,69,59],value:"⪠"},{key:[115,105,109,108,59],value:"⪝"},{key:[115,105,109,108,69,59],value:"⪟"},{key:[115,105,109,110,101,59],value:"≆"},{key:[115,105,109,112,108,117,115,59],value:"⨤"},{key:[115,105,109,114,97,114,114,59],value:"⥲"},{key:[115,108,97,114,114,59],value:"←"},{key:[115,109,97,108,108,115,101,116,109,105,110,117,115,59],value:"∖"},{key:[115,109,97,115,104,112,59],value:"⨳"},{key:[115,109,101,112,97,114,115,108,59],value:"⧤"},{key:[115,109,105,100,59],value:"∣"},{key:[115,109,105,108,101,59],value:"⌣"},{key:[115,109,116,59],value:"⪪"},{key:[115,109,116,101,59],value:"⪬"},{key:[115,109,116,101,115,59],value:"⪬︀"},{key:[115,111,102,116,99,121,59],value:"ь"},{key:[115,111,108,59],value:"/"},{key:[115,111,108,98,59],value:"⧄"},{key:[115,111,108,98,97,114,59],value:"⌿"},{key:[115,111,112,102,59],value:"𝕤"},{key:[115,112,97,100,101,115,59],value:"♠"},{key:[115,112,97,100,101,115,117,105,116,59],value:"♠"},{key:[115,112,97,114,59],value:"∥"},{key:[115,113,99,97,112,59],value:"⊓"},{key:[115,113,99,97,112,115,59],value:"⊓︀"},{key:[115,113,99,117,112,59],value:"⊔"},{key:[115,113,99,117,112,115,59],value:"⊔︀"},{key:[115,113,115,117,98,59],value:"⊏"},{key:[115,113,115,117,98,101,59],value:"⊑"},{key:[115,113,115,117,98,115,101,116,59],value:"⊏"},{key:[115,113,115,117,98,115,101,116,101,113,59],value:"⊑"},{key:[115,113,115,117,112,59],value:"⊐"},{key:[115,113,115,117,112,101,59],value:"⊒"},{key:[115,113,115,117,112,115,101,116,59],value:"⊐"},{key:[115,113,115,117,112,115,101,116,101,113,59],value:"⊒"},{key:[115,113,117,59],value:"□"},{key:[115,113,117,97,114,101,59],value:"□"},{key:[115,113,117,97,114,102,59],value:"▪"},{key:[115,113,117,102,59],value:"▪"},{key:[115,114,97,114,114,59],value:"→"},{key:[115,115,99,114,59],value:"𝓈"},{key:[115,115,101,116,109,110,59],value:"∖"},{key:[115,115,109,105,108,101,59],value:"⌣"},{key:[115,115,116,97,114,102,59],value:"⋆"},{key:[115,116,97,114,59],value:"☆"},{key:[115,116,97,114,102,59],value:"★"},{key:[115,116,114,97,105,103,104,116,101,112,115,105,108,111,110,59],value:"ϵ"},{key:[115,116,114,97,105,103,104,116,112,104,105,59],value:"ϕ"},{key:[115,116,114,110,115,59],value:"¯"},{key:[115,117,98,59],value:"⊂"},{key:[115,117,98,69,59],value:"⫅"},{key:[115,117,98,100,111,116,59],value:"⪽"},{key:[115,117,98,101,59],value:"⊆"},{key:[115,117,98,101,100,111,116,59],value:"⫃"},{key:[115,117,98,109,117,108,116,59],value:"⫁"},{key:[115,117,98,110,69,59],value:"⫋"},{key:[115,117,98,110,101,59],value:"⊊"},{key:[115,117,98,112,108,117,115,59],value:"⪿"},{key:[115,117,98,114,97,114,114,59],value:"⥹"},{key:[115,117,98,115,101,116,59],value:"⊂"},{key:[115,117,98,115,101,116,101,113,59],value:"⊆"},{key:[115,117,98,115,101,116,101,113,113,59],value:"⫅"},{key:[115,117,98,115,101,116,110,101,113,59],value:"⊊"},{key:[115,117,98,115,101,116,110,101,113,113,59],value:"⫋"},{key:[115,117,98,115,105,109,59],value:"⫇"},{key:[115,117,98,115,117,98,59],value:"⫕"},{key:[115,117,98,115,117,112,59],value:"⫓"},{key:[115,117,99,99,59],value:"≻"},{key:[115,117,99,99,97,112,112,114,111,120,59],value:"⪸"},{key:[115,117,99,99,99,117,114,108,121,101,113,59],value:"≽"},{key:[115,117,99,99,101,113,59],value:"⪰"},{key:[115,117,99,99,110,97,112,112,114,111,120,59],value:"⪺"},{key:[115,117,99,99,110,101,113,113,59],value:"⪶"},{key:[115,117,99,99,110,115,105,109,59],value:"⋩"},{key:[115,117,99,99,115,105,109,59],value:"≿"},{key:[115,117,109,59],value:"∑"},{key:[115,117,110,103,59],value:"♪"},{key:[115,117,112,49,59],value:"¹"},{key:[115,117,112,50,59],value:"²"},{key:[115,117,112,51,59],value:"³"},{key:[115,117,112,59],value:"⊃"},{key:[115,117,112,69,59],value:"⫆"},{key:[115,117,112,100,111,116,59],value:"⪾"},{key:[115,117,112,100,115,117,98,59],value:"⫘"},{key:[115,117,112,101,59],value:"⊇"},{key:[115,117,112,101,100,111,116,59],value:"⫄"},{key:[115,117,112,104,115,111,108,59],value:"⟉"},{key:[115,117,112,104,115,117,98,59],value:"⫗"},{key:[115,117,112,108,97,114,114,59],value:"⥻"},{key:[115,117,112,109,117,108,116,59],value:"⫂"},{key:[115,117,112,110,69,59],value:"⫌"},{key:[115,117,112,110,101,59],value:"⊋"},{key:[115,117,112,112,108,117,115,59],value:"⫀"},{key:[115,117,112,115,101,116,59],value:"⊃"},{key:[115,117,112,115,101,116,101,113,59],value:"⊇"},{key:[115,117,112,115,101,116,101,113,113,59],value:"⫆"},{key:[115,117,112,115,101,116,110,101,113,59],value:"⊋"},{key:[115,117,112,115,101,116,110,101,113,113,59],value:"⫌"},{key:[115,117,112,115,105,109,59],value:"⫈"},{key:[115,117,112,115,117,98,59],value:"⫔"},{key:[115,117,112,115,117,112,59],value:"⫖"},{key:[115,119,65,114,114,59],value:"⇙"},{key:[115,119,97,114,104,107,59],value:"⤦"},{key:[115,119,97,114,114,59],value:"↙"},{key:[115,119,97,114,114,111,119,59],value:"↙"},{key:[115,119,110,119,97,114,59],value:"⤪"},{key:[115,122,108,105,103,59],value:"ß"},{key:[116,97,114,103,101,116,59],value:"⌖"},{key:[116,97,117,59],value:"τ"},{key:[116,98,114,107,59],value:"⎴"},{key:[116,99,97,114,111,110,59],value:"ť"},{key:[116,99,101,100,105,108,59],value:"ţ"},{key:[116,99,121,59],value:"т"},{key:[116,100,111,116,59],value:"⃛"},{key:[116,101,108,114,101,99,59],value:"⌕"},{key:[116,102,114,59],value:"𝔱"},{key:[116,104,101,114,101,52,59],value:"∴"},{key:[116,104,101,114,101,102,111,114,101,59],value:"∴"},{key:[116,104,101,116,97,59],value:"θ"},{key:[116,104,101,116,97,115,121,109,59],value:"ϑ"},{key:[116,104,101,116,97,118,59],value:"ϑ"},{key:[116,104,105,99,107,97,112,112,114,111,120,59],value:"≈"},{key:[116,104,105,99,107,115,105,109,59],value:"∼"},{key:[116,104,105,110,115,112,59],value:" "},{key:[116,104,107,97,112,59],value:"≈"},{key:[116,104,107,115,105,109,59],value:"∼"},{key:[116,104,111,114,110,59],value:"þ"},{key:[116,105,108,100,101,59],value:"˜"},{key:[116,105,109,101,115,59],value:"×"},{key:[116,105,109,101,115,98,59],value:"⊠"},{key:[116,105,109,101,115,98,97,114,59],value:"⨱"},{key:[116,105,109,101,115,100,59],value:"⨰"},{key:[116,105,110,116,59],value:"∭"},{key:[116,111,101,97,59],value:"⤨"},{key:[116,111,112,59],value:"⊤"},{key:[116,111,112,98,111,116,59],value:"⌶"},{key:[116,111,112,99,105,114,59],value:"⫱"},{key:[116,111,112,102,59],value:"𝕥"},{key:[116,111,112,102,111,114,107,59],value:"⫚"},{key:[116,111,115,97,59],value:"⤩"},{key:[116,112,114,105,109,101,59],value:"‴"},{key:[116,114,97,100,101,59],value:"™"},{key:[116,114,105,97,110,103,108,101,59],value:"▵"},{key:[116,114,105,97,110,103,108,101,100,111,119,110,59],value:"▿"},{key:[116,114,105,97,110,103,108,101,108,101,102,116,59],value:"◃"},{key:[116,114,105,97,110,103,108,101,108,101,102,116,101,113,59],value:"⊴"},{key:[116,114,105,97,110,103,108,101,113,59],value:"≜"},{key:[116,114,105,97,110,103,108,101,114,105,103,104,116,59],value:"▹"},{key:[116,114,105,97,110,103,108,101,114,105,103,104,116,101,113,59],value:"⊵"},{key:[116,114,105,100,111,116,59],value:"◬"},{key:[116,114,105,101,59],value:"≜"},{key:[116,114,105,109,105,110,117,115,59],value:"⨺"},{key:[116,114,105,112,108,117,115,59],value:"⨹"},{key:[116,114,105,115,98,59],value:"⧍"},{key:[116,114,105,116,105,109,101,59],value:"⨻"},{key:[116,114,112,101,122,105,117,109,59],value:"⏢"},{key:[116,115,99,114,59],value:"𝓉"},{key:[116,115,99,121,59],value:"ц"},{key:[116,115,104,99,121,59],value:"ћ"},{key:[116,115,116,114,111,107,59],value:"ŧ"},{key:[116,119,105,120,116,59],value:"≬"},{key:[116,119,111,104,101,97,100,108,101,102,116,97,114,114,111,119,59],value:"↞"},{key:[116,119,111,104,101,97,100,114,105,103,104,116,97,114,114,111,119,59],value:"↠"},{key:[117,65,114,114,59],value:"⇑"},{key:[117,72,97,114,59],value:"⥣"},{key:[117,97,99,117,116,101,59],value:"ú"},{key:[117,97,114,114,59],value:"↑"},{key:[117,98,114,99,121,59],value:"ў"},{key:[117,98,114,101,118,101,59],value:"ŭ"},{key:[117,99,105,114,99,59],value:"û"},{key:[117,99,121,59],value:"у"},{key:[117,100,97,114,114,59],value:"⇅"},{key:[117,100,98,108,97,99,59],value:"ű"},{key:[117,100,104,97,114,59],value:"⥮"},{key:[117,102,105,115,104,116,59],value:"⥾"},{key:[117,102,114,59],value:"𝔲"},{key:[117,103,114,97,118,101,59],value:"ù"},{key:[117,104,97,114,108,59],value:"↿"},{key:[117,104,97,114,114,59],value:"↾"},{key:[117,104,98,108,107,59],value:"▀"},{key:[117,108,99,111,114,110,59],value:"⌜"},{key:[117,108,99,111,114,110,101,114,59],value:"⌜"},{key:[117,108,99,114,111,112,59],value:"⌏"},{key:[117,108,116,114,105,59],value:"◸"},{key:[117,109,97,99,114,59],value:"ū"},{key:[117,109,108,59],value:"¨"},{key:[117,111,103,111,110,59],value:"ų"},{key:[117,111,112,102,59],value:"𝕦"},{key:[117,112,97,114,114,111,119,59],value:"↑"},{key:[117,112,100,111,119,110,97,114,114,111,119,59],value:"↕"},{key:[117,112,104,97,114,112,111,111,110,108,101,102,116,59],value:"↿"},{key:[117,112,104,97,114,112,111,111,110,114,105,103,104,116,59],value:"↾"},{key:[117,112,108,117,115,59],value:"⊎"},{key:[117,112,115,105,59],value:"υ"},{key:[117,112,115,105,104,59],value:"ϒ"},{key:[117,112,115,105,108,111,110,59],value:"υ"},{key:[117,112,117,112,97,114,114,111,119,115,59],value:"⇈"},{key:[117,114,99,111,114,110,59],value:"⌝"},{key:[117,114,99,111,114,110,101,114,59],value:"⌝"},{key:[117,114,99,114,111,112,59],value:"⌎"},{key:[117,114,105,110,103,59],value:"ů"},{key:[117,114,116,114,105,59],value:"◹"},{key:[117,115,99,114,59],value:"𝓊"},{key:[117,116,100,111,116,59],value:"⋰"},{key:[117,116,105,108,100,101,59],value:"ũ"},{key:[117,116,114,105,59],value:"▵"},{key:[117,116,114,105,102,59],value:"▴"},{key:[117,117,97,114,114,59],value:"⇈"},{key:[117,117,109,108,59],value:"ü"},{key:[117,119,97,110,103,108,101,59],value:"⦧"},{key:[118,65,114,114,59],value:"⇕"},{key:[118,66,97,114,59],value:"⫨"},{key:[118,66,97,114,118,59],value:"⫩"},{key:[118,68,97,115,104,59],value:"⊨"},{key:[118,97,110,103,114,116,59],value:"⦜"},{key:[118,97,114,101,112,115,105,108,111,110,59],value:"ϵ"},{key:[118,97,114,107,97,112,112,97,59],value:"ϰ"},{key:[118,97,114,110,111,116,104,105,110,103,59],value:"∅"},{key:[118,97,114,112,104,105,59],value:"ϕ"},{key:[118,97,114,112,105,59],value:"ϖ"},{key:[118,97,114,112,114,111,112,116,111,59],value:"∝"},{key:[118,97,114,114,59],value:"↕"},{key:[118,97,114,114,104,111,59],value:"ϱ"},{key:[118,97,114,115,105,103,109,97,59],value:"ς"},{key:[118,97,114,115,117,98,115,101,116,110,101,113,59],value:"⊊︀"},{key:[118,97,114,115,117,98,115,101,116,110,101,113,113,59],value:"⫋︀"},{key:[118,97,114,115,117,112,115,101,116,110,101,113,59],value:"⊋︀"},{key:[118,97,114,115,117,112,115,101,116,110,101,113,113,59],value:"⫌︀"},{key:[118,97,114,116,104,101,116,97,59],value:"ϑ"},{key:[118,97,114,116,114,105,97,110,103,108,101,108,101,102,116,59],value:"⊲"},{key:[118,97,114,116,114,105,97,110,103,108,101,114,105,103,104,116,59],value:"⊳"},{key:[118,99,121,59],value:"в"},{key:[118,100,97,115,104,59],value:"⊢"},{key:[118,101,101,59],value:"∨"},{key:[118,101,101,98,97,114,59],value:"⊻"},{key:[118,101,101,101,113,59],value:"≚"},{key:[118,101,108,108,105,112,59],value:"⋮"},{key:[118,101,114,98,97,114,59],value:"|"},{key:[118,101,114,116,59],value:"|"},{key:[118,102,114,59],value:"𝔳"},{key:[118,108,116,114,105,59],value:"⊲"},{key:[118,110,115,117,98,59],value:"⊂⃒"},{key:[118,110,115,117,112,59],value:"⊃⃒"},{key:[118,111,112,102,59],value:"𝕧"},{key:[118,112,114,111,112,59],value:"∝"},{key:[118,114,116,114,105,59],value:"⊳"},{key:[118,115,99,114,59],value:"𝓋"},{key:[118,115,117,98,110,69,59],value:"⫋︀"},{key:[118,115,117,98,110,101,59],value:"⊊︀"},{key:[118,115,117,112,110,69,59],value:"⫌︀"},{key:[118,115,117,112,110,101,59],value:"⊋︀"},{key:[118,122,105,103,122,97,103,59],value:"⦚"},{key:[119,99,105,114,99,59],value:"ŵ"},{key:[119,101,100,98,97,114,59],value:"⩟"},{key:[119,101,100,103,101,59],value:"∧"},{key:[119,101,100,103,101,113,59],value:"≙"},{key:[119,101,105,101,114,112,59],value:"℘"},{key:[119,102,114,59],value:"𝔴"},{key:[119,111,112,102,59],value:"𝕨"},{key:[119,112,59],value:"℘"},{key:[119,114,59],value:"≀"},{key:[119,114,101,97,116,104,59],value:"≀"},{key:[119,115,99,114,59],value:"𝓌"},{key:[120,99,97,112,59],value:"⋂"},{key:[120,99,105,114,99,59],value:"◯"},{key:[120,99,117,112,59],value:"⋃"},{key:[120,100,116,114,105,59],value:"▽"},{key:[120,102,114,59],value:"𝔵"},{key:[120,104,65,114,114,59],value:"⟺"},{key:[120,104,97,114,114,59],value:"⟷"},{key:[120,105,59],value:"ξ"},{key:[120,108,65,114,114,59],value:"⟸"},{key:[120,108,97,114,114,59],value:"⟵"},{key:[120,109,97,112,59],value:"⟼"},{key:[120,110,105,115,59],value:"⋻"},{key:[120,111,100,111,116,59],value:"⨀"},{key:[120,111,112,102,59],value:"𝕩"},{key:[120,111,112,108,117,115,59],value:"⨁"},{key:[120,111,116,105,109,101,59],value:"⨂"},{key:[120,114,65,114,114,59],value:"⟹"},{key:[120,114,97,114,114,59],value:"⟶"},{key:[120,115,99,114,59],value:"𝓍"},{key:[120,115,113,99,117,112,59],value:"⨆"},{key:[120,117,112,108,117,115,59],value:"⨄"},{key:[120,117,116,114,105,59],value:"△"},{key:[120,118,101,101,59],value:"⋁"},{key:[120,119,101,100,103,101,59],value:"⋀"},{key:[121,97,99,117,116,101,59],value:"ý"},{key:[121,97,99,121,59],value:"я"},{key:[121,99,105,114,99,59],value:"ŷ"},{key:[121,99,121,59],value:"ы"},{key:[121,101,110,59],value:"¥"},{key:[121,102,114,59],value:"𝔶"},{key:[121,105,99,121,59],value:"ї"},{key:[121,111,112,102,59],value:"𝕪"},{key:[121,115,99,114,59],value:"𝓎"},{key:[121,117,99,121,59],value:"ю"},{key:[121,117,109,108,59],value:"ÿ"},{key:[122,97,99,117,116,101,59],value:"ź"},{key:[122,99,97,114,111,110,59],value:"ž"},{key:[122,99,121,59],value:"з"},{key:[122,100,111,116,59],value:"ż"},{key:[122,101,101,116,114,102,59],value:"ℨ"},{key:[122,101,116,97,59],value:"ζ"},{key:[122,102,114,59],value:"𝔷"},{key:[122,104,99,121,59],value:"ж"},{key:[122,105,103,114,97,114,114,59],value:"⇝"},{key:[122,111,112,102,59],value:"𝕫"},{key:[122,115,99,114,59],value:"𝓏"},{key:[122,119,106,59],value:"‍"},{key:[122,119,110,106,59],value:"‌"}];var S6;(function(e){e[e.LOW_LINE=95]="LOW_LINE",e[e.UNDERTIE=8255]="UNDERTIE",e[e.CHARACTER_TIE=8256]="CHARACTER_TIE",e[e.INVERTED_UNDERTIE=8276]="INVERTED_UNDERTIE",e[e.PRESENTATION_FORM_FOR_VERTICAL_LOW_LINE=65075]="PRESENTATION_FORM_FOR_VERTICAL_LOW_LINE",e[e.PRESENTATION_FORM_FOR_VERTICAL_WAVY_LOW_LINE=65076]="PRESENTATION_FORM_FOR_VERTICAL_WAVY_LOW_LINE",e[e.DASHED_LOW_LINE=65101]="DASHED_LOW_LINE",e[e.CENTRELINE_LOW_LINE=65102]="CENTRELINE_LOW_LINE",e[e.WAVY_LOW_LINE=65103]="WAVY_LOW_LINE",e[e.FULLWIDTH_LOW_LINE=65343]="FULLWIDTH_LOW_LINE"})(S6||(S6={}));var w6;(function(e){e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.ARMENIAN_HYPHEN=1418]="ARMENIAN_HYPHEN",e[e.HEBREW_PUNCTUATION_MAQAF=1470]="HEBREW_PUNCTUATION_MAQAF",e[e.CANADIAN_SYLLABICS_HYPHEN=5120]="CANADIAN_SYLLABICS_HYPHEN",e[e.MONGOLIAN_TODO_SOFT_HYPHEN=6150]="MONGOLIAN_TODO_SOFT_HYPHEN",e[e.HYPHEN=8208]="HYPHEN",e[e.NON_BREAKING_HYPHEN=8209]="NON_BREAKING_HYPHEN",e[e.FIGURE_DASH=8210]="FIGURE_DASH",e[e.EN_DASH=8211]="EN_DASH",e[e.EM_DASH=8212]="EM_DASH",e[e.HORIZONTAL_BAR=8213]="HORIZONTAL_BAR",e[e.DOUBLE_OBLIQUE_HYPHEN=11799]="DOUBLE_OBLIQUE_HYPHEN",e[e.HYPHEN_WITH_DIAERESIS=11802]="HYPHEN_WITH_DIAERESIS",e[e.TWO_EM_DASH=11834]="TWO_EM_DASH",e[e.THREE_EM_DASH=11835]="THREE_EM_DASH",e[e.DOUBLE_HYPHEN=11840]="DOUBLE_HYPHEN",e[e.WAVE_DASH=12316]="WAVE_DASH",e[e.WAVY_DASH=12336]="WAVY_DASH",e[e.KATAKANA_HIRAGANA_DOUBLE_HYPHEN=12448]="KATAKANA_HIRAGANA_DOUBLE_HYPHEN",e[e.PRESENTATION_FORM_FOR_VERTICAL_EM_DASH=65073]="PRESENTATION_FORM_FOR_VERTICAL_EM_DASH",e[e.PRESENTATION_FORM_FOR_VERTICAL_EN_DASH=65074]="PRESENTATION_FORM_FOR_VERTICAL_EN_DASH",e[e.SMALL_EM_DASH=65112]="SMALL_EM_DASH",e[e.SMALL_HYPHEN_MINUS=65123]="SMALL_HYPHEN_MINUS",e[e.FULLWIDTH_HYPHEN_MINUS=65293]="FULLWIDTH_HYPHEN_MINUS",e[e.YEZIDI_HYPHENATION_MARK=69293]="YEZIDI_HYPHENATION_MARK"})(w6||(w6={}));var A6;(function(e){e[e.RIGHT_PARENTHESIS=41]="RIGHT_PARENTHESIS",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.RIGHT_CURLY_BRACKET=125]="RIGHT_CURLY_BRACKET",e[e.TIBETAN_MARK_GUG_RTAGS_GYAS=3899]="TIBETAN_MARK_GUG_RTAGS_GYAS",e[e.TIBETAN_MARK_ANG_KHANG_GYAS=3901]="TIBETAN_MARK_ANG_KHANG_GYAS",e[e.OGHAM_REVERSED_FEATHER_MARK=5788]="OGHAM_REVERSED_FEATHER_MARK",e[e.RIGHT_SQUARE_BRACKET_WITH_QUILL=8262]="RIGHT_SQUARE_BRACKET_WITH_QUILL",e[e.SUPERSCRIPT_RIGHT_PARENTHESIS=8318]="SUPERSCRIPT_RIGHT_PARENTHESIS",e[e.SUBSCRIPT_RIGHT_PARENTHESIS=8334]="SUBSCRIPT_RIGHT_PARENTHESIS",e[e.RIGHT_CEILING=8969]="RIGHT_CEILING",e[e.RIGHT_FLOOR=8971]="RIGHT_FLOOR",e[e.RIGHT_POINTING_ANGLE_BRACKET=9002]="RIGHT_POINTING_ANGLE_BRACKET",e[e.MEDIUM_RIGHT_PARENTHESIS_ORNAMENT=10089]="MEDIUM_RIGHT_PARENTHESIS_ORNAMENT",e[e.MEDIUM_FLATTENED_RIGHT_PARENTHESIS_ORNAMENT=10091]="MEDIUM_FLATTENED_RIGHT_PARENTHESIS_ORNAMENT",e[e.MEDIUM_RIGHT_POINTING_ANGLE_BRACKET_ORNAMENT=10093]="MEDIUM_RIGHT_POINTING_ANGLE_BRACKET_ORNAMENT",e[e.HEAVY_RIGHT_POINTING_ANGLE_QUOTATION_MARK_ORNAMENT=10095]="HEAVY_RIGHT_POINTING_ANGLE_QUOTATION_MARK_ORNAMENT",e[e.HEAVY_RIGHT_POINTING_ANGLE_BRACKET_ORNAMENT=10097]="HEAVY_RIGHT_POINTING_ANGLE_BRACKET_ORNAMENT",e[e.LIGHT_RIGHT_TORTOISE_SHELL_BRACKET_ORNAMENT=10099]="LIGHT_RIGHT_TORTOISE_SHELL_BRACKET_ORNAMENT",e[e.MEDIUM_RIGHT_CURLY_BRACKET_ORNAMENT=10101]="MEDIUM_RIGHT_CURLY_BRACKET_ORNAMENT",e[e.RIGHT_S_SHAPED_BAG_DELIMITER=10182]="RIGHT_S_SHAPED_BAG_DELIMITER",e[e.MATHEMATICAL_RIGHT_WHITE_SQUARE_BRACKET=10215]="MATHEMATICAL_RIGHT_WHITE_SQUARE_BRACKET",e[e.MATHEMATICAL_RIGHT_ANGLE_BRACKET=10217]="MATHEMATICAL_RIGHT_ANGLE_BRACKET",e[e.MATHEMATICAL_RIGHT_DOUBLE_ANGLE_BRACKET=10219]="MATHEMATICAL_RIGHT_DOUBLE_ANGLE_BRACKET",e[e.MATHEMATICAL_RIGHT_WHITE_TORTOISE_SHELL_BRACKET=10221]="MATHEMATICAL_RIGHT_WHITE_TORTOISE_SHELL_BRACKET",e[e.MATHEMATICAL_RIGHT_FLATTENED_PARENTHESIS=10223]="MATHEMATICAL_RIGHT_FLATTENED_PARENTHESIS",e[e.RIGHT_WHITE_CURLY_BRACKET=10628]="RIGHT_WHITE_CURLY_BRACKET",e[e.RIGHT_WHITE_PARENTHESIS=10630]="RIGHT_WHITE_PARENTHESIS",e[e.Z_NOTATION_RIGHT_IMAGE_BRACKET=10632]="Z_NOTATION_RIGHT_IMAGE_BRACKET",e[e.Z_NOTATION_RIGHT_BINDING_BRACKET=10634]="Z_NOTATION_RIGHT_BINDING_BRACKET",e[e.RIGHT_SQUARE_BRACKET_WITH_UNDERBAR=10636]="RIGHT_SQUARE_BRACKET_WITH_UNDERBAR",e[e.RIGHT_SQUARE_BRACKET_WITH_TICK_IN_BOTTOM_CORNER=10638]="RIGHT_SQUARE_BRACKET_WITH_TICK_IN_BOTTOM_CORNER",e[e.RIGHT_SQUARE_BRACKET_WITH_TICK_IN_TOP_CORNER=10640]="RIGHT_SQUARE_BRACKET_WITH_TICK_IN_TOP_CORNER",e[e.RIGHT_ANGLE_BRACKET_WITH_DOT=10642]="RIGHT_ANGLE_BRACKET_WITH_DOT",e[e.RIGHT_ARC_GREATER_THAN_BRACKET=10644]="RIGHT_ARC_GREATER_THAN_BRACKET",e[e.DOUBLE_RIGHT_ARC_LESS_THAN_BRACKET=10646]="DOUBLE_RIGHT_ARC_LESS_THAN_BRACKET",e[e.RIGHT_BLACK_TORTOISE_SHELL_BRACKET=10648]="RIGHT_BLACK_TORTOISE_SHELL_BRACKET",e[e.RIGHT_WIGGLY_FENCE=10713]="RIGHT_WIGGLY_FENCE",e[e.RIGHT_DOUBLE_WIGGLY_FENCE=10715]="RIGHT_DOUBLE_WIGGLY_FENCE",e[e.RIGHT_POINTING_CURVED_ANGLE_BRACKET=10749]="RIGHT_POINTING_CURVED_ANGLE_BRACKET",e[e.TOP_RIGHT_HALF_BRACKET=11811]="TOP_RIGHT_HALF_BRACKET",e[e.BOTTOM_RIGHT_HALF_BRACKET=11813]="BOTTOM_RIGHT_HALF_BRACKET",e[e.RIGHT_SIDEWAYS_U_BRACKET=11815]="RIGHT_SIDEWAYS_U_BRACKET",e[e.RIGHT_DOUBLE_PARENTHESIS=11817]="RIGHT_DOUBLE_PARENTHESIS",e[e.RIGHT_ANGLE_BRACKET=12297]="RIGHT_ANGLE_BRACKET",e[e.RIGHT_DOUBLE_ANGLE_BRACKET=12299]="RIGHT_DOUBLE_ANGLE_BRACKET",e[e.RIGHT_CORNER_BRACKET=12301]="RIGHT_CORNER_BRACKET",e[e.RIGHT_WHITE_CORNER_BRACKET=12303]="RIGHT_WHITE_CORNER_BRACKET",e[e.RIGHT_BLACK_LENTICULAR_BRACKET=12305]="RIGHT_BLACK_LENTICULAR_BRACKET",e[e.RIGHT_TORTOISE_SHELL_BRACKET=12309]="RIGHT_TORTOISE_SHELL_BRACKET",e[e.RIGHT_WHITE_LENTICULAR_BRACKET=12311]="RIGHT_WHITE_LENTICULAR_BRACKET",e[e.RIGHT_WHITE_TORTOISE_SHELL_BRACKET=12313]="RIGHT_WHITE_TORTOISE_SHELL_BRACKET",e[e.RIGHT_WHITE_SQUARE_BRACKET=12315]="RIGHT_WHITE_SQUARE_BRACKET",e[e.DOUBLE_PRIME_QUOTATION_MARK=12318]="DOUBLE_PRIME_QUOTATION_MARK",e[e.LOW_DOUBLE_PRIME_QUOTATION_MARK=12319]="LOW_DOUBLE_PRIME_QUOTATION_MARK",e[e.ORNATE_LEFT_PARENTHESIS=64830]="ORNATE_LEFT_PARENTHESIS",e[e.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_WHITE_LENTICULAR_BRAKCET=65048]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_WHITE_LENTICULAR_BRAKCET",e[e.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_PARENTHESIS=65078]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_PARENTHESIS",e[e.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_CURLY_BRACKET=65080]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_CURLY_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_TORTOISE_SHELL_BRACKET=65082]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_TORTOISE_SHELL_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_BLACK_LENTICULAR_BRACKET=65084]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_BLACK_LENTICULAR_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_DOUBLE_ANGLE_BRACKET=65086]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_DOUBLE_ANGLE_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_ANGLE_BRACKET=65088]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_ANGLE_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_CORNER_BRACKET=65090]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_CORNER_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_WHITE_CORNER_BRACKET=65092]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_WHITE_CORNER_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_SQUARE_BRACKET=65096]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_SQUARE_BRACKET",e[e.SMALL_RIGHT_PARENTHESIS=65114]="SMALL_RIGHT_PARENTHESIS",e[e.SMALL_RIGHT_CURLY_BRACKET=65116]="SMALL_RIGHT_CURLY_BRACKET",e[e.SMALL_RIGHT_TORTOISE_SHELL_BRACKET=65118]="SMALL_RIGHT_TORTOISE_SHELL_BRACKET",e[e.FULLWIDTH_RIGHT_PARENTHESIS=65289]="FULLWIDTH_RIGHT_PARENTHESIS",e[e.FULLWIDTH_RIGHT_SQUARE_BRACKET=65341]="FULLWIDTH_RIGHT_SQUARE_BRACKET",e[e.FULLWIDTH_RIGHT_CURLY_BRACKET=65373]="FULLWIDTH_RIGHT_CURLY_BRACKET",e[e.FULLWIDTH_RIGHT_WHITE_PARENTHESIS=65376]="FULLWIDTH_RIGHT_WHITE_PARENTHESIS",e[e.HALFWIDTH_RIGHT_CORNER_BRACKET=65379]="HALFWIDTH_RIGHT_CORNER_BRACKET"})(A6||(A6={}));var k6;(function(e){e[e.RIGHT_POINTING_DOUBLE_ANGLE_QUOTATION_MARK=187]="RIGHT_POINTING_DOUBLE_ANGLE_QUOTATION_MARK",e[e.RIGHT_SINGLE_QUOTATION_MARK=8217]="RIGHT_SINGLE_QUOTATION_MARK",e[e.RIGHT_DOUBLE_QUOTATION_MARK=8221]="RIGHT_DOUBLE_QUOTATION_MARK",e[e.SINGLE_RIGHT_POINTING_ANGLE_QUOTATION_MARK=8250]="SINGLE_RIGHT_POINTING_ANGLE_QUOTATION_MARK",e[e.RIGHT_SUBSTITUTION_BRACKET=11779]="RIGHT_SUBSTITUTION_BRACKET",e[e.RIGHT_DOTTED_SUBSTITUTION_BRACKET=11781]="RIGHT_DOTTED_SUBSTITUTION_BRACKET",e[e.RIGHT_TRANSPOSITION_BRACKET=11786]="RIGHT_TRANSPOSITION_BRACKET",e[e.RIGHT_RAISED_OMISSION_BRACKET=11789]="RIGHT_RAISED_OMISSION_BRACKET",e[e.RIGHT_LOW_PARAPHRASE_BRACKET=11805]="RIGHT_LOW_PARAPHRASE_BRACKET",e[e.RIGHT_VERTICAL_BAR_WITH_QUILL=11809]="RIGHT_VERTICAL_BAR_WITH_QUILL"})(k6||(k6={}));var x6;(function(e){e[e.LEFT_POINTING_DOUBLE_ANGLE_QUOTATION_MARK=171]="LEFT_POINTING_DOUBLE_ANGLE_QUOTATION_MARK",e[e.LEFT_SINGLE_QUOTATION_MARK=8216]="LEFT_SINGLE_QUOTATION_MARK",e[e.SINGLE_HIGH_REVERSED_9_QUOTATION_MARK=8219]="SINGLE_HIGH_REVERSED_9_QUOTATION_MARK",e[e.LEFT_DOUBLE_QUOTATION_MARK=8220]="LEFT_DOUBLE_QUOTATION_MARK",e[e.DOUBLE_HIGH_REVERSED_9_QUOTATION_MARK=8223]="DOUBLE_HIGH_REVERSED_9_QUOTATION_MARK",e[e.SINGLE_LEFT_POINTING_ANGLE_QUOTATION_MARK=8249]="SINGLE_LEFT_POINTING_ANGLE_QUOTATION_MARK",e[e.LEFT_SUBSTITUTION_BRACKET=11778]="LEFT_SUBSTITUTION_BRACKET",e[e.LEFT_DOTTED_SUBSTITUTION_BRACKET=11780]="LEFT_DOTTED_SUBSTITUTION_BRACKET",e[e.LEFT_TRANSPOSITION_BRACKET=11785]="LEFT_TRANSPOSITION_BRACKET",e[e.LEFT_RAISED_OMISSION_BRACKET=11788]="LEFT_RAISED_OMISSION_BRACKET",e[e.LEFT_LOW_PARAPHRASE_BRACKET=11804]="LEFT_LOW_PARAPHRASE_BRACKET",e[e.LEFT_VERTICAL_BAR_WITH_QUILL=11808]="LEFT_VERTICAL_BAR_WITH_QUILL"})(x6||(x6={}));var T6;(function(e){e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.NUMBER_SIGN=35]="NUMBER_SIGN",e[e.PERCENT_SIGN=37]="PERCENT_SIGN",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.ASTERISK=42]="ASTERISK",e[e.COMMA=44]="COMMA",e[e.FULL_STOP=46]="FULL_STOP",e[e.SOLIDUS=47]="SOLIDUS",e[e.COLON=58]="COLON",e[e.SEMICOLON=59]="SEMICOLON",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.COMMERCIAL_AT=64]="COMMERCIAL_AT",e[e.REVERSE_SOLIDUS=92]="REVERSE_SOLIDUS",e[e.INVERTED_EXCLAMATION_MARK=161]="INVERTED_EXCLAMATION_MARK",e[e.SECTION_SIGN=167]="SECTION_SIGN",e[e.PILCROW_SIGN=182]="PILCROW_SIGN",e[e.MIDDLE_DOT=183]="MIDDLE_DOT",e[e.INVERTED_QUESTION_MARK=191]="INVERTED_QUESTION_MARK",e[e.GREEK_QUESTION_MARK=894]="GREEK_QUESTION_MARK",e[e.GREEK_ANO_TELEIA=903]="GREEK_ANO_TELEIA",e[e.ARMENIAN_APOSTROPHE=1370]="ARMENIAN_APOSTROPHE",e[e.ARMENIAN_EMPHASIS_MARK=1371]="ARMENIAN_EMPHASIS_MARK",e[e.ARMENIAN_EXCLAMATION_MARK=1372]="ARMENIAN_EXCLAMATION_MARK",e[e.ARMENIAN_COMMA=1373]="ARMENIAN_COMMA",e[e.ARMENIAN_QUESTION_MARK=1374]="ARMENIAN_QUESTION_MARK",e[e.ARMENIAN_ABBREVIATION_MARK=1375]="ARMENIAN_ABBREVIATION_MARK",e[e.ARMENIAN_FULL_STOP=1417]="ARMENIAN_FULL_STOP",e[e.HEBREW_PUNCTUATION_PASEQ=1472]="HEBREW_PUNCTUATION_PASEQ",e[e.HEBREW_PUNCTUATION_SOF_PASUQ=1475]="HEBREW_PUNCTUATION_SOF_PASUQ",e[e.HEBREW_PUNCTUATION_NUN_HAFUKHA=1478]="HEBREW_PUNCTUATION_NUN_HAFUKHA",e[e.HEBREW_PUNCTUATION_GERESH=1523]="HEBREW_PUNCTUATION_GERESH",e[e.HEBREW_PUNCTUATION_GERSHAYIM=1524]="HEBREW_PUNCTUATION_GERSHAYIM",e[e.ARABIC_INDIC_PER_MILLE_SIGN=1545]="ARABIC_INDIC_PER_MILLE_SIGN",e[e.ARABIC_INDIC_PER_TEN_THOUSAND_SIGN=1546]="ARABIC_INDIC_PER_TEN_THOUSAND_SIGN",e[e.ARABIC_COMMA=1548]="ARABIC_COMMA",e[e.ARABIC_DATE_SEPARATOR=1549]="ARABIC_DATE_SEPARATOR",e[e.ARABIC_SEMICOLON=1563]="ARABIC_SEMICOLON",e[e.ARABIC_TRIPLE_DOT_PUNCTUATION_MARK=1566]="ARABIC_TRIPLE_DOT_PUNCTUATION_MARK",e[e.ARABIC_QUESTION_MARK=1567]="ARABIC_QUESTION_MARK",e[e.ARABIC_PERCENT_SIGN=1642]="ARABIC_PERCENT_SIGN",e[e.ARABIC_DECIMAL_SEPARATOR=1643]="ARABIC_DECIMAL_SEPARATOR",e[e.ARABIC_THOUSANDS_SEPARATOR=1644]="ARABIC_THOUSANDS_SEPARATOR",e[e.ARABIC_FIVE_POINTED_STAR=1645]="ARABIC_FIVE_POINTED_STAR",e[e.ARABIC_FULL_STOP=1748]="ARABIC_FULL_STOP",e[e.SYRIAC_END_OF_PARAGRAPH=1792]="SYRIAC_END_OF_PARAGRAPH",e[e.SYRIAC_SUPRALINEAR_FULL_STOP=1793]="SYRIAC_SUPRALINEAR_FULL_STOP",e[e.SYRIAC_SUBLINEAR_FULL_STOP=1794]="SYRIAC_SUBLINEAR_FULL_STOP",e[e.SYRIAC_SUPRALINEAR_COLON=1795]="SYRIAC_SUPRALINEAR_COLON",e[e.SYRIAC_SUBLINEAR_COLON=1796]="SYRIAC_SUBLINEAR_COLON",e[e.SYRIAC_HORIZONTAL_COLON=1797]="SYRIAC_HORIZONTAL_COLON",e[e.SYRIAC_COLON_SKEWED_LEFT=1798]="SYRIAC_COLON_SKEWED_LEFT",e[e.SYRIAC_COLON_SKEWED_RIGHT=1799]="SYRIAC_COLON_SKEWED_RIGHT",e[e.SYRIAC_SUPRALINEAR_COLON_SKEWED_LEFT=1800]="SYRIAC_SUPRALINEAR_COLON_SKEWED_LEFT",e[e.SYRIAC_SUBLINEAR_COLON_SKEWED_RIGHT=1801]="SYRIAC_SUBLINEAR_COLON_SKEWED_RIGHT",e[e.SYRIAC_CONTRACTION=1802]="SYRIAC_CONTRACTION",e[e.SYRIAC_HARKLEAN_OBELUS=1803]="SYRIAC_HARKLEAN_OBELUS",e[e.SYRIAC_HARKLEAN_METOBELUS=1804]="SYRIAC_HARKLEAN_METOBELUS",e[e.SYRIAC_HARKLEAN_ASTERISCUS=1805]="SYRIAC_HARKLEAN_ASTERISCUS",e[e.NKO_SYMBOL_GBAKURUNEN=2039]="NKO_SYMBOL_GBAKURUNEN",e[e.NKO_COMMA=2040]="NKO_COMMA",e[e.NKO_EXCLAMATION_MARK=2041]="NKO_EXCLAMATION_MARK",e[e.SAMARITAN_PUNCTUATION_NEQUDAA=2096]="SAMARITAN_PUNCTUATION_NEQUDAA",e[e.SAMARITAN_PUNCTUATION_AFSAAQ=2097]="SAMARITAN_PUNCTUATION_AFSAAQ",e[e.SAMARITAN_PUNCTUATION_ANGED=2098]="SAMARITAN_PUNCTUATION_ANGED",e[e.SAMARITAN_PUNCTUATION_BAU=2099]="SAMARITAN_PUNCTUATION_BAU",e[e.SAMARITAN_PUNCTUATION_ATMAAU=2100]="SAMARITAN_PUNCTUATION_ATMAAU",e[e.SAMARITAN_PUNCTUATION_SHIYYAALAA=2101]="SAMARITAN_PUNCTUATION_SHIYYAALAA",e[e.SAMARITAN_ABBREVIATION_MARK=2102]="SAMARITAN_ABBREVIATION_MARK",e[e.SAMARITAN_PUNCTUATION_MELODIC_QITSA=2103]="SAMARITAN_PUNCTUATION_MELODIC_QITSA",e[e.SAMARITAN_PUNCTUATION_ZIQAA=2104]="SAMARITAN_PUNCTUATION_ZIQAA",e[e.SAMARITAN_PUNCTUATION_QITSA=2105]="SAMARITAN_PUNCTUATION_QITSA",e[e.SAMARITAN_PUNCTUATION_ZAEF=2106]="SAMARITAN_PUNCTUATION_ZAEF",e[e.SAMARITAN_PUNCTUATION_TURU=2107]="SAMARITAN_PUNCTUATION_TURU",e[e.SAMARITAN_PUNCTUATION_ARKAANU=2108]="SAMARITAN_PUNCTUATION_ARKAANU",e[e.SAMARITAN_PUNCTUATION_SOF_MASHFAAT=2109]="SAMARITAN_PUNCTUATION_SOF_MASHFAAT",e[e.SAMARITAN_PUNCTUATION_ANNAAU=2110]="SAMARITAN_PUNCTUATION_ANNAAU",e[e.MANDAIC_PUNCTUATION=2142]="MANDAIC_PUNCTUATION",e[e.DEVANAGARI_DANDA=2404]="DEVANAGARI_DANDA",e[e.DEVANAGARI_DOUBLE_DANDA=2405]="DEVANAGARI_DOUBLE_DANDA",e[e.DEVANAGARI_ABBREVIATION_SIGN=2416]="DEVANAGARI_ABBREVIATION_SIGN",e[e.BENGALI_ABBREVIATION_SIGN=2557]="BENGALI_ABBREVIATION_SIGN",e[e.GURMUKHI_ABBREVIATION_SIGN=2678]="GURMUKHI_ABBREVIATION_SIGN",e[e.GUJARATI_ABBREVIATION_SIGN=2800]="GUJARATI_ABBREVIATION_SIGN",e[e.TELUGU_SIGN_SIDDHAM=3191]="TELUGU_SIGN_SIDDHAM",e[e.KANNADA_SIGN_SIDDHAM=3204]="KANNADA_SIGN_SIDDHAM",e[e.SINHALA_PUNCTUATION_KUNDDALIYA=3572]="SINHALA_PUNCTUATION_KUNDDALIYA",e[e.THAI_CHARACTER_FONGMAN=3663]="THAI_CHARACTER_FONGMAN",e[e.THAI_CHARACTER_ANGKHANKHU=3674]="THAI_CHARACTER_ANGKHANKHU",e[e.THAI_CHARACTER_KHOMUT=3675]="THAI_CHARACTER_KHOMUT",e[e.TIBETAN_MARK_INITIAL_YIG_MGO_MDUN_MA=3844]="TIBETAN_MARK_INITIAL_YIG_MGO_MDUN_MA",e[e.TIBETAN_MARK_CLOSING_YIG_MGO_SGAB_MA=3845]="TIBETAN_MARK_CLOSING_YIG_MGO_SGAB_MA",e[e.TIBETAN_MARK_CARET_YIG_MGO_PHUR_SHAD_MA=3846]="TIBETAN_MARK_CARET_YIG_MGO_PHUR_SHAD_MA",e[e.TIBETAN_MARK_YIG_MGO_TSHEG_SHAD_MA=3847]="TIBETAN_MARK_YIG_MGO_TSHEG_SHAD_MA",e[e.TIBETAN_MARK_SBRUL_SHAD=3848]="TIBETAN_MARK_SBRUL_SHAD",e[e.TIBETAN_MARK_BSKUR_YIG_MGO=3849]="TIBETAN_MARK_BSKUR_YIG_MGO",e[e.TIBETAN_MARK_BKA__SHOG_YIG_MGO=3850]="TIBETAN_MARK_BKA__SHOG_YIG_MGO",e[e.TIBETAN_MARK_INTERSYLLABIC_TSHEG=3851]="TIBETAN_MARK_INTERSYLLABIC_TSHEG",e[e.TIBETAN_MARK_DELIMITER_TSHEG_BSTAR=3852]="TIBETAN_MARK_DELIMITER_TSHEG_BSTAR",e[e.TIBETAN_MARK_SHAD=3853]="TIBETAN_MARK_SHAD",e[e.TIBETAN_MARK_NYIS_SHAD=3854]="TIBETAN_MARK_NYIS_SHAD",e[e.TIBETAN_MARK_TSHEG_SHAD=3855]="TIBETAN_MARK_TSHEG_SHAD",e[e.TIBETAN_MARK_NYIS_TSHEG_SHAD=3856]="TIBETAN_MARK_NYIS_TSHEG_SHAD",e[e.TIBETAN_MARK_RIN_CHEN_SPUNGS_SHAD=3857]="TIBETAN_MARK_RIN_CHEN_SPUNGS_SHAD",e[e.TIBETAN_MARK_RGYA_GRAM_SHAD=3858]="TIBETAN_MARK_RGYA_GRAM_SHAD",e[e.TIBETAN_MARK_GTER_TSHEG=3860]="TIBETAN_MARK_GTER_TSHEG",e[e.TIBETAN_MARK_PALUTA=3973]="TIBETAN_MARK_PALUTA",e[e.TIBETAN_MARK_BSKA__SHOG_GI_MGO_RGYAN=4048]="TIBETAN_MARK_BSKA__SHOG_GI_MGO_RGYAN",e[e.TIBETAN_MARK_MNYAM_YIG_GI_MGO_RGYAN=4049]="TIBETAN_MARK_MNYAM_YIG_GI_MGO_RGYAN",e[e.TIBETAN_MARK_NYIS_TSHEG=4050]="TIBETAN_MARK_NYIS_TSHEG",e[e.TIBETAN_MARK_INITIAL_BRDA_RNYING_YIG_MGO_MDUN_MA=4051]="TIBETAN_MARK_INITIAL_BRDA_RNYING_YIG_MGO_MDUN_MA",e[e.TIBETAN_MARK_CLOSING_BRDA_RNYING_YIG_MGO_SGAB_MA=4052]="TIBETAN_MARK_CLOSING_BRDA_RNYING_YIG_MGO_SGAB_MA",e[e.TIBETAN_MARK_LEADING_MCHAN_RTAGS=4057]="TIBETAN_MARK_LEADING_MCHAN_RTAGS",e[e.TIBETAN_MARK_TRAILING_MCHAN_RTAGS=4058]="TIBETAN_MARK_TRAILING_MCHAN_RTAGS",e[e.MYANMAR_SIGN_LITTLE_SECTION=4170]="MYANMAR_SIGN_LITTLE_SECTION",e[e.MYANMAR_SIGN_SECTION=4171]="MYANMAR_SIGN_SECTION",e[e.MYANMAR_SYMBOL_LOCATIVE=4172]="MYANMAR_SYMBOL_LOCATIVE",e[e.MYANMAR_SYMBOL_COMPLETED=4173]="MYANMAR_SYMBOL_COMPLETED",e[e.MYANMAR_SYMBOL_AFOREMENTIONED=4174]="MYANMAR_SYMBOL_AFOREMENTIONED",e[e.MYANMAR_SYMBOL_GENITIVE=4175]="MYANMAR_SYMBOL_GENITIVE",e[e.GEORGIAN_PARAGRAPH_SEPARATOR=4347]="GEORGIAN_PARAGRAPH_SEPARATOR",e[e.ETHIOPIC_SECTION_MARK=4960]="ETHIOPIC_SECTION_MARK",e[e.ETHIOPIC_WORDSPACE=4961]="ETHIOPIC_WORDSPACE",e[e.ETHIOPIC_FULL_STOP=4962]="ETHIOPIC_FULL_STOP",e[e.ETHIOPIC_COMMA=4963]="ETHIOPIC_COMMA",e[e.ETHIOPIC_SEMICOLON=4964]="ETHIOPIC_SEMICOLON",e[e.ETHIOPIC_COLON=4965]="ETHIOPIC_COLON",e[e.ETHIOPIC_PREFACE_COLON=4966]="ETHIOPIC_PREFACE_COLON",e[e.ETHIOPIC_QUESTION_MARK=4967]="ETHIOPIC_QUESTION_MARK",e[e.ETHIOPIC_PARAGRAPH_SEPARATOR=4968]="ETHIOPIC_PARAGRAPH_SEPARATOR",e[e.CANADIAN_SYLLABICS_FULL_STOP=5742]="CANADIAN_SYLLABICS_FULL_STOP",e[e.RUNIC_SINGLE_PUNCTUATION=5867]="RUNIC_SINGLE_PUNCTUATION",e[e.RUNIC_MULTIPLE_PUNCTUATION=5868]="RUNIC_MULTIPLE_PUNCTUATION",e[e.RUNIC_CROSS_PUNCTUATION=5869]="RUNIC_CROSS_PUNCTUATION",e[e.PHILIPPINE_SINGLE_PUNCTUATION=5941]="PHILIPPINE_SINGLE_PUNCTUATION",e[e.PHILIPPINE_DOUBLE_PUNCTUATION=5942]="PHILIPPINE_DOUBLE_PUNCTUATION",e[e.KHMER_SIGN_KHAN=6100]="KHMER_SIGN_KHAN",e[e.KHMER_SIGN_BARIYOOSAN=6101]="KHMER_SIGN_BARIYOOSAN",e[e.KHMER_SIGN_CAMNUC_PII_KUUH=6102]="KHMER_SIGN_CAMNUC_PII_KUUH",e[e.KHMER_SIGN_BEYYAL=6104]="KHMER_SIGN_BEYYAL",e[e.KHMER_SIGN_PHNAEK_MUAN=6105]="KHMER_SIGN_PHNAEK_MUAN",e[e.KHMER_SIGN_KOOMUUT=6106]="KHMER_SIGN_KOOMUUT",e[e.MONGOLIAN_BIRGA=6144]="MONGOLIAN_BIRGA",e[e.MONGOLIAN_ELLIPSIS=6145]="MONGOLIAN_ELLIPSIS",e[e.MONGOLIAN_COMMA=6146]="MONGOLIAN_COMMA",e[e.MONGOLIAN_FULL_STOP=6147]="MONGOLIAN_FULL_STOP",e[e.MONGOLIAN_COLON=6148]="MONGOLIAN_COLON",e[e.MONGOLIAN_FOUR_DOTS=6149]="MONGOLIAN_FOUR_DOTS",e[e.MONGOLIAN_SIBE_SYLLABLE_BOUNDARY_MARKER=6151]="MONGOLIAN_SIBE_SYLLABLE_BOUNDARY_MARKER",e[e.MONGOLIAN_MANCHU_COMMA=6152]="MONGOLIAN_MANCHU_COMMA",e[e.MONGOLIAN_MANCHU_FULL_STOP=6153]="MONGOLIAN_MANCHU_FULL_STOP",e[e.MONGOLIAN_NIRUGU=6154]="MONGOLIAN_NIRUGU",e[e.LIMBU_EXCLAMATION_MARK=6468]="LIMBU_EXCLAMATION_MARK",e[e.LIMBU_QUESTION_MARK=6469]="LIMBU_QUESTION_MARK",e[e.BUGINESE_PALLAWA=6686]="BUGINESE_PALLAWA",e[e.BUGINESE_END_OF_SECTION=6687]="BUGINESE_END_OF_SECTION",e[e.TAI_THAM_SIGN_WIANG=6816]="TAI_THAM_SIGN_WIANG",e[e.TAI_THAM_SIGN_WIANGWAAK=6817]="TAI_THAM_SIGN_WIANGWAAK",e[e.TAI_THAM_SIGN_SAWAN=6818]="TAI_THAM_SIGN_SAWAN",e[e.TAI_THAM_SIGN_KEOW=6819]="TAI_THAM_SIGN_KEOW",e[e.TAI_THAM_SIGN_HOY=6820]="TAI_THAM_SIGN_HOY",e[e.TAI_THAM_SIGN_DOKMAI=6821]="TAI_THAM_SIGN_DOKMAI",e[e.TAI_THAM_SIGN_REVERSED_ROTATED_RANA=6822]="TAI_THAM_SIGN_REVERSED_ROTATED_RANA",e[e.TAI_THAM_SIGN_KAAN=6824]="TAI_THAM_SIGN_KAAN",e[e.TAI_THAM_SIGN_KAANKUU=6825]="TAI_THAM_SIGN_KAANKUU",e[e.TAI_THAM_SIGN_SATKAAN=6826]="TAI_THAM_SIGN_SATKAAN",e[e.TAI_THAM_SIGN_SATKAANKUU=6827]="TAI_THAM_SIGN_SATKAANKUU",e[e.TAI_THAM_SIGN_HANG=6828]="TAI_THAM_SIGN_HANG",e[e.TAI_THAM_SIGN_CAANG=6829]="TAI_THAM_SIGN_CAANG",e[e.BALINESE_PANTI=7002]="BALINESE_PANTI",e[e.BALINESE_PAMADA=7003]="BALINESE_PAMADA",e[e.BALINESE_WINDU=7004]="BALINESE_WINDU",e[e.BALINESE_CARIK_PAMUNGKAH=7005]="BALINESE_CARIK_PAMUNGKAH",e[e.BALINESE_CARIK_SIKI=7006]="BALINESE_CARIK_SIKI",e[e.BALINESE_CARIK_PAREREN=7007]="BALINESE_CARIK_PAREREN",e[e.BALINESE_PAMENENG=7008]="BALINESE_PAMENENG",e[e.BATAK_SYMBOL_BINDU_NA_METEK=7164]="BATAK_SYMBOL_BINDU_NA_METEK",e[e.BATAK_SYMBOL_BINDU_PINARBORAS=7165]="BATAK_SYMBOL_BINDU_PINARBORAS",e[e.BATAK_SYMBOL_BINDU_JUDUL=7166]="BATAK_SYMBOL_BINDU_JUDUL",e[e.BATAK_SYMBOL_BINDU_PANGOLAT=7167]="BATAK_SYMBOL_BINDU_PANGOLAT",e[e.LEPCHA_PUNCTUATION_TA_ROL=7227]="LEPCHA_PUNCTUATION_TA_ROL",e[e.LEPCHA_PUNCTUATION_NYET_THYOOM_TA_ROL=7228]="LEPCHA_PUNCTUATION_NYET_THYOOM_TA_ROL",e[e.LEPCHA_PUNCTUATION_CER_WA=7229]="LEPCHA_PUNCTUATION_CER_WA",e[e.LEPCHA_PUNCTUATION_TSHOOK_CER_WA=7230]="LEPCHA_PUNCTUATION_TSHOOK_CER_WA",e[e.LEPCHA_PUNCTUATION_TSHOOK=7231]="LEPCHA_PUNCTUATION_TSHOOK",e[e.OL_CHIKI_PUNCTUATION_MUCAAD=7294]="OL_CHIKI_PUNCTUATION_MUCAAD",e[e.OL_CHIKI_PUNCTUATION_DOUBLE_MUCAAD=7295]="OL_CHIKI_PUNCTUATION_DOUBLE_MUCAAD",e[e.SUNDANESE_PUNCTUATION_BINDU_SURYA=7360]="SUNDANESE_PUNCTUATION_BINDU_SURYA",e[e.SUNDANESE_PUNCTUATION_BINDU_PANGLONG=7361]="SUNDANESE_PUNCTUATION_BINDU_PANGLONG",e[e.SUNDANESE_PUNCTUATION_BINDU_PURNAMA=7362]="SUNDANESE_PUNCTUATION_BINDU_PURNAMA",e[e.SUNDANESE_PUNCTUATION_BINDU_CAKRA=7363]="SUNDANESE_PUNCTUATION_BINDU_CAKRA",e[e.SUNDANESE_PUNCTUATION_BINDU_LEU_SATANGA=7364]="SUNDANESE_PUNCTUATION_BINDU_LEU_SATANGA",e[e.SUNDANESE_PUNCTUATION_BINDU_KA_SATANGA=7365]="SUNDANESE_PUNCTUATION_BINDU_KA_SATANGA",e[e.SUNDANESE_PUNCTUATION_BINDU_DA_SATANGA=7366]="SUNDANESE_PUNCTUATION_BINDU_DA_SATANGA",e[e.SUNDANESE_PUNCTUATION_BINDU_BA_SATANGA=7367]="SUNDANESE_PUNCTUATION_BINDU_BA_SATANGA",e[e.VEDIC_SIGN_NIHSHVASA=7379]="VEDIC_SIGN_NIHSHVASA",e[e.DOUBLE_VERTICAL_LINE=8214]="DOUBLE_VERTICAL_LINE",e[e.DOUBLE_LOW_LINE=8215]="DOUBLE_LOW_LINE",e[e.DAGGER=8224]="DAGGER",e[e.DOUBLE_DAGGER=8225]="DOUBLE_DAGGER",e[e.BULLET=8226]="BULLET",e[e.TRIANGULAR_BULLET=8227]="TRIANGULAR_BULLET",e[e.ONE_DOT_LEADER=8228]="ONE_DOT_LEADER",e[e.TWO_DOT_LEADER=8229]="TWO_DOT_LEADER",e[e.HORIZONTAL_ELLIPSIS=8230]="HORIZONTAL_ELLIPSIS",e[e.HYPHENATION_POINT=8231]="HYPHENATION_POINT",e[e.PER_MILLE_SIGN=8240]="PER_MILLE_SIGN",e[e.PER_TEN_THOUSAND_SIGN=8241]="PER_TEN_THOUSAND_SIGN",e[e.PRIME=8242]="PRIME",e[e.DOUBLE_PRIME=8243]="DOUBLE_PRIME",e[e.TRIPLE_PRIME=8244]="TRIPLE_PRIME",e[e.REVERSED_PRIME=8245]="REVERSED_PRIME",e[e.REVERSED_DOUBLE_PRIME=8246]="REVERSED_DOUBLE_PRIME",e[e.REVERSED_TRIPLE_PRIME=8247]="REVERSED_TRIPLE_PRIME",e[e.CARET=8248]="CARET",e[e.REFERENCE_MARK=8251]="REFERENCE_MARK",e[e.DOUBLE_EXCLAMATION_MARK=8252]="DOUBLE_EXCLAMATION_MARK",e[e.INTERROBANG=8253]="INTERROBANG",e[e.OVERLINE=8254]="OVERLINE",e[e.CARET_INSERTION_POINT=8257]="CARET_INSERTION_POINT",e[e.ASTERISM=8258]="ASTERISM",e[e.HYPHEN_BULLET=8259]="HYPHEN_BULLET",e[e.DOUBLE_QUESTION_MARK=8263]="DOUBLE_QUESTION_MARK",e[e.QUESTION_EXCLAMATION_MARK=8264]="QUESTION_EXCLAMATION_MARK",e[e.EXCLAMATION_QUESTION_MARK=8265]="EXCLAMATION_QUESTION_MARK",e[e.TIRONIAN_SIGN_ET=8266]="TIRONIAN_SIGN_ET",e[e.REVERSED_PILCROW_SIGN=8267]="REVERSED_PILCROW_SIGN",e[e.BLACK_LEFTWARDS_BULLET=8268]="BLACK_LEFTWARDS_BULLET",e[e.BLACK_RIGHTWARDS_BULLET=8269]="BLACK_RIGHTWARDS_BULLET",e[e.LOW_ASTERISK=8270]="LOW_ASTERISK",e[e.REVERSED_SEMICOLON=8271]="REVERSED_SEMICOLON",e[e.CLOSE_UP=8272]="CLOSE_UP",e[e.TWO_ASTERISKS_ALIGNED_VERTICALLY=8273]="TWO_ASTERISKS_ALIGNED_VERTICALLY",e[e.SWUNG_DASH=8275]="SWUNG_DASH",e[e.FLOWER_PUNCTUATION_MARK=8277]="FLOWER_PUNCTUATION_MARK",e[e.THREE_DOT_PUNCTUATION=8278]="THREE_DOT_PUNCTUATION",e[e.QUADRUPLE_PRIME=8279]="QUADRUPLE_PRIME",e[e.FOUR_DOT_PUNCTUATION=8280]="FOUR_DOT_PUNCTUATION",e[e.FIVE_DOT_PUNCTUATION=8281]="FIVE_DOT_PUNCTUATION",e[e.TWO_DOT_PUNCTUATION=8282]="TWO_DOT_PUNCTUATION",e[e.FOUR_DOT_MARK=8283]="FOUR_DOT_MARK",e[e.DOTTED_CROSS=8284]="DOTTED_CROSS",e[e.TRICOLON=8285]="TRICOLON",e[e.VERTICAL_FOUR_DOTS=8286]="VERTICAL_FOUR_DOTS",e[e.COPTIC_OLD_NUBIAN_FULL_STOP=11513]="COPTIC_OLD_NUBIAN_FULL_STOP",e[e.COPTIC_OLD_NUBIAN_DIRECT_QUESTION_MARK=11514]="COPTIC_OLD_NUBIAN_DIRECT_QUESTION_MARK",e[e.COPTIC_OLD_NUBIAN_INDIRECT_QUESTION_MARK=11515]="COPTIC_OLD_NUBIAN_INDIRECT_QUESTION_MARK",e[e.COPTIC_OLD_NUBIAN_VERSE_DIVIDER=11516]="COPTIC_OLD_NUBIAN_VERSE_DIVIDER",e[e.COPTIC_FULL_STOP=11518]="COPTIC_FULL_STOP",e[e.COPTIC_MORPHOLOGICAL_DIVIDER=11519]="COPTIC_MORPHOLOGICAL_DIVIDER",e[e.TIFINAGH_SEPARATOR_MARK=11632]="TIFINAGH_SEPARATOR_MARK",e[e.RIGHT_ANGLE_SUBSTITUTION_MARKER=11776]="RIGHT_ANGLE_SUBSTITUTION_MARKER",e[e.RIGHT_ANGLE_DOTTED_SUBSTITUTION_MARKER=11777]="RIGHT_ANGLE_DOTTED_SUBSTITUTION_MARKER",e[e.RAISED_INTERPOLATION_MARKER=11782]="RAISED_INTERPOLATION_MARKER",e[e.RAISED_DOTTED_INTERPOLATION_MARKER=11783]="RAISED_DOTTED_INTERPOLATION_MARKER",e[e.DOTTED_TRANSPOSITION_MARKER=11784]="DOTTED_TRANSPOSITION_MARKER",e[e.RAISED_SQUARE=11787]="RAISED_SQUARE",e[e.EDITORIAL_CORONIS=11790]="EDITORIAL_CORONIS",e[e.PARAGRAPHOS=11791]="PARAGRAPHOS",e[e.FORKED_PARAGRAPHOS=11792]="FORKED_PARAGRAPHOS",e[e.REVERSED_FORKED_PARAGRAPHOS=11793]="REVERSED_FORKED_PARAGRAPHOS",e[e.HYPODIASTOLE=11794]="HYPODIASTOLE",e[e.DOTTED_OBELOS=11795]="DOTTED_OBELOS",e[e.DOWNWARDS_ANCORA=11796]="DOWNWARDS_ANCORA",e[e.UPWARDS_ANCORA=11797]="UPWARDS_ANCORA",e[e.DOTTED_RIGHT_POINTING_ANGLE=11798]="DOTTED_RIGHT_POINTING_ANGLE",e[e.INVERTED_INTERROBANG=11800]="INVERTED_INTERROBANG",e[e.PALM_BRANCH=11801]="PALM_BRANCH",e[e.TILDE_WITH_RING_ABOVE=11803]="TILDE_WITH_RING_ABOVE",e[e.TILDE_WITH_DOT_ABOVE=11806]="TILDE_WITH_DOT_ABOVE",e[e.TILDE_WITH_DOT_BELOW=11807]="TILDE_WITH_DOT_BELOW",e[e.TWO_DOTS_OVER_ONE_DOT_PUNCTUATION=11818]="TWO_DOTS_OVER_ONE_DOT_PUNCTUATION",e[e.ONE_DOT_OVER_TWO_DOTS_PUNCTUATION=11819]="ONE_DOT_OVER_TWO_DOTS_PUNCTUATION",e[e.SQUARED_FOUR_DOT_PUNCTUATION=11820]="SQUARED_FOUR_DOT_PUNCTUATION",e[e.FIVE_DOT_MARK=11821]="FIVE_DOT_MARK",e[e.REVERSED_QUESTION_MARK=11822]="REVERSED_QUESTION_MARK",e[e.RING_POINT=11824]="RING_POINT",e[e.WORD_SEPARATOR_MIDDLE_DOT=11825]="WORD_SEPARATOR_MIDDLE_DOT",e[e.TURNED_COMMA=11826]="TURNED_COMMA",e[e.RAISED_DOT=11827]="RAISED_DOT",e[e.RAISED_COMMA=11828]="RAISED_COMMA",e[e.TURNED_SEMICOLON=11829]="TURNED_SEMICOLON",e[e.DAGGER_WITH_LEFT_GUARD=11830]="DAGGER_WITH_LEFT_GUARD",e[e.DAGGER_WITH_RIGHT_GUARD=11831]="DAGGER_WITH_RIGHT_GUARD",e[e.TURNED_DAGGER=11832]="TURNED_DAGGER",e[e.TOP_HALF_SECTION_SIGN=11833]="TOP_HALF_SECTION_SIGN",e[e.STENOGRAPHIC_FULL_STOP=11836]="STENOGRAPHIC_FULL_STOP",e[e.VERTICAL_SIX_DOTS=11837]="VERTICAL_SIX_DOTS",e[e.WIGGLY_VERTICAL_LINE=11838]="WIGGLY_VERTICAL_LINE",e[e.CAPITULUM=11839]="CAPITULUM",e[e.REVERSED_COMMA=11841]="REVERSED_COMMA",e[e.DASH_WITH_LEFT_UPTURN=11843]="DASH_WITH_LEFT_UPTURN",e[e.DOUBLE_SUSPENSION_MARK=11844]="DOUBLE_SUSPENSION_MARK",e[e.INVERTED_LOW_KAVYKA=11845]="INVERTED_LOW_KAVYKA",e[e.INVERTED_LOW_KAVYKA_WITH_KAVYKA_ABOVE=11846]="INVERTED_LOW_KAVYKA_WITH_KAVYKA_ABOVE",e[e.LOW_KAVYKA=11847]="LOW_KAVYKA",e[e.LOW_KAVYKA_WITH_DOT=11848]="LOW_KAVYKA_WITH_DOT",e[e.DOUBLE_STACKED_COMMA=11849]="DOUBLE_STACKED_COMMA",e[e.DOTTED_SOLIDUS=11850]="DOTTED_SOLIDUS",e[e.TRIPLE_DAGGER=11851]="TRIPLE_DAGGER",e[e.MEDIEVAL_COMMA=11852]="MEDIEVAL_COMMA",e[e.PARAGRAPHUS_MARK=11853]="PARAGRAPHUS_MARK",e[e.PUNCTUS_ELEVATUS_MARK=11854]="PUNCTUS_ELEVATUS_MARK",e[e.CORNISH_VERSE_DIVIDER=11855]="CORNISH_VERSE_DIVIDER",e[e.TIRONIAN_SIGN_CAPITAL_ET=11858]="TIRONIAN_SIGN_CAPITAL_ET",e[e.IDEOGRAPHIC_COMMA=12289]="IDEOGRAPHIC_COMMA",e[e.IDEOGRAPHIC_FULL_STOP=12290]="IDEOGRAPHIC_FULL_STOP",e[e.DITTO_MARK=12291]="DITTO_MARK",e[e.PART_ALTERNATION_MARK=12349]="PART_ALTERNATION_MARK",e[e.KATAKANA_MIDDLE_DOT=12539]="KATAKANA_MIDDLE_DOT",e[e.LISU_PUNCTUATION_COMMA=42238]="LISU_PUNCTUATION_COMMA",e[e.LISU_PUNCTUATION_FULL_STOP=42239]="LISU_PUNCTUATION_FULL_STOP",e[e.VAI_COMMA=42509]="VAI_COMMA",e[e.VAI_FULL_STOP=42510]="VAI_FULL_STOP",e[e.VAI_QUESTION_MARK=42511]="VAI_QUESTION_MARK",e[e.SLAVONIC_ASTERISK=42611]="SLAVONIC_ASTERISK",e[e.CYRILLIC_KAVYKA=42622]="CYRILLIC_KAVYKA",e[e.BAMUM_NJAEMLI=42738]="BAMUM_NJAEMLI",e[e.BAMUM_FULL_STOP=42739]="BAMUM_FULL_STOP",e[e.BAMUM_COLON=42740]="BAMUM_COLON",e[e.BAMUM_COMMA=42741]="BAMUM_COMMA",e[e.BAMUM_SEMICOLON=42742]="BAMUM_SEMICOLON",e[e.BAMUM_QUESTION_MARK=42743]="BAMUM_QUESTION_MARK",e[e.PHAGS_PA_SINGLE_HEAD_MARK=43124]="PHAGS_PA_SINGLE_HEAD_MARK",e[e.PHAGS_PA_DOUBLE_HEAD_MARK=43125]="PHAGS_PA_DOUBLE_HEAD_MARK",e[e.PHAGS_PA_MARK_SHAD=43126]="PHAGS_PA_MARK_SHAD",e[e.PHAGS_PA_MARK_DOUBLE_SHAD=43127]="PHAGS_PA_MARK_DOUBLE_SHAD",e[e.SAURASHTRA_DANDA=43214]="SAURASHTRA_DANDA",e[e.SAURASHTRA_DOUBLE_DANDA=43215]="SAURASHTRA_DOUBLE_DANDA",e[e.DEVANAGARI_SIGN_PUSHPIKA=43256]="DEVANAGARI_SIGN_PUSHPIKA",e[e.DEVANAGARI_GAP_FILLER=43257]="DEVANAGARI_GAP_FILLER",e[e.DEVANAGARI_CARET=43258]="DEVANAGARI_CARET",e[e.DEVANAGARI_SIGN_SIDDHAM=43260]="DEVANAGARI_SIGN_SIDDHAM",e[e.KAYAH_LI_SIGN_CWI=43310]="KAYAH_LI_SIGN_CWI",e[e.KAYAH_LI_SIGN_SHYA=43311]="KAYAH_LI_SIGN_SHYA",e[e.REJANG_SECTION_MARK=43359]="REJANG_SECTION_MARK",e[e.JAVANESE_LEFT_RERENGGAN=43457]="JAVANESE_LEFT_RERENGGAN",e[e.JAVANESE_RIGHT_RERENGGAN=43458]="JAVANESE_RIGHT_RERENGGAN",e[e.JAVANESE_PADA_ANDAP=43459]="JAVANESE_PADA_ANDAP",e[e.JAVANESE_PADA_MADYA=43460]="JAVANESE_PADA_MADYA",e[e.JAVANESE_PADA_LUHUR=43461]="JAVANESE_PADA_LUHUR",e[e.JAVANESE_PADA_WINDU=43462]="JAVANESE_PADA_WINDU",e[e.JAVANESE_PADA_PANGKAT=43463]="JAVANESE_PADA_PANGKAT",e[e.JAVANESE_PADA_LINGSA=43464]="JAVANESE_PADA_LINGSA",e[e.JAVANESE_PADA_LUNGSI=43465]="JAVANESE_PADA_LUNGSI",e[e.JAVANESE_PADA_ADEG=43466]="JAVANESE_PADA_ADEG",e[e.JAVANESE_PADA_ADEG_ADEG=43467]="JAVANESE_PADA_ADEG_ADEG",e[e.JAVANESE_PADA_PISELEH=43468]="JAVANESE_PADA_PISELEH",e[e.JAVANESE_TURNED_PADA_PISELEH=43469]="JAVANESE_TURNED_PADA_PISELEH",e[e.JAVANESE_PADA_TIRTA_TUMETES=43486]="JAVANESE_PADA_TIRTA_TUMETES",e[e.JAVANESE_PADA_ISEN_ISEN=43487]="JAVANESE_PADA_ISEN_ISEN",e[e.CHAM_PUNCTUATION_SPIRAL=43612]="CHAM_PUNCTUATION_SPIRAL",e[e.CHAM_PUNCTUATION_DANDA=43613]="CHAM_PUNCTUATION_DANDA",e[e.CHAM_PUNCTUATION_DOUBLE_DANDA=43614]="CHAM_PUNCTUATION_DOUBLE_DANDA",e[e.CHAM_PUNCTUATION_TRIPLE_DANDA=43615]="CHAM_PUNCTUATION_TRIPLE_DANDA",e[e.TAI_VIET_SYMBOL_HO_HOI=43742]="TAI_VIET_SYMBOL_HO_HOI",e[e.TAI_VIET_SYMBOL_KOI_KOI=43743]="TAI_VIET_SYMBOL_KOI_KOI",e[e.MEETEI_MAYEK_CHEIKHAN=43760]="MEETEI_MAYEK_CHEIKHAN",e[e.MEETEI_MAYEK_AHANG_KHUDAM=43761]="MEETEI_MAYEK_AHANG_KHUDAM",e[e.MEETEI_MAYEK_CHEIKHEI=44011]="MEETEI_MAYEK_CHEIKHEI",e[e.PRESENTATION_FORM_FOR_VERTICAL_COMMA=65040]="PRESENTATION_FORM_FOR_VERTICAL_COMMA",e[e.PRESENTATION_FORM_FOR_VERTICAL_IDEOGRAPHIC_COMMA=65041]="PRESENTATION_FORM_FOR_VERTICAL_IDEOGRAPHIC_COMMA",e[e.PRESENTATION_FORM_FOR_VERTICAL_IDEOGRAPHIC_FULL_STOP=65042]="PRESENTATION_FORM_FOR_VERTICAL_IDEOGRAPHIC_FULL_STOP",e[e.PRESENTATION_FORM_FOR_VERTICAL_COLON=65043]="PRESENTATION_FORM_FOR_VERTICAL_COLON",e[e.PRESENTATION_FORM_FOR_VERTICAL_SEMICOLON=65044]="PRESENTATION_FORM_FOR_VERTICAL_SEMICOLON",e[e.PRESENTATION_FORM_FOR_VERTICAL_EXCLAMATION_MARK=65045]="PRESENTATION_FORM_FOR_VERTICAL_EXCLAMATION_MARK",e[e.PRESENTATION_FORM_FOR_VERTICAL_QUESTION_MARK=65046]="PRESENTATION_FORM_FOR_VERTICAL_QUESTION_MARK",e[e.PRESENTATION_FORM_FOR_VERTICAL_HORIZONTAL_ELLIPSIS=65049]="PRESENTATION_FORM_FOR_VERTICAL_HORIZONTAL_ELLIPSIS",e[e.PRESENTATION_FORM_FOR_VERTICAL_TWO_DOT_LEADER=65072]="PRESENTATION_FORM_FOR_VERTICAL_TWO_DOT_LEADER",e[e.SESAME_DOT=65093]="SESAME_DOT",e[e.WHITE_SESAME_DOT=65094]="WHITE_SESAME_DOT",e[e.DASHED_OVERLINE=65097]="DASHED_OVERLINE",e[e.CENTRELINE_OVERLINE=65098]="CENTRELINE_OVERLINE",e[e.WAVY_OVERLINE=65099]="WAVY_OVERLINE",e[e.DOUBLE_WAVY_OVERLINE=65100]="DOUBLE_WAVY_OVERLINE",e[e.SMALL_COMMA=65104]="SMALL_COMMA",e[e.SMALL_IDEOGRAPHIC_COMMA=65105]="SMALL_IDEOGRAPHIC_COMMA",e[e.SMALL_FULL_STOP=65106]="SMALL_FULL_STOP",e[e.SMALL_SEMICOLON=65108]="SMALL_SEMICOLON",e[e.SMALL_COLON=65109]="SMALL_COLON",e[e.SMALL_QUESTION_MARK=65110]="SMALL_QUESTION_MARK",e[e.SMALL_EXCLAMATION_MARK=65111]="SMALL_EXCLAMATION_MARK",e[e.SMALL_NUMBER_SIGN=65119]="SMALL_NUMBER_SIGN",e[e.SMALL_AMPERSAND=65120]="SMALL_AMPERSAND",e[e.SMALL_ASTERISK=65121]="SMALL_ASTERISK",e[e.SMALL_REVERSE_SOLIDUS=65128]="SMALL_REVERSE_SOLIDUS",e[e.SMALL_PERCENT_SIGN=65130]="SMALL_PERCENT_SIGN",e[e.SMALL_COMMERCIAL_AT=65131]="SMALL_COMMERCIAL_AT",e[e.FULLWIDTH_EXCLAMATION_MARK=65281]="FULLWIDTH_EXCLAMATION_MARK",e[e.FULLWIDTH_QUOTATION_MARK=65282]="FULLWIDTH_QUOTATION_MARK",e[e.FULLWIDTH_NUMBER_SIGN=65283]="FULLWIDTH_NUMBER_SIGN",e[e.FULLWIDTH_PERCENT_SIGN=65285]="FULLWIDTH_PERCENT_SIGN",e[e.FULLWIDTH_AMPERSAND=65286]="FULLWIDTH_AMPERSAND",e[e.FULLWIDTH_APOSTROPHE=65287]="FULLWIDTH_APOSTROPHE",e[e.FULLWIDTH_ASTERISK=65290]="FULLWIDTH_ASTERISK",e[e.FULLWIDTH_COMMA=65292]="FULLWIDTH_COMMA",e[e.FULLWIDTH_FULL_STOP=65294]="FULLWIDTH_FULL_STOP",e[e.FULLWIDTH_SOLIDUS=65295]="FULLWIDTH_SOLIDUS",e[e.FULLWIDTH_COLON=65306]="FULLWIDTH_COLON",e[e.FULLWIDTH_SEMICOLON=65307]="FULLWIDTH_SEMICOLON",e[e.FULLWIDTH_QUESTION_MARK=65311]="FULLWIDTH_QUESTION_MARK",e[e.FULLWIDTH_COMMERCIAL_AT=65312]="FULLWIDTH_COMMERCIAL_AT",e[e.FULLWIDTH_REVERSE_SOLIDUS=65340]="FULLWIDTH_REVERSE_SOLIDUS",e[e.HALFWIDTH_IDEOGRAPHIC_FULL_STOP=65377]="HALFWIDTH_IDEOGRAPHIC_FULL_STOP",e[e.HALFWIDTH_IDEOGRAPHIC_COMMA=65380]="HALFWIDTH_IDEOGRAPHIC_COMMA",e[e.HALFWIDTH_KATAKANA_MIDDLE_DOT=65381]="HALFWIDTH_KATAKANA_MIDDLE_DOT",e[e.AEGEAN_WORD_SEPARATOR_LINE=65792]="AEGEAN_WORD_SEPARATOR_LINE",e[e.AEGEAN_WORD_SEPARATOR_DOT=65793]="AEGEAN_WORD_SEPARATOR_DOT",e[e.AEGEAN_CHECK_MARK=65794]="AEGEAN_CHECK_MARK",e[e.UGARITIC_WORD_DIVIDER=66463]="UGARITIC_WORD_DIVIDER",e[e.OLD_PERSIAN_WORD_DIVIDER=66512]="OLD_PERSIAN_WORD_DIVIDER",e[e.CAUCASIAN_ALBANIAN_CITATION_MARK=66927]="CAUCASIAN_ALBANIAN_CITATION_MARK",e[e.IMPERIAL_ARAMAIC_SECTION_SIGN=67671]="IMPERIAL_ARAMAIC_SECTION_SIGN",e[e.PHOENICIAN_WORD_SEPARATOR=67871]="PHOENICIAN_WORD_SEPARATOR",e[e.LYDIAN_TRIANGULAR_MARK=67903]="LYDIAN_TRIANGULAR_MARK",e[e.KHAROSHTHI_PUNCTUATION_DOT=68176]="KHAROSHTHI_PUNCTUATION_DOT",e[e.KHAROSHTHI_PUNCTUATION_SMALL_CIRCLE=68177]="KHAROSHTHI_PUNCTUATION_SMALL_CIRCLE",e[e.KHAROSHTHI_PUNCTUATION_CIRCLE=68178]="KHAROSHTHI_PUNCTUATION_CIRCLE",e[e.KHAROSHTHI_PUNCTUATION_CRESCENT_BAR=68179]="KHAROSHTHI_PUNCTUATION_CRESCENT_BAR",e[e.KHAROSHTHI_PUNCTUATION_MANGALAM=68180]="KHAROSHTHI_PUNCTUATION_MANGALAM",e[e.KHAROSHTHI_PUNCTUATION_LOTUS=68181]="KHAROSHTHI_PUNCTUATION_LOTUS",e[e.KHAROSHTHI_PUNCTUATION_DANDA=68182]="KHAROSHTHI_PUNCTUATION_DANDA",e[e.KHAROSHTHI_PUNCTUATION_DOUBLE_DANDA=68183]="KHAROSHTHI_PUNCTUATION_DOUBLE_DANDA",e[e.KHAROSHTHI_PUNCTUATION_LINES=68184]="KHAROSHTHI_PUNCTUATION_LINES",e[e.OLD_SOUTH_ARABIAN_NUMERIC_INDICATOR=68223]="OLD_SOUTH_ARABIAN_NUMERIC_INDICATOR",e[e.MANICHAEAN_PUNCTUATION_STAR=68336]="MANICHAEAN_PUNCTUATION_STAR",e[e.MANICHAEAN_PUNCTUATION_FLEURON=68337]="MANICHAEAN_PUNCTUATION_FLEURON",e[e.MANICHAEAN_PUNCTUATION_DOUBLE_DOT_WITHIN_DOT=68338]="MANICHAEAN_PUNCTUATION_DOUBLE_DOT_WITHIN_DOT",e[e.MANICHAEAN_PUNCTUATION_DOT_WITHIN_DOT=68339]="MANICHAEAN_PUNCTUATION_DOT_WITHIN_DOT",e[e.MANICHAEAN_PUNCTUATION_DOT=68340]="MANICHAEAN_PUNCTUATION_DOT",e[e.MANICHAEAN_PUNCTUATION_TWO_DOTS=68341]="MANICHAEAN_PUNCTUATION_TWO_DOTS",e[e.MANICHAEAN_PUNCTUATION_LINE_FILLER=68342]="MANICHAEAN_PUNCTUATION_LINE_FILLER",e[e.AVESTAN_ABBREVIATION_MARK=68409]="AVESTAN_ABBREVIATION_MARK",e[e.TINY_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION=68410]="TINY_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION",e[e.SMALL_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION=68411]="SMALL_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION",e[e.LARGE_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION=68412]="LARGE_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION",e[e.LARGE_ONE_DOT_OVER_TWO_DOTS_PUNCTUATION=68413]="LARGE_ONE_DOT_OVER_TWO_DOTS_PUNCTUATION",e[e.LARGE_TWO_RINGS_OVER_ONE_RING_PUNCTUATION=68414]="LARGE_TWO_RINGS_OVER_ONE_RING_PUNCTUATION",e[e.LARGE_ONE_RING_OVER_TWO_RINGS_PUNCTUATION=68415]="LARGE_ONE_RING_OVER_TWO_RINGS_PUNCTUATION",e[e.PSALTER_PAHLAVI_SECTION_MARK=68505]="PSALTER_PAHLAVI_SECTION_MARK",e[e.PSALTER_PAHLAVI_TURNED_SECTION_MARK=68506]="PSALTER_PAHLAVI_TURNED_SECTION_MARK",e[e.PSALTER_PAHLAVI_FOUR_DOTS_WITH_CROSS=68507]="PSALTER_PAHLAVI_FOUR_DOTS_WITH_CROSS",e[e.PSALTER_PAHLAVI_FOUR_DOTS_WITH_DOT=68508]="PSALTER_PAHLAVI_FOUR_DOTS_WITH_DOT",e[e.SOGDIAN_PUNCTUATION_TWO_VERTICAL_BARS=69461]="SOGDIAN_PUNCTUATION_TWO_VERTICAL_BARS",e[e.SOGDIAN_PUNCTUATION_TWO_VERTICAL_BARS_WITH_DOTS=69462]="SOGDIAN_PUNCTUATION_TWO_VERTICAL_BARS_WITH_DOTS",e[e.SOGDIAN_PUNCTUATION_CIRCLE_WITH_DOT=69463]="SOGDIAN_PUNCTUATION_CIRCLE_WITH_DOT",e[e.SOGDIAN_PUNCTUATION_TWO_CIRCLES_WITH_DOTS=69464]="SOGDIAN_PUNCTUATION_TWO_CIRCLES_WITH_DOTS",e[e.SOGDIAN_PUNCTUATION_HALF_CIRCLE_WITH_DOT=69465]="SOGDIAN_PUNCTUATION_HALF_CIRCLE_WITH_DOT",e[e.BRAHMI_DANDA=69703]="BRAHMI_DANDA",e[e.BRAHMI_DOUBLE_DANDA=69704]="BRAHMI_DOUBLE_DANDA",e[e.BRAHMI_PUNCTUATION_DOT=69705]="BRAHMI_PUNCTUATION_DOT",e[e.BRAHMI_PUNCTUATION_DOUBLE_DOT=69706]="BRAHMI_PUNCTUATION_DOUBLE_DOT",e[e.BRAHMI_PUNCTUATION_LINE=69707]="BRAHMI_PUNCTUATION_LINE",e[e.BRAHMI_PUNCTUATION_CRESCENT_BAR=69708]="BRAHMI_PUNCTUATION_CRESCENT_BAR",e[e.BRAHMI_PUNCTUATION_LOTUS=69709]="BRAHMI_PUNCTUATION_LOTUS",e[e.KAITHI_ABBREVIATION_SIGN=69819]="KAITHI_ABBREVIATION_SIGN",e[e.KAITHI_ENUMERATION_SIGN=69820]="KAITHI_ENUMERATION_SIGN",e[e.KAITHI_SECTION_MARK=69822]="KAITHI_SECTION_MARK",e[e.KAITHI_DOUBLE_SECTION_MARK=69823]="KAITHI_DOUBLE_SECTION_MARK",e[e.KAITHI_DANDA=69824]="KAITHI_DANDA",e[e.KAITHI_DOUBLE_DANDA=69825]="KAITHI_DOUBLE_DANDA",e[e.CHAKMA_SECTION_MARK=69952]="CHAKMA_SECTION_MARK",e[e.CHAKMA_DANDA=69953]="CHAKMA_DANDA",e[e.CHAKMA_DOUBLE_DANDA=69954]="CHAKMA_DOUBLE_DANDA",e[e.CHAKMA_QUESTION_MARK=69955]="CHAKMA_QUESTION_MARK",e[e.MAHAJANI_ABBREVIATION_SIGN=70004]="MAHAJANI_ABBREVIATION_SIGN",e[e.MAHAJANI_SECTION_MARK=70005]="MAHAJANI_SECTION_MARK",e[e.SHARADA_DANDA=70085]="SHARADA_DANDA",e[e.SHARADA_DOUBLE_DANDA=70086]="SHARADA_DOUBLE_DANDA",e[e.SHARADA_ABBREVIATION_SIGN=70087]="SHARADA_ABBREVIATION_SIGN",e[e.SHARADA_SEPARATOR=70088]="SHARADA_SEPARATOR",e[e.SHARADA_SUTRA_MARK=70093]="SHARADA_SUTRA_MARK",e[e.SHARADA_SIGN_SIDDHAM=70107]="SHARADA_SIGN_SIDDHAM",e[e.SHARADA_CONTINUATION_SIGN=70109]="SHARADA_CONTINUATION_SIGN",e[e.SHARADA_SECTION_MARK_1=70110]="SHARADA_SECTION_MARK_1",e[e.SHARADA_SECTION_MARK_2=70111]="SHARADA_SECTION_MARK_2",e[e.KHOJKI_DANDA=70200]="KHOJKI_DANDA",e[e.KHOJKI_DOUBLE_DANDA=70201]="KHOJKI_DOUBLE_DANDA",e[e.KHOJKI_WORD_SEPARATOR=70202]="KHOJKI_WORD_SEPARATOR",e[e.KHOJKI_SECTION_MARK=70203]="KHOJKI_SECTION_MARK",e[e.KHOJKI_DOUBLE_SECTION_MARK=70204]="KHOJKI_DOUBLE_SECTION_MARK",e[e.KHOJKI_ABBREVIATION_SIGN=70205]="KHOJKI_ABBREVIATION_SIGN",e[e.MULTANI_SECTION_MARK=70313]="MULTANI_SECTION_MARK",e[e.NEWA_DANDA=70731]="NEWA_DANDA",e[e.NEWA_DOUBLE_DANDA=70732]="NEWA_DOUBLE_DANDA",e[e.NEWA_COMMA=70733]="NEWA_COMMA",e[e.NEWA_GAP_FILLER=70734]="NEWA_GAP_FILLER",e[e.NEWA_ABBREVIATION_SIGN=70735]="NEWA_ABBREVIATION_SIGN",e[e.NEWA_DOUBLE_COMMA=70746]="NEWA_DOUBLE_COMMA",e[e.NEWA_PLACEHOLDER_MARK=70747]="NEWA_PLACEHOLDER_MARK",e[e.NEWA_INSERTION_SIGN=70749]="NEWA_INSERTION_SIGN",e[e.TIRHUTA_ABBREVIATION_SIGN=70854]="TIRHUTA_ABBREVIATION_SIGN",e[e.SIDDHAM_SIGN_SIDDHAM=71105]="SIDDHAM_SIGN_SIDDHAM",e[e.SIDDHAM_DANDA=71106]="SIDDHAM_DANDA",e[e.SIDDHAM_DOUBLE_DANDA=71107]="SIDDHAM_DOUBLE_DANDA",e[e.SIDDHAM_SEPARATOR_DOT=71108]="SIDDHAM_SEPARATOR_DOT",e[e.SIDDHAM_SEPARATOR_BAR=71109]="SIDDHAM_SEPARATOR_BAR",e[e.SIDDHAM_REPETITION_MARK_1=71110]="SIDDHAM_REPETITION_MARK_1",e[e.SIDDHAM_REPETITION_MARK_2=71111]="SIDDHAM_REPETITION_MARK_2",e[e.SIDDHAM_REPETITION_MARK_3=71112]="SIDDHAM_REPETITION_MARK_3",e[e.SIDDHAM_END_OF_TEXT_MARK=71113]="SIDDHAM_END_OF_TEXT_MARK",e[e.SIDDHAM_SECTION_MARK_WITH_TRIDENT_AND_U_SHAPED_ORNAMENTS=71114]="SIDDHAM_SECTION_MARK_WITH_TRIDENT_AND_U_SHAPED_ORNAMENTS",e[e.SIDDHAM_SECTION_MARK_WITH_TRIDENT_AND_DOTTED_CRESCENTS=71115]="SIDDHAM_SECTION_MARK_WITH_TRIDENT_AND_DOTTED_CRESCENTS",e[e.SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_CRESCENTS=71116]="SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_CRESCENTS",e[e.SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_DOUBLE_CRESCENTS=71117]="SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_DOUBLE_CRESCENTS",e[e.SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_TRIPLE_CRESCENTS=71118]="SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_TRIPLE_CRESCENTS",e[e.SIDDHAM_SECTION_MARK_DOUBLE_RING=71119]="SIDDHAM_SECTION_MARK_DOUBLE_RING",e[e.SIDDHAM_SECTION_MARK_DOUBLE_RING_WITH_RAYS=71120]="SIDDHAM_SECTION_MARK_DOUBLE_RING_WITH_RAYS",e[e.SIDDHAM_SECTION_MARK_WITH_DOUBLE_CRESCENTS=71121]="SIDDHAM_SECTION_MARK_WITH_DOUBLE_CRESCENTS",e[e.SIDDHAM_SECTION_MARK_WITH_TRIPLE_CRESCENTS=71122]="SIDDHAM_SECTION_MARK_WITH_TRIPLE_CRESCENTS",e[e.SIDDHAM_SECTION_MARK_WITH_QUADRUPLE_CRESCENTS=71123]="SIDDHAM_SECTION_MARK_WITH_QUADRUPLE_CRESCENTS",e[e.SIDDHAM_SECTION_MARK_WITH_SEPTUPLE_CRESCENTS=71124]="SIDDHAM_SECTION_MARK_WITH_SEPTUPLE_CRESCENTS",e[e.SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_RAYS=71125]="SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_RAYS",e[e.SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_TWO_ENCLOSURES=71126]="SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_TWO_ENCLOSURES",e[e.SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_FOUR_ENCLOSURES=71127]="SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_FOUR_ENCLOSURES",e[e.MODI_DANDA=71233]="MODI_DANDA",e[e.MODI_DOUBLE_DANDA=71234]="MODI_DOUBLE_DANDA",e[e.MODI_ABBREVIATION_SIGN=71235]="MODI_ABBREVIATION_SIGN",e[e.MONGOLIAN_BIRGA_WITH_ORNAMENT=71264]="MONGOLIAN_BIRGA_WITH_ORNAMENT",e[e.MONGOLIAN_ROTATED_BIRGA=71265]="MONGOLIAN_ROTATED_BIRGA",e[e.MONGOLIAN_DOUBLE_BIRGA_WITH_ORNAMENT=71266]="MONGOLIAN_DOUBLE_BIRGA_WITH_ORNAMENT",e[e.MONGOLIAN_TRIPLE_BIRGA_WITH_ORNAMENT=71267]="MONGOLIAN_TRIPLE_BIRGA_WITH_ORNAMENT",e[e.MONGOLIAN_BIRGA_WITH_DOUBLE_ORNAMENT=71268]="MONGOLIAN_BIRGA_WITH_DOUBLE_ORNAMENT",e[e.MONGOLIAN_ROTATED_BIRGA_WITH_ORNAMENT=71269]="MONGOLIAN_ROTATED_BIRGA_WITH_ORNAMENT",e[e.MONGOLIAN_ROTATED_BIRGA_WITH_DOUBLE_ORNAMENT=71270]="MONGOLIAN_ROTATED_BIRGA_WITH_DOUBLE_ORNAMENT",e[e.MONGOLIAN_INVERTED_BIRGA=71271]="MONGOLIAN_INVERTED_BIRGA",e[e.MONGOLIAN_INVERTED_BIRGA_WITH_DOUBLE_ORNAMENT=71272]="MONGOLIAN_INVERTED_BIRGA_WITH_DOUBLE_ORNAMENT",e[e.MONGOLIAN_SWIRL_BIRGA=71273]="MONGOLIAN_SWIRL_BIRGA",e[e.MONGOLIAN_SWIRL_BIRGA_WITH_ORNAMENT=71274]="MONGOLIAN_SWIRL_BIRGA_WITH_ORNAMENT",e[e.MONGOLIAN_SWIRL_BIRGA_WITH_DOUBLE_ORNAMENT=71275]="MONGOLIAN_SWIRL_BIRGA_WITH_DOUBLE_ORNAMENT",e[e.MONGOLIAN_TURNED_SWIRL_BIRGA_WITH_DOUBLE_ORNAMENT=71276]="MONGOLIAN_TURNED_SWIRL_BIRGA_WITH_DOUBLE_ORNAMENT",e[e.AHOM_SIGN_SMALL_SECTION=71484]="AHOM_SIGN_SMALL_SECTION",e[e.AHOM_SIGN_SECTION=71485]="AHOM_SIGN_SECTION",e[e.AHOM_SIGN_RULAI=71486]="AHOM_SIGN_RULAI",e[e.DOGRA_ABBREVIATION_SIGN=71739]="DOGRA_ABBREVIATION_SIGN",e[e.DIVES_AKURU_DOUBLE_DANDA=72004]="DIVES_AKURU_DOUBLE_DANDA",e[e.DIVES_AKURU_GAP_FILLER=72005]="DIVES_AKURU_GAP_FILLER",e[e.DIVES_AKURU_END_OF_TEXT_MARK=72006]="DIVES_AKURU_END_OF_TEXT_MARK",e[e.NANDINAGARI_SIGN_SIDDHAM=72162]="NANDINAGARI_SIGN_SIDDHAM",e[e.ZANABAZAR_SQUARE_INITIAL_HEAD_MARK=72255]="ZANABAZAR_SQUARE_INITIAL_HEAD_MARK",e[e.ZANABAZAR_SQUARE_CLOSING_HEAD_MARK=72256]="ZANABAZAR_SQUARE_CLOSING_HEAD_MARK",e[e.ZANABAZAR_SQUARE_MARK_TSHEG=72257]="ZANABAZAR_SQUARE_MARK_TSHEG",e[e.ZANABAZAR_SQUARE_MARK_SHAD=72258]="ZANABAZAR_SQUARE_MARK_SHAD",e[e.ZANABAZAR_SQUARE_MARK_DOUBLE_SHAD=72259]="ZANABAZAR_SQUARE_MARK_DOUBLE_SHAD",e[e.ZANABAZAR_SQUARE_MARK_LONG_TSHEG=72260]="ZANABAZAR_SQUARE_MARK_LONG_TSHEG",e[e.ZANABAZAR_SQUARE_INITIAL_DOUBLE_LINED_HEAD_MARK=72261]="ZANABAZAR_SQUARE_INITIAL_DOUBLE_LINED_HEAD_MARK",e[e.ZANABAZAR_SQUARE_CLOSING_DOUBLE_LINED_HEAD_MARK=72262]="ZANABAZAR_SQUARE_CLOSING_DOUBLE_LINED_HEAD_MARK",e[e.SOYOMBO_MARK_TSHEG=72346]="SOYOMBO_MARK_TSHEG",e[e.SOYOMBO_MARK_SHAD=72347]="SOYOMBO_MARK_SHAD",e[e.SOYOMBO_MARK_DOUBLE_SHAD=72348]="SOYOMBO_MARK_DOUBLE_SHAD",e[e.SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN_AND_TRIPLE_FLAME=72350]="SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN_AND_TRIPLE_FLAME",e[e.SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN_AND_FLAME=72351]="SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN_AND_FLAME",e[e.SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN=72352]="SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN",e[e.SOYOMBO_TERMINAL_MARK_1=72353]="SOYOMBO_TERMINAL_MARK_1",e[e.SOYOMBO_TERMINAL_MARK_2=72354]="SOYOMBO_TERMINAL_MARK_2",e[e.BHAIKSUKI_DANDA=72769]="BHAIKSUKI_DANDA",e[e.BHAIKSUKI_DOUBLE_DANDA=72770]="BHAIKSUKI_DOUBLE_DANDA",e[e.BHAIKSUKI_WORD_SEPARATOR=72771]="BHAIKSUKI_WORD_SEPARATOR",e[e.BHAIKSUKI_GAP_FILLER_1=72772]="BHAIKSUKI_GAP_FILLER_1",e[e.BHAIKSUKI_GAP_FILLER_2=72773]="BHAIKSUKI_GAP_FILLER_2",e[e.MARCHEN_HEAD_MARK=72816]="MARCHEN_HEAD_MARK",e[e.MARCHEN_MARK_SHAD=72817]="MARCHEN_MARK_SHAD",e[e.MAKASAR_PASSIMBANG=73463]="MAKASAR_PASSIMBANG",e[e.MAKASAR_END_OF_SECTION=73464]="MAKASAR_END_OF_SECTION",e[e.TAMIL_PUNCTUATION_END_OF_TEXT=73727]="TAMIL_PUNCTUATION_END_OF_TEXT",e[e.CUNEIFORM_PUNCTUATION_SIGN_OLD_ASSYRIAN_WORD_DIVIDER=74864]="CUNEIFORM_PUNCTUATION_SIGN_OLD_ASSYRIAN_WORD_DIVIDER",e[e.CUNEIFORM_PUNCTUATION_SIGN_VERTICAL_COLON=74865]="CUNEIFORM_PUNCTUATION_SIGN_VERTICAL_COLON",e[e.CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_COLON=74866]="CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_COLON",e[e.CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_TRICOLON=74867]="CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_TRICOLON",e[e.CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_QUADCOLON=74868]="CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_QUADCOLON",e[e.MRO_DANDA=92782]="MRO_DANDA",e[e.MRO_DOUBLE_DANDA=92783]="MRO_DOUBLE_DANDA",e[e.BASSA_VAH_FULL_STOP=92917]="BASSA_VAH_FULL_STOP",e[e.PAHAWH_HMONG_SIGN_VOS_THOM=92983]="PAHAWH_HMONG_SIGN_VOS_THOM",e[e.PAHAWH_HMONG_SIGN_VOS_TSHAB_CEEB=92984]="PAHAWH_HMONG_SIGN_VOS_TSHAB_CEEB",e[e.PAHAWH_HMONG_SIGN_CIM_CHEEM=92985]="PAHAWH_HMONG_SIGN_CIM_CHEEM",e[e.PAHAWH_HMONG_SIGN_VOS_THIAB=92986]="PAHAWH_HMONG_SIGN_VOS_THIAB",e[e.PAHAWH_HMONG_SIGN_VOS_FEEM=92987]="PAHAWH_HMONG_SIGN_VOS_FEEM",e[e.PAHAWH_HMONG_SIGN_XAUS=92996]="PAHAWH_HMONG_SIGN_XAUS",e[e.MEDEFAIDRIN_COMMA=93847]="MEDEFAIDRIN_COMMA",e[e.MEDEFAIDRIN_FULL_STOP=93848]="MEDEFAIDRIN_FULL_STOP",e[e.MEDEFAIDRIN_SYMBOL_AIVA=93849]="MEDEFAIDRIN_SYMBOL_AIVA",e[e.MEDEFAIDRIN_EXCLAMATION_OH=93850]="MEDEFAIDRIN_EXCLAMATION_OH",e[e.OLD_CHINESE_HOOK_MARK=94178]="OLD_CHINESE_HOOK_MARK",e[e.DUPLOYAN_PUNCTUATION_CHINOOK_FULL_STOP=113823]="DUPLOYAN_PUNCTUATION_CHINOOK_FULL_STOP",e[e.SIGNWRITING_COMMA=121479]="SIGNWRITING_COMMA",e[e.SIGNWRITING_FULL_STOP=121480]="SIGNWRITING_FULL_STOP",e[e.SIGNWRITING_SEMICOLON=121481]="SIGNWRITING_SEMICOLON",e[e.SIGNWRITING_COLON=121482]="SIGNWRITING_COLON",e[e.SIGNWRITING_PARENTHESIS=121483]="SIGNWRITING_PARENTHESIS",e[e.ADLAM_INITIAL_EXCLAMATION_MARK=125278]="ADLAM_INITIAL_EXCLAMATION_MARK",e[e.ADLAM_INITIAL_QUESTION_MARK=125279]="ADLAM_INITIAL_QUESTION_MARK"})(T6||(T6={}));var I6;(function(e){e[e.LEFT_PARENTHESIS=40]="LEFT_PARENTHESIS",e[e.LEFT_SQUARE_BRACKET=91]="LEFT_SQUARE_BRACKET",e[e.LEFT_CURLY_BRACKET=123]="LEFT_CURLY_BRACKET",e[e.TIBETAN_MARK_GUG_RTAGS_GYON=3898]="TIBETAN_MARK_GUG_RTAGS_GYON",e[e.TIBETAN_MARK_ANG_KHANG_GYON=3900]="TIBETAN_MARK_ANG_KHANG_GYON",e[e.OGHAM_FEATHER_MARK=5787]="OGHAM_FEATHER_MARK",e[e.SINGLE_LOW_9_QUOTATION_MARK=8218]="SINGLE_LOW_9_QUOTATION_MARK",e[e.DOUBLE_LOW_9_QUOTATION_MARK=8222]="DOUBLE_LOW_9_QUOTATION_MARK",e[e.LEFT_SQUARE_BRACKET_WITH_QUILL=8261]="LEFT_SQUARE_BRACKET_WITH_QUILL",e[e.SUPERSCRIPT_LEFT_PARENTHESIS=8317]="SUPERSCRIPT_LEFT_PARENTHESIS",e[e.SUBSCRIPT_LEFT_PARENTHESIS=8333]="SUBSCRIPT_LEFT_PARENTHESIS",e[e.LEFT_CEILING=8968]="LEFT_CEILING",e[e.LEFT_FLOOR=8970]="LEFT_FLOOR",e[e.LEFT_POINTING_ANGLE_BRACKET=9001]="LEFT_POINTING_ANGLE_BRACKET",e[e.MEDIUM_LEFT_PARENTHESIS_ORNAMENT=10088]="MEDIUM_LEFT_PARENTHESIS_ORNAMENT",e[e.MEDIUM_FLATTENED_LEFT_PARENTHESIS_ORNAMENT=10090]="MEDIUM_FLATTENED_LEFT_PARENTHESIS_ORNAMENT",e[e.MEDIUM_LEFT_POINTING_ANGLE_BRACKET_ORNAMENT=10092]="MEDIUM_LEFT_POINTING_ANGLE_BRACKET_ORNAMENT",e[e.HEAVY_LEFT_POINTING_ANGLE_QUOTATION_MARK_ORNAMENT=10094]="HEAVY_LEFT_POINTING_ANGLE_QUOTATION_MARK_ORNAMENT",e[e.HEAVY_LEFT_POINTING_ANGLE_BRACKET_ORNAMENT=10096]="HEAVY_LEFT_POINTING_ANGLE_BRACKET_ORNAMENT",e[e.LIGHT_LEFT_TORTOISE_SHELL_BRACKET_ORNAMENT=10098]="LIGHT_LEFT_TORTOISE_SHELL_BRACKET_ORNAMENT",e[e.MEDIUM_LEFT_CURLY_BRACKET_ORNAMENT=10100]="MEDIUM_LEFT_CURLY_BRACKET_ORNAMENT",e[e.LEFT_S_SHAPED_BAG_DELIMITER=10181]="LEFT_S_SHAPED_BAG_DELIMITER",e[e.MATHEMATICAL_LEFT_WHITE_SQUARE_BRACKET=10214]="MATHEMATICAL_LEFT_WHITE_SQUARE_BRACKET",e[e.MATHEMATICAL_LEFT_ANGLE_BRACKET=10216]="MATHEMATICAL_LEFT_ANGLE_BRACKET",e[e.MATHEMATICAL_LEFT_DOUBLE_ANGLE_BRACKET=10218]="MATHEMATICAL_LEFT_DOUBLE_ANGLE_BRACKET",e[e.MATHEMATICAL_LEFT_WHITE_TORTOISE_SHELL_BRACKET=10220]="MATHEMATICAL_LEFT_WHITE_TORTOISE_SHELL_BRACKET",e[e.MATHEMATICAL_LEFT_FLATTENED_PARENTHESIS=10222]="MATHEMATICAL_LEFT_FLATTENED_PARENTHESIS",e[e.LEFT_WHITE_CURLY_BRACKET=10627]="LEFT_WHITE_CURLY_BRACKET",e[e.LEFT_WHITE_PARENTHESIS=10629]="LEFT_WHITE_PARENTHESIS",e[e.Z_NOTATION_LEFT_IMAGE_BRACKET=10631]="Z_NOTATION_LEFT_IMAGE_BRACKET",e[e.Z_NOTATION_LEFT_BINDING_BRACKET=10633]="Z_NOTATION_LEFT_BINDING_BRACKET",e[e.LEFT_SQUARE_BRACKET_WITH_UNDERBAR=10635]="LEFT_SQUARE_BRACKET_WITH_UNDERBAR",e[e.LEFT_SQUARE_BRACKET_WITH_TICK_IN_TOP_CORNER=10637]="LEFT_SQUARE_BRACKET_WITH_TICK_IN_TOP_CORNER",e[e.LEFT_SQUARE_BRACKET_WITH_TICK_IN_BOTTOM_CORNER=10639]="LEFT_SQUARE_BRACKET_WITH_TICK_IN_BOTTOM_CORNER",e[e.LEFT_ANGLE_BRACKET_WITH_DOT=10641]="LEFT_ANGLE_BRACKET_WITH_DOT",e[e.LEFT_ARC_LESS_THAN_BRACKET=10643]="LEFT_ARC_LESS_THAN_BRACKET",e[e.DOUBLE_LEFT_ARC_GREATER_THAN_BRACKET=10645]="DOUBLE_LEFT_ARC_GREATER_THAN_BRACKET",e[e.LEFT_BLACK_TORTOISE_SHELL_BRACKET=10647]="LEFT_BLACK_TORTOISE_SHELL_BRACKET",e[e.LEFT_WIGGLY_FENCE=10712]="LEFT_WIGGLY_FENCE",e[e.LEFT_DOUBLE_WIGGLY_FENCE=10714]="LEFT_DOUBLE_WIGGLY_FENCE",e[e.LEFT_POINTING_CURVED_ANGLE_BRACKET=10748]="LEFT_POINTING_CURVED_ANGLE_BRACKET",e[e.TOP_LEFT_HALF_BRACKET=11810]="TOP_LEFT_HALF_BRACKET",e[e.BOTTOM_LEFT_HALF_BRACKET=11812]="BOTTOM_LEFT_HALF_BRACKET",e[e.LEFT_SIDEWAYS_U_BRACKET=11814]="LEFT_SIDEWAYS_U_BRACKET",e[e.LEFT_DOUBLE_PARENTHESIS=11816]="LEFT_DOUBLE_PARENTHESIS",e[e.DOUBLE_LOW_REVERSED_9_QUOTATION_MARK=11842]="DOUBLE_LOW_REVERSED_9_QUOTATION_MARK",e[e.LEFT_ANGLE_BRACKET=12296]="LEFT_ANGLE_BRACKET",e[e.LEFT_DOUBLE_ANGLE_BRACKET=12298]="LEFT_DOUBLE_ANGLE_BRACKET",e[e.LEFT_CORNER_BRACKET=12300]="LEFT_CORNER_BRACKET",e[e.LEFT_WHITE_CORNER_BRACKET=12302]="LEFT_WHITE_CORNER_BRACKET",e[e.LEFT_BLACK_LENTICULAR_BRACKET=12304]="LEFT_BLACK_LENTICULAR_BRACKET",e[e.LEFT_TORTOISE_SHELL_BRACKET=12308]="LEFT_TORTOISE_SHELL_BRACKET",e[e.LEFT_WHITE_LENTICULAR_BRACKET=12310]="LEFT_WHITE_LENTICULAR_BRACKET",e[e.LEFT_WHITE_TORTOISE_SHELL_BRACKET=12312]="LEFT_WHITE_TORTOISE_SHELL_BRACKET",e[e.LEFT_WHITE_SQUARE_BRACKET=12314]="LEFT_WHITE_SQUARE_BRACKET",e[e.REVERSED_DOUBLE_PRIME_QUOTATION_MARK=12317]="REVERSED_DOUBLE_PRIME_QUOTATION_MARK",e[e.ORNATE_RIGHT_PARENTHESIS=64831]="ORNATE_RIGHT_PARENTHESIS",e[e.PRESENTATION_FORM_FOR_VERTICAL_LEFT_WHITE_LENTICULAR_BRACKET=65047]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_WHITE_LENTICULAR_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_LEFT_PARENTHESIS=65077]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_PARENTHESIS",e[e.PRESENTATION_FORM_FOR_VERTICAL_LEFT_CURLY_BRACKET=65079]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_CURLY_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_LEFT_TORTOISE_SHELL_BRACKET=65081]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_TORTOISE_SHELL_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_LEFT_BLACK_LENTICULAR_BRACKET=65083]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_BLACK_LENTICULAR_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_LEFT_DOUBLE_ANGLE_BRACKET=65085]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_DOUBLE_ANGLE_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_LEFT_ANGLE_BRACKET=65087]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_ANGLE_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_LEFT_CORNER_BRACKET=65089]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_CORNER_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_LEFT_WHITE_CORNER_BRACKET=65091]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_WHITE_CORNER_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_LEFT_SQUARE_BRACKET=65095]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_SQUARE_BRACKET",e[e.SMALL_LEFT_PARENTHESIS=65113]="SMALL_LEFT_PARENTHESIS",e[e.SMALL_LEFT_CURLY_BRACKET=65115]="SMALL_LEFT_CURLY_BRACKET",e[e.SMALL_LEFT_TORTOISE_SHELL_BRACKET=65117]="SMALL_LEFT_TORTOISE_SHELL_BRACKET",e[e.FULLWIDTH_LEFT_PARENTHESIS=65288]="FULLWIDTH_LEFT_PARENTHESIS",e[e.FULLWIDTH_LEFT_SQUARE_BRACKET=65339]="FULLWIDTH_LEFT_SQUARE_BRACKET",e[e.FULLWIDTH_LEFT_CURLY_BRACKET=65371]="FULLWIDTH_LEFT_CURLY_BRACKET",e[e.FULLWIDTH_LEFT_WHITE_PARENTHESIS=65375]="FULLWIDTH_LEFT_WHITE_PARENTHESIS",e[e.HALFWIDTH_LEFT_CORNER_BRACKET=65378]="HALFWIDTH_LEFT_CORNER_BRACKET"})(I6||(I6={}));var C6;(function(e){e[e.SPACE=32]="SPACE",e[e.NO_BREAK_SPACE=160]="NO_BREAK_SPACE",e[e.OGHAM_SPACE_MARK=5760]="OGHAM_SPACE_MARK",e[e.EN_QUAD=8192]="EN_QUAD",e[e.EM_QUAD=8193]="EM_QUAD",e[e.EN_SPACE=8194]="EN_SPACE",e[e.EM_SPACE=8195]="EM_SPACE",e[e.THREE_PER_EM_SPACE=8196]="THREE_PER_EM_SPACE",e[e.FOUR_PER_EM_SPACE=8197]="FOUR_PER_EM_SPACE",e[e.SIX_PER_EM_SPACE=8198]="SIX_PER_EM_SPACE",e[e.FIGURE_SPACE=8199]="FIGURE_SPACE",e[e.PUNCTUATION_SPACE=8200]="PUNCTUATION_SPACE",e[e.THIN_SPACE=8201]="THIN_SPACE",e[e.HAIR_SPACE=8202]="HAIR_SPACE",e[e.NARROW_NO_BREAK_SPACE=8239]="NARROW_NO_BREAK_SPACE",e[e.MEDIUM_MATHEMATICAL_SPACE=8287]="MEDIUM_MATHEMATICAL_SPACE",e[e.IDEOGRAPHIC_SPACE=12288]="IDEOGRAPHIC_SPACE"})(C6||(C6={}));var Rr;(function(e){e[e.LINE_END=-1]="LINE_END",e[e.SPACE=-2]="SPACE"})(Rr||(Rr={}));function Uv(e){const t=[...new Set(e)].sort((o,i)=>o-i),r=t.length;if(r<8)return[o=>{for(let i=0;is+i);++i);n.push(s,s+i)}if(n.length*1.5{for(let s=0;s{let s=0,a=o;for(;s>>1;i{let i=0,s=r;for(;i>>1;otypeof t=="number")}Uv([G.HT,G.LF,G.VT,G.FF,G.CR,G.SPACE]);const[L0t,j0t]=Uv([G.EXCLAMATION_MARK,G.DOUBLE_QUOTE,G.NUMBER_SIGN,G.DOLLAR_SIGN,G.PERCENT_SIGN,G.AMPERSAND,G.SINGLE_QUOTE,G.OPEN_PARENTHESIS,G.CLOSE_PARENTHESIS,G.ASTERISK,G.PLUS_SIGN,G.COMMA,G.MINUS_SIGN,G.DOT,G.SLASH,G.COLON,G.SEMICOLON,G.OPEN_ANGLE,G.EQUALS_SIGN,G.CLOSE_ANGLE,G.QUESTION_MARK,G.AT_SIGN,G.OPEN_BRACKET,G.BACKSLASH,G.CLOSE_BRACKET,G.CARET,G.UNDERSCORE,G.BACKTICK,G.OPEN_BRACE,G.VERTICAL_SLASH,G.CLOSE_BRACE,G.TILDE]),vc=e=>e>=G.DIGIT0&&e<=G.DIGIT9,qz=e=>e>=G.LOWERCASE_A&&e<=G.LOWERCASE_Z,$E=e=>e>=G.UPPERCASE_A&&e<=G.UPPERCASE_Z,w1=e=>qz(e)||$E(e),Zve=e=>qz(e)||$E(e)||vc(e),z0t=e=>e>=G.NUL&&e<=G.DELETE,[Wz,kbt]=Uv([G.NUL,G.SOH,G.STX,G.ETX,G.EOT,G.ENQ,G.ACK,G.BEL,G.BS,G.HT,G.LF,G.VT,G.FF,G.CR,G.SO,G.SI,G.DLE,G.DC1,G.DC2,G.DC3,G.DC4,G.NAK,G.SYN,G.ETB,G.CAN,G.EM,G.SUB,G.ESC,G.FS,G.GS,G.RS,G.US,G.DELETE]),[Mi,xbt]=Uv([G.VT,G.FF,G.SPACE,Rr.SPACE,Rr.LINE_END]);G.SPACE,Rr.SPACE;const mc=e=>e===G.SPACE||e===Rr.SPACE,Kz=e=>e===Rr.LINE_END,[s0,Tbt]=Uv([...j0t,...vd(S6),...vd(w6),...vd(A6),...vd(k6),...vd(x6),...vd(T6),...vd(I6)]),$3=e=>mc(e)||Kz(e),[Th,Ibt]=Uv([G.HT,G.LF,G.FF,G.CR,Rr.SPACE,Rr.LINE_END,...vd(C6)]);var x_;(function(e){e[e.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER"})(x_||(x_={}));function H0t(){const e=(o,i)=>{if(o.length<=4){for(let u=0;u=i)return u;return o.length}let s=0,a=o.length;for(;s>>1;o[u].key{let s=t;for(const a of o){const u=e(s.children,a);if(u>=s.children.length){const c={key:a,children:[]};s.children.push(c),s=c;continue}let l=s.children[u];if(l.key===a){s=l;continue}l={key:a,children:[]},s.children.splice(u,0,l),s=l}s.value=i},search:(o,i,s)=>{let a=t;for(let u=i;u=a.children.length)return null;const f=a.children[c];if(f.key!==l)return null;if(f.value!=null)return{nextIndex:u+1,value:f.value};a=f}return null}}}const Jve=H0t();M0t.forEach(e=>Jve.insert(e.key,e.value));function $0t(e,t,r){if(t+1>=r)return null;const n=Jve.search(e,t,r);if(n!=null)return n;if(e[t].codePoint!==G.NUMBER_SIGN)return null;let o=0,i=t+1;if(e[i].codePoint===G.LOWERCASE_X||e[i].codePoint===G.UPPERCASE_X){i+=1;for(let a=1;a<=6&&i=G.UPPERCASE_A&&u<=G.UPPERCASE_F){o=(o<<4)+(u-G.UPPERCASE_A+10);continue}if(u>=G.LOWERCASE_A&&u<=G.LOWERCASE_F){o=(o<<4)+(u-G.LOWERCASE_A+10);continue}break}}else for(let a=1;a<=7&&i=r||e[i].codePoint!==G.SEMICOLON)return null;let s;try{o===0&&(o=x_.REPLACEMENT_CHARACTER),s=String.fromCodePoint(o)}catch{s=String.fromCodePoint(x_.REPLACEMENT_CHARACTER)}return{nextIndex:i+1,value:s}}function P0t(e){return Array.from(e).map(t=>B0t[t]??t).join("")}(()=>{try{const e=new RegExp("\\p{Script=Han}|[\\u{3002}\\u{ff1f}\\u{ff01}\\u{ff0c}\\u{3001}\\u{ff1b}\\u{ff1a}\\u{201c}\\u{201d}\\u{2018}\\u{2019}\\u{ff08}\\u{ff09}\\u{300a}\\u{300b}\\u{3008}\\u{3009}\\u{3010}\\u{3011}\\u{300e}\\u{300f}\\u{300c}\\u{300d}\\u{fe43}\\u{fe44}\\u{3014}\\u{3015}\\u{2026}\\u{2014}\\u{ff5e}\\u{fe4f}\\u{ffe5}]","u").source,t=new RegExp(`(${e})\\n+(${e})`,"gu");return r=>r.replace(t,"$1$2")}catch{const e=/[\u{4E00}-\u{9FCC}\u{3400}-\u{4DB5}\u{FA0E}\u{FA0F}\u{FA11}\u{FA13}\u{FA14}\u{FA1F}\u{FA21}\u{FA23}\u{FA24}\u{FA27}-\u{FA29}]|[\u{d840}-\u{d868}][\u{dc00}-\u{dfff}]|\u{d869}[\u{dc00}-\u{ded6}\u{df00}-\u{dfff}]|[\u{d86a}-\u{d86c}][\u{dc00}-\u{dfff}]|\u{d86d}[\u{dc00}-\u{df34}\u{df40}-\u{dfff}]|\u{d86e}[\u{dc00}-\u{dc1d}]/u.source,t=new RegExp(`(${e})\\n+(${e})`,"gu");return r=>r.replace(t,"$1$2")}})();(()=>{try{const e=new RegExp("\\p{Script=Han}|[\\u{3002}\\u{ff1f}\\u{ff01}\\u{ff0c}\\u{3001}\\u{ff1b}\\u{ff1a}\\u{201c}\\u{201d}\\u{2018}\\u{2019}\\u{ff08}\\u{ff09}\\u{300a}\\u{300b}\\u{3008}\\u{3009}\\u{3010}\\u{3011}\\u{300e}\\u{300f}\\u{300c}\\u{300d}\\u{fe43}\\u{fe44}\\u{3014}\\u{3015}\\u{2026}\\u{2014}\\u{ff5e}\\u{fe4f}\\u{ffe5}]","u").source,t=new RegExp(`(${e})[\\s\\n]+(${e})`,"gu");return r=>r.replace(t,"$1$2")}catch{const e=/[\u{4E00}-\u{9FCC}\u{3400}-\u{4DB5}\u{FA0E}\u{FA0F}\u{FA11}\u{FA13}\u{FA14}\u{FA1F}\u{FA21}\u{FA23}\u{FA24}\u{FA27}-\u{FA29}]|[\u{d840}-\u{d868}][\u{dc00}-\u{dfff}]|\u{d869}[\u{dc00}-\u{ded6}\u{df00}-\u{dfff}]|[\u{d86a}-\u{d86c}][\u{dc00}-\u{dfff}]|\u{d86d}[\u{dc00}-\u{df34}\u{df40}-\u{dfff}]|\u{d86e}[\u{dc00}-\u{dc1d}]/u.source,t=new RegExp(`(${e})[\\s\\n]+(${e})`,"gu");return r=>r.replace(t,"$1$2")}})();function*q0t(e){let t=0,r=1,n=1;const o=typeof e=="string"?[e]:e;for(const i of o){const s=[];for(const l of i){const c=l.codePointAt(0);s.push(c)}const a=[],u=s.length;for(let l=0;l>2,l=s-i&3;for(let c=0;c>2,l=s-i&3;for(let c=0;c!0;if(e instanceof Function)return e;if(e.length===0)return()=>!1;if(e.length===1){const t=e[0];return r=>r.type===t}if(e.length===2){const[t,r]=e;return n=>n.type===t||n.type===r}return t=>{for(const r of e)if(t.type===r)return!0;return!1}}function K0t(e,t,r){const n=W0t(t),o=i=>{const{children:s}=i;for(let a=0;a{const n={};K0t(e,t,s=>{const a=s;n[a.identifier]===void 0&&(n[a.identifier]=a)});const o=[];for(const s of r)n[s.identifier]===void 0&&(n[s.identifier]=s,o.push(s));return{root:o.length>0?{...e,children:e.children.concat(o)}:e,definitionMap:n}},Kn=hi({root:{"--colorBgBlockquote":"none","--colorBgTableHead":"hsl(0deg, 0%, 94%)","--colorBgTableEvenRow":"hsl(0deg, 0%, 96%)","--colorBgTableOddRow":"hsl(0deg, 0%, 100%)","--colorBorderBlockquote":"hsl(210deg, 13%, 85%)","--colorBorderHeading":"hsl(0deg, 0%, 80%)","--colorBorderImage":"hsl(277deg, 19%, 47%)","--colorBorderTable":"hsl(220deg, 7%, 90%)","--colorBgCode":"#f5f7f9","--colorDelete":"hsl(210deg, 8%, 65%)","--colorHeading":"hsl(0deg, 0%, 25%)","--colorImageTitle":"hsl(0deg, 0%, 50%)","--colorInlineCode":"hsl(348deg, 60%, 47%)","--colorLink":"hsl(206deg, 53%, 47%)","--colorLinkActive":"hsl(206deg, 53%, 52%)","--colorLinkHover":"hsl(206deg, 53%, 52%)","--colorLinkVisited":"hsl(206deg, 53%, 47%)","--fontFamilyCode":"Consolas, 'Source Code Pro', 'Roboto Mono', monospace, sans-serif","--fontFamilyHeading":"Consolas, 'Source Code Pro', 'Roboto Mono', monospace, sans-serif"},rootDarken:{"&&":{"--colorBgBlockquote":"none","--colorBgTableHead":"hsl(200deg, 10%, 16%)","--colorBgTableEvenRow":"hsl(200deg, 10%, 16%)","--colorBgTableOddRow":"hsl(0deg, 0%, 9%)","--colorBorderBlockquote":"hsl(207deg, 7%, 45%)","--colorBorderHeading":"hsla(0deg, 0%, 30%, 0.8)","--colorBorderImage":"hsl(290deg, 15%, 49%)","--colorBorderTable":"hsl(0deg, 0%, 50%)","--colorBgCode":"hsl(0deg, 0%, 12%)","--colorDelete":"hsl(220deg, 5%, 68%)","--colorHeading":"hsl(0deg, 0%, 65%)","--colorImageTitle":"hsl(0deg, 0%, 50%)","--colorInlineCode":"hsl(348deg, 70%, 52%)","--colorLink":"hsl(207deg, 53%, 50%)","--colorLinkActive":"hsl(207deg, 53%, 50%)","--colorLinkHover":"hsl(207deg, 53%, 50%)","--colorLinkVisited":"hsl(207deg, 53%, 50%)","--fontFamilyCode":"Consolas, 'Source Code Pro', 'Roboto Mono', monospace, sans-serif","--fontFamilyHeading":"Consolas, 'Source Code Pro', 'Roboto Mono', monospace, sans-serif"}},blockquote:{},break:{},code:{},delete:{},emphasis:{},heading:{},image:{},imageReference:{},inlineCode:{},link:{},linkReference:{},list:{},listItem:{},paragraph:{},strong:{},table:{},text:{},thematicBreak:{}}),Gz=re.createContext(null);Gz.displayName="NodeRendererContextType";const I5=()=>re.useContext(Gz);class V0t extends Epe{constructor(t){super(),this.preferCodeWrap$=new qo(!1);const{definitionMap:r,rendererMap:n,showCodeLineno:o,themeScheme:i}=t;this.definitionMap$=new qo(r),this.rendererMap$=new qo(n),this.showCodeLineno$=new qo(o),this.themeScheme$=new qo(i)}}const ka=e=>{const{nodes:t}=e,{viewmodel:r}=I5(),n=ro(r.rendererMap$);return!Array.isArray(t)||t.length<=0?N.jsx(re.Fragment,{}):N.jsx(U0t,{nodes:t,rendererMap:n})};class U0t extends re.Component{shouldComponentUpdate(t){const r=this.props;return!Ub.isEqual(r.nodes,t.nodes)||r.rendererMap!==t.rendererMap}render(){const{nodes:t,rendererMap:r}=this.props;return N.jsx(re.Fragment,{children:t.map((n,o)=>{const i=`${n.type}-${o}`,s=r[n.type]??r._fallback;return N.jsx(s,{...n},i)})})}}var Pl;(function(e){e.BLOCK="block",e.INLINE="inline"})(Pl||(Pl={}));var Un;(function(e){e[e.ATOMIC=10]="ATOMIC",e[e.FENCED_BLOCK=10]="FENCED_BLOCK",e[e.CONTAINING_BLOCK=10]="CONTAINING_BLOCK",e[e.INTERRUPTABLE_BLOCK=2]="INTERRUPTABLE_BLOCK",e[e.IMAGES=4]="IMAGES",e[e.LINKS=3]="LINKS",e[e.CONTAINING_INLINE=2]="CONTAINING_INLINE",e[e.SOFT_INLINE=1]="SOFT_INLINE",e[e.FALLBACK=-1]="FALLBACK"})(Un||(Un={}));class Ic{constructor(t){ze(this,"type",Pl.INLINE);ze(this,"name");ze(this,"priority");this.name=t.name,this.priority=t.priority}toString(){return this.name}}function*Kf(e){let t=-1,r=null;for(;;){const[n,o]=yield r;t===o&&(r==null||r.startIndex>=n)||(t=o,r=e(n,o))}}class Cc{constructor(t){ze(this,"type",Pl.BLOCK);ze(this,"name");ze(this,"priority");this.name=t.name,this.priority=t.priority}extractPhrasingContentLines(t){return null}buildBlockToken(t,r){return null}toString(){return this.name}}function El(e,t){const{line:r,column:n,offset:o}=e[t];return{line:r,column:n,offset:o}}function Ls(e,t){const{line:r,column:n,offset:o}=e[t];return{line:r,column:n+1,offset:o+1}}function eme(e){const t=e[0],r=e[e.length-1];return{start:El(t.nodePoints,t.startIndex),end:Ls(r.nodePoints,r.endIndex-1)}}function Vz(e,t=0,r=e.length){if(t>=r||t<0||r>e.length)return[];const n=[];for(let o=t;o=r||t<0||r>e.length)return[];for(let u=t;u+1=0;--a){const u=o[a];if(!Mi(u.codePoint))break}for(let u=s;u<=a;++u)n.push(o[u]);return n}function Y0t(e){let t=e;for(;;)try{const r=decodeURIComponent(t);if(r===t)break;t=r}catch{break}return encodeURI(t)}function tme(e){const t=e.trim().replace(/\s+/gu," ").toLowerCase();return P0t(t)}function X0t(e,t,r){const n=_u(e,t,r,!0);if(n.length<=0)return null;const o=tme(n);return{label:n,identifier:o}}function G0(e,t,r){let n=t+1;const o=Math.min(n+1e3,r);for(;nt;--r){const n=e[r];if(n.firstNonWhitespaceIndexr?[]:e.slice(t,r+1)}const Z0t="Invariant failed";function fb(e,t){if(!e)throw new Error(Z0t)}const nme=(e,t)=>{const r={_tokenizer:"root",nodeType:"root",position:{start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}},children:[]},n=[];n.push({hook:{isContainingBlock:!0},token:r});let o=0;const i=h=>{for(let g=o;g>=0;--g){const v=n[g];v.token.position.end={...h}}},s=(h,g)=>{if(g.length<=0)return null;const v=e.filter(E=>E!==h),y=nme(v,t);for(const E of g)y.consume(E);return y},a=()=>{const h=n.pop();if(h!=null){if(n.length>0){const g=n[n.length-1];if(h.hook.onClose!=null){const v=h.hook.onClose(h.token);if(v!=null)switch(v.status){case"closingAndRollback":{const y=s(h.hook,v.lines);if(y==null)break;const E=y.done();g.token.children.push(...E.children);break}case"failedAndRollback":{g.token.children.pop();const y=s(h.hook,v.lines);if(y==null)break;const E=y.done();g.token.children.push(...E.children);break}}}}return o>=n.length&&(o=n.length-1),h}},u=h=>{for(;n.length>h;)a()},l=(h,g,v)=>{u(o+1),n[o].token.children.push(g),i(g.position.end),o+=1,n.push({hook:h,token:g}),v&&a()},c=(h,g,v)=>{const y=s(h,g);if(y==null)return!1;const E=y.shallowSnapshot(),_=E[0];_.token.children!=null&&v.token.children.push(..._.token.children),i(_.token.position.end);for(let S=1;S{const{nodePoints:g,startIndex:v,endIndex:y}=h;let{firstNonWhitespaceIndex:E,countOfPrecedeSpaces:_,startIndex:S}=h;const b=()=>({nodePoints:g,startIndex:S,endIndex:y,firstNonWhitespaceIndex:E,countOfPrecedeSpaces:_}),A=(D,L)=>{if(fb(S<=D),L){const M=Ls(g,D-1);i(M)}if(S!==D)for(S=D,_=0,E=D;E{const{token:M}=n[o],q=D.eatOpener(L,M);if(q==null)return!1;fb(q.nextIndex>S,`[consumeNewOpener] The marker of the new data node cannot be empty. + tokenizer(${q.token._tokenizer})`),A(q.nextIndex,!1);const z=q.token;return z._tokenizer=D.name,l(D,z,!!q.saturated),!0},x=(D,L)=>{if(D.eatAndInterruptPreviousSibling==null)return!1;const{hook:M,token:q}=n[o],{token:z}=n[o-1];if(D.priority<=M.priority)return!1;const F=D.eatAndInterruptPreviousSibling(L,q,z);if(F==null)return!1;u(o),z.children.pop(),F.remainingSibling!=null&&(Array.isArray(F.remainingSibling)?z.children.push(...F.remainingSibling):z.children.push(F.remainingSibling)),A(F.nextIndex,!1);const $=F.token;return $._tokenizer=D.name,l(D,$,!!F.saturated),!0},C=()=>{if(o=1,n.length<2)return;let{token:D}=n[o-1];for(;SK!==M&&x(K,q)))break;const z=M.eatContinuationText==null?{status:"notMatched"}:M.eatContinuationText(q,L.token,D);let F=!1,$=!1;switch(z.status){case"failedAndRollback":{if(D.children.pop(),n.length=o,o-=1,z.lines.length>0){const K=n[o];if(c(M,z.lines,K)){$=!0;break}}F=!0;break}case"closingAndRollback":{if(u(o),z.lines.length>0){const K=n[o];if(c(M,z.lines,K)){$=!0;break}}F=!0;break}case"notMatched":{o-=1,F=!0;break}case"closing":{A(z.nextIndex,!0),o-=1,F=!0;break}case"opening":{A(z.nextIndex,!0);break}default:throw new TypeError(`[eatContinuationText] unexpected status (${z.status}).`)}if(F)break;$||(o+=1,D=L.token)}},I=()=>{if(!(S>=y)){if(o=4)return}else o=n.length-1;for(;S{if(S>=y||o+1>=n.length)return!1;const{hook:D,token:L}=n[n.length-1];if(D.eatLazyContinuationText==null)return!1;const{token:M}=n[n.length-2],q=b(),z=D.eatLazyContinuationText(q,L,M);switch(z.status){case"notMatched":return!1;case"opening":return o=n.length-1,A(z.nextIndex,!0),o=n.length-1,!0;default:throw new TypeError(`[eatLazyContinuationText] unexpected status (${z.status}).`)}};if(C(),I(),R()||u(o+1),t!=null&&S=y)},done:()=>{for(;n.length>1;)a();return r},shallowSnapshot:()=>[...n]}},J0t=()=>{let e=0;const t=[],r=[],n=[],o=f=>{let d=f-1;for(;d>=0&&r[d].inactive;)d-=1;r.length=d+1},i=(f,d)=>{r.push({hook:f,delimiter:d,inactive:!1,tokenStackIndex:n.length})},s=(f,d)=>{if(r.length<=0)return null;let h=null;for(let g=r.length-1;g>=0;--g){if(h=r[g],h.inactive||h.hook!==f)continue;const v=h.delimiter,y=f.isDelimiterPair(v,d,t);if(y.paired)return v;if(!y.closer)return null}return null},a=(f,d)=>{if(r.length<=0)return d;let h,g=d,v=[];for(let y=r.length-1;y>=0;--y){const E=r[y];if(E.hook!==f||E.inactive)continue;const _=E.tokenStackIndex;for(_0){for(const T of A)T._tokenizer=f.name;v.unshift(...A)}h=void 0,E.inactive=!0}if(!S.closer){const A=f.processSingleDelimiter(g);if(A.length>0){for(const T of A)T._tokenizer=f.name;v.push(...A)}g=void 0}break}const b=f.processDelimiterPair(h,g,v);{for(const A of b.tokens)A._tokenizer==null&&(A._tokenizer=f.name);v=b.tokens}h=b.remainOpenerDelimiter,g=b.remainCloserDelimiter,o(y),y=Math.min(y,r.length),h!=null&&i(f,h)}if(g==null||g.type==="full")break}if(n.push(...v),g==null)return null;if(g.type==="full"||g.type==="closer"){const y=f.processSingleDelimiter(g);for(const E of y)E._tokenizer=f.name,n.push(E);return null}return g};return{process:(f,d)=>{for(;e=d.endIndex)break;h.startIndex>=d.startIndex||n.push(h)}switch(d.type){case"opener":{i(f,d);break}case"both":{const h=a(f,d);h!=null&&i(f,h);break}case"closer":{a(f,d);break}case"full":{const h=f.processSingleDelimiter(d);for(const g of h)g._tokenizer=f.name,n.push(g);break}default:throw new TypeError(`Unexpected delimiter type(${d.type}) from ${f.name}.`)}},done:()=>{const f=[];for(const{delimiter:h,hook:g}of r){const v=g.processSingleDelimiter(h);for(const y of v)y._tokenizer=g.name,f.push(y)}if(r.length=0,f.length>0){const h=egt(n,f);n.length=0,n.push(...h)}return n.concat(t.slice(e))},reset:f=>{t.length=f.length;for(let d=0;d{if(e.length<=0)return t;if(t.length<=0)return e;const r=[];let n=0,o=0;for(;n{const r=(i,s,a)=>{let u=[],l=null;const c=[i,s];for(const d of a){const h=d.findDelimiter(c);if(h!=null){if(l!=null){if(h.startIndex>l)continue;h.startIndex1){let d=0;for(const h of u){const g=h.delimiter.type;if(g==="full")return{items:[h],nextIndex:h.delimiter.endIndex};(g==="both"||g==="closer")&&(d+=1)}if(d>1){let h=-1,g=-1;for(let y=0;y-1?[u[h]]:u.filter(y=>y.delimiter.type!=="closer"),nextIndex:f}}}return{items:u,nextIndex:f}},n=J0t();return{process:(i,s,a)=>{let u=i;for(let l=t;l{const n=[];for(let o=0;o{let d=s.process(l,c,f);return d=r(d,c,f),d}}),u=e[o].priority;for(;o{let r;const n=e.match(t);return{isDelimiterPair:()=>({paired:!0}),processDelimiterPair:(o,i,s)=>({tokens:s}),processSingleDelimiter:()=>[],...n,name:e.name,priority:e.priority,findDelimiter:o=>r.next(o).value,reset:()=>{r=n.findDelimiter(),r.next()}}};function ngt(e){const{inlineTokenizers:t,inlineTokenizerMap:r,blockTokenizers:n,blockTokenizerMap:o,blockFallbackTokenizer:i,inlineFallbackTokenizer:s,shouldReservePosition:a,presetDefinitions:u,presetFootnoteDefinitions:l,formatUrl:c}=e;let f=!1;const d=new Set,h=new Set;let g=[],v=-1,y=-1;const E=Object.freeze({matchBlockApi:{extractPhrasingLines:I,rollbackPhrasingLines:R,registerDefinitionIdentifier:$=>{f&&d.add($)},registerFootnoteDefinitionIdentifier:$=>{f&&h.add($)}},parseBlockApi:{shouldReservePosition:a,formatUrl:c,processInlines:q,parseBlockTokens:M},matchInlineApi:{hasDefinition:$=>d.has($),hasFootnoteDefinition:$=>h.has($),getNodePoints:()=>g,getBlockStartIndex:()=>v,getBlockEndIndex:()=>y,resolveFallbackTokens:D},parseInlineApi:{shouldReservePosition:a,calcPosition:$=>({start:El(g,$.startIndex),end:Ls(g,$.endIndex-1)}),formatUrl:c,getNodePoints:()=>g,hasDefinition:$=>d.has($),hasFootnoteDefinition:$=>h.has($),parseInlineTokens:F}}),_=n.map($=>({...$.match(E.matchBlockApi),name:$.name,priority:$.priority})),S=new Map(Array.from(o.entries()).map($=>[$[0],$[1].parse(E.parseBlockApi)])),b=i?{...i.match(E.matchBlockApi),name:i.name,priority:i.priority}:null,A=tgt(t,E.matchInlineApi,D),T=new Map(Array.from(r.entries()).map($=>[$[0],$[1].parse(E.parseInlineApi)])),x=ome(A,0);return{process:C};function C($){d.clear(),h.clear(),f=!0;const K=L($);f=!1;for(const J of u)d.add(J.identifier);for(const J of l)h.add(J.identifier);const U=M(K.children);return a?{type:"root",position:K.position,children:U}:{type:"root",children:U}}function I($){const K=o.get($._tokenizer);return(K==null?void 0:K.extractPhrasingContentLines($))??null}function R($,K){if(K!=null){const X=o.get(K._tokenizer);if(X!==void 0&&X.buildBlockToken!=null){const J=X.buildBlockToken($,K);if(J!==null)return J._tokenizer=X.name,[J]}}return L([$]).children}function D($,K,U){if(s==null)return $;let X=K;const J=[];for(const ee of $){if(Xs.priority)break}i<0||i>=t.length?t.push(n):t.splice(i,0,n)}_unregisterTokenizer(t,r,n){var a,u;const o=typeof n=="string"?n:n.name;if(!r.delete(o))return;((a=this.blockFallbackTokenizer)==null?void 0:a.name)===o&&(this.blockFallbackTokenizer=null),((u=this.inlineFallbackTokenizer)==null?void 0:u.name)===o&&(this.inlineFallbackTokenizer=null);const s=t.findIndex(l=>l.name===o);s>=0&&t.splice(s,1)}}function sgt(e,t,r){let n=t;for(;n=r||e[n].codePoint!==G.AT_SIGN||!Zve(e[n+1].codePoint))return{valid:!1,nextIndex:n+1};for(n=qte(e,n+2,r);n+1=t?o+1:t}function agt(e,t,r){const n=ugt(e,t,r);let{nextIndex:o}=n;if(!n.valid||o>=r||e[o].codePoint!==G.COLON)return{valid:!1,nextIndex:o};for(o+=1;o32?{valid:!1,nextIndex:n+1}:{valid:!0,nextIndex:n}}const lgt=[{contentType:"uri",eat:agt},{contentType:"email",eat:sgt}],cgt=function(e){return{findDelimiter:()=>Kf(t),processSingleDelimiter:r};function t(n,o){const i=e.getNodePoints();for(let s=n;st.map(r=>{const n=e.getNodePoints();let o=_u(n,r.startIndex+1,r.endIndex-1);r.contentType==="email"&&(o="mailto:"+o);const i=e.formatUrl(o),s=e.parseInlineTokens(r.children);return e.shouldReservePosition?{type:S1,position:e.calcPosition(r),url:i,children:s}:{type:S1,url:i,children:s}})}},dgt="@yozora/tokenizer-autolink";class hgt extends Ic{constructor(r={}){super({name:r.name??dgt,priority:r.priority??Un.ATOMIC});ze(this,"match",cgt);ze(this,"parse",fgt)}}const pgt=function(){return{isContainingBlock:!0,eatOpener:e,eatAndInterruptPreviousSibling:t,eatContinuationText:r};function e(n){if(n.countOfPrecedeSpaces>=4)return null;const{nodePoints:o,startIndex:i,endIndex:s,firstNonWhitespaceIndex:a}=n;if(a>=s||o[a].codePoint!==G.CLOSE_ANGLE)return null;let u=a+1;return u=4||l>=u||s[l].codePoint!==G.CLOSE_ANGLE?i.nodeType===E_?{status:"opening",nextIndex:a}:{status:"notMatched"}:{status:"opening",nextIndex:l+1t.map(r=>{const n=e.parseBlockTokens(r.children);return e.shouldReservePosition?{type:E_,position:r.position,children:n}:{type:E_,children:n}})}},vgt="@yozora/tokenizer-blockquote";class mgt extends Cc{constructor(r={}){super({name:r.name??vgt,priority:r.priority??Un.CONTAINING_BLOCK});ze(this,"match",pgt);ze(this,"parse",ggt)}}const ygt="@yozora/tokenizer-break";var qx;(function(e){e.BACKSLASH="backslash",e.MORE_THAN_TWO_SPACES="more-than-two-spaces"})(qx||(qx={}));const bgt=function(e){return{findDelimiter:()=>Kf(t),processSingleDelimiter:r};function t(n,o){const i=e.getNodePoints();for(let s=n+1;s=n&&i[c].codePoint===G.BACKSLASH;c-=1);s-c&1||(u=s-1,l=qx.BACKSLASH);break}case G.SPACE:{let c=s-2;for(;c>=n&&i[c].codePoint===G.SPACE;c-=1);s-c>2&&(u=c+1,l=qx.MORE_THAN_TWO_SPACES);break}}if(!(u==null||l==null))return{type:"full",markerType:l,startIndex:u,endIndex:s}}return null}function r(n){return[{nodeType:zx,startIndex:n.startIndex,endIndex:n.endIndex}]}},_gt=function(e){return{parse:t=>t.map(r=>e.shouldReservePosition?{type:zx,position:e.calcPosition(r)}:{type:zx})}};class Egt extends Ic{constructor(r={}){super({name:r.name??ygt,priority:r.priority??Un.SOFT_INLINE});ze(this,"match",bgt);ze(this,"parse",_gt)}}function Wte(e,t,r,n){let o=t;n==null&&(n={saturated:!1,nodePoints:[],hasOpenAngleBracket:!1,openParensCount:0});const i=Sn(e,o,r);if(i>=r)return{nextIndex:-1,state:n};if(n.nodePoints.length<=0){o=i;const s=e[o];s.codePoint===G.OPEN_ANGLE&&(o+=1,n.hasOpenAngleBracket=!0,n.nodePoints.push(s))}if(n.hasOpenAngleBracket){for(;o=r)return{nextIndex:-1,state:n};if(n.nodePoints.length<=0){o=i;const s=e[o];if(s.codePoint!==G.OPEN_BRACKET)return{nextIndex:-1,state:n};o+=1,n.nodePoints.push(s)}for(;o=r)return{nextIndex:-1,state:n};if(n.nodePoints.length<=0){o=i;const s=e[o];switch(s.codePoint){case G.DOUBLE_QUOTE:case G.SINGLE_QUOTE:case G.OPEN_PARENTHESIS:n.wrapSymbol=s.codePoint,n.nodePoints.push(s),o+=1;break;default:return{nextIndex:-1,state:n}}}if(n.wrapSymbol==null)return{nextIndex:-1,state:n};switch(n.wrapSymbol){case G.DOUBLE_QUOTE:case G.SINGLE_QUOTE:{for(;o=r||e[o+1].codePoint===Rr.LINE_END){n.nodePoints.push(s),n.saturated=!0;break}return{nextIndex:-1,state:n};default:n.nodePoints.push(s)}}break}}return{nextIndex:r,state:n}}const Sgt=function(e){return{isContainingBlock:!1,eatOpener:t,eatContinuationText:r,onClose:n};function t(o){if(o.countOfPrecedeSpaces>=4)return null;const{nodePoints:i,startIndex:s,endIndex:a,firstNonWhitespaceIndex:u}=o;if(u>=a)return null;let l=u;const{nextIndex:c,state:f}=Kte(i,l,a,null);if(c<0)return null;const d=i[s].line,h=()=>({nodeType:S_,position:{start:El(i,s),end:Ls(i,a-1)},label:f,destination:null,title:null,lineNoOfLabel:d,lineNoOfDestination:-1,lineNoOfTitle:-1,lines:[o]});if(!f.saturated)return{token:h(),nextIndex:a};if(c<0||c+1>=a||i[c].codePoint!==G.COLON)return null;if(l=Sn(i,c+1,a),l>=a)return{token:h(),nextIndex:a};const{nextIndex:g,state:v}=Wte(i,l,a,null);if(g<0||!v.saturated&&g!==a)return null;if(l=Sn(i,g,a),l>=a){const S=h();return S.destination=v,S.lineNoOfDestination=d,{token:S,nextIndex:a}}if(l===g)return null;const{nextIndex:y,state:E}=Gte(i,l,a,null);if(y>=0&&(l=y),l=l||s[y].codePoint!==G.COLON)return{status:"failedAndRollback",lines:i.lines};f=y+1}if(i.destination==null){if(f=Sn(s,f,l),f>=l)return{status:"failedAndRollback",lines:i.lines};const{nextIndex:y,state:E}=Wte(s,f,l,null);if(y<0||!E.saturated)return{status:"failedAndRollback",lines:i.lines};if(f=Sn(s,y,l),f>=l)return i.destination=E,i.lines.push(o),{status:"opening",nextIndex:l};i.lineNoOfDestination=c,i.lineNoOfTitle=c}i.lineNoOfTitle<0&&(i.lineNoOfTitle=c);const{nextIndex:d,state:h}=Gte(s,f,l,i.title);if(i.title=h,d<0||h.nodePoints.length<=0||h.saturated&&Sn(s,d,l)t.map(r=>{const n=r._label,o=r._identifier,i=r.destination.nodePoints,s=i[0].codePoint===G.OPEN_ANGLE?ic(i,1,i.length-1,!0):ic(i,0,i.length,!0),a=e.formatUrl(s),u=r.title==null?void 0:ic(r.title.nodePoints,1,r.title.nodePoints.length-1);return e.shouldReservePosition?{type:S_,position:r.position,identifier:o,label:n,url:a,title:u}:{type:S_,identifier:o,label:n,url:a,title:u}})}},Agt="@yozora/tokenizer-definition";class kgt extends Cc{constructor(r={}){super({name:r.name??Agt,priority:r.priority??Un.ATOMIC});ze(this,"match",Sgt);ze(this,"parse",wgt)}}const xgt=function(e){return{findDelimiter:()=>Kf(t),isDelimiterPair:r,processDelimiterPair:n};function t(o,i){const s=e.getNodePoints(),a=e.getBlockStartIndex(),u=e.getBlockEndIndex(),l=(f,d)=>{if(d===u)return!1;if(d===i)return!0;const h=s[d];if(Th(h.codePoint))return!1;if(!s0(h.codePoint)||f<=o)return!0;const g=s[f-1];return Th(g.codePoint)||s0(g.codePoint)},c=(f,d)=>{if(f===a)return!1;if(f===o)return!0;const h=s[f-1];if(Th(h.codePoint))return!1;if(!s0(h.codePoint)||d>=i)return!0;const g=s[d];return Th(g.codePoint)||s0(g.codePoint)};for(let f=o;fo&&!s0(s[h-1].codePoint)&&(E=!1);const b=s[g];s0(b.codePoint)||(_=!1)}if(!E&&!_)break;const S=g-h;return{type:E?_?"both":"opener":"closer",startIndex:h,endIndex:g,thickness:S,originalThickness:S}}}}return null}function r(o,i){const s=e.getNodePoints();return s[o.startIndex].codePoint!==s[i.startIndex].codePoint||(o.type==="both"||i.type==="both")&&(o.originalThickness+i.originalThickness)%3===0&&o.originalThickness%3!==0?{paired:!1,opener:!0,closer:!0}:{paired:!0}}function n(o,i,s){let a=1;o.thickness>1&&i.thickness>1&&(a=2),s=e.resolveInternalTokens(s,o.endIndex,i.startIndex);const u={nodeType:a===1?Xve:Qve,startIndex:o.endIndex-a,endIndex:i.startIndex+a,thickness:a,children:s},l=o.thickness>a?{type:o.type,startIndex:o.startIndex,endIndex:o.endIndex-a,thickness:o.thickness-a,originalThickness:o.originalThickness}:void 0,c=i.thickness>a?{type:i.type,startIndex:i.startIndex+a,endIndex:i.endIndex,thickness:i.thickness-a,originalThickness:i.originalThickness}:void 0;return{tokens:[u],remainOpenerDelimiter:l,remainCloserDelimiter:c}}},Tgt=function(e){return{parse:t=>t.map(r=>{const n=e.parseInlineTokens(r.children);return e.shouldReservePosition?{type:r.nodeType,position:e.calcPosition(r),children:n}:{type:r.nodeType,children:n}})}},Igt="@yozora/tokenizer-emphasis";class Cgt extends Ic{constructor(r={}){super({name:r.name??Igt,priority:r.priority??Un.CONTAINING_INLINE});ze(this,"match",xgt);ze(this,"parse",Tgt)}}function ime(e){const{nodeType:t,markers:r,markersRequired:n,checkInfoString:o}=this;return{isContainingBlock:!1,eatOpener:i,eatAndInterruptPreviousSibling:s,eatContinuationText:a};function i(u){if(u.countOfPrecedeSpaces>=4)return null;const{endIndex:l,firstNonWhitespaceIndex:c}=u;if(c+n-1>=l)return null;const{nodePoints:f,startIndex:d}=u,h=f[c].codePoint;if(r.indexOf(h)<0)return null;const g=ov(f,c+1,l,h),v=g-c;if(v=l.markerCount){for(;y=d)return{status:"closing",nextIndex:d}}}const v=Math.min(f+l.indent,h,d-1);return l.lines.push({nodePoints:c,startIndex:v,endIndex:d,firstNonWhitespaceIndex:h,countOfPrecedeSpaces:g}),{status:"opening",nextIndex:d}}}class Ngt extends Cc{constructor(r){super({name:r.name,priority:r.priority??Un.FENCED_BLOCK});ze(this,"nodeType");ze(this,"markers",[]);ze(this,"markersRequired");ze(this,"checkInfoString");ze(this,"match",ime);this.nodeType=r.nodeType,this.markers=r.markers,this.markersRequired=r.markersRequired,this.checkInfoString=r.checkInfoString}}const Rgt=function(e){return{...ime.call(this,e),isContainingBlock:!1}},Ogt=function(e){return{parse:t=>t.map(r=>{const n=r.infoString;let o=0;const i=[];for(;o0?s:null,meta:a.length>0?a:null,value:l}:{type:Jh,lang:s.length>0?s:null,meta:a.length>0?a:null,value:l}})}},Dgt="@yozora/tokenizer-fenced-code";class Fgt extends Ngt{constructor(r={}){super({name:r.name??Dgt,priority:r.priority??Un.FENCED_BLOCK,nodeType:Jh,markers:[G.BACKTICK,G.TILDE],markersRequired:3,checkInfoString:(n,o)=>{if(o===G.BACKTICK){for(const i of n)if(i.codePoint===G.BACKTICK)return!1}return!0}});ze(this,"match",Rgt);ze(this,"parse",Ogt)}}const Bgt=function(){return{isContainingBlock:!1,eatOpener:e,eatAndInterruptPreviousSibling:t};function e(r){if(r.countOfPrecedeSpaces>=4)return null;const{nodePoints:n,startIndex:o,endIndex:i,firstNonWhitespaceIndex:s}=r;if(s>=i||n[s].codePoint!==G.NUMBER_SIGN)return null;const a=ov(n,s+1,i,G.NUMBER_SIGN),u=a-s;if(u>6||a+1t.map(r=>{const{nodePoints:n,firstNonWhitespaceIndex:o,endIndex:i}=r.line;let[s,a]=T5(n,o+r.depth,i),u=0;for(let h=a-1;h>=s&&n[h].codePoint===G.NUMBER_SIGN;--h)u+=1;if(u>0){let h=0,g=a-1-u;for(;g>=s;--g){const v=n[g].codePoint;if(!Mi(v))break;h+=1}(h>0||g=r)return null;const o=n;let i=e[n].codePoint;if(!w1(i)&&i!==G.UNDERSCORE&&i!==G.COLON)return null;for(n=o+1;nl&&(a.value={startIndex:l,endIndex:c});break}}if(a.value!=null)return{attribute:a,nextIndex:n}}return{attribute:a,nextIndex:s}}function T_(e,t,r){if(t>=r||!w1(e[t].codePoint))return null;let n=t;for(;n=r)return r;const o=e[t].codePoint;return Mi(o)||o===G.CLOSE_ANGLE?t+1:null}function Hgt(e,t,r){for(let n=t;n=r||e[i].codePoint!==G.CLOSE_ANGLE){n+=1;continue}const a=_u(e,o,i,!0).toLowerCase();if(ame.includes(a))return i}return null}function $gt(e,t,r){const n=t;return n+2=r)return r;const o=e[t].codePoint;return Mi(o)||o===G.CLOSE_ANGLE?t+1:o===G.SLASH&&t+1=r)return null;let i=t;if(o){for(;i=r)return null;e[i].codePoint===G.SLASH&&(i+=1)}else i=Sn(e,t,r);if(i>=r||e[i].codePoint!==G.CLOSE_ANGLE)return null;for(i+=1;i=4)return null;const{nodePoints:s,startIndex:a,endIndex:u,firstNonWhitespaceIndex:l}=i;if(l>=u||s[l].codePoint!==G.OPEN_ANGLE)return null;const c=l+1,f=n(s,c,u);if(f==null)return null;const{condition:d}=f;let h=!1;d!==6&&d!==7&&o(s,f.nextIndex,u,d)!=null&&(h=!0);const g=u;return{token:{nodeType:w_,position:{start:El(s,a),end:Ls(s,g-1)},condition:d,lines:[i]},nextIndex:g,saturated:h}}function t(i,s){const a=e(i);if(a==null||a.token.condition===7)return null;const{token:u,nextIndex:l}=a;return{token:u,nextIndex:l,remainingSibling:s}}function r(i,s){const{nodePoints:a,endIndex:u,firstNonWhitespaceIndex:l}=i,c=o(a,l,u,s.condition);return c===-1?{status:"notMatched"}:(s.lines.push(i),c!=null?{status:"closing",nextIndex:u}:{status:"opening",nextIndex:u})}function n(i,s,a){let u=null;if(s>=a)return null;if(u=$gt(i,s,a),u!=null)return{nextIndex:u,condition:2};if(u=qgt(i,s,a),u!=null)return{nextIndex:u,condition:3};if(u=Kgt(i,s,a),u!=null)return{nextIndex:u,condition:4};if(u=Vgt(i,s,a),u!=null)return{nextIndex:u,condition:5};if(i[s].codePoint!==G.SLASH){const g=s,v=T_(i,g,a);if(v==null)return null;const y={startIndex:g,endIndex:v},_=_u(i,y.startIndex,y.endIndex).toLowerCase();return u=zgt(i,y.endIndex,a,_),u!=null?{nextIndex:u,condition:1}:(u=Vte(i,y.endIndex,a,_),u!=null?{nextIndex:u,condition:6}:(u=Ute(i,y.endIndex,a,_,!0),u!=null?{nextIndex:u,condition:7}:null))}const l=s+1,c=T_(i,l,a);if(c==null)return null;const f={startIndex:l,endIndex:c},h=_u(i,f.startIndex,f.endIndex).toLowerCase();return u=Vte(i,f.endIndex,a,h),u!=null?{nextIndex:u,condition:6}:(u=Ute(i,f.endIndex,a,h,!1),u!=null?{nextIndex:u,condition:7}:null)}function o(i,s,a,u){switch(u){case 1:return Hgt(i,s,a)==null?null:a;case 2:return Pgt(i,s,a)==null?null:a;case 3:return Wgt(i,s,a)==null?null:a;case 4:return Ggt(i,s,a)==null?null:a;case 5:return Ugt(i,s,a)==null?null:a;case 6:case 7:return Sn(i,s,a)>=a?-1:null}}},Zgt=function(e){return{parse:t=>t.map(r=>{const n=Vz(r.lines);return e.shouldReservePosition?{type:"html",position:r.position,value:_u(n)}:{type:"html",value:_u(n)}})}},Jgt="@yozora/tokenizer-html-block";class evt extends Cc{constructor(r={}){super({name:r.name??Jgt,priority:r.priority??Un.ATOMIC});ze(this,"match",Qgt);ze(this,"parse",Zgt)}}function tvt(e,t,r){let n=t;if(n+11>=r||e[n+1].codePoint!==G.EXCLAMATION_MARK||e[n+2].codePoint!==G.OPEN_BRACKET||e[n+3].codePoint!==G.UPPERCASE_C||e[n+4].codePoint!==G.UPPERCASE_D||e[n+5].codePoint!==G.UPPERCASE_A||e[n+6].codePoint!==G.UPPERCASE_T||e[n+7].codePoint!==G.UPPERCASE_A||e[n+8].codePoint!==G.OPEN_BRACKET)return null;const o=n+9;for(n=o;n=r)return null;if(e[n+1].codePoint===G.CLOSE_BRACKET&&e[n+2].codePoint===G.CLOSE_ANGLE)return{type:"full",startIndex:t,endIndex:n+3,htmlType:"cdata"}}return null}function rvt(e,t,r){let n=t;if(n+3>=r||e[n+1].codePoint!==G.SLASH)return null;const o=n+2,i=T_(e,o,r);return i==null||(n=Sn(e,i,r),n>=r||e[n].codePoint!==G.CLOSE_ANGLE)?null:{type:"full",startIndex:t,endIndex:n+1,htmlType:"closing",tagName:{startIndex:o,endIndex:i}}}function nvt(e,t,r){let n=t;if(n+6>=r||e[n+1].codePoint!==G.EXCLAMATION_MARK||e[n+2].codePoint!==G.MINUS_SIGN||e[n+3].codePoint!==G.MINUS_SIGN||e[n+4].codePoint===G.CLOSE_ANGLE||e[n+4].codePoint===G.MINUS_SIGN&&e[n+5].codePoint===G.CLOSE_ANGLE)return null;const o=n+4;for(n=o;n2||n+2>=r||e[n+2].codePoint!==G.CLOSE_ANGLE?null:{type:"full",startIndex:t,endIndex:n+3,htmlType:"comment"}}return null}function ovt(e,t,r){let n=t;if(n+4>=r||e[n+1].codePoint!==G.EXCLAMATION_MARK)return null;const o=n+2;for(n=o;n=r||!Mi(e[n].codePoint))return null;const i=n,s=n+1;for(n=s;n=r||e[n+1].codePoint!==G.QUESTION_MARK)return null;const o=n+2;for(n=o;n=r)return null;if(e[n+1].codePoint===G.CLOSE_ANGLE)return{type:"full",startIndex:t,endIndex:n+2,htmlType:"instruction"}}return null}function svt(e,t,r){let n=t;if(n+2>=r)return null;const o=n+1,i=T_(e,o,r);if(i==null)return null;const s=[];for(n=i;n=r)return null;let a=!1;return e[n].codePoint===G.SLASH&&(n+=1,a=!0),n>=r||e[n].codePoint!==G.CLOSE_ANGLE?null:{type:"full",startIndex:t,endIndex:n+1,htmlType:"open",tagName:{startIndex:o,endIndex:i},attributes:s,selfClosed:a}}const avt=function(e){return{findDelimiter:()=>Kf(t),processSingleDelimiter:r};function t(n,o){const i=e.getNodePoints();for(let s=n;s=o));++s)switch(i[s].codePoint){case G.BACKSLASH:s+=1;break;case G.OPEN_ANGLE:{const u=uvt(i,s,o);if(u!=null)return u;break}}return null}function r(n){return[{...n,nodeType:w_}]}};function uvt(e,t,r){let n=null;return n=svt(e,t,r),n!=null||(n=rvt(e,t,r),n!=null)||(n=nvt(e,t,r),n!=null)||(n=ivt(e,t,r),n!=null)||(n=ovt(e,t,r),n!=null)||(n=tvt(e,t,r)),n}const lvt=function(e){return{parse:t=>t.map(r=>{const{startIndex:n,endIndex:o}=r,i=e.getNodePoints(),s=_u(i,n,o);return e.shouldReservePosition?{type:w_,position:e.calcPosition(r),value:s}:{type:w_,value:s}})}},cvt="@yozora/tokenizer-html-inline";class fvt extends Ic{constructor(r={}){super({name:r.name??cvt,priority:r.priority??Un.ATOMIC});ze(this,"match",avt);ze(this,"parse",lvt)}}const C5=(e,t,r,n)=>{let o=e,i=0;const s=()=>{switch(n[o].codePoint){case G.BACKSLASH:o+=1;break;case G.OPEN_BRACKET:i+=1;break;case G.CLOSE_BRACKET:i-=1;break}};for(const a of r)if(!(a.startIndext)break;for(;o0?1:0};function ume(e,t,r){if(t>=r)return-1;let n=t;switch(e[n].codePoint){case G.OPEN_ANGLE:{for(n+=1;n=r)return-1;let n=t;const o=e[n].codePoint;switch(o){case G.DOUBLE_QUOTE:case G.SINGLE_QUOTE:{for(n+=1;ni.line+1)return-1;break}}}break}case G.OPEN_PARENTHESIS:{let i=1;for(n+=1;ns.line+1)return-1;break}case G.OPEN_PARENTHESIS:i+=1;break;case G.CLOSE_PARENTHESIS:if(i-=1,i===0)return n+1;break}}break}case G.CLOSE_PARENTHESIS:return n;default:return-1}return-1}const dvt=function(e){return{findDelimiter:()=>Kf(t),isDelimiterPair:r,processDelimiterPair:n};function t(o,i){const s=e.getNodePoints(),a=e.getBlockEndIndex();for(let u=o;u=i||s[u+1].codePoint!==G.OPEN_PARENTHESIS)break;const c=Sn(s,u+2,a),f=ume(s,c,a);if(f<0)break;const d=Sn(s,f,a),h=lme(s,d,a);if(h<0)break;const g=u,v=Sn(s,h,a)+1;if(v>a||s[v-1].codePoint!==G.CLOSE_PARENTHESIS)break;return{type:"closer",startIndex:g,endIndex:v,destinationContent:ct.map(r=>{const n=e.getNodePoints();let o="";if(r.destinationContent!=null){let{startIndex:u,endIndex:l}=r.destinationContent;n[u].codePoint===G.OPEN_ANGLE&&(u+=1,l-=1);const c=ic(n,u,l,!0);o=e.formatUrl(c)}let i;if(r.titleContent!=null){const{startIndex:u,endIndex:l}=r.titleContent;i=ic(n,u+1,l-1)}const s=e.parseInlineTokens(r.children);return e.shouldReservePosition?{type:S1,position:e.calcPosition(r),url:o,title:i,children:s}:{type:S1,url:o,title:i,children:s}})}},pvt="@yozora/tokenizer-link";class gvt extends Ic{constructor(r={}){super({name:r.name??pvt,priority:r.priority??Un.LINKS});ze(this,"match",dvt);ze(this,"parse",hvt)}}function Yz(e){return e.map(t=>t.value!=null?t.value:t.alt!=null?t.alt:t.children!=null?Yz(t.children):"").join("")}const vvt=function(e){return{findDelimiter:()=>Kf(t),isDelimiterPair:r,processDelimiterPair:n};function t(o,i){const s=e.getNodePoints(),a=e.getBlockEndIndex();for(let u=o;u=i||s[u+1].codePoint!==G.OPEN_PARENTHESIS)break;const c=Sn(s,u+2,a),f=ume(s,c,a);if(f<0)break;const d=Sn(s,f,a),h=lme(s,d,a);if(h<0)break;const g=u,v=Sn(s,h,a)+1;if(v>a||s[v-1].codePoint!==G.CLOSE_PARENTHESIS)break;return{type:"closer",startIndex:g,endIndex:v,destinationContent:ct.map(r=>{const n=e.getNodePoints();let o="";if(r.destinationContent!=null){let{startIndex:l,endIndex:c}=r.destinationContent;n[l].codePoint===G.OPEN_ANGLE&&(l+=1,c-=1);const f=ic(n,l,c,!0);o=e.formatUrl(f)}const i=e.parseInlineTokens(r.children),s=Yz(i);let a;if(r.titleContent!=null){const{startIndex:l,endIndex:c}=r.titleContent;a=ic(n,l+1,c-1)}return e.shouldReservePosition?{type:A_,position:e.calcPosition(r),url:o,alt:s,title:a}:{type:A_,url:o,alt:s,title:a}})}},yvt="@yozora/tokenizer-image";class bvt extends Ic{constructor(r={}){super({name:r.name??yvt,priority:r.priority??Un.LINKS});ze(this,"match",vvt);ze(this,"parse",mvt)}}const _vt=function(e){return{findDelimiter:()=>Kf(t),isDelimiterPair:r,processDelimiterPair:n};function t(o,i){const s=e.getNodePoints();for(let a=o;a=i||s[a+1].codePoint!==G.OPEN_BRACKET)break;return{type:"opener",startIndex:a,endIndex:a+2,brackets:[]}}case G.CLOSE_BRACKET:{const l={type:"closer",startIndex:a,endIndex:a+1,brackets:[]};if(a+1>=i||s[a+1].codePoint!==G.OPEN_BRACKET)return l;const c=G0(s,a+1,i);return c.nextIndex<0?l:c.labelAndIdentifier==null?{type:"closer",startIndex:a,endIndex:c.nextIndex,brackets:[{startIndex:a+1,endIndex:c.nextIndex}]}:{type:"closer",startIndex:a,endIndex:c.nextIndex,brackets:[{startIndex:a+1,endIndex:c.nextIndex,label:c.labelAndIdentifier.label,identifier:c.labelAndIdentifier.identifier}]}}}return null}function r(o,i,s){const a=e.getNodePoints();switch(C5(o.endIndex,i.startIndex,s,a)){case-1:return{paired:!1,opener:!1,closer:!0};case 0:return{paired:!0};case 1:return{paired:!1,opener:!0,closer:!1}}}function n(o,i,s){const a=e.getNodePoints(),u=i.brackets[0];if(u!=null&&u.identifier!=null)return e.hasDefinition(u.identifier)?{tokens:[{nodeType:nv,startIndex:o.startIndex,endIndex:u.endIndex,referenceType:"full",label:u.label,identifier:u.identifier,children:e.resolveInternalTokens(s,o.endIndex,i.startIndex)}]}:{tokens:s};const{nextIndex:l,labelAndIdentifier:c}=G0(a,o.endIndex-1,i.startIndex+1);return l===i.startIndex+1&&c!=null&&e.hasDefinition(c.identifier)?{tokens:[{nodeType:nv,startIndex:o.startIndex,endIndex:i.endIndex,referenceType:u==null?"shortcut":"collapsed",label:c.label,identifier:c.identifier,children:e.resolveInternalTokens(s,o.endIndex,i.startIndex)}]}:{tokens:s}}},Evt=function(e){return{parse:t=>t.map(r=>{const{identifier:n,label:o,referenceType:i}=r,s=e.parseInlineTokens(r.children),a=Yz(s);return e.shouldReservePosition?{type:nv,position:e.calcPosition(r),identifier:n,label:o,referenceType:i,alt:a}:{type:nv,identifier:n,label:o,referenceType:i,alt:a}})}},Svt="@yozora/tokenizer-image-reference";class wvt extends Ic{constructor(r={}){super({name:r.name??Svt,priority:r.priority??Un.LINKS});ze(this,"match",_vt);ze(this,"parse",Evt)}}const Avt=function(){return{isContainingBlock:!1,eatOpener:e,eatContinuationText:t};function e(r){if(r.countOfPrecedeSpaces<4)return null;const{nodePoints:n,startIndex:o,firstNonWhitespaceIndex:i,endIndex:s}=r;let a=o+4;if(n[o].codePoint===G.SPACE&&n[o+3].codePoint===Rr.SPACE){let c=o+1;for(;ct.map(r=>{const{lines:n}=r;let o=0,i=n.length;for(;oc+1&&s.push({type:"opener",startIndex:c+1,endIndex:d}),c=d-1}break}case G.BACKTICK:{const d=c,h=ov(n,c+1,i,f);s.push({type:"both",startIndex:d,endIndex:h}),c=h-1;break}}}let a=0,u=-1,l=null;for(;a=c))continue;u=f;let d=null,h=null;for(;a=c&&v.type!=="closer")break}if(a+1>=s.length)return;d=s[a];const g=d.endIndex-d.startIndex;for(let v=a+1;vt.map(r=>{const n=e.getNodePoints();let o=r.startIndex+r.thickness,i=r.endIndex-r.thickness,s=!0;for(let l=o;lKf(t),isDelimiterPair:r,processDelimiterPair:n,processSingleDelimiter:o};function t(i,s){const a=e.getNodePoints();for(let u=i;u=s||a[u+1].codePoint!==G.OPEN_BRACKET)break;const c=G0(a,u+1,s);if(c.nextIndex===-1)return{type:"opener",startIndex:u+1,endIndex:u+2,brackets:[]};if(c.labelAndIdentifier==null){u=c.nextIndex-1;break}const f=[{startIndex:u+1,endIndex:c.nextIndex,label:c.labelAndIdentifier.label,identifier:c.labelAndIdentifier.identifier}],d={type:"closer",startIndex:u,endIndex:c.nextIndex,brackets:f};for(u=c.nextIndex;u=a.length)break;if(l+1t.map(r=>{const{identifier:n,label:o,referenceType:i}=r,s=e.parseInlineTokens(r.children);return e.shouldReservePosition?{type:Hd,position:e.calcPosition(r),identifier:n,label:o,referenceType:i,children:s}:{type:Hd,identifier:n,label:o,referenceType:i,children:s}})}},Fvt="@yozora/tokenizer-link-reference";class Bvt extends Ic{constructor(r={}){super({name:r.name??Fvt,priority:r.priority??Un.LINKS});ze(this,"match",Ovt);ze(this,"parse",Dvt)}}const Mvt=function(){const{emptyItemCouldNotInterruptedTypes:e,enableTaskListItem:t}=this;return{isContainingBlock:!0,eatOpener:r,eatAndInterruptPreviousSibling:n,eatContinuationText:o};function r(i){if(i.countOfPrecedeSpaces>=4)return null;const{nodePoints:s,startIndex:a,endIndex:u,firstNonWhitespaceIndex:l}=i;if(l>=u)return null;let c=!1,f=null,d,h,g=l,v=s[g].codePoint;if(g+1l&&g-l<=9&&(v===G.DOT||v===G.CLOSE_PARENTHESIS)&&(g+=1,c=!0,f=v)}if(c||(v===G.PLUS_SIGN||v===G.MINUS_SIGN||v===G.ASTERISK)&&(g+=1,f=v),f==null)return null;let y=0,E=g;for(E4&&(E-=y-1,y=1),y===0&&E=u){if(s.countOfTopBlankLine>=0&&(s.countOfTopBlankLine+=1,s.countOfTopBlankLine>1))return{status:"notMatched"}}else s.countOfTopBlankLine=-1;return{status:"opening",nextIndex:Math.min(a+s.indent,u-1)}}};function Lvt(e,t,r){let n=t;for(;n=r||e[n].codePoint!==G.OPEN_BRACKET||e[n+2].codePoint!==G.CLOSE_BRACKET||!Mi(e[n+3].codePoint))return{status:null,nextIndex:t};let o;switch(e[n+1].codePoint){case G.SPACE:o=cb.TODO;break;case G.MINUS_SIGN:o=cb.DOING;break;case G.LOWERCASE_X:case G.UPPERCASE_X:o=cb.DONE;break;default:return{status:null,nextIndex:t}}return{status:o,nextIndex:n+4}}const jvt=function(e){return{parse:t=>{const r=[];let n=[];for(let i=0;i{if(e.length<=0)return null;let r=e.some(i=>{if(i.children==null||i.children.length<=1)return!1;let s=i.children[0].position;for(let a=1;a1){let i=e[0];for(let s=1;s{const s=t.parseBlockTokens(i.children),a=r?s:s.map(l=>l.type===tp?l.children:l).flat();return t.shouldReservePosition?{type:E6,position:i.position,status:i.status,children:a}:{type:E6,status:i.status,children:a}});return t.shouldReservePosition?{type:$x,position:{start:{...e[0].position.start},end:{...e[e.length-1].position.end}},ordered:e[0].ordered,orderType:e[0].orderType,start:e[0].order,marker:e[0].marker,spread:r,children:n}:{type:$x,ordered:e[0].ordered,orderType:e[0].orderType,start:e[0].order,marker:e[0].marker,spread:r,children:n}},zvt="@yozora/tokenizer-list";class Hvt extends Cc{constructor(r={}){super({name:r.name??zvt,priority:r.priority??Un.CONTAINING_BLOCK});ze(this,"enableTaskListItem");ze(this,"emptyItemCouldNotInterruptedTypes");ze(this,"match",Mvt);ze(this,"parse",jvt);this.enableTaskListItem=r.enableTaskListItem??!1,this.emptyItemCouldNotInterruptedTypes=r.emptyItemCouldNotInterruptedTypes??[tp]}}const $vt=function(){return{isContainingBlock:!1,eatOpener:e,eatContinuationText:t,eatLazyContinuationText:r};function e(n){const{endIndex:o,firstNonWhitespaceIndex:i}=n;if(i>=o)return null;const s=[n],a=eme(s);return{token:{nodeType:tp,position:a,lines:s},nextIndex:o}}function t(n,o){const{endIndex:i,firstNonWhitespaceIndex:s}=n;return s>=i?{status:"notMatched"}:(o.lines.push(n),{status:"opening",nextIndex:i})}function r(n,o){return t(n,o)}},Pvt=function(e){return{parse:t=>{const r=[];for(const n of t){const o=Uz(n.lines),i=e.processInlines(o);if(i.length<=0)continue;const s=e.shouldReservePosition?{type:tp,position:n.position,children:i}:{type:tp,children:i};r.push(s)}return r}}},qvt="@yozora/tokenizer-paragraph";class Wvt extends Cc{constructor(r={}){super({name:r.name??qvt,priority:r.priority??Un.FALLBACK});ze(this,"match",$vt);ze(this,"parse",Pvt)}extractPhrasingContentLines(r){return r.lines}buildBlockToken(r){const n=Q0t(r);if(n.length<=0)return null;const o=eme(n);return{nodeType:tp,lines:n,position:o}}}const Kvt=function(e){return{isContainingBlock:!1,eatOpener:t,eatAndInterruptPreviousSibling:r};function t(){return null}function r(n,o){const{nodePoints:i,endIndex:s,firstNonWhitespaceIndex:a,countOfPrecedeSpaces:u}=n;if(u>=4||a>=s)return null;let l=null,c=!1;for(let g=a;gt.map(r=>{let n=1;switch(r.marker){case G.EQUALS_SIGN:n=1;break;case G.MINUS_SIGN:n=2;break}const o=Uz(r.lines),i=e.processInlines(o);return e.shouldReservePosition?{type:ep,position:r.position,depth:n,children:i}:{type:ep,depth:n,children:i}})}},Vvt="@yozora/tokenizer-setext-heading";class Uvt extends Cc{constructor(r={}){super({name:r.name??Vvt,priority:r.priority??Un.ATOMIC});ze(this,"match",Kvt);ze(this,"parse",Gvt)}}const Yvt=function(){return{findDelimiter:()=>Kf((e,t)=>({type:"full",startIndex:e,endIndex:t})),processSingleDelimiter:e=>[{nodeType:k_,startIndex:e.startIndex,endIndex:e.endIndex}]}},Xvt=function(e){return{parse:t=>t.map(r=>{const n=e.getNodePoints();let o=ic(n,r.startIndex,r.endIndex);return o=Zvt(o),e.shouldReservePosition?{type:k_,position:e.calcPosition(r),value:o}:{type:k_,value:o}})}},Qvt=/[^\S\n]*\n[^\S\n]*/g,Zvt=e=>e.replace(Qvt,` +`),Jvt="@yozora/tokenizer-text";class emt extends Ic{constructor(r={}){super({name:r.name??Jvt,priority:r.priority??Un.FALLBACK});ze(this,"match",Yvt);ze(this,"parse",Xvt)}findAndHandleDelimiter(r,n){return{nodeType:k_,startIndex:r,endIndex:n}}}const tmt=function(){return{isContainingBlock:!1,eatOpener:e,eatAndInterruptPreviousSibling:t};function e(r){if(r.countOfPrecedeSpaces>=4)return null;const{nodePoints:n,startIndex:o,endIndex:i,firstNonWhitespaceIndex:s}=r;if(s+2>=i)return null;let a,u=0,l=!0,c=!1;for(let d=s;dt.map(r=>e.shouldReservePosition?{type:Px,position:r.position}:{type:Px})}},nmt="@yozora/tokenizer-thematic-break";class omt extends Cc{constructor(r={}){super({name:r.name??nmt,priority:r.priority??Un.ATOMIC});ze(this,"match",tmt);ze(this,"parse",rmt)}}class imt extends igt{constructor(t={}){super({...t,blockFallbackTokenizer:t.blockFallbackTokenizer??new Wvt,inlineFallbackTokenizer:t.inlineFallbackTokenizer??new emt}),this.useTokenizer(new Tvt).useTokenizer(new evt).useTokenizer(new Uvt).useTokenizer(new omt).useTokenizer(new mgt).useTokenizer(new Hvt({enableTaskListItem:!1})).useTokenizer(new jgt).useTokenizer(new Fgt).useTokenizer(new kgt).useTokenizer(new fvt).useTokenizer(new Rvt).useTokenizer(new hgt).useTokenizer(new Egt).useTokenizer(new bvt).useTokenizer(new wvt).useTokenizer(new gvt).useTokenizer(new Bvt).useTokenizer(new Cgt)}}const smt=new imt({defaultParseOptions:{shouldReservePosition:!1}});class amt extends re.Component{shouldComponentUpdate(t){return this.props.children!==t.children}render(){const t=this.props.children;return N.jsx("blockquote",{className:umt,children:N.jsx(ka,{nodes:t})})}}const umt=mr(Kn.blockquote,{boxSizing:"border-box",padding:"0.625em 1em",borderLeft:"0.25em solid var(--colorBorderBlockquote)",margin:"0px 0px 1.25em 0px",background:"var(--colorBgBlockquote)",boxShadow:"0 1px 2px 0 hsla(0deg, 0%, 0%, 0.1)","> :last-child":{marginBottom:0}});class lmt extends re.Component{shouldComponentUpdate(){return!1}render(){return N.jsx("br",{className:cmt})}}const cmt=mr(Kn.break,{boxSizing:"border-box"});var cme={exports:{}};(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** * Prism: Lightweight, robust, elegant syntax highlighting * * @license MIT * @author Lea Verou * @namespace * @public - */var r=function(n){var o=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,i=0,s={},a={manual:n.Prism&&n.Prism.manual,disableWorkerMessageHandler:n.Prism&&n.Prism.disableWorkerMessageHandler,util:{encode:function _(S){return S instanceof u?new u(S.type,_(S.content),S.alias):Array.isArray(S)?S.map(_):S.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(A){var _=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(A.stack)||[])[1];if(_){var S=document.getElementsByTagName("script");for(var b in S)if(S[b].src==_)return S[b]}return null}},isActive:function(_,S,b){for(var A="no-"+S;_;){var x=_.classList;if(x.contains(S))return!0;if(x.contains(A))return!1;_=_.parentElement}return!!b}},languages:{plain:s,plaintext:s,text:s,txt:s,extend:function(_,S){var b=a.util.clone(a.languages[_]);for(var A in S)b[A]=S[A];return b},insertBefore:function(_,S,b,A){A=A||a.languages;var x=A[_],T={};for(var N in x)if(x.hasOwnProperty(N)){if(N==S)for(var I in b)b.hasOwnProperty(I)&&(T[I]=b[I]);b.hasOwnProperty(N)||(T[N]=x[N])}var R=A[_];return A[_]=T,a.languages.DFS(a.languages,function(D,L){L===R&&D!=_&&(this[D]=T)}),T},DFS:function _(S,b,A,x){x=x||{};var T=a.util.objId;for(var N in S)if(S.hasOwnProperty(N)){b.call(S,N,S[N],A||N);var I=S[N],R=a.util.type(I);R==="Object"&&!x[T(I)]?(x[T(I)]=!0,_(I,b,null,x)):R==="Array"&&!x[T(I)]&&(x[T(I)]=!0,_(I,b,N,x))}}},plugins:{},highlightAll:function(_,S){a.highlightAllUnder(document,_,S)},highlightAllUnder:function(_,S,b){var A={callback:b,container:_,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",A),A.elements=Array.prototype.slice.apply(A.container.querySelectorAll(A.selector)),a.hooks.run("before-all-elements-highlight",A);for(var x=0,T;T=A.elements[x++];)a.highlightElement(T,S===!0,A.callback)},highlightElement:function(_,S,b){var A=a.util.getLanguage(_),x=a.languages[A];a.util.setLanguage(_,A);var T=_.parentElement;T&&T.nodeName.toLowerCase()==="pre"&&a.util.setLanguage(T,A);var N=_.textContent,I={element:_,language:A,grammar:x,code:N};function R(L){I.highlightedCode=L,a.hooks.run("before-insert",I),I.element.innerHTML=I.highlightedCode,a.hooks.run("after-highlight",I),a.hooks.run("complete",I),b&&b.call(I.element)}if(a.hooks.run("before-sanity-check",I),T=I.element.parentElement,T&&T.nodeName.toLowerCase()==="pre"&&!T.hasAttribute("tabindex")&&T.setAttribute("tabindex","0"),!I.code){a.hooks.run("complete",I),b&&b.call(I.element);return}if(a.hooks.run("before-highlight",I),!I.grammar){R(a.util.encode(I.code));return}if(S&&n.Worker){var D=new Worker(a.filename);D.onmessage=function(L){R(L.data)},D.postMessage(JSON.stringify({language:I.language,code:I.code,immediateClose:!0}))}else R(a.highlight(I.code,I.grammar,I.language))},highlight:function(_,S,b){var A={code:_,grammar:S,language:b};if(a.hooks.run("before-tokenize",A),!A.grammar)throw new Error('The language "'+A.language+'" has no grammar.');return A.tokens=a.tokenize(A.code,A.grammar),a.hooks.run("after-tokenize",A),u.stringify(a.util.encode(A.tokens),A.language)},tokenize:function(_,S){var b=S.rest;if(b){for(var A in b)S[A]=b[A];delete S.rest}var x=new f;return d(x,x.head,_),c(_,x,S,x.head,0),g(x)},hooks:{all:{},add:function(_,S){var b=a.hooks.all;b[_]=b[_]||[],b[_].push(S)},run:function(_,S){var b=a.hooks.all[_];if(!(!b||!b.length))for(var A=0,x;x=b[A++];)x(S)}},Token:u};n.Prism=a;function u(_,S,b,A){this.type=_,this.content=S,this.alias=b,this.length=(A||"").length|0}u.stringify=function _(S,b){if(typeof S=="string")return S;if(Array.isArray(S)){var A="";return S.forEach(function(R){A+=_(R,b)}),A}var x={type:S.type,content:_(S.content,b),tag:"span",classes:["token",S.type],attributes:{},language:b},T=S.alias;T&&(Array.isArray(T)?Array.prototype.push.apply(x.classes,T):x.classes.push(T)),a.hooks.run("wrap",x);var N="";for(var I in x.attributes)N+=" "+I+'="'+(x.attributes[I]||"").replace(/"/g,""")+'"';return"<"+x.tag+' class="'+x.classes.join(" ")+'"'+N+">"+x.content+""};function l(_,S,b,A){_.lastIndex=S;var x=_.exec(b);if(x&&A&&x[1]){var T=x[1].length;x.index+=T,x[0]=x[0].slice(T)}return x}function c(_,S,b,A,x,T){for(var N in b)if(!(!b.hasOwnProperty(N)||!b[N])){var I=b[N];I=Array.isArray(I)?I:[I];for(var R=0;R=T.reach);U+=K.value.length,K=K.next){var X=K.value;if(S.length>_.length)return;if(!(X instanceof u)){var J=1,ee;if(q){if(ee=l(P,U,_,M),!ee||ee.index>=_.length)break;var Te=ee.index,se=ee.index+ee[0].length,pe=U;for(pe+=K.value.length;Te>=pe;)K=K.next,pe+=K.value.length;if(pe-=K.value.length,U=pe,K.value instanceof u)continue;for(var _e=K;_e!==S.tail&&(peT.reach&&(T.reach=we);var De=K.prev;Ae&&(De=d(S,De,Ae),U+=Ae.length),h(S,De,J);var Qe=new u(N,L?a.tokenize(me,L):me,z,me);if(K=d(S,De,Qe),ve&&d(S,K,ve),J>1){var Ke={cause:N+","+R,reach:we};c(_,S,b,K.prev,U,Ke),T&&Ke.reach>T.reach&&(T.reach=Ke.reach)}}}}}}function f(){var _={value:null,prev:null,next:null},S={value:null,prev:_,next:null};_.next=S,this.head=_,this.tail=S,this.length=0}function d(_,S,b){var A=S.next,x={value:b,prev:S,next:A};return S.next=x,A.prev=x,_.length++,x}function h(_,S,b){for(var A=S.next,x=0;x/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},r.languages.markup.tag.inside["attr-value"].inside.entity=r.languages.markup.entity,r.languages.markup.doctype.inside["internal-subset"].inside=r.languages.markup,r.hooks.add("wrap",function(n){n.type==="entity"&&(n.attributes.title=n.content.replace(/&/,"&"))}),Object.defineProperty(r.languages.markup.tag,"addInlined",{value:function(o,i){var s={};s["language-"+i]={pattern:/(^$)/i,lookbehind:!0,inside:r.languages[i]},s.cdata=/^$/i;var a={"included-cdata":{pattern://i,inside:s}};a["language-"+i]={pattern:/[\s\S]+/,inside:r.languages[i]};var u={};u[o]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return o}),"i"),lookbehind:!0,greedy:!0,inside:a},r.languages.insertBefore("markup","cdata",u)}}),Object.defineProperty(r.languages.markup.tag,"addAttribute",{value:function(n,o){r.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[o,"language-"+o],inside:r.languages[o]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),r.languages.html=r.languages.markup,r.languages.mathml=r.languages.markup,r.languages.svg=r.languages.markup,r.languages.xml=r.languages.extend("markup",{}),r.languages.ssml=r.languages.xml,r.languages.atom=r.languages.xml,r.languages.rss=r.languages.xml,function(n){var o=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+o.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+o.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+o.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+o.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:o,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var i=n.languages.markup;i&&(i.tag.addInlined("style","css"),i.tag.addAttribute("style","css"))}(r),r.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},r.languages.javascript=r.languages.extend("clike",{"class-name":[r.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),r.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,r.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:r.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:r.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:r.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:r.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:r.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),r.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:r.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),r.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),r.languages.markup&&(r.languages.markup.tag.addInlined("script","javascript"),r.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),r.languages.js=r.languages.javascript,function(){if(typeof r>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var n="Loading…",o=function(v,y){return"✖ Error "+v+" while fetching file: "+y},i="✖ Error: File does not exist or is empty",s={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},a="data-src-status",u="loading",l="loaded",c="failed",f="pre[data-src]:not(["+a+'="'+l+'"]):not(['+a+'="'+u+'"])';function d(v,y,E){var _=new XMLHttpRequest;_.open("GET",v,!0),_.onreadystatechange=function(){_.readyState==4&&(_.status<400&&_.responseText?y(_.responseText):_.status>=400?E(o(_.status,_.statusText)):E(i))},_.send(null)}function h(v){var y=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(v||"");if(y){var E=Number(y[1]),_=y[2],S=y[3];return _?S?[E,Number(S)]:[E,void 0]:[E,E]}}r.hooks.add("before-highlightall",function(v){v.selector+=", "+f}),r.hooks.add("before-sanity-check",function(v){var y=v.element;if(y.matches(f)){v.code="",y.setAttribute(a,u);var E=y.appendChild(document.createElement("CODE"));E.textContent=n;var _=y.getAttribute("data-src"),S=v.language;if(S==="none"){var b=(/\.(\w+)$/.exec(_)||[,"none"])[1];S=s[b]||b}r.util.setLanguage(E,S),r.util.setLanguage(y,S);var A=r.plugins.autoloader;A&&A.loadLanguages(S),d(_,function(x){y.setAttribute(a,l);var T=h(y.getAttribute("data-range"));if(T){var N=x.split(/\r\n?|\n/g),I=T[0],R=T[1]==null?N.length:T[1];I<0&&(I+=N.length),I=Math.max(0,Math.min(I-1,N.length)),R<0&&(R+=N.length),R=Math.max(0,Math.min(R,N.length)),x=N.slice(I,R).join(` -`),y.hasAttribute("data-start")||y.setAttribute("data-start",String(I+1))}E.textContent=x,r.highlightElement(E)},function(x){y.setAttribute(a,c),E.textContent=x})}}),r.plugins.fileHighlight={highlight:function(y){for(var E=(y||document).querySelectorAll(f),_=0,S;S=E[_++];)r.highlightElement(S)}};var g=!1;r.fileHighlight=function(){g||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),g=!0),r.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(nme);var Qvt=nme.exports;const fe=Mf(Qvt);function Zvt(e){if(e.sheet)return e.sheet;for(var t=0;t0?ai(Uv,--$s):0,rv--,yo===10&&(rv=1,x5--),yo}function ba(){return yo=$s2||T_(yo)>3?"":" "}function fmt(e,t){for(;--t&&ba()&&!(yo<48||yo>102||yo>57&&yo<65||yo>70&&yo<97););return zE(e,Kk()+(t<6&&nc()==32&&ba()==32))}function T6(e){for(;ba();)switch(yo){case e:return $s;case 34:case 39:e!==34&&e!==39&&T6(yo);break;case 40:e===41&&T6(e);break;case 92:ba();break}return $s}function dmt(e,t){for(;ba()&&e+yo!==57;)if(e+yo===84&&nc()===47)break;return"/*"+zE(t,$s-1)+"*"+T5(e===47?e:ba())}function hmt(e){for(;!T_(nc());)ba();return zE(e,$s)}function pmt(e){return lme(Vk("",null,null,null,[""],e=ume(e),0,[0],e))}function Vk(e,t,r,n,o,i,s,a,u){for(var l=0,c=0,f=s,d=0,h=0,g=0,v=1,y=1,E=1,_=0,S="",b=o,A=i,x=n,T=S;y;)switch(g=_,_=ba()){case 40:if(g!=108&&ai(T,f-1)==58){A6(T+=Fr(Gk(_),"&","&\f"),"&\f")!=-1&&(E=-1);break}case 34:case 39:case 91:T+=Gk(_);break;case 9:case 10:case 13:case 32:T+=cmt(g);break;case 92:T+=fmt(Kk()-1,7);continue;case 47:switch(nc()){case 42:case 47:Yw(gmt(dmt(ba(),Kk()),t,r),u);break;default:T+="/"}break;case 123*v:a[l++]=Hl(T)*E;case 125*v:case 59:case 0:switch(_){case 0:case 125:y=0;case 59+c:E==-1&&(T=Fr(T,/\f/g,"")),h>0&&Hl(T)-f&&Yw(h>32?Wte(T+";",n,r,f-1):Wte(Fr(T," ","")+";",n,r,f-2),u);break;case 59:T+=";";default:if(Yw(x=qte(T,t,r,l,c,o,a,S,b=[],A=[],f),i),_===123)if(c===0)Vk(T,t,x,x,b,i,f,a,A);else switch(d===99&&ai(T,3)===110?100:d){case 100:case 108:case 109:case 115:Vk(e,x,x,n&&Yw(qte(e,x,x,0,0,o,a,S,o,b=[],f),A),o,A,f,a,n?b:A);break;default:Vk(T,x,x,x,[""],A,0,a,A)}}l=c=h=0,v=E=1,S=T="",f=s;break;case 58:f=1+Hl(T),h=g;default:if(v<1){if(_==123)--v;else if(_==125&&v++==0&&lmt()==125)continue}switch(T+=T5(_),_*v){case 38:E=c>0?1:(T+="\f",-1);break;case 44:a[l++]=(Hl(T)-1)*E,E=1;break;case 64:nc()===45&&(T+=Gk(ba())),d=nc(),c=f=Hl(S=T+=hmt(Kk())),_++;break;case 45:g===45&&Hl(T)==2&&(v=0)}}return i}function qte(e,t,r,n,o,i,s,a,u,l,c){for(var f=o-1,d=o===0?i:[""],h=Wz(d),g=0,v=0,y=0;g0?d[E]+" "+_:Fr(_,/&\f/g,d[E])))&&(u[y++]=S);return I5(e,t,r,o===0?Pz:a,u,l,c)}function gmt(e,t,r){return I5(e,t,r,ome,T5(umt()),A_(e,2,-2),0)}function Wte(e,t,r,n){return I5(e,t,r,qz,A_(e,0,n),A_(e,n+1,-1),n)}function pg(e,t){for(var r="",n=Wz(e),o=0;o6)switch(ai(e,t+1)){case 109:if(ai(e,t+4)!==45)break;case 102:return Fr(e,/(.+:)(.+)-([^]+)/,"$1"+Dr+"$2-$3$1"+HT+(ai(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~A6(e,"stretch")?cme(Fr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ai(e,t+1)!==115)break;case 6444:switch(ai(e,Hl(e)-3-(~A6(e,"!important")&&10))){case 107:return Fr(e,":",":"+Dr)+e;case 101:return Fr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Dr+(ai(e,14)===45?"inline-":"")+"box$3$1"+Dr+"$2$3$1"+Ei+"$2box$3")+e}break;case 5936:switch(ai(e,t+11)){case 114:return Dr+e+Ei+Fr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Dr+e+Ei+Fr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Dr+e+Ei+Fr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Dr+e+Ei+e+e}return e}var Amt=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case qz:t.return=cme(t.value,t.length);break;case ime:return pg([Km(t,{value:Fr(t.value,"@","@"+Dr)})],o);case Pz:if(t.length)return amt(t.props,function(i){switch(smt(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return pg([Km(t,{props:[Fr(i,/:(read-\w+)/,":"+HT+"$1")]})],o);case"::placeholder":return pg([Km(t,{props:[Fr(i,/:(plac\w+)/,":"+Dr+"input-$1")]}),Km(t,{props:[Fr(i,/:(plac\w+)/,":"+HT+"$1")]}),Km(t,{props:[Fr(i,/:(plac\w+)/,Ei+"input-$1")]})],o)}return""})}},Tmt=[Amt],xmt=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(v){var y=v.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||Tmt,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(v){for(var y=v.getAttribute("data-emotion").split(" "),E=1;ENumber.isNaN(Number(e))).map(([e,t])=>[e,`var(${t})`]));fe.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/};fe.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>/=$<%]+(?:\s(?:\s*[^\s>/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>/]+/,inside:{namespace:/^[^\s>/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]};fe.languages.markup.tag.inside["attr-value"].inside.entity=fe.languages.markup.entity;fe.languages.markup.doctype.inside["internal-subset"].inside=fe.languages.markup;fe.hooks.add("wrap",function(e){e.type==="entity"&&e.attributes&&(e.attributes.title=e.content.replace(/&/,"&"))});Object.defineProperty(fe.languages.markup.tag,"addInlined",{value:function(t,r){const n={};n["language-"+r]={pattern:/(^$)/i,lookbehind:!0,inside:fe.languages[r]},n.cdata=/^$/i;const o={"included-cdata":{pattern://i,inside:n}};o["language-"+r]={pattern:/[\s\S]+/,inside:fe.languages[r]};const i={};i[t]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:o},fe.languages.insertBefore("markup","cdata",i)}});Object.defineProperty(fe.languages.markup.tag,"addAttribute",{value:function(e,t){fe.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:fe.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}});fe.languages.html=fe.languages.markup;fe.languages.mathml=fe.languages.markup;fe.languages.svg=fe.languages.markup;fe.languages.xml=fe.languages.extend("markup",{});fe.languages.ssml=fe.languages.xml;fe.languages.atom=fe.languages.xml;fe.languages.rss=fe.languages.xml;const $T="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",Kz={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:void 0},ky={bash:Kz,environment:{pattern:RegExp("\\$"+$T),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!/]|##?|%%?|\^\^?|,,?/,punctuation:/[[\]]/,environment:{pattern:RegExp("(\\{)"+$T),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};fe.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+$T),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:ky},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:Kz}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:ky},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:ky.entity}}],environment:{pattern:RegExp("\\$?"+$T),alias:"constant"},variable:ky.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}};Kz.inside=fe.languages.bash;const H3=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],Lmt=ky.variable[1].inside;for(let e=0;e>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/});fe.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}});fe.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},fe.languages.c.string],char:fe.languages.c.char,comment:fe.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:fe.languages.c}}}});fe.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/});delete fe.languages.c.boolean;const Gm=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;fe.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+Gm.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+Gm.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+Gm.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+Gm.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:Gm,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/};fe.languages.css.atrule.inside.rest=fe.languages.css;const $3=fe.languages.markup;$3&&($3.tag.addInlined("style","css"),$3.tag.addAttribute("style","css"));const I6=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,jmt=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return I6.source});fe.languages.cpp=fe.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return I6.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:I6,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/});fe.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return jmt})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}});fe.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:fe.languages.cpp}}}});fe.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});fe.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:fe.languages.extend("cpp",{})}});fe.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},fe.languages.cpp["base-clause"]);const zmt="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",Xw={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:fe.languages.markup}};function Qw(e,t){return RegExp(e.replace(//g,function(){return zmt}),t)}fe.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:Qw(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:Xw},"attr-value":{pattern:Qw(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:Xw},"attr-name":{pattern:Qw(/([[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:Xw},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:Qw(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:Xw},operator:/[=:]|-[->]/,punctuation:/[[\]{};,]/};fe.languages.gv=fe.languages.dot;fe.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};const N6={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(N6).forEach(function(e){const t=N6[e],r=[];/^\w+$/.test(e)||r.push(/\w+/.exec(e)[0]),e==="diff"&&r.push("bold"),fe.languages.diff[e]={pattern:RegExp("^(?:["+t+`].*(?:\r + */var r=function(n){var o=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,i=0,s={},a={manual:n.Prism&&n.Prism.manual,disableWorkerMessageHandler:n.Prism&&n.Prism.disableWorkerMessageHandler,util:{encode:function _(S){return S instanceof u?new u(S.type,_(S.content),S.alias):Array.isArray(S)?S.map(_):S.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(A){var _=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(A.stack)||[])[1];if(_){var S=document.getElementsByTagName("script");for(var b in S)if(S[b].src==_)return S[b]}return null}},isActive:function(_,S,b){for(var A="no-"+S;_;){var T=_.classList;if(T.contains(S))return!0;if(T.contains(A))return!1;_=_.parentElement}return!!b}},languages:{plain:s,plaintext:s,text:s,txt:s,extend:function(_,S){var b=a.util.clone(a.languages[_]);for(var A in S)b[A]=S[A];return b},insertBefore:function(_,S,b,A){A=A||a.languages;var T=A[_],x={};for(var C in T)if(T.hasOwnProperty(C)){if(C==S)for(var I in b)b.hasOwnProperty(I)&&(x[I]=b[I]);b.hasOwnProperty(C)||(x[C]=T[C])}var R=A[_];return A[_]=x,a.languages.DFS(a.languages,function(D,L){L===R&&D!=_&&(this[D]=x)}),x},DFS:function _(S,b,A,T){T=T||{};var x=a.util.objId;for(var C in S)if(S.hasOwnProperty(C)){b.call(S,C,S[C],A||C);var I=S[C],R=a.util.type(I);R==="Object"&&!T[x(I)]?(T[x(I)]=!0,_(I,b,null,T)):R==="Array"&&!T[x(I)]&&(T[x(I)]=!0,_(I,b,C,T))}}},plugins:{},highlightAll:function(_,S){a.highlightAllUnder(document,_,S)},highlightAllUnder:function(_,S,b){var A={callback:b,container:_,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",A),A.elements=Array.prototype.slice.apply(A.container.querySelectorAll(A.selector)),a.hooks.run("before-all-elements-highlight",A);for(var T=0,x;x=A.elements[T++];)a.highlightElement(x,S===!0,A.callback)},highlightElement:function(_,S,b){var A=a.util.getLanguage(_),T=a.languages[A];a.util.setLanguage(_,A);var x=_.parentElement;x&&x.nodeName.toLowerCase()==="pre"&&a.util.setLanguage(x,A);var C=_.textContent,I={element:_,language:A,grammar:T,code:C};function R(L){I.highlightedCode=L,a.hooks.run("before-insert",I),I.element.innerHTML=I.highlightedCode,a.hooks.run("after-highlight",I),a.hooks.run("complete",I),b&&b.call(I.element)}if(a.hooks.run("before-sanity-check",I),x=I.element.parentElement,x&&x.nodeName.toLowerCase()==="pre"&&!x.hasAttribute("tabindex")&&x.setAttribute("tabindex","0"),!I.code){a.hooks.run("complete",I),b&&b.call(I.element);return}if(a.hooks.run("before-highlight",I),!I.grammar){R(a.util.encode(I.code));return}if(S&&n.Worker){var D=new Worker(a.filename);D.onmessage=function(L){R(L.data)},D.postMessage(JSON.stringify({language:I.language,code:I.code,immediateClose:!0}))}else R(a.highlight(I.code,I.grammar,I.language))},highlight:function(_,S,b){var A={code:_,grammar:S,language:b};if(a.hooks.run("before-tokenize",A),!A.grammar)throw new Error('The language "'+A.language+'" has no grammar.');return A.tokens=a.tokenize(A.code,A.grammar),a.hooks.run("after-tokenize",A),u.stringify(a.util.encode(A.tokens),A.language)},tokenize:function(_,S){var b=S.rest;if(b){for(var A in b)S[A]=b[A];delete S.rest}var T=new f;return d(T,T.head,_),c(_,T,S,T.head,0),g(T)},hooks:{all:{},add:function(_,S){var b=a.hooks.all;b[_]=b[_]||[],b[_].push(S)},run:function(_,S){var b=a.hooks.all[_];if(!(!b||!b.length))for(var A=0,T;T=b[A++];)T(S)}},Token:u};n.Prism=a;function u(_,S,b,A){this.type=_,this.content=S,this.alias=b,this.length=(A||"").length|0}u.stringify=function _(S,b){if(typeof S=="string")return S;if(Array.isArray(S)){var A="";return S.forEach(function(R){A+=_(R,b)}),A}var T={type:S.type,content:_(S.content,b),tag:"span",classes:["token",S.type],attributes:{},language:b},x=S.alias;x&&(Array.isArray(x)?Array.prototype.push.apply(T.classes,x):T.classes.push(x)),a.hooks.run("wrap",T);var C="";for(var I in T.attributes)C+=" "+I+'="'+(T.attributes[I]||"").replace(/"/g,""")+'"';return"<"+T.tag+' class="'+T.classes.join(" ")+'"'+C+">"+T.content+""};function l(_,S,b,A){_.lastIndex=S;var T=_.exec(b);if(T&&A&&T[1]){var x=T[1].length;T.index+=x,T[0]=T[0].slice(x)}return T}function c(_,S,b,A,T,x){for(var C in b)if(!(!b.hasOwnProperty(C)||!b[C])){var I=b[C];I=Array.isArray(I)?I:[I];for(var R=0;R=x.reach);U+=K.value.length,K=K.next){var X=K.value;if(S.length>_.length)return;if(!(X instanceof u)){var J=1,ee;if(q){if(ee=l($,U,_,M),!ee||ee.index>=_.length)break;var Ee=ee.index,fe=ee.index+ee[0].length,ge=U;for(ge+=K.value.length;Ee>=ge;)K=K.next,ge+=K.value.length;if(ge-=K.value.length,U=ge,K.value instanceof u)continue;for(var Se=K;Se!==S.tail&&(gex.reach&&(x.reach=xe);var He=K.prev;we&&(He=d(S,He,we),U+=we.length),h(S,He,J);var it=new u(C,L?a.tokenize(ve,L):ve,z,ve);if(K=d(S,He,it),me&&d(S,K,me),J>1){var Oe={cause:C+","+R,reach:xe};c(_,S,b,K.prev,U,Oe),x&&Oe.reach>x.reach&&(x.reach=Oe.reach)}}}}}}function f(){var _={value:null,prev:null,next:null},S={value:null,prev:_,next:null};_.next=S,this.head=_,this.tail=S,this.length=0}function d(_,S,b){var A=S.next,T={value:b,prev:S,next:A};return S.next=T,A.prev=T,_.length++,T}function h(_,S,b){for(var A=S.next,T=0;T/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},r.languages.markup.tag.inside["attr-value"].inside.entity=r.languages.markup.entity,r.languages.markup.doctype.inside["internal-subset"].inside=r.languages.markup,r.hooks.add("wrap",function(n){n.type==="entity"&&(n.attributes.title=n.content.replace(/&/,"&"))}),Object.defineProperty(r.languages.markup.tag,"addInlined",{value:function(o,i){var s={};s["language-"+i]={pattern:/(^$)/i,lookbehind:!0,inside:r.languages[i]},s.cdata=/^$/i;var a={"included-cdata":{pattern://i,inside:s}};a["language-"+i]={pattern:/[\s\S]+/,inside:r.languages[i]};var u={};u[o]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return o}),"i"),lookbehind:!0,greedy:!0,inside:a},r.languages.insertBefore("markup","cdata",u)}}),Object.defineProperty(r.languages.markup.tag,"addAttribute",{value:function(n,o){r.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[o,"language-"+o],inside:r.languages[o]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),r.languages.html=r.languages.markup,r.languages.mathml=r.languages.markup,r.languages.svg=r.languages.markup,r.languages.xml=r.languages.extend("markup",{}),r.languages.ssml=r.languages.xml,r.languages.atom=r.languages.xml,r.languages.rss=r.languages.xml,function(n){var o=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+o.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+o.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+o.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+o.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:o,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var i=n.languages.markup;i&&(i.tag.addInlined("style","css"),i.tag.addAttribute("style","css"))}(r),r.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},r.languages.javascript=r.languages.extend("clike",{"class-name":[r.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),r.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,r.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:r.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:r.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:r.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:r.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:r.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),r.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:r.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),r.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),r.languages.markup&&(r.languages.markup.tag.addInlined("script","javascript"),r.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),r.languages.js=r.languages.javascript,function(){if(typeof r>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var n="Loading…",o=function(v,y){return"✖ Error "+v+" while fetching file: "+y},i="✖ Error: File does not exist or is empty",s={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},a="data-src-status",u="loading",l="loaded",c="failed",f="pre[data-src]:not(["+a+'="'+l+'"]):not(['+a+'="'+u+'"])';function d(v,y,E){var _=new XMLHttpRequest;_.open("GET",v,!0),_.onreadystatechange=function(){_.readyState==4&&(_.status<400&&_.responseText?y(_.responseText):_.status>=400?E(o(_.status,_.statusText)):E(i))},_.send(null)}function h(v){var y=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(v||"");if(y){var E=Number(y[1]),_=y[2],S=y[3];return _?S?[E,Number(S)]:[E,void 0]:[E,E]}}r.hooks.add("before-highlightall",function(v){v.selector+=", "+f}),r.hooks.add("before-sanity-check",function(v){var y=v.element;if(y.matches(f)){v.code="",y.setAttribute(a,u);var E=y.appendChild(document.createElement("CODE"));E.textContent=n;var _=y.getAttribute("data-src"),S=v.language;if(S==="none"){var b=(/\.(\w+)$/.exec(_)||[,"none"])[1];S=s[b]||b}r.util.setLanguage(E,S),r.util.setLanguage(y,S);var A=r.plugins.autoloader;A&&A.loadLanguages(S),d(_,function(T){y.setAttribute(a,l);var x=h(y.getAttribute("data-range"));if(x){var C=T.split(/\r\n?|\n/g),I=x[0],R=x[1]==null?C.length:x[1];I<0&&(I+=C.length),I=Math.max(0,Math.min(I-1,C.length)),R<0&&(R+=C.length),R=Math.max(0,Math.min(R,C.length)),T=C.slice(I,R).join(` +`),y.hasAttribute("data-start")||y.setAttribute("data-start",String(I+1))}E.textContent=T,r.highlightElement(E)},function(T){y.setAttribute(a,c),E.textContent=T})}}),r.plugins.fileHighlight={highlight:function(y){for(var E=(y||document).querySelectorAll(f),_=0,S;S=E[_++];)r.highlightElement(S)}};var g=!1;r.fileHighlight=function(){g||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),g=!0),r.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(cme);var fmt=cme.exports;const ce=Lf(fmt);function dmt(e){if(e.sheet)return e.sheet;for(var t=0;t0?ai(Yv,--Ps):0,iv--,bo===10&&(iv=1,R5--),bo}function ba(){return bo=Ps2||C_(bo)>3?"":" "}function kmt(e,t){for(;--t&&ba()&&!(bo<48||bo>102||bo>57&&bo<65||bo>70&&bo<97););return PE(e,XA()+(t<6&&sc()==32&&ba()==32))}function R6(e){for(;ba();)switch(bo){case e:return Ps;case 34:case 39:e!==34&&e!==39&&R6(bo);break;case 40:e===41&&R6(e);break;case 92:ba();break}return Ps}function xmt(e,t){for(;ba()&&e+bo!==57;)if(e+bo===84&&sc()===47)break;return"/*"+PE(t,Ps-1)+"*"+N5(e===47?e:ba())}function Tmt(e){for(;!C_(sc());)ba();return PE(e,Ps)}function Imt(e){return vme(ZA("",null,null,null,[""],e=gme(e),0,[0],e))}function ZA(e,t,r,n,o,i,s,a,u){for(var l=0,c=0,f=s,d=0,h=0,g=0,v=1,y=1,E=1,_=0,S="",b=o,A=i,T=n,x=S;y;)switch(g=_,_=ba()){case 40:if(g!=108&&ai(x,f-1)==58){N6(x+=Br(QA(_),"&","&\f"),"&\f")!=-1&&(E=-1);break}case 34:case 39:case 91:x+=QA(_);break;case 9:case 10:case 13:case 32:x+=Amt(g);break;case 92:x+=kmt(XA()-1,7);continue;case 47:switch(sc()){case 42:case 47:Jw(Cmt(xmt(ba(),XA()),t,r),u);break;default:x+="/"}break;case 123*v:a[l++]=ql(x)*E;case 125*v:case 59:case 0:switch(_){case 0:case 125:y=0;case 59+c:E==-1&&(x=Br(x,/\f/g,"")),h>0&&ql(x)-f&&Jw(h>32?Qte(x+";",n,r,f-1):Qte(Br(x," ","")+";",n,r,f-2),u);break;case 59:x+=";";default:if(Jw(T=Xte(x,t,r,l,c,o,a,S,b=[],A=[],f),i),_===123)if(c===0)ZA(x,t,T,T,b,i,f,a,A);else switch(d===99&&ai(x,3)===110?100:d){case 100:case 108:case 109:case 115:ZA(e,T,T,n&&Jw(Xte(e,T,T,0,0,o,a,S,o,b=[],f),A),o,A,f,a,n?b:A);break;default:ZA(x,T,T,T,[""],A,0,a,A)}}l=c=h=0,v=E=1,S=x="",f=s;break;case 58:f=1+ql(x),h=g;default:if(v<1){if(_==123)--v;else if(_==125&&v++==0&&wmt()==125)continue}switch(x+=N5(_),_*v){case 38:E=c>0?1:(x+="\f",-1);break;case 44:a[l++]=(ql(x)-1)*E,E=1;break;case 64:sc()===45&&(x+=QA(ba())),d=sc(),c=f=ql(S=x+=Tmt(XA())),_++;break;case 45:g===45&&ql(x)==2&&(v=0)}}return i}function Xte(e,t,r,n,o,i,s,a,u,l,c){for(var f=o-1,d=o===0?i:[""],h=Zz(d),g=0,v=0,y=0;g0?d[E]+" "+_:Br(_,/&\f/g,d[E])))&&(u[y++]=S);return O5(e,t,r,o===0?Xz:a,u,l,c)}function Cmt(e,t,r){return O5(e,t,r,fme,N5(Smt()),I_(e,2,-2),0)}function Qte(e,t,r,n){return O5(e,t,r,Qz,I_(e,0,n),I_(e,n+1,-1),n)}function vg(e,t){for(var r="",n=Zz(e),o=0;o6)switch(ai(e,t+1)){case 109:if(ai(e,t+4)!==45)break;case 102:return Br(e,/(.+:)(.+)-([^]+)/,"$1"+Fr+"$2-$3$1"+Wx+(ai(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~N6(e,"stretch")?mme(Br(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ai(e,t+1)!==115)break;case 6444:switch(ai(e,ql(e)-3-(~N6(e,"!important")&&10))){case 107:return Br(e,":",":"+Fr)+e;case 101:return Br(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Fr+(ai(e,14)===45?"inline-":"")+"box$3$1"+Fr+"$2$3$1"+Si+"$2box$3")+e}break;case 5936:switch(ai(e,t+11)){case 114:return Fr+e+Si+Br(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Fr+e+Si+Br(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Fr+e+Si+Br(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Fr+e+Si+e+e}return e}var zmt=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case Qz:t.return=mme(t.value,t.length);break;case dme:return vg([Gm(t,{value:Br(t.value,"@","@"+Fr)})],o);case Xz:if(t.length)return Emt(t.props,function(i){switch(_mt(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return vg([Gm(t,{props:[Br(i,/:(read-\w+)/,":"+Wx+"$1")]})],o);case"::placeholder":return vg([Gm(t,{props:[Br(i,/:(plac\w+)/,":"+Fr+"input-$1")]}),Gm(t,{props:[Br(i,/:(plac\w+)/,":"+Wx+"$1")]}),Gm(t,{props:[Br(i,/:(plac\w+)/,Si+"input-$1")]})],o)}return""})}},Hmt=[zmt],$mt=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(v){var y=v.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||Hmt,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(v){for(var y=v.getAttribute("data-emotion").split(" "),E=1;ENumber.isNaN(Number(e))).map(([e,t])=>[e,`var(${t})`]));ce.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/};ce.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>/=$<%]+(?:\s(?:\s*[^\s>/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>/]+/,inside:{namespace:/^[^\s>/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]};ce.languages.markup.tag.inside["attr-value"].inside.entity=ce.languages.markup.entity;ce.languages.markup.doctype.inside["internal-subset"].inside=ce.languages.markup;ce.hooks.add("wrap",function(e){e.type==="entity"&&e.attributes&&(e.attributes.title=e.content.replace(/&/,"&"))});Object.defineProperty(ce.languages.markup.tag,"addInlined",{value:function(t,r){const n={};n["language-"+r]={pattern:/(^$)/i,lookbehind:!0,inside:ce.languages[r]},n.cdata=/^$/i;const o={"included-cdata":{pattern://i,inside:n}};o["language-"+r]={pattern:/[\s\S]+/,inside:ce.languages[r]};const i={};i[t]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:o},ce.languages.insertBefore("markup","cdata",i)}});Object.defineProperty(ce.languages.markup.tag,"addAttribute",{value:function(e,t){ce.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:ce.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}});ce.languages.html=ce.languages.markup;ce.languages.mathml=ce.languages.markup;ce.languages.svg=ce.languages.markup;ce.languages.xml=ce.languages.extend("markup",{});ce.languages.ssml=ce.languages.xml;ce.languages.atom=ce.languages.xml;ce.languages.rss=ce.languages.xml;const Kx="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",Jz={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:void 0},xy={bash:Jz,environment:{pattern:RegExp("\\$"+Kx),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!/]|##?|%%?|\^\^?|,,?/,punctuation:/[[\]]/,environment:{pattern:RegExp("(\\{)"+Kx),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};ce.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+Kx),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:xy},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:Jz}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:xy},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:xy.entity}}],environment:{pattern:RegExp("\\$?"+Kx),alias:"constant"},variable:xy.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}};Jz.inside=ce.languages.bash;const W3=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],Qmt=xy.variable[1].inside;for(let e=0;e>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/});ce.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}});ce.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},ce.languages.c.string],char:ce.languages.c.char,comment:ce.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:ce.languages.c}}}});ce.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/});delete ce.languages.c.boolean;const Vm=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;ce.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+Vm.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+Vm.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+Vm.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+Vm.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:Vm,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/};ce.languages.css.atrule.inside.rest=ce.languages.css;const K3=ce.languages.markup;K3&&(K3.tag.addInlined("style","css"),K3.tag.addAttribute("style","css"));const D6=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,Zmt=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return D6.source});ce.languages.cpp=ce.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return D6.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:D6,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/});ce.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return Zmt})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}});ce.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:ce.languages.cpp}}}});ce.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});ce.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:ce.languages.extend("cpp",{})}});ce.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},ce.languages.cpp["base-clause"]);const Jmt="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",eA={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:ce.languages.markup}};function tA(e,t){return RegExp(e.replace(//g,function(){return Jmt}),t)}ce.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:tA(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:eA},"attr-value":{pattern:tA(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:eA},"attr-name":{pattern:tA(/([[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:eA},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:tA(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:eA},operator:/[=:]|-[->]/,punctuation:/[[\]{};,]/};ce.languages.gv=ce.languages.dot;ce.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};const F6={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(F6).forEach(function(e){const t=F6[e],r=[];/^\w+$/.test(e)||r.push(/\w+/.exec(e)[0]),e==="diff"&&r.push("bold"),ce.languages.diff[e]={pattern:RegExp("^(?:["+t+`].*(?:\r ?| -|(?![\\s\\S])))+`,"m"),alias:r,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(e)[0]}}}});Object.defineProperty(fe.languages.diff,"PREFIXES",{value:N6});fe.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m};fe.languages.go=fe.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/});fe.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}});delete fe.languages.go["class-name"];const C6=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,C_=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,gg={pattern:RegExp(/(^|[^\w.])/.source+C_+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};fe.languages.java=fe.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[gg,{pattern:RegExp(/(^|[^\w.])/.source+C_+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:gg.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+C_+/[A-Z]\w*\b/.source),lookbehind:!0,inside:gg.inside}],keyword:C6,function:[fe.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/});fe.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}});fe.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":gg,keyword:C6,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+C_+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:gg.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+C_+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:gg.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return C6.source})),lookbehind:!0,inside:{punctuation:/\./}}});fe.languages.javascript=fe.languages.extend("clike",{"class-name":[fe.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/});fe.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;fe.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:fe.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:fe.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:fe.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:fe.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:fe.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});fe.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:fe.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}});fe.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}});if(fe.languages.markup){const e=fe.languages.markup;e.tag.addInlined("script","javascript"),e.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")}fe.languages.js=fe.languages.javascript;fe.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}};fe.languages.webmanifest=fe.languages.json;const pme=fe.util.clone(fe.languages.javascript),Hmt=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,$mt=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source;let R6=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function N5(e,t){const r=e.replace(//g,()=>Hmt).replace(//g,()=>$mt).replace(//g,()=>R6);return RegExp(r,t)}R6=N5(R6).source;fe.languages.jsx=fe.languages.extend("markup",pme);const bp=fe.languages.jsx;bp.tag.pattern=N5(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source);bp.tag.inside.tag.pattern=/^<\/?[^\s>/]*/;bp.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/;bp.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/;bp.tag.inside.comment=pme.comment;fe.languages.insertBefore("inside","attr-name",{spread:{pattern:N5(//.source),inside:fe.languages.jsx}},bp.tag);fe.languages.insertBefore("inside","special-attr",{script:{pattern:N5(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:fe.languages.jsx}}},bp.tag);const b0=function(e){return e?typeof e=="string"?e:typeof e.content=="string"?e.content:e.content.map(b0).join(""):""},gme=function(e){const t=[];for(let r=0;r0&&t[t.length-1].tagName===b0(i[0].content[1])&&t.pop():i[i.length-1].content==="/>"||t.push({tagName:b0(i[0].content[1]),openedBraces:0}):t.length>0&&n.type==="punctuation"&&n.content==="{"?t[t.length-1].openedBraces+=1:t.length>0&&t[t.length-1].openedBraces>0&&n.type==="punctuation"&&n.content==="}"?t[t.length-1].openedBraces-=1:o=!0}if((o||typeof n=="string")&&t.length>0&&t[t.length-1].openedBraces===0){let i=b0(n);r0&&(typeof e[r-1]=="string"||e[r-1].type==="plain-text")&&(i=b0(e[r-1])+i,e.splice(r-1,1),r-=1),e[r]=new fe.Token("plain-text",i,void 0,i)}typeof n!="string"&&n.content&&typeof n.content!="string"&&gme(n.content)}};fe.hooks.add("after-tokenize",function(e){e.language!=="jsx"&&e.language!=="tsx"||gme(e.tokens)});fe.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/};const Pmt=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function Zw(e){const t=e.replace(//g,function(){return Pmt});return RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+t+")")}const O6=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,s0=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return O6}),P3=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;fe.languages.markdown=fe.languages.extend("markup",{});fe.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:fe.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+s0+P3+"(?:"+s0+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+s0+P3+")(?:"+s0+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(O6),inside:fe.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+s0+")"+P3+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+s0+"$"),inside:{"table-header":{pattern:RegExp(O6),alias:"important",inside:fe.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[[\]!:]|[<>]/},alias:"url"},bold:{pattern:Zw(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:Zw(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:Zw(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:Zw(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}});["url","bold","italic","strike"].forEach(function(e){["url","bold","italic","strike","code-snippet"].forEach(function(t){if(e!==t){const r=fe.languages.markdown;r[e].inside.content.inside[t]=r[t]}})});fe.hooks.add("after-tokenize",function(e){if(e.language!=="markdown"&&e.language!=="md")return;function t(r){if(!(!r||typeof r=="string"))for(let n=0,o=r.length;n",quot:'"'},Kmt=String.fromCodePoint||String.fromCharCode;function Gmt(e){let t=e.replace(qmt,"");return t=t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(r,n){if(n=n.toLowerCase(),n[0]==="#"){let o;return n[1]==="x"?o=parseInt(n.slice(2),16):o=Number(n.slice(1)),Kmt(o)}else{const o=Wmt[n];return o||r}}),t}fe.languages.md=fe.languages.markdown;fe.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/};fe.languages.python["string-interpolation"].inside.interpolation.inside.rest=fe.languages.python;fe.languages.py=fe.languages.python;fe.languages.scss=fe.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}});fe.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]});fe.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/});fe.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}});fe.languages.scss.atrule.inside.rest=fe.languages.scss;fe.languages.sass=fe.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}});fe.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}});delete fe.languages.sass.atrule;const Qte=/\$[-\w]+|#\{\$[-\w]+\}/,Zte=[/[+*/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];fe.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:Qte,operator:Zte}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:Qte,operator:Zte,important:fe.languages.sass.important}}});delete fe.languages.sass.property;delete fe.languages.sass.important;fe.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}});fe.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/};const Jte={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},ere={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},_s={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:Jte,number:ere,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:Jte,boolean:/\b(?:false|true)\b/,operator:[/~|[+!/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:ere,punctuation:/[{}()[\];:,]/};_s.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:_s}};_s.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:_s}};fe.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:_s}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:_s}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:_s}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:_s.interpolation}},rest:_s}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:_s.interpolation,comment:_s.comment,punctuation:/[{},]/}},func:_s.func,string:_s.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:_s.interpolation,punctuation:/[{}()[\];:.]/};fe.languages.typescript=fe.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/});fe.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[{*]|$))/);delete fe.languages.typescript.parameter;delete fe.languages.typescript["literal-property"];const Gz=fe.languages.extend("typescript",{});delete Gz["class-name"];fe.languages.typescript["class-name"].inside=Gz;fe.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:Gz}}}});fe.languages.ts=fe.languages.typescript;const Vmt=fe.util.clone(fe.languages.typescript);fe.languages.tsx=fe.languages.extend("jsx",Vmt);delete fe.languages.tsx.parameter;delete fe.languages.tsx["literal-property"];const Uk=fe.languages.tsx.tag;Uk.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+Uk.pattern.source+")",Uk.pattern.flags);Uk.lookbehind=!0;fe.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/};fe.languages.vb=fe.languages["visual-basic"];fe.languages.vba=fe.languages["visual-basic"];fe.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/};const D6=/[*&][^\s[\]{},]+/,F6=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,B6="(?:"+F6.source+"(?:[ ]+"+D6.source+")?|"+D6.source+"(?:[ ]+"+F6.source+")?)",Umt=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,()=>/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source),tre=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function Vm(e,t){const r=(t||"").replace(/m/g,"")+"m",n=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return B6}).replace(/<>/g,function(){return e});return RegExp(n,r)}fe.languages.yaml={scalar:{pattern:RegExp(/([-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return B6})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return B6}).replace(/<>/g,function(){return"(?:"+Umt+"|"+tre+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:Vm(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:Vm(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:Vm(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:Vm(tre),lookbehind:!0,greedy:!0},number:{pattern:Vm(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:F6,important:D6,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./};fe.languages.yml=fe.languages.yaml;const Ymt={plain:{color:"#d4d4d4",backgroundColor:"#1e1e1e"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment","punctuation"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin"],style:{color:"rgb(79, 193, 255)"}},{types:["number","variable","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["operator"],style:{color:"rgb(212, 212, 212)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["tag","changed","function","keyword"],style:{color:"rgb(86, 156, 214)"}},{types:["attr-name"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value"],style:{color:"rgb(206, 145, 120)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}}]},Xmt={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},Va={border:`1px solid var(${N_.colorBorderCodeLineno}, hsla(0deg, 0%, 80%, 0.8))`,highlightBackground:`var(${N_.colorBgCodeHighlight}, hsla(30deg, 90%, 50%, 0.3))`,fontSizeCode:`var(${I_.fontSizeCode}, 14px)`,lineHeightCode:`var(${I_.lineHeightCode}, 1.6)`},Fl={container:hd({MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",display:"flex",alignItems:"stretch",overflow:"hidden",width:"100%",fontSize:Va.fontSizeCode,lineHeight:Va.lineHeightCode,padding:0,transition:"max-height 0.5s ease-in-out",tabSize:2,fontSmooth:"always",whiteSpace:"pre",wordBreak:"keep-all",wordSpacing:"normal",wordWrap:"normal"}),line:hd({boxSizing:"border-box",display:"flex",minWidth:"fit-content",width:"100%",padding:"0 6px",letterSpacing:"inherit",fontSize:Va.fontSizeCode,lineHeight:Va.lineHeightCode,height:Va.lineHeightCode,overflowWrap:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"inherit",wordBreak:"inherit",wordSpacing:"inherit",wordWrap:"inherit"}),linenoLine:hd({justifyContent:"flex-end",padding:"0 4px"}),highlightLine:hd({background:Va.highlightBackground,borderColor:"transparent"}),lineno:hd({flex:"0 0 auto",overflow:"hidden",boxSizing:"border-box",padding:"0.5rem 0",cursor:"default",fontSize:Va.fontSizeCode,lineHeight:Va.lineHeightCode,userSelect:"none",textAlign:"right",borderRight:Va.border}),codes:hd({flex:"1 1 auto",overflow:"overlay",boxSizing:"border-box",padding:"0.5rem 0",fontSize:Va.fontSizeCode,lineHeight:Va.lineHeightCode}),codeWrapper:hd({minWidth:"100%",width:"fit-content"}),codeLine:hd({boxSizing:"border-box",padding:"0 12px"})},Qmt={js:"javascript",ts:"typescript"},rre=(e,t)=>{e=Qmt[e]??e;const{plain:r}=t,n=Object.create(null),o=t.styles.reduce((i,s)=>{const{types:a,style:u,languages:l}=s;if(l&&!l.includes(e))return i;for(const c of a){const f={...i[c],...u};i[c]=f}return i},n);return o.root=r,o.plain={...r,backgroundColor:void 0},o},Zmt=/\r\n|\r|\n/,nre=e=>{e.length===0?e.push({types:["plain"],content:` +|(?![\\s\\S])))+`,"m"),alias:r,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(e)[0]}}}});Object.defineProperty(ce.languages.diff,"PREFIXES",{value:F6});ce.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m};ce.languages.go=ce.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/});ce.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}});delete ce.languages.go["class-name"];const B6=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,D_=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,mg={pattern:RegExp(/(^|[^\w.])/.source+D_+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};ce.languages.java=ce.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[mg,{pattern:RegExp(/(^|[^\w.])/.source+D_+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:mg.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+D_+/[A-Z]\w*\b/.source),lookbehind:!0,inside:mg.inside}],keyword:B6,function:[ce.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/});ce.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}});ce.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":mg,keyword:B6,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+D_+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:mg.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+D_+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:mg.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return B6.source})),lookbehind:!0,inside:{punctuation:/\./}}});ce.languages.javascript=ce.languages.extend("clike",{"class-name":[ce.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/});ce.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;ce.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:ce.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:ce.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:ce.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:ce.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:ce.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});ce.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:ce.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}});ce.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}});if(ce.languages.markup){const e=ce.languages.markup;e.tag.addInlined("script","javascript"),e.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")}ce.languages.js=ce.languages.javascript;ce.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}};ce.languages.webmanifest=ce.languages.json;const Eme=ce.util.clone(ce.languages.javascript),eyt=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,tyt=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source;let M6=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function D5(e,t){const r=e.replace(//g,()=>eyt).replace(//g,()=>tyt).replace(//g,()=>M6);return RegExp(r,t)}M6=D5(M6).source;ce.languages.jsx=ce.languages.extend("markup",Eme);const _p=ce.languages.jsx;_p.tag.pattern=D5(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source);_p.tag.inside.tag.pattern=/^<\/?[^\s>/]*/;_p.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/;_p.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/;_p.tag.inside.comment=Eme.comment;ce.languages.insertBefore("inside","attr-name",{spread:{pattern:D5(//.source),inside:ce.languages.jsx}},_p.tag);ce.languages.insertBefore("inside","special-attr",{script:{pattern:D5(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:ce.languages.jsx}}},_p.tag);const _0=function(e){return e?typeof e=="string"?e:typeof e.content=="string"?e.content:e.content.map(_0).join(""):""},Sme=function(e){const t=[];for(let r=0;r0&&t[t.length-1].tagName===_0(i[0].content[1])&&t.pop():i[i.length-1].content==="/>"||t.push({tagName:_0(i[0].content[1]),openedBraces:0}):t.length>0&&n.type==="punctuation"&&n.content==="{"?t[t.length-1].openedBraces+=1:t.length>0&&t[t.length-1].openedBraces>0&&n.type==="punctuation"&&n.content==="}"?t[t.length-1].openedBraces-=1:o=!0}if((o||typeof n=="string")&&t.length>0&&t[t.length-1].openedBraces===0){let i=_0(n);r0&&(typeof e[r-1]=="string"||e[r-1].type==="plain-text")&&(i=_0(e[r-1])+i,e.splice(r-1,1),r-=1),e[r]=new ce.Token("plain-text",i,void 0,i)}typeof n!="string"&&n.content&&typeof n.content!="string"&&Sme(n.content)}};ce.hooks.add("after-tokenize",function(e){e.language!=="jsx"&&e.language!=="tsx"||Sme(e.tokens)});ce.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/};const ryt=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function rA(e){const t=e.replace(//g,function(){return ryt});return RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+t+")")}const L6=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a0=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return L6}),G3=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;ce.languages.markdown=ce.languages.extend("markup",{});ce.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:ce.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a0+G3+"(?:"+a0+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a0+G3+")(?:"+a0+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(L6),inside:ce.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a0+")"+G3+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a0+"$"),inside:{"table-header":{pattern:RegExp(L6),alias:"important",inside:ce.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[[\]!:]|[<>]/},alias:"url"},bold:{pattern:rA(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:rA(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:rA(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:rA(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}});["url","bold","italic","strike"].forEach(function(e){["url","bold","italic","strike","code-snippet"].forEach(function(t){if(e!==t){const r=ce.languages.markdown;r[e].inside.content.inside[t]=r[t]}})});ce.hooks.add("after-tokenize",function(e){if(e.language!=="markdown"&&e.language!=="md")return;function t(r){if(!(!r||typeof r=="string"))for(let n=0,o=r.length;n",quot:'"'},iyt=String.fromCodePoint||String.fromCharCode;function syt(e){let t=e.replace(nyt,"");return t=t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(r,n){if(n=n.toLowerCase(),n[0]==="#"){let o;return n[1]==="x"?o=parseInt(n.slice(2),16):o=Number(n.slice(1)),iyt(o)}else{const o=oyt[n];return o||r}}),t}ce.languages.md=ce.languages.markdown;ce.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/};ce.languages.python["string-interpolation"].inside.interpolation.inside.rest=ce.languages.python;ce.languages.py=ce.languages.python;ce.languages.scss=ce.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}});ce.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]});ce.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/});ce.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}});ce.languages.scss.atrule.inside.rest=ce.languages.scss;ce.languages.sass=ce.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}});ce.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}});delete ce.languages.sass.atrule;const ore=/\$[-\w]+|#\{\$[-\w]+\}/,ire=[/[+*/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];ce.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:ore,operator:ire}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:ore,operator:ire,important:ce.languages.sass.important}}});delete ce.languages.sass.property;delete ce.languages.sass.important;ce.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}});ce.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/};const sre={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},are={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},_s={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:sre,number:are,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:sre,boolean:/\b(?:false|true)\b/,operator:[/~|[+!/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:are,punctuation:/[{}()[\];:,]/};_s.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:_s}};_s.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:_s}};ce.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:_s}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:_s}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:_s}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:_s.interpolation}},rest:_s}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:_s.interpolation,comment:_s.comment,punctuation:/[{},]/}},func:_s.func,string:_s.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:_s.interpolation,punctuation:/[{}()[\];:.]/};ce.languages.typescript=ce.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/});ce.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[{*]|$))/);delete ce.languages.typescript.parameter;delete ce.languages.typescript["literal-property"];const eH=ce.languages.extend("typescript",{});delete eH["class-name"];ce.languages.typescript["class-name"].inside=eH;ce.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:eH}}}});ce.languages.ts=ce.languages.typescript;const ayt=ce.util.clone(ce.languages.typescript);ce.languages.tsx=ce.languages.extend("jsx",ayt);delete ce.languages.tsx.parameter;delete ce.languages.tsx["literal-property"];const JA=ce.languages.tsx.tag;JA.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+JA.pattern.source+")",JA.pattern.flags);JA.lookbehind=!0;ce.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/};ce.languages.vb=ce.languages["visual-basic"];ce.languages.vba=ce.languages["visual-basic"];ce.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/};const j6=/[*&][^\s[\]{},]+/,z6=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,H6="(?:"+z6.source+"(?:[ ]+"+j6.source+")?|"+j6.source+"(?:[ ]+"+z6.source+")?)",uyt=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,()=>/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source),ure=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function Um(e,t){const r=(t||"").replace(/m/g,"")+"m",n=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return H6}).replace(/<>/g,function(){return e});return RegExp(n,r)}ce.languages.yaml={scalar:{pattern:RegExp(/([-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return H6})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return H6}).replace(/<>/g,function(){return"(?:"+uyt+"|"+ure+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:Um(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:Um(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:Um(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:Um(ure),lookbehind:!0,greedy:!0},number:{pattern:Um(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:z6,important:j6,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./};ce.languages.yml=ce.languages.yaml;const lyt={plain:{color:"#d4d4d4",backgroundColor:"#1e1e1e"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment","punctuation"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin"],style:{color:"rgb(79, 193, 255)"}},{types:["number","variable","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["operator"],style:{color:"rgb(212, 212, 212)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["tag","changed","function","keyword"],style:{color:"rgb(86, 156, 214)"}},{types:["attr-name"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value"],style:{color:"rgb(206, 145, 120)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}}]},cyt={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},Va={border:`1px solid var(${O_.colorBorderCodeLineno}, hsla(0deg, 0%, 80%, 0.8))`,highlightBackground:`var(${O_.colorBgCodeHighlight}, hsla(30deg, 90%, 50%, 0.3))`,fontSizeCode:`var(${R_.fontSizeCode}, 14px)`,lineHeightCode:`var(${R_.lineHeightCode}, 1.6)`},Ll={container:hd({MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",display:"flex",alignItems:"stretch",overflow:"hidden",width:"100%",fontSize:Va.fontSizeCode,lineHeight:Va.lineHeightCode,padding:0,transition:"max-height 0.5s ease-in-out",tabSize:2,fontSmooth:"always",whiteSpace:"pre",wordBreak:"keep-all",wordSpacing:"normal",wordWrap:"normal"}),line:hd({boxSizing:"border-box",display:"flex",minWidth:"fit-content",width:"100%",padding:"0 6px",letterSpacing:"inherit",fontSize:Va.fontSizeCode,lineHeight:Va.lineHeightCode,height:Va.lineHeightCode,overflowWrap:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"inherit",wordBreak:"inherit",wordSpacing:"inherit",wordWrap:"inherit"}),linenoLine:hd({justifyContent:"flex-end",padding:"0 4px"}),highlightLine:hd({background:Va.highlightBackground,borderColor:"transparent"}),lineno:hd({flex:"0 0 auto",overflow:"hidden",boxSizing:"border-box",padding:"0.5rem 0",cursor:"default",fontSize:Va.fontSizeCode,lineHeight:Va.lineHeightCode,userSelect:"none",textAlign:"right",borderRight:Va.border}),codes:hd({flex:"1 1 auto",overflow:"overlay",boxSizing:"border-box",padding:"0.5rem 0",fontSize:Va.fontSizeCode,lineHeight:Va.lineHeightCode}),codeWrapper:hd({minWidth:"100%",width:"fit-content"}),codeLine:hd({boxSizing:"border-box",padding:"0 12px"})},fyt={js:"javascript",ts:"typescript"},lre=(e,t)=>{e=fyt[e]??e;const{plain:r}=t,n=Object.create(null),o=t.styles.reduce((i,s)=>{const{types:a,style:u,languages:l}=s;if(l&&!l.includes(e))return i;for(const c of a){const f={...i[c],...u};i[c]=f}return i},n);return o.root=r,o.plain={...r,backgroundColor:void 0},o},dyt=/\r\n|\r|\n/,cre=e=>{e.length===0?e.push({types:["plain"],content:` `,empty:!0}):e.length===1&&e[0].content===""&&(e[0].content=` -`,e[0].empty=!0)},ore=(e,t)=>{const r=e.length;return r>0&&e[r-1]===t?e:e.concat(t)},ire=e=>{const t=[[]],r=[e],n=[0],o=[e.length];let i=[];const s=[i];for(let a=0;a>-1;--a){for(let u=0;(u=n[a]++)0?c:["plain"],l=d):(c=ore(c,d.type),d.alias&&(c=ore(c,d.alias)),l=d.content),typeof l!="string"){a+=1,t.push(c),r.push(l),n.push(0),o.push(l.length);continue}const h=l.split(Zmt),g=h.length;i.push({types:c,content:h[0]});for(let v=1;v{var i,s;const n=r.target;if(n==null)return;const{scrollTop:o}=n;(s=(i=this.linenoRef.current)==null?void 0:i.scrollTo)==null||s.call(i,0,o)});const n=rre(r.language,r.theme),o=this.tokenize(r.code,r.language),i=r.showLineno?`${Math.max(2,String(o.length).length)*1.1}em`:void 0;this.state={linenoWidth:i,themeDict:n,tokens:o},this.linenoRef={current:null}}shouldComponentUpdate(r,n){const o=this.props,i=this.state;return i.linenoWidth!==n.linenoWidth||i.themeDict!==n.themeDict||i.tokens!==n.tokens||o.code!==r.code||o.codesRef!==r.codesRef||o.collapsed!==r.collapsed||o.language!==r.language||o.maxLines!==r.maxLines||o.showLineno!==r.showLineno||!zh(o.theme,r.theme)||!zh(o.highlightLinenos,r.highlightLinenos)}render(){const{linenoRef:r,onScroll:n}=this,{codesRef:o,collapsed:i,highlightLinenos:s,language:a,maxLines:u,showLineno:l=!0}=this.props,{linenoWidth:c,tokens:f}=this.state,d=f.length,h=u>0?Math.min(u,d):d,g={...this.state.themeDict.root,backgroundColor:"none",...i?{maxHeight:0}:{maxHeight:`calc(calc(${Va.lineHeightCode} * ${h+.8}) + 6px)`,minHeight:"100%"}};return re.createElement("div",{className:x6(Fl.container,a?`prism-code language-${a}`:"prism-code"),style:g},l&&re.createElement("div",{key:"linenos",className:Fl.lineno,style:{width:c},ref:r},re.createElement(M6,{countOfLines:d,highlightLinenos:s})),re.createElement("div",{key:"codes",ref:o,className:Fl.codes,onScroll:n},re.createElement("div",{className:Fl.codeWrapper},f.map((v,y)=>{const E=s.includes(y+1),_=this.getLineProps({line:v});return re.createElement("div",{..._,key:y,className:x6(Fl.line,Fl.codeLine,E&&Fl.highlightLine,_.className)},v.map((S,b)=>re.createElement("span",{...this.getTokenProps({token:S}),key:b})))}))))}componentDidMount(){var r,n;(n=(r=this.props).onLinenoWidthChange)==null||n.call(r,this.state.linenoWidth)}componentDidUpdate(r,n){var a,u;const o=this.props,i=this.state,s=o.language!==r.language||!zh(o.theme,r.theme)?rre(o.language,o.theme):i.themeDict;if(o.code!==r.code||o.language!==r.language||s!==n.themeDict){const l=this.tokenize(o.code,o.language),c=o.showLineno?`${Math.max(2,String(l.length).length)*1.1}em`:void 0;this.setState({linenoWidth:c,themeDict:s,tokens:l})}i.linenoWidth!==n.linenoWidth&&((u=(a=this.props).onLinenoWidthChange)==null||u.call(a,i.linenoWidth))}tokenize(r,n){const o=n?fe.languages[n]:void 0;if(o){const i={code:r,grammar:o,language:n,tokens:[]};return fe.hooks.run("before-tokenize",i),i.tokens=fe.tokenize(i.code,i.grammar),fe.hooks.run("after-tokenize",i),ire(i.tokens)}else return ire([r])}getLineProps(r){const{themeDict:n}=this.state,{key:o,className:i,style:s,line:a,...u}=r,l={...u,className:"token-line",style:void 0,key:void 0};return n!==void 0&&(l.style=n.plain),s!==void 0&&(l.style=l.style!==void 0?{...l.style,...s}:s),o!==void 0&&(l.key=o),i&&(l.className+=` ${i}`),l}getStyleForToken({types:r,empty:n}){const{themeDict:o}=this.state,i=r.length;if(o===void 0)return;if(i===1&&r[0]==="plain")return n?{display:"inline-block"}:void 0;if(i===1&&!n)return o[r[0]];const s=n?{display:"inline-block"}:{};for(const a of r){const u=o[a];Object.assign(s,u)}return s}getTokenProps(r){const{key:n,className:o,style:i,token:s,...a}=r,u={...a,className:`token ${s.types.join(" ")}`,children:s.content,style:this.getStyleForToken(s),key:void 0};return i!==void 0&&(u.style=u.style!==void 0?{...u.style,...i}:i),n!==void 0&&(u.key=n),o&&(u.className+=` ${o}`),u}}ze(L6,"displayName","HighlightContent"),ze(L6,"propTypes",{code:Br.string.isRequired,codesRef:Br.any,collapsed:Br.bool.isRequired,language:Br.string.isRequired,maxLines:Br.number.isRequired,showLineno:Br.bool.isRequired,theme:Br.object.isRequired,highlightLinenos:Br.array.isRequired,onLinenoWidthChange:Br.func});class j6 extends re.PureComponent{render(){const{lang:t,value:r,darken:n=!0,highlightLinenos:o=[],maxLines:i=-1,collapsed:s=!1,showLineNo:a=!0,codesRef:u,onLinenoWidthChange:l}=this.props,c=this.props.theme??(n?Ymt:Xmt);return re.createElement(L6,{code:r,codesRef:u,collapsed:s,highlightLinenos:o,language:t??"",maxLines:i,showLineno:a,theme:c,onLinenoWidthChange:l})}}ze(j6,"displayName","YozoraCodeHighlighter"),ze(j6,"propTypes",{codesRef:Br.any,collapsed:Br.bool,darken:Br.bool,highlightLinenos:Br.arrayOf(Br.number),lang:Br.string,maxLines:Br.number,onLinenoWidthChange:Br.func,showLineNo:Br.bool,theme:Br.any,value:Br.string.isRequired});const eyt=e=>{const{className:t,delay:r=1500,calcContentForCopy:n}=e,[o,i]=re.useState(0),s=tyt(),a=o!==0,u=()=>{if(o===0){i(1);try{const l=n();ihe(l),i(2)}catch{i(3)}}};return re.useEffect(()=>{if(o===2||o===3){const l=setTimeout(()=>i(0),r);return()=>{l&&clearTimeout(l)}}},[o,r]),C.jsx(Kn,{appearance:"transparent",className:Xe(s.copyButton,t),disabled:a,as:"button",icon:o===0?C.jsx(mae,{}):C.jsx(yae,{}),onClick:u})},tyt=wr({copyButton:{cursor:"pointer"}});class ryt extends re.PureComponent{constructor(){super(...arguments),this.calcContentForCopy=()=>this.props.value}render(){const{calcContentForCopy:t}=this,{darken:r,lang:n,value:o,preferCodeWrap:i,showCodeLineno:s}=this.props;return C.jsxs("code",{className:nyt,"data-wrap":i,children:[C.jsx(j6,{lang:n,value:o,collapsed:!1,showLineNo:s&&!i,darken:r}),C.jsx("div",{className:vme,children:C.jsx(eyt,{calcContentForCopy:t})})]})}}const vme=vr({position:"absolute",right:"4px",top:"4px",display:"none"}),nyt=vr(Gn.code,{position:"relative",display:"block",boxSizing:"border-box",borderRadius:"4px",margin:"0px 0px 1.25em 0px",backgroundColor:"var(--colorBgCode)",[`&:hover > .${vme}`]:{display:"inline-block"},'&&[data-wrap="true"] > div':{whiteSpace:"pre-wrap",wordBreak:"keep-all"}}),oyt=e=>{const{lang:t}=e,r=e.value.replace(/[\r\n]+$/,""),{viewmodel:n}=k5(),o=to(n.preferCodeWrap$),i=to(n.showCodeLineno$),a=to(n.themeScheme$)==="darken";return C.jsx(ryt,{darken:a,lang:t??"text",value:r,preferCodeWrap:o,showCodeLineno:i})};class iyt extends re.Component{shouldComponentUpdate(t){return this.props.children!==t.children}render(){const t=this.props.children;return C.jsx("del",{className:syt,children:C.jsx(Aa,{nodes:t})})}}const syt=vr(Gn.delete,{marginRight:"4px",color:"var(--colorDelete)",fontStyle:"italic",textDecoration:"line-through"});class ayt extends re.Component{shouldComponentUpdate(t){return this.props.children!==t.children}render(){const t=this.props.children;return C.jsx("em",{className:uyt,children:C.jsx(Aa,{nodes:t})})}}const uyt=vr(Gn.emphasis,{fontStyle:"italic",margin:"0 6px 0 2px"});class lyt extends re.Component{shouldComponentUpdate(t){const r=this.props;return r.depth!==t.depth||r.identifier!==t.identifier||r.children!==t.children||r.linkIcon!==t.linkIcon}render(){const{depth:t,identifier:r,children:n,linkIcon:o="¶"}=this.props,i=r==null?void 0:encodeURIComponent(r),s="h"+t,a=s,u=vr(Gn.heading,Jw.heading,Jw[s]);return C.jsxs(a,{id:i,className:u,children:[C.jsx("p",{className:Jw.content,children:C.jsx(Aa,{nodes:n})}),r&&C.jsx("a",{className:Jw.anchor,href:"#"+i,children:o})]})}}const q3=vr({flex:"0 0 3rem",paddingLeft:"0.5rem",color:"var(--colorLink)",opacity:0,transition:"color 0.2s ease-in-out, opacity 0.2s ease-in-out",userSelect:"none",textDecoration:"none","> svg":{overflow:"hidden",display:"inline-block",verticalAlign:"middle",fill:"currentColor"}}),Jw=Mi({heading:{display:"flex",alignItems:"center",justifyContent:"flex-start",padding:"0px",margin:"0px 0px 1.25em 0px",marginBottom:"1em",lineHeight:"1.25",fontFamily:"var(--fontFamilyHeading)",color:"var(--colorHeading)",[`&:active .${q3}`]:{opacity:.8,color:"var(--colorLinkActive)"},[`&&:hover .${q3}`]:{opacity:.8,color:"var(--colorLinkHover)"}},anchor:q3,content:{flex:"0 1 auto",minWidth:0,margin:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"pre-wrap",lineHeight:"1.7"},h1:{padding:"0.3rem 0",borderBottom:"1px solid var(--colorBorderHeading)",fontSize:"2rem",fontStyle:"normal",fontWeight:500},h2:{padding:"0.3rem 0",borderBottom:"1px solid var(--colorBorderHeading)",fontSize:"1.5rem",fontStyle:"normal",fontWeight:500,marginBottom:"0.875rem"},h3:{fontSize:"1.25rem",fontStyle:"normal",fontWeight:500},h4:{fontSize:"1rem",fontStyle:"normal",fontWeight:500},h5:{fontSize:"0.875rem",fontStyle:"normal",fontWeight:500},h6:{fontSize:"0.85rem",fontStyle:"normal",fontWeight:500}});class mme extends re.Component{shouldComponentUpdate(t){const r=this.props;return r.src!==t.src||r.alt!==t.alt||r.title!==t.title||r.srcSet!==t.srcSet||r.sizes!==t.sizes||r.loading!==t.loading||r.className!==t.className}render(){const{src:t,alt:r,title:n,srcSet:o,sizes:i,loading:s,className:a}=this.props;return C.jsxs("figure",{className:`${a} ${cyt}`,children:[C.jsx("img",{alt:r,src:t,title:n,srcSet:o,sizes:i,loading:s}),n&&C.jsx("figcaption",{children:n})]})}}const cyt=vr({boxSizing:"border-box",maxWidth:"80%",display:"flex",flexDirection:"column",alignItems:"center",margin:0,"> img":{flex:"1 0 auto",boxSizing:"border-box",maxWidth:"100%",border:"1px solid var(--colorBorderImage)",boxShadow:"0 0 20px 1px rgba(126, 125, 150, 0.6)"},"> figcaption":{textAlign:"center",fontStyle:"italic",fontSize:"1em",color:"var(--colorImageTitle)"}}),fyt=e=>{const{url:t,alt:r,title:n,srcSet:o,sizes:i,loading:s}=e;return C.jsx(mme,{alt:r,src:t,title:n,srcSet:o,sizes:i,loading:s,className:Gn.image})},dyt=e=>{const{viewmodel:t}=k5(),r=to(t.definitionMap$),{alt:n,srcSet:o,sizes:i,loading:s}=e,a=r[e.identifier],u=(a==null?void 0:a.url)??"",l=a==null?void 0:a.title;return C.jsx(mme,{alt:n,src:u,title:l,srcSet:o,sizes:i,loading:s,className:Gn.imageReference})};class hyt extends re.Component{shouldComponentUpdate(t){return this.props.value!==t.value}render(){return C.jsx("code",{className:pyt,children:this.props.value})}}const pyt=vr(Gn.inlineCode,{padding:"1px 4px",borderRadius:"4px",margin:0,background:"hsla(210deg, 15%, 60%, 0.15)",lineHeight:"1.375",color:"var(--colorInlineCode)",fontFamily:"var(--fontFamilyCode)",fontSize:"min(1rem, 18px)",fontWeight:500});class yme extends re.Component{shouldComponentUpdate(t){const r=this.props;return r.url!==t.url||r.title!==t.title||r.childNodes!==t.childNodes||r.className!==t.className}render(){const{url:t,title:r,childNodes:n,className:o}=this.props;return C.jsx("a",{className:vr(gyt,o),href:t,title:r,rel:"noopener, noreferrer",target:"_blank",children:C.jsx(Aa,{nodes:n})})}}const gyt=vr({padding:"0.2rem 0",color:"var(--colorLink)",textDecoration:"none",background:"linear-gradient(90deg, hsla(358deg, 100%, 62%, 0.8), hsla(048deg, 100%, 50%, 0.8), hsla(196deg, 100%, 53%, 0.8))",backgroundSize:"0 3px",backgroundRepeat:"no-repeat",backgroundPosition:"50% 100%",transition:"all 0.3s ease-in-out","&:active":{color:"var(--colorLinkActive)"},"&&:hover":{color:"var(--colorLinkHover)",backgroundSize:"100% 3px",backgroundPositionX:0},"&:visited":{color:"var(--colorLinkVisited)"}}),vyt=e=>{const{url:t,title:r,children:n}=e;return C.jsx(yme,{url:t,title:r,childNodes:n,className:Gn.link})},myt=e=>{const{viewmodel:t}=k5(),n=to(t.definitionMap$)[e.identifier],o=(n==null?void 0:n.url)??"",i=n==null?void 0:n.title;return C.jsx(yme,{url:o,title:i,childNodes:e.children,className:Gn.linkReference})};class yyt extends re.Component{shouldComponentUpdate(t){const r=this.props;return r.ordered!==t.ordered||r.orderType!==t.orderType||r.start!==t.start||r.children!==t.children}render(){const{ordered:t,orderType:r,start:n,children:o}=this.props;return t?C.jsx("ol",{className:sre,type:r,start:n,children:C.jsx(Aa,{nodes:o})}):C.jsx("ul",{className:sre,children:C.jsx(Aa,{nodes:o})})}}const sre=vr(Gn.list,{padding:"0px",margin:"0 0 1em 2em",lineHeight:"2","> :last-child":{marginBottom:"0px"}});class byt extends re.Component{shouldComponentUpdate(t){return this.props.children!==t.children}render(){const t=this.props.children;return C.jsx("li",{className:_yt,children:C.jsx(Aa,{nodes:t})})}}const _yt=vr(Gn.listItem,{position:"relative",padding:0,margin:0,"> :last-child":{marginBottom:0}});class Eyt extends re.Component{shouldComponentUpdate(t){return this.props.children!==t.children}render(){const t=this.props.children;return t.some(n=>n.type===E_||n.type===ev)?C.jsx("div",{className:Syt,children:C.jsx(Aa,{nodes:t})}):C.jsx("p",{className:bme,children:C.jsx(Aa,{nodes:t})})}}const bme=vr(Gn.paragraph,{overflow:"hidden",padding:0,margin:"0px 0px 1.25em 0px",marginBottom:"1em",lineHeight:"1.8",hyphens:"auto",wordBreak:"normal",letterSpacing:"1px",overflowWrap:"break-word","> :last-child":{marginBottom:0}}),Syt=vr(bme,{display:"flex",alignItems:"center",justifyContent:"center",padding:"1rem 0",margin:0});class wyt extends re.Component{shouldComponentUpdate(t){return this.props.children!==t.children}render(){const t=this.props.children;return C.jsx("strong",{className:kyt,children:C.jsx(Aa,{nodes:t})})}}const kyt=vr(Gn.strong,{fontWeight:600});class Ayt extends re.Component{shouldComponentUpdate(t){const r=this.props;return!zh(r.columns,t.columns)||!zh(r.children,t.children)}render(){const{columns:t,children:r}=this.props,n=t.map(s=>s.align??void 0),[o,...i]=r.map(s=>s.children.map((a,u)=>C.jsx(Aa,{nodes:a.children},u)));return C.jsxs("table",{className:xyt,children:[C.jsx("thead",{children:C.jsx("tr",{children:o.map((s,a)=>C.jsx(Tyt,{align:n[a],children:s},a))})}),C.jsx("tbody",{children:i.map((s,a)=>C.jsx("tr",{children:s.map((u,l)=>C.jsx("td",{align:n[l],children:u},l))},a))})]})}}class Tyt extends re.Component{constructor(t){super(t),this.ref={current:null}}shouldComponentUpdate(t){const r=this.props;return r.align!==t.align||r.children!==t.children}render(){const{align:t,children:r}=this.props;return C.jsx("th",{ref:this.ref,align:t,children:r})}componentDidMount(){const t=this.ref.current;t&&t.setAttribute("title",t.innerText)}componentDidUpdate(){const t=this.ref.current;t&&t.setAttribute("title",t.innerText)}}const xyt=vr(Gn.table,{display:"block",overflow:"auto",width:"max-content",maxWidth:"100%",padding:0,borderCollapse:"collapse",borderRadius:"6px",borderSpacing:"0px",border:"1px solid var(--colorBorderTable)",margin:"0 auto 1.25em",lineHeight:"1.6","> thead":{backgroundColor:"var(--colorBgTableHead)",borderBottom:"1px solid #f0f0f0",th:{padding:"0.5rem 1rem",borderLeft:"1px solid var(--colorBorderTable)",wordBreak:"normal",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","&:first-child":{borderLeft:"none"}}},"> tbody":{tr:{borderTop:"1px solid var(--colorBorderTable)",backgroundColor:"var(--colorBgTableOddRow)"},"tr:nth-child(2n)":{backgroundColor:"var(--colorBgTableEvenRow)"},td:{padding:"0.5rem 1rem",borderLeft:"1px solid var(--colorBorderTable)","&:first-child":{borderLeft:"none"}}}});class Iyt extends re.Component{shouldComponentUpdate(t){return this.props.value!==t.value}render(){return C.jsx(re.Fragment,{children:this.props.value})}}class Nyt extends re.Component{shouldComponentUpdate(){return!1}render(){return C.jsx("hr",{className:Cyt})}}const Cyt=vr(Gn.thematicBreak,{boxSizing:"content-box",display:"block",height:0,width:"100%",padding:0,border:0,borderBottom:"1px solid #dadada",outline:0,margin:"1.5em 0px"});function Ryt(e){if(e==null)return ek;let t=!1;const r={};for(const[n,o]of Object.entries(e))o&&o!==ek[n]&&(t=!0,r[n]=o);return t?{...ek,...r}:ek}const ek={[y_]:Vvt,[BT]:Yvt,[ep]:oyt,[b_]:()=>null,[b0t]:iyt,[qve]:ayt,[tp]:lyt,[__]:()=>null,[E_]:fyt,[ev]:dyt,[MT]:hyt,[w1]:vyt,[Hd]:myt,[LT]:yyt,[v6]:byt,[rp]:Eyt,[Wve]:wyt,[_0t]:Ayt,[S_]:Iyt,[jT]:Nyt,_fallback:function(t,r){return console.warn(`Cannot find render for \`${t.type}\` type node with key \`${r}\`:`,t),null}},Oyt=e=>{const{presetDefinitionMap:t,customizedRendererMap:r,preferCodeWrap:n=!1,showCodeLineno:o=!0,text:i,themeScheme:s="lighten",className:a,style:u}=e,l=re.useMemo(()=>Gvt.parse(i),[i]),c=re.useMemo(()=>O0t(l).definitionMap,[l]),[f]=re.useState(()=>new D0t({definitionMap:{...t,...c},rendererMap:Ryt(r),preferCodeWrap:n,showCodeLineno:o,themeScheme:s})),d=re.useMemo(()=>({viewmodel:f}),[f]),h=Xe(Dyt,s==="darken"&&Gn.rootDarken,a);return re.useEffect(()=>{f.preferCodeWrap$.next(n)},[f,n]),re.useEffect(()=>{f.showCodeLineno$.next(o)},[f,o]),re.useEffect(()=>{f.themeScheme$.next(s)},[f,s]),C.jsx("div",{className:h,style:u,children:C.jsx(jz.Provider,{value:d,children:C.jsx(Aa,{nodes:l.children})})})},Dyt=vr(Gn.root,{wordBreak:"break-all",userSelect:"unset",[Gn.listItem]:{[`> ${Gn.list}`]:{marginLeft:"1.2em"}},"> :last-child":{marginBottom:0}});function Fyt(e){var c,f;const{content:t,data:r,className:n}=e,i=Da().getHttpUrlOfFilePath,[s,a]=re.useState(null);re.useEffect(()=>{const d=t.map(async h=>h.type===Nr.IMAGE?{...h,src:await i(h.src)}:h);Promise.all(d).then(h=>{var v,y;const g=d6(h);(r==null?void 0:r.category)===Lo.Chatbot&&((v=r==null?void 0:r.extra)!=null&&v.session_id)&&((y=r==null?void 0:r.extra)!=null&&y.root_run_id)?a(`${g} +`,e[0].empty=!0)},fre=(e,t)=>{const r=e.length;return r>0&&e[r-1]===t?e:e.concat(t)},dre=e=>{const t=[[]],r=[e],n=[0],o=[e.length];let i=[];const s=[i];for(let a=0;a>-1;--a){for(let u=0;(u=n[a]++)0?c:["plain"],l=d):(c=fre(c,d.type),d.alias&&(c=fre(c,d.alias)),l=d.content),typeof l!="string"){a+=1,t.push(c),r.push(l),n.push(0),o.push(l.length);continue}const h=l.split(dyt),g=h.length;i.push({types:c,content:h[0]});for(let v=1;v{var i,s;const n=r.target;if(n==null)return;const{scrollTop:o}=n;(s=(i=this.linenoRef.current)==null?void 0:i.scrollTo)==null||s.call(i,0,o)});const n=lre(r.language,r.theme),o=this.tokenize(r.code,r.language),i=r.showLineno?`${Math.max(2,String(o.length).length)*1.1}em`:void 0;this.state={linenoWidth:i,themeDict:n,tokens:o},this.linenoRef={current:null}}shouldComponentUpdate(r,n){const o=this.props,i=this.state;return i.linenoWidth!==n.linenoWidth||i.themeDict!==n.themeDict||i.tokens!==n.tokens||o.code!==r.code||o.codesRef!==r.codesRef||o.collapsed!==r.collapsed||o.language!==r.language||o.maxLines!==r.maxLines||o.showLineno!==r.showLineno||!jh(o.theme,r.theme)||!jh(o.highlightLinenos,r.highlightLinenos)}render(){const{linenoRef:r,onScroll:n}=this,{codesRef:o,collapsed:i,highlightLinenos:s,language:a,maxLines:u,showLineno:l=!0}=this.props,{linenoWidth:c,tokens:f}=this.state,d=f.length,h=u>0?Math.min(u,d):d,g={...this.state.themeDict.root,backgroundColor:"none",...i?{maxHeight:0}:{maxHeight:`calc(calc(${Va.lineHeightCode} * ${h+.8}) + 6px)`,minHeight:"100%"}};return re.createElement("div",{className:O6(Ll.container,a?`prism-code language-${a}`:"prism-code"),style:g},l&&re.createElement("div",{key:"linenos",className:Ll.lineno,style:{width:c},ref:r},re.createElement($6,{countOfLines:d,highlightLinenos:s})),re.createElement("div",{key:"codes",ref:o,className:Ll.codes,onScroll:n},re.createElement("div",{className:Ll.codeWrapper},f.map((v,y)=>{const E=s.includes(y+1),_=this.getLineProps({line:v});return re.createElement("div",{..._,key:y,className:O6(Ll.line,Ll.codeLine,E&&Ll.highlightLine,_.className)},v.map((S,b)=>re.createElement("span",{...this.getTokenProps({token:S}),key:b})))}))))}componentDidMount(){var r,n;(n=(r=this.props).onLinenoWidthChange)==null||n.call(r,this.state.linenoWidth)}componentDidUpdate(r,n){var a,u;const o=this.props,i=this.state,s=o.language!==r.language||!jh(o.theme,r.theme)?lre(o.language,o.theme):i.themeDict;if(o.code!==r.code||o.language!==r.language||s!==n.themeDict){const l=this.tokenize(o.code,o.language),c=o.showLineno?`${Math.max(2,String(l.length).length)*1.1}em`:void 0;this.setState({linenoWidth:c,themeDict:s,tokens:l})}i.linenoWidth!==n.linenoWidth&&((u=(a=this.props).onLinenoWidthChange)==null||u.call(a,i.linenoWidth))}tokenize(r,n){const o=n?ce.languages[n]:void 0;if(o){const i={code:r,grammar:o,language:n,tokens:[]};return ce.hooks.run("before-tokenize",i),i.tokens=ce.tokenize(i.code,i.grammar),ce.hooks.run("after-tokenize",i),dre(i.tokens)}else return dre([r])}getLineProps(r){const{themeDict:n}=this.state,{key:o,className:i,style:s,line:a,...u}=r,l={...u,className:"token-line",style:void 0,key:void 0};return n!==void 0&&(l.style=n.plain),s!==void 0&&(l.style=l.style!==void 0?{...l.style,...s}:s),o!==void 0&&(l.key=o),i&&(l.className+=` ${i}`),l}getStyleForToken({types:r,empty:n}){const{themeDict:o}=this.state,i=r.length;if(o===void 0)return;if(i===1&&r[0]==="plain")return n?{display:"inline-block"}:void 0;if(i===1&&!n)return o[r[0]];const s=n?{display:"inline-block"}:{};for(const a of r){const u=o[a];Object.assign(s,u)}return s}getTokenProps(r){const{key:n,className:o,style:i,token:s,...a}=r,u={...a,className:`token ${s.types.join(" ")}`,children:s.content,style:this.getStyleForToken(s),key:void 0};return i!==void 0&&(u.style=u.style!==void 0?{...u.style,...i}:i),n!==void 0&&(u.key=n),o&&(u.className+=` ${o}`),u}}ze(P6,"displayName","HighlightContent"),ze(P6,"propTypes",{code:Mr.string.isRequired,codesRef:Mr.any,collapsed:Mr.bool.isRequired,language:Mr.string.isRequired,maxLines:Mr.number.isRequired,showLineno:Mr.bool.isRequired,theme:Mr.object.isRequired,highlightLinenos:Mr.array.isRequired,onLinenoWidthChange:Mr.func});class q6 extends re.PureComponent{render(){const{lang:t,value:r,darken:n=!0,highlightLinenos:o=[],maxLines:i=-1,collapsed:s=!1,showLineNo:a=!0,codesRef:u,onLinenoWidthChange:l}=this.props,c=this.props.theme??(n?lyt:cyt);return re.createElement(P6,{code:r,codesRef:u,collapsed:s,highlightLinenos:o,language:t??"",maxLines:i,showLineno:a,theme:c,onLinenoWidthChange:l})}}ze(q6,"displayName","YozoraCodeHighlighter"),ze(q6,"propTypes",{codesRef:Mr.any,collapsed:Mr.bool,darken:Mr.bool,highlightLinenos:Mr.arrayOf(Mr.number),lang:Mr.string,maxLines:Mr.number,onLinenoWidthChange:Mr.func,showLineNo:Mr.bool,theme:Mr.any,value:Mr.string.isRequired});const pyt=e=>{const{className:t,delay:r=1500,calcContentForCopy:n}=e,[o,i]=re.useState(0),s=gyt(),a=o!==0,u=()=>{if(o===0){i(1);try{const l=n();dhe(l),i(2)}catch{i(3)}}};return re.useEffect(()=>{if(o===2||o===3){const l=setTimeout(()=>i(0),r);return()=>{l&&clearTimeout(l)}}},[o,r]),N.jsx(Wn,{appearance:"transparent",className:Xe(s.copyButton,t),disabled:a,as:"button",icon:o===0?N.jsx(Aae,{}):N.jsx(kae,{}),onClick:u})},gyt=Ar({copyButton:{cursor:"pointer"}});class vyt extends re.PureComponent{constructor(){super(...arguments),this.calcContentForCopy=()=>this.props.value}render(){const{calcContentForCopy:t}=this,{darken:r,lang:n,value:o,preferCodeWrap:i,showCodeLineno:s}=this.props;return N.jsxs("code",{className:myt,"data-wrap":i,children:[N.jsx(q6,{lang:n,value:o,collapsed:!1,showLineNo:s&&!i,darken:r}),N.jsx("div",{className:wme,children:N.jsx(pyt,{calcContentForCopy:t})})]})}}const wme=mr({position:"absolute",right:"4px",top:"4px",display:"none"}),myt=mr(Kn.code,{position:"relative",display:"block",boxSizing:"border-box",borderRadius:"4px",margin:"0px 0px 1.25em 0px",backgroundColor:"var(--colorBgCode)",[`&:hover > .${wme}`]:{display:"inline-block"},'&&[data-wrap="true"] > div':{whiteSpace:"pre-wrap",wordBreak:"keep-all"}}),yyt=e=>{const{lang:t}=e,r=e.value.replace(/[\r\n]+$/,""),{viewmodel:n}=I5(),o=ro(n.preferCodeWrap$),i=ro(n.showCodeLineno$),a=ro(n.themeScheme$)==="darken";return N.jsx(vyt,{darken:a,lang:t??"text",value:r,preferCodeWrap:o,showCodeLineno:i})};class byt extends re.Component{shouldComponentUpdate(t){return this.props.children!==t.children}render(){const t=this.props.children;return N.jsx("del",{className:_yt,children:N.jsx(ka,{nodes:t})})}}const _yt=mr(Kn.delete,{marginRight:"4px",color:"var(--colorDelete)",fontStyle:"italic",textDecoration:"line-through"});class Eyt extends re.Component{shouldComponentUpdate(t){return this.props.children!==t.children}render(){const t=this.props.children;return N.jsx("em",{className:Syt,children:N.jsx(ka,{nodes:t})})}}const Syt=mr(Kn.emphasis,{fontStyle:"italic",margin:"0 6px 0 2px"});class wyt extends re.Component{shouldComponentUpdate(t){const r=this.props;return r.depth!==t.depth||r.identifier!==t.identifier||r.children!==t.children||r.linkIcon!==t.linkIcon}render(){const{depth:t,identifier:r,children:n,linkIcon:o="¶"}=this.props,i=r==null?void 0:encodeURIComponent(r),s="h"+t,a=s,u=mr(Kn.heading,nA.heading,nA[s]);return N.jsxs(a,{id:i,className:u,children:[N.jsx("p",{className:nA.content,children:N.jsx(ka,{nodes:n})}),r&&N.jsx("a",{className:nA.anchor,href:"#"+i,children:o})]})}}const V3=mr({flex:"0 0 3rem",paddingLeft:"0.5rem",color:"var(--colorLink)",opacity:0,transition:"color 0.2s ease-in-out, opacity 0.2s ease-in-out",userSelect:"none",textDecoration:"none","> svg":{overflow:"hidden",display:"inline-block",verticalAlign:"middle",fill:"currentColor"}}),nA=hi({heading:{display:"flex",alignItems:"center",justifyContent:"flex-start",padding:"0px",margin:"0px 0px 1.25em 0px",marginBottom:"1em",lineHeight:"1.25",fontFamily:"var(--fontFamilyHeading)",color:"var(--colorHeading)",[`&:active .${V3}`]:{opacity:.8,color:"var(--colorLinkActive)"},[`&&:hover .${V3}`]:{opacity:.8,color:"var(--colorLinkHover)"}},anchor:V3,content:{flex:"0 1 auto",minWidth:0,margin:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"pre-wrap",lineHeight:"1.7"},h1:{padding:"0.3rem 0",borderBottom:"1px solid var(--colorBorderHeading)",fontSize:"2rem",fontStyle:"normal",fontWeight:500},h2:{padding:"0.3rem 0",borderBottom:"1px solid var(--colorBorderHeading)",fontSize:"1.5rem",fontStyle:"normal",fontWeight:500,marginBottom:"0.875rem"},h3:{fontSize:"1.25rem",fontStyle:"normal",fontWeight:500},h4:{fontSize:"1rem",fontStyle:"normal",fontWeight:500},h5:{fontSize:"0.875rem",fontStyle:"normal",fontWeight:500},h6:{fontSize:"0.85rem",fontStyle:"normal",fontWeight:500}});class Ame extends re.Component{shouldComponentUpdate(t){const r=this.props;return r.src!==t.src||r.alt!==t.alt||r.title!==t.title||r.srcSet!==t.srcSet||r.sizes!==t.sizes||r.loading!==t.loading||r.className!==t.className}render(){const{src:t,alt:r,title:n,srcSet:o,sizes:i,loading:s,className:a}=this.props;return N.jsxs("figure",{className:`${a} ${Ayt}`,children:[N.jsx("img",{alt:r,src:t,title:n,srcSet:o,sizes:i,loading:s}),n&&N.jsx("figcaption",{children:n})]})}}const Ayt=mr({boxSizing:"border-box",maxWidth:"80%",display:"flex",flexDirection:"column",alignItems:"center",margin:0,"> img":{flex:"1 0 auto",boxSizing:"border-box",maxWidth:"100%",border:"1px solid var(--colorBorderImage)",boxShadow:"0 0 20px 1px rgba(126, 125, 150, 0.6)"},"> figcaption":{textAlign:"center",fontStyle:"italic",fontSize:"1em",color:"var(--colorImageTitle)"}}),kyt=e=>{const{url:t,alt:r,title:n,srcSet:o,sizes:i,loading:s}=e;return N.jsx(Ame,{alt:r,src:t,title:n,srcSet:o,sizes:i,loading:s,className:Kn.image})},xyt=e=>{const{viewmodel:t}=I5(),r=ro(t.definitionMap$),{alt:n,srcSet:o,sizes:i,loading:s}=e,a=r[e.identifier],u=(a==null?void 0:a.url)??"",l=a==null?void 0:a.title;return N.jsx(Ame,{alt:n,src:u,title:l,srcSet:o,sizes:i,loading:s,className:Kn.imageReference})};class Tyt extends re.Component{shouldComponentUpdate(t){return this.props.value!==t.value}render(){return N.jsx("code",{className:Iyt,children:this.props.value})}}const Iyt=mr(Kn.inlineCode,{padding:"1px 4px",borderRadius:"4px",margin:0,background:"hsla(210deg, 15%, 60%, 0.15)",lineHeight:"1.375",color:"var(--colorInlineCode)",fontFamily:"var(--fontFamilyCode)",fontSize:"min(1rem, 18px)",fontWeight:500});class kme extends re.Component{shouldComponentUpdate(t){const r=this.props;return r.url!==t.url||r.title!==t.title||r.childNodes!==t.childNodes||r.className!==t.className}render(){const{url:t,title:r,childNodes:n,className:o}=this.props;return N.jsx("a",{className:mr(Cyt,o),href:t,title:r,rel:"noopener, noreferrer",target:"_blank",children:N.jsx(ka,{nodes:n})})}}const Cyt=mr({padding:"0.2rem 0",color:"var(--colorLink)",textDecoration:"none","&:active":{color:"var(--colorLinkActive)"},"&&:hover":{color:"var(--colorLinkHover)",textDecoration:"underline"},"&:visited":{color:"var(--colorLinkVisited)"}}),Nyt=e=>{const{url:t,title:r,children:n}=e;return N.jsx(kme,{url:t,title:r,childNodes:n,className:Kn.link})},Ryt=e=>{const{viewmodel:t}=I5(),n=ro(t.definitionMap$)[e.identifier],o=(n==null?void 0:n.url)??"",i=n==null?void 0:n.title;return N.jsx(kme,{url:o,title:i,childNodes:e.children,className:Kn.linkReference})};class Oyt extends re.Component{shouldComponentUpdate(t){const r=this.props;return r.ordered!==t.ordered||r.orderType!==t.orderType||r.start!==t.start||r.children!==t.children}render(){const{ordered:t,orderType:r,start:n,children:o}=this.props;return t?N.jsx("ol",{className:hre,type:r,start:n,children:N.jsx(ka,{nodes:o})}):N.jsx("ul",{className:hre,children:N.jsx(ka,{nodes:o})})}}const hre=mr(Kn.list,{padding:"0px",margin:"0 0 1em 2em",lineHeight:"2","> :last-child":{marginBottom:"0px"}});class Dyt extends re.Component{shouldComponentUpdate(t){return this.props.children!==t.children}render(){const t=this.props.children;return N.jsx("li",{className:Fyt,children:N.jsx(ka,{nodes:t})})}}const Fyt=mr(Kn.listItem,{position:"relative",padding:0,margin:0,"> :last-child":{marginBottom:0}});class Byt extends re.Component{shouldComponentUpdate(t){return this.props.children!==t.children}render(){const t=this.props.children;return t.some(n=>n.type===A_||n.type===nv)?N.jsx("div",{className:Myt,children:N.jsx(ka,{nodes:t})}):N.jsx("p",{className:xme,children:N.jsx(ka,{nodes:t})})}}const xme=mr(Kn.paragraph,{overflow:"hidden",padding:0,margin:"0px 0px 1.25em 0px",marginBottom:"1em",lineHeight:"1.8",hyphens:"auto",wordBreak:"normal",letterSpacing:"1px",overflowWrap:"break-word","> :last-child":{marginBottom:0}}),Myt=mr(xme,{display:"flex",alignItems:"center",justifyContent:"center",padding:"1rem 0",margin:0});class Lyt extends re.Component{shouldComponentUpdate(t){return this.props.children!==t.children}render(){const t=this.props.children;return N.jsx("strong",{className:jyt,children:N.jsx(ka,{nodes:t})})}}const jyt=mr(Kn.strong,{fontWeight:600});class zyt extends re.Component{shouldComponentUpdate(t){const r=this.props;return!jh(r.columns,t.columns)||!jh(r.children,t.children)}render(){const{columns:t,children:r}=this.props,n=t.map(s=>s.align??void 0),[o,...i]=r.map(s=>s.children.map((a,u)=>N.jsx(ka,{nodes:a.children},u)));return N.jsxs("table",{className:$yt,children:[N.jsx("thead",{children:N.jsx("tr",{children:o.map((s,a)=>N.jsx(Hyt,{align:n[a],children:s},a))})}),N.jsx("tbody",{children:i.map((s,a)=>N.jsx("tr",{children:s.map((u,l)=>N.jsx("td",{align:n[l],children:u},l))},a))})]})}}class Hyt extends re.Component{constructor(t){super(t),this.ref={current:null}}shouldComponentUpdate(t){const r=this.props;return r.align!==t.align||r.children!==t.children}render(){const{align:t,children:r}=this.props;return N.jsx("th",{ref:this.ref,align:t,children:r})}componentDidMount(){const t=this.ref.current;t&&t.setAttribute("title",t.innerText)}componentDidUpdate(){const t=this.ref.current;t&&t.setAttribute("title",t.innerText)}}const $yt=mr(Kn.table,{display:"block",overflow:"auto",width:"max-content",maxWidth:"100%",padding:0,borderCollapse:"collapse",borderRadius:"6px",borderSpacing:"0px",border:"1px solid var(--colorBorderTable)",margin:"0 auto 1.25em",lineHeight:"1.6","> thead":{backgroundColor:"var(--colorBgTableHead)",borderBottom:"1px solid #f0f0f0",th:{padding:"0.5rem 1rem",borderLeft:"1px solid var(--colorBorderTable)",wordBreak:"normal",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","&:first-child":{borderLeft:"none"}}},"> tbody":{tr:{borderTop:"1px solid var(--colorBorderTable)",backgroundColor:"var(--colorBgTableOddRow)"},"tr:nth-child(2n)":{backgroundColor:"var(--colorBgTableEvenRow)"},td:{padding:"0.5rem 1rem",borderLeft:"1px solid var(--colorBorderTable)","&:first-child":{borderLeft:"none"}}}});class Pyt extends re.Component{shouldComponentUpdate(t){return this.props.value!==t.value}render(){return N.jsx(re.Fragment,{children:this.props.value})}}class qyt extends re.Component{shouldComponentUpdate(){return!1}render(){return N.jsx("hr",{className:Wyt})}}const Wyt=mr(Kn.thematicBreak,{boxSizing:"content-box",display:"block",height:0,width:"100%",padding:0,border:0,borderBottom:"1px solid #dadada",outline:0,margin:"1.5em 0px"});function Kyt(e){if(e==null)return oA;let t=!1;const r={};for(const[n,o]of Object.entries(e))o&&o!==oA[n]&&(t=!0,r[n]=o);return t?{...oA,...r}:oA}const oA={[E_]:amt,[zx]:lmt,[Jh]:yyt,[S_]:()=>null,[D0t]:byt,[Xve]:Eyt,[ep]:wyt,[w_]:()=>null,[A_]:kyt,[nv]:xyt,[Hx]:Tyt,[S1]:Nyt,[Hd]:Ryt,[$x]:Oyt,[E6]:Dyt,[tp]:Byt,[Qve]:Lyt,[F0t]:zyt,[k_]:Pyt,[Px]:qyt,_fallback:function(t,r){return console.warn(`Cannot find render for \`${t.type}\` type node with key \`${r}\`:`,t),null}},Gyt=e=>{const{presetDefinitionMap:t,customizedRendererMap:r,preferCodeWrap:n=!1,showCodeLineno:o=!0,text:i,themeScheme:s="lighten",className:a,style:u}=e,l=re.useMemo(()=>smt.parse(i),[i]),c=re.useMemo(()=>G0t(l).definitionMap,[l]),[f]=re.useState(()=>new V0t({definitionMap:{...t,...c},rendererMap:Kyt(r),preferCodeWrap:n,showCodeLineno:o,themeScheme:s})),d=re.useMemo(()=>({viewmodel:f}),[f]),h=Xe(Vyt,s==="darken"&&Kn.rootDarken,a);return re.useEffect(()=>{f.preferCodeWrap$.next(n)},[f,n]),re.useEffect(()=>{f.showCodeLineno$.next(o)},[f,o]),re.useEffect(()=>{f.themeScheme$.next(s)},[f,s]),N.jsx("div",{className:h,style:u,children:N.jsx(Gz.Provider,{value:d,children:N.jsx(ka,{nodes:l.children})})})},Vyt=mr(Kn.root,{wordBreak:"break-all",userSelect:"unset",[Kn.listItem]:{[`> ${Kn.list}`]:{marginLeft:"1.2em"}},"> :last-child":{marginBottom:0}});function Uyt(e){var f,d;const{content:t,data:r,className:n}=e,o=(r==null?void 0:r.category)===Eo.Chatbot&&(r==null?void 0:r.from)==="system"&&t.length===1&&t[0].type===xr.TEXT&&t[0].value===_6,s=Da().getHttpUrlOfFilePath,[a,u]=re.useState(null);re.useEffect(()=>{const h=t.map(async g=>g.type===xr.IMAGE?{...g,src:await s(g.src)}:g);Promise.all(h).then(g=>{var y,E,_,S;const v=v6(g);o?(y=r==null?void 0:r.extra)!=null&&y.session_id&&((E=r==null?void 0:r.extra)!=null&&E.root_run_id)?u(` --- -[View trace](${window.location.origin}/v1.0/ui/traces/?#session=${r.extra.session_id}&line_run_id=${r.extra.root_run_id})`):a(g)})},[t,r==null?void 0:r.category,(c=r==null?void 0:r.extra)==null?void 0:c.root_run_id,(f=r==null?void 0:r.extra)==null?void 0:f.session_id,i]);const u=Byt(),l=Xe(u.content,n);return C.jsx("div",{className:l,children:C.jsx(re.Suspense,{fallback:"Loading...",children:s===null?s:C.jsx(Oyt,{text:s,preferCodeWrap:!0})})})}const Byt=wr({content:{...Ye.overflow("auto"),wordBreak:"break-all",whiteSpace:"break-spaces",[`& .${Gn.image}`]:{maxWidth:"240px !important"},[`& .${Gn.imageReference}`]:{maxWidth:"240px !important"}}}),Myt=e=>{const r=Da().getHttpUrlOfFilePath,{customSendMessage:n}=Hve();return C.jsx(rve,{...e,resolveUrlByPath:r,onEnterKeyPress:()=>{n()}})},Lyt=()=>{const[e]=cht(),[t]=Ac();return C.jsx(jyt,{title:"Chat",subtitle:e,chatSourceType:t})},jyt=e=>{const{title:t,subtitle:r,className:n,chatSourceType:o}=e,i=zyt();return C.jsxs("div",{className:Xe(i.toolbar,n),children:[C.jsxs("div",{className:i.left,children:[C.jsxs("div",{className:i.toolbarTitle,children:[C.jsx(xf,{weight:"semibold",children:t}),C.jsx(la,{content:"Chat",relationship:"label",children:C.jsx(Kn,{as:"button",appearance:"transparent",icon:C.jsx(oy,{})})})]}),C.jsx("div",{className:i.toolbarSubtitle,children:So?r:C.jsxs(re.Fragment,{children:[o&&C.jsx(mue,{appearance:"outline",size:"medium",className:i.chatSourceBadge,children:o}),C.jsxs(qb,{href:`vscode://file/${r}`,title:r,style:{display:"flex",flex:1,width:0,minWidth:0,overflow:"hidden"},children:[C.jsx("span",{style:{display:"block",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:r}),C.jsx(i3e,{style:{marginLeft:"4px",flexShrink:0}})]})]})})]}),C.jsx("div",{className:i.right})]})},zyt=wr({toolbar:{...Ye.padding("0px","16px"),...Ye.borderBottom("1px","solid",zt.colorNeutralBackground5),boxSizing:"border-box",display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",height:"48px",flexShrink:0},toolbarTitle:{display:"flex",alignItems:"center",columnGap:"2px"},toolbarActionButton:{color:zt.colorNeutralForeground2},toolbarSubtitle:{display:"flex",alignItems:"center",columnGap:"2px",color:zt.colorNeutralForeground4,overflowWrap:"anywhere",...Ye.flex(1)},left:{display:"flex",...Ye.flex(1)},right:{display:"flex"},chatSourceBadge:{...Ye.margin("0px","4px")}}),Hyt=()=>{const{flowInputDefinition:e}=Gv(),t=ml(),r=re.useMemo(()=>Lve(e,t),[e,t]);return r.length===0||r.every(o=>o.disabled)},$yt=({className:e})=>{const{viewmodel:t}=Au(),{chatInputName:r,chatOutputName:n}=ml(),o=Hyt(),i=o?"The input field is currently inactive.":"The input field is currently inactive. To enable it, please select a chat input and chat output in the settings.",s=Tht(),a=Iht(),u=Eve(),l=()=>{u(c=>c.type!=="submit_validation"),t.sendMessage()};return r&&n&&s.length===0?C.jsx(C.Fragment,{}):C.jsxs("div",{className:Xe(Pyt.container),children:[s.map((c,f)=>{var d;return C.jsxs(Mg,{intent:"warning",layout:"multiline",style:{padding:"10px 0 10px 12px"},children:[C.jsx(pB,{children:c.element??c.message??((d=c.error)==null?void 0:d.message)}),c.type==="submit_validation"&&C.jsx(tle,{containerAction:C.jsxs(C.Fragment,{children:[C.jsx("div",{style:{height:"100%",display:"inline-flex",flexDirection:"column",justifyContent:"center",marginRight:"12px"},children:C.jsx(Kn,{size:"medium",onClick:l,children:"Send anyway"})}),C.jsx(Kn,{"aria-label":"dismiss",appearance:"transparent",style:{verticalAlign:"top"},icon:C.jsx(gae,{}),onClick:()=>{a(f)}})]})})]},f)}),(!r||!n)&&C.jsx(Mg,{intent:o?"info":"warning",layout:"multiline",style:{padding:"10px 0 10px 12px"},children:C.jsx(pB,{children:i})})]})},Pyt=Mi({container:{position:"relative",marginBottom:"16px","& .fui-MessageBarActions__containerAction":{height:"100%"},"& .fui-MessageBarActions":{display:"none"}}}),qyt=()=>C.jsx(C.Fragment,{}),Wyt=e=>C.jsx(Fpe,{...e,MessageSenderRenderer:qyt}),Kyt=()=>{const[e]=Ac(),t=d0t(),r=k.useMemo(()=>({...mpe,Input_Placeholder:e===hn.Dag?'Type in your message, or type "/eval_last" to start evaluation the testing session.':"Type in your message.",SessionSplit_Desc:"Current conversation does not include previous chat history."}),[e]);return C.jsxs(J1t,{initialMessages:[],locStrings:r,children:[C.jsx(v0t,{}),C.jsxs("div",{className:a0.container,children:[C.jsx(Lyt,{}),C.jsx("div",{className:a0.main,children:C.jsx(U1t,{className:a0.chatbox,main:C.jsxs("div",{className:a0.chatboxMainContainer,children:[C.jsx("div",{className:a0.messagesToolbar,children:C.jsx(h0t,{})}),C.jsx(nve,{className:a0.chatboxMain,MessageBubbleRenderer:Wyt,MessageContentRenderer:Fyt,useMessageActions:s0t})]}),footer:C.jsx(ove,{EditorRenderer:Myt,EditorActionRenderers:t,InputValidationRenderer:$yt,LeftToolbarRenderer:m0t,MessageInputRenderer:Pve,maxInputHeight:300})})})]})]})},a0=Mi({container:{display:"flex",flexDirection:"column",width:"100%",height:"100%",borderRadius:"4px",border:`1px solid ${zt.colorNeutralBackground5}`},main:{flex:1,display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",width:"100%",height:0,minHeight:0,zIndex:1},chatbox:{boxShadow:"none !important"},chatboxMainContainer:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},chatboxMain:{flex:1,height:"unset !important",paddingTop:"16px !important"},messagesToolbar:{position:"sticky",top:0,zIndex:1,background:"var(--colorNeutralBackground1)",width:"100%",padding:"8px 16px"}}),are=()=>{const[e]=pve(),[{width:t},r]=yve();return C.jsx("div",{className:Um.root,children:C.jsxs("div",{className:Um.content,children:[C.jsx("div",{className:Um.main,children:C.jsx(Kyt,{})}),e?C.jsx($1e,{enable:{left:!0},minWidth:410,size:{width:t,height:"100%"},onResizeStop:(n,o,i)=>{r({width:i.clientWidth})},children:C.jsx("div",{className:Um.rightPanel,children:C.jsx(n0t,{})})}):C.jsx("div",{className:Um.rightPanel,children:C.jsx(zve,{})})]})})},Um=Mi({root:{display:"flex",flexDirection:"column",height:"100%",width:"100%"},content:{display:"flex",flexDirection:"row",height:"100%",width:"100%",padding:"24px 32px",boxSizing:"border-box",flex:1,overflow:"auto"},leftPanel:{height:"100%",overflow:"auto",backgroundColor:zt.colorNeutralBackground3},main:{flex:1,height:"100%"},rightPanel:{height:"100%",boxSize:"border-box",marginLeft:"16px"}}),Gyt="/v1.0/ui/chat/assets/icon-580HdLU9.png",Vyt=()=>C.jsx("img",{src:Gyt,alt:"promptflow icon",style:{width:"100%",height:"100%"}}),Uyt=({middleContent:e,children:t})=>{const r=Yyt();return C.jsxs("div",{className:r.container,children:[C.jsxs("div",{className:r.header,children:[C.jsx("div",{className:r.logo,children:C.jsx(Vyt,{})}),"Prompt Flow"]}),e&&C.jsx("div",{style:{margin:"24px 32px 0"},children:e}),C.jsx("div",{className:r.content,children:t})]})},Yyt=wr({container:{boxSizing:"border-box",height:"100%",display:"flex",flexDirection:"column"},header:{...Ye.padding("0px","16px"),...Ye.borderBottom("1px","solid",zt.colorNeutralStroke1),height:"56px",flexBasis:"56px",flexShrink:0,backgroundColor:zt.colorNeutralBackground3,fontSize:"14px",fontWeight:600,lineHeight:"20px",alignItems:"center",display:"flex"},logo:{...Ye.margin("0px","4px","0px","0px"),width:"24px",height:"24px"},content:{...Ye.flex(1,1,"auto"),...Ye.margin("24px","32px"),...Ye.borderRadius("8px"),...Ye.overflow("auto"),boxShadow:"0px 8px 16px 0px rgba(0, 0, 0, 0.14), 0px 0px 2px 0px rgba(0, 0, 0, 0.12)"}}),_me=re.createContext({reloadApp:()=>{}}),Xyt=()=>{const[e]=Tu(),[t,r]=fht(),[n,o]=dht(),{reloadApp:i}=k.useContext(_me),s=Nve(),a=Cve(),u=!!t&&t!==e,l=()=>{r(""),o("")},c=()=>{const f=s()??{};a({...f,currentFlowPath:t}),i()};return C.jsx(B8,{open:u,children:C.jsx(z8,{children:C.jsxs(L8,{children:[C.jsxs(j8,{children:["Switch to flow ",n]}),C.jsxs(H8,{children:[C.jsxs("p",{children:["A flow test is currently running. Are you sure you want to switch to flow ",n,"?"]}),C.jsx("p",{children:"The running flow test may be interrupted if you switch to the new flow."})]}),C.jsxs(M8,{children:[C.jsx(Q_,{disableButtonEnhancement:!0,children:C.jsx(Kn,{appearance:"secondary",onClick:l,children:"Cancel"})}),C.jsx(Kn,{appearance:"primary",onClick:c,children:"Do switch"})]})]})})})},Qyt=()=>{const[e,t]=re.useState(!1),r=Ht(),n=Fi(r.topbarErrorMessage$);return re.useEffect(()=>{const o=i=>{t(!!i.detail.error)};return window.addEventListener(hT,o),()=>{window.removeEventListener(hT,o)}},[]),!e&&!n?null:C.jsxs("div",{children:[n&&C.jsx(Mg,{intent:"error",layout:"multiline",style:{padding:"10px 0 10px 12px"},children:n}),e&&C.jsx(Mg,{intent:"error",layout:"multiline",style:{padding:"10px 0 10px 12px"},children:"Network error detected. The local PFS may be shut down. Please restart it by executing the `pf service start` command."})]})},Zyt=()=>{const e=Ept(),t=So?"Loading... Please make sure you select a flow.day.yaml file in the editor":"Loading...";return C.jsxs("div",{style:{width:"100%",height:"100%"},children:[e?So?C.jsx(are,{}):C.jsx(Uyt,{middleContent:C.jsx(Qyt,{}),children:C.jsx(are,{})}):C.jsx(Spt,{children:C.jsx(X_,{label:t})}),C.jsx(Xyt,{})]})},Jyt=()=>{const[e,t]=re.useState(0),r=re.useCallback(()=>{t(o=>o+1)},[]),n=re.useMemo(()=>({reloadApp:r}),[r]);return C.jsx(_me.Provider,{value:n,children:C.jsx(Ait,{onReload:r,children:C.jsx(ebt,{},e)})})},ebt=()=>C.jsx(Ost,{children:({theme:e})=>C.jsx(cue,{style:{width:"100%",height:"100%"},theme:e==="dark"?iBe:tBe,children:C.jsx(Zyt,{})})});hRe().register(BRe());LNe();const tbt=Ese(document.getElementById("root"));tbt.render(C.jsx(k.StrictMode,{children:C.jsx(Jyt,{})}))});export default rbt(); +[View trace](${window.location.origin}/v1.0/ui/traces/?#session=${r.extra.session_id}&line_run_id=${r.extra.root_run_id})`):u(""):(r==null?void 0:r.category)===Eo.Chatbot&&((_=r==null?void 0:r.extra)!=null&&_.session_id)&&((S=r==null?void 0:r.extra)!=null&&S.root_run_id)?u(`${v} + +--- + +[View trace](${window.location.origin}/v1.0/ui/traces/?#session=${r.extra.session_id}&line_run_id=${r.extra.root_run_id})`):u(v)})},[t,r==null?void 0:r.category,(f=r==null?void 0:r.extra)==null?void 0:f.root_run_id,(d=r==null?void 0:r.extra)==null?void 0:d.session_id,s,o]);const l=Yyt(),c=Xe(l.content,n);return N.jsx("div",{className:c,children:N.jsxs(re.Suspense,{fallback:"Loading...",children:[o?N.jsx(Yj,{locStrings:Gj}):null,a===null?a:N.jsx(Gyt,{text:a,preferCodeWrap:!0})]})})}const Yyt=Ar({content:{...Ye.overflow("auto"),wordBreak:"break-all",whiteSpace:"break-spaces",[`& .${Kn.image}`]:{maxWidth:"240px !important"},[`& .${Kn.imageReference}`]:{maxWidth:"240px !important"}}}),Xyt=e=>{const r=Da().getHttpUrlOfFilePath,{customSendMessage:n}=Vve();return N.jsx(ave,{...e,resolveUrlByPath:r,onEnterKeyPress:()=>{n()}})},Qyt=()=>{const[e]=Sht(),[t]=Tu();return N.jsx(Zyt,{title:"Chat",subtitle:e,chatSourceType:t})},Zyt=e=>{const{title:t,subtitle:r,className:n,chatSourceType:o}=e,i=Jyt();return N.jsxs("div",{className:Xe(i.toolbar,n),children:[N.jsxs("div",{className:i.left,children:[N.jsxs("div",{className:i.toolbarTitle,children:[N.jsx(If,{weight:"semibold",children:t}),N.jsx(ca,{content:"Chat",relationship:"label",children:N.jsx(Wn,{as:"button",appearance:"transparent",icon:N.jsx(iy,{})})})]}),N.jsx("div",{className:i.toolbarSubtitle,children:eo?r:N.jsxs(re.Fragment,{children:[o&&N.jsx(Aue,{appearance:"outline",size:"medium",className:i.chatSourceBadge,children:o}),N.jsxs(Gb,{href:`vscode://file/${r}`,title:r,style:{display:"flex",flex:1,width:0,minWidth:0,overflow:"hidden"},children:[N.jsx("span",{style:{display:"block",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:r}),N.jsx(d3e,{style:{marginLeft:"4px",flexShrink:0}})]})]})})]}),N.jsx("div",{className:i.right})]})},Jyt=Ar({toolbar:{...Ye.padding("0px","16px"),...Ye.borderBottom("1px","solid",Pt.colorNeutralBackground5),boxSizing:"border-box",display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",height:"48px",flexShrink:0},toolbarTitle:{display:"flex",alignItems:"center",columnGap:"2px"},toolbarActionButton:{color:Pt.colorNeutralForeground2},toolbarSubtitle:{display:"flex",alignItems:"center",columnGap:"2px",color:Pt.colorNeutralForeground4,overflowWrap:"anywhere",...Ye.flex(1)},left:{display:"flex",...Ye.flex(1)},right:{display:"flex"},chatSourceBadge:{...Ye.margin("0px","4px")}}),ebt=e=>N.jsx(N.Fragment,{}),tbt=()=>{const{flowInputDefinition:e}=bp(),t=_l(),r=re.useMemo(()=>Wve(e,t),[e,t]);return r.length===0||r.every(o=>o.disabled)},rbt=({className:e})=>{const{viewmodel:t}=ku(),{chatInputName:r,chatOutputName:n}=_l(),o=tbt(),i=o?"The input field is currently inactive.":"The input field is currently inactive. To enable it, please select a chat input and chat output in the settings.",s=jht(),a=Hht(),u=Ive(),l=()=>{u(c=>c.type!=="submit_validation"),t.sendMessage()};return r&&n&&s.length===0?N.jsx(N.Fragment,{}):N.jsxs("div",{className:Xe(nbt.container),children:[s.map((c,f)=>{var d;return N.jsxs(jg,{intent:"warning",layout:"multiline",style:{padding:"10px 0 10px 12px"},children:[N.jsx(yB,{children:c.element??c.message??((d=c.error)==null?void 0:d.message)}),c.type==="submit_validation"&&N.jsx(ule,{containerAction:N.jsxs(N.Fragment,{children:[N.jsx("div",{style:{height:"100%",display:"inline-flex",flexDirection:"column",justifyContent:"center",marginRight:"12px"},children:N.jsx(Wn,{size:"medium",onClick:l,children:"Send anyway"})}),N.jsx(Wn,{"aria-label":"dismiss",appearance:"transparent",style:{verticalAlign:"top"},icon:N.jsx(Sae,{}),onClick:()=>{a(f)}})]})})]},f)}),(!r||!n)&&N.jsx(jg,{intent:o?"info":"warning",layout:"multiline",style:{padding:"10px 0 10px 12px"},children:N.jsx(yB,{children:i})})]})},nbt=hi({container:{position:"relative",marginBottom:"16px","& .fui-MessageBarActions__containerAction":{height:"100%"},"& .fui-MessageBarActions":{display:"none"}}}),obt=()=>N.jsx(N.Fragment,{}),ibt=e=>N.jsx(Hpe,{...e,MessageSenderRenderer:obt}),sbt=()=>{const[e]=Tu(),t=k0t(),r=k.useMemo(()=>({...Gj,Input_Placeholder:e===Gt.Dag||e===Gt.Flex?'Type in your message, or type "/eval_last" to start evaluation the testing session.':"Type in your message.",SessionSplit_Desc:"Current conversation does not include previous chat history."}),[e]);return N.jsxs(lht,{initialMessages:[],locStrings:r,children:[N.jsx(N0t,{}),N.jsxs("div",{className:u0.container,children:[N.jsx(Qyt,{}),N.jsx("div",{className:u0.main,children:N.jsx(oht,{className:u0.chatbox,main:N.jsxs("div",{className:u0.chatboxMainContainer,children:[N.jsx("div",{className:u0.messagesToolbar,children:N.jsx(x0t,{})}),N.jsx(uve,{className:u0.chatboxMain,MessageBubbleRenderer:ibt,MessageContentRenderer:Uyt,TypingIndicatorRenderer:ebt,useMessageActions:b0t})]}),footer:N.jsx(lve,{EditorRenderer:Xyt,EditorActionRenderers:t,InputValidationRenderer:rbt,LeftToolbarRenderer:R0t,MessageInputRenderer:Yve,maxInputHeight:300})})})]})]})},u0=hi({container:{display:"flex",flexDirection:"column",width:"100%",height:"100%",borderRadius:"4px",border:`1px solid ${Pt.colorNeutralBackground5}`},main:{flex:1,display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",width:"100%",height:0,minHeight:0,zIndex:1},chatbox:{boxShadow:"none !important"},chatboxMainContainer:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},chatboxMain:{flex:1,height:"unset !important",paddingTop:"16px !important"},messagesToolbar:{position:"sticky",top:0,zIndex:1,background:"var(--colorNeutralBackground1)",width:"100%",padding:"8px 16px"}}),pre=()=>{const[e]=Eve(),[{width:t},r]=kve();return N.jsx("div",{className:Ym.root,children:N.jsxs("div",{className:Ym.content,children:[N.jsx("div",{className:Ym.main,children:N.jsx(sbt,{})}),e?N.jsx(X1e,{enable:{left:!0},minWidth:410,size:{width:t,height:"100%"},onResizeStop:(n,o,i)=>{r({width:i.clientWidth})},children:N.jsx("div",{className:Ym.rightPanel,children:N.jsx(v0t,{})})}):N.jsx("div",{className:Ym.rightPanel,children:N.jsx(Gve,{})})]})})},Ym=hi({root:{display:"flex",flexDirection:"column",height:"100%",width:"100%"},content:{display:"flex",flexDirection:"row",height:"100%",width:"100%",padding:"24px 32px",boxSizing:"border-box",flex:1,overflow:"auto"},leftPanel:{height:"100%",overflow:"auto",backgroundColor:Pt.colorNeutralBackground3},main:{flex:1,height:"100%"},rightPanel:{height:"100%",boxSize:"border-box",marginLeft:"16px"}}),abt="/v1.0/ui/chat/assets/icon-580HdLU9.png",ubt=()=>N.jsx("img",{src:abt,alt:"promptflow icon",style:{width:"100%",height:"100%"}}),lbt=({middleContent:e,children:t})=>{const r=cbt();return N.jsxs("div",{className:r.container,children:[N.jsxs("div",{className:r.header,children:[N.jsx("div",{className:r.logo,children:N.jsx(ubt,{})}),"Prompt Flow"]}),e&&N.jsx("div",{style:{margin:"24px 32px 0"},children:e}),N.jsx("div",{className:r.content,children:t})]})},cbt=Ar({container:{boxSizing:"border-box",height:"100%",display:"flex",flexDirection:"column"},header:{...Ye.padding("0px","16px"),...Ye.borderBottom("1px","solid",Pt.colorNeutralStroke1),height:"56px",flexBasis:"56px",flexShrink:0,backgroundColor:Pt.colorNeutralBackground3,fontSize:"14px",fontWeight:600,lineHeight:"20px",alignItems:"center",display:"flex"},logo:{...Ye.margin("0px","4px","0px","0px"),width:"24px",height:"24px"},content:{...Ye.flex(1,1,"auto"),...Ye.margin("24px","32px"),...Ye.borderRadius("8px"),...Ye.overflow("auto"),boxShadow:"0px 8px 16px 0px rgba(0, 0, 0, 0.14), 0px 0px 2px 0px rgba(0, 0, 0, 0.12)"}}),Tme=re.createContext({reloadApp:()=>{}}),fbt=()=>{const[e]=xu(),[t,r]=wht(),[n,o]=Aht(),{reloadApp:i}=k.useContext(Tme),s=Mve(),a=Lve(),u=!!t&&t!==e,l=()=>{r(""),o("")},c=()=>{const f=s()??{};a({...f,currentFlowPath:t}),i()};return N.jsx(H8,{open:u,children:N.jsx(W8,{children:N.jsxs(P8,{children:[N.jsxs(q8,{children:["Switch to flow ",n]}),N.jsxs(K8,{children:[N.jsxs("p",{children:["A flow test is currently running. Are you sure you want to switch to flow ",n,"?"]}),N.jsx("p",{children:"The running flow test may be interrupted if you switch to the new flow."})]}),N.jsxs($8,{children:[N.jsx(eE,{disableButtonEnhancement:!0,children:N.jsx(Wn,{appearance:"secondary",onClick:l,children:"Cancel"})}),N.jsx(Wn,{appearance:"primary",onClick:c,children:"Do switch"})]})]})})})},dbt=()=>{const[e,t]=re.useState(!1),r=Ht(),n=Bi(r.topbarErrorMessage$);return re.useEffect(()=>{const o=i=>{t(!!i.detail.error)};return window.addEventListener(yx,o),()=>{window.removeEventListener(yx,o)}},[]),!e&&!n?null:N.jsxs("div",{children:[n&&N.jsx(jg,{intent:"error",layout:"multiline",style:{padding:"10px 0 10px 12px"},children:n}),e&&N.jsx(jg,{intent:"error",layout:"multiline",style:{padding:"10px 0 10px 12px"},children:"Network error detected. The local PFS may be shut down. Please restart it by executing the `pf service start` command."})]})},hbt=()=>{const e=Dpt(),t=eo?"Loading... Please make sure you select a flow.day.yaml file in the editor":"Loading...";return N.jsxs("div",{style:{width:"100%",height:"100%"},children:[e?eo?N.jsx(pre,{}):N.jsx(lbt,{middleContent:N.jsx(dbt,{}),children:N.jsx(pre,{})}):N.jsx(Fpt,{children:N.jsx(J_,{label:t})}),N.jsx(fbt,{})]})};window.ChatUI_Version="20240417.4-merge";const pbt=()=>{const[e,t]=re.useState(0),r=re.useCallback(()=>{t(o=>o+1)},[]),n=re.useMemo(()=>({reloadApp:r}),[r]);return N.jsx(Tme.Provider,{value:n,children:N.jsx(Dit,{onReload:r,children:N.jsx(gbt,{},e)})})},gbt=()=>N.jsx(Hst,{children:({theme:e})=>N.jsx(mue,{style:{width:"100%",height:"100%"},theme:e==="dark"?dBe:uBe,children:N.jsx(hbt,{})})});_Re().register(PRe());WCe();const vbt=Ise(document.getElementById("root"));vbt.render(N.jsx(k.StrictMode,{children:N.jsx(pbt,{})}))});export default mbt(); diff --git a/src/promptflow-devkit/promptflow/_sdk/_service/static/chat-window/index.html b/src/promptflow-devkit/promptflow/_sdk/_service/static/chat-window/index.html index 9899a14afde..07602a8ddc7 100644 --- a/src/promptflow-devkit/promptflow/_sdk/_service/static/chat-window/index.html +++ b/src/promptflow-devkit/promptflow/_sdk/_service/static/chat-window/index.html @@ -1,20 +1,20 @@ - - - - - - Chat + + + + + + Chat - - - - -
- - + + + + + +
+ + diff --git a/src/promptflow-devkit/promptflow/_sdk/_tracing.py b/src/promptflow-devkit/promptflow/_sdk/_tracing.py index 08b6bcd588f..a7f293aea8f 100644 --- a/src/promptflow-devkit/promptflow/_sdk/_tracing.py +++ b/src/promptflow-devkit/promptflow/_sdk/_tracing.py @@ -48,6 +48,7 @@ is_port_in_use, is_run_from_built_binary, ) +from promptflow._sdk._tracing_utils import get_workspace_kind from promptflow._sdk._utils import extract_workspace_triad_from_trace_provider, parse_kv_from_pb_attribute from promptflow._utils.logger_utils import get_cli_sdk_logger from promptflow._utils.thread_utils import ThreadWithContextVars @@ -57,6 +58,7 @@ _logger = get_cli_sdk_logger() PF_CONFIG_TRACE_FEATURE_DISABLE = "none" +PF_CONFIG_TRACE_LOCAL = "local" TRACER_PROVIDER_PFS_EXPORTER_SET_ATTR = "_pfs_exporter_set" @@ -150,6 +152,9 @@ def _get_ws_triad_from_pf_config() -> typing.Optional[AzureMLWorkspaceTriad]: from promptflow._sdk._configuration import Configuration ws_arm_id = Configuration.get_instance().get_trace_provider() + # enable local only trace feature, no workspace + if ws_arm_id == PF_CONFIG_TRACE_LOCAL: + return return extract_workspace_triad_from_trace_provider(ws_arm_id) if ws_arm_id is not None else None @@ -177,21 +182,6 @@ def _print_tracing_url_from_azure_portal( exp: typing.Optional[str] = None, # pylint: disable=unused-argument run: typing.Optional[str] = None, ) -> None: - # as this there is an if condition for azure extension, we can assume the extension is installed - from azure.ai.ml import MLClient - - from promptflow.azure._cli._utils import get_credentials_for_cli - - # we have different url for Azure ML workspace and AI project - # so we need to distinguish them - ml_client = MLClient( - credential=get_credentials_for_cli(), - subscription_id=ws_triad.subscription_id, - resource_group_name=ws_triad.resource_group_name, - workspace_name=ws_triad.workspace_name, - ) - workspace = ml_client.workspaces.get(name=ws_triad.workspace_name) - url = ( "https://int.ml.azure.com/{query}?" f"wsid=/subscriptions/{ws_triad.subscription_id}" @@ -204,13 +194,15 @@ def _print_tracing_url_from_azure_portal( if run is None: _logger.debug("run is not specified, need to concat `collection_id` for query") collection_id = _get_collection_id_for_azure(collection=collection) - if AzureWorkspaceKind.is_workspace(workspace): + + kind = get_workspace_kind(ws_triad) + if AzureWorkspaceKind.is_workspace(kind): _logger.debug(f"{ws_triad.workspace_name!r} is an Azure ML workspace.") if run is None: query = f"trace/collection/{collection_id}/list" else: query = f"prompts/trace/run/{run}/details" - elif AzureWorkspaceKind.is_project(workspace): + elif AzureWorkspaceKind.is_project(kind): _logger.debug(f"{ws_triad.workspace_name!r} is an Azure AI project.") url = url.replace("int.ml.azure.com", "int.ai.azure.com") if run is None: diff --git a/src/promptflow-devkit/promptflow/_sdk/_tracing_utils.py b/src/promptflow-devkit/promptflow/_sdk/_tracing_utils.py new file mode 100644 index 00000000000..7746807b6e9 --- /dev/null +++ b/src/promptflow-devkit/promptflow/_sdk/_tracing_utils.py @@ -0,0 +1,111 @@ +# --------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# --------------------------------------------------------- + +import datetime +import json +import typing +from dataclasses import dataclass +from pathlib import Path + +from promptflow._sdk._constants import HOME_PROMPT_FLOW_DIR, AzureMLWorkspaceTriad +from promptflow._sdk._utils import json_load +from promptflow._utils.logger_utils import get_cli_sdk_logger +from promptflow.core._errors import MissingRequiredPackage + +_logger = get_cli_sdk_logger() + + +@dataclass +class WorkspaceKindLocalCache: + subscription_id: str + resource_group_name: str + workspace_name: str + kind: typing.Optional[str] = None + timestamp: typing.Optional[datetime.datetime] = None + + SUBSCRIPTION_ID = "subscription_id" + RESOURCE_GROUP_NAME = "resource_group_name" + WORKSPACE_NAME = "workspace_name" + KIND = "kind" + TIMESTAMP = "timestamp" + # class-related constants + PF_DIR_TRACING = "tracing" + WORKSPACE_KIND_LOCAL_CACHE_EXPIRE_DAYS = 1 + + def __post_init__(self): + if self.is_cache_exists: + cache = json_load(self.cache_path) + self.kind = cache[self.KIND] + self.timestamp = datetime.datetime.fromisoformat(cache[self.TIMESTAMP]) + + @property + def cache_path(self) -> Path: + tracing_dir = HOME_PROMPT_FLOW_DIR / self.PF_DIR_TRACING + if not tracing_dir.exists(): + tracing_dir.mkdir(parents=True) + filename = f"{self.subscription_id}_{self.resource_group_name}_{self.workspace_name}.json" + return (tracing_dir / filename).resolve() + + @property + def is_cache_exists(self) -> bool: + return self.cache_path.is_file() + + @property + def is_expired(self) -> bool: + if not self.is_cache_exists: + return True + time_delta = datetime.datetime.now() - self.timestamp + return time_delta.days > self.WORKSPACE_KIND_LOCAL_CACHE_EXPIRE_DAYS + + def get_kind(self) -> str: + if not self.is_cache_exists or self.is_expired: + _logger.debug(f"refreshing local cache for resource {self.workspace_name}...") + self._refresh() + _logger.debug(f"local cache kind for resource {self.workspace_name}: {self.kind}") + return self.kind + + def _refresh(self) -> None: + self.kind = self._get_workspace_kind_from_azure() + self.timestamp = datetime.datetime.now() + cache = { + self.SUBSCRIPTION_ID: self.subscription_id, + self.RESOURCE_GROUP_NAME: self.resource_group_name, + self.WORKSPACE_NAME: self.workspace_name, + self.KIND: self.kind, + self.TIMESTAMP: self.timestamp.isoformat(), + } + with open(self.cache_path, "w") as f: + f.write(json.dumps(cache)) + + def _get_workspace_kind_from_azure(self) -> str: + try: + from azure.ai.ml import MLClient + + from promptflow.azure._cli._utils import get_credentials_for_cli + except ImportError: + error_message = "Please install 'promptflow-azure' to use Azure related tracing features." + raise MissingRequiredPackage(message=error_message) + + _logger.debug("trying to get workspace from Azure...") + ml_client = MLClient( + credential=get_credentials_for_cli(), + subscription_id=self.subscription_id, + resource_group_name=self.resource_group_name, + workspace_name=self.workspace_name, + ) + ws = ml_client.workspaces.get(name=self.workspace_name) + return ws._kind + + +def get_workspace_kind(ws_triad: AzureMLWorkspaceTriad) -> str: + """Get workspace kind. + + Note that we will cache this result locally with timestamp, so that we don't + really need to request every time, but need to check timestamp. + """ + return WorkspaceKindLocalCache( + subscription_id=ws_triad.subscription_id, + resource_group_name=ws_triad.resource_group_name, + workspace_name=ws_triad.workspace_name, + ).get_kind() diff --git a/src/promptflow-devkit/promptflow/_sdk/entities/_flows/flex.py b/src/promptflow-devkit/promptflow/_sdk/entities/_flows/flex.py index a3f8820ea46..14d5a06ca52 100644 --- a/src/promptflow-devkit/promptflow/_sdk/entities/_flows/flex.py +++ b/src/promptflow-devkit/promptflow/_sdk/entities/_flows/flex.py @@ -3,11 +3,10 @@ # --------------------------------------------------------- from os import PathLike from pathlib import Path -from typing import Dict, Optional, Union +from typing import Dict, Union from promptflow._constants import LANGUAGE_KEY, FlowLanguage from promptflow._sdk._constants import BASE_PATH_CONTEXT_KEY -from promptflow._utils.flow_utils import resolve_entry_file from promptflow.exceptions import ErrorTarget, UserErrorException from .base import Flow as FlowBase @@ -34,8 +33,6 @@ def __init__( code = Path(code) # entry function name self.entry = entry - # entry file name - self.entry_file = resolve_entry_file(entry=entry, working_dir=code) # TODO(2910062): support non-dag flow execution cache super().__init__(code=code, path=path, dag=data, content_hash=None, **kwargs) @@ -91,24 +88,6 @@ def _dump_for_validation(self) -> Dict: # endregion SchemaValidatableMixin - @classmethod - def _resolve_entry_file(cls, entry: str, working_dir: Path) -> Optional[str]: - """Resolve entry file from entry. - If entry is a local file, e.g. my.local.file:entry_function, return the local file: my/local/file.py - and executor will import it from local file. - Else, assume the entry is from a package e.g. external.module:entry, return None - and executor will try import it from package. - """ - try: - entry_file = f'{entry.split(":")[0].replace(".", "/")}.py' - except Exception as e: - raise UserErrorException(f"Entry function {entry} is not valid: {e}") - entry_file = working_dir / entry_file - if entry_file.exists(): - return entry_file.resolve().absolute().as_posix() - # when entry file not found in working directory, return None since it can come from package - return None - def _init_executable(self, **kwargs): from promptflow._proxy import ProxyFactory from promptflow.contracts.flow import FlexFlow as ExecutableEagerFlow diff --git a/src/promptflow-devkit/promptflow/_sdk/operations/_flow_operations.py b/src/promptflow-devkit/promptflow/_sdk/operations/_flow_operations.py index 94439ca7086..f54493184a2 100644 --- a/src/promptflow-devkit/promptflow/_sdk/operations/_flow_operations.py +++ b/src/promptflow-devkit/promptflow/_sdk/operations/_flow_operations.py @@ -55,6 +55,7 @@ is_flex_flow, is_prompty_flow, parse_variant, + resolve_entry_file, ) from promptflow._utils.yaml_utils import dump_yaml, load_yaml from promptflow.exceptions import ErrorTarget, UserErrorException @@ -1039,7 +1040,9 @@ def _infer_signature(entry: Union[Callable, FlexFlow, Flow, Prompty], include_pr flow_meta["init"] = init_dict format_signature_type(flow_meta) elif isinstance(entry, FlexFlow): - entry_func = entry_string_to_callable(entry.entry_file, entry.entry) + # TODO: this part will fail for csharp + entry_file = resolve_entry_file(entry=entry.entry, working_dir=entry.code) + entry_func = entry_string_to_callable(entry_file, entry.entry) flow_meta, _, _ = FlowOperations._infer_signature_flex_flow( entry=entry_func, language=entry.language, include_primitive_output=include_primitive_output ) @@ -1112,9 +1115,11 @@ def _infer_signature_flex_flow( format_signature_type(flow_meta) if validate: + flow_meta["language"] = language # this path is actually not used flow = FlexFlow(path=code / FLOW_FLEX_YAML, code=code, data=flow_meta, entry=flow_meta["entry"]) flow._validate(raise_error=True) + flow_meta.pop("language", None) if include_primitive_output and "outputs" not in flow_meta: flow_meta["outputs"] = { @@ -1295,9 +1300,15 @@ def _update_signatures(self, code: Path, data: dict) -> bool: if not is_flex_flow(yaml_dict=data): return False entry = data.get("entry") - signatures, _, _ = self._infer_signature_flex_flow(entry=entry, code=code) + signatures, _, _ = self._infer_signature_flex_flow( + entry=entry, + code=code, + language=data.get(LANGUAGE_KEY, "python"), + validate=False, + include_primitive_output=True, + ) merged_signatures = self._merge_signature(extracted=signatures, signature_overrides=data) - FlexFlow(path=code / FLOW_FLEX_YAML, code=code, data=data, entry=entry)._validate() + FlexFlow(path=code / FLOW_FLEX_YAML, code=code, data=data, entry=entry)._validate(raise_error=True) updated = False for field in ["inputs", "outputs", "init"]: if merged_signatures.get(field) != data.get(field): diff --git a/src/promptflow-devkit/promptflow/_sdk/schemas/_connection.py b/src/promptflow-devkit/promptflow/_sdk/schemas/_connection.py index e42d08ae4da..6a9989431a7 100644 --- a/src/promptflow-devkit/promptflow/_sdk/schemas/_connection.py +++ b/src/promptflow-devkit/promptflow/_sdk/schemas/_connection.py @@ -5,16 +5,12 @@ from marshmallow import ValidationError, fields, post_load, pre_dump, validates -from promptflow._constants import ( - ConnectionAuthMode, - ConnectionDefaultApiVersion, - ConnectionType, - CustomStrongTypeConnectionConfigs, -) +from promptflow._constants import ConnectionType, CustomStrongTypeConnectionConfigs from promptflow._sdk._constants import SCHEMA_KEYS_CONTEXT_CONFIG_KEY, SCHEMA_KEYS_CONTEXT_SECRET_KEY from promptflow._sdk.schemas._base import YamlFileSchema from promptflow._sdk.schemas._fields import StringTransformedEnum from promptflow._utils.utils import camel_to_snake +from promptflow.constants import ConnectionAuthMode, ConnectionDefaultApiVersion class ConnectionSchema(YamlFileSchema): diff --git a/src/promptflow-devkit/pyproject.toml b/src/promptflow-devkit/pyproject.toml index 24aa28bb585..3ecd909b9c0 100644 --- a/src/promptflow-devkit/pyproject.toml +++ b/src/promptflow-devkit/pyproject.toml @@ -58,15 +58,15 @@ gitpython = ">=3.1.24,<4.0.0" # used git info to generate flow id strictyaml = ">=1.5.0,<2.0.0" # used to identify exact location of validation error waitress = ">=2.1.2,<3.0.0" # used to serve local service azure-monitor-opentelemetry-exporter = ">=1.0.0b21,<2.0.0" -pyarrow = ">=14.0.1,<15.0.0" # used to read parquet file with pandas.read_parquet +pyarrow = { version = ">=14.0.1,<15.0.0", optional = true } # used to read parquet file with pandas.read_parquet pillow = ">=10.1.0,<11.0.0" # used to generate icon data URI for package tool opentelemetry-exporter-otlp-proto-http = ">=1.22.0,<2.0.0" # trace support flask-restx = ">=1.2.0,<2.0.0" # PFS Swagger flask-cors = ">=4.0.0,<5.0.0" # handle PFS CORS -pyinstaller = ">=5.13.2" -streamlit = ">=1.26.0" -streamlit-quill = "<0.1.0" -bs4 = "*" +pyinstaller = { version = ">=5.13.2", optional = true} # used to package the CLI tool +streamlit = { version = ">=1.26.0", optional = true} +streamlit-quill = { version = "<0.1.0", optional = true} +bs4 = { version = "*", optional = true} argcomplete = ">=3.2.3" # for generating shell autocompletions pywin32 = {version = "*", markers = "sys_platform == 'win32'"} # Support PFS detach mode in windows @@ -85,6 +85,21 @@ pyarrow = [ [tool.poetry.group.dev.dependencies] pre-commit = "*" import-linter = "*" +promptflow-core = {path = "../promptflow-core", extras = ["azureml-serving"], develop = true} +promptflow-azure = {path = "../promptflow-azure", develop = true} +promptflow-tracing = {path = "../promptflow-tracing", develop = true} +promptflow = {path = "../promptflow"} +promptflow-tools = {path = "../promptflow-tools"} +promptflow-recording = {path = "../promptflow-recording", develop = true} + +[tool.poetry.group.ci.dependencies] +import-linter = "*" +promptflow-core = {path = "../promptflow-core", extras = ["azureml-serving"]} +promptflow-azure = {path = "../promptflow-azure"} +promptflow-tracing = {path = "../promptflow-tracing"} +promptflow = {path = "../promptflow"} +promptflow-tools = {path = "../promptflow-tools"} +promptflow-recording = {path = "../promptflow-recording"} [tool.poetry.group.test.dependencies] pytest = "*" diff --git a/src/promptflow-devkit/tests/sdk_cli_test/conftest.py b/src/promptflow-devkit/tests/sdk_cli_test/conftest.py index e85a9f7f4f3..21a0bf68452 100644 --- a/src/promptflow-devkit/tests/sdk_cli_test/conftest.py +++ b/src/promptflow-devkit/tests/sdk_cli_test/conftest.py @@ -46,6 +46,7 @@ def is_replay(): MODEL_ROOT = Path(PROMPTFLOW_ROOT / "tests/test_configs/flows") RECORDINGS_TEST_CONFIGS_ROOT = Path(PROMPTFLOW_ROOT / "../promptflow-recording/recordings/local").resolve() +COUNTER_FILE = (Path(__file__) / "../count.json").resolve() def pytest_configure(): @@ -336,9 +337,10 @@ def recording_injection(mocker: MockerFixture): RecordStorage.get_instance().delete_lock_file() if is_live(): - from promptflow.recording.local import delete_count_lock_file + from promptflow.recording.local import Counter - delete_count_lock_file() + Counter.set_file(COUNTER_FILE) + Counter.delete_count_lock_file() recording_array_reset() multiprocessing.get_context("spawn").Process = original_process_class @@ -385,8 +387,9 @@ def start_patches(patch_targets): start_patches(patch_targets) if is_live() and is_in_ci_pipeline(): - from promptflow.recording.local import inject_async_with_recording, inject_sync_with_recording + from promptflow.recording.local import Counter, inject_async_with_recording, inject_sync_with_recording + Counter.set_file(COUNTER_FILE) patch_targets = { "promptflow.tracing._integrations._openai_injector.inject_sync": inject_sync_with_recording, "promptflow.tracing._integrations._openai_injector.inject_async": inject_async_with_recording, diff --git a/src/promptflow-devkit/tests/sdk_cli_test/e2etests/test_cli.py b/src/promptflow-devkit/tests/sdk_cli_test/e2etests/test_cli.py index bae8b163d73..de66d53692c 100644 --- a/src/promptflow-devkit/tests/sdk_cli_test/e2etests/test_cli.py +++ b/src/promptflow-devkit/tests/sdk_cli_test/e2etests/test_cli.py @@ -2493,7 +2493,7 @@ def test_pf_flow_save(self, pf): "--code", f"{EAGER_FLOWS_DIR}/../functions/hello_world", ) - assert os.listdir(temp_dir) == [FLOW_FLEX_YAML, "hello.py"] + assert set(os.listdir(temp_dir)) == {FLOW_FLEX_YAML, "hello.py"} content = load_yaml(Path(temp_dir) / FLOW_FLEX_YAML) assert content == { "entry": "hello:hello_world", @@ -2512,7 +2512,7 @@ def test_pf_flow_save(self, pf): cwd=temp_dir, ) # __pycache__ will be created when inspecting the module - assert os.listdir(temp_dir) == [FLOW_FLEX_YAML, "hello.py", "__pycache__"] + assert set(os.listdir(temp_dir)) == {FLOW_FLEX_YAML, "hello.py", "__pycache__"} new_content = load_yaml(Path(temp_dir) / FLOW_FLEX_YAML) assert new_content == content diff --git a/src/promptflow-devkit/tests/sdk_cli_test/e2etests/test_connection.py b/src/promptflow-devkit/tests/sdk_cli_test/e2etests/test_connection.py index 01b907a41ff..3e3b12847a0 100644 --- a/src/promptflow-devkit/tests/sdk_cli_test/e2etests/test_connection.py +++ b/src/promptflow-devkit/tests/sdk_cli_test/e2etests/test_connection.py @@ -6,11 +6,11 @@ from _constants import PROMPTFLOW_ROOT from mock import mock -from promptflow._constants import ConnectionDefaultApiVersion from promptflow._sdk._constants import SCRUBBED_VALUE from promptflow._sdk._errors import ConnectionNameNotSetError from promptflow._sdk._pf_client import PFClient from promptflow._sdk.entities import AzureOpenAIConnection, CustomConnection, OpenAIConnection +from promptflow.constants import ConnectionDefaultApiVersion TEST_ROOT = PROMPTFLOW_ROOT / "tests" CONNECTION_ROOT = TEST_ROOT / "test_configs/connections" diff --git a/src/promptflow-devkit/tests/sdk_cli_test/e2etests/test_csharp_cli.py b/src/promptflow-devkit/tests/sdk_cli_test/e2etests/test_csharp_cli.py index b6de9bbc6b8..bb94d514df6 100644 --- a/src/promptflow-devkit/tests/sdk_cli_test/e2etests/test_csharp_cli.py +++ b/src/promptflow-devkit/tests/sdk_cli_test/e2etests/test_csharp_cli.py @@ -144,3 +144,22 @@ def mock_input(*args, **kwargs): def test_flow_run_from_resume(self): run_pf_command("run", "create", "--resume-from", "net6_0_variant_0_20240326_163600_356909") + + def test_flow_class_init(self): + """Note that this test won't pass. Instead, it will hang and pop up a web page for user input. + Leave it here for debugging purpose. + """ + # The test need to interact with user input in ui + flow_dir = f"{get_repo_base_path()}\\src\\PromptflowCSharp\\FlexFlowClassInit\\bin\\Debug\\net6.0" + + run_pf_command( + "flow", + "test", + "--flow", + flow_dir, + "--inputs", + "topic=aklhdfqwejk", + "--init", + "name=world", + "connection=azure_open_ai_connection", + ) diff --git a/src/promptflow-devkit/tests/sdk_cli_test/e2etests/test_flow_save.py b/src/promptflow-devkit/tests/sdk_cli_test/e2etests/test_flow_save.py index 2664f53d26b..6a32ab5aba7 100644 --- a/src/promptflow-devkit/tests/sdk_cli_test/e2etests/test_flow_save.py +++ b/src/promptflow-devkit/tests/sdk_cli_test/e2etests/test_flow_save.py @@ -594,7 +594,7 @@ def test_flow_save_file_code(self): } }, } - assert os.listdir(temp_dir) == ["flow.flex.yaml", "hello.py"] + assert set(os.listdir(temp_dir)) == {"flow.flex.yaml", "hello.py"} def test_flow_infer_signature(self): pf = PFClient() diff --git a/src/promptflow-devkit/tests/sdk_cli_test/e2etests/test_prompty.py b/src/promptflow-devkit/tests/sdk_cli_test/e2etests/test_prompty.py index c46f3a25f37..5313eb84598 100644 --- a/src/promptflow-devkit/tests/sdk_cli_test/e2etests/test_prompty.py +++ b/src/promptflow-devkit/tests/sdk_cli_test/e2etests/test_prompty.py @@ -241,3 +241,13 @@ def test_prompty_format_output(self, pf: PFClient): ) result = prompty(question="what is the result of 1+1?") assert isinstance(result, ChatCompletion) + + def test_prompty_trace(self, pf: PFClient): + run = pf.run(flow=f"{PROMPTY_DIR}/prompty_example.prompty", data=f"{DATA_DIR}/prompty_inputs.jsonl") + line_runs = pf.traces.list_line_runs(runs=run.name) + running_line_run = pf.traces.get_line_run(line_run_id=line_runs[0].line_run_id) + spans = pf.traces.list_spans(trace_ids=[running_line_run.trace_id]) + prompty_span = next((span for span in spans if span.name == "Basic Prompt"), None) + events = [pf.traces.get_event(item["attributes"]["event.id"]) for item in prompty_span.events] + assert any(["prompt.template" in event["attributes"]["payload"] for event in events]) + assert any(["prompt.variables" in event["attributes"]["payload"] for event in events]) diff --git a/src/promptflow-devkit/tests/sdk_cli_test/unittests/test_connection.py b/src/promptflow-devkit/tests/sdk_cli_test/unittests/test_connection.py index 6bafe7c336a..d7d5af49a02 100644 --- a/src/promptflow-devkit/tests/sdk_cli_test/unittests/test_connection.py +++ b/src/promptflow-devkit/tests/sdk_cli_test/unittests/test_connection.py @@ -9,7 +9,7 @@ from _constants import PROMPTFLOW_ROOT from promptflow._cli._pf._connection import validate_and_interactive_get_secrets -from promptflow._sdk._constants import SCRUBBED_VALUE, ConnectionAuthMode, CustomStrongTypeConnectionConfigs +from promptflow._sdk._constants import SCRUBBED_VALUE, CustomStrongTypeConnectionConfigs from promptflow._sdk._errors import ConnectionClassNotFoundError, SDKError from promptflow._sdk._load_functions import _load_env_to_connection from promptflow._sdk.entities._connection import ( @@ -26,6 +26,7 @@ _Connection, ) from promptflow._utils.yaml_utils import load_yaml +from promptflow.constants import ConnectionAuthMode from promptflow.core._connection import RequiredEnvironmentVariablesNotSetError from promptflow.exceptions import UserErrorException diff --git a/src/promptflow-devkit/tests/sdk_cli_test/unittests/test_trace.py b/src/promptflow-devkit/tests/sdk_cli_test/unittests/test_trace.py index 9d1825994b5..86398d16d40 100644 --- a/src/promptflow-devkit/tests/sdk_cli_test/unittests/test_trace.py +++ b/src/promptflow-devkit/tests/sdk_cli_test/unittests/test_trace.py @@ -25,12 +25,14 @@ TraceEnvironmentVariableName, ) from promptflow._sdk._constants import ( + HOME_PROMPT_FLOW_DIR, PF_TRACE_CONTEXT, PF_TRACE_CONTEXT_ATTR, TRACE_DEFAULT_COLLECTION, ContextAttributeKey, ) from promptflow._sdk._tracing import start_trace_with_devkit +from promptflow._sdk._tracing_utils import WorkspaceKindLocalCache from promptflow._sdk.operations._trace_operations import TraceOperations from promptflow.client import PFClient from promptflow.exceptions import UserErrorException @@ -211,3 +213,61 @@ def _validate_invalid_params(kwargs: Dict): _validate_invalid_params({"run": str(uuid.uuid4()), "started_before": datetime.datetime.now().isoformat()}) _validate_invalid_params({"collection": TRACE_DEFAULT_COLLECTION}) _validate_invalid_params({"collection": str(uuid.uuid4()), "started_before": "invalid isoformat"}) + + +@pytest.mark.unittest +@pytest.mark.sdk_test +class TestWorkspaceKindLocalCache: + def test_no_cache(self): + sub, rg, ws = str(uuid.uuid4()), str(uuid.uuid4()), str(uuid.uuid4()) + ws_local_cache = WorkspaceKindLocalCache(subscription_id=sub, resource_group_name=rg, workspace_name=ws) + assert not ws_local_cache.is_cache_exists + # mock `WorkspaceKindLocalCache._get_workspace_kind_from_azure` + mock_kind = str(uuid.uuid4()) + with patch( + "promptflow._sdk._tracing_utils.WorkspaceKindLocalCache._get_workspace_kind_from_azure" + ) as mock_get_kind: + mock_get_kind.return_value = mock_kind + assert ws_local_cache.get_kind() == mock_kind + + def test_valid_cache(self): + sub, rg, ws = str(uuid.uuid4()), str(uuid.uuid4()), str(uuid.uuid4()) + # manually create a valid local cache + kind = str(uuid.uuid4()) + with open(HOME_PROMPT_FLOW_DIR / WorkspaceKindLocalCache.PF_DIR_TRACING / f"{sub}_{rg}_{ws}.json", "w") as f: + cache = { + WorkspaceKindLocalCache.SUBSCRIPTION_ID: sub, + WorkspaceKindLocalCache.RESOURCE_GROUP_NAME: rg, + WorkspaceKindLocalCache.WORKSPACE_NAME: ws, + WorkspaceKindLocalCache.KIND: kind, + WorkspaceKindLocalCache.TIMESTAMP: datetime.datetime.now().isoformat(), + } + f.write(json.dumps(cache)) + ws_local_cache = WorkspaceKindLocalCache(subscription_id=sub, resource_group_name=rg, workspace_name=ws) + assert ws_local_cache.is_cache_exists is True + assert not ws_local_cache.is_expired + assert ws_local_cache.get_kind() == kind + + def test_expired_cache(self): + sub, rg, ws = str(uuid.uuid4()), str(uuid.uuid4()), str(uuid.uuid4()) + # manually create an expired local cache + with open(HOME_PROMPT_FLOW_DIR / WorkspaceKindLocalCache.PF_DIR_TRACING / f"{sub}_{rg}_{ws}.json", "w") as f: + cache = { + WorkspaceKindLocalCache.SUBSCRIPTION_ID: sub, + WorkspaceKindLocalCache.RESOURCE_GROUP_NAME: rg, + WorkspaceKindLocalCache.WORKSPACE_NAME: ws, + WorkspaceKindLocalCache.KIND: str(uuid.uuid4()), # this value is not important as it will be refreshed + WorkspaceKindLocalCache.TIMESTAMP: (datetime.datetime.now() - datetime.timedelta(days=7)).isoformat(), + } + f.write(json.dumps(cache)) + ws_local_cache = WorkspaceKindLocalCache(subscription_id=sub, resource_group_name=rg, workspace_name=ws) + assert ws_local_cache.is_cache_exists is True + assert ws_local_cache.is_expired is True + # mock `WorkspaceKindLocalCache._get_workspace_kind_from_azure` + kind = str(uuid.uuid4()) + with patch( + "promptflow._sdk._tracing_utils.WorkspaceKindLocalCache._get_workspace_kind_from_azure" + ) as mock_get_kind: + mock_get_kind.return_value = kind + assert ws_local_cache.get_kind() == kind + assert not ws_local_cache.is_expired diff --git a/src/promptflow-devkit/tests/sdk_pfs_test/e2etests/test_run_apis.py b/src/promptflow-devkit/tests/sdk_pfs_test/e2etests/test_run_apis.py index 1640ad1af00..8447174a2d2 100644 --- a/src/promptflow-devkit/tests/sdk_pfs_test/e2etests/test_run_apis.py +++ b/src/promptflow-devkit/tests/sdk_pfs_test/e2etests/test_run_apis.py @@ -7,6 +7,7 @@ from dataclasses import fields from pathlib import Path +import mock import pytest from promptflow._sdk.entities import Run @@ -141,6 +142,13 @@ def test_get_run_metrics(self, pfs_op: PFSOperations) -> None: metrics = pfs_op.get_run_metrics(name=self.run.name, status_code=200).json assert metrics is not None + with check_activity_end_telemetry(activity_name="pf.runs.get"), mock.patch( + "promptflow._sdk.operations._local_storage_operations.LocalStorageOperations.load_metrics" + ) as mock_load_metrics: + mock_load_metrics.side_effect = Exception("Not found metrics json") + metrics = pfs_op.get_run_metrics(name=self.run.name, status_code=200).json + assert metrics == {} + def test_get_run_metadata(self, pfs_op: PFSOperations) -> None: with check_activity_end_telemetry(activity_name="pf.runs.get"): metadata = pfs_op.get_run_metadata(name=self.run.name, status_code=200).json diff --git a/src/promptflow-evals/promptflow/evals/evaluators/chat/__init__.py b/src/promptflow-evals/promptflow/evals/evaluators/chat/__init__.py index 35b587482e7..0dcfde1b6e5 100644 --- a/src/promptflow-evals/promptflow/evals/evaluators/chat/__init__.py +++ b/src/promptflow-evals/promptflow/evals/evaluators/chat/__init__.py @@ -11,7 +11,6 @@ import numpy as np -from promptflow.core import AzureOpenAIModelConfiguration from promptflow.evals.evaluators import CoherenceEvaluator, FluencyEvaluator, GroundednessEvaluator, RelevanceEvaluator logger = logging.getLogger(__name__) @@ -19,7 +18,7 @@ class ChatEvaluator: def __init__( - self, model_config: AzureOpenAIModelConfiguration, eval_last_turn: bool = False, parallel: bool = True, + self, model_config, eval_last_turn: bool = False, parallel: bool = True, log_level: Optional[int] = None ): """ @@ -65,7 +64,7 @@ def __init__( FluencyEvaluator(model_config, log_level=log_level), ] - def __call__(self, *, conversation: List[Dict], **kwargs): + def __call__(self, *, conversation, **kwargs): """Evaluates chat scenario. :param conversation: The conversation to be evaluated. Each turn should have "role" and "content" keys. diff --git a/src/promptflow-evals/promptflow/evals/evaluators/coherence/__init__.py b/src/promptflow-evals/promptflow/evals/evaluators/coherence/__init__.py index 8818b7656a1..7df36b0e105 100644 --- a/src/promptflow-evals/promptflow/evals/evaluators/coherence/__init__.py +++ b/src/promptflow-evals/promptflow/evals/evaluators/coherence/__init__.py @@ -9,12 +9,11 @@ from pathlib import Path from promptflow.client import load_flow -from promptflow.core import AzureOpenAIModelConfiguration from promptflow.core._prompty_utils import convert_model_configuration_to_connection class CoherenceEvaluator: - def __init__(self, model_config: AzureOpenAIModelConfiguration, + def __init__(self, model_config, log_level: Optional[int] = None): """ Initialize an evaluator configured for a specific Azure OpenAI model. diff --git a/src/promptflow-evals/promptflow/evals/evaluators/content_safety/hate_unfairness.py b/src/promptflow-evals/promptflow/evals/evaluators/content_safety/hate_unfairness.py index e567cc0c408..897922f36e8 100644 --- a/src/promptflow-evals/promptflow/evals/evaluators/content_safety/hate_unfairness.py +++ b/src/promptflow-evals/promptflow/evals/evaluators/content_safety/hate_unfairness.py @@ -1,12 +1,12 @@ +from typing import Optional + from promptflow.client import load_flow from pathlib import Path -from azure.core.credentials import TokenCredential from promptflow.evals._constants import EvaluationMetrics -from typing import Optional class HateUnfairnessEvaluator: - def __init__(self, project_scope: dict, credential: Optional[TokenCredential] = None, + def __init__(self, project_scope: dict, credential=None, log_level: Optional[int] = None): """ Initialize an evaluator for hate unfairness score. diff --git a/src/promptflow-evals/promptflow/evals/evaluators/content_safety/self_harm.py b/src/promptflow-evals/promptflow/evals/evaluators/content_safety/self_harm.py index dd5ae0c6c33..762ea5da423 100644 --- a/src/promptflow-evals/promptflow/evals/evaluators/content_safety/self_harm.py +++ b/src/promptflow-evals/promptflow/evals/evaluators/content_safety/self_harm.py @@ -1,12 +1,12 @@ +from typing import Optional + from promptflow.client import load_flow from pathlib import Path -from azure.core.credentials import TokenCredential from promptflow.evals._constants import EvaluationMetrics -from typing import Optional class SelfHarmEvaluator: - def __init__(self, project_scope: dict, credential: Optional[TokenCredential] = None, + def __init__(self, project_scope: dict, credential=None, log_level: Optional[int] = None): """ Initialize an evaluator for self harm score. diff --git a/src/promptflow-evals/promptflow/evals/evaluators/content_safety/sexual.py b/src/promptflow-evals/promptflow/evals/evaluators/content_safety/sexual.py index 5d83826d7c2..cdcf80f0d56 100644 --- a/src/promptflow-evals/promptflow/evals/evaluators/content_safety/sexual.py +++ b/src/promptflow-evals/promptflow/evals/evaluators/content_safety/sexual.py @@ -1,12 +1,12 @@ +from typing import Optional + from promptflow.client import load_flow from pathlib import Path -from azure.core.credentials import TokenCredential from promptflow.evals._constants import EvaluationMetrics -from typing import Optional class SexualEvaluator: - def __init__(self, project_scope: dict, credential: Optional[TokenCredential] = None, + def __init__(self, project_scope: dict, credential=None, log_level: Optional[int] = None): """ Initialize an evaluator for sexual score. diff --git a/src/promptflow-evals/promptflow/evals/evaluators/content_safety/violence.py b/src/promptflow-evals/promptflow/evals/evaluators/content_safety/violence.py index 56a8724e582..8e1fb37daef 100644 --- a/src/promptflow-evals/promptflow/evals/evaluators/content_safety/violence.py +++ b/src/promptflow-evals/promptflow/evals/evaluators/content_safety/violence.py @@ -1,12 +1,12 @@ +from typing import Optional + from promptflow.client import load_flow from pathlib import Path -from azure.core.credentials import TokenCredential from promptflow.evals._constants import EvaluationMetrics -from typing import Optional class ViolenceEvaluator: - def __init__(self, project_scope: dict, credential: Optional[TokenCredential] = None, + def __init__(self, project_scope: dict, credential=None, log_level: Optional[int] = None): """ Initialize an evaluator for violence score. diff --git a/src/promptflow-evals/promptflow/evals/evaluators/fluency/__init__.py b/src/promptflow-evals/promptflow/evals/evaluators/fluency/__init__.py index 5f5b3bfa980..2bfd31a8361 100644 --- a/src/promptflow-evals/promptflow/evals/evaluators/fluency/__init__.py +++ b/src/promptflow-evals/promptflow/evals/evaluators/fluency/__init__.py @@ -9,12 +9,11 @@ from pathlib import Path from promptflow.client import load_flow -from promptflow.core import AzureOpenAIModelConfiguration from promptflow.core._prompty_utils import convert_model_configuration_to_connection class FluencyEvaluator: - def __init__(self, model_config: AzureOpenAIModelConfiguration, + def __init__(self, model_config, log_level: Optional[int] = None): """ Initialize an evaluator configured for a specific Azure OpenAI model. diff --git a/src/promptflow-evals/promptflow/evals/evaluators/groundedness/__init__.py b/src/promptflow-evals/promptflow/evals/evaluators/groundedness/__init__.py index ff8c16d48f8..db59fb73007 100644 --- a/src/promptflow-evals/promptflow/evals/evaluators/groundedness/__init__.py +++ b/src/promptflow-evals/promptflow/evals/evaluators/groundedness/__init__.py @@ -9,12 +9,11 @@ from pathlib import Path from promptflow.client import load_flow -from promptflow.core import AzureOpenAIModelConfiguration from promptflow.core._prompty_utils import convert_model_configuration_to_connection class GroundednessEvaluator: - def __init__(self, model_config: AzureOpenAIModelConfiguration, + def __init__(self, model_config, log_level: Optional[int] = None): """ Initialize an evaluator configured for a specific Azure OpenAI model. diff --git a/src/promptflow-evals/promptflow/evals/evaluators/qa/__init__.py b/src/promptflow-evals/promptflow/evals/evaluators/qa/__init__.py index ac639b789e5..687549ed62d 100644 --- a/src/promptflow-evals/promptflow/evals/evaluators/qa/__init__.py +++ b/src/promptflow-evals/promptflow/evals/evaluators/qa/__init__.py @@ -6,7 +6,6 @@ from typing import Optional -from promptflow.core import AzureOpenAIModelConfiguration from promptflow.evals.evaluators import ( CoherenceEvaluator, F1ScoreEvaluator, @@ -18,7 +17,7 @@ class QAEvaluator: - def __init__(self, model_config: AzureOpenAIModelConfiguration, + def __init__(self, model_config, log_level: Optional[int] = None): """ Initialize an evaluator configured for a specific Azure OpenAI model. diff --git a/src/promptflow-evals/promptflow/evals/evaluators/relevance/__init__.py b/src/promptflow-evals/promptflow/evals/evaluators/relevance/__init__.py index 7ba2d934dc9..9578f50fe1a 100644 --- a/src/promptflow-evals/promptflow/evals/evaluators/relevance/__init__.py +++ b/src/promptflow-evals/promptflow/evals/evaluators/relevance/__init__.py @@ -9,12 +9,11 @@ from pathlib import Path from promptflow.client import load_flow -from promptflow.core import AzureOpenAIModelConfiguration from promptflow.core._prompty_utils import convert_model_configuration_to_connection class RelevanceEvaluator: - def __init__(self, model_config: AzureOpenAIModelConfiguration, + def __init__(self, model_config, log_level: Optional[int] = None): """ Initialize an evaluator configured for a specific Azure OpenAI model. diff --git a/src/promptflow-evals/promptflow/evals/evaluators/similarity/__init__.py b/src/promptflow-evals/promptflow/evals/evaluators/similarity/__init__.py index 53220267fc1..000f4801ff9 100644 --- a/src/promptflow-evals/promptflow/evals/evaluators/similarity/__init__.py +++ b/src/promptflow-evals/promptflow/evals/evaluators/similarity/__init__.py @@ -9,12 +9,11 @@ from pathlib import Path from promptflow.client import load_flow -from promptflow.core import AzureOpenAIModelConfiguration from promptflow.core._prompty_utils import convert_model_configuration_to_connection class SimilarityEvaluator: - def __init__(self, model_config: AzureOpenAIModelConfiguration, + def __init__(self, model_config, log_level: Optional[int] = None): """ Initialize an evaluator configured for a specific Azure OpenAI model. diff --git a/src/promptflow-evals/promptflow/version.txt b/src/promptflow-evals/promptflow/version.txt new file mode 100644 index 00000000000..901e5110b2e --- /dev/null +++ b/src/promptflow-evals/promptflow/version.txt @@ -0,0 +1 @@ +VERSION = "0.0.1" diff --git a/src/promptflow-evals/samples/EvaluatorUpload.ipynb b/src/promptflow-evals/samples/EvaluatorUpload.ipynb new file mode 100644 index 00000000000..aaf81325c63 --- /dev/null +++ b/src/promptflow-evals/samples/EvaluatorUpload.ipynb @@ -0,0 +1,494 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "id": "6018523f-3425-4bb3-9810-d31b8912991c", + "metadata": {}, + "source": [ + "# Upload of evaluators\n", + "In this notebook we are demonstrating the upload of the standard evaluators.\n", + "\n", + "### Import" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "d3e21ceb-1e58-4ba7-884a-5e103aea7ecc", + "metadata": {}, + "outputs": [], + "source": [ + "import os\n", + "import json\n", + "import pandas as pd\n", + "import shutil\n", + "import uuid\n", + "import yaml\n", + "\n", + "from azure.ai.ml import MLClient\n", + "from azure.identity import DefaultAzureCredential\n", + "from azure.ai.ml.entities import (\n", + " Model\n", + ")\n", + "\n", + "from promptflow.client import PFClient\n", + "from promptflow.evals.evaluate import evaluate\n", + "from promptflow.evals.evaluators import F1ScoreEvaluator" + ] + }, + { + "cell_type": "markdown", + "id": "846babb1-59b5-4d38-bb3a-d6eebd39ebee", + "metadata": {}, + "source": [ + "## End to end demonstration of evaluator saving and uploading to Azure.\n", + "### Saving the standard evaluators to the flex format.\n", + "First we will create the promptflow client, which will be used to save the existing flows." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "3b03e557-19bd-4a2a-ae3f-bbaf6846fb33", + "metadata": {}, + "outputs": [], + "source": [ + "pf = PFClient()" + ] + }, + { + "cell_type": "markdown", + "id": "e3fcaf38-6caa-4c1b-ada5-479686232cd1", + "metadata": {}, + "source": [ + "We will use F1 score evaluator from the standard evaluator set and save it to local directory. " + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "66fae04d-f6d0-4cc3-b149-a6058158c797", + "metadata": {}, + "outputs": [], + "source": [ + "pf.flows.save(F1ScoreEvaluator, path='./f1_score')" + ] + }, + { + "cell_type": "markdown", + "id": "03552c5a-3ecc-4154-a0bd-e3fe2831e323", + "metadata": {}, + "source": [ + "Let us inspect, what has been saved" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "0a27602c-e2c8-49c2-8d00-1eb5a11e55a1", + "metadata": {}, + "outputs": [], + "source": [ + "print('\\n'.join(os.listdir('f1_score')))" + ] + }, + { + "cell_type": "markdown", + "id": "7dc4dbfe-faa0-44f9-a53e-310c946d91fe", + "metadata": {}, + "source": [ + "The file, defining entrypoint of our model is called flow.flex.yaml, let us display it." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "7c30c3e3-8113-4e0f-9210-b062e7354099", + "metadata": {}, + "outputs": [], + "source": [ + "with open(os.path.join('f1_score', 'flow.flex.yaml')) as fp:\n", + " flex_definition = yaml.safe_load(fp)\n", + "print(f\"The evaluator entrypoint is {flex_definition['entry']}\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "d9bb9a12-8bdd-4679-9957-998f3c7ceb75", + "metadata": {}, + "outputs": [], + "source": [ + "pf = PFClient()\n", + "run = Run(\n", + " flow='f1_score',\n", + " data='data.jsonl',\n", + " name=f'test_{uuid.uuid1()}'\n", + ")\n", + "run = pf.runs.create_or_update(\n", + " run=run,\n", + ")\n", + "pf.stream(run)" + ] + }, + { + "cell_type": "markdown", + "id": "6e7ee69f-4db3-4f5f-874a-5dc95d2e2f7c", + "metadata": {}, + "source": [ + "**Hack for standard evaluators.** If we will try to load our evaluator directly, we will get an error, because we try to modify `__path__` variable, which will work inside the python package, however, it will fail if we will try to run evaluator as a standalone script. To fix it, we will remove this line from our code. **This code is not needed for custom user evaluators!**" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "918d39c2-dfb1-4660-b664-1830adf2708c", + "metadata": {}, + "outputs": [], + "source": [ + "def fix_evaluator_code(flex_dir: str) -> None:\n", + " \"\"\"\n", + " Read the flow.flex.yaml file from the flex_dir and remove the line, modifying __path__.\n", + "\n", + " :param flex_dir: The directory with evaluator saved in flex format.\n", + " \"\"\"\n", + " with open(os.path.join(flex_dir, 'flow.flex.yaml')) as fp:\n", + " flex_definition = yaml.safe_load(fp)\n", + " entry_script = flex_definition['entry'].split(':')[0] + '.py'\n", + " if entry_script == '__init__.py':\n", + " with open(os.path.join(flex_dir, entry_script)) as f:\n", + " with open(os.path.join(flex_dir, '_' + entry_script), 'w') as new_f:\n", + " for line in f:\n", + " if not '__path__' in line:\n", + " new_f.write(line)\n", + " os.replace(os.path.join(flex_dir, '_' + entry_script), os.path.join(flex_dir, entry_script))\n", + "\n", + "fix_evaluator_code('f1_score')" + ] + }, + { + "cell_type": "markdown", + "id": "88fbd6bf-6977-457b-aa55-f6dad9ec1f73", + "metadata": {}, + "source": [ + "Now let us test the flow with the simple dataset, consisting of one ground true and one actual sentense." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "fb73f698-7cab-4b30-8947-411c2060560c", + "metadata": {}, + "outputs": [], + "source": [ + "data = pd.DataFrame({\n", + " \"ground_truth\": [\"January is the coldest winter month.\"],\n", + " \"answer\": [\"June is the coldest summer month.\"]\n", + "})\n", + "in_file = 'data.jsonl'\n", + "data.to_json('data.jsonl', orient='records', lines=True, index=False)" + ] + }, + { + "cell_type": "markdown", + "id": "bd3589c8-0df8-489f-b5a8-beb5ae2aec6a", + "metadata": {}, + "source": [ + "Load the evaluator in a FLEX format and test it." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "841d6109-23b9-45c5-b709-b588f932f29d", + "metadata": {}, + "outputs": [], + "source": [ + "flow_result = pf.test(flow='f1_score', inputs='data.jsonl')\n", + "print(f\"Flow outputs: {flow_result}\")" + ] + }, + { + "cell_type": "markdown", + "id": "4a94aab5-73f8-4c7d-a7e0-a92853db0198", + "metadata": {}, + "source": [ + "Now we have all the tools to upload our model to Azure\n", + "### Uploading data to Azure\n", + "First we will need to authenticate to azure. For this purpose we will use the the configuration file of the net structure.\n", + "```json\r\n", + "{\r\n", + " \"resource_group_name\": \"resource-group-name\",\r\n", + " \"workspace_name\": \"ws-name\",\r\n", + " \"subscription_id\": \"subscription-uuid\",\r\n", + " \"registry_name\": \"registry-name\"\r\n", + "}\r\n", + "```\r\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "7188cb7d-d7c1-460f-9f3e-91546d8b8b09", + "metadata": {}, + "outputs": [], + "source": [ + "with open('config.json') as f:\n", + " configuration = json.load(f)" + ] + }, + { + "cell_type": "markdown", + "id": "397e6627-67d8-43c3-b491-e3a8802197b2", + "metadata": {}, + "source": [ + "#### Uploading to the workspace\n", + "In this scenario we will not need the `registry_name` in our configuration." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "36338014-05f9-4f37-9fb0-726bb1c137b8", + "metadata": {}, + "outputs": [], + "source": [ + "config_ws = configuration.copy()\n", + "del config_ws[\"registry_name\"]\n", + "\n", + "credential = DefaultAzureCredential()\n", + "ml_client = MLClient(\n", + " credential=credential,\n", + " **config_ws\n", + ")" + ] + }, + { + "cell_type": "markdown", + "id": "6fe4a912-047f-4614-85a7-cfff86874303", + "metadata": {}, + "source": [ + "We will use the evaluator operations API to upload our model to workspace." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "4a4edb19-f0b8-498c-908d-c7e23ba7b30d", + "metadata": {}, + "outputs": [], + "source": [ + "eval = Model(\n", + " path=\"f1_score\",\n", + " name='f1_score_uploaded',\n", + " description=\"F1 score evaluator.\",\n", + ")\n", + "ml_client.evaluators.create_or_update(eval)" + ] + }, + { + "cell_type": "markdown", + "id": "d6423eb6-415c-463c-839d-da0cf70bf245", + "metadata": {}, + "source": [ + "Now we will retrieve model and check that it is functional." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "e18dd491-ee43-4dda-8a5b-d5317f8cb64d", + "metadata": {}, + "outputs": [], + "source": [ + "ml_client.evaluators.download('f1_score_uploaded', version='1', download_path='f1_score_downloaded')" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "a15468f0-681a-49fe-a883-0da44f68293f", + "metadata": {}, + "outputs": [], + "source": [ + "flow_result = pf.test(flow=os.path.join('f1_score_downloaded', 'f1_score_uploaded', 'f1_score'), inputs='data.jsonl')\n", + "print(f\"Flow outputs: {flow_result}\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "d0708cd5-66e7-46f2-a8d0-b41e82278a54", + "metadata": {}, + "outputs": [], + "source": [ + "shutil.rmtree('f1_score_downloaded')\n", + "assert not os.path.isdir('f1_score_downloaded')" + ] + }, + { + "cell_type": "markdown", + "id": "fd4a4588-a0b7-4bd9-adc6-6595084da3b7", + "metadata": {}, + "source": [ + "#### Uploading to the registry\n", + "In this scenario we will not need the `workspace_name` in our configuration." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "75b57845-77f0-4a2e-9b2f-ccb3fb825da0", + "metadata": {}, + "outputs": [], + "source": [ + "config_reg = configuration.copy()\n", + "del config_reg[\"workspace_name\"]\n", + "\n", + "ml_client = MLClient(\n", + " credential=credential,\n", + " **config_reg\n", + ")" + ] + }, + { + "cell_type": "markdown", + "id": "7eb0f024-c6e5-4e51-aaaa-021eaa4c14c4", + "metadata": {}, + "source": [ + "We are creating new eval here, because create_or_update changes the model inplace, adding non existing link to workspace" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "b488f4ff-b97f-43e6-82ab-a78a2e9e2da8", + "metadata": {}, + "outputs": [], + "source": [ + "eval = Model(\n", + " path=\"f1_score\",\n", + " name='f1_score_uploaded',\n", + " description=\"F1 score evaluator.\",\n", + ")\n", + "ml_client.evaluators.create_or_update(eval)" + ] + }, + { + "cell_type": "markdown", + "id": "c6603c7d-7eaf-454e-a59a-2dd01fd3afc6", + "metadata": {}, + "source": [ + "Now we will perform the same sanity check, we have done for the workspace." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "ccfc3d3b-db1a-4a5a-97c5-4ff701051695", + "metadata": {}, + "outputs": [], + "source": [ + "ml_client.evaluators.download('f1_score_uploaded', version='1', download_path='f1_score_downloaded')\n", + "flow_result = pf.test(flow=os.path.join('f1_score_downloaded', 'f1_score_uploaded', 'f1_score'), inputs='data.jsonl')\n", + "print(f\"Flow outputs: {flow_result}\")" + ] + }, + { + "cell_type": "markdown", + "id": "6e5dc1c9-9c7a-40f7-9b23-9b30bedd5dd4", + "metadata": {}, + "source": [ + "Finally, we will do the cleanup." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "a90b52e8-1f46-454d-a6a5-2ad725e927fe", + "metadata": {}, + "outputs": [], + "source": [ + "shutil.rmtree('f1_score_downloaded')\n", + "assert not os.path.isdir('f1_score_downloaded')" + ] + }, + { + "cell_type": "markdown", + "id": "57f3ce40-5b55-459a-829a-5e4373c82218", + "metadata": {}, + "source": [ + "Take evaluators from two different namespaces: `evaluators` and `evaluators.content_safety`." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "6058cc1a-ac9e-4d49-a7dd-7fce0641aed0", + "metadata": {}, + "outputs": [], + "source": [ + "import inspect\n", + "import tempfile\n", + "\n", + "from promptflow.evals import evaluators\n", + "from promptflow.evals.evaluators import content_safety\n", + "\n", + "def upload_models(namespace):\n", + " \"\"\"\n", + " Upload all the evaluators in namespace.\n", + "\n", + " :param namespace: The namespace to take evaluators from.\n", + " \"\"\"\n", + " for name, obj in inspect.getmembers(namespace):\n", + " if inspect.isclass(obj):\n", + " try:\n", + " description = inspect.getdoc(obj) or inspect.getdoc(getattr(obj, '__init__'))\n", + " with tempfile.TemporaryDirectory() as d:\n", + " os.makedirs(name, exist_ok=True)\n", + " artifact_dir = os.path.join(d, name)\n", + " pf.flows.save(obj, path=artifact_dir)\n", + " default_display_file = os.path.join(name, 'flow', 'prompt.jinja2')\n", + " properties = None\n", + " if os.path.isfile(os.path.join(d, default_display_file)):\n", + " properties = {'_default-display-file': default_display_file}\n", + " eval = Model(\n", + " path=artifact_dir,\n", + " name=name,\n", + " description=description,\n", + " properties=properties\n", + " )\n", + " #if not list(ml_client.evaluators.list(eval.name)):\n", + " ml_client.evaluators.create_or_update(eval)\n", + " print(f'{name} saved')\n", + " except BaseException as e:\n", + " print(f'Failed to save {name} Error: {e}')\n", + "\n", + "\n", + "upload_models(evaluators)\n", + "upload_models(content_safety)" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "python311", + "language": "python", + "name": "python311" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.11.7" + } + }, + "nbformat": 4, + "nbformat_minor": 5 +} diff --git a/src/promptflow-evals/tests/evals/conftest.py b/src/promptflow-evals/tests/evals/conftest.py index 88a91288f84..b59fa3f64b5 100644 --- a/src/promptflow-evals/tests/evals/conftest.py +++ b/src/promptflow-evals/tests/evals/conftest.py @@ -6,6 +6,7 @@ import pytest from pytest_mock import MockerFixture +from promptflow.client import PFClient from promptflow.core import AzureOpenAIModelConfiguration from promptflow.executor._line_execution_process_pool import _process_wrapper from promptflow.executor._process_manager import create_spawned_fork_process_manager @@ -32,9 +33,9 @@ def is_replay(): return False -PROMOTFLOW_ROOT = Path(__file__) / "../../../.." -CONNECTION_FILE = (PROMOTFLOW_ROOT / "promptflow-evals/connections.json").resolve().absolute().as_posix() -RECORDINGS_TEST_CONFIGS_ROOT = Path(PROMOTFLOW_ROOT / "promptflow-recording/recordings/local").resolve() +PROMPTFLOW_ROOT = Path(__file__) / "../../../.." +CONNECTION_FILE = (PROMPTFLOW_ROOT / "promptflow-evals/connections.json").resolve().absolute().as_posix() +RECORDINGS_TEST_CONFIGS_ROOT = Path(PROMPTFLOW_ROOT / "promptflow-recording/recordings/local").resolve() def pytest_configure(): @@ -72,6 +73,12 @@ def model_config() -> dict: return model_config +@pytest.fixture +def pf_client() -> PFClient: + """The fixture, returning PRClient""" + return PFClient() + + # ==================== Recording injection ==================== # To inject patches in subprocesses, add new mock method in setup_recording_injection_if_enabled # in fork mode, this is automatically enabled. diff --git a/src/promptflow-evals/tests/evals/unittests/test_save_eval.py b/src/promptflow-evals/tests/evals/unittests/test_save_eval.py new file mode 100644 index 00000000000..4d997dc18f2 --- /dev/null +++ b/src/promptflow-evals/tests/evals/unittests/test_save_eval.py @@ -0,0 +1,38 @@ +from typing import Any, List, Optional, Type + +import inspect +import os +import pytest + +from promptflow.evals import evaluators +from promptflow.evals.evaluators import content_safety + + +def get_evaluators_from_module(namespace: Any, exceptions: Optional[List[str]] = None) -> List[Type]: + evaluators = [] + for name, obj in inspect.getmembers(namespace): + if inspect.isclass(obj): + if exceptions and name in exceptions: + continue + evaluators.append(obj) + return evaluators + + +@pytest.mark.unittest +class TestSaveEval: + """Test saving evaluators.""" + + EVALUATORS = get_evaluators_from_module(evaluators) + RAI_EVALUATORS = get_evaluators_from_module(content_safety) + + @pytest.mark.parametrize('evaluator', EVALUATORS) + def test_save_evaluators(self, tmpdir, pf_client, evaluator) -> None: + """Test regular evaluator saving.""" + pf_client.flows.save(evaluator, path=tmpdir) + assert os.path.isfile(os.path.join(tmpdir, 'flow.flex.yaml')) + + @pytest.mark.parametrize('rai_evaluator', RAI_EVALUATORS) + def test_save_rai_evaluators(self, tmpdir, pf_client, rai_evaluator): + """Test saving of RAI evaluators""" + pf_client.flows.save(rai_evaluator, path=tmpdir) + assert os.path.isfile(os.path.join(tmpdir, 'flow.flex.yaml')) diff --git a/src/promptflow-recording/promptflow/recording/local/mock_tool.py b/src/promptflow-recording/promptflow/recording/local/mock_tool.py index fe94cea26a1..0f93e53abc7 100644 --- a/src/promptflow-recording/promptflow/recording/local/mock_tool.py +++ b/src/promptflow-recording/promptflow/recording/local/mock_tool.py @@ -1,7 +1,5 @@ import functools import inspect -import os -from pathlib import Path from promptflow.tracing._tracer import _create_trace_from_function_call from promptflow.tracing.contracts.trace import TraceType @@ -17,8 +15,6 @@ is_replay, ) -COUNT_RECORD = (Path(__file__) / "../../count.json").resolve() - # recording array is a global variable to store the function names that need to be recorded recording_array = ["fetch_text_content_from_url", "my_python_tool"] @@ -93,7 +89,7 @@ def call_func(func, args, kwargs): RecordStorage.get_instance().set_record(input_dict, e) obj = RecordStorage.get_instance().set_record(input_dict, obj) elif is_live() and is_in_ci_pipeline(): - obj = Counter.get_instance().set_file_record_count(COUNT_RECORD, func(*args, **kwargs)) + obj = Counter.get_instance().set_record_count(func(*args, **kwargs)) else: obj = func(*args, **kwargs) return obj @@ -126,16 +122,15 @@ async def call_func_async(func, args, kwargs): RecordStorage.get_instance().set_record(input_dict, e) obj = RecordStorage.get_instance().set_record(input_dict, obj) elif is_live() and is_in_ci_pipeline(): - obj = Counter.get_instance().set_file_record_count(COUNT_RECORD, await func(*args, **kwargs)) + obj = Counter.get_instance().set_record_count(await func(*args, **kwargs)) else: obj = await func(*args, **kwargs) return obj def delete_count_lock_file(): - lock_file = str(COUNT_RECORD) + ".lock" - if os.path.isfile(lock_file): - os.remove(lock_file) + # Not Deprecate since too much file is referencing. + pass def mock_tool(original_tool): diff --git a/src/promptflow-recording/promptflow/recording/local/record_storage.py b/src/promptflow-recording/promptflow/recording/local/record_storage.py index 131337c556d..bdfba51252a 100644 --- a/src/promptflow-recording/promptflow/recording/local/record_storage.py +++ b/src/promptflow-recording/promptflow/recording/local/record_storage.py @@ -451,7 +451,7 @@ def __init__(self): def is_non_zero_file(self, fpath): return os.path.isfile(fpath) and os.path.getsize(fpath) > 0 - def set_file_record_count(self, file, obj): + def set_record_count(self, obj): """ Just count how many tokens are calculated. Different from openai_metric_calculator, this is directly returned from AOAI. @@ -465,16 +465,15 @@ def set_file_record_count(self, file, obj): # This is error. Suppress it. count = 0 - self.file = file - with FileLock(str(file) + ".lock"): - is_non_zero_file = self.is_non_zero_file(file) + with FileLock(str(self.file) + ".lock"): + is_non_zero_file = self.is_non_zero_file(self.file) if is_non_zero_file: - with open(file, "r", encoding="utf-8") as f: + with open(self.file, "r", encoding="utf-8") as f: number = json.load(f) number["count"] += count else: number = {"count": count} - with open(file, "w", encoding="utf-8") as f: + with open(self.file, "w", encoding="utf-8") as f: number_str = json.dumps(number, ensure_ascii=False) f.write(number_str) @@ -488,3 +487,16 @@ def get_instance(cls) -> "Counter": if cls._instance is None: cls._instance = Counter() return cls._instance + + @classmethod + def set_file(cls, file): + cls.get_instance().file = file + + @classmethod + def delete_count_lock_file(cls, default_path=None): + file = cls.get_instance().file + if file is None: + file = default_path + lock_file = str(file) + ".lock" + if os.path.isfile(lock_file): + os.remove(lock_file) diff --git a/src/promptflow-recording/recordings/azure/test_flow_operations_TestFlow_test_create_flow.yaml b/src/promptflow-recording/recordings/azure/test_flow_operations_TestFlow_test_create_flow.yaml index 0a92464a84e..570ae259e1e 100644 --- a/src/promptflow-recording/recordings/azure/test_flow_operations_TestFlow_test_create_flow.yaml +++ b/src/promptflow-recording/recordings/azure/test_flow_operations_TestFlow_test_create_flow.yaml @@ -10,7 +10,7 @@ interactions: - keep-alive User-Agent: - promptflow-azure-sdk/1.8.0.dev0 azure-ai-ml/1.15.0 azsdk-python-mgmt-machinelearningservices/0.1.0 - Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + Python/3.11.8 (Windows-10-10.0.22631-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000 response: @@ -39,7 +39,7 @@ interactions: x-content-type-options: - nosniff x-request-time: - - '0.027' + - '0.031' status: code: 200 message: OK @@ -54,7 +54,7 @@ interactions: - keep-alive User-Agent: - promptflow-azure-sdk/1.8.0.dev0 azure-ai-ml/1.15.0 azsdk-python-mgmt-machinelearningservices/0.1.0 - Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + Python/3.11.8 (Windows-10-10.0.22631-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceworkingdirectory response: @@ -91,7 +91,7 @@ interactions: x-content-type-options: - nosniff x-request-time: - - '0.175' + - '0.103' status: code: 200 message: OK @@ -108,7 +108,7 @@ interactions: - '0' User-Agent: - promptflow-azure-sdk/1.8.0.dev0 azure-ai-ml/1.15.0 azsdk-python-mgmt-machinelearningservices/0.1.0 - Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + Python/3.11.8 (Windows-10-10.0.22631-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceworkingdirectory/listSecrets response: @@ -132,7 +132,7 @@ interactions: x-content-type-options: - nosniff x-request-time: - - '0.279' + - '0.087' status: code: 200 message: OK @@ -148,9 +148,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 06:34:25 GMT + - Wed, 17 Apr 2024 09:17:43 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -166,7 +166,7 @@ interactions: response: body: string: "\uFEFFResourceAlreadyExistsThe - specified resource already exists.\nRequestId:0c8640dc-601a-0088-35b5-88e885000000\nTime:2024-04-07T06:34:26.5829006Z" + specified resource already exists.\nRequestId:e3f0ab0c-701a-005f-37a8-90b9b0000000\nTime:2024-04-17T09:17:44.7892168Z" headers: content-length: - '228' @@ -193,9 +193,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 06:34:27 GMT + - Wed, 17 Apr 2024 09:17:46 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -211,7 +211,7 @@ interactions: response: body: string: "\uFEFFResourceAlreadyExistsThe - specified resource already exists.\nRequestId:2e0a24a6-701a-010d-58b5-883b55000000\nTime:2024-04-07T06:34:28.5285957Z" + specified resource already exists.\nRequestId:53fa3079-201a-0100-37a8-90f381000000\nTime:2024-04-17T09:17:47.7527765Z" headers: content-length: - '228' @@ -238,9 +238,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 06:34:28 GMT + - Wed, 17 Apr 2024 09:17:47 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -256,7 +256,7 @@ interactions: response: body: string: "\uFEFFResourceAlreadyExistsThe - specified resource already exists.\nRequestId:d60dae6f-e01a-00f4-45b5-88c67a000000\nTime:2024-04-07T06:34:29.2676781Z" + specified resource already exists.\nRequestId:a622391e-601a-0111-1aa8-906935000000\nTime:2024-04-17T09:17:49.1386469Z" headers: content-length: - '228' @@ -283,9 +283,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 06:34:29 GMT + - Wed, 17 Apr 2024 09:17:49 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -301,7 +301,7 @@ interactions: response: body: string: "\uFEFFResourceAlreadyExistsThe - specified resource already exists.\nRequestId:88493116-001a-00d3-3eb5-88d1be000000\nTime:2024-04-07T06:34:30.0186433Z" + specified resource already exists.\nRequestId:ab9ba495-001a-00a1-52a8-90d6f1000000\nTime:2024-04-17T09:17:50.4404899Z" headers: content-length: - '228' @@ -326,9 +326,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 06:34:29 GMT + - Wed, 17 Apr 2024 09:17:50 GMT x-ms-version: - '2023-11-03' method: GET @@ -336,7 +336,7 @@ interactions: response: body: string: "\uFEFFResourceNotFoundThe - specified resource does not exist.\nRequestId:00b5a7f8-b01a-00e9-5fb5-88cbc6000000\nTime:2024-04-07T06:34:30.7371784Z" + specified resource does not exist.\nRequestId:a6952a6c-101a-00e0-55a8-908e15000000\nTime:2024-04-17T09:17:51.7222172Z" headers: content-length: - '223' @@ -365,9 +365,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 06:34:30 GMT + - Wed, 17 Apr 2024 09:17:51 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -387,21 +387,21 @@ interactions: content-length: - '0' last-modified: - - Sun, 07 Apr 2024 06:34:31 GMT + - Wed, 17 Apr 2024 09:17:53 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Directory x-ms-file-change-time: - - '2024-04-07T06:34:31.4893341Z' + - '2024-04-17T09:17:53.0268687Z' x-ms-file-creation-time: - - '2024-04-07T06:34:31.4893341Z' + - '2024-04-17T09:17:53.0268687Z' x-ms-file-id: - - '13835069346751184896' + - '13835099720759902208' x-ms-file-last-write-time: - - '2024-04-07T06:34:31.4893341Z' + - '2024-04-17T09:17:53.0268687Z' x-ms-file-parent-id: - - '13835071545774440448' + - '16141035093245296640' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -421,9 +421,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 06:34:31 GMT + - Wed, 17 Apr 2024 09:17:53 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -435,7 +435,7 @@ interactions: x-ms-version: - '2023-11-03' method: PUT - uri: https://fake_account_name.file.core.windows.net/fake-file-share-name/Users%2Funknown_user%2Fpromptflow%2Fflow_name%2F__pycache__?restype=directory + uri: https://fake_account_name.file.core.windows.net/fake-file-share-name/Users%2Funknown_user%2Fpromptflow%2Fflow_name%2F.promptflow?restype=directory response: body: string: '' @@ -443,21 +443,21 @@ interactions: content-length: - '0' last-modified: - - Sun, 07 Apr 2024 06:34:32 GMT + - Wed, 17 Apr 2024 09:17:54 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Directory x-ms-file-change-time: - - '2024-04-07T06:34:32.2280808Z' + - '2024-04-17T09:17:54.3858935Z' x-ms-file-creation-time: - - '2024-04-07T06:34:32.2280808Z' + - '2024-04-17T09:17:54.3858935Z' x-ms-file-id: - - '13835139715495362560' + - '13835170089504079872' x-ms-file-last-write-time: - - '2024-04-07T06:34:32.2280808Z' + - '2024-04-17T09:17:54.3858935Z' x-ms-file-parent-id: - - '13835069346751184896' + - '13835099720759902208' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -477,9 +477,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 06:34:32 GMT + - Wed, 17 Apr 2024 09:17:54 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -491,7 +491,7 @@ interactions: x-ms-version: - '2023-11-03' method: PUT - uri: https://fake_account_name.file.core.windows.net/fake-file-share-name/Users%2Funknown_user%2Fpromptflow%2Fflow_name%2F.promptflow?restype=directory + uri: https://fake_account_name.file.core.windows.net/fake-file-share-name/Users%2Funknown_user%2Fpromptflow%2Fflow_name%2F__pycache__?restype=directory response: body: string: '' @@ -499,21 +499,21 @@ interactions: content-length: - '0' last-modified: - - Sun, 07 Apr 2024 06:34:32 GMT + - Wed, 17 Apr 2024 09:17:55 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Directory x-ms-file-change-time: - - '2024-04-07T06:34:32.9897293Z' + - '2024-04-17T09:17:55.6802039Z' x-ms-file-creation-time: - - '2024-04-07T06:34:32.9897293Z' + - '2024-04-17T09:17:55.6802039Z' x-ms-file-id: - - '13835104531123273728' + - '13835082128573857792' x-ms-file-last-write-time: - - '2024-04-07T06:34:32.9897293Z' + - '2024-04-17T09:17:55.6802039Z' x-ms-file-parent-id: - - '13835069346751184896' + - '13835099720759902208' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -533,11 +533,11 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-content-length: - '14' x-ms-date: - - Sun, 07 Apr 2024 06:34:32 GMT + - Wed, 17 Apr 2024 09:17:55 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -559,21 +559,21 @@ interactions: content-length: - '0' last-modified: - - Sun, 07 Apr 2024 06:34:33 GMT + - Wed, 17 Apr 2024 09:17:56 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Archive x-ms-file-change-time: - - '2024-04-07T06:34:33.7374366Z' + - '2024-04-17T09:17:56.9705319Z' x-ms-file-creation-time: - - '2024-04-07T06:34:33.7374366Z' + - '2024-04-17T09:17:56.9705319Z' x-ms-file-id: - - '13835174899867451392' + - '13835152497318035456' x-ms-file-last-write-time: - - '2024-04-07T06:34:33.7374366Z' + - '2024-04-17T09:17:56.9705319Z' x-ms-file-parent-id: - - '13835069346751184896' + - '13835099720759902208' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -599,9 +599,9 @@ interactions: Content-Type: - application/octet-stream User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 06:34:33 GMT + - Wed, 17 Apr 2024 09:17:57 GMT x-ms-range: - bytes=0-13 x-ms-version: @@ -619,11 +619,11 @@ interactions: content-md5: - nYmkCopuDuFj82431amzZw== last-modified: - - Sun, 07 Apr 2024 06:34:34 GMT + - Wed, 17 Apr 2024 09:17:58 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-last-write-time: - - '2024-04-07T06:34:34.4841507Z' + - '2024-04-17T09:17:58.3405083Z' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -643,11 +643,11 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-content-length: - - '631' + - '372' x-ms-date: - - Sun, 07 Apr 2024 06:34:34 GMT + - Wed, 17 Apr 2024 09:17:58 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -661,7 +661,7 @@ interactions: x-ms-version: - '2023-11-03' method: PUT - uri: https://fake_account_name.file.core.windows.net/fake-file-share-name/Users/unknown_user/promptflow/flow_name/.promptflow/flow.log + uri: https://fake_account_name.file.core.windows.net/fake-file-share-name/Users/unknown_user/promptflow/flow_name/.promptflow/flow.tools.json response: body: string: '' @@ -669,21 +669,21 @@ interactions: content-length: - '0' last-modified: - - Sun, 07 Apr 2024 06:34:35 GMT + - Wed, 17 Apr 2024 09:17:59 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Archive x-ms-file-change-time: - - '2024-04-07T06:34:35.1990043Z' + - '2024-04-17T09:17:59.7224339Z' x-ms-file-creation-time: - - '2024-04-07T06:34:35.1990043Z' + - '2024-04-17T09:17:59.7224339Z' x-ms-file-id: - - '13835086938937229312' + - '11529291895918297088' x-ms-file-last-write-time: - - '2024-04-07T06:34:35.1990043Z' + - '2024-04-17T09:17:59.7224339Z' x-ms-file-parent-id: - - '13835104531123273728' + - '13835170089504079872' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -692,137 +692,12 @@ interactions: code: 201 message: Created - request: - body: '2024-04-07 03:33:32 +0000 718308 execution.flow INFO Start executing - nodes in thread pool mode. - - 2024-04-07 03:33:32 +0000 718308 execution.flow INFO Start to run 1 - nodes with concurrency level 16. - - 2024-04-07 03:33:32 +0000 718308 execution.flow INFO Executing node - hello_world. node run id: d32eef14-ba6e-44d7-9410-d9c8491fd4fb_hello_world_0 - - 2024-04-07 03:33:32 +0000 718308 execution.flow INFO Node hello_world - completes. - - 2024-04-07 03:33:32 +0000 718308 execution.flow WARNING Error occurred - while force flush tracer provider: ''ProxyTracerProvider'' object has no attribute - ''force_flush'' - - ' - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '631' - Content-MD5: - - 4xvZisyz3aqT9bHeHwyeyA== - Content-Type: - - application/octet-stream - User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) - x-ms-date: - - Sun, 07 Apr 2024 06:34:35 GMT - x-ms-range: - - bytes=0-630 - x-ms-version: - - '2023-11-03' - x-ms-write: - - update - method: PUT - uri: https://fake_account_name.file.core.windows.net/fake-file-share-name/Users/unknown_user/promptflow/flow_name/.promptflow/flow.log?comp=range - response: - body: - string: '' - headers: - content-length: - - '0' - content-md5: - - 4xvZisyz3aqT9bHeHwyeyA== - last-modified: - - Sun, 07 Apr 2024 06:34:35 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-last-write-time: - - '2024-04-07T06:34:35.9745899Z' - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2023-11-03' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) - x-ms-content-length: - - '279' - x-ms-date: - - Sun, 07 Apr 2024 06:34:35 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - Inherit - x-ms-type: - - file - x-ms-version: - - '2023-11-03' - method: PUT - uri: https://fake_account_name.file.core.windows.net/fake-file-share-name/Users/unknown_user/promptflow/flow_name/.promptflow/hello_world.node.log - response: - body: - string: '' - headers: - content-length: - - '0' - last-modified: - - Sun, 07 Apr 2024 06:34:36 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Archive - x-ms-file-change-time: - - '2024-04-07T06:34:36.7043778Z' - x-ms-file-creation-time: - - '2024-04-07T06:34:36.7043778Z' - x-ms-file-id: - - '13835157307681406976' - x-ms-file-last-write-time: - - '2024-04-07T06:34:36.7043778Z' - x-ms-file-parent-id: - - '13835104531123273728' - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2023-11-03' - status: - code: 201 - message: Created -- request: - body: '2024-04-07 03:33:32 +0000 718308 execution.flow INFO Executing - node hello_world. node run id: f075dfe5-21f5-4d1b-84d1-46ac116bd4ab_hello_world_788fcf13-4cb3-4479-b4de-97a3b2ccd690 - - 2024-04-07 03:33:32 +0000 718308 execution.flow INFO Node hello_world - completes. - - ' + body: "{\n \"code\": {\n \"hello_world.py\": {\n \"type\": + \"python\",\n \"inputs\": {\n \"name\": {\n + \ \"type\": [\n \"string\"\n ]\n + \ }\n },\n \"source\": \"hello_world.py\",\n + \ \"function\": \"hello_world\"\n }\n },\n \"package\": + {}\n}" headers: Accept: - application/xml @@ -831,23 +706,23 @@ interactions: Connection: - keep-alive Content-Length: - - '279' + - '372' Content-MD5: - - hFC8nan3DR5KTPtD41njnw== + - B9SwRStI08UJ7Rj8H6ST1A== Content-Type: - application/octet-stream User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 06:34:36 GMT + - Wed, 17 Apr 2024 09:17:59 GMT x-ms-range: - - bytes=0-278 + - bytes=0-371 x-ms-version: - '2023-11-03' x-ms-write: - update method: PUT - uri: https://fake_account_name.file.core.windows.net/fake-file-share-name/Users/unknown_user/promptflow/flow_name/.promptflow/hello_world.node.log?comp=range + uri: https://fake_account_name.file.core.windows.net/fake-file-share-name/Users/unknown_user/promptflow/flow_name/.promptflow/flow.tools.json?comp=range response: body: string: '' @@ -855,13 +730,13 @@ interactions: content-length: - '0' content-md5: - - hFC8nan3DR5KTPtD41njnw== + - B9SwRStI08UJ7Rj8H6ST1A== last-modified: - - Sun, 07 Apr 2024 06:34:37 GMT + - Wed, 17 Apr 2024 09:18:01 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-last-write-time: - - '2024-04-07T06:34:37.4311787Z' + - '2024-04-17T09:18:01.1043578Z' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -881,11 +756,11 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-content-length: - '250' x-ms-date: - - Sun, 07 Apr 2024 06:34:37 GMT + - Wed, 17 Apr 2024 09:18:01 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -907,21 +782,21 @@ interactions: content-length: - '0' last-modified: - - Sun, 07 Apr 2024 06:34:38 GMT + - Wed, 17 Apr 2024 09:18:02 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Archive x-ms-file-change-time: - - '2024-04-07T06:34:38.1241284Z' + - '2024-04-17T09:18:02.4096190Z' x-ms-file-creation-time: - - '2024-04-07T06:34:38.1241284Z' + - '2024-04-17T09:18:02.4096190Z' x-ms-file-id: - - '11529351681863057408' + - '13835187681690124288' x-ms-file-last-write-time: - - '2024-04-07T06:34:38.1241284Z' + - '2024-04-17T09:18:02.4096190Z' x-ms-file-parent-id: - - '13835069346751184896' + - '13835099720759902208' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -948,9 +823,9 @@ interactions: Content-Type: - application/octet-stream User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 06:34:38 GMT + - Wed, 17 Apr 2024 09:18:02 GMT x-ms-range: - bytes=0-249 x-ms-version: @@ -968,11 +843,11 @@ interactions: content-md5: - CT1FTZp5JScB8fq+HjnINw== last-modified: - - Sun, 07 Apr 2024 06:34:38 GMT + - Wed, 17 Apr 2024 09:18:03 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-last-write-time: - - '2024-04-07T06:34:38.8748240Z' + - '2024-04-17T09:18:03.8721896Z' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -992,11 +867,11 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-content-length: - '110' x-ms-date: - - Sun, 07 Apr 2024 06:34:38 GMT + - Wed, 17 Apr 2024 09:18:04 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -1018,21 +893,21 @@ interactions: content-length: - '0' last-modified: - - Sun, 07 Apr 2024 06:34:39 GMT + - Wed, 17 Apr 2024 09:18:05 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Archive x-ms-file-change-time: - - '2024-04-07T06:34:39.5926643Z' + - '2024-04-17T09:18:05.3377463Z' x-ms-file-creation-time: - - '2024-04-07T06:34:39.5926643Z' + - '2024-04-17T09:18:05.3377463Z' x-ms-file-id: - - '13835122123309318144' + - '11529349070522941440' x-ms-file-last-write-time: - - '2024-04-07T06:34:39.5926643Z' + - '2024-04-17T09:18:05.3377463Z' x-ms-file-parent-id: - - '13835069346751184896' + - '13835099720759902208' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -1057,9 +932,9 @@ interactions: Content-Type: - application/octet-stream User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 06:34:39 GMT + - Wed, 17 Apr 2024 09:18:05 GMT x-ms-range: - bytes=0-109 x-ms-version: @@ -1077,11 +952,11 @@ interactions: content-md5: - 3CPKwiOwfwiEOJC0UpjR0Q== last-modified: - - Sun, 07 Apr 2024 06:34:40 GMT + - Wed, 17 Apr 2024 09:18:06 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-last-write-time: - - '2024-04-07T06:34:40.3184710Z' + - '2024-04-17T09:18:06.8062899Z' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -1101,31 +976,31 @@ interactions: Connection: - keep-alive Content-Length: - - '251' + - '258' Content-Type: - application/json User-Agent: - promptflow-azure-sdk/1.8.0.dev0 azsdk-python-azuremachinelearningdesignerserviceclient/unknown - Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + Python/3.11.8 (Windows-10-10.0.22631-SP0) method: POST uri: https://eastus.api.azureml.ms/flow/api/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/Flows response: body: - string: '{"eTag": {}, "studioPortalEndpoint": "https://ml.azure.com/prompts/flow/3e123da1-f9a5-4c91-9234-8d9ffbb39ff5/3a620baa-25ea-444d-904a-8c4b87efe0e4/details?wsid=/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000", - "flowId": "3a620baa-25ea-444d-904a-8c4b87efe0e4", "flowName": "flow_display_name", + string: '{"eTag": {}, "studioPortalEndpoint": "https://ml.azure.com/prompts/flow/3e123da1-f9a5-4c91-9234-8d9ffbb39ff5/c3d2c490-69a7-47db-9301-474ba455b4ff/details?wsid=/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000", + "flowId": "c3d2c490-69a7-47db-9301-474ba455b4ff", "flowName": "flow_display_name", "description": "test flow description", "tags": {"owner": "sdk-test"}, "flowType": "Default", "experimentId": "00000000-0000-0000-0000-000000000000", "createdDate": - "2024-04-07T06:34:42.3877314Z", "lastModifiedDate": "2024-04-07T06:34:42.3877314Z", + "2024-04-17T09:18:09.9529539Z", "lastModifiedDate": "2024-04-17T09:18:09.9529539Z", "owner": {"userObjectId": "00000000-0000-0000-0000-000000000000", "userTenantId": - "00000000-0000-0000-0000-000000000000", "userName": "Philip Gao"}, "flowResourceId": - "azureml://locations/eastus/workspaces/00000/flows/3a620baa-25ea-444d-904a-8c4b87efe0e4", + "00000000-0000-0000-0000-000000000000", "userName": "Xingzhi Zhang"}, "flowResourceId": + "azureml://locations/eastus/workspaces/00000/flows/c3d2c490-69a7-47db-9301-474ba455b4ff", "isArchived": false, "flowDefinitionFilePath": "Users/unknown_user/promptflow/flow_name/flow.dag.yaml", "enableMultiContainer": false}' headers: connection: - keep-alive content-length: - - '1072' + - '1082' content-type: - application/json; charset=utf-8 strict-transport-security: @@ -1137,7 +1012,7 @@ interactions: x-content-type-options: - nosniff x-request-time: - - '0.473' + - '0.300' status: code: 200 message: OK @@ -1151,9 +1026,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 06:34:42 GMT + - Wed, 17 Apr 2024 09:18:10 GMT x-ms-version: - '2023-11-03' method: HEAD @@ -1167,7 +1042,7 @@ interactions: content-type: - application/octet-stream last-modified: - - Sun, 07 Apr 2024 06:34:38 GMT + - Wed, 17 Apr 2024 09:18:03 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 vary: @@ -1175,15 +1050,15 @@ interactions: x-ms-file-attributes: - Archive x-ms-file-change-time: - - '2024-04-07T06:34:38.8748240Z' + - '2024-04-17T09:18:03.8721896Z' x-ms-file-creation-time: - - '2024-04-07T06:34:38.1241284Z' + - '2024-04-17T09:18:02.4096190Z' x-ms-file-id: - - '11529351681863057408' + - '13835187681690124288' x-ms-file-last-write-time: - - '2024-04-07T06:34:38.8748240Z' + - '2024-04-17T09:18:03.8721896Z' x-ms-file-parent-id: - - '13835069346751184896' + - '13835099720759902208' x-ms-type: - File x-ms-version: diff --git a/src/promptflow-recording/recordings/azure/test_flow_operations_TestFlow_test_get_flow.yaml b/src/promptflow-recording/recordings/azure/test_flow_operations_TestFlow_test_get_flow.yaml index e853e7b50ff..8330b2cd168 100644 --- a/src/promptflow-recording/recordings/azure/test_flow_operations_TestFlow_test_get_flow.yaml +++ b/src/promptflow-recording/recordings/azure/test_flow_operations_TestFlow_test_get_flow.yaml @@ -10,7 +10,7 @@ interactions: - keep-alive User-Agent: - promptflow-azure-sdk/1.8.0.dev0 azure-ai-ml/1.15.0 azsdk-python-mgmt-machinelearningservices/0.1.0 - Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + Python/3.11.8 (Windows-10-10.0.22631-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000 response: @@ -39,7 +39,7 @@ interactions: x-content-type-options: - nosniff x-request-time: - - '0.034' + - '0.030' status: code: 200 message: OK @@ -54,7 +54,7 @@ interactions: - keep-alive User-Agent: - promptflow-azure-sdk/1.8.0.dev0 azure-ai-ml/1.15.0 azsdk-python-mgmt-machinelearningservices/0.1.0 - Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + Python/3.11.8 (Windows-10-10.0.22631-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceworkingdirectory response: @@ -91,7 +91,7 @@ interactions: x-content-type-options: - nosniff x-request-time: - - '0.765' + - '0.104' status: code: 200 message: OK @@ -108,7 +108,7 @@ interactions: - '0' User-Agent: - promptflow-azure-sdk/1.8.0.dev0 azure-ai-ml/1.15.0 azsdk-python-mgmt-machinelearningservices/0.1.0 - Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + Python/3.11.8 (Windows-10-10.0.22631-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceworkingdirectory/listSecrets response: @@ -132,7 +132,7 @@ interactions: x-content-type-options: - nosniff x-request-time: - - '0.164' + - '0.082' status: code: 200 message: OK @@ -148,9 +148,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 06:43:59 GMT + - Wed, 17 Apr 2024 09:16:25 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -166,7 +166,7 @@ interactions: response: body: string: "\uFEFFResourceAlreadyExistsThe - specified resource already exists.\nRequestId:88493934-001a-00d3-32b6-88d1be000000\nTime:2024-04-07T06:44:00.4619546Z" + specified resource already exists.\nRequestId:c66ced0a-701a-010d-3ba7-903b55000000\nTime:2024-04-17T09:16:26.6230580Z" headers: content-length: - '228' @@ -193,9 +193,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 06:44:01 GMT + - Wed, 17 Apr 2024 09:16:28 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -211,7 +211,7 @@ interactions: response: body: string: "\uFEFFResourceAlreadyExistsThe - specified resource already exists.\nRequestId:7fdf331e-a01a-0097-27b6-885b81000000\nTime:2024-04-07T06:44:02.4623188Z" + specified resource already exists.\nRequestId:2a7c4bde-c01a-0028-7fa7-906c24000000\nTime:2024-04-17T09:16:29.6005553Z" headers: content-length: - '228' @@ -238,9 +238,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 06:44:02 GMT + - Wed, 17 Apr 2024 09:16:29 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -256,7 +256,7 @@ interactions: response: body: string: "\uFEFFResourceAlreadyExistsThe - specified resource already exists.\nRequestId:7381b618-101a-010b-5db6-8808ea000000\nTime:2024-04-07T06:44:03.1735290Z" + specified resource already exists.\nRequestId:399b256e-101a-00cf-75a7-9083de000000\nTime:2024-04-17T09:16:31.0091452Z" headers: content-length: - '228' @@ -283,9 +283,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 06:44:03 GMT + - Wed, 17 Apr 2024 09:16:31 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -301,7 +301,7 @@ interactions: response: body: string: "\uFEFFResourceAlreadyExistsThe - specified resource already exists.\nRequestId:42dff510-e01a-00db-4ab6-88cbb1000000\nTime:2024-04-07T06:44:03.9076891Z" + specified resource already exists.\nRequestId:6134b832-801a-0016-5ca7-90fb5b000000\nTime:2024-04-17T09:16:32.3941771Z" headers: content-length: - '228' @@ -326,9 +326,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 06:44:03 GMT + - Wed, 17 Apr 2024 09:16:32 GMT x-ms-version: - '2023-11-03' method: GET @@ -336,7 +336,7 @@ interactions: response: body: string: "\uFEFFResourceNotFoundThe - specified resource does not exist.\nRequestId:0f615f6b-e01a-0086-4fb6-88c135000000\nTime:2024-04-07T06:44:04.6125141Z" + specified resource does not exist.\nRequestId:bca319c5-201a-00d4-57a7-90bddd000000\nTime:2024-04-17T09:16:33.8183650Z" headers: content-length: - '223' @@ -365,9 +365,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 06:44:04 GMT + - Wed, 17 Apr 2024 09:16:33 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -387,21 +387,21 @@ interactions: content-length: - '0' last-modified: - - Sun, 07 Apr 2024 06:44:05 GMT + - Wed, 17 Apr 2024 09:16:35 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Directory x-ms-file-change-time: - - '2024-04-07T06:44:05.3130956Z' + - '2024-04-17T09:16:35.2219247Z' x-ms-file-creation-time: - - '2024-04-07T06:44:05.3130956Z' + - '2024-04-17T09:16:35.2219247Z' x-ms-file-id: - - '13835100133076762624' + - '13835077730527346688' x-ms-file-last-write-time: - - '2024-04-07T06:44:05.3130956Z' + - '2024-04-17T09:16:35.2219247Z' x-ms-file-parent-id: - - '13835071545774440448' + - '16141035093245296640' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -421,9 +421,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 06:44:05 GMT + - Wed, 17 Apr 2024 09:16:35 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -435,7 +435,7 @@ interactions: x-ms-version: - '2023-11-03' method: PUT - uri: https://fake_account_name.file.core.windows.net/fake-file-share-name/Users%2Funknown_user%2Fpromptflow%2Fflow_name%2F__pycache__?restype=directory + uri: https://fake_account_name.file.core.windows.net/fake-file-share-name/Users%2Funknown_user%2Fpromptflow%2Fflow_name%2F.promptflow?restype=directory response: body: string: '' @@ -443,21 +443,21 @@ interactions: content-length: - '0' last-modified: - - Sun, 07 Apr 2024 06:44:06 GMT + - Wed, 17 Apr 2024 09:16:36 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Directory x-ms-file-change-time: - - '2024-04-07T06:44:06.0279564Z' + - '2024-04-17T09:16:36.6327204Z' x-ms-file-creation-time: - - '2024-04-07T06:44:06.0279564Z' + - '2024-04-17T09:16:36.6327204Z' x-ms-file-id: - - '11529314298467713024' + - '13835148099271524352' x-ms-file-last-write-time: - - '2024-04-07T06:44:06.0279564Z' + - '2024-04-17T09:16:36.6327204Z' x-ms-file-parent-id: - - '13835100133076762624' + - '13835077730527346688' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -477,9 +477,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 06:44:05 GMT + - Wed, 17 Apr 2024 09:16:36 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -491,7 +491,7 @@ interactions: x-ms-version: - '2023-11-03' method: PUT - uri: https://fake_account_name.file.core.windows.net/fake-file-share-name/Users%2Funknown_user%2Fpromptflow%2Fflow_name%2F.promptflow?restype=directory + uri: https://fake_account_name.file.core.windows.net/fake-file-share-name/Users%2Funknown_user%2Fpromptflow%2Fflow_name%2F__pycache__?restype=directory response: body: string: '' @@ -499,21 +499,21 @@ interactions: content-length: - '0' last-modified: - - Sun, 07 Apr 2024 06:44:06 GMT + - Wed, 17 Apr 2024 09:16:38 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Directory x-ms-file-change-time: - - '2024-04-07T06:44:06.7896105Z' + - '2024-04-17T09:16:38.0952908Z' x-ms-file-creation-time: - - '2024-04-07T06:44:06.7896105Z' + - '2024-04-17T09:16:38.0952908Z' x-ms-file-id: - - '13835170501820940288' + - '13835183283643613184' x-ms-file-last-write-time: - - '2024-04-07T06:44:06.7896105Z' + - '2024-04-17T09:16:38.0952908Z' x-ms-file-parent-id: - - '13835100133076762624' + - '13835077730527346688' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -533,11 +533,11 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-content-length: - '14' x-ms-date: - - Sun, 07 Apr 2024 06:44:06 GMT + - Wed, 17 Apr 2024 09:16:38 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -559,21 +559,21 @@ interactions: content-length: - '0' last-modified: - - Sun, 07 Apr 2024 06:44:07 GMT + - Wed, 17 Apr 2024 09:16:39 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Archive x-ms-file-change-time: - - '2024-04-07T06:44:07.4984958Z' + - '2024-04-17T09:16:39.5080796Z' x-ms-file-creation-time: - - '2024-04-07T06:44:07.4984958Z' + - '2024-04-17T09:16:39.5080796Z' x-ms-file-id: - - '13835082540890718208' + - '13835068934434324480' x-ms-file-last-write-time: - - '2024-04-07T06:44:07.4984958Z' + - '2024-04-17T09:16:39.5080796Z' x-ms-file-parent-id: - - '13835100133076762624' + - '13835077730527346688' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -599,9 +599,9 @@ interactions: Content-Type: - application/octet-stream User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 06:44:07 GMT + - Wed, 17 Apr 2024 09:16:39 GMT x-ms-range: - bytes=0-13 x-ms-version: @@ -619,11 +619,11 @@ interactions: content-md5: - nYmkCopuDuFj82431amzZw== last-modified: - - Sun, 07 Apr 2024 06:44:08 GMT + - Wed, 17 Apr 2024 09:16:40 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-last-write-time: - - '2024-04-07T06:44:08.2332671Z' + - '2024-04-17T09:16:40.9208691Z' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -643,11 +643,11 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-content-length: - - '631' + - '372' x-ms-date: - - Sun, 07 Apr 2024 06:44:08 GMT + - Wed, 17 Apr 2024 09:16:41 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -661,7 +661,7 @@ interactions: x-ms-version: - '2023-11-03' method: PUT - uri: https://fake_account_name.file.core.windows.net/fake-file-share-name/Users/unknown_user/promptflow/flow_name/.promptflow/flow.log + uri: https://fake_account_name.file.core.windows.net/fake-file-share-name/Users/unknown_user/promptflow/flow_name/.promptflow/flow.tools.json response: body: string: '' @@ -669,21 +669,21 @@ interactions: content-length: - '0' last-modified: - - Sun, 07 Apr 2024 06:44:08 GMT + - Wed, 17 Apr 2024 09:16:42 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Archive x-ms-file-change-time: - - '2024-04-07T06:44:08.9292109Z' + - '2024-04-17T09:16:42.3406264Z' x-ms-file-creation-time: - - '2024-04-07T06:44:08.9292109Z' + - '2024-04-17T09:16:42.3406264Z' x-ms-file-id: - - '16141009112988123136' + - '13835139303178502144' x-ms-file-last-write-time: - - '2024-04-07T06:44:08.9292109Z' + - '2024-04-17T09:16:42.3406264Z' x-ms-file-parent-id: - - '13835170501820940288' + - '13835148099271524352' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -692,137 +692,12 @@ interactions: code: 201 message: Created - request: - body: '2024-04-07 03:33:32 +0000 718308 execution.flow INFO Start executing - nodes in thread pool mode. - - 2024-04-07 03:33:32 +0000 718308 execution.flow INFO Start to run 1 - nodes with concurrency level 16. - - 2024-04-07 03:33:32 +0000 718308 execution.flow INFO Executing node - hello_world. node run id: d32eef14-ba6e-44d7-9410-d9c8491fd4fb_hello_world_0 - - 2024-04-07 03:33:32 +0000 718308 execution.flow INFO Node hello_world - completes. - - 2024-04-07 03:33:32 +0000 718308 execution.flow WARNING Error occurred - while force flush tracer provider: ''ProxyTracerProvider'' object has no attribute - ''force_flush'' - - ' - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '631' - Content-MD5: - - 4xvZisyz3aqT9bHeHwyeyA== - Content-Type: - - application/octet-stream - User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) - x-ms-date: - - Sun, 07 Apr 2024 06:44:08 GMT - x-ms-range: - - bytes=0-630 - x-ms-version: - - '2023-11-03' - x-ms-write: - - update - method: PUT - uri: https://fake_account_name.file.core.windows.net/fake-file-share-name/Users/unknown_user/promptflow/flow_name/.promptflow/flow.log?comp=range - response: - body: - string: '' - headers: - content-length: - - '0' - content-md5: - - 4xvZisyz3aqT9bHeHwyeyA== - last-modified: - - Sun, 07 Apr 2024 06:44:09 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-last-write-time: - - '2024-04-07T06:44:09.6370996Z' - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2023-11-03' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) - x-ms-content-length: - - '279' - x-ms-date: - - Sun, 07 Apr 2024 06:44:09 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - Inherit - x-ms-type: - - file - x-ms-version: - - '2023-11-03' - method: PUT - uri: https://fake_account_name.file.core.windows.net/fake-file-share-name/Users/unknown_user/promptflow/flow_name/.promptflow/hello_world.node.log - response: - body: - string: '' - headers: - content-length: - - '0' - last-modified: - - Sun, 07 Apr 2024 06:44:10 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Archive - x-ms-file-change-time: - - '2024-04-07T06:44:10.3469815Z' - x-ms-file-creation-time: - - '2024-04-07T06:44:10.3469815Z' - x-ms-file-id: - - '11529243929723535360' - x-ms-file-last-write-time: - - '2024-04-07T06:44:10.3469815Z' - x-ms-file-parent-id: - - '13835170501820940288' - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2023-11-03' - status: - code: 201 - message: Created -- request: - body: '2024-04-07 03:33:32 +0000 718308 execution.flow INFO Executing - node hello_world. node run id: f075dfe5-21f5-4d1b-84d1-46ac116bd4ab_hello_world_788fcf13-4cb3-4479-b4de-97a3b2ccd690 - - 2024-04-07 03:33:32 +0000 718308 execution.flow INFO Node hello_world - completes. - - ' + body: "{\n \"code\": {\n \"hello_world.py\": {\n \"type\": + \"python\",\n \"inputs\": {\n \"name\": {\n + \ \"type\": [\n \"string\"\n ]\n + \ }\n },\n \"source\": \"hello_world.py\",\n + \ \"function\": \"hello_world\"\n }\n },\n \"package\": + {}\n}" headers: Accept: - application/xml @@ -831,23 +706,23 @@ interactions: Connection: - keep-alive Content-Length: - - '279' + - '372' Content-MD5: - - hFC8nan3DR5KTPtD41njnw== + - B9SwRStI08UJ7Rj8H6ST1A== Content-Type: - application/octet-stream User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 06:44:10 GMT + - Wed, 17 Apr 2024 09:16:42 GMT x-ms-range: - - bytes=0-278 + - bytes=0-371 x-ms-version: - '2023-11-03' x-ms-write: - update method: PUT - uri: https://fake_account_name.file.core.windows.net/fake-file-share-name/Users/unknown_user/promptflow/flow_name/.promptflow/hello_world.node.log?comp=range + uri: https://fake_account_name.file.core.windows.net/fake-file-share-name/Users/unknown_user/promptflow/flow_name/.promptflow/flow.tools.json?comp=range response: body: string: '' @@ -855,13 +730,13 @@ interactions: content-length: - '0' content-md5: - - hFC8nan3DR5KTPtD41njnw== + - B9SwRStI08UJ7Rj8H6ST1A== last-modified: - - Sun, 07 Apr 2024 06:44:11 GMT + - Wed, 17 Apr 2024 09:16:43 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-last-write-time: - - '2024-04-07T06:44:11.0737879Z' + - '2024-04-17T09:16:43.7534160Z' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -881,11 +756,11 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-content-length: - '250' x-ms-date: - - Sun, 07 Apr 2024 06:44:11 GMT + - Wed, 17 Apr 2024 09:16:43 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -907,21 +782,21 @@ interactions: content-length: - '0' last-modified: - - Sun, 07 Apr 2024 06:44:11 GMT + - Wed, 17 Apr 2024 09:16:45 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Archive x-ms-file-change-time: - - '2024-04-07T06:44:11.8135386Z' + - '2024-04-17T09:16:45.1642190Z' x-ms-file-creation-time: - - '2024-04-07T06:44:11.8135386Z' + - '2024-04-17T09:16:45.1642190Z' x-ms-file-id: - - '13835152909634895872' + - '13835104118806413312' x-ms-file-last-write-time: - - '2024-04-07T06:44:11.8135386Z' + - '2024-04-17T09:16:45.1642190Z' x-ms-file-parent-id: - - '13835100133076762624' + - '13835077730527346688' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -948,9 +823,9 @@ interactions: Content-Type: - application/octet-stream User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 06:44:11 GMT + - Wed, 17 Apr 2024 09:16:45 GMT x-ms-range: - bytes=0-249 x-ms-version: @@ -968,11 +843,11 @@ interactions: content-md5: - CT1FTZp5JScB8fq+HjnINw== last-modified: - - Sun, 07 Apr 2024 06:44:12 GMT + - Wed, 17 Apr 2024 09:16:46 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-last-write-time: - - '2024-04-07T06:44:12.5214287Z' + - '2024-04-17T09:16:46.5112920Z' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -992,11 +867,11 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-content-length: - '110' x-ms-date: - - Sun, 07 Apr 2024 06:44:12 GMT + - Wed, 17 Apr 2024 09:16:46 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -1018,21 +893,21 @@ interactions: content-length: - '0' last-modified: - - Sun, 07 Apr 2024 06:44:13 GMT + - Wed, 17 Apr 2024 09:16:47 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Archive x-ms-file-change-time: - - '2024-04-07T06:44:13.2094055Z' + - '2024-04-17T09:16:47.9011810Z' x-ms-file-creation-time: - - '2024-04-07T06:44:13.2094055Z' + - '2024-04-17T09:16:47.9011810Z' x-ms-file-id: - - '13835117725262807040' + - '13835174487550590976' x-ms-file-last-write-time: - - '2024-04-07T06:44:13.2094055Z' + - '2024-04-17T09:16:47.9011810Z' x-ms-file-parent-id: - - '13835100133076762624' + - '13835077730527346688' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -1057,9 +932,9 @@ interactions: Content-Type: - application/octet-stream User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 06:44:13 GMT + - Wed, 17 Apr 2024 09:16:48 GMT x-ms-range: - bytes=0-109 x-ms-version: @@ -1077,11 +952,11 @@ interactions: content-md5: - 3CPKwiOwfwiEOJC0UpjR0Q== last-modified: - - Sun, 07 Apr 2024 06:44:13 GMT + - Wed, 17 Apr 2024 09:16:49 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-last-write-time: - - '2024-04-07T06:44:13.9531380Z' + - '2024-04-17T09:16:49.2860926Z' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -1101,31 +976,31 @@ interactions: Connection: - keep-alive Content-Length: - - '251' + - '258' Content-Type: - application/json User-Agent: - promptflow-azure-sdk/1.8.0.dev0 azsdk-python-azuremachinelearningdesignerserviceclient/unknown - Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + Python/3.11.8 (Windows-10-10.0.22631-SP0) method: POST uri: https://eastus.api.azureml.ms/flow/api/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/Flows response: body: - string: '{"eTag": {}, "studioPortalEndpoint": "https://ml.azure.com/prompts/flow/3e123da1-f9a5-4c91-9234-8d9ffbb39ff5/9d8104b3-f9fa-4fef-a5c1-66bbde09e4c3/details?wsid=/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000", - "flowId": "9d8104b3-f9fa-4fef-a5c1-66bbde09e4c3", "flowName": "flow_display_name", + string: '{"eTag": {}, "studioPortalEndpoint": "https://ml.azure.com/prompts/flow/3e123da1-f9a5-4c91-9234-8d9ffbb39ff5/a3501b97-cde4-447c-a36d-8e09a641d0a9/details?wsid=/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000", + "flowId": "a3501b97-cde4-447c-a36d-8e09a641d0a9", "flowName": "flow_display_name", "description": "test flow description", "tags": {"owner": "sdk-test"}, "flowType": "Default", "experimentId": "00000000-0000-0000-0000-000000000000", "createdDate": - "2024-04-07T06:44:15.9833326Z", "lastModifiedDate": "2024-04-07T06:44:15.9833326Z", + "2024-04-17T09:16:52.218392Z", "lastModifiedDate": "2024-04-17T09:16:52.218392Z", "owner": {"userObjectId": "00000000-0000-0000-0000-000000000000", "userTenantId": - "00000000-0000-0000-0000-000000000000", "userName": "Philip Gao"}, "flowResourceId": - "azureml://locations/eastus/workspaces/00000/flows/9d8104b3-f9fa-4fef-a5c1-66bbde09e4c3", + "00000000-0000-0000-0000-000000000000", "userName": "Xingzhi Zhang"}, "flowResourceId": + "azureml://locations/eastus/workspaces/00000/flows/a3501b97-cde4-447c-a36d-8e09a641d0a9", "isArchived": false, "flowDefinitionFilePath": "Users/unknown_user/promptflow/flow_name/flow.dag.yaml", "enableMultiContainer": false}' headers: connection: - keep-alive content-length: - - '1072' + - '1080' content-type: - application/json; charset=utf-8 strict-transport-security: @@ -1137,7 +1012,7 @@ interactions: x-content-type-options: - nosniff x-request-time: - - '0.292' + - '0.244' status: code: 200 message: OK @@ -1151,9 +1026,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 06:44:16 GMT + - Wed, 17 Apr 2024 09:16:52 GMT x-ms-version: - '2023-11-03' method: HEAD @@ -1167,7 +1042,7 @@ interactions: content-type: - application/octet-stream last-modified: - - Sun, 07 Apr 2024 06:44:12 GMT + - Wed, 17 Apr 2024 09:16:46 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 vary: @@ -1175,15 +1050,15 @@ interactions: x-ms-file-attributes: - Archive x-ms-file-change-time: - - '2024-04-07T06:44:12.5214287Z' + - '2024-04-17T09:16:46.5112920Z' x-ms-file-creation-time: - - '2024-04-07T06:44:11.8135386Z' + - '2024-04-17T09:16:45.1642190Z' x-ms-file-id: - - '13835152909634895872' + - '13835104118806413312' x-ms-file-last-write-time: - - '2024-04-07T06:44:12.5214287Z' + - '2024-04-17T09:16:46.5112920Z' x-ms-file-parent-id: - - '13835100133076762624' + - '13835077730527346688' x-ms-type: - File x-ms-version: @@ -1202,27 +1077,27 @@ interactions: - keep-alive User-Agent: - promptflow-azure-sdk/1.8.0.dev0 azsdk-python-azuremachinelearningdesignerserviceclient/unknown - Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + Python/3.11.8 (Windows-10-10.0.22631-SP0) method: GET - uri: https://eastus.api.azureml.ms/flow/api/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/Flows/9d8104b3-f9fa-4fef-a5c1-66bbde09e4c3?experimentId=00000000-0000-0000-0000-000000000000 + uri: https://eastus.api.azureml.ms/flow/api/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/Flows/a3501b97-cde4-447c-a36d-8e09a641d0a9?experimentId=00000000-0000-0000-0000-000000000000 response: body: - string: '{"timestamp": "2024-04-07T06:44:16.1241604+00:00", "eTag": {}, "studioPortalEndpoint": - "https://ml.azure.com/prompts/flow/3e123da1-f9a5-4c91-9234-8d9ffbb39ff5/9d8104b3-f9fa-4fef-a5c1-66bbde09e4c3/details?wsid=/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000", - "flowId": "9d8104b3-f9fa-4fef-a5c1-66bbde09e4c3", "flowName": "flow_display_name", + string: '{"timestamp": "2024-04-17T09:16:52.3401351+00:00", "eTag": {}, "studioPortalEndpoint": + "https://ml.azure.com/prompts/flow/3e123da1-f9a5-4c91-9234-8d9ffbb39ff5/a3501b97-cde4-447c-a36d-8e09a641d0a9/details?wsid=/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000", + "flowId": "a3501b97-cde4-447c-a36d-8e09a641d0a9", "flowName": "flow_display_name", "description": "test flow description", "tags": {"owner": "sdk-test"}, "flowType": "Default", "experimentId": "00000000-0000-0000-0000-000000000000", "createdDate": - "2024-04-07T06:44:15.9833326Z", "lastModifiedDate": "2024-04-07T06:44:15.9833326Z", + "2024-04-17T09:16:52.218392Z", "lastModifiedDate": "2024-04-17T09:16:52.218392Z", "owner": {"userObjectId": "00000000-0000-0000-0000-000000000000", "userTenantId": - "00000000-0000-0000-0000-000000000000", "userName": "Philip Gao"}, "flowResourceId": - "azureml://locations/eastus/workspaces/00000/flows/9d8104b3-f9fa-4fef-a5c1-66bbde09e4c3", + "00000000-0000-0000-0000-000000000000", "userName": "Xingzhi Zhang"}, "flowResourceId": + "azureml://locations/eastus/workspaces/00000/flows/a3501b97-cde4-447c-a36d-8e09a641d0a9", "isArchived": false, "flowDefinitionFilePath": "Users/unknown_user/promptflow/flow_name/flow.dag.yaml", "enableMultiContainer": false}' headers: connection: - keep-alive content-length: - - '1120' + - '1128' content-type: - application/json; charset=utf-8 strict-transport-security: @@ -1234,7 +1109,7 @@ interactions: x-content-type-options: - nosniff x-request-time: - - '0.178' + - '0.169' status: code: 200 message: OK diff --git a/src/promptflow-recording/recordings/azure/test_flow_operations_TestFlow_test_update_flow.yaml b/src/promptflow-recording/recordings/azure/test_flow_operations_TestFlow_test_update_flow.yaml index 870155871f1..fa16c5f8eab 100644 --- a/src/promptflow-recording/recordings/azure/test_flow_operations_TestFlow_test_update_flow.yaml +++ b/src/promptflow-recording/recordings/azure/test_flow_operations_TestFlow_test_update_flow.yaml @@ -10,7 +10,7 @@ interactions: - keep-alive User-Agent: - promptflow-azure-sdk/1.8.0.dev0 azure-ai-ml/1.15.0 azsdk-python-mgmt-machinelearningservices/0.1.0 - Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + Python/3.11.8 (Windows-10-10.0.22631-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000 response: @@ -39,7 +39,7 @@ interactions: x-content-type-options: - nosniff x-request-time: - - '0.045' + - '0.027' status: code: 200 message: OK @@ -54,7 +54,7 @@ interactions: - keep-alive User-Agent: - promptflow-azure-sdk/1.8.0.dev0 azure-ai-ml/1.15.0 azsdk-python-mgmt-machinelearningservices/0.1.0 - Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + Python/3.11.8 (Windows-10-10.0.22631-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceworkingdirectory response: @@ -91,7 +91,7 @@ interactions: x-content-type-options: - nosniff x-request-time: - - '0.079' + - '0.732' status: code: 200 message: OK @@ -108,7 +108,7 @@ interactions: - '0' User-Agent: - promptflow-azure-sdk/1.8.0.dev0 azure-ai-ml/1.15.0 azsdk-python-mgmt-machinelearningservices/0.1.0 - Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + Python/3.11.8 (Windows-10-10.0.22631-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceworkingdirectory/listSecrets response: @@ -132,7 +132,7 @@ interactions: x-content-type-options: - nosniff x-request-time: - - '0.103' + - '0.098' status: code: 200 message: OK @@ -148,9 +148,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 06:44:39 GMT + - Wed, 17 Apr 2024 09:14:41 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -166,7 +166,7 @@ interactions: response: body: string: "\uFEFFResourceAlreadyExistsThe - specified resource already exists.\nRequestId:b3141a8d-501a-010a-68b7-885736000000\nTime:2024-04-07T06:44:40.4681707Z" + specified resource already exists.\nRequestId:c0d8bad7-801a-0109-45a7-90b652000000\nTime:2024-04-17T09:14:43.0070391Z" headers: content-length: - '228' @@ -193,9 +193,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 06:44:41 GMT + - Wed, 17 Apr 2024 09:14:44 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -211,7 +211,7 @@ interactions: response: body: string: "\uFEFFResourceAlreadyExistsThe - specified resource already exists.\nRequestId:5db3e649-901a-0047-56b7-8866d7000000\nTime:2024-04-07T06:44:42.3806642Z" + specified resource already exists.\nRequestId:8c0d1b8a-b01a-0112-3ea7-908851000000\nTime:2024-04-17T09:14:45.8424923Z" headers: content-length: - '228' @@ -238,9 +238,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 06:44:42 GMT + - Wed, 17 Apr 2024 09:14:45 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -256,7 +256,7 @@ interactions: response: body: string: "\uFEFFResourceAlreadyExistsThe - specified resource already exists.\nRequestId:6fc18777-201a-00a6-09b7-88ba92000000\nTime:2024-04-07T06:44:43.3981770Z" + specified resource already exists.\nRequestId:48ab2bdf-801a-00f2-19a7-90f5c5000000\nTime:2024-04-17T09:14:47.2317578Z" headers: content-length: - '228' @@ -283,9 +283,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 06:44:43 GMT + - Wed, 17 Apr 2024 09:14:47 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -301,7 +301,7 @@ interactions: response: body: string: "\uFEFFResourceAlreadyExistsThe - specified resource already exists.\nRequestId:6e9bf579-601a-00c5-55b7-882769000000\nTime:2024-04-07T06:44:44.1098095Z" + specified resource already exists.\nRequestId:98b7d0a7-e01a-0000-4aa7-900d8c000000\nTime:2024-04-17T09:14:48.8238999Z" headers: content-length: - '228' @@ -326,9 +326,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 06:44:44 GMT + - Wed, 17 Apr 2024 09:14:48 GMT x-ms-version: - '2023-11-03' method: GET @@ -336,7 +336,7 @@ interactions: response: body: string: "\uFEFFResourceNotFoundThe - specified resource does not exist.\nRequestId:43e6d5bf-001a-00fc-67b7-88dc75000000\nTime:2024-04-07T06:44:44.8321573Z" + specified resource does not exist.\nRequestId:7828e3d0-b01a-00a4-7fa7-90042a000000\nTime:2024-04-17T09:14:50.1624794Z" headers: content-length: - '223' @@ -365,9 +365,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 06:44:44 GMT + - Wed, 17 Apr 2024 09:14:50 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -387,21 +387,21 @@ interactions: content-length: - '0' last-modified: - - Sun, 07 Apr 2024 06:44:45 GMT + - Wed, 17 Apr 2024 09:14:51 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Directory x-ms-file-change-time: - - '2024-04-07T06:44:45.5373581Z' + - '2024-04-17T09:14:51.5815464Z' x-ms-file-creation-time: - - '2024-04-07T06:44:45.5373581Z' + - '2024-04-17T09:14:51.5815464Z' x-ms-file-id: - - '13835179297913962496' + - '13835144800736641024' x-ms-file-last-write-time: - - '2024-04-07T06:44:45.5373581Z' + - '2024-04-17T09:14:51.5815464Z' x-ms-file-parent-id: - - '13835071545774440448' + - '16141035093245296640' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -421,9 +421,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 06:44:45 GMT + - Wed, 17 Apr 2024 09:14:51 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -435,7 +435,7 @@ interactions: x-ms-version: - '2023-11-03' method: PUT - uri: https://fake_account_name.file.core.windows.net/fake-file-share-name/Users%2Funknown_user%2Fpromptflow%2Fflow_name%2F__pycache__?restype=directory + uri: https://fake_account_name.file.core.windows.net/fake-file-share-name/Users%2Funknown_user%2Fpromptflow%2Fflow_name%2F.promptflow?restype=directory response: body: string: '' @@ -443,21 +443,21 @@ interactions: content-length: - '0' last-modified: - - Sun, 07 Apr 2024 06:44:46 GMT + - Wed, 17 Apr 2024 09:14:52 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Directory x-ms-file-change-time: - - '2024-04-07T06:44:46.2920417Z' + - '2024-04-17T09:14:52.9485368Z' x-ms-file-creation-time: - - '2024-04-07T06:44:46.2920417Z' + - '2024-04-17T09:14:52.9485368Z' x-ms-file-id: - - '13835091336983740416' + - '13835109616364552192' x-ms-file-last-write-time: - - '2024-04-07T06:44:46.2920417Z' + - '2024-04-17T09:14:52.9485368Z' x-ms-file-parent-id: - - '13835179297913962496' + - '13835144800736641024' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -477,9 +477,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 06:44:46 GMT + - Wed, 17 Apr 2024 09:14:53 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -491,7 +491,7 @@ interactions: x-ms-version: - '2023-11-03' method: PUT - uri: https://fake_account_name.file.core.windows.net/fake-file-share-name/Users%2Funknown_user%2Fpromptflow%2Fflow_name%2F.promptflow?restype=directory + uri: https://fake_account_name.file.core.windows.net/fake-file-share-name/Users%2Funknown_user%2Fpromptflow%2Fflow_name%2F__pycache__?restype=directory response: body: string: '' @@ -499,21 +499,21 @@ interactions: content-length: - '0' last-modified: - - Sun, 07 Apr 2024 06:44:47 GMT + - Wed, 17 Apr 2024 09:14:54 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Directory x-ms-file-change-time: - - '2024-04-07T06:44:47.0128746Z' + - '2024-04-17T09:14:54.3294656Z' x-ms-file-creation-time: - - '2024-04-07T06:44:47.0128746Z' + - '2024-04-17T09:14:54.3294656Z' x-ms-file-id: - - '13835161705727918080' + - '13835179985108729856' x-ms-file-last-write-time: - - '2024-04-07T06:44:47.0128746Z' + - '2024-04-17T09:14:54.3294656Z' x-ms-file-parent-id: - - '13835179297913962496' + - '13835144800736641024' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -533,11 +533,11 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-content-length: - '14' x-ms-date: - - Sun, 07 Apr 2024 06:44:46 GMT + - Wed, 17 Apr 2024 09:14:54 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -559,21 +559,21 @@ interactions: content-length: - '0' last-modified: - - Sun, 07 Apr 2024 06:44:47 GMT + - Wed, 17 Apr 2024 09:14:55 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Archive x-ms-file-change-time: - - '2024-04-07T06:44:47.7615848Z' + - '2024-04-17T09:14:55.6785346Z' x-ms-file-creation-time: - - '2024-04-07T06:44:47.7615848Z' + - '2024-04-17T09:14:55.6785346Z' x-ms-file-id: - - '13835126521355829248' + - '13835092024178507776' x-ms-file-last-write-time: - - '2024-04-07T06:44:47.7615848Z' + - '2024-04-17T09:14:55.6785346Z' x-ms-file-parent-id: - - '13835179297913962496' + - '13835144800736641024' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -599,9 +599,9 @@ interactions: Content-Type: - application/octet-stream User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 06:44:47 GMT + - Wed, 17 Apr 2024 09:14:55 GMT x-ms-range: - bytes=0-13 x-ms-version: @@ -619,11 +619,11 @@ interactions: content-md5: - nYmkCopuDuFj82431amzZw== last-modified: - - Sun, 07 Apr 2024 06:44:48 GMT + - Wed, 17 Apr 2024 09:14:57 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-last-write-time: - - '2024-04-07T06:44:48.5043216Z' + - '2024-04-17T09:14:57.0783808Z' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -643,11 +643,11 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-content-length: - - '631' + - '372' x-ms-date: - - Sun, 07 Apr 2024 06:44:48 GMT + - Wed, 17 Apr 2024 09:14:57 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -661,7 +661,7 @@ interactions: x-ms-version: - '2023-11-03' method: PUT - uri: https://fake_account_name.file.core.windows.net/fake-file-share-name/Users/unknown_user/promptflow/flow_name/.promptflow/flow.log + uri: https://fake_account_name.file.core.windows.net/fake-file-share-name/Users/unknown_user/promptflow/flow_name/.promptflow/flow.tools.json response: body: string: '' @@ -669,21 +669,21 @@ interactions: content-length: - '0' last-modified: - - Sun, 07 Apr 2024 06:44:49 GMT + - Wed, 17 Apr 2024 09:14:58 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Archive x-ms-file-change-time: - - '2024-04-07T06:44:49.2112135Z' + - '2024-04-17T09:14:58.4563223Z' x-ms-file-creation-time: - - '2024-04-07T06:44:49.2112135Z' + - '2024-04-17T09:14:58.4563223Z' x-ms-file-id: - - '13835196890100006912' + - '13835162392922685440' x-ms-file-last-write-time: - - '2024-04-07T06:44:49.2112135Z' + - '2024-04-17T09:14:58.4563223Z' x-ms-file-parent-id: - - '13835161705727918080' + - '13835109616364552192' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -692,137 +692,12 @@ interactions: code: 201 message: Created - request: - body: '2024-04-07 03:33:32 +0000 718308 execution.flow INFO Start executing - nodes in thread pool mode. - - 2024-04-07 03:33:32 +0000 718308 execution.flow INFO Start to run 1 - nodes with concurrency level 16. - - 2024-04-07 03:33:32 +0000 718308 execution.flow INFO Executing node - hello_world. node run id: d32eef14-ba6e-44d7-9410-d9c8491fd4fb_hello_world_0 - - 2024-04-07 03:33:32 +0000 718308 execution.flow INFO Node hello_world - completes. - - 2024-04-07 03:33:32 +0000 718308 execution.flow WARNING Error occurred - while force flush tracer provider: ''ProxyTracerProvider'' object has no attribute - ''force_flush'' - - ' - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '631' - Content-MD5: - - 4xvZisyz3aqT9bHeHwyeyA== - Content-Type: - - application/octet-stream - User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) - x-ms-date: - - Sun, 07 Apr 2024 06:44:49 GMT - x-ms-range: - - bytes=0-630 - x-ms-version: - - '2023-11-03' - x-ms-write: - - update - method: PUT - uri: https://fake_account_name.file.core.windows.net/fake-file-share-name/Users/unknown_user/promptflow/flow_name/.promptflow/flow.log?comp=range - response: - body: - string: '' - headers: - content-length: - - '0' - content-md5: - - 4xvZisyz3aqT9bHeHwyeyA== - last-modified: - - Sun, 07 Apr 2024 06:44:49 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-last-write-time: - - '2024-04-07T06:44:49.9420014Z' - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2023-11-03' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) - x-ms-content-length: - - '279' - x-ms-date: - - Sun, 07 Apr 2024 06:44:49 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - Inherit - x-ms-type: - - file - x-ms-version: - - '2023-11-03' - method: PUT - uri: https://fake_account_name.file.core.windows.net/fake-file-share-name/Users/unknown_user/promptflow/flow_name/.promptflow/hello_world.node.log - response: - body: - string: '' - headers: - content-length: - - '0' - last-modified: - - Sun, 07 Apr 2024 06:44:50 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Archive - x-ms-file-change-time: - - '2024-04-07T06:44:50.6827469Z' - x-ms-file-creation-time: - - '2024-04-07T06:44:50.6827469Z' - x-ms-file-id: - - '13835059451146534912' - x-ms-file-last-write-time: - - '2024-04-07T06:44:50.6827469Z' - x-ms-file-parent-id: - - '13835161705727918080' - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2023-11-03' - status: - code: 201 - message: Created -- request: - body: '2024-04-07 03:33:32 +0000 718308 execution.flow INFO Executing - node hello_world. node run id: f075dfe5-21f5-4d1b-84d1-46ac116bd4ab_hello_world_788fcf13-4cb3-4479-b4de-97a3b2ccd690 - - 2024-04-07 03:33:32 +0000 718308 execution.flow INFO Node hello_world - completes. - - ' + body: "{\n \"code\": {\n \"hello_world.py\": {\n \"type\": + \"python\",\n \"inputs\": {\n \"name\": {\n + \ \"type\": [\n \"string\"\n ]\n + \ }\n },\n \"source\": \"hello_world.py\",\n + \ \"function\": \"hello_world\"\n }\n },\n \"package\": + {}\n}" headers: Accept: - application/xml @@ -831,23 +706,23 @@ interactions: Connection: - keep-alive Content-Length: - - '279' + - '372' Content-MD5: - - hFC8nan3DR5KTPtD41njnw== + - B9SwRStI08UJ7Rj8H6ST1A== Content-Type: - application/octet-stream User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 06:44:50 GMT + - Wed, 17 Apr 2024 09:14:58 GMT x-ms-range: - - bytes=0-278 + - bytes=0-371 x-ms-version: - '2023-11-03' x-ms-write: - update method: PUT - uri: https://fake_account_name.file.core.windows.net/fake-file-share-name/Users/unknown_user/promptflow/flow_name/.promptflow/hello_world.node.log?comp=range + uri: https://fake_account_name.file.core.windows.net/fake-file-share-name/Users/unknown_user/promptflow/flow_name/.promptflow/flow.tools.json?comp=range response: body: string: '' @@ -855,13 +730,13 @@ interactions: content-length: - '0' content-md5: - - hFC8nan3DR5KTPtD41njnw== + - B9SwRStI08UJ7Rj8H6ST1A== last-modified: - - Sun, 07 Apr 2024 06:44:51 GMT + - Wed, 17 Apr 2024 09:14:59 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-last-write-time: - - '2024-04-07T06:44:51.3856576Z' + - '2024-04-17T09:14:59.8571639Z' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -881,11 +756,11 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-content-length: - '250' x-ms-date: - - Sun, 07 Apr 2024 06:44:51 GMT + - Wed, 17 Apr 2024 09:14:59 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -907,21 +782,21 @@ interactions: content-length: - '0' last-modified: - - Sun, 07 Apr 2024 06:44:52 GMT + - Wed, 17 Apr 2024 09:15:01 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Archive x-ms-file-change-time: - - '2024-04-07T06:44:52.0766213Z' + - '2024-04-17T09:15:01.2410806Z' x-ms-file-creation-time: - - '2024-04-07T06:44:52.0766213Z' + - '2024-04-17T09:15:01.2410806Z' x-ms-file-id: - - '13835129819890712576' + - '13835127208550596608' x-ms-file-last-write-time: - - '2024-04-07T06:44:52.0766213Z' + - '2024-04-17T09:15:01.2410806Z' x-ms-file-parent-id: - - '13835179297913962496' + - '13835144800736641024' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -948,9 +823,9 @@ interactions: Content-Type: - application/octet-stream User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 06:44:52 GMT + - Wed, 17 Apr 2024 09:15:01 GMT x-ms-range: - bytes=0-249 x-ms-version: @@ -968,11 +843,11 @@ interactions: content-md5: - CT1FTZp5JScB8fq+HjnINw== last-modified: - - Sun, 07 Apr 2024 06:44:52 GMT + - Wed, 17 Apr 2024 09:15:02 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-last-write-time: - - '2024-04-07T06:44:52.8243348Z' + - '2024-04-17T09:15:02.6488910Z' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -992,11 +867,11 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-content-length: - '110' x-ms-date: - - Sun, 07 Apr 2024 06:44:52 GMT + - Wed, 17 Apr 2024 09:15:02 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -1018,21 +893,21 @@ interactions: content-length: - '0' last-modified: - - Sun, 07 Apr 2024 06:44:53 GMT + - Wed, 17 Apr 2024 09:15:04 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Archive x-ms-file-change-time: - - '2024-04-07T06:44:53.5859883Z' + - '2024-04-17T09:15:04.0507286Z' x-ms-file-creation-time: - - '2024-04-07T06:44:53.5859883Z' + - '2024-04-17T09:15:04.0507286Z' x-ms-file-id: - - '13835094635518623744' + - '13835197577294774272' x-ms-file-last-write-time: - - '2024-04-07T06:44:53.5859883Z' + - '2024-04-17T09:15:04.0507286Z' x-ms-file-parent-id: - - '13835179297913962496' + - '13835144800736641024' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -1057,9 +932,9 @@ interactions: Content-Type: - application/octet-stream User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 06:44:53 GMT + - Wed, 17 Apr 2024 09:15:04 GMT x-ms-range: - bytes=0-109 x-ms-version: @@ -1077,11 +952,11 @@ interactions: content-md5: - 3CPKwiOwfwiEOJC0UpjR0Q== last-modified: - - Sun, 07 Apr 2024 06:44:54 GMT + - Wed, 17 Apr 2024 09:15:05 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-last-write-time: - - '2024-04-07T06:44:54.3137885Z' + - '2024-04-17T09:15:05.4655090Z' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -1101,31 +976,31 @@ interactions: Connection: - keep-alive Content-Length: - - '251' + - '258' Content-Type: - application/json User-Agent: - promptflow-azure-sdk/1.8.0.dev0 azsdk-python-azuremachinelearningdesignerserviceclient/unknown - Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + Python/3.11.8 (Windows-10-10.0.22631-SP0) method: POST uri: https://eastus.api.azureml.ms/flow/api/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/Flows response: body: - string: '{"eTag": {}, "studioPortalEndpoint": "https://ml.azure.com/prompts/flow/3e123da1-f9a5-4c91-9234-8d9ffbb39ff5/f459d73c-74e8-4be7-9bab-47994a7ba9a8/details?wsid=/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000", - "flowId": "f459d73c-74e8-4be7-9bab-47994a7ba9a8", "flowName": "flow_display_name", + string: '{"eTag": {}, "studioPortalEndpoint": "https://ml.azure.com/prompts/flow/3e123da1-f9a5-4c91-9234-8d9ffbb39ff5/e7dfa049-c635-4120-8a40-a9bcd3f58ca2/details?wsid=/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000", + "flowId": "e7dfa049-c635-4120-8a40-a9bcd3f58ca2", "flowName": "flow_display_name", "description": "test flow description", "tags": {"owner": "sdk-test"}, "flowType": "Default", "experimentId": "00000000-0000-0000-0000-000000000000", "createdDate": - "2024-04-07T06:44:56.7664158Z", "lastModifiedDate": "2024-04-07T06:44:56.7664333Z", + "2024-04-17T09:15:08.3278317Z", "lastModifiedDate": "2024-04-17T09:15:08.327832Z", "owner": {"userObjectId": "00000000-0000-0000-0000-000000000000", "userTenantId": - "00000000-0000-0000-0000-000000000000", "userName": "Philip Gao"}, "flowResourceId": - "azureml://locations/eastus/workspaces/00000/flows/f459d73c-74e8-4be7-9bab-47994a7ba9a8", + "00000000-0000-0000-0000-000000000000", "userName": "Xingzhi Zhang"}, "flowResourceId": + "azureml://locations/eastus/workspaces/00000/flows/e7dfa049-c635-4120-8a40-a9bcd3f58ca2", "isArchived": false, "flowDefinitionFilePath": "Users/unknown_user/promptflow/flow_name/flow.dag.yaml", "enableMultiContainer": false}' headers: connection: - keep-alive content-length: - - '1072' + - '1081' content-type: - application/json; charset=utf-8 strict-transport-security: @@ -1137,7 +1012,7 @@ interactions: x-content-type-options: - nosniff x-request-time: - - '0.791' + - '0.322' status: code: 200 message: OK @@ -1151,9 +1026,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 06:44:57 GMT + - Wed, 17 Apr 2024 09:15:08 GMT x-ms-version: - '2023-11-03' method: HEAD @@ -1167,7 +1042,7 @@ interactions: content-type: - application/octet-stream last-modified: - - Sun, 07 Apr 2024 06:44:52 GMT + - Wed, 17 Apr 2024 09:15:02 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 vary: @@ -1175,15 +1050,15 @@ interactions: x-ms-file-attributes: - Archive x-ms-file-change-time: - - '2024-04-07T06:44:52.8243348Z' + - '2024-04-17T09:15:02.6488910Z' x-ms-file-creation-time: - - '2024-04-07T06:44:52.0766213Z' + - '2024-04-17T09:15:01.2410806Z' x-ms-file-id: - - '13835129819890712576' + - '13835127208550596608' x-ms-file-last-write-time: - - '2024-04-07T06:44:52.8243348Z' + - '2024-04-17T09:15:02.6488910Z' x-ms-file-parent-id: - - '13835179297913962496' + - '13835144800736641024' x-ms-type: - File x-ms-version: @@ -1207,9 +1082,9 @@ interactions: - application/json User-Agent: - promptflow-azure-sdk/1.8.0.dev0 azsdk-python-azuremachinelearningdesignerserviceclient/unknown - Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + Python/3.11.8 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://eastus.api.azureml.ms/flow/api/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/Flows/f459d73c-74e8-4be7-9bab-47994a7ba9a8?experimentId=00000000-0000-0000-0000-000000000000 + uri: https://eastus.api.azureml.ms/flow/api/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/Flows/e7dfa049-c635-4120-8a40-a9bcd3f58ca2?experimentId=00000000-0000-0000-0000-000000000000 response: body: string: '' @@ -1223,7 +1098,7 @@ interactions: x-content-type-options: - nosniff x-request-time: - - '0.314' + - '0.274' status: code: 200 message: OK @@ -1238,27 +1113,27 @@ interactions: - keep-alive User-Agent: - promptflow-azure-sdk/1.8.0.dev0 azsdk-python-azuremachinelearningdesignerserviceclient/unknown - Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + Python/3.11.8 (Windows-10-10.0.22631-SP0) method: GET - uri: https://eastus.api.azureml.ms/flow/api/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/Flows/f459d73c-74e8-4be7-9bab-47994a7ba9a8?experimentId=00000000-0000-0000-0000-000000000000 + uri: https://eastus.api.azureml.ms/flow/api/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/Flows/e7dfa049-c635-4120-8a40-a9bcd3f58ca2?experimentId=00000000-0000-0000-0000-000000000000 response: body: - string: '{"timestamp": "2024-04-07T06:45:00.2916894+00:00", "eTag": {}, "studioPortalEndpoint": - "https://ml.azure.com/prompts/flow/3e123da1-f9a5-4c91-9234-8d9ffbb39ff5/f459d73c-74e8-4be7-9bab-47994a7ba9a8/details?wsid=/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000", - "flowId": "f459d73c-74e8-4be7-9bab-47994a7ba9a8", "flowName": "SDK test flow", + string: '{"timestamp": "2024-04-17T09:15:12.996435+00:00", "eTag": {}, "studioPortalEndpoint": + "https://ml.azure.com/prompts/flow/3e123da1-f9a5-4c91-9234-8d9ffbb39ff5/e7dfa049-c635-4120-8a40-a9bcd3f58ca2/details?wsid=/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000", + "flowId": "e7dfa049-c635-4120-8a40-a9bcd3f58ca2", "flowName": "SDK test flow", "description": "SDK test flow description", "tags": {"owner": "sdk-test", "key1": "value1"}, "flowType": "Default", "experimentId": "00000000-0000-0000-0000-000000000000", - "createdDate": "2024-04-07T06:44:56.7664158Z", "lastModifiedDate": "2024-04-07T06:45:00.2852733Z", + "createdDate": "2024-04-17T09:15:08.3278317Z", "lastModifiedDate": "2024-04-17T09:15:12.991197Z", "owner": {"userObjectId": "00000000-0000-0000-0000-000000000000", "userTenantId": - "00000000-0000-0000-0000-000000000000", "userName": "Philip Gao"}, "flowResourceId": - "azureml://locations/eastus/workspaces/00000/flows/f459d73c-74e8-4be7-9bab-47994a7ba9a8", + "00000000-0000-0000-0000-000000000000", "userName": "Xingzhi Zhang"}, "flowResourceId": + "azureml://locations/eastus/workspaces/00000/flows/e7dfa049-c635-4120-8a40-a9bcd3f58ca2", "isArchived": false, "flowDefinitionFilePath": "Users/unknown_user/promptflow/flow_name/flow.dag.yaml", "enableMultiContainer": false}' headers: connection: - keep-alive content-length: - - '1117' + - '1125' content-type: - application/json; charset=utf-8 strict-transport-security: @@ -1270,7 +1145,7 @@ interactions: x-content-type-options: - nosniff x-request-time: - - '0.166' + - '0.156' status: code: 200 message: OK @@ -1290,7 +1165,7 @@ interactions: - application/json User-Agent: - promptflow-azure-sdk/1.8.0.dev0 azsdk-python-azuremachinelearningdesignerserviceclient/unknown - Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + Python/3.11.8 (Windows-10-10.0.22631-SP0) method: PUT uri: https://eastus.api.azureml.ms/flow/api/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/Flows/fake_flow_name?experimentId=00000000-0000-0000-0000-000000000000 response: @@ -1303,14 +1178,14 @@ interactions: {"type": "Microsoft.MachineLearning.Common.Core.Exceptions.BaseException", "message": "Flow with id fake_flow_name not found", "stackTrace": " at Microsoft.MachineLearning.Studio.MiddleTier.Services.PromptFlow.FlowsManagement.GetFlowTableEntity(String experimentId, String flowId, Boolean checkDefinition) in /mnt/vss/_work/1/s/src/azureml-api/src/Designer/src/MiddleTier/MiddleTier/Services/PromptFlow/FlowsManagement.Flow.cs:line - 443\n at Microsoft.MachineLearning.Studio.MiddleTier.Services.PromptFlow.FlowsManagement.GetExistingFlowTableEntityAndVerifyOwnership(String + 444\n at Microsoft.MachineLearning.Studio.MiddleTier.Services.PromptFlow.FlowsManagement.GetExistingFlowTableEntityAndVerifyOwnership(String experimentId, String flowId, Boolean checkDefinition) in /mnt/vss/_work/1/s/src/azureml-api/src/Designer/src/MiddleTier/MiddleTier/Services/PromptFlow/FlowsManagement.Flow.cs:line - 421\n at Microsoft.MachineLearning.Studio.MiddleTier.Services.PromptFlow.FlowsManagement.UpdateFlow(String + 422\n at Microsoft.MachineLearning.Studio.MiddleTier.Services.PromptFlow.FlowsManagement.UpdateFlow(String experimentId, String flowId, UpdateFlowRequest updateFlowRequest) in /mnt/vss/_work/1/s/src/azureml-api/src/Designer/src/MiddleTier/MiddleTier/Services/PromptFlow/FlowsManagement.Flow.cs:line - 174\n at Microsoft.MachineLearning.Studio.MiddleTier.Controllers.PromptFlow.FlowsController.UpdateFlow(String + 175\n at Microsoft.MachineLearning.Studio.MiddleTier.Controllers.PromptFlow.FlowsController.UpdateFlow(String subscriptionId, String resourceGroupName, String workspaceName, String flowId, String experimentId, UpdateFlowRequest updateFlowRequest) in /mnt/vss/_work/1/s/src/azureml-api/src/Designer/src/MiddleTier/MiddleTier/Controllers/PromptFlow/FlowsController.cs:line - 104\n at lambda_method343011(Closure , Object )\n at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableResultExecutor.Execute(IActionResultTypeMapper + 104\n at lambda_method2125(Closure , Object )\n at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Logged|12_1(ControllerActionInvoker invoker)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker @@ -1332,7 +1207,7 @@ interactions: context) in /mnt/vss/_work/1/s/src/azureml-api/src/Common/WebApi/ActivityExtensions/JwtUserInformationExtraction.cs:line 102\n at Microsoft.MachineLearning.Studio.MiddleTier.Middleware.WebApiClientHandler.Invoke(HttpContext context) in /mnt/vss/_work/1/s/src/azureml-api/src/Designer/src/MiddleTier/MiddleTier/Middleware/WebApiClientHandler.cs:line - 435\n at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext + 436\n at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\n at Microsoft.MachineLearning.Studio.MiddleTierCommon.Middlerware.ApiTelemetryHandler.Invoke(HttpContext context) in /mnt/vss/_work/1/s/src/azureml-api/src/Designer/src/MiddleTier/MiddleTierCommon/Middleware/ApiTelemetryHandler.cs:line 83\n at Microsoft.MachineLearning.Studio.MiddleTierCommon.Middlerware.ExternalApiTelemetryHandler.Invoke(HttpContext @@ -1357,15 +1232,15 @@ interactions: "CodesHierarchy": ["UserError", "NotFound", "FlowNotFound"], "Code": "FlowNotFound"}, "Message": "Flow with id fake_flow_name not found", "MessageParameters": {"flowId": "fake_flow_name"}, "Target": null, "RetryAfterSeconds": null}}, "errorResponse": - null}, "additionalInfo": null}, "correlation": {"operation": "bfc284380ea16e741380f73b29741ec3", - "request": "affdf8a0613d5769"}, "environment": "eastus", "location": "eastus", - "time": "2024-04-07T06:45:04.6153137+00:00", "componentName": "PromptFlowService", + null}, "additionalInfo": null}, "correlation": {"operation": "7a2f63d26bb5960b3563cbb34698cbe7", + "request": "495537cd607ab118"}, "environment": "eastus", "location": "eastus", + "time": "2024-04-17T09:15:18.9588393+00:00", "componentName": "PromptFlowService", "statusCode": 404}' headers: connection: - keep-alive content-length: - - '7730' + - '7728' content-type: - application/json strict-transport-security: @@ -1377,7 +1252,7 @@ interactions: x-content-type-options: - nosniff x-request-time: - - '0.245' + - '0.261' status: code: 404 message: Flow with id fake_flow_name not found diff --git a/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_run_bulk_with_remote_flow.yaml b/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_run_bulk_with_remote_flow.yaml index f45a5aa5f71..f4c78005637 100644 --- a/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_run_bulk_with_remote_flow.yaml +++ b/src/promptflow-recording/recordings/azure/test_run_operations_TestFlowRun_test_run_bulk_with_remote_flow.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive User-Agent: - - promptflow-azure-sdk/1.8.0.dev0 azure-ai-ml/1.15.0 azsdk-python-mgmt-machinelearningservices/0.1.0 - Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - promptflow-azure-sdk/0.1.0b1 azure-ai-ml/1.15.0 azsdk-python-mgmt-machinelearningservices/0.1.0 + Python/3.11.8 (Windows-10-10.0.22631-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000 response: @@ -39,7 +39,7 @@ interactions: x-content-type-options: - nosniff x-request-time: - - '0.026' + - '0.029' status: code: 200 message: OK @@ -53,8 +53,8 @@ interactions: Connection: - keep-alive User-Agent: - - promptflow-azure-sdk/1.8.0.dev0 azure-ai-ml/1.15.0 azsdk-python-mgmt-machinelearningservices/0.1.0 - Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - promptflow-azure-sdk/0.1.0b1 azure-ai-ml/1.15.0 azsdk-python-mgmt-machinelearningservices/0.1.0 + Python/3.11.8 (Windows-10-10.0.22631-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceworkingdirectory response: @@ -91,7 +91,7 @@ interactions: x-content-type-options: - nosniff x-request-time: - - '0.728' + - '0.098' status: code: 200 message: OK @@ -107,8 +107,8 @@ interactions: Content-Length: - '0' User-Agent: - - promptflow-azure-sdk/1.8.0.dev0 azure-ai-ml/1.15.0 azsdk-python-mgmt-machinelearningservices/0.1.0 - Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - promptflow-azure-sdk/0.1.0b1 azure-ai-ml/1.15.0 azsdk-python-mgmt-machinelearningservices/0.1.0 + Python/3.11.8 (Windows-10-10.0.22631-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceworkingdirectory/listSecrets response: @@ -132,7 +132,7 @@ interactions: x-content-type-options: - nosniff x-request-time: - - '0.211' + - '0.108' status: code: 200 message: OK @@ -148,9 +148,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 08:50:24 GMT + - Wed, 17 Apr 2024 10:12:26 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -166,7 +166,7 @@ interactions: response: body: string: "\uFEFFResourceAlreadyExistsThe - specified resource already exists.\nRequestId:bc2fc032-301a-0085-0ac8-882051000000\nTime:2024-04-07T08:50:25.8766448Z" + specified resource already exists.\nRequestId:8c817558-001a-0008-1caf-901783000000\nTime:2024-04-17T10:12:28.0620199Z" headers: content-length: - '228' @@ -193,9 +193,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 08:50:26 GMT + - Wed, 17 Apr 2024 10:12:29 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -211,7 +211,7 @@ interactions: response: body: string: "\uFEFFResourceAlreadyExistsThe - specified resource already exists.\nRequestId:470ffc2f-b01a-0032-14c8-880dfb000000\nTime:2024-04-07T08:50:27.8117094Z" + specified resource already exists.\nRequestId:47b72a16-101a-0059-34af-908a0f000000\nTime:2024-04-17T10:12:30.4614907Z" headers: content-length: - '228' @@ -238,9 +238,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 08:50:27 GMT + - Wed, 17 Apr 2024 10:12:30 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -256,7 +256,7 @@ interactions: response: body: string: "\uFEFFResourceAlreadyExistsThe - specified resource already exists.\nRequestId:d04f81f8-d01a-000b-34c8-88f6e7000000\nTime:2024-04-07T08:50:28.5224116Z" + specified resource already exists.\nRequestId:36faa221-701a-00bb-18af-90b72e000000\nTime:2024-04-17T10:12:31.5159611Z" headers: content-length: - '228' @@ -283,9 +283,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 08:50:28 GMT + - Wed, 17 Apr 2024 10:12:31 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -301,7 +301,7 @@ interactions: response: body: string: "\uFEFFResourceAlreadyExistsThe - specified resource already exists.\nRequestId:ac1d2011-601a-00a7-68c8-88e54e000000\nTime:2024-04-07T08:50:29.2473200Z" + specified resource already exists.\nRequestId:12b24c17-401a-0019-1baf-908d37000000\nTime:2024-04-17T10:12:32.5730168Z" headers: content-length: - '228' @@ -326,9 +326,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 08:50:29 GMT + - Wed, 17 Apr 2024 10:12:32 GMT x-ms-version: - '2023-11-03' method: GET @@ -336,7 +336,7 @@ interactions: response: body: string: "\uFEFFResourceNotFoundThe - specified resource does not exist.\nRequestId:b9cc1e5d-a01a-005c-75c8-8858d4000000\nTime:2024-04-07T08:50:29.9719845Z" + specified resource does not exist.\nRequestId:1ced2c08-901a-0105-32af-90215a000000\nTime:2024-04-17T10:12:33.6731538Z" headers: content-length: - '223' @@ -365,9 +365,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 08:50:29 GMT + - Wed, 17 Apr 2024 10:12:33 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -387,21 +387,21 @@ interactions: content-length: - '0' last-modified: - - Sun, 07 Apr 2024 08:50:30 GMT + - Wed, 17 Apr 2024 10:12:34 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Directory x-ms-file-change-time: - - '2024-04-07T08:50:30.6649514Z' + - '2024-04-17T10:12:34.7705466Z' x-ms-file-creation-time: - - '2024-04-07T08:50:30.6649514Z' + - '2024-04-17T10:12:34.7705466Z' x-ms-file-id: - - '13835189193518612480' + - '13835084327597113344' x-ms-file-last-write-time: - - '2024-04-07T08:50:30.6649514Z' + - '2024-04-17T10:12:34.7705466Z' x-ms-file-parent-id: - - '13835071545774440448' + - '10088082484072808448' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -421,9 +421,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 08:50:30 GMT + - Wed, 17 Apr 2024 10:12:34 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -435,7 +435,7 @@ interactions: x-ms-version: - '2023-11-03' method: PUT - uri: https://fake_account_name.file.core.windows.net/fake-file-share-name/Users%2Funknown_user%2Fpromptflow%2Fflow_name%2F__pycache__?restype=directory + uri: https://fake_account_name.file.core.windows.net/fake-file-share-name/Users%2Funknown_user%2Fpromptflow%2Fflow_name%2F.promptflow?restype=directory response: body: string: '' @@ -443,21 +443,21 @@ interactions: content-length: - '0' last-modified: - - Sun, 07 Apr 2024 08:50:31 GMT + - Wed, 17 Apr 2024 10:12:35 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Directory x-ms-file-change-time: - - '2024-04-07T08:50:31.3917535Z' + - '2024-04-17T10:12:35.8408422Z' x-ms-file-creation-time: - - '2024-04-07T08:50:31.3917535Z' + - '2024-04-17T10:12:35.8408422Z' x-ms-file-id: - - '13835074844309323776' + - '13835154696341291008' x-ms-file-last-write-time: - - '2024-04-07T08:50:31.3917535Z' + - '2024-04-17T10:12:35.8408422Z' x-ms-file-parent-id: - - '13835189193518612480' + - '13835084327597113344' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -477,9 +477,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 08:50:31 GMT + - Wed, 17 Apr 2024 10:12:35 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -491,7 +491,7 @@ interactions: x-ms-version: - '2023-11-03' method: PUT - uri: https://fake_account_name.file.core.windows.net/fake-file-share-name/Users%2Funknown_user%2Fpromptflow%2Fflow_name%2F.promptflow?restype=directory + uri: https://fake_account_name.file.core.windows.net/fake-file-share-name/Users%2Funknown_user%2Fpromptflow%2Fflow_name%2F__pycache__?restype=directory response: body: string: '' @@ -499,21 +499,21 @@ interactions: content-length: - '0' last-modified: - - Sun, 07 Apr 2024 08:50:32 GMT + - Wed, 17 Apr 2024 10:12:36 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Directory x-ms-file-change-time: - - '2024-04-07T08:50:32.1046156Z' + - '2024-04-17T10:12:36.8991889Z' x-ms-file-creation-time: - - '2024-04-07T08:50:32.1046156Z' + - '2024-04-17T10:12:36.8991889Z' x-ms-file-id: - - '13835145213053501440' + - '11529236920336908288' x-ms-file-last-write-time: - - '2024-04-07T08:50:32.1046156Z' + - '2024-04-17T10:12:36.8991889Z' x-ms-file-parent-id: - - '13835189193518612480' + - '13835084327597113344' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -533,11 +533,11 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-content-length: - '14' x-ms-date: - - Sun, 07 Apr 2024 08:50:32 GMT + - Wed, 17 Apr 2024 10:12:36 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -559,21 +559,21 @@ interactions: content-length: - '0' last-modified: - - Sun, 07 Apr 2024 08:50:32 GMT + - Wed, 17 Apr 2024 10:12:37 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Archive x-ms-file-change-time: - - '2024-04-07T08:50:32.8274350Z' + - '2024-04-17T10:12:37.9515620Z' x-ms-file-creation-time: - - '2024-04-07T08:50:32.8274350Z' + - '2024-04-17T10:12:37.9515620Z' x-ms-file-id: - - '13835110028681412608' + - '13835119511969202176' x-ms-file-last-write-time: - - '2024-04-07T08:50:32.8274350Z' + - '2024-04-17T10:12:37.9515620Z' x-ms-file-parent-id: - - '13835189193518612480' + - '13835084327597113344' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -599,9 +599,9 @@ interactions: Content-Type: - application/octet-stream User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 08:50:32 GMT + - Wed, 17 Apr 2024 10:12:38 GMT x-ms-range: - bytes=0-13 x-ms-version: @@ -619,11 +619,11 @@ interactions: content-md5: - nYmkCopuDuFj82431amzZw== last-modified: - - Sun, 07 Apr 2024 08:50:33 GMT + - Wed, 17 Apr 2024 10:12:39 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-last-write-time: - - '2024-04-07T08:50:33.5203853Z' + - '2024-04-17T10:12:39.0059268Z' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -643,11 +643,11 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-content-length: - - '631' + - '372' x-ms-date: - - Sun, 07 Apr 2024 08:50:33 GMT + - Wed, 17 Apr 2024 10:12:39 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -661,7 +661,7 @@ interactions: x-ms-version: - '2023-11-03' method: PUT - uri: https://fake_account_name.file.core.windows.net/fake-file-share-name/Users/unknown_user/promptflow/flow_name/.promptflow/flow.log + uri: https://fake_account_name.file.core.windows.net/fake-file-share-name/Users/unknown_user/promptflow/flow_name/.promptflow/flow.tools.json response: body: string: '' @@ -669,21 +669,21 @@ interactions: content-length: - '0' last-modified: - - Sun, 07 Apr 2024 08:50:34 GMT + - Wed, 17 Apr 2024 10:12:40 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Archive x-ms-file-change-time: - - '2024-04-07T08:50:34.2442003Z' + - '2024-04-17T10:12:40.0602916Z' x-ms-file-creation-time: - - '2024-04-07T08:50:34.2442003Z' + - '2024-04-17T10:12:40.0602916Z' x-ms-file-id: - - '13835180397425590272' + - '16141008700671262720' x-ms-file-last-write-time: - - '2024-04-07T08:50:34.2442003Z' + - '2024-04-17T10:12:40.0602916Z' x-ms-file-parent-id: - - '13835145213053501440' + - '13835154696341291008' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -692,137 +692,12 @@ interactions: code: 201 message: Created - request: - body: '2024-04-07 03:33:32 +0000 718308 execution.flow INFO Start executing - nodes in thread pool mode. - - 2024-04-07 03:33:32 +0000 718308 execution.flow INFO Start to run 1 - nodes with concurrency level 16. - - 2024-04-07 03:33:32 +0000 718308 execution.flow INFO Executing node - hello_world. node run id: d32eef14-ba6e-44d7-9410-d9c8491fd4fb_hello_world_0 - - 2024-04-07 03:33:32 +0000 718308 execution.flow INFO Node hello_world - completes. - - 2024-04-07 03:33:32 +0000 718308 execution.flow WARNING Error occurred - while force flush tracer provider: ''ProxyTracerProvider'' object has no attribute - ''force_flush'' - - ' - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '631' - Content-MD5: - - 4xvZisyz3aqT9bHeHwyeyA== - Content-Type: - - application/octet-stream - User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) - x-ms-date: - - Sun, 07 Apr 2024 08:50:34 GMT - x-ms-range: - - bytes=0-630 - x-ms-version: - - '2023-11-03' - x-ms-write: - - update - method: PUT - uri: https://fake_account_name.file.core.windows.net/fake-file-share-name/Users/unknown_user/promptflow/flow_name/.promptflow/flow.log?comp=range - response: - body: - string: '' - headers: - content-length: - - '0' - content-md5: - - 4xvZisyz3aqT9bHeHwyeyA== - last-modified: - - Sun, 07 Apr 2024 08:50:34 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-last-write-time: - - '2024-04-07T08:50:34.9610448Z' - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2023-11-03' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/xml - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) - x-ms-content-length: - - '279' - x-ms-date: - - Sun, 07 Apr 2024 08:50:34 GMT - x-ms-file-attributes: - - none - x-ms-file-creation-time: - - now - x-ms-file-last-write-time: - - now - x-ms-file-permission: - - Inherit - x-ms-type: - - file - x-ms-version: - - '2023-11-03' - method: PUT - uri: https://fake_account_name.file.core.windows.net/fake-file-share-name/Users/unknown_user/promptflow/flow_name/.promptflow/hello_world.node.log - response: - body: - string: '' - headers: - content-length: - - '0' - last-modified: - - Sun, 07 Apr 2024 08:50:35 GMT - server: - - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 - x-ms-file-attributes: - - Archive - x-ms-file-change-time: - - '2024-04-07T08:50:35.7037755Z' - x-ms-file-creation-time: - - '2024-04-07T08:50:35.7037755Z' - x-ms-file-id: - - '11529274716049113088' - x-ms-file-last-write-time: - - '2024-04-07T08:50:35.7037755Z' - x-ms-file-parent-id: - - '13835145213053501440' - x-ms-request-server-encrypted: - - 'true' - x-ms-version: - - '2023-11-03' - status: - code: 201 - message: Created -- request: - body: '2024-04-07 03:33:32 +0000 718308 execution.flow INFO Executing - node hello_world. node run id: f075dfe5-21f5-4d1b-84d1-46ac116bd4ab_hello_world_788fcf13-4cb3-4479-b4de-97a3b2ccd690 - - 2024-04-07 03:33:32 +0000 718308 execution.flow INFO Node hello_world - completes. - - ' + body: "{\n \"code\": {\n \"hello_world.py\": {\n \"type\": + \"python\",\n \"inputs\": {\n \"name\": {\n + \ \"type\": [\n \"string\"\n ]\n + \ }\n },\n \"source\": \"hello_world.py\",\n + \ \"function\": \"hello_world\"\n }\n },\n \"package\": + {}\n}" headers: Accept: - application/xml @@ -831,23 +706,23 @@ interactions: Connection: - keep-alive Content-Length: - - '279' + - '372' Content-MD5: - - hFC8nan3DR5KTPtD41njnw== + - B9SwRStI08UJ7Rj8H6ST1A== Content-Type: - application/octet-stream User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 08:50:35 GMT + - Wed, 17 Apr 2024 10:12:40 GMT x-ms-range: - - bytes=0-278 + - bytes=0-371 x-ms-version: - '2023-11-03' x-ms-write: - update method: PUT - uri: https://fake_account_name.file.core.windows.net/fake-file-share-name/Users/unknown_user/promptflow/flow_name/.promptflow/hello_world.node.log?comp=range + uri: https://fake_account_name.file.core.windows.net/fake-file-share-name/Users/unknown_user/promptflow/flow_name/.promptflow/flow.tools.json?comp=range response: body: string: '' @@ -855,13 +730,13 @@ interactions: content-length: - '0' content-md5: - - hFC8nan3DR5KTPtD41njnw== + - B9SwRStI08UJ7Rj8H6ST1A== last-modified: - - Sun, 07 Apr 2024 08:50:36 GMT + - Wed, 17 Apr 2024 10:12:41 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-last-write-time: - - '2024-04-07T08:50:36.4176342Z' + - '2024-04-17T10:12:41.2510565Z' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -881,11 +756,11 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-content-length: - '250' x-ms-date: - - Sun, 07 Apr 2024 08:50:36 GMT + - Wed, 17 Apr 2024 10:12:41 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -907,21 +782,21 @@ interactions: content-length: - '0' last-modified: - - Sun, 07 Apr 2024 08:50:37 GMT + - Wed, 17 Apr 2024 10:12:42 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Archive x-ms-file-change-time: - - '2024-04-07T08:50:37.1653432Z' + - '2024-04-17T10:12:42.3253354Z' x-ms-file-creation-time: - - '2024-04-07T08:50:37.1653432Z' + - '2024-04-17T10:12:42.3253354Z' x-ms-file-id: - - '13835092436495368192' + - '10376414371776561152' x-ms-file-last-write-time: - - '2024-04-07T08:50:37.1653432Z' + - '2024-04-17T10:12:42.3253354Z' x-ms-file-parent-id: - - '13835189193518612480' + - '13835084327597113344' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -948,9 +823,9 @@ interactions: Content-Type: - application/octet-stream User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 08:50:37 GMT + - Wed, 17 Apr 2024 10:12:42 GMT x-ms-range: - bytes=0-249 x-ms-version: @@ -968,11 +843,11 @@ interactions: content-md5: - CT1FTZp5JScB8fq+HjnINw== last-modified: - - Sun, 07 Apr 2024 08:50:37 GMT + - Wed, 17 Apr 2024 10:12:43 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-last-write-time: - - '2024-04-07T08:50:37.9508866Z' + - '2024-04-17T10:12:43.3896552Z' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -992,11 +867,11 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-content-length: - '110' x-ms-date: - - Sun, 07 Apr 2024 08:50:37 GMT + - Wed, 17 Apr 2024 10:12:43 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -1018,21 +893,21 @@ interactions: content-length: - '0' last-modified: - - Sun, 07 Apr 2024 08:50:38 GMT + - Wed, 17 Apr 2024 10:12:44 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Archive x-ms-file-change-time: - - '2024-04-07T08:50:38.6926221Z' + - '2024-04-17T10:12:44.4529803Z' x-ms-file-creation-time: - - '2024-04-07T08:50:38.6926221Z' + - '2024-04-17T10:12:44.4529803Z' x-ms-file-id: - - '11529228536560746496' + - '13835189880713379840' x-ms-file-last-write-time: - - '2024-04-07T08:50:38.6926221Z' + - '2024-04-17T10:12:44.4529803Z' x-ms-file-parent-id: - - '13835189193518612480' + - '13835084327597113344' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -1057,9 +932,9 @@ interactions: Content-Type: - application/octet-stream User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 08:50:38 GMT + - Wed, 17 Apr 2024 10:12:44 GMT x-ms-range: - bytes=0-109 x-ms-version: @@ -1077,11 +952,11 @@ interactions: content-md5: - 3CPKwiOwfwiEOJC0UpjR0Q== last-modified: - - Sun, 07 Apr 2024 08:50:39 GMT + - Wed, 17 Apr 2024 10:12:45 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-last-write-time: - - '2024-04-07T08:50:39.4423228Z' + - '2024-04-17T10:12:45.5332316Z' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -1101,31 +976,31 @@ interactions: Connection: - keep-alive Content-Length: - - '251' + - '282' Content-Type: - application/json User-Agent: - - promptflow-azure-sdk/1.8.0.dev0 azsdk-python-azuremachinelearningdesignerserviceclient/unknown - Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - promptflow-azure-sdk/0.1.0b1 azsdk-python-azuremachinelearningdesignerserviceclient/unknown + Python/3.11.8 (Windows-10-10.0.22631-SP0) method: POST uri: https://eastus.api.azureml.ms/flow/api/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/Flows response: body: - string: '{"eTag": {}, "studioPortalEndpoint": "https://ml.azure.com/prompts/flow/3e123da1-f9a5-4c91-9234-8d9ffbb39ff5/3295d11f-225c-42d8-9e99-10aac794991b/details?wsid=/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000", - "flowId": "3295d11f-225c-42d8-9e99-10aac794991b", "flowName": "flow_display_name", + string: '{"eTag": {}, "studioPortalEndpoint": "https://ml.azure.com/prompts/flow/3e123da1-f9a5-4c91-9234-8d9ffbb39ff5/8f768c0e-02f1-4275-98af-b94916325306/details?wsid=/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000", + "flowId": "8f768c0e-02f1-4275-98af-b94916325306", "flowName": "flow_display_name", "description": "test flow description", "tags": {"owner": "sdk-test"}, "flowType": "Default", "experimentId": "00000000-0000-0000-0000-000000000000", "createdDate": - "2024-04-07T08:50:41.4291478Z", "lastModifiedDate": "2024-04-07T08:50:41.429166Z", + "2024-04-17T10:12:47.836358Z", "lastModifiedDate": "2024-04-17T10:12:47.8363837Z", "owner": {"userObjectId": "00000000-0000-0000-0000-000000000000", "userTenantId": - "00000000-0000-0000-0000-000000000000", "userName": "Philip Gao"}, "flowResourceId": - "azureml://locations/eastus/workspaces/00000/flows/3295d11f-225c-42d8-9e99-10aac794991b", + "00000000-0000-0000-0000-000000000000", "userName": "4cbd0e2e-aae4-4099-b4ba-94d3a4910587"}, + "flowResourceId": "azureml://locations/eastus/workspaces/00000/flows/8f768c0e-02f1-4275-98af-b94916325306", "isArchived": false, "flowDefinitionFilePath": "Users/unknown_user/promptflow/flow_name/flow.dag.yaml", "enableMultiContainer": false}' headers: connection: - keep-alive content-length: - - '1071' + - '1128' content-type: - application/json; charset=utf-8 strict-transport-security: @@ -1137,7 +1012,7 @@ interactions: x-content-type-options: - nosniff x-request-time: - - '0.646' + - '0.494' status: code: 200 message: OK @@ -1151,9 +1026,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-storage-file-share/12.15.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-file-share/12.15.0 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 08:50:41 GMT + - Wed, 17 Apr 2024 10:12:48 GMT x-ms-version: - '2023-11-03' method: HEAD @@ -1167,7 +1042,7 @@ interactions: content-type: - application/octet-stream last-modified: - - Sun, 07 Apr 2024 08:50:37 GMT + - Wed, 17 Apr 2024 10:12:43 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 vary: @@ -1175,15 +1050,15 @@ interactions: x-ms-file-attributes: - Archive x-ms-file-change-time: - - '2024-04-07T08:50:37.9508866Z' + - '2024-04-17T10:12:43.3896552Z' x-ms-file-creation-time: - - '2024-04-07T08:50:37.1653432Z' + - '2024-04-17T10:12:42.3253354Z' x-ms-file-id: - - '13835092436495368192' + - '10376414371776561152' x-ms-file-last-write-time: - - '2024-04-07T08:50:37.9508866Z' + - '2024-04-17T10:12:43.3896552Z' x-ms-file-parent-id: - - '13835189193518612480' + - '13835084327597113344' x-ms-type: - File x-ms-version: @@ -1201,8 +1076,8 @@ interactions: Connection: - keep-alive User-Agent: - - promptflow-azure-sdk/1.8.0.dev0 azure-ai-ml/1.15.0 azsdk-python-mgmt-machinelearningservices/0.1.0 - Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - promptflow-azure-sdk/0.1.0b1 azure-ai-ml/1.15.0 azsdk-python-mgmt-machinelearningservices/0.1.0 + Python/3.11.8 (Windows-10-10.0.22631-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores?count=30&isDefault=true&orderByAsc=false response: @@ -1239,7 +1114,7 @@ interactions: x-content-type-options: - nosniff x-request-time: - - '0.045' + - '0.057' status: code: 200 message: OK @@ -1253,8 +1128,8 @@ interactions: Connection: - keep-alive User-Agent: - - promptflow-azure-sdk/1.8.0.dev0 azure-ai-ml/1.15.0 azsdk-python-mgmt-machinelearningservices/0.1.0 - Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - promptflow-azure-sdk/0.1.0b1 azure-ai-ml/1.15.0 azsdk-python-mgmt-machinelearningservices/0.1.0 + Python/3.11.8 (Windows-10-10.0.22631-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore response: @@ -1291,7 +1166,7 @@ interactions: x-content-type-options: - nosniff x-request-time: - - '0.086' + - '0.069' status: code: 200 message: OK @@ -1307,8 +1182,8 @@ interactions: Content-Length: - '0' User-Agent: - - promptflow-azure-sdk/1.8.0.dev0 azure-ai-ml/1.15.0 azsdk-python-mgmt-machinelearningservices/0.1.0 - Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - promptflow-azure-sdk/0.1.0b1 azure-ai-ml/1.15.0 azsdk-python-mgmt-machinelearningservices/0.1.0 + Python/3.11.8 (Windows-10-10.0.22631-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets response: @@ -1332,7 +1207,7 @@ interactions: x-content-type-options: - nosniff x-request-time: - - '0.109' + - '0.098' status: code: 200 message: OK @@ -1346,9 +1221,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-storage-blob/12.19.1 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-blob/12.19.1 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 08:50:45 GMT + - Wed, 17 Apr 2024 10:12:52 GMT x-ms-version: - '2023-11-03' method: HEAD @@ -1396,9 +1271,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-storage-blob/12.19.1 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - azsdk-python-storage-blob/12.19.1 Python/3.11.8 (Windows-10-10.0.22631-SP0) x-ms-date: - - Sun, 07 Apr 2024 08:50:45 GMT + - Wed, 17 Apr 2024 10:12:53 GMT x-ms-version: - '2023-11-03' method: HEAD @@ -1424,9 +1299,10 @@ interactions: body: '{"flowDefinitionResourceId": "azureml://locations/fake-region/workspaces/00000/flows/00000000-0000-0000-0000-000000000000/", "runId": "name", "runDisplayName": "name", "sessionSetupMode": "SystemWait", "flowLineageId": "0000000000000000000000000000000000000000000000000000000000000000", - "runtimeName": "fake-runtime-name", "batchDataInput": {"dataUri": "azureml://datastores/workspaceblobstore/paths/LocalUpload/000000000000000000000000000000000000/simple_hello_world.jsonl"}, - "inputsMapping": {"name": "${data.name}"}, "connections": {}, "environmentVariables": - {}, "runDisplayNameGenerationType": "UserProvidedMacro"}' + "runDisplayNameGenerationType": "UserProvidedMacro", "batchDataInput": {"dataUri": + "azureml://datastores/workspaceblobstore/paths/LocalUpload/000000000000000000000000000000000000/simple_hello_world.jsonl"}, + "inputsMapping": {"name": "${data.name}"}, "environmentVariables": {}, "connections": + {}, "runtimeName": "fake-runtime-name"}' headers: Accept: - application/json @@ -1435,12 +1311,12 @@ interactions: Connection: - keep-alive Content-Length: - - '675' + - '674' Content-Type: - application/json User-Agent: - - promptflow-azure-sdk/1.8.0.dev0 azsdk-python-azuremachinelearningdesignerserviceclient/unknown - Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - promptflow-azure-sdk/0.1.0b1 azsdk-python-azuremachinelearningdesignerserviceclient/unknown + Python/3.11.8 (Windows-10-10.0.22631-SP0) method: POST uri: https://eastus.api.azureml.ms/flow/api/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/BulkRuns/submit response: @@ -1458,7 +1334,7 @@ interactions: x-content-type-options: - nosniff x-request-time: - - '9.458' + - '3.956' status: code: 200 message: OK @@ -1472,334 +1348,35 @@ interactions: Connection: - keep-alive User-Agent: - - promptflow-azure-sdk/1.8.0.dev0 azsdk-python-azuremachinelearningdesignerserviceclient/unknown - Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) + - promptflow-azure-sdk/0.1.0b1 azsdk-python-azuremachinelearningdesignerserviceclient/unknown + Python/3.11.8 (Windows-10-10.0.22631-SP0) method: GET uri: https://eastus.api.azureml.ms/flow/api/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/BulkRuns/name response: body: string: '{"flowGraph": {"nodes": [{"name": "hello_world", "type": "python", "source": {"type": "code", "path": "hello_world.py"}, "inputs": {"name": "${inputs.name}"}, - "tool": "hello_world.py", "reduce": false}], "tools": [{"name": "Azure OpenAI - GPT-4 Turbo with Vision", "type": "custom_llm", "inputs": {"connection": {"type": - ["AzureOpenAIConnection"], "allow_manual_entry": false, "is_multi_select": - false, "input_type": "default", "ui_hints": {"index": 0}}, "deployment_name": - {"type": ["string"], "enabled_by": "connection", "dynamic_list": {"func_path": - "promptflow.tools.aoai_gpt4v.list_deployment_names", "func_kwargs": [{"name": - "connection", "reference": "${inputs.connection}", "type": ["AzureOpenAIConnection"]}]}, - "allow_manual_entry": true, "is_multi_select": false, "input_type": "default", - "ui_hints": {"index": 1}}, "frequency_penalty": {"type": ["double"], "default": - 0, "allow_manual_entry": false, "is_multi_select": false, "input_type": "default", - "ui_hints": {"index": 7}}, "max_tokens": {"type": ["int"], "default": 512, - "allow_manual_entry": false, "is_multi_select": false, "input_type": "default", - "ui_hints": {"index": 4}}, "presence_penalty": {"type": ["double"], "default": - 0, "allow_manual_entry": false, "is_multi_select": false, "input_type": "default", - "ui_hints": {"index": 6}}, "seed": {"type": ["int"], "default": "", "allow_manual_entry": - false, "is_multi_select": false, "input_type": "default", "ui_hints": {"index": - 8}}, "stop": {"type": ["list"], "default": "", "allow_manual_entry": false, - "is_multi_select": false, "input_type": "default", "ui_hints": {"index": 5}}, - "temperature": {"type": ["double"], "default": 1, "allow_manual_entry": false, - "is_multi_select": false, "input_type": "default", "ui_hints": {"index": 2}}, - "top_p": {"type": ["double"], "default": 1, "allow_manual_entry": false, "is_multi_select": - false, "input_type": "default", "ui_hints": {"index": 3}}}, "description": - "Use Azure OpenAI GPT-4 Turbo with Vision to leverage AOAI vision ability.", - "module": "promptflow.tools.aoai_gpt4v", "class_name": "AzureOpenAI", "function": - "chat", "icon": {"dark": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA2ElEQVR4nJXSzW3CQBAF4DUSTjk+Al1AD0ikESslpBIEheRALhEpgAYSWV8OGUublf/yLuP3PPNmdndS+gdwXZrYDmh7fGE/W+wXbaYd8IYm4rxJPnZ0boI3wZcdJxs/n+AwV7DFK7aFyfQdYIMLPvES8YJNf5yp4jMeeEYdWh38gXOR35YGHe5xabvQdsHv6PLi8qV6gycc8YH3iMfQu6Lh4ASr+F5Hh3XwVWnQYzUkVlX1nccplAb1SN6Y/sfgmlK64VS8wimldIv/0yj2QLkHizG0iWP4AVAfQ34DVQONAAAAAElFTkSuQmCC", - "light": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAx0lEQVR4nJWSwQ2CQBBFX0jAcjgqXUgPJNiIsQQrIVCIFy8GC6ABDcGDX7Mus9n1Xz7zZ+fPsLPwH4bUg0dD2wMPcbR48Uxq4AKU4iSTDwZ1LhWXipN/B3V0J6hjBTvgLHZNonewBXrgDpzEvXSIjN0BE3AACmmF4kl5F6tNzcCoLpW0SvGovFvsb4oZ2AANcAOu4ka6axCcINN3rg654sww+CYsPD0OwjcozFNh/Qcd78tqVbCIW+n+Fky472Bh/Q6SYb1EEy8tDzd+9IsVPAAAAABJRU5ErkJggg=="}, - "is_builtin": true, "package": "promptflow-tools", "package_version": "1.4.0rc3", - "default_prompt": "# system:\nAs an AI assistant, your task involves interpreting - images and responding to questions about the image.\nRemember to provide accurate - answers based on the information present in the image.\n\n# user:\nCan you - tell me what the image depicts?\n![image]({{image_input}})\n", "enable_kwargs": - false, "tool_state": "preview"}, {"name": "Content Safety (Text Analyze)", - "type": "python", "inputs": {"connection": {"type": ["AzureContentSafetyConnection"], - "allow_manual_entry": false, "is_multi_select": false, "input_type": "default"}, - "hate_category": {"type": ["string"], "default": "medium_sensitivity", "enum": - ["disable", "low_sensitivity", "medium_sensitivity", "high_sensitivity"], - "allow_manual_entry": false, "is_multi_select": false, "input_type": "default"}, - "self_harm_category": {"type": ["string"], "default": "medium_sensitivity", - "enum": ["disable", "low_sensitivity", "medium_sensitivity", "high_sensitivity"], - "allow_manual_entry": false, "is_multi_select": false, "input_type": "default"}, - "sexual_category": {"type": ["string"], "default": "medium_sensitivity", "enum": - ["disable", "low_sensitivity", "medium_sensitivity", "high_sensitivity"], - "allow_manual_entry": false, "is_multi_select": false, "input_type": "default"}, - "text": {"type": ["string"], "allow_manual_entry": false, "is_multi_select": - false, "input_type": "default"}, "violence_category": {"type": ["string"], - "default": "medium_sensitivity", "enum": ["disable", "low_sensitivity", "medium_sensitivity", - "high_sensitivity"], "allow_manual_entry": false, "is_multi_select": false, - "input_type": "default"}}, "description": "Use Azure Content Safety to detect - harmful content.", "module": "promptflow.tools.azure_content_safety", "function": - "analyze_text", "is_builtin": true, "package": "promptflow-tools", "package_version": - "1.4.0rc3", "enable_kwargs": false, "deprecated_tools": ["content_safety_text.tools.content_safety_text_tool.analyze_text"], - "tool_state": "stable"}, {"name": "Embedding", "type": "python", "inputs": - {"connection": {"type": ["AzureOpenAIConnection", "OpenAIConnection"], "allow_manual_entry": - false, "is_multi_select": false, "input_type": "default"}, "deployment_name": - {"type": ["string"], "enabled_by": "connection", "enabled_by_type": ["AzureOpenAIConnection"], - "model_list": ["text-embedding-ada-002", "text-search-ada-doc-001", "text-search-ada-query-001"], - "capabilities": {"completion": false, "chat_completion": false, "embeddings": - true}, "allow_manual_entry": false, "is_multi_select": false, "input_type": - "default"}, "input": {"type": ["string"], "allow_manual_entry": false, "is_multi_select": - false, "input_type": "default"}, "model": {"type": ["string"], "enum": ["text-embedding-ada-002", - "text-search-ada-doc-001", "text-search-ada-query-001"], "enabled_by": "connection", - "enabled_by_type": ["OpenAIConnection"], "allow_manual_entry": true, "is_multi_select": - false, "input_type": "default"}}, "description": "Use Open AI''s embedding - model to create an embedding vector representing the input text.", "module": - "promptflow.tools.embedding", "function": "embedding", "is_builtin": true, - "package": "promptflow-tools", "package_version": "1.4.0rc3", "enable_kwargs": - false, "tool_state": "stable"}, {"name": "Open Model LLM", "type": "custom_llm", - "inputs": {"api": {"type": ["string"], "enum": ["chat", "completion"], "allow_manual_entry": - false, "is_multi_select": false, "input_type": "default", "ui_hints": {"index": - 2}}, "deployment_name": {"type": ["string"], "default": "", "dynamic_list": - {"func_path": "promptflow.tools.open_model_llm.list_deployment_names", "func_kwargs": - [{"name": "endpoint", "optional": true, "reference": "${inputs.endpoint}", - "type": ["string"]}]}, "allow_manual_entry": true, "is_multi_select": false, - "input_type": "default", "ui_hints": {"index": 1}}, "endpoint_name": {"type": - ["string"], "dynamic_list": {"func_path": "promptflow.tools.open_model_llm.list_endpoint_names"}, - "allow_manual_entry": true, "is_multi_select": false, "input_type": "default", - "ui_hints": {"index": 0}}, "max_new_tokens": {"type": ["int"], "default": - 500, "allow_manual_entry": false, "is_multi_select": false, "input_type": - "default", "ui_hints": {"index": 4}}, "model_kwargs": {"type": ["object"], - "default": "{}", "allow_manual_entry": false, "is_multi_select": false, "input_type": - "default", "advanced": true, "ui_hints": {"index": 6}}, "temperature": {"type": - ["double"], "default": 1.0, "allow_manual_entry": false, "is_multi_select": - false, "input_type": "default", "ui_hints": {"index": 3}}, "top_p": {"type": - ["double"], "default": 1.0, "allow_manual_entry": false, "is_multi_select": - false, "input_type": "default", "advanced": true, "ui_hints": {"index": 5}}}, - "description": "Use an open model from the Azure Model catalog, deployed to - an AzureML Online Endpoint for LLM Chat or Completion API calls.", "module": - "promptflow.tools.open_model_llm", "class_name": "OpenModelLLM", "function": - "call", "icon": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACgElEQVR4nGWSz2vcVRTFP/e9NzOZ1KDGohASslLEH6VLV0ak4l/QpeDCrfQPcNGliODKnVm4EBdBsIjQIlhciKW0ycKFVCSNbYnjdDLtmPnmO/nO9917XcxMkjYX3uLx7nnn3HOuMK2Nix4fP78ZdrYXVkLVWjf3l3B1B+HpcjzGFtmqa6cePz7/x0dnn1n5qhj3iBJPYREIURAJuCtpY8PjReDbrf9WG7H1fuefwQU9qKztTcMJT+PNnEFvjGVDBDlSsH6p/9MLzy6+NxwVqI8RAg4IPmWedMckdLYP6O6UpIaQfvyyXG012+e79/ZfHukoS1ISMT2hGTB1RkUmNgQ5QZ0w+a2VWDq73MbdEWmfnnv6UWe7oNzPaLapl5CwuLTXK9WUGBuCjqekzhP+z52ZXOrKMD3OJg0Hh778aiOuvpnYvp05d6GJO4iAO4QAe/eV36/X5LFRV4Zmn+AdkqlL8Vjp3oVioOz+WTPzzYEgsN+fgPLYyJVheSbPPVl2ikeGZRjtG52/8rHuaV9VOlpP2OtKyVndcRVCSqOhsvxa4vW359i6OuKdD+aP8Q4SYPdOzS/flGjt1JUSaMqZ5nwa1Y8qWb/Ud/eZZkHisYezEM0m+fcelDr8F1SqW2LNK6r1jXQwyLzy1hxvrLXZulry7ocL+FS6G4QIu3fG/Px1gdYeW7LIgXU2P/115TOA5G7e3Rmj2aS/m7l5pThiZzrCcE/d1XHzbln373nw7y6veeoUm5KCNKT/IPPwbiY1hYd/l5MIT65BMFt87sU4v9D7/JMflr44uV6hGh1+L4RCkg6z5iK2tAhNLeLsNGwYA4fDYnC/drvuuFxe86NV/x+Ut27g0FvykgAAAABJRU5ErkJggg==", - "is_builtin": true, "package": "promptflow-tools", "package_version": "1.4.0rc3", - "enable_kwargs": false, "tool_state": "stable"}, {"name": "OpenAI GPT-4V", - "type": "custom_llm", "inputs": {"connection": {"type": ["OpenAIConnection"], - "allow_manual_entry": false, "is_multi_select": false, "input_type": "default", - "ui_hints": {"index": 0}}, "frequency_penalty": {"type": ["double"], "default": - 0, "allow_manual_entry": false, "is_multi_select": false, "input_type": "default", - "ui_hints": {"index": 7}}, "max_tokens": {"type": ["int"], "default": 512, - "allow_manual_entry": false, "is_multi_select": false, "input_type": "default", - "ui_hints": {"index": 4}}, "model": {"type": ["string"], "enum": ["gpt-4-vision-preview"], - "allow_manual_entry": true, "is_multi_select": false, "input_type": "default", - "ui_hints": {"index": 1}}, "presence_penalty": {"type": ["double"], "default": - 0, "allow_manual_entry": false, "is_multi_select": false, "input_type": "default", - "ui_hints": {"index": 6}}, "seed": {"type": ["int"], "default": "", "allow_manual_entry": - false, "is_multi_select": false, "input_type": "default", "ui_hints": {"index": - 8}}, "stop": {"type": ["list"], "default": "", "allow_manual_entry": false, - "is_multi_select": false, "input_type": "default", "ui_hints": {"index": 5}}, - "temperature": {"type": ["double"], "default": 1, "allow_manual_entry": false, - "is_multi_select": false, "input_type": "default", "ui_hints": {"index": 2}}, - "top_p": {"type": ["double"], "default": 1, "allow_manual_entry": false, "is_multi_select": - false, "input_type": "default", "ui_hints": {"index": 3}}}, "description": - "Use OpenAI GPT-4V to leverage vision ability.", "module": "promptflow.tools.openai_gpt4v", - "class_name": "OpenAI", "function": "chat", "icon": {"dark": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA2ElEQVR4nJXSzW3CQBAF4DUSTjk+Al1AD0ikESslpBIEheRALhEpgAYSWV8OGUublf/yLuP3PPNmdndS+gdwXZrYDmh7fGE/W+wXbaYd8IYm4rxJPnZ0boI3wZcdJxs/n+AwV7DFK7aFyfQdYIMLPvES8YJNf5yp4jMeeEYdWh38gXOR35YGHe5xabvQdsHv6PLi8qV6gycc8YH3iMfQu6Lh4ASr+F5Hh3XwVWnQYzUkVlX1nccplAb1SN6Y/sfgmlK64VS8wimldIv/0yj2QLkHizG0iWP4AVAfQ34DVQONAAAAAElFTkSuQmCC", - "light": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAx0lEQVR4nJWSwQ2CQBBFX0jAcjgqXUgPJNiIsQQrIVCIFy8GC6ABDcGDX7Mus9n1Xz7zZ+fPsLPwH4bUg0dD2wMPcbR48Uxq4AKU4iSTDwZ1LhWXipN/B3V0J6hjBTvgLHZNonewBXrgDpzEvXSIjN0BE3AACmmF4kl5F6tNzcCoLpW0SvGovFvsb4oZ2AANcAOu4ka6axCcINN3rg654sww+CYsPD0OwjcozFNh/Qcd78tqVbCIW+n+Fky472Bh/Q6SYb1EEy8tDzd+9IsVPAAAAABJRU5ErkJggg=="}, - "is_builtin": true, "package": "promptflow-tools", "package_version": "1.4.0rc3", - "default_prompt": "# system:\nAs an AI assistant, your task involves interpreting - images and responding to questions about the image.\nRemember to provide accurate - answers based on the information present in the image.\n\n# user:\nCan you - tell me what the image depicts?\n![image]({{image_input}})\n", "enable_kwargs": - false, "tool_state": "preview"}, {"name": "Serp API", "type": "python", "inputs": - {"connection": {"type": ["SerpConnection"], "allow_manual_entry": false, "is_multi_select": - false, "input_type": "default"}, "engine": {"type": ["string"], "default": - "google", "enum": ["google", "bing"], "allow_manual_entry": false, "is_multi_select": - false, "input_type": "default"}, "location": {"type": ["string"], "default": - "", "allow_manual_entry": false, "is_multi_select": false, "input_type": "default"}, - "num": {"type": ["int"], "default": "10", "allow_manual_entry": false, "is_multi_select": - false, "input_type": "default"}, "query": {"type": ["string"], "allow_manual_entry": - false, "is_multi_select": false, "input_type": "default"}, "safe": {"type": - ["string"], "default": "off", "enum": ["active", "off"], "allow_manual_entry": - false, "is_multi_select": false, "input_type": "default"}}, "description": - "Use Serp API to obtain search results from a specific search engine.", "module": - "promptflow.tools.serpapi", "class_name": "SerpAPI", "function": "search", - "is_builtin": true, "package": "promptflow-tools", "package_version": "1.4.0rc3", - "enable_kwargs": false, "tool_state": "stable"}, {"name": "Index Lookup", - "type": "python", "inputs": {"acs_content_field": {"type": ["string"], "enabled_by": - "index_type", "enabled_by_value": ["Azure AI Search"], "dynamic_list": {"func_path": - "promptflow_vectordb.tool.common_index_lookup_utils.list_acs_index_fields", - "func_kwargs": [{"name": "acs_connection", "optional": false, "reference": - "${inputs.acs_index_connection}", "type": ["CognitiveSearchConnection"]}, - {"name": "acs_index_name", "optional": false, "reference": "${inputs.acs_index_name}", - "type": ["string"]}, {"default": "Edm.String", "name": "field_data_type", - "optional": false, "type": ["string"]}]}, "allow_manual_entry": false, "is_multi_select": - false, "input_type": "uionly_hidden"}, "acs_embedding_field": {"type": ["string"], - "enabled_by": "index_type", "enabled_by_value": ["Azure AI Search"], "dynamic_list": - {"func_path": "promptflow_vectordb.tool.common_index_lookup_utils.list_acs_index_fields", - "func_kwargs": [{"name": "acs_connection", "optional": false, "reference": - "${inputs.acs_index_connection}", "type": ["CognitiveSearchConnection"]}, - {"name": "acs_index_name", "optional": false, "reference": "${inputs.acs_index_name}", - "type": ["string"]}, {"default": "Collection(Edm.Single)", "name": "field_data_type", - "optional": false, "type": ["string"]}]}, "allow_manual_entry": false, "is_multi_select": - false, "input_type": "uionly_hidden"}, "acs_index_connection": {"type": ["CognitiveSearchConnection"], - "enabled_by": "index_type", "enabled_by_value": ["Azure AI Search"], "allow_manual_entry": - false, "is_multi_select": false, "input_type": "uionly_hidden"}, "acs_index_name": - {"type": ["string"], "enabled_by": "index_type", "enabled_by_value": ["Azure - AI Search"], "dynamic_list": {"func_path": "promptflow_vectordb.tool.common_index_lookup_utils.list_acs_indices", - "func_kwargs": [{"name": "acs_connection", "optional": false, "reference": - "${inputs.acs_index_connection}", "type": ["CognitiveSearchConnection"]}]}, - "allow_manual_entry": false, "is_multi_select": false, "input_type": "uionly_hidden"}, - "acs_metadata_field": {"type": ["string"], "enabled_by": "index_type", "enabled_by_value": - ["Azure AI Search"], "dynamic_list": {"func_path": "promptflow_vectordb.tool.common_index_lookup_utils.list_acs_index_fields", - "func_kwargs": [{"name": "acs_connection", "optional": false, "reference": - "${inputs.acs_index_connection}", "type": ["CognitiveSearchConnection"]}, - {"name": "acs_index_name", "optional": false, "reference": "${inputs.acs_index_name}", - "type": ["string"]}, {"default": "Edm.String", "name": "field_data_type", - "optional": false, "type": ["string"]}]}, "allow_manual_entry": false, "is_multi_select": - false, "input_type": "uionly_hidden"}, "aoai_embedding_connection": {"type": - ["AzureOpenAIConnection"], "enabled_by": "embedding_type", "enabled_by_value": - ["Azure OpenAI"], "allow_manual_entry": false, "is_multi_select": false, "input_type": - "uionly_hidden"}, "embedding_deployment": {"type": ["string"], "enabled_by": - "embedding_type", "enabled_by_value": ["Azure OpenAI"], "dynamic_list": {"func_path": - "promptflow_vectordb.tool.common_index_lookup_utils.list_aoai_embedding_deployments", - "func_kwargs": [{"name": "aoai_connection", "optional": false, "reference": - "${inputs.aoai_embedding_connection}", "type": ["AzurOpenAIConnection"]}]}, - "allow_manual_entry": false, "is_multi_select": false, "input_type": "uionly_hidden"}, - "embedding_model": {"type": ["string"], "enabled_by": "embedding_type", "enabled_by_value": - ["OpenAI", "Hugging Face"], "dynamic_list": {"func_path": "promptflow_vectordb.tool.common_index_lookup_utils.list_embedding_models", - "func_kwargs": [{"name": "embedding_type", "optional": false, "reference": - "${inputs.embedding_type}", "type": ["string"]}]}, "allow_manual_entry": false, - "is_multi_select": false, "input_type": "uionly_hidden"}, "embedding_type": - {"type": ["string"], "enabled_by": "index_type", "enabled_by_value": ["Azure - AI Search", "FAISS", "Pinecone"], "dynamic_list": {"func_path": "promptflow_vectordb.tool.common_index_lookup_utils.list_available_embedding_types", - "func_kwargs": [{"name": "index_type", "optional": false, "reference": "${inputs.index_type}", - "type": ["string"]}]}, "allow_manual_entry": false, "is_multi_select": false, - "input_type": "uionly_hidden"}, "faiss_index_path": {"type": ["string"], "enabled_by": - "index_type", "enabled_by_value": ["FAISS"], "allow_manual_entry": false, - "is_multi_select": false, "input_type": "uionly_hidden"}, "index_type": {"type": - ["string"], "dynamic_list": {"func_path": "promptflow_vectordb.tool.common_index_lookup_utils.list_available_index_types"}, - "allow_manual_entry": false, "is_multi_select": false, "input_type": "uionly_hidden"}, - "mlindex_asset_id": {"type": ["string"], "enabled_by": "index_type", "enabled_by_value": - ["Registered Index"], "dynamic_list": {"func_path": "promptflow_vectordb.tool.common_index_lookup_utils.list_registered_mlindices"}, - "allow_manual_entry": false, "is_multi_select": false, "input_type": "uionly_hidden"}, - "mlindex_content": {"type": ["string"], "allow_manual_entry": false, "is_multi_select": - false, "generated_by": {"func_path": "promptflow_vectordb.tool.common_index_lookup_utils.forward_mapping", - "func_kwargs": [{"name": "index_type", "reference": "${inputs.index_type}", - "type": ["string"]}, {"name": "mlindex_asset_id", "optional": true, "reference": - "${inputs.mlindex_asset_id}", "type": ["string"]}, {"name": "mlindex_path", - "optional": true, "reference": "${inputs.mlindex_path}", "type": ["string"]}, - {"name": "acs_index_connection", "optional": true, "reference": "${inputs.acs_index_connection}", - "type": ["CognitiveSearchConnection"]}, {"name": "acs_index_name", "optional": - true, "reference": "${inputs.acs_index_name}", "type": ["string"]}, {"name": - "acs_content_field", "optional": true, "reference": "${inputs.acs_content_field}", - "type": ["string"]}, {"name": "acs_embedding_field", "optional": true, "reference": - "${inputs.acs_embedding_field}", "type": ["string"]}, {"name": "acs_metadata_field", - "optional": true, "reference": "${inputs.acs_metadata_field}", "type": ["string"]}, - {"name": "semantic_configuration", "optional": true, "reference": "${inputs.semantic_configuration}", - "type": ["string"]}, {"name": "faiss_index_path", "optional": true, "reference": - "${inputs.faiss_index_path}", "type": ["string"]}, {"name": "pinecone_index_connection", - "optional": true, "reference": "${inputs.pinecone_index_connection}", "type": - ["string"]}, {"name": "pinecone_index_name", "optional": true, "reference": - "${inputs.pinecone_index_name}", "type": ["string"]}, {"name": "pinecone_content_field", - "optional": true, "reference": "${inputs.pinecone_content_field}", "type": - ["string"]}, {"name": "pinecone_metadata_field", "optional": true, "reference": - "${inputs.pinecone_metadata_field}", "type": ["string"]}, {"name": "embedding_type", - "optional": true, "reference": "${inputs.embedding_type}", "type": ["string"]}, - {"name": "aoai_embedding_connection", "optional": true, "reference": "${inputs.aoai_embedding_connection}", - "type": ["AzureOpenAIConnection"]}, {"name": "oai_embedding_connection", "optional": - true, "reference": "${inputs.oai_embedding_connection}", "type": ["string"]}, - {"name": "embedding_model", "optional": true, "reference": "${inputs.embedding_model}", - "type": ["string"]}, {"name": "embedding_deployment", "optional": true, "reference": - "${inputs.embedding_deployment}", "type": ["string"]}], "reverse_func_path": - "promptflow_vectordb.tool.common_index_lookup_utils.reverse_mapping"}, "input_type": - "default"}, "mlindex_path": {"type": ["string"], "enabled_by": "index_type", - "enabled_by_value": ["MLIndex file from path"], "allow_manual_entry": false, - "is_multi_select": false, "input_type": "uionly_hidden"}, "oai_embedding_connection": - {"type": ["OpenAIConnection"], "enabled_by": "embedding_type", "enabled_by_value": - ["OpenAI"], "allow_manual_entry": false, "is_multi_select": false, "input_type": - "uionly_hidden"}, "pinecone_content_field": {"type": ["string"], "enabled_by": - "index_type", "enabled_by_value": ["Pinecone"], "allow_manual_entry": false, - "is_multi_select": false, "input_type": "uionly_hidden"}, "pinecone_index_connection": - {"type": ["PineconeConnection"], "enabled_by": "index_type", "enabled_by_value": - ["Pinecone"], "dynamic_list": {"func_path": "promptflow_vectordb.tool.common_index_lookup_utils.list_pinecone_connections"}, - "allow_manual_entry": false, "is_multi_select": false, "input_type": "uionly_hidden"}, - "pinecone_index_name": {"type": ["string"], "enabled_by": "index_type", "enabled_by_value": - ["Pinecone"], "dynamic_list": {"func_path": "promptflow_vectordb.tool.common_index_lookup_utils.list_pinecone_indices", - "func_kwargs": [{"name": "pinecone_connection_name", "optional": false, "reference": - "${inputs.pinecone_index_connection}", "type": ["string"]}]}, "allow_manual_entry": - false, "is_multi_select": false, "input_type": "uionly_hidden"}, "pinecone_metadata_field": - {"type": ["string"], "enabled_by": "index_type", "enabled_by_value": ["Pinecone"], - "allow_manual_entry": false, "is_multi_select": false, "input_type": "uionly_hidden"}, - "queries": {"type": ["object"], "allow_manual_entry": false, "is_multi_select": - false, "input_type": "default"}, "query_type": {"type": ["string"], "dynamic_list": - {"func_path": "promptflow_vectordb.tool.common_index_lookup_utils.list_available_query_types", - "func_kwargs": [{"name": "mlindex_content", "optional": false, "reference": - "${inputs.mlindex_content}", "type": ["string"]}]}, "allow_manual_entry": - false, "is_multi_select": false, "input_type": "default"}, "semantic_configuration": - {"type": ["string"], "enabled_by": "index_type", "enabled_by_value": ["Azure - AI Search"], "dynamic_list": {"func_path": "promptflow_vectordb.tool.common_index_lookup_utils.list_acs_index_semantic_configurations", - "func_kwargs": [{"name": "acs_connection", "optional": false, "reference": - "${inputs.acs_index_connection}", "type": ["CognitiveSearchConnection"]}, - {"name": "acs_index_name", "optional": false, "reference": "${inputs.acs_index_name}", - "type": ["string"]}]}, "allow_manual_entry": false, "is_multi_select": false, - "input_type": "uionly_hidden"}, "top_k": {"type": ["int"], "default": 3, "allow_manual_entry": - false, "is_multi_select": false, "input_type": "default"}}, "description": - "Search an AzureML Vector Index for relevant results using one or more text - queries.", "module": "promptflow_vectordb.tool.common_index_lookup", "function": - "search", "is_builtin": true, "package": "promptflow_vectordb", "package_version": - "0.2.6", "enable_kwargs": false, "tool_state": "preview"}, {"name": "Faiss - Index Lookup", "type": "python", "inputs": {"path": {"type": ["string"], "allow_manual_entry": - false, "is_multi_select": false, "input_type": "default"}, "top_k": {"type": - ["int"], "default": "3", "allow_manual_entry": false, "is_multi_select": false, - "input_type": "default"}, "vector": {"type": ["list"], "allow_manual_entry": - false, "is_multi_select": false, "input_type": "default"}}, "description": - "Search vector based query from the FAISS index file.", "module": "promptflow_vectordb.tool.faiss_index_lookup", - "class_name": "FaissIndexLookup", "function": "search", "is_builtin": true, - "package": "promptflow_vectordb", "package_version": "0.2.6", "enable_kwargs": - false, "tool_state": "archived"}, {"name": "Vector DB Lookup", "type": "python", - "inputs": {"class_name": {"type": ["string"], "enabled_by": "connection", - "enabled_by_type": ["WeaviateConnection"], "allow_manual_entry": false, "is_multi_select": - false, "input_type": "default"}, "collection_name": {"type": ["string"], "enabled_by": - "connection", "enabled_by_type": ["QdrantConnection"], "allow_manual_entry": - false, "is_multi_select": false, "input_type": "default"}, "connection": {"type": - ["CognitiveSearchConnection", "QdrantConnection", "WeaviateConnection"], "allow_manual_entry": - false, "is_multi_select": false, "input_type": "default"}, "index_name": {"type": - ["string"], "enabled_by": "connection", "enabled_by_type": ["CognitiveSearchConnection"], - "allow_manual_entry": false, "is_multi_select": false, "input_type": "default"}, - "search_filters": {"type": ["object"], "enabled_by": "connection", "enabled_by_type": - ["CognitiveSearchConnection", "QdrantConnection"], "allow_manual_entry": false, - "is_multi_select": false, "input_type": "default"}, "search_params": {"type": - ["object"], "enabled_by": "connection", "enabled_by_type": ["CognitiveSearchConnection", - "QdrantConnection"], "allow_manual_entry": false, "is_multi_select": false, - "input_type": "default"}, "text_field": {"type": ["string"], "enabled_by": - "connection", "enabled_by_type": ["CognitiveSearchConnection", "QdrantConnection", - "WeaviateConnection"], "allow_manual_entry": false, "is_multi_select": false, - "input_type": "default"}, "top_k": {"type": ["int"], "default": "3", "allow_manual_entry": - false, "is_multi_select": false, "input_type": "default"}, "vector": {"type": - ["list"], "allow_manual_entry": false, "is_multi_select": false, "input_type": - "default"}, "vector_field": {"type": ["string"], "enabled_by": "connection", - "enabled_by_type": ["CognitiveSearchConnection"], "allow_manual_entry": false, - "is_multi_select": false, "input_type": "default"}}, "description": "Search - vector based query from existing Vector Database.", "module": "promptflow_vectordb.tool.vector_db_lookup", - "class_name": "VectorDBLookup", "function": "search", "is_builtin": true, - "package": "promptflow_vectordb", "package_version": "0.2.6", "enable_kwargs": - false, "tool_state": "archived"}, {"name": "Vector Index Lookup", "type": - "python", "inputs": {"path": {"type": ["string"], "allow_manual_entry": false, - "is_multi_select": false, "input_type": "default"}, "query": {"type": ["object"], - "allow_manual_entry": false, "is_multi_select": false, "input_type": "default"}, - "top_k": {"type": ["int"], "default": "3", "allow_manual_entry": false, "is_multi_select": - false, "input_type": "default"}}, "description": "Search text or vector based - query from AzureML Vector Index.", "module": "promptflow_vectordb.tool.vector_index_lookup", - "class_name": "VectorIndexLookup", "function": "search", "is_builtin": true, - "package": "promptflow_vectordb", "package_version": "0.2.6", "enable_kwargs": - false, "tool_state": "archived"}, {"name": "hello_world.py", "type": "python", - "inputs": {"name": {"type": ["string"], "allow_manual_entry": false, "is_multi_select": - false, "input_type": "default"}}, "source": "hello_world.py", "function": - "hello_world", "is_builtin": false, "enable_kwargs": false, "tool_state": + "tool": "hello_world.py", "reduce": false}], "tools": [{"name": "hello_world.py", + "type": "python", "inputs": {"name": {"type": ["string"], "allow_manual_entry": + false, "is_multi_select": false, "input_type": "default"}}, "source": "hello_world.py", + "function": "hello_world", "is_builtin": false, "enable_kwargs": false, "tool_state": "stable"}], "inputs": {"name": {"type": "string", "default": "hod", "is_chat_input": false}}, "outputs": {"result": {"type": "string", "reference": "${hello_world.output}", "evaluation_only": false, "is_chat_output": false}}}, "flowRunResourceId": - "azureml://locations/eastus/workspaces/00000/flows/3295d11f-225c-42d8-9e99-10aac794991b/flowRuns/name", + "azureml://locations/eastus/workspaces/00000/flows/8f768c0e-02f1-4275-98af-b94916325306/flowRuns/name", "flowRunId": "name", "flowRunDisplayName": "name", "batchDataInput": {"dataUri": "azureml://datastores/workspaceblobstore/paths/LocalUpload/79f088fae0e502653c43146c9682f425/simple_hello_world.jsonl"}, - "flowRunType": "FlowRun", "flowType": "Default", "runtimeName": "test-new-runtime", + "flowRunType": "FlowRun", "flowType": "Default", "runtimeName": "test-runtime-ci", "inputsMapping": {"name": "${data.name}"}, "outputDatastoreName": "workspaceblobstore", - "childRunBasePath": "promptflow/PromptFlowArtifacts/3295d11f-225c-42d8-9e99-10aac794991b/name/flow_artifacts", - "flowDagFileRelativePath": "flow.dag.yaml", "flowSnapshotId": "a00b8581-2379-46b1-a1d9-f013aa51a215", - "sessionId": "3295d11f-225c-42d8-9e99-10aac794991b", "studioPortalEndpoint": + "childRunBasePath": "promptflow/PromptFlowArtifacts/8f768c0e-02f1-4275-98af-b94916325306/name/flow_artifacts", + "flowDagFileRelativePath": "flow.dag.yaml", "flowSnapshotId": "ab544c0b-e058-4afe-88e6-9d21c47db86e", + "sessionId": "8f768c0e-02f1-4275-98af-b94916325306", "studioPortalEndpoint": "https://ml.azure.com/runs/name?wsid=/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000"}' headers: connection: - keep-alive content-length: - - '27289' + - '1799' content-type: - application/json; charset=utf-8 strict-transport-security: @@ -1811,7 +1388,7 @@ interactions: x-content-type-options: - nosniff x-request-time: - - '0.756' + - '0.156' status: code: 200 message: OK @@ -1835,34 +1412,35 @@ interactions: uri: https://eastus.api.azureml.ms/history/v1.0/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/rundata response: body: - string: '{"runMetadata": {"runNumber": 1712479850, "rootRunId": "name", "createdUtc": - "2024-04-07T08:50:50.5657204+00:00", "createdBy": {"userObjectId": "00000000-0000-0000-0000-000000000000", - "userPuId": "1003BFFDAC523939", "userIdp": null, "userAltSecId": null, "userIss": - "https://sts.windows.net/00000000-0000-0000-0000-000000000000/", "userTenantId": - "00000000-0000-0000-0000-000000000000", "userName": "Philip Gao", "upn": null}, - "userId": "00000000-0000-0000-0000-000000000000", "token": null, "tokenExpiryTimeUtc": - null, "error": null, "warnings": null, "revision": 3, "statusRevision": 1, - "runUuid": "3f1e5dca-d0e5-4f49-a315-681b6558d561", "parentRunUuid": null, - "rootRunUuid": "3f1e5dca-d0e5-4f49-a315-681b6558d561", "lastStartTimeUtc": + string: '{"runMetadata": {"runNumber": 1713348778, "rootRunId": "name", "createdUtc": + "2024-04-17T10:12:58.4780888+00:00", "createdBy": {"userObjectId": "00000000-0000-0000-0000-000000000000", + "userPuId": null, "userIdp": "https://sts.windows.net/00000000-0000-0000-0000-000000000000/", + "userAltSecId": null, "userIss": "https://sts.windows.net/00000000-0000-0000-0000-000000000000/", + "userTenantId": "00000000-0000-0000-0000-000000000000", "userName": "4cbd0e2e-aae4-4099-b4ba-94d3a4910587", + "upn": null}, "userId": "00000000-0000-0000-0000-000000000000", "token": null, + "tokenExpiryTimeUtc": null, "error": null, "warnings": null, "revision": 3, + "statusRevision": 1, "runUuid": "4f761bd6-abdd-43c3-ac58-8b40b61a0e3d", "parentRunUuid": + null, "rootRunUuid": "4f761bd6-abdd-43c3-ac58-8b40b61a0e3d", "lastStartTimeUtc": null, "currentComputeTime": "00:00:00", "computeDuration": null, "effectiveStartTimeUtc": null, "lastModifiedBy": {"userObjectId": "00000000-0000-0000-0000-000000000000", - "userPuId": "1003BFFDAC523939", "userIdp": null, "userAltSecId": null, "userIss": - "https://sts.windows.net/00000000-0000-0000-0000-000000000000/", "userTenantId": - "00000000-0000-0000-0000-000000000000", "userName": "Philip Gao", "upn": null}, - "lastModifiedUtc": "2024-04-07T08:50:56.2521022+00:00", "duration": null, - "cancelationReason": null, "currentAttemptId": 1, "runId": "name", "parentRunId": - null, "experimentId": "529ac0f1-84f5-46cc-aa72-c8d2a3e1ce28", "status": "Preparing", + "userPuId": null, "userIdp": "https://sts.windows.net/00000000-0000-0000-0000-000000000000/", + "userAltSecId": null, "userIss": "https://sts.windows.net/00000000-0000-0000-0000-000000000000/", + "userTenantId": "00000000-0000-0000-0000-000000000000", "userName": "4cbd0e2e-aae4-4099-b4ba-94d3a4910587", + "upn": null}, "lastModifiedUtc": "2024-04-17T10:13:00.4682656+00:00", "duration": + null, "cancelationReason": null, "currentAttemptId": 1, "runId": "name", "parentRunId": + null, "experimentId": "c37563af-f0b0-4358-bf15-3f6847f3772d", "status": "Preparing", "startTimeUtc": null, "endTimeUtc": null, "scheduleId": null, "displayName": "name", "name": null, "dataContainerId": "dcid.name", "description": null, "hidden": false, "runType": "azureml.promptflow.FlowRun", "runTypeV2": {"orchestrator": null, "traits": [], "attribution": "PromptFlow", "computeType": "AmlcDsi"}, - "properties": {"azureml.promptflow.runtime_name": "test-new-runtime", "azureml.promptflow.runtime_version": - "20240326.v2", "azureml.promptflow.input_data": "azureml://datastores/workspaceblobstore/paths/LocalUpload/79f088fae0e502653c43146c9682f425/simple_hello_world.jsonl", - "azureml.promptflow.inputs_mapping": "{\"name\":\"${data.name}\"}", "azureml.promptflow.definition_file_name": - "flow.dag.yaml", "azureml.promptflow.flow_lineage_id": "3295d11f-225c-42d8-9e99-10aac794991b", - "azureml.promptflow.flow_definition_resource_id": "azureml://locations/eastus/workspaces/00000/flows/3295d11f-225c-42d8-9e99-10aac794991b", - "azureml.promptflow.flow_id": "3295d11f-225c-42d8-9e99-10aac794991b", "_azureml.evaluation_run": - "promptflow.BatchRun", "azureml.promptflow.snapshot_id": "a00b8581-2379-46b1-a1d9-f013aa51a215"}, + "properties": {"azureml.promptflow.runtime_name": "test-runtime-ci", "azureml.promptflow.runtime_version": + "20240411.v4", "azureml.promptflow.input_data": "azureml://datastores/workspaceblobstore/paths/LocalUpload/79f088fae0e502653c43146c9682f425/simple_hello_world.jsonl", + "azureml.promptflow.inputs_mapping": "{\"name\":\"${data.name}\"}", "azureml.promptflow.disable_trace": + "false", "azureml.promptflow.definition_file_name": "flow.dag.yaml", "azureml.promptflow.flow_lineage_id": + "8f768c0e-02f1-4275-98af-b94916325306", "azureml.promptflow.flow_definition_resource_id": + "azureml://locations/eastus/workspaces/00000/flows/8f768c0e-02f1-4275-98af-b94916325306", + "azureml.promptflow.flow_id": "8f768c0e-02f1-4275-98af-b94916325306", "_azureml.evaluation_run": + "promptflow.BatchRun", "azureml.promptflow.snapshot_id": "ab544c0b-e058-4afe-88e6-9d21c47db86e"}, "parameters": {}, "actionUris": {}, "scriptName": null, "target": null, "uniqueChildRunComputeTargets": [], "tags": {}, "settings": {}, "services": {}, "inputDatasets": [], "outputDatasets": [], "runDefinition": null, "jobSpecification": null, "primaryMetricName": @@ -1874,7 +1452,7 @@ interactions: connection: - keep-alive content-length: - - '3710' + - '3902' content-type: - application/json; charset=utf-8 strict-transport-security: @@ -1886,7 +1464,7 @@ interactions: x-content-type-options: - nosniff x-request-time: - - '0.045' + - '0.043' status: code: 200 message: OK diff --git a/src/promptflow-tools/tests/conftest.py b/src/promptflow-tools/tests/conftest.py index f3a1b7e225d..333fec180f1 100644 --- a/src/promptflow-tools/tests/conftest.py +++ b/src/promptflow-tools/tests/conftest.py @@ -15,9 +15,9 @@ from promptflow.tools.aoai import AzureOpenAI from promptflow.tools.aoai_gpt4v import AzureOpenAI as AzureOpenAIVision -PROMOTFLOW_ROOT = Path(__file__).absolute().parents[1] -CONNECTION_FILE = (PROMOTFLOW_ROOT / "connections.json").resolve().absolute().as_posix() -root_str = str(PROMOTFLOW_ROOT.resolve().absolute()) +PROMPTFLOW_ROOT = Path(__file__).absolute().parents[1] +CONNECTION_FILE = (PROMPTFLOW_ROOT / "connections.json").resolve().absolute().as_posix() +root_str = str(PROMPTFLOW_ROOT.resolve().absolute()) if root_str not in sys.path: sys.path.insert(0, root_str) @@ -108,42 +108,42 @@ def skip_if_no_api_key(request, mocker): # example prompts @pytest.fixture def example_prompt_template() -> str: - with open(PROMOTFLOW_ROOT / "tests/test_configs/prompt_templates/marketing_writer/prompt.jinja2") as f: + with open(PROMPTFLOW_ROOT / "tests/test_configs/prompt_templates/marketing_writer/prompt.jinja2") as f: prompt_template = f.read() return prompt_template @pytest.fixture def example_prompt_template_with_name_in_roles() -> str: - with open(PROMOTFLOW_ROOT / "tests/test_configs/prompt_templates/prompt_with_name_in_roles.jinja2") as f: + with open(PROMPTFLOW_ROOT / "tests/test_configs/prompt_templates/prompt_with_name_in_roles.jinja2") as f: prompt_template = f.read() return prompt_template @pytest.fixture def chat_history() -> list: - with open(PROMOTFLOW_ROOT / "tests/test_configs/prompt_templates/marketing_writer/history.json") as f: + with open(PROMPTFLOW_ROOT / "tests/test_configs/prompt_templates/marketing_writer/history.json") as f: history = json.load(f) return history @pytest.fixture def example_prompt_template_with_function() -> str: - with open(PROMOTFLOW_ROOT / "tests/test_configs/prompt_templates/prompt_with_function.jinja2") as f: + with open(PROMPTFLOW_ROOT / "tests/test_configs/prompt_templates/prompt_with_function.jinja2") as f: prompt_template = f.read() return prompt_template @pytest.fixture def example_prompt_template_with_image() -> str: - with open(PROMOTFLOW_ROOT / "tests/test_configs/prompt_templates/prompt_with_image.jinja2") as f: + with open(PROMPTFLOW_ROOT / "tests/test_configs/prompt_templates/prompt_with_image.jinja2") as f: prompt_template = f.read() return prompt_template @pytest.fixture def example_image() -> Image: - with open(PROMOTFLOW_ROOT / "tests/test_configs/prompt_templates/images/number10.jpg", "rb") as f: + with open(PROMPTFLOW_ROOT / "tests/test_configs/prompt_templates/images/number10.jpg", "rb") as f: image = Image(f.read()) return image diff --git a/src/promptflow-tracing/README.md b/src/promptflow-tracing/README.md index ae8fee2ee63..7d0c9705ea4 100644 --- a/src/promptflow-tracing/README.md +++ b/src/promptflow-tracing/README.md @@ -10,6 +10,10 @@ The `promptflow-tracing` package offers tracing capabilities to capture and illu # Release History +## 1.9.0 (Upcoming) + +- Add ThreadPoolExecutorWithContext to keep parent/child relationship in ThreadPool. + ## 1.0.0 (2024.03.21) - Compatible with promptflow 1.7.0. diff --git a/src/promptflow-tracing/promptflow/tracing/__init__.py b/src/promptflow-tracing/promptflow/tracing/__init__.py index d2cb2ebf088..cebc3f6fb78 100644 --- a/src/promptflow-tracing/promptflow/tracing/__init__.py +++ b/src/promptflow-tracing/promptflow/tracing/__init__.py @@ -4,8 +4,9 @@ __path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore +from ._context_utils import ThreadPoolExecutorWithContext from ._start_trace import start_trace from ._trace import trace from ._version import __version__ -__all__ = ["__version__", "start_trace", "trace"] +__all__ = ["__version__", "start_trace", "trace", "ThreadPoolExecutorWithContext"] diff --git a/src/promptflow-tracing/promptflow/tracing/_context_utils.py b/src/promptflow-tracing/promptflow/tracing/_context_utils.py new file mode 100644 index 00000000000..69158d10ec0 --- /dev/null +++ b/src/promptflow-tracing/promptflow/tracing/_context_utils.py @@ -0,0 +1,33 @@ +import contextvars +from concurrent.futures import ThreadPoolExecutor +from typing import Callable + + +def set_context(context: contextvars.Context): + for var, value in context.items(): + var.set(value) + + +def set_context_then_call(context: contextvars.Context, initializer: Callable, initargs=()): + set_context(context) + if initializer: + initializer(*initargs) + + +class ThreadPoolExecutorWithContext(ThreadPoolExecutor): + def __init__(self, max_workers=None, thread_name_prefix="", initializer=None, initargs=()): + """The ThreadPoolExecutionWithContext is an extended thread pool implementation + which will copy the context from the current thread to the child threads. + Thus the traced functions in child threads could keep parent-child relationship in the tracing system. + The arguments are the same as ThreadPoolExecutor. + + Args: + max_workers: The maximum number of threads that can be used to + execute the given calls. + thread_name_prefix: An optional name prefix to give our threads. + initializer: A callable used to initialize worker threads. + initargs: A tuple of arguments to pass to the initializer. + """ + current_context = contextvars.copy_context() + initializer_args = (current_context, initializer, initargs) + super().__init__(max_workers, thread_name_prefix, set_context_then_call, initializer_args) diff --git a/src/promptflow-tracing/promptflow/tracing/_experimental/__init__.py b/src/promptflow-tracing/promptflow/tracing/_experimental/__init__.py new file mode 100644 index 00000000000..b101ea2700d --- /dev/null +++ b/src/promptflow-tracing/promptflow/tracing/_experimental/__init__.py @@ -0,0 +1,7 @@ +# --------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# --------------------------------------------------------- + +from .._trace import enrich_prompt_template + +__all__ = ["enrich_prompt_template"] diff --git a/src/promptflow-tracing/promptflow/tracing/_trace.py b/src/promptflow-tracing/promptflow/tracing/_trace.py index f5272e0acb5..4c57ef13a1a 100644 --- a/src/promptflow-tracing/promptflow/tracing/_trace.py +++ b/src/promptflow-tracing/promptflow/tracing/_trace.py @@ -9,7 +9,7 @@ from collections.abc import Iterator from importlib.metadata import version from threading import Lock -from typing import Callable, List, Optional +from typing import Callable, Dict, List, Optional import opentelemetry.trace as otel_trace from opentelemetry.sdk.trace import ReadableSpan @@ -112,13 +112,19 @@ def enrich_span_with_prompt_info(span, func, kwargs): prompt_vars = { name: kwargs.get(name) for name in get_input_names_for_prompt_template(prompt_tpl) if name in kwargs } - prompt_info = {"prompt.template": prompt_tpl, "prompt.variables": serialize_attribute(prompt_vars)} - span.set_attributes(prompt_info) - span.add_event("promptflow.prompt.template", {"payload": serialize_attribute(prompt_info)}) + enrich_prompt_template(template=prompt_tpl, variables=prompt_vars, span=span) except Exception as e: logging.warning(f"Failed to enrich span with prompt info: {e}") +def enrich_prompt_template(template: str, variables: Dict[str, object], span=None): + if not span: + span = otel_trace.get_current_span() + prompt_info = {"prompt.template": template, "prompt.variables": serialize_attribute(variables)} + span.set_attributes(prompt_info) + span.add_event("promptflow.prompt.template", {"payload": serialize_attribute(prompt_info)}) + + def enrich_span_with_input(span, input): try: serialized_input = serialize_attribute(input) diff --git a/src/promptflow-tracing/promptflow/tracing/_utils.py b/src/promptflow-tracing/promptflow/tracing/_utils.py index 59862461aeb..0b78c821a05 100644 --- a/src/promptflow-tracing/promptflow/tracing/_utils.py +++ b/src/promptflow-tracing/promptflow/tracing/_utils.py @@ -85,6 +85,8 @@ def get_prompt_param_name_from_func(f): try: from promptflow.contracts.types import PromptTemplate - return next((k for k, annotation in f.__annotations__.items() if annotation == PromptTemplate), None) + return next( + (k for k, annotation in getattr(f, "__annotations__", {}).items() if annotation == PromptTemplate), None + ) except ImportError: return None diff --git a/src/promptflow-tracing/tests/e2etests/simple_functions.py b/src/promptflow-tracing/tests/e2etests/simple_functions.py index 8e91b38c29e..2f4fca106d8 100644 --- a/src/promptflow-tracing/tests/e2etests/simple_functions.py +++ b/src/promptflow-tracing/tests/e2etests/simple_functions.py @@ -5,6 +5,7 @@ from openai import AsyncAzureOpenAI, AzureOpenAI +from promptflow.tracing import ThreadPoolExecutorWithContext from promptflow.tracing._trace import trace @@ -38,20 +39,35 @@ def greetings(user_id): @trace -async def dummy_llm(prompt: str, model: str): +async def dummy_llm_async(prompt: str, model: str): await asyncio.sleep(0.5) return "dummy_output" +@trace +def dummy_llm(prompt: str, model: str): + sleep(0.5) + return "dummy_output" + + @trace async def dummy_llm_tasks_async(prompt: str, models: list): tasks = [] for model in models: - tasks.append(asyncio.create_task(dummy_llm(prompt, model))) + tasks.append(asyncio.create_task(dummy_llm_async(prompt, model))) done, _ = await asyncio.wait(tasks, return_when=asyncio.ALL_COMPLETED) return [task.result() for task in done] +@trace +def dummy_llm_tasks_threadpool(prompt: str, models: list): + prompts = [prompt] * len(models) + with ThreadPoolExecutorWithContext(2, "dummy_llm", initializer=lambda x: x, initargs=(prompt,)) as executor: + executor.map(dummy_llm, prompts, models) + with ThreadPoolExecutorWithContext() as executor: + return list(executor.map(dummy_llm, prompts, models)) + + @trace def openai_chat(connection: dict, prompt: str, stream: bool = False): client = AzureOpenAI(**connection) diff --git a/src/promptflow-tracing/tests/e2etests/test_tracing.py b/src/promptflow-tracing/tests/e2etests/test_tracing.py index 6536b98e50e..5bc5b676685 100644 --- a/src/promptflow-tracing/tests/e2etests/test_tracing.py +++ b/src/promptflow-tracing/tests/e2etests/test_tracing.py @@ -11,6 +11,7 @@ from ..utils import execute_function_in_subprocess, prepare_memory_exporter from .simple_functions import ( dummy_llm_tasks_async, + dummy_llm_tasks_threadpool, greetings, openai_chat, openai_completion, @@ -94,6 +95,7 @@ class TestTracing: [ (greetings, {"user_id": 1}, 4), (dummy_llm_tasks_async, {"prompt": "Hello", "models": ["model_1", "model_1"]}, 3), + (dummy_llm_tasks_threadpool, {"prompt": "Hello", "models": ["model_1", "model_1"]}, 5), ], ) def test_otel_trace(self, func, inputs, expected_span_length): @@ -345,7 +347,9 @@ def validate_span_list(self, span_list, expected_span_length): len(span_list) == expected_span_length ), f"Expected {expected_span_length} spans, but got {len(span_list)}." root_spans = [span for span in span_list if span.parent is None] - assert len(root_spans) == 1, "Expected exactly one root span." + names = ",".join([span.name for span in span_list]) + msg = f"Expected exactly one root span but got {len(root_spans)}: {names}." + assert len(root_spans) == 1, msg root_span = root_spans[0] for span in span_list: assert span.status.status_code == StatusCode.OK, "Expected status code to be OK." diff --git a/src/promptflow-tracing/tests/unittests/test_context_utils.py b/src/promptflow-tracing/tests/unittests/test_context_utils.py new file mode 100644 index 00000000000..66b82c7bdde --- /dev/null +++ b/src/promptflow-tracing/tests/unittests/test_context_utils.py @@ -0,0 +1,34 @@ +import asyncio +import contextvars +from concurrent.futures import ThreadPoolExecutor + +import pytest + +from promptflow.tracing import ThreadPoolExecutorWithContext + + +@pytest.mark.unittest +def test_thread_pool_executor_with_context(): + var = contextvars.ContextVar("var", default="default_value") + var.set("value_in_parent") + with ThreadPoolExecutor() as executor: + assert executor.submit(var.get).result() == "default_value" + with ThreadPoolExecutorWithContext() as executor: + assert executor.submit(var.get).result() == "value_in_parent" + with ThreadPoolExecutorWithContext(initializer=var.set, initargs=("value_in_initializer",)) as executor: + assert executor.submit(var.get).result() == "value_in_initializer" + + +@pytest.mark.unittest +@pytest.mark.asyncio +async def test_thread_pool_executor_with_context_async(): + var = contextvars.ContextVar("var", default="default_value") + var.set("value_in_parent") + loop = asyncio.get_running_loop() + result = await loop.run_in_executor(None, var.get) + assert result == "default_value" + result = await loop.run_in_executor(ThreadPoolExecutorWithContext(), var.get) + assert result == "value_in_parent" + initargs = ("value_in_initializer",) + result = await loop.run_in_executor(ThreadPoolExecutorWithContext(initializer=var.set, initargs=initargs), var.get) + assert result == "value_in_initializer" diff --git a/src/promptflow-tracing/tests/unittests/test_trace.py b/src/promptflow-tracing/tests/unittests/test_trace.py index 273974c8a65..c6616d1521a 100644 --- a/src/promptflow-tracing/tests/unittests/test_trace.py +++ b/src/promptflow-tracing/tests/unittests/test_trace.py @@ -3,9 +3,11 @@ from enum import Enum from unittest.mock import patch +import opentelemetry import pytest from openai.types.create_embedding_response import CreateEmbeddingResponse, Embedding, Usage +from promptflow.tracing._experimental import enrich_prompt_template from promptflow.tracing._operation_context import OperationContext from promptflow.tracing._trace import ( TokenCollector, @@ -284,3 +286,15 @@ class NonSerializable: data = NonSerializable() assert serialize_attribute(data) == json.dumps(str(data)) + + +@pytest.mark.unitests +def test_set_enrich_prompt_template(): + mock_span = MockSpan(MockSpanContext(1)) + with patch.object(opentelemetry.trace, "get_current_span", return_value=mock_span): + template = "mock prompt template" + variables = {"key": "value"} + enrich_prompt_template(template=template, variables=variables) + + assert template == mock_span.attributes["prompt.template"] + assert variables == json.loads(mock_span.attributes["prompt.variables"]) diff --git a/src/promptflow/tests/_constants.py b/src/promptflow/tests/_constants.py index e2295a675ab..7a96abec0e0 100644 --- a/src/promptflow/tests/_constants.py +++ b/src/promptflow/tests/_constants.py @@ -1,11 +1,11 @@ from pathlib import Path -PROMOTFLOW_ROOT = Path(__file__).parent.parent -RUNTIME_TEST_CONFIGS_ROOT = Path(PROMOTFLOW_ROOT / "tests/test_configs/runtime") -EXECUTOR_REQUESTS_ROOT = Path(PROMOTFLOW_ROOT / "tests/test_configs/executor_api_requests") -MODEL_ROOT = Path(PROMOTFLOW_ROOT / "tests/test_configs/e2e_samples") -CONNECTION_FILE = (PROMOTFLOW_ROOT / "connections.json").resolve().absolute().as_posix() -ENV_FILE = (PROMOTFLOW_ROOT / ".env").resolve().absolute().as_posix() +PROMPTFLOW_ROOT = Path(__file__).parent.parent +RUNTIME_TEST_CONFIGS_ROOT = Path(PROMPTFLOW_ROOT / "tests/test_configs/runtime") +EXECUTOR_REQUESTS_ROOT = Path(PROMPTFLOW_ROOT / "tests/test_configs/executor_api_requests") +MODEL_ROOT = Path(PROMPTFLOW_ROOT / "tests/test_configs/e2e_samples") +CONNECTION_FILE = (PROMPTFLOW_ROOT / "connections.json").resolve().absolute().as_posix() +ENV_FILE = (PROMPTFLOW_ROOT / ".env").resolve().absolute().as_posix() # below constants are used for pfazure and global config tests DEFAULT_SUBSCRIPTION_ID = "96aede12-2f73-41cb-b983-6d11a904839b" diff --git a/src/promptflow/tests/executor/unittests/batch/test_csharp_executor_proxy.py b/src/promptflow/tests/executor/unittests/batch/test_csharp_executor_proxy.py index 5e7b42c0887..dcc22683270 100644 --- a/src/promptflow/tests/executor/unittests/batch/test_csharp_executor_proxy.py +++ b/src/promptflow/tests/executor/unittests/batch/test_csharp_executor_proxy.py @@ -7,7 +7,9 @@ import pytest +from promptflow._constants import FlowLanguage from promptflow._core._errors import MetaFileNotFound, MetaFileReadError +from promptflow._proxy import ProxyFactory from promptflow._proxy._csharp_executor_proxy import CSharpExecutorProxy from promptflow._sdk._constants import FLOW_TOOLS_JSON, PROMPT_FLOW_DIR_NAME from promptflow.executor._result import AggregationResult @@ -134,3 +136,17 @@ def test_find_available_port(self): s.bind(("localhost", int(port))) except OSError: pytest.fail("Port is not actually available") + + @pytest.mark.parametrize( + "entry_str, expected_result", + [ + pytest.param( + "(FunctionModeBasic)FunctionModeBasic.MyEntry.WritePoemReturnObjectAsync", + True, + id="flex_flow_class_init", + ), + ], + ) + def test_is_csharp_flex_flow_entry(self, entry_str: str, expected_result: bool): + result = ProxyFactory().create_inspector_proxy(FlowLanguage.CSharp).is_flex_flow_entry(entry_str) + assert result is expected_result diff --git a/src/promptflow/tests/test_configs/eager_flows/basic_dummy_csharp_flex_flow/data.jsonl b/src/promptflow/tests/test_configs/eager_flows/basic_dummy_csharp_flex_flow/data.jsonl new file mode 100644 index 00000000000..7ddae9d5909 --- /dev/null +++ b/src/promptflow/tests/test_configs/eager_flows/basic_dummy_csharp_flex_flow/data.jsonl @@ -0,0 +1,2 @@ +{"topic": "ocean"} +{"topic": "promptflow"} \ No newline at end of file diff --git a/src/promptflow/tests/test_configs/eager_flows/basic_dummy_csharp_flex_flow/flow.flex.yaml b/src/promptflow/tests/test_configs/eager_flows/basic_dummy_csharp_flex_flow/flow.flex.yaml new file mode 100644 index 00000000000..b9fb856d35a --- /dev/null +++ b/src/promptflow/tests/test_configs/eager_flows/basic_dummy_csharp_flex_flow/flow.flex.yaml @@ -0,0 +1,4 @@ +$schema: https://azuremlschemas.azureedge.net/promptflow/latest/flow.schema.json + +language: csharp +entry: (FlexFlowClassInit)FunctionModeBasic.MyEntry.HelloWorldAsync diff --git a/src/promptflow/tests/test_configs/eager_flows/dummy_flow_with_invalid_entry/flow.dag.yaml b/src/promptflow/tests/test_configs/eager_flows/dummy_flow_with_invalid_entry/flow.dag.yaml new file mode 100644 index 00000000000..13acda7c241 --- /dev/null +++ b/src/promptflow/tests/test_configs/eager_flows/dummy_flow_with_invalid_entry/flow.dag.yaml @@ -0,0 +1 @@ +entry: invalid_entry \ No newline at end of file diff --git a/src/promptflow/tests/test_configs/eager_flows/invalid_illegal_input_type/flow.flex.yaml b/src/promptflow/tests/test_configs/eager_flows/invalid_illegal_input_type/flow.flex.yaml new file mode 100644 index 00000000000..a80688dd10a --- /dev/null +++ b/src/promptflow/tests/test_configs/eager_flows/invalid_illegal_input_type/flow.flex.yaml @@ -0,0 +1,3 @@ +entry: invalid_call:MyFlow +environment: + image: promptflow.azurecr.io/promptflow-runtime:bu-20240403-1452 diff --git a/src/promptflow/tests/test_configs/eager_flows/invalid_illegal_input_type/inputs.jsonl b/src/promptflow/tests/test_configs/eager_flows/invalid_illegal_input_type/inputs.jsonl new file mode 100644 index 00000000000..cf192f44c3e --- /dev/null +++ b/src/promptflow/tests/test_configs/eager_flows/invalid_illegal_input_type/inputs.jsonl @@ -0,0 +1,4 @@ +{"func_input": "func_input"} +{"func_input": "func_input"} +{"func_input": "func_input"} +{"func_input": "func_input"} \ No newline at end of file diff --git a/src/promptflow/tests/test_configs/eager_flows/invalid_illegal_input_type/invalid_call.py b/src/promptflow/tests/test_configs/eager_flows/invalid_illegal_input_type/invalid_call.py new file mode 100644 index 00000000000..cab536fe02d --- /dev/null +++ b/src/promptflow/tests/test_configs/eager_flows/invalid_illegal_input_type/invalid_call.py @@ -0,0 +1,25 @@ +# --------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# --------------------------------------------------------- +from typing import TypedDict + + +class FlowOutput(TypedDict): + obj_input: str + func_input: str + obj_id: str + + +class MyFlow: + def __init__(self, obj_input: str): + self.obj_input = obj_input + + def __call__(self, func_input: object) -> FlowOutput: + pass + + +if __name__ == "__main__": + flow = MyFlow("obj_input") + result = flow("func_input") + print(result) + diff --git a/src/promptflow/tests/test_configs/eager_flows/invalid_illegal_input_type/invalid_init.py b/src/promptflow/tests/test_configs/eager_flows/invalid_illegal_input_type/invalid_init.py new file mode 100644 index 00000000000..1a24567b6b7 --- /dev/null +++ b/src/promptflow/tests/test_configs/eager_flows/invalid_illegal_input_type/invalid_init.py @@ -0,0 +1,25 @@ +# --------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# --------------------------------------------------------- +from typing import TypedDict + + +class FlowOutput(TypedDict): + obj_input: str + func_input: str + obj_id: str + + +class MyFlow: + def __init__(self, obj_input: object): + self.obj_input = obj_input + + def __call__(self, func_input: str) -> FlowOutput: + pass + + +if __name__ == "__main__": + flow = MyFlow("obj_input") + result = flow("func_input") + print(result) + diff --git a/src/promptflow/tests/test_configs/eager_flows/invalid_illegal_input_type/invalid_output.py b/src/promptflow/tests/test_configs/eager_flows/invalid_illegal_input_type/invalid_output.py new file mode 100644 index 00000000000..62e749c5d74 --- /dev/null +++ b/src/promptflow/tests/test_configs/eager_flows/invalid_illegal_input_type/invalid_output.py @@ -0,0 +1,25 @@ +# --------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# --------------------------------------------------------- +from typing import TypedDict + + +class FlowOutput(TypedDict): + obj_input: object + func_input: str + obj_id: str + + +class MyFlow: + def __init__(self, obj_input: str): + self.obj_input = obj_input + + def __call__(self, func_input: str) -> FlowOutput: + pass + + +if __name__ == "__main__": + flow = MyFlow("obj_input") + result = flow("func_input") + print(result) + diff --git a/src/promptflow/tests/test_configs/eager_flows/invalid_illegal_input_type/simple_callable_class.py b/src/promptflow/tests/test_configs/eager_flows/invalid_illegal_input_type/simple_callable_class.py new file mode 100644 index 00000000000..25c1eb5418c --- /dev/null +++ b/src/promptflow/tests/test_configs/eager_flows/invalid_illegal_input_type/simple_callable_class.py @@ -0,0 +1,28 @@ +# --------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# --------------------------------------------------------- +from typing import TypedDict + +class FlowOutput(TypedDict): + obj_input: str + func_input: str + obj_id: str + + +class MyFlow: + def __init__(self, obj_input: str): + self.obj_input = obj_input + + def __call__(self, func_input: str) -> FlowOutput: + return { + "obj_input": self.obj_input, + "func_input": func_input, + "obj_id": id(self), + } + + +if __name__ == "__main__": + flow = MyFlow("obj_input") + result = flow("func_input") + print(result) +